@nocobase/plugin-client 0.19.0-alpha.6 → 0.19.0-alpha.7

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,6 +1,6 @@
1
1
  module.exports = {
2
- "@nocobase/client": "0.19.0-alpha.6",
3
- "@nocobase/utils": "0.19.0-alpha.6",
4
- "@nocobase/server": "0.19.0-alpha.6",
5
- "@nocobase/database": "0.19.0-alpha.6"
2
+ "@nocobase/client": "0.19.0-alpha.7",
3
+ "@nocobase/utils": "0.19.0-alpha.7",
4
+ "@nocobase/server": "0.19.0-alpha.7",
5
+ "@nocobase/database": "0.19.0-alpha.7"
6
6
  };
@@ -200,6 +200,7 @@ module.exports = {
200
200
  "Before change": "Before change",
201
201
  "After change": "After change",
202
202
  "Delete record": "Delete record",
203
+ "Delete collection": "Delete collection",
203
204
  "Create collection": "Create collection",
204
205
  "Collection display name": "Collection display name",
205
206
  "Collection name": "Collection name",
@@ -171,6 +171,7 @@ module.exports = {
171
171
  "Before change": "\u5909\u66F4\u524D",
172
172
  "After change": "\u5909\u66F4\u5F8C",
173
173
  "Delete record": "\u30EC\u30B3\u30FC\u30C9\u524A\u9664",
174
+ "Delete collection": "\u30C7\u30FC\u30BF\u30C6\u30FC\u30D6\u30EB\u306E\u524A\u9664",
174
175
  "Create collection": "\u30B3\u30EC\u30AF\u30B7\u30E7\u30F3\u306E\u4F5C\u6210",
175
176
  "Collection display name": "\u30B3\u30EC\u30AF\u30B7\u30E7\u30F3\u540D",
176
177
  "Collection name": "\u30B3\u30EC\u30AF\u30B7\u30E7\u30F3\u8B58\u5225\u5B50",
@@ -210,6 +210,7 @@ module.exports = {
210
210
  "Before change": "\u53D8\u66F4\u524D",
211
211
  "After change": "\u53D8\u66F4\u540E",
212
212
  "Delete record": "\u5220\u9664\u6570\u636E",
213
+ "Delete collection": "\u5220\u9664\u6570\u636E\u8868",
213
214
  "Create collection": "\u521B\u5EFA\u6570\u636E\u8868",
214
215
  "Collection display name": "\u6570\u636E\u8868\u540D\u79F0",
215
216
  "Collection name": "\u6570\u636E\u8868\u6807\u8BC6",
@@ -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":"2024-02-07T12:18:24.241Z"}
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":"2024-02-20T10:52:14.522Z"}
@@ -35,18 +35,13 @@ async function getLang(ctx) {
35
35
  if (enabledLanguages.includes(currentUser == null ? void 0 : currentUser.appLang)) {
36
36
  lang = currentUser == null ? void 0 : currentUser.appLang;
37
37
  }
38
- if (ctx.request.query.locale) {
38
+ if (ctx.request.query.locale && enabledLanguages.includes(ctx.request.query.locale)) {
39
39
  lang = ctx.request.query.locale;
40
40
  }
41
41
  return lang;
42
42
  }
43
43
  class ClientPlugin extends import_server.Plugin {
44
44
  async beforeLoad() {
45
- this.app.on("afterInstall", async (app, options) => {
46
- const [opts] = (options == null ? void 0 : options.cliArgs) || [{}];
47
- if (opts == null ? void 0 : opts.importDemo) {
48
- }
49
- });
50
45
  }
51
46
  async install() {
52
47
  const uiSchemas = this.db.getRepository("uiSchemas");
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": "0.19.0-alpha.6",
7
+ "version": "0.19.0-alpha.7",
8
8
  "main": "./dist/server/index.js",
9
9
  "license": "AGPL-3.0",
10
10
  "devDependencies": {
@@ -20,5 +20,5 @@
20
20
  "@nocobase/test": "0.x",
21
21
  "@nocobase/utils": "0.x"
22
22
  },
23
- "gitHead": "2eb524db98c7f4136fe1a9a1b1259cd72cf6635f"
23
+ "gitHead": "cbbfd4de14b8f73417e613af6927d2fbbdbd2b41"
24
24
  }