@zw-team/react-lib 1.0.1
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/README.md +207 -0
- package/dist/components/AccessReport/index.d.ts +29 -0
- package/dist/components/AccessReport/index.js +129 -0
- package/dist/components/Avatar/Avatar.d.ts +3 -0
- package/dist/components/Avatar/Avatar.js +58 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/index.js +2 -0
- package/dist/components/Avatar/types.d.ts +9 -0
- package/dist/components/Avatar/types.js +0 -0
- package/dist/components/Block/Block.css +8 -0
- package/dist/components/Block/Block.d.ts +4 -0
- package/dist/components/Block/Block.js +11 -0
- package/dist/components/Block/index.d.ts +2 -0
- package/dist/components/Block/index.js +2 -0
- package/dist/components/Block/types.d.ts +3 -0
- package/dist/components/Block/types.js +0 -0
- package/dist/components/ConfigProvider/ConfigContext.d.ts +4 -0
- package/dist/components/ConfigProvider/ConfigContext.js +19 -0
- package/dist/components/ConfigProvider/ConfigProvider.d.ts +4 -0
- package/dist/components/ConfigProvider/ConfigProvider.js +57 -0
- package/dist/components/ConfigProvider/index.d.ts +2 -0
- package/dist/components/ConfigProvider/index.js +2 -0
- package/dist/components/ConfigProvider/types.d.ts +19 -0
- package/dist/components/ConfigProvider/types.js +0 -0
- package/dist/components/CustomColumn/CustomColumn.d.ts +4 -0
- package/dist/components/CustomColumn/CustomColumn.js +388 -0
- package/dist/components/CustomColumn/CustomColumn.scss +135 -0
- package/dist/components/CustomColumn/index.d.ts +2 -0
- package/dist/components/CustomColumn/index.js +2 -0
- package/dist/components/CustomColumn/types.d.ts +19 -0
- package/dist/components/CustomColumn/types.js +0 -0
- package/dist/components/DatePicker/DatePicker.d.ts +4 -0
- package/dist/components/DatePicker/DatePicker.js +89 -0
- package/dist/components/DatePicker/datePickerOption.d.ts +14 -0
- package/dist/components/DatePicker/datePickerOption.js +149 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/index.js +2 -0
- package/dist/components/DatePicker/types.d.ts +12 -0
- package/dist/components/DatePicker/types.js +0 -0
- package/dist/components/DatePickerPanel/DatePickerPanel.d.ts +6 -0
- package/dist/components/DatePickerPanel/DatePickerPanel.js +397 -0
- package/dist/components/DatePickerPanel/datePickerPanel.scss +362 -0
- package/dist/components/DatePickerPanel/index.d.ts +2 -0
- package/dist/components/DatePickerPanel/index.js +2 -0
- package/dist/components/DatePickerPanel/type.d.ts +23 -0
- package/dist/components/DatePickerPanel/type.js +0 -0
- package/dist/components/DownloadCenter/DownloadCenter.d.ts +5 -0
- package/dist/components/DownloadCenter/DownloadCenter.js +367 -0
- package/dist/components/DownloadCenter/index.css +54 -0
- package/dist/components/DownloadCenter/index.d.ts +2 -0
- package/dist/components/DownloadCenter/index.js +2 -0
- package/dist/components/DownloadCenter/types.d.ts +27 -0
- package/dist/components/DownloadCenter/types.js +0 -0
- package/dist/components/Fireworks/Fireworks.d.ts +11 -0
- package/dist/components/Fireworks/Fireworks.js +415 -0
- package/dist/components/Fireworks/imgs/birthday-cake.svg +180 -0
- package/dist/components/Fireworks/imgs/hb.png +0 -0
- package/dist/components/Fireworks/imgs/sd.png +0 -0
- package/dist/components/Fireworks/imgs/xc.png +0 -0
- package/dist/components/Fireworks/imgs/yd.png +0 -0
- package/dist/components/Fireworks/index.d.ts +2 -0
- package/dist/components/Fireworks/index.js +2 -0
- package/dist/components/Fireworks/index.scss +9 -0
- package/dist/components/Fireworks/types.d.ts +6 -0
- package/dist/components/Fireworks/types.js +0 -0
- package/dist/components/Form/Form.css +4 -0
- package/dist/components/Form/Form.d.ts +9 -0
- package/dist/components/Form/Form.js +18 -0
- package/dist/components/Form/index.d.ts +1 -0
- package/dist/components/Form/index.js +2 -0
- package/dist/components/FormItem/FormItem.css +38 -0
- package/dist/components/FormItem/FormItem.d.ts +9 -0
- package/dist/components/FormItem/FormItem.js +25 -0
- package/dist/components/FormItem/index.d.ts +1 -0
- package/dist/components/FormItem/index.js +2 -0
- package/dist/components/HomeData/HomeData.d.ts +6 -0
- package/dist/components/HomeData/HomeData.js +364 -0
- package/dist/components/HomeData/HomeData.scss +161 -0
- package/dist/components/HomeData/index.d.ts +1 -0
- package/dist/components/HomeData/index.js +2 -0
- package/dist/components/Icon/Icon.d.ts +4 -0
- package/dist/components/Icon/Icon.js +34 -0
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/Icon/index.js +2 -0
- package/dist/components/Icon/types.d.ts +8 -0
- package/dist/components/Icon/types.js +0 -0
- package/dist/components/Log/index.d.ts +2 -0
- package/dist/components/Log/index.js +2 -0
- package/dist/components/Log/src/Detail.d.ts +7 -0
- package/dist/components/Log/src/Detail.js +71 -0
- package/dist/components/Log/src/Detail.scss +27 -0
- package/dist/components/Log/src/Log.d.ts +5 -0
- package/dist/components/Log/src/Log.js +335 -0
- package/dist/components/Log/src/Log.scss +50 -0
- package/dist/components/Log/src/useLogTableColumns.d.ts +2 -0
- package/dist/components/Log/src/useLogTableColumns.js +141 -0
- package/dist/components/Log/types.d.ts +5 -0
- package/dist/components/Log/types.js +0 -0
- package/dist/components/LogButton/LogButton.d.ts +4 -0
- package/dist/components/LogButton/LogButton.js +30 -0
- package/dist/components/LogButton/index.d.ts +2 -0
- package/dist/components/LogButton/index.js +2 -0
- package/dist/components/LogButton/logbutton.css +15 -0
- package/dist/components/LogButton/types.d.ts +10 -0
- package/dist/components/LogButton/types.js +0 -0
- package/dist/components/LogDialog/BiLogManager.d.ts +29 -0
- package/dist/components/LogDialog/BiLogManager.js +78 -0
- package/dist/components/LogDialog/LogDialog.d.ts +8 -0
- package/dist/components/LogDialog/LogDialog.js +106 -0
- package/dist/components/LogDialog/LogDialog.scss +29 -0
- package/dist/components/LogDialog/index.d.ts +3 -0
- package/dist/components/LogDialog/index.js +3 -0
- package/dist/components/LogDialog/types.d.ts +8 -0
- package/dist/components/LogDialog/types.js +0 -0
- package/dist/components/MediaPreview/MediaPreview.d.ts +5 -0
- package/dist/components/MediaPreview/MediaPreview.js +124 -0
- package/dist/components/MediaPreview/hook.d.ts +26 -0
- package/dist/components/MediaPreview/hook.js +174 -0
- package/dist/components/MediaPreview/index.css +202 -0
- package/dist/components/MediaPreview/index.d.ts +2 -0
- package/dist/components/MediaPreview/index.js +2 -0
- package/dist/components/MediaPreview/types.d.ts +24 -0
- package/dist/components/MediaPreview/types.js +0 -0
- package/dist/components/Modal/Modal.d.ts +3 -0
- package/dist/components/Modal/Modal.js +31 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Modal/index.js +2 -0
- package/dist/components/Modal/types.d.ts +8 -0
- package/dist/components/Modal/types.js +0 -0
- package/dist/components/ModalStore/ModalProvider.d.ts +11 -0
- package/dist/components/ModalStore/ModalProvider.js +15 -0
- package/dist/components/ModalStore/ModalStore.d.ts +78 -0
- package/dist/components/ModalStore/ModalStore.js +188 -0
- package/dist/components/ModalStore/index.d.ts +3 -0
- package/dist/components/ModalStore/index.js +4 -0
- package/dist/components/ModalStore/types.d.ts +73 -0
- package/dist/components/ModalStore/types.js +0 -0
- package/dist/components/MoreButton/MoreButton.d.ts +3 -0
- package/dist/components/MoreButton/MoreButton.js +50 -0
- package/dist/components/MoreButton/index.d.ts +2 -0
- package/dist/components/MoreButton/index.js +2 -0
- package/dist/components/MoreButton/types.d.ts +15 -0
- package/dist/components/MoreButton/types.js +0 -0
- package/dist/components/NavbarTool/NavbarTool.d.ts +5 -0
- package/dist/components/NavbarTool/NavbarTool.js +143 -0
- package/dist/components/NavbarTool/components/index.css +49 -0
- package/dist/components/NavbarTool/components/index.d.ts +5 -0
- package/dist/components/NavbarTool/components/index.js +98 -0
- package/dist/components/NavbarTool/index.css +14 -0
- package/dist/components/NavbarTool/index.d.ts +2 -0
- package/dist/components/NavbarTool/index.js +2 -0
- package/dist/components/NavbarTool/types.d.ts +40 -0
- package/dist/components/NavbarTool/types.js +0 -0
- package/dist/components/NoticeCenter/NoticeCenter.d.ts +4 -0
- package/dist/components/NoticeCenter/NoticeCenter.js +334 -0
- package/dist/components/NoticeCenter/assets/notice.png +0 -0
- package/dist/components/NoticeCenter/assets/tongzhi.png +0 -0
- package/dist/components/NoticeCenter/index.d.ts +2 -0
- package/dist/components/NoticeCenter/index.js +2 -0
- package/dist/components/NoticeCenter/noticeCenter.scss +232 -0
- package/dist/components/NoticeCenter/types.d.ts +6 -0
- package/dist/components/NoticeCenter/types.js +0 -0
- package/dist/components/Pagination/BiPagination.css +152 -0
- package/dist/components/Pagination/Pagination.d.ts +5 -0
- package/dist/components/Pagination/Pagination.js +67 -0
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/Pagination/index.js +2 -0
- package/dist/components/Pagination/types.d.ts +14 -0
- package/dist/components/Pagination/types.js +0 -0
- package/dist/components/ResponseInterceptor/index.d.ts +17 -0
- package/dist/components/ResponseInterceptor/index.js +43 -0
- package/dist/components/SuperDate/SuperDate.d.ts +6 -0
- package/dist/components/SuperDate/SuperDate.js +113 -0
- package/dist/components/SuperDate/SuperDate.scss +42 -0
- package/dist/components/SuperDate/components/CustomRangPanel/CustomRangPanel.d.ts +5 -0
- package/dist/components/SuperDate/components/CustomRangPanel/CustomRangPanel.js +87 -0
- package/dist/components/SuperDate/components/CustomRangPanel/CustomRangPanel.scss +52 -0
- package/dist/components/SuperDate/components/DynamicTimeCom/DynamicTimeCom.d.ts +6 -0
- package/dist/components/SuperDate/components/DynamicTimeCom/DynamicTimeCom.js +129 -0
- package/dist/components/SuperDate/components/DynamicTimeCom/dynamicTimeCom.scss +70 -0
- package/dist/components/SuperDate/constant.d.ts +35 -0
- package/dist/components/SuperDate/constant.js +27 -0
- package/dist/components/SuperDate/index.d.ts +2 -0
- package/dist/components/SuperDate/index.js +2 -0
- package/dist/components/SuperDate/store.d.ts +68 -0
- package/dist/components/SuperDate/store.js +254 -0
- package/dist/components/SuperDate/types.d.ts +34 -0
- package/dist/components/SuperDate/types.js +0 -0
- package/dist/components/SuperDate/utils.d.ts +18 -0
- package/dist/components/SuperDate/utils.js +14 -0
- package/dist/components/SystemLink/SystemLink.d.ts +4 -0
- package/dist/components/SystemLink/SystemLink.js +85 -0
- package/dist/components/SystemLink/index.d.ts +1 -0
- package/dist/components/SystemLink/index.js +2 -0
- package/dist/components/SystemLink/index.scss +142 -0
- package/dist/components/Table/ResizableTitle.d.ts +3 -0
- package/dist/components/Table/ResizableTitle.js +43 -0
- package/dist/components/Table/Table.d.ts +9 -0
- package/dist/components/Table/Table.js +189 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.js +2 -0
- package/dist/components/Table/index.scss +42 -0
- package/dist/components/Table/types.d.ts +24 -0
- package/dist/components/Table/types.js +0 -0
- package/dist/components/Table/useHeaderPopper.d.ts +8 -0
- package/dist/components/Table/useHeaderPopper.js +95 -0
- package/dist/components/TableHeaderPopper/EditBox.d.ts +6 -0
- package/dist/components/TableHeaderPopper/EditBox.js +208 -0
- package/dist/components/TableHeaderPopper/Popover.d.ts +6 -0
- package/dist/components/TableHeaderPopper/Popover.js +85 -0
- package/dist/components/TableHeaderPopper/index.d.ts +3 -0
- package/dist/components/TableHeaderPopper/index.js +3 -0
- package/dist/components/TableHeaderPopper/index.scss +96 -0
- package/dist/components/TaskCenter/TaskCenter.d.ts +4 -0
- package/dist/components/TaskCenter/TaskCenter.js +257 -0
- package/dist/components/TaskCenter/TaskCenter.scss +44 -0
- package/dist/components/TaskCenter/api.d.ts +13 -0
- package/dist/components/TaskCenter/api.js +13 -0
- package/dist/components/TaskCenter/index.d.ts +2 -0
- package/dist/components/TaskCenter/index.js +2 -0
- package/dist/components/TaskCenter/types.d.ts +29 -0
- package/dist/components/TaskCenter/types.js +0 -0
- package/dist/components/TooltipIcon/TooltipIcon.d.ts +3 -0
- package/dist/components/TooltipIcon/TooltipIcon.js +43 -0
- package/dist/components/TooltipIcon/index.d.ts +2 -0
- package/dist/components/TooltipIcon/index.js +2 -0
- package/dist/components/TooltipIcon/types.d.ts +14 -0
- package/dist/components/TooltipIcon/types.js +0 -0
- package/dist/components/Verification/content.d.ts +11 -0
- package/dist/components/Verification/content.js +223 -0
- package/dist/components/Verification/index.css +43 -0
- package/dist/components/Verification/index.d.ts +1 -0
- package/dist/components/Verification/index.js +37 -0
- package/dist/components/index.d.ts +32 -0
- package/dist/components/index.js +29 -0
- package/dist/config/index.d.ts +83 -0
- package/dist/config/index.js +115 -0
- package/dist/config/theme/index.d.ts +368 -0
- package/dist/config/theme/index.js +369 -0
- package/dist/hooks/createAlive.d.ts +11 -0
- package/dist/hooks/createAlive.js +22 -0
- package/dist/hooks/createGlobalState.d.ts +7 -0
- package/dist/hooks/createGlobalState.js +28 -0
- package/dist/hooks/index.d.ts +26 -0
- package/dist/hooks/index.js +25 -0
- package/dist/hooks/useAsync.d.ts +27 -0
- package/dist/hooks/useAsync.js +76 -0
- package/dist/hooks/useClickOther.d.ts +10 -0
- package/dist/hooks/useClickOther.js +30 -0
- package/dist/hooks/useCopyToClipboard.d.ts +7 -0
- package/dist/hooks/useCopyToClipboard.js +32 -0
- package/dist/hooks/useCreate.d.ts +7 -0
- package/dist/hooks/useCreate.js +21 -0
- package/dist/hooks/useEventListener.d.ts +22 -0
- package/dist/hooks/useEventListener.js +33 -0
- package/dist/hooks/useHistoryStore.d.ts +16 -0
- package/dist/hooks/useHistoryStore.js +106 -0
- package/dist/hooks/useIntersectionObserver.d.ts +8 -0
- package/dist/hooks/useIntersectionObserver.js +23 -0
- package/dist/hooks/useInterval.d.ts +8 -0
- package/dist/hooks/useInterval.js +19 -0
- package/dist/hooks/useLatest.d.ts +2 -0
- package/dist/hooks/useLatest.js +12 -0
- package/dist/hooks/useLockAsyncFn.d.ts +7 -0
- package/dist/hooks/useLockAsyncFn.js +24 -0
- package/dist/hooks/useLockFn.d.ts +7 -0
- package/dist/hooks/useLockFn.js +17 -0
- package/dist/hooks/useMergedState.d.ts +10 -0
- package/dist/hooks/useMergedState.js +30 -0
- package/dist/hooks/useMountedState.d.ts +4 -0
- package/dist/hooks/useMountedState.js +13 -0
- package/dist/hooks/usePermission.d.ts +8 -0
- package/dist/hooks/usePermission.js +21 -0
- package/dist/hooks/usePersistFn.d.ts +8 -0
- package/dist/hooks/usePersistFn.js +13 -0
- package/dist/hooks/useReactive.d.ts +7 -0
- package/dist/hooks/useReactive.js +34 -0
- package/dist/hooks/useRefresh.d.ts +5 -0
- package/dist/hooks/useRefresh.js +8 -0
- package/dist/hooks/useToggle.d.ts +16 -0
- package/dist/hooks/useToggle.js +20 -0
- package/dist/hooks/useUnmount.d.ts +6 -0
- package/dist/hooks/useUnmount.js +10 -0
- package/dist/hooks/useUpdateEffect.d.ts +9 -0
- package/dist/hooks/useUpdateEffect.js +10 -0
- package/dist/hooks/useWindowSize.d.ts +6 -0
- package/dist/hooks/useWindowSize.js +15 -0
- package/dist/hooks/util.d.ts +9 -0
- package/dist/hooks/util.js +6 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2 -0
- package/dist/utils/array.d.ts +12 -0
- package/dist/utils/array.js +15 -0
- package/dist/utils/classNames.d.ts +4 -0
- package/dist/utils/classNames.js +19 -0
- package/dist/utils/date.d.ts +98 -0
- package/dist/utils/date.js +101 -0
- package/dist/utils/debounce.d.ts +8 -0
- package/dist/utils/debounce.js +38 -0
- package/dist/utils/deepClone.d.ts +6 -0
- package/dist/utils/deepClone.js +10 -0
- package/dist/utils/empty.d.ts +16 -0
- package/dist/utils/empty.js +24 -0
- package/dist/utils/formatPrice.d.ts +2 -0
- package/dist/utils/formatPrice.js +15 -0
- package/dist/utils/getUUID.d.ts +1 -0
- package/dist/utils/getUUID.js +17 -0
- package/dist/utils/getUrlParams.d.ts +11 -0
- package/dist/utils/getUrlParams.js +10 -0
- package/dist/utils/index.d.ts +20 -0
- package/dist/utils/index.js +19 -0
- package/dist/utils/listToTree.d.ts +12 -0
- package/dist/utils/listToTree.js +14 -0
- package/dist/utils/object.d.ts +6 -0
- package/dist/utils/object.js +5 -0
- package/dist/utils/ossUpload.d.ts +45 -0
- package/dist/utils/ossUpload.js +88 -0
- package/dist/utils/parseTo.d.ts +6 -0
- package/dist/utils/parseTo.js +9 -0
- package/dist/utils/request/accessReport.d.ts +2 -0
- package/dist/utils/request/accessReport.js +27 -0
- package/dist/utils/request/defaultRequest.d.ts +9 -0
- package/dist/utils/request/defaultRequest.js +33 -0
- package/dist/utils/request/exportDownload.d.ts +2 -0
- package/dist/utils/request/exportDownload.js +28 -0
- package/dist/utils/request/index.d.ts +29 -0
- package/dist/utils/request/index.js +40 -0
- package/dist/utils/request/noticeCenter.d.ts +2 -0
- package/dist/utils/request/noticeCenter.js +28 -0
- package/dist/utils/svgIcon/index.d.ts +47 -0
- package/dist/utils/svgIcon/index.js +76 -0
- package/dist/utils/throttle.d.ts +10 -0
- package/dist/utils/throttle.js +21 -0
- package/dist/utils/time/index.d.ts +7 -0
- package/dist/utils/time/index.js +12 -0
- package/dist/utils/tools.d.ts +43 -0
- package/dist/utils/tools.js +57 -0
- package/package.json +116 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
var config_EnvType = /*#__PURE__*/ function(EnvType) {
|
|
2
|
+
EnvType["DEVELOPMENT"] = "development";
|
|
3
|
+
EnvType["STAGING"] = "staging";
|
|
4
|
+
EnvType["PRODUCTION"] = "production";
|
|
5
|
+
EnvType["RELEASE"] = "release";
|
|
6
|
+
return EnvType;
|
|
7
|
+
}({});
|
|
8
|
+
const ENV_ALIASES = {
|
|
9
|
+
dev: "development",
|
|
10
|
+
development: "development",
|
|
11
|
+
stage: "staging",
|
|
12
|
+
staging: "staging",
|
|
13
|
+
prod: "production",
|
|
14
|
+
production: "production",
|
|
15
|
+
release: "release"
|
|
16
|
+
};
|
|
17
|
+
const BASE_URLS = {
|
|
18
|
+
["development"]: {
|
|
19
|
+
noticeCenterWebsocket: {
|
|
20
|
+
baseUrl: 'wss://message.wanqudianchi.com/'
|
|
21
|
+
},
|
|
22
|
+
noticeCenter: {
|
|
23
|
+
baseUrl: '/zhangquan-dev'
|
|
24
|
+
},
|
|
25
|
+
downloadCenter: {
|
|
26
|
+
baseUrl: '/zhangquan-dev'
|
|
27
|
+
},
|
|
28
|
+
zhangquan: {
|
|
29
|
+
baseUrl: '/zhangquan-dev',
|
|
30
|
+
wozhangwanBaseUrl: '/zhangquan-dev',
|
|
31
|
+
zwnetBaseUrl: '/zhangquan-dev'
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
["staging"]: {
|
|
35
|
+
noticeCenterWebsocket: {
|
|
36
|
+
baseUrl: 'wss://message.wanqudianchi.com/'
|
|
37
|
+
},
|
|
38
|
+
noticeCenter: {
|
|
39
|
+
baseUrl: 'https://zqapi.zwwlkj03.top'
|
|
40
|
+
},
|
|
41
|
+
downloadCenter: {
|
|
42
|
+
baseUrl: 'https://zqapi.zwwlkj03.top'
|
|
43
|
+
},
|
|
44
|
+
zhangquan: {
|
|
45
|
+
baseUrl: 'https://zqapi.zwwlkj03.top',
|
|
46
|
+
wozhangwanBaseUrl: 'https://zqapi.zwwlkj03.top',
|
|
47
|
+
zwnetBaseUrl: 'https://zqapi.zwwlkj03.top'
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
["production"]: {
|
|
51
|
+
noticeCenterWebsocket: {
|
|
52
|
+
baseUrl: 'wss://message.zwnet.cn/'
|
|
53
|
+
},
|
|
54
|
+
noticeCenter: {
|
|
55
|
+
baseUrl: 'https://zqapi.wozhangwan.com'
|
|
56
|
+
},
|
|
57
|
+
downloadCenter: {
|
|
58
|
+
baseUrl: 'https://zqapi.wozhangwan.com'
|
|
59
|
+
},
|
|
60
|
+
zhangquan: {
|
|
61
|
+
baseUrl: 'https://zqapi.wozhangwan.com',
|
|
62
|
+
wozhangwanBaseUrl: 'https://zqapi.wozhangwan.com',
|
|
63
|
+
zwnetBaseUrl: 'https://zq.zwnet.cn'
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
["release"]: {
|
|
67
|
+
noticeCenterWebsocket: {
|
|
68
|
+
baseUrl: 'wss://message.wanqudianchi.com/'
|
|
69
|
+
},
|
|
70
|
+
noticeCenter: {
|
|
71
|
+
baseUrl: 'https://zqapi.zwwlkj03.top'
|
|
72
|
+
},
|
|
73
|
+
downloadCenter: {
|
|
74
|
+
baseUrl: 'https://zqapi.zwwlkj03.top'
|
|
75
|
+
},
|
|
76
|
+
zhangquan: {
|
|
77
|
+
baseUrl: 'https://zqapi.zwwlkj03.top',
|
|
78
|
+
wozhangwanBaseUrl: 'https://zqapi.zwwlkj03.top',
|
|
79
|
+
zwnetBaseUrl: 'https://zqapi.zwwlkj03.top'
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
const normalizeEnv = (env)=>{
|
|
84
|
+
if (!env || 'string' != typeof env) return "production";
|
|
85
|
+
const normalizedEnv = env.toLowerCase().trim();
|
|
86
|
+
return ENV_ALIASES[normalizedEnv] || "production";
|
|
87
|
+
};
|
|
88
|
+
const getCurrentEnvURL = (env = 'production')=>{
|
|
89
|
+
const normalizedEnv = normalizeEnv(env);
|
|
90
|
+
const config = BASE_URLS[normalizedEnv];
|
|
91
|
+
if (!config) {
|
|
92
|
+
console.warn(`Unknown environment: ${env}, falling back to production`);
|
|
93
|
+
return BASE_URLS["production"];
|
|
94
|
+
}
|
|
95
|
+
return config;
|
|
96
|
+
};
|
|
97
|
+
const getCurrentDomain = ()=>{
|
|
98
|
+
if ('undefined' != typeof window && window.location) return window.location.hostname;
|
|
99
|
+
return '';
|
|
100
|
+
};
|
|
101
|
+
const getBaseUrlTypeByDomain = (domain)=>{
|
|
102
|
+
if (domain.includes('wozhangwan.com')) return 'wozhangwanBaseUrl';
|
|
103
|
+
if (domain.includes('zwnet.cn')) return 'zwnetBaseUrl';
|
|
104
|
+
return 'baseUrl';
|
|
105
|
+
};
|
|
106
|
+
const getServiceURL = (service = 'zhangquan', env = 'production')=>{
|
|
107
|
+
const config = getCurrentEnvURL(env);
|
|
108
|
+
if ('zhangquan' !== service) return config[service]?.baseUrl || '';
|
|
109
|
+
const currentDomain = getCurrentDomain();
|
|
110
|
+
const baseUrlType = getBaseUrlTypeByDomain(currentDomain);
|
|
111
|
+
return config.zhangquan[baseUrlType] || config.zhangquan.baseUrl || '';
|
|
112
|
+
};
|
|
113
|
+
const URLConfig = BASE_URLS;
|
|
114
|
+
const ENV_TYPES = config_EnvType;
|
|
115
|
+
export { ENV_TYPES, config_EnvType as EnvType, URLConfig, getBaseUrlTypeByDomain, getCurrentDomain, getCurrentEnvURL, getServiceURL, normalizeEnv };
|
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
export declare const theme: {
|
|
2
|
+
components: {
|
|
3
|
+
Button: {
|
|
4
|
+
algorithm: boolean;
|
|
5
|
+
defaultBorderColor: string;
|
|
6
|
+
defaultActiveColor: string;
|
|
7
|
+
defaultHoverBorderColor: string;
|
|
8
|
+
defaultHoverColor: string;
|
|
9
|
+
groupBorderColor: string;
|
|
10
|
+
blue1: string;
|
|
11
|
+
blue2: string;
|
|
12
|
+
blue3: string;
|
|
13
|
+
blue5: string;
|
|
14
|
+
blue6: string;
|
|
15
|
+
blue7: string;
|
|
16
|
+
borderColorDisabled: string;
|
|
17
|
+
defaultActiveBorderColor: string;
|
|
18
|
+
textHoverBg: string;
|
|
19
|
+
textTextActiveColor: string;
|
|
20
|
+
textTextColor: string;
|
|
21
|
+
textTextHoverColor: string;
|
|
22
|
+
colorBgContainerDisabled: string;
|
|
23
|
+
colorBorder: string;
|
|
24
|
+
defaultColor: string;
|
|
25
|
+
colorBgSolid: string;
|
|
26
|
+
colorBgSolidActive: string;
|
|
27
|
+
colorBgSolidHover: string;
|
|
28
|
+
colorBgTextActive: string;
|
|
29
|
+
contentFontSizeSM: number;
|
|
30
|
+
paddingInlineSM: number;
|
|
31
|
+
paddingInlineLG: number;
|
|
32
|
+
paddingInline: number;
|
|
33
|
+
};
|
|
34
|
+
Layout: {
|
|
35
|
+
headerHeight: number;
|
|
36
|
+
headerPadding: string;
|
|
37
|
+
triggerHeight: number;
|
|
38
|
+
zeroTriggerHeight: number;
|
|
39
|
+
zeroTriggerWidth: number;
|
|
40
|
+
footerPadding: string;
|
|
41
|
+
bodyBg: string;
|
|
42
|
+
footerBg: string;
|
|
43
|
+
lightTriggerColor: string;
|
|
44
|
+
headerColor: string;
|
|
45
|
+
};
|
|
46
|
+
Breadcrumb: {
|
|
47
|
+
iconFontSize: number;
|
|
48
|
+
lastItemColor: string;
|
|
49
|
+
linkColor: string;
|
|
50
|
+
separatorColor: string;
|
|
51
|
+
linkHoverColor: string;
|
|
52
|
+
separatorMargin: number;
|
|
53
|
+
fontHeight: number;
|
|
54
|
+
colorBgTextHover: string;
|
|
55
|
+
itemColor: string;
|
|
56
|
+
};
|
|
57
|
+
Dropdown: {
|
|
58
|
+
controlPaddingHorizontal: number;
|
|
59
|
+
controlItemBgHover: string;
|
|
60
|
+
paddingBlock: number;
|
|
61
|
+
};
|
|
62
|
+
Menu: {
|
|
63
|
+
iconSize: number;
|
|
64
|
+
itemHeight: number;
|
|
65
|
+
itemMarginBlock: number;
|
|
66
|
+
itemMarginInline: number;
|
|
67
|
+
controlHeightLG: number;
|
|
68
|
+
darkItemSelectedBg: string;
|
|
69
|
+
horizontalItemHoverColor: string;
|
|
70
|
+
horizontalItemSelectedColor: string;
|
|
71
|
+
itemActiveBg: string;
|
|
72
|
+
itemColor: string;
|
|
73
|
+
itemHoverColor: string;
|
|
74
|
+
itemDisabledColor: string;
|
|
75
|
+
itemHoverBg: string;
|
|
76
|
+
itemSelectedBg: string;
|
|
77
|
+
itemSelectedColor: string;
|
|
78
|
+
subMenuItemSelectedColor: string;
|
|
79
|
+
subMenuItemBg: string;
|
|
80
|
+
groupTitleColor: string;
|
|
81
|
+
colorSplit: string;
|
|
82
|
+
};
|
|
83
|
+
Cascader: {
|
|
84
|
+
optionSelectedBg: string;
|
|
85
|
+
optionSelectedColor: string;
|
|
86
|
+
colorBgContainerDisabled: string;
|
|
87
|
+
colorBorder: string;
|
|
88
|
+
controlItemBgHover: string;
|
|
89
|
+
};
|
|
90
|
+
Transfer: {
|
|
91
|
+
colorBgContainerDisabled: string;
|
|
92
|
+
colorBorder: string;
|
|
93
|
+
controlItemBgHover: string;
|
|
94
|
+
itemPaddingBlock: number;
|
|
95
|
+
listHeight: number;
|
|
96
|
+
listWidth: number;
|
|
97
|
+
listWidthLG: number;
|
|
98
|
+
};
|
|
99
|
+
Table: {
|
|
100
|
+
headerBorderRadius: number;
|
|
101
|
+
headerColor: string;
|
|
102
|
+
rowSelectedBg: string;
|
|
103
|
+
rowSelectedHoverBg: string;
|
|
104
|
+
bodySortBg: string;
|
|
105
|
+
borderColor: string;
|
|
106
|
+
footerColor: string;
|
|
107
|
+
headerBg: string;
|
|
108
|
+
headerFilterHoverBg: string;
|
|
109
|
+
footerBg: string;
|
|
110
|
+
fixedHeaderSortActiveBg: string;
|
|
111
|
+
headerSortActiveBg: string;
|
|
112
|
+
headerSortHoverBg: string;
|
|
113
|
+
headerSplitColor: string;
|
|
114
|
+
rowExpandedBg: string;
|
|
115
|
+
rowHoverBg: string;
|
|
116
|
+
controlItemBgHover: string;
|
|
117
|
+
};
|
|
118
|
+
Alert: {
|
|
119
|
+
marginXS: number;
|
|
120
|
+
marginSM: number;
|
|
121
|
+
defaultPadding: string;
|
|
122
|
+
};
|
|
123
|
+
Notification: {
|
|
124
|
+
paddingContentHorizontalLG: number;
|
|
125
|
+
paddingLG: number;
|
|
126
|
+
paddingMD: number;
|
|
127
|
+
colorBgTextHover: string;
|
|
128
|
+
colorBgTextActive: string;
|
|
129
|
+
};
|
|
130
|
+
Divider: {
|
|
131
|
+
colorSplit: string;
|
|
132
|
+
};
|
|
133
|
+
Pagination: {
|
|
134
|
+
itemActiveBgDisabled: string;
|
|
135
|
+
itemActiveColorDisabled: string;
|
|
136
|
+
itemActiveBg: string;
|
|
137
|
+
colorBgTextHover: string;
|
|
138
|
+
marginXS: number;
|
|
139
|
+
marginXXS: number;
|
|
140
|
+
paddingXS: number;
|
|
141
|
+
paddingXXS: number;
|
|
142
|
+
marginSM: number;
|
|
143
|
+
colorBgContainerDisabled: string;
|
|
144
|
+
colorBgTextActive: string;
|
|
145
|
+
colorBorder: string;
|
|
146
|
+
};
|
|
147
|
+
Steps: {
|
|
148
|
+
marginXXS: number;
|
|
149
|
+
marginXS: number;
|
|
150
|
+
marginSM: number;
|
|
151
|
+
marginLG: number;
|
|
152
|
+
paddingXXS: number;
|
|
153
|
+
paddingXS: number;
|
|
154
|
+
paddingSM: number;
|
|
155
|
+
paddingLG: number;
|
|
156
|
+
controlItemBgHover: string;
|
|
157
|
+
};
|
|
158
|
+
DatePicker: {
|
|
159
|
+
activeBorderColor: string;
|
|
160
|
+
cellActiveWithRangeBg: string;
|
|
161
|
+
hoverBorderColor: string;
|
|
162
|
+
cellRangeBorderColor: string;
|
|
163
|
+
cellHoverWithRangeBg: string;
|
|
164
|
+
multipleItemColorDisabled: string;
|
|
165
|
+
multipleSelectorBgDisabled: string;
|
|
166
|
+
cellBgDisabled: string;
|
|
167
|
+
cellHoverBg: string;
|
|
168
|
+
colorBgContainerDisabled: string;
|
|
169
|
+
colorBorder: string;
|
|
170
|
+
};
|
|
171
|
+
Form: {
|
|
172
|
+
labelColor: string;
|
|
173
|
+
colorBorder: string;
|
|
174
|
+
labelColonMarginInlineEnd: number;
|
|
175
|
+
};
|
|
176
|
+
Input: {
|
|
177
|
+
activeBorderColor: string;
|
|
178
|
+
hoverBorderColor: string;
|
|
179
|
+
colorBgContainerDisabled: string;
|
|
180
|
+
colorBorder: string;
|
|
181
|
+
};
|
|
182
|
+
InputNumber: {
|
|
183
|
+
activeBorderColor: string;
|
|
184
|
+
handleHoverColor: string;
|
|
185
|
+
hoverBorderColor: string;
|
|
186
|
+
handleBorderColor: string;
|
|
187
|
+
colorBgContainerDisabled: string;
|
|
188
|
+
colorBorder: string;
|
|
189
|
+
};
|
|
190
|
+
Mentions: {
|
|
191
|
+
activeBorderColor: string;
|
|
192
|
+
hoverBorderColor: string;
|
|
193
|
+
colorBgContainerDisabled: string;
|
|
194
|
+
controlItemBgHover: string;
|
|
195
|
+
};
|
|
196
|
+
Radio: {
|
|
197
|
+
buttonSolidCheckedActiveBg: string;
|
|
198
|
+
buttonSolidCheckedBg: string;
|
|
199
|
+
buttonSolidCheckedHoverBg: string;
|
|
200
|
+
buttonColor: string;
|
|
201
|
+
colorBgContainerDisabled: string;
|
|
202
|
+
};
|
|
203
|
+
Select: {
|
|
204
|
+
activeBorderColor: string;
|
|
205
|
+
hoverBorderColor: string;
|
|
206
|
+
optionSelectedBg: string;
|
|
207
|
+
activeOutlineColor: string;
|
|
208
|
+
optionSelectedColor: string;
|
|
209
|
+
colorFillSecondary: string;
|
|
210
|
+
paddingXXS: number;
|
|
211
|
+
paddingXS: number;
|
|
212
|
+
paddingSM: number;
|
|
213
|
+
colorBgContainerDisabled: string;
|
|
214
|
+
multipleItemBg: string;
|
|
215
|
+
multipleItemColorDisabled: string;
|
|
216
|
+
optionActiveBg: string;
|
|
217
|
+
multipleSelectorBgDisabled: string;
|
|
218
|
+
colorBorder: string;
|
|
219
|
+
};
|
|
220
|
+
Calendar: {
|
|
221
|
+
itemActiveBg: string;
|
|
222
|
+
controlItemBgHover: string;
|
|
223
|
+
};
|
|
224
|
+
Card: {
|
|
225
|
+
extraColor: string;
|
|
226
|
+
colorBorderSecondary: string;
|
|
227
|
+
};
|
|
228
|
+
Descriptions: {
|
|
229
|
+
contentColor: string;
|
|
230
|
+
extraColor: string;
|
|
231
|
+
titleColor: string;
|
|
232
|
+
labelColor: string;
|
|
233
|
+
colorSplit: string;
|
|
234
|
+
};
|
|
235
|
+
Segmented: {
|
|
236
|
+
itemHoverColor: string;
|
|
237
|
+
itemSelectedColor: string;
|
|
238
|
+
trackBg: string;
|
|
239
|
+
itemHoverBg: string;
|
|
240
|
+
itemActiveBg: string;
|
|
241
|
+
itemColor: string;
|
|
242
|
+
};
|
|
243
|
+
Tabs: {
|
|
244
|
+
inkBarColor: string;
|
|
245
|
+
itemSelectedColor: string;
|
|
246
|
+
itemActiveColor: string;
|
|
247
|
+
itemHoverColor: string;
|
|
248
|
+
itemColor: string;
|
|
249
|
+
cardBg: string;
|
|
250
|
+
colorBorderSecondary: string;
|
|
251
|
+
controlItemBgHover: string;
|
|
252
|
+
};
|
|
253
|
+
Tag: {
|
|
254
|
+
defaultColor: string;
|
|
255
|
+
defaultBg: string;
|
|
256
|
+
colorFillSecondary: string;
|
|
257
|
+
};
|
|
258
|
+
Tree: {
|
|
259
|
+
directoryNodeSelectedBg: string;
|
|
260
|
+
nodeSelectedBg: string;
|
|
261
|
+
nodeHoverBg: string;
|
|
262
|
+
nodeHoverColor: string;
|
|
263
|
+
controlItemBgHover: string;
|
|
264
|
+
controlItemBgActiveDisabled: string;
|
|
265
|
+
nodeSelectedColor: string;
|
|
266
|
+
};
|
|
267
|
+
Modal: {
|
|
268
|
+
titleColor: string;
|
|
269
|
+
colorBgMask: string;
|
|
270
|
+
colorBgTextHover: string;
|
|
271
|
+
colorBgTextActive: string;
|
|
272
|
+
fontHeight: number;
|
|
273
|
+
};
|
|
274
|
+
Progress: {
|
|
275
|
+
defaultColor: string;
|
|
276
|
+
circleTextColor: string;
|
|
277
|
+
};
|
|
278
|
+
Checkbox: {
|
|
279
|
+
colorBgContainerDisabled: string;
|
|
280
|
+
colorBorder: string;
|
|
281
|
+
};
|
|
282
|
+
Slider: {
|
|
283
|
+
dotActiveBorderColor: string;
|
|
284
|
+
handleColor: string;
|
|
285
|
+
trackBg: string;
|
|
286
|
+
handleActiveColor: string;
|
|
287
|
+
handleActiveOutlineColor: string;
|
|
288
|
+
trackHoverBg: string;
|
|
289
|
+
};
|
|
290
|
+
TreeSelect: {
|
|
291
|
+
nodeHoverBg: string;
|
|
292
|
+
nodeHoverColor: string;
|
|
293
|
+
nodeSelectedBg: string;
|
|
294
|
+
nodeSelectedColor: string;
|
|
295
|
+
colorBgContainerDisabled: string;
|
|
296
|
+
colorBgTextHover: string;
|
|
297
|
+
controlItemBgHover: string;
|
|
298
|
+
controlItemBgActiveDisabled: string;
|
|
299
|
+
};
|
|
300
|
+
Upload: {
|
|
301
|
+
actionsColor: string;
|
|
302
|
+
controlItemBgHover: string;
|
|
303
|
+
};
|
|
304
|
+
Image: {
|
|
305
|
+
colorBgContainerDisabled: string;
|
|
306
|
+
colorBgMask: string;
|
|
307
|
+
};
|
|
308
|
+
Tooltip: {
|
|
309
|
+
colorBgSpotlight: string;
|
|
310
|
+
paddingXS: number;
|
|
311
|
+
paddingSM: number;
|
|
312
|
+
};
|
|
313
|
+
Drawer: {
|
|
314
|
+
colorBgMask: string;
|
|
315
|
+
colorBgTextActive: string;
|
|
316
|
+
colorBgTextHover: string;
|
|
317
|
+
};
|
|
318
|
+
Spin: {
|
|
319
|
+
colorBgMask: string;
|
|
320
|
+
};
|
|
321
|
+
Popconfirm: {
|
|
322
|
+
marginXS: number;
|
|
323
|
+
marginXXS: number;
|
|
324
|
+
};
|
|
325
|
+
Message: {
|
|
326
|
+
marginXS: number;
|
|
327
|
+
paddingXS: number;
|
|
328
|
+
contentPadding: string;
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
token: {
|
|
332
|
+
colorPrimary: string;
|
|
333
|
+
colorInfo: string;
|
|
334
|
+
colorBgLayout: string;
|
|
335
|
+
colorText: string;
|
|
336
|
+
colorTextSecondary: string;
|
|
337
|
+
colorTextTertiary: string;
|
|
338
|
+
colorTextQuaternary: string;
|
|
339
|
+
colorTextBase: string;
|
|
340
|
+
paddingXXS: number;
|
|
341
|
+
paddingLG: number;
|
|
342
|
+
paddingMD: number;
|
|
343
|
+
padding: number;
|
|
344
|
+
paddingSM: number;
|
|
345
|
+
paddingXS: number;
|
|
346
|
+
marginXXS: number;
|
|
347
|
+
marginXS: number;
|
|
348
|
+
marginSM: number;
|
|
349
|
+
margin: number;
|
|
350
|
+
marginMD: number;
|
|
351
|
+
marginLG: number;
|
|
352
|
+
marginXL: number;
|
|
353
|
+
marginXXL: number;
|
|
354
|
+
paddingXL: number;
|
|
355
|
+
borderRadius: number;
|
|
356
|
+
borderRadiusLG: number;
|
|
357
|
+
borderRadiusSM: number;
|
|
358
|
+
borderRadiusXS: number;
|
|
359
|
+
colorBorderSecondary: string;
|
|
360
|
+
colorBorder: string;
|
|
361
|
+
colorFill: string;
|
|
362
|
+
colorFillSecondary: string;
|
|
363
|
+
colorFillTertiary: string;
|
|
364
|
+
colorFillQuaternary: string;
|
|
365
|
+
colorBgSpotlight: string;
|
|
366
|
+
colorBgMask: string;
|
|
367
|
+
};
|
|
368
|
+
};
|