feat: remove setup disabling functionality and related UI elements

This commit is contained in:
shuaiplus
2026-02-25 01:30:08 +08:00
parent 4f82cf9d43
commit f9b084d09d
4 changed files with 8 additions and 189 deletions
-11
View File
@@ -162,17 +162,6 @@ export class StorageService {
.run();
}
async isSetupDisabled(): Promise<boolean> {
const row = await this.db.prepare('SELECT value FROM config WHERE key = ?').bind('setup_disabled').first<{ value: string }>();
return row?.value === 'true';
}
async setSetupDisabled(): Promise<void> {
await this.db.prepare('INSERT INTO config(key, value) VALUES(?, ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value')
.bind('setup_disabled', 'true')
.run();
}
// --- Users ---
async getUser(email: string): Promise<User | null> {