verteilen-core 1.4.21 → 1.4.22

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.
Files changed (100) hide show
  1. package/dist/client/analysis.d.ts +0 -17
  2. package/dist/client/analysis.js +0 -22
  3. package/dist/client/client.d.ts +0 -17
  4. package/dist/client/client.js +4 -34
  5. package/dist/client/cluster.d.ts +0 -3
  6. package/dist/client/cluster.js +0 -32
  7. package/dist/client/database.d.ts +0 -16
  8. package/dist/client/database.js +0 -16
  9. package/dist/client/execute.d.ts +0 -33
  10. package/dist/client/execute.js +0 -38
  11. package/dist/client/javascript.d.ts +0 -23
  12. package/dist/client/javascript.js +0 -34
  13. package/dist/client/job_database.d.ts +0 -4
  14. package/dist/client/job_database.js +0 -4
  15. package/dist/client/job_execute.d.ts +0 -28
  16. package/dist/client/job_execute.js +0 -29
  17. package/dist/client/os.d.ts +0 -26
  18. package/dist/client/os.js +0 -32
  19. package/dist/client/resource.d.ts +0 -3
  20. package/dist/client/resource.js +0 -8
  21. package/dist/client/shell.d.ts +0 -16
  22. package/dist/client/shell.js +0 -21
  23. package/dist/computed.d.ts +0 -13
  24. package/dist/computed.js +32 -29
  25. package/dist/index.js +0 -4
  26. package/dist/interface/base.d.ts +0 -261
  27. package/dist/interface/base.js +0 -8
  28. package/dist/interface/bus.d.ts +0 -73
  29. package/dist/interface/enum.d.ts +0 -67
  30. package/dist/interface/enum.js +0 -74
  31. package/dist/interface/execute.d.ts +0 -46
  32. package/dist/interface/log.d.ts +0 -54
  33. package/dist/interface/plugin.d.ts +0 -192
  34. package/dist/interface/record.d.ts +0 -13
  35. package/dist/interface/server.d.ts +0 -20
  36. package/dist/interface/server.js +0 -8
  37. package/dist/interface/struct.d.ts +1 -140
  38. package/dist/interface/table.d.ts +0 -39
  39. package/dist/interface/ui.d.ts +0 -104
  40. package/dist/interface/ui.js +0 -8
  41. package/dist/interface.d.ts +0 -30
  42. package/dist/interface.js +18 -44
  43. package/dist/plugins/i18n.d.ts +0 -19
  44. package/dist/plugins/i18n.js +0 -24
  45. package/dist/script/console_manager.d.ts +0 -3
  46. package/dist/script/console_manager.js +0 -3
  47. package/dist/script/console_server_manager.d.ts +0 -3
  48. package/dist/script/console_server_manager.js +0 -3
  49. package/dist/script/execute/base.d.ts +2 -98
  50. package/dist/script/execute/base.js +0 -105
  51. package/dist/script/execute/feedback.d.ts +0 -34
  52. package/dist/script/execute/feedback.js +0 -46
  53. package/dist/script/execute/region_job.js +0 -6
  54. package/dist/script/execute/region_project.js +0 -17
  55. package/dist/script/execute/region_subtask.js +0 -5
  56. package/dist/script/execute/region_task.d.ts +5 -41
  57. package/dist/script/execute/region_task.js +0 -75
  58. package/dist/script/execute/runner.d.ts +0 -7
  59. package/dist/script/execute/runner.js +0 -15
  60. package/dist/script/execute/util_parser.d.ts +0 -41
  61. package/dist/script/execute/util_parser.js +1 -47
  62. package/dist/script/execute_manager.d.ts +0 -38
  63. package/dist/script/execute_manager.js +0 -54
  64. package/dist/script/socket_manager.d.ts +0 -79
  65. package/dist/script/socket_manager.js +0 -84
  66. package/dist/script/webhook_server_manager.js +1 -1
  67. package/dist/server/detail/console_handle.d.ts +0 -13
  68. package/dist/server/detail/console_handle.js +0 -14
  69. package/dist/server/detail/log_handle.d.ts +0 -5
  70. package/dist/server/detail/log_handle.js +0 -5
  71. package/dist/server/detail.d.ts +4 -32
  72. package/dist/server/detail.js +0 -43
  73. package/dist/server/io.d.ts +0 -21
  74. package/dist/server/io.js +0 -18
  75. package/dist/server/io2.d.ts +0 -19
  76. package/dist/server/io2.js +0 -54
  77. package/dist/server/module/account.d.ts +0 -6
  78. package/dist/server/module/account.js +0 -11
  79. package/dist/server/module/project.d.ts +1 -50
  80. package/dist/server/module/project.js +0 -49
  81. package/dist/server/plugin.d.ts +0 -51
  82. package/dist/server/plugin.js +0 -13
  83. package/dist/server/server.d.ts +0 -21
  84. package/dist/server/server.js +0 -10
  85. package/dist/server/server2.d.ts +0 -4
  86. package/dist/server/server2.js +0 -9
  87. package/dist/server.d.ts +0 -3
  88. package/dist/server.js +0 -3
  89. package/jest.config.js +11 -0
  90. package/package.json +3 -2
  91. package/src/client/client.ts +1 -1
  92. package/src/computed.ts +1 -5
  93. package/src/interface/struct.ts +1 -1
  94. package/src/script/webhook_server_manager.ts +1 -1
  95. package/test/call/print.ts +1 -1
  96. package/tsconfig.json +4 -4
  97. package/dist/util/port.d.ts +0 -1
  98. package/dist/util/port.js +0 -15
  99. package/jest.config.ts +0 -12
  100. package/src/util/port.ts +0 -15
