1
0
Fork 0

wip: work on editor

This commit is contained in:
joostdecock 2025-01-19 11:01:34 +01:00
parent 30ae7b09da
commit c8b989afcb
16 changed files with 345 additions and 215 deletions

View file

@ -1,3 +1,5 @@
// Dependencies
import { defaultConfig } from '../config/index.mjs'
// Components
import {
ErrorIcon,
@ -35,9 +37,10 @@ export function draft(Design, settings) {
return data
}
export function flattenFlags(flags, config) {
export function flattenFlags(flags) {
const all = {}
for (const type of config.flagTypes) {
for (const type of defaultConfig.flagTypes) {
let i = 0
if (flags[type]) {
for (const flag of Object.values(flags[type])) {