mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 00:23:57 +00:00
special pages workflow changed
This commit is contained in:
@@ -2,7 +2,17 @@ const fs = require('fs');
|
||||
|
||||
const template = fs.readFileSync('./index.html.tpl', 'utf-8');
|
||||
|
||||
for (const page of ['', 'not-logged', 'error', 'admin-login', 'login', 'admin', 'license']) {
|
||||
for (const page of [
|
||||
'',
|
||||
'not-logged',
|
||||
'error',
|
||||
'admin-login',
|
||||
'login',
|
||||
'admin',
|
||||
'license',
|
||||
'set-admin-password',
|
||||
'redirect',
|
||||
]) {
|
||||
const text = template.replace(/{{page}}/g, page);
|
||||
fs.writeFileSync(`public/${page || 'index'}.html`, text);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user