@nocobase/plugin-client 1.7.0-beta.7 → 1.7.0-beta.9
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/client/index.js +1 -1
- package/dist/externalVersion.js +6 -6
- package/dist/locale/antd/ar_EG.js +1 -1
- package/dist/locale/antd/az_AZ.js +1 -1
- package/dist/locale/antd/bg_BG.js +1 -1
- package/dist/locale/antd/bn_BD.js +1 -1
- package/dist/locale/antd/by_BY.js +1 -1
- package/dist/locale/antd/ca_ES.js +1 -1
- package/dist/locale/antd/cs_CZ.js +1 -1
- package/dist/locale/antd/da_DK.js +1 -1
- package/dist/locale/antd/de_DE.js +1 -1
- package/dist/locale/antd/el_GR.js +1 -1
- package/dist/locale/antd/en_GB.js +1 -1
- package/dist/locale/antd/en_US.js +1 -1
- package/dist/locale/antd/es_ES.js +1 -1
- package/dist/locale/antd/et_EE.js +1 -1
- package/dist/locale/antd/eu_ES.js +1 -1
- package/dist/locale/antd/fa_IR.js +1 -1
- package/dist/locale/antd/fi_FI.js +1 -1
- package/dist/locale/antd/fr_BE.js +1 -1
- package/dist/locale/antd/fr_CA.js +1 -1
- package/dist/locale/antd/fr_FR.js +1 -1
- package/dist/locale/antd/ga_IE.js +1 -1
- package/dist/locale/antd/gl_ES.js +1 -1
- package/dist/locale/antd/he_IL.js +1 -1
- package/dist/locale/antd/hi_IN.js +1 -1
- package/dist/locale/antd/hr_HR.js +1 -1
- package/dist/locale/antd/hu_HU.js +1 -1
- package/dist/locale/antd/hy_AM.js +1 -1
- package/dist/locale/antd/id_ID.js +1 -1
- package/dist/locale/antd/is_IS.js +1 -1
- package/dist/locale/antd/it_IT.js +1 -1
- package/dist/locale/antd/ja_JP.js +1 -1
- package/dist/locale/antd/ka_GE.js +1 -1
- package/dist/locale/antd/kk_KZ.js +1 -1
- package/dist/locale/antd/km_KH.js +1 -1
- package/dist/locale/antd/kmr_IQ.js +1 -1
- package/dist/locale/antd/kn_IN.js +1 -1
- package/dist/locale/antd/ko_KR.js +1 -1
- package/dist/locale/antd/ku_IQ.js +1 -1
- package/dist/locale/antd/lt_LT.js +1 -1
- package/dist/locale/antd/lv_LV.js +1 -1
- package/dist/locale/antd/mk_MK.js +1 -1
- package/dist/locale/antd/ml_IN.js +1 -1
- package/dist/locale/antd/mn_MN.js +1 -1
- package/dist/locale/antd/ms_MY.js +1 -1
- package/dist/locale/antd/my_MM.js +1 -1
- package/dist/locale/antd/nb_NO.js +1 -1
- package/dist/locale/antd/ne_NP.js +1 -1
- package/dist/locale/antd/nl_BE.js +1 -1
- package/dist/locale/antd/nl_NL.js +1 -1
- package/dist/locale/antd/pl_PL.js +1 -1
- package/dist/locale/antd/pt_BR.js +1 -1
- package/dist/locale/antd/pt_PT.js +1 -1
- package/dist/locale/antd/ro_RO.js +1 -1
- package/dist/locale/antd/ru_RU.js +1 -1
- package/dist/locale/antd/si_LK.js +1 -1
- package/dist/locale/antd/sk_SK.js +1 -1
- package/dist/locale/antd/sl_SI.js +1 -1
- package/dist/locale/antd/sr_RS.js +1 -1
- package/dist/locale/antd/sv_SE.js +1 -1
- package/dist/locale/antd/ta_IN.js +1 -1
- package/dist/locale/antd/th_TH.js +1 -1
- package/dist/locale/antd/tk_TK.js +1 -1
- package/dist/locale/antd/tr_TR.js +1 -1
- package/dist/locale/antd/uk_UA.js +1 -1
- package/dist/locale/antd/ur_PK.js +1 -1
- package/dist/locale/antd/uz_UZ.js +10 -0
- package/dist/locale/antd/vi_VN.js +1 -1
- package/dist/locale/antd/zh_CN.js +1 -1
- package/dist/locale/antd/zh_HK.js +1 -1
- package/dist/locale/antd/zh_TW.js +1 -1
- package/dist/locale/en-US.js +5 -1
- package/dist/locale/es-ES.js +5 -1
- package/dist/locale/fr-FR.js +5 -1
- package/dist/locale/it-IT.js +269 -46
- package/dist/locale/ja-JP.js +5 -1
- package/dist/locale/ko-KR.js +5 -1
- package/dist/locale/pt-BR.js +5 -1
- package/dist/locale/ru-RU.js +5 -1
- package/dist/locale/tr-TR.js +5 -1
- package/dist/locale/uk-UA.js +5 -1
- package/dist/locale/zh-CN.js +13 -2
- package/dist/locale/zh-TW.js +5 -1
- package/dist/node_modules/cronstrue/package.json +1 -1
- package/dist/server/server.js +4 -14
- package/package.json +2 -2
package/dist/locale/uk-UA.js
CHANGED
|
@@ -168,6 +168,7 @@ module.exports = {
|
|
|
168
168
|
"Chart type": "\u0422\u0438\u043F \u0434\u0456\u0430\u0433\u0440\u0430\u043C\u0438",
|
|
169
169
|
"Chart config": "\u041D\u0430\u043B\u0430\u0448\u0442\u0443\u0432\u0430\u043D\u043D\u044F \u0434\u0456\u0430\u0433\u0440\u0430\u043C\u0438",
|
|
170
170
|
Templates: "\u0428\u0430\u0431\u043B\u043E\u043D\u0438",
|
|
171
|
+
Template: "\u0428\u0430\u0431\u043B\u043E\u043D",
|
|
171
172
|
"Select template": "\u0412\u0438\u0431\u0440\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D",
|
|
172
173
|
"Action logs": "\u0416\u0443\u0440\u043D\u0430\u043B \u0434\u0456\u0439",
|
|
173
174
|
"Create template": "\u0421\u0442\u0432\u043E\u0440\u0438\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D",
|
|
@@ -830,5 +831,8 @@ module.exports = {
|
|
|
830
831
|
"If selected, the page will display Tab pages.": "\u042F\u043A\u0449\u043E \u0432\u0438\u0431\u0440\u0430\u043D\u043E, \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430 \u0432\u0456\u0434\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u044C \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0438 \u0437 \u0432\u043A\u043B\u0430\u0434\u043A\u0430\u043C\u0438.",
|
|
831
832
|
"If selected, the route will be displayed in the menu.": "\u042F\u043A\u0449\u043E \u0432\u0438\u0431\u0440\u0430\u043D\u043E, \u043C\u0430\u0440\u0448\u0440\u0443\u0442 \u0431\u0443\u0434\u0435 \u0432\u0456\u0434\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0439 \u0432 \u043C\u0435\u043D\u044E.",
|
|
832
833
|
"Are you sure you want to hide this tab?": "\u0412\u0438 \u0432\u043F\u0435\u0432\u043D\u0435\u043D\u0456, \u0449\u043E \u0445\u043E\u0447\u0435\u0442\u0435 \u043F\u0440\u0438\u0445\u043E\u0432\u0430\u0442\u0438 \u0446\u044E \u0432\u043A\u043B\u0430\u0434\u043A\u0443?",
|
|
833
|
-
"After hiding, this tab will no longer appear in the tab bar. To show it again, you need to go to the route management page to set it.": "\u041F\u0456\u0441\u043B\u044F \u043F\u0440\u0438\u0445\u043E\u0432\u0443\u0432\u0430\u043D\u043D\u044F \u0446\u0456\u0454\u0457 \u0432\u043A\u043B\u0430\u0434\u043A\u0438 \u0432\u043E\u043D\u0430 \u0431\u0456\u043B\u044C\u0448\u0435 \u043D\u0435 \u0437'\u044F\u0432\u0438\u0442\u044C\u0441\u044F \u0432 \u043F\u0430\u043D\u0435\u043B\u0456 \u0432\u043A\u043B\u0430\u0434\u043E\u043A. \u0429\u043E\u0431 \u0437\u043D\u043E\u0432\u0443 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0438 \u0457\u0457, \u0432\u0430\u043C \u043F\u043E\u0442\u0440\u0456\u0431\u043D\u043E \u043F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0443 \u043A\u0435\u0440\u0443\u0432\u0430\u043D\u043D\u044F \u043C\u0430\u0440\u0448\u0440\u0443\u0442\u0430\u043C\u0438, \u0449\u043E\u0431 \u043D\u0430\u043B\u0430\u0448\u0442\u0443\u0432\u0430\u0442\u0438 \u0457\u0457."
|
|
834
|
+
"After hiding, this tab will no longer appear in the tab bar. To show it again, you need to go to the route management page to set it.": "\u041F\u0456\u0441\u043B\u044F \u043F\u0440\u0438\u0445\u043E\u0432\u0443\u0432\u0430\u043D\u043D\u044F \u0446\u0456\u0454\u0457 \u0432\u043A\u043B\u0430\u0434\u043A\u0438 \u0432\u043E\u043D\u0430 \u0431\u0456\u043B\u044C\u0448\u0435 \u043D\u0435 \u0437'\u044F\u0432\u0438\u0442\u044C\u0441\u044F \u0432 \u043F\u0430\u043D\u0435\u043B\u0456 \u0432\u043A\u043B\u0430\u0434\u043E\u043A. \u0429\u043E\u0431 \u0437\u043D\u043E\u0432\u0443 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0438 \u0457\u0457, \u0432\u0430\u043C \u043F\u043E\u0442\u0440\u0456\u0431\u043D\u043E \u043F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0443 \u043A\u0435\u0440\u0443\u0432\u0430\u043D\u043D\u044F \u043C\u0430\u0440\u0448\u0440\u0443\u0442\u0430\u043C\u0438, \u0449\u043E\u0431 \u043D\u0430\u043B\u0430\u0448\u0442\u0443\u0432\u0430\u0442\u0438 \u0457\u0457.",
|
|
835
|
+
Deprecated: "\u0417\u0430\u0441\u0442\u0430\u0440\u0456\u043B\u043E",
|
|
836
|
+
"The following old template features have been deprecated and will be removed in next version.": "\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0456 \u0441\u0442\u0430\u0440\u0456 \u0444\u0443\u043D\u043A\u0446\u0456\u0457 \u0448\u0430\u0431\u043B\u043E\u043D\u0456\u0432 \u0431\u0443\u043B\u0438 \u0437\u0430\u0441\u0442\u0430\u0440\u0456\u043B\u0456 \u0456 \u0431\u0443\u0434\u0443\u0442\u044C \u0432\u0438\u0434\u0430\u043B\u0435\u043D\u0456 \u0432 \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0456\u0439 \u0432\u0435\u0440\u0441\u0456\u0457.",
|
|
837
|
+
"Full permissions": "\u041F\u043E\u0432\u043D\u0456 \u043F\u0440\u0430\u0432\u0430"
|
|
834
838
|
};
|
package/dist/locale/zh-CN.js
CHANGED
|
@@ -192,6 +192,7 @@ module.exports = {
|
|
|
192
192
|
"Chart type": "\u56FE\u8868\u7C7B\u578B",
|
|
193
193
|
"Chart config": "\u56FE\u8868\u914D\u7F6E",
|
|
194
194
|
Templates: "\u6A21\u677F",
|
|
195
|
+
Template: "\u6A21\u677F",
|
|
195
196
|
"Select template": "\u9009\u62E9\u6A21\u677F",
|
|
196
197
|
"Action logs": "\u64CD\u4F5C\u65E5\u5FD7",
|
|
197
198
|
"Create template": "\u521B\u5EFA\u6A21\u677F",
|
|
@@ -846,6 +847,7 @@ module.exports = {
|
|
|
846
847
|
"The will interrupt service, it may take a few seconds to restart. Are you sure to continue?": "\u91CD\u542F\u5C06\u4F1A\u4E2D\u65AD\u5F53\u524D\u670D\u52A1\uFF0C\u8FD9\u4E2A\u8FC7\u7A0B\u53EF\u80FD\u9700\u8981\u4E00\u70B9\u65F6\u95F4\uFF0C\u786E\u5B9A\u8981\u7EE7\u7EED\u5417\uFF1F",
|
|
847
848
|
Restart: "\u91CD\u542F",
|
|
848
849
|
"Clear cache": "\u6E05\u9664\u7F13\u5B58",
|
|
850
|
+
"Are you sure you want to clear cache ?": "\u4F60\u786E\u5B9A\u4F60\u60F3\u6E05\u9664\u7F13\u5B58\u5417",
|
|
849
851
|
Duplicate: "\u590D\u5236",
|
|
850
852
|
Duplicating: "\u590D\u5236\u4E2D",
|
|
851
853
|
"Duplicate mode": "\u590D\u5236\u65B9\u5F0F",
|
|
@@ -1090,7 +1092,16 @@ module.exports = {
|
|
|
1090
1092
|
"If selected, the route will be displayed in the menu.": "\u5982\u679C\u9009\u4E2D\uFF0C\u8BE5\u8DEF\u7531\u5C06\u663E\u793A\u5728\u83DC\u5355\u4E2D\u3002",
|
|
1091
1093
|
"Are you sure you want to hide this tab?": "\u4F60\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6807\u7B7E\u9875\u5417\uFF1F",
|
|
1092
1094
|
"After hiding, this tab will no longer appear in the tab bar. To show it again, you need to go to the route management page to set it.": "\u9690\u85CF\u540E\uFF0C\u8BE5\u6807\u7B7E\u5C06\u4E0D\u518D\u663E\u793A\u5728\u6807\u7B7E\u680F\u4E2D\u3002\u8981\u60F3\u518D\u6B21\u663E\u793A\u5B83\uFF0C\u4F60\u9700\u8981\u5230\u8DEF\u7531\u7BA1\u7406\u9875\u9762\u8FDB\u884C\u8BBE\u7F6E\u3002",
|
|
1093
|
-
|
|
1095
|
+
Deprecated: "\u5DF2\u5F03\u7528",
|
|
1096
|
+
"The following old template features have been deprecated and will be removed in next version.": "\u4EE5\u4E0B\u65E7\u7684\u6A21\u677F\u529F\u80FD\u5DF2\u5F03\u7528\uFF0C\u5C06\u5728\u4E0B\u4E2A\u7248\u672C\u79FB\u9664\u3002",
|
|
1097
|
+
"Full permissions": "\u5168\u90E8\u6743\u9650",
|
|
1094
1098
|
"Enable index column": "\u542F\u7528\u5E8F\u53F7\u5217",
|
|
1095
|
-
"
|
|
1099
|
+
"Date scope": "\u65E5\u671F\u8303\u56F4",
|
|
1100
|
+
"Icon only": "\u4EC5\u663E\u793A\u56FE\u6807",
|
|
1101
|
+
"Valid range: 100-900": "\u6709\u6548\u8303\u56F4\uFF1A100-900",
|
|
1102
|
+
"Valid range: 10-40": "\u6709\u6548\u8303\u56F4\uFF1A10-40",
|
|
1103
|
+
"Font Size\uFF08px\uFF09": "\u5B57\u4F53\u5927\u5C0F\uFF08\u50CF\u7D20\uFF09",
|
|
1104
|
+
"Font Weight": "\u5B57\u4F53\u7C97\u7EC6",
|
|
1105
|
+
"Font Style": "\u5B57\u4F53\u6837\u5F0F",
|
|
1106
|
+
Italic: "\u659C\u4F53"
|
|
1096
1107
|
};
|
package/dist/locale/zh-TW.js
CHANGED
|
@@ -192,6 +192,7 @@ module.exports = {
|
|
|
192
192
|
"Chart type": "\u5716\u8868\u578B\u5225",
|
|
193
193
|
"Chart config": "\u5716\u8868\u8A2D\u5B9A",
|
|
194
194
|
Templates: "\u6A21\u677F",
|
|
195
|
+
Template: "\u6A21\u677F",
|
|
195
196
|
"Select template": "\u9078\u64C7\u6A21\u677F",
|
|
196
197
|
"Action logs": "\u52D5\u4F5C\u65E5\u8A8C",
|
|
197
198
|
"Create template": "\u5EFA\u7ACB\u6A21\u677F",
|
|
@@ -921,5 +922,8 @@ module.exports = {
|
|
|
921
922
|
"If selected, the page will display Tab pages.": "\u5982\u679C\u9078\u4E2D\uFF0C\u8A72\u9801\u9762\u5C07\u986F\u793A\u6A19\u7C64\u9801\u3002",
|
|
922
923
|
"If selected, the route will be displayed in the menu.": "\u5982\u679C\u9078\u4E2D\uFF0C\u8A72\u8DEF\u7531\u5C07\u986F\u793A\u5728\u83DC\u55AE\u4E2D\u3002",
|
|
923
924
|
"Are you sure you want to hide this tab?": "\u4F60\u78BA\u5B9A\u8981\u96B1\u85CF\u9019\u500B\u6A19\u7C64\u55CE\uFF1F",
|
|
924
|
-
"After hiding, this tab will no longer appear in the tab bar. To show it again, you need to go to the route management page to set it.": "\u96B1\u85CF\u5F8C\uFF0C\u9019\u500B\u6A19\u7C64\u5C07\u4E0D\u518D\u51FA\u73FE\u5728\u6A19\u7C64\u6B04\u4E2D\u3002\u8981\u518D\u6B21\u986F\u793A\u5B83\uFF0C\u4F60\u9700\u8981\u5230\u8DEF\u7531\u7BA1\u7406\u9801\u9762\u9032\u884C\u8A2D\u7F6E\u3002"
|
|
925
|
+
"After hiding, this tab will no longer appear in the tab bar. To show it again, you need to go to the route management page to set it.": "\u96B1\u85CF\u5F8C\uFF0C\u9019\u500B\u6A19\u7C64\u5C07\u4E0D\u518D\u51FA\u73FE\u5728\u6A19\u7C64\u6B04\u4E2D\u3002\u8981\u518D\u6B21\u986F\u793A\u5B83\uFF0C\u4F60\u9700\u8981\u5230\u8DEF\u7531\u7BA1\u7406\u9801\u9762\u9032\u884C\u8A2D\u7F6E\u3002",
|
|
926
|
+
Deprecated: "\u5DF2\u68C4\u7528",
|
|
927
|
+
"The following old template features have been deprecated and will be removed in next version.": "\u4EE5\u4E0B\u820A\u7684\u6A21\u677F\u529F\u80FD\u5DF2\u68C4\u7528\uFF0C\u5C07\u5728\u4E0B\u500B\u7248\u672C\u79FB\u9664\u3002",
|
|
928
|
+
"Full permissions": "\u5B8C\u5168\u6B0A\u9650"
|
|
925
929
|
};
|
|
@@ -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-03-
|
|
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-03-25T05:44:59.885Z"}
|
package/dist/server/server.js
CHANGED
|
@@ -255,28 +255,18 @@ class PluginClientServer extends import_server.Plugin {
|
|
|
255
255
|
this.app.resourceManager.registerActionHandler("desktopRoutes:listAccessible", async (ctx, next) => {
|
|
256
256
|
const desktopRoutesRepository = ctx.db.getRepository("desktopRoutes");
|
|
257
257
|
const rolesRepository = ctx.db.getRepository("roles");
|
|
258
|
-
if (ctx.state.
|
|
258
|
+
if (ctx.state.currentRoles.includes("root")) {
|
|
259
259
|
ctx.body = await desktopRoutesRepository.find({
|
|
260
260
|
tree: true,
|
|
261
261
|
...ctx.query
|
|
262
262
|
});
|
|
263
263
|
return await next();
|
|
264
264
|
}
|
|
265
|
-
const
|
|
266
|
-
filterByTk: ctx.state.
|
|
265
|
+
const roles = await rolesRepository.find({
|
|
266
|
+
filterByTk: ctx.state.currentRoles,
|
|
267
267
|
appends: ["desktopRoutes"]
|
|
268
268
|
});
|
|
269
|
-
const desktopRoutesId =
|
|
270
|
-
if (item.type === "page" && !items.some((tab) => tab.parentId === item.id)) {
|
|
271
|
-
const children = await desktopRoutesRepository.find({
|
|
272
|
-
filter: {
|
|
273
|
-
parentId: item.id
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
return [item.id, ...(children || []).map((child) => child.id)];
|
|
277
|
-
}
|
|
278
|
-
return item.id;
|
|
279
|
-
});
|
|
269
|
+
const desktopRoutesId = roles.flatMap((x) => x.get("desktopRoutes")).map((item) => item.id);
|
|
280
270
|
if (desktopRoutesId) {
|
|
281
271
|
const ids = (await Promise.all(desktopRoutesId)).flat();
|
|
282
272
|
const result = await desktopRoutesRepository.find({
|
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.0-beta.
|
|
7
|
+
"version": "1.7.0-beta.9",
|
|
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": "7013a5080f3695d7750ab21005c90d2172c16480"
|
|
25
25
|
}
|