修复编译

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

2742
ui/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -9,24 +9,27 @@
},
"devDependencies": {
"@sveltejs/adapter-auto": "next",
"@sveltejs/adapter-static": "^1.0.0-next.29",
"@sveltejs/kit": "^1.15.9",
"autoprefixer": "^10.4.13",
"cssnano": "^5.1.8",
"postcss": "^8.4.21",
"prettier": "^2.8.1",
"prettier-plugin-svelte": "^2.9.0",
"svelte": "^3.44.0",
"tailwindcss": "^3.2.4"
"@sveltejs/adapter-static": "^3.0.10",
"@sveltejs/kit": "^2.46.4",
"@sveltejs/vite-plugin-svelte": "^6.2.1",
"@tailwindcss/postcss": "^4.1.14",
"autoprefixer": "^10.4.21",
"cssnano": "^7.1.1",
"postcss": "^8.5.6",
"prettier": "^3.6.2",
"prettier-plugin-svelte": "^3.4.0",
"svelte": "^5.39.11",
"tailwindcss": "^4.1.14"
},
"type": "module",
"dependencies": {
"@rollup/rollup-darwin-arm64": "^4.52.4",
"@sveltestack/svelte-query": "^1.6.0",
"@tabler/icons-svelte": "^2.17.0",
"daisyui": "^2.14.3",
"js-cookie": "^3.0.1",
"jwt-decode": "^3.1.2",
"svelte-file-dropzone": "^1.0.0",
"wretch": "^1.7.9"
"@tabler/icons-svelte": "^3.35.0",
"daisyui": "^5.1.31",
"js-cookie": "^3.0.5",
"jwt-decode": "^4.0.0",
"svelte-file-dropzone": "^2.0.9",
"wretch": "^2.11.0"
}
}

2107
ui/pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
'@tailwindcss/postcss': {},
autoprefixer: {},
},
}

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;

View File

@@ -1,5 +1,5 @@
import adapter from "@sveltejs/adapter-static";
import { vitePreprocess } from '@sveltejs/kit/vite';
import {vitePreprocess} from "@sveltejs/vite-plugin-svelte";
const config = {
kit: {