@nocobase/plugin-client 0.17.0-alpha.7 → 0.18.0-alpha.2

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.
Files changed (61) hide show
  1. package/dist/externalVersion.js +4 -4
  2. package/dist/locale/antd/eu_ES.js +1 -1
  3. package/dist/locale/antd/ko_KR.js +1 -1
  4. package/dist/locale/antd/my_MM.js +1 -1
  5. package/dist/locale/antd/pl_PL.js +1 -1
  6. package/dist/locale/antd/tr_TR.js +1 -1
  7. package/dist/locale/en_US.js +5 -1
  8. package/dist/locale/pt_BR.js +0 -1
  9. package/dist/locale/zh-CN.js +8 -1
  10. package/dist/node_modules/cronstrue/dist/cronstrue-i18n.js +657 -28
  11. package/dist/node_modules/cronstrue/dist/cronstrue-i18n.min.js +1 -1
  12. package/dist/node_modules/cronstrue/dist/cronstrue.js +1 -1
  13. package/dist/node_modules/cronstrue/dist/cronstrue.min.js +1 -1
  14. package/dist/node_modules/cronstrue/dist/expressionDescriptor.d.ts +1 -1
  15. package/dist/node_modules/cronstrue/dist/i18n/allLocales.d.ts +3 -0
  16. package/dist/node_modules/cronstrue/dist/i18n/locales/bg.d.ts +56 -0
  17. package/dist/node_modules/cronstrue/dist/i18n/locales/my.d.ts +56 -0
  18. package/dist/node_modules/cronstrue/dist/i18n/locales/pt_BR.d.ts +2 -2
  19. package/dist/node_modules/cronstrue/dist/i18n/locales/vi.d.ts +56 -0
  20. package/dist/node_modules/cronstrue/dist/options.d.ts +1 -0
  21. package/dist/node_modules/cronstrue/locales/ar.js +1 -1
  22. package/dist/node_modules/cronstrue/locales/ar.min.js +1 -1
  23. package/dist/node_modules/cronstrue/locales/be.js +1 -1
  24. package/dist/node_modules/cronstrue/locales/be.min.js +1 -1
  25. package/dist/node_modules/cronstrue/locales/bg.js +290 -0
  26. package/dist/node_modules/cronstrue/locales/bg.min.js +1 -0
  27. package/dist/node_modules/cronstrue/locales/ca.js +1 -1
  28. package/dist/node_modules/cronstrue/locales/ca.min.js +1 -1
  29. package/dist/node_modules/cronstrue/locales/es.js +1 -1
  30. package/dist/node_modules/cronstrue/locales/es.min.js +1 -1
  31. package/dist/node_modules/cronstrue/locales/fi.js +1 -1
  32. package/dist/node_modules/cronstrue/locales/fi.min.js +1 -1
  33. package/dist/node_modules/cronstrue/locales/hu.js +1 -1
  34. package/dist/node_modules/cronstrue/locales/hu.min.js +1 -1
  35. package/dist/node_modules/cronstrue/locales/id.js +1 -1
  36. package/dist/node_modules/cronstrue/locales/id.min.js +1 -1
  37. package/dist/node_modules/cronstrue/locales/ja.js +1 -1
  38. package/dist/node_modules/cronstrue/locales/ja.min.js +1 -1
  39. package/dist/node_modules/cronstrue/locales/ko.js +4 -4
  40. package/dist/node_modules/cronstrue/locales/ko.min.js +1 -1
  41. package/dist/node_modules/cronstrue/locales/my.js +287 -0
  42. package/dist/node_modules/cronstrue/locales/my.min.js +1 -0
  43. package/dist/node_modules/cronstrue/locales/nb.js +1 -1
  44. package/dist/node_modules/cronstrue/locales/nb.min.js +1 -1
  45. package/dist/node_modules/cronstrue/locales/nl.js +1 -1
  46. package/dist/node_modules/cronstrue/locales/nl.min.js +1 -1
  47. package/dist/node_modules/cronstrue/locales/pt_BR.js +5 -5
  48. package/dist/node_modules/cronstrue/locales/pt_BR.min.js +1 -1
  49. package/dist/node_modules/cronstrue/locales/sw.js +1 -1
  50. package/dist/node_modules/cronstrue/locales/sw.min.js +1 -1
  51. package/dist/node_modules/cronstrue/locales/vi.js +287 -0
  52. package/dist/node_modules/cronstrue/locales/vi.min.js +1 -0
  53. package/dist/node_modules/cronstrue/locales/zh_TW.js +1 -1
  54. package/dist/node_modules/cronstrue/locales/zh_TW.min.js +1 -1
  55. package/dist/node_modules/cronstrue/package.json +1 -1
  56. package/dist/server/migrations/20230620203216-admin-ui-schema-uid.js +5 -1
  57. package/dist/server/migrations/20231215215247-admin-menu-uid.d.ts +4 -0
  58. package/dist/server/migrations/20231215215247-admin-menu-uid.js +75 -0
  59. package/dist/server/server.d.ts +1 -0
  60. package/dist/server/server.js +17 -20
  61. package/package.json +2 -2
