Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ on:
paths:
- "Dockerfile"
- ".dockerignore"
- ".node-version"
- ".npmrc"
- "apps/api/**"
- "scripts/dependencies.test.js"
- "package.json"
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"
Expand All @@ -17,7 +20,10 @@ on:
paths:
- "Dockerfile"
- ".dockerignore"
- ".node-version"
- ".npmrc"
- "apps/api/**"
- "scripts/dependencies.test.js"
- "package.json"
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"
Expand Down Expand Up @@ -45,13 +51,16 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
node-version-file: ".node-version"
cache: "pnpm"
cache-dependency-path: "pnpm-lock.yaml"

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Test dependency compatibility
run: pnpm run test:dependencies

- name: Build backend package
run: pnpm --filter ./apps/api build

Expand Down Expand Up @@ -105,6 +114,7 @@ jobs:
with:
context: .
file: ./Dockerfile
pull: true
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24.22.1
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 使用轻量且有社区支持的 Node 官方镜像
FROM node:24-alpine
FROM node:24.22.1-alpine

# 设置作者信息
LABEL author="wuyuan"
Expand All @@ -11,7 +11,7 @@ WORKDIR /app
RUN corepack enable

# 先复制依赖清单,提升构建缓存命中率
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc ./
COPY apps/api/package.json ./apps/api/package.json

