refactor: remove polls+features, move to standalone mc-vote repo

This commit is contained in:
2026-07-14 03:11:26 +08:00
parent 3d7393817c
commit d61ad2109f
7 changed files with 0 additions and 331 deletions

View File

@@ -9,8 +9,6 @@ const App = {
{ id: 'templates', label: '邮件模板', icon: 'fa-envelope', roles: ['owner','admin'] },
{ 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,8 +76,6 @@ const App = {
case 'templates': this.renderMain('邮件模板', TemplatesPage, param); break;
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);
}
},
@@ -102,7 +98,6 @@ const App = {
const u = Auth.user();
el.innerHTML = `<span class="tm ts">${U.esc(u.game_name||u.username)}</span>
<a href="#/dashboard" class="btn btn-p btn-sm"><i class="fas fa-chart-simple"></i> 控制台</a>
<a href="#/polls" class="btn btn-o btn-sm"><i class="fas fa-poll"></i></a>
${Auth.isAdmin() ? `<a href="#/unclaimed" class="btn btn-o btn-sm">待处理</a>`:''}
<button class="btn btn-o btn-sm" onclick="App.logout()"><i class="fas fa-sign-out-alt"></i> 退出</button>`;
} else {
@@ -149,8 +144,6 @@ window.TemplatesPage = TemplatesPage;
window.NotificationsPage = NotificationsPage;
window.SettingsPage = SettingsPage;
window.ExportPage = ExportPage;
window.PollsPage = PollsPage;
window.FeaturesPage = FeaturesPage;
window.LoginPage = LoginPage;
window.RegisterPage = RegisterPage;
window.HomePage = HomePage;