feat!: 将项目有Strapi迁移至Directus #43

Manually merged
remilia merged 30 commits from feat/directus into master 2025-10-24 17:22:40 +08:00
Owner

关联Issue

#42

更改内容/What Changed

  • 将项目的后端CMS由Strapi迁移至Directus
  • 加强类型标注
  • 调整部分路由名称
  • 分离原始后端数据与视图对象数据

测试步骤/How To Test

No response

检查表/Checklist

  • 代码格式符合团队规范
  • 已添加或更新单元测试/集成测试
  • 文档/README 已更新(如有必要)
  • 所有测试通过
  • 分支命名正确(feature/xxx或fix/xxx 等)
  • 回归风险已评估

影响评估/Risk & Rollback

No response

可选:截图或 Demo(如界面/UI 有变化)

No response

### 关联Issue #42 ### 更改内容/What Changed - 将项目的后端CMS由Strapi迁移至Directus - 加强类型标注 - 调整部分路由名称 - 分离原始后端数据与视图对象数据 ### 测试步骤/How To Test _No response_ ### 检查表/Checklist - [x] 代码格式符合团队规范 - [x] 已添加或更新单元测试/集成测试 - [x] 文档/README 已更新(如有必要) - [x] 所有测试通过 - [x] 分支命名正确(feature/xxx或fix/xxx 等) - [x] 回归风险已评估 ### 影响评估/Risk & Rollback _No response_ ### 可选:截图或 Demo(如界面/UI 有变化) _No response_
remilia added the
Kind/Feature
Compat/Breaking
labels 2025-10-24 17:03:35 +08:00
remilia added 30 commits 2025-10-24 17:03:36 +08:00
- 导入Directus SDK
- 配置Directus RuntimeConfig
style(types): directus类型标注
All checks were successful
deploy to server / build-and-deploy (push) Successful in 5m24s
33c94fb885
- 使用directus-sdk-typegen生成Directus类型
- 使用Directus-sdk-typegen生成Directus类型标注
- plugins:Directus插件
- composable:Directus图片/文件的相关组合式函数
- views: 用于前端渲染的视图模型
- mapper: 用于视图模型转换的转换函数
- utils: 相关工具函数
fix: 修改file工具函数
All checks were successful
deploy to server / build-and-deploy (push) Successful in 6m20s
cb861bc955
- 新增基于filename获取拓展名的函数
- 将文件大小格式化由以KB为基准修改为以Byte为基准
- 将Directus相关的组合式API移入composables/direcuts
- 添加getDirectusLocale方法用于获取Directus本地化字段
feat: 产品页的组合式API
All checks were successful
deploy to server / build-and-deploy (push) Successful in 5m11s
227b537a0f
- 为product和product-list添加组合式API
- 将/solutions与/solutions/[slug]页现在由Directus作为CMS
- 添加solution页的composable API
feat: solution页composable API
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m22s
0ccd855472
- 修改nuxt.config.ts
- 路由界面脚本修改
- 视图模型相关定义
- QuestionList.vue: Array as PropType<QuestionView[]> => Array as
PropType<ProductQuestionView[]>
chore: 更新directus类型标注
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m6s
bc625239cd
- 更新types/directus/my-schema.ts
- 修改/support/documents.vue,将相关数据获取迁移到Directus
- 增添相应的视图模型与映射方法
- 修改相关Vue路由
- 添加相应的视图模型与转换方法
- 将ContactInfoTranslation的content由json改为markdown文本
- 将CompanyProfileTranslation中content字段类型由json改为markdown文本
- 修改相关路由界面
- 增添相应的视图模型与转换方法
- 相关路由界面修改
- 增添响应的视图模型与转换方法
- 路由页面相关源码修改
- 类型标注与组合式API
- 相关工具函数
- production -> product
fix: product命名修正
Some checks failed
deploy to server / build-and-deploy (push) Has been cancelled
393dc3885b
fix: 修正组件渲染bug
All checks were successful
deploy to server / build-and-deploy (push) Successful in 4m17s
e403252dba
fix: 修正Tab切换时的显示问题
All checks were successful
deploy to server / build-and-deploy (push) Successful in 2m46s
b1ff62a3bb
- 切换Tab时重置页码
remilia manually merged commit 088eee07bf into master 2025-10-24 17:22:40 +08:00
remilia deleted branch feat/directus 2025-10-25 13:39:32 +08:00
Sign in to join this conversation.
No description provided.