feat: top bar, footer, login/register buttons, ICP/copyright settings
This commit is contained in:
@@ -73,6 +73,8 @@ router.post('/complete', async (req, res) => {
|
||||
for (const [k, v, l] of [
|
||||
['site_name', site_name || 'MC举报系统', '站点名称'],
|
||||
['site_url', site_url || 'http://localhost:3100', '站点地址'],
|
||||
['copyright', '© 2024 MC举报系统', '页尾版权'],
|
||||
['icp', '', 'ICP备案号'],
|
||||
]) {
|
||||
await conn.query("INSERT INTO settings(k, v, label) VALUES (?,?,?) ON DUPLICATE KEY UPDATE v=VALUES(v)", [k, v, l]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user