feat: TurboSu initial release - racing telemetry dashboard

This commit is contained in:
Yei.J. (AskaEth)
2026-07-25 15:23:40 +08:00
commit d61bb61a83
61 changed files with 5270 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
const Theme = {
_current: 'dark',
init() {
this._current = localStorage.getItem('turbosu-theme') || 'dark';
this.apply();
},
toggle() {
this._current = this._current === 'dark' ? 'light' : 'dark';
this.apply();
},
apply() {
document.body.classList.remove('theme-dark', 'theme-light');
document.body.classList.add(`theme-${this._current}`);
localStorage.setItem('turbosu-theme', this._current);
},
get current() { return this._current; }
};
window.Theme = Theme;