@nocobase/plugin-mobile-client 0.21.0-alpha.6 → 0.21.0-alpha.8
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.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Plugin, RouterManager } from '@nocobase/client';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class PluginMobileClient extends Plugin {
|
|
4
4
|
mobileRouter: RouterManager;
|
|
5
5
|
load(): Promise<void>;
|
|
6
6
|
addSettings(): void;
|
|
@@ -10,4 +10,4 @@ export declare class MobileClientPlugin extends Plugin {
|
|
|
10
10
|
}>;
|
|
11
11
|
addRoutes(): void;
|
|
12
12
|
}
|
|
13
|
-
export default
|
|
13
|
+
export default PluginMobileClient;
|
package/dist/client/index.js
CHANGED
|
@@ -179,4 +179,4 @@
|
|
|
179
179
|
margin-top: 50px;
|
|
180
180
|
`),children:o.jsx(ui,x({className:r.css`
|
|
181
181
|
box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
|
|
182
|
-
`},e))}),fi=()=>o.jsx(mi,{children:o.jsx(Ct,{})});class Te extends r.Plugin{constructor(){super(...arguments);Pt(this,"mobileRouter")}load(){return F(this,null,function*(){this.setMobileRouter(),this.addRoutes(),this.addSettings(),this.app.use(Ne),this.app.schemaInitializerManager.add(Ae),this.app.schemaInitializerManager.add(kt)})}addSettings(){this.app.pluginSettingsManager.add(N,{title:`{{t("Mobile Client-side", { ns: "${N}" })}}`,icon:"MobileOutlined",Component:()=>o.jsx(v.Outlet,{})}),this.app.pluginSettingsManager.add(`${N}.interface`,{title:`{{t("Interface Configuration", { ns: "${N}" })}}`,Component:fi,sort:1}),this.app.pluginSettingsManager.add(`${N}.app`,{title:`{{t("App Configuration", { ns: "${N}" })}}`,Component:pi,sort:2})}setMobileRouter(){const n=r.createRouterManager({type:"hash"},this.app);n.add("root",{path:"/",element:o.jsx(v.Navigate,{replace:!0,to:"/mobile"})}),n.add("mobile",{path:"/mobile",element:o.jsx($t,{})}),n.add("mobile.page",{path:"/mobile/:name",element:o.jsx(r.RouteSchemaComponent,{})}),this.mobileRouter=n}getMobileRouterComponent(){return this.mobileRouter.getRouterComponent()}addRoutes(){this.app.router.add("mobile",{path:"/mobile",element:o.jsx($t,{})}),this.app.router.add("mobile.page",{path:"/mobile/:name",Component:"RouteSchemaComponent"})}}m.
|
|
182
|
+
`},e))}),fi=()=>o.jsx(mi,{children:o.jsx(Ct,{})});class Te extends r.Plugin{constructor(){super(...arguments);Pt(this,"mobileRouter")}load(){return F(this,null,function*(){this.setMobileRouter(),this.addRoutes(),this.addSettings(),this.app.use(Ne),this.app.schemaInitializerManager.add(Ae),this.app.schemaInitializerManager.add(kt)})}addSettings(){this.app.pluginSettingsManager.add(N,{title:`{{t("Mobile Client-side", { ns: "${N}" })}}`,icon:"MobileOutlined",Component:()=>o.jsx(v.Outlet,{})}),this.app.pluginSettingsManager.add(`${N}.interface`,{title:`{{t("Interface Configuration", { ns: "${N}" })}}`,Component:fi,sort:1}),this.app.pluginSettingsManager.add(`${N}.app`,{title:`{{t("App Configuration", { ns: "${N}" })}}`,Component:pi,sort:2})}setMobileRouter(){const n=r.createRouterManager({type:"hash"},this.app);n.add("root",{path:"/",element:o.jsx(v.Navigate,{replace:!0,to:"/mobile"})}),n.add("mobile",{path:"/mobile",element:o.jsx($t,{})}),n.add("mobile.page",{path:"/mobile/:name",element:o.jsx(r.RouteSchemaComponent,{})}),this.mobileRouter=n}getMobileRouterComponent(){return this.mobileRouter.getRouterComponent()}addRoutes(){this.app.router.add("mobile",{path:"/mobile",element:o.jsx($t,{})}),this.app.router.add("mobile.page",{path:"/mobile/:name",Component:"RouteSchemaComponent"})}}m.PluginMobileClient=Te,m.default=Te,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/externalVersion.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
"react": "18.2.0",
|
|
3
3
|
"react-router-dom": "6.21.0",
|
|
4
|
-
"@nocobase/client": "0.21.0-alpha.
|
|
5
|
-
"@nocobase/server": "0.21.0-alpha.
|
|
4
|
+
"@nocobase/client": "0.21.0-alpha.8",
|
|
5
|
+
"@nocobase/server": "0.21.0-alpha.8",
|
|
6
6
|
"antd": "5.12.8",
|
|
7
7
|
"react-i18next": "11.18.6",
|
|
8
8
|
"@ant-design/icons": "5.2.6",
|
|
9
|
-
"@nocobase/database": "0.21.0-alpha.
|
|
9
|
+
"@nocobase/database": "0.21.0-alpha.8",
|
|
10
10
|
"@formily/react": "2.3.0",
|
|
11
11
|
"@formily/shared": "2.3.0",
|
|
12
12
|
"lodash": "4.17.21",
|
package/dist/server/plugin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Plugin } from '@nocobase/server';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class PluginMobileServer extends Plugin {
|
|
3
3
|
afterAdd(): void;
|
|
4
4
|
load(): Promise<void>;
|
|
5
5
|
install(): Promise<void>;
|
|
@@ -7,4 +7,4 @@ export declare class MobileClientPlugin extends Plugin {
|
|
|
7
7
|
afterDisable(): Promise<void>;
|
|
8
8
|
remove(): Promise<void>;
|
|
9
9
|
}
|
|
10
|
-
export default
|
|
10
|
+
export default PluginMobileServer;
|
package/dist/server/plugin.js
CHANGED
|
@@ -17,13 +17,13 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
var plugin_exports = {};
|
|
19
19
|
__export(plugin_exports, {
|
|
20
|
-
|
|
20
|
+
PluginMobileServer: () => PluginMobileServer,
|
|
21
21
|
default: () => plugin_default
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(plugin_exports);
|
|
24
24
|
var import_server = require("@nocobase/server");
|
|
25
25
|
var import_path = require("path");
|
|
26
|
-
class
|
|
26
|
+
class PluginMobileServer extends import_server.Plugin {
|
|
27
27
|
afterAdd() {
|
|
28
28
|
}
|
|
29
29
|
async load() {
|
|
@@ -70,8 +70,8 @@ class MobileClientPlugin extends import_server.Plugin {
|
|
|
70
70
|
async remove() {
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
var plugin_default =
|
|
73
|
+
var plugin_default = PluginMobileServer;
|
|
74
74
|
// Annotate the CommonJS export names for ESM import in node:
|
|
75
75
|
0 && (module.exports = {
|
|
76
|
-
|
|
76
|
+
PluginMobileServer
|
|
77
77
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-mobile-client",
|
|
3
|
-
"version": "0.21.0-alpha.
|
|
3
|
+
"version": "0.21.0-alpha.8",
|
|
4
4
|
"main": "./dist/server/index.js",
|
|
5
5
|
"homepage": "https://docs.nocobase.com/handbook/mobile-client",
|
|
6
6
|
"homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/mobile-client",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"@nocobase/test": "0.x",
|
|
34
34
|
"@nocobase/utils": "0.x"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "bed69485709bc8e268285b50debfc1ebfd7a30c7"
|
|
37
37
|
}
|