verteilen-core 1.2.1 → 1.2.3
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/src/interface/enum.js +8 -1
- package/package.json +1 -1
- package/src/interface/bus.ts +2 -1
- package/src/interface/enum.ts +10 -0
- package/src/interface/ui.ts +6 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DatabaseTemplateText = exports.ProjectTemplateText = exports.JobType2Text = exports.JobTypeText = exports.JobResultText = exports.ConnectionText = exports.JobCategoryText = exports.ExecuteStateText = exports.DataTypeText = exports.ServiceMode = exports.JavascriptLib = exports.RecordType = exports.RenderUpdateType = exports.ExecuteState = exports.ParameterTemplate = exports.ProjectTemplate = exports.JobType2 = exports.JobType = exports.ConditionResult = exports.JobCategory = exports.FrontendUpdate = exports.ResourceType = exports.DataTypeBase = exports.DataType = exports.SocketState = void 0;
|
|
3
|
+
exports.DatabaseTemplateText = exports.ProjectTemplateText = exports.JobType2Text = exports.JobTypeText = exports.JobResultText = exports.ConnectionText = exports.JobCategoryText = exports.ExecuteStateText = exports.DataTypeText = exports.ServiceMode = exports.JavascriptLib = exports.RecordType = exports.RenderUpdateType = exports.ExecuteState = exports.ParameterTemplate = exports.ProjectTemplate = exports.JobType2 = exports.JobType = exports.ConditionResult = exports.JobCategory = exports.FrontendUpdate = exports.ResourceType = exports.DataTypeBase = exports.BackendType = exports.DataType = exports.SocketState = void 0;
|
|
4
4
|
var SocketState;
|
|
5
5
|
(function (SocketState) {
|
|
6
6
|
SocketState[SocketState["CONNECTING"] = 0] = "CONNECTING";
|
|
@@ -19,6 +19,13 @@ var DataType;
|
|
|
19
19
|
DataType[DataType["Select"] = 6] = "Select";
|
|
20
20
|
DataType[DataType["List"] = 7] = "List";
|
|
21
21
|
})(DataType || (exports.DataType = DataType = {}));
|
|
22
|
+
var BackendType;
|
|
23
|
+
(function (BackendType) {
|
|
24
|
+
BackendType[BackendType["NONE"] = 0] = "NONE";
|
|
25
|
+
BackendType[BackendType["SERVER"] = 1] = "SERVER";
|
|
26
|
+
BackendType[BackendType["CLUSTER"] = 2] = "CLUSTER";
|
|
27
|
+
BackendType[BackendType["NODE"] = 3] = "NODE";
|
|
28
|
+
})(BackendType || (exports.BackendType = BackendType = {}));
|
|
22
29
|
var DataTypeBase;
|
|
23
30
|
(function (DataTypeBase) {
|
|
24
31
|
DataTypeBase[DataTypeBase["Boolean"] = 0] = "Boolean";
|
package/package.json
CHANGED
package/src/interface/bus.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
import { Job, Database, Project, Task } from "./base"
|
|
10
10
|
import { ExecuteState } from "./enum"
|
|
11
11
|
import { ExecutionLog, Log, Preference } from "./record"
|
|
12
|
+
import { Login } from "./server"
|
|
12
13
|
import { FeedBack, Header, Setter, ShellFolder, Single, WebsocketPack } from "./struct"
|
|
13
14
|
import { NodeTable } from "./table"
|
|
14
15
|
import { ToastData } from "./ui"
|
|
@@ -136,7 +137,7 @@ export type BusType = {
|
|
|
136
137
|
recoverDatabase: Database
|
|
137
138
|
relogin: void
|
|
138
139
|
loginGuest: void
|
|
139
|
-
login:
|
|
140
|
+
login: Login
|
|
140
141
|
logout: void
|
|
141
142
|
updateTask: void
|
|
142
143
|
updateJob: void
|
package/src/interface/enum.ts
CHANGED
|
@@ -32,6 +32,16 @@ export enum DataType {
|
|
|
32
32
|
Select,
|
|
33
33
|
List,
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* **Express Server Type**\
|
|
37
|
+
* For checking the express server type
|
|
38
|
+
*/
|
|
39
|
+
export enum BackendType {
|
|
40
|
+
NONE,
|
|
41
|
+
SERVER,
|
|
42
|
+
CLUSTER,
|
|
43
|
+
NODE,
|
|
44
|
+
}
|
|
35
45
|
/**
|
|
36
46
|
* **Data Type Base**\
|
|
37
47
|
* The support data type for calculation\
|
package/src/interface/ui.ts
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* Vue Client-side only data structure
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
+
import { BackendType } from "./enum"
|
|
11
|
+
|
|
10
12
|
/**
|
|
11
13
|
* **Application Configuration**\
|
|
12
14
|
* Show current state of the app\
|
|
@@ -40,6 +42,10 @@ export interface AppConfig {
|
|
|
40
42
|
* FOr express mode detect only
|
|
41
43
|
*/
|
|
42
44
|
login:boolean
|
|
45
|
+
/**
|
|
46
|
+
* **Server Type**
|
|
47
|
+
*/
|
|
48
|
+
backendType: BackendType
|
|
43
49
|
}
|
|
44
50
|
/**
|
|
45
51
|
* **Notification Data Structure**\
|