@tachybase/module-web 0.23.48 → 1.0.6

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.
@@ -6,7 +6,7 @@ export declare class ModuleWeb extends Plugin {
6
6
  load(): Promise<void>;
7
7
  setMobileRouter(): void;
8
8
  getMobileRouterComponent(): ({ BaseLayout, }: {
9
- BaseLayout?: React.ComponentType<any>;
9
+ BaseLayout?: React.ComponentType<React.PropsWithChildren<any>>;
10
10
  children?: React.ReactNode;
11
11
  }) => import("react/jsx-runtime").JSX.Element;
12
12
  addRoutes(): void;
@@ -1,17 +1,17 @@
1
1
  module.exports = {
2
2
  "react": "18.3.1",
3
- "@tachybase/client": "0.23.48",
3
+ "@tachybase/client": "1.0.6",
4
4
  "react-router-dom": "6.28.1",
5
5
  "@ant-design/icons": "5.3.7",
6
6
  "antd": "5.22.5",
7
- "@tachybase/utils": "0.23.48",
8
- "@tachybase/actions": "0.23.48",
9
- "@tachybase/server": "0.23.48",
7
+ "@tachybase/utils": "1.0.6",
8
+ "@tachybase/actions": "1.0.6",
9
+ "@tachybase/server": "1.0.6",
10
10
  "react-i18next": "15.1.4",
11
- "@tachybase/schema": "0.23.48",
11
+ "@tachybase/schema": "1.0.6",
12
12
  "lodash": "4.17.21",
13
- "@tachybase/database": "0.23.48",
13
+ "@tachybase/database": "1.0.6",
14
14
  "react-dom": "18.3.1",
15
15
  "ahooks": "3.8.4",
16
- "@tachybase/components": "0.23.48"
16
+ "@tachybase/components": "1.0.6"
17
17
  };
@@ -768,6 +768,7 @@ module.exports = {
768
768
  "Table OID(Inheritance)": "Table OID(Inheritance)",
769
769
  "Table selected records": "Table selected records",
770
770
  "Tablet device": "Tablet device",
771
+ "TachyBase Team": "TachyBase Team",
771
772
  Tag: "Tag",
772
773
  "Tag color field": "Tag color field",
773
774
  Target: "Target",
@@ -67,6 +67,7 @@ module.exports = {
67
67
  "After successful submission": "\u63D0\u4EA4\u6210\u529F\u540E",
68
68
  "After successful update": "\u66F4\u65B0\u6210\u529F\u540E",
69
69
  Agenda: "\u5217\u8868",
70
+ Align: "\u5BF9\u9F50\u65B9\u5F0F",
70
71
  All: "\u6240\u6709",
71
72
  "All collections": "\u5168\u90E8\u6570\u636E\u8868",
72
73
  "All collections use general action permissions by default; permission configured individually will override the default one.": "\u6240\u6709\u6570\u636E\u8868\u90FD\u9ED8\u8BA4\u4F7F\u7528\u901A\u7528\u6570\u636E\u64CD\u4F5C\u6743\u9650\uFF1B\u540C\u65F6\uFF0C\u53EF\u4EE5\u9488\u5BF9\u6BCF\u4E2A\u6570\u636E\u8868\u5355\u72EC\u914D\u7F6E\u6743\u9650\u3002",
@@ -154,6 +155,7 @@ module.exports = {
154
155
  Cascader: "\u7EA7\u8054\u9009\u62E9",
155
156
  Categories: "\u6570\u636E\u8868\u7C7B\u522B",
156
157
  "Category name": "\u5206\u7C7B\u540D\u79F0",
158
+ Center: "\u5C45\u4E2D",
157
159
  "Chang on Parent": "\u9009\u62E9\u7236\u7EA7",
158
160
  "Change password": "\u4FEE\u6539\u5BC6\u7801",
159
161
  "Changed to": "\u4FEE\u6539\u4E3A",
@@ -173,6 +175,7 @@ module.exports = {
173
175
  "Clear cache": "\u6E05\u9664\u7F13\u5B58",
174
176
  "Click on the right to select variables \u2192": "\u70B9\u51FB\u53F3\u4FA7\u9009\u62E9\u53D8\u91CF \u2192",
175
177
  "Click or drag file to this area to upload": "\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20",
178
+ "Click to select": "\u70B9\u9009\u6A21\u5F0F",
176
179
  Close: "\u5173\u95ED",
177
180
  Collapse: "\u6298\u53E0\u9762\u677F",
178
181
  "Collapse all": "\u5168\u90E8\u6536\u8D77",
@@ -212,6 +215,7 @@ module.exports = {
212
215
  Constant: "\u5E38\u91CF",
213
216
  "Constant value": "\u9759\u6001\u503C",
214
217
  "Convert reference to duplicate": "\u6A21\u677F\u5F15\u7528\u8F6C\u4E3A\u590D\u5236",
218
+ "Converted to": "\u8F6C\u6362\u6210",
215
219
  "Copy into the form and continue to fill in": "\u590D\u5236\u5230\u8868\u5355\u5E76\u7EE7\u7EED\u586B\u5199",
216
220
  Create: "\u4EC5\u65B0\u589E",
217
221
  "Create an account": "\u6CE8\u518C\u8D26\u53F7",
@@ -391,6 +395,7 @@ module.exports = {
391
395
  "Enable link": "\u542F\u7528\u94FE\u63A5",
392
396
  "Enable page header": "\u542F\u7528\u9875\u7709",
393
397
  "Enable page tabs": "\u542F\u7528\u9875\u9762\u9009\u9879\u5361",
398
+ "Enable quick create": "\u542F\u7528\u5FEB\u901F\u521B\u5EFA",
394
399
  Enabled: "\u542F\u7528",
395
400
  "Enabled languages": "\u542F\u7528\u7684\u8BED\u8A00",
396
401
  "End date field": "\u7ED3\u675F\u65E5\u671F\u5B57\u6BB5",
@@ -413,7 +418,7 @@ module.exports = {
413
418
  "Field collection": "\u9009\u62E9\u6570\u636E",
414
419
  "Field component": "\u5B57\u6BB5\u7EC4\u4EF6",
415
420
  "Field display name": "\u5B57\u6BB5\u540D\u79F0",
416
- "Field interface": "\u5B57\u6BB5\u7C7B\u578B",
421
+ "Field interface": "UI\u7C7B\u578B",
417
422
  "Field mode": "\u5B57\u6BB5\u7EC4\u4EF6",
418
423
  "Field name": "\u5B57\u6BB5\u6807\u8BC6",
419
424
  "Field permission": "\u5B57\u6BB5\u6743\u9650",
@@ -482,6 +487,8 @@ module.exports = {
482
487
  ImageSearch: "\u56FE\u7247\u641C\u7D22",
483
488
  Import: "\u5BFC\u5165",
484
489
  "Import collection": "\u5BFC\u5165\u6570\u636E\u8868",
490
+ "Import json collection": "\u5BFC\u5165json\u6570\u636E\u8868",
491
+ "Import xlsx collection": "\u5BFC\u5165xlsx\u6570\u636E\u8868",
485
492
  "Importable fields": "\u53EF\u5BFC\u5165\u5B57\u6BB5",
486
493
  "In configuration": "\u914D\u7F6E\u4E2D",
487
494
  Index: "\u7D22\u5F15",
@@ -527,6 +534,7 @@ module.exports = {
527
534
  "Last week": "\u4E0A\u5468",
528
535
  "Last year": "\u53BB\u5E74",
529
536
  "Leave it blank, unless you need a custom intermediate table": "\u9ED8\u8BA4\u7559\u7A7A\uFF0C\u9664\u975E\u4F60\u9700\u8981\u4E00\u4E2A\u81EA\u5B9A\u4E49\u7684\u4E2D\u95F4\u8868",
537
+ Left: "\u5DE6\u5BF9\u9F50",
530
538
  Length: "\u957F\u5EA6",
531
539
  License: "\u8BB8\u53EF\u8BC1",
532
540
  Lime: "\u9752\u67E0",
@@ -764,6 +772,7 @@ module.exports = {
764
772
  "Retry after {{count}} seconds": "{{count}} \u79D2\u540E\u91CD\u8BD5",
765
773
  "Return to the main application": "\u8FD4\u56DE\u4E3B\u5E94\u7528",
766
774
  "Rich Text": "\u5BCC\u6587\u672C",
775
+ Right: "\u53F3\u5BF9\u9F50",
767
776
  "Role UID": "\u89D2\u8272\u6807\u8BC6",
768
777
  "Role display name": "\u89D2\u8272\u540D\u79F0",
769
778
  "Role name": "\u89D2\u8272\u540D\u79F0",
@@ -787,7 +796,7 @@ module.exports = {
787
796
  "Search plugin": "\u641C\u7D22\u63D2\u4EF6",
788
797
  Second: "\u79D2",
789
798
  "Secondary confirmation": "\u4E8C\u6B21\u786E\u8BA4",
790
- Security: "\u8BA4\u8BC1\u4E0E\u5B89\u5168",
799
+ Security: "\u5B89\u5168",
791
800
  Select: "\u9009\u62E9",
792
801
  "Select a variable": "\u9009\u62E9\u53D8\u91CF",
793
802
  "Select all": "\u5168\u9009",
@@ -807,6 +816,8 @@ module.exports = {
807
816
  "Selector mode": "\u9009\u62E9\u5668\u6A21\u5F0F",
808
817
  "Send code": "\u53D1\u9001\u9A8C\u8BC1\u7801",
809
818
  Separator: "\u5206\u9694\u7B26",
819
+ "Set Quick Add Parent Tabs": "\u8BBE\u7F6E\u5FEB\u901F\u6DFB\u52A0\u7236\u7EA7\u9009\u9879",
820
+ "Set Quick Add Tabs": "\u8BBE\u7F6E\u5FEB\u901F\u6DFB\u52A0\u9009\u9879",
810
821
  "Set data loading mode": "\u8BBE\u7F6E\u6570\u636E\u52A0\u8F7D\u65B9\u5F0F",
811
822
  "Set default sorting rules": "\u8BBE\u7F6E\u6392\u5E8F\u89C4\u5219",
812
823
  "Set default value": "\u8BBE\u7F6E\u9ED8\u8BA4\u503C",
@@ -890,6 +901,7 @@ module.exports = {
890
901
  "Table OID(Inheritance)": "\u6570\u636E\u8868 OID(\u7EE7\u627F)",
891
902
  "Table selected records": "\u8868\u683C\u4E2D\u9009\u4E2D\u7684\u8BB0\u5F55",
892
903
  "Tablet device": "\u5E73\u677F\u8BBE\u5907",
904
+ "TachyBase Team": "\u4E0A\u6D77\u9053\u6709\u4E91\u7F51\u7EDC\u79D1\u6280\u6709\u9650\u516C\u53F8 \u7248\u6743\u6240\u6709\uFF5C\u6CAAICP\u59072023024678\u53F7",
893
905
  Tag: "\u6807\u7B7E",
894
906
  "Tag color field": "\u6807\u7B7E\u989C\u8272\u5B57\u6BB5",
895
907
  Target: "\u76EE\u6807",
@@ -1 +1 @@
1
- {"name":"cronstrue","title":"cRonstrue","version":"2.52.0","description":"Convert cron expressions into human readable descriptions","author":"Brady Holt","license":"MIT","bugs":{"url":"https://github.com/bradymholt/cronstrue/issues"},"homepage":"https://github.com/bradymholt/cronstrue","keywords":["cron","cronjob","crontab","schedule","parser","cron expression","cron description","pretty cron","cron for humans","cron translated","cron english","cron schedule","cron english","cron schedule"],"main":"dist/cronstrue.js","bin":{"cronstrue":"bin/cli.js"},"typings":"dist/cronstrue.d.ts","files":["dist/","locales/","i18n.js","i18n.d.ts"],"repository":{"type":"git","url":"git+https://github.com/bradymholt/cronstrue.git"},"publishConfig":{"access":"public"},"prettier":{"printWidth":120},"devDependencies":{"@types/chai":"^4.2.11","@types/mocha":"^8.0.0","chai":"^4.2.0","handlebars":"^4.7.6","marked":"^4.0.10","mocha":"^10.1.0","pixl-xml":"^1.0.13","prettier":"^2.1.1","terser-webpack-plugin":"^5.3.1","ts-loader":"^9.2.6","ts-node":"^10.5.0","typescript":"^4.6.2","webpack":"^5.69.1","webpack-cli":"^4.9.2","xml2js":"^0.5.0"},"scripts":{"start":"npm run build","build":"npx tsc -p ./src --emitDeclarationOnly","test":"npx mocha --reporter spec --require ts-node/register \"./test/**/*.ts\"","prepublishOnly":"rm -rf ./dist && ./node_modules/webpack-cli/bin/cli.js && git add -A"},"dependencies":{},"_lastModified":"2025-02-21T11:01:54.044Z"}
1
+ {"name":"cronstrue","title":"cRonstrue","version":"2.52.0","description":"Convert cron expressions into human readable descriptions","author":"Brady Holt","license":"MIT","bugs":{"url":"https://github.com/bradymholt/cronstrue/issues"},"homepage":"https://github.com/bradymholt/cronstrue","keywords":["cron","cronjob","crontab","schedule","parser","cron expression","cron description","pretty cron","cron for humans","cron translated","cron english","cron schedule","cron english","cron schedule"],"main":"dist/cronstrue.js","bin":{"cronstrue":"bin/cli.js"},"typings":"dist/cronstrue.d.ts","files":["dist/","locales/","i18n.js","i18n.d.ts"],"repository":{"type":"git","url":"git+https://github.com/bradymholt/cronstrue.git"},"publishConfig":{"access":"public"},"prettier":{"printWidth":120},"devDependencies":{"@types/chai":"^4.2.11","@types/mocha":"^8.0.0","chai":"^4.2.0","handlebars":"^4.7.6","marked":"^4.0.10","mocha":"^10.1.0","pixl-xml":"^1.0.13","prettier":"^2.1.1","terser-webpack-plugin":"^5.3.1","ts-loader":"^9.2.6","ts-node":"^10.5.0","typescript":"^4.6.2","webpack":"^5.69.1","webpack-cli":"^4.9.2","xml2js":"^0.5.0"},"scripts":{"start":"npm run build","build":"npx tsc -p ./src --emitDeclarationOnly","test":"npx mocha --reporter spec --require ts-node/register \"./test/**/*.ts\"","prepublishOnly":"rm -rf ./dist && ./node_modules/webpack-cli/bin/cli.js && git add -A"},"dependencies":{},"_lastModified":"2025-04-02T02:57:04.153Z"}
@@ -90,10 +90,9 @@ class ModuleWeb extends import_server.Plugin {
90
90
  this.app.localeManager.setLocaleFn("cron", async (lang) => (0, import_cron.getCronLocale)(lang));
91
91
  this.app.acl.allow("app", "getLang");
92
92
  this.app.acl.allow("app", "getInfo");
93
- this.app.acl.allow("plugins", "*", "public");
94
93
  this.app.acl.registerSnippet({
95
94
  name: "app",
96
- actions: ["app:restart", "app:clearCache"]
95
+ actions: ["app:restart", "app:refresh", "app:clearCache"]
97
96
  });
98
97
  const dialect = this.app.db.sequelize.getDialect();
99
98
  this.app.resourcer.define({
@@ -146,6 +145,10 @@ class ModuleWeb extends import_server.Plugin {
146
145
  async restart(ctx, next) {
147
146
  ctx.app.runAsCLI(["restart"], { from: "user" });
148
147
  await next();
148
+ },
149
+ async refresh(ctx, next) {
150
+ ctx.app.runCommand("refresh");
151
+ await next();
149
152
  }
150
153
  }
151
154
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tachybase/module-web",
3
3
  "displayName": "WEB client",
4
- "version": "0.23.48",
4
+ "version": "1.0.6",
5
5
  "description": "Provides a client interface for the TachyBase server",
6
6
  "license": "Apache-2.0",
7
7
  "main": "./dist/server/index.js",
@@ -22,16 +22,16 @@
22
22
  "react-dom": "~18.3.1",
23
23
  "react-i18next": "~15.1.4",
24
24
  "react-router-dom": "6.28.1",
25
- "@tachybase/components": "0.23.48",
26
- "@tachybase/schema": "0.23.48"
25
+ "@tachybase/schema": "1.0.6",
26
+ "@tachybase/components": "1.0.6"
27
27
  },
28
28
  "peerDependencies": {
29
- "@tachybase/client": "0.23.48",
30
- "@tachybase/server": "0.23.48",
31
- "@tachybase/test": "0.23.48",
32
- "@tachybase/utils": "0.23.48",
33
- "@tachybase/database": "0.23.48",
34
- "@tachybase/actions": "0.23.48"
29
+ "@tachybase/actions": "1.0.6",
30
+ "@tachybase/client": "1.0.6",
31
+ "@tachybase/test": "1.0.6",
32
+ "@tachybase/server": "1.0.6",
33
+ "@tachybase/database": "1.0.6",
34
+ "@tachybase/utils": "1.0.6"
35
35
  },
36
36
  "description.zh-CN": "为 TachyBase 服务端提供客户端界面",
37
37
  "displayName.zh-CN": "WEB 客户端",