mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-08 13:57:26 +08:00
@@ -15,6 +15,7 @@
|
||||
import WaccaSettings from "../../components/settings/WaccaSettings.svelte";
|
||||
import GeneralGameSettings from "../../components/settings/GeneralGameSettings.svelte";
|
||||
import OngekiSettings from "../../components/settings/OngekiSettings.svelte";
|
||||
import useLocalStorage from "../../libs/hooks/useLocalStorage.svelte";
|
||||
|
||||
USER.ensureLoggedIn()
|
||||
|
||||
@@ -120,6 +121,10 @@
|
||||
error = t("settings.profile.bad-format");
|
||||
}
|
||||
};
|
||||
function logOut() {
|
||||
localStorage.removeItem("token");
|
||||
location.href = "/";
|
||||
}
|
||||
|
||||
const passwordAction = (node: HTMLInputElement, whether: boolean) => {
|
||||
if (whether) node.type = 'password'
|
||||
@@ -196,6 +201,11 @@
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field m-t">
|
||||
<div>
|
||||
<button on:click={logOut}>{ts(`settings.profile.logout`)}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{:else if tabs[tab] === 'chu3'}
|
||||
<!-- Userbox settings -->
|
||||
|
||||
Reference in New Issue
Block a user