v0.32.2
This commit is contained in:
1 parent
bb025dcf44
commit
b0f211555a
74 files changed
+6089
-556
No files matched your search
@@ -6,6 +6,7 @@ import vm from 'node:vm';
|
||||
|
||||
const root = process.cwd();
|
||||
const core = fs.readFileSync(`${root}/src/admin/web/vhosts/core.js`, 'utf8');
|
||||
const protocol = fs.readFileSync(`${root}/src/admin/web/vhosts/protocol.js`, 'utf8');
|
||||
const editor = fs.readFileSync(`${root}/src/admin/web/vhosts/editor.js`, 'utf8');
|
||||
const settings = fs.readFileSync(`${root}/src/admin/web/app/settings.js`, 'utf8');
|
||||
const html = fs.readFileSync(`${root}/src/admin/web/index.html`, 'utf8');
|
||||
@@ -19,6 +20,7 @@ class Element {
|
||||
this.tag = tag;
|
||||
this.value = value == null ? '' : String(value);
|
||||
this.checked = false;
|
||||
this.dataset = {};
|
||||
this.hidden = false;
|
||||
this.disabled = false;
|
||||
this.name = '';
|
||||
@@ -61,7 +63,7 @@ const value = {
|
||||
interval_ms: 10000, timeout_ms: 1000, slow_response_ms: 500, fall: 2,
|
||||
rise: 1, expected_status_min: 200, expected_status_max: 399 }
|
||||
};
|
||||
vm.runInNewContext(`${core.slice(start, end)}\nmemberRow(parent, value);`, {
|
||||
vm.runInNewContext(`${protocol}\n${core.slice(start, end)}\nmemberRow(parent, value);`, {
|
||||
parent, value, el, text, field, button, note,
|
||||
t: key => key, toast: () => {}, changed: () => {},
|
||||
appConfirm: async () => true, adminListenerBackendCandidate: () => false, backendHealthEditorControl: null
|
||||
|
||||
Reference in new issue
Block a user