mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 12:13:57 +00:00
20 lines
373 B
JavaScript
20 lines
373 B
JavaScript
const fs = require('fs');
|
|
|
|
const template = fs.readFileSync('./index.html.tpl', 'utf-8');
|
|
|
|
for (const page of [
|
|
'',
|
|
'not-logged',
|
|
'error',
|
|
'login',
|
|
'admin-login',
|
|
'admin',
|
|
'license',
|
|
'admin-license',
|
|
'set-admin-password',
|
|
'redirect',
|
|
]) {
|
|
const text = template.replace(/{{page}}/g, page);
|
|
fs.writeFileSync(`public/${page || 'index'}.html`, text);
|
|
}
|