1
0
Fork 0

wip(sde): Working on file list

This commit is contained in:
joostdecock 2023-09-29 16:01:27 +02:00
parent 9929aed51a
commit c65c5876a3
199 changed files with 1065 additions and 196 deletions

View file

@ -1,5 +1,5 @@
// __SDEFILE__ - This file is a dependency for the stand-alone environment
// Dependencies
import { flagTypes } from 'plugins/plugin-annotations/src/flag.mjs'
import mustache from 'mustache'
import { nsMerge } from 'shared/utils.mjs'
// Hooks
@ -31,6 +31,9 @@ const flagIcons = {
options: OptionsIcon,
}
// This is also the order in which they will be displayed
export const flagTypes = ['error', 'warn', 'note', 'info', 'tip', 'fixme']
export const Flag = ({ data, t, handleUpdate }) => {
const BtnIcon = data.suggest?.icon ? flagIcons[data.suggest.icon] : false