@nocobase/plugin-mobile 1.3.0-alpha.20240724142600
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/.dumirc.ts +30 -0
- package/LICENSE.txt +121 -0
- package/README.md +15 -0
- package/README.zh-CN.md +15 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/constants.d.ts +11 -0
- package/dist/client/desktop-mode/Content.d.ts +14 -0
- package/dist/client/desktop-mode/DesktopMode.d.ts +14 -0
- package/dist/client/desktop-mode/Header.d.ts +10 -0
- package/dist/client/desktop-mode/index.d.ts +11 -0
- package/dist/client/desktop-mode/sizeContext.d.ts +25 -0
- package/dist/client/index.d.ts +40 -0
- package/dist/client/index.js +148 -0
- package/dist/client/js-bridge/index.d.ts +34 -0
- package/dist/client/locale.d.ts +10 -0
- package/dist/client/mobile/Mobile.d.ts +10 -0
- package/dist/client/mobile/MobileAppContext.d.ts +20 -0
- package/dist/client/mobile/index.d.ts +10 -0
- package/dist/client/mobile-layout/MobileLayout.d.ts +13 -0
- package/dist/client/mobile-layout/index.d.ts +10 -0
- package/dist/client/mobile-layout/mobile-tab-bar/MobileTabBar.Item/MobileTabBar.Item.d.ts +18 -0
- package/dist/client/mobile-layout/mobile-tab-bar/MobileTabBar.Item/index.d.ts +13 -0
- package/dist/client/mobile-layout/mobile-tab-bar/MobileTabBar.Item/schema.d.ts +13 -0
- package/dist/client/mobile-layout/mobile-tab-bar/MobileTabBar.Item/schemaFormFields.d.ts +10 -0
- package/dist/client/mobile-layout/mobile-tab-bar/MobileTabBar.Item/settingsItem.d.ts +11 -0
- package/dist/client/mobile-layout/mobile-tab-bar/MobileTabBar.Item/useUpdateTabBarItem.d.ts +9 -0
- package/dist/client/mobile-layout/mobile-tab-bar/MobileTabBar.d.ts +23 -0
- package/dist/client/mobile-layout/mobile-tab-bar/index.d.ts +12 -0
- package/dist/client/mobile-layout/mobile-tab-bar/initializer.d.ts +11 -0
- package/dist/client/mobile-layout/mobile-tab-bar/styles.d.ts +51 -0
- package/dist/client/mobile-layout/mobile-tab-bar/types/MobileTabBar.Link/MobileTabBar.Link.d.ts +14 -0
- package/dist/client/mobile-layout/mobile-tab-bar/types/MobileTabBar.Link/index.d.ts +11 -0
- package/dist/client/mobile-layout/mobile-tab-bar/types/MobileTabBar.Link/initializer.d.ts +10 -0
- package/dist/client/mobile-layout/mobile-tab-bar/types/MobileTabBar.Link/settings.d.ts +10 -0
- package/dist/client/mobile-layout/mobile-tab-bar/types/MobileTabBar.Page/MobileTabBar.Page.d.ts +14 -0
- package/dist/client/mobile-layout/mobile-tab-bar/types/MobileTabBar.Page/index.d.ts +11 -0
- package/dist/client/mobile-layout/mobile-tab-bar/types/MobileTabBar.Page/initializer.d.ts +10 -0
- package/dist/client/mobile-layout/mobile-tab-bar/types/MobileTabBar.Page/settings.d.ts +10 -0
- package/dist/client/mobile-layout/mobile-tab-bar/types/index.d.ts +10 -0
- package/dist/client/mobile-providers/MobileProviders.d.ts +14 -0
- package/dist/client/mobile-providers/context/MobileRoutes.d.ts +35 -0
- package/dist/client/mobile-providers/context/MobileTitle.d.ts +21 -0
- package/dist/client/mobile-providers/context/index.d.ts +10 -0
- package/dist/client/mobile-providers/index.d.ts +10 -0
- package/dist/client/pages/dynamic-page/MobilePage.d.ts +10 -0
- package/dist/client/pages/dynamic-page/content/MobilePageContent.d.ts +10 -0
- package/dist/client/pages/dynamic-page/content/MobilePageContentContainer.d.ts +12 -0
- package/dist/client/pages/dynamic-page/content/index.d.ts +11 -0
- package/dist/client/pages/dynamic-page/content/initializer.d.ts +10 -0
- package/dist/client/pages/dynamic-page/content/schema.d.ts +34 -0
- package/dist/client/pages/dynamic-page/content/styles.d.ts +14 -0
- package/dist/client/pages/dynamic-page/context.d.ts +33 -0
- package/dist/client/pages/dynamic-page/header/MobilePageHeader.d.ts +10 -0
- package/dist/client/pages/dynamic-page/header/index.d.ts +12 -0
- package/dist/client/pages/dynamic-page/header/navigation-bar/MobilePageNavigationBar.d.ts +10 -0
- package/dist/client/pages/dynamic-page/header/navigation-bar/actions/ActionColorSelect.d.ts +10 -0
- package/dist/client/pages/dynamic-page/header/navigation-bar/actions/ActionFillSelect.d.ts +10 -0
- package/dist/client/pages/dynamic-page/header/navigation-bar/actions/MobileNavigationActionBar.d.ts +28 -0
- package/dist/client/pages/dynamic-page/header/navigation-bar/actions/actionCommonInitializerSchema.d.ts +59 -0
- package/dist/client/pages/dynamic-page/header/navigation-bar/actions/actionCommonSettings.d.ts +10 -0
- package/dist/client/pages/dynamic-page/header/navigation-bar/actions/index.d.ts +12 -0
- package/dist/client/pages/dynamic-page/header/navigation-bar/actions/items/index.d.ts +9 -0
- package/dist/client/pages/dynamic-page/header/navigation-bar/actions/items/link.d.ts +15 -0
- package/dist/client/pages/dynamic-page/header/navigation-bar/actions/mobile-navigation-bar-action/MobileNavigationBarAction.d.ts +19 -0
- package/dist/client/pages/dynamic-page/header/navigation-bar/actions/mobile-navigation-bar-action/index.d.ts +9 -0
- package/dist/client/pages/dynamic-page/header/navigation-bar/actions/mobile-navigation-bar-action/styles.d.ts +45 -0
- package/dist/client/pages/dynamic-page/header/navigation-bar/actions/mobileNavigationBarActionsInitializer.d.ts +10 -0
- package/dist/client/pages/dynamic-page/header/navigation-bar/index.d.ts +10 -0
- package/dist/client/pages/dynamic-page/header/navigation-bar/styles.d.ts +27 -0
- package/dist/client/pages/dynamic-page/header/schema.d.ts +37 -0
- package/dist/client/pages/dynamic-page/header/styles.d.ts +18 -0
- package/dist/client/pages/dynamic-page/header/tabs/MobilePageTabs.d.ts +10 -0
- package/dist/client/pages/dynamic-page/header/tabs/index.d.ts +12 -0
- package/dist/client/pages/dynamic-page/header/tabs/initializer.d.ts +11 -0
- package/dist/client/pages/dynamic-page/header/tabs/settings.d.ts +17 -0
- package/dist/client/pages/dynamic-page/header/tabs/styles.d.ts +24 -0
- package/dist/client/pages/dynamic-page/index.d.ts +14 -0
- package/dist/client/pages/dynamic-page/schema.d.ts +81 -0
- package/dist/client/pages/dynamic-page/settings.d.ts +10 -0
- package/dist/client/pages/home/MobileHomePage.d.ts +10 -0
- package/dist/client/pages/home/index.d.ts +9 -0
- package/dist/client/pages/index.d.ts +11 -0
- package/dist/client/pages/mobile-action-page/MobileActionPage.d.ts +16 -0
- package/dist/client/pages/mobile-action-page/MobileActionPage.style.d.ts +11 -0
- package/dist/client/pages/mobile-action-page/MobileTabsForMobileActionPage.d.ts +9 -0
- package/dist/client/pages/mobile-action-page/MobileTabsForMobileActionPage.style.d.ts +12 -0
- package/dist/client/pages/not-found/MobileNotFoundPage.d.ts +10 -0
- package/dist/client/pages/not-found/index.d.ts +9 -0
- package/dist/client/providers/MobileCheckerProvider.d.ts +10 -0
- package/dist/client/providers/index.d.ts +9 -0
- package/dist/client/utils.d.ts +9 -0
- package/dist/externalVersion.js +28 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +48 -0
- package/dist/locale/en-US.json +22 -0
- package/dist/locale/zh-CN.json +23 -0
- package/dist/server/collections/mobileRoutes.d.ts +10 -0
- package/dist/server/collections/mobileRoutes.js +331 -0
- package/dist/server/index.d.ts +9 -0
- package/dist/server/index.js +42 -0
- package/dist/server/plugin.d.ts +19 -0
- package/dist/server/plugin.js +54 -0
- package/package.json +29 -0
- package/server.d.ts +2 -0
- package/server.js +1 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export * from './MobileNotFoundPage';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
export declare const MobileCheckerProvider: React.NamedExoticComponent<object>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export * from './MobileCheckerProvider';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export declare function isInnerLink(url: string): boolean;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
module.exports = {
|
|
11
|
+
"@nocobase/client": "1.3.0-alpha.20240724142600",
|
|
12
|
+
"react": "18.2.0",
|
|
13
|
+
"react-router-dom": "6.21.0",
|
|
14
|
+
"react-i18next": "11.18.6",
|
|
15
|
+
"@nocobase/server": "1.3.0-alpha.20240724142600",
|
|
16
|
+
"@nocobase/test": "1.3.0-alpha.20240724142600",
|
|
17
|
+
"@nocobase/plugin-mobile": "1.3.0-alpha.20240724142600",
|
|
18
|
+
"@ant-design/icons": "5.2.6",
|
|
19
|
+
"antd": "5.12.8",
|
|
20
|
+
"@nocobase/database": "1.3.0-alpha.20240724142600",
|
|
21
|
+
"lodash": "4.17.21",
|
|
22
|
+
"@formily/react": "2.3.0",
|
|
23
|
+
"antd-style": "3.4.5",
|
|
24
|
+
"@nocobase/sdk": "1.3.0-alpha.20240724142600",
|
|
25
|
+
"react-dom": "18.2.0",
|
|
26
|
+
"@formily/shared": "2.3.0",
|
|
27
|
+
"@emotion/css": "11.11.2"
|
|
28
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export * from './server';
|
|
10
|
+
export { default } from './server';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __create = Object.create;
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
+
var __export = (target, all) => {
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
29
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
30
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
31
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
32
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
33
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
34
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
35
|
+
mod
|
|
36
|
+
));
|
|
37
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
38
|
+
var src_exports = {};
|
|
39
|
+
__export(src_exports, {
|
|
40
|
+
default: () => import_server.default
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(src_exports);
|
|
43
|
+
__reExport(src_exports, require("./server"), module.exports);
|
|
44
|
+
var import_server = __toESM(require("./server"));
|
|
45
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
+
0 && (module.exports = {
|
|
47
|
+
...require("./server")
|
|
48
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"App settings": "App settings",
|
|
3
|
+
"Page settings": "Page settings",
|
|
4
|
+
"Info": "Info",
|
|
5
|
+
"Back": "Back",
|
|
6
|
+
"Link": "Link",
|
|
7
|
+
"Remove": "Remove",
|
|
8
|
+
"Add page": "Add page",
|
|
9
|
+
"Title": "Title",
|
|
10
|
+
"Icon": "Icon",
|
|
11
|
+
"Selected icon": "Selected icon",
|
|
12
|
+
"Add link": "Add link",
|
|
13
|
+
"Display tab bar": "Display tab bar",
|
|
14
|
+
"Display page header": "Display page header",
|
|
15
|
+
"Display navigation bar": "Display navigation bar",
|
|
16
|
+
"Display page title": "Display page title",
|
|
17
|
+
"Display tabs": "Display tabs",
|
|
18
|
+
"Add tab": "Add tab",
|
|
19
|
+
"Mobile": "Mobile",
|
|
20
|
+
"Title field is required": "Title field is required",
|
|
21
|
+
"Icon field is required": "Icon field is required"
|
|
22
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Fill": "填充",
|
|
3
|
+
"App settings": "应用设置",
|
|
4
|
+
"Info": "信息",
|
|
5
|
+
"Back": "返回",
|
|
6
|
+
"Page settings": "页面设置",
|
|
7
|
+
"Link": "链接",
|
|
8
|
+
"Remove": "删除",
|
|
9
|
+
"Add page": "添加页面",
|
|
10
|
+
"Title": "标题",
|
|
11
|
+
"Icon": "图标",
|
|
12
|
+
"Selected icon": "选中时图标",
|
|
13
|
+
"Add link": "添加链接",
|
|
14
|
+
"Display tab bar": "显示标签栏",
|
|
15
|
+
"Display page header": "显示页面标题",
|
|
16
|
+
"Display navigation bar": "显示导航栏",
|
|
17
|
+
"Display page title": "显示导航栏标题",
|
|
18
|
+
"Display tabs": "显示标签页",
|
|
19
|
+
"Add tab": "添加标签页",
|
|
20
|
+
"Mobile": "移动端",
|
|
21
|
+
"Title field is required": "标题必填",
|
|
22
|
+
"Icon field is required": "图标必填"
|
|
23
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
declare const _default: import("@nocobase/database").CollectionOptions;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var mobileRoutes_exports = {};
|
|
28
|
+
__export(mobileRoutes_exports, {
|
|
29
|
+
default: () => mobileRoutes_default
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(mobileRoutes_exports);
|
|
32
|
+
var import_database = require("@nocobase/database");
|
|
33
|
+
var mobileRoutes_default = (0, import_database.defineCollection)({
|
|
34
|
+
"key": "d1za29o7irk",
|
|
35
|
+
"name": "mobileRoutes",
|
|
36
|
+
"title": "mobileRoutes",
|
|
37
|
+
"inherit": false,
|
|
38
|
+
"hidden": false,
|
|
39
|
+
"description": null,
|
|
40
|
+
"fields": [
|
|
41
|
+
{
|
|
42
|
+
"key": "ymgf0jxu1kg",
|
|
43
|
+
"name": "parentId",
|
|
44
|
+
"type": "bigInt",
|
|
45
|
+
"interface": "integer",
|
|
46
|
+
"description": null,
|
|
47
|
+
"collectionName": "mobileRoutes",
|
|
48
|
+
"parentKey": null,
|
|
49
|
+
"reverseKey": null,
|
|
50
|
+
"isForeignKey": true,
|
|
51
|
+
"uiSchema": {
|
|
52
|
+
"type": "number",
|
|
53
|
+
"title": '{{t("Parent ID")}}',
|
|
54
|
+
"x-component": "InputNumber",
|
|
55
|
+
"x-read-pretty": true
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"key": "b07aqgs2shv",
|
|
60
|
+
"name": "parent",
|
|
61
|
+
"type": "belongsTo",
|
|
62
|
+
"interface": "m2o",
|
|
63
|
+
"description": null,
|
|
64
|
+
"collectionName": "mobileRoutes",
|
|
65
|
+
"parentKey": null,
|
|
66
|
+
"reverseKey": null,
|
|
67
|
+
"foreignKey": "parentId",
|
|
68
|
+
"treeParent": true,
|
|
69
|
+
"onDelete": "CASCADE",
|
|
70
|
+
"uiSchema": {
|
|
71
|
+
"title": '{{t("Parent")}}',
|
|
72
|
+
"x-component": "AssociationField",
|
|
73
|
+
"x-component-props": {
|
|
74
|
+
"multiple": false,
|
|
75
|
+
"fieldNames": {
|
|
76
|
+
"label": "id",
|
|
77
|
+
"value": "id"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"target": "mobileRoutes",
|
|
82
|
+
"targetKey": "id"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"key": "p8sxllsgin1",
|
|
86
|
+
"name": "children",
|
|
87
|
+
"type": "hasMany",
|
|
88
|
+
"interface": "o2m",
|
|
89
|
+
"description": null,
|
|
90
|
+
"collectionName": "mobileRoutes",
|
|
91
|
+
"parentKey": null,
|
|
92
|
+
"reverseKey": null,
|
|
93
|
+
"foreignKey": "parentId",
|
|
94
|
+
"treeChildren": true,
|
|
95
|
+
"onDelete": "CASCADE",
|
|
96
|
+
"uiSchema": {
|
|
97
|
+
"title": '{{t("Children")}}',
|
|
98
|
+
"x-component": "AssociationField",
|
|
99
|
+
"x-component-props": {
|
|
100
|
+
"multiple": true,
|
|
101
|
+
"fieldNames": {
|
|
102
|
+
"label": "id",
|
|
103
|
+
"value": "id"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"target": "mobileRoutes",
|
|
108
|
+
"targetKey": "id",
|
|
109
|
+
"sourceKey": "id"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"key": "7y601o9bmih",
|
|
113
|
+
"name": "id",
|
|
114
|
+
"type": "bigInt",
|
|
115
|
+
"interface": "integer",
|
|
116
|
+
"description": null,
|
|
117
|
+
"collectionName": "mobileRoutes",
|
|
118
|
+
"parentKey": null,
|
|
119
|
+
"reverseKey": null,
|
|
120
|
+
"autoIncrement": true,
|
|
121
|
+
"primaryKey": true,
|
|
122
|
+
"allowNull": false,
|
|
123
|
+
"uiSchema": {
|
|
124
|
+
"type": "number",
|
|
125
|
+
"title": '{{t("ID")}}',
|
|
126
|
+
"x-component": "InputNumber",
|
|
127
|
+
"x-read-pretty": true
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"key": "m8s9b94amz3",
|
|
132
|
+
"name": "createdAt",
|
|
133
|
+
"type": "date",
|
|
134
|
+
"interface": "createdAt",
|
|
135
|
+
"description": null,
|
|
136
|
+
"collectionName": "mobileRoutes",
|
|
137
|
+
"parentKey": null,
|
|
138
|
+
"reverseKey": null,
|
|
139
|
+
"field": "createdAt",
|
|
140
|
+
"uiSchema": {
|
|
141
|
+
"type": "datetime",
|
|
142
|
+
"title": '{{t("Created at")}}',
|
|
143
|
+
"x-component": "DatePicker",
|
|
144
|
+
"x-component-props": {},
|
|
145
|
+
"x-read-pretty": true
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"key": "p3p69woziuu",
|
|
150
|
+
"name": "createdBy",
|
|
151
|
+
"type": "belongsTo",
|
|
152
|
+
"interface": "createdBy",
|
|
153
|
+
"description": null,
|
|
154
|
+
"collectionName": "mobileRoutes",
|
|
155
|
+
"parentKey": null,
|
|
156
|
+
"reverseKey": null,
|
|
157
|
+
"target": "users",
|
|
158
|
+
"foreignKey": "createdById",
|
|
159
|
+
"uiSchema": {
|
|
160
|
+
"type": "object",
|
|
161
|
+
"title": '{{t("Created by")}}',
|
|
162
|
+
"x-component": "AssociationField",
|
|
163
|
+
"x-component-props": {
|
|
164
|
+
"fieldNames": {
|
|
165
|
+
"value": "id",
|
|
166
|
+
"label": "nickname"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"x-read-pretty": true
|
|
170
|
+
},
|
|
171
|
+
"targetKey": "id"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"key": "s0gw1blo4hm",
|
|
175
|
+
"name": "updatedAt",
|
|
176
|
+
"type": "date",
|
|
177
|
+
"interface": "updatedAt",
|
|
178
|
+
"description": null,
|
|
179
|
+
"collectionName": "mobileRoutes",
|
|
180
|
+
"parentKey": null,
|
|
181
|
+
"reverseKey": null,
|
|
182
|
+
"field": "updatedAt",
|
|
183
|
+
"uiSchema": {
|
|
184
|
+
"type": "string",
|
|
185
|
+
"title": '{{t("Last updated at")}}',
|
|
186
|
+
"x-component": "DatePicker",
|
|
187
|
+
"x-component-props": {},
|
|
188
|
+
"x-read-pretty": true
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"key": "d1l988n09gd",
|
|
193
|
+
"name": "updatedBy",
|
|
194
|
+
"type": "belongsTo",
|
|
195
|
+
"interface": "updatedBy",
|
|
196
|
+
"description": null,
|
|
197
|
+
"collectionName": "mobileRoutes",
|
|
198
|
+
"parentKey": null,
|
|
199
|
+
"reverseKey": null,
|
|
200
|
+
"target": "users",
|
|
201
|
+
"foreignKey": "updatedById",
|
|
202
|
+
"uiSchema": {
|
|
203
|
+
"type": "object",
|
|
204
|
+
"title": '{{t("Last updated by")}}',
|
|
205
|
+
"x-component": "AssociationField",
|
|
206
|
+
"x-component-props": {
|
|
207
|
+
"fieldNames": {
|
|
208
|
+
"value": "id",
|
|
209
|
+
"label": "nickname"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"x-read-pretty": true
|
|
213
|
+
},
|
|
214
|
+
"targetKey": "id"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"key": "bo7btzkbyan",
|
|
218
|
+
"name": "title",
|
|
219
|
+
"type": "string",
|
|
220
|
+
"interface": "input",
|
|
221
|
+
"description": null,
|
|
222
|
+
"collectionName": "mobileRoutes",
|
|
223
|
+
"parentKey": null,
|
|
224
|
+
"reverseKey": null,
|
|
225
|
+
"uiSchema": {
|
|
226
|
+
"type": "string",
|
|
227
|
+
"x-component": "Input",
|
|
228
|
+
"title": "title"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"key": "ozl5d8t2d5e",
|
|
233
|
+
"name": "icon",
|
|
234
|
+
"type": "string",
|
|
235
|
+
"interface": "input",
|
|
236
|
+
"description": null,
|
|
237
|
+
"collectionName": "mobileRoutes",
|
|
238
|
+
"parentKey": null,
|
|
239
|
+
"reverseKey": null,
|
|
240
|
+
"uiSchema": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"x-component": "Input",
|
|
243
|
+
"title": "icon"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"key": "6bbyhv00bp4",
|
|
248
|
+
"name": "schemaUid",
|
|
249
|
+
"type": "string",
|
|
250
|
+
"interface": "input",
|
|
251
|
+
"description": null,
|
|
252
|
+
"collectionName": "mobileRoutes",
|
|
253
|
+
"parentKey": null,
|
|
254
|
+
"reverseKey": null,
|
|
255
|
+
"uiSchema": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"x-component": "Input",
|
|
258
|
+
"title": "schemaUid"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"key": "m0k5qbaktab",
|
|
263
|
+
"name": "type",
|
|
264
|
+
"type": "string",
|
|
265
|
+
"interface": "input",
|
|
266
|
+
"description": null,
|
|
267
|
+
"collectionName": "mobileRoutes",
|
|
268
|
+
"parentKey": null,
|
|
269
|
+
"reverseKey": null,
|
|
270
|
+
"uiSchema": {
|
|
271
|
+
"type": "string",
|
|
272
|
+
"x-component": "Input",
|
|
273
|
+
"title": "type"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"key": "ssuml1j2v1b",
|
|
278
|
+
"name": "options",
|
|
279
|
+
"type": "json",
|
|
280
|
+
"interface": "json",
|
|
281
|
+
"description": null,
|
|
282
|
+
"collectionName": "mobileRoutes",
|
|
283
|
+
"parentKey": null,
|
|
284
|
+
"reverseKey": null,
|
|
285
|
+
"defaultValue": null,
|
|
286
|
+
"uiSchema": {
|
|
287
|
+
"type": "object",
|
|
288
|
+
"x-component": "Input.JSON",
|
|
289
|
+
"x-component-props": {
|
|
290
|
+
"autoSize": {
|
|
291
|
+
"minRows": 5
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"default": null,
|
|
295
|
+
"title": "options"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"key": "jjmosjqhz8l",
|
|
300
|
+
"name": "sort",
|
|
301
|
+
"type": "sort",
|
|
302
|
+
"interface": "sort",
|
|
303
|
+
"description": null,
|
|
304
|
+
"collectionName": "mobileRoutes",
|
|
305
|
+
"parentKey": null,
|
|
306
|
+
"reverseKey": null,
|
|
307
|
+
"uiSchema": {
|
|
308
|
+
"type": "number",
|
|
309
|
+
"x-component": "InputNumber",
|
|
310
|
+
"x-component-props": {
|
|
311
|
+
"stringMode": true,
|
|
312
|
+
"step": "1"
|
|
313
|
+
},
|
|
314
|
+
"x-validator": "integer",
|
|
315
|
+
"title": "sort"
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
],
|
|
319
|
+
"category": [],
|
|
320
|
+
"logging": true,
|
|
321
|
+
"autoGenId": true,
|
|
322
|
+
"createdAt": true,
|
|
323
|
+
"createdBy": true,
|
|
324
|
+
"updatedAt": true,
|
|
325
|
+
"updatedBy": true,
|
|
326
|
+
"template": "tree",
|
|
327
|
+
"view": false,
|
|
328
|
+
"tree": "adjacencyList",
|
|
329
|
+
"schema": "public",
|
|
330
|
+
"filterTargetKey": "id"
|
|
331
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export { default } from './plugin';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __create = Object.create;
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
+
var __export = (target, all) => {
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
+
mod
|
|
35
|
+
));
|
|
36
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
|
+
var server_exports = {};
|
|
38
|
+
__export(server_exports, {
|
|
39
|
+
default: () => import_plugin.default
|
|
40
|
+
});
|
|
41
|
+
module.exports = __toCommonJS(server_exports);
|
|
42
|
+
var import_plugin = __toESM(require("./plugin"));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from '@nocobase/server';
|
|
10
|
+
export declare class PluginMobileServer extends Plugin {
|
|
11
|
+
afterAdd(): Promise<void>;
|
|
12
|
+
beforeLoad(): Promise<void>;
|
|
13
|
+
load(): Promise<void>;
|
|
14
|
+
install(): Promise<void>;
|
|
15
|
+
afterEnable(): Promise<void>;
|
|
16
|
+
afterDisable(): Promise<void>;
|
|
17
|
+
remove(): Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
export default PluginMobileServer;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var plugin_exports = {};
|
|
28
|
+
__export(plugin_exports, {
|
|
29
|
+
PluginMobileServer: () => PluginMobileServer,
|
|
30
|
+
default: () => plugin_default
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(plugin_exports);
|
|
33
|
+
var import_server = require("@nocobase/server");
|
|
34
|
+
class PluginMobileServer extends import_server.Plugin {
|
|
35
|
+
async afterAdd() {
|
|
36
|
+
}
|
|
37
|
+
async beforeLoad() {
|
|
38
|
+
}
|
|
39
|
+
async load() {
|
|
40
|
+
}
|
|
41
|
+
async install() {
|
|
42
|
+
}
|
|
43
|
+
async afterEnable() {
|
|
44
|
+
}
|
|
45
|
+
async afterDisable() {
|
|
46
|
+
}
|
|
47
|
+
async remove() {
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
var plugin_default = PluginMobileServer;
|
|
51
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
52
|
+
0 && (module.exports = {
|
|
53
|
+
PluginMobileServer
|
|
54
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nocobase/plugin-mobile",
|
|
3
|
+
"version": "1.3.0-alpha.20240724142600",
|
|
4
|
+
"main": "dist/server/index.js",
|
|
5
|
+
"homepage": "https://docs.nocobase.com/handbook/mobile",
|
|
6
|
+
"homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/mobile",
|
|
7
|
+
"license": "AGPL-3.0",
|
|
8
|
+
"displayName": "Mobile(Developing)",
|
|
9
|
+
"displayName.zh-CN": "移动端(开发中)",
|
|
10
|
+
"description": "Provides the ability to configure mobile pages.",
|
|
11
|
+
"description.zh-CN": "提供移动端页面配置的能力。",
|
|
12
|
+
"peerDependencies": {
|
|
13
|
+
"@nocobase/client": "1.x",
|
|
14
|
+
"@nocobase/server": "1.x",
|
|
15
|
+
"@nocobase/test": "1.x"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@ant-design/icons": "5.x",
|
|
19
|
+
"@formily/antd-v5": "1.x",
|
|
20
|
+
"@formily/react": "2.x",
|
|
21
|
+
"@formily/shared": "2.x",
|
|
22
|
+
"@types/react": "17.x",
|
|
23
|
+
"@types/react-dom": "17.x",
|
|
24
|
+
"antd-mobile": "^5.36.1",
|
|
25
|
+
"re-resizable": "6.6.0",
|
|
26
|
+
"react-device-detect": "2.2.3"
|
|
27
|
+
},
|
|
28
|
+
"gitHead": "28b0027addee28c6f41a974512d07e396012dd77"
|
|
29
|
+
}
|