@nocobase/plugin-mobile-client 0.11.1-alpha.4 → 0.11.1-alpha.5
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.
|
@@ -20,9 +20,12 @@ class _default extends _server().Migration {
|
|
|
20
20
|
up() {
|
|
21
21
|
var _this = this;
|
|
22
22
|
return _asyncToGenerator(function* () {
|
|
23
|
-
var _instance, _instance$options;
|
|
23
|
+
var _instance, _instance$options, _instance2, _instance2$options;
|
|
24
24
|
const systemSettings = _this.db.getRepository('systemSettings');
|
|
25
25
|
let instance = yield systemSettings.findOne();
|
|
26
|
+
if ((_instance = instance) !== null && _instance !== void 0 && (_instance$options = _instance.options) !== null && _instance$options !== void 0 && _instance$options.mobileSchemaUid) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
26
29
|
const uiRoutes = _this.db.getRepository('uiRoutes');
|
|
27
30
|
const routes = yield uiRoutes.find();
|
|
28
31
|
var _iterator = _createForOfIteratorHelper(routes),
|
|
@@ -46,7 +49,7 @@ class _default extends _server().Migration {
|
|
|
46
49
|
_iterator.f();
|
|
47
50
|
}
|
|
48
51
|
instance = yield systemSettings.findOne();
|
|
49
|
-
if (!((
|
|
52
|
+
if (!((_instance2 = instance) !== null && _instance2 !== void 0 && (_instance2$options = _instance2.options) !== null && _instance2$options !== void 0 && _instance2$options.mobileSchemaUid)) {
|
|
50
53
|
throw new Error('mobileSchemaUid invalid');
|
|
51
54
|
}
|
|
52
55
|
_this.app.log.info('systemSettings.options', instance.toJSON());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-mobile-client",
|
|
3
|
-
"version": "0.11.1-alpha.
|
|
3
|
+
"version": "0.11.1-alpha.5",
|
|
4
4
|
"main": "./lib/server/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib",
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"description.zh-CN": "提供移动端访问",
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@ant-design/icons": "^5.1.4",
|
|
22
|
-
"@formily/antd-v5": "^1.1.0
|
|
23
|
-
"@formily/react": "2.2.
|
|
24
|
-
"@formily/shared": "2.2.
|
|
25
|
-
"@nocobase/client": "0.11.1-alpha.
|
|
26
|
-
"@nocobase/database": "0.11.1-alpha.
|
|
27
|
-
"@nocobase/server": "0.11.1-alpha.
|
|
28
|
-
"@nocobase/test": "0.11.1-alpha.
|
|
29
|
-
"@nocobase/utils": "0.11.1-alpha.
|
|
22
|
+
"@formily/antd-v5": "^1.1.0",
|
|
23
|
+
"@formily/react": "^2.2.27",
|
|
24
|
+
"@formily/shared": "^2.2.27",
|
|
25
|
+
"@nocobase/client": "0.11.1-alpha.5",
|
|
26
|
+
"@nocobase/database": "0.11.1-alpha.5",
|
|
27
|
+
"@nocobase/server": "0.11.1-alpha.5",
|
|
28
|
+
"@nocobase/test": "0.11.1-alpha.5",
|
|
29
|
+
"@nocobase/utils": "0.11.1-alpha.5",
|
|
30
30
|
"@types/react": "^17.0.0",
|
|
31
31
|
"@types/react-dom": "^17.0.0",
|
|
32
32
|
"antd": "^5.6.4",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"antd-mobile": "^5.29.1",
|
|
41
41
|
"classnames": "^2.3.1"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "1dcfd15a7d95a40b0a2f60e1de19ec574066fb20"
|
|
44
44
|
}
|
|
@@ -5,6 +5,9 @@ export default class extends Migration {
|
|
|
5
5
|
async up() {
|
|
6
6
|
const systemSettings = this.db.getRepository('systemSettings');
|
|
7
7
|
let instance: Model = await systemSettings.findOne();
|
|
8
|
+
if (instance?.options?.mobileSchemaUid) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
8
11
|
const uiRoutes = this.db.getRepository('uiRoutes');
|
|
9
12
|
const routes = await uiRoutes.find();
|
|
10
13
|
for (const route of routes) {
|