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

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

30 Commits

Author SHA1 Message Date
b1ff62a3bb fix: 修正Tab切换时的显示问题
All checks were successful
deploy to server / build-and-deploy (push) Successful in 2m46s
- 切换Tab时重置页码
2025-10-24 17:01:29 +08:00
e403252dba fix: 修正组件渲染bug
All checks were successful
deploy to server / build-and-deploy (push) Successful in 4m17s
2025-10-24 16:44:47 +08:00
393dc3885b fix: product命名修正
Some checks failed
deploy to server / build-and-deploy (push) Has been cancelled
2025-10-24 16:42:39 +08:00
963690bf53 fix: 相关命名修正
- production -> product
2025-10-24 16:41:48 +08:00
e780997a69 build: 移除nuxt的strapi模块 2025-10-24 16:20:55 +08:00
4e88fd9bfb chore: 删除Strapi类型标注 2025-10-24 16:18:40 +08:00
f62c4a3987 feat: 将搜索页面由Strapi迁移至Direcuts
- 路由页面相关源码修改
- 类型标注与组合式API
- 相关工具函数
2025-10-24 16:18:26 +08:00
05938550e6 feat: 将首页由Strapi迁移至Directus
- 相关路由界面修改
- 增添响应的视图模型与转换方法
2025-10-20 15:07:37 +08:00
c156d1414c feat: 将/about界面由Strapi迁移至Directus
- 修改相关路由界面
- 增添相应的视图模型与转换方法
2025-10-20 13:48:57 +08:00
faf2eb4b44 chore: 更新directus类型
- 将CompanyProfileTranslation中content字段类型由json改为markdown文本
2025-10-20 13:46:06 +08:00
8269155ae3 chore: 更新directus类型
- 将ContactInfoTranslation的content由json改为markdown文本
2025-10-20 13:13:55 +08:00
e48c7fe238 feat: 将/support/contact-us由Strapi迁移至Directus
- 修改相关Vue路由
- 添加相应的视图模型与转换方法
2025-10-20 13:13:19 +08:00
440a46850a feat: 将/support/documents路由的数据获取由Strapi转为Directus
- 修改/support/documents.vue,将相关数据获取迁移到Directus
- 增添相应的视图模型与映射方法
2025-10-20 12:30:24 +08:00
bc625239cd chore: 更新directus类型标注
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m6s
- 更新types/directus/my-schema.ts
2025-10-18 16:58:16 +08:00
94d3f31cbd feat: 组件参数类型名更改
- QuestionList.vue: Array as PropType<QuestionView[]> => Array as
PropType<ProductQuestionView[]>
2025-10-18 16:26:08 +08:00
46e79f0b5c feat: 将/support/faq界面迁移至Directus
- 路由界面脚本修改
- 视图模型相关定义
2025-10-18 16:24:45 +08:00
f53b86cbb6 fix: 修正拼写错误
- 修改nuxt.config.ts
2025-10-18 15:28:08 +08:00
0ccd855472 feat: solution页composable API
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m22s
2025-10-17 16:24:13 +08:00
568701a80e feat: 将解决方案页迁移至directus
- 将/solutions与/solutions/[slug]页现在由Directus作为CMS
- 添加solution页的composable API
2025-10-17 16:23:48 +08:00
9abe6431a6 fix: 更新directus类型标注 2025-10-17 16:22:39 +08:00
227b537a0f feat: 产品页的组合式API
All checks were successful
deploy to server / build-and-deploy (push) Successful in 5m11s
- 为product和product-list添加组合式API
2025-10-16 16:02:20 +08:00
6c76d81a40 feat: 为directus做I18n适配
- 添加getDirectusLocale方法用于获取Directus本地化字段
2025-10-16 15:14:46 +08:00
202657e634 chore: 调整目录结构
- 将Directus相关的组合式API移入composables/direcuts
2025-10-16 14:56:46 +08:00
cb861bc955 fix: 修改file工具函数
All checks were successful
deploy to server / build-and-deploy (push) Successful in 6m20s
- 新增基于filename获取拓展名的函数
- 将文件大小格式化由以KB为基准修改为以Byte为基准
2025-10-15 16:50:27 +08:00
1704a7b5c1 feat: production页的CMS变更 2025-10-15 16:49:08 +08:00
98f978484c feat: directus视图与转换函数
- views: 用于前端渲染的视图模型
- mapper: 用于视图模型转换的转换函数
- utils: 相关工具函数
2025-10-15 16:48:38 +08:00
de7c03a7a9 feat: directus插件与组合式函数编写
- plugins:Directus插件
- composable:Directus图片/文件的相关组合式函数
2025-10-15 16:47:33 +08:00
e158ec8cf5 fix: directus类型标注更新
- 使用Directus-sdk-typegen生成Directus类型标注
2025-10-15 16:45:50 +08:00
33c94fb885 style(types): directus类型标注
All checks were successful
deploy to server / build-and-deploy (push) Successful in 5m24s
- 使用directus-sdk-typegen生成Directus类型
2025-10-13 16:56:28 +08:00
e05f248b66 chore: 导入Directus依赖
- 导入Directus SDK
- 配置Directus RuntimeConfig
2025-10-13 16:53:13 +08:00