@_tc/template-core 0.0.1-bate.46 → 0.0.1-bate.48
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/.skills/tc-component-usage-skills/SKILL.md +132 -0
- package/.skills/tc-component-usage-skills/reference/component-api.md +801 -0
- package/.skills/tc-component-usage-skills/reference/examples.md +435 -0
- package/.skills/tc-component-usage-skills/reference/patterns.md +392 -0
- package/.skills/tc-component-usage-skills/reference/template-core-frontend.md +104 -0
- package/.skills/tc-generator/SKILL.md +70 -0
- package/.skills/tc-generator/reference/example.md +357 -0
- package/.skills/tc-generator/reference/model-schema.md +328 -0
- package/.skills/tc-generator/reference/project-template/app/controller/product.js +73 -0
- package/.skills/tc-generator/reference/project-template/app/router/product.js +9 -0
- package/.skills/tc-generator/reference/project-template/config/config.default.js +7 -0
- package/.skills/tc-generator/reference/project-template/index.js +17 -0
- package/.skills/tc-generator/reference/project-template/model/product/mode.js +179 -0
- package/.skills/tc-generator/reference/project-template/model/product/project/default.js +5 -0
- package/.skills/tc-generator/reference/project-template/package.json +25 -0
- package/.skills/tc-generator/reference/runtime-extensions.md +190 -0
- package/README.md +1723 -0
- package/cjs/_virtual/_rolldown/runtime.js +1 -37
- package/cjs/app/controller/base.js +1 -29
- package/cjs/app/controller/project.js +1 -60
- package/cjs/app/controller/view.js +1 -24
- package/cjs/app/extend/$fetch.js +1 -0
- package/cjs/app/extend/db.js +20 -8
- package/cjs/app/extend/generateErrorMessage.js +1 -16
- package/cjs/app/extend/logger.js +1 -35
- package/cjs/app/extend/parsingParamsOnUrl.js +1 -22
- package/cjs/app/extend/render-view.js +1 -24
- package/cjs/app/middleware/api-params-verify.js +1 -72
- package/cjs/app/middleware/api-sign-verify.js +1 -23
- package/cjs/app/middleware/error-handle.js +1 -38
- package/cjs/app/middleware/project-handler.js +1 -21
- package/cjs/app/middleware.js +1 -32
- package/cjs/app/router/project.js +1 -10
- package/cjs/app/router/view.js +1 -9
- package/cjs/app/router-schema/project.js +1 -16
- package/cjs/app/service/base.js +1 -17
- package/cjs/app/service/project.js +1 -38
- package/cjs/app/type.js +0 -1
- package/cjs/app/typings.js +0 -1
- package/cjs/app/view/entry.tpl +27 -28
- package/cjs/bundler/buildBE.js +1 -0
- package/cjs/bundler/defaultAlias.js +1 -5
- package/cjs/bundler/dev.js +1 -20
- package/cjs/bundler/index.js +1 -19
- package/cjs/bundler/prod.js +1 -21
- package/cjs/bundler/state.js +1 -0
- package/cjs/bundler/utils.js +1 -262
- package/cjs/config/config.default.js +1 -0
- package/cjs/index.js +1 -23
- package/cjs/packages/common/LRUCache.js +1 -4
- package/cjs/packages/common/array/index.js +1 -43
- package/cjs/packages/common/cache/LRUCache.js +1 -45
- package/cjs/packages/common/cache/index.js +1 -4
- package/cjs/packages/common/guards/index.js +1 -34
- package/cjs/packages/common/http/index.js +1 -0
- package/cjs/packages/common/i18n/default.js +1 -95
- package/cjs/packages/common/i18n/en-US.js +1 -95
- package/cjs/packages/common/i18n/index.js +1 -178
- package/cjs/packages/common/i18n/locales.js +1 -17
- package/cjs/packages/common/i18n/types.js +0 -1
- package/cjs/packages/common/index.js +1 -65
- package/cjs/packages/common/log/index.js +2 -160
- package/cjs/packages/common/number/index.js +1 -14
- package/cjs/packages/common/object/filterEmpty.js +1 -32
- package/cjs/packages/common/object/filtereEmpty.js +1 -5
- package/cjs/packages/common/object/index.js +1 -26
- package/cjs/packages/common/string/index.js +1 -17
- package/cjs/packages/common/types/index.js +0 -1
- package/cjs/packages/core/env.js +1 -27
- package/cjs/packages/core/index.js +1 -110
- package/cjs/packages/core/loader/config.js +1 -43
- package/cjs/packages/core/loader/controller.js +1 -33
- package/cjs/packages/core/loader/extend.js +1 -31
- package/cjs/packages/core/loader/middleware.js +1 -30
- package/cjs/packages/core/loader/model.js +1 -111
- package/cjs/packages/core/loader/router-schema.js +1 -36
- package/cjs/packages/core/loader/router.js +1 -62
- package/cjs/packages/core/loader/service.js +1 -30
- package/cjs/packages/core/paths.js +1 -12
- package/cjs/packages/core/types.js +0 -1
- package/cjs/packages/utils/getAllFilesInFolder.js +1 -14
- package/cjs/packages/utils/getAllFnReturnValue.js +0 -1
- package/cjs/packages/utils/index.js +1 -11
- package/cjs/packages/utils/loadFile.js +1 -55
- package/cjs/packages/utils/path.js +1 -31
- package/cjs/packages/utils/runFileFn.js +1 -51
- package/cjs/scripts/vite-build/build.js +3 -0
- package/cjs/scripts/vite-build/collect.js +1 -0
- package/cjs/scripts/vite-build/constants.js +1 -0
- package/cjs/scripts/vite-build/dts.js +1 -0
- package/cjs/scripts/vite-build/index.js +1 -0
- package/cjs/scripts/vite-build/normalize.js +1 -0
- package/cjs/scripts/vite-build/plugins.js +1 -0
- package/cjs/scripts/vite-build/resolve.js +1 -0
- package/cjs/scripts/vite-build/types.js +0 -0
- package/cjs/scripts/vite-build/utils.js +1 -0
- package/esm/_virtual/_rolldown/runtime.js +4 -29
- package/esm/app/controller/base.js +14 -16
- package/esm/app/controller/project.js +39 -46
- package/esm/app/controller/view.js +23 -19
- package/esm/app/extend/$fetch.js +15 -0
- package/esm/app/extend/db.js +138 -4
- package/esm/app/extend/generateErrorMessage.js +4 -12
- package/esm/app/extend/logger.js +9 -17
- package/esm/app/extend/parsingParamsOnUrl.js +11 -18
- package/esm/app/extend/render-view.js +18 -16
- package/esm/app/middleware/api-params-verify.js +36 -50
- package/esm/app/middleware/api-sign-verify.js +10 -16
- package/esm/app/middleware/error-handle.js +17 -30
- package/esm/app/middleware/project-handler.js +11 -16
- package/esm/app/middleware.js +12 -19
- package/esm/app/router/project.js +4 -6
- package/esm/app/router/view.js +4 -5
- package/esm/app/router-schema/project.js +2 -2
- package/esm/app/service/base.js +6 -7
- package/esm/app/service/project.js +18 -32
- package/esm/app/view/entry.tpl +27 -28
- package/esm/bundler/buildBE.js +54 -0
- package/esm/bundler/defaultAlias.js +2 -2
- package/esm/bundler/dev.js +8 -14
- package/esm/bundler/index.js +11 -9
- package/esm/bundler/prod.js +9 -14
- package/esm/bundler/state.js +10 -0
- package/esm/bundler/utils.js +115 -164
- package/esm/config/config.default.js +9 -0
- package/esm/index.js +12 -15
- package/esm/packages/common/LRUCache.js +2 -2
- package/esm/packages/common/array/index.js +21 -31
- package/esm/packages/common/cache/LRUCache.js +21 -25
- package/esm/packages/common/cache/index.js +2 -2
- package/esm/packages/common/guards/index.js +5 -23
- package/esm/packages/common/http/index.js +256 -0
- package/esm/packages/common/i18n/default.js +2 -7
- package/esm/packages/common/i18n/en-US.js +2 -7
- package/esm/packages/common/i18n/index.js +73 -144
- package/esm/packages/common/i18n/locales.js +6 -8
- package/esm/packages/common/index.js +14 -13
- package/esm/packages/common/log/index.js +69 -122
- package/esm/packages/common/number/index.js +7 -8
- package/esm/packages/common/object/filterEmpty.js +16 -22
- package/esm/packages/common/object/filtereEmpty.js +2 -2
- package/esm/packages/common/object/index.js +14 -17
- package/esm/packages/common/string/index.js +2 -11
- package/esm/packages/core/env.js +22 -24
- package/esm/packages/core/index.js +36 -92
- package/esm/packages/core/loader/config.js +21 -35
- package/esm/packages/core/loader/controller.js +8 -27
- package/esm/packages/core/loader/extend.js +19 -21
- package/esm/packages/core/loader/middleware.js +9 -22
- package/esm/packages/core/loader/model.js +50 -91
- package/esm/packages/core/loader/router-schema.js +13 -29
- package/esm/packages/core/loader/router.js +27 -51
- package/esm/packages/core/loader/service.js +8 -24
- package/esm/packages/core/paths.js +5 -5
- package/esm/packages/utils/getAllFilesInFolder.js +6 -8
- package/esm/packages/utils/index.js +5 -5
- package/esm/packages/utils/loadFile.js +28 -43
- package/esm/packages/utils/path.js +10 -22
- package/esm/packages/utils/runFileFn.js +32 -37
- package/esm/scripts/vite-build/build.js +141 -0
- package/esm/scripts/vite-build/collect.js +79 -0
- package/esm/scripts/vite-build/constants.js +34 -0
- package/esm/scripts/vite-build/dts.js +132 -0
- package/esm/scripts/vite-build/index.js +3 -0
- package/esm/scripts/vite-build/normalize.js +78 -0
- package/esm/scripts/vite-build/plugins.js +106 -0
- package/esm/scripts/vite-build/resolve.js +46 -0
- package/esm/scripts/vite-build/types.js +0 -0
- package/esm/scripts/vite-build/utils.js +24 -0
- package/fe/bundler/defaultAlias.js +4 -0
- package/fe/frontend/apps/dash/Dashboard.d.ts +6 -0
- package/fe/frontend/apps/dash/Dashboard.js +164 -0
- package/fe/frontend/apps/dash/dash.entry.js +54 -0
- package/fe/frontend/apps/dash/types.d.ts +25 -0
- package/fe/frontend/apps/dash/types.js +0 -0
- package/fe/frontend/apps/ui-components/index.js +16 -0
- package/fe/frontend/apps/ui-components/ui-components.entry.d.ts +2 -0
- package/fe/frontend/apps/ui-components/ui-components.entry.js +8 -0
- package/fe/frontend/extended/SchemaForm/data.d.ts +1 -1
- package/fe/frontend/extended/SchemaForm/data.js +7 -7
- package/fe/frontend/{widgets → src}/api/baseInfo.d.ts +2 -2
- package/fe/frontend/src/api/baseInfo.js +14 -0
- package/fe/frontend/src/common/CRUD/CRUD.d.ts +3 -0
- package/fe/frontend/src/common/CRUD/CRUD.js +2 -0
- package/fe/frontend/src/common/CRUD/index.d.ts +2 -0
- package/fe/frontend/src/common/CRUD/index.js +2 -0
- package/fe/frontend/src/common/auth/index.js +21 -0
- package/fe/frontend/{widgets/defaultPages/Schema/utils → src/common}/fetchErrorShow.d.ts +1 -1
- package/fe/frontend/src/common/fetchErrorShow.js +11 -0
- package/fe/frontend/src/common/generateMenuData.d.ts +4 -0
- package/fe/frontend/src/common/generateMenuData.js +16 -0
- package/fe/frontend/{widgets → src}/common/importComponent.d.ts +1 -1
- package/fe/frontend/src/common/importComponent.js +23 -0
- package/fe/frontend/src/common/language.d.ts +3 -0
- package/fe/frontend/src/common/language.js +12 -0
- package/fe/frontend/{widgets → src}/common/logFn/index.d.ts +1 -0
- package/fe/frontend/src/common/logFn/index.js +14 -0
- package/fe/frontend/{widgets → src}/common/menu.d.ts +1 -1
- package/fe/frontend/src/common/menu.js +97 -0
- package/fe/frontend/src/common/request.d.ts +37 -0
- package/fe/frontend/src/common/request.js +183 -0
- package/fe/frontend/{components → src/components}/AsyncSelect/AsyncSelect.d.ts +3 -3
- package/fe/frontend/src/components/AsyncSelect/AsyncSelect.js +35 -0
- package/fe/frontend/src/components/AsyncSelect/index.d.ts +4 -0
- package/fe/frontend/src/components/AsyncSelect/index.js +5 -0
- package/fe/frontend/{widgets → src}/components/BasePage/HeaderView.d.ts +1 -0
- package/fe/frontend/src/components/BasePage/HeaderView.js +55 -0
- package/fe/frontend/src/components/LanguageSwitch/LanguageSwitch.d.ts +14 -0
- package/fe/frontend/src/components/LanguageSwitch/LanguageSwitch.js +44 -0
- package/fe/frontend/src/components/LanguageSwitch/index.d.ts +4 -0
- package/fe/frontend/src/components/LanguageSwitch/index.js +5 -0
- package/fe/frontend/{widgets → src}/components/Router/index.d.ts +2 -2
- package/fe/frontend/src/components/Router/index.js +21 -0
- package/fe/frontend/src/components/Router/type.js +0 -0
- package/fe/frontend/src/components/ThemeSwitch/ThemeSwitch.d.ts +15 -0
- package/fe/frontend/src/components/ThemeSwitch/ThemeSwitch.js +83 -0
- package/fe/frontend/src/components/ThemeSwitch/index.d.ts +4 -0
- package/fe/frontend/src/components/ThemeSwitch/index.js +5 -0
- package/fe/frontend/src/components/index.d.ts +11 -0
- package/fe/frontend/src/components/index.js +7 -0
- package/fe/frontend/src/defaultPages/Iframe/index.js +15 -0
- package/fe/frontend/src/defaultPages/NotFoundPage/index.d.ts +3 -0
- package/fe/frontend/src/defaultPages/NotFoundPage/index.js +28 -0
- package/fe/frontend/{widgets/defaultPages/Schema → src/defaultPages/SchemaPage}/components/CallCom/DetailPanel.d.ts +1 -1
- package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/DetailPanel.js +102 -0
- package/fe/frontend/{widgets/defaultPages/Schema → src/defaultPages/SchemaPage}/components/CallCom/PopFrom.d.ts +1 -1
- package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/PopFrom.js +119 -0
- package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/builtIn.d.ts +44 -0
- package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/builtIn.js +10 -0
- package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/data.d.ts +4 -0
- package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/data.js +9 -0
- package/fe/frontend/src/defaultPages/SchemaPage/components/SchemaSearch/index.js +62 -0
- package/fe/frontend/{widgets/defaultPages/Schema → src/defaultPages/SchemaPage}/components/SchemaTable/index.d.ts +2 -2
- package/fe/frontend/src/defaultPages/SchemaPage/components/SchemaTable/index.js +200 -0
- package/fe/frontend/src/defaultPages/SchemaPage/data/eventInfo.js +9 -0
- package/fe/frontend/src/defaultPages/SchemaPage/data/index.js +4 -0
- package/fe/frontend/{widgets/defaultPages/Schema → src/defaultPages/SchemaPage}/hooks/useComConfig.d.ts +1 -1
- package/fe/frontend/src/defaultPages/SchemaPage/hooks/useComConfig.js +17 -0
- package/fe/frontend/src/defaultPages/SchemaPage/index.css +112 -0
- package/fe/frontend/{widgets/defaultPages/Schema → src/defaultPages/SchemaPage}/index.d.ts +1 -0
- package/fe/frontend/src/defaultPages/SchemaPage/index.js +90 -0
- package/fe/frontend/{widgets/defaultPages/Schema → src/defaultPages/SchemaPage}/schemaType.d.ts +7 -6
- package/fe/frontend/src/defaultPages/SchemaPage/schemaType.js +7 -0
- package/fe/frontend/src/defaultPages/SchemaPage/utils/permissions.js +6 -0
- package/fe/frontend/src/defaultPages/SchemaPage/utils/schemaConversion.d.ts +3 -0
- package/fe/frontend/src/defaultPages/SchemaPage/utils/schemaConversion.js +66 -0
- package/fe/frontend/src/defaultPages/SchemaPage/utils/validator.d.ts +11 -0
- package/fe/frontend/src/defaultPages/SchemaPage/utils/validator.js +122 -0
- package/fe/frontend/{widgets → src}/defaultPages/SidebarSlotPage/SidebarSlotContainer.d.ts +2 -2
- package/fe/frontend/src/defaultPages/SidebarSlotPage/SidebarSlotContainer.js +55 -0
- package/fe/frontend/src/defaultPages/SidebarSlotPage/index.js +21 -0
- package/fe/frontend/src/defaultPages/SidebarSlotPageTmp.js +21 -0
- package/fe/frontend/src/defaultPages/SlotPage/index.js +22 -0
- package/fe/frontend/src/exportStore.d.ts +17 -0
- package/fe/frontend/src/exportStore.js +5 -0
- package/fe/frontend/src/hooks/useCurrentMenuData.js +30 -0
- package/fe/frontend/src/hooks/useRouterParams.js +16 -0
- package/fe/frontend/src/index.d.ts +21 -0
- package/fe/frontend/src/index.js +19 -0
- package/fe/frontend/src/language/en-US.d.ts +89 -0
- package/fe/frontend/src/language/en-US.js +89 -0
- package/fe/frontend/src/language/index.d.ts +73 -0
- package/fe/frontend/src/language/index.js +79 -0
- package/fe/frontend/src/language/zh-CN.d.ts +89 -0
- package/fe/frontend/src/language/zh-CN.js +89 -0
- package/fe/frontend/src/main.css +96 -0
- package/fe/frontend/src/main.d.ts +27 -0
- package/fe/frontend/src/main.js +60 -0
- package/fe/frontend/src/stores/apiFreezer.d.ts +93 -0
- package/fe/frontend/src/stores/apiFreezer.js +53 -0
- package/fe/frontend/{widgets/store → src/stores}/mode.d.ts +3 -3
- package/fe/frontend/src/stores/mode.js +36 -0
- package/fe/frontend/{widgets/defaultPages/Schema → src}/stores/schemaEventBus.d.ts +1 -1
- package/fe/frontend/src/stores/schemaEventBus.js +53 -0
- package/fe/frontend/{widgets/defaultPages/Schema → src}/stores/schemaStore.d.ts +5 -5
- package/fe/frontend/src/stores/schemaStore.js +28 -0
- package/fe/frontend/{typing → src/typing}/scalability.d.ts +3 -3
- package/fe/frontend/src/typing/scalability.js +0 -0
- package/fe/frontend/src/typing/window.d.ts +9 -0
- package/fe/frontend/src/typing/window.js +0 -0
- package/fe/model/types/data/button.d.ts +4 -4
- package/fe/model/types/data/component.d.ts +32 -47
- package/fe/model/types/data/schema.d.ts +6 -6
- package/fe/model/types/data/search.d.ts +1 -1
- package/fe/model/types/model.d.ts +19 -12
- package/fe/packages/common/cache/LRUCache.js +43 -47
- package/fe/packages/common/guards/index.js +8 -24
- package/fe/packages/common/http/index.d.ts +90 -0
- package/fe/packages/common/http/index.js +300 -0
- package/fe/packages/common/i18n/default.js +91 -88
- package/fe/packages/common/i18n/en-US.js +91 -88
- package/fe/packages/common/i18n/index.d.ts +3 -3
- package/fe/packages/common/i18n/index.js +142 -153
- package/fe/packages/common/i18n/locales.d.ts +3 -3
- package/fe/packages/common/i18n/locales.js +10 -9
- package/fe/packages/common/index.d.ts +1 -0
- package/fe/packages/common/object/filterEmpty.js +25 -30
- package/fe/packages/react/hooks/useBreadcrumb.d.ts +10 -0
- package/fe/packages/react/hooks/useBreadcrumb.js +5 -0
- package/fe/packages/react/hooks/useExecuteOnce.js +47 -0
- package/fe/packages/react/hooks/useInit.js +11 -0
- package/fe/packages/react/hooks/useLanguage.d.ts +2 -0
- package/fe/packages/react/hooks/useLanguage.js +8 -0
- package/fe/packages/react/hooks/usePagination.js +30 -0
- package/fe/packages/{ui/react → react}/hooks/useRefState.d.ts +1 -1
- package/fe/packages/react/hooks/useRefState.js +35 -0
- package/fe/packages/react/hooks/useWatch.js +60 -0
- package/fe/packages/react/hooks/useWatch.test.js +24 -0
- package/fe/packages/react/ui/assets/table/no-result.js +4 -0
- package/fe/packages/{ui/react → react/ui}/components/Button/Button.d.ts +1 -1
- package/fe/packages/react/ui/components/Button/Button.js +88 -0
- package/fe/packages/react/ui/components/Button/SubmitButton.d.ts +13 -0
- package/fe/packages/react/ui/components/Button/SubmitButton.js +30 -0
- package/fe/packages/react/ui/components/Button/index.d.ts +4 -0
- package/fe/packages/react/ui/components/Button/index.js +3 -0
- package/fe/packages/react/ui/components/Card/Card.d.ts +15 -0
- package/fe/packages/react/ui/components/Card/Card.js +31 -0
- package/fe/packages/react/ui/components/Card/index.d.ts +2 -0
- package/fe/packages/react/ui/components/Card/index.js +2 -0
- package/fe/packages/{ui/react → react/ui}/components/Checkbox/Checkbox.d.ts +1 -1
- package/fe/packages/react/ui/components/Checkbox/Checkbox.js +52 -0
- package/fe/packages/react/ui/components/Checkbox/index.d.ts +2 -0
- package/fe/packages/react/ui/components/Checkbox/index.js +2 -0
- package/fe/packages/react/ui/components/ConfirmDialog/ConfirmDialog.js +41 -0
- package/fe/packages/react/ui/components/ConfirmDialog/index.d.ts +2 -0
- package/fe/packages/react/ui/components/ConfirmDialog/index.js +2 -0
- package/fe/packages/{ui/react → react/ui}/components/DataTable/ActionBtn.d.ts +1 -1
- package/fe/packages/react/ui/components/DataTable/ActionBtn.js +116 -0
- package/fe/packages/{ui/react → react/ui}/components/DataTable/index.d.ts +9 -7
- package/fe/packages/react/ui/components/DataTable/index.js +235 -0
- package/fe/packages/{ui/react → react/ui}/components/Date/Calendar.d.ts +2 -2
- package/fe/packages/react/ui/components/Date/Calendar.js +351 -0
- package/fe/packages/react/ui/components/Date/Date.js +210 -0
- package/fe/packages/react/ui/components/Date/DateTestPage.js +340 -0
- package/fe/packages/react/ui/components/Date/LocaleContext.js +11 -0
- package/fe/packages/{ui/react → react/ui}/components/Date/LocaleProvider.d.ts +2 -2
- package/fe/packages/react/ui/components/Date/LocaleProvider.js +31 -0
- package/fe/packages/react/ui/components/Date/TimePicker.js +136 -0
- package/fe/packages/react/ui/components/Date/data.js +7 -0
- package/fe/packages/{ui/react → react/ui}/components/Date/dateLocaleStore.d.ts +1 -1
- package/fe/packages/react/ui/components/Date/dateLocaleStore.js +14 -0
- package/fe/packages/react/ui/components/Date/dropdownPositioning.d.ts +3 -0
- package/fe/packages/react/ui/components/Date/dropdownPositioning.js +12 -0
- package/fe/packages/react/ui/components/Date/index.d.ts +6 -0
- package/fe/packages/react/ui/components/Date/index.js +6 -0
- package/fe/packages/react/ui/components/Date/locales.js +25 -0
- package/fe/packages/{ui/react → react/ui}/components/Drawer/Drawer.d.ts +1 -1
- package/fe/packages/react/ui/components/Drawer/Drawer.js +151 -0
- package/fe/packages/react/ui/components/Drawer/index.d.ts +3 -0
- package/fe/packages/react/ui/components/Drawer/index.js +2 -0
- package/fe/packages/{ui/react → react/ui}/components/Dropdown/Dropdown.d.ts +3 -2
- package/fe/packages/react/ui/components/Dropdown/Dropdown.js +105 -0
- package/fe/packages/react/ui/components/Dropdown/index.d.ts +2 -0
- package/fe/packages/react/ui/components/Dropdown/index.js +2 -0
- package/fe/packages/{ui/react → react/ui}/components/Form/Form.d.ts +2 -2
- package/fe/packages/react/ui/components/Form/Form.js +15 -0
- package/fe/packages/{ui/react → react/ui}/components/Form/FormItem.d.ts +3 -3
- package/fe/packages/react/ui/components/Form/FormItem.js +60 -0
- package/fe/packages/{ui/react → react/ui}/components/Form/SchemaForm/data.d.ts +8 -8
- package/fe/packages/react/ui/components/Form/SchemaForm/data.js +16 -0
- package/fe/packages/react/ui/components/Form/SchemaForm/defaultComponentsMap.d.ts +4 -0
- package/fe/packages/react/ui/components/Form/SchemaForm/defaultComponentsMap.js +4 -0
- package/fe/packages/{ui/react → react/ui}/components/Form/SchemaForm/index.d.ts +9 -9
- package/fe/packages/react/ui/components/Form/SchemaForm/index.js +119 -0
- package/fe/packages/react/ui/components/Form/index.d.ts +5 -0
- package/fe/packages/react/ui/components/Form/index.js +5 -0
- package/fe/packages/react/ui/components/Form/useForm.d.ts +3 -0
- package/fe/packages/react/ui/components/Form/useForm.js +2 -0
- package/fe/packages/react/ui/components/ImagePreview/ImagePreview.js +307 -0
- package/fe/packages/{ui/react → react/ui}/components/ImagePreview/PreviewImage.d.ts +2 -2
- package/fe/packages/react/ui/components/ImagePreview/PreviewImage.js +56 -0
- package/fe/packages/react/ui/components/ImagePreview/index.d.ts +3 -0
- package/fe/packages/react/ui/components/ImagePreview/index.js +3 -0
- package/fe/packages/{ui/react → react/ui}/components/Input/Input.d.ts +1 -1
- package/fe/packages/react/ui/components/Input/Input.js +88 -0
- package/fe/packages/react/ui/components/Input/index.d.ts +2 -0
- package/fe/packages/react/ui/components/Input/index.js +2 -0
- package/fe/packages/{ui/react → react/ui}/components/InputNumber/InputNumber.d.ts +2 -2
- package/fe/packages/react/ui/components/InputNumber/InputNumber.js +207 -0
- package/fe/packages/react/ui/components/InputNumber/index.d.ts +2 -0
- package/fe/packages/react/ui/components/InputNumber/index.js +2 -0
- package/fe/packages/react/ui/components/InputNumber/inputNumberUtils.js +45 -0
- package/fe/packages/react/ui/components/InputNumber/inputNumberUtils.test.js +59 -0
- package/fe/packages/{ui/react → react/ui}/components/Label/Label.d.ts +1 -1
- package/fe/packages/react/ui/components/Label/Label.js +58 -0
- package/fe/packages/react/ui/components/Label/index.d.ts +3 -0
- package/fe/packages/react/ui/components/Label/index.js +2 -0
- package/fe/packages/react/ui/components/Layout/Layout.d.ts +11 -0
- package/fe/packages/react/ui/components/Layout/Layout.js +33 -0
- package/fe/packages/react/ui/components/Layout/index.d.ts +2 -0
- package/fe/packages/react/ui/components/Layout/index.js +2 -0
- package/fe/packages/react/ui/components/Loading/Loading.d.ts +25 -0
- package/fe/packages/react/ui/components/Loading/Loading.js +48 -0
- package/fe/packages/react/ui/components/Loading/index.d.ts +2 -0
- package/fe/packages/react/ui/components/Loading/index.js +2 -0
- package/fe/packages/react/ui/components/Menu/Menu.js +147 -0
- package/fe/packages/react/ui/components/Menu/MenuContext.js +88 -0
- package/fe/packages/react/ui/components/Menu/MenuItem.js +78 -0
- package/fe/packages/react/ui/components/Menu/SubMenu.js +207 -0
- package/fe/packages/react/ui/components/Menu/index.d.ts +9 -0
- package/fe/packages/react/ui/components/Menu/index.js +5 -0
- package/fe/packages/{ui/react → react/ui}/components/Menu/menuTypes.d.ts +1 -1
- package/fe/packages/react/ui/components/Menu/menuTypes.js +0 -0
- package/fe/packages/react/ui/components/Menu/utils.js +8 -0
- package/fe/packages/{ui/react → react/ui}/components/Message/Message.d.ts +1 -1
- package/fe/packages/react/ui/components/Message/Message.js +76 -0
- package/fe/packages/{ui/react → react/ui}/components/Message/MessageManager.d.ts +2 -2
- package/fe/packages/react/ui/components/Message/MessageManager.js +104 -0
- package/fe/packages/react/ui/components/Message/data.js +4 -0
- package/fe/packages/react/ui/components/Message/index.d.ts +3 -0
- package/fe/packages/react/ui/components/Message/index.js +2 -0
- package/fe/packages/{ui/react → react/ui}/components/Modal/Modal.d.ts +1 -1
- package/fe/packages/react/ui/components/Modal/Modal.js +59 -0
- package/fe/packages/{ui/react → react/ui}/components/Modal/ModalManager.d.ts +5 -5
- package/fe/packages/react/ui/components/Modal/ModalManager.js +106 -0
- package/fe/packages/react/ui/components/Modal/index.d.ts +4 -0
- package/fe/packages/react/ui/components/Modal/index.js +3 -0
- package/fe/packages/react/ui/components/Notification/Notification.d.ts +14 -0
- package/fe/packages/react/ui/components/Notification/Notification.js +56 -0
- package/fe/packages/react/ui/components/Notification/index.d.ts +2 -0
- package/fe/packages/react/ui/components/Notification/index.js +2 -0
- package/fe/packages/{ui/react → react/ui}/components/Overlay/Overlay.d.ts +1 -1
- package/fe/packages/react/ui/components/Overlay/Overlay.js +61 -0
- package/fe/packages/react/ui/components/Overlay/index.d.ts +3 -0
- package/fe/packages/react/ui/components/Overlay/index.js +2 -0
- package/fe/packages/react/ui/components/Pagination/Pagination.js +115 -0
- package/fe/packages/react/ui/components/Pagination/index.d.ts +2 -0
- package/fe/packages/react/ui/components/Pagination/index.js +2 -0
- package/fe/packages/react/ui/components/Popup/Popup.js +86 -0
- package/fe/packages/react/ui/components/Popup/index.d.ts +2 -0
- package/fe/packages/react/ui/components/Popup/index.js +2 -0
- package/fe/packages/react/ui/components/Radio/Radio.d.ts +9 -0
- package/fe/packages/react/ui/components/Radio/Radio.js +36 -0
- package/fe/packages/react/ui/components/Radio/RadioGroup.d.ts +19 -0
- package/fe/packages/react/ui/components/Radio/RadioGroup.js +33 -0
- package/fe/packages/react/ui/components/Radio/index.d.ts +3 -0
- package/fe/packages/react/ui/components/Radio/index.js +3 -0
- package/fe/packages/{ui/react → react/ui}/components/Search/Search.d.ts +4 -4
- package/fe/packages/react/ui/components/Search/Search.js +24 -0
- package/fe/packages/react/ui/components/Search/index.d.ts +2 -0
- package/fe/packages/react/ui/components/Search/index.js +2 -0
- package/fe/packages/{ui/react → react/ui}/components/Select/Select.d.ts +1 -1
- package/fe/packages/react/ui/components/Select/Select.js +276 -0
- package/fe/packages/react/ui/components/Select/dropdownPositioning.d.ts +3 -0
- package/fe/packages/react/ui/components/Select/dropdownPositioning.js +16 -0
- package/fe/packages/react/ui/components/Select/index.d.ts +2 -0
- package/fe/packages/react/ui/components/Select/index.js +2 -0
- package/fe/packages/{ui/react → react/ui}/components/Skeleton/Skeleton.d.ts +1 -1
- package/fe/packages/react/ui/components/Skeleton/Skeleton.js +101 -0
- package/fe/packages/react/ui/components/Skeleton/index.d.ts +3 -0
- package/fe/packages/react/ui/components/Skeleton/index.js +2 -0
- package/fe/packages/{ui/react → react/ui}/components/Switch/Switch.d.ts +1 -1
- package/fe/packages/react/ui/components/Switch/Switch.js +28 -0
- package/fe/packages/react/ui/components/Switch/index.d.ts +2 -0
- package/fe/packages/react/ui/components/Switch/index.js +2 -0
- package/fe/packages/{ui/react → react/ui}/components/TableSearch/TableSearch.d.ts +6 -6
- package/fe/packages/react/ui/components/TableSearch/TableSearch.js +146 -0
- package/fe/packages/react/ui/components/TableSearch/index.d.ts +3 -0
- package/fe/packages/react/ui/components/TableSearch/index.js +2 -0
- package/fe/packages/react/ui/components/TableSearch/lang.js +14 -0
- package/fe/packages/{ui/react → react/ui}/components/TableSearch/tableSearchLocaleStore.d.ts +1 -1
- package/fe/packages/react/ui/components/TableSearch/tableSearchLocaleStore.js +10 -0
- package/fe/packages/react/ui/components/Tabs/Tabs.d.ts +16 -0
- package/fe/packages/react/ui/components/Tabs/Tabs.js +33 -0
- package/fe/packages/react/ui/components/Tabs/index.d.ts +2 -0
- package/fe/packages/react/ui/components/Tabs/index.js +2 -0
- package/fe/packages/react/ui/components/Textarea/Textarea.js +58 -0
- package/fe/packages/react/ui/components/Textarea/index.d.ts +2 -0
- package/fe/packages/react/ui/components/Textarea/index.js +2 -0
- package/fe/packages/react/ui/components/Tooltip/Tooltip.js +77 -0
- package/fe/packages/react/ui/components/Tooltip/index.d.ts +2 -0
- package/fe/packages/react/ui/components/Tooltip/index.js +2 -0
- package/fe/packages/react/ui/components/TreeSelect/TreeSelect.js +190 -0
- package/fe/packages/react/ui/components/TreeSelect/index.d.ts +2 -0
- package/fe/packages/react/ui/components/TreeSelect/index.js +2 -0
- package/fe/packages/react/ui/components/Upload/ImageUpload.js +101 -0
- package/fe/packages/{ui/react → react/ui}/components/Upload/Upload.d.ts +1 -1
- package/fe/packages/react/ui/components/Upload/Upload.js +29 -0
- package/fe/packages/react/ui/components/Upload/index.d.ts +3 -0
- package/fe/packages/react/ui/components/Upload/index.js +3 -0
- package/fe/packages/react/ui/components/breadcrumb/breadcrumb.js +155 -0
- package/fe/packages/react/ui/components/breadcrumb/index.d.ts +2 -0
- package/fe/packages/react/ui/components/breadcrumb/index.js +2 -0
- package/fe/packages/react/ui/components/hooks/useDropdownPositioning.js +121 -0
- package/fe/packages/react/ui/components/hooks/useInputController.js +39 -0
- package/fe/packages/react/ui/components/index.d.ts +36 -0
- package/fe/packages/react/ui/components/index.js +81 -0
- package/fe/packages/react/ui/components/table/index.d.ts +2 -0
- package/fe/packages/react/ui/components/table/index.js +2 -0
- package/fe/packages/{ui/react → react/ui}/components/table/table.d.ts +16 -3
- package/fe/packages/react/ui/components/table/table.js +166 -0
- package/fe/packages/react/ui/components/testPage/MenuTestPage.js +397 -0
- package/fe/packages/react/ui/components/testPage/index.js +1612 -0
- package/fe/packages/{ui/react → react/ui}/i18n/I18nProvider.d.ts +2 -2
- package/fe/packages/react/ui/i18n/I18nProvider.js +38 -0
- package/fe/packages/react/ui/i18n/index.d.ts +4 -0
- package/fe/packages/react/ui/i18n/index.js +7 -0
- package/fe/packages/react/ui/i18n/useI18n.d.ts +13 -0
- package/fe/packages/react/ui/i18n/useI18n.js +25 -0
- package/fe/packages/{ui/react → react/ui}/index.css +70 -9
- package/fe/packages/react/ui/index.d.ts +5 -0
- package/fe/packages/react/ui/index.js +58 -0
- package/fe/packages/{ui/react → react/ui}/lib/createStoreHook.d.ts +1 -1
- package/fe/packages/react/ui/lib/createStoreHook.js +9 -0
- package/fe/packages/{ui/react → react/ui}/lib/export.d.ts +1 -1
- package/fe/packages/react/ui/lib/export.js +112 -0
- package/fe/packages/react/ui/lib/utils.js +64 -0
- package/fe/packages/{ui/react → react/ui}/stores/breadcrumb.d.ts +1 -1
- package/fe/packages/react/ui/stores/breadcrumb.js +52 -0
- package/fe/packages/react/ui/stores/language.d.ts +4 -0
- package/fe/packages/react/ui/stores/language.js +4 -0
- package/fe/packages/react/ui/types/index.js +0 -0
- package/fe/typings/type.d.ts +1 -0
- package/model/index.d.ts +1 -1
- package/model/types/data/button.d.ts +4 -4
- package/model/types/data/component.d.ts +32 -47
- package/model/types/data/schema.d.ts +6 -6
- package/model/types/data/search.d.ts +1 -1
- package/model/types/index.d.ts +2 -1
- package/model/types/model.d.ts +19 -12
- package/package.json +37 -39
- package/types/app/controller/project.d.ts +14 -2
- package/types/app/controller/view.d.ts +1 -1
- package/types/app/extend/$fetch.d.ts +8 -0
- package/types/app/extend/db.d.ts +54 -1
- package/types/app/extend/render-view.d.ts +3 -0
- package/types/app/middleware/api-params-verify.d.ts +1 -1
- package/types/app/middleware/project-handler.d.ts +2 -2
- package/types/app/router/project.d.ts +1 -1
- package/types/app/service/base.d.ts +3 -4
- package/types/app/service/project.d.ts +7 -2
- package/types/app/type.d.ts +5 -3
- package/types/app/typings.d.ts +4 -2
- package/types/bundler/buildBE.d.ts +13 -0
- package/types/bundler/index.d.ts +4 -1
- package/types/bundler/state.d.ts +18 -0
- package/types/bundler/utils.d.ts +5 -0
- package/types/config/config.default.d.ts +33 -2
- package/types/index.d.ts +6 -5
- package/{fe/frontend/widgets/common/CRUD/CRUD.d.ts → types/packages/common/http/index.d.ts} +29 -10
- package/types/packages/common/i18n/default.d.ts +5 -0
- package/types/packages/common/i18n/en-US.d.ts +5 -0
- package/types/packages/common/i18n/index.d.ts +24 -0
- package/types/packages/common/i18n/types.d.ts +24 -0
- package/types/packages/common/index.d.ts +1 -0
- package/types/packages/core/index.d.ts +3 -3
- package/types/packages/core/loader/config.d.ts +6 -0
- package/types/packages/core/loader/controller.d.ts +14 -0
- package/types/packages/core/loader/extend.d.ts +6 -1
- package/types/packages/core/loader/middleware.d.ts +8 -0
- package/types/packages/core/loader/model.d.ts +22 -0
- package/types/packages/core/loader/router-schema.d.ts +15 -0
- package/types/packages/core/loader/router.d.ts +5 -0
- package/types/packages/core/loader/service.d.ts +14 -0
- package/types/packages/core/paths.d.ts +10 -7
- package/types/packages/core/types.d.ts +66 -3
- package/types/packages/utils/getAllFilesInFolder.d.ts +5 -0
- package/types/packages/utils/loadFile.d.ts +6 -0
- package/types/packages/utils/path.d.ts +18 -0
- package/types/scripts/vite-build/build.d.ts +24 -0
- package/types/scripts/vite-build/collect.d.ts +57 -0
- package/types/scripts/vite-build/constants.d.ts +6 -0
- package/types/scripts/vite-build/dts.d.ts +53 -0
- package/types/scripts/vite-build/index.d.ts +2 -0
- package/types/scripts/vite-build/normalize.d.ts +66 -0
- package/types/scripts/vite-build/plugins.d.ts +67 -0
- package/types/scripts/vite-build/resolve.d.ts +61 -0
- package/types/scripts/vite-build/types.d.ts +174 -0
- package/types/scripts/vite-build/utils.d.ts +35 -0
- package/types/typings/type.d.ts +1 -0
- package/cjs/app/README.md +0 -286
- package/cjs/app/data/signKey.js +0 -23
- package/esm/app/README.md +0 -286
- package/esm/app/data/signKey.js +0 -10
- package/fe/frontend/components/AsyncSelect/AsyncSelect.js +0 -32
- package/fe/frontend/components/AsyncSelect/index.d.ts +0 -4
- package/fe/frontend/components/AsyncSelect/index.js +0 -3
- package/fe/frontend/dash/Dashboard.d.ts +0 -7
- package/fe/frontend/dash/Dashboard.js +0 -73
- package/fe/frontend/dash/dash.entry.js +0 -93
- package/fe/frontend/dash/types.d.ts +0 -17
- package/fe/frontend/dash/types.js +0 -1
- package/fe/frontend/index.d.ts +0 -5
- package/fe/frontend/index.js +0 -2
- package/fe/frontend/main.css +0 -5
- package/fe/frontend/main.d.ts +0 -11
- package/fe/frontend/main.js +0 -19
- package/fe/frontend/testPage/index.js +0 -6
- package/fe/frontend/testPage/testPage.entry.d.ts +0 -2
- package/fe/frontend/testPage/testPage.entry.js +0 -3
- package/fe/frontend/typing/scalability.js +0 -1
- package/fe/frontend/typing/window.d.ts +0 -7
- package/fe/frontend/typing/window.js +0 -1
- package/fe/frontend/widgets/api/baseInfo.js +0 -15
- package/fe/frontend/widgets/common/CRUD/CRUD.js +0 -208
- package/fe/frontend/widgets/common/CRUD/index.d.ts +0 -2
- package/fe/frontend/widgets/common/CRUD/index.js +0 -1
- package/fe/frontend/widgets/common/auth/index.js +0 -20
- package/fe/frontend/widgets/common/generateMenuData.d.ts +0 -4
- package/fe/frontend/widgets/common/generateMenuData.js +0 -14
- package/fe/frontend/widgets/common/importComponent.js +0 -8
- package/fe/frontend/widgets/common/language.d.ts +0 -2
- package/fe/frontend/widgets/common/language.js +0 -9
- package/fe/frontend/widgets/common/logFn/index.js +0 -8
- package/fe/frontend/widgets/common/menu.js +0 -101
- package/fe/frontend/widgets/common/request.d.ts +0 -36
- package/fe/frontend/widgets/common/request.js +0 -133
- package/fe/frontend/widgets/components/BasePage/HeaderView.js +0 -16
- package/fe/frontend/widgets/components/Router/index.js +0 -11
- package/fe/frontend/widgets/components/Router/type.js +0 -1
- package/fe/frontend/widgets/defaultPages/Iframe/index.js +0 -14
- package/fe/frontend/widgets/defaultPages/Schema/components/CallCom/DetailPanel.js +0 -94
- package/fe/frontend/widgets/defaultPages/Schema/components/CallCom/PopFrom.js +0 -124
- package/fe/frontend/widgets/defaultPages/Schema/components/CallCom/data.d.ts +0 -3
- package/fe/frontend/widgets/defaultPages/Schema/components/CallCom/data.js +0 -6
- package/fe/frontend/widgets/defaultPages/Schema/components/SchemaSearch/index.js +0 -63
- package/fe/frontend/widgets/defaultPages/Schema/components/SchemaTable/index.js +0 -188
- package/fe/frontend/widgets/defaultPages/Schema/data/eventInfo.js +0 -6
- package/fe/frontend/widgets/defaultPages/Schema/data/index.js +0 -1
- package/fe/frontend/widgets/defaultPages/Schema/hooks/useComConfig.js +0 -14
- package/fe/frontend/widgets/defaultPages/Schema/index.js +0 -74
- package/fe/frontend/widgets/defaultPages/Schema/schemaType.js +0 -4
- package/fe/frontend/widgets/defaultPages/Schema/stores/schemaEventBus.js +0 -70
- package/fe/frontend/widgets/defaultPages/Schema/stores/schemaStore.js +0 -26
- package/fe/frontend/widgets/defaultPages/Schema/utils/fetchErrorShow.js +0 -8
- package/fe/frontend/widgets/defaultPages/Schema/utils/permissions.js +0 -3
- package/fe/frontend/widgets/defaultPages/Schema/utils/schemaConversion.d.ts +0 -3
- package/fe/frontend/widgets/defaultPages/Schema/utils/schemaConversion.js +0 -115
- package/fe/frontend/widgets/defaultPages/Schema/utils/validator.d.ts +0 -7
- package/fe/frontend/widgets/defaultPages/Schema/utils/validator.js +0 -36
- package/fe/frontend/widgets/defaultPages/SidebarSlotPage/SidebarSlotContainer.js +0 -38
- package/fe/frontend/widgets/defaultPages/SidebarSlotPage/index.js +0 -16
- package/fe/frontend/widgets/defaultPages/SidebarSlotPageTmp.js +0 -17
- package/fe/frontend/widgets/defaultPages/SlotPage/index.js +0 -26
- package/fe/frontend/widgets/defaultPages/Todo.d.ts +0 -3
- package/fe/frontend/widgets/defaultPages/Todo.js +0 -5
- package/fe/frontend/widgets/hooks/useCurrentMenuData.js +0 -28
- package/fe/frontend/widgets/hooks/useRouterParams.js +0 -11
- package/fe/frontend/widgets/store/mode.js +0 -37
- package/fe/model/types/data/button.js +0 -16
- package/fe/model/types/data/component.js +0 -11
- package/fe/model/types/data/fetchInfo.js +0 -1
- package/fe/model/types/data/schema.js +0 -1
- package/fe/model/types/data/search.js +0 -1
- package/fe/model/types/menuType.js +0 -1
- package/fe/model/types/model.js +0 -1
- package/fe/packages/common/array/index.js +0 -40
- package/fe/packages/common/cache/index.js +0 -1
- package/fe/packages/common/i18n/types.js +0 -1
- package/fe/packages/common/index.js +0 -9
- package/fe/packages/common/log/index.js +0 -176
- package/fe/packages/common/number/index.js +0 -10
- package/fe/packages/common/object/index.js +0 -25
- package/fe/packages/common/string/index.js +0 -17
- package/fe/packages/common/types/index.js +0 -1
- package/fe/packages/ui/react/components/Button/Button.js +0 -72
- package/fe/packages/ui/react/components/Button/SumbitButton.d.ts +0 -13
- package/fe/packages/ui/react/components/Button/SumbitButton.js +0 -25
- package/fe/packages/ui/react/components/Button/index.d.ts +0 -4
- package/fe/packages/ui/react/components/Button/index.js +0 -2
- package/fe/packages/ui/react/components/Checkbox/Checkbox.js +0 -39
- package/fe/packages/ui/react/components/Checkbox/index.d.ts +0 -2
- package/fe/packages/ui/react/components/Checkbox/index.js +0 -1
- package/fe/packages/ui/react/components/ConfirmDialog/ConfirmDialog.js +0 -11
- package/fe/packages/ui/react/components/ConfirmDialog/index.d.ts +0 -2
- package/fe/packages/ui/react/components/ConfirmDialog/index.js +0 -1
- package/fe/packages/ui/react/components/DataTable/ActionBtn.js +0 -94
- package/fe/packages/ui/react/components/DataTable/index.js +0 -155
- package/fe/packages/ui/react/components/Date/Calendar.js +0 -216
- package/fe/packages/ui/react/components/Date/Date.js +0 -201
- package/fe/packages/ui/react/components/Date/DateTestPage.js +0 -29
- package/fe/packages/ui/react/components/Date/LocaleContext.js +0 -8
- package/fe/packages/ui/react/components/Date/LocaleProvider.js +0 -24
- package/fe/packages/ui/react/components/Date/TimePicker.js +0 -78
- package/fe/packages/ui/react/components/Date/data.js +0 -4
- package/fe/packages/ui/react/components/Date/dateLocaleStore.js +0 -14
- package/fe/packages/ui/react/components/Date/dropdownPositioning.d.ts +0 -3
- package/fe/packages/ui/react/components/Date/dropdownPositioning.js +0 -12
- package/fe/packages/ui/react/components/Date/index.d.ts +0 -6
- package/fe/packages/ui/react/components/Date/index.js +0 -5
- package/fe/packages/ui/react/components/Date/locales.js +0 -21
- package/fe/packages/ui/react/components/Drawer/Drawer.js +0 -100
- package/fe/packages/ui/react/components/Drawer/index.d.ts +0 -3
- package/fe/packages/ui/react/components/Drawer/index.js +0 -1
- package/fe/packages/ui/react/components/Dropdown/Dropdown.js +0 -28
- package/fe/packages/ui/react/components/Dropdown/index.d.ts +0 -2
- package/fe/packages/ui/react/components/Dropdown/index.js +0 -1
- package/fe/packages/ui/react/components/Form/Form.js +0 -8
- package/fe/packages/ui/react/components/Form/FormItem.js +0 -43
- package/fe/packages/ui/react/components/Form/SchemaForm/data.js +0 -18
- package/fe/packages/ui/react/components/Form/SchemaForm/index.js +0 -79
- package/fe/packages/ui/react/components/Form/index.d.ts +0 -5
- package/fe/packages/ui/react/components/Form/index.js +0 -4
- package/fe/packages/ui/react/components/Form/useForm.d.ts +0 -3
- package/fe/packages/ui/react/components/Form/useForm.js +0 -1
- package/fe/packages/ui/react/components/ImagePreview/ImagePreview.js +0 -169
- package/fe/packages/ui/react/components/ImagePreview/PreviewImage.js +0 -28
- package/fe/packages/ui/react/components/ImagePreview/index.d.ts +0 -3
- package/fe/packages/ui/react/components/ImagePreview/index.js +0 -2
- package/fe/packages/ui/react/components/Input/Input.js +0 -61
- package/fe/packages/ui/react/components/Input/index.d.ts +0 -2
- package/fe/packages/ui/react/components/Input/index.js +0 -1
- package/fe/packages/ui/react/components/InputNumber/InputNumber.js +0 -144
- package/fe/packages/ui/react/components/InputNumber/index.d.ts +0 -2
- package/fe/packages/ui/react/components/InputNumber/index.js +0 -1
- package/fe/packages/ui/react/components/InputNumber/inputNumberUtils.js +0 -63
- package/fe/packages/ui/react/components/InputNumber/inputNumberUtils.test.js +0 -27
- package/fe/packages/ui/react/components/Label/Label.js +0 -35
- package/fe/packages/ui/react/components/Label/index.d.ts +0 -3
- package/fe/packages/ui/react/components/Label/index.js +0 -2
- package/fe/packages/ui/react/components/Menu/Menu.js +0 -102
- package/fe/packages/ui/react/components/Menu/MenuContext.js +0 -97
- package/fe/packages/ui/react/components/Menu/MenuItem.js +0 -33
- package/fe/packages/ui/react/components/Menu/SubMenu.js +0 -169
- package/fe/packages/ui/react/components/Menu/index.d.ts +0 -9
- package/fe/packages/ui/react/components/Menu/index.js +0 -5
- package/fe/packages/ui/react/components/Menu/menuTypes.js +0 -1
- package/fe/packages/ui/react/components/Menu/utils.js +0 -7
- package/fe/packages/ui/react/components/Message/Message.js +0 -58
- package/fe/packages/ui/react/components/Message/MessageManager.js +0 -90
- package/fe/packages/ui/react/components/Message/data.js +0 -1
- package/fe/packages/ui/react/components/Message/index.d.ts +0 -3
- package/fe/packages/ui/react/components/Message/index.js +0 -1
- package/fe/packages/ui/react/components/Modal/Modal.js +0 -14
- package/fe/packages/ui/react/components/Modal/ModalManager.js +0 -90
- package/fe/packages/ui/react/components/Modal/index.d.ts +0 -4
- package/fe/packages/ui/react/components/Modal/index.js +0 -2
- package/fe/packages/ui/react/components/Overlay/Overlay.js +0 -53
- package/fe/packages/ui/react/components/Overlay/index.d.ts +0 -3
- package/fe/packages/ui/react/components/Overlay/index.js +0 -1
- package/fe/packages/ui/react/components/Pagination/Pagination.js +0 -88
- package/fe/packages/ui/react/components/Pagination/index.d.ts +0 -2
- package/fe/packages/ui/react/components/Pagination/index.js +0 -1
- package/fe/packages/ui/react/components/Popup/Popup.js +0 -81
- package/fe/packages/ui/react/components/Popup/index.d.ts +0 -2
- package/fe/packages/ui/react/components/Popup/index.js +0 -1
- package/fe/packages/ui/react/components/Search/Search.js +0 -12
- package/fe/packages/ui/react/components/Search/index.d.ts +0 -2
- package/fe/packages/ui/react/components/Search/index.js +0 -1
- package/fe/packages/ui/react/components/Select/Select.js +0 -123
- package/fe/packages/ui/react/components/Select/dropdownPositioning.d.ts +0 -3
- package/fe/packages/ui/react/components/Select/dropdownPositioning.js +0 -13
- package/fe/packages/ui/react/components/Select/index.d.ts +0 -2
- package/fe/packages/ui/react/components/Select/index.js +0 -1
- package/fe/packages/ui/react/components/Skeleton/Skeleton.js +0 -31
- package/fe/packages/ui/react/components/Skeleton/index.d.ts +0 -3
- package/fe/packages/ui/react/components/Skeleton/index.js +0 -1
- package/fe/packages/ui/react/components/Switch/Switch.js +0 -22
- package/fe/packages/ui/react/components/Switch/index.d.ts +0 -2
- package/fe/packages/ui/react/components/Switch/index.js +0 -1
- package/fe/packages/ui/react/components/TableSearch/TableSearch.js +0 -121
- package/fe/packages/ui/react/components/TableSearch/index.d.ts +0 -2
- package/fe/packages/ui/react/components/TableSearch/index.js +0 -1
- package/fe/packages/ui/react/components/TableSearch/lang.js +0 -14
- package/fe/packages/ui/react/components/TableSearch/tableSearchLocaleStore.js +0 -11
- package/fe/packages/ui/react/components/Textarea/Textarea.js +0 -37
- package/fe/packages/ui/react/components/Textarea/index.d.ts +0 -2
- package/fe/packages/ui/react/components/Textarea/index.js +0 -1
- package/fe/packages/ui/react/components/Tooltip/Tooltip.js +0 -79
- package/fe/packages/ui/react/components/Tooltip/index.d.ts +0 -2
- package/fe/packages/ui/react/components/Tooltip/index.js +0 -1
- package/fe/packages/ui/react/components/TreeSelect/TreeSelect.js +0 -160
- package/fe/packages/ui/react/components/TreeSelect/index.d.ts +0 -2
- package/fe/packages/ui/react/components/TreeSelect/index.js +0 -1
- package/fe/packages/ui/react/components/Upload/ImageUpload.js +0 -75
- package/fe/packages/ui/react/components/Upload/Upload.js +0 -6
- package/fe/packages/ui/react/components/Upload/index.d.ts +0 -3
- package/fe/packages/ui/react/components/Upload/index.js +0 -2
- package/fe/packages/ui/react/components/breadcrumb/breadcrumb.js +0 -81
- package/fe/packages/ui/react/components/breadcrumb/index.d.ts +0 -2
- package/fe/packages/ui/react/components/breadcrumb/index.js +0 -1
- package/fe/packages/ui/react/components/hooks/useDropdownPositioning.js +0 -137
- package/fe/packages/ui/react/components/hooks/useInputController.js +0 -45
- package/fe/packages/ui/react/components/index.d.ts +0 -30
- package/fe/packages/ui/react/components/index.js +0 -29
- package/fe/packages/ui/react/components/table/index.d.ts +0 -2
- package/fe/packages/ui/react/components/table/index.js +0 -1
- package/fe/packages/ui/react/components/table/table.js +0 -20
- package/fe/packages/ui/react/components/testPage/MenuTestPage.js +0 -104
- package/fe/packages/ui/react/components/testPage/index.js +0 -314
- package/fe/packages/ui/react/hooks/useBreadcrumb.d.ts +0 -10
- package/fe/packages/ui/react/hooks/useBreadcrumb.js +0 -2
- package/fe/packages/ui/react/hooks/useExecuteOnce.js +0 -57
- package/fe/packages/ui/react/hooks/useInit.js +0 -9
- package/fe/packages/ui/react/hooks/useLanguage.d.ts +0 -2
- package/fe/packages/ui/react/hooks/useLanguage.js +0 -4
- package/fe/packages/ui/react/hooks/usePagination.js +0 -27
- package/fe/packages/ui/react/hooks/useRefState.js +0 -29
- package/fe/packages/ui/react/hooks/useWatch.js +0 -87
- package/fe/packages/ui/react/hooks/useWatch.test.js +0 -22
- package/fe/packages/ui/react/i18n/I18nProvider.js +0 -25
- package/fe/packages/ui/react/i18n/index.d.ts +0 -4
- package/fe/packages/ui/react/i18n/index.js +0 -3
- package/fe/packages/ui/react/i18n/useI18n.d.ts +0 -13
- package/fe/packages/ui/react/i18n/useI18n.js +0 -18
- package/fe/packages/ui/react/index.d.ts +0 -5
- package/fe/packages/ui/react/index.js +0 -6
- package/fe/packages/ui/react/lib/createStoreHook.js +0 -6
- package/fe/packages/ui/react/lib/export.js +0 -138
- package/fe/packages/ui/react/lib/utils.js +0 -70
- package/fe/packages/ui/react/stores/breadcrumb.js +0 -66
- package/fe/packages/ui/react/stores/language.d.ts +0 -4
- package/fe/packages/ui/react/stores/language.js +0 -2
- package/fe/packages/ui/react/types/index.js +0 -1
- package/fe/typings/type.js +0 -1
- package/types/app/data/signKey.d.ts +0 -1
- /package/fe/frontend/{dash → apps/dash}/dash.entry.d.ts +0 -0
- /package/fe/frontend/{testPage → apps/ui-components}/index.d.ts +0 -0
- /package/fe/frontend/{widgets → src}/common/auth/index.d.ts +0 -0
- /package/fe/frontend/{widgets → src}/components/Router/type.d.ts +0 -0
- /package/fe/frontend/{widgets → src}/defaultPages/Iframe/index.d.ts +0 -0
- /package/fe/frontend/{widgets/defaultPages/Schema → src/defaultPages/SchemaPage}/components/SchemaSearch/index.d.ts +0 -0
- /package/fe/frontend/{widgets/defaultPages/Schema → src/defaultPages/SchemaPage}/data/eventInfo.d.ts +0 -0
- /package/fe/frontend/{widgets/defaultPages/Schema → src/defaultPages/SchemaPage}/data/index.d.ts +0 -0
- /package/fe/frontend/{widgets/defaultPages/Schema → src/defaultPages/SchemaPage}/utils/permissions.d.ts +0 -0
- /package/fe/frontend/{widgets → src}/defaultPages/SidebarSlotPage/index.d.ts +0 -0
- /package/fe/frontend/{widgets → src}/defaultPages/SidebarSlotPageTmp.d.ts +0 -0
- /package/fe/frontend/{widgets → src}/defaultPages/SlotPage/index.d.ts +0 -0
- /package/fe/frontend/{widgets → src}/hooks/useCurrentMenuData.d.ts +0 -0
- /package/fe/frontend/{widgets → src}/hooks/useRouterParams.d.ts +0 -0
- /package/fe/packages/{ui/react → react}/hooks/useExecuteOnce.d.ts +0 -0
- /package/fe/packages/{ui/react → react}/hooks/useInit.d.ts +0 -0
- /package/fe/packages/{ui/react → react}/hooks/usePagination.d.ts +0 -0
- /package/fe/packages/{ui/react → react}/hooks/useWatch.d.ts +0 -0
- /package/fe/packages/{ui/react → react}/hooks/useWatch.test.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/assets/table/no-result.svg +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/ConfirmDialog/ConfirmDialog.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/Date/Date.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/Date/DateTestPage.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/Date/LocaleContext.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/Date/TimePicker.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/Date/data.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/Date/locales.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/ImagePreview/ImagePreview.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/InputNumber/inputNumberUtils.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/InputNumber/inputNumberUtils.test.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/Menu/Menu.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/Menu/MenuContext.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/Menu/MenuItem.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/Menu/SubMenu.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/Menu/utils.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/Message/data.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/Pagination/Pagination.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/Popup/Popup.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/TableSearch/lang.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/Textarea/Textarea.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/Tooltip/Tooltip.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/TreeSelect/TreeSelect.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/Upload/ImageUpload.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/breadcrumb/breadcrumb.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/hooks/useDropdownPositioning.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/hooks/useInputController.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/testPage/MenuTestPage.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/components/testPage/index.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/lib/utils.d.ts +0 -0
- /package/fe/packages/{ui/react → react/ui}/types/index.d.ts +0 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { frontendLangKeys } from "../../../language/index.js";
|
|
2
|
+
import { getText } from "../../../common/language.js";
|
|
3
|
+
import { Ajv } from "ajv";
|
|
4
|
+
//#region frontend/src/defaultPages/SchemaPage/utils/validator.ts
|
|
5
|
+
var ajvInstance = new Ajv({
|
|
6
|
+
allErrors: true,
|
|
7
|
+
verbose: true,
|
|
8
|
+
strict: false
|
|
9
|
+
});
|
|
10
|
+
var isPlainObject = (value) => Object.prototype.toString.call(value) === "[object Object]";
|
|
11
|
+
var isEmptyValue = (value) => value === void 0 || value === null || value === "" || Array.isArray(value) && value.length === 0 || isPlainObject(value) && Object.keys(value).length === 0;
|
|
12
|
+
var getErrorPath = (error) => {
|
|
13
|
+
const path = error.instancePath.replace(/^\//, "");
|
|
14
|
+
if (path) return path;
|
|
15
|
+
return error.params.missingProperty || getText(frontendLangKeys.validatorValue);
|
|
16
|
+
};
|
|
17
|
+
var getTypeText = (type) => {
|
|
18
|
+
return (Array.isArray(type) ? type : [type]).filter((item) => typeof item === "string").map((item) => {
|
|
19
|
+
switch (item) {
|
|
20
|
+
case "string": return getText(frontendLangKeys.validatorTypeString);
|
|
21
|
+
case "number": return getText(frontendLangKeys.validatorTypeNumber);
|
|
22
|
+
case "integer": return getText(frontendLangKeys.validatorTypeInteger);
|
|
23
|
+
case "boolean": return getText(frontendLangKeys.validatorTypeBoolean);
|
|
24
|
+
case "array": return getText(frontendLangKeys.validatorTypeArray);
|
|
25
|
+
case "object": return getText(frontendLangKeys.validatorTypeObject);
|
|
26
|
+
case "null": return getText(frontendLangKeys.validatorTypeNull);
|
|
27
|
+
default: return item;
|
|
28
|
+
}
|
|
29
|
+
}).join(" / ");
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* 创建验证器
|
|
33
|
+
*/
|
|
34
|
+
function createAjvValidator(schema, options = {}) {
|
|
35
|
+
const validate = ajvInstance.compile(schema);
|
|
36
|
+
return (rule, value, callback) => {
|
|
37
|
+
if (!options.required && isEmptyValue(value)) {
|
|
38
|
+
callback();
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (validate(value)) callback();
|
|
42
|
+
else callback((validate.errors || []).map(formatError));
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function formatError(error) {
|
|
46
|
+
const path = getErrorPath(error);
|
|
47
|
+
switch (error.keyword) {
|
|
48
|
+
case "required": return getText(frontendLangKeys.validatorRequired, { field: error.params.missingProperty });
|
|
49
|
+
case "type": return getText(frontendLangKeys.validatorType, {
|
|
50
|
+
path,
|
|
51
|
+
type: getTypeText(error.params.type)
|
|
52
|
+
});
|
|
53
|
+
case "format": return getText(frontendLangKeys.validatorFormat, {
|
|
54
|
+
path,
|
|
55
|
+
format: String(error.params.format ?? "")
|
|
56
|
+
});
|
|
57
|
+
case "minimum": return getText(frontendLangKeys.validatorMinimum, {
|
|
58
|
+
path,
|
|
59
|
+
limit: error.params.limit
|
|
60
|
+
});
|
|
61
|
+
case "maximum": return getText(frontendLangKeys.validatorMaximum, {
|
|
62
|
+
path,
|
|
63
|
+
limit: error.params.limit
|
|
64
|
+
});
|
|
65
|
+
case "exclusiveMinimum": return getText(frontendLangKeys.validatorExclusiveMinimum, {
|
|
66
|
+
path,
|
|
67
|
+
limit: error.params.limit
|
|
68
|
+
});
|
|
69
|
+
case "exclusiveMaximum": return getText(frontendLangKeys.validatorExclusiveMaximum, {
|
|
70
|
+
path,
|
|
71
|
+
limit: error.params.limit
|
|
72
|
+
});
|
|
73
|
+
case "multipleOf": return getText(frontendLangKeys.validatorMultipleOf, {
|
|
74
|
+
path,
|
|
75
|
+
multipleOf: error.params.multipleOf
|
|
76
|
+
});
|
|
77
|
+
case "minLength": return getText(frontendLangKeys.validatorMinLength, {
|
|
78
|
+
path,
|
|
79
|
+
limit: error.params.limit
|
|
80
|
+
});
|
|
81
|
+
case "maxLength": return getText(frontendLangKeys.validatorMaxLength, {
|
|
82
|
+
path,
|
|
83
|
+
limit: error.params.limit
|
|
84
|
+
});
|
|
85
|
+
case "pattern": return getText(frontendLangKeys.validatorPattern, { path });
|
|
86
|
+
case "minItems": return getText(frontendLangKeys.validatorMinItems, {
|
|
87
|
+
path,
|
|
88
|
+
limit: error.params.limit
|
|
89
|
+
});
|
|
90
|
+
case "maxItems": return getText(frontendLangKeys.validatorMaxItems, {
|
|
91
|
+
path,
|
|
92
|
+
limit: error.params.limit
|
|
93
|
+
});
|
|
94
|
+
case "uniqueItems": return getText(frontendLangKeys.validatorUniqueItems, { path });
|
|
95
|
+
case "minProperties": return getText(frontendLangKeys.validatorMinProperties, {
|
|
96
|
+
path,
|
|
97
|
+
limit: error.params.limit
|
|
98
|
+
});
|
|
99
|
+
case "maxProperties": return getText(frontendLangKeys.validatorMaxProperties, {
|
|
100
|
+
path,
|
|
101
|
+
limit: error.params.limit
|
|
102
|
+
});
|
|
103
|
+
case "additionalProperties": return getText(frontendLangKeys.validatorAdditionalProperties, {
|
|
104
|
+
path,
|
|
105
|
+
property: error.params.additionalProperty
|
|
106
|
+
});
|
|
107
|
+
case "enum": return getText(frontendLangKeys.validatorEnum, { path });
|
|
108
|
+
case "const": return getText(frontendLangKeys.validatorConst, { path });
|
|
109
|
+
case "oneOf": return getText(frontendLangKeys.validatorOneOf, { path });
|
|
110
|
+
case "anyOf": return getText(frontendLangKeys.validatorAnyOf, { path });
|
|
111
|
+
case "allOf": return getText(frontendLangKeys.validatorAllOf, { path });
|
|
112
|
+
case "not": return getText(frontendLangKeys.validatorNot, { path });
|
|
113
|
+
case "propertyNames": return getText(frontendLangKeys.validatorPropertyNames, { path });
|
|
114
|
+
case "dependencies":
|
|
115
|
+
case "dependentRequired": return getText(frontendLangKeys.validatorDependencies, { path });
|
|
116
|
+
case "contains": return getText(frontendLangKeys.validatorContains, { path });
|
|
117
|
+
case "if": return getText(frontendLangKeys.validatorIf, { path });
|
|
118
|
+
default: return getText(frontendLangKeys.validatorFallback, { path });
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
//#endregion
|
|
122
|
+
export { ajvInstance, createAjvValidator };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseMenuType } from
|
|
2
|
-
import { MenuItemData } from
|
|
1
|
+
import { BaseMenuType } from "../../../../model/types/menuType";
|
|
2
|
+
import { MenuItemData } from "../../../../packages/react/ui/components/index";
|
|
3
3
|
interface SidebarSlotContainerProps {
|
|
4
4
|
prefixPath: string;
|
|
5
5
|
rawMenuData: BaseMenuType[];
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Menu } from "../../../../packages/react/ui/components/Menu/Menu.js";
|
|
2
|
+
import "../../../../packages/react/ui/components/index.js";
|
|
3
|
+
import { QK, findMenuItem } from "../../common/menu.js";
|
|
4
|
+
import useRouterParams from "../../hooks/useRouterParams.js";
|
|
5
|
+
import { logPageNotFound } from "../../common/logFn/index.js";
|
|
6
|
+
import { useEffect, useState } from "react";
|
|
7
|
+
import { Outlet, useNavigate } from "react-router-dom";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
//#region frontend/src/defaultPages/SidebarSlotPage/SidebarSlotContainer.tsx
|
|
10
|
+
var SidebarSlotContainer = (props) => {
|
|
11
|
+
const { prefixPath, rawMenuData, menuItems } = props;
|
|
12
|
+
const params = useRouterParams();
|
|
13
|
+
const [SK, uSK] = useState(params[QK.sk]);
|
|
14
|
+
const nav = useNavigate();
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
/**
|
|
17
|
+
* 如果没有 sidebar key 说明当前是 自定义路由
|
|
18
|
+
* 则需要获取 query 中的 ck 来查找 menuinfo
|
|
19
|
+
*/
|
|
20
|
+
if (!params[QK.sk]) {
|
|
21
|
+
if (params[QK.ck]) {
|
|
22
|
+
const m = findMenuItem(rawMenuData, params[QK.ck]);
|
|
23
|
+
if (m) {
|
|
24
|
+
uSK(m.key);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
logPageNotFound();
|
|
29
|
+
}
|
|
30
|
+
}, [rawMenuData, params]);
|
|
31
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
32
|
+
className: "sidebar-slot flex h-full w-full gap-0 overflow-hidden bg-theme-bg",
|
|
33
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
34
|
+
className: "sidebar-slot-container flex h-full shrink-0 border-r border-border/70 bg-background/70 px-2 py-2",
|
|
35
|
+
children: /* @__PURE__ */ jsx(Menu, {
|
|
36
|
+
className: "sidebar-shell-menu",
|
|
37
|
+
items: menuItems,
|
|
38
|
+
selectedKey: SK,
|
|
39
|
+
onSelect: (e) => {
|
|
40
|
+
const m = findMenuItem(rawMenuData, e);
|
|
41
|
+
uSK(e);
|
|
42
|
+
nav({
|
|
43
|
+
...m.path,
|
|
44
|
+
pathname: prefixPath + m.path.pathname
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
})
|
|
48
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
49
|
+
className: "min-w-0 flex-1 overflow-hidden",
|
|
50
|
+
children: /* @__PURE__ */ jsx(Outlet, {})
|
|
51
|
+
})]
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
//#endregion
|
|
55
|
+
export { SidebarSlotContainer as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { generateMenuItemData } from "../../common/generateMenuData.js";
|
|
2
|
+
import { QK } from "../../common/menu.js";
|
|
3
|
+
import useCurrentMenuData from "../../hooks/useCurrentMenuData.js";
|
|
4
|
+
import SidebarSlotContainer from "./SidebarSlotContainer.js";
|
|
5
|
+
import { useMemo } from "react";
|
|
6
|
+
import { useParams } from "react-router-dom";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
//#region frontend/src/defaultPages/SidebarSlotPage/index.tsx
|
|
9
|
+
var SidebarSlotPage = () => {
|
|
10
|
+
const params = useParams();
|
|
11
|
+
const { menu: parentMenuInfo } = useCurrentMenuData();
|
|
12
|
+
const menuKey = params[QK.k];
|
|
13
|
+
const prefixPath = useMemo(() => `/${menuKey}`, [menuKey]);
|
|
14
|
+
return /* @__PURE__ */ jsx(SidebarSlotContainer, {
|
|
15
|
+
menuItems: generateMenuItemData(parentMenuInfo?.sidebarConfig?.menu ?? []),
|
|
16
|
+
rawMenuData: parentMenuInfo?.sidebarConfig.menu,
|
|
17
|
+
prefixPath
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { SidebarSlotPage as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { generateMenuItemData } from "../common/generateMenuData.js";
|
|
2
|
+
import { useModeStore } from "../stores/mode.js";
|
|
3
|
+
import { leftSidebarBasePath } from "../common/menu.js";
|
|
4
|
+
import SidebarSlotContainer from "./SidebarSlotPage/SidebarSlotContainer.js";
|
|
5
|
+
import { useMemo } from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
//#region frontend/src/defaultPages/SidebarSlotPageTmp.tsx
|
|
8
|
+
var SidebarSlotPageTmp = () => {
|
|
9
|
+
const projInfo = useModeStore((s) => s.projectInfo);
|
|
10
|
+
const [menuItems, rawMenuData] = useMemo(() => {
|
|
11
|
+
if (projInfo) return [generateMenuItemData(projInfo.menu), projInfo.menu];
|
|
12
|
+
return [[], []];
|
|
13
|
+
}, [projInfo]);
|
|
14
|
+
return /* @__PURE__ */ jsx(SidebarSlotContainer, {
|
|
15
|
+
prefixPath: "/" + leftSidebarBasePath,
|
|
16
|
+
rawMenuData,
|
|
17
|
+
menuItems
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { SidebarSlotPageTmp as default };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { logPageNotFound } from "../../common/logFn/index.js";
|
|
2
|
+
import useCurrentMenuData from "../../hooks/useCurrentMenuData.js";
|
|
3
|
+
import Iframe from "../Iframe/index.js";
|
|
4
|
+
import NotFoundPage from "../NotFoundPage/index.js";
|
|
5
|
+
import Schema from "../SchemaPage/index.js";
|
|
6
|
+
import { memo, useMemo } from "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
//#region frontend/src/defaultPages/SlotPage/index.tsx
|
|
9
|
+
var SlotPage = memo(() => {
|
|
10
|
+
const { menu } = useCurrentMenuData(true);
|
|
11
|
+
return useMemo(() => {
|
|
12
|
+
if (menu?.moduleType === "iframe") return /* @__PURE__ */ jsx(Iframe, {});
|
|
13
|
+
else if (menu?.moduleType === "schema") return /* @__PURE__ */ jsx(Schema, {});
|
|
14
|
+
else {
|
|
15
|
+
logPageNotFound();
|
|
16
|
+
return /* @__PURE__ */ jsx(NotFoundPage, {});
|
|
17
|
+
}
|
|
18
|
+
}, [menu?.moduleType]);
|
|
19
|
+
});
|
|
20
|
+
SlotPage.displayName = "SlotPage";
|
|
21
|
+
//#endregion
|
|
22
|
+
export { SlotPage as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* mode 数据
|
|
3
|
+
*/
|
|
4
|
+
export * from "./stores/mode";
|
|
5
|
+
/**
|
|
6
|
+
* callcom 与SchemaPage 通信
|
|
7
|
+
*/
|
|
8
|
+
export * from "./stores/schemaEventBus";
|
|
9
|
+
/**
|
|
10
|
+
* 获取 schema 数据
|
|
11
|
+
*/
|
|
12
|
+
export * from "./stores/schemaStore";
|
|
13
|
+
/**
|
|
14
|
+
* 请求冻结处理仓库
|
|
15
|
+
*/
|
|
16
|
+
export * from "./stores/apiFreezer";
|
|
17
|
+
//# sourceMappingURL=exportStore.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FreezeState, apiFreezerStore, useApiFreezer } from "./stores/apiFreezer.js";
|
|
2
|
+
import { modeStore, useModeStore } from "./stores/mode.js";
|
|
3
|
+
import { schemaEventBus } from "./stores/schemaEventBus.js";
|
|
4
|
+
import { schemaStore, useSchemaStore } from "./stores/schemaStore.js";
|
|
5
|
+
export { FreezeState, apiFreezerStore, modeStore, schemaEventBus, schemaStore, useApiFreezer, useModeStore, useSchemaStore };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { useModeStore } from "../stores/mode.js";
|
|
2
|
+
import { QK, findMenuItem } from "../common/menu.js";
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
import { useParams } from "react-router-dom";
|
|
5
|
+
//#region frontend/src/hooks/useCurrentMenuData.ts
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* 自定义路由直接交由路由器渲染
|
|
9
|
+
*
|
|
10
|
+
* 也就是说 这里找不到 自定义相关的菜单数据
|
|
11
|
+
*
|
|
12
|
+
* @param useSibe 使用侧边数据
|
|
13
|
+
*/
|
|
14
|
+
var useCurrentMenuData = (useSibe = false) => {
|
|
15
|
+
const params = useParams();
|
|
16
|
+
const projectInfo = useModeStore((s) => s.projectInfo);
|
|
17
|
+
return { menu: useMemo(() => {
|
|
18
|
+
const isSide = params[QK.sk];
|
|
19
|
+
const menuTypeIsTop = !!params[QK.k];
|
|
20
|
+
const menu = findMenuItem(projectInfo?.menu, menuTypeIsTop ? params[QK.k] : params[QK.sk]);
|
|
21
|
+
if (isSide && useSibe && menuTypeIsTop && menu) return findMenuItem(menu.sidebarConfig?.menu ?? [], params[QK.sk]);
|
|
22
|
+
return menu;
|
|
23
|
+
}, [
|
|
24
|
+
projectInfo?.menu,
|
|
25
|
+
params,
|
|
26
|
+
useSibe
|
|
27
|
+
]) };
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { useCurrentMenuData as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { QK, deserializationUrlSearch } from "../common/menu.js";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { useParams } from "react-router-dom";
|
|
4
|
+
//#region frontend/src/hooks/useRouterParams.ts
|
|
5
|
+
var useRouterParams = () => {
|
|
6
|
+
const params = useParams();
|
|
7
|
+
return useMemo(() => {
|
|
8
|
+
const query = deserializationUrlSearch(location.search);
|
|
9
|
+
return {
|
|
10
|
+
...params,
|
|
11
|
+
...query[QK.ck] ? { [QK.ck]: query[QK.ck] } : {}
|
|
12
|
+
};
|
|
13
|
+
}, [params]);
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { useRouterParams as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "./typing/scalability";
|
|
2
|
+
export type * from "../apps/dash/types";
|
|
3
|
+
export * from "./main";
|
|
4
|
+
export type { CallComComponentsMap, CallComRenderer } from "./defaultPages/SchemaPage/schemaType";
|
|
5
|
+
export type { FormFieldSchema, SchemaFormComponentsMap, SchemaFormNamespace, SelectProps } from "../../packages/react/ui/index";
|
|
6
|
+
export * from "./components/index";
|
|
7
|
+
export { del, get, patch, post, put, request } from "./common/request";
|
|
8
|
+
/**
|
|
9
|
+
* callCom 事件通信 权限
|
|
10
|
+
*/
|
|
11
|
+
export * from "./defaultPages/SchemaPage/data/eventInfo";
|
|
12
|
+
export { merge } from "./defaultPages/SchemaPage/utils/permissions";
|
|
13
|
+
/**
|
|
14
|
+
* 导出依赖的 共享数据
|
|
15
|
+
*/
|
|
16
|
+
export * from "./exportStore";
|
|
17
|
+
/**
|
|
18
|
+
* 导出多语言相关
|
|
19
|
+
*/
|
|
20
|
+
export { i18n, i18nStore } from "../../packages/react/ui/i18n/index";
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { i18n, i18nStore } from "../../packages/common/i18n/index.js";
|
|
2
|
+
import "../../packages/react/ui/i18n/index.js";
|
|
3
|
+
import { FreezeState, apiFreezerStore, useApiFreezer } from "./stores/apiFreezer.js";
|
|
4
|
+
import { del, get, patch, post, put, request } from "./common/request.js";
|
|
5
|
+
import { modeStore, useModeStore } from "./stores/mode.js";
|
|
6
|
+
import HeaderView from "./components/BasePage/HeaderView.js";
|
|
7
|
+
import { generateRouter } from "./components/Router/index.js";
|
|
8
|
+
import { schemaEventBus } from "./stores/schemaEventBus.js";
|
|
9
|
+
import { schemaStore, useSchemaStore } from "./stores/schemaStore.js";
|
|
10
|
+
import "./exportStore.js";
|
|
11
|
+
import { initApp } from "./main.js";
|
|
12
|
+
import AsyncSelect_default from "./components/AsyncSelect/index.js";
|
|
13
|
+
import LanguageSwitch_default from "./components/LanguageSwitch/index.js";
|
|
14
|
+
import { themeSwitchStorageKey } from "./components/ThemeSwitch/ThemeSwitch.js";
|
|
15
|
+
import ThemeSwitch_default from "./components/ThemeSwitch/index.js";
|
|
16
|
+
import "./components/index.js";
|
|
17
|
+
import { eventsInfo } from "./defaultPages/SchemaPage/data/eventInfo.js";
|
|
18
|
+
import { merge } from "./defaultPages/SchemaPage/utils/permissions.js";
|
|
19
|
+
export { AsyncSelect_default as AsyncSelect, FreezeState, HeaderView, LanguageSwitch_default as LanguageSwitch, ThemeSwitch_default as ThemeSwitch, apiFreezerStore, del, eventsInfo, generateRouter, get, i18n, i18nStore, initApp, merge, modeStore, patch, post, put, request, schemaEventBus, schemaStore, themeSwitchStorageKey, useApiFreezer, useModeStore, useSchemaStore };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export declare const frontendEnUSResources: {
|
|
2
|
+
readonly frontend: {
|
|
3
|
+
readonly app: {
|
|
4
|
+
readonly title: "Template Core";
|
|
5
|
+
readonly uiComponentsTitle: "UI Components";
|
|
6
|
+
readonly uiComponentsButton: "Click me";
|
|
7
|
+
};
|
|
8
|
+
readonly components: {
|
|
9
|
+
readonly languageSwitch: {
|
|
10
|
+
readonly placeholder: "Select language";
|
|
11
|
+
readonly zhCN: "简体中文";
|
|
12
|
+
readonly enUS: "English";
|
|
13
|
+
};
|
|
14
|
+
readonly themeSwitch: {
|
|
15
|
+
readonly light: "Light";
|
|
16
|
+
readonly dark: "Dark";
|
|
17
|
+
readonly toLight: "Switch to light theme";
|
|
18
|
+
readonly toDark: "Switch to dark theme";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
readonly common: {
|
|
22
|
+
readonly yes: "Yes";
|
|
23
|
+
readonly no: "No";
|
|
24
|
+
readonly noData: "No data";
|
|
25
|
+
readonly loading: "Loading";
|
|
26
|
+
readonly operation: "Actions";
|
|
27
|
+
};
|
|
28
|
+
readonly feedback: {
|
|
29
|
+
readonly confirmDelete: "Confirm delete?";
|
|
30
|
+
readonly requiredInput: "Please enter {label}";
|
|
31
|
+
readonly unknownError: "Unknown error";
|
|
32
|
+
readonly requestTimedOut: "Request timed out";
|
|
33
|
+
readonly networkError: "Network error";
|
|
34
|
+
};
|
|
35
|
+
readonly notFound: {
|
|
36
|
+
readonly title: "Page not found";
|
|
37
|
+
readonly description: "The current path is invalid, or the page is not registered in the router.";
|
|
38
|
+
};
|
|
39
|
+
readonly validator: {
|
|
40
|
+
readonly value: "value";
|
|
41
|
+
readonly required: "Missing required field: {field}";
|
|
42
|
+
readonly type: "{path} type error, expected {type}";
|
|
43
|
+
readonly typeString: "string";
|
|
44
|
+
readonly typeNumber: "number";
|
|
45
|
+
readonly typeInteger: "integer";
|
|
46
|
+
readonly typeBoolean: "boolean";
|
|
47
|
+
readonly typeArray: "array";
|
|
48
|
+
readonly typeObject: "object";
|
|
49
|
+
readonly typeNull: "null";
|
|
50
|
+
readonly format: "{path} format is invalid";
|
|
51
|
+
readonly minimum: "{path} cannot be less than {limit}";
|
|
52
|
+
readonly maximum: "{path} cannot be greater than {limit}";
|
|
53
|
+
readonly exclusiveMinimum: "{path} must be greater than {limit}";
|
|
54
|
+
readonly exclusiveMaximum: "{path} must be less than {limit}";
|
|
55
|
+
readonly multipleOf: "{path} must be a multiple of {multipleOf}";
|
|
56
|
+
readonly minLength: "{path} must be at least {limit} characters";
|
|
57
|
+
readonly maxLength: "{path} must be at most {limit} characters";
|
|
58
|
+
readonly pattern: "{path} format does not match the requirement";
|
|
59
|
+
readonly minItems: "{path} must contain at least {limit} items";
|
|
60
|
+
readonly maxItems: "{path} must contain at most {limit} items";
|
|
61
|
+
readonly uniqueItems: "{path} must not contain duplicate items";
|
|
62
|
+
readonly minProperties: "{path} must contain at least {limit} properties";
|
|
63
|
+
readonly maxProperties: "{path} must contain at most {limit} properties";
|
|
64
|
+
readonly additionalProperties: "{path} contains disallowed property {property}";
|
|
65
|
+
readonly enum: "{path} is not in the allowed options";
|
|
66
|
+
readonly const: "{path} must equal the specified value";
|
|
67
|
+
readonly oneOf: "{path} must match exactly one rule";
|
|
68
|
+
readonly anyOf: "{path} must match at least one rule";
|
|
69
|
+
readonly allOf: "{path} does not satisfy all rules";
|
|
70
|
+
readonly not: "{path} must not match this rule";
|
|
71
|
+
readonly propertyNames: "{path} property name is invalid";
|
|
72
|
+
readonly dependencies: "{path} is missing dependent fields";
|
|
73
|
+
readonly contains: "{path} is missing a required matching item";
|
|
74
|
+
readonly if: "{path} conditional validation failed";
|
|
75
|
+
readonly fallback: "{path} validation failed";
|
|
76
|
+
};
|
|
77
|
+
readonly log: {
|
|
78
|
+
readonly pageNotFound: "The URL is incorrect, or the custom page is not registered with the router.";
|
|
79
|
+
readonly pageNotFoundEn: "The URL is incorrect, or the custom page is not registered with the router.";
|
|
80
|
+
readonly illegalComponentCallback: "Illegal component callback - {comName}";
|
|
81
|
+
readonly illegalComponentCallbackEn: "Illegal component callback - {comName}";
|
|
82
|
+
readonly subscriptionError: "You haven't subscribed. Please check your code; the follow function and unsubscribe function must be the same.";
|
|
83
|
+
readonly subscriptionErrorEn: "You haven't subscribed. Please check your code; the follow function and unsubscribe function must be the same.";
|
|
84
|
+
readonly apiTamper: "API attributes cannot be tampered with";
|
|
85
|
+
readonly apiTamperEn: "API attributes cannot be tampered with";
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=en-US.d.ts.map
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
//#region frontend/src/language/en-US.ts
|
|
2
|
+
var frontendEnUSResources = { frontend: {
|
|
3
|
+
app: {
|
|
4
|
+
title: "Template Core",
|
|
5
|
+
uiComponentsTitle: "UI Components",
|
|
6
|
+
uiComponentsButton: "Click me"
|
|
7
|
+
},
|
|
8
|
+
components: {
|
|
9
|
+
languageSwitch: {
|
|
10
|
+
placeholder: "Select language",
|
|
11
|
+
zhCN: "简体中文",
|
|
12
|
+
enUS: "English"
|
|
13
|
+
},
|
|
14
|
+
themeSwitch: {
|
|
15
|
+
light: "Light",
|
|
16
|
+
dark: "Dark",
|
|
17
|
+
toLight: "Switch to light theme",
|
|
18
|
+
toDark: "Switch to dark theme"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
common: {
|
|
22
|
+
yes: "Yes",
|
|
23
|
+
no: "No",
|
|
24
|
+
noData: "No data",
|
|
25
|
+
loading: "Loading",
|
|
26
|
+
operation: "Actions"
|
|
27
|
+
},
|
|
28
|
+
feedback: {
|
|
29
|
+
confirmDelete: "Confirm delete?",
|
|
30
|
+
requiredInput: "Please enter {label}",
|
|
31
|
+
unknownError: "Unknown error",
|
|
32
|
+
requestTimedOut: "Request timed out",
|
|
33
|
+
networkError: "Network error"
|
|
34
|
+
},
|
|
35
|
+
notFound: {
|
|
36
|
+
title: "Page not found",
|
|
37
|
+
description: "The current path is invalid, or the page is not registered in the router."
|
|
38
|
+
},
|
|
39
|
+
validator: {
|
|
40
|
+
value: "value",
|
|
41
|
+
required: "Missing required field: {field}",
|
|
42
|
+
type: "{path} type error, expected {type}",
|
|
43
|
+
typeString: "string",
|
|
44
|
+
typeNumber: "number",
|
|
45
|
+
typeInteger: "integer",
|
|
46
|
+
typeBoolean: "boolean",
|
|
47
|
+
typeArray: "array",
|
|
48
|
+
typeObject: "object",
|
|
49
|
+
typeNull: "null",
|
|
50
|
+
format: "{path} format is invalid",
|
|
51
|
+
minimum: "{path} cannot be less than {limit}",
|
|
52
|
+
maximum: "{path} cannot be greater than {limit}",
|
|
53
|
+
exclusiveMinimum: "{path} must be greater than {limit}",
|
|
54
|
+
exclusiveMaximum: "{path} must be less than {limit}",
|
|
55
|
+
multipleOf: "{path} must be a multiple of {multipleOf}",
|
|
56
|
+
minLength: "{path} must be at least {limit} characters",
|
|
57
|
+
maxLength: "{path} must be at most {limit} characters",
|
|
58
|
+
pattern: "{path} format does not match the requirement",
|
|
59
|
+
minItems: "{path} must contain at least {limit} items",
|
|
60
|
+
maxItems: "{path} must contain at most {limit} items",
|
|
61
|
+
uniqueItems: "{path} must not contain duplicate items",
|
|
62
|
+
minProperties: "{path} must contain at least {limit} properties",
|
|
63
|
+
maxProperties: "{path} must contain at most {limit} properties",
|
|
64
|
+
additionalProperties: "{path} contains disallowed property {property}",
|
|
65
|
+
enum: "{path} is not in the allowed options",
|
|
66
|
+
const: "{path} must equal the specified value",
|
|
67
|
+
oneOf: "{path} must match exactly one rule",
|
|
68
|
+
anyOf: "{path} must match at least one rule",
|
|
69
|
+
allOf: "{path} does not satisfy all rules",
|
|
70
|
+
not: "{path} must not match this rule",
|
|
71
|
+
propertyNames: "{path} property name is invalid",
|
|
72
|
+
dependencies: "{path} is missing dependent fields",
|
|
73
|
+
contains: "{path} is missing a required matching item",
|
|
74
|
+
if: "{path} conditional validation failed",
|
|
75
|
+
fallback: "{path} validation failed"
|
|
76
|
+
},
|
|
77
|
+
log: {
|
|
78
|
+
pageNotFound: "The URL is incorrect, or the custom page is not registered with the router.",
|
|
79
|
+
pageNotFoundEn: "The URL is incorrect, or the custom page is not registered with the router.",
|
|
80
|
+
illegalComponentCallback: "Illegal component callback - {comName}",
|
|
81
|
+
illegalComponentCallbackEn: "Illegal component callback - {comName}",
|
|
82
|
+
subscriptionError: "You haven't subscribed. Please check your code; the follow function and unsubscribe function must be the same.",
|
|
83
|
+
subscriptionErrorEn: "You haven't subscribed. Please check your code; the follow function and unsubscribe function must be the same.",
|
|
84
|
+
apiTamper: "API attributes cannot be tampered with",
|
|
85
|
+
apiTamperEn: "API attributes cannot be tampered with"
|
|
86
|
+
}
|
|
87
|
+
} };
|
|
88
|
+
//#endregion
|
|
89
|
+
export { frontendEnUSResources };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { I18nResources } from "../../../packages/react/ui/i18n/index";
|
|
2
|
+
export declare const i18nKeyPrefix = "$i18n::";
|
|
3
|
+
export declare const frontendI18nResources: I18nResources;
|
|
4
|
+
export declare const withI18nKey: (key: string) => string;
|
|
5
|
+
export declare const frontendLangKeys: {
|
|
6
|
+
readonly appTitle: string;
|
|
7
|
+
readonly uiComponentsTitle: string;
|
|
8
|
+
readonly uiComponentsButton: string;
|
|
9
|
+
readonly languageSwitchPlaceholder: string;
|
|
10
|
+
readonly languageSwitchZhCN: string;
|
|
11
|
+
readonly languageSwitchEnUS: string;
|
|
12
|
+
readonly themeSwitchLight: string;
|
|
13
|
+
readonly themeSwitchDark: string;
|
|
14
|
+
readonly themeSwitchToLight: string;
|
|
15
|
+
readonly themeSwitchToDark: string;
|
|
16
|
+
readonly yes: string;
|
|
17
|
+
readonly no: string;
|
|
18
|
+
readonly noData: string;
|
|
19
|
+
readonly loading: string;
|
|
20
|
+
readonly operation: string;
|
|
21
|
+
readonly confirmDelete: string;
|
|
22
|
+
readonly requiredInput: string;
|
|
23
|
+
readonly unknownError: string;
|
|
24
|
+
readonly requestTimedOut: string;
|
|
25
|
+
readonly networkError: string;
|
|
26
|
+
readonly notFoundTitle: string;
|
|
27
|
+
readonly notFoundDescription: string;
|
|
28
|
+
readonly validatorValue: string;
|
|
29
|
+
readonly validatorRequired: string;
|
|
30
|
+
readonly validatorType: string;
|
|
31
|
+
readonly validatorTypeString: string;
|
|
32
|
+
readonly validatorTypeNumber: string;
|
|
33
|
+
readonly validatorTypeInteger: string;
|
|
34
|
+
readonly validatorTypeBoolean: string;
|
|
35
|
+
readonly validatorTypeArray: string;
|
|
36
|
+
readonly validatorTypeObject: string;
|
|
37
|
+
readonly validatorTypeNull: string;
|
|
38
|
+
readonly validatorFormat: string;
|
|
39
|
+
readonly validatorMinimum: string;
|
|
40
|
+
readonly validatorMaximum: string;
|
|
41
|
+
readonly validatorExclusiveMinimum: string;
|
|
42
|
+
readonly validatorExclusiveMaximum: string;
|
|
43
|
+
readonly validatorMultipleOf: string;
|
|
44
|
+
readonly validatorMinLength: string;
|
|
45
|
+
readonly validatorMaxLength: string;
|
|
46
|
+
readonly validatorPattern: string;
|
|
47
|
+
readonly validatorMinItems: string;
|
|
48
|
+
readonly validatorMaxItems: string;
|
|
49
|
+
readonly validatorUniqueItems: string;
|
|
50
|
+
readonly validatorMinProperties: string;
|
|
51
|
+
readonly validatorMaxProperties: string;
|
|
52
|
+
readonly validatorAdditionalProperties: string;
|
|
53
|
+
readonly validatorEnum: string;
|
|
54
|
+
readonly validatorConst: string;
|
|
55
|
+
readonly validatorOneOf: string;
|
|
56
|
+
readonly validatorAnyOf: string;
|
|
57
|
+
readonly validatorAllOf: string;
|
|
58
|
+
readonly validatorNot: string;
|
|
59
|
+
readonly validatorPropertyNames: string;
|
|
60
|
+
readonly validatorDependencies: string;
|
|
61
|
+
readonly validatorContains: string;
|
|
62
|
+
readonly validatorIf: string;
|
|
63
|
+
readonly validatorFallback: string;
|
|
64
|
+
readonly logPageNotFound: string;
|
|
65
|
+
readonly logPageNotFoundEn: string;
|
|
66
|
+
readonly logIllegalComponentCallback: string;
|
|
67
|
+
readonly logIllegalComponentCallbackEn: string;
|
|
68
|
+
readonly logSubscriptionError: string;
|
|
69
|
+
readonly logSubscriptionErrorEn: string;
|
|
70
|
+
readonly logApiTamper: string;
|
|
71
|
+
readonly logApiTamperEn: string;
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=index.d.ts.map
|