style: apply biome formatting to settings.service and ui/sonner
This commit is contained in:
parent
951fadd4a6
commit
632336de41
|
|
@ -139,7 +139,11 @@ export async function loginDandanplay(
|
|||
}
|
||||
|
||||
export async function logoutDandanplay(userId: string): Promise<{ ok: true }> {
|
||||
await appSettingsDao.upsert({ key: APP_SETTING_DANDANPLAY_TOKEN, value: "", updatedBy: userId });
|
||||
await appSettingsDao.upsert({
|
||||
key: APP_SETTING_DANDANPLAY_TOKEN,
|
||||
value: "",
|
||||
updatedBy: userId,
|
||||
});
|
||||
await appSettingsDao.upsert({
|
||||
key: APP_SETTING_DANDANPLAY_SCREEN_NAME,
|
||||
value: "",
|
||||
|
|
@ -156,7 +160,7 @@ export async function getDandanplayAuthStatus(): Promise<{
|
|||
const nameRow = await appSettingsDao.get(APP_SETTING_DANDANPLAY_SCREEN_NAME);
|
||||
const tokenRow = await appSettingsDao.get(APP_SETTING_DANDANPLAY_TOKEN);
|
||||
const loggedIn = Boolean(tokenRow?.value);
|
||||
return { loggedIn, screenName: loggedIn ? (nameRow?.value || null) : null };
|
||||
return { loggedIn, screenName: loggedIn ? nameRow?.value || null : null };
|
||||
}
|
||||
|
||||
/** 启动/保存后恢复会话 token */
|
||||
|
|
|
|||
|
|
@ -17,8 +17,7 @@ const Toaster = ({ ...props }: ToasterProps) => {
|
|||
toastOptions={{
|
||||
unstyled: false,
|
||||
classNames: {
|
||||
toast:
|
||||
"group toast w-[min(22rem,calc(100vw-2rem))] rounded-lg border border-[var(--color-border)] bg-[var(--color-background)] px-3.5 py-2.5 text-sm text-[var(--color-foreground)] shadow-lg",
|
||||
toast: "group toast w-[min(22rem,calc(100vw-2rem))] rounded-lg border border-[var(--color-border)] bg-[var(--color-background)] px-3.5 py-2.5 text-sm text-[var(--color-foreground)] shadow-lg",
|
||||
title: "text-sm font-medium leading-snug",
|
||||
description: "text-[var(--color-muted-foreground)] text-xs",
|
||||
actionButton:
|
||||
|
|
|
|||
Loading…
Reference in New Issue