feat: feature voting (PCL-style), poll owner edit/delete, blind polls for all

This commit is contained in:
2026-07-14 01:17:56 +08:00
parent 74974864cd
commit ee2f33c61f
8 changed files with 195 additions and 8 deletions

View File

@@ -10,6 +10,7 @@ const App = {
{ id: 'settings', label: '系统设置', icon: 'fa-cog', roles: ['owner','admin'] },
{ 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'] },
],
async init() {
@@ -78,6 +79,7 @@ const App = {
case 'settings': this.renderMain('系统设置', SettingsPage, param); break;
case 'export': this.renderMain('数据导出', ExportPage, param); break;
case 'polls': this.renderMain('投票', PollsPage, param); break;
case 'features': this.renderMain('更新内容', FeaturesPage, param); break;
default: this.renderMain('控制台', Dashboard, param);
}
},
@@ -148,6 +150,7 @@ window.NotificationsPage = NotificationsPage;
window.SettingsPage = SettingsPage;
window.ExportPage = ExportPage;
window.PollsPage = PollsPage;
window.FeaturesPage = FeaturesPage;
window.LoginPage = LoginPage;
window.RegisterPage = RegisterPage;
window.HomePage = HomePage;