@nocobase/plugin-mobile 2.1.0-beta.9 → 2.1.0

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.
@@ -11,25 +11,25 @@ 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.1.0-beta.9",
15
- "@nocobase/plugin-acl": "2.1.0-beta.9",
14
+ "@nocobase/client": "2.1.0",
15
+ "@nocobase/plugin-acl": "2.1.0",
16
16
  "ahooks": "3.7.8",
17
17
  "antd": "5.24.2",
18
- "lodash": "4.17.21",
18
+ "lodash": "4.18.1",
19
19
  "react": "18.2.0",
20
20
  "react-i18next": "11.18.6",
21
+ "@nocobase/client-v2": "2.1.0",
21
22
  "antd-style": "3.7.1",
22
23
  "@ant-design/icons": "5.6.1",
23
24
  "react-router-dom": "6.30.1",
24
- "@nocobase/database": "2.1.0-beta.9",
25
- "@nocobase/plugin-localization": "2.1.0-beta.9",
26
- "@nocobase/server": "2.1.0-beta.9",
27
- "@nocobase/utils": "2.1.0-beta.9",
28
- "@nocobase/test": "2.1.0-beta.9",
25
+ "@nocobase/database": "2.1.0",
26
+ "@nocobase/server": "2.1.0",
27
+ "@nocobase/utils": "2.1.0",
28
+ "@nocobase/test": "2.1.0",
29
29
  "@formily/react": "2.3.7",
30
- "@nocobase/plugin-mobile": "2.1.0-beta.9",
30
+ "@nocobase/plugin-mobile": "2.1.0",
31
31
  "react-dom": "18.2.0",
32
- "@nocobase/sdk": "2.1.0-beta.9",
32
+ "@nocobase/sdk": "2.1.0",
33
33
  "@formily/reactive": "2.3.7",
34
34
  "dayjs": "1.11.13",
35
35
  "@formily/antd-v5": "1.2.3"
@@ -32,6 +32,7 @@ module.exports = __toCommonJS(mobileRoutes_exports);
32
32
  var import_database = require("@nocobase/database");
33
33
  var mobileRoutes_default = (0, import_database.defineCollection)({
34
34
  name: "mobileRoutes",
35
+ dataCategory: "system",
35
36
  dumpRules: "required",
36
37
  migrationRules: ["overwrite", "schema-only"],
37
38
  title: "mobileRoutes",
@@ -186,11 +186,7 @@ class PluginMobileServer extends import_server.Plugin {
186
186
  });
187
187
  }
188
188
  registerLocalizationSource() {
189
- const localizationPlugin = this.app.pm.get("localization");
190
- if (!localizationPlugin) {
191
- return;
192
- }
193
- localizationPlugin.sourceManager.registerSource("mobile-routes", {
189
+ this.app.localeManager.registerSource("mobile-routes", {
194
190
  title: (0, import_utils.tval)("Mobile routes"),
195
191
  sync: async (ctx) => {
196
192
  const mobileRoutes = await ctx.db.getRepository("mobileRoutes").find({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-mobile",
3
- "version": "2.1.0-beta.9",
3
+ "version": "2.1.0",
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",
@@ -11,10 +11,16 @@
11
11
  "description": "Since version 2.0, the mobile plugin has been replaced by the new ui-layout plugin, which is still under development.",
12
12
  "description.ru-RU": "С 2.0 версии, мобильная версия заменена новым плагином ui-layout, который всё ещё находится в разработке.",
13
13
  "description.zh-CN": "自 2.0 版本起,移动端由新的 ui-layout 插件替代,该插件仍在开发中。",
14
+ "nocobase": {
15
+ "deprecated": true,
16
+ "supportedVersions": [
17
+ "1.x"
18
+ ],
19
+ "editionLevel": 0
20
+ },
14
21
  "peerDependencies": {
15
22
  "@nocobase/client": "2.x",
16
23
  "@nocobase/plugin-acl": "2.x",
17
- "@nocobase/plugin-localization": "2.x",
18
24
  "@nocobase/server": "2.x",
19
25
  "@nocobase/test": "2.x"
20
26
  },
@@ -35,5 +41,5 @@
35
41
  "react-device-detect": "2.2.3",
36
42
  "react-i18next": "11.x"
37
43
  },
38
- "gitHead": "c3a2875e4cbbb43b1f2361e6f9f5f84a7d3f3c3c"
44
+ "gitHead": "9373212dd0f22cd985be1e23674d6b454944b9ee"
39
45
  }