feat: dedicated server groups management page in sidebar

This commit is contained in:
2026-07-16 03:56:09 +08:00
parent 8ecefdcb19
commit abf747e3af
3 changed files with 60 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ const App = {
{ id: 'export', label: '数据导出', icon: 'fa-download', roles: ['owner'] },
{ id: 'polls', label: '投票', icon: 'fa-poll', roles: ['owner','admin','player'] },
{ id: 'features', label: '更新内容', icon: 'fa-lightbulb', roles: ['owner','admin','player'] },
{ id: 'servers', label: '服务器管理', icon: 'fa-server', roles: ['owner','admin'] },
],
async init() {
@@ -93,6 +94,7 @@ const App = {
case 'export': this.renderMain('数据导出', ExportPage, param); break;
case 'polls': this.renderMain('投票', PollsPage, param); break;
case 'features': this.renderMain('更新内容', FeaturesPage, param); break;
case 'servers': this.renderMain('服务器管理', ServersPage, param); break;
default: this.renderMain('控制台', Dashboard, param);
}
},
@@ -170,6 +172,7 @@ window.SettingsPage = SettingsPage;
window.ExportPage = ExportPage;
window.PollsPage = PollsPage;
window.FeaturesPage = FeaturesPage;
window.ServersPage = ServersPage;
window.LoginPage = LoginPage;
window.RegisterPage = RegisterPage;
window.HomePage = HomePage;