@@ -1,123 +1,43 @@
1
- /**
2
- * All kinds of data structure
3
- * It's a mess, i know
4
- */
1
+ import * as ws from 'ws';
5
2
  import { Job } from "./base";
6
- import ws from 'ws';
7
3
  import { ServiceMode, TaskLogicType } from "./enum";
8
4
  import { Plugin } from "./plugin";
9
- /**
10
- * The websocket instance with extra information
11
- */
12
5
  export interface WebsocketPack {
13
6
  s?: boolean;
14
7
  uuid: string;
15
8
  parent?: string;
16
- /**
17
- * The instance of websocket
18
- */
19
9
  websocket: WebSocket | ws.WebSocket;
20
- /**
21
- * Current execute job uuid list
22
- */
23
10
  current_job: Array<string>;
24
- /**
25
- * Show operation system information
26
- */
27
11
  information?: SystemLoad;
28
- /**
29
- * Show workload data
30
- */
31
12
  load?: NodeLoad;
32
- /**
33
- * Ping delay time\
34
- * Use this for display the ping
35
- */
36
13
  ms?: number;
37
- /**
38
- * Ping delay time last
39
- */
40
14
  last?: number;
41
- /**
42
- * Plugins installed list
43
- */
44
15
  plugins?: Array<Plugin>;
45
- /**
46
- * Cluster node possibility
47
- */
48
16
  children?: Array<WebsocketPack>;
49
17
  }
50
- /**
51
- * The data transfer packet header
52
- */
53
18
  export interface Header {
54
- /**
55
- * Header name, it will match the function dict in both server and client side
56
- */
57
19
  name: string;
58
- /**
59
- * **Where Data Go**\
60
- * The path to go\
61
- * You might go to cluster and send to node children\
62
- * This data specified the IP path\
63
- * If undefined, it means it's destinations
64
- * @example Use Space to seperate
65
- * "192.168.10.1:50 192.168.10.7:8052"
66
- */
67
20
  destinations?: string;
68
- /**
69
- * **Token Session**\
70
- * Some request require token to access
71
- */
72
21
  token?: string;
73
- /**
74
- * **Extra Metadata**
75
- */
76
22
  meta?: string;
77
- /**
78
- * **Print Message**
79
- */
80
23
  message?: string;
81
- /**
82
- * **Resource channel**
83
- */
84
24
  channel?: string;
85
- /**
86
- * **TData Content**\
87
- * The content of the websocket package\
88
- * Put everything you want to send in here
89
- */
90
25
  data?: any;
91
26
  }
92
- /**
93
- * **Data Format: Single Data**
94
- */
95
27
  export interface Single {
96
28
  data: any;
97
29
  }
98
- /**
99
- * **Data Format: Path Data**
100
- */
101
30
  export interface OnePath {
102
31
  path: string;
103
32
  }
104
- /**
105
- * **Data Format: Arrow Path**
106
- */
107
33
  export interface TwoPath {
108
34
  from: string;
109
35
  to: string;
110
36
  }
111
- /**
112
- * **Data Format: Map Setter**
113
- */
114
37
  export interface Setter {
115
38
  key: string;
116
39
  value: any;
117
40
  }
118
- /**
119
- * **Data Format: Feedback**
120
- */
121
41
  export interface FeedBack {
122
42
  node_uuid?: string;
123
43
  index?: number;
@@ -126,16 +46,10 @@ export interface FeedBack {
126
46
  meta: number;
127
47
  message: string;
128
48
  }
129
- /**
130
- * **Data Format: KeyValue**
131
- */
132
49
  export interface KeyValue {
133
50
  key: any;
134
51
  value: any;
135
52
  }
136
- /**
137
- * **Data Format: JWT Info**
138
- */
139
53
  export interface JWT {
140
54
  user: string;
141
55
  create: number;
@@ -156,9 +70,6 @@ export interface SystemLoad_Disk {
156
70
  disk_total: number;
157
71
  disk_percentage: number;
158
72
  }
159
- /**
160
- * The resources usage
161
- */
162
73
  export interface SystemLoad {
163
74
  system_name: string;
164
75
  virtual: boolean;
@@ -178,34 +89,13 @@ export interface SystemLoad {
178
89
  net: Array<SystemLoad_Network>;
179
90
  pid_usage: number;
180
91
  }
181
- /**
182
- * The application usage
183
- */
184
92
  export interface NodeLoad {
185
- /**
186
- * How many worker has been running right now
187
- */
188
93
  workers: number;
189
94
  }
190
- /**
191
- * The shell display folder structure
192
- */
193
95
  export interface ShellFolder {
194
- /**
195
- * Current path, If null then it will use cwd instead
196
- */
197
96
  path: string;
198
- /**
199
- * The process.cwd path
200
- */
201
97
  cwd: string;
202
- /**
203
- * Files list in the path
204
- */
205
98
  files: Array<string>;
206
- /**
207
- * Folders list in the path
208
- */
209
99
  folders: Array<string>;
210
100
  }
211
101
  export interface BuildinAssetsContent {
@@ -221,39 +111,10 @@ export interface ServiceConfig {
221
111
  }
222
112
  export interface TaskLogicUnit {
223
113
  type: TaskLogicType;
224
- /**
225
- * **Attach Job ID**
226
- */
227
114
  job_uuid?: string;
228
- /**
229
- * **Attach Job Container (Runtime)**
230
- */
231
115
  job?: Job;
232
- /**
233
- * **Common Logic Group**
234
- */
235
116
  children: Array<TaskLogicUnit>;
236
117
  }
237
- /**
238
- * **Job Logic Container**\
239
- * The strategy pattern for a single subtask to use\
240
- * For example:
241
- * - Group
242
- * - Condition
243
- * - Add
244
- * - Or
245
- * - Single
246
- * - Single
247
- * - Or
248
- * - Single
249
- * - Single
250
- * - Execution (True)
251
- * - Single
252
- * - Single
253
- * - Execution (False)
254
- * - Single
255
- * - Single
256
- */
257
118
  export interface TaskLogic {
258
119
  group: Array<TaskLogicUnit>;
259
120
  }
@@ -1,38 +1,13 @@
1
- /**
2
- * Value override for some base value\
3
- * The data structure that use in Vue
4
- */
5
1
  import { Node, Database, Project, Task, Job } from './base';
6
2
  import { Plugin } from './plugin';
7
3
  import { SystemLoad } from './struct';
8
- /**
9
- * **UI Database Table Data Structure**\
10
- * For display the data on the database page
11
- */
12
4
  export interface JobTable extends Job {
13
- /**
14
- * **Select State**
15
- */
16
5
  s?: boolean;
17
6
  }
18
- /**
19
- * **UI Database Table Data Structure**\
20
- * For display the data on the database page
21
- */
22
7
  export interface DatabaseTable extends Database {
23
- /**
24
- * **Select State**
25
- */
26
8
  s?: boolean;
27
9
  }
28
- /**
29
- * **UI Node Table Data Structure**\
30
- * For display the data on the node page
31
- */
32
10
  export interface NodeTable extends Node {
33
- /**
34
- * **Select State**
35
- */
36
11
  s?: boolean;
37
12
  state?: number;
38
13
  connection_rate?: number;
@@ -40,24 +15,10 @@ export interface NodeTable extends Node {
40
15
  system?: SystemLoad;
41
16
  }
42
17
  export interface TaskTable extends Task {
43
- /**
44
- * **Select State**
45
- */
46
18
  s?: boolean;
47
- /**
48
- * **Compute Job Count**\
49
- * Show how many jobs the task have
50
- */
51
19
  jobCount: number;
52
20
  }
53
21
  export interface ProjectTable extends Project {
54
- /**
55
- * **Select State**
56
- */
57
22
  s?: boolean;
58
- /**
59
- * **Compute Task Count**\
60
- * Show how many tasks the project have
61
- */
62
23
  taskCount: number;
63
24
  }
@@ -1,133 +1,29 @@
1
- /**
2
- * Vue Client-side only data structure
3
- */
4
1
  import { BackendType } from "./enum";
5
- /**
6
- * **Application Configuration**\
7
- * Show current state of the app\
8
- * Defined by the backend proxy worker
9
- */
10
2
  export interface AppConfig {
11
- /**
12
- * **FLAG: Express**\
13
- * For browser check if it's connect to a express server
14
- */
15
3
  isExpress: boolean;
16
- /**
17
- * **FLAG: Electron**\
18
- * For browser check if it's use Electron desktop app currently
19
- */
20
4
  isElectron: boolean;
21
- /**
22
- * **FLAG: Admin**\
23
- * If use express server, check user have root permission
24
- */
25
5
  isAdmin: boolean;
26
- /**
27
- * **FLAG: Backend**\
28
- * For browser check if it's connect to any server\
29
- * If false, it means it's a static website\
30
- * All the logic will run on browser
31
- */
32
6
  haveBackend: boolean;
33
- /**
34
- * **Login state**\
35
- * FOr express mode detect only
36
- */
37
7
  login: boolean;
38
- /**
39
- * **Server Type**
40
- */
41
8
  backendType: BackendType;
42
9
  }
43
- /**
44
- * **Notification Data Structure**\
45
- * This data is for the notification handler worker\
46
- * The bottom right corner notification
47
- */
48
10
  export interface IMessage {
49
- /**
50
- * **Enable Value**\
51
- * Should it be display
52
- */
53
11
  ison: boolean;
54
- /**
55
- * **Remind Timer**\
56
- * How long does the notification survive
57
- */
58
12
  timer: number;
59
- /**
60
- * **Background Color**\
61
- * Define color of the background of the toast element
62
- */
63
13
  variant: any;
64
- /**
65
- * **Notification Title**
66
- * The header title of the notification
67
- */
68
14
  title: string;
69
- /**
70
- * **Notification Content**
71
- * The content of the notification
72
- */
73
15
  content: string;
74
- /**
75
- * **Notification Stack Trace**
76
- * Display exception error use\
77
- * Useful for display multi-lines messages
78
- */
79
16
  stack: Array<string>;
80
17
  }
81
- /**
82
- * **Compute Client Log**\
83
- */
84
18
  export interface ClientLog {
85
- /**
86
- * **Collapsible Model**
87
- * Determine the fold state for the log group
88
- */
89
19
  s: boolean;
90
- /**
91
- * **Extra Meta**\
92
- * Won't effect the UI, This is for the group search functionality
93
- */
94
20
  tag: string;
95
- /**
96
- * **Collapsible Title**\
97
- * Display on the bar
98
- */
99
21
  title: string;
100
- /**
101
- * **Logs**\
102
- * The log group content
103
- */
104
22
  text: Array<string>;
105
23
  }
106
- /**
107
- * **Notification Message Data**\
108
- * This data structure is for the sender\
109
- * The one who use the event emitter
110
- */
111
24
  export interface ToastData {
112
- /**
113
- * **Background Color**\
114
- * Define color of the background of the toast element
115
- */
116
25
  type: string;
117
- /**
118
- * **Notification Title**
119
- * The header title of the notification
120
- */
121
26
  title: string;
122
- /**
123
- * **Notification Content**
124
- * The content of the notification
125
- */
126
27
  message: string;
127
- /**
128
- * **Notification Stack Trace**
129
- * Display exception error use\
130
- * Useful for display multi-lines messages
131
- */
132
28
  stack?: Array<string>;
133
29
  }
@@ -1,9 +1 @@
1
- // ========================
2
- //
3
- // Share Codebase
4
- //
5
- // ========================
6
- /**
7
- * Vue Client-side only data structure
8
- */
9
1
  export {};
@@ -1,33 +1,12 @@
1
1
  export declare const SERECT: string;
2
- /**
3
- * Default client node port
4
- */
5
2
  export declare const PORT = 12080;
6
- /**
7
- * Default website port
8
- */
9
3
  export declare const WebPORT = 11080;
10
- /**
11
- * Default webhook port
12
- */
13
4
  export declare const WebHookPORT = 15080;
14
- /**
15
- * The upper limit for each message box can hold
16
- */
17
5
  export declare const MESSAGE_LIMIT = 500;
18
- /**
19
- * The client node update tick, this will have effect on resource query.
20
- */
21
6
  export declare const CLIENT_UPDATETICK = 3000;
22
- /**
23
- * The server side update tick, this will have effect on the time gap between task sending
24
- */
25
7
  export declare const RENDER_UPDATETICK = 30;
26
8
  export declare const RENDER_FILE_UPDATETICK = 5000;
27
9
  export declare const SCROLL_LIMIT = 100;
28
- /**
29
- * The environment character for replacing text
30
- */
31
10
  export declare const ENV_CHARACTER = "%";
32
11
  export declare const IGNORE_CHARACTER = "^";
33
12
  export declare const DATA_FOLDER = ".verteilen";
@@ -43,21 +22,12 @@ export * from './interface/table';
43
22
  export * from './interface/ui';
44
23
  export * from './interface/plugin';
45
24
  export * from './interface/log';
46
- /**
47
- * Plugin
48
- */
49
25
  export * as I18N from './plugins/i18n';
50
- /**
51
- * Scripts
52
- */
53
26
  export * as Execute_PART from './script/execute';
54
27
  export * as Execute_ConsoleManager from './script/console_manager';
55
28
  export * as Execute_ConsoleServerManager from './script/console_server_manager';
56
29
  export * as Execute_ExecuteManager from './script/execute_manager';
57
30
  export * as Execute_SocketManager from './script/socket_manager';
58
31
  export * as Execute_WebhookManager from './script/webhook_manager';
59
- /**
60
- * Util
61
- */
62
32
  export * as UtilServer_Console from './server/detail/console_handle';
63
33
  export * as UtilServer_Log from './server/detail/log_handle';
package/dist/interface.js CHANGED
@@ -1,39 +1,13 @@
1
- // ========================
2
- //
3
- // Share Codebase
4
- //
5
- // ========================
6
1
  const DefaultSerect = "aVdWN1gWTTUsAQ06aZHyyLMXo0kEJYhU";
7
2
  export const SERECT = typeof process !== 'undefined' ? (process.env.SERECT || DefaultSerect) : DefaultSerect;
8
- /**
9
- * Default client node port
10
- */
11
3
  export const PORT = 12080;
12
- /**
13
- * Default website port
14
- */
15
4
  export const WebPORT = 11080;
16
- /**
17
- * Default webhook port
18
- */
19
5
  export const WebHookPORT = 15080;
20
- /**
21
- * The upper limit for each message box can hold
22
- */
23
6
  export const MESSAGE_LIMIT = 500;
24
- /**
25
- * The client node update tick, this will have effect on resource query.
26
- */
27
7
  export const CLIENT_UPDATETICK = 3000;
28
- /**
29
- * The server side update tick, this will have effect on the time gap between task sending
30
- */
31
8
  export const RENDER_UPDATETICK = 30;
32
9
  export const RENDER_FILE_UPDATETICK = 5000;
33
10
  export const SCROLL_LIMIT = 100;
34
- /**
35
- * The environment character for replacing text
36
- */
37
11
  export const ENV_CHARACTER = '%';
38
12
  export const IGNORE_CHARACTER = '^';
39
13
  export const DATA_FOLDER = '.verteilen';
@@ -49,21 +23,21 @@ export * from './interface/table';
49
23
  export * from './interface/ui';
50
24
  export * from './interface/plugin';
51
25
  export * from './interface/log';
52
- /**
53
- * Plugin
54
- */
55
- export * as I18N from './plugins/i18n';
56
- /**
57
- * Scripts
58
- */
59
- export * as Execute_PART from './script/execute';
60
- export * as Execute_ConsoleManager from './script/console_manager';
61
- export * as Execute_ConsoleServerManager from './script/console_server_manager';
62
- export * as Execute_ExecuteManager from './script/execute_manager';
63
- export * as Execute_SocketManager from './script/socket_manager';
64
- export * as Execute_WebhookManager from './script/webhook_manager';
65
- /**
66
- * Util
67
- */
68
- export * as UtilServer_Console from './server/detail/console_handle';
69
- export * as UtilServer_Log from './server/detail/log_handle';
26
+ import * as I18N_1 from './plugins/i18n';
27
+ export { I18N_1 as I18N };
28
+ import * as Execute_PART_1 from './script/execute';
29
+ export { Execute_PART_1 as Execute_PART };
30
+ import * as Execute_ConsoleManager_1 from './script/console_manager';
31
+ export { Execute_ConsoleManager_1 as Execute_ConsoleManager };
32
+ import * as Execute_ConsoleServerManager_1 from './script/console_server_manager';
33
+ export { Execute_ConsoleServerManager_1 as Execute_ConsoleServerManager };
34
+ import * as Execute_ExecuteManager_1 from './script/execute_manager';
35
+ export { Execute_ExecuteManager_1 as Execute_ExecuteManager };
36
+ import * as Execute_SocketManager_1 from './script/socket_manager';
37
+ export { Execute_SocketManager_1 as Execute_SocketManager };
38
+ import * as Execute_WebhookManager_1 from './script/webhook_manager';
39
+ export { Execute_WebhookManager_1 as Execute_WebhookManager };
40
+ import * as UtilServer_Console_1 from './server/detail/console_handle';
41
+ export { UtilServer_Console_1 as UtilServer_Console };
42
+ import * as UtilServer_Log_1 from './server/detail/log_handle';
43
+ export { UtilServer_Log_1 as UtilServer_Log };
@@ -1,17 +1,6 @@
1
1
  import { createI18n } from 'vue-i18n';
2
2
  import { I18n } from "i18n-js";
3
3
  export { createI18n as Create };
4
- /**
5
- * Default vue-i18nconfig\
6
- * It follows the format where link below describe\
7
- * {@link https://vue-i18n.intlify.dev/api/general}\
8
- * Import them simple use them
9
- * @example
10
- * // Use The Plugin
11
- * import { createApp } from 'vue'
12
- * const app = createApp(App)
13
- * app.use(i18n)
14
- */
15
4
  export declare const i18nDefaultData: {
16
5
  locale: string;
17
6
  globalInjection: boolean;
@@ -921,10 +910,6 @@ export declare const i18nDefaultData: {
921
910
  };
922
911
  };
923
912
  };
924
- /**
925
- * The language module which translate key into setup text string\
926
- * This apply the default config
927
- */
928
913
  export declare const i18n: import("vue-i18n").I18n<{
929
914
  en: {
930
915
  acl: {
@@ -1829,8 +1814,4 @@ export declare const i18n: import("vue-i18n").I18n<{
1829
1814
  unzoom: string;
1830
1815
  };
1831
1816
  }, {}, {}, string, true>;
1832
- /**
1833
- * The raw language module which translate key into setup text string\
1834
- * This apply the default config
1835
- */
1836
1817
  export declare const raw_i18n: I18n;
@@ -1,24 +1,8 @@
1
- // ========================
2
- //
3
- // Share Codebase
4
- //
5
- // ========================
6
1
  import { createI18n } from 'vue-i18n';
7
2
  import { I18n } from "i18n-js";
8
3
  import en from './../lan/en.json';
9
4
  import zh_TW from './../lan/zh_TW.json';
10
5
  export { createI18n as Create };
11
- /**
12
- * Default vue-i18nconfig\
13
- * It follows the format where link below describe\
14
- * {@link https://vue-i18n.intlify.dev/api/general}\
15
- * Import them simple use them
16
- * @example
17
- * // Use The Plugin
18
- * import { createApp } from 'vue'
19
- * const app = createApp(App)
20
- * app.use(i18n)
21
- */
22
6
  export const i18nDefaultData = {
23
7
  locale: 'en',
24
8
  globalInjection: true,
@@ -28,15 +12,7 @@ export const i18nDefaultData = {
28
12
  zh_TW: zh_TW
29
13
  }
30
14
  };
31
- /**
32
- * The language module which translate key into setup text string\
33
- * This apply the default config
34
- */
35
15
  export const i18n = createI18n(i18nDefaultData);
36
- /**
37
- * The raw language module which translate key into setup text string\
38
- * This apply the default config
39
- */
40
16
  export const raw_i18n = new I18n({
41
17
  en: en,
42
18
  zh_TW: zh_TW
@@ -1,8 +1,5 @@
1
1
  import { BusType, EmitterProxy, Header, RawSend } from "../interface";
2
2
  export type Listener = (...args: any[]) => void;
3
- /**
4
- * Console helper, web client side handle cluster server connection instance
5
- */
6
3
  export declare class ConsoleManager {
7
4
  url: string;
8
5
  ws: WebSocket;
@@ -1,6 +1,3 @@
1
- /**
2
- * Console helper, web client side handle cluster server connection instance
3
- */
4
1
  export class ConsoleManager {
5
2
  url;
6
3
  ws;
@@ -3,9 +3,6 @@ import { Header } from "../interface";
3
3
  type calltype = {
4
4
  [key: string]: Function;
5
5
  };
6
- /**
7
- * Console server helper, cluster server side handle web client connection instances
8
- */
9
6
  export declare class ConsoleServerManager {
10
7
  ws: ws.WebSocket;
11
8
  typeMap: calltype;
@@ -1,6 +1,3 @@
1
- /**
2
- * Console server helper, cluster server side handle web client connection instances
3
- */
4
1
  export class ConsoleServerManager {
5
2
  ws;
6
3
  typeMap;