wip: work on editor
This commit is contained in:
parent
30ae7b09da
commit
c8b989afcb
16 changed files with 345 additions and 215 deletions
|
@ -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])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue