verteilen-core 1.4.10 → 1.4.11
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,5 +1,6 @@
|
|
|
1
1
|
import { DatabaseContainer, DataTime, Project } from "./base";
|
|
2
2
|
import { ACLType, LocalPermission } from "./server";
|
|
3
|
+
import { KeyValue } from "./struct";
|
|
3
4
|
type ProjectCall = (p: Project) => Project;
|
|
4
5
|
type DatabaseCall = () => Array<DatabaseContainer>;
|
|
5
6
|
export interface PluginContent {
|
|
@@ -11,8 +12,8 @@ export interface PluginContent {
|
|
|
11
12
|
}
|
|
12
13
|
export interface Plugin {
|
|
13
14
|
icon?: string;
|
|
14
|
-
name: string;
|
|
15
|
-
description: string;
|
|
15
|
+
name: string | any;
|
|
16
|
+
description: string | any;
|
|
16
17
|
requireVersion: string;
|
|
17
18
|
version?: string;
|
|
18
19
|
progress?: number;
|
|
@@ -28,7 +29,7 @@ export interface PluginContainer extends DataTime {
|
|
|
28
29
|
thumbnail?: string;
|
|
29
30
|
icon?: string;
|
|
30
31
|
owner?: string;
|
|
31
|
-
title?: string;
|
|
32
|
+
title?: string | any;
|
|
32
33
|
description?: string;
|
|
33
34
|
url?: string;
|
|
34
35
|
plugins: Array<Plugin>;
|
|
@@ -36,6 +37,8 @@ export interface PluginContainer extends DataTime {
|
|
|
36
37
|
databases: Array<TemplateData_Database>;
|
|
37
38
|
gen_projects?: Array<TemplateGroup_Project>;
|
|
38
39
|
gen_databases?: Array<TemplateGroup_Database>;
|
|
40
|
+
version: string;
|
|
41
|
+
i18n: Array<KeyValue>;
|
|
39
42
|
permission?: LocalPermission;
|
|
40
43
|
acl?: ACLType;
|
|
41
44
|
}
|
|
@@ -43,19 +46,19 @@ export interface PluginPageData {
|
|
|
43
46
|
plugins: Array<PluginContainer>;
|
|
44
47
|
}
|
|
45
48
|
export interface PluginState {
|
|
46
|
-
name: string;
|
|
49
|
+
name: string | any;
|
|
47
50
|
url: string;
|
|
48
51
|
installed: boolean;
|
|
49
52
|
supported: boolean;
|
|
50
53
|
}
|
|
51
54
|
export interface TemplateData_Project {
|
|
52
|
-
title: string;
|
|
55
|
+
title: string | any;
|
|
53
56
|
filename: string;
|
|
54
57
|
group: string;
|
|
55
58
|
value: number;
|
|
56
59
|
}
|
|
57
60
|
export interface TemplateData_Database {
|
|
58
|
-
title: string;
|
|
61
|
+
title: string | any;
|
|
59
62
|
filename: string;
|
|
60
63
|
group: string;
|
|
61
64
|
value: number;
|
package/package.json
CHANGED
package/src/interface/plugin.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
// ========================
|
|
6
6
|
import { DatabaseContainer, DataTime, Project } from "./base"
|
|
7
7
|
import { ACLType, LocalPermission } from "./server"
|
|
8
|
+
import { KeyValue } from "./struct"
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Method to generate project template (populate)
|
|
@@ -42,13 +43,15 @@ export interface Plugin {
|
|
|
42
43
|
*/
|
|
43
44
|
icon?: string
|
|
44
45
|
/**
|
|
45
|
-
* **Plugin Title
|
|
46
|
+
* **Plugin Title**\
|
|
47
|
+
* Support i18n config
|
|
46
48
|
*/
|
|
47
|
-
name: string
|
|
49
|
+
name: string | any
|
|
48
50
|
/**
|
|
49
|
-
* **Plugin Description
|
|
51
|
+
* **Plugin Description**\
|
|
52
|
+
* Support i18n config
|
|
50
53
|
*/
|
|
51
|
-
description: string
|
|
54
|
+
description: string | any
|
|
52
55
|
/**
|
|
53
56
|
* **Minimum Require Application Version**
|
|
54
57
|
*/
|
|
@@ -111,9 +114,10 @@ export interface PluginContainer extends DataTime {
|
|
|
111
114
|
*/
|
|
112
115
|
owner?: string
|
|
113
116
|
/**
|
|
114
|
-
* **Plugin Group Name
|
|
117
|
+
* **Plugin Group Name**\
|
|
118
|
+
* Support i18n config
|
|
115
119
|
*/
|
|
116
|
-
title?: string
|
|
120
|
+
title?: string | any
|
|
117
121
|
/**
|
|
118
122
|
* **Plugin Group Description**
|
|
119
123
|
*/
|
|
@@ -146,6 +150,14 @@ export interface PluginContainer extends DataTime {
|
|
|
146
150
|
* Only exist in server side
|
|
147
151
|
*/
|
|
148
152
|
gen_databases?: Array<TemplateGroup_Database>
|
|
153
|
+
/**
|
|
154
|
+
* **Version label**
|
|
155
|
+
*/
|
|
156
|
+
version: string
|
|
157
|
+
/**
|
|
158
|
+
* **Language key value set**
|
|
159
|
+
*/
|
|
160
|
+
i18n: Array<KeyValue>
|
|
149
161
|
/**
|
|
150
162
|
* **Local Permission**\
|
|
151
163
|
* Client-side only permission field\
|
|
@@ -178,9 +190,10 @@ export interface PluginPageData {
|
|
|
178
190
|
*/
|
|
179
191
|
export interface PluginState {
|
|
180
192
|
/**
|
|
181
|
-
* **Plugin Name
|
|
193
|
+
* **Plugin Name**\
|
|
194
|
+
* Support i18n config
|
|
182
195
|
*/
|
|
183
|
-
name: string
|
|
196
|
+
name: string | any
|
|
184
197
|
/**
|
|
185
198
|
* **Plugin Manifest URL Name**
|
|
186
199
|
*/
|
|
@@ -200,9 +213,10 @@ export interface PluginState {
|
|
|
200
213
|
*/
|
|
201
214
|
export interface TemplateData_Project {
|
|
202
215
|
/**
|
|
203
|
-
* **Project Template Name
|
|
216
|
+
* **Project Template Name**\
|
|
217
|
+
* Support i18n config
|
|
204
218
|
*/
|
|
205
|
-
title: string
|
|
219
|
+
title: string | any
|
|
206
220
|
/**
|
|
207
221
|
* **Filename Name**
|
|
208
222
|
*/
|
|
@@ -222,9 +236,10 @@ export interface TemplateData_Project {
|
|
|
222
236
|
*/
|
|
223
237
|
export interface TemplateData_Database {
|
|
224
238
|
/**
|
|
225
|
-
* **Database Template Name
|
|
239
|
+
* **Database Template Name**\
|
|
240
|
+
* Support i18n config
|
|
226
241
|
*/
|
|
227
|
-
title: string
|
|
242
|
+
title: string | any
|
|
228
243
|
/**
|
|
229
244
|
* **Filename Name**
|
|
230
245
|
*/
|