Pārlūkot izejas kodu

😎1、优化signalR配置 2、升级依赖

zuohuaijun 4 mēneši atpakaļ
vecāks
revīzija
095cb301b7
4 mainītis faili ar 12976 papildinājumiem un 12966 dzēšanām
  1. 2 2
      Web/lang/index.js
  2. 12951 12943
      Web/lang/index.json
  3. 19 19
      Web/package.json
  4. 4 2
      Web/src/views/system/onlineUser/signalR.ts

+ 2 - 2
Web/lang/index.js

@@ -1,5 +1,5 @@
 
-    // 导入国际化JSON文件
+    // 导入国际化JSON文件(合并模式)
     import langJSON from './index.json'
     (function () {
     // 定义翻译函数
@@ -43,7 +43,7 @@
     globalThis.$t = globalThis.$t || $t;
     // 将简单翻译函数挂载到globalThis对象上
     globalThis.$$t = $$t;
-    // 定义从JSON文件中获取指定键的语言对象的方法
+    // 定义从JSON文件中获取指定键的语言对象的方法(合并模式)
     globalThis._getJSONKey = function (key, insertJSONObj = undefined) {
         // 获取JSON对象
         const JSONObj = insertJSONObj;

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 12951 - 12943
Web/lang/index.json


+ 19 - 19
Web/package.json

@@ -2,7 +2,7 @@
 	"name": "admin.net",
 	"type": "module",
 	"version": "2.4.33",
-	"lastBuildTime": "2025.11.23",
+	"lastBuildTime": "2025.12.06",
 	"description": "Admin.NET 站在巨人肩膀上的 .NET 通用权限开发框架",
 	"author": "zuohuaijun",
 	"license": "MIT",
@@ -25,14 +25,14 @@
 	},
 	"dependencies": {
 		"@element-plus/icons-vue": "^2.3.2",
-		"@logicflow/core": "^2.1.3",
-		"@logicflow/extension": "^2.1.5",
-		"@logicflow/vue-node-registry": "^1.1.4",
+		"@logicflow/core": "^2.2.0",
+		"@logicflow/extension": "^2.2.0",
+		"@logicflow/vue-node-registry": "^1.2.0",
 		"@microsoft/signalr": "^10.0.0",
 		"@vue-office/docx": "^1.6.3",
 		"@vue-office/excel": "^1.7.14",
 		"@vue-office/pdf": "^2.0.10",
-		"@vueuse/core": "^14.0.0",
+		"@vueuse/core": "^14.1.0",
 		"@wangeditor/editor": "^5.1.23",
 		"@wangeditor/editor-for-vue": "^5.1.12",
 		"animate.css": "^4.1.1",
@@ -43,8 +43,8 @@
 		"echarts": "^6.0.0",
 		"echarts-gl": "^2.0.9",
 		"echarts-wordcloud": "^2.1.0",
-		"element-plus": "^2.11.8",
-		"ezuikit-js": "^8.1.17",
+		"element-plus": "^2.12.0",
+		"ezuikit-js": "^8.2.0",
 		"js-cookie": "^3.0.5",
 		"js-table2excel": "^1.1.2",
 		"json-editor-vue": "^0.18.1",
@@ -67,12 +67,12 @@
 		"splitpanes": "^4.0.4",
 		"vcrontab-3": "^3.3.22",
 		"vform3-builds": "^3.0.10",
-		"vue": "^3.5.24",
+		"vue": "^3.5.25",
 		"vue-clipboard3": "^2.0.0",
 		"vue-demi": "^0.14.10",
 		"vue-draggable-plus": "^0.6.0",
 		"vue-grid-layout": "3.0.0-beta1",
-		"vue-i18n": "^11.2.1",
+		"vue-i18n": "^11.2.2",
 		"vue-json-pretty": "^2.6.0",
 		"vue-plugin-hiprint": "^0.0.60",
 		"vue-router": "^4.6.3",
@@ -81,7 +81,7 @@
 		"xlsx-js-style": "^1.2.0"
 	},
 	"devDependencies": {
-		"@eslint/eslintrc": "^3.3.1",
+		"@eslint/eslintrc": "^3.3.3",
 		"@eslint/js": "^9.39.1",
 		"@plugin-web-update-notification/vite": "^2.0.2",
 		"@rollup/pluginutils": "^5.3.0",
@@ -89,28 +89,28 @@
 		"@types/node": "^22.19.1",
 		"@types/nprogress": "^0.2.3",
 		"@types/sortablejs": "^1.15.9",
-		"@typescript-eslint/eslint-plugin": "^8.47.0",
-		"@typescript-eslint/parser": "^8.47.0",
+		"@typescript-eslint/eslint-plugin": "^8.48.1",
+		"@typescript-eslint/parser": "^8.48.1",
 		"@vitejs/plugin-vue": "^6.0.2",
 		"@vitejs/plugin-vue-jsx": "^5.1.2",
-		"@vue/compiler-sfc": "^3.5.24",
+		"@vue/compiler-sfc": "^3.5.25",
 		"cli-progress": "^3.12.0",
-		"code-inspector-plugin": "^1.3.0",
+		"code-inspector-plugin": "^1.2.10",
 		"colors": "^1.4.0",
 		"dotenv": "^17.2.3",
 		"eslint": "^9.39.1",
-		"eslint-plugin-vue": "^10.6.0",
+		"eslint-plugin-vue": "^10.6.2",
 		"globals": "^16.5.0",
 		"less": "^4.4.2",
-		"prettier": "^3.6.2",
+		"prettier": "^3.7.4",
 		"rollup-plugin-visualizer": "^6.0.5",
 		"sass": "^1.94.2",
 		"terser": "^5.44.1",
 		"typescript": "^5.9.3",
-		"vite": "^7.2.4",
-		"vite-auto-i18n-plugin": "^1.1.13",
+		"vite": "^7.2.6",
+		"vite-auto-i18n-plugin": "^1.1.14",
 		"vite-plugin-cdn-import": "^1.0.1",
-		"vite-plugin-compression2": "^2.3.1",
+		"vite-plugin-compression2": "^2.4.0",
 		"vite-plugin-vue-setup-extend": "^0.4.0",
 		"vue-eslint-parser": "^10.2.0"
 	},

+ 4 - 2
Web/src/views/system/onlineUser/signalR.ts

@@ -13,8 +13,10 @@ const connection = new SignalR.HubConnectionBuilder()
 	})
 	.build();
 
-connection.keepAliveIntervalInMilliseconds = 15 * 1000; // 心跳检测15s
-connection.serverTimeoutInMilliseconds = 30 * 60 * 1000; // 超时时间30m
+// 心跳检测:若15s内没有向服务器发送任何消息,则ping一下服务器端
+connection.keepAliveIntervalInMilliseconds = 15 * 1000;
+// 超时时间:若30s内没有收到服务器端发过来的信息,则认为服务器端异常
+connection.serverTimeoutInMilliseconds = 30 * 1000;
 
 // 启动连接
 connection.start().then(() => {

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels