verteilen-core 1.0.0 → 1.0.2
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 +1 -2
- package/src/interface.ts +32 -1
- package/src/plugins/i18n.ts +19 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "verteilen-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://verteilen.github.io/wiki/",
|
|
6
6
|
"author": "Elly",
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
"systeminformation": "^5.25.11",
|
|
32
32
|
"tcp-port-used": "^1.0.2",
|
|
33
33
|
"tree-kill": "^1.2.2",
|
|
34
|
-
"tsc": "^2.0.4",
|
|
35
34
|
"uuid": "^11.0.5",
|
|
36
35
|
"vue-i18n": "^11.1.12",
|
|
37
36
|
"ws": "^8.18.0"
|
package/src/interface.ts
CHANGED
|
@@ -15,7 +15,6 @@ export const WebPORT = 11080
|
|
|
15
15
|
* Default webhook port
|
|
16
16
|
*/
|
|
17
17
|
export const WebHookPORT = 15080
|
|
18
|
-
|
|
19
18
|
/**
|
|
20
19
|
* The upper limit for each message box can hold
|
|
21
20
|
*/
|
|
@@ -48,3 +47,35 @@ export * from './interface/struct'
|
|
|
48
47
|
export * from './interface/table'
|
|
49
48
|
export * from './interface/ui'
|
|
50
49
|
|
|
50
|
+
/**
|
|
51
|
+
* Client
|
|
52
|
+
*/
|
|
53
|
+
export * as ClientAnalysis from './client/analysis'
|
|
54
|
+
export * as Client from './client/client'
|
|
55
|
+
export * as ClientCluster from './client/cluster'
|
|
56
|
+
export * as ClientExecute from './client/execute'
|
|
57
|
+
export * as ClientHttp from './client/http'
|
|
58
|
+
export * as ClientJavascript from './client/javascript'
|
|
59
|
+
export * as ClientOS from './client/os'
|
|
60
|
+
export * as ClientParameter from './client/parameter'
|
|
61
|
+
export * as ClientResource from './client/resource'
|
|
62
|
+
export * as ClientShell from './client/shell'
|
|
63
|
+
/**
|
|
64
|
+
* Plugin
|
|
65
|
+
*/
|
|
66
|
+
export * as I18N from './plugins/i18n'
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Scripts
|
|
70
|
+
*/
|
|
71
|
+
export * as Execute_ConsoleManager from './script/console_manager'
|
|
72
|
+
export * as Execute_ConsoleServerManager from './script/console_server_manager'
|
|
73
|
+
export * as Execute_ExecuteManager from './script/execute_manager'
|
|
74
|
+
export * as Execute_SocketManager from './script/socket_manager'
|
|
75
|
+
export * as Execute_WebhookManager from './script/webhook_manager'
|
|
76
|
+
export * as Execute_WebhookServerManager from './script/webhook_server_manager'
|
|
77
|
+
/**
|
|
78
|
+
* Util
|
|
79
|
+
*/
|
|
80
|
+
export * as UtilServer_Console from './util/server/console_handle'
|
|
81
|
+
export * as UtilServer_Log from './util/server/log_handle'
|
package/src/plugins/i18n.ts
CHANGED
|
@@ -7,7 +7,20 @@ import { createI18n } from 'vue-i18n'
|
|
|
7
7
|
import en from './../lan/en.json'
|
|
8
8
|
import zh_TW from './../lan/zh_TW.json'
|
|
9
9
|
|
|
10
|
-
export
|
|
10
|
+
export { createI18n as Create }
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Default vue-i18nconfig\
|
|
14
|
+
* It follows the format where link below describe\
|
|
15
|
+
* {@link https://vue-i18n.intlify.dev/api/general}\
|
|
16
|
+
* Import them simple use them
|
|
17
|
+
* @example
|
|
18
|
+
* // Use The Plugin
|
|
19
|
+
* import { createApp } from 'vue'
|
|
20
|
+
* const app = createApp(App)
|
|
21
|
+
* app.use(i18n)
|
|
22
|
+
*/
|
|
23
|
+
export const i18nDefaultData = {
|
|
11
24
|
locale: 'en',
|
|
12
25
|
globalInjection: true,
|
|
13
26
|
fallbackFormat: 'en',
|
|
@@ -17,4 +30,8 @@ export const i18nData = {
|
|
|
17
30
|
}
|
|
18
31
|
}
|
|
19
32
|
|
|
20
|
-
|
|
33
|
+
/**
|
|
34
|
+
* The language module which translate key into setup text string\
|
|
35
|
+
* This apply the default config
|
|
36
|
+
*/
|
|
37
|
+
export const i18n = createI18n(i18nDefaultData)
|