From 359aaec8a9d87867881e40e8c678cef2b8d9a249 Mon Sep 17 00:00:00 2001 From: R2m1liA <15258427350@163.com> Date: Wed, 17 Sep 2025 15:50:29 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=A0=BC=E5=BC=8F=E5=8C=96=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 根据prettier配置格式化整个项目的代码 --- README.md | 34 +- app/app.vue | 40 +-- app/assets/css/fonts.css | 48 ++- app/assets/scss/element/dark.scss | 6 +- app/assets/scss/element/index.scss | 28 +- app/assets/scss/index.scss | 5 +- app/components/DocumentList.vue | 72 ++-- app/components/JinshenFooter.vue | 368 +++++++++---------- app/components/JinshenHeader.vue | 192 +++++----- app/components/MarkdownRenderer.vue | 100 +++--- app/components/ProductionCard.vue | 116 +++--- app/components/QuestionList.vue | 76 ++-- app/components/SolutionCard.vue | 104 +++--- app/components/SpecTable.vue | 32 +- app/components/SupportTabs.vue | 78 ++-- app/composables/useLocalizations.ts | 16 +- app/composables/useMeilisearch.ts | 16 +- app/layouts/default.vue | 36 +- app/pages/[...all].vue | 6 +- app/pages/about/index.vue | 146 ++++---- app/pages/index.vue | 304 ++++++++-------- app/pages/productions/[...slug].vue | 292 +++++++-------- app/pages/productions/index.vue | 194 +++++----- app/pages/search.vue | 539 ++++++++++++++-------------- app/pages/solutions/[...slug].vue | 148 ++++---- app/pages/solutions/index.vue | 144 ++++---- app/pages/support/contact-us.vue | 98 ++--- app/pages/support/documents.vue | 92 ++--- app/pages/support/faq.vue | 84 ++--- app/pages/support/index.vue | 166 ++++----- app/types/strapi/index.ts | 10 +- app/types/strapi/production.ts | 8 +- app/types/strapi/question.ts | 2 +- app/types/strapi/solution.ts | 2 +- app/utils/file.ts | 2 +- app/utils/markdown.ts | 8 +- commitlint.config.mjs | 4 +- eslint.config.mjs | 19 +- i18n.config.ts | 4 +- i18n/i18n.config.ts | 9 +- nuxt.config.ts | 97 +++-- prettier.config.mjs | 14 +- uno.config.ts | 19 +- 43 files changed, 1900 insertions(+), 1878 deletions(-) diff --git a/README.md b/README.md index 7e8b174..ae7c747 100644 --- a/README.md +++ b/README.md @@ -5,20 +5,19 @@ ## 站点内容 - 首页 - - 首页Banner - - 推荐产品 + - 首页Banner + - 推荐产品 - 产品展示 - - 产品列表分类展示 - - 产品详情页 + - 产品列表分类展示 + - 产品详情页 - 解决方案 - - 以Markdown形式渲染解决方案文章 + - 以Markdown形式渲染解决方案文章 - 服务支持 - - 常见问题列表 - - 文档资料列表 - - 联系信息 + - 常见问题列表 + - 文档资料列表 + - 联系信息 - 关于我们 - - 公司基本信息 - + - 公司基本信息 ## 安装与设置 @@ -27,25 +26,25 @@ 1. 克隆项目仓库: -``` bash +```bash git clone http://192.168.84.125/remilia/jinshen-website.git ``` 2. 进入项目目录: -``` bash +```bash cd jinshen-website ``` 3. 安装依赖 -``` bash +```bash pnpm install ``` 4. 运行开发环境 -``` bash +```bash pnpm run dev ``` @@ -65,15 +64,18 @@ pnpm run dev 1. 构建生产版本 项目构建 -``` bash + +```bash pnpm run build ``` 预览构建版本 + ```bash pnpm run preview ``` 2. 部署 -部署构建后的项目并推送到文件服务器中,具体步骤视服务器配置而定 \ No newline at end of file +部署构建后的项目并推送到文件服务器中,具体步骤视服务器配置而定 + diff --git a/app/app.vue b/app/app.vue index a45597f..c6553da 100644 --- a/app/app.vue +++ b/app/app.vue @@ -9,28 +9,28 @@ diff --git a/app/assets/css/fonts.css b/app/assets/css/fonts.css index 029e9e3..142e7fb 100644 --- a/app/assets/css/fonts.css +++ b/app/assets/css/fonts.css @@ -1,26 +1,36 @@ @font-face { - font-family: "Source Han Sans CN"; - src: url("/fonts/source-han-sans/SourceHanSansCN-Regular-Alphabetic.woff2") format("woff2"), - url("/fonts/source-han-sans/SourceHanSansCN-Regular-Alphabetic.woff") format("woff"); - font-weight: 400; - font-style: normal; - font-display: swap; + font-family: "Source Han Sans CN"; + src: + url("/fonts/source-han-sans/SourceHanSansCN-Regular-Alphabetic.woff2") + format("woff2"), + url("/fonts/source-han-sans/SourceHanSansCN-Regular-Alphabetic.woff") + format("woff"); + font-weight: 400; + font-style: normal; + font-display: swap; } @font-face { - font-family: "Source Han Sans CN"; - src: url("/fonts/source-han-sans/SourceHanSansCN-Bold-Alphabetic.woff2") format("woff2"), - url("/fonts/source-han-sans/SourceHanSansCN-Bold-Alphabetic.woff") format("woff"); - font-weight: 700; - font-style: normal; - font-display: swap; + font-family: "Source Han Sans CN"; + src: + url("/fonts/source-han-sans/SourceHanSansCN-Bold-Alphabetic.woff2") + format("woff2"), + url("/fonts/source-han-sans/SourceHanSansCN-Bold-Alphabetic.woff") + format("woff"); + + font-weight: 700; + font-style: normal; + font-display: swap; } @font-face { - font-family: "Source Han Sans CN"; - src: url("/fonts/source-han-sans/SourceHanSansCN-Light-Alphabetic.woff2") format("woff2"), - url("/fonts/source-han-sans/SourceHanSansCN-Light-Alphabetic.woff") format("woff"); - font-weight: 300; - font-style: normal; - font-display: swap; -} \ No newline at end of file + font-family: "Source Han Sans CN"; + src: + url("/fonts/source-han-sans/SourceHanSansCN-Light-Alphabetic.woff2") + format("woff2"), + url("/fonts/source-han-sans/SourceHanSansCN-Light-Alphabetic.woff") + format("woff"); + font-weight: 300; + font-style: normal; + font-display: swap; +} diff --git a/app/assets/scss/element/dark.scss b/app/assets/scss/element/dark.scss index 93bf00c..741cae4 100644 --- a/app/assets/scss/element/dark.scss +++ b/app/assets/scss/element/dark.scss @@ -1,6 +1,6 @@ -@forward 'element-plus/theme-chalk/src/dark/var.scss' with ( +@forward "element-plus/theme-chalk/src/dark/var.scss" with ( $bg-color: ( - 'page': #0a0a0a, - 'overlay': #1d1e1f, + "page": #0a0a0a, + "overlay": #1d1e1f, ) ); diff --git a/app/assets/scss/element/index.scss b/app/assets/scss/element/index.scss index 002ec4f..4285909 100644 --- a/app/assets/scss/element/index.scss +++ b/app/assets/scss/element/index.scss @@ -1,26 +1,26 @@ $-colors: ( - 'primary': ( - 'base': #177ee5, + "primary": ( + "base": #177ee5, ), - 'success': ( - 'base': green, + "success": ( + "base": green, ), - 'warning': ( - 'base': #f9a23c, + "warning": ( + "base": #f9a23c, ), - 'danger': ( - 'base': #ff3300, + "danger": ( + "base": #ff3300, ), - 'error': ( - 'base': #f56c6c, + "error": ( + "base": #f56c6c, ), - 'info': ( - 'base': #909399, + "info": ( + "base": #909399, ), ); -@forward 'element-plus/theme-chalk/src/common/var.scss' with ( +@forward "element-plus/theme-chalk/src/common/var.scss" with ( $colors: $-colors ); -@use './dark.scss'; \ No newline at end of file +@use "./dark.scss"; diff --git a/app/assets/scss/index.scss b/app/assets/scss/index.scss index 18852e2..4e52518 100644 --- a/app/assets/scss/index.scss +++ b/app/assets/scss/index.scss @@ -17,5 +17,6 @@ a { } :root { - --font-main: "Source Han Sans CN", "Noto Sans CJK SC", "Noto Sans CJK", sans-serif; -} \ No newline at end of file + --font-main: + "Source Han Sans CN", "Noto Sans CJK SC", "Noto Sans CJK", sans-serif; +} diff --git a/app/components/DocumentList.vue b/app/components/DocumentList.vue index 68f6ec6..c30953a 100644 --- a/app/components/DocumentList.vue +++ b/app/components/DocumentList.vue @@ -28,48 +28,48 @@ diff --git a/app/components/JinshenFooter.vue b/app/components/JinshenFooter.vue index 39bd602..66a42e0 100644 --- a/app/components/JinshenFooter.vue +++ b/app/components/JinshenFooter.vue @@ -4,39 +4,39 @@