verteilen-core 1.2.12 → 1.2.14
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/dist/server/detail.d.ts +0 -1
- package/dist/server/detail.js +4 -6
- package/dist/server/plugin.d.ts +2 -2
- package/dist/server/plugin.js +1 -1
- package/package.json +1 -1
- package/src/server/detail.ts +4 -10
- package/src/server/plugin.ts +3 -3
package/dist/server/detail.d.ts
CHANGED
|
@@ -39,7 +39,6 @@ export declare class ServerDetail {
|
|
|
39
39
|
feedback: PluginFeedback;
|
|
40
40
|
message: Messager;
|
|
41
41
|
messager_log: Function;
|
|
42
|
-
t: Translate;
|
|
43
42
|
updatehandle: any;
|
|
44
43
|
re: Array<any>;
|
|
45
44
|
constructor(loader: RecordIOBase | undefined, backend: BackendAction, feedback: PluginFeedback, message: Messager, messager_log: Function, t: Translate);
|
package/dist/server/detail.js
CHANGED
|
@@ -15,7 +15,6 @@ class ServerDetail {
|
|
|
15
15
|
feedback;
|
|
16
16
|
message;
|
|
17
17
|
messager_log;
|
|
18
|
-
t;
|
|
19
18
|
updatehandle;
|
|
20
19
|
re = [];
|
|
21
20
|
constructor(loader, backend, feedback, message, messager_log, t) {
|
|
@@ -24,7 +23,6 @@ class ServerDetail {
|
|
|
24
23
|
this.feedback = feedback;
|
|
25
24
|
this.message = message;
|
|
26
25
|
this.messager_log = messager_log;
|
|
27
|
-
this.t = t;
|
|
28
26
|
const n = {
|
|
29
27
|
shellReply: this.shellReply,
|
|
30
28
|
folderReply: this.folderReply
|
|
@@ -61,9 +59,9 @@ class ServerDetail {
|
|
|
61
59
|
}
|
|
62
60
|
NewConnection = (x) => {
|
|
63
61
|
const p = {
|
|
64
|
-
title:
|
|
62
|
+
title: "New Connection Established",
|
|
65
63
|
type: 'success',
|
|
66
|
-
message: `${
|
|
64
|
+
message: `${x.websocket.url} \n${x.uuid}`
|
|
67
65
|
};
|
|
68
66
|
if (this.feedback.electron) {
|
|
69
67
|
this.feedback.electron('makeToast', p);
|
|
@@ -77,9 +75,9 @@ class ServerDetail {
|
|
|
77
75
|
};
|
|
78
76
|
DisConnection = (x) => {
|
|
79
77
|
const p = {
|
|
80
|
-
title:
|
|
78
|
+
title: "Network Disconnected",
|
|
81
79
|
type: 'error',
|
|
82
|
-
message: `${
|
|
80
|
+
message: `${x.websocket.url} \n${x.uuid}`
|
|
83
81
|
};
|
|
84
82
|
if (this.feedback.electron) {
|
|
85
83
|
this.feedback.electron('makeToast', p);
|
package/dist/server/plugin.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { RecordIOBase } from "./io";
|
|
2
|
-
import {
|
|
2
|
+
import { PluginPageData, WebsocketPack } from "../interface";
|
|
3
3
|
import { PluginFeedback } from "./server";
|
|
4
4
|
export type SocketGetter = (uuid: string) => WebsocketPack | undefined;
|
|
5
5
|
export interface PluginLoader {
|
|
6
6
|
load_all: () => Promise<PluginPageData>;
|
|
7
7
|
get_project: (group: string, filename: string) => string | undefined;
|
|
8
8
|
get_database: (group: string, filename: string) => string | undefined;
|
|
9
|
-
get_plugin: () => Promise<
|
|
9
|
+
get_plugin: () => Promise<PluginPageData>;
|
|
10
10
|
import_template: (name: string, url: string, token: string) => Promise<PluginPageData>;
|
|
11
11
|
import_plugin: (name: string, url: string, token: string) => Promise<PluginPageData>;
|
|
12
12
|
delete_template: (name: string) => Promise<void>;
|
package/dist/server/plugin.js
CHANGED
|
@@ -93,7 +93,7 @@ const CreatePluginLoader = (loader, memory, socket, feedback) => {
|
|
|
93
93
|
return result;
|
|
94
94
|
},
|
|
95
95
|
get_plugin: async () => {
|
|
96
|
-
return memory
|
|
96
|
+
return memory;
|
|
97
97
|
},
|
|
98
98
|
import_template: async (name, url, token) => {
|
|
99
99
|
const root = loader.join(loader.root, 'template');
|
package/package.json
CHANGED
package/src/server/detail.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { v6 as uuidv6 } from 'uuid'
|
|
2
2
|
import {
|
|
3
3
|
BusAnalysis,
|
|
4
|
-
DATA_FOLDER,
|
|
5
4
|
Execute_ExecuteManager,
|
|
6
5
|
Execute_SocketManager,
|
|
7
6
|
ExecutePair,
|
|
@@ -75,10 +74,6 @@ export class ServerDetail {
|
|
|
75
74
|
feedback: PluginFeedback
|
|
76
75
|
message:Messager
|
|
77
76
|
messager_log:Function
|
|
78
|
-
/**
|
|
79
|
-
* i18n language translate function
|
|
80
|
-
*/
|
|
81
|
-
t:Translate
|
|
82
77
|
updatehandle: any
|
|
83
78
|
/**
|
|
84
79
|
* **A simple message queue**\
|
|
@@ -99,7 +94,6 @@ export class ServerDetail {
|
|
|
99
94
|
this.feedback = feedback
|
|
100
95
|
this.message = message
|
|
101
96
|
this.messager_log = messager_log
|
|
102
|
-
this.t = t
|
|
103
97
|
const n:NodeProxy = {
|
|
104
98
|
shellReply: this.shellReply,
|
|
105
99
|
folderReply: this.folderReply
|
|
@@ -140,9 +134,9 @@ export class ServerDetail {
|
|
|
140
134
|
|
|
141
135
|
NewConnection = (x:WebsocketPack) => {
|
|
142
136
|
const p = {
|
|
143
|
-
title:
|
|
137
|
+
title: "New Connection Established",
|
|
144
138
|
type: 'success',
|
|
145
|
-
message: `${
|
|
139
|
+
message: `${x.websocket.url} \n${x.uuid}`
|
|
146
140
|
}
|
|
147
141
|
if(this.feedback.electron){
|
|
148
142
|
this.feedback.electron('makeToast', p)
|
|
@@ -157,9 +151,9 @@ export class ServerDetail {
|
|
|
157
151
|
|
|
158
152
|
DisConnection = (x:WebsocketPack) => {
|
|
159
153
|
const p = {
|
|
160
|
-
title:
|
|
154
|
+
title: "Network Disconnected",
|
|
161
155
|
type: 'error',
|
|
162
|
-
message: `${
|
|
156
|
+
message: `${x.websocket.url} \n${x.uuid}`
|
|
163
157
|
}
|
|
164
158
|
if(this.feedback.electron){
|
|
165
159
|
this.feedback.electron('makeToast', p)
|
package/src/server/plugin.ts
CHANGED
|
@@ -23,7 +23,7 @@ export interface PluginLoader {
|
|
|
23
23
|
load_all: () => Promise<PluginPageData>
|
|
24
24
|
get_project: (group:string, filename:string) => string | undefined
|
|
25
25
|
get_database: (group:string, filename:string) => string | undefined
|
|
26
|
-
get_plugin: () => Promise<
|
|
26
|
+
get_plugin: () => Promise<PluginPageData>
|
|
27
27
|
import_template: (name:string, url:string, token:string) => Promise<PluginPageData>
|
|
28
28
|
import_plugin: (name:string, url:string, token:string) => Promise<PluginPageData>
|
|
29
29
|
delete_template: (name:string) => Promise<void>
|
|
@@ -128,8 +128,8 @@ export const CreatePluginLoader = (loader:RecordIOBase, memory:PluginPageData, s
|
|
|
128
128
|
}
|
|
129
129
|
return result
|
|
130
130
|
},
|
|
131
|
-
get_plugin: async ():Promise<
|
|
132
|
-
return memory
|
|
131
|
+
get_plugin: async ():Promise<PluginPageData> => {
|
|
132
|
+
return memory
|
|
133
133
|
},
|
|
134
134
|
import_template: async (name:string, url:string, token:string):Promise<PluginPageData> => {
|
|
135
135
|
const root = loader.join(loader.root, 'template')
|