torchv-translate 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -1
- package/translate.js/translate.js +9 -10
package/package.json
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "torchv-translate",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Two lines of js realize automatic html translation. No need to change the page, no language configuration file, no API key, SEO friendly!",
|
|
5
5
|
"main": "index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./index.js",
|
|
8
|
+
"./vue3": "./extend/vue/vue3/translateVue3TS.ts",
|
|
9
|
+
"./vue3/LanguageSelect.vue": "./extend/vue/vue3/LanguageSelect.vue",
|
|
10
|
+
"./ArcoDesign/LanguageSelect.vue": "./extend/ArcoDesign/Vue3/LanguageSelect.vue",
|
|
11
|
+
"./naiveUI/LanguageSelect.vue": "./extend/naiveUI/LanguageSelect.vue"
|
|
12
|
+
},
|
|
6
13
|
"scripts": {
|
|
7
14
|
"version": "node dev/update-version.js",
|
|
8
15
|
"postversion": "git push && git push --tags"
|
|
@@ -14,7 +14,7 @@ var translate = {
|
|
|
14
14
|
* 格式:major.minor.patch.date
|
|
15
15
|
*/
|
|
16
16
|
// AUTO_VERSION_START
|
|
17
|
-
version: '1.0.
|
|
17
|
+
version: '1.0.1.20260127',
|
|
18
18
|
// AUTO_VERSION_END
|
|
19
19
|
/*
|
|
20
20
|
当前使用的版本,默认使用v2. 可使用 setUseVersion2();
|
|
@@ -8487,18 +8487,17 @@ var translate = {
|
|
|
8487
8487
|
}
|
|
8488
8488
|
|
|
8489
8489
|
translate.request.speedDetectionControl.checkResponseSpeed_Storage(host, time);
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
|
|
8493
|
-
translate.request.speedDetectionControl.checkHostQueue.sort((a, b) => a.time - b.time);
|
|
8490
|
+
//translate.request.speedDetectionControl.checkHostQueue.push({"host":host, "time":time });
|
|
8491
|
+
////按照time进行排序
|
|
8492
|
+
//translate.request.speedDetectionControl.checkHostQueue.sort((a, b) => a.time - b.time);
|
|
8494
8493
|
|
|
8495
8494
|
//存储到 storage 持久化
|
|
8496
|
-
translate.storage.set('speedDetectionControl_hostQueue',JSON.stringify(translate.request.speedDetectionControl.checkHostQueue));
|
|
8497
|
-
translate.storage.set('speedDetectionControl_lasttime', new Date().getTime());
|
|
8495
|
+
//translate.storage.set('speedDetectionControl_hostQueue',JSON.stringify(translate.request.speedDetectionControl.checkHostQueue));
|
|
8496
|
+
//translate.storage.set('speedDetectionControl_lasttime', new Date().getTime());
|
|
8498
8497
|
|
|
8499
|
-
translate.request.speedDetectionControl.hostQueue = translate.request.speedDetectionControl.checkHostQueue;
|
|
8500
|
-
|
|
8501
|
-
|
|
8498
|
+
//translate.request.speedDetectionControl.hostQueue = translate.request.speedDetectionControl.checkHostQueue;
|
|
8499
|
+
////console.log(translate.request.speedDetectionControl.hostQueue);
|
|
8500
|
+
//
|
|
8502
8501
|
},
|
|
8503
8502
|
'post',
|
|
8504
8503
|
true,
|