From 547fd99c23f33a461357f7ea034ce1de222f6e83 Mon Sep 17 00:00:00 2001 From: RhenCloud Date: Sat, 20 Dec 2025 18:46:45 +0800 Subject: [PATCH] update --- .github/workflows/build.yml | 6 +- .prettierignore | 18 + .prettierrc | 14 +- .vscode/settings.json | 6 +- app/app.vue | 47 +- app/components/OgImage/About.vue | 29 +- app/components/OgImage/Test.vue | 37 +- app/components/archive/card.vue | 46 +- app/components/archive/hero.vue | 5 +- app/components/blog/Header.vue | 79 +- app/components/blog/Toc.vue | 61 +- app/components/blog/card.vue | 82 +- app/components/blog/empty.vue | 9 +- app/components/category/card.vue | 41 +- app/components/category/hero.vue | 5 +- app/components/category/topic.vue | 16 +- app/components/content/ProseCode.vue | 60 +- app/components/footer/connect.vue | 5 +- app/components/footer/developer.vue | 14 +- app/components/footer/site.vue | 2 +- app/components/logo/404.vue | 273 +- app/components/logo/arrow.vue | 3 +- app/components/logo/confused.vue | 129 +- app/components/logo/date.vue | 6 +- app/components/logo/dog.vue | 330 +- app/components/logo/dogpow.vue | 141 +- app/components/logo/dogs.vue | 441 +- app/components/logo/name.vue | 9 +- app/components/logo/tag.vue | 6 +- app/components/main/SocialLinks.vue | 74 + app/components/main/TechInfo.vue | 104 + app/components/main/footer.vue | 178 +- app/components/main/header.vue | 159 +- app/components/main/hero.vue | 66 +- app/components/main/recent.vue | 101 +- app/components/main/trending.vue | 62 - app/config/index.ts | 63 + app/data/index.ts | 97 +- app/layouts/default.vue | 22 +- app/pages/[...slug].vue | 18 +- app/pages/about.vue | 27 +- app/pages/blogs/[blog].vue | 128 +- app/pages/blogs/index.vue | 92 +- app/pages/categories/[category].vue | 55 +- app/pages/categories/index.vue | 41 +- app/pages/index.vue | 40 +- app/pages/tags/[tag].vue | 101 + app/pages/tags/index.vue | 75 + app/router.options.ts | 18 +- app/types/blog.ts | 16 +- app/utils/helper.ts | 8 +- content.config.ts | 22 +- .../blogs/1. connect-namecheap-to-vercel.md | 2 +- .... fix-tailwindcss-intellisense-in-nuxt3.md | 2 +- ...e-namespace-subdomain-connect-to-vercel.md | 2 +- .../4. fetch-content-data-render-pages.md | 8 +- content/blogs/5. vue3-awesome-library.md | 2 +- .../blogs/6. how-to-fix-vuex-type-issue.md | 12 +- ...itter-and-how-i-almost-crashed-a-server.md | 12 +- .../8. float-make-my-dollar-float-away.md | 2 +- eslint.config.mjs | 16 +- nuxt.config.ts | 73 +- package-lock.json | 639 +- package.json | 48 +- pnpm-lock.yaml | 13139 ++++++++++++++++ pnpm-workspace.yaml | 6 + public/avatar.webp | Bin 0 -> 455602 bytes public/background.webp | Bin 0 -> 112410 bytes public/favicon.svg | 30 + server/routes/rss.xml.ts | 28 +- server/routes/sys-info.get.ts | 30 + tailwind.config.js | 16 +- tsconfig.json | 5 +- 73 files changed, 15635 insertions(+), 1924 deletions(-) create mode 100644 .prettierignore create mode 100644 app/components/main/SocialLinks.vue create mode 100644 app/components/main/TechInfo.vue delete mode 100644 app/components/main/trending.vue create mode 100644 app/config/index.ts create mode 100644 app/pages/tags/[tag].vue create mode 100644 app/pages/tags/index.vue create mode 100644 pnpm-lock.yaml create mode 100644 pnpm-workspace.yaml create mode 100644 public/avatar.webp create mode 100644 public/background.webp create mode 100644 public/favicon.svg create mode 100644 server/routes/sys-info.get.ts diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 744402a..c9e2fc8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,9 +2,9 @@ name: Node.js CI on: push: - branches: ['main'] + branches: ["main"] pull_request: - branches: ['main'] + branches: ["main"] jobs: build: @@ -18,7 +18,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 22 - cache: 'npm' + cache: "npm" - name: Install dependencies run: npm ci diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..70b0f5d --- /dev/null +++ b/.prettierignore @@ -0,0 +1,18 @@ +node_modules/ +.output/ +.nuxt/ +dist/ +build/ +public/build/ +.vscode/ +.pnp.* +coverage/ +*.log +*.lock +pnpm-lock.yaml +.env +.env.* +.DS_Store + +# ignore generated images +public/images/generated/ diff --git a/.prettierrc b/.prettierrc index b52a92b..772614b 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,13 @@ { - "singleQuote": true, - "semi": false, - "printWidth": 100 + "printWidth": 100, + "tabWidth": 2, + "useTabs": false, + "semi": true, + "singleQuote": false, + "trailingComma": "all", + "bracketSpacing": true, + "arrowParens": "always", + "endOfLine": "lf", + "htmlWhitespaceSensitivity": "css", + "bracketSameLine": true } diff --git a/.vscode/settings.json b/.vscode/settings.json index 85d22f5..19b1473 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -19,5 +19,9 @@ "spacegrotesk", "Tailwindcss", "vuex" - ] + ], + "dependi.npm.lockFileEnabled": false, + "[vue]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + } } diff --git a/app/app.vue b/app/app.vue index 703151a..0369acb 100644 --- a/app/app.vue +++ b/app/app.vue @@ -1,20 +1,43 @@ - @@ -39,6 +62,10 @@ useHead({ filter: blur(1rem); } +html { + scroll-behavior: smooth; +} + html.dark { color-scheme: dark; } diff --git a/app/components/OgImage/About.vue b/app/components/OgImage/About.vue index 947d9c9..b4a2a3c 100644 --- a/app/components/OgImage/About.vue +++ b/app/components/OgImage/About.vue @@ -1,19 +1,19 @@