@nocobase/plugin-client 2.0.0-alpha.4 → 2.0.0-alpha.41

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.
@@ -1 +1 @@
1
- {"name":"cronstrue","title":"cRonstrue","version":"2.47.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-10-05T09:58:14.402Z"}
1
+ {"name":"cronstrue","title":"cRonstrue","version":"2.47.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-11-19T01:21:29.228Z"}
@@ -165,14 +165,19 @@ class PluginClientServer extends import_server.Plugin {
165
165
  setACL() {
166
166
  this.app.acl.registerSnippet({
167
167
  name: `ui.desktopRoutes`,
168
- actions: ["desktopRoutes:create", "desktopRoutes:update", "desktopRoutes:move", "desktopRoutes:destroy"]
168
+ actions: [
169
+ "desktopRoutes:create",
170
+ "desktopRoutes:update",
171
+ "desktopRoutes:move",
172
+ "desktopRoutes:destroy",
173
+ "desktopRoutes:updateOrCreate"
174
+ ]
169
175
  });
170
176
  this.app.acl.registerSnippet({
171
177
  name: `pm.desktopRoutes`,
172
178
  actions: ["desktopRoutes:list", "roles.desktopRoutes:*"]
173
179
  });
174
- this.app.acl.allow("desktopRoutes", "listAccessible", "loggedIn");
175
- this.app.acl.allow("desktopRoutes", "getAccessible", "loggedIn");
180
+ this.app.acl.allow("desktopRoutes", ["listAccessible", "getAccessible"], "loggedIn");
176
181
  }
177
182
  /**
178
183
  * used to implement: roles with permission (allowNewMenu is true) can directly access the newly created menu
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "WEB 客户端",
5
5
  "description": "Provides a client interface for the NocoBase server",
6
6
  "description.zh-CN": "为 NocoBase 服务端提供客户端界面",
7
- "version": "2.0.0-alpha.4",
7
+ "version": "2.0.0-alpha.41",
8
8
  "main": "./dist/server/index.js",
9
9
  "license": "AGPL-3.0",
10
10
  "devDependencies": {
@@ -21,5 +21,5 @@
21
21
  "@nocobase/test": "2.x",
22
22
  "@nocobase/utils": "2.x"
23
23
  },
24
- "gitHead": "54f3cab47e7efbdc73377014d05f5fc66a4affbb"
24
+ "gitHead": "889e81eef0280c2e45571bd0a4b2db6aa004f8c1"
25
25
  }
@@ -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
- module.exports = {
11
- everyText: "\u6BCF",
12
- emptyMonths: "\u6BCF\u6708",
13
- emptyMonthDays: "\u6BCF\u65E5(\u6708)",
14
- emptyMonthDaysShort: "\u6BCF\u65E5",
15
- emptyWeekDays: "\u6BCF\u5929(\u5468)",
16
- emptyWeekDaysShort: "\u6BCF\u5929(\u5468)",
17
- emptyHours: "\u6BCF\u5C0F\u65F6",
18
- emptyMinutes: "\u6BCF\u5206\u949F",
19
- emptyMinutesForHourPeriod: "\u6BCF",
20
- yearOption: "\u5E74",
21
- monthOption: "\u6708",
22
- weekOption: "\u5468",
23
- dayOption: "\u5929",
24
- hourOption: "\u5C0F\u65F6",
25
- minuteOption: "\u5206\u949F",
26
- rebootOption: "\u91CD\u542F",
27
- prefixPeriod: "\u6BCF",
28
- prefixMonths: "\u7684",
29
- prefixMonthDays: "\u7684",
30
- prefixWeekDays: "\u7684",
31
- prefixWeekDaysForMonthAndYearPeriod: "\u6216\u8005",
32
- prefixHours: "\u7684",
33
- prefixMinutes: ":",
34
- prefixMinutesForHourPeriod: "\u7684",
35
- suffixMinutesForHourPeriod: "\u5206\u949F",
36
- errorInvalidCron: "\u4E0D\u7B26\u5408 cron \u89C4\u5219\u7684\u8868\u8FBE\u5F0F",
37
- clearButtonText: "\u6E05\u7A7A",
38
- weekDays: ["\u5468\u65E5", "\u5468\u4E00", "\u5468\u4E8C", "\u5468\u4E09", "\u5468\u56DB", "\u5468\u4E94", "\u5468\u516D"],
39
- months: ["\u4E00\u6708", "\u4E8C\u6708", "\u4E09\u6708", "\u56DB\u6708", "\u4E94\u6708", "\u516D\u6708", "\u4E03\u6708", "\u516B\u6708", "\u4E5D\u6708", "\u5341\u6708", "\u5341\u4E00\u6708", "\u5341\u4E8C\u6708"],
40
- altWeekDays: ["\u5468\u65E5", "\u5468\u4E00", "\u5468\u4E8C", "\u5468\u4E09", "\u5468\u56DB", "\u5468\u4E94", "\u5468\u516D"],
41
- altMonths: ["\u4E00\u6708", "\u4E8C\u6708", "\u4E09\u6708", "\u56DB\u6708", "\u4E94\u6708", "\u516D\u6708", "\u4E03\u6708", "\u516B\u6708", "\u4E5D\u6708", "\u5341\u6708", "\u5341\u4E00\u6708", "\u5341\u4E8C\u6708"]
42
- };
@@ -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
- module.exports = {
11
- everyText: "\u6BCF",
12
- emptyMonths: "\u6BCF\u6708",
13
- emptyMonthDays: "\u6BCF\u65E5(\u6708)",
14
- emptyMonthDaysShort: "\u6BCF\u65E5",
15
- emptyWeekDays: "\u6BCF\u5929(\u9031)",
16
- emptyWeekDaysShort: "\u6BCF\u5929(\u9031)",
17
- emptyHours: "\u6BCF\u5C0F\u6642",
18
- emptyMinutes: "\u6BCF\u5206\u9418",
19
- emptyMinutesForHourPeriod: "\u6BCF",
20
- yearOption: "\u5E74",
21
- monthOption: "\u6708",
22
- weekOption: "\u9031",
23
- dayOption: "\u5929",
24
- hourOption: "\u5C0F\u6642",
25
- minuteOption: "\u5206\u9418",
26
- rebootOption: "\u91CD\u555F",
27
- prefixPeriod: "\u6BCF",
28
- prefixMonths: "\u7684",
29
- prefixMonthDays: "\u7684",
30
- prefixWeekDays: "\u7684",
31
- prefixWeekDaysForMonthAndYearPeriod: "\u6216\u8005",
32
- prefixHours: "\u7684",
33
- prefixMinutes: ":",
34
- prefixMinutesForHourPeriod: "\u7684",
35
- suffixMinutesForHourPeriod: "\u5206\u9418",
36
- errorInvalidCron: "\u4E0D\u7B26\u5408 cron \u898F\u5247\u7684\u8868\u793A\u5F0F",
37
- clearButtonText: "\u6E05\u7A7A",
38
- weekDays: ["\u9031\u65E5", "\u9031\u4E00", "\u9031\u4E8C", "\u9031\u4E09", "\u9031\u56DB", "\u9031\u4E94", "\u9031\u516D"],
39
- months: ["\u4E00\u6708", "\u4E8C\u6708", "\u4E09\u6708", "\u56DB\u6708", "\u4E94\u6708", "\u516D\u6708", "\u4E03\u6708", "\u516B\u6708", "\u4E5D\u6708", "\u5341\u6708", "\u5341\u4E00\u6708", "\u5341\u4E8C\u6708"],
40
- altWeekDays: ["\u9031\u65E5", "\u9031\u4E00", "\u9031\u4E8C", "\u9031\u4E09", "\u9031\u56DB", "\u9031\u4E94", "\u9031\u516D"],
41
- altMonths: ["\u4E00\u6708", "\u4E8C\u6708", "\u4E09\u6708", "\u56DB\u6708", "\u4E94\u6708", "\u516D\u6708", "\u4E03\u6708", "\u516B\u6708", "\u4E5D\u6708", "\u5341\u6708", "\u5341\u4E00\u6708", "\u5341\u4E8C\u6708"]
42
- };