diff --git a/bundle.js b/bundle.js index 3a54073..1e77ae0 100644 --- a/bundle.js +++ b/bundle.js @@ -5711,6 +5711,10 @@ fetch(init_url, fetch_opts).then(res => res.text()).then(async source => { (function (__filename){(function (){ const STATE = require('../src/node_modules/STATE') const statedb = STATE(__filename) +const admin_api = statedb.admin() +admin_api.on(event => { + console.log(event) +}) const { sdb, io } = statedb(fallback_module) const { drive, admin } = sdb /****************************************************************************** @@ -5988,7 +5992,7 @@ async function create_component (entries_obj) { func(data, type) } } - function fail (data, type) { throw new Error('invalid message', { cause: { data, type } }) } + function fail (data, type) { } function inject(data) { style.innerHTML = data.join('\n') } @@ -6237,7 +6241,21 @@ function fallback_module () { z-index: 16; }` } - } + }, + 'icons/': {}, + 'variables/': {}, + 'scroll/': {}, + 'commands/': {}, + 'actions/': {}, + 'hardcons/': {}, + 'files/': {}, + 'highlight/': {}, + 'active_tab/': {}, + 'count/': {}, + 'entries/': {}, + 'runtime/': {}, + 'mode/': {}, + 'data/': {}, } } function quick_editor$ (args, tools, [quick_editor]){ diff --git a/web/page.js b/web/page.js index 965117a..24cf9a2 100644 --- a/web/page.js +++ b/web/page.js @@ -1,5 +1,9 @@ const STATE = require('../src/node_modules/STATE') const statedb = STATE(__filename) +const admin_api = statedb.admin() +admin_api.on(event => { + console.log(event) +}) const { sdb, io } = statedb(fallback_module) const { drive, admin } = sdb /****************************************************************************** @@ -277,7 +281,7 @@ async function create_component (entries_obj) { func(data, type) } } - function fail (data, type) { throw new Error('invalid message', { cause: { data, type } }) } + function fail (data, type) { } function inject(data) { style.innerHTML = data.join('\n') } @@ -526,7 +530,21 @@ function fallback_module () { z-index: 16; }` } - } + }, + 'icons/': {}, + 'variables/': {}, + 'scroll/': {}, + 'commands/': {}, + 'actions/': {}, + 'hardcons/': {}, + 'files/': {}, + 'highlight/': {}, + 'active_tab/': {}, + 'count/': {}, + 'entries/': {}, + 'runtime/': {}, + 'mode/': {}, + 'data/': {}, } } function quick_editor$ (args, tools, [quick_editor]){