Add AMOLED theme, fullscreen, settings tab, and NTFY notifications
This commit is contained in:
1 parent
fe13a4d989
commit
bbf92bb478
6 files changed
+429
-4
No files matched your search
@@ -141,6 +141,8 @@ function enterApp(login, demo) {
|
||||
|
||||
toast(demo ? "Demo session started." : "Signed in to Synergia.", "ok");
|
||||
|
||||
startNotificationPolling();
|
||||
|
||||
const requested = location.hash.replace(/^#/, "");
|
||||
const target = VIEWS.includes(requested) ? requested : "dashboard";
|
||||
navigate(target);
|
||||
@@ -255,10 +257,12 @@ async function doLogout() {
|
||||
/* the local session is dropped regardless */
|
||||
}
|
||||
}
|
||||
stopNotificationPolling();
|
||||
state.session = null;
|
||||
state.messages = [];
|
||||
state.messageIndex = -1;
|
||||
state.messageCache.clear();
|
||||
state.lastNotifySnapshot = null;
|
||||
showLogin("session closed.");
|
||||
toast("Logged out.", "ok");
|
||||
}
|
||||
Reference in new issue
Block a user