@nocobase/plugin-client 0.13.0-alpha.3 → 0.13.0-alpha.5

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 (156) hide show
  1. package/dist/client/index.js +1 -11
  2. package/dist/index.js +37 -16
  3. package/dist/locale/cron/zh_CN.js +97 -42
  4. package/dist/locale/en_US.js +43 -28
  5. package/dist/locale/es_ES.js +328 -313
  6. package/dist/locale/fr_FR.js +329 -314
  7. package/dist/locale/index.js +160 -273
  8. package/dist/locale/ja_JP.js +635 -620
  9. package/dist/locale/pt_BR.js +365 -350
  10. package/dist/locale/ru_RU.js +519 -504
  11. package/dist/locale/tr_TR.js +388 -373
  12. package/dist/locale/uk_UA.js +720 -705
  13. package/dist/locale/zh_CN.js +793 -778
  14. package/dist/node_modules/cronstrue/LICENSE +21 -0
  15. package/dist/node_modules/cronstrue/bin/cli.js +26 -0
  16. package/dist/node_modules/cronstrue/dist/cronParser.d.ts +12 -0
  17. package/dist/node_modules/cronstrue/dist/cronstrue-i18n.d.ts +4 -0
  18. package/dist/node_modules/cronstrue/dist/cronstrue-i18n.js +7283 -0
  19. package/dist/node_modules/cronstrue/dist/cronstrue-i18n.min.js +1 -0
  20. package/dist/node_modules/cronstrue/dist/cronstrue.d.ts +4 -0
  21. package/dist/node_modules/cronstrue/dist/cronstrue.js +1 -0
  22. package/dist/node_modules/cronstrue/dist/cronstrue.min.js +1 -0
  23. package/dist/node_modules/cronstrue/dist/expressionDescriptor.d.ts +31 -0
  24. package/dist/node_modules/cronstrue/dist/i18n/allLocales.d.ts +34 -0
  25. package/dist/node_modules/cronstrue/dist/i18n/allLocalesLoader.d.ts +6 -0
  26. package/dist/node_modules/cronstrue/dist/i18n/enLocaleLoader.d.ts +6 -0
  27. package/dist/node_modules/cronstrue/dist/i18n/locale.d.ts +62 -0
  28. package/dist/node_modules/cronstrue/dist/i18n/localeLoader.d.ts +6 -0
  29. package/dist/node_modules/cronstrue/dist/i18n/locales/af.d.ts +56 -0
  30. package/dist/node_modules/cronstrue/dist/i18n/locales/ar.d.ts +56 -0
  31. package/dist/node_modules/cronstrue/dist/i18n/locales/be.d.ts +55 -0
  32. package/dist/node_modules/cronstrue/dist/i18n/locales/ca.d.ts +55 -0
  33. package/dist/node_modules/cronstrue/dist/i18n/locales/cs.d.ts +55 -0
  34. package/dist/node_modules/cronstrue/dist/i18n/locales/da.d.ts +55 -0
  35. package/dist/node_modules/cronstrue/dist/i18n/locales/de.d.ts +55 -0
  36. package/dist/node_modules/cronstrue/dist/i18n/locales/en.d.ts +56 -0
  37. package/dist/node_modules/cronstrue/dist/i18n/locales/es.d.ts +55 -0
  38. package/dist/node_modules/cronstrue/dist/i18n/locales/fa.d.ts +57 -0
  39. package/dist/node_modules/cronstrue/dist/i18n/locales/fi.d.ts +58 -0
  40. package/dist/node_modules/cronstrue/dist/i18n/locales/fr.d.ts +56 -0
  41. package/dist/node_modules/cronstrue/dist/i18n/locales/he.d.ts +55 -0
  42. package/dist/node_modules/cronstrue/dist/i18n/locales/hu.d.ts +56 -0
  43. package/dist/node_modules/cronstrue/dist/i18n/locales/id.d.ts +56 -0
  44. package/dist/node_modules/cronstrue/dist/i18n/locales/it.d.ts +55 -0
  45. package/dist/node_modules/cronstrue/dist/i18n/locales/ja.d.ts +60 -0
  46. package/dist/node_modules/cronstrue/dist/i18n/locales/ko.d.ts +60 -0
  47. package/dist/node_modules/cronstrue/dist/i18n/locales/nb.d.ts +55 -0
  48. package/dist/node_modules/cronstrue/dist/i18n/locales/nl.d.ts +55 -0
  49. package/dist/node_modules/cronstrue/dist/i18n/locales/pl.d.ts +55 -0
  50. package/dist/node_modules/cronstrue/dist/i18n/locales/pt_BR.d.ts +55 -0
  51. package/dist/node_modules/cronstrue/dist/i18n/locales/pt_PT.d.ts +55 -0
  52. package/dist/node_modules/cronstrue/dist/i18n/locales/ro.d.ts +55 -0
  53. package/dist/node_modules/cronstrue/dist/i18n/locales/ru.d.ts +58 -0
  54. package/dist/node_modules/cronstrue/dist/i18n/locales/sk.d.ts +55 -0
  55. package/dist/node_modules/cronstrue/dist/i18n/locales/sl.d.ts +55 -0
  56. package/dist/node_modules/cronstrue/dist/i18n/locales/sv.d.ts +55 -0
  57. package/dist/node_modules/cronstrue/dist/i18n/locales/sw.d.ts +55 -0
  58. package/dist/node_modules/cronstrue/dist/i18n/locales/th.d.ts +56 -0
  59. package/dist/node_modules/cronstrue/dist/i18n/locales/tr.d.ts +55 -0
  60. package/dist/node_modules/cronstrue/dist/i18n/locales/uk.d.ts +55 -0
  61. package/dist/node_modules/cronstrue/dist/i18n/locales/zh_CN.d.ts +61 -0
  62. package/dist/node_modules/cronstrue/dist/i18n/locales/zh_TW.d.ts +58 -0
  63. package/dist/node_modules/cronstrue/dist/options.d.ts +8 -0
  64. package/dist/node_modules/cronstrue/dist/rangeValidator.d.ts +8 -0
  65. package/dist/node_modules/cronstrue/dist/stringUtilities.d.ts +4 -0
  66. package/dist/node_modules/cronstrue/i18n.d.ts +4 -0
  67. package/dist/node_modules/cronstrue/i18n.js +5 -0
  68. package/dist/node_modules/cronstrue/locales/af.js +287 -0
  69. package/dist/node_modules/cronstrue/locales/af.min.js +1 -0
  70. package/dist/node_modules/cronstrue/locales/ar.js +287 -0
  71. package/dist/node_modules/cronstrue/locales/ar.min.js +1 -0
  72. package/dist/node_modules/cronstrue/locales/be.js +284 -0
  73. package/dist/node_modules/cronstrue/locales/be.min.js +1 -0
  74. package/dist/node_modules/cronstrue/locales/ca.js +284 -0
  75. package/dist/node_modules/cronstrue/locales/ca.min.js +1 -0
  76. package/dist/node_modules/cronstrue/locales/cs.js +284 -0
  77. package/dist/node_modules/cronstrue/locales/cs.min.js +1 -0
  78. package/dist/node_modules/cronstrue/locales/da.js +284 -0
  79. package/dist/node_modules/cronstrue/locales/da.min.js +1 -0
  80. package/dist/node_modules/cronstrue/locales/de.js +284 -0
  81. package/dist/node_modules/cronstrue/locales/de.min.js +1 -0
  82. package/dist/node_modules/cronstrue/locales/en.js +287 -0
  83. package/dist/node_modules/cronstrue/locales/en.min.js +1 -0
  84. package/dist/node_modules/cronstrue/locales/es.js +284 -0
  85. package/dist/node_modules/cronstrue/locales/es.min.js +1 -0
  86. package/dist/node_modules/cronstrue/locales/fa.js +277 -0
  87. package/dist/node_modules/cronstrue/locales/fa.min.js +1 -0
  88. package/dist/node_modules/cronstrue/locales/fi.js +293 -0
  89. package/dist/node_modules/cronstrue/locales/fi.min.js +1 -0
  90. package/dist/node_modules/cronstrue/locales/fr.js +287 -0
  91. package/dist/node_modules/cronstrue/locales/fr.min.js +1 -0
  92. package/dist/node_modules/cronstrue/locales/he.js +271 -0
  93. package/dist/node_modules/cronstrue/locales/he.min.js +1 -0
  94. package/dist/node_modules/cronstrue/locales/hu.js +287 -0
  95. package/dist/node_modules/cronstrue/locales/hu.min.js +1 -0
  96. package/dist/node_modules/cronstrue/locales/id.js +287 -0
  97. package/dist/node_modules/cronstrue/locales/id.min.js +1 -0
  98. package/dist/node_modules/cronstrue/locales/it.js +284 -0
  99. package/dist/node_modules/cronstrue/locales/it.min.js +1 -0
  100. package/dist/node_modules/cronstrue/locales/ja.js +286 -0
  101. package/dist/node_modules/cronstrue/locales/ja.min.js +1 -0
  102. package/dist/node_modules/cronstrue/locales/ko.js +286 -0
  103. package/dist/node_modules/cronstrue/locales/ko.min.js +1 -0
  104. package/dist/node_modules/cronstrue/locales/nb.js +284 -0
  105. package/dist/node_modules/cronstrue/locales/nb.min.js +1 -0
  106. package/dist/node_modules/cronstrue/locales/nl.js +284 -0
  107. package/dist/node_modules/cronstrue/locales/nl.min.js +1 -0
  108. package/dist/node_modules/cronstrue/locales/pl.js +284 -0
  109. package/dist/node_modules/cronstrue/locales/pl.min.js +1 -0
  110. package/dist/node_modules/cronstrue/locales/pt_BR.js +284 -0
  111. package/dist/node_modules/cronstrue/locales/pt_BR.min.js +1 -0
  112. package/dist/node_modules/cronstrue/locales/pt_PT.js +284 -0
  113. package/dist/node_modules/cronstrue/locales/pt_PT.min.js +1 -0
  114. package/dist/node_modules/cronstrue/locales/ro.js +284 -0
  115. package/dist/node_modules/cronstrue/locales/ro.min.js +1 -0
  116. package/dist/node_modules/cronstrue/locales/ru.js +327 -0
  117. package/dist/node_modules/cronstrue/locales/ru.min.js +1 -0
  118. package/dist/node_modules/cronstrue/locales/sk.js +284 -0
  119. package/dist/node_modules/cronstrue/locales/sk.min.js +1 -0
  120. package/dist/node_modules/cronstrue/locales/sl.js +284 -0
  121. package/dist/node_modules/cronstrue/locales/sl.min.js +1 -0
  122. package/dist/node_modules/cronstrue/locales/sv.js +284 -0
  123. package/dist/node_modules/cronstrue/locales/sv.min.js +1 -0
  124. package/dist/node_modules/cronstrue/locales/sw.js +284 -0
  125. package/dist/node_modules/cronstrue/locales/sw.min.js +1 -0
  126. package/dist/node_modules/cronstrue/locales/th.js +287 -0
  127. package/dist/node_modules/cronstrue/locales/th.min.js +1 -0
  128. package/dist/node_modules/cronstrue/locales/tr.js +284 -0
  129. package/dist/node_modules/cronstrue/locales/tr.min.js +1 -0
  130. package/dist/node_modules/cronstrue/locales/uk.js +284 -0
  131. package/dist/node_modules/cronstrue/locales/uk.min.js +1 -0
  132. package/dist/node_modules/cronstrue/locales/zh_CN.js +289 -0
  133. package/dist/node_modules/cronstrue/locales/zh_CN.min.js +1 -0
  134. package/dist/node_modules/cronstrue/locales/zh_TW.js +280 -0
  135. package/dist/node_modules/cronstrue/locales/zh_TW.min.js +1 -0
  136. package/dist/node_modules/cronstrue/package.json +1 -0
  137. package/dist/server/antd.js +30 -9
  138. package/dist/server/cron.js +30 -9
  139. package/dist/server/cronstrue.js +26 -4
  140. package/dist/server/index.js +33 -11
  141. package/dist/server/migrations/20230620203216-admin-ui-schema-uid.js +24 -7
  142. package/dist/server/server.js +74 -48
  143. package/dist/swagger/index.json +7 -0
  144. package/package.json +2 -2
  145. package/dist/locale/cron/zh_CN.d.ts +0 -34
  146. package/dist/locale/en_US.d.ts +0 -726
  147. package/dist/locale/es_ES.d.ts +0 -694
  148. package/dist/locale/fr_FR.d.ts +0 -712
  149. package/dist/locale/index.d.ts +0 -272
  150. package/dist/locale/ja_JP.d.ts +0 -628
  151. package/dist/locale/pt_BR.d.ts +0 -672
  152. package/dist/locale/ru_RU.d.ts +0 -508
  153. package/dist/locale/tr_TR.d.ts +0 -506
  154. package/dist/locale/uk_UA.d.ts +0 -714
  155. package/dist/locale/zh_CN.d.ts +0 -779
  156. package/dist/swagger/index.js +0 -19
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Brady Holt
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env node
2
+
3
+ const cronstrue = require('../dist/cronstrue');
4
+
5
+ function usage() {
6
+ console.error("Usage (5 args): cronstrue minute hour day-of-month month day-of-week");
7
+ console.error("or")
8
+ console.error("Usage (6 args): cronstrue second minute hour day-of-month month day-of-week");
9
+ console.error("or")
10
+ console.error("Usage (7 args): cronstrue second minute hour day-of-month month day-of-week year");
11
+ }
12
+
13
+ const args = process.argv.slice(2).join(" ");
14
+ const argCount = args.trim().split(/\s+/).length;
15
+ if (argCount < 5) {
16
+ console.error(`Error: too few arguments (${argCount}): ${args}`);
17
+ usage()
18
+ process.exit(1);
19
+ }
20
+
21
+ if (argCount > 7) {
22
+ console.error(`Error: too many arguments (${argCount}): ${args}`);
23
+ usage();
24
+ process.exit(2);
25
+ }
26
+ console.log(cronstrue.toString(args));
@@ -0,0 +1,12 @@
1
+ export declare class CronParser {
2
+ expression: string;
3
+ dayOfWeekStartIndexZero: boolean;
4
+ monthStartIndexZero: boolean;
5
+ constructor(expression: string, dayOfWeekStartIndexZero?: boolean, monthStartIndexZero?: boolean);
6
+ parse(): string[];
7
+ protected extractParts(expression: string): string[];
8
+ protected normalize(expressionParts: string[]): void;
9
+ protected validate(parsed: string[]): void;
10
+ protected validateRange(parsed: string[]): void;
11
+ protected assertNoInvalidCharacters(partDescription: string, expression: string): void;
12
+ }
@@ -0,0 +1,4 @@
1
+ import { ExpressionDescriptor } from "./expressionDescriptor";
2
+ export default ExpressionDescriptor;
3
+ declare let toString: typeof ExpressionDescriptor.toString;
4
+ export { toString };