New Database
This commit is contained in:
@@ -261,7 +261,6 @@
|
||||
<button type="button" id="kick-all-users-btn" class="btn-danger">🚫 踢掉所有用户</button>
|
||||
</div>
|
||||
<p style="font-size:13px;color:#E05555;margin-bottom:12px;">🚫 踢掉所有用户:所有用户的控制端与显示端立即全部下线(含当前设备),需二次验证身份。</p>
|
||||
<div id="pending-requests" style="margin-bottom:16px;"></div>
|
||||
<div id="user-list"></div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -315,6 +314,23 @@
|
||||
<div style="margin-top:6px;font-size:12px;color:var(--text-dim);">包含当前控制端与所有显示端,全部立即下线。</div>
|
||||
<div id="mode-msg" style="margin-top:8px;font-size:13px;color:var(--text-dim);"></div>
|
||||
</div>
|
||||
<div class="section" id="db-admin-section" style="display:none;">
|
||||
<h3>数据库管理</h3>
|
||||
<p style="font-size:13px;color:var(--text-dim);margin-bottom:12px;">
|
||||
仅 Root 可用。可导入旧版 SQLite 数据库文件(*.db)或本系统导出的备份(JSON),导入会<strong>覆盖当前全部数据(含所有账户的登录凭据)</strong>(单事务执行,失败自动回滚、不影响现有数据),且<strong>所有设备将下线需重新登录</strong>。导出的备份同样包含凭据,请妥善保管。请勿导入不可信的备份文件。
|
||||
</p>
|
||||
<div style="font-size:13px;margin-bottom:10px;">
|
||||
当前状态: <span id="db-status" style="color:var(--text-dim);">加载中...</span>
|
||||
</div>
|
||||
<div style="display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px;">
|
||||
<button type="button" id="db-export-btn" class="btn-secondary">⬇️ 导出现有数据库</button>
|
||||
</div>
|
||||
<form id="db-import-form" class="inline-form">
|
||||
<input type="file" id="db-import-file" accept=".db,.sqlite,.sqlite3,.json" style="max-width:260px;">
|
||||
<button type="submit" id="db-import-btn" class="btn-primary">⬆️ 导入数据库(自动识别 SQLite / 备份 JSON)</button>
|
||||
</form>
|
||||
<div id="db-admin-msg" style="margin-top:8px;font-size:13px;color:var(--text-dim);"></div>
|
||||
</div>
|
||||
<div class="section">
|
||||
<h3>时区设置</h3>
|
||||
<div style="font-size:13px;color:var(--text-dim);margin-bottom:10px;">
|
||||
|
||||
Reference in New Issue
Block a user