# 安装 workspace 依赖(后端运行时依赖根包 + apps/api)
Expand Down
19 changes: 11 additions & 8 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"version": "1.0.21",
"private": true,
"type": "module",
"packageManager": "pnpm@9.0.0",
"packageManager": "pnpm@10.34.7",
"engines": {
"node": ">=24.22.1 <25"
},
"scripts": {
"start": "cross-env DOTENV_CONFIG_PATH=../../.env node --import tsx server.js",
"dev": "cross-env DOTENV_CONFIG_PATH=../../.env NODE_ENV=development nodemon --exec \"node --import tsx\" server.js",
Expand All @@ -14,15 +17,15 @@
},
"devDependencies": {
"cross-env": "^7.0.3",
"nodemon": "^3.1.10",
"prisma": "^7.6.0",
"tsx": "^4.22.4"
"nodemon": "^3.1.14",
"prisma": "^7.10.1",
"tsx": "^4.23.15"
},
"dependencies": {
"@prisma/client": "^7.7.0",
"@prisma/client": "^7.10.1",
"@react-email/components": "^1.0.12",
"@react-email/render": "^2.0.8",
"react": "19.2.4",
"react-dom": "19.2.4"
"@react-email/render": "^2.1.1",
"react": "19.3.1",
"react-dom": "19.3.1"
}
}
109 changes: 56 additions & 53 deletions apps/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,82 +2,85 @@
"name": "blog",
"version": "0.1.0",
"private": true,
"engines": {
"node": ">=24.22.1 <25"
},
"scripts": {
"dev": "next dev -p 4000",
"build": "next build",
"start": "next start -p 4000",
"lint": "eslint"
},
"dependencies": {
"@base-ui/react": "^1.4.0",
"@hookform/resolvers": "^5.2.2",
"@milkdown/core": "^7.20.0",
"@milkdown/crepe": "^7.20.0",
"@milkdown/ctx": "^7.20.0",
"@milkdown/kit": "^7.20.0",
"@milkdown/plugin-listener": "^7.20.0",
"@milkdown/react": "^7.20.0",
"@milkdown/theme-nord": "^7.20.0",
"@milkdown/transformer": "^7.20.0",
"@radix-ui/react-accordion": "^1.2.12",
"@radix-ui/react-alert-dialog": "^1.1.15",
"@radix-ui/react-avatar": "^1.1.11",
"@radix-ui/react-checkbox": "^1.3.3",
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-dropdown-menu": "^2.1.16",
"@radix-ui/react-hover-card": "^1.1.15",
"@radix-ui/react-label": "^2.1.8",
"@radix-ui/react-popover": "^1.1.15",
"@radix-ui/react-progress": "^1.1.8",
"@radix-ui/react-radio-group": "^1.3.8",
"@radix-ui/react-scroll-area": "^1.2.10",
"@radix-ui/react-select": "^2.2.6",
"@radix-ui/react-separator": "^1.1.8",
"@radix-ui/react-slot": "^1.2.4",
"@radix-ui/react-switch": "^1.2.6",
"@radix-ui/react-tabs": "^1.1.13",
"@radix-ui/react-toggle": "^1.1.10",
"@radix-ui/react-toggle-group": "^1.1.11",
"@radix-ui/react-tooltip": "^1.2.8",
"@vueuse/core": "^14.2.1",
"@base-ui/react": "^1.9.0",
"@hookform/resolvers": "^5.9.2",
"@milkdown/core": "^7.22.3",
"@milkdown/crepe": "^7.22.3",
"@milkdown/ctx": "^7.22.3",
"@milkdown/kit": "^7.22.3",
"@milkdown/plugin-listener": "^7.22.3",
"@milkdown/react": "^7.22.3",
"@milkdown/theme-nord": "^7.22.3",
"@milkdown/transformer": "^7.22.3",
"@radix-ui/react-accordion": "^1.3.1",
"@radix-ui/react-alert-dialog": "^1.2.1",
"@radix-ui/react-avatar": "^1.3.1",
"@radix-ui/react-checkbox": "^1.4.1",
"@radix-ui/react-dialog": "^1.3.1",
"@radix-ui/react-dropdown-menu": "^2.2.1",
"@radix-ui/react-hover-card": "^1.2.1",
"@radix-ui/react-label": "^2.1.17",
"@radix-ui/react-popover": "^1.3.1",
"@radix-ui/react-progress": "^1.2.1",
"@radix-ui/react-radio-group": "^1.5.1",
"@radix-ui/react-scroll-area": "^1.4.0",
"@radix-ui/react-select": "^2.4.1",
"@radix-ui/react-separator": "^1.2.0",
"@radix-ui/react-slot": "^1.5.0",
"@radix-ui/react-switch": "^1.4.1",
"@radix-ui/react-tabs": "^1.2.1",
"@radix-ui/react-toggle": "^1.2.1",
"@radix-ui/react-toggle-group": "^1.2.1",
"@radix-ui/react-tooltip": "^1.4.1",
"@vueuse/core": "^14.4.0",
"@zerocat/api-client": "workspace:^",
"@zerocat/auth-core": "workspace:^",
"@zerocat/types": "workspace:^",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"date-fns": "^4.1.0",
"geist": "^1.7.0",
"highlight.js": "^11.11.1",
"lucide-react": "^1.8.0",
"next": "16.2.4",
"date-fns": "^4.4.0",
"geist": "^1.8.2",
"highlight.js": "^11.12.0",
"lucide-react": "^1.61.0",
"next": "16.4.2",
"next-themes": "^0.4.6",
"react": "19.2.4",
"react-dom": "19.2.4",
"react-hook-form": "^7.72.1",
"react": "19.3.1",
"react-dom": "19.3.1",
"react-hook-form": "^7.90.0",
"react-markdown": "^10.1.0",
"react-resizable-panels": "^2.0.19",
"react-resizable-panels": "^2.1.9",
"rehype-autolink-headings": "^7.1.0",
"rehype-highlight": "^7.0.2",
"rehype-raw": "^7.0.0",
"rehype-slug": "^6.0.0",
"reka-ui": "^2.9.6",
"reka-ui": "^2.11.0",
"remark-gfm": "^4.0.1",
"satori": "^0.26.0",
"sonner": "^2.0.7",
"tailwind-merge": "^3.5.0",
"sonner": "^2.0.8",
"tailwind-merge": "^3.7.0",
"tw-animate-css": "^1.4.0",
"zod": "^4.3.6"
"zod": "^4.6.7"
},
"devDependencies": {
"@tailwindcss/postcss": "^4",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "16.2.4",
"shadcn": "^4.7.0",
"tailwindcss": "^4",
"typescript": "^5"
"@tailwindcss/postcss": "^4.3.3",
"@types/node": "^24.19.2",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"eslint": "^9.39.5",
"eslint-config-next": "16.4.2",
"shadcn": "^4.22.1",
"tailwindcss": "^4.3.3",
"typescript": "^5.9.3"
}
}
2 changes: 1 addition & 1 deletion apps/web/.github/workflows/webpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
node-version-file: ".node-version"
cache: "pnpm"
cache-dependency-path: "pnpm-lock.yaml"

