@nocobase/plugin-client 0.16.0-alpha.3 → 0.16.0-alpha.4
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/externalVersion.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
"@nocobase/client": "0.16.0-alpha.
|
|
3
|
-
"@nocobase/utils": "0.16.0-alpha.
|
|
4
|
-
"@nocobase/server": "0.16.0-alpha.
|
|
5
|
-
"@nocobase/database": "0.16.0-alpha.
|
|
2
|
+
"@nocobase/client": "0.16.0-alpha.4",
|
|
3
|
+
"@nocobase/utils": "0.16.0-alpha.4",
|
|
4
|
+
"@nocobase/server": "0.16.0-alpha.4",
|
|
5
|
+
"@nocobase/database": "0.16.0-alpha.4"
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"cronstrue","title":"cRonstrue","version":"2.27.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":"2023-11-
|
|
1
|
+
{"name":"cronstrue","title":"cRonstrue","version":"2.27.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":"2023-11-24T15:22:29.077Z"}
|
package/dist/server/server.js
CHANGED
|
@@ -81,9 +81,9 @@ class ClientPlugin extends import_server.Plugin {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
async load() {
|
|
84
|
-
this.app.
|
|
85
|
-
this.app.
|
|
86
|
-
this.app.
|
|
84
|
+
this.app.localeManager.setLocaleFn("antd", async (lang) => (0, import_antd.getAntdLocale)(lang));
|
|
85
|
+
this.app.localeManager.setLocaleFn("cronstrue", async (lang) => (0, import_cronstrue.getCronstrueLocale)(lang));
|
|
86
|
+
this.app.localeManager.setLocaleFn("cron", async (lang) => (0, import_cron.getCronLocale)(lang));
|
|
87
87
|
this.db.addMigrations({
|
|
88
88
|
namespace: "client",
|
|
89
89
|
directory: (0, import_path.resolve)(__dirname, "./migrations"),
|
|
@@ -131,7 +131,7 @@ class ClientPlugin extends import_server.Plugin {
|
|
|
131
131
|
},
|
|
132
132
|
async getLang(ctx, next) {
|
|
133
133
|
const lang = await getLang(ctx);
|
|
134
|
-
const resources = await ctx.app.
|
|
134
|
+
const resources = await ctx.app.localeManager.get(lang);
|
|
135
135
|
ctx.body = {
|
|
136
136
|
lang,
|
|
137
137
|
...resources
|
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.16.0-alpha.
|
|
7
|
+
"version": "0.16.0-alpha.4",
|
|
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": "
|
|
23
|
+
"gitHead": "98d65186a22281e59209d11a6756712a62667c07"
|
|
24
24
|
}
|