@nocobase/plugin-ui-schema-storage 1.8.0-alpha.9 → 1.8.0-beta.10
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/externalVersion.js
CHANGED
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "1.8.0-
|
|
12
|
-
"@nocobase/database": "1.8.0-
|
|
13
|
-
"@nocobase/cache": "1.8.0-
|
|
14
|
-
"@nocobase/utils": "1.8.0-
|
|
11
|
+
"@nocobase/client": "1.8.0-beta.10",
|
|
12
|
+
"@nocobase/database": "1.8.0-beta.10",
|
|
13
|
+
"@nocobase/cache": "1.8.0-beta.10",
|
|
14
|
+
"@nocobase/utils": "1.8.0-beta.10",
|
|
15
15
|
"lodash": "4.17.21",
|
|
16
|
-
"@nocobase/server": "1.8.0-
|
|
17
|
-
"@nocobase/plugin-localization": "1.8.0-
|
|
18
|
-
"@nocobase/actions": "1.8.0-
|
|
19
|
-
"@nocobase/resourcer": "1.8.0-
|
|
16
|
+
"@nocobase/server": "1.8.0-beta.10",
|
|
17
|
+
"@nocobase/plugin-localization": "1.8.0-beta.10",
|
|
18
|
+
"@nocobase/actions": "1.8.0-beta.10",
|
|
19
|
+
"@nocobase/resourcer": "1.8.0-beta.10",
|
|
20
20
|
"@formily/json-schema": "2.3.0"
|
|
21
21
|
};
|
|
@@ -258,13 +258,7 @@ const _UiSchemaRepository = class _UiSchemaRepository extends import_database.Re
|
|
|
258
258
|
if (!(s == null ? void 0 : s.schema)) {
|
|
259
259
|
return;
|
|
260
260
|
}
|
|
261
|
-
const keys = [
|
|
262
|
-
"title",
|
|
263
|
-
"description",
|
|
264
|
-
"x-component-props.title",
|
|
265
|
-
"x-decorator-props.title",
|
|
266
|
-
"x-component-props.content"
|
|
267
|
-
];
|
|
261
|
+
const keys = ["title", "description", "x-component-props.title", "x-decorator-props.title"];
|
|
268
262
|
let r = false;
|
|
269
263
|
for (const key of keys) {
|
|
270
264
|
if (import_lodash.default.get(s == null ? void 0 : s.schema, key)) {
|
package/dist/server/server.js
CHANGED
|
@@ -53,24 +53,15 @@ var import_server_hooks = require("./server-hooks");
|
|
|
53
53
|
var import_model2 = require("./server-hooks/model");
|
|
54
54
|
const compile = (title) => (title || "").replace(/{{\s*t\(["|'|`](.*)["|'|`]\)\s*}}/g, "$1");
|
|
55
55
|
function extractFields(obj) {
|
|
56
|
-
var _a, _b, _c, _d
|
|
57
|
-
|
|
56
|
+
var _a, _b, _c, _d;
|
|
57
|
+
return [
|
|
58
58
|
obj.title,
|
|
59
59
|
obj.description,
|
|
60
60
|
(_a = obj["x-component-props"]) == null ? void 0 : _a.title,
|
|
61
61
|
(_b = obj["x-component-props"]) == null ? void 0 : _b.description,
|
|
62
62
|
(_c = obj["x-decorator-props"]) == null ? void 0 : _c.title,
|
|
63
63
|
(_d = obj["x-decorator-props"]) == null ? void 0 : _d.description
|
|
64
|
-
];
|
|
65
|
-
const content = (_e = obj["x-component-props"]) == null ? void 0 : _e.content;
|
|
66
|
-
if (typeof content === "string") {
|
|
67
|
-
const regex = /\{\{\s*t\s+['"]([^'"]+)['"]\s*\}\}/g;
|
|
68
|
-
let match;
|
|
69
|
-
while ((match = regex.exec(content)) !== null) {
|
|
70
|
-
fields.push(match[1]);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
return fields.filter((value) => value !== void 0 && value !== "");
|
|
64
|
+
].filter((value) => value !== void 0 && value !== "");
|
|
74
65
|
}
|
|
75
66
|
class PluginUISchemaStorageServer extends import_server.Plugin {
|
|
76
67
|
serverHooks;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName.zh-CN": "UI schema 存储服务",
|
|
5
5
|
"description": "Provides centralized UI schema storage service.",
|
|
6
6
|
"description.zh-CN": "提供中心化的 UI schema 存储服务。",
|
|
7
|
-
"version": "1.8.0-
|
|
7
|
+
"version": "1.8.0-beta.10",
|
|
8
8
|
"license": "AGPL-3.0",
|
|
9
9
|
"main": "./dist/server/index.js",
|
|
10
10
|
"homepage": "https://docs.nocobase.com/handbook/ui-schema-storage",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@nocobase/test": "1.x",
|
|
24
24
|
"@nocobase/utils": "1.x"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "09fe854edfc44f45422fa983093dd34694416c5a",
|
|
27
27
|
"keywords": [
|
|
28
28
|
"System & security"
|
|
29
29
|
]
|