chore(release): 生产 seed 与 compose 漂移闭环、回滚重建容器、PR #29 与发布证据入库

- AUTH-D2 生产 db:seed 已执行:esbuild 打包真 seed → 生产库副本演练 → 逐表差异
  (Permission +63/−0、ContentItem 37→38、24 条随 seed 源更新、User 口令逐字节未变)
  → 停容器窗口内用生产镜像跑 → 事后取回比对。快照 prod.db.bak.20261008_174734-preseed
- H compose 漂移已消除:先 diff 证明只差挂载一行,备份后同步并重建,
  docker inspect 现取 ./uploads -> /app/public/uploads
- I cmd_rollback 追加 docker-compose build && up -d 与就绪轮询,并复用资源级 verify
- J PR #29 建成(qa/seal-2026-09-28 → dev,mergeable true);同时作废「本环境无 Gitea
  token」这条由 `2>/dev/null` 吞掉报错造成的假事实,教训入 lessons §5.35
- 新登记 K:navigation 与 site-config 在 seed 的 permissionMatrix 里无授予项
- 证据:docs/acceptance/2026-10-08-release/(build/deploy/type-check/lint 日志、
  seed 演练与逐表差异脚本及输出)
This commit is contained in:
zhangxiang committed 2026-10-08 17:58:21 +08:00
1 parent 81bdeebc64
commit c0c41eb528
10 files changed
+5805 -6

No files matched your search

