@nocobase/plugin-mobile-client 0.19.0-alpha.8 → 0.20.0-alpha.1

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.
@@ -179,4 +179,4 @@
179
179
  margin-top: 50px;
180
180
  `),children:r.jsx(di,$({className:o.css`
181
181
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
182
- `},e))}),ui=()=>r.jsx(pi,{children:r.jsx(xt,{})});class Te extends o.Plugin{constructor(){super(...arguments);Ct(this,"mobileRouter")}load(){return F(this,null,function*(){this.setMobileRouter(),this.addRoutes(),this.addSettings(),this.app.use(Mt),this.app.schemaInitializerManager.add(Ot)})}addSettings(){this.app.pluginSettingsManager.add(N,{title:`{{t("Mobile Client-side", { ns: "${N}" })}}`,icon:"MobileOutlined",Component:()=>r.jsx(v.Outlet,{})}),this.app.pluginSettingsManager.add(`${N}.interface`,{title:`{{t("Interface Configuration", { ns: "${N}" })}}`,Component:ui,sort:1}),this.app.pluginSettingsManager.add(`${N}.app`,{title:`{{t("App Configuration", { ns: "${N}" })}}`,Component:li,sort:2})}setMobileRouter(){const n=o.createRouterManager({type:"hash"});n.add("root",{path:"/",element:r.jsx(v.Navigate,{replace:!0,to:"/mobile"})}),n.add("mobile",{path:"/mobile",element:r.jsx(yt,{})}),n.add("mobile.page",{path:"/mobile/:name",element:r.jsx(o.RouteSchemaComponent,{})}),this.mobileRouter=n}getMobileRouterComponent(){return this.mobileRouter.getRouterComponent()}addRoutes(){this.app.router.add("mobile",{path:"/mobile",element:r.jsx(yt,{})}),this.app.router.add("mobile.page",{path:"/mobile/:name",Component:"RouteSchemaComponent"})}}m.MobileClientPlugin=Te,m.default=Te,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
182
+ `},e))}),ui=()=>r.jsx(pi,{children:r.jsx(xt,{})});class Te extends o.Plugin{constructor(){super(...arguments);Ct(this,"mobileRouter")}load(){return F(this,null,function*(){this.setMobileRouter(),this.addRoutes(),this.addSettings(),this.app.use(Mt),this.app.schemaInitializerManager.add(Ot)})}addSettings(){this.app.pluginSettingsManager.add(N,{title:`{{t("Mobile Client-side", { ns: "${N}" })}}`,icon:"MobileOutlined",Component:()=>r.jsx(v.Outlet,{})}),this.app.pluginSettingsManager.add(`${N}.interface`,{title:`{{t("Interface Configuration", { ns: "${N}" })}}`,Component:ui,sort:1}),this.app.pluginSettingsManager.add(`${N}.app`,{title:`{{t("App Configuration", { ns: "${N}" })}}`,Component:li,sort:2})}setMobileRouter(){const n=o.createRouterManager({type:"hash"},this.app);n.add("root",{path:"/",element:r.jsx(v.Navigate,{replace:!0,to:"/mobile"})}),n.add("mobile",{path:"/mobile",element:r.jsx(yt,{})}),n.add("mobile.page",{path:"/mobile/:name",element:r.jsx(o.RouteSchemaComponent,{})}),this.mobileRouter=n}getMobileRouterComponent(){return this.mobileRouter.getRouterComponent()}addRoutes(){this.app.router.add("mobile",{path:"/mobile",element:r.jsx(yt,{})}),this.app.router.add("mobile.page",{path:"/mobile/:name",Component:"RouteSchemaComponent"})}}m.MobileClientPlugin=Te,m.default=Te,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -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.19.0-alpha.8",
5
- "@nocobase/server": "0.19.0-alpha.8",
4
+ "@nocobase/client": "0.20.0-alpha.1",
5
+ "@nocobase/server": "0.20.0-alpha.1",
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.19.0-alpha.8",
9
+ "@nocobase/database": "0.20.0-alpha.1",
10
10
  "@formily/react": "2.3.0",
11
11
  "@formily/shared": "2.3.0",
12
12
  "lodash": "4.17.21",
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-mobile-client",
3
- "version": "0.19.0-alpha.8",
3
+ "version": "0.20.0-alpha.1",
4
4
  "main": "./dist/server/index.js",
5
5
  "homepage": "https://docs.nocobase.com/plugins/mobile-client",
6
6
  "homepage.zh-CN": "https://docs-cn.nocobase.com/plugins/mobile-client",
7
7
  "license": "AGPL-3.0",
8
8
  "displayName": "Mobile client",
9
9
  "displayName.zh-CN": "移动端",
10
- "description": "Provides the ability to configure mobile pages",
11
- "description.zh-CN": "提供移动端页面配置的能力",
10
+ "description": "Provides the ability to configure mobile pages.",
11
+ "description.zh-CN": "提供移动端页面配置的能力。",
12
12
  "devDependencies": {
13
13
  "@ant-design/icons": "5.x",
14
14
  "@formily/antd-v5": "1.x",
@@ -33,5 +33,5 @@
33
33
  "@nocobase/test": "0.x",
34
34
  "@nocobase/utils": "0.x"
35
35
  },
36
- "gitHead": "b8fbe613e320e40ebf2da1bf64907eab0197b589"
36
+ "gitHead": "516c0b1470d77ff499f533ae6b57e4c084450ff5"
37
37
  }