diff --git a/.husky/README.md b/.husky/README.md index 02ae062..9890eff 100644 --- a/.husky/README.md +++ b/.husky/README.md @@ -3,18 +3,18 @@ - https://typicode.github.io/husky/zh/troubleshoot.html#找不到命令-command-not-found - https://typicode.github.io/husky/zh/how-to.html#node-版本管理器和-gui -```shell +```bash ln -s $(which pnpm) $HOME/.local/bin/pnpm ``` +```bash +if command -v pnpm >/dev/null 2>&1; then + # 如果 pnpm 可用,直接使用它 + pnpm exec lint-staged +else + # 如果 pnpm 不可用,使用 $HOME/.local/bin/pnpm + # ln -s $(which pnpm) $HOME/.local/bin/pnpm + echo "找不到 pnpm,使用 $HOME/.local/bin/pnpm" + "$HOME"/.local/bin/pnpm exec lint-staged +fi ``` -# if command -v pnpm >/dev/null 2>&1; then -# # 如果 pnpm 可用,直接使用它 -# pnpm exec lint-staged -# else -# # 如果 pnpm 不可用,使用 $HOME/.local/bin/pnpm -# # ln -s $(which pnpm) $HOME/.local/bin/pnpm -# echo "找不到 pnpm,使用 $HOME/.local/bin/pnpm" -# "$HOME"/.local/bin/pnpm exec lint-staged -# fi -``` \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 0adeccd..6a4db25 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -23,6 +23,9 @@ "i18n-ally.displayLanguage": "zh-CN", // 显示语言 (显示文件/翻译文件) "i18n-ally.keystyle": "nested", + // https://github.com/copilot/share/8a1a019a-0180-80e7-8141-a40be02c4006 + // "iconify.customCollectionJsonPaths": ["https://example.com/my-icons.json", "./local/icons.json"], + "typescript.tsdk": "node_modules/typescript/lib", "typescript.preferences.autoImportFileExcludePatterns": ["vue-router/auto$"] } diff --git a/README.md b/README.md index d5aea21..f6f8170 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,4 @@ - [soybean-admin (GitHub)](https://github.com/soybeanjs/soybean-admin) — 2.0 预览: [预览地址](https://v2-0.soybean-admin-df1.pages.dev/home) - [Vite:静态部署指南(中文)](https://vitejs.cn/vite3-cn/guide/static-deploy.html) — Vite 官方中文文档中关于静态站点部署的说明。 +- [vitesse (GitHub)](https://github.com/antfu-collective/vitesse) — Anthony Fu 的 Vite + Vue 3 快速启动模板 diff --git a/worker-configuration.d.ts b/worker-configuration.d.ts index bd2a08a..071c096 100644 --- a/worker-configuration.d.ts +++ b/worker-configuration.d.ts @@ -1,5 +1,5 @@ /* eslint-disable */ -// Generated by Wrangler by running `wrangler types` (hash: 7094267439eea3789640d49ba1e25377) +// Generated by Wrangler by running `wrangler types` (hash: aa93ac8c91075e71741fc97806bcd0bd) // Runtime types generated with workerd@1.20251008.0 2025-09-09 declare namespace Cloudflare { interface GlobalProps { @@ -7,6 +7,12 @@ declare namespace Cloudflare { } interface Env { KV: KVNamespace; + VITE_APP_TITLE: string; + VITE_APP_BASE: string; + VITE_APP_BUILD_SOURCE_MAP: string; + VITE_APP_BUILD_COMMIT: string; + VITE_APP_BUILD_TIME: string; + VITE_ENABLE_VUE_DEVTOOLS: string; } } interface Env extends Cloudflare.Env {}