odious
Version:
Odious fundamentally revolutionizes the software development paradigm by seamlessly integrating deployment considerations into the development process, thus empowering developers of all skill levels to create and deploy applications with unprecedented eas
52 lines (40 loc) • 1.19 kB
Markdown
this.#pathKey = pathKey; // the key of a key value store like localStorage, it should use AppId:ObjectId:CategoryId:PropertyName
// this does not override values, if they are present
this.synchronizables.initializeDefaults({
settings: { // <-- categories are not signals, just plain objects
name: "untitled", // <-- category entries become signals
title: "Untitled",
note: "",
style: null,
list: [1,2,3] // <-- the entire array is contined in one signal, only category values are wrapped in signals
},
selection: {
active: false,
selected: false,
},
coordinates: {
zindex: 0,
left: 0,
top: 0,
width: null,
height: null,
},
ports: {
in: { side: "in", icon: "activity" },
out: { side: "out", icon: "activity" },
},
fields: {
counter: {
label: "Counter",
type: "Number",
data: 0
},
milliseconds: {
label: "Milliseconds",
type: "Number",
data: 10_000,
step: 100,
min: 300,
},
},
});