verteilen-core 1.2.11 → 1.2.13
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.
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { Node, Database, Project, Task } from './base';
|
|
2
2
|
import { Plugin, SystemLoad } from './struct';
|
|
3
3
|
export interface DatabaseTable extends Database {
|
|
4
|
-
s
|
|
4
|
+
s?: boolean;
|
|
5
5
|
}
|
|
6
6
|
export interface NodeTable extends Node {
|
|
7
|
-
s
|
|
8
|
-
state
|
|
7
|
+
s?: boolean;
|
|
8
|
+
state?: number;
|
|
9
9
|
connection_rate?: number;
|
|
10
10
|
plugins?: Array<Plugin>;
|
|
11
11
|
system?: SystemLoad;
|
|
12
12
|
}
|
|
13
13
|
export interface TaskTable extends Task {
|
|
14
|
-
s
|
|
14
|
+
s?: boolean;
|
|
15
15
|
jobCount: number;
|
|
16
16
|
}
|
|
17
17
|
export interface ProjectTable extends Project {
|
|
18
|
-
s
|
|
18
|
+
s?: boolean;
|
|
19
19
|
taskCount: number;
|
|
20
20
|
}
|
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/interface/table.ts
CHANGED
|
@@ -18,7 +18,7 @@ export interface DatabaseTable extends Database {
|
|
|
18
18
|
/**
|
|
19
19
|
* **Select State**
|
|
20
20
|
*/
|
|
21
|
-
s
|
|
21
|
+
s?: boolean
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* **UI Node Table Data Structure**\
|
|
@@ -28,8 +28,8 @@ export interface NodeTable extends Node {
|
|
|
28
28
|
/**
|
|
29
29
|
* **Select State**
|
|
30
30
|
*/
|
|
31
|
-
s
|
|
32
|
-
state
|
|
31
|
+
s?: boolean
|
|
32
|
+
state?: number
|
|
33
33
|
connection_rate?: number
|
|
34
34
|
plugins?: Array<Plugin>
|
|
35
35
|
system?: SystemLoad
|
|
@@ -38,7 +38,7 @@ export interface TaskTable extends Task {
|
|
|
38
38
|
/**
|
|
39
39
|
* **Select State**
|
|
40
40
|
*/
|
|
41
|
-
s
|
|
41
|
+
s?: boolean
|
|
42
42
|
/**
|
|
43
43
|
* **Compute Job Count**\
|
|
44
44
|
* Show how many jobs the task have
|
|
@@ -49,7 +49,7 @@ export interface ProjectTable extends Project {
|
|
|
49
49
|
/**
|
|
50
50
|
* **Select State**
|
|
51
51
|
*/
|
|
52
|
-
s
|
|
52
|
+
s?: boolean
|
|
53
53
|
/**
|
|
54
54
|
* **Compute Task Count**\
|
|
55
55
|
* Show how many tasks the project have
|
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')
|