diff --git a/auth.ts b/auth.ts index 2553b35..4f2ec3d 100644 --- a/auth.ts +++ b/auth.ts @@ -1,10 +1,12 @@ import getEnv from "@/lib/env-entry" +import CryptoJS from "crypto-js" import NextAuth from "next-auth" import CredentialsProvider from "next-auth/providers/credentials" -import CryptoJS from 'crypto-js' export const { handlers, signIn, signOut, auth } = NextAuth({ - secret: process.env.AUTH_SECRET ?? CryptoJS.MD5(`this_is_nezha_dash_web_secret_${getEnv("SitePassword")}`).toString(), + secret: + process.env.AUTH_SECRET ?? + CryptoJS.MD5(`this_is_nezha_dash_web_secret_${getEnv("SitePassword")}`).toString(), trustHost: (process.env.AUTH_TRUST_HOST as boolean | undefined) ?? true, providers: [ CredentialsProvider({ diff --git a/bun.lockb b/bun.lockb index 578e8d1..a92c1b0 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 27d4d9c..4ac1309 100644 --- a/package.json +++ b/package.json @@ -16,26 +16,26 @@ "@ducanh2912/next-pwa": "^10.2.9", "@heroicons/react": "^2.2.0", "@number-flow/react": "^0.5.5", - "@radix-ui/react-dialog": "^1.1.5", - "@radix-ui/react-dropdown-menu": "^2.1.5", - "@radix-ui/react-label": "^2.1.1", - "@radix-ui/react-navigation-menu": "^1.2.4", - "@radix-ui/react-popover": "^1.1.5", - "@radix-ui/react-progress": "^1.1.1", - "@radix-ui/react-separator": "^1.1.1", - "@radix-ui/react-slot": "^1.1.1", - "@radix-ui/react-switch": "^1.1.2", - "@radix-ui/react-tooltip": "^1.1.7", + "@radix-ui/react-dialog": "^1.1.6", + "@radix-ui/react-dropdown-menu": "^2.1.6", + "@radix-ui/react-label": "^2.1.2", + "@radix-ui/react-navigation-menu": "^1.2.5", + "@radix-ui/react-popover": "^1.1.6", + "@radix-ui/react-progress": "^1.1.2", + "@radix-ui/react-separator": "^1.1.2", + "@radix-ui/react-slot": "^1.1.2", + "@radix-ui/react-switch": "^1.1.3", + "@radix-ui/react-tooltip": "^1.1.8", "@trivago/prettier-plugin-sort-imports": "^5.2.2", "@types/crypto-js": "^4.2.2", "@types/d3-geo": "^3.1.0", "@types/luxon": "^3.4.2", "babel-plugin-react-compiler": "^19.0.0-beta-e552027-20250112", - "caniuse-lite": "^1.0.30001697", + "caniuse-lite": "^1.0.30001698", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "cmdk": "^1.0.4", - "country-flag-icons": "^1.5.14", + "country-flag-icons": "^1.5.16", "crypto-js": "^4.2.0", "d3-geo": "^3.1.1", "d3-selection": "^3.0.0", @@ -56,19 +56,19 @@ "react-wrap-balancer": "^1.1.1", "recharts": "^2.15.1", "sharp": "^0.33.5", - "swr": "^2.3.1", + "swr": "^2.3.2", "tailwind-merge": "^2.6.0", "tailwindcss-animate": "^1.0.7" }, "devDependencies": { "@biomejs/biome": "1.9.4", "@next/bundle-analyzer": "^15.1.6", - "@tailwindcss/postcss": "^4.0.3", + "@tailwindcss/postcss": "^4.0.4", "@types/node": "^22.13.1", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "postcss": "^8.5.1", - "tailwindcss": "^4.0.3", + "tailwindcss": "^4.0.4", "typescript": "^5.7.3", "vercel": "^39.4.2" },