chore(cms): 清理旧版 CMS 客户端代码,完成 CMS 迁移

- 删除已废弃的 CMS 客户端代码:mock-data、registry、client、storage、renderers 等
- 删除已归档的 CMS 页面组件:home-content-cms、news-content-cms、services-content-cms 等
- 删除 CMS Studio 页面
- 将 CaseStudyData 类型移至 types.ts,统一类型定义
- 移除 content-types 对 registry 的依赖,内联 ContentTypeConfig
- 修复测试文件中对已删除 mock-data 的引用
- 添加 site-config 和 navigation 内容模型种子数据
- 更新 revalidate API 路由使用 CONTENT_TYPE_CONFIGS

共修改 34 个文件,+132 / -5993 行
This commit is contained in:
张翔
2026-07-07 11:44:56 +08:00
parent 1959f6455f
commit 55381d7012
34 changed files with 134 additions and 5995 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import { notFound } from 'next/navigation';
import CaseDetailPage from '@/components/sections/case-detail-page';
import { ScrollProgress } from '@/components/ui/scroll-progress';
import type { ContentItem } from '@/lib/cms/types';
import type { CaseStudyData } from '@/lib/cms/mock-data';
import type { CaseStudyData } from '@/lib/cms/types';
interface CaseDetailClientProps {
item: ContentItem;
+1 -1
View File
@@ -2,7 +2,7 @@ import { notFound } from 'next/navigation';
import { CaseDetailClient } from './client';
import { getPublishedItemBySlug, getAllPublishedSlugs } from '@/lib/cms/data-server';
import { COMPANY_INFO } from '@/lib/constants/company';
import type { CaseStudyData } from '@/lib/cms/mock-data';
import type { CaseStudyData } from '@/lib/cms/types';
import type { Metadata } from 'next';
interface CaseDetailPageProps {