Expand Down
96 changes: 49 additions & 47 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"name": "@zerocat/web",
"version": "0.0.0",
"private": true,
"packageManager": "pnpm@9.0.0",
"packageManager": "pnpm@10.34.7",
"engines": {
"node": ">=24.22.1 <25"
},
"scripts": {
"dev": "vite --port 3141 --host",
"build": "vite build",
Expand All @@ -15,78 +18,77 @@
"update:scratchblocks-locales": "git update-scratchblocks"
},
"dependencies": {
"@fingerprintjs/fingerprintjs": "^5.0.1",
"@fingerprintjs/fingerprintjs": "^5.3.0",
"@highlightjs/vue-plugin": "^2.1.0",
"@mdi/font": "7.4.47",
"@primevue/themes": "^4.5.4",
"@sentry/vue": "^10.39.0",
"@unhead/vue": "^2.1.4",
"@vueuse/core": "^14.2.1",
"@vueuse/rxjs": "^14.2.1",
"@zerocat/auth-core": "workspace:^",
"@sentry/vue": "^10.76.2",
"@unhead/vue": "^2.1.17",
"@vueuse/core": "^14.4.0",
"@vueuse/rxjs": "^14.4.0",
"@xterm/addon-fit": "^0.11.0",
"@xterm/xterm": "^6.0.0",
"axios": "^1.13.5",
"compressorjs": "^1.2.1",
"core-js": "^3.48.0",
"@zerocat/auth-core": "workspace:^",
"axios": "^1.20.0",
"compressorjs": "^1.4.0",
"core-js": "^3.51.0",
"crypto-js": "^4.2.0",
"date-fns": "^4.1.0",
"dayjs": "^1.11.19",
"dexie": "^4.3.0",
"dompurify": "^3.3.1",
"echarts": "^6.0.0",
"date-fns": "^4.4.0",
"dayjs": "^1.11.23",
"dexie": "^4.4.7",
"dompurify": "^3.4.17",
"echarts": "^6.1.0",
"emoji-picker-element": "^1.29.1",
"fuse.js": "^7.1.0",
"fuse.js": "^7.5.0",
"github-markdown-css": "^5.9.0",
"highlight.js": "^11.11.1",
"jszip": "^3.10.1",
"highlight.js": "^11.12.0",
"jszip": "^3.10.2",
"jwt-decode": "^4.0.0",
"lodash-es": "^4.17.23",
"markdown-it": "^14.1.1",
"markdown-it-emoji": "^3.0.0",
"lodash-es": "^4.18.1",
"markdown-it": "^14.3.3",
"markdown-it-emoji": "^3.1.0",
"monaco-editor": "^0.55.1",
"prettydiff": "^101.2.6",
"primevue": "^4.5.4",
"primevue": "^4.5.5",
"qrcode": "^1.5.4",
"random-words": "^2.0.1",
"roboto-fontface": "*",
"scratchblocks": "^3.6.4",
"roboto-fontface": "^0.10.0",
"scratchblocks": "^3.7.1",
"twemoji": "^14.0.2",
"twitter-text": "^3.1.0",
"typewriter-effect": "^2.22.0",
"ua-parser-js": "^2.0.9",
"vue": "^3.5.28",
"vue-echarts": "^8.0.1",
"ua-parser-js": "^2.0.10",
"vue": "^3.5.44",
"vue-echarts": "^8.3.2",
"vuedraggable": "^4.1.0",
"vuetify": "^3.11.8"
"vuetify": "^3.13.7"
},
"devDependencies": {
"@eslint/js": "^9.19.0",
"@primevue/auto-import-resolver": "^4.5.4",
"@vitejs/plugin-vue": "^6.0.4",
"@vue/devtools": "^8.0.6",
"eslint": "^9.19.0",
"eslint-config-prettier": "^10.0.1",
"eslint-config-vuetify": "^4.3.4",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^17.15.1",
"@eslint/js": "^9.39.5",
"@primevue/auto-import-resolver": "^4.5.5",
"@vitejs/plugin-vue": "^6.0.10",
"eslint": "^9.39.5",
"eslint-config-prettier": "^10.1.8",
"eslint-config-vuetify": "^4.7.2",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-n": "^17.24.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^7.2.1",
"eslint-plugin-vue": "^10.7.0",
"fs-extra": "^11.3.3",
"eslint-plugin-promise": "^7.3.0",
"eslint-plugin-vue": "^10.11.1",
"fs-extra": "^11.4.1",
"pinia": "^3.0.4",
"rollup-plugin-visualizer": "^5.14.0",
"sass": "1.97.3",
"sass-embedded": "^1.97.3",
"unplugin-auto-import": "^21.0.0",
"sass-embedded": "^1.106.1",
"unplugin-auto-import": "^21.1.0",
"unplugin-fonts": "^1.4.0",
"unplugin-vue-components": "^31.0.0",
"unplugin-vue-components": "^31.1.0",
"unplugin-vue-router": "^0.19.2",
"vite": "^7.3.1",
"vite-plugin-pwa": "^1.2.0",
"vite-plugin-vue-devtools": "^8.0.6",
"vite": "^7.3.7",
"vite-plugin-pwa": "^1.3.0",
"vite-plugin-vue-devtools": "^8.2.1",
"vite-plugin-vue-layouts": "^0.11.0",
"vite-plugin-vuetify": "^2.1.3",
"vue-router": "^5.0.2"
"vue-router": "^5.4.0"
}
}
7 changes: 0 additions & 7 deletions apps/web/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,3 @@ if (!import.meta.env.DEV) {
});
});
}

// 如果是开发环境,异步启用 Vue DevTools
if (import.meta.env.DEV) {
import('@vue/devtools').then(({ devtools }) => {
devtools.init();
});
}
Loading
Loading