Simplify Custom JSX v2 authoring

This commit is contained in:
Thomas Camlong committed 2026-07-21 08:19:22 +02:00
1 parent 1faaf29c3b
commit 05dbad8069
177 files changed
+4775 -43426

No files matched your search

@@ -7,8 +7,7 @@ CREATE TABLE `custom_widget_definition` (
`icon_url` text,
`sources` text NOT NULL,
`requests` text NOT NULL,
`options_schema` text NOT NULL,
`default_options` text NOT NULL,
`options` text NOT NULL,
`template` text NOT NULL,
`enabled` boolean DEFAULT true NOT NULL,
`created_at` timestamp DEFAULT (now()) NOT NULL,
@@ -579,15 +579,8 @@
"notNull": true,
"autoincrement": false
},
"options_schema": {
"name": "options_schema",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"default_options": {
"name": "default_options",
"options": {
"name": "options",
"type": "text",
"primaryKey": false,
"notNull": true,
@@ -7,8 +7,7 @@ CREATE TABLE "custom_widget_definition" (
"icon_url" text,
"sources" text NOT NULL,
"requests" text NOT NULL,
"options_schema" text NOT NULL,
"default_options" text NOT NULL,
"options" text NOT NULL,
"template" text NOT NULL,
"enabled" boolean DEFAULT true NOT NULL,
"created_at" timestamp DEFAULT now() NOT NULL,
@@ -538,14 +538,8 @@
"primaryKey": false,
"notNull": true
},
"options_schema": {
"name": "options_schema",
"type": "text",
"primaryKey": false,
"notNull": true
},
"default_options": {
"name": "default_options",
"options": {
"name": "options",
"type": "text",
"primaryKey": false,
"notNull": true
+1 -2
View File
@@ -571,8 +571,7 @@ const seedDefaultCustomWidgetsAsync = async (db: Database) => {
iconUrl: definition.iconUrl ?? null,
sources: SuperJSON.stringify(definition.sources),
requests: SuperJSON.stringify(definition.requests),
optionsSchema: SuperJSON.stringify(definition.optionsSchema),
defaultOptions: SuperJSON.stringify(definition.defaultOptions),
options: SuperJSON.stringify(definition.options),
template: definition.template,
enabled: false,
creatorId: null,
@@ -8,8 +8,7 @@ CREATE TABLE `custom_widget_definition` (
`icon_url` text,
`sources` text NOT NULL,
`requests` text NOT NULL,
`options_schema` text NOT NULL,
`default_options` text NOT NULL,
`options` text NOT NULL,
`template` text NOT NULL,
`enabled` integer DEFAULT true NOT NULL,
`created_at` integer DEFAULT (unixepoch()) NOT NULL,
@@ -560,15 +560,8 @@
"notNull": true,
"autoincrement": false
},
"options_schema": {
"name": "options_schema",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"default_options": {
"name": "default_options",
"options": {
"name": "options",
"type": "text",
"primaryKey": false,
"notNull": true,