@@ -0,0 +1,287 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("cronstrue"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define("locales/vi", ["cronstrue"], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["locales/vi"] = factory(require("cronstrue"));
8
+ else
9
+ root["locales/vi"] = factory(root["cronstrue"]);
10
+ })(globalThis, (__WEBPACK_EXTERNAL_MODULE__34__) => {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ "use strict";
13
+ /******/ var __webpack_modules__ = ({
14
+
15
+ /***/ 34:
16
+ /***/ ((module) => {
17
+
18
+ module.exports = __WEBPACK_EXTERNAL_MODULE__34__;
19
+
20
+ /***/ })
21
+
22
+ /******/ });
23
+ /************************************************************************/
24
+ /******/ // The module cache
25
+ /******/ var __webpack_module_cache__ = {};
26
+ /******/
27
+ /******/ // The require function
28
+ /******/ function __webpack_require__(moduleId) {
29
+ /******/ // Check if module is in cache
30
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
31
+ /******/ if (cachedModule !== undefined) {
32
+ /******/ return cachedModule.exports;
33
+ /******/ }
34
+ /******/ // Create a new module (and put it into the cache)
35
+ /******/ var module = __webpack_module_cache__[moduleId] = {
36
+ /******/ // no module.id needed
37
+ /******/ // no module.loaded needed
38
+ /******/ exports: {}
39
+ /******/ };
40
+ /******/
41
+ /******/ // Execute the module function
42
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
43
+ /******/
44
+ /******/ // Return the exports of the module
45
+ /******/ return module.exports;
46
+ /******/ }
47
+ /******/
48
+ /************************************************************************/
49
+ /******/ /* webpack/runtime/compat get default export */
50
+ /******/ (() => {
51
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
52
+ /******/ __webpack_require__.n = (module) => {
53
+ /******/ var getter = module && module.__esModule ?
54
+ /******/ () => (module['default']) :
55
+ /******/ () => (module);
56
+ /******/ __webpack_require__.d(getter, { a: getter });
57
+ /******/ return getter;
58
+ /******/ };
59
+ /******/ })();
60
+ /******/
61
+ /******/ /* webpack/runtime/define property getters */
62
+ /******/ (() => {
63
+ /******/ // define getter functions for harmony exports
64
+ /******/ __webpack_require__.d = (exports, definition) => {
65
+ /******/ for(var key in definition) {
66
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
67
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
68
+ /******/ }
69
+ /******/ }
70
+ /******/ };
71
+ /******/ })();
72
+ /******/
73
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
74
+ /******/ (() => {
75
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
76
+ /******/ })();
77
+ /******/
78
+ /******/ /* webpack/runtime/make namespace object */
79
+ /******/ (() => {
80
+ /******/ // define __esModule on exports
81
+ /******/ __webpack_require__.r = (exports) => {
82
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
83
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
84
+ /******/ }
85
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
86
+ /******/ };
87
+ /******/ })();
88
+ /******/
89
+ /************************************************************************/
90
+ var __webpack_exports__ = {};
91
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
92
+ (() => {
93
+ __webpack_require__.r(__webpack_exports__);
94
+ /* harmony import */ var cronstrue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(34);
95
+ /* harmony import */ var cronstrue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cronstrue__WEBPACK_IMPORTED_MODULE_0__);
96
+ var exports = __webpack_exports__;
97
+ "use strict";
98
+ Object.defineProperty(exports, "__esModule", { value: true });
99
+ exports.vi = void 0;
100
+ var vi = (function () {
101
+ function vi() {
102
+ }
103
+ vi.prototype.atX0SecondsPastTheMinuteGt20 = function () {
104
+ return null;
105
+ };
106
+ vi.prototype.atX0MinutesPastTheHourGt20 = function () {
107
+ return null;
108
+ };
109
+ vi.prototype.commaMonthX0ThroughMonthX1 = function () {
110
+ return null;
111
+ };
112
+ vi.prototype.commaYearX0ThroughYearX1 = function () {
113
+ return null;
114
+ };
115
+ vi.prototype.use24HourTimeFormatByDefault = function () {
116
+ return true;
117
+ };
118
+ vi.prototype.anErrorOccuredWhenGeneratingTheExpressionD = function () {
119
+ return "Đã xảy ra lỗi khi tạo mô tả biểu thức. Vui lòng kiểm tra cú pháp biểu thức cron.";
120
+ };
121
+ vi.prototype.everyMinute = function () {
122
+ return "mỗi phút";
123
+ };
124
+ vi.prototype.everyHour = function () {
125
+ return "mỗi giờ";
126
+ };
127
+ vi.prototype.atSpace = function () {
128
+ return "Vào ";
129
+ };
130
+ vi.prototype.everyMinuteBetweenX0AndX1 = function () {
131
+ return "Mỗi phút giữa %s and %s";
132
+ };
133
+ vi.prototype.at = function () {
134
+ return "Vào";
135
+ };
136
+ vi.prototype.spaceAnd = function () {
137
+ return " và";
138
+ };
139
+ vi.prototype.everySecond = function () {
140
+ return "mỗi giây";
141
+ };
142
+ vi.prototype.everyX0Seconds = function () {
143
+ return "mỗi %s giây";
144
+ };
145
+ vi.prototype.secondsX0ThroughX1PastTheMinute = function () {
146
+ return "giây thứ %s qua phút thứ %s";
147
+ };
148
+ vi.prototype.atX0SecondsPastTheMinute = function () {
149
+ return "tại giây thứ %s của mỗi phút";
150
+ };
151
+ vi.prototype.everyX0Minutes = function () {
152
+ return "mỗi %s phút";
153
+ };
154
+ vi.prototype.minutesX0ThroughX1PastTheHour = function () {
155
+ return "phút thứ %s qua %s tiếng";
156
+ };
157
+ vi.prototype.atX0MinutesPastTheHour = function () {
158
+ return "vào %s phút của mỗi tiếng";
159
+ };
160
+ vi.prototype.everyX0Hours = function () {
161
+ return "mỗi %s tiếng";
162
+ };
163
+ vi.prototype.betweenX0AndX1 = function () {
164
+ return "giữa %s và %s";
165
+ };
166
+ vi.prototype.atX0 = function () {
167
+ return "vào %s";
168
+ };
169
+ vi.prototype.commaEveryDay = function () {
170
+ return ", mỗi ngày";
171
+ };
172
+ vi.prototype.commaEveryX0DaysOfTheWeek = function () {
173
+ return ", mỗi %s ngày trong tuần";
174
+ };
175
+ vi.prototype.commaX0ThroughX1 = function () {
176
+ return ", %s đến %s";
177
+ };
178
+ vi.prototype.commaAndX0ThroughX1 = function () {
179
+ return ", %s đến %s";
180
+ };
181
+ vi.prototype.first = function () {
182
+ return "đầu tiên";
183
+ };
184
+ vi.prototype.second = function () {
185
+ return "thứ 2";
186
+ };
187
+ vi.prototype.third = function () {
188
+ return "thứ 3";
189
+ };
190
+ vi.prototype.fourth = function () {
191
+ return "thứ 4";
192
+ };
193
+ vi.prototype.fifth = function () {
194
+ return "thứ 5";
195
+ };
196
+ vi.prototype.commaOnThe = function () {
197
+ return ", trên ";
198
+ };
199
+ vi.prototype.spaceX0OfTheMonth = function () {
200
+ return " %s của tháng";
201
+ };
202
+ vi.prototype.lastDay = function () {
203
+ return "ngày cuối cùng";
204
+ };
205
+ vi.prototype.commaOnTheLastX0OfTheMonth = function () {
206
+ return ", vào ngày %s cuối cùng của tháng";
207
+ };
208
+ vi.prototype.commaOnlyOnX0 = function () {
209
+ return ", chỉ trên %s";
210
+ };
211
+ vi.prototype.commaAndOnX0 = function () {
212
+ return ", và hơn %s";
213
+ };
214
+ vi.prototype.commaEveryX0Months = function () {
215
+ return ", mỗi ngày %s tháng";
216
+ };
217
+ vi.prototype.commaOnlyInX0 = function () {
218
+ return ", chỉ trong %s";
219
+ };
220
+ vi.prototype.commaOnTheLastDayOfTheMonth = function () {
221
+ return ", vào ngày cuối cùng của tháng";
222
+ };
223
+ vi.prototype.commaOnTheLastWeekdayOfTheMonth = function () {
224
+ return ", vào ngày cuối tuần của tháng";
225
+ };
226
+ vi.prototype.commaDaysBeforeTheLastDayOfTheMonth = function () {
227
+ return ", %s ngày trước ngày cuối cùng của tháng";
228
+ };
229
+ vi.prototype.firstWeekday = function () {
230
+ return "ngày đầu tuần";
231
+ };
232
+ vi.prototype.weekdayNearestDayX0 = function () {
233
+ return "ngày trong tuần ngày gần nhất %s";
234
+ };
235
+ vi.prototype.commaOnTheX0OfTheMonth = function () {
236
+ return ", vào ngày %s của tháng";
237
+ };
238
+ vi.prototype.commaEveryX0Days = function () {
239
+ return ", mỗi %s ngày";
240
+ };
241
+ vi.prototype.commaBetweenDayX0AndX1OfTheMonth = function () {
242
+ return ", giữa ngày %s và %s trong tháng";
243
+ };
244
+ vi.prototype.commaOnDayX0OfTheMonth = function () {
245
+ return ", vào %s ngày trong tháng";
246
+ };
247
+ vi.prototype.commaEveryHour = function () {
248
+ return ", mỗi tiếng";
249
+ };
250
+ vi.prototype.commaEveryX0Years = function () {
251
+ return ", mỗi %s năm";
252
+ };
253
+ vi.prototype.commaStartingX0 = function () {
254
+ return ", bắt đầu %s";
255
+ };
256
+ vi.prototype.daysOfTheWeek = function () {
257
+ return ["Chủ nhật", "Thứ 2", "Thứ 3", "Thứ 4", "Thứ 5", "Thứ 6", "Thứ 7"];
258
+ };
259
+ vi.prototype.monthsOfTheYear = function () {
260
+ return [
261
+ "Tháng 1",
262
+ "Tháng 2",
263
+ "Tháng 3",
264
+ "Tháng 4",
265
+ "Tháng 5",
266
+ "Tháng 6",
267
+ "Tháng 7",
268
+ "Tháng 8",
269
+ "Tháng 9",
270
+ "Tháng 10",
271
+ "Tháng 11",
272
+ "Tháng 12",
273
+ ];
274
+ };
275
+ return vi;
276
+ }());
277
+ exports.vi = vi;
278
+
279
+
280
+ (cronstrue__WEBPACK_IMPORTED_MODULE_0___default().locales.vi) = new vi();
281
+
282
+ })();
283
+
284
+ /******/ return __webpack_exports__;
285
+ /******/ })()
286
+ ;
287
+ });
@@ -0,0 +1 @@
1
+ !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("cronstrue")):"function"==typeof define&&define.amd?define("locales/vi.min",["cronstrue"],n):"object"==typeof exports?exports["locales/vi.min"]=n(require("cronstrue")):t["locales/vi.min"]=n(t.cronstrue)}(globalThis,(t=>(()=>{"use strict";var n={34:n=>{n.exports=t}},o={};function e(t){var r=o[t];if(void 0!==r)return r.exports;var u=o[t]={exports:{}};return n[t](u,u.exports,e),u.exports}e.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},e.d=(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{e.r(r);var t=e(34),n=e.n(t),o=r;Object.defineProperty(o,"__esModule",{value:!0}),o.vi=void 0;var u=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Đã xảy ra lỗi khi tạo mô tả biểu thức. Vui lòng kiểm tra cú pháp biểu thức cron."},t.prototype.everyMinute=function(){return"mỗi phút"},t.prototype.everyHour=function(){return"mỗi giờ"},t.prototype.atSpace=function(){return"Vào "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Mỗi phút giữa %s and %s"},t.prototype.at=function(){return"Vào"},t.prototype.spaceAnd=function(){return" và"},t.prototype.everySecond=function(){return"mỗi giây"},t.prototype.everyX0Seconds=function(){return"mỗi %s giây"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"giây thứ %s qua phút thứ %s"},t.prototype.atX0SecondsPastTheMinute=function(){return"tại giây thứ %s của mỗi phút"},t.prototype.everyX0Minutes=function(){return"mỗi %s phút"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"phút thứ %s qua %s tiếng"},t.prototype.atX0MinutesPastTheHour=function(){return"vào %s phút của mỗi tiếng"},t.prototype.everyX0Hours=function(){return"mỗi %s tiếng"},t.prototype.betweenX0AndX1=function(){return"giữa %s và %s"},t.prototype.atX0=function(){return"vào %s"},t.prototype.commaEveryDay=function(){return", mỗi ngày"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", mỗi %s ngày trong tuần"},t.prototype.commaX0ThroughX1=function(){return", %s đến %s"},t.prototype.commaAndX0ThroughX1=function(){return", %s đến %s"},t.prototype.first=function(){return"đầu tiên"},t.prototype.second=function(){return"thứ 2"},t.prototype.third=function(){return"thứ 3"},t.prototype.fourth=function(){return"thứ 4"},t.prototype.fifth=function(){return"thứ 5"},t.prototype.commaOnThe=function(){return", trên "},t.prototype.spaceX0OfTheMonth=function(){return" %s của tháng"},t.prototype.lastDay=function(){return"ngày cuối cùng"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", vào ngày %s cuối cùng của tháng"},t.prototype.commaOnlyOnX0=function(){return", chỉ trên %s"},t.prototype.commaAndOnX0=function(){return", và hơn %s"},t.prototype.commaEveryX0Months=function(){return", mỗi ngày %s tháng"},t.prototype.commaOnlyInX0=function(){return", chỉ trong %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", vào ngày cuối cùng của tháng"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", vào ngày cuối tuần của tháng"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s ngày trước ngày cuối cùng của tháng"},t.prototype.firstWeekday=function(){return"ngày đầu tuần"},t.prototype.weekdayNearestDayX0=function(){return"ngày trong tuần ngày gần nhất %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", vào ngày %s của tháng"},t.prototype.commaEveryX0Days=function(){return", mỗi %s ngày"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", giữa ngày %s và %s trong tháng"},t.prototype.commaOnDayX0OfTheMonth=function(){return", vào %s ngày trong tháng"},t.prototype.commaEveryHour=function(){return", mỗi tiếng"},t.prototype.commaEveryX0Years=function(){return", mỗi %s năm"},t.prototype.commaStartingX0=function(){return", bắt đầu %s"},t.prototype.daysOfTheWeek=function(){return["Chủ nhật","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"]},t.prototype.monthsOfTheYear=function(){return["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"]},t}();o.vi=u,n().locales.vi=new u})(),r})()));
@@ -113,7 +113,7 @@ var zh_TW = (function () {
113
113
  return ", 從 %s 年至 %s 年";
114
114
  };
115
115
  zh_TW.prototype.use24HourTimeFormatByDefault = function () {
116
- return false;
116
+ return true;
117
117
  };
118
118
  zh_TW.prototype.everyMinute = function () {
119
119
  return "每分鐘";
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("cronstrue")):"function"==typeof define&&define.amd?define("locales/zh_TW.min",["cronstrue"],e):"object"==typeof exports?exports["locales/zh_TW.min"]=e(require("cronstrue")):t["locales/zh_TW.min"]=e(t.cronstrue)}(globalThis,(t=>(()=>{"use strict";var e={34:e=>{e.exports=t}},o={};function n(t){var r=o[t];if(void 0!==r)return r.exports;var u=o[t]={exports:{}};return e[t](u,u.exports,n),u.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{n.r(r);var t=n(34),e=n.n(t),o=r;Object.defineProperty(o,"__esModule",{value:!0}),o.zh_TW=void 0;var u=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return", 從 %s 年至 %s 年"},t.prototype.use24HourTimeFormatByDefault=function(){return!1},t.prototype.everyMinute=function(){return"每分鐘"},t.prototype.everyHour=function(){return"每小時"},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"產生表達式描述時發生了錯誤,請檢查 cron 表達式語法。"},t.prototype.atSpace=function(){return"在 "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 和 %s 之間的每分鐘"},t.prototype.at=function(){return"在"},t.prototype.spaceAnd=function(){return" 和"},t.prototype.everySecond=function(){return"每秒"},t.prototype.everyX0Seconds=function(){return"每 %s 秒"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在每分鐘的 %s 到 %s 秒"},t.prototype.atX0SecondsPastTheMinute=function(){return"在每分鐘的 %s 秒"},t.prototype.everyX0Minutes=function(){return"每 %s 分鐘"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"在每小時的 %s 到 %s 分鐘"},t.prototype.atX0MinutesPastTheHour=function(){return"在每小時的 %s 分"},t.prototype.everyX0Hours=function(){return"每 %s 小時"},t.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之間"},t.prototype.atX0=function(){return"在 %s"},t.prototype.commaEveryDay=function(){return", 每天"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每週的每 %s 天"},t.prototype.commaX0ThroughX1=function(){return", %s 到 %s"},t.prototype.commaAndX0ThroughX1=function(){return", 和 %s 到 %s"},t.prototype.first=function(){return"第一個"},t.prototype.second=function(){return"第二個"},t.prototype.third=function(){return"第三個"},t.prototype.fourth=function(){return"第四個"},t.prototype.fifth=function(){return"第五個"},t.prototype.commaOnThe=function(){return", 在每月 "},t.prototype.spaceX0OfTheMonth=function(){return"%s "},t.prototype.lastDay=function(){return"最後一天"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", 每月的最後一個 %s "},t.prototype.commaOnlyOnX0=function(){return", 僅在 %s"},t.prototype.commaAndOnX0=function(){return", 和 %s"},t.prototype.commaEveryX0Months=function(){return", 每 %s 月"},t.prototype.commaOnlyInX0=function(){return", 僅在 %s"},t.prototype.commaOnlyInMonthX0=function(){return", 僅在 %s"},t.prototype.commaOnlyInYearX0=function(){return", 僅在 %s 年"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", 每月的最後一天"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 每月的最後一個工作日"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s 這個月的最後一天的前幾天"},t.prototype.firstWeekday=function(){return"第一個工作日"},t.prototype.weekdayNearestDayX0=function(){return"最接近 %s 號的工作日"},t.prototype.commaOnTheX0OfTheMonth=function(){return", 每月的 %s "},t.prototype.commaEveryX0Days=function(){return", 每 %s 天"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 在每月的 %s 和 %s 之間"},t.prototype.commaOnDayX0OfTheMonth=function(){return", 每月的 %s"},t.prototype.commaEveryX0Years=function(){return", 每 %s 年"},t.prototype.commaStartingX0=function(){return", %s 開始"},t.prototype.dayX0=function(){return" %s 號"},t.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},t.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},t}();o.zh_TW=u,e().locales.zh_TW=new u})(),r})()));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("cronstrue")):"function"==typeof define&&define.amd?define("locales/zh_TW.min",["cronstrue"],e):"object"==typeof exports?exports["locales/zh_TW.min"]=e(require("cronstrue")):t["locales/zh_TW.min"]=e(t.cronstrue)}(globalThis,(t=>(()=>{"use strict";var e={34:e=>{e.exports=t}},o={};function n(t){var r=o[t];if(void 0!==r)return r.exports;var u=o[t]={exports:{}};return e[t](u,u.exports,n),u.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{n.r(r);var t=n(34),e=n.n(t),o=r;Object.defineProperty(o,"__esModule",{value:!0}),o.zh_TW=void 0;var u=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return", 從 %s 年至 %s 年"},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.everyMinute=function(){return"每分鐘"},t.prototype.everyHour=function(){return"每小時"},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"產生表達式描述時發生了錯誤,請檢查 cron 表達式語法。"},t.prototype.atSpace=function(){return"在 "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 和 %s 之間的每分鐘"},t.prototype.at=function(){return"在"},t.prototype.spaceAnd=function(){return" 和"},t.prototype.everySecond=function(){return"每秒"},t.prototype.everyX0Seconds=function(){return"每 %s 秒"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在每分鐘的 %s 到 %s 秒"},t.prototype.atX0SecondsPastTheMinute=function(){return"在每分鐘的 %s 秒"},t.prototype.everyX0Minutes=function(){return"每 %s 分鐘"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"在每小時的 %s 到 %s 分鐘"},t.prototype.atX0MinutesPastTheHour=function(){return"在每小時的 %s 分"},t.prototype.everyX0Hours=function(){return"每 %s 小時"},t.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之間"},t.prototype.atX0=function(){return"在 %s"},t.prototype.commaEveryDay=function(){return", 每天"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每週的每 %s 天"},t.prototype.commaX0ThroughX1=function(){return", %s 到 %s"},t.prototype.commaAndX0ThroughX1=function(){return", 和 %s 到 %s"},t.prototype.first=function(){return"第一個"},t.prototype.second=function(){return"第二個"},t.prototype.third=function(){return"第三個"},t.prototype.fourth=function(){return"第四個"},t.prototype.fifth=function(){return"第五個"},t.prototype.commaOnThe=function(){return", 在每月 "},t.prototype.spaceX0OfTheMonth=function(){return"%s "},t.prototype.lastDay=function(){return"最後一天"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", 每月的最後一個 %s "},t.prototype.commaOnlyOnX0=function(){return", 僅在 %s"},t.prototype.commaAndOnX0=function(){return", 和 %s"},t.prototype.commaEveryX0Months=function(){return", 每 %s 月"},t.prototype.commaOnlyInX0=function(){return", 僅在 %s"},t.prototype.commaOnlyInMonthX0=function(){return", 僅在 %s"},t.prototype.commaOnlyInYearX0=function(){return", 僅在 %s 年"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", 每月的最後一天"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 每月的最後一個工作日"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s 這個月的最後一天的前幾天"},t.prototype.firstWeekday=function(){return"第一個工作日"},t.prototype.weekdayNearestDayX0=function(){return"最接近 %s 號的工作日"},t.prototype.commaOnTheX0OfTheMonth=function(){return", 每月的 %s "},t.prototype.commaEveryX0Days=function(){return", 每 %s 天"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 在每月的 %s 和 %s 之間"},t.prototype.commaOnDayX0OfTheMonth=function(){return", 每月的 %s"},t.prototype.commaEveryX0Years=function(){return", 每 %s 年"},t.prototype.commaStartingX0=function(){return", %s 開始"},t.prototype.dayX0=function(){return" %s 號"},t.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},t.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},t}();o.zh_TW=u,e().locales.zh_TW=new u})(),r})()));
@@ -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-12-15T03:54:34.170Z"}
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":"2023-12-25T14:42:00.517Z"}
@@ -24,6 +24,10 @@ var import_server = require("@nocobase/server");
24
24
  class admin_ui_schema_uid_default extends import_server.Migration {
25
25
  async up() {
26
26
  var _a, _b, _c;
27
+ const result = await this.app.version.satisfies("<0.14.0-alpha.1");
28
+ if (!result) {
29
+ return;
30
+ }
27
31
  await this.db.getCollection("systemSettings").sync({
28
32
  force: false,
29
33
  alter: {
@@ -36,10 +40,10 @@ class admin_ui_schema_uid_default extends import_server.Migration {
36
40
  return;
37
41
  }
38
42
  const uiRoutes = this.db.getRepository("uiRoutes");
39
- const routes = await uiRoutes.find();
40
43
  if (!uiRoutes) {
41
44
  return;
42
45
  }
46
+ const routes = await uiRoutes.find();
43
47
  for (const route of routes) {
44
48
  if (route.uiSchemaUid && ((_b = route == null ? void 0 : route.options) == null ? void 0 : _b.component) === "AdminLayout") {
45
49
  const options = instance.options || {};
@@ -0,0 +1,4 @@
1
+ import { Migration } from '@nocobase/server';
2
+ export default class extends Migration {
3
+ up(): Promise<void>;
4
+ }
@@ -0,0 +1,75 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var admin_menu_uid_exports = {};
19
+ __export(admin_menu_uid_exports, {
20
+ default: () => admin_menu_uid_default
21
+ });
22
+ module.exports = __toCommonJS(admin_menu_uid_exports);
23
+ var import_server = require("@nocobase/server");
24
+ class admin_menu_uid_default extends import_server.Migration {
25
+ async up() {
26
+ var _a, _b;
27
+ const result = await this.app.version.satisfies("<0.17.0-alpha.8");
28
+ if (!result) {
29
+ return;
30
+ }
31
+ const systemSettings = this.db.getRepository("systemSettings");
32
+ const instance = await systemSettings.findOne();
33
+ if (!((_a = instance == null ? void 0 : instance.options) == null ? void 0 : _a.adminSchemaUid)) {
34
+ return;
35
+ }
36
+ const UiSchemas = this.db.getModel("uiSchemas");
37
+ await this.db.sequelize.transaction(async (transaction) => {
38
+ var _a2, _b2, _c;
39
+ await UiSchemas.update(
40
+ {
41
+ "x-uid": "nocobase-admin-menu"
42
+ },
43
+ {
44
+ transaction,
45
+ where: {
46
+ "x-uid": (_a2 = instance == null ? void 0 : instance.options) == null ? void 0 : _a2.adminSchemaUid
47
+ }
48
+ }
49
+ );
50
+ await this.db.getModel("uiSchemaTreePath").update(
51
+ {
52
+ descendant: "nocobase-admin-menu"
53
+ },
54
+ {
55
+ transaction,
56
+ where: {
57
+ descendant: (_b2 = instance == null ? void 0 : instance.options) == null ? void 0 : _b2.adminSchemaUid
58
+ }
59
+ }
60
+ );
61
+ await this.db.getModel("uiSchemaTreePath").update(
62
+ {
63
+ ancestor: "nocobase-admin-menu"
64
+ },
65
+ {
66
+ transaction,
67
+ where: {
68
+ ancestor: (_c = instance == null ? void 0 : instance.options) == null ? void 0 : _c.adminSchemaUid
69
+ }
70
+ }
71
+ );
72
+ });
73
+ console.log((_b = instance == null ? void 0 : instance.options) == null ? void 0 : _b.adminSchemaUid);
74
+ }
75
+ }
@@ -1,6 +1,7 @@
1
1
  import { Plugin } from '@nocobase/server';
2
2
  export declare class ClientPlugin extends Plugin {
3
3
  beforeLoad(): Promise<void>;
4
+ install(): Promise<void>;
4
5
  load(): Promise<void>;
5
6
  }
6
7
  export default ClientPlugin;
@@ -58,26 +58,23 @@ class ClientPlugin extends import_server.Plugin {
58
58
  if (opts == null ? void 0 : opts.importDemo) {
59
59
  }
60
60
  });
61
- this.db.on("systemSettings.beforeCreate", async (instance, { transaction }) => {
62
- const uiSchemas = this.db.getRepository("uiSchemas");
63
- const schema = await uiSchemas.insert(
64
- {
65
- type: "void",
66
- "x-component": "Menu",
67
- "x-designer": "Menu.Designer",
68
- "x-initializer": "MenuItemInitializers",
69
- "x-component-props": {
70
- mode: "mix",
71
- theme: "dark",
72
- // defaultSelectedUid: 'u8',
73
- onSelect: "{{ onSelect }}",
74
- sideMenuRefScopeKey: "sideMenuRef"
75
- },
76
- properties: {}
77
- },
78
- { transaction }
79
- );
80
- instance.set("options.adminSchemaUid", schema["x-uid"]);
61
+ }
62
+ async install() {
63
+ const uiSchemas = this.db.getRepository("uiSchemas");
64
+ await uiSchemas.insert({
65
+ type: "void",
66
+ "x-uid": "nocobase-admin-menu",
67
+ "x-component": "Menu",
68
+ "x-designer": "Menu.Designer",
69
+ "x-initializer": "MenuItemInitializers",
70
+ "x-component-props": {
71
+ mode: "mix",
72
+ theme: "dark",
73
+ // defaultSelectedUid: 'u8',
74
+ onSelect: "{{ onSelect }}",
75
+ sideMenuRefScopeKey: "sideMenuRef"
76
+ },
77
+ properties: {}
81
78
  });
82
79
  }
83
80
  async load() {
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.17.0-alpha.7",
7
+ "version": "0.18.0-alpha.2",
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": "91377a3abd1124f79fb3819f2d0e80905e091a32"
23
+ "gitHead": "92611d2eec3110bcb5ac599054e5191591df055a"
24
24
  }