From dccfa219d71715607cfdbb189909fa42a72dc3e4 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: Fri, 7 Feb 2025 15:20:21 +0800
Subject: [PATCH 01/53] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E5=88=A0?=
=?UTF-8?q?=E9=99=A4=E6=97=A0=E7=94=A8=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
vite/plugins/auto-import.ts | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/vite/plugins/auto-import.ts b/vite/plugins/auto-import.ts
index 072ef61c..f2ea1e68 100644
--- a/vite/plugins/auto-import.ts
+++ b/vite/plugins/auto-import.ts
@@ -1,6 +1,5 @@
import AutoImport from 'unplugin-auto-import/vite';
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';
-import IconsResolver from 'unplugin-icons/resolver';
export default (path: any) => {
return AutoImport({
@@ -13,10 +12,7 @@ export default (path: any) => {
},
resolvers: [
// 自动导入 Element Plus 相关函数ElMessage, ElMessageBox... (带样式)
- ElementPlusResolver(),
- IconsResolver({
- prefix: 'Icon'
- })
+ ElementPlusResolver()
],
vueTemplate: true, // 是否在 vue 模板中自动导入
dts: path.resolve(path.resolve(__dirname, '../../src'), 'types', 'auto-imports.d.ts')
--
Gitee
From 66580a05a80f314323520b1ca9452332564e33f2 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: Fri, 7 Feb 2025 16:56:37 +0800
Subject: [PATCH 02/53] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E5=88=A0?=
=?UTF-8?q?=E9=99=A4=E6=97=A0=E7=94=A8=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/main.ts | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/main.ts b/src/main.ts
index 592de58b..7591a336 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -23,7 +23,6 @@ import HighLight from '@highlightjs/vue-plugin';
// svg图标
import 'virtual:svg-icons-register';
-import ElementIcons from '@/plugins/svgicon';
// permission control
import './permission';
@@ -45,7 +44,6 @@ ElDialog.props.closeOnClickModal.default = false;
const app = createApp(App);
app.use(HighLight);
-app.use(ElementIcons);
app.use(router);
app.use(store);
app.use(i18n);
--
Gitee
From b43158914bc4d5ab59edf1efabd79d1e65a770da 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: Fri, 7 Feb 2025 09:27:59 +0000
Subject: [PATCH 03/53] =?UTF-8?q?Revert=20"update=20=E4=BC=98=E5=8C=96=20?=
=?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E9=85=8D=E7=BD=AE"?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This reverts commit 66580a05a80f314323520b1ca9452332564e33f2.
---
src/main.ts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/main.ts b/src/main.ts
index 7591a336..592de58b 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -23,6 +23,7 @@ import HighLight from '@highlightjs/vue-plugin';
// svg图标
import 'virtual:svg-icons-register';
+import ElementIcons from '@/plugins/svgicon';
// permission control
import './permission';
@@ -44,6 +45,7 @@ ElDialog.props.closeOnClickModal.default = false;
const app = createApp(App);
app.use(HighLight);
+app.use(ElementIcons);
app.use(router);
app.use(store);
app.use(i18n);
--
Gitee
From 4d6a1ee73b054cf5666d4169d8654c386b662e7c 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: Fri, 7 Feb 2025 18:34:59 +0800
Subject: [PATCH 04/53] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E5=A2=9E?=
=?UTF-8?q?=E5=8A=A0=E9=85=8D=E7=BD=AE=E6=B3=A8=E9=87=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/settings.ts | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/src/settings.ts b/src/settings.ts
index 4b62c75d..ff9c99d0 100644
--- a/src/settings.ts
+++ b/src/settings.ts
@@ -50,13 +50,29 @@ const setting: DefaultSettings = {
*/
errorLog: 'production',
+ /**
+ * 是否开启动画 开启随机 关闭渐进渐出
+ */
animationEnable: false,
+ /**
+ * 是否暗黑模式
+ */
dark: false,
+
+ /**
+ * 默认语言
+ */
language: LanguageEnum.zh_CN,
+ /**
+ * 默认大小
+ */
size: 'default',
+ /**
+ * 默认布局
+ */
layout: ''
};
export default setting;
--
Gitee
From a11679dc0d2f05178b88178a6139cc4baf9393d6 Mon Sep 17 00:00:00 2001
From: JiaoYue <502583281@qq.com>
Date: Sat, 8 Feb 2025 07:41:34 +0000
Subject: [PATCH 05/53] =?UTF-8?q?update=20src/views/workflow/processDefini?=
=?UTF-8?q?tion/index.vue.=20=E4=BF=AE=E5=A4=8D=E3=80=90=E8=A1=A8=E5=8D=95?=
=?UTF-8?q?=E8=B7=AF=E5=BE=84=E3=80=91prop=E9=94=99=E8=AF=AF=20Fix:?=
=?UTF-8?q?=E4=BF=AE=E5=A4=8D=E3=80=90=E8=A1=A8=E5=8D=95=E8=B7=AF=E5=BE=84?=
=?UTF-8?q?=E3=80=91prop=E9=94=99=E8=AF=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: JiaoYue <502583281@qq.com>
---
src/views/workflow/processDefinition/index.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/workflow/processDefinition/index.vue b/src/views/workflow/processDefinition/index.vue
index 98888924..fc187186 100644
--- a/src/views/workflow/processDefinition/index.vue
+++ b/src/views/workflow/processDefinition/index.vue
@@ -177,7 +177,7 @@
-
+
--
Gitee
From 770861ed3340963eafa563d02aac90536b30f8a1 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: Sat, 8 Feb 2025 16:08:13 +0800
Subject: [PATCH 06/53] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E8=B0=83?=
=?UTF-8?q?=E6=95=B4=E5=AE=A2=E6=88=B7=E7=AB=AF=E7=AE=A1=E7=90=86=20label?=
=?UTF-8?q?=E9=95=BF=E5=BA=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/system/client/index.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/system/client/index.vue b/src/views/system/client/index.vue
index 37e86098..1f14b4ca 100644
--- a/src/views/system/client/index.vue
+++ b/src/views/system/client/index.vue
@@ -2,7 +2,7 @@
-
+
--
Gitee
From bb90dbc35b5baf354101c9ccf53c55999274b566 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: Sun, 9 Feb 2025 22:14:42 +0800
Subject: [PATCH 07/53] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=20=E4=BB=A3?=
=?UTF-8?q?=E7=A0=81=E7=94=9F=E6=88=90=20=E4=B8=8B=E6=8B=89=E6=A1=86?=
=?UTF-8?q?=E9=80=89=E9=A1=B9=E6=B2=A1=E6=B3=95=E6=B8=85=E7=A9=BA=E9=97=AE?=
=?UTF-8?q?=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/tool/gen/editTable.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/tool/gen/editTable.vue b/src/views/tool/gen/editTable.vue
index bbb0889e..173f7f22 100644
--- a/src/views/tool/gen/editTable.vue
+++ b/src/views/tool/gen/editTable.vue
@@ -89,7 +89,7 @@
-
+
{{ dict.dictName }}
{{ dict.dictType }}
--
Gitee
From ef19e97109fc25c857657a0017c2a6a8a0c0197f 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: Tue, 11 Feb 2025 09:53:08 +0800
Subject: [PATCH 08/53] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E5=88=A0?=
=?UTF-8?q?=E9=99=A4=E5=B7=B2=E7=BB=8F=E6=B2=A1=E6=9C=89=E5=AE=9E=E9=99=85?=
=?UTF-8?q?=E4=BD=9C=E7=94=A8=E7=9A=84=E4=BE=9D=E8=B5=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 2 --
1 file changed, 2 deletions(-)
diff --git a/package.json b/package.json
index 26d08625..5d8a87ec 100644
--- a/package.json
+++ b/package.json
@@ -28,8 +28,6 @@
"await-to-js": "3.0.0",
"axios": "1.7.8",
"crypto-js": "4.2.0",
- "diagram-js": "12.3.0",
- "didi": "9.0.2",
"echarts": "5.5.0",
"element-plus": "2.8.8",
"file-saver": "2.0.5",
--
Gitee
From c28fbdfb270e677d24b1f1b701c9d63b7c8aeaaa 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: Thu, 13 Feb 2025 16:57:29 +0800
Subject: [PATCH 09/53] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E8=B0=83?=
=?UTF-8?q?=E6=95=B4=E6=B3=A8=E9=87=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/workflow/task/allTaskWaiting.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/workflow/task/allTaskWaiting.vue b/src/views/workflow/task/allTaskWaiting.vue
index 0c6c46ef..c8e7f61b 100644
--- a/src/views/workflow/task/allTaskWaiting.vue
+++ b/src/views/workflow/task/allTaskWaiting.vue
@@ -97,7 +97,7 @@
-
+
--
Gitee
From e3219c434a39dad4fdcc166eb3d5863eb042ab85 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: Thu, 20 Feb 2025 10:37:25 +0800
Subject: [PATCH 10/53] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=20el-dropdown-it?=
=?UTF-8?q?em=20=E6=A0=87=E7=AD=BE=E6=97=A0=E6=B3=95=E4=BD=BF=E7=94=A8=20v?=
=?UTF-8?q?-has-permi=E8=87=AA=E5=AE=9A=E4=B9=89=E6=A0=87=E7=AD=BE=20?=
=?UTF-8?q?=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/system/user/index.vue | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 430c55aa..605c4cd5 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -81,8 +81,9 @@
下载模板
- 导入数据
- 导出数据
+
+ 导入数据
+ 导出数据
@@ -294,6 +295,8 @@ import { treeselect } from '@/api/system/dept';
import { globalHeaders } from '@/utils/request';
import { to } from 'await-to-js';
import { optionselect } from '@/api/system/post';
+import {hasPermi} from "@/directive/permission";
+import {checkPermi} from "@/utils/permission";
const router = useRouter();
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
--
Gitee
From b474a1cffcaebcd37fad295685cabd659e616ba3 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: Fri, 21 Feb 2025 10:18:04 +0800
Subject: [PATCH 11/53] update vueuse 11.3 => 12.7
---
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package.json b/package.json
index 5d8a87ec..faba6e7f 100644
--- a/package.json
+++ b/package.json
@@ -23,7 +23,7 @@
"@element-plus/icons-vue": "2.3.1",
"@highlightjs/vue-plugin": "2.1.0",
"@vueup/vue-quill": "1.2.0",
- "@vueuse/core": "11.3.0",
+ "@vueuse/core": "12.7.0",
"animate.css": "4.1.1",
"await-to-js": "3.0.0",
"axios": "1.7.8",
--
Gitee
From 74c29dc13e8a1304f9b6ff9d99e2bf96363a2da4 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: Fri, 21 Feb 2025 17:07:23 +0800
Subject: [PATCH 12/53] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=20=E6=8B=BC?=
=?UTF-8?q?=E5=86=99=E9=94=99=E8=AF=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/layout/components/AppMain.vue | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue
index 0d402f23..978c7d1c 100644
--- a/src/layout/components/AppMain.vue
+++ b/src/layout/components/AppMain.vue
@@ -24,16 +24,16 @@ const route = useRoute();
const tagsViewStore = useTagsViewStore();
// 随机动画集合
-const animante = ref('');
+const animate = ref('');
const animationEnable = ref(useSettingsStore().animationEnable);
watch(
() => useSettingsStore().animationEnable,
(val: boolean) => {
animationEnable.value = val;
if (val) {
- animante.value = proxy?.animate.animateList[Math.round(Math.random() * proxy?.animate.animateList.length)] as string;
+ animate.value = proxy?.animate.animateList[Math.round(Math.random() * proxy?.animate.animateList.length)] as string;
} else {
- animante.value = proxy?.animate.defaultAnimate as string;
+ animate.value = proxy?.animate.defaultAnimate as string;
}
},
{ immediate: true }
--
Gitee
From cc38d23d1469ad7b684b61b0bf2e9a58a11d3c74 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: Fri, 21 Feb 2025 20:32:29 +0800
Subject: [PATCH 13/53] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E6=9B=B4?=
=?UTF-8?q?=E6=94=B9=E7=89=88=E6=9D=83=E4=BF=A1=E6=81=AF2025?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/login.vue | 2 +-
src/views/register.vue | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/login.vue b/src/views/login.vue
index cbc980cf..7b14f859 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -73,7 +73,7 @@
diff --git a/src/views/register.vue b/src/views/register.vue
index f1d1e5a7..63e70092 100644
--- a/src/views/register.vue
+++ b/src/views/register.vue
@@ -67,7 +67,7 @@
--
Gitee
From aef5a020978a836ed9617eae81d6c108d70b035d Mon Sep 17 00:00:00 2001
From: LiuHao
Date: Tue, 25 Feb 2025 13:30:57 +0800
Subject: [PATCH 14/53] =?UTF-8?q?update=20=E5=8D=87=E7=BA=A7=E9=83=A8?=
=?UTF-8?q?=E5=88=86=E4=BE=9D=E8=B5=96=EF=BC=8C=E4=BC=98=E5=8C=96eslint?=
=?UTF-8?q?=E8=AF=AD=E6=B3=95=E4=BB=A5=E5=8F=8Ascss=E8=AF=AD=E6=B3=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
eslint.config.js => eslint.config.ts | 70 ++++++----------------------
package.json | 39 ++++++++--------
src/assets/styles/btn.scss | 2 +-
src/assets/styles/index.scss | 18 +++----
src/assets/styles/ruoyi.scss | 2 +
src/assets/styles/sidebar.scss | 2 +
src/layout/index.vue | 8 ++--
vite.config.ts | 12 +++--
vite/plugins/index.ts | 3 ++
9 files changed, 63 insertions(+), 93 deletions(-)
rename eslint.config.js => eslint.config.ts (39%)
diff --git a/eslint.config.js b/eslint.config.ts
similarity index 39%
rename from eslint.config.js
rename to eslint.config.ts
index 8b67e9ed..50458d1b 100644
--- a/eslint.config.js
+++ b/eslint.config.ts
@@ -1,76 +1,34 @@
-import globals from 'globals';
-import pluginJs from '@eslint/js';
-import tseslint from 'typescript-eslint';
import pluginVue from 'eslint-plugin-vue';
-import { readFile } from 'node:fs/promises';
+import globals from 'globals';
import prettier from 'eslint-plugin-prettier';
+import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript';
+import skipFormatting from '@vue/eslint-config-prettier/skip-formatting';
-/**
- * https://blog.csdn.net/sayUonly/article/details/123482912
- * 自动导入的配置
- */
-const autoImportFile = new URL('./.eslintrc-auto-import.json', import.meta.url);
-const autoImportGlobals = JSON.parse(await readFile(autoImportFile, 'utf8'));
-
-/** @type {import('eslint').Linter.Config[]} */
-export default [
+export default defineConfigWithVueTs(
{
- /**
- * 不需要.eslintignore文件 而是在这里配置
- */
- ignores: [
- '*.sh',
- 'node_modules',
- '*.md',
- '*.woff',
- '*.ttf',
- '.vscode',
- '.idea',
- 'dist',
- '/public',
- '/docs',
- '.husky',
- '.local',
- '/bin',
- '.eslintrc.cjs',
- 'prettier.config.js',
- 'src/assets',
- 'tailwind.config.js'
- ]
+ name: 'app/files-to-lint',
+ files: ['**/*.{js,cjs,ts,mts,tsx,vue}']
},
- { files: ['**/*.{js,mjs,cjs,ts,vue}'] },
+
{
- languageOptions: {
- globals: globals.browser
- }
+ name: 'app/files-to-ignore',
+ ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**']
},
- pluginJs.configs.recommended,
- ...tseslint.configs.recommended,
- ...pluginVue.configs['flat/essential'],
{
- files: ['**/*.vue'],
languageOptions: {
- parserOptions: {
- parser: tseslint.parser
- }
+ globals: globals.browser
}
},
+ pluginVue.configs['flat/essential'],
+ vueTsConfigs.recommended,
+ skipFormatting,
{
- languageOptions: {
- globals: {
- // 自动导入的配置 undef
- ...autoImportGlobals.globals,
- DialogOption: 'readonly',
- LayoutSetting: 'readonly'
- }
- },
plugins: { prettier },
rules: {
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-this-alias': 'off',
-
// vue
'vue/multi-word-component-names': 'off',
'vue/valid-define-props': 'off',
@@ -83,4 +41,4 @@ export default [
'@typescript-eslint/no-unused-expressions': 'off'
}
}
-];
+);
diff --git a/package.json b/package.json
index faba6e7f..26b156d4 100644
--- a/package.json
+++ b/package.json
@@ -48,38 +48,37 @@
"vxe-table": "4.5.22"
},
"devDependencies": {
- "@eslint/js": "9.15.0",
"@iconify/json": "2.2.276",
"@types/crypto-js": "4.2.2",
"@types/file-saver": "2.0.7",
"@types/js-cookie": "3.0.6",
- "@types/node": "18.18.2",
"@types/nprogress": "0.2.3",
- "@unocss/preset-attributify": "0.64.1",
- "@unocss/preset-icons": "0.64.1",
- "@unocss/preset-uno": "0.64.1",
- "@vitejs/plugin-vue": "5.0.4",
+ "@unocss/preset-attributify": "66.0.0",
+ "@unocss/preset-icons": "66.0.0",
+ "@unocss/preset-uno": "66.0.0",
+ "@vitejs/plugin-vue": "5.2.1",
"@vue/compiler-sfc": "3.4.23",
- "autoprefixer": "10.4.18",
- "eslint": "9.15.0",
- "eslint-plugin-prettier": "^5.2.1",
- "eslint-plugin-vue": "9.31.0",
+ "@vue/eslint-config-prettier": "10.2.0",
+ "@vue/eslint-config-typescript": "14.4.0",
+ "autoprefixer": "10.4.20",
+ "eslint": "9.21.0",
+ "eslint-plugin-prettier": "5.2.3",
+ "eslint-plugin-vue": "9.32.0",
"fast-glob": "3.3.2",
- "globals": "15.12.0",
- "postcss": "8.4.36",
- "prettier": "3.2.5",
- "sass": "1.72.0",
- "typescript": "5.7.2",
- "typescript-eslint": "8.16.0",
- "unocss": "0.64.1",
+ "globals": "16.0.0",
+ "prettier": "3.5.2",
+ "sass": "1.84.0",
+ "typescript": "5.7.3",
+ "unocss": "66.0.0",
"unplugin-auto-import": "0.17.5",
"unplugin-icons": "0.18.5",
- "unplugin-vue-components": "0.26.0",
+ "unplugin-vue-components": "28.0.0",
"unplugin-vue-setup-extend-plus": "1.0.1",
"vite": "5.4.11",
"vite-plugin-compression": "0.5.1",
"vite-plugin-svg-icons": "2.0.1",
- "vitest": "1.5.0",
- "vue-tsc": "2.0.13"
+ "vite-plugin-vue-devtools": "7.7.1",
+ "vitest": "3.0.5",
+ "vue-tsc": "2.2.0"
}
}
diff --git a/src/assets/styles/btn.scss b/src/assets/styles/btn.scss
index a1ccd010..d614f2fd 100644
--- a/src/assets/styles/btn.scss
+++ b/src/assets/styles/btn.scss
@@ -1,4 +1,4 @@
-@import './variables.module.scss';
+@use './variables.module.scss' as *;
@mixin colorBtn($color) {
background: $color;
diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss
index bdf9b032..fa0f9fe3 100644
--- a/src/assets/styles/index.scss
+++ b/src/assets/styles/index.scss
@@ -1,12 +1,12 @@
-@import './variables.module.scss';
-@import './mixin.scss';
-@import './transition.scss';
-@import './element-ui.scss';
-@import './sidebar.scss';
-@import './btn.scss';
-@import './ruoyi.scss';
-@import 'animate.css';
-@import 'element-plus/dist/index.css';
+@use './variables.module.scss' as *;
+@use './mixin.scss';
+@use './transition.scss';
+@use './element-ui.scss';
+@use './sidebar.scss';
+@use './btn.scss';
+@use './ruoyi.scss';
+@use 'animate.css';
+@use 'element-plus/dist/index.css';
body {
height: 100%;
diff --git a/src/assets/styles/ruoyi.scss b/src/assets/styles/ruoyi.scss
index d2ecb242..3d90b8b4 100644
--- a/src/assets/styles/ruoyi.scss
+++ b/src/assets/styles/ruoyi.scss
@@ -1,3 +1,5 @@
+@use './variables.module.scss' as *;
+
/**
* 通用css样式布局处理
* Copyright (c) 2019 ruoyi
diff --git a/src/assets/styles/sidebar.scss b/src/assets/styles/sidebar.scss
index d85da554..f19abe4b 100644
--- a/src/assets/styles/sidebar.scss
+++ b/src/assets/styles/sidebar.scss
@@ -1,3 +1,5 @@
+@use './variables.module.scss' as *;
+
#app {
.main-container {
height: 100%;
diff --git a/src/layout/index.vue b/src/layout/index.vue
index 207a4709..128696cb 100644
--- a/src/layout/index.vue
+++ b/src/layout/index.vue
@@ -68,7 +68,7 @@ onMounted(() => {
});
onMounted(() => {
- let protocol = window.location.protocol === 'https:' ? 'wss://' : 'ws://';
+ const protocol = window.location.protocol === 'https:' ? 'wss://' : 'ws://';
initWebSocket(protocol + window.location.host + import.meta.env.VITE_APP_BASE_API + '/resource/websocket');
});
@@ -86,11 +86,11 @@ const setLayout = () => {
\ No newline at end of file
+
--
Gitee
From acc760a20fb0de104eaf622b46205aeed61494d8 Mon Sep 17 00:00:00 2001
From: yangxu52
Date: Thu, 6 Mar 2025 22:45:42 +0800
Subject: [PATCH 36/53] =?UTF-8?q?chore:=20=E4=BF=AE=E6=94=B9svg-icon?=
=?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BB=A5=E5=90=AF=E7=94=A8svgo=E4=BC=98?=
=?UTF-8?q?=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- /src/assets/icons/build.svg导致svgo优化失败
- 现已修复,故启用svgo(默认即启用,故移除覆盖的`false`)
---
vite/plugins/svg-icon.ts | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/vite/plugins/svg-icon.ts b/vite/plugins/svg-icon.ts
index 71915b1e..3ad93fb8 100644
--- a/vite/plugins/svg-icon.ts
+++ b/vite/plugins/svg-icon.ts
@@ -5,8 +5,6 @@ export default (path: any) => {
// 指定需要缓存的图标文件夹
iconDirs: [path.resolve(path.resolve(__dirname, '../../src'), 'assets/icons/svg')],
// 指定symbolId格式
- symbolId: 'icon-[dir]-[name]',
- // 是否使用svgo优化svg
- svgoOptions: false
+ symbolId: 'icon-[dir]-[name]'
});
};
--
Gitee
From abc6e4f454214e48e040de3a0bca1db12a7f719f 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: Thu, 6 Mar 2025 23:08:06 +0800
Subject: [PATCH 37/53] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=E4=BB=A3?=
=?UTF-8?q?=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/layout/components/Navbar.vue | 11 ++++++-----
src/store/modules/user.ts | 4 ----
2 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 01cc22ec..8b0468c6 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -99,6 +99,7 @@ import { dynamicClear, dynamicTenant } from '@/api/system/tenant';
import { TenantVO } from '@/api/types';
import notice from './notice/index.vue';
import router from '@/router';
+import {ElMessageBoxOptions} from "element-plus/es/components/message-box/src/message-box.type";
const appStore = useAppStore();
const userStore = useUserStore();
@@ -128,8 +129,8 @@ const dynamicTenantEvent = async (tenantId: string) => {
await dynamicTenant(tenantId);
dynamic.value = true;
await proxy?.$router.push('/');
- await proxy?.proxy.$tab.closeAllPage();
- await proxy?.proxy.$tab.refreshPage();
+ await proxy?.$tab.closeAllPage();
+ await proxy?.$tab.refreshPage();
}
};
@@ -137,8 +138,8 @@ const dynamicClearEvent = async () => {
await dynamicClear();
dynamic.value = false;
await proxy?.$router.push('/');
- await proxy?.proxy.$tab.closeAllPage();
- await proxy?.proxy.$tab.refreshPage();
+ await proxy?.$tab.closeAllPage();
+ await proxy?.$tab.refreshPage();
};
/** 租户列表 */
@@ -163,7 +164,7 @@ const logout = async () => {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
- });
+ } as ElMessageBoxOptions);
userStore.logout().then(() => {
router.replace({
path: '/login',
diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts
index 56f369bf..f6279b78 100644
--- a/src/store/modules/user.ts
+++ b/src/store/modules/user.ts
@@ -85,7 +85,3 @@ export const useUserStore = defineStore('user', () => {
});
export default useUserStore;
-// 非setup
-export function useUserStoreHook() {
- return useUserStore(store);
-}
--
Gitee
From b2219cabec3aa8b1e7a3f942ba54f0bebcad5130 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: Thu, 6 Mar 2025 23:13:35 +0800
Subject: [PATCH 38/53] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=E4=BB=A3?=
=?UTF-8?q?=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/workflow/processDefinition/index.vue | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/views/workflow/processDefinition/index.vue b/src/views/workflow/processDefinition/index.vue
index fc187186..af5d0c9d 100644
--- a/src/views/workflow/processDefinition/index.vue
+++ b/src/views/workflow/processDefinition/index.vue
@@ -196,6 +196,7 @@ import { categoryTree } from '@/api/workflow/category';
import { CategoryTreeVO } from '@/api/workflow/category/types';
import { FlowDefinitionQuery, FlowDefinitionVo, FlowDefinitionForm } from '@/api/workflow/definition/types';
import { UploadRequestOptions, TabsPaneContext } from 'element-plus';
+import { ElMessageBoxOptions } from "element-plus/es/components/message-box/src/message-box.type";
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
@@ -498,7 +499,7 @@ const handleCopyDef = async (row: FlowDefinitionVo) => {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning'
- }).then(() => {
+ } as ElMessageBoxOptions).then(() => {
loading.value = true;
copy(row.id).then((resp) => {
if (resp.code === 200) {
--
Gitee
From e341b45429ed84f61d7d0dfaf870065bce58eb61 Mon Sep 17 00:00:00 2001
From: yangxu52
Date: Thu, 6 Mar 2025 23:54:06 +0800
Subject: [PATCH 39/53] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E5=86=97?=
=?UTF-8?q?=E4=BD=99=E7=9A=84=E7=B1=BB=E5=9E=8B=E5=A3=B0=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
使用defineConfig自带类型推断,无需单独声明类型
---
vite.config.ts | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/vite.config.ts b/vite.config.ts
index 8f44b950..b29dd407 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1,9 +1,9 @@
-import { type UserConfig, type ConfigEnv, loadEnv, defineConfig } from 'vite';
+import { defineConfig, loadEnv } from 'vite';
import createPlugins from './vite/plugins';
import autoprefixer from 'autoprefixer'; // css自动添加兼容性前缀
-
import path from 'path';
-export default defineConfig(({ mode, command }: ConfigEnv): UserConfig => {
+
+export default defineConfig(({ mode, command }) => {
const env = loadEnv(mode, process.cwd());
return {
// 部署生产环境和开发环境下的URL。
--
Gitee
From 71b9d5d46857e9d03c4fb3cbcb0793c93551c407 Mon Sep 17 00:00:00 2001
From: yangxu52
Date: Fri, 7 Mar 2025 00:01:37 +0800
Subject: [PATCH 40/53] =?UTF-8?q?chore:=20=E7=BB=9F=E4=B8=80script?=
=?UTF-8?q?=E6=A0=87=E7=AD=BE=E7=9A=84=E5=AD=97=E6=AE=B5=E9=A1=BA=E5=BA=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
-
-
-
diff --git a/src/layout/components/TopBar/search.vue b/src/layout/components/TopBar/search.vue
index 182e84a8..348d099f 100644
--- a/src/layout/components/TopBar/search.vue
+++ b/src/layout/components/TopBar/search.vue
@@ -130,7 +130,7 @@ defineExpose({
});
-
diff --git a/src/views/system/role/selectUser.vue b/src/views/system/role/selectUser.vue
index e55120a4..12df8282 100644
--- a/src/views/system/role/selectUser.vue
+++ b/src/views/system/role/selectUser.vue
@@ -128,5 +128,3 @@ defineExpose({
show
});
-
-
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 605c4cd5..b9b7a9aa 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -288,15 +288,15 @@
-
-
diff --git a/src/views/system/user/profile/thirdParty.vue b/src/views/system/user/profile/thirdParty.vue
index 4a445e0d..11d02d40 100644
--- a/src/views/system/user/profile/thirdParty.vue
+++ b/src/views/system/user/profile/thirdParty.vue
@@ -94,7 +94,7 @@ const authUrl = (source: string) => {
};
-