@tachybase/module-web 1.3.16 → 1.3.18

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 (396) hide show
  1. package/LICENSE +201 -0
  2. package/package.json +11 -11
  3. package/dist/client/MAppNotFound.d.ts +0 -1
  4. package/dist/client/MobileClientProvider.d.ts +0 -2
  5. package/dist/client/MobileLinkProvider.d.ts +0 -1
  6. package/dist/client/assistant-tool/Designable/DesignableButtonProvider.d.ts +0 -1
  7. package/dist/client/assistant-tool/Designable/plugin.d.ts +0 -5
  8. package/dist/client/assistant-tool/calculator/AutoScalingText.d.ts +0 -3
  9. package/dist/client/assistant-tool/calculator/Calculator.d.ts +0 -2
  10. package/dist/client/assistant-tool/calculator/CalculatorDisplay.d.ts +0 -4
  11. package/dist/client/assistant-tool/calculator/CalculatorKey.d.ts +0 -5
  12. package/dist/client/assistant-tool/calculator/CalculatorModalProvider.d.ts +0 -9
  13. package/dist/client/assistant-tool/calculator/CalculatorProvider.d.ts +0 -1
  14. package/dist/client/assistant-tool/calculator/Draggable.d.ts +0 -8
  15. package/dist/client/assistant-tool/calculator/plugin.d.ts +0 -5
  16. package/dist/client/assistant-tool/calculator/style.d.ts +0 -3
  17. package/dist/client/assistant-tool/search-and-jump/SearchAndJumpModelProvider.d.ts +0 -16
  18. package/dist/client/assistant-tool/search-and-jump/SearchAndJumpProvider.d.ts +0 -1
  19. package/dist/client/assistant-tool/search-and-jump/plugin.d.ts +0 -5
  20. package/dist/client/configuration/App.d.ts +0 -1
  21. package/dist/client/configuration/Interface.d.ts +0 -1
  22. package/dist/client/configuration/index.d.ts +0 -2
  23. package/dist/client/core/assets/svg/index.d.ts +0 -4
  24. package/dist/client/core/bridge/index.d.ts +0 -2
  25. package/dist/client/core/bridge/injects.d.ts +0 -13
  26. package/dist/client/core/bridge/native-call.d.ts +0 -1
  27. package/dist/client/core/index.d.ts +0 -5
  28. package/dist/client/core/schema/CustomColor.d.ts +0 -1
  29. package/dist/client/core/schema/CustomComponent.d.ts +0 -1
  30. package/dist/client/core/schema/common/index.d.ts +0 -1
  31. package/dist/client/core/schema/common/page.d.ts +0 -16
  32. package/dist/client/core/schema/components/antd-mobile/Cascader/AntdCadcader.d.ts +0 -3
  33. package/dist/client/core/schema/components/antd-mobile/Cascader/Cadcader.d.ts +0 -4
  34. package/dist/client/core/schema/components/antd-mobile/Cascader/ReadPretty.d.ts +0 -2
  35. package/dist/client/core/schema/components/antd-mobile/Cascader/defaultFieldNames.d.ts +0 -5
  36. package/dist/client/core/schema/components/antd-mobile/Cascader/index.d.ts +0 -1
  37. package/dist/client/core/schema/components/antd-mobile/Cascader/style.d.ts +0 -3
  38. package/dist/client/core/schema/components/antd-mobile/Checkbox/Checkbox.d.ts +0 -7
  39. package/dist/client/core/schema/components/antd-mobile/Checkbox/index.d.ts +0 -1
  40. package/dist/client/core/schema/components/antd-mobile/DatePicker/DatePicker.d.ts +0 -2
  41. package/dist/client/core/schema/components/antd-mobile/DatePicker/index.d.ts +0 -1
  42. package/dist/client/core/schema/components/antd-mobile/ImageUploader/ImageUploader.d.ts +0 -5
  43. package/dist/client/core/schema/components/antd-mobile/ImageUploader/index.d.ts +0 -1
  44. package/dist/client/core/schema/components/antd-mobile/Input/Input.d.ts +0 -7
  45. package/dist/client/core/schema/components/antd-mobile/Input/index.d.ts +0 -1
  46. package/dist/client/core/schema/components/antd-mobile/Radio/Radio.d.ts +0 -7
  47. package/dist/client/core/schema/components/antd-mobile/Radio/index.d.ts +0 -1
  48. package/dist/client/core/schema/components/antd-mobile/Select/AntdSelect.d.ts +0 -2
  49. package/dist/client/core/schema/components/antd-mobile/Select/AntdSelectContext.d.ts +0 -2
  50. package/dist/client/core/schema/components/antd-mobile/Select/CreateRecordAction.d.ts +0 -2
  51. package/dist/client/core/schema/components/antd-mobile/Select/Select.d.ts +0 -5
  52. package/dist/client/core/schema/components/antd-mobile/Select/index.d.ts +0 -1
  53. package/dist/client/core/schema/components/antd-mobile/Select/style.d.ts +0 -3
  54. package/dist/client/core/schema/components/antd-mobile/index.d.ts +0 -7
  55. package/dist/client/core/schema/components/container/Container.Designer.d.ts +0 -1
  56. package/dist/client/core/schema/components/container/Container.d.ts +0 -7
  57. package/dist/client/core/schema/components/container/index.d.ts +0 -1
  58. package/dist/client/core/schema/components/container/style.d.ts +0 -5
  59. package/dist/client/core/schema/components/header/Header.Designer.d.ts +0 -1
  60. package/dist/client/core/schema/components/header/Header.d.ts +0 -11
  61. package/dist/client/core/schema/components/header/HeaderShareModal.d.ts +0 -6
  62. package/dist/client/core/schema/components/header/index.d.ts +0 -1
  63. package/dist/client/core/schema/components/header/style.d.ts +0 -8
  64. package/dist/client/core/schema/components/image-search/ImageSearch.configure.d.ts +0 -2
  65. package/dist/client/core/schema/components/image-search/ImageSearch.initializer.d.ts +0 -1
  66. package/dist/client/core/schema/components/image-search/ImageSearch.provider.d.ts +0 -4
  67. package/dist/client/core/schema/components/image-search/ImageSearch.schema.d.ts +0 -8
  68. package/dist/client/core/schema/components/image-search/ImageSearch.view.d.ts +0 -2
  69. package/dist/client/core/schema/components/image-search/hooks/index.d.ts +0 -1
  70. package/dist/client/core/schema/components/image-search/hooks/useSelect.d.ts +0 -3
  71. package/dist/client/core/schema/components/image-search/index.d.ts +0 -7
  72. package/dist/client/core/schema/components/image-search/search-item/ImageSearchItem.intializer.d.ts +0 -1
  73. package/dist/client/core/schema/components/image-search/search-item/ImageSearchItem.schema.d.ts +0 -11
  74. package/dist/client/core/schema/components/image-search/search-item/ImageSearchItem.setting.d.ts +0 -2
  75. package/dist/client/core/schema/components/image-search/search-item/ImageSearchItem.toolbar.d.ts +0 -1
  76. package/dist/client/core/schema/components/image-search/search-item/ImageSearchItem.view.d.ts +0 -2
  77. package/dist/client/core/schema/components/image-search/search-item/index.d.ts +0 -7
  78. package/dist/client/core/schema/components/image-search/search-item/useProps.Optional.d.ts +0 -17
  79. package/dist/client/core/schema/components/image-search/search-item/useProps.Related.d.ts +0 -7
  80. package/dist/client/core/schema/components/index.d.ts +0 -11
  81. package/dist/client/core/schema/components/menu/Menu.Designer.d.ts +0 -2
  82. package/dist/client/core/schema/components/menu/Menu.Item.d.ts +0 -6
  83. package/dist/client/core/schema/components/menu/Menu.d.ts +0 -9
  84. package/dist/client/core/schema/components/menu/MenuBlockInitializer.d.ts +0 -1
  85. package/dist/client/core/schema/components/menu/index.d.ts +0 -2
  86. package/dist/client/core/schema/components/menu/schema.d.ts +0 -17
  87. package/dist/client/core/schema/components/menu/style.d.ts +0 -4
  88. package/dist/client/core/schema/components/notice/index.d.ts +0 -1
  89. package/dist/client/core/schema/components/notice/schema-create/createGridCardBlockSchma.d.ts +0 -57
  90. package/dist/client/core/schema/components/notice/schema-initializer/NoticeBlockInitializer.d.ts +0 -2
  91. package/dist/client/core/schema/components/notice/schema-initializer/index.d.ts +0 -1
  92. package/dist/client/core/schema/components/page/Page.Designer.d.ts +0 -1
  93. package/dist/client/core/schema/components/page/Page.d.ts +0 -7
  94. package/dist/client/core/schema/components/page/index.d.ts +0 -1
  95. package/dist/client/core/schema/components/page/style.d.ts +0 -6
  96. package/dist/client/core/schema/components/settings/Settings.Designer.d.ts +0 -1
  97. package/dist/client/core/schema/components/settings/Settings.d.ts +0 -5
  98. package/dist/client/core/schema/components/settings/SettingsBlockInitializer.d.ts +0 -1
  99. package/dist/client/core/schema/components/settings/index.d.ts +0 -2
  100. package/dist/client/core/schema/components/swiper/SwiperBlock.d.ts +0 -2
  101. package/dist/client/core/schema/components/swiper/SwiperBlockInitializer.d.ts +0 -1
  102. package/dist/client/core/schema/components/swiper/SwiperFieldSettings.d.ts +0 -2
  103. package/dist/client/core/schema/components/swiper/SwiperPage.d.ts +0 -1
  104. package/dist/client/core/schema/components/swiper/index.d.ts +0 -5
  105. package/dist/client/core/schema/components/swiper/useSwiperBlockProps.d.ts +0 -9
  106. package/dist/client/core/schema/components/tab-bar/TabBar.Item.d.ts +0 -8
  107. package/dist/client/core/schema/components/tab-bar/TabBar.d.ts +0 -6
  108. package/dist/client/core/schema/components/tab-bar/index.d.ts +0 -1
  109. package/dist/client/core/schema/components/tab-bar/schema.d.ts +0 -18
  110. package/dist/client/core/schema/components/tab-search/components/TabSearch.d.ts +0 -1
  111. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputItem.d.ts +0 -2
  112. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputItemAction.d.ts +0 -18
  113. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputItemChild.d.ts +0 -4
  114. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputMItem.d.ts +0 -2
  115. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputMItemChild.d.ts +0 -4
  116. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchFieldItem.d.ts +0 -2
  117. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchFieldItemProps.d.ts +0 -11
  118. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchFieldMItem.d.ts +0 -8
  119. package/dist/client/core/schema/components/tab-search/components/field-item/TabSerachFieldItemRelatedProps.d.ts +0 -17
  120. package/dist/client/core/schema/components/tab-search/components/field-item/hooks.d.ts +0 -7
  121. package/dist/client/core/schema/components/tab-search/components/field-item/index.d.ts +0 -6
  122. package/dist/client/core/schema/components/tab-search/components/index.d.ts +0 -2
  123. package/dist/client/core/schema/components/tab-search/create/createTabSearchBlockSchema.d.ts +0 -6
  124. package/dist/client/core/schema/components/tab-search/create/createTabSearchItemSchema.d.ts +0 -24
  125. package/dist/client/core/schema/components/tab-search/index.d.ts +0 -4
  126. package/dist/client/core/schema/components/tab-search/initializer/TabSearchAssociated.fields.d.ts +0 -1
  127. package/dist/client/core/schema/components/tab-search/initializer/TabSearchBlockInitializer.d.ts +0 -1
  128. package/dist/client/core/schema/components/tab-search/initializer/TabSearchFieldSchemaInitializer.d.ts +0 -2
  129. package/dist/client/core/schema/components/tab-search/initializer/TabSearchFieldSchemaInitializerGadget.d.ts +0 -1
  130. package/dist/client/core/schema/components/tab-search/initializer/index.d.ts +0 -3
  131. package/dist/client/core/schema/components/tab-search/mapToMobile.d.ts +0 -1
  132. package/dist/client/core/schema/components/tab-search/provider/TabSearchProvider.d.ts +0 -1
  133. package/dist/client/core/schema/components/tab-search/provider/index.d.ts +0 -1
  134. package/dist/client/core/schema/components/tab-search/settings/TabSearchItemFieldSettings.d.ts +0 -2
  135. package/dist/client/core/schema/components/tab-search/settings/index.d.ts +0 -1
  136. package/dist/client/core/schema/components/tab-search/utils.d.ts +0 -8
  137. package/dist/client/core/schema/helpers/index.d.ts +0 -67
  138. package/dist/client/core/schema/hooks/index.d.ts +0 -1
  139. package/dist/client/core/schema/hooks/useSchemaPatch.d.ts +0 -3
  140. package/dist/client/core/schema/index.d.ts +0 -6
  141. package/dist/client/core/schema/initializers/BlockInitializers.d.ts +0 -2
  142. package/dist/client/core/schema/initializers/index.d.ts +0 -1
  143. package/dist/client/core/schema/scopes/grid-card.d.ts +0 -15
  144. package/dist/client/core/schema/scopes/index.d.ts +0 -1
  145. package/dist/client/devices/iOS6.d.ts +0 -6
  146. package/dist/client/devices/index.d.ts +0 -2
  147. package/dist/client/index.d.ts +0 -14
  148. package/dist/client/index.js +0 -488
  149. package/dist/client/locale/index.d.ts +0 -5
  150. package/dist/client/plugin-data-select/DataSelect.d.ts +0 -33
  151. package/dist/client/plugin-data-select/PluginDataSelect.d.ts +0 -4
  152. package/dist/client/plugin-data-select/settings.d.ts +0 -7
  153. package/dist/client/router/Application.d.ts +0 -3
  154. package/dist/client/router/InterfaceProvider.d.ts +0 -4
  155. package/dist/client/router/InterfaceRouter.d.ts +0 -2
  156. package/dist/client/router/OpenInNewTab.d.ts +0 -1
  157. package/dist/client/router/index.d.ts +0 -1
  158. package/dist/env.d.js +0 -0
  159. package/dist/externalVersion.js +0 -17
  160. package/dist/index.d.ts +0 -2
  161. package/dist/index.js +0 -39
  162. package/dist/locale/antd/ar_EG.js +0 -1
  163. package/dist/locale/antd/az_AZ.js +0 -1
  164. package/dist/locale/antd/bg_BG.js +0 -1
  165. package/dist/locale/antd/bn_BD.js +0 -1
  166. package/dist/locale/antd/by_BY.js +0 -1
  167. package/dist/locale/antd/ca_ES.js +0 -1
  168. package/dist/locale/antd/cs_CZ.js +0 -1
  169. package/dist/locale/antd/da_DK.js +0 -1
  170. package/dist/locale/antd/de_DE.js +0 -1
  171. package/dist/locale/antd/el_GR.js +0 -1
  172. package/dist/locale/antd/en_GB.js +0 -1
  173. package/dist/locale/antd/en_US.js +0 -1
  174. package/dist/locale/antd/es_ES.js +0 -1
  175. package/dist/locale/antd/et_EE.js +0 -1
  176. package/dist/locale/antd/eu_ES.js +0 -1
  177. package/dist/locale/antd/fa_IR.js +0 -1
  178. package/dist/locale/antd/fi_FI.js +0 -1
  179. package/dist/locale/antd/fr_BE.js +0 -1
  180. package/dist/locale/antd/fr_CA.js +0 -1
  181. package/dist/locale/antd/fr_FR.js +0 -1
  182. package/dist/locale/antd/ga_IE.js +0 -1
  183. package/dist/locale/antd/gl_ES.js +0 -1
  184. package/dist/locale/antd/he_IL.js +0 -1
  185. package/dist/locale/antd/hi_IN.js +0 -1
  186. package/dist/locale/antd/hr_HR.js +0 -1
  187. package/dist/locale/antd/hu_HU.js +0 -1
  188. package/dist/locale/antd/hy_AM.js +0 -1
  189. package/dist/locale/antd/id_ID.js +0 -1
  190. package/dist/locale/antd/index.js +0 -1
  191. package/dist/locale/antd/is_IS.js +0 -1
  192. package/dist/locale/antd/it_IT.js +0 -1
  193. package/dist/locale/antd/ja_JP.js +0 -1
  194. package/dist/locale/antd/ka_GE.js +0 -1
  195. package/dist/locale/antd/kk_KZ.js +0 -1
  196. package/dist/locale/antd/km_KH.js +0 -1
  197. package/dist/locale/antd/kmr_IQ.js +0 -1
  198. package/dist/locale/antd/kn_IN.js +0 -1
  199. package/dist/locale/antd/ko_KR.js +0 -1
  200. package/dist/locale/antd/ku_IQ.js +0 -1
  201. package/dist/locale/antd/lt_LT.js +0 -1
  202. package/dist/locale/antd/lv_LV.js +0 -1
  203. package/dist/locale/antd/mk_MK.js +0 -1
  204. package/dist/locale/antd/ml_IN.js +0 -1
  205. package/dist/locale/antd/mn_MN.js +0 -1
  206. package/dist/locale/antd/ms_MY.js +0 -1
  207. package/dist/locale/antd/my_MM.js +0 -1
  208. package/dist/locale/antd/nb_NO.js +0 -1
  209. package/dist/locale/antd/ne_NP.js +0 -1
  210. package/dist/locale/antd/nl_BE.js +0 -1
  211. package/dist/locale/antd/nl_NL.js +0 -1
  212. package/dist/locale/antd/pl_PL.js +0 -1
  213. package/dist/locale/antd/pt_BR.js +0 -1
  214. package/dist/locale/antd/pt_PT.js +0 -1
  215. package/dist/locale/antd/ro_RO.js +0 -1
  216. package/dist/locale/antd/ru_RU.js +0 -1
  217. package/dist/locale/antd/si_LK.js +0 -1
  218. package/dist/locale/antd/sk_SK.js +0 -1
  219. package/dist/locale/antd/sl_SI.js +0 -1
  220. package/dist/locale/antd/sr_RS.js +0 -1
  221. package/dist/locale/antd/sv_SE.js +0 -1
  222. package/dist/locale/antd/ta_IN.js +0 -1
  223. package/dist/locale/antd/th_TH.js +0 -1
  224. package/dist/locale/antd/tk_TK.js +0 -1
  225. package/dist/locale/antd/tr_TR.js +0 -1
  226. package/dist/locale/antd/uk_UA.js +0 -1
  227. package/dist/locale/antd/ur_PK.js +0 -1
  228. package/dist/locale/antd/useLocale.js +0 -1
  229. package/dist/locale/antd/uz_UZ.js +0 -1
  230. package/dist/locale/antd/vi_VN.js +0 -1
  231. package/dist/locale/antd/zh_CN.js +0 -1
  232. package/dist/locale/antd/zh_HK.js +0 -1
  233. package/dist/locale/antd/zh_TW.js +0 -1
  234. package/dist/locale/cron/zh_CN.js +0 -33
  235. package/dist/locale/cron/zh_TW.js +0 -33
  236. package/dist/locale/en_US.js +0 -906
  237. package/dist/locale/es_ES.js +0 -755
  238. package/dist/locale/fr_FR.js +0 -775
  239. package/dist/locale/index.js +0 -165
  240. package/dist/locale/ja_JP.js +0 -694
  241. package/dist/locale/ko_KR.js +0 -890
  242. package/dist/locale/pt_BR.js +0 -734
  243. package/dist/locale/ru_RU.js +0 -570
  244. package/dist/locale/tr_TR.js +0 -567
  245. package/dist/locale/uk_UA.js +0 -775
  246. package/dist/locale/zh-CN.js +0 -1072
  247. package/dist/locale/zh-TW.js +0 -862
  248. package/dist/node_modules/cronstrue/LICENSE +0 -21
  249. package/dist/node_modules/cronstrue/bin/cli.js +0 -26
  250. package/dist/node_modules/cronstrue/dist/cronParser.d.ts +0 -13
  251. package/dist/node_modules/cronstrue/dist/cronstrue-i18n.d.ts +0 -4
  252. package/dist/node_modules/cronstrue/dist/cronstrue-i18n.js +0 -7938
  253. package/dist/node_modules/cronstrue/dist/cronstrue-i18n.min.js +0 -1
  254. package/dist/node_modules/cronstrue/dist/cronstrue.d.ts +0 -4
  255. package/dist/node_modules/cronstrue/dist/cronstrue.js +0 -1
  256. package/dist/node_modules/cronstrue/dist/cronstrue.min.js +0 -1
  257. package/dist/node_modules/cronstrue/dist/expressionDescriptor.d.ts +0 -31
  258. package/dist/node_modules/cronstrue/dist/i18n/allLocales.d.ts +0 -37
  259. package/dist/node_modules/cronstrue/dist/i18n/allLocalesLoader.d.ts +0 -6
  260. package/dist/node_modules/cronstrue/dist/i18n/enLocaleLoader.d.ts +0 -6
  261. package/dist/node_modules/cronstrue/dist/i18n/locale.d.ts +0 -62
  262. package/dist/node_modules/cronstrue/dist/i18n/localeLoader.d.ts +0 -6
  263. package/dist/node_modules/cronstrue/dist/i18n/locales/af.d.ts +0 -56
  264. package/dist/node_modules/cronstrue/dist/i18n/locales/ar.d.ts +0 -56
  265. package/dist/node_modules/cronstrue/dist/i18n/locales/be.d.ts +0 -55
  266. package/dist/node_modules/cronstrue/dist/i18n/locales/bg.d.ts +0 -56
  267. package/dist/node_modules/cronstrue/dist/i18n/locales/ca.d.ts +0 -55
  268. package/dist/node_modules/cronstrue/dist/i18n/locales/cs.d.ts +0 -55
  269. package/dist/node_modules/cronstrue/dist/i18n/locales/da.d.ts +0 -55
  270. package/dist/node_modules/cronstrue/dist/i18n/locales/de.d.ts +0 -55
  271. package/dist/node_modules/cronstrue/dist/i18n/locales/en.d.ts +0 -56
  272. package/dist/node_modules/cronstrue/dist/i18n/locales/es.d.ts +0 -55
  273. package/dist/node_modules/cronstrue/dist/i18n/locales/fa.d.ts +0 -57
  274. package/dist/node_modules/cronstrue/dist/i18n/locales/fi.d.ts +0 -58
  275. package/dist/node_modules/cronstrue/dist/i18n/locales/fr.d.ts +0 -56
  276. package/dist/node_modules/cronstrue/dist/i18n/locales/he.d.ts +0 -55
  277. package/dist/node_modules/cronstrue/dist/i18n/locales/hu.d.ts +0 -56
  278. package/dist/node_modules/cronstrue/dist/i18n/locales/id.d.ts +0 -56
  279. package/dist/node_modules/cronstrue/dist/i18n/locales/it.d.ts +0 -55
  280. package/dist/node_modules/cronstrue/dist/i18n/locales/ja.d.ts +0 -60
  281. package/dist/node_modules/cronstrue/dist/i18n/locales/ko.d.ts +0 -60
  282. package/dist/node_modules/cronstrue/dist/i18n/locales/my.d.ts +0 -56
  283. package/dist/node_modules/cronstrue/dist/i18n/locales/nb.d.ts +0 -55
  284. package/dist/node_modules/cronstrue/dist/i18n/locales/nl.d.ts +0 -55
  285. package/dist/node_modules/cronstrue/dist/i18n/locales/pl.d.ts +0 -55
  286. package/dist/node_modules/cronstrue/dist/i18n/locales/pt_BR.d.ts +0 -55
  287. package/dist/node_modules/cronstrue/dist/i18n/locales/pt_PT.d.ts +0 -55
  288. package/dist/node_modules/cronstrue/dist/i18n/locales/ro.d.ts +0 -55
  289. package/dist/node_modules/cronstrue/dist/i18n/locales/ru.d.ts +0 -58
  290. package/dist/node_modules/cronstrue/dist/i18n/locales/sk.d.ts +0 -55
  291. package/dist/node_modules/cronstrue/dist/i18n/locales/sl.d.ts +0 -55
  292. package/dist/node_modules/cronstrue/dist/i18n/locales/sv.d.ts +0 -55
  293. package/dist/node_modules/cronstrue/dist/i18n/locales/sw.d.ts +0 -55
  294. package/dist/node_modules/cronstrue/dist/i18n/locales/th.d.ts +0 -56
  295. package/dist/node_modules/cronstrue/dist/i18n/locales/tr.d.ts +0 -55
  296. package/dist/node_modules/cronstrue/dist/i18n/locales/uk.d.ts +0 -55
  297. package/dist/node_modules/cronstrue/dist/i18n/locales/vi.d.ts +0 -56
  298. package/dist/node_modules/cronstrue/dist/i18n/locales/zh_CN.d.ts +0 -61
  299. package/dist/node_modules/cronstrue/dist/i18n/locales/zh_TW.d.ts +0 -58
  300. package/dist/node_modules/cronstrue/dist/options.d.ts +0 -9
  301. package/dist/node_modules/cronstrue/dist/rangeValidator.d.ts +0 -8
  302. package/dist/node_modules/cronstrue/dist/stringUtilities.d.ts +0 -4
  303. package/dist/node_modules/cronstrue/i18n.d.ts +0 -4
  304. package/dist/node_modules/cronstrue/i18n.js +0 -5
  305. package/dist/node_modules/cronstrue/locales/af.js +0 -283
  306. package/dist/node_modules/cronstrue/locales/af.min.js +0 -1
  307. package/dist/node_modules/cronstrue/locales/ar.js +0 -283
  308. package/dist/node_modules/cronstrue/locales/ar.min.js +0 -1
  309. package/dist/node_modules/cronstrue/locales/be.js +0 -280
  310. package/dist/node_modules/cronstrue/locales/be.min.js +0 -1
  311. package/dist/node_modules/cronstrue/locales/bg.js +0 -286
  312. package/dist/node_modules/cronstrue/locales/bg.min.js +0 -1
  313. package/dist/node_modules/cronstrue/locales/ca.js +0 -280
  314. package/dist/node_modules/cronstrue/locales/ca.min.js +0 -1
  315. package/dist/node_modules/cronstrue/locales/cs.js +0 -280
  316. package/dist/node_modules/cronstrue/locales/cs.min.js +0 -1
  317. package/dist/node_modules/cronstrue/locales/da.js +0 -280
  318. package/dist/node_modules/cronstrue/locales/da.min.js +0 -1
  319. package/dist/node_modules/cronstrue/locales/de.js +0 -280
  320. package/dist/node_modules/cronstrue/locales/de.min.js +0 -1
  321. package/dist/node_modules/cronstrue/locales/en.js +0 -283
  322. package/dist/node_modules/cronstrue/locales/en.min.js +0 -1
  323. package/dist/node_modules/cronstrue/locales/es.js +0 -280
  324. package/dist/node_modules/cronstrue/locales/es.min.js +0 -1
  325. package/dist/node_modules/cronstrue/locales/fa.js +0 -273
  326. package/dist/node_modules/cronstrue/locales/fa.min.js +0 -1
  327. package/dist/node_modules/cronstrue/locales/fi.js +0 -289
  328. package/dist/node_modules/cronstrue/locales/fi.min.js +0 -1
  329. package/dist/node_modules/cronstrue/locales/fr.js +0 -283
  330. package/dist/node_modules/cronstrue/locales/fr.min.js +0 -1
  331. package/dist/node_modules/cronstrue/locales/he.js +0 -267
  332. package/dist/node_modules/cronstrue/locales/he.min.js +0 -1
  333. package/dist/node_modules/cronstrue/locales/hu.js +0 -283
  334. package/dist/node_modules/cronstrue/locales/hu.min.js +0 -1
  335. package/dist/node_modules/cronstrue/locales/id.js +0 -283
  336. package/dist/node_modules/cronstrue/locales/id.min.js +0 -1
  337. package/dist/node_modules/cronstrue/locales/it.js +0 -280
  338. package/dist/node_modules/cronstrue/locales/it.min.js +0 -1
  339. package/dist/node_modules/cronstrue/locales/ja.js +0 -282
  340. package/dist/node_modules/cronstrue/locales/ja.min.js +0 -1
  341. package/dist/node_modules/cronstrue/locales/ko.js +0 -282
  342. package/dist/node_modules/cronstrue/locales/ko.min.js +0 -1
  343. package/dist/node_modules/cronstrue/locales/my.js +0 -283
  344. package/dist/node_modules/cronstrue/locales/my.min.js +0 -1
  345. package/dist/node_modules/cronstrue/locales/nb.js +0 -280
  346. package/dist/node_modules/cronstrue/locales/nb.min.js +0 -1
  347. package/dist/node_modules/cronstrue/locales/nl.js +0 -280
  348. package/dist/node_modules/cronstrue/locales/nl.min.js +0 -1
  349. package/dist/node_modules/cronstrue/locales/pl.js +0 -280
  350. package/dist/node_modules/cronstrue/locales/pl.min.js +0 -1
  351. package/dist/node_modules/cronstrue/locales/pt_BR.js +0 -280
  352. package/dist/node_modules/cronstrue/locales/pt_BR.min.js +0 -1
  353. package/dist/node_modules/cronstrue/locales/pt_PT.js +0 -280
  354. package/dist/node_modules/cronstrue/locales/pt_PT.min.js +0 -1
  355. package/dist/node_modules/cronstrue/locales/ro.js +0 -280
  356. package/dist/node_modules/cronstrue/locales/ro.min.js +0 -1
  357. package/dist/node_modules/cronstrue/locales/ru.js +0 -323
  358. package/dist/node_modules/cronstrue/locales/ru.min.js +0 -1
  359. package/dist/node_modules/cronstrue/locales/sk.js +0 -280
  360. package/dist/node_modules/cronstrue/locales/sk.min.js +0 -1
  361. package/dist/node_modules/cronstrue/locales/sl.js +0 -280
  362. package/dist/node_modules/cronstrue/locales/sl.min.js +0 -1
  363. package/dist/node_modules/cronstrue/locales/sv.js +0 -280
  364. package/dist/node_modules/cronstrue/locales/sv.min.js +0 -1
  365. package/dist/node_modules/cronstrue/locales/sw.js +0 -280
  366. package/dist/node_modules/cronstrue/locales/sw.min.js +0 -1
  367. package/dist/node_modules/cronstrue/locales/th.js +0 -283
  368. package/dist/node_modules/cronstrue/locales/th.min.js +0 -1
  369. package/dist/node_modules/cronstrue/locales/tr.js +0 -280
  370. package/dist/node_modules/cronstrue/locales/tr.min.js +0 -1
  371. package/dist/node_modules/cronstrue/locales/uk.js +0 -280
  372. package/dist/node_modules/cronstrue/locales/uk.min.js +0 -1
  373. package/dist/node_modules/cronstrue/locales/vi.js +0 -283
  374. package/dist/node_modules/cronstrue/locales/vi.min.js +0 -1
  375. package/dist/node_modules/cronstrue/locales/zh_CN.js +0 -285
  376. package/dist/node_modules/cronstrue/locales/zh_CN.min.js +0 -1
  377. package/dist/node_modules/cronstrue/locales/zh_TW.js +0 -276
  378. package/dist/node_modules/cronstrue/locales/zh_TW.min.js +0 -1
  379. package/dist/node_modules/cronstrue/package.json +0 -1
  380. package/dist/server/antd.d.ts +0 -1
  381. package/dist/server/antd.js +0 -45
  382. package/dist/server/cron.d.ts +0 -1
  383. package/dist/server/cron.js +0 -44
  384. package/dist/server/cronstrue.d.ts +0 -1
  385. package/dist/server/cronstrue.js +0 -136
  386. package/dist/server/index.d.ts +0 -1
  387. package/dist/server/index.js +0 -33
  388. package/dist/server/migrations/20230620203216-admin-ui-schema-uid.d.ts +0 -5
  389. package/dist/server/migrations/20230620203216-admin-ui-schema-uid.js +0 -67
  390. package/dist/server/migrations/20231215215247-admin-menu-uid.d.ts +0 -5
  391. package/dist/server/migrations/20231215215247-admin-menu-uid.js +0 -79
  392. package/dist/server/migrations/20250116160330-update-uiSchemas.d.ts +0 -6
  393. package/dist/server/migrations/20250116160330-update-uiSchemas.js +0 -57
  394. package/dist/server/server.d.ts +0 -7
  395. package/dist/server/server.js +0 -161
  396. package/dist/swagger/index.json +0 -7
