@nocobase/plugin-mobile-client 1.2.12-alpha → 1.3.0-alpha.20240710084543
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/package.json +2 -2
- package/dist/client/MobileClientProvider.d.ts +0 -10
- package/dist/client/configuration/App.d.ts +0 -10
- package/dist/client/configuration/Interface.d.ts +0 -10
- package/dist/client/configuration/index.d.ts +0 -10
- package/dist/client/core/bridge/index.d.ts +0 -10
- package/dist/client/core/bridge/injects.d.ts +0 -21
- package/dist/client/core/bridge/native-call.d.ts +0 -9
- package/dist/client/core/index.d.ts +0 -11
- package/dist/client/core/schema/common/index.d.ts +0 -9
- package/dist/client/core/schema/common/page.d.ts +0 -24
- package/dist/client/core/schema/components/container/Container.Designer.d.ts +0 -10
- package/dist/client/core/schema/components/container/Container.d.ts +0 -13
- package/dist/client/core/schema/components/container/index.d.ts +0 -9
- package/dist/client/core/schema/components/container/style.d.ts +0 -13
- package/dist/client/core/schema/components/header/Header.Designer.d.ts +0 -10
- package/dist/client/core/schema/components/header/Header.d.ts +0 -18
- package/dist/client/core/schema/components/header/index.d.ts +0 -9
- package/dist/client/core/schema/components/index.d.ts +0 -14
- package/dist/client/core/schema/components/menu/Menu.Designer.d.ts +0 -10
- package/dist/client/core/schema/components/menu/Menu.Item.d.ts +0 -14
- package/dist/client/core/schema/components/menu/Menu.d.ts +0 -15
- package/dist/client/core/schema/components/menu/MenuBlockInitializer.d.ts +0 -10
- package/dist/client/core/schema/components/menu/index.d.ts +0 -10
- package/dist/client/core/schema/components/menu/schema.d.ts +0 -25
- package/dist/client/core/schema/components/menu/style.d.ts +0 -12
- package/dist/client/core/schema/components/page/Page.Designer.d.ts +0 -10
- package/dist/client/core/schema/components/page/Page.d.ts +0 -13
- package/dist/client/core/schema/components/page/index.d.ts +0 -9
- package/dist/client/core/schema/components/page/style.d.ts +0 -14
- package/dist/client/core/schema/components/settings/Settings.Designer.d.ts +0 -10
- package/dist/client/core/schema/components/settings/Settings.d.ts +0 -14
- package/dist/client/core/schema/components/settings/SettingsBlockInitializer.d.ts +0 -10
- package/dist/client/core/schema/components/settings/index.d.ts +0 -10
- package/dist/client/core/schema/components/tab-bar/TabBar.Item.d.ts +0 -14
- package/dist/client/core/schema/components/tab-bar/TabBar.d.ts +0 -14
- package/dist/client/core/schema/components/tab-bar/index.d.ts +0 -9
- package/dist/client/core/schema/components/tab-bar/schema.d.ts +0 -26
- package/dist/client/core/schema/helpers/index.d.ts +0 -75
- package/dist/client/core/schema/hooks/index.d.ts +0 -9
- package/dist/client/core/schema/hooks/useSchemaPatch.d.ts +0 -11
- package/dist/client/core/schema/index.d.ts +0 -11
- package/dist/client/core/schema/initializers/BlockInitializers.d.ts +0 -15
- package/dist/client/core/schema/initializers/index.d.ts +0 -9
- package/dist/client/core/schema/scopes/grid-card.d.ts +0 -23
- package/dist/client/core/schema/scopes/index.d.ts +0 -9
- package/dist/client/devices/iOS6.d.ts +0 -13
- package/dist/client/devices/index.d.ts +0 -10
- package/dist/client/index.d.ts +0 -21
- package/dist/client/index.js +0 -191
- package/dist/client/locale/index.d.ts +0 -12
- package/dist/client/router/Application.d.ts +0 -11
- package/dist/client/router/InterfaceProvider.d.ts +0 -12
- package/dist/client/router/InterfaceRouter.d.ts +0 -10
- package/dist/client/router/OpenInNewTab.d.ts +0 -10
- package/dist/client/router/index.d.ts +0 -9
- package/dist/externalVersion.js +0 -24
- package/dist/index.d.ts +0 -10
- package/dist/index.js +0 -48
- package/dist/locale/en-US.json +0 -32
- package/dist/locale/ko_KR.json +0 -32
- package/dist/locale/zh-CN.json +0 -32
- package/dist/server/index.d.ts +0 -9
- package/dist/server/index.js +0 -42
- package/dist/server/migrations/20230620203218-mobile-ui-schema-uid.d.ts +0 -13
- package/dist/server/migrations/20230620203218-mobile-ui-schema-uid.js +0 -68
- package/dist/server/migrations/20231215215233-mobile-container-uid.d.ts +0 -13
- package/dist/server/migrations/20231215215233-mobile-container-uid.js +0 -85
- package/dist/server/plugin.d.ts +0 -18
- package/dist/server/plugin.js +0 -86
- package/dist/server/routes.d.ts +0 -42
- package/dist/server/routes.js +0 -73
package/dist/locale/ko_KR.json
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Mobile Client-side": "모바일 클라이언트",
|
|
3
|
-
"Interface Configuration": "인터페이스 구성",
|
|
4
|
-
"App Configuration": "앱 구성",
|
|
5
|
-
"Enable TabBar": "탭바 활성화",
|
|
6
|
-
"Untitled": "제목 없음",
|
|
7
|
-
"Edit info": "정보 편집",
|
|
8
|
-
"Title": "제목",
|
|
9
|
-
"Display back button": "뒤로 가기 버튼 표시",
|
|
10
|
-
"Delete menu": "메뉴 삭제",
|
|
11
|
-
"Edit menu info": "메뉴 정보 편집",
|
|
12
|
-
"Menu": "메뉴",
|
|
13
|
-
"Menu name": "메뉴 이름",
|
|
14
|
-
"Icon": "아이콘",
|
|
15
|
-
"Delete menu item?": "메뉴 항목 삭제?",
|
|
16
|
-
"Add menu item": "메뉴 항목 추가",
|
|
17
|
-
"Page template": "페이지 템플릿",
|
|
18
|
-
"Template mode": "템플릿 모드",
|
|
19
|
-
"Enable Header": "헤더 활성화",
|
|
20
|
-
"Enable Tabs": "탭 활성화",
|
|
21
|
-
"Delete tab item?": "탭 항목 삭제?",
|
|
22
|
-
"Add tab": "탭 추가",
|
|
23
|
-
"App level Configuration": "앱 수준 구성",
|
|
24
|
-
"Menu configuration": "메뉴 구성",
|
|
25
|
-
"Page configuration": "페이지 구성",
|
|
26
|
-
"Settings": "설정",
|
|
27
|
-
"Delete settings block": "설정 블록 삭제",
|
|
28
|
-
"Delete menu block": "메뉴 블록 삭제",
|
|
29
|
-
"Mobile client access address": "모바일 클라이언트 접근 주소",
|
|
30
|
-
"The full address is": "전체 주소는",
|
|
31
|
-
"Preview": "미리보기"
|
|
32
|
-
}
|
package/dist/locale/zh-CN.json
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Mobile Client-side": "移动端",
|
|
3
|
-
"Interface Configuration": "界面配置",
|
|
4
|
-
"App Configuration": "App配置",
|
|
5
|
-
"Enable TabBar": "启用底部标签栏",
|
|
6
|
-
"Untitled": "未设置标题",
|
|
7
|
-
"Edit info": "编辑信息",
|
|
8
|
-
"Title": "标题",
|
|
9
|
-
"Display back button": "展示退后按钮",
|
|
10
|
-
"Delete menu": "删除菜单",
|
|
11
|
-
"Edit menu info": "编辑菜单信息",
|
|
12
|
-
"Menu": "菜单",
|
|
13
|
-
"Menu name": "菜单名",
|
|
14
|
-
"Icon": "图标",
|
|
15
|
-
"Delete menu item?": "删除菜单项",
|
|
16
|
-
"Add menu item": "添加菜单项",
|
|
17
|
-
"Page template": "页面模板",
|
|
18
|
-
"Template mode": "模板模式",
|
|
19
|
-
"Enable Header": "启用头部栏",
|
|
20
|
-
"Enable Tabs": "启用标签栏",
|
|
21
|
-
"Delete tab item?": "是否删除标签项?",
|
|
22
|
-
"Add tab": "添加标签页",
|
|
23
|
-
"App level Configuration": "应用级别配置",
|
|
24
|
-
"Menu configuration": "菜单配置",
|
|
25
|
-
"Page configuration": "页面配置",
|
|
26
|
-
"Settings": "设置",
|
|
27
|
-
"Delete settings block": "删除设置区块",
|
|
28
|
-
"Delete menu block": "删除菜单区块",
|
|
29
|
-
"Mobile client access address": "移动端访问地址",
|
|
30
|
-
"The full address is": "完整的地址是",
|
|
31
|
-
"Preview": "预览"
|
|
32
|
-
}
|
package/dist/server/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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';
|
package/dist/server/index.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
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"));
|
|
@@ -1,13 +0,0 @@
|
|
|
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 { Migration } from '@nocobase/server';
|
|
10
|
-
export default class extends Migration {
|
|
11
|
-
appVersion: string;
|
|
12
|
-
up(): Promise<void>;
|
|
13
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
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 mobile_ui_schema_uid_exports = {};
|
|
28
|
-
__export(mobile_ui_schema_uid_exports, {
|
|
29
|
-
default: () => mobile_ui_schema_uid_default
|
|
30
|
-
});
|
|
31
|
-
module.exports = __toCommonJS(mobile_ui_schema_uid_exports);
|
|
32
|
-
var import_server = require("@nocobase/server");
|
|
33
|
-
class mobile_ui_schema_uid_default extends import_server.Migration {
|
|
34
|
-
appVersion = "<0.14.0-alpha.1";
|
|
35
|
-
async up() {
|
|
36
|
-
var _a, _b, _c;
|
|
37
|
-
const result = await this.app.version.satisfies("<0.14.0-alpha.1");
|
|
38
|
-
if (!result) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
const systemSettings = this.db.getRepository("systemSettings");
|
|
42
|
-
let instance = await systemSettings.findOne();
|
|
43
|
-
if ((_a = instance == null ? void 0 : instance.options) == null ? void 0 : _a.mobileSchemaUid) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
const uiRoutes = this.db.getRepository("uiRoutes");
|
|
47
|
-
if (!uiRoutes) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
await this.db.getCollection("systemSettings").sync();
|
|
51
|
-
const routes = await uiRoutes.find();
|
|
52
|
-
for (const route of routes) {
|
|
53
|
-
if (route.uiSchemaUid && ((_b = route == null ? void 0 : route.options) == null ? void 0 : _b.component) === "MApplication") {
|
|
54
|
-
const options = instance.options || {};
|
|
55
|
-
options["mobileSchemaUid"] = route.uiSchemaUid;
|
|
56
|
-
instance.set("options", options);
|
|
57
|
-
instance.changed("options", true);
|
|
58
|
-
await instance.save();
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
instance = await systemSettings.findOne();
|
|
63
|
-
if (!((_c = instance == null ? void 0 : instance.options) == null ? void 0 : _c.mobileSchemaUid)) {
|
|
64
|
-
throw new Error("mobileSchemaUid invalid");
|
|
65
|
-
}
|
|
66
|
-
this.app.log.info("systemSettings.options", instance.toJSON());
|
|
67
|
-
}
|
|
68
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
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 { Migration } from '@nocobase/server';
|
|
10
|
-
export default class extends Migration {
|
|
11
|
-
appVersion: string;
|
|
12
|
-
up(): Promise<void>;
|
|
13
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
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 mobile_container_uid_exports = {};
|
|
28
|
-
__export(mobile_container_uid_exports, {
|
|
29
|
-
default: () => mobile_container_uid_default
|
|
30
|
-
});
|
|
31
|
-
module.exports = __toCommonJS(mobile_container_uid_exports);
|
|
32
|
-
var import_server = require("@nocobase/server");
|
|
33
|
-
class mobile_container_uid_default extends import_server.Migration {
|
|
34
|
-
appVersion = "<0.17.0-alpha.8";
|
|
35
|
-
async up() {
|
|
36
|
-
var _a, _b;
|
|
37
|
-
const result = await this.app.version.satisfies("<0.17.0-alpha.8");
|
|
38
|
-
if (!result) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
const systemSettings = this.db.getRepository("systemSettings");
|
|
42
|
-
const instance = await systemSettings.findOne();
|
|
43
|
-
if (!((_a = instance == null ? void 0 : instance.options) == null ? void 0 : _a.mobileSchemaUid)) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
const UiSchemas = this.db.getModel("uiSchemas");
|
|
47
|
-
await this.db.sequelize.transaction(async (transaction) => {
|
|
48
|
-
var _a2, _b2, _c;
|
|
49
|
-
await UiSchemas.update(
|
|
50
|
-
{
|
|
51
|
-
"x-uid": "nocobase-mobile-container"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
transaction,
|
|
55
|
-
where: {
|
|
56
|
-
"x-uid": (_a2 = instance == null ? void 0 : instance.options) == null ? void 0 : _a2.mobileSchemaUid
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
await this.db.getModel("uiSchemaTreePath").update(
|
|
61
|
-
{
|
|
62
|
-
descendant: "nocobase-mobile-container"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
transaction,
|
|
66
|
-
where: {
|
|
67
|
-
descendant: (_b2 = instance == null ? void 0 : instance.options) == null ? void 0 : _b2.mobileSchemaUid
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
await this.db.getModel("uiSchemaTreePath").update(
|
|
72
|
-
{
|
|
73
|
-
ancestor: "nocobase-mobile-container"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
transaction,
|
|
77
|
-
where: {
|
|
78
|
-
ancestor: (_c = instance == null ? void 0 : instance.options) == null ? void 0 : _c.mobileSchemaUid
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
});
|
|
83
|
-
console.log((_b = instance == null ? void 0 : instance.options) == null ? void 0 : _b.mobileSchemaUid);
|
|
84
|
-
}
|
|
85
|
-
}
|
package/dist/server/plugin.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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(): void;
|
|
12
|
-
load(): Promise<void>;
|
|
13
|
-
install(): Promise<void>;
|
|
14
|
-
afterEnable(): Promise<void>;
|
|
15
|
-
afterDisable(): Promise<void>;
|
|
16
|
-
remove(): Promise<void>;
|
|
17
|
-
}
|
|
18
|
-
export default PluginMobileServer;
|
package/dist/server/plugin.js
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
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
|
-
var import_path = require("path");
|
|
35
|
-
class PluginMobileServer extends import_server.Plugin {
|
|
36
|
-
afterAdd() {
|
|
37
|
-
}
|
|
38
|
-
async load() {
|
|
39
|
-
this.db.addMigrations({
|
|
40
|
-
namespace: "client",
|
|
41
|
-
directory: (0, import_path.resolve)(__dirname, "./migrations"),
|
|
42
|
-
context: {
|
|
43
|
-
plugin: this
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
async install() {
|
|
48
|
-
const uiSchemas = this.db.getRepository("uiSchemas");
|
|
49
|
-
await uiSchemas.insert({
|
|
50
|
-
type: "void",
|
|
51
|
-
"x-uid": "nocobase-mobile-container",
|
|
52
|
-
"x-component": "MContainer",
|
|
53
|
-
"x-designer": "MContainer.Designer",
|
|
54
|
-
"x-component-props": {},
|
|
55
|
-
properties: {
|
|
56
|
-
page: {
|
|
57
|
-
type: "void",
|
|
58
|
-
"x-component": "MPage",
|
|
59
|
-
"x-designer": "MPage.Designer",
|
|
60
|
-
"x-component-props": {},
|
|
61
|
-
properties: {
|
|
62
|
-
grid: {
|
|
63
|
-
type: "void",
|
|
64
|
-
"x-component": "Grid",
|
|
65
|
-
"x-initializer": "mobilePage:addBlock",
|
|
66
|
-
"x-component-props": {
|
|
67
|
-
showDivider: false
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
async afterEnable() {
|
|
76
|
-
}
|
|
77
|
-
async afterDisable() {
|
|
78
|
-
}
|
|
79
|
-
async remove() {
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
var plugin_default = PluginMobileServer;
|
|
83
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
84
|
-
0 && (module.exports = {
|
|
85
|
-
PluginMobileServer
|
|
86
|
-
});
|
package/dist/server/routes.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
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 const routes: {
|
|
10
|
-
type: string;
|
|
11
|
-
path: string;
|
|
12
|
-
component: string;
|
|
13
|
-
uiSchema: {
|
|
14
|
-
type: string;
|
|
15
|
-
'x-component': string;
|
|
16
|
-
'x-designer': string;
|
|
17
|
-
'x-component-props': {};
|
|
18
|
-
properties: {
|
|
19
|
-
page: {
|
|
20
|
-
type: string;
|
|
21
|
-
'x-component': string;
|
|
22
|
-
'x-designer': string;
|
|
23
|
-
'x-component-props': {};
|
|
24
|
-
properties: {
|
|
25
|
-
grid: {
|
|
26
|
-
type: string;
|
|
27
|
-
'x-component': string;
|
|
28
|
-
'x-initializer': string;
|
|
29
|
-
'x-component-props': {
|
|
30
|
-
showDivider: boolean;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
routes: {
|
|
38
|
-
type: string;
|
|
39
|
-
path: string;
|
|
40
|
-
component: string;
|
|
41
|
-
}[];
|
|
42
|
-
}[];
|
package/dist/server/routes.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
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 routes_exports = {};
|
|
28
|
-
__export(routes_exports, {
|
|
29
|
-
routes: () => routes
|
|
30
|
-
});
|
|
31
|
-
module.exports = __toCommonJS(routes_exports);
|
|
32
|
-
const routes = [
|
|
33
|
-
{
|
|
34
|
-
type: "route",
|
|
35
|
-
path: "/mobile/:name(.+)?",
|
|
36
|
-
component: "MApplication",
|
|
37
|
-
uiSchema: {
|
|
38
|
-
type: "void",
|
|
39
|
-
"x-component": "MContainer",
|
|
40
|
-
"x-designer": "MContainer.Designer",
|
|
41
|
-
"x-component-props": {},
|
|
42
|
-
properties: {
|
|
43
|
-
page: {
|
|
44
|
-
type: "void",
|
|
45
|
-
"x-component": "MPage",
|
|
46
|
-
"x-designer": "MPage.Designer",
|
|
47
|
-
"x-component-props": {},
|
|
48
|
-
properties: {
|
|
49
|
-
grid: {
|
|
50
|
-
type: "void",
|
|
51
|
-
"x-component": "Grid",
|
|
52
|
-
"x-initializer": "mobilePage:addBlock",
|
|
53
|
-
"x-component-props": {
|
|
54
|
-
showDivider: false
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
routes: [
|
|
62
|
-
{
|
|
63
|
-
type: "route",
|
|
64
|
-
path: "",
|
|
65
|
-
component: "RouteSchemaComponent"
|
|
66
|
-
}
|
|
67
|
-
]
|
|
68
|
-
}
|
|
69
|
-
];
|
|
70
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
71
|
-
0 && (module.exports = {
|
|
72
|
-
routes
|
|
73
|
-
});
|