Parcourir la source

Merge branch 'HJ-hmsys' of dengrui/HJ-Press into master

邓宇 il y a 2 jours
Parent
commit
b25a6b3980

+ 1 - 7
docs/.vuepress/client.ts

@@ -1,12 +1,6 @@
 import { defineClientConfig } from 'vuepress/client'
-// import RepoCard from 'vuepress-theme-plume/features/RepoCard.vue'
-// import NpmBadge from 'vuepress-theme-plume/features/NpmBadge.vue'
-// import NpmBadgeGroup from 'vuepress-theme-plume/features/NpmBadgeGroup.vue'
-// import Swiper from 'vuepress-theme-plume/features/Swiper.vue'
+import './styles/index.css'
 
-// import CustomComponent from './theme/components/Custom.vue'
-
-// import './theme/styles/custom.css'
 
 export default defineClientConfig({
   enhance({ app }) {

+ 0 - 72
docs/.vuepress/collections.ts

@@ -1,72 +0,0 @@
-/**
- * @see https://theme-plume.vuejs.press/guide/collection/ 查看文档了解配置详情。
- *
- * Collections 配置文件,它在 `.vuepress/plume.config.ts` 中被导入。
- *
- * 请注意,你应该先在这里配置好 Collections,然后再启动 vuepress,主题会在启动 vuepress 时,
- * 读取这里配置的 Collections,然后在与 Collection 相关的 Markdown 文件中,自动生成 permalink。
- *
- * collection 的  type 为 `post` 时,表示为 文档列表类型(即没有侧边导航栏,有文档列表页)
- * 可用于实现如 博客、专栏 等以文章列表聚合形式的文档集合 (内容相对碎片化的)
- *
- * collection 的 type 为 `doc` 时,表示为文档类型(即有侧边导航栏)
- * 可用于实现如 笔记、知识库、文档等以侧边导航栏形式的文档集合 (内容强关联、成体系的)
- * 如果发现 侧边栏没有显示,那么请检查你的配置是否正确,以及 Markdown 文件中的 permalink
- * 是否是以对应的 Collection 配置的 link 的前缀开头。 是否展示侧边栏是根据 页面链接 的前缀 与 `collection.link`
- * 的前缀是否匹配来决定。
- */
-
-/**
- * 在受支持的 IDE 中会智能提示配置项。
- *
- * - `defineCollections` 是用于定义 collection 集合的帮助函数
- * - `defineCollection` 是用于定义单个 collection 配置的帮助函数
- *
- * 通过 `defineCollection` 定义的 collection 配置,应该填入 `defineCollections` 中
- */
-import { defineCollection, defineCollections } from 'vuepress-theme-plume'
-
-const blog = defineCollection({
-  // post 类型,这里用于实现 博客功能
-  type: 'post',
-  // 文档集合所在目录,相对于 `docs`
-  dir: 'blog',
-  // 文档标题,它将用于在页面的面包屑导航中显示
-  title: 'Blog',
-  // 文章列表页的链接,如果 `linkPrefix` 未定义,它也将作为 相关的文章的 permalink 的前缀
-  link: '/blog/',
-  //   linkPrefix: '/article/', // 相关文章的链接前缀
-  //   postList: true, // 是否启用文章列表页
-  //   tags: true, // 是否启用标签页
-  //   archives: true, // 是否启用归档页
-  //   categories: true, // 是否启用分类页
-  //   postCover: 'right', // 文章封面位置
-  //   pagination: 15, // 每页显示文章数量
-})
-
-const demoDoc = defineCollection({
-  // doc 类型,该类型带有侧边栏
-  type: 'doc',
-  // 文档集合所在目录,相对于 `docs`
-  dir: 'docs',
-  // `dir` 所指向的目录中的所有 markdown 文件,其 permalink 需要以 `linkPrefix` 配置作为前缀
-  // 如果 前缀不一致,则无法生成侧边栏。
-  // 所以请确保  markdown 文件的 permalink 都以 `linkPrefix` 开头
-  linkPrefix: '/docs',
-  // 文档标题,它将用于在页面的面包屑导航中显示
-  title: '文档',
-  // 手动配置侧边栏结构
-  sidebar: ['systemBackground', 'systemModel'],
-  // 根据文件结构自动生成侧边栏
-  // sidebar: 'auto',
-})
-
-/**
- * 导出所有的 collections
- * (blog 为博客示例,如果不需要博客功能,请删除)
- * (demoDoc 为参考示例,如果不需要它,请删除)
- */
-export default defineCollections([
-  blog,
-  demoDoc,
-])

+ 1 - 0
docs/.vuepress/collections/index.ts

@@ -0,0 +1 @@
+export * from './zh/index.js'

+ 15 - 0
docs/.vuepress/collections/zh/companyProfile.ts

@@ -0,0 +1,15 @@
+import type { ThemeCollectionItem } from 'vuepress-theme-plume'
+import { defineCollection } from 'vuepress-theme-plume'
+
+export const companyProfile: ThemeCollectionItem = defineCollection({
+  type: 'doc',
+  dir: 'profile',
+  title: '公司简介',
+  linkPrefix: '/profile/',
+  sidebar: [
+     {
+      text: '公司简介',
+      link:'profile'
+     }
+  ],
+})

+ 15 - 0
docs/.vuepress/collections/zh/hardware.ts

@@ -0,0 +1,15 @@
+import type { ThemeCollectionItem } from 'vuepress-theme-plume'
+import { defineCollection } from 'vuepress-theme-plume'
+
+export const hardware: ThemeCollectionItem = defineCollection({
+  type: 'doc',
+  dir: 'hardware',
+  title: '华菁硬件',
+  linkPrefix: '/hardware/',
+  sidebar: [
+     {
+      text: '硬件简介',
+      link:'profile'
+     }
+  ],
+})

+ 11 - 0
docs/.vuepress/collections/zh/index.ts

@@ -0,0 +1,11 @@
+import { defineCollections, type ThemeCollections } from 'vuepress-theme-plume'
+import { companyProfile } from './companyProfile.js'
+import { hardware } from './hardware.js'
+import { software } from './software.js'
+
+// 各板块左侧边栏配置
+export const zhCollections: ThemeCollections = defineCollections([
+  hardware,
+  software,
+  companyProfile,
+])

+ 35 - 0
docs/.vuepress/collections/zh/software.ts

@@ -0,0 +1,35 @@
+import type { ThemeCollectionItem } from 'vuepress-theme-plume'
+import { defineCollection } from 'vuepress-theme-plume'
+
+export const software: ThemeCollectionItem = defineCollection({
+  type: 'doc',
+  dir: 'software',
+  linkPrefix: '/software/',
+  title: '华菁软件',
+  sidebar: [
+    {
+      text: '振兴MES系统',
+      link:'mes'
+     },
+    {
+      text: '振兴PDM系统',
+      link:'pdm'
+     },
+    {
+      text: '振兴WMS系统',
+      link:'wms'
+     },
+    {
+      text: '振兴APS系统',
+      link:'aps'
+     },
+    {
+      text: '振兴数字孪生系统',
+      link:'digitalTwin'
+     },
+    {
+      text: '振兴智能数据应用系统',
+      link:'data'
+     },
+    ]
+})

+ 1 - 4
docs/.vuepress/config.ts

@@ -16,17 +16,14 @@ import { plumeTheme } from 'vuepress-theme-plume'
 export default defineUserConfig({
   base: '/',
   lang: 'zh-CN',
-  title: '华菁振兴',
+  title: '文档中心',
   description: '华菁振兴',
-
   head: [
     // 配置站点图标
     ['link', { rel: 'icon', type: 'image/png', href: './logo.png' }],
   ],
-
   bundler: viteBundler(),
   shouldPrefetch: false, // 站点较大,页面数量较多时,不建议启用
-
   theme: plumeTheme({
     /* 添加您的部署域名, 有助于 SEO, 生成 sitemap */
     // hostname: 'https://your_site_url',

+ 19 - 10
docs/.vuepress/navbar.ts

@@ -7,15 +7,24 @@
 import { defineNavbarConfig } from 'vuepress-theme-plume'
 
 export default defineNavbarConfig([
-  { text: '首页', link: '/' },
-  // { text: '博客', link: '/blog/' },
-  // { text: '标签', link: '/blog/tags/' },
-  // { text: '归档', link: '/blog/archives/' },
   {
-    text: '系统文档',
-    items: [
-      { text: '系统概述', link: '/docs/systemModel.md' },
-      { text: '系统背景', link: '/docs/systemBackground.md' }
-    ]
+    text: '首页',
+    link: '/',
+    icon: 'icon-park-outline:home' // 首页 → 房子图标
   },
-])
+  {
+    text: '公司简介',
+    link: '/profile/profile.md',
+    icon: 'icon-park-outline:more-three',
+  },
+  {
+    text: '硬件',
+    link: '/hardware/profile.md',
+    icon: 'icon-park-outline:cpu' // 硬件 → CPU 或芯片图标
+  },
+  {
+    text: '软件',
+    link: '/software/mes.md',
+    icon: 'icon-park-outline:code' // 软件 → 代码图标
+  },
+])

+ 13 - 12
docs/.vuepress/plume.config.ts

@@ -12,16 +12,13 @@
 
 import { defineThemeConfig } from 'vuepress-theme-plume'
 import navbar from './navbar'
-import collections from './collections'
-
+import { zhCollections } from './collections/index.js'
 /**
  * @see https://theme-plume.vuejs.press/config/basic/
  */
 export default defineThemeConfig({
   logo: './logo.png',
 
-  appearance: true,  // 配置 深色模式
-
   social: [
 
   ],
@@ -56,9 +53,12 @@ export default defineThemeConfig({
     // location: '',
     // organization: '',
   },
-
-  navbar,
-  collections,
+  locales: {
+    '/': {
+      navbar: navbar,
+      collections: zhCollections,
+    },
+  },
 
   /**
    * 公告板
@@ -72,10 +72,11 @@ export default defineThemeConfig({
   // },
 
   /* 过渡动画 @see https://theme-plume.vuejs.press/config/basic/#transition */
-  // transition: {
-  //   page: true,        // 启用 页面间跳转过渡动画
-  //   postList: true,    // 启用 博客文章列表过渡动画
-  //   appearance: 'fade',  // 启用 深色模式切换过渡动画, 或配置过渡动画类型
-  // },
+  transition: {
+    page: true,        // 启用 页面间跳转过渡动画
+    postList: true, 
+    appearance: 'circle-clip'  
+
+  },
 
 })

+ 76 - 0
docs/.vuepress/styles/index.css

@@ -0,0 +1,76 @@
+*,
+::before,
+::after {
+  box-sizing: border-box;
+  border-color: currentcolor;
+  border-style: solid;
+  border-width: 0;
+}
+
+#app {
+  width: 100%;
+  height: 100%;
+}
+
+html {
+  box-sizing: border-box;
+  width: 100%;
+  height: 100%;
+  line-height: 1.5;
+  tab-size: 4;
+  text-size-adjust: 100%;
+}
+
+body {
+  width: 100%;
+  height: 100%;
+  margin: 0;
+  overflow: hidden;
+  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
+    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
+  line-height: inherit;
+  -moz-osx-font-smoothing: grayscale;
+  -webkit-font-smoothing: antialiased;
+  text-rendering: optimizelegibility;
+}
+
+a {
+  color: inherit;
+  text-decoration: inherit;
+}
+
+img,
+svg {
+  display: inline-block;
+}
+
+svg {
+  vertical-align: -0.15em;
+}
+
+ul,
+li {
+  padding: 0;
+  margin: 0;
+  list-style: none;
+}
+
+*,
+*::before,
+*::after {
+  box-sizing: inherit;
+}
+
+a,
+a:focus,
+a:hover {
+  color: inherit;
+  text-decoration: none;
+  cursor: pointer;
+}
+
+a:focus,
+a:active,
+div:focus {
+  outline: none;
+}

+ 6 - 7
docs/README.md

@@ -1,18 +1,17 @@
 ---
 pageLayout: home
 externalLinkIcon: false
-
 config:
   - type: hero
     full: true
     footer: false
-    # effect: tint-plate
+    effect: liquid-ether
     hero:
-      name: 华菁-工业软件体系介绍
-      tagline: 门户板块
-      text: 系统总入口文档
+      name: 华菁振兴(四川)智能技术有限责任公司
+      tagline: 文档中心
+      text: 涵盖软件、硬件、生产系列产品
       actions:
         - theme: brand
-          text: 系统概述
-          link: /docs/systemModel
+          text: 简介
+          link: /profile/profile
 ---

+ 0 - 57
docs/docs/systemModel.md

@@ -1,57 +0,0 @@
----
-title: 系统功能板块概述
-createTime: 2025/11/20 15:36:02
-permalink: /docs/systemModel
----
-
-## 系统功能板块概述
-
-### 首页
-
-各系统主要信息展示。
-
-### 应用系统
-
-#### APS 系统
-
-APS 系统概述。
-
-#### 生产管理系统
-
-MES 系统概述。
-
-#### 数据采集系统
-
-数据采集系统概述。
-
-#### 数字孪生系统
-
-数字孪生系统概述。
-
-#### 智能数据应用系统
-
-智能数据应用系统概述。
-
-#### 数据报表展示
-
-数据报表展示概述。
-
-### 系统管理
-
-包括系统体系人员、部门、菜单等基础板块管理。
-
-### 系统监控
-
-主要涉及各系统主要服务相关监控数据展示。
-
-### 显示主题
-
-系统展示板块设置,如主题演示、深浅颜色等配置。
-
-### 个人中心
-
-账号信息设置。
-
-### 系统文档
-
-保护使用说明和接口文档信息。

+ 37 - 0
docs/hardware/profile.md

@@ -0,0 +1,37 @@
+---
+title: 硬件
+createTime: 2025/11/20 15:37:22
+permalink: /hardware/profile
+---
+
+## 系统背景如下
+
+硬件啊啊啊啊啊啊啊
+
+**文件目录示例**
+
+::: file-tree
+
+- docs
+  - .vuepress
+    - ++ config.ts
+  - -- page1.md
+  - README.md
+- theme 一个 **主题** 目录
+  - client
+    - components
+      - **Navbar.vue**
+    - composables
+      - useNavbar.ts
+    - styles
+      - navbar.css
+    - config.ts
+  - node/
+- package.json
+- pnpm-lock.yaml
+- .gitignore
+- README.md
+- …
+  :::
+
+....

+ 10 - 0
docs/profile/profile.md

@@ -0,0 +1,10 @@
+---
+title: profile
+createTime: 2025/12/30 15:29:35
+permalink: /profile/profile
+---
+## 系统背景如下
+
+**文件目录示例**
+
+....

+ 2 - 2
docs/docs/systemBackground.md → docs/software/aps.md

@@ -1,7 +1,7 @@
 ---
-title: 系统背景
+title: 系统背景aps
 createTime: 2025/11/20 15:37:22
-permalink: /docs/systemBackground
+permalink: /software/aps
 ---
 
 ## 系统背景如下

+ 35 - 0
docs/software/data.md

@@ -0,0 +1,35 @@
+---
+title: 系统背景data
+createTime: 2025/11/20 15:37:22
+permalink: /software/data
+---
+
+## 系统背景如下
+
+**文件目录示例**
+
+::: file-tree
+
+- docs
+  - .vuepress
+    - ++ config.ts
+  - -- page1.md
+  - README.md
+- theme 一个 **主题** 目录
+  - client
+    - components
+      - **Navbar.vue**
+    - composables
+      - useNavbar.ts
+    - styles
+      - navbar.css
+    - config.ts
+  - node/
+- package.json
+- pnpm-lock.yaml
+- .gitignore
+- README.md
+- …
+  :::
+
+....

+ 35 - 0
docs/software/digitalTwin.md

@@ -0,0 +1,35 @@
+---
+title: 系统背景digitalTwin
+createTime: 2025/11/20 15:37:22
+permalink: /software/digitalTwin
+---
+
+## 系统背景如下
+
+**文件目录示例**
+
+::: file-tree
+
+- docs
+  - .vuepress
+    - ++ config.ts
+  - -- page1.md
+  - README.md
+- theme 一个 **主题** 目录
+  - client
+    - components
+      - **Navbar.vue**
+    - composables
+      - useNavbar.ts
+    - styles
+      - navbar.css
+    - config.ts
+  - node/
+- package.json
+- pnpm-lock.yaml
+- .gitignore
+- README.md
+- …
+  :::
+
+....

+ 35 - 0
docs/software/mes.md

@@ -0,0 +1,35 @@
+---
+title: 系统背景mes
+createTime: 2025/11/20 15:37:22
+permalink: /software/mes
+---
+
+## 系统背景如下
+
+**文件目录示例**
+
+::: file-tree
+
+- docs
+  - .vuepress
+    - ++ config.ts
+  - -- page1.md
+  - README.md
+- theme 一个 **主题** 目录
+  - client
+    - components
+      - **Navbar.vue**
+    - composables
+      - useNavbar.ts
+    - styles
+      - navbar.css
+    - config.ts
+  - node/
+- package.json
+- pnpm-lock.yaml
+- .gitignore
+- README.md
+- …
+  :::
+
+....

+ 35 - 0
docs/software/pdm.md

@@ -0,0 +1,35 @@
+---
+title: 系统背景pdm
+createTime: 2025/11/20 15:37:22
+permalink: /software/pdm
+---
+
+## 系统背景如下
+
+**文件目录示例**
+
+::: file-tree
+
+- docs
+  - .vuepress
+    - ++ config.ts
+  - -- page1.md
+  - README.md
+- theme 一个 **主题** 目录
+  - client
+    - components
+      - **Navbar.vue**
+    - composables
+      - useNavbar.ts
+    - styles
+      - navbar.css
+    - config.ts
+  - node/
+- package.json
+- pnpm-lock.yaml
+- .gitignore
+- README.md
+- …
+  :::
+
+....

+ 35 - 0
docs/software/wms.md

@@ -0,0 +1,35 @@
+---
+title: 系统背景wms
+createTime: 2025/11/20 15:37:22
+permalink: /software/wms
+---
+
+## 系统背景如下
+
+**文件目录示例**
+
+::: file-tree
+
+- docs
+  - .vuepress
+    - ++ config.ts
+  - -- page1.md
+  - README.md
+- theme 一个 **主题** 目录
+  - client
+    - components
+      - **Navbar.vue**
+    - composables
+      - useNavbar.ts
+    - styles
+      - navbar.css
+    - config.ts
+  - node/
+- package.json
+- pnpm-lock.yaml
+- .gitignore
+- README.md
+- …
+  :::
+
+....

+ 5 - 2
package.json

@@ -18,8 +18,7 @@
     "http-server": "^14.1.1",
     "typescript": "^5.9.3",
     "vue": "^3.5.22",
-    "vuepress": "2.0.0-rc.26",
-    "vuepress-theme-plume": "1.0.0-rc.178"
+    "vuepress": "2.0.0-rc.26"
   },
   "pnpm": {
     "onlyBuiltDependencies": [
@@ -29,5 +28,9 @@
   },
   "engines": {
     "node": "^20.6.0 || >=22.0.0"
+  },
+  "dependencies": {
+    "three": "^0.182.0",
+    "vuepress-theme-plume": "1.0.0-rc.184"
   }
 }

Fichier diff supprimé car celui-ci est trop grand
+ 238 - 211
pnpm-lock.yaml


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff