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 }> {
|
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({
|
await appSettingsDao.upsert({
|
||||||
key: APP_SETTING_DANDANPLAY_SCREEN_NAME,
|
key: APP_SETTING_DANDANPLAY_SCREEN_NAME,
|
||||||
value: "",
|
value: "",
|
||||||
|
|
@ -156,7 +160,7 @@ export async function getDandanplayAuthStatus(): Promise<{
|
||||||
const nameRow = await appSettingsDao.get(APP_SETTING_DANDANPLAY_SCREEN_NAME);
|
const nameRow = await appSettingsDao.get(APP_SETTING_DANDANPLAY_SCREEN_NAME);
|
||||||
const tokenRow = await appSettingsDao.get(APP_SETTING_DANDANPLAY_TOKEN);
|
const tokenRow = await appSettingsDao.get(APP_SETTING_DANDANPLAY_TOKEN);
|
||||||
const loggedIn = Boolean(tokenRow?.value);
|
const loggedIn = Boolean(tokenRow?.value);
|
||||||
return { loggedIn, screenName: loggedIn ? (nameRow?.value || null) : null };
|
return { loggedIn, screenName: loggedIn ? nameRow?.value || null : null };
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 启动/保存后恢复会话 token */
|
/** 启动/保存后恢复会话 token */
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,7 @@ const Toaster = ({ ...props }: ToasterProps) => {
|
||||||
toastOptions={{
|
toastOptions={{
|
||||||
unstyled: false,
|
unstyled: false,
|
||||||
classNames: {
|
classNames: {
|
||||||
toast:
|
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",
|
||||||
"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",
|
title: "text-sm font-medium leading-snug",
|
||||||
description: "text-[var(--color-muted-foreground)] text-xs",
|
description: "text-[var(--color-muted-foreground)] text-xs",
|
||||||
actionButton:
|
actionButton:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue