修复编译

This commit is contained in:
flowshadow
2025-10-10 21:35:34 +08:00
parent 6ac6ac5eda
commit d91c1070c9
11 changed files with 3019 additions and 2146 deletions

View File

@@ -43,7 +43,7 @@
<div class="items-center flex flex-row gap-2">
<span class="text-lg">Scale: </span>
{#if $setScaleMutation.isLoading}
<button class="btn btn-square btn-sm loading" />
<button class="btn btn-square btn-sm loading" />
{:else}
<button
class="btn btn-square btn-sm"

View File

@@ -1,5 +1,5 @@
import Cookies from "js-cookie";
import jwt_decode from "jwt-decode";
import { jwtDecode} from "jwt-decode";
import {refreshAuthToken} from "./api";
const AuthDataCookieKey = "auth_data";
@@ -14,7 +14,7 @@ export const readAuthCookie = () => {
const val = Cookies.get(AuthDataCookieKey);
if (!val) return null;
const payload = jwt_decode(val);
const payload = jwtDecode(val);
const timeLeft = timeTillExpiry(payload);
if (timeLeft < 0) return null;
return payload;