Skip to content

官网焕新#302

Merged
yu199195 merged 50 commits intodromara:masterfrom
sakukae:new_update
Sep 17, 2025
Merged

官网焕新#302
yu199195 merged 50 commits intodromara:masterfrom
sakukae:new_update

Conversation

@sakukae
Copy link
Copy Markdown
Contributor

@sakukae sakukae commented Sep 6, 2025

Dromara官网详细变更

项目基本信息

基础使用方法与之前没有变化,新增指令可以通过 ESLint 自动检测并修复项目中的代码风格和语法问题

pnpm lint:fix

docs:build

  • 旧: vuepress build src
  • 新: cross-env NODE_OPTIONS=--max-old-space-size=4096 vuepress-vite build src

// VuePress v2 静态站点生成器,需要对所有页面进行 预渲染 因此通过此命令行在打包的时候提高 Node.js 内存上限

开发依赖

新增依赖

  • @eslint/js: ^9.32.0
  • @vuepress/plugin-register-components: 2.0.0-rc.112
  • @vuepress/plugin-slimsearch: 2.0.0-rc.112
  • cross-env: ^10.0.0
  • prettier: ^3.6.2
  • sass: ^1.89.2
  • vue-eslint-parser: ^10.2.0

移除依赖

  • eslint-config-standard-with-typescript: ^39.1.1
  • eslint-plugin-import: ^2.31.0
  • eslint-plugin-n: ^16.6.2
  • eslint-plugin-promise: ^6.6.0
  • style-loader: ^3.3.4
  • typescript: ^5.7.2 (版本升级,但旧版本被移除)
  • vuepress-plugin-search-pro: 2.0.0-rc.59
  • vuepress-shared: 2.0.0-rc.59

版本升级

  • @typescript-eslint/eslint-plugin: 从 ^6.21.0 升级到 ^8.39.0

  • @typescript-eslint/parser: 从 ^8.38.0 升级到 ^8.39.0

  • @vuepress/bundler-vite: 从 2.0.0-rc.19 升级到 2.0.0-rc.24

  • eslint: 从 ^8.57.1 升级到 ^9.32.0

  • eslint-plugin-vue: 从 ^9.32.0 升级到 ^10.4.0

  • sass-embedded: 从 ^1.83.0 升级到 ^1.89.2

  • sass-loader: 从 ^13.3.3 升级到 ^16.0.5

  • swiper: 从 ^11.1.15 升级到 ^11.2.10

  • v-viewer: 从 ^3.0.21 升级到 ^3.0.22

  • vue: 从 ^3.5.13 升级到 ^3.5.17

  • vuepress: 从 2.0.0-rc.19 升级到 2.0.0-rc.24

  • vuepress-theme-hope: 从 2.0.0-rc.64 升级到 2.0.0-rc.94

很多开发依赖已经落后,已将开发更新至最新的版本。

重构了 eslint 的配置,采用 eslint9,并且修复 eslint9+prettier 组合,保存自动修正代码

移除 vuepress-plugin-search-pro 此包已经弃用,更新为 vuepress/plugin-slimsearch

生产依赖

版本升级

  • @vuepress/helper: 从 2.0.0-rc.66 升级到 2.0.0-rc.112

  • swiper: 从 ^11.1.15 升级到 ^11.2.10

移除依赖

  • v-viewer: ^3.0.21 (版本升级,但旧版本被移除)

  • viewerjs: ^1.11.7 (版本升级,但旧版本被移除)

页面焕新

  • 舍弃旧页面所有 banner,官网主页背景采用 Vue Bits 的 Galaxy 组件作为 banner

  • 使用暗色系主题、毛玻璃质感导航栏,并且添加鼠标光效样式,使页面富有科技感与冲击感

  • 修改了部分页面移动端设备页面变形的情况

  • 顶级项目群UI、成员页面UI优化,并且采用 Layout 将单页面布局修改成专属页面,更新了项目的部分官网,以及修复了部分logo 和 部分 github 或 gitee 的404问题

  • 新闻、博客、活动页面UI焕新,采用 Laylout 对页面样式进行上一个版本的继承,旧版本vuepress-theme-hope

    中的 theme-hope-content 类名在新版本已被删除。

  • 更新公众号所有的内容,并且翻译为英文,对文章页面进行优化,增加了侧边栏以及上下页,方便读者寻找文章

其他更改

改善了微信公众号转 markdown 插件的部分bug

  • 添加正则判断,将导出日期直接转换成 xxxx-xx-xx (原:xxxx年xx月xx日,导致 vuepress 报错)
  • 添加正则判断,当加粗字体中末尾有冒号、感叹号等符号,将冒号移到加粗标识的后面防止页面上不会加粗而显示加粗符号(当emoji图标开头特殊符号结尾的时候就不会加粗)
  • 修复了命名末尾有空格导致无法导出图片的情况,失焦时候自动删除空格

@yu199195 yu199195 merged commit a24681b into dromara:master Sep 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants