@nocobase/plugin-client 1.7.17 → 1.7.19
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
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"react": "18.2.0",
|
|
12
12
|
"react-i18next": "11.18.6",
|
|
13
|
-
"@nocobase/client": "1.7.
|
|
13
|
+
"@nocobase/client": "1.7.19",
|
|
14
14
|
"antd": "5.24.2",
|
|
15
15
|
"@ant-design/icons": "5.6.1",
|
|
16
16
|
"@formily/react": "2.3.0",
|
|
17
|
-
"@nocobase/utils": "1.7.
|
|
17
|
+
"@nocobase/utils": "1.7.19",
|
|
18
18
|
"lodash": "4.17.21",
|
|
19
|
-
"@nocobase/database": "1.7.
|
|
20
|
-
"@nocobase/plugin-localization": "1.7.
|
|
21
|
-
"@nocobase/server": "1.7.
|
|
19
|
+
"@nocobase/database": "1.7.19",
|
|
20
|
+
"@nocobase/plugin-localization": "1.7.19",
|
|
21
|
+
"@nocobase/server": "1.7.19"
|
|
22
22
|
};
|
|
@@ -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-
|
|
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-07-03T07:48:32.882Z"}
|
package/dist/server/server.js
CHANGED
|
@@ -225,7 +225,7 @@ class PluginClientServer extends import_server.Plugin {
|
|
|
225
225
|
const tabIds = tabs.map((x) => x.get("id"));
|
|
226
226
|
const where = { desktopRouteId: tabIds, roleName };
|
|
227
227
|
if (action === "create") {
|
|
228
|
-
const exists = await repository.find({ where });
|
|
228
|
+
const exists = await repository.find({ where, transaction });
|
|
229
229
|
const modelsByRouteId = import_lodash.default.keyBy(exists, (x) => x.get("desktopRouteId"));
|
|
230
230
|
const createModels = tabs.map((x) => !modelsByRouteId[x.get("id")] && { desktopRouteId: x.get("id"), roleName }).filter(Boolean);
|
|
231
231
|
for (const values of createModels) {
|
|
@@ -280,6 +280,26 @@ class PluginClientServer extends import_server.Plugin {
|
|
|
280
280
|
}
|
|
281
281
|
await next();
|
|
282
282
|
});
|
|
283
|
+
this.app.resourceManager.registerActionHandler("roles.desktopRoutes:set", async (ctx, next) => {
|
|
284
|
+
let { values } = ctx.action.params;
|
|
285
|
+
if (values.length) {
|
|
286
|
+
const instances = await this.app.db.getRepository("desktopRoutes").find({
|
|
287
|
+
filter: {
|
|
288
|
+
$or: [
|
|
289
|
+
{ id: { $in: values } },
|
|
290
|
+
{ parentId: { $in: values } }
|
|
291
|
+
]
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
values = instances.map((instance) => instance.get("id"));
|
|
295
|
+
}
|
|
296
|
+
;
|
|
297
|
+
const { resourceName, sourceId } = ctx.action;
|
|
298
|
+
const repository = this.app.db.getRepository(resourceName, sourceId);
|
|
299
|
+
await repository["set"](values);
|
|
300
|
+
ctx.status = 200;
|
|
301
|
+
await next();
|
|
302
|
+
});
|
|
283
303
|
}
|
|
284
304
|
registerLocalizationSource() {
|
|
285
305
|
const localizationPlugin = this.app.pm.get("localization");
|
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": "1.7.
|
|
7
|
+
"version": "1.7.19",
|
|
8
8
|
"main": "./dist/server/index.js",
|
|
9
9
|
"license": "AGPL-3.0",
|
|
10
10
|
"devDependencies": {
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"@nocobase/test": "1.x",
|
|
22
22
|
"@nocobase/utils": "1.x"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "39992983a40047432e6582623b996ba23b51ef5a"
|
|
25
25
|
}
|