@@ -1,44 +0,0 @@
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 cron_exports = {};
19
- __export(cron_exports, {
20
- getCronLocale: () => getCronLocale
21
- });
22
- module.exports = __toCommonJS(cron_exports);
23
- var import_path = require("path");
24
- var import_utils = require("@tachybase/utils");
25
- const getCronLocale = (lang) => {
26
- const lng = lang.replace("-", "_");
27
- const files = [(0, import_path.resolve)(__dirname, `./../../../client/src/locale/cron/${lng}`)];
28
- if (process.env.APP_ENV !== "production") {
29
- files.push(`@tachybase/client/src/locale/cron/${lng}`, `@tachybase/client/lib/locale/cron/${lng}`);
30
- }
31
- for (const file of files) {
32
- try {
33
- require.resolve(file);
34
- return (0, import_utils.requireModule)(file);
35
- } catch (error) {
36
- continue;
37
- }
38
- }
39
- return {};
40
- };
41
- // Annotate the CommonJS export names for ESM import in node:
42
- 0 && (module.exports = {
43
- getCronLocale
44
- });
@@ -1 +0,0 @@
1
- export declare const getCronstrueLocale: (lang: any) => {};
@@ -1,136 +0,0 @@
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 cronstrue_exports = {};
19
- __export(cronstrue_exports, {
20
- getCronstrueLocale: () => getCronstrueLocale
21
- });
22
- module.exports = __toCommonJS(cronstrue_exports);
23
- const methods = [
24
- "atX0SecondsPastTheMinuteGt20",
25
- "atX0MinutesPastTheHourGt20",
26
- "commaMonthX0ThroughMonthX1",
27
- "commaYearX0ThroughYearX1",
28
- "use24HourTimeFormatByDefault",
29
- "anErrorOccuredWhenGeneratingTheExpressionD",
30
- "everyMinute",
31
- "everyHour",
32
- "atSpace",
33
- "everyMinuteBetweenX0AndX1",
34
- "at",
35
- "spaceAnd",
36
- "everySecond",
37
- "everyX0Seconds",
38
- "secondsX0ThroughX1PastTheMinute",
39
- "atX0SecondsPastTheMinute",
40
- "everyX0Minutes",
41
- "minutesX0ThroughX1PastTheHour",
42
- "atX0MinutesPastTheHour",
43
- "everyX0Hours",
44
- "betweenX0AndX1",
45
- "atX0",
46
- "commaEveryDay",
47
- "commaEveryX0DaysOfTheWeek",
48
- "commaX0ThroughX1",
49
- "commaAndX0ThroughX1",
50
- "first",
51
- "second",
52
- "third",
53
- "fourth",
54
- "fifth",
55
- "commaOnThe",
56
- "spaceX0OfTheMonth",
57
- "lastDay",
58
- "commaOnTheLastX0OfTheMonth",
59
- "commaOnlyOnX0",
60
- "commaAndOnX0",
61
- "commaEveryX0Months",
62
- "commaOnlyInX0",
63
- "commaOnTheLastDayOfTheMonth",
64
- "commaOnTheLastWeekdayOfTheMonth",
65
- "commaDaysBeforeTheLastDayOfTheMonth",
66
- "firstWeekday",
67
- "weekdayNearestDayX0",
68
- "commaOnTheX0OfTheMonth",
69
- "commaEveryX0Days",
70
- "commaBetweenDayX0AndX1OfTheMonth",
71
- "commaOnDayX0OfTheMonth",
72
- "commaEveryHour",
73
- "commaEveryX0Years",
74
- "commaStartingX0",
75
- "daysOfTheWeek",
76
- "monthsOfTheYear"
77
- ];
78
- const langs = {
79
- af: "af",
80
- ar: "ar",
81
- be: "be",
82
- ca: "ca",
83
- cs: "cs",
84
- da: "da",
85
- de: "de",
86
- "en-US": "en",
87
- es: "es",
88
- fa: "fa",
89
- fi: "fi",
90
- fr: "fr",
91
- he: "he",
92
- hu: "hu",
93
- id: "id",
94
- it: "it",
95
- "ja-JP": "ja",
96
- ko: "ko",
97
- nb: "nb",
98
- nl: "nl",
99
- pl: "pl",
100
- pt_BR: "pt_BR",
101
- pt_PT: "pt_PT",
102
- ro: "ro",
103
- "ru-RU": "ru",
104
- sk: "sk",
105
- sl: "sl",
106
- sv: "sv",
107
- sw: "sw",
108
- "th-TH": "th",
109
- "tr-TR": "tr",
110
- uk: "uk",
111
- "zh-CN": "zh_CN",
112
- "zh-TW": "zh_TW"
113
- };
114
- const getCronstrueLocale = (lang) => {
115
- const lng = langs[lang] || "en";
116
- const Locale = require(`cronstrue/locales/${lng}`);
117
- let locale;
118
- if (Locale == null ? void 0 : Locale.default) {
119
- locale = Locale.default.locales[lng];
120
- } else {
121
- const L = Locale[lng];
122
- locale = new L();
123
- }
124
- const items = {};
125
- for (const method of methods) {
126
- try {
127
- items[method] = locale[method]();
128
- } catch (error) {
129
- }
130
- }
131
- return items;
132
- };
133
- // Annotate the CommonJS export names for ESM import in node:
134
- 0 && (module.exports = {
135
- getCronstrueLocale
136
- });
@@ -1 +0,0 @@
1
- export { default } from './server';
@@ -1,33 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
- var server_exports = {};
29
- __export(server_exports, {
30
- default: () => import_server.default
31
- });
32
- module.exports = __toCommonJS(server_exports);
33
- var import_server = __toESM(require("./server"));
@@ -1,5 +0,0 @@
1
- import { Migration } from '@tachybase/server';
2
- export default class extends Migration {
3
- appVersion: string;
4
- up(): Promise<void>;
5
- }
@@ -1,67 +0,0 @@
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_ui_schema_uid_exports = {};
19
- __export(admin_ui_schema_uid_exports, {
20
- default: () => admin_ui_schema_uid_default
21
- });
22
- module.exports = __toCommonJS(admin_ui_schema_uid_exports);
23
- var import_server = require("@tachybase/server");
24
- class admin_ui_schema_uid_default extends import_server.Migration {
25
- constructor() {
26
- super(...arguments);
27
- this.appVersion = "<0.14.0-alpha.1";
28
- }
29
- async up() {
30
- var _a, _b, _c;
31
- const result = await this.app.version.satisfies("<0.14.0-alpha.1");
32
- if (!result) {
33
- return;
34
- }
35
- await this.db.getCollection("systemSettings").sync({
36
- force: false,
37
- alter: {
38
- drop: false
39
- }
40
- });
41
- const systemSettings = this.db.getRepository("systemSettings");
42
- let instance = await systemSettings.findOne();
43
- if ((_a = instance == null ? void 0 : instance.options) == null ? void 0 : _a.adminSchemaUid) {
44
- return;
45
- }
46
- const uiRoutes = this.db.getRepository("uiRoutes");
47
- if (!uiRoutes) {
48
- return;
49
- }
50
- const routes = await uiRoutes.find();
51
- for (const route of routes) {
52
- if (route.uiSchemaUid && ((_b = route == null ? void 0 : route.options) == null ? void 0 : _b.component) === "AdminLayout") {
53
- const options = instance.options || {};
54
- options["adminSchemaUid"] = route.uiSchemaUid;
55
- instance.set("options", options);
56
- instance.changed("options", true);
57
- await instance.save();
58
- return;
59
- }
60
- }
61
- instance = await systemSettings.findOne();
62
- if (!((_c = instance == null ? void 0 : instance.options) == null ? void 0 : _c.adminSchemaUid)) {
63
- throw new Error("adminSchemaUid invalid");
64
- }
65
- this.app.logger.info("systemSettings.options", instance.toJSON());
66
- }
67
- }
@@ -1,5 +0,0 @@
1
- import { Migration } from '@tachybase/server';
2
- export default class extends Migration {
3
- appVersion: string;
4
- up(): Promise<void>;
5
- }
@@ -1,79 +0,0 @@
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("@tachybase/server");
24
- class admin_menu_uid_default extends import_server.Migration {
25
- constructor() {
26
- super(...arguments);
27
- this.appVersion = "<0.17.0-alpha.8";
28
- }
29
- async up() {
30
- var _a, _b;
31
- const result = await this.app.version.satisfies("<0.17.0-alpha.8");
32
- if (!result) {
33
- return;
34
- }
35
- const systemSettings = this.db.getRepository("systemSettings");
36
- const instance = await systemSettings.findOne();
37
- if (!((_a = instance == null ? void 0 : instance.options) == null ? void 0 : _a.adminSchemaUid)) {
38
- return;
39
- }
40
- const UiSchemas = this.db.getModel("uiSchemas");
41
- await this.db.sequelize.transaction(async (transaction) => {
42
- var _a2, _b2, _c;
43
- await UiSchemas.update(
44
- {
45
- "x-uid": "default-admin-menu"
46
- },
47
- {
48
- transaction,
49
- where: {
50
- "x-uid": (_a2 = instance == null ? void 0 : instance.options) == null ? void 0 : _a2.adminSchemaUid
51
- }
52
- }
53
- );
54
- await this.db.getModel("uiSchemaTreePath").update(
55
- {
56
- descendant: "default-admin-menu"
57
- },
58
- {
59
- transaction,
60
- where: {
61
- descendant: (_b2 = instance == null ? void 0 : instance.options) == null ? void 0 : _b2.adminSchemaUid
62
- }
63
- }
64
- );
65
- await this.db.getModel("uiSchemaTreePath").update(
66
- {
67
- ancestor: "default-admin-menu"
68
- },
69
- {
70
- transaction,
71
- where: {
72
- ancestor: (_c = instance == null ? void 0 : instance.options) == null ? void 0 : _c.adminSchemaUid
73
- }
74
- }
75
- );
76
- });
77
- console.log((_b = instance == null ? void 0 : instance.options) == null ? void 0 : _b.adminSchemaUid);
78
- }
79
- }
@@ -1,6 +0,0 @@
1
- import { Migration } from '@tachybase/server';
2
- export default class extends Migration {
3
- on: string;
4
- appVersion: string;
5
- up(): Promise<void>;
6
- }
@@ -1,57 +0,0 @@
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 update_uiSchemas_exports = {};
19
- __export(update_uiSchemas_exports, {
20
- default: () => update_uiSchemas_default
21
- });
22
- module.exports = __toCommonJS(update_uiSchemas_exports);
23
- var import_server = require("@tachybase/server");
24
- class update_uiSchemas_default extends import_server.Migration {
25
- constructor() {
26
- super(...arguments);
27
- this.on = "afterLoad";
28
- // 'beforeLoad' or 'afterLoad'
29
- this.appVersion = "<0.23.37";
30
- }
31
- async up() {
32
- const uiSchemasRepo = this.db.getRepository("uiSchemas");
33
- const xUid = "default-admin-menu";
34
- await uiSchemasRepo.update({
35
- filter: {
36
- "x-uid": xUid
37
- },
38
- values: {
39
- schema: {
40
- type: "void",
41
- "x-designer": "Menu.Designer",
42
- "x-initializer": "menuInitializers:menuItem",
43
- "x-component": "Menu",
44
- "x-component-props": {
45
- mode: "mix",
46
- theme: "dark",
47
- onSelect: "{{ onSelect }}",
48
- sideMenuRefScopeKey: "sideMenuRef"
49
- }
50
- }
51
- }
52
- });
53
- await this.app.cache.del(`p_${xUid}`);
54
- await this.app.cache.del(`s_${xUid}`);
55
- this.app.logger.info(`collection [uiSchemas] update ${1} rows`);
56
- }
57
- }
@@ -1,7 +0,0 @@
1
- import { Plugin } from '@tachybase/server';
2
- export declare class ModuleWeb extends Plugin {
3
- beforeLoad(): Promise<void>;
4
- install(): Promise<void>;
5
- load(): Promise<void>;
6
- }
7
- export default ModuleWeb;
@@ -1,161 +0,0 @@
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 server_exports = {};
19
- __export(server_exports, {
20
- ModuleWeb: () => ModuleWeb,
21
- default: () => server_default
22
- });
23
- module.exports = __toCommonJS(server_exports);
24
- var import_server = require("@tachybase/server");
25
- var import_antd = require("./antd");
26
- var import_cron = require("./cron");
27
- var import_cronstrue = require("./cronstrue");
28
- async function getLang(ctx) {
29
- const SystemSetting = ctx.db.getRepository("systemSettings");
30
- const systemSetting = await SystemSetting.findOne();
31
- const enabledLanguages = systemSetting.get("enabledLanguages") || [];
32
- const currentUser = ctx.state.currentUser;
33
- let lang = (enabledLanguages == null ? void 0 : enabledLanguages[0]) || process.env.APP_LANG || "en-US";
34
- if (enabledLanguages.includes(currentUser == null ? void 0 : currentUser.appLang)) {
35
- lang = currentUser == null ? void 0 : currentUser.appLang;
36
- }
37
- if (ctx.request.query.locale && enabledLanguages.includes(ctx.request.query.locale)) {
38
- lang = ctx.request.query.locale;
39
- }
40
- return lang;
41
- }
42
- class ModuleWeb extends import_server.Plugin {
43
- async beforeLoad() {
44
- }
45
- async install() {
46
- const uiSchemas = this.db.getRepository("uiSchemas");
47
- await uiSchemas.insert({
48
- type: "void",
49
- "x-uid": "default-admin-menu",
50
- "x-designer": "Menu.Designer",
51
- "x-initializer": "menuInitializers:menuItem",
52
- "x-component": "Menu",
53
- "x-component-props": {
54
- mode: "mix",
55
- theme: "dark",
56
- onSelect: "{{ onSelect }}",
57
- sideMenuRefScopeKey: "sideMenuRef"
58
- },
59
- properties: {}
60
- });
61
- await uiSchemas.insert({
62
- type: "void",
63
- "x-uid": "default-admin-mobile",
64
- "x-component": "MContainer",
65
- "x-designer": "MContainer.Designer",
66
- "x-component-props": {},
67
- properties: {
68
- page: {
69
- type: "void",
70
- "x-component": "MPage",
71
- "x-designer": "MPage.Designer",
72
- "x-component-props": {},
73
- properties: {
74
- grid: {
75
- type: "void",
76
- "x-component": "Grid",
77
- "x-initializer": "mobilePage:addBlock",
78
- "x-component-props": {
79
- showDivider: false
80
- }
81
- }
82
- }
83
- }
84
- }
85
- });
86
- }
87
- async load() {
88
- this.app.localeManager.setLocaleFn("antd", async (lang) => (0, import_antd.getAntdLocale)(lang));
89
- this.app.localeManager.setLocaleFn("cronstrue", async (lang) => (0, import_cronstrue.getCronstrueLocale)(lang));
90
- this.app.localeManager.setLocaleFn("cron", async (lang) => (0, import_cron.getCronLocale)(lang));
91
- this.app.acl.allow("app", "getLang");
92
- this.app.acl.allow("app", "getInfo");
93
- this.app.acl.registerSnippet({
94
- name: "app",
95
- actions: ["app:restart", "app:refresh", "app:clearCache"]
96
- });
97
- const dialect = this.app.db.sequelize.getDialect();
98
- this.app.resourcer.define({
99
- name: "app",
100
- actions: {
101
- async getInfo(ctx, next) {
102
- var _a, _b;
103
- const SystemSetting = ctx.db.getRepository("systemSettings");
104
- const systemSetting = await SystemSetting.findOne();
105
- const enabledLanguages = systemSetting.get("enabledLanguages") || [];
106
- const currentUser = ctx.state.currentUser;
107
- let lang = (enabledLanguages == null ? void 0 : enabledLanguages[0]) || process.env.APP_LANG || "en-US";
108
- if (enabledLanguages.includes(currentUser == null ? void 0 : currentUser.appLang)) {
109
- lang = currentUser == null ? void 0 : currentUser.appLang;
110
- }
111
- ctx.body = {
112
- database: {
113
- dialect
114
- },
115
- version: await ctx.app.version.get(),
116
- lang,
117
- name: ctx.app.name,
118
- theme: ((_a = currentUser == null ? void 0 : currentUser.systemSettings) == null ? void 0 : _a.theme) || ((_b = systemSetting == null ? void 0 : systemSetting.options) == null ? void 0 : _b.theme) || "default"
119
- };
120
- await next();
121
- },
122
- async getLang(ctx, next) {
123
- const lang = await getLang(ctx);
124
- const app = ctx.app;
125
- const eTag = await app.localeManager.getETag(lang);
126
- const resources = await app.localeManager.get(lang);
127
- const requestETag = ctx.get("If-None-Match");
128
- if (eTag && eTag === requestETag.substring(0 + 2, 36 + 2)) {
129
- ctx.status = 304;
130
- ctx.res.setHeader("ETag", requestETag);
131
- } else {
132
- const newTag = `W/${eTag}-${requestETag.substring(36 + 1 + 2)}`;
133
- ctx.res.setHeader("ETag", newTag);
134
- }
135
- ctx.body = {
136
- lang,
137
- ...resources
138
- };
139
- await next();
140
- },
141
- async clearCache(ctx, next) {
142
- await ctx.cache.reset();
143
- await next();
144
- },
145
- async restart(ctx, next) {
146
- ctx.app.runAsCLI(["restart"], { from: "user" });
147
- await next();
148
- },
149
- async refresh(ctx, next) {
150
- ctx.app.runCommand("refresh");
151
- await next();
152
- }
153
- }
154
- });
155
- }
156
- }
157
- var server_default = ModuleWeb;
158
- // Annotate the CommonJS export names for ESM import in node:
159
- 0 && (module.exports = {
160
- ModuleWeb
161
- });
@@ -1,7 +0,0 @@
1
- {
2
- "info": {
3
- "title": "TachyBase API - Module Web"
4
- },
5
- "openapi": "3.0.2",
6
- "paths": {}
7
- }