@_tc/template-core 0.0.1-bate.1 → 0.0.1-bate.3
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/app/pages/main.d.ts +3 -0
- package/app/pages/main.d.ts.map +1 -0
- package/app/pages/main.js +10 -0
- package/app/pages/main.js.map +1 -0
- package/app/vite/config/base.d.ts +6 -0
- package/app/vite/config/base.js +53 -0
- package/app/vite/config/base.js.map +1 -0
- package/app/vite/config/data.d.ts +3 -0
- package/app/vite/config/data.js +4 -0
- package/app/vite/config/data.js.map +1 -0
- package/app/vite/config/dev.d.ts +11 -0
- package/app/vite/config/dev.js +12 -0
- package/app/vite/config/dev.js.map +1 -0
- package/app/vite/config/prod.d.ts +17 -0
- package/app/vite/config/prod.js +31 -0
- package/app/vite/config/prod.js.map +1 -0
- package/app/vite/dev.d.ts +2 -0
- package/app/vite/dev.js +22 -0
- package/app/vite/dev.js.map +1 -0
- package/app/vite/index.d.ts +2 -0
- package/app/vite/index.js +2 -0
- package/app/vite/index.js.map +1 -0
- package/app/vite/package.json +11 -0
- package/app/vite/prod.d.ts +1 -0
- package/app/vite/prod.js +75 -0
- package/app/vite/prod.js.map +1 -0
- package/package.json +11 -3
- package/packages/core/index.js +1 -1
- package/packages/core/loader/config.js +1 -1
- package/packages/core/loader/controller.js +1 -1
- package/packages/core/loader/extend.js +1 -1
- package/packages/core/loader/middleware.js +1 -1
- package/packages/core/loader/model.js +1 -1
- package/packages/core/loader/router-schema.js +1 -1
- package/packages/core/loader/router.js +1 -1
- package/packages/core/loader/service.js +1 -1
- package/packages/ui/react/components/Button/Button.d.ts +15 -0
- package/packages/ui/react/components/Button/Button.d.ts.map +1 -0
- package/packages/ui/react/components/Button/Button.js +36 -0
- package/packages/ui/react/components/Button/Button.js.map +1 -0
- package/packages/ui/react/components/Button/SumbitButton.d.ts +9 -0
- package/packages/ui/react/components/Button/SumbitButton.d.ts.map +1 -0
- package/packages/ui/react/components/Button/SumbitButton.js +32 -0
- package/packages/ui/react/components/Button/SumbitButton.js.map +1 -0
- package/packages/ui/react/components/Button/index.d.ts +4 -0
- package/packages/ui/react/components/Button/index.d.ts.map +1 -0
- package/packages/ui/react/components/Button/index.js +21 -0
- package/packages/ui/react/components/Button/index.js.map +1 -0
- package/packages/ui/react/components/Checkbox/Checkbox.d.ts +17 -0
- package/packages/ui/react/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/packages/ui/react/components/Checkbox/Checkbox.js +41 -0
- package/packages/ui/react/components/Checkbox/Checkbox.js.map +1 -0
- package/packages/ui/react/components/Checkbox/index.d.ts +2 -0
- package/packages/ui/react/components/Checkbox/index.d.ts.map +1 -0
- package/packages/ui/react/components/Checkbox/index.js +18 -0
- package/packages/ui/react/components/Checkbox/index.js.map +1 -0
- package/packages/ui/react/components/ConfirmDialog.d.ts +12 -0
- package/packages/ui/react/components/ConfirmDialog.d.ts.map +1 -0
- package/packages/ui/react/components/ConfirmDialog.js +13 -0
- package/packages/ui/react/components/ConfirmDialog.js.map +1 -0
- package/packages/ui/react/components/DataTable/ActionBtn.d.ts +6 -0
- package/packages/ui/react/components/DataTable/ActionBtn.d.ts.map +1 -0
- package/packages/ui/react/components/DataTable/ActionBtn.js +18 -0
- package/packages/ui/react/components/DataTable/ActionBtn.js.map +1 -0
- package/packages/ui/react/components/DataTable/data-table.d.ts +25 -0
- package/packages/ui/react/components/DataTable/data-table.d.ts.map +1 -0
- package/packages/ui/react/components/DataTable/data-table.js +145 -0
- package/packages/ui/react/components/DataTable/data-table.js.map +1 -0
- package/packages/ui/react/components/Date/Calendar.d.ts +22 -0
- package/packages/ui/react/components/Date/Calendar.d.ts.map +1 -0
- package/packages/ui/react/components/Date/Calendar.js +210 -0
- package/packages/ui/react/components/Date/Calendar.js.map +1 -0
- package/packages/ui/react/components/Date/Date.d.ts +26 -0
- package/packages/ui/react/components/Date/Date.d.ts.map +1 -0
- package/packages/ui/react/components/Date/Date.js +161 -0
- package/packages/ui/react/components/Date/Date.js.map +1 -0
- package/packages/ui/react/components/Date/DateTestPage.d.ts +2 -0
- package/packages/ui/react/components/Date/DateTestPage.d.ts.map +1 -0
- package/packages/ui/react/components/Date/DateTestPage.js +33 -0
- package/packages/ui/react/components/Date/DateTestPage.js.map +1 -0
- package/packages/ui/react/components/Date/LocaleContext.d.ts +2 -0
- package/packages/ui/react/components/Date/LocaleContext.d.ts.map +1 -0
- package/packages/ui/react/components/Date/LocaleContext.js +9 -0
- package/packages/ui/react/components/Date/LocaleContext.js.map +1 -0
- package/packages/ui/react/components/Date/LocaleProvider.d.ts +8 -0
- package/packages/ui/react/components/Date/LocaleProvider.d.ts.map +1 -0
- package/packages/ui/react/components/Date/LocaleProvider.js +17 -0
- package/packages/ui/react/components/Date/LocaleProvider.js.map +1 -0
- package/packages/ui/react/components/Date/TimePicker.d.ts +7 -0
- package/packages/ui/react/components/Date/TimePicker.d.ts.map +1 -0
- package/packages/ui/react/components/Date/TimePicker.js +79 -0
- package/packages/ui/react/components/Date/TimePicker.js.map +1 -0
- package/packages/ui/react/components/Date/data.d.ts +6 -0
- package/packages/ui/react/components/Date/data.d.ts.map +1 -0
- package/packages/ui/react/components/Date/data.js +8 -0
- package/packages/ui/react/components/Date/data.js.map +1 -0
- package/packages/ui/react/components/Date/dateLocaleStore.d.ts +10 -0
- package/packages/ui/react/components/Date/dateLocaleStore.d.ts.map +1 -0
- package/packages/ui/react/components/Date/dateLocaleStore.js +18 -0
- package/packages/ui/react/components/Date/dateLocaleStore.js.map +1 -0
- package/packages/ui/react/components/Date/index.d.ts +6 -0
- package/packages/ui/react/components/Date/index.d.ts.map +1 -0
- package/packages/ui/react/components/Date/index.js +24 -0
- package/packages/ui/react/components/Date/index.js.map +1 -0
- package/packages/ui/react/components/Date/locales.d.ts +23 -0
- package/packages/ui/react/components/Date/locales.d.ts.map +1 -0
- package/packages/ui/react/components/Date/locales.js +43 -0
- package/packages/ui/react/components/Date/locales.js.map +1 -0
- package/packages/ui/react/components/Dropdown.d.ts +16 -0
- package/packages/ui/react/components/Dropdown.d.ts.map +1 -0
- package/packages/ui/react/components/Dropdown.js +56 -0
- package/packages/ui/react/components/Dropdown.js.map +1 -0
- package/packages/ui/react/components/Form/Form.d.ts +12 -0
- package/packages/ui/react/components/Form/Form.d.ts.map +1 -0
- package/packages/ui/react/components/Form/Form.js +15 -0
- package/packages/ui/react/components/Form/Form.js.map +1 -0
- package/packages/ui/react/components/Form/FormItem.d.ts +20 -0
- package/packages/ui/react/components/Form/FormItem.d.ts.map +1 -0
- package/packages/ui/react/components/Form/FormItem.js +76 -0
- package/packages/ui/react/components/Form/FormItem.js.map +1 -0
- package/packages/ui/react/components/Form/SchemeForm/data.d.ts +51 -0
- package/packages/ui/react/components/Form/SchemeForm/data.d.ts.map +1 -0
- package/packages/ui/react/components/Form/SchemeForm/data.js +48 -0
- package/packages/ui/react/components/Form/SchemeForm/data.js.map +1 -0
- package/packages/ui/react/components/Form/SchemeForm/index.d.ts +59 -0
- package/packages/ui/react/components/Form/SchemeForm/index.d.ts.map +1 -0
- package/packages/ui/react/components/Form/SchemeForm/index.js +70 -0
- package/packages/ui/react/components/Form/SchemeForm/index.js.map +1 -0
- package/packages/ui/react/components/Form/index.d.ts +5 -0
- package/packages/ui/react/components/Form/index.d.ts.map +1 -0
- package/packages/ui/react/components/Form/index.js +21 -0
- package/packages/ui/react/components/Form/index.js.map +1 -0
- package/packages/ui/react/components/Form/useForm.d.ts +3 -0
- package/packages/ui/react/components/Form/useForm.d.ts.map +1 -0
- package/packages/ui/react/components/Form/useForm.js +6 -0
- package/packages/ui/react/components/Form/useForm.js.map +1 -0
- package/packages/ui/react/components/ImagePreview/ImagePreview.d.ts +8 -0
- package/packages/ui/react/components/ImagePreview/ImagePreview.d.ts.map +1 -0
- package/packages/ui/react/components/ImagePreview/ImagePreview.js +162 -0
- package/packages/ui/react/components/ImagePreview/ImagePreview.js.map +1 -0
- package/packages/ui/react/components/ImagePreview/PreviewImage.d.ts +8 -0
- package/packages/ui/react/components/ImagePreview/PreviewImage.d.ts.map +1 -0
- package/packages/ui/react/components/ImagePreview/PreviewImage.js +29 -0
- package/packages/ui/react/components/ImagePreview/PreviewImage.js.map +1 -0
- package/packages/ui/react/components/ImagePreview/index.d.ts +3 -0
- package/packages/ui/react/components/ImagePreview/index.d.ts.map +1 -0
- package/packages/ui/react/components/ImagePreview/index.js +19 -0
- package/packages/ui/react/components/ImagePreview/index.js.map +1 -0
- package/packages/ui/react/components/Input/Input.d.ts +21 -0
- package/packages/ui/react/components/Input/Input.d.ts.map +1 -0
- package/packages/ui/react/components/Input/Input.js +61 -0
- package/packages/ui/react/components/Input/Input.js.map +1 -0
- package/packages/ui/react/components/Input/index.d.ts +2 -0
- package/packages/ui/react/components/Input/index.d.ts.map +1 -0
- package/packages/ui/react/components/Input/index.js +18 -0
- package/packages/ui/react/components/Input/index.js.map +1 -0
- package/packages/ui/react/components/Label/Label.d.ts +22 -0
- package/packages/ui/react/components/Label/Label.d.ts.map +1 -0
- package/packages/ui/react/components/Label/Label.js +37 -0
- package/packages/ui/react/components/Label/Label.js.map +1 -0
- package/packages/ui/react/components/Label/index.d.ts +3 -0
- package/packages/ui/react/components/Label/index.d.ts.map +1 -0
- package/packages/ui/react/components/Label/index.js +21 -0
- package/packages/ui/react/components/Label/index.js.map +1 -0
- package/packages/ui/react/components/Message/Message.d.ts +13 -0
- package/packages/ui/react/components/Message/Message.d.ts.map +1 -0
- package/packages/ui/react/components/Message/Message.js +56 -0
- package/packages/ui/react/components/Message/Message.js.map +1 -0
- package/packages/ui/react/components/Message/MessageManager.d.ts +37 -0
- package/packages/ui/react/components/Message/MessageManager.d.ts.map +1 -0
- package/packages/ui/react/components/Message/MessageManager.js +86 -0
- package/packages/ui/react/components/Message/MessageManager.js.map +1 -0
- package/packages/ui/react/components/Message/data.d.ts +2 -0
- package/packages/ui/react/components/Message/data.d.ts.map +1 -0
- package/packages/ui/react/components/Message/data.js +5 -0
- package/packages/ui/react/components/Message/data.js.map +1 -0
- package/packages/ui/react/components/Message/index.d.ts +3 -0
- package/packages/ui/react/components/Message/index.d.ts.map +1 -0
- package/packages/ui/react/components/Message/index.js +6 -0
- package/packages/ui/react/components/Message/index.js.map +1 -0
- package/packages/ui/react/components/Modal/Modal.d.ts +19 -0
- package/packages/ui/react/components/Modal/Modal.d.ts.map +1 -0
- package/packages/ui/react/components/Modal/Modal.js +51 -0
- package/packages/ui/react/components/Modal/Modal.js.map +1 -0
- package/packages/ui/react/components/Modal/ModalManager.d.ts +47 -0
- package/packages/ui/react/components/Modal/ModalManager.d.ts.map +1 -0
- package/packages/ui/react/components/Modal/ModalManager.js +91 -0
- package/packages/ui/react/components/Modal/ModalManager.js.map +1 -0
- package/packages/ui/react/components/Modal/index.d.ts +4 -0
- package/packages/ui/react/components/Modal/index.d.ts.map +1 -0
- package/packages/ui/react/components/Modal/index.js +8 -0
- package/packages/ui/react/components/Modal/index.js.map +1 -0
- package/packages/ui/react/components/Pagination.d.ts +11 -0
- package/packages/ui/react/components/Pagination.d.ts.map +1 -0
- package/packages/ui/react/components/Pagination.js +85 -0
- package/packages/ui/react/components/Pagination.js.map +1 -0
- package/packages/ui/react/components/Search/Search.d.ts +14 -0
- package/packages/ui/react/components/Search/Search.d.ts.map +1 -0
- package/packages/ui/react/components/Search/Search.js +15 -0
- package/packages/ui/react/components/Search/Search.js.map +1 -0
- package/packages/ui/react/components/Search/index.d.ts +2 -0
- package/packages/ui/react/components/Search/index.d.ts.map +1 -0
- package/packages/ui/react/components/Search/index.js +9 -0
- package/packages/ui/react/components/Search/index.js.map +1 -0
- package/packages/ui/react/components/Select/Select.d.ts +19 -0
- package/packages/ui/react/components/Select/Select.d.ts.map +1 -0
- package/packages/ui/react/components/Select/Select.js +167 -0
- package/packages/ui/react/components/Select/Select.js.map +1 -0
- package/packages/ui/react/components/Select/index.d.ts +2 -0
- package/packages/ui/react/components/Select/index.d.ts.map +1 -0
- package/packages/ui/react/components/Select/index.js +18 -0
- package/packages/ui/react/components/Select/index.js.map +1 -0
- package/packages/ui/react/components/Skeleton/Skeleton.d.ts +13 -0
- package/packages/ui/react/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/packages/ui/react/components/Skeleton/Skeleton.js +36 -0
- package/packages/ui/react/components/Skeleton/Skeleton.js.map +1 -0
- package/packages/ui/react/components/Skeleton/index.d.ts +3 -0
- package/packages/ui/react/components/Skeleton/index.d.ts.map +1 -0
- package/packages/ui/react/components/Skeleton/index.js +6 -0
- package/packages/ui/react/components/Skeleton/index.js.map +1 -0
- package/packages/ui/react/components/Switch/Switch.d.ts +11 -0
- package/packages/ui/react/components/Switch/Switch.d.ts.map +1 -0
- package/packages/ui/react/components/Switch/Switch.js +57 -0
- package/packages/ui/react/components/Switch/Switch.js.map +1 -0
- package/packages/ui/react/components/Switch/index.d.ts +2 -0
- package/packages/ui/react/components/Switch/index.d.ts.map +1 -0
- package/packages/ui/react/components/Switch/index.js +18 -0
- package/packages/ui/react/components/Switch/index.js.map +1 -0
- package/packages/ui/react/components/TableSearch/TableSearch.d.ts +30 -0
- package/packages/ui/react/components/TableSearch/TableSearch.d.ts.map +1 -0
- package/packages/ui/react/components/TableSearch/TableSearch.js +121 -0
- package/packages/ui/react/components/TableSearch/TableSearch.js.map +1 -0
- package/packages/ui/react/components/TableSearch/index.d.ts +2 -0
- package/packages/ui/react/components/TableSearch/index.d.ts.map +1 -0
- package/packages/ui/react/components/TableSearch/index.js +9 -0
- package/packages/ui/react/components/TableSearch/index.js.map +1 -0
- package/packages/ui/react/components/TableSearch/lang.d.ts +15 -0
- package/packages/ui/react/components/TableSearch/lang.d.ts.map +1 -0
- package/packages/ui/react/components/TableSearch/lang.js +28 -0
- package/packages/ui/react/components/TableSearch/lang.js.map +1 -0
- package/packages/ui/react/components/TableSearch/tableSearchLocaleStore.d.ts +9 -0
- package/packages/ui/react/components/TableSearch/tableSearchLocaleStore.d.ts.map +1 -0
- package/packages/ui/react/components/TableSearch/tableSearchLocaleStore.js +15 -0
- package/packages/ui/react/components/TableSearch/tableSearchLocaleStore.js.map +1 -0
- package/packages/ui/react/components/Textarea.d.ts +19 -0
- package/packages/ui/react/components/Textarea.d.ts.map +1 -0
- package/packages/ui/react/components/Textarea.js +38 -0
- package/packages/ui/react/components/Textarea.js.map +1 -0
- package/packages/ui/react/components/Tooltip.d.ts +9 -0
- package/packages/ui/react/components/Tooltip.d.ts.map +1 -0
- package/packages/ui/react/components/Tooltip.js +109 -0
- package/packages/ui/react/components/Tooltip.js.map +1 -0
- package/packages/ui/react/components/TreeSelect.d.ts +19 -0
- package/packages/ui/react/components/TreeSelect.d.ts.map +1 -0
- package/packages/ui/react/components/TreeSelect.js +160 -0
- package/packages/ui/react/components/TreeSelect.js.map +1 -0
- package/packages/ui/react/components/Upload/ImageUpload.d.ts +9 -0
- package/packages/ui/react/components/Upload/ImageUpload.d.ts.map +1 -0
- package/packages/ui/react/components/Upload/ImageUpload.js +67 -0
- package/packages/ui/react/components/Upload/ImageUpload.js.map +1 -0
- package/packages/ui/react/components/Upload/Upload.d.ts +14 -0
- package/packages/ui/react/components/Upload/Upload.d.ts.map +1 -0
- package/packages/ui/react/components/Upload/Upload.js +9 -0
- package/packages/ui/react/components/Upload/Upload.js.map +1 -0
- package/packages/ui/react/components/Upload/index.d.ts +3 -0
- package/packages/ui/react/components/Upload/index.d.ts.map +1 -0
- package/packages/ui/react/components/Upload/index.js +19 -0
- package/packages/ui/react/components/Upload/index.js.map +1 -0
- package/packages/ui/react/components/breadcrumb.d.ts +35 -0
- package/packages/ui/react/components/breadcrumb.d.ts.map +1 -0
- package/packages/ui/react/components/breadcrumb.js +80 -0
- package/packages/ui/react/components/breadcrumb.js.map +1 -0
- package/packages/ui/react/components/hooks/useInputController.d.ts +21 -0
- package/packages/ui/react/components/hooks/useInputController.d.ts.map +1 -0
- package/packages/ui/react/components/hooks/useInputController.js +43 -0
- package/packages/ui/react/components/hooks/useInputController.js.map +1 -0
- package/packages/ui/react/components/index.d.ts +24 -0
- package/packages/ui/react/components/index.d.ts.map +1 -0
- package/packages/ui/react/components/index.js +40 -0
- package/packages/ui/react/components/index.js.map +1 -0
- package/packages/ui/react/components/table.d.ts +17 -0
- package/packages/ui/react/components/table.d.ts.map +1 -0
- package/packages/ui/react/components/table.js +64 -0
- package/packages/ui/react/components/table.js.map +1 -0
- package/packages/ui/react/components/testPage/index.d.ts +3 -0
- package/packages/ui/react/components/testPage/index.d.ts.map +1 -0
- package/packages/ui/react/components/testPage/index.js +124 -0
- package/packages/ui/react/components/testPage/index.js.map +1 -0
- package/packages/ui/react/hooks/useBreadcrumb.d.ts +10 -0
- package/packages/ui/react/hooks/useBreadcrumb.d.ts.map +1 -0
- package/packages/ui/react/hooks/useBreadcrumb.js +6 -0
- package/packages/ui/react/hooks/useBreadcrumb.js.map +1 -0
- package/packages/ui/react/hooks/useInit.d.ts +3 -0
- package/packages/ui/react/hooks/useInit.d.ts.map +1 -0
- package/packages/ui/react/hooks/useInit.js +12 -0
- package/packages/ui/react/hooks/useInit.js.map +1 -0
- package/packages/ui/react/hooks/useLanguage.d.ts +7 -0
- package/packages/ui/react/hooks/useLanguage.d.ts.map +1 -0
- package/packages/ui/react/hooks/useLanguage.js +8 -0
- package/packages/ui/react/hooks/useLanguage.js.map +1 -0
- package/packages/ui/react/hooks/usePagination.d.ts +16 -0
- package/packages/ui/react/hooks/usePagination.d.ts.map +1 -0
- package/packages/ui/react/hooks/usePagination.js +34 -0
- package/packages/ui/react/hooks/usePagination.js.map +1 -0
- package/packages/ui/react/index.d.ts +3 -0
- package/packages/ui/react/index.d.ts.map +1 -0
- package/packages/ui/react/index.js +19 -0
- package/packages/ui/react/index.js.map +1 -0
- package/packages/ui/react/lib/export.d.ts +22 -0
- package/packages/ui/react/lib/export.d.ts.map +1 -0
- package/packages/ui/react/lib/export.js +136 -0
- package/packages/ui/react/lib/export.js.map +1 -0
- package/packages/ui/react/lib/utils.d.ts +10 -0
- package/packages/ui/react/lib/utils.d.ts.map +1 -0
- package/packages/ui/react/lib/utils.js +53 -0
- package/packages/ui/react/lib/utils.js.map +1 -0
- package/packages/ui/react/locales/index.d.ts +8 -0
- package/packages/ui/react/locales/index.d.ts.map +1 -0
- package/packages/ui/react/locales/index.js +10 -0
- package/packages/ui/react/locales/index.js.map +1 -0
- package/packages/ui/react/stores/breadcrumb.d.ts +15 -0
- package/packages/ui/react/stores/breadcrumb.d.ts.map +1 -0
- package/packages/ui/react/stores/breadcrumb.js +68 -0
- package/packages/ui/react/stores/breadcrumb.js.map +1 -0
- package/packages/ui/react/stores/language.d.ts +13 -0
- package/packages/ui/react/stores/language.d.ts.map +1 -0
- package/packages/ui/react/stores/language.js +55 -0
- package/packages/ui/react/stores/language.js.map +1 -0
- package/packages/ui/react/types/index.d.ts +2 -0
- package/packages/ui/react/types/index.d.ts.map +1 -0
- package/packages/ui/react/types/index.js +3 -0
- package/packages/ui/react/types/index.js.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../app/pages/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlC,eAAO,MAAM,OAAO,GAAI,eAAe,SAAS,SAK/C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initApp = void 0;
|
|
4
|
+
const client_1 = require("react-dom/client");
|
|
5
|
+
const initApp = (rootComponent) => {
|
|
6
|
+
const root = (0, client_1.createRoot)(document.getElementById("#root"));
|
|
7
|
+
root.render(rootComponent);
|
|
8
|
+
};
|
|
9
|
+
exports.initApp = initApp;
|
|
10
|
+
//# sourceMappingURL=main.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../app/pages/main.ts"],"names":[],"mappings":";;;AACA,6CAA8C;AAEvC,MAAM,OAAO,GAAG,CAAC,aAAwB,EAAE,EAAE;IAClD,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAE,CAAC,CAAC;IAG3D,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;AAC7B,CAAC,CAAC;AALW,QAAA,OAAO,WAKlB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const pageEntry: Record<string, string>;
|
|
2
|
+
declare const htmlPlugins: object[];
|
|
3
|
+
declare let businessViteConfig: object;
|
|
4
|
+
declare const entryNameToTplName: Record<string, string>;
|
|
5
|
+
declare const sharedAlias: Record<string, string>;
|
|
6
|
+
export { pageEntry, htmlPlugins, entryNameToTplName, sharedAlias, businessViteConfig };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
import fs from 'fs';
|
|
3
|
+
import * as glob from 'glob';
|
|
4
|
+
import { frameBasePath, outputBasePath } from './data';
|
|
5
|
+
const generateDynamicImports = (config) => {
|
|
6
|
+
const defaultPath = path.resolve(__dirname, '../lib.js');
|
|
7
|
+
return config.reduce((preConfig, [packageName, packagePathKey]) => {
|
|
8
|
+
let dynamicPath = path.resolve(outputBasePath, packagePathKey);
|
|
9
|
+
if (!fs.existsSync(dynamicPath))
|
|
10
|
+
dynamicPath = defaultPath;
|
|
11
|
+
preConfig[packageName] = dynamicPath;
|
|
12
|
+
return preConfig;
|
|
13
|
+
}, {});
|
|
14
|
+
};
|
|
15
|
+
const pageEntry = {};
|
|
16
|
+
const htmlPlugins = [];
|
|
17
|
+
const entryFiles = [
|
|
18
|
+
...glob.sync(path.resolve(frameBasePath, './app/pages/**/entry.*.js')),
|
|
19
|
+
...glob.sync(path.resolve(outputBasePath, './app/pages/**/entry.*.js')),
|
|
20
|
+
];
|
|
21
|
+
for (const file of entryFiles) {
|
|
22
|
+
const entryName = path.basename(file, '.js');
|
|
23
|
+
pageEntry[entryName] = file;
|
|
24
|
+
}
|
|
25
|
+
let businessViteConfig = {};
|
|
26
|
+
try {
|
|
27
|
+
const customConfig = require(path.resolve(outputBasePath, './app/vite.config.ts'));
|
|
28
|
+
businessViteConfig = customConfig.default || customConfig;
|
|
29
|
+
}
|
|
30
|
+
catch { }
|
|
31
|
+
const entryNameToTplName = {};
|
|
32
|
+
for (const name of Object.keys(pageEntry)) {
|
|
33
|
+
entryNameToTplName[name] = name;
|
|
34
|
+
}
|
|
35
|
+
const sharedAlias = {
|
|
36
|
+
'@babel/runtime/helpers/asyncToGenerator': require.resolve('@babel/runtime/helpers/asyncToGenerator'),
|
|
37
|
+
'@babel/runtime/regenerator': require.resolve('@babel/runtime/regenerator'),
|
|
38
|
+
'@babel/runtime/helpers/defineProperty': require.resolve('@babel/runtime/helpers/defineProperty'),
|
|
39
|
+
$elpisPages: path.resolve(frameBasePath, './app/pages'),
|
|
40
|
+
$elpisCommon: path.resolve(frameBasePath, './app/pages/common'),
|
|
41
|
+
$elpisCurl: path.resolve(frameBasePath, './app/pages/common/curl.js'),
|
|
42
|
+
$elpisUtils: path.resolve(frameBasePath, './app/pages/common/utils.js'),
|
|
43
|
+
$elpisWidgets: path.resolve(frameBasePath, './app/pages/widgets'),
|
|
44
|
+
$elpisStore: path.resolve(frameBasePath, './app/pages/store'),
|
|
45
|
+
...generateDynamicImports([
|
|
46
|
+
['$businessDashboardRouterConfig', './app/pages/dashboard/route.js'],
|
|
47
|
+
['$businessComponentConfig', './app/pages/dashboard/complex-view/schema-view/component-config.js'],
|
|
48
|
+
['$businessFormComponentConfig', './app/pages/widgets/schema-form/component-config.js'],
|
|
49
|
+
['$businessSearchComponentConfig', './app/pages/widgets/schema-search-bar/component-config.js'],
|
|
50
|
+
['$businessHanderConfig', './app/pages/widgets/header-container/header-config.js'],
|
|
51
|
+
]),
|
|
52
|
+
};
|
|
53
|
+
export { pageEntry, htmlPlugins, entryNameToTplName, sharedAlias, businessViteConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot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,CAAC;QAC/F,CAAC,uBAAuB,EAAE,uDAAuD,CAAC;KACnF,CAAC;CACH,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,kBAAkB,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.js","sourceRoot":"","sources":["../../../../app/vite/config/data.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AAC3D,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;AAErC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev.js","sourceRoot":"","sources":["../../../../app/vite/config/dev.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAExC,MAAM,SAAS,GAAG;IAChB,KAAK,EAAE;QACL,MAAM,EAAE,GAAG,cAAc,sBAAsB;QAC/C,aAAa,EAAE;YACb,MAAM,EAAE;gBACN,cAAc,EAAE,8BAA8B;aAC/C;SACF;KACF;CACF,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const prodConfig: {
|
|
2
|
+
build: {
|
|
3
|
+
outDir: string;
|
|
4
|
+
rollupOptions: {
|
|
5
|
+
output: {
|
|
6
|
+
entryFileNames: string;
|
|
7
|
+
chunkFileNames: string;
|
|
8
|
+
assetFileNames: (info?: {
|
|
9
|
+
name?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
}) => "css/[name]_[contenthash:8].[contenthash].bundle.css" | "assets/[name]_[contenthash][extname]";
|
|
12
|
+
manualChunks(id: string): "v" | "ep" | "mmt" | "nm" | "ject";
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export { prodConfig };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { outputBasePath } from './data';
|
|
2
|
+
const prodConfig = {
|
|
3
|
+
build: {
|
|
4
|
+
outDir: `${outputBasePath}/app/public/dist/prod`,
|
|
5
|
+
rollupOptions: {
|
|
6
|
+
output: {
|
|
7
|
+
entryFileNames: 'js/[name]_[hash:8].[contenthash].bundle.js',
|
|
8
|
+
chunkFileNames: 'js/[name]_[contenthash].bundle.js',
|
|
9
|
+
assetFileNames: (info) => {
|
|
10
|
+
const ext = info?.name?.split('.').pop() || '';
|
|
11
|
+
if (['css'].includes(ext)) {
|
|
12
|
+
return `css/[name]_[contenthash:8].[contenthash].bundle.css`;
|
|
13
|
+
}
|
|
14
|
+
return `assets/[name]_[contenthash][extname]`;
|
|
15
|
+
},
|
|
16
|
+
manualChunks(id) {
|
|
17
|
+
if (/[\/\\]node_modules[\/\\](@)?vue/.test(id))
|
|
18
|
+
return 'v';
|
|
19
|
+
if (/[\/\\]node_modules[\/\\](@)?element-plus/.test(id))
|
|
20
|
+
return 'ep';
|
|
21
|
+
if (/[\/\\]node_modules[\/\\]moment/.test(id))
|
|
22
|
+
return 'mmt';
|
|
23
|
+
if (/[\/\\]node_modules[\/\\]/.test(id))
|
|
24
|
+
return 'nm';
|
|
25
|
+
return 'ject';
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
export { prodConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prod.js","sourceRoot":"","sources":["../../../../app/vite/config/prod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAExC,MAAM,UAAU,GAAG;IACjB,KAAK,EAAE;QACL,MAAM,EAAE,GAAG,cAAc,uBAAuB;QAChD,aAAa,EAAE;YACb,MAAM,EAAE;gBACN,cAAc,EAAE,4CAA4C;gBAC5D,cAAc,EAAE,mCAAmC;gBACnD,cAAc,EAAE,CAAC,IAAuC,EAAE,EAAE;oBAC1D,MAAM,GAAG,GAAG,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC;oBAC/C,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;wBAC1B,OAAO,qDAAqD,CAAC;oBAC/D,CAAC;oBACD,OAAO,sCAAsC,CAAC;gBAChD,CAAC;gBACD,YAAY,CAAC,EAAU;oBACrB,IAAI,iCAAiC,CAAC,IAAI,CAAC,EAAE,CAAC;wBAAE,OAAO,GAAG,CAAC;oBAC3D,IAAI,0CAA0C,CAAC,IAAI,CAAC,EAAE,CAAC;wBAAE,OAAO,IAAI,CAAC;oBACrE,IAAI,gCAAgC,CAAC,IAAI,CAAC,EAAE,CAAC;wBAAE,OAAO,KAAK,CAAC;oBAC5D,IAAI,0BAA0B,CAAC,IAAI,CAAC,EAAE,CAAC;wBAAE,OAAO,IAAI,CAAC;oBACrD,OAAO,MAAM,CAAA;gBACf,CAAC;aACF;SACF;KACF;CACF,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
package/app/vite/dev.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
import { createServer } from 'vite';
|
|
3
|
+
import { frameBasePath, outputBasePath } from './config/data';
|
|
4
|
+
import { sharedAlias, businessViteConfig } from './config/base';
|
|
5
|
+
import { devConfig } from './config/dev';
|
|
6
|
+
const PROT = 9002;
|
|
7
|
+
export const buildDev = async () => {
|
|
8
|
+
console.log('Starting Vite dev server...');
|
|
9
|
+
const server = await createServer({
|
|
10
|
+
root: outputBasePath,
|
|
11
|
+
publicDir: path.resolve(frameBasePath, './app/public'),
|
|
12
|
+
resolve: {
|
|
13
|
+
alias: sharedAlias,
|
|
14
|
+
extensions: ['.js', '.jsx', '.ts', '.tsx', '.less', '.css'],
|
|
15
|
+
},
|
|
16
|
+
...devConfig,
|
|
17
|
+
...businessViteConfig,
|
|
18
|
+
});
|
|
19
|
+
await server.listen();
|
|
20
|
+
console.log(`Vite dev server listening on http://127.0.0.1:${PROT}`);
|
|
21
|
+
return server;
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev.js","sourceRoot":"","sources":["../../../app/vite/dev.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,MAAM,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,IAAI,GAAG,IAAI,CAAC;AAElB,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,IAA4B,EAAE;IACzD,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;IAE3C,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC;QAChC,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,cAAc,CAAC;QACtD,OAAO,EAAE;YACP,KAAK,EAAE,WAAW;YAClB,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC;SAC5D;QACD,GAAG,SAAS;QACZ,GAAI,kBAA6B;KAClC,CAAC,CAAC;IAEH,MAAM,MAAM,CAAC,MAAM,EAAE,CAAC;IACtB,OAAO,CAAC,GAAG,CAAC,iDAAiD,IAAI,EAAE,CAAC,CAAC;IACrE,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../app/vite/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const buildProd: () => Promise<void>;
|
package/app/vite/prod.js
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
import fs from 'fs';
|
|
3
|
+
import { build } from 'vite';
|
|
4
|
+
import { frameBasePath, outputBasePath } from './config/data';
|
|
5
|
+
import { pageEntry, sharedAlias, businessViteConfig } from './config/base';
|
|
6
|
+
import { prodConfig } from './config/prod';
|
|
7
|
+
const cleanDir = (dir) => {
|
|
8
|
+
if (fs.existsSync(dir)) {
|
|
9
|
+
fs.rmSync(dir, { recursive: true, force: true });
|
|
10
|
+
}
|
|
11
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
12
|
+
};
|
|
13
|
+
export const buildProd = async () => {
|
|
14
|
+
console.log('\n building.. \n');
|
|
15
|
+
const outDir = `${outputBasePath}/app/public/dist/prod`;
|
|
16
|
+
cleanDir(outDir);
|
|
17
|
+
await build({
|
|
18
|
+
root: outputBasePath,
|
|
19
|
+
publicDir: path.resolve(frameBasePath, './app/public'),
|
|
20
|
+
resolve: {
|
|
21
|
+
alias: sharedAlias,
|
|
22
|
+
extensions: ['.js', '.jsx', '.ts', '.tsx', '.less', '.css'],
|
|
23
|
+
},
|
|
24
|
+
build: {
|
|
25
|
+
...prodConfig.build,
|
|
26
|
+
outDir,
|
|
27
|
+
minify: 'esbuild',
|
|
28
|
+
rollupOptions: {
|
|
29
|
+
input: pageEntry,
|
|
30
|
+
output: {
|
|
31
|
+
entryFileNames: 'js/[name]_[hash:8].[contenthash].bundle.js',
|
|
32
|
+
chunkFileNames: 'js/[name]_[contenthash].bundle.js',
|
|
33
|
+
assetFileNames: (info) => {
|
|
34
|
+
const ext = info?.name?.split('.').pop() || '';
|
|
35
|
+
if (['css'].includes(ext)) {
|
|
36
|
+
return `css/[name]_[contenthash:8].[contenthash].bundle.css`;
|
|
37
|
+
}
|
|
38
|
+
return `assets/[name]_[hash][extname]`;
|
|
39
|
+
},
|
|
40
|
+
manualChunks(id) {
|
|
41
|
+
if (/[\/\\]node_modules[\/\\](@)?react/.test(id))
|
|
42
|
+
return 'react';
|
|
43
|
+
if (/[\/\\]node_modules[\/\\](@)?element-plus/.test(id))
|
|
44
|
+
return 'ep';
|
|
45
|
+
if (/[\/\\]node_modules[\/\\]/.test(id))
|
|
46
|
+
return 'nm';
|
|
47
|
+
return 'ject';
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
...businessViteConfig,
|
|
53
|
+
});
|
|
54
|
+
const tplDir = `${outputBasePath}/app/public/dist`;
|
|
55
|
+
cleanDir(tplDir);
|
|
56
|
+
const templateContent = fs.readFileSync(path.resolve(frameBasePath, './app/view/entry.tpl'), 'utf-8');
|
|
57
|
+
for (const [entryName] of Object.entries(pageEntry)) {
|
|
58
|
+
const jsFiles = fs.readdirSync(`${outDir}/js`);
|
|
59
|
+
const jsFile = jsFiles.find((f) => f.startsWith(entryName) && f.endsWith('.js'));
|
|
60
|
+
const cssFile = fs.existsSync(`${outDir}/css`)
|
|
61
|
+
? fs.readdirSync(`${outDir}/css`).find((f) => f.startsWith(entryName))
|
|
62
|
+
: null;
|
|
63
|
+
const scriptTag = jsFile
|
|
64
|
+
? `<script crossorigin="anonymous" src="/dist/prod/js/${jsFile}"></script>`
|
|
65
|
+
: '';
|
|
66
|
+
const cssTag = cssFile
|
|
67
|
+
? `<link rel="stylesheet" href="/dist/prod/css/${cssFile}" />`
|
|
68
|
+
: '';
|
|
69
|
+
const tplContent = templateContent
|
|
70
|
+
.replace('</head>', `${cssTag}\n</head>`)
|
|
71
|
+
.replace('</body>', `${scriptTag}\n</body>`);
|
|
72
|
+
fs.writeFileSync(`${tplDir}/${entryName}.tpl`, tplContent);
|
|
73
|
+
}
|
|
74
|
+
console.log('\n build complete!');
|
|
75
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prod.js","sourceRoot":"","sources":["../../../app/vite/prod.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,QAAQ,GAAG,CAAC,GAAW,EAAE,EAAE;IAC/B,IAAI,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACvB,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IACnD,CAAC;IACD,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;AACzC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,IAAmB,EAAE;IACjD,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;IAChC,MAAM,MAAM,GAAG,GAAG,cAAc,uBAAuB,CAAC;IACxD,QAAQ,CAAC,MAAM,CAAC,CAAC;IAEjB,MAAM,KAAK,CAAC;QACV,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,cAAc,CAAC;QACtD,OAAO,EAAE;YACP,KAAK,EAAE,WAAW;YAClB,UAAU,EAAE,CAAC,KAAK,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ACpD,MAAM,OAAO,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,MAAM,KAAK,CAAC,CAAC;QAC/C,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;QACjF,MAAM,OAAO,GAAG,EAAE,CAAC,UAAU,CAAC,GAAG,MAAM,MAAM,CAAC;YAC5C,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,GAAG,MAAM,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;YACtE,CAAC,CAAC,IAAI,CAAC;QAET,MAAM,SAAS,GAAG,MAAM;YACtB,CAAC,CAAC,sDAAsD,MAAM,aAAa;YAC3E,CAAC,CAAC,EAAE,CAAC;QACP,MAAM,MAAM,GAAG,OAAO;YACpB,CAAC,CAAC,+CAA+C,OAAO,MAAM;YAC9D,CAAC,CAAC,EAAE,CAAC;QAEP,MAAM,UAAU,GAAG,eAAe;aAC/B,OAAO,CAAC,SAAS,EAAE,GAAG,MAAM,WAAW,CAAC;aACxC,OAAO,CAAC,SAAS,EAAE,GAAG,SAAS,WAAW,CAAC,CAAC;QAE/C,EAAE,CAAC,aAAa,CAAC,GAAG,MAAM,IAAI,SAAS,MAAM,EAAE,UAAU,CAAC,CAAC;IAC7D,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;AACpC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@_tc/template-core",
|
|
3
|
-
"version": "0.0.1-bate.
|
|
3
|
+
"version": "0.0.1-bate.3",
|
|
4
4
|
"description": "A TypeScript Koa framework template - Monorepo root",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
"./vite": {
|
|
9
|
+
"import": "./app/vite/index.js",
|
|
10
|
+
"types": "./app/vite/index.d.ts"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
7
13
|
"dependencies": {
|
|
8
14
|
"ajv": "^8.18.0",
|
|
15
|
+
"glob": "^10.3.10",
|
|
9
16
|
"knex": "^3.2.3",
|
|
10
17
|
"koa-bodyparser": "^4.4.1",
|
|
11
18
|
"koa-compress": "^5.2.1",
|
|
@@ -14,11 +21,12 @@
|
|
|
14
21
|
"log4js": "^6.9.1",
|
|
15
22
|
"md5": "^2.3.0",
|
|
16
23
|
"nunjucks": "^3.2.4",
|
|
17
|
-
"superagent": "^7.1.0"
|
|
24
|
+
"superagent": "^7.1.0",
|
|
25
|
+
"vite": "^8.0.8",
|
|
26
|
+
"vite-plugin-html": "^3.2.2"
|
|
18
27
|
},
|
|
19
28
|
"peerDependencies": {
|
|
20
29
|
"@types/node": ">=18.0.0",
|
|
21
|
-
"glob": "^10.3.10",
|
|
22
30
|
"koa": "^2.15.0",
|
|
23
31
|
"koa-nunjucks-2": "^3.0.2",
|
|
24
32
|
"koa-router": "^12.0.1",
|
package/packages/core/index.js
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type ButtonVariant = 'default' | 'primary' | 'text' | 'link';
|
|
3
|
+
export type ButtonSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
|
+
variant?: ButtonVariant;
|
|
6
|
+
size?: ButtonSize;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
leftIcon?: ReactNode;
|
|
9
|
+
rightIcon?: ReactNode;
|
|
10
|
+
noUnderline?: boolean;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
export { Button };
|
|
15
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../../packages/ui/react/components/Button/Button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAG5D,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAA;AACnE,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAE3C,MAAM,WAAW,WAAY,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAK1E,OAAO,CAAC,EAAE,aAAa,CAAA;IAKvB,IAAI,CAAC,EAAE,UAAU,CAAA;IAIjB,OAAO,CAAC,EAAE,OAAO,CAAA;IAIjB,QAAQ,CAAC,EAAE,SAAS,CAAA;IAIpB,SAAS,CAAC,EAAE,SAAS,CAAA;IAKrB,WAAW,CAAC,EAAE,OAAO,CAAA;IAKrB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED,QAAA,MAAM,MAAM,2GA4EX,CAAA;AAID,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Button = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const utils_1 = require("../../lib/utils");
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
const Button = (0, react_1.forwardRef)(({ className, variant = 'default', size = 'md', disabled, loading, leftIcon, rightIcon, noUnderline, children, ...props }, ref) => {
|
|
8
|
+
const isDisabled = disabled || loading;
|
|
9
|
+
const baseStyles = 'inline-flex items-center justify-center rounded-lg font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2';
|
|
10
|
+
const variantStyles = {
|
|
11
|
+
default: 'bg-white border border-border text-foreground hover:bg-muted/50 focus-visible:ring-border',
|
|
12
|
+
primary: 'bg-theme text-theme-foreground border border-theme hover:bg-theme/90 focus-visible:ring-theme',
|
|
13
|
+
text: 'bg-transparent border-0 text-foreground hover:bg-muted/30 focus-visible:ring-border',
|
|
14
|
+
link: 'bg-transparent border-0 text-foreground focus-visible:ring-border',
|
|
15
|
+
};
|
|
16
|
+
const disabledStyles = {
|
|
17
|
+
default: 'disabled:bg-white/60 disabled:border-border/60 disabled:text-foreground/60 disabled:hover:bg-white/60',
|
|
18
|
+
primary: 'disabled:bg-theme/60 disabled:border-theme/0 disabled:text-theme-foreground/60 disabled:hover:bg-theme/60',
|
|
19
|
+
text: 'disabled:text-foreground/40 disabled:hover:bg-transparent',
|
|
20
|
+
link: 'disabled:text-foreground/40',
|
|
21
|
+
};
|
|
22
|
+
const sizeStyles = {
|
|
23
|
+
sm: 'h-8 px-3 text-sm',
|
|
24
|
+
md: 'h-10 px-4 text-sm',
|
|
25
|
+
lg: 'h-12 px-6 text-base',
|
|
26
|
+
};
|
|
27
|
+
const contents = [
|
|
28
|
+
leftIcon && ((0, jsx_runtime_1.jsx)("span", { className: (0, utils_1.cn)('flex items-center', 'mr-2'), children: leftIcon }, "left")),
|
|
29
|
+
children,
|
|
30
|
+
rightIcon ? ((0, jsx_runtime_1.jsx)("span", { className: (0, utils_1.cn)('flex items-center', 'ml-2'), children: rightIcon }, "right")) : undefined,
|
|
31
|
+
].filter(Boolean);
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)("button", { ref: ref, className: (0, utils_1.cn)(baseStyles, variantStyles[variant], disabledStyles[variant], variant === 'link' ? 'h-auto px-0 py-0 text-sm font-normal' : sizeStyles[size], variant === 'link' ? '' : 'before:content-normal', variant === 'link' && !noUnderline && 'hover:underline', variant === 'link' && !noUnderline && 'disabled:hover:no-underline', isDisabled && 'cursor-not-allowed', className), disabled: isDisabled, ...props, children: contents }));
|
|
33
|
+
});
|
|
34
|
+
exports.Button = Button;
|
|
35
|
+
Button.displayName = 'Button';
|
|
36
|
+
//# sourceMappingURL=Button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../../../packages/ui/react/components/Button/Button.tsx"],"names":[],"mappings":";;;;AAAA,kDAA2C;AAE3C,iCAAkC;AAwClC,MAAM,MAAM,GAAG,IAAA,kBAAU,EACvB,CACE,EAAE,SAAS,EAAE,OAAO,GAAG,SAAS,EAAE,IAAI,GAAG,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EACxH,GAAG,EACH,EAAE;IACF,MAAM,UAAU,GAAG,QAAQ,IAAI,OAAO,CAAA;IAGtC,MAAM,UAAU,GACd,8JAA8J,CAAA;IAGhK,MAAM,aAAa,GAAkC;QACnD,OAAO,EAAE,2FAA2F;QACpG,OAAO,EAAE,+FAA+F;QACxG,IAAI,EAAE,qFAAqF;QAE3F,IAAI,EAAE,mEAAmE;KAC1E,CAAA;IAGD,MAAM,cAAc,GAAkC;QACpD,OAAO,EAAE,uGAAuG;QAChH,OAAO,EACL,2GAA2G;QAC7G,IAAI,EAAE,2DAA2D;QACjE,IAAI,EAAE,6BAA6B;KACpC,CAAA;IAGD,MAAM,UAAU,GAA+B;QAC7C,EAAE,EAAE,kBAAkB;QACtB,EAAE,EAAE,mBAAmB;QACvB,EAAE,EAAE,qBAAqB;KAC1B,CAAA;IAGD,MAAM,QAAQ,GAAG;QACf,QAAQ,IAAI,CACV,iCAAiB,SAAS,EAAE,IAAA,UAAE,EAAC,mBAAmB,EAAE,MAAM,CAAC,YACxD,QAAQ,IADD,MAAM,CAET,CACR;QAED,QAAQ;QAER,SAAS,CAAC,CAAC,CAAC,CACV,iCAAkB,SAAS,EAAE,IAAA,UAAE,EAAC,mBAAmB,EAAE,MAAM,CAAC,YACzD,SAAS,IADF,OAAO,CAEV,CACR,CAAC,CAAC,CAAC,SAAS;KACd,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;IAEjB,OAAO,CACL,mCACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,UAAE,EACX,UAAU,EACV,aAAa,CAAC,OAAO,CAAC,EACtB,cAAc,CAAC,OAAO,CAAC,EAEvB,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,sCAAsC,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,EAC9E,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,uBAAuB,EAEjD,OAAO,KAAK,MAAM,IAAI,CAAC,WAAW,IAAI,iBAAiB,EACvD,OAAO,KAAK,MAAM,IAAI,CAAC,WAAW,IAAI,6BAA6B,EACnE,UAAU,IAAI,oBAAoB,EAClC,SAAS,CACV,EACD,QAAQ,EAAE,UAAU,KAChB,KAAK,YAER,QAAQ,GACF,CACV,CAAA;AACH,CAAC,CACF,CAAA;AAIQ,wBAAM;AAFf,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MOmit } from '../../types';
|
|
2
|
+
import { type ButtonProps } from './Button';
|
|
3
|
+
export type SumbitButtonProps = MOmit<ButtonProps, 'onClick'> & {
|
|
4
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => Promise<void | boolean> | void;
|
|
5
|
+
};
|
|
6
|
+
declare const SumbitButton: (props: SumbitButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const AsynchronousButton: (props: SumbitButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { AsynchronousButton, SumbitButton };
|
|
9
|
+
//# sourceMappingURL=SumbitButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SumbitButton.d.ts","sourceRoot":"","sources":["../../../../../../packages/ui/react/components/Button/SumbitButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAE/C,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAA;AAEnD,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG;IAC9D,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,KAAK,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,GAAG,IAAI,CAAA;CACjG,CAAA;AAMD,QAAA,MAAM,YAAY,GAAI,OAAO,iBAAiB,4CA8C7C,CAAA;AACD,QAAA,MAAM,kBAAkB,UA/CK,iBAAiB,4CA+CP,CAAA;AACvC,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SumbitButton = exports.AsynchronousButton = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const utils_1 = require("../../lib/utils");
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
const Button_1 = require("./Button");
|
|
8
|
+
const SumbitButton = (props) => {
|
|
9
|
+
const { onClick, leftIcon, size = 'md', ...bprops } = props;
|
|
10
|
+
const [loading, uLoading] = (0, react_1.useState)(false);
|
|
11
|
+
const spinnerSize = {
|
|
12
|
+
sm: 'h-3 w-3',
|
|
13
|
+
md: 'h-4 w-4',
|
|
14
|
+
lg: 'h-5 w-5',
|
|
15
|
+
};
|
|
16
|
+
const loadingIcon = loading ? ((0, jsx_runtime_1.jsx)("span", { className: (0, utils_1.cn)('flex items-center', 'mr-2'), children: (0, jsx_runtime_1.jsxs)("svg", { className: (0, utils_1.cn)('animate-spin', spinnerSize[size]), xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [(0, jsx_runtime_1.jsx)("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }), (0, jsx_runtime_1.jsx)("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })] }) })) : null;
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)(Button_1.Button, { loading: loading, leftIcon: loading ? loadingIcon : leftIcon, onClick: async (e) => {
|
|
18
|
+
if (loading)
|
|
19
|
+
return;
|
|
20
|
+
uLoading(true);
|
|
21
|
+
try {
|
|
22
|
+
return await onClick?.(e);
|
|
23
|
+
}
|
|
24
|
+
finally {
|
|
25
|
+
uLoading(false);
|
|
26
|
+
}
|
|
27
|
+
}, ...bprops }));
|
|
28
|
+
};
|
|
29
|
+
exports.SumbitButton = SumbitButton;
|
|
30
|
+
const AsynchronousButton = SumbitButton;
|
|
31
|
+
exports.AsynchronousButton = AsynchronousButton;
|
|
32
|
+
//# sourceMappingURL=SumbitButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SumbitButton.js","sourceRoot":"","sources":["../../../../../../packages/ui/react/components/Button/SumbitButton.tsx"],"names":[],"mappings":";;;;AAAA,kDAA2C;AAE3C,iCAAgC;AAChC,qCAAmD;AAUnD,MAAM,YAAY,GAAG,CAAC,KAAwB,EAAE,EAAE;IAChD,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,GAAG,IAAI,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAA;IAE3D,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAA;IAG3C,MAAM,WAAW,GAAG;QAClB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":["../../../../../../packages/ui/react/components/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACtE,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Button = void 0;
|
|
18
|
+
var Button_1 = require("./Button");
|
|
19
|
+
Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return Button_1.Button; } });
|
|
20
|
+
__exportStar(require("./SumbitButton"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/ui/react/components/Button/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,mCAAiC;AAAxB,gGAAA,MAAM,OAAA;AAEf,iDAA8B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ChangeEvent, InputHTMLAttributes } from 'react';
|
|
2
|
+
export type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value'> & {
|
|
3
|
+
checked?: boolean;
|
|
4
|
+
defaultChecked?: boolean;
|
|
5
|
+
indeterminate?: boolean;
|
|
6
|
+
onChange?: (checked: boolean, e: ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
+
value?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & {
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
defaultChecked?: boolean;
|
|
12
|
+
indeterminate?: boolean;
|
|
13
|
+
onChange?: (checked: boolean, e: ChangeEvent<HTMLInputElement>) => void;
|
|
14
|
+
value?: boolean;
|
|
15
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
16
|
+
export { Checkbox };
|
|
17
|
+
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../../../packages/ui/react/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAG7D,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG;IAC9F,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IACvE,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,QAAA,MAAM,QAAQ;cAPF,OAAO;qBACA,OAAO;oBACR,OAAO;eACZ,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI;YAC/D,OAAO;oDAiDhB,CAAA;AAID,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|