@blocklet/meta 1.16.40-beta-20250311-152346-f596c9a6 → 1.16.40-beta-20250313-033531-8d70107e
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.
|
@@ -85,6 +85,9 @@ function normalizeNavigationList(navigationList) {
|
|
|
85
85
|
if (tempData.title) {
|
|
86
86
|
tempData.title = tryParseItem(tempData.title);
|
|
87
87
|
}
|
|
88
|
+
if (tempData.description) {
|
|
89
|
+
tempData.description = tryParseItem(tempData.description);
|
|
90
|
+
}
|
|
88
91
|
if (tempData.link) {
|
|
89
92
|
tempData.link = tryParseItem(tempData.link);
|
|
90
93
|
}
|
package/lib/parse-navigation.js
CHANGED
package/lib/schema.js
CHANGED
|
@@ -300,6 +300,7 @@ const interfaceSchema = Joi.object({
|
|
|
300
300
|
services: Joi.array().items(serviceSchema).unique('name'),
|
|
301
301
|
endpoints: Joi.array().items(endpointSchema).unique('type'),
|
|
302
302
|
pageGroups: Joi.array().items(Joi.string().min(1).max(255).trim()).unique(),
|
|
303
|
+
proxyBehavior: Joi.string().valid('service', 'direct').default('service').optional(),
|
|
303
304
|
}).meta({
|
|
304
305
|
className: 'TInterface',
|
|
305
306
|
unknownType: 'any',
|
|
@@ -425,6 +426,9 @@ const navigationItemProps = {
|
|
|
425
426
|
.min(1)
|
|
426
427
|
.pattern(Joi.string().valid(...localeList), Joi.string().min(1).max(constant_2.MAX_TITLE_LENGTH)))
|
|
427
428
|
.required(),
|
|
429
|
+
description: Joi.alternatives().try(Joi.string().min(1).max(constant_2.MAX_DESCRIPTION_LENGTH), Joi.object()
|
|
430
|
+
.min(1)
|
|
431
|
+
.pattern(Joi.string().valid(...localeList), Joi.string().min(1).max(constant_2.MAX_DESCRIPTION_LENGTH))),
|
|
428
432
|
link: Joi.alternatives().try(Joi.string().custom(checkLinkHelper), Joi.object()
|
|
429
433
|
.min(1)
|
|
430
434
|
.pattern(Joi.string().valid(...localeList), Joi.string().custom(checkLinkHelper))),
|
package/lib/types/schema.d.ts
CHANGED
|
@@ -200,6 +200,7 @@ export interface TInterface {
|
|
|
200
200
|
};
|
|
201
201
|
prefix?: string;
|
|
202
202
|
protocol?: 'tcp' | 'udp' | 'http';
|
|
203
|
+
proxyBehavior?: 'service' | 'direct';
|
|
203
204
|
services?: TService[];
|
|
204
205
|
type: 'web' | 'service' | 'wellknown' | 'docker';
|
|
205
206
|
}
|
|
@@ -208,10 +209,22 @@ export type TMountPoint = string;
|
|
|
208
209
|
export type TNavigation = TNavigationItem[];
|
|
209
210
|
export interface TNavigationItem {
|
|
210
211
|
component?: string;
|
|
212
|
+
description?: string | {
|
|
213
|
+
/**
|
|
214
|
+
* Unknown Property
|
|
215
|
+
*/
|
|
216
|
+
[x: string]: string;
|
|
217
|
+
};
|
|
211
218
|
icon?: string;
|
|
212
219
|
id?: string;
|
|
213
220
|
items?: ({
|
|
214
221
|
component?: string;
|
|
222
|
+
description?: string | {
|
|
223
|
+
/**
|
|
224
|
+
* Unknown Property
|
|
225
|
+
*/
|
|
226
|
+
[x: string]: string;
|
|
227
|
+
};
|
|
215
228
|
icon?: string;
|
|
216
229
|
id?: string;
|
|
217
230
|
link?: string | {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.40-beta-
|
|
6
|
+
"version": "1.16.40-beta-20250313-033531-8d70107e",
|
|
7
7
|
"description": "Library to parse/validate/fix blocklet meta",
|
|
8
8
|
"main": "./lib/index.js",
|
|
9
9
|
"typings": "./lib/index.d.ts",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"author": "wangshijun <wangshijun2020@gmail.com> (http://github.com/wangshijun)",
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@abtnode/constant": "1.16.40-beta-
|
|
29
|
-
"@abtnode/docker-utils": "1.16.40-beta-
|
|
28
|
+
"@abtnode/constant": "1.16.40-beta-20250313-033531-8d70107e",
|
|
29
|
+
"@abtnode/docker-utils": "1.16.40-beta-20250313-033531-8d70107e",
|
|
30
30
|
"@arcblock/did": "1.19.15",
|
|
31
31
|
"@arcblock/did-ext": "1.19.15",
|
|
32
32
|
"@arcblock/did-util": "1.19.15",
|
|
33
33
|
"@arcblock/jwt": "1.19.15",
|
|
34
|
-
"@blocklet/constant": "1.16.40-beta-
|
|
34
|
+
"@blocklet/constant": "1.16.40-beta-20250313-033531-8d70107e",
|
|
35
35
|
"@ocap/asset": "1.19.15",
|
|
36
36
|
"@ocap/mcrypto": "1.19.15",
|
|
37
37
|
"@ocap/types": "1.19.15",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"ts-node": "^10.9.1",
|
|
81
81
|
"typescript": "^5.6.3"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "34bdd932f825070562a2124557d7198f4a3a9b91"
|
|
84
84
|
}
|