0.32.1
This commit is contained in:
1 parent
81ab39e70a
commit
101df02a5f
45 files changed
+1148
-2277
No files matched your search
@@ -5,8 +5,8 @@ import fs from 'node:fs';
|
||||
import vm from 'node:vm';
|
||||
|
||||
const editor = fs.readFileSync('src/admin/web/vhosts/editor.js', 'utf8');
|
||||
const first = editor.indexOf(' const wwwPanel = el("section", undefined, "vh-wide vh-www-panel");');
|
||||
const last = editor.indexOf(' field(g, "forward-client-ip",', first);
|
||||
const first = editor.indexOf('const wwwPanel = el("section", undefined, "vh-wide vh-www-panel");');
|
||||
const last = editor.indexOf('field(g, "forward-client-ip",', first);
|
||||
if (first === -1 || last === -1) throw new Error('WWW editor component missing');
|
||||
const source = editor.slice(first, last);
|
||||
if (editor.indexOf('readHosts = hostTagEditor(g, value.frontend?.hosts') < editor.indexOf('g = group("vhFrontends")')) {
|
||||
|
||||
Reference in new issue
Block a user