From 16d9e1e7fea3319bde3a853680650690dfb3fcf4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?=
<15040126243@163.com>
Date: Wed, 1 Apr 2026 17:03:20 +0800
Subject: [PATCH] =?UTF-8?q?update=20prettier=20=E6=9B=BF=E6=8D=A2=E4=B8=BA?=
=?UTF-8?q?=20oxfmt=20=E6=A0=BC=E5=BC=8F=E5=8C=96=E6=95=B4=E4=B8=AA?=
=?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=9A=84=E4=BB=A3=E7=A0=81=E7=BB=93=E6=9E=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.claude/agents/frontend-api-types.md | 2 +-
.claude/agents/frontend-crud-coding.md | 2 +-
.claude/agents/frontend-crud-page.md | 2 +-
.claude/agents/frontend-page-enhancement.md | 2 +-
.codex/skills/frontend-crud-coding/SKILL.md | 2 +-
.../references/examples.md | 2 +-
.../references/frontend.md | 2 +-
.oxfmtrc.json | 19 ++
.oxlintrc.json | 9 +-
.prettierignore | 9 -
.prettierrc | 20 --
README.md | 8 +-
html/ie.html | 34 ++-
index.html | 8 +-
package.json | 44 ++--
src/api/login.ts | 5 +-
src/api/system/user/index.ts | 2 +-
src/api/workflow/definition/index.ts | 7 +-
src/api/workflow/spel/types.ts | 14 +-
src/assets/styles/base/_document.scss | 10 +-
src/assets/styles/components/_card-shell.scss | 5 +-
.../styles/components/_legacy-utilities.scss | 7 -
src/assets/styles/components/_misc.scss | 4 -
src/assets/styles/components/_page-shell.scss | 11 +-
.../styles/components/_theme-helpers.scss | 4 -
src/assets/styles/layout/_surface.scss | 5 +-
src/assets/styles/mixin.scss | 1 -
.../styles/vendors/element-plus/_card.scss | 2 +-
.../styles/vendors/element-plus/_dialog.scss | 2 -
.../vendors/element-plus/_element-tokens.scss | 7 +-
.../styles/vendors/element-plus/_form.scss | 10 +-
.../styles/vendors/element-plus/_index.scss | 2 +-
.../vendors/element-plus/_navigation.scss | 5 +-
.../styles/vendors/element-plus/_table.scss | 4 -
src/components/Breadcrumb/index.vue | 12 +-
src/components/DictTag/index.vue | 24 +-
src/components/Editor/index.vue | 11 +-
src/components/FileUpload/index.vue | 20 +-
src/components/Hamburger/index.vue | 9 +-
src/components/IconSelect/index.vue | 19 +-
src/components/ImagePreview/index.vue | 8 +-
src/components/ImageUpload/index.vue | 14 +-
src/components/LangSelect/index.vue | 4 +-
src/components/Process/MessageType.vue | 10 +-
src/components/Process/approvalButton.vue | 25 +-
src/components/Process/approvalRecord.vue | 61 ++++-
src/components/Process/processMeddle.vue | 63 ++++-
src/components/Process/submitVerify.vue | 115 ++++++---
src/components/RightToolbar/index.vue | 12 +-
src/components/RoleSelect/index.vue | 189 +++++++-------
src/components/SizeSelect/index.vue | 7 +-
src/components/TopNav/index.vue | 45 ++--
src/components/UserSelect/index.vue | 94 +++++--
src/layout/components/AppMain.vue | 4 +-
src/layout/components/IframeToggle/index.vue | 2 +-
src/layout/components/Navbar.vue | 11 +-
src/layout/components/Settings/index.vue | 40 ++-
src/layout/components/Sidebar/Logo.vue | 11 +-
src/layout/components/Sidebar/SidebarItem.vue | 19 +-
src/layout/components/TagsView/ScrollPane.vue | 2 +-
src/layout/components/TagsView/index.vue | 57 +++--
src/layout/components/TopBar/index.vue | 81 +++---
src/layout/components/TopBar/search.vue | 28 ++-
src/layout/components/notice/index.vue | 2 +-
src/permission.ts | 13 +-
src/plugins/auth.ts | 12 +-
src/plugins/download.ts | 10 +-
src/plugins/tab.ts | 4 +-
src/router/index.ts | 4 +-
src/store/modules/notice.ts | 12 +-
src/store/modules/permission.ts | 20 +-
src/store/modules/tagsView.ts | 45 ++--
src/types/module.d.ts | 2 -
src/utils/crypto.ts | 2 +-
src/utils/dict.ts | 11 +-
src/utils/index.ts | 8 +-
src/utils/message-read.ts | 4 +-
src/utils/permission.ts | 4 +-
src/utils/push.ts | 4 +-
src/utils/request.ts | 12 +-
src/utils/ruoyi.ts | 9 +-
src/utils/sanitize.ts | 25 +-
src/utils/scroll-to.ts | 4 +-
src/views/demo/demo/index.vue | 68 ++++-
src/views/demo/tree/index.vue | 29 ++-
src/views/error/401.vue | 4 +-
src/views/error/404.vue | 2 +-
src/views/index.vue | 13 +-
src/views/login.vue | 26 +-
src/views/monitor/cache/index.vue | 16 +-
src/views/monitor/logininfo/index.vue | 134 ++++++----
src/views/monitor/online/index.vue | 27 +-
src/views/monitor/operlog/index.vue | 153 ++++++++----
.../monitor/operlog/oper-info-dialog.vue | 23 +-
src/views/register.vue | 50 +++-
src/views/system/client/index.vue | 145 ++++++++---
src/views/system/config/index.vue | 156 ++++++++----
src/views/system/dept/index.vue | 106 +++++---
src/views/system/dict/index.vue | 181 +++++++++++---
src/views/system/menu/index.vue | 118 ++++++---
src/views/system/notice/index.vue | 150 ++++++++---
src/views/system/oss/config.vue | 79 +++++-
src/views/system/oss/index.vue | 143 +++++++----
src/views/system/post/index.vue | 180 +++++++++-----
src/views/system/role/authUser.vue | 53 +++-
src/views/system/role/index.vue | 201 ++++++++++-----
src/views/system/role/selectUser.vue | 22 +-
src/views/system/user/authRole.vue | 11 +-
src/views/system/user/index.vue | 234 +++++++++++++++---
src/views/system/user/profile/index.vue | 4 +-
.../system/user/profile/onlineDevice.vue | 4 +-
src/views/system/user/profile/userAvatar.vue | 1 -
src/views/tool/gen/editTable.vue | 13 +-
src/views/tool/gen/genInfoForm.vue | 9 +-
src/views/tool/gen/importTable.vue | 23 +-
src/views/tool/gen/index.vue | 180 ++++++++++----
src/views/workflow/category/index.vue | 69 ++++--
src/views/workflow/leave/index.vue | 109 ++++++--
src/views/workflow/leave/leaveEdit.vue | 15 +-
.../workflow/processDefinition/design.vue | 7 +-
.../workflow/processDefinition/index.vue | 154 +++++++++---
src/views/workflow/processInstance/index.vue | 158 +++++++++---
src/views/workflow/spel/index.vue | 187 +++++++++-----
src/views/workflow/task/allTaskWaiting.vue | 159 ++++++++----
src/views/workflow/task/myDocument.vue | 111 ++++++---
src/views/workflow/task/taskCopyList.vue | 81 +++---
src/views/workflow/task/taskFinish.vue | 113 ++++++---
src/views/workflow/task/taskWaiting.vue | 98 +++++---
tsconfig.json | 8 +-
vite.config.ts | 4 +-
vite/plugins/compression.ts | 14 +-
131 files changed, 3750 insertions(+), 1571 deletions(-)
create mode 100644 .oxfmtrc.json
delete mode 100644 .prettierignore
delete mode 100644 .prettierrc
diff --git a/.claude/agents/frontend-api-types.md b/.claude/agents/frontend-api-types.md
index d54c618..5f6a185 100644
--- a/.claude/agents/frontend-api-types.md
+++ b/.claude/agents/frontend-api-types.md
@@ -25,4 +25,4 @@ description: 前端 API 与类型定义专家。用于当前项目中的 src/api
- API 路径是否与后端一致
- 类型是否覆盖接口真实结构
-- 是否不必要地把类型写宽了
+- 是否不必要地把类型写宽了
\ No newline at end of file
diff --git a/.claude/agents/frontend-crud-coding.md b/.claude/agents/frontend-crud-coding.md
index 0a07b4f..c0d9b99 100644
--- a/.claude/agents/frontend-crud-coding.md
+++ b/.claude/agents/frontend-crud-coding.md
@@ -15,4 +15,4 @@ description: 前端总入口。用于当前前端项目中的标准 CRUD 页面
- 先读当前目录下最近似页面和 API,再动代码。
- 冲突时优先相信当前项目真实页面,其次是公共组件和工具,再其次才是关联后端工程的 generator 模板。
-- 默认直接产出可落地代码,而不是只给抽象建议。
+- 默认直接产出可落地代码,而不是只给抽象建议。
\ No newline at end of file
diff --git a/.claude/agents/frontend-crud-page.md b/.claude/agents/frontend-crud-page.md
index ef5cf2b..73cfca2 100644
--- a/.claude/agents/frontend-crud-page.md
+++ b/.claude/agents/frontend-crud-page.md
@@ -34,4 +34,4 @@ description: 前端标准 CRUD 页面专家。用于当前项目中的新建列
- API 路径是否与后端一致
- `index.ts` 与 `types.ts` 是否同步补齐
-- 页面是否只是模板裸输出,如果是要继续补强到当前项目风格
+- 页面是否只是模板裸输出,如果是要继续补强到当前项目风格
\ No newline at end of file
diff --git a/.claude/agents/frontend-page-enhancement.md b/.claude/agents/frontend-page-enhancement.md
index 4c75989..1cf130e 100644
--- a/.claude/agents/frontend-page-enhancement.md
+++ b/.claude/agents/frontend-page-enhancement.md
@@ -24,4 +24,4 @@ description: 复杂前端页面增强专家。用于修改当前项目中已经
- 是否破坏了原页面结构和样式
- 是否误删了已有权限控制或交互能力
-- 是否应该拆成子组件而不是继续堆主页面
+- 是否应该拆成子组件而不是继续堆主页面
\ No newline at end of file
diff --git a/.codex/skills/frontend-crud-coding/SKILL.md b/.codex/skills/frontend-crud-coding/SKILL.md
index 54c0a84..c457aab 100644
--- a/.codex/skills/frontend-crud-coding/SKILL.md
+++ b/.codex/skills/frontend-crud-coding/SKILL.md
@@ -133,4 +133,4 @@ description: 在当前前端项目中按现有 Vue 3 + TypeScript + Element Plus
例如:
- 使用 `$frontend-crud-coding` 为 `/system/client` 补一套标准 CRUD 页面,参考 `system/user` 和 generator 模板。
-- 使用 `$frontend-crud-coding` 修改 `workflow/category` 列表页,增加导出按钮和状态筛选,保持当前项目风格。
+- 使用 `$frontend-crud-coding` 修改 `workflow/category` 列表页,增加导出按钮和状态筛选,保持当前项目风格。
\ No newline at end of file
diff --git a/.codex/skills/frontend-crud-coding/references/examples.md b/.codex/skills/frontend-crud-coding/references/examples.md
index 257be87..5a855f1 100644
--- a/.codex/skills/frontend-crud-coding/references/examples.md
+++ b/.codex/skills/frontend-crud-coding/references/examples.md
@@ -109,4 +109,4 @@
- 业务名
- 后端接口前缀
- 是新增还是修改
-- 想参考哪个现有页面
+- 想参考哪个现有页面
\ No newline at end of file
diff --git a/.codex/skills/frontend-crud-coding/references/frontend.md b/.codex/skills/frontend-crud-coding/references/frontend.md
index 5c0ccf3..8a025b7 100644
--- a/.codex/skills/frontend-crud-coding/references/frontend.md
+++ b/.codex/skills/frontend-crud-coding/references/frontend.md
@@ -238,4 +238,4 @@
- 类型是否与接口返回结构一致。
- 是否保留了原页面已有的权限和交互能力。
- 是否沿用了当前模块已有的组件和样式壳。
-- 是否只是“生成器裸页”,如果是,需要继续补齐到当前项目风格。
+- 是否只是“生成器裸页”,如果是,需要继续补齐到当前项目风格。
\ No newline at end of file
diff --git a/.oxfmtrc.json b/.oxfmtrc.json
new file mode 100644
index 0000000..b6d3074
--- /dev/null
+++ b/.oxfmtrc.json
@@ -0,0 +1,19 @@
+{
+ "$schema": "./node_modules/oxfmt/configuration_schema.json",
+ "ignorePatterns": [
+ "src/types/components.d.ts",
+ "src/types/auto-imports.d.ts",
+ ".ai_state",
+ ".claude",
+ ".codex",
+ "doc"
+ ],
+ "printWidth": 120,
+ "singleQuote": true,
+ "trailingComma": "none",
+ "arrowParens": "avoid",
+ "htmlWhitespaceSensitivity": "ignore",
+ "experimentalSortPackageJson": {
+ "sortScripts": true
+ }
+}
diff --git a/.oxlintrc.json b/.oxlintrc.json
index 39d192b..5c25b24 100644
--- a/.oxlintrc.json
+++ b/.oxlintrc.json
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
- "plugins": ["vue", "typescript"],
+ "plugins": ["eslint", "typescript", "unicorn", "oxc", "import", "vue"],
"rules": {
"typescript/no-empty-function": "off",
"typescript/no-explicit-any": "off",
@@ -8,8 +8,11 @@
"typescript/no-this-alias": "off",
"typescript/no-empty-object-type": "off",
"typescript/no-unused-expressions": "off",
- "vue/multi-word-component-names": "off",
"prefer-rest-params": "off"
},
- "ignore": ["dist/**", "dist-ssr/**", "coverage/**"]
+ "categories": {
+ "correctness": "error",
+ "suspicious": "error"
+ },
+ "ignorePatterns": [".ai_state", ".claude", ".codex", "doc", "dist/**", "dist-ssr/**", "coverage/**"]
}
diff --git a/.prettierignore b/.prettierignore
deleted file mode 100644
index d251d2e..0000000
--- a/.prettierignore
+++ /dev/null
@@ -1,9 +0,0 @@
-/dist/*
-.local
-.output.js
-/node_modules/**
-
-**/*.svg
-**/*.sh
-
-/public/*
\ No newline at end of file
diff --git a/.prettierrc b/.prettierrc
deleted file mode 100644
index 6ca3ce5..0000000
--- a/.prettierrc
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "printWidth": 150,
- "tabWidth": 2,
- "useTabs": false,
- "semi": true,
- "singleQuote": true,
- "quoteProps": "preserve",
- "jsxSingleQuote": false,
- "bracketSameLine": false,
- "trailingComma": "none",
- "bracketSpacing": true,
- "embeddedLanguageFormatting": "auto",
- "arrowParens": "always",
- "requirePragma": false,
- "insertPragma": false,
- "proseWrap": "preserve",
- "htmlWhitespaceSensitivity": "css",
- "vueIndentScriptAndStyle": false,
- "endOfLine": "auto"
-}
diff --git a/README.md b/README.md
index 3dc817b..26fb381 100644
--- a/README.md
+++ b/README.md
@@ -6,10 +6,10 @@
## 配套后端代码仓库地址
-| 介绍 | 项目名 | 项目地址 |
-|------------|:-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| 介绍 | 项目名 | 项目地址 |
+| ----------------- | :--------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 🔥 分布式集群框架 | RuoYi-Vue-Plus | - [Gitee](https://gitee.com/dromara/RuoYi-Vue-Plus)
- [GitHub](https://github.com/dromara/RuoYi-Vue-Plus)
- [GitCode](https://gitcode.com/dromara/RuoYi-Vue-Plus) |
-| 🔥 微服务框架 | RuoYi-Cloud-Plus | - [Gitee](https://gitee.com/dromara/RuoYi-Cloud-Plus)
- [GitHub](https://github.com/dromara/RuoYi-Cloud-Plus)
- [GitCode](https://gitcode.com/dromara/RuoYi-Cloud-Plus) |
+| 🔥 微服务框架 | RuoYi-Cloud-Plus | - [Gitee](https://gitee.com/dromara/RuoYi-Cloud-Plus)
- [GitHub](https://github.com/dromara/RuoYi-Cloud-Plus)
- [GitCode](https://gitcode.com/dromara/RuoYi-Cloud-Plus) |
## 分支说明
@@ -78,4 +78,4 @@ pnpm build:prod
|  |  |
|  |  |
|  |  |
-|  |  |
+|  |  |
\ No newline at end of file
diff --git a/html/ie.html b/html/ie.html
index 4d2773d..2bd1c9e 100644
--- a/html/ie.html
+++ b/html/ie.html
@@ -144,7 +144,8 @@
font-size: 14px;
line-height: 24px;
color: #454545;
- font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', DengXian, SimSun, 'Segoe UI', Tahoma, Helvetica, sans-serif;
+ font-family:
+ 'Microsoft YaHei UI', 'Microsoft YaHei', DengXian, SimSun, 'Segoe UI', Tahoma, Helvetica, sans-serif;
overflow-y: scroll;
}
h1 {
@@ -208,15 +209,18 @@
您正在使用 Internet Explorer 的早期版本(IE11以下版本或使用该内核的浏览器)。这意味着在升级浏览器前,您将无法访问此网站。
++ 您正在使用 Internet Explorer + 的早期版本(IE11以下版本或使用该内核的浏览器)。这意味着在升级浏览器前,您将无法访问此网站。 +
自 2016 年 1 月 12 日起,Microsoft 不再为 IE 11 以下版本提供相应支持和更新。没有关键的浏览器安全更新,您的电脑可能易受有害病毒、间谍软件和其他恶意软件的攻击,它们可以窃取或损害您的业务数据和信息。请参阅 - 微软对 Internet Explorer 早期版本的支持将于 2016 年 1 月 12 日结束的说明 + + 微软对 Internet Explorer 早期版本的支持将于 2016 年 1 月 12 日结束的说明 + 。
推荐使用以下浏览器的最新版本。如果您的电脑已有以下浏览器的最新版本则直接使用该浏览器访问即可。