@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.
- package/LICENSE +201 -0
- package/package.json +11 -11
- package/dist/client/MAppNotFound.d.ts +0 -1
- package/dist/client/MobileClientProvider.d.ts +0 -2
- package/dist/client/MobileLinkProvider.d.ts +0 -1
- package/dist/client/assistant-tool/Designable/DesignableButtonProvider.d.ts +0 -1
- package/dist/client/assistant-tool/Designable/plugin.d.ts +0 -5
- package/dist/client/assistant-tool/calculator/AutoScalingText.d.ts +0 -3
- package/dist/client/assistant-tool/calculator/Calculator.d.ts +0 -2
- package/dist/client/assistant-tool/calculator/CalculatorDisplay.d.ts +0 -4
- package/dist/client/assistant-tool/calculator/CalculatorKey.d.ts +0 -5
- package/dist/client/assistant-tool/calculator/CalculatorModalProvider.d.ts +0 -9
- package/dist/client/assistant-tool/calculator/CalculatorProvider.d.ts +0 -1
- package/dist/client/assistant-tool/calculator/Draggable.d.ts +0 -8
- package/dist/client/assistant-tool/calculator/plugin.d.ts +0 -5
- package/dist/client/assistant-tool/calculator/style.d.ts +0 -3
- package/dist/client/assistant-tool/search-and-jump/SearchAndJumpModelProvider.d.ts +0 -16
- package/dist/client/assistant-tool/search-and-jump/SearchAndJumpProvider.d.ts +0 -1
- package/dist/client/assistant-tool/search-and-jump/plugin.d.ts +0 -5
- package/dist/client/configuration/App.d.ts +0 -1
- package/dist/client/configuration/Interface.d.ts +0 -1
- package/dist/client/configuration/index.d.ts +0 -2
- package/dist/client/core/assets/svg/index.d.ts +0 -4
- package/dist/client/core/bridge/index.d.ts +0 -2
- package/dist/client/core/bridge/injects.d.ts +0 -13
- package/dist/client/core/bridge/native-call.d.ts +0 -1
- package/dist/client/core/index.d.ts +0 -5
- package/dist/client/core/schema/CustomColor.d.ts +0 -1
- package/dist/client/core/schema/CustomComponent.d.ts +0 -1
- package/dist/client/core/schema/common/index.d.ts +0 -1
- package/dist/client/core/schema/common/page.d.ts +0 -16
- package/dist/client/core/schema/components/antd-mobile/Cascader/AntdCadcader.d.ts +0 -3
- package/dist/client/core/schema/components/antd-mobile/Cascader/Cadcader.d.ts +0 -4
- package/dist/client/core/schema/components/antd-mobile/Cascader/ReadPretty.d.ts +0 -2
- package/dist/client/core/schema/components/antd-mobile/Cascader/defaultFieldNames.d.ts +0 -5
- package/dist/client/core/schema/components/antd-mobile/Cascader/index.d.ts +0 -1
- package/dist/client/core/schema/components/antd-mobile/Cascader/style.d.ts +0 -3
- package/dist/client/core/schema/components/antd-mobile/Checkbox/Checkbox.d.ts +0 -7
- package/dist/client/core/schema/components/antd-mobile/Checkbox/index.d.ts +0 -1
- package/dist/client/core/schema/components/antd-mobile/DatePicker/DatePicker.d.ts +0 -2
- package/dist/client/core/schema/components/antd-mobile/DatePicker/index.d.ts +0 -1
- package/dist/client/core/schema/components/antd-mobile/ImageUploader/ImageUploader.d.ts +0 -5
- package/dist/client/core/schema/components/antd-mobile/ImageUploader/index.d.ts +0 -1
- package/dist/client/core/schema/components/antd-mobile/Input/Input.d.ts +0 -7
- package/dist/client/core/schema/components/antd-mobile/Input/index.d.ts +0 -1
- package/dist/client/core/schema/components/antd-mobile/Radio/Radio.d.ts +0 -7
- package/dist/client/core/schema/components/antd-mobile/Radio/index.d.ts +0 -1
- package/dist/client/core/schema/components/antd-mobile/Select/AntdSelect.d.ts +0 -2
- package/dist/client/core/schema/components/antd-mobile/Select/AntdSelectContext.d.ts +0 -2
- package/dist/client/core/schema/components/antd-mobile/Select/CreateRecordAction.d.ts +0 -2
- package/dist/client/core/schema/components/antd-mobile/Select/Select.d.ts +0 -5
- package/dist/client/core/schema/components/antd-mobile/Select/index.d.ts +0 -1
- package/dist/client/core/schema/components/antd-mobile/Select/style.d.ts +0 -3
- package/dist/client/core/schema/components/antd-mobile/index.d.ts +0 -7
- package/dist/client/core/schema/components/container/Container.Designer.d.ts +0 -1
- package/dist/client/core/schema/components/container/Container.d.ts +0 -7
- package/dist/client/core/schema/components/container/index.d.ts +0 -1
- package/dist/client/core/schema/components/container/style.d.ts +0 -5
- package/dist/client/core/schema/components/header/Header.Designer.d.ts +0 -1
- package/dist/client/core/schema/components/header/Header.d.ts +0 -11
- package/dist/client/core/schema/components/header/HeaderShareModal.d.ts +0 -6
- package/dist/client/core/schema/components/header/index.d.ts +0 -1
- package/dist/client/core/schema/components/header/style.d.ts +0 -8
- package/dist/client/core/schema/components/image-search/ImageSearch.configure.d.ts +0 -2
- package/dist/client/core/schema/components/image-search/ImageSearch.initializer.d.ts +0 -1
- package/dist/client/core/schema/components/image-search/ImageSearch.provider.d.ts +0 -4
- package/dist/client/core/schema/components/image-search/ImageSearch.schema.d.ts +0 -8
- package/dist/client/core/schema/components/image-search/ImageSearch.view.d.ts +0 -2
- package/dist/client/core/schema/components/image-search/hooks/index.d.ts +0 -1
- package/dist/client/core/schema/components/image-search/hooks/useSelect.d.ts +0 -3
- package/dist/client/core/schema/components/image-search/index.d.ts +0 -7
- package/dist/client/core/schema/components/image-search/search-item/ImageSearchItem.intializer.d.ts +0 -1
- package/dist/client/core/schema/components/image-search/search-item/ImageSearchItem.schema.d.ts +0 -11
- package/dist/client/core/schema/components/image-search/search-item/ImageSearchItem.setting.d.ts +0 -2
- package/dist/client/core/schema/components/image-search/search-item/ImageSearchItem.toolbar.d.ts +0 -1
- package/dist/client/core/schema/components/image-search/search-item/ImageSearchItem.view.d.ts +0 -2
- package/dist/client/core/schema/components/image-search/search-item/index.d.ts +0 -7
- package/dist/client/core/schema/components/image-search/search-item/useProps.Optional.d.ts +0 -17
- package/dist/client/core/schema/components/image-search/search-item/useProps.Related.d.ts +0 -7
- package/dist/client/core/schema/components/index.d.ts +0 -11
- package/dist/client/core/schema/components/menu/Menu.Designer.d.ts +0 -2
- package/dist/client/core/schema/components/menu/Menu.Item.d.ts +0 -6
- package/dist/client/core/schema/components/menu/Menu.d.ts +0 -9
- package/dist/client/core/schema/components/menu/MenuBlockInitializer.d.ts +0 -1
- package/dist/client/core/schema/components/menu/index.d.ts +0 -2
- package/dist/client/core/schema/components/menu/schema.d.ts +0 -17
- package/dist/client/core/schema/components/menu/style.d.ts +0 -4
- package/dist/client/core/schema/components/notice/index.d.ts +0 -1
- package/dist/client/core/schema/components/notice/schema-create/createGridCardBlockSchma.d.ts +0 -57
- package/dist/client/core/schema/components/notice/schema-initializer/NoticeBlockInitializer.d.ts +0 -2
- package/dist/client/core/schema/components/notice/schema-initializer/index.d.ts +0 -1
- package/dist/client/core/schema/components/page/Page.Designer.d.ts +0 -1
- package/dist/client/core/schema/components/page/Page.d.ts +0 -7
- package/dist/client/core/schema/components/page/index.d.ts +0 -1
- package/dist/client/core/schema/components/page/style.d.ts +0 -6
- package/dist/client/core/schema/components/settings/Settings.Designer.d.ts +0 -1
- package/dist/client/core/schema/components/settings/Settings.d.ts +0 -5
- package/dist/client/core/schema/components/settings/SettingsBlockInitializer.d.ts +0 -1
- package/dist/client/core/schema/components/settings/index.d.ts +0 -2
- package/dist/client/core/schema/components/swiper/SwiperBlock.d.ts +0 -2
- package/dist/client/core/schema/components/swiper/SwiperBlockInitializer.d.ts +0 -1
- package/dist/client/core/schema/components/swiper/SwiperFieldSettings.d.ts +0 -2
- package/dist/client/core/schema/components/swiper/SwiperPage.d.ts +0 -1
- package/dist/client/core/schema/components/swiper/index.d.ts +0 -5
- package/dist/client/core/schema/components/swiper/useSwiperBlockProps.d.ts +0 -9
- package/dist/client/core/schema/components/tab-bar/TabBar.Item.d.ts +0 -8
- package/dist/client/core/schema/components/tab-bar/TabBar.d.ts +0 -6
- package/dist/client/core/schema/components/tab-bar/index.d.ts +0 -1
- package/dist/client/core/schema/components/tab-bar/schema.d.ts +0 -18
- package/dist/client/core/schema/components/tab-search/components/TabSearch.d.ts +0 -1
- package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputItem.d.ts +0 -2
- package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputItemAction.d.ts +0 -18
- package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputItemChild.d.ts +0 -4
- package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputMItem.d.ts +0 -2
- package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputMItemChild.d.ts +0 -4
- package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchFieldItem.d.ts +0 -2
- package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchFieldItemProps.d.ts +0 -11
- package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchFieldMItem.d.ts +0 -8
- package/dist/client/core/schema/components/tab-search/components/field-item/TabSerachFieldItemRelatedProps.d.ts +0 -17
- package/dist/client/core/schema/components/tab-search/components/field-item/hooks.d.ts +0 -7
- package/dist/client/core/schema/components/tab-search/components/field-item/index.d.ts +0 -6
- package/dist/client/core/schema/components/tab-search/components/index.d.ts +0 -2
- package/dist/client/core/schema/components/tab-search/create/createTabSearchBlockSchema.d.ts +0 -6
- package/dist/client/core/schema/components/tab-search/create/createTabSearchItemSchema.d.ts +0 -24
- package/dist/client/core/schema/components/tab-search/index.d.ts +0 -4
- package/dist/client/core/schema/components/tab-search/initializer/TabSearchAssociated.fields.d.ts +0 -1
- package/dist/client/core/schema/components/tab-search/initializer/TabSearchBlockInitializer.d.ts +0 -1
- package/dist/client/core/schema/components/tab-search/initializer/TabSearchFieldSchemaInitializer.d.ts +0 -2
- package/dist/client/core/schema/components/tab-search/initializer/TabSearchFieldSchemaInitializerGadget.d.ts +0 -1
- package/dist/client/core/schema/components/tab-search/initializer/index.d.ts +0 -3
- package/dist/client/core/schema/components/tab-search/mapToMobile.d.ts +0 -1
- package/dist/client/core/schema/components/tab-search/provider/TabSearchProvider.d.ts +0 -1
- package/dist/client/core/schema/components/tab-search/provider/index.d.ts +0 -1
- package/dist/client/core/schema/components/tab-search/settings/TabSearchItemFieldSettings.d.ts +0 -2
- package/dist/client/core/schema/components/tab-search/settings/index.d.ts +0 -1
- package/dist/client/core/schema/components/tab-search/utils.d.ts +0 -8
- package/dist/client/core/schema/helpers/index.d.ts +0 -67
- package/dist/client/core/schema/hooks/index.d.ts +0 -1
- package/dist/client/core/schema/hooks/useSchemaPatch.d.ts +0 -3
- package/dist/client/core/schema/index.d.ts +0 -6
- package/dist/client/core/schema/initializers/BlockInitializers.d.ts +0 -2
- package/dist/client/core/schema/initializers/index.d.ts +0 -1
- package/dist/client/core/schema/scopes/grid-card.d.ts +0 -15
- package/dist/client/core/schema/scopes/index.d.ts +0 -1
- package/dist/client/devices/iOS6.d.ts +0 -6
- package/dist/client/devices/index.d.ts +0 -2
- package/dist/client/index.d.ts +0 -14
- package/dist/client/index.js +0 -488
- package/dist/client/locale/index.d.ts +0 -5
- package/dist/client/plugin-data-select/DataSelect.d.ts +0 -33
- package/dist/client/plugin-data-select/PluginDataSelect.d.ts +0 -4
- package/dist/client/plugin-data-select/settings.d.ts +0 -7
- package/dist/client/router/Application.d.ts +0 -3
- package/dist/client/router/InterfaceProvider.d.ts +0 -4
- package/dist/client/router/InterfaceRouter.d.ts +0 -2
- package/dist/client/router/OpenInNewTab.d.ts +0 -1
- package/dist/client/router/index.d.ts +0 -1
- package/dist/env.d.js +0 -0
- package/dist/externalVersion.js +0 -17
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -39
- package/dist/locale/antd/ar_EG.js +0 -1
- package/dist/locale/antd/az_AZ.js +0 -1
- package/dist/locale/antd/bg_BG.js +0 -1
- package/dist/locale/antd/bn_BD.js +0 -1
- package/dist/locale/antd/by_BY.js +0 -1
- package/dist/locale/antd/ca_ES.js +0 -1
- package/dist/locale/antd/cs_CZ.js +0 -1
- package/dist/locale/antd/da_DK.js +0 -1
- package/dist/locale/antd/de_DE.js +0 -1
- package/dist/locale/antd/el_GR.js +0 -1
- package/dist/locale/antd/en_GB.js +0 -1
- package/dist/locale/antd/en_US.js +0 -1
- package/dist/locale/antd/es_ES.js +0 -1
- package/dist/locale/antd/et_EE.js +0 -1
- package/dist/locale/antd/eu_ES.js +0 -1
- package/dist/locale/antd/fa_IR.js +0 -1
- package/dist/locale/antd/fi_FI.js +0 -1
- package/dist/locale/antd/fr_BE.js +0 -1
- package/dist/locale/antd/fr_CA.js +0 -1
- package/dist/locale/antd/fr_FR.js +0 -1
- package/dist/locale/antd/ga_IE.js +0 -1
- package/dist/locale/antd/gl_ES.js +0 -1
- package/dist/locale/antd/he_IL.js +0 -1
- package/dist/locale/antd/hi_IN.js +0 -1
- package/dist/locale/antd/hr_HR.js +0 -1
- package/dist/locale/antd/hu_HU.js +0 -1
- package/dist/locale/antd/hy_AM.js +0 -1
- package/dist/locale/antd/id_ID.js +0 -1
- package/dist/locale/antd/index.js +0 -1
- package/dist/locale/antd/is_IS.js +0 -1
- package/dist/locale/antd/it_IT.js +0 -1
- package/dist/locale/antd/ja_JP.js +0 -1
- package/dist/locale/antd/ka_GE.js +0 -1
- package/dist/locale/antd/kk_KZ.js +0 -1
- package/dist/locale/antd/km_KH.js +0 -1
- package/dist/locale/antd/kmr_IQ.js +0 -1
- package/dist/locale/antd/kn_IN.js +0 -1
- package/dist/locale/antd/ko_KR.js +0 -1
- package/dist/locale/antd/ku_IQ.js +0 -1
- package/dist/locale/antd/lt_LT.js +0 -1
- package/dist/locale/antd/lv_LV.js +0 -1
- package/dist/locale/antd/mk_MK.js +0 -1
- package/dist/locale/antd/ml_IN.js +0 -1
- package/dist/locale/antd/mn_MN.js +0 -1
- package/dist/locale/antd/ms_MY.js +0 -1
- package/dist/locale/antd/my_MM.js +0 -1
- package/dist/locale/antd/nb_NO.js +0 -1
- package/dist/locale/antd/ne_NP.js +0 -1
- package/dist/locale/antd/nl_BE.js +0 -1
- package/dist/locale/antd/nl_NL.js +0 -1
- package/dist/locale/antd/pl_PL.js +0 -1
- package/dist/locale/antd/pt_BR.js +0 -1
- package/dist/locale/antd/pt_PT.js +0 -1
- package/dist/locale/antd/ro_RO.js +0 -1
- package/dist/locale/antd/ru_RU.js +0 -1
- package/dist/locale/antd/si_LK.js +0 -1
- package/dist/locale/antd/sk_SK.js +0 -1
- package/dist/locale/antd/sl_SI.js +0 -1
- package/dist/locale/antd/sr_RS.js +0 -1
- package/dist/locale/antd/sv_SE.js +0 -1
- package/dist/locale/antd/ta_IN.js +0 -1
- package/dist/locale/antd/th_TH.js +0 -1
- package/dist/locale/antd/tk_TK.js +0 -1
- package/dist/locale/antd/tr_TR.js +0 -1
- package/dist/locale/antd/uk_UA.js +0 -1
- package/dist/locale/antd/ur_PK.js +0 -1
- package/dist/locale/antd/useLocale.js +0 -1
- package/dist/locale/antd/uz_UZ.js +0 -1
- package/dist/locale/antd/vi_VN.js +0 -1
- package/dist/locale/antd/zh_CN.js +0 -1
- package/dist/locale/antd/zh_HK.js +0 -1
- package/dist/locale/antd/zh_TW.js +0 -1
- package/dist/locale/cron/zh_CN.js +0 -33
- package/dist/locale/cron/zh_TW.js +0 -33
- package/dist/locale/en_US.js +0 -906
- package/dist/locale/es_ES.js +0 -755
- package/dist/locale/fr_FR.js +0 -775
- package/dist/locale/index.js +0 -165
- package/dist/locale/ja_JP.js +0 -694
- package/dist/locale/ko_KR.js +0 -890
- package/dist/locale/pt_BR.js +0 -734
- package/dist/locale/ru_RU.js +0 -570
- package/dist/locale/tr_TR.js +0 -567
- package/dist/locale/uk_UA.js +0 -775
- package/dist/locale/zh-CN.js +0 -1072
- package/dist/locale/zh-TW.js +0 -862
- package/dist/node_modules/cronstrue/LICENSE +0 -21
- package/dist/node_modules/cronstrue/bin/cli.js +0 -26
- package/dist/node_modules/cronstrue/dist/cronParser.d.ts +0 -13
- package/dist/node_modules/cronstrue/dist/cronstrue-i18n.d.ts +0 -4
- package/dist/node_modules/cronstrue/dist/cronstrue-i18n.js +0 -7938
- package/dist/node_modules/cronstrue/dist/cronstrue-i18n.min.js +0 -1
- package/dist/node_modules/cronstrue/dist/cronstrue.d.ts +0 -4
- package/dist/node_modules/cronstrue/dist/cronstrue.js +0 -1
- package/dist/node_modules/cronstrue/dist/cronstrue.min.js +0 -1
- package/dist/node_modules/cronstrue/dist/expressionDescriptor.d.ts +0 -31
- package/dist/node_modules/cronstrue/dist/i18n/allLocales.d.ts +0 -37
- package/dist/node_modules/cronstrue/dist/i18n/allLocalesLoader.d.ts +0 -6
- package/dist/node_modules/cronstrue/dist/i18n/enLocaleLoader.d.ts +0 -6
- package/dist/node_modules/cronstrue/dist/i18n/locale.d.ts +0 -62
- package/dist/node_modules/cronstrue/dist/i18n/localeLoader.d.ts +0 -6
- package/dist/node_modules/cronstrue/dist/i18n/locales/af.d.ts +0 -56
- package/dist/node_modules/cronstrue/dist/i18n/locales/ar.d.ts +0 -56
- package/dist/node_modules/cronstrue/dist/i18n/locales/be.d.ts +0 -55
- package/dist/node_modules/cronstrue/dist/i18n/locales/bg.d.ts +0 -56
- package/dist/node_modules/cronstrue/dist/i18n/locales/ca.d.ts +0 -55
- package/dist/node_modules/cronstrue/dist/i18n/locales/cs.d.ts +0 -55
- package/dist/node_modules/cronstrue/dist/i18n/locales/da.d.ts +0 -55
- package/dist/node_modules/cronstrue/dist/i18n/locales/de.d.ts +0 -55
- package/dist/node_modules/cronstrue/dist/i18n/locales/en.d.ts +0 -56
- package/dist/node_modules/cronstrue/dist/i18n/locales/es.d.ts +0 -55
- package/dist/node_modules/cronstrue/dist/i18n/locales/fa.d.ts +0 -57
- package/dist/node_modules/cronstrue/dist/i18n/locales/fi.d.ts +0 -58
- package/dist/node_modules/cronstrue/dist/i18n/locales/fr.d.ts +0 -56
- package/dist/node_modules/cronstrue/dist/i18n/locales/he.d.ts +0 -55
- package/dist/node_modules/cronstrue/dist/i18n/locales/hu.d.ts +0 -56
- package/dist/node_modules/cronstrue/dist/i18n/locales/id.d.ts +0 -56
- package/dist/node_modules/cronstrue/dist/i18n/locales/it.d.ts +0 -55
- package/dist/node_modules/cronstrue/dist/i18n/locales/ja.d.ts +0 -60
- package/dist/node_modules/cronstrue/dist/i18n/locales/ko.d.ts +0 -60
- package/dist/node_modules/cronstrue/dist/i18n/locales/my.d.ts +0 -56
- package/dist/node_modules/cronstrue/dist/i18n/locales/nb.d.ts +0 -55
- package/dist/node_modules/cronstrue/dist/i18n/locales/nl.d.ts +0 -55
- package/dist/node_modules/cronstrue/dist/i18n/locales/pl.d.ts +0 -55
- package/dist/node_modules/cronstrue/dist/i18n/locales/pt_BR.d.ts +0 -55
- package/dist/node_modules/cronstrue/dist/i18n/locales/pt_PT.d.ts +0 -55
- package/dist/node_modules/cronstrue/dist/i18n/locales/ro.d.ts +0 -55
- package/dist/node_modules/cronstrue/dist/i18n/locales/ru.d.ts +0 -58
- package/dist/node_modules/cronstrue/dist/i18n/locales/sk.d.ts +0 -55
- package/dist/node_modules/cronstrue/dist/i18n/locales/sl.d.ts +0 -55
- package/dist/node_modules/cronstrue/dist/i18n/locales/sv.d.ts +0 -55
- package/dist/node_modules/cronstrue/dist/i18n/locales/sw.d.ts +0 -55
- package/dist/node_modules/cronstrue/dist/i18n/locales/th.d.ts +0 -56
- package/dist/node_modules/cronstrue/dist/i18n/locales/tr.d.ts +0 -55
- package/dist/node_modules/cronstrue/dist/i18n/locales/uk.d.ts +0 -55
- package/dist/node_modules/cronstrue/dist/i18n/locales/vi.d.ts +0 -56
- package/dist/node_modules/cronstrue/dist/i18n/locales/zh_CN.d.ts +0 -61
- package/dist/node_modules/cronstrue/dist/i18n/locales/zh_TW.d.ts +0 -58
- package/dist/node_modules/cronstrue/dist/options.d.ts +0 -9
- package/dist/node_modules/cronstrue/dist/rangeValidator.d.ts +0 -8
- package/dist/node_modules/cronstrue/dist/stringUtilities.d.ts +0 -4
- package/dist/node_modules/cronstrue/i18n.d.ts +0 -4
- package/dist/node_modules/cronstrue/i18n.js +0 -5
- package/dist/node_modules/cronstrue/locales/af.js +0 -283
- package/dist/node_modules/cronstrue/locales/af.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/ar.js +0 -283
- package/dist/node_modules/cronstrue/locales/ar.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/be.js +0 -280
- package/dist/node_modules/cronstrue/locales/be.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/bg.js +0 -286
- package/dist/node_modules/cronstrue/locales/bg.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/ca.js +0 -280
- package/dist/node_modules/cronstrue/locales/ca.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/cs.js +0 -280
- package/dist/node_modules/cronstrue/locales/cs.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/da.js +0 -280
- package/dist/node_modules/cronstrue/locales/da.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/de.js +0 -280
- package/dist/node_modules/cronstrue/locales/de.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/en.js +0 -283
- package/dist/node_modules/cronstrue/locales/en.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/es.js +0 -280
- package/dist/node_modules/cronstrue/locales/es.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/fa.js +0 -273
- package/dist/node_modules/cronstrue/locales/fa.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/fi.js +0 -289
- package/dist/node_modules/cronstrue/locales/fi.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/fr.js +0 -283
- package/dist/node_modules/cronstrue/locales/fr.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/he.js +0 -267
- package/dist/node_modules/cronstrue/locales/he.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/hu.js +0 -283
- package/dist/node_modules/cronstrue/locales/hu.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/id.js +0 -283
- package/dist/node_modules/cronstrue/locales/id.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/it.js +0 -280
- package/dist/node_modules/cronstrue/locales/it.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/ja.js +0 -282
- package/dist/node_modules/cronstrue/locales/ja.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/ko.js +0 -282
- package/dist/node_modules/cronstrue/locales/ko.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/my.js +0 -283
- package/dist/node_modules/cronstrue/locales/my.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/nb.js +0 -280
- package/dist/node_modules/cronstrue/locales/nb.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/nl.js +0 -280
- package/dist/node_modules/cronstrue/locales/nl.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/pl.js +0 -280
- package/dist/node_modules/cronstrue/locales/pl.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/pt_BR.js +0 -280
- package/dist/node_modules/cronstrue/locales/pt_BR.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/pt_PT.js +0 -280
- package/dist/node_modules/cronstrue/locales/pt_PT.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/ro.js +0 -280
- package/dist/node_modules/cronstrue/locales/ro.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/ru.js +0 -323
- package/dist/node_modules/cronstrue/locales/ru.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/sk.js +0 -280
- package/dist/node_modules/cronstrue/locales/sk.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/sl.js +0 -280
- package/dist/node_modules/cronstrue/locales/sl.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/sv.js +0 -280
- package/dist/node_modules/cronstrue/locales/sv.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/sw.js +0 -280
- package/dist/node_modules/cronstrue/locales/sw.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/th.js +0 -283
- package/dist/node_modules/cronstrue/locales/th.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/tr.js +0 -280
- package/dist/node_modules/cronstrue/locales/tr.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/uk.js +0 -280
- package/dist/node_modules/cronstrue/locales/uk.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/vi.js +0 -283
- package/dist/node_modules/cronstrue/locales/vi.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/zh_CN.js +0 -285
- package/dist/node_modules/cronstrue/locales/zh_CN.min.js +0 -1
- package/dist/node_modules/cronstrue/locales/zh_TW.js +0 -276
- package/dist/node_modules/cronstrue/locales/zh_TW.min.js +0 -1
- package/dist/node_modules/cronstrue/package.json +0 -1
- package/dist/server/antd.d.ts +0 -1
- package/dist/server/antd.js +0 -45
- package/dist/server/cron.d.ts +0 -1
- package/dist/server/cron.js +0 -44
- package/dist/server/cronstrue.d.ts +0 -1
- package/dist/server/cronstrue.js +0 -136
- package/dist/server/index.d.ts +0 -1
- package/dist/server/index.js +0 -33
- package/dist/server/migrations/20230620203216-admin-ui-schema-uid.d.ts +0 -5
- package/dist/server/migrations/20230620203216-admin-ui-schema-uid.js +0 -67
- package/dist/server/migrations/20231215215247-admin-menu-uid.d.ts +0 -5
- package/dist/server/migrations/20231215215247-admin-menu-uid.js +0 -79
- package/dist/server/migrations/20250116160330-update-uiSchemas.d.ts +0 -6
- package/dist/server/migrations/20250116160330-update-uiSchemas.js +0 -57
- package/dist/server/server.d.ts +0 -7
- package/dist/server/server.js +0 -161
- package/dist/swagger/index.json +0 -7
package/dist/server/cron.js
DELETED
|
@@ -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) => {};
|
package/dist/server/cronstrue.js
DELETED
|
@@ -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
|
-
});
|
package/dist/server/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './server';
|
package/dist/server/index.js
DELETED
|
@@ -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,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,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,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
|
-
}
|
package/dist/server/server.d.ts
DELETED
package/dist/server/server.js
DELETED
|
@@ -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
|
-
});
|