@@ -0,0 +1,98 @@
> ruixin-website-react@1.0.0-phase1 build
> next build
▲ Next.js 16.3.0 (Turbopack)
- Environments: .env.local, .env.production, .env
⚠ Warning: Next.js ignored package-lock.json in /Users/zhangxiang because it is outside the current Git repository (/Users/zhangxiang/Codes/Novalon/novalon-website).
To use this directory, set `turbopack.root` in your Next.js config.
✓ Running next.config.mjs took 302ms
- Experiments (use with caution):
· clientTraceMetadata
· optimizePackageImports
Creating an optimized production build ...
✓ Compiled successfully in 2.6s
Running next.config.js provided runAfterProductionCompile ...
[@sentry/nextjs - After Production Compile] Info: Sending telemetry data on issues and performance to Sentry. To disable telemetry, set `options.telemetry` to `false`.
[@sentry/nextjs - After Production Compile] Warning: No auth token provided. Will not create release. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/
[@sentry/nextjs - After Production Compile] Warning: No auth token provided. Will not upload source maps. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/
✓ Completed runAfterProductionCompile in 1554ms
Running TypeScript ...
Finished TypeScript in 2.4s ...
Collecting page data using 7 workers ...
Generating static pages using 7 workers (0/62) ...
Generating static pages using 7 workers (15/62)
Generating static pages using 7 workers (30/62)
Generating static pages using 7 workers (46/62)
✓ Generating static pages using 7 workers (62/62) in 285ms
Finalizing page optimization ...
Route (app) Revalidate Expire
┌ ○ / 1h 1y
├ ○ /_not-found
├ ○ /about 1h 1y
├ ○ /about/brand
├ ○ /admin
├ ƒ /admin/content/[modelCode]
├ ƒ /admin/content/[modelCode]/[itemId]
├ ○ /admin/login
├ ○ /admin/media
├ ○ /admin/notifications
├ ○ /admin/roles
├ ○ /admin/users
├ ○ /admin/zones
├ ƒ /api/admin/items
├ ƒ /api/admin/items/[id]/workflow
├ ƒ /api/admin/media
├ ƒ /api/admin/models
├ ƒ /api/admin/notifications
├ ƒ /api/admin/notifications/[id]/read
├ ƒ /api/admin/notifications/read-all
├ ƒ /api/admin/notifications/unread-count
├ ƒ /api/admin/roles
├ ƒ /api/admin/stats
├ ƒ /api/admin/users
├ ƒ /api/admin/zones
├ ƒ /api/auth/login
├ ƒ /api/auth/logout
├ ƒ /api/auth/me
├ ƒ /api/auth/refresh
├ ƒ /api/cms/draft/disable
├ ƒ /api/cms/draft/enable
├ ƒ /api/cms/revalidate
├ ƒ /api/contact
├ ○ /cases 1h 1y
├ ● /cases/[slug]
├ ○ /contact 1h 1y
├ ○ /methodology 1h 1y
├ ○ /news 1h 1y
├ ƒ /news/[slug]
├ ○ /privacy 1h 1y
├ ○ /products 1h 1y
├ ƒ /products/[id]
├ ○ /products/erp-upgrade 1h 1y
├ ○ /products/erp-upgrade-v3
├ ● /products/standalone/[id]
├ ○ /robots.txt
├ ○ /services 1h 1y
├ ƒ /services/[id]
├ ○ /sitemap.xml
├ ○ /solutions 1h 1y
├ ƒ /solutions/[id]
├ ○ /team 1h 1y
└ ○ /terms 1h 1y
ƒ Proxy (Middleware)
○ (Static) prerendered as static content
● (SSG) prerendered as static HTML (uses generateStaticParams)
ƒ (Dynamic) server-rendered on demand
> ruixin-website-react@1.0.0-phase1 postbuild
> rm -rf dist/standalone/dist/static dist/standalone/public && mkdir -p dist/standalone/dist && cp -R dist/static dist/standalone/dist/static && cp -R public dist/standalone/public
BUILD_EXIT=0
File diff suppressed because it is too large. Load diff
+347
View File
@@ -0,0 +1,347 @@
> ruixin-website-react@1.0.0-phase1 lint
> eslint
/Users/zhangxiang/Codes/Novalon/novalon-website/docs/acceptance/2026-09-21-gates/probe/probe-browser-name.spec.ts
8:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
/Users/zhangxiang/Codes/Novalon/novalon-website/prisma/seed.ts
182:5 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
187:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
190:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
203:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
206:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
321:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
356:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
358:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
361:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
616:5 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
620:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
640:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
642:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
648:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
650:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
668:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
670:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
672:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
674:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
722:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
724:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
726:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
728:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
730:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
732:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
734:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
737:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
768:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
771:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
807:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
809:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
852:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
854:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
890:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
892:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
913:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
915:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
938:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
940:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
949:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
951:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
999:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
1001:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
1062:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
1065:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
1067:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
1074:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
1075:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
1076:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
1077:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
1078:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
/Users/zhangxiang/Codes/Novalon/novalon-website/sentry.server.config.ts
40:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
/Users/zhangxiang/Codes/Novalon/novalon-website/src/app/(marketing)/home-content-v15.tsx
120:36 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
156:29 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
272:60 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
509:78 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
510:61 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
512:40 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
515:29 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
552:32 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
555:38 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
555:59 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
562:74 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
562:90 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
636:69 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
714:77 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
789:85 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
828:120 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
930:73 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
954:29 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
955:26 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
956:26 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
957:29 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
/Users/zhangxiang/Codes/Novalon/novalon-website/src/app/(marketing)/methodology/methodology-content.tsx
20:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
/Users/zhangxiang/Codes/Novalon/novalon-website/src/app/(marketing)/news/[slug]/NewsDetailClient.tsx
79:17 warning Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element
113:29 warning Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element
/Users/zhangxiang/Codes/Novalon/novalon-website/src/app/(marketing)/news/news-content-v3.tsx
37:13 warning Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element
/Users/zhangxiang/Codes/Novalon/novalon-website/src/app/(marketing)/news/news-detail-content-v3.tsx
29:13 warning Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element
105:17 warning Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element
/Users/zhangxiang/Codes/Novalon/novalon-website/src/app/admin/content/[modelCode]/[itemId]/page.tsx
652:15 warning Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element
/Users/zhangxiang/Codes/Novalon/novalon-website/src/app/admin/content/[modelCode]/page.tsx
106:15 warning Error: Calling setState synchronously within an effect can trigger cascading renders
Effects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:
* Update external systems with the latest state from React.
* Subscribe for updates from some external system, calling setState in a callback function when external state changes.
Calling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).
/Users/zhangxiang/Codes/Novalon/novalon-website/src/app/admin/content/[modelCode]/page.tsx:106:15
104 | return;
105 | }
> 106 | if (user) fetchItems();
| ^^^^^^^^^^ Avoid calling setState() directly within an effect
107 | }, [user, authLoading, router, fetchItems]);
108 |
109 | const openDeleteDialog = (id: string) => { react-hooks/set-state-in-effect
/Users/zhangxiang/Codes/Novalon/novalon-website/src/app/admin/media/page.tsx
59:15 warning Error: Calling setState synchronously within an effect can trigger cascading renders
Effects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:
* Update external systems with the latest state from React.
* Subscribe for updates from some external system, calling setState in a callback function when external state changes.
Calling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).
/Users/zhangxiang/Codes/Novalon/novalon-website/src/app/admin/media/page.tsx:59:15
57 | return;
58 | }
> 59 | if (user) fetchMedia();
| ^^^^^^^^^^ Avoid calling setState() directly within an effect
60 | }, [user, authLoading, router]);
61 |
62 | const handleUpload = async (e: React.ChangeEvent<HTMLInputElement>) => { react-hooks/set-state-in-effect
159:17 warning Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element
/Users/zhangxiang/Codes/Novalon/novalon-website/src/app/admin/notifications/page.tsx
112:7 warning Error: Calling setState synchronously within an effect can trigger cascading renders
Effects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:
* Update external systems with the latest state from React.
* Subscribe for updates from some external system, calling setState in a callback function when external state changes.
Calling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).
/Users/zhangxiang/Codes/Novalon/novalon-website/src/app/admin/notifications/page.tsx:112:7
110 | }
111 | if (user) {
> 112 | fetchNotifications();
| ^^^^^^^^^^^^^^^^^^ Avoid calling setState() directly within an effect
113 | fetchUnreadCount();
114 | }
115 | }, [user, authLoading, router, fetchNotifications, fetchUnreadCount]); react-hooks/set-state-in-effect
/Users/zhangxiang/Codes/Novalon/novalon-website/src/app/admin/roles/page.tsx
77:15 warning Error: Calling setState synchronously within an effect can trigger cascading renders
Effects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:
* Update external systems with the latest state from React.
* Subscribe for updates from some external system, calling setState in a callback function when external state changes.
Calling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).
/Users/zhangxiang/Codes/Novalon/novalon-website/src/app/admin/roles/page.tsx:77:15
75 | return;
76 | }
> 77 | if (user) fetchRoles();
| ^^^^^^^^^^ Avoid calling setState() directly within an effect
78 | }, [user, authLoading, router, fetchRoles]);
79 |
80 | const selectedRoleInfo = roles.find((r) => r.code === selectedRole); react-hooks/set-state-in-effect
/Users/zhangxiang/Codes/Novalon/novalon-website/src/app/admin/users/page.tsx
138:7 warning Error: Calling setState synchronously within an effect can trigger cascading renders
Effects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:
* Update external systems with the latest state from React.
* Subscribe for updates from some external system, calling setState in a callback function when external state changes.
Calling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).
/Users/zhangxiang/Codes/Novalon/novalon-website/src/app/admin/users/page.tsx:138:7
136 | }
137 | if (user) {
> 138 | fetchUsers();
| ^^^^^^^^^^ Avoid calling setState() directly within an effect
139 | fetchRoles();
140 | }
141 | }, [user, authLoading, router, fetchUsers, fetchRoles]); react-hooks/set-state-in-effect
/Users/zhangxiang/Codes/Novalon/novalon-website/src/app/global-error.tsx
57:13 warning Do not use an `<a>` element to navigate to `/`. Use `<Link />` from `next/link` instead. See: https://nextjs.org/docs/messages/no-html-link-for-pages @next/next/no-html-link-for-pages
/Users/zhangxiang/Codes/Novalon/novalon-website/src/components/admin/auth-context.tsx
45:9 warning Error: Calling setState synchronously within an effect can trigger cascading renders
Effects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:
* Update external systems with the latest state from React.
* Subscribe for updates from some external system, calling setState in a callback function when external state changes.
Calling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).
/Users/zhangxiang/Codes/Novalon/novalon-website/src/components/admin/auth-context.tsx:45:9
43 | if (savedToken && savedUser) {
44 | try {
> 45 | setToken(savedToken);
| ^^^^^^^^ Avoid calling setState() directly within an effect
46 | setUser(JSON.parse(savedUser));
47 | } catch {
48 | localStorage.removeItem('novalon_admin_token'); react-hooks/set-state-in-effect
/Users/zhangxiang/Codes/Novalon/novalon-website/src/components/analytics/GlobalErrorTracker.tsx
74:7 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
/Users/zhangxiang/Codes/Novalon/novalon-website/src/components/analytics/GoogleAnalytics.test.tsx
34:12 warning Synchronous scripts should not be used. See: https://nextjs.org/docs/messages/no-sync-scripts @next/next/no-sync-scripts
/Users/zhangxiang/Codes/Novalon/novalon-website/src/components/detail/detail-product-value.tsx
79:7 warning Error: Calling setState synchronously within an effect can trigger cascading renders
Effects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:
* Update external systems with the latest state from React.
* Subscribe for updates from some external system, calling setState in a callback function when external state changes.
Calling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).
/Users/zhangxiang/Codes/Novalon/novalon-website/src/components/detail/detail-product-value.tsx:79:7
77 | if (!isInView) return;
78 | if (isNaN(numericValue)) {
> 79 | setDisplayValue(value);
| ^^^^^^^^^^^^^^^ Avoid calling setState() directly within an effect
80 | return;
81 | }
82 | let frame = 0; react-hooks/set-state-in-effect
/Users/zhangxiang/Codes/Novalon/novalon-website/src/components/detail/detail-trust-section.tsx
30:7 warning Error: Calling setState synchronously within an effect can trigger cascading renders
Effects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:
* Update external systems with the latest state from React.
* Subscribe for updates from some external system, calling setState in a callback function when external state changes.
Calling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).
/Users/zhangxiang/Codes/Novalon/novalon-website/src/components/detail/detail-trust-section.tsx:30:7
28 | const numericValue = parseFloat(value.replace(/[^0-9.]/g, ''));
29 | if (isNaN(numericValue)) {
> 30 | setDisplayValue(value);
| ^^^^^^^^^^^^^^^ Avoid calling setState() directly within an effect
31 | return;
32 | }
33 | react-hooks/set-state-in-effect
/Users/zhangxiang/Codes/Novalon/novalon-website/src/components/detail/product-card.test.tsx
42:5 warning Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element
/Users/zhangxiang/Codes/Novalon/novalon-website/src/components/layout/footer.test.tsx
23:5 warning Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element
/Users/zhangxiang/Codes/Novalon/novalon-website/src/components/layout/header.test.tsx
30:5 warning Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element
/Users/zhangxiang/Codes/Novalon/novalon-website/src/components/ui/loading-state.tsx
44:9 warning Error: Calling setState synchronously within an effect can trigger cascading renders
Effects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:
* Update external systems with the latest state from React.
* Subscribe for updates from some external system, calling setState in a callback function when external state changes.
Calling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).
/Users/zhangxiang/Codes/Novalon/novalon-website/src/components/ui/loading-state.tsx:44:9
42 |
43 | if (!isLoading) {
> 44 | setShowSkeleton(false);
| ^^^^^^^^^^^^^^^ Avoid calling setState() directly within an effect
45 | return;
46 | }
47 | react-hooks/set-state-in-effect
158:7 warning Error: Calling setState synchronously within an effect can trigger cascading renders
Effects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:
* Update external systems with the latest state from React.
* Subscribe for updates from some external system, calling setState in a callback function when external state changes.
Calling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).
/Users/zhangxiang/Codes/Novalon/novalon-website/src/components/ui/loading-state.tsx:158:7
156 | useEffect(() => {
157 | if (!isLoading) {
> 158 | setShouldShow(false);
| ^^^^^^^^^^^^^ Avoid calling setState() directly within an effect
159 | return;
160 | }
161 | react-hooks/set-state-in-effect
/Users/zhangxiang/Codes/Novalon/novalon-website/src/components/ui/page-transition.tsx
41:5 warning Error: Calling setState synchronously within an effect can trigger cascading renders
Effects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:
* Update external systems with the latest state from React.
* Subscribe for updates from some external system, calling setState in a callback function when external state changes.
Calling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).
/Users/zhangxiang/Codes/Novalon/novalon-website/src/components/ui/page-transition.tsx:41:5
39 |
40 | useEffect(() => {
> 41 | setMounted(true);
| ^^^^^^^^^^ Avoid calling setState() directly within an effect
42 | }, []);
43 |
44 | // SSR 和首次 hydration 阶段直接渲染子内容,避免 framer-motion DOM 差异导致 hydration mismatch react-hooks/set-state-in-effect
/Users/zhangxiang/Codes/Novalon/novalon-website/src/hooks/use-count-up.ts
30:7 warning Error: Calling setState synchronously within an effect can trigger cascading renders
Effects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:
* Update external systems with the latest state from React.
* Subscribe for updates from some external system, calling setState in a callback function when external state changes.
Calling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).
/Users/zhangxiang/Codes/Novalon/novalon-website/src/hooks/use-count-up.ts:30:7
28 | useEffect(() => {
29 | if (!enabled) {
> 30 | setValue(end);
| ^^^^^^^^ Avoid calling setState() directly within an effect
31 | return;
32 | }
33 | react-hooks/set-state-in-effect
/Users/zhangxiang/Codes/Novalon/novalon-website/src/hooks/use-reduced-motion.ts
34:61 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
35:63 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
49:19 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
/Users/zhangxiang/Codes/Novalon/novalon-website/src/instrumentation-client.ts
88:3 warning Unexpected console statement. Only these console methods are allowed: warn, error no-console
✖ 104 problems (0 errors, 104 warnings)
@@ -0,0 +1,55 @@
import { DatabaseSync } from 'node:sqlite';
const before = new DatabaseSync('/tmp/prod-copy.db');
const after = new DatabaseSync('/tmp/prod-seed-rehearsal.db');
const tables = ['User', 'Role', 'Permission', 'UserRole', 'ContentModel', 'ContentZone', 'ContentItem', 'MediaAsset', 'AuditLog', 'Notification'];
const q = (db, s) => db.prepare(s).all();
console.log('=== 行数变化 ===');
for (const t of tables) {
try {
const b = q(before, `select count(*) n from ${t}`)[0].n;
const a = q(after, `select count(*) n from ${t}`)[0].n;
console.log(`${(b === a ? ' =' : ' !=').padEnd(3)} ${t.padEnd(14)} before=${b} after=${a}`);
} catch (e) { console.log(` ?? ${t} ${e.message}`); }
}
console.log('\n=== Permission 差集(roleCode|modelCode|action) ===');
const key = (r) => `${r.roleCode}|${r.modelCode}|${r.action}`;
const bp = new Set(q(before, 'select roleCode, modelCode, action from Permission').map(key));
const ap = new Set(q(after, 'select roleCode, modelCode, action from Permission').map(key));
const added = [...ap].filter((k) => !bp.has(k)).sort();
const removed = [...bp].filter((k) => !ap.has(k)).sort();
console.log(`新增 ${added.length} 条,删除 ${removed.length} 条`);
added.forEach((k) => console.log(' + ' + k));
removed.forEach((k) => console.log(' - ' + k));
console.log('\n=== 仍缺失授予的模型(Permission 里没有的 modelCode) ===');
const models = q(after, 'select code from ContentModel').map((r) => r.code);
const granted = new Set(q(after, 'select distinct modelCode from Permission').map((r) => r.modelCode));
console.log(models.filter((m) => !granted.has(m)).join(', ') || '(无)');
console.log('\n=== ContentItem 变化(按 modelCode 统计 title/data 是否变) ===');
const bi = new Map(q(before, 'select id, modelCode, slug, title, data from ContentItem').map((r) => [`${r.modelCode}/${r.slug}`, r]));
const ai = new Map(q(after, 'select id, modelCode, slug, title, data from ContentItem').map((r) => [`${r.modelCode}/${r.slug}`, r]));
let changed = 0, created = 0, deleted = 0, dataDiff = [];
for (const [k, a] of ai) {
const b = bi.get(k);
if (!b) { created++; console.log(` NEW ${k}`); continue; }
if (b.title !== a.title || b.data !== a.data) { changed++; dataDiff.push(k); }
}
for (const k of bi.keys()) if (!ai.has(k)) { deleted++; console.log(` GONE ${k}`); }
console.log(`内容条目:title/data 变化 ${changed},新增 ${created},删除 ${deleted}`);
dataDiff.slice(0, 12).forEach((k) => console.log(' * ' + k));
console.log('\n=== User 口令与状态是否被动过 ===');
for (const u of q(after, 'select username, password, status from User')) {
const p = q(before, `select password, status from User where username='${u.username}'`)[0];
console.log(` ${u.username}: password ${p && p.password === u.password ? 'unchanged' : 'CHANGED'}, status ${p?.status}->${u.status}`);
}
console.log('\n=== ContentModel / ContentZone 新增项 ===');
const bm = new Set(q(before, 'select code from ContentModel').map((r) => r.code));
console.log('模型新增: ' + (q(after, 'select code from ContentModel').map((r) => r.code).filter((c) => !bm.has(c)).join(', ') || '无'));
const bz = new Set(q(before, 'select code from ContentZone').map((r) => r.code));
console.log('区域新增: ' + (q(after, 'select code from ContentZone').map((r) => r.code).filter((c) => !bz.has(c)).join(', ') || '无'));
@@ -0,0 +1,105 @@
=== 行数变化 ===
= User before=3 after=3
= Role before=5 after=5
!= Permission before=132 after=195
= UserRole before=3 after=3
= ContentModel before=16 after=16
= ContentZone before=6 after=6
!= ContentItem before=37 after=38
= MediaAsset before=0 after=0
= AuditLog before=18 after=18
= Notification before=5 after=5
=== Permission 差集(roleCode|modelCode|action) ===
新增 63 条,删除 0 条
+ content_admin|contact-page|create
+ content_admin|contact-page|delete
+ content_admin|contact-page|publish
+ content_admin|contact-page|read
+ content_admin|contact-page|update
+ content_admin|content-model|read
+ content_admin|content-zone|read
+ content_admin|legal-page|create
+ content_admin|legal-page|delete
+ content_admin|legal-page|publish
+ content_admin|legal-page|read
+ content_admin|legal-page|update
+ content_admin|methodology|create
+ content_admin|methodology|delete
+ content_admin|methodology|publish
+ content_admin|methodology|read
+ content_admin|methodology|update
+ content_admin|page-copy|create
+ content_admin|page-copy|delete
+ content_admin|page-copy|publish
+ content_admin|page-copy|read
+ content_admin|page-copy|update
+ content_admin|team-page|create
+ content_admin|team-page|delete
+ content_admin|team-page|publish
+ content_admin|team-page|read
+ content_admin|team-page|update
+ content_editor|contact-page|create
+ content_editor|contact-page|read
+ content_editor|contact-page|update
+ content_editor|content-model|read
+ content_editor|content-zone|read
+ content_editor|legal-page|create
+ content_editor|legal-page|read
+ content_editor|legal-page|update
+ content_editor|methodology|create
+ content_editor|methodology|read
+ content_editor|methodology|update
+ content_editor|page-copy|create
+ content_editor|page-copy|read
+ content_editor|page-copy|update
+ content_editor|team-page|create
+ content_editor|team-page|read
+ content_editor|team-page|update
+ readonly|contact-page|read
+ readonly|content-model|read
+ readonly|content-zone|read
+ readonly|legal-page|read
+ readonly|methodology|read
+ readonly|page-copy|read
+ readonly|team-page|read
+ reviewer|contact-page|publish
+ reviewer|contact-page|read
+ reviewer|content-model|read
+ reviewer|content-zone|read
+ reviewer|legal-page|publish
+ reviewer|legal-page|read
+ reviewer|methodology|publish
+ reviewer|methodology|read
+ reviewer|page-copy|publish
+ reviewer|page-copy|read
+ reviewer|team-page|publish
+ reviewer|team-page|read
=== 仍缺失授予的模型(Permission 里没有的 modelCode) ===
navigation, site-config
=== ContentItem 变化(按 modelCode 统计 title/data 是否变) ===
NEW methodology/default
内容条目:title/data 变化 24,新增 1,删除 0
* hero-banner/home
* service/consulting
* service/software
* service/solutions
* product/erp
* product/crm
* product/cms
* product/bi
* product/sds
* product/oa
* standalone-product/novavis
* solution/manufacturing
=== User 口令与状态是否被动过 ===
admin: password unchanged, status 1->1
e2e_editor: password unchanged, status 1->1
e2e_reviewer: password unchanged, status 1->1
=== ContentModel / ContentZone 新增项 ===
模型新增: 无
区域新增: 无
@@ -0,0 +1,77 @@
🌱 开始数据库初始化...
📝 创建管理员用户...
✅ 管理员: admin / admin123
📝 创建 RBAC 角色与权限...
📝 创建 E2E 测试用户...
✅ E2E 测试用户: e2e_editor / editor123, e2e_reviewer / reviewer123
✅ RBAC 角色与权限初始化完成
📝 创建内容模型...
✅ 模型: 新闻资讯 (news)
✅ 模型: 服务 (service)
✅ 模型: 产品 (product)
✅ 模型: 独立产品 (standalone-product)
✅ 模型: 解决方案 (solution)
✅ 模型: 案例研究 (case-study)
✅ 模型: Hero Banner (hero-banner)
✅ 模型: 数据指标 (stat-item)
✅ 模型: 关于我们 (about-page)
✅ 模型: 团队介绍 (team-page)
✅ 模型: 联系我们 (contact-page)
✅ 模型: 法律页面 (legal-page)
✅ 模型: 方法论 (methodology)
✅ 模型: 页面文案 (page-copy)
✅ 模型: 关于我们 (about-page)
✅ 模型: 团队介绍 (team-page)
✅ 模型: 联系我们 (contact-page)
✅ 模型: 站点配置 (site-config)
✅ 模型: 导航菜单 (navigation)
✅ 模型: 法律页面 (legal-page)
✅ 模型: 方法论 (methodology)
📝 导入首页 Hero Banner...
✅ 首页 Hero Banner
📝 导入案例研究...
✅ 0 个案例
📝 导入方法论...
✅ 方法论(四阶段模型)
📝 导入新闻...
✅ 2 条新闻
📝 导入服务...
✅ 4 个服务
📝 导入产品...
✅ 6 个产品
📝 导入独立产品...
✅ 1 个独立产品
📝 导入解决方案...
✅ 6 个解决方案
📝 导入数据指标...
✅ 4 个数据指标
📝 导入关于页面...
✅ 关于页面
📝 导入团队页面...
✅ 团队页面
📝 导入联系页面...
✅ 联系页面
📝 导入法律页面...
✅ 法律页面
📝 导入站点配置...
✅ 站点配置
📝 导入导航菜单...
✅ 导航菜单
📝 导入首页文案配置...
✅ 首页文案配置
📝 导入列表页文案配置...
✅ 列表页文案配置
📝 创建默认内容区域...
✅ 区域: 首页 - Hero Banner
✅ 区域: 首页 - 数据指标
✅ 区域: 首页 - 服务展示
✅ 区域: 首页 - 解决方案
✅ 区域: 首页 - 精选案例
✅ 区域: 首页 - 新闻动态
✅ 首页内容区域创建完成
🎉 数据库初始化完成!
📊 内容模型: 16
📄 内容条目: 38
🗂️ 内容区域: 6
👤 管理员: admin / admin123
@@ -0,0 +1,4 @@
> ruixin-website-react@1.0.0-phase1 type-check
> tsc --noEmit