@nocobase/plugin-mobile 2.0.0-beta.2 → 2.0.0-beta.21
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/client/index.js +1 -1
- package/dist/externalVersion.js +9 -9
- package/dist/server/plugin.js +25 -0
- package/package.json +5 -5
package/dist/externalVersion.js
CHANGED
|
@@ -11,8 +11,8 @@ module.exports = {
|
|
|
11
11
|
"@emotion/css": "11.13.4",
|
|
12
12
|
"@formily/core": "2.3.7",
|
|
13
13
|
"@formily/shared": "2.3.7",
|
|
14
|
-
"@nocobase/client": "2.0.0-beta.
|
|
15
|
-
"@nocobase/plugin-acl": "2.0.0-beta.
|
|
14
|
+
"@nocobase/client": "2.0.0-beta.21",
|
|
15
|
+
"@nocobase/plugin-acl": "2.0.0-beta.21",
|
|
16
16
|
"ahooks": "3.7.8",
|
|
17
17
|
"antd": "5.24.2",
|
|
18
18
|
"lodash": "4.17.21",
|
|
@@ -21,15 +21,15 @@ module.exports = {
|
|
|
21
21
|
"antd-style": "3.7.1",
|
|
22
22
|
"@ant-design/icons": "5.6.1",
|
|
23
23
|
"react-router-dom": "6.30.1",
|
|
24
|
-
"@nocobase/database": "2.0.0-beta.
|
|
25
|
-
"@nocobase/plugin-localization": "2.0.0-beta.
|
|
26
|
-
"@nocobase/server": "2.0.0-beta.
|
|
27
|
-
"@nocobase/utils": "2.0.0-beta.
|
|
28
|
-
"@nocobase/test": "2.0.0-beta.
|
|
24
|
+
"@nocobase/database": "2.0.0-beta.21",
|
|
25
|
+
"@nocobase/plugin-localization": "2.0.0-beta.21",
|
|
26
|
+
"@nocobase/server": "2.0.0-beta.21",
|
|
27
|
+
"@nocobase/utils": "2.0.0-beta.21",
|
|
28
|
+
"@nocobase/test": "2.0.0-beta.21",
|
|
29
29
|
"@formily/react": "2.3.7",
|
|
30
|
-
"@nocobase/plugin-mobile": "2.0.0-beta.
|
|
30
|
+
"@nocobase/plugin-mobile": "2.0.0-beta.21",
|
|
31
31
|
"react-dom": "18.2.0",
|
|
32
|
-
"@nocobase/sdk": "2.0.0-beta.
|
|
32
|
+
"@nocobase/sdk": "2.0.0-beta.21",
|
|
33
33
|
"@formily/reactive": "2.3.7",
|
|
34
34
|
"dayjs": "1.11.13",
|
|
35
35
|
"@formily/antd-v5": "1.2.3"
|
package/dist/server/plugin.js
CHANGED
|
@@ -63,6 +63,31 @@ class PluginMobileServer extends import_server.Plugin {
|
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
|
+
this.app.on("afterInstallPlugin", async (plugin) => {
|
|
67
|
+
if (plugin.name !== "mobile") {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
const record = await this.pm.repository.findOne({
|
|
71
|
+
filter: {
|
|
72
|
+
name: "mobile"
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
if (!record) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
record.options = {
|
|
79
|
+
...record.options,
|
|
80
|
+
deprecated: true
|
|
81
|
+
};
|
|
82
|
+
await this.pm.repository.update({
|
|
83
|
+
filter: {
|
|
84
|
+
name: "mobile"
|
|
85
|
+
},
|
|
86
|
+
values: {
|
|
87
|
+
options: record.options
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
});
|
|
66
91
|
}
|
|
67
92
|
setACL() {
|
|
68
93
|
this.app.acl.registerSnippet({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-mobile",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.21",
|
|
4
4
|
"main": "dist/server/index.js",
|
|
5
5
|
"homepage": "https://docs.nocobase.com/handbook/mobile",
|
|
6
6
|
"homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/mobile",
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"displayName": "Mobile (deprecated)",
|
|
9
9
|
"displayName.zh-CN": "移动端(已废弃)",
|
|
10
10
|
"displayName.ru-RU": "Мобильная версия (устарело)",
|
|
11
|
-
"description": "
|
|
12
|
-
"description.ru-RU": "
|
|
13
|
-
"description.zh-CN": "
|
|
11
|
+
"description": "Since version 2.0, the mobile plugin has been replaced by the new ui-layout plugin, which is still under development.",
|
|
12
|
+
"description.ru-RU": "С 2.0 версии, мобильная версия заменена новым плагином ui-layout, который всё ещё находится в разработке.",
|
|
13
|
+
"description.zh-CN": "自 2.0 版本起,移动端由新的 ui-layout 插件替代,该插件仍在开发中。",
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"@nocobase/client": "2.x",
|
|
16
16
|
"@nocobase/plugin-acl": "2.x",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"react-device-detect": "2.2.3",
|
|
36
36
|
"react-i18next": "11.x"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "3ea30685d9592934ec578c0b5e8def60a7fcc3c2"
|
|
39
39
|
}
|