From a020f3fa128971e890c13b5f9b99316b32f3530f Mon Sep 17 00:00:00 2001 From: Ou Date: Mon, 10 Mar 2025 20:23:49 +0800 Subject: [PATCH] chore: minor changes --- shared/pinyin.json | 2 +- shared/sources.json | 2 +- tsconfig.app.json | 1 + tsconfig.node.json | 1 + uno.config.ts | 4 ++-- vite.config.ts | 2 +- 6 files changed, 7 insertions(+), 5 deletions(-) diff --git a/shared/pinyin.json b/shared/pinyin.json index 7bcb1d5..2763bc7 100644 --- a/shared/pinyin.json +++ b/shared/pinyin.json @@ -33,4 +33,4 @@ "baidu": "baiduresou", "linuxdo-latest": "LINUX DO-zuixin", "linuxdo-hot": "LINUX DO-jinrizuire" -} +} \ No newline at end of file diff --git a/shared/sources.json b/shared/sources.json index 7261b23..148fe90 100644 --- a/shared/sources.json +++ b/shared/sources.json @@ -379,4 +379,4 @@ "interval": 1800000, "title": "今日最热" } -} +} \ No newline at end of file diff --git a/tsconfig.app.json b/tsconfig.app.json index 42e6c2a..1376954 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -4,6 +4,7 @@ "jsx": "react-jsx", "lib": ["ES2020", "DOM", "DOM.Iterable"], "baseUrl": ".", + "rootDir": ".", "paths": { "~/*": ["src/*"], "@shared/*": ["shared/*"] diff --git a/tsconfig.node.json b/tsconfig.node.json index aaa840c..beff692 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -2,6 +2,7 @@ "extends": ["./tsconfig.base.json"], "compilerOptions": { "lib": ["ES2020"], + "rootDir": ".", "baseUrl": ".", "paths": { "#/*": ["server/*"], diff --git a/uno.config.ts b/uno.config.ts index 06e8606..821622a 100644 --- a/uno.config.ts +++ b/uno.config.ts @@ -1,4 +1,4 @@ -import { defineConfig, presetIcons, presetUno, transformerDirectives, transformerVariantGroup } from "unocss" +import { defineConfig, presetIcons, presetWind3, transformerDirectives, transformerVariantGroup } from "unocss" import { hex2rgba } from "@unocss/rule-utils" import { sources } from "./shared/sources" @@ -6,7 +6,7 @@ export default defineConfig({ mergeSelectors: false, transformers: [transformerDirectives(), transformerVariantGroup()], presets: [ - presetUno(), + presetWind3(), presetIcons({ scale: 1.2, }), diff --git a/vite.config.ts b/vite.config.ts index 165dcbd..e1801db 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -32,7 +32,7 @@ export default defineConfig({ imports: ["atom", "useAtom", "useAtomValue", "useSetAtom"], }], imports: [ - { from: "clsx", name: "default", as: "$" }, + { from: "clsx", name: "clsx", as: "$" }, { from: "jotai/utils", name: "atomWithStorage" }, ], dts: "imports.app.d.ts",