feat: top bar, footer, login/register buttons, ICP/copyright settings

This commit is contained in:
2026-07-12 01:32:18 +08:00
parent e44ee885ca
commit a6058bf207
5 changed files with 45 additions and 0 deletions

View File

@@ -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]);
}