@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,27 @@
|
|
|
1
|
+
import { message } from "antd";
|
|
2
|
+
import axios from "axios";
|
|
3
|
+
import { getCSFToken } from "../tools.js";
|
|
4
|
+
const service = axios.create({
|
|
5
|
+
baseURL: '',
|
|
6
|
+
timeout: 100000
|
|
7
|
+
});
|
|
8
|
+
service.interceptors.request.use((config)=>{
|
|
9
|
+
config.headers['Content-Type'] = 'application/json';
|
|
10
|
+
config.headers['zw-csrf-token'] = getCSFToken();
|
|
11
|
+
return config;
|
|
12
|
+
}, (error)=>{
|
|
13
|
+
console.log(error);
|
|
14
|
+
return Promise.reject(error);
|
|
15
|
+
});
|
|
16
|
+
service.interceptors.response.use((response)=>{
|
|
17
|
+
const res = response.data;
|
|
18
|
+
if (1 === res.status_code) return res;
|
|
19
|
+
message.error(res.msg || '请求失败', 5000);
|
|
20
|
+
return res;
|
|
21
|
+
}, (error)=>{
|
|
22
|
+
console.log('err' + error);
|
|
23
|
+
message.error(error.msg || '请求失败', 5000);
|
|
24
|
+
return Promise.reject(error);
|
|
25
|
+
});
|
|
26
|
+
const accessReport = service;
|
|
27
|
+
export { accessReport as default };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { message } from "antd";
|
|
2
|
+
import axios from "axios";
|
|
3
|
+
import { getCSFToken } from "../tools.js";
|
|
4
|
+
const service = axios.create({
|
|
5
|
+
baseURL: '',
|
|
6
|
+
withCredentials: true,
|
|
7
|
+
timeout: 100000
|
|
8
|
+
});
|
|
9
|
+
service.interceptors.request.use((config)=>{
|
|
10
|
+
config.headers = {
|
|
11
|
+
...config.headers,
|
|
12
|
+
'Content-Type': 'application/json',
|
|
13
|
+
'zw-csrf-token': getCSFToken()
|
|
14
|
+
};
|
|
15
|
+
return config;
|
|
16
|
+
}, (error)=>{
|
|
17
|
+
console.error('请求配置错误:', error);
|
|
18
|
+
return Promise.reject(error);
|
|
19
|
+
});
|
|
20
|
+
service.interceptors.response.use((response)=>{
|
|
21
|
+
const res = response.data;
|
|
22
|
+
if (1 !== res.status_code) {
|
|
23
|
+
if (-100 === res.status_code || -110 === res.status_code || 202 === res.status_code) return res;
|
|
24
|
+
message.error(res.msg || '请求失败', 5);
|
|
25
|
+
}
|
|
26
|
+
return res;
|
|
27
|
+
}, (error)=>{
|
|
28
|
+
console.error('请求响应错误:', error);
|
|
29
|
+
message.error(error.response?.data?.msg || error.message || '网络请求失败', 5);
|
|
30
|
+
return Promise.reject(error);
|
|
31
|
+
});
|
|
32
|
+
const defaultRequest = service;
|
|
33
|
+
export { defaultRequest as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { message } from "antd";
|
|
2
|
+
import axios from "axios";
|
|
3
|
+
import { getCSFToken, getToken } from "../tools.js";
|
|
4
|
+
const service = axios.create({
|
|
5
|
+
baseURL: '',
|
|
6
|
+
timeout: 100000
|
|
7
|
+
});
|
|
8
|
+
service.interceptors.request.use((config)=>{
|
|
9
|
+
config.headers['Content-Type'] = 'application/json';
|
|
10
|
+
config.headers['token'] = getToken();
|
|
11
|
+
config.headers['zw-csrf-token'] = getCSFToken();
|
|
12
|
+
return config;
|
|
13
|
+
}, (error)=>{
|
|
14
|
+
console.log(error);
|
|
15
|
+
return Promise.reject(error);
|
|
16
|
+
});
|
|
17
|
+
service.interceptors.response.use((response)=>{
|
|
18
|
+
const res = response.data;
|
|
19
|
+
if (200 === res.code) return res;
|
|
20
|
+
message.error(res.msg || '请求失败', 5000);
|
|
21
|
+
return res;
|
|
22
|
+
}, (error)=>{
|
|
23
|
+
console.log('err' + error);
|
|
24
|
+
message.error(error.msg || '请求失败', 5000);
|
|
25
|
+
return Promise.reject(error);
|
|
26
|
+
});
|
|
27
|
+
const exportDownload = service;
|
|
28
|
+
export { exportDownload as default };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type EnvType } from '../../config/index';
|
|
2
|
+
/**
|
|
3
|
+
* 系统类型枚举
|
|
4
|
+
*/
|
|
5
|
+
export declare enum SystemType {
|
|
6
|
+
ZHANGQUAN = "zq",
|
|
7
|
+
OTHER = "other"
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 请求配置接口
|
|
11
|
+
*/
|
|
12
|
+
export interface RequestConfig {
|
|
13
|
+
/** 环境名称,默认为'production' */
|
|
14
|
+
env?: EnvType | keyof typeof EnvType | string;
|
|
15
|
+
/** 目标系统标识 */
|
|
16
|
+
system: string;
|
|
17
|
+
/** API路径 */
|
|
18
|
+
api: string;
|
|
19
|
+
/** 请求数据 */
|
|
20
|
+
data?: Record<string, any>;
|
|
21
|
+
/** 请求头 */
|
|
22
|
+
headers?: Record<string, string>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 统一请求封装函数
|
|
26
|
+
* @param config 请求配置对象
|
|
27
|
+
* @returns Promise<any> 请求结果
|
|
28
|
+
*/
|
|
29
|
+
export default function request(config: RequestConfig): Promise<any>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { getServiceURL } from "../../config/index.js";
|
|
2
|
+
import defaultRequest from "./defaultRequest.js";
|
|
3
|
+
var request_SystemType = /*#__PURE__*/ function(SystemType) {
|
|
4
|
+
SystemType["ZHANGQUAN"] = "zq";
|
|
5
|
+
SystemType["OTHER"] = "other";
|
|
6
|
+
return SystemType;
|
|
7
|
+
}({});
|
|
8
|
+
function request(config) {
|
|
9
|
+
const { env = 'production', system, api, data = {}, headers = {} } = config;
|
|
10
|
+
const baseUrl = getServiceURL(void 0, env);
|
|
11
|
+
if ("zq" === system) {
|
|
12
|
+
const defaultHeaders = {
|
|
13
|
+
Authkey: 'authtpe84dzfl3iq62'
|
|
14
|
+
};
|
|
15
|
+
if (headers.Authkey) defaultHeaders.Authkey = headers.Authkey;
|
|
16
|
+
return defaultRequest({
|
|
17
|
+
url: baseUrl + api,
|
|
18
|
+
method: 'post',
|
|
19
|
+
headers: {
|
|
20
|
+
...defaultHeaders,
|
|
21
|
+
...headers
|
|
22
|
+
},
|
|
23
|
+
data
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return defaultRequest({
|
|
27
|
+
url: baseUrl + '/api/cross_system/request',
|
|
28
|
+
method: 'post',
|
|
29
|
+
headers: {
|
|
30
|
+
authkey: 'authtpe84dzfl3iq62',
|
|
31
|
+
...headers
|
|
32
|
+
},
|
|
33
|
+
data: {
|
|
34
|
+
system,
|
|
35
|
+
api,
|
|
36
|
+
params: data
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
export { request_SystemType as SystemType, request as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { message } from "antd";
|
|
2
|
+
import axios from "axios";
|
|
3
|
+
import { getCSFToken, getToken } from "../tools.js";
|
|
4
|
+
const service = axios.create({
|
|
5
|
+
baseURL: '',
|
|
6
|
+
timeout: 100000
|
|
7
|
+
});
|
|
8
|
+
service.interceptors.request.use((config)=>{
|
|
9
|
+
config.headers['Content-Type'] = 'application/json';
|
|
10
|
+
config.headers['Authtoken'] = getToken();
|
|
11
|
+
config.headers['zw-csrf-token'] = getCSFToken();
|
|
12
|
+
return config;
|
|
13
|
+
}, (error)=>{
|
|
14
|
+
console.log(error);
|
|
15
|
+
return Promise.reject(error);
|
|
16
|
+
});
|
|
17
|
+
service.interceptors.response.use((response)=>{
|
|
18
|
+
const res = response.data;
|
|
19
|
+
if ('0' === res.code || 1 === res.status_code) return res;
|
|
20
|
+
message.error(res.msg || '请求失败', 5000);
|
|
21
|
+
return res;
|
|
22
|
+
}, (error)=>{
|
|
23
|
+
console.log('err' + error);
|
|
24
|
+
message.error(error.msg || '请求失败', 5000);
|
|
25
|
+
return Promise.reject(error);
|
|
26
|
+
});
|
|
27
|
+
const noticeCenter = service;
|
|
28
|
+
export { noticeCenter as default };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 图标信息响应接口
|
|
3
|
+
*/
|
|
4
|
+
export interface IconInfoResponse {
|
|
5
|
+
status_code: number;
|
|
6
|
+
data: {
|
|
7
|
+
icon_url: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 图标列表响应接口
|
|
12
|
+
*/
|
|
13
|
+
export interface IconListResponse {
|
|
14
|
+
status_code: number;
|
|
15
|
+
data: {
|
|
16
|
+
link: string;
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 获取图标URL的请求参数
|
|
22
|
+
*/
|
|
23
|
+
export interface GetIconUrlParams {
|
|
24
|
+
character: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 加载图标回调函数接口
|
|
28
|
+
*/
|
|
29
|
+
export type LoadIconCallback = (data: IconListResponse['data']) => void;
|
|
30
|
+
/**
|
|
31
|
+
* 加载SVG图标
|
|
32
|
+
* @param character 图标字符
|
|
33
|
+
* @param env 环境参数
|
|
34
|
+
*/
|
|
35
|
+
export declare function loadSvg(character: string, env: string): void;
|
|
36
|
+
/**
|
|
37
|
+
* 加载图标列表
|
|
38
|
+
* @param env 环境参数
|
|
39
|
+
* @param callback 加载完成回调函数
|
|
40
|
+
*/
|
|
41
|
+
export declare function loadIcon(env: string, callback: LoadIconCallback): void;
|
|
42
|
+
/**
|
|
43
|
+
* 加载图标列表-mock
|
|
44
|
+
* @param env 环境参数
|
|
45
|
+
* @param callback 加载完成回调函数
|
|
46
|
+
*/
|
|
47
|
+
export declare function loadIconMock(env: string, callback: LoadIconCallback): void;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import request from "../request/index.js";
|
|
2
|
+
function getIconUrl(character, env) {
|
|
3
|
+
return request({
|
|
4
|
+
env,
|
|
5
|
+
system: 'zq',
|
|
6
|
+
api: '/data/system/getInfo',
|
|
7
|
+
data: {
|
|
8
|
+
character
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
function getIconList(env) {
|
|
13
|
+
return request({
|
|
14
|
+
env,
|
|
15
|
+
system: 'zq',
|
|
16
|
+
api: '/api/icon/list'
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function loadScript(url) {
|
|
20
|
+
const script = document.createElement("script");
|
|
21
|
+
script.src = url;
|
|
22
|
+
document.head.appendChild(script);
|
|
23
|
+
}
|
|
24
|
+
function loadSvg(character, env) {
|
|
25
|
+
getIconUrl(character, env).then((res)=>{
|
|
26
|
+
if (1 === res.status_code && res.data.icon_url) setTimeout(()=>{
|
|
27
|
+
loadScript(res.data.icon_url);
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function loadIcon(env, callback) {
|
|
32
|
+
getIconList(env).then((res)=>{
|
|
33
|
+
if (1 === res.status_code) {
|
|
34
|
+
callback(res.data);
|
|
35
|
+
setTimeout(()=>{
|
|
36
|
+
loadScript(res.data.link);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function loadIconMock(env, callback) {
|
|
42
|
+
const res = {
|
|
43
|
+
data: {
|
|
44
|
+
data: {
|
|
45
|
+
MEDIA: {
|
|
46
|
+
1: {
|
|
47
|
+
id: '1',
|
|
48
|
+
icon: 'media-jlyq',
|
|
49
|
+
name: '巨量引擎'
|
|
50
|
+
},
|
|
51
|
+
2: {
|
|
52
|
+
id: '2',
|
|
53
|
+
icon: 'media-clyq',
|
|
54
|
+
name: '磁力引擎'
|
|
55
|
+
},
|
|
56
|
+
3: {
|
|
57
|
+
id: '3',
|
|
58
|
+
icon: 'media-adq',
|
|
59
|
+
name: '腾讯-ADQ'
|
|
60
|
+
},
|
|
61
|
+
4: {
|
|
62
|
+
id: '4',
|
|
63
|
+
icon: 'media-mp',
|
|
64
|
+
name: '腾讯-MP'
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
link: 'https://lf1-cdn-tos.bytegoofy.com/obj/iconpark/svg_28971_176.51778ff8a253eab27447d8834a28f1db.js'
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
callback(res.data);
|
|
72
|
+
setTimeout(()=>{
|
|
73
|
+
loadScript(res.data.link);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
export { loadIcon, loadIconMock, loadSvg };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const throttle_throttle = (fn, delay = 300)=>{
|
|
2
|
+
let wait = false;
|
|
3
|
+
let timerId;
|
|
4
|
+
const throttled = (...args)=>{
|
|
5
|
+
if (wait) return;
|
|
6
|
+
const val = fn(...args);
|
|
7
|
+
wait = true;
|
|
8
|
+
timerId = window.setTimeout(()=>{
|
|
9
|
+
wait = false;
|
|
10
|
+
}, delay);
|
|
11
|
+
return val;
|
|
12
|
+
};
|
|
13
|
+
const cancel = ()=>{
|
|
14
|
+
wait = false;
|
|
15
|
+
clearTimeout(timerId);
|
|
16
|
+
};
|
|
17
|
+
throttled.cancel = cancel;
|
|
18
|
+
return throttled;
|
|
19
|
+
};
|
|
20
|
+
const throttle = throttle_throttle;
|
|
21
|
+
export { throttle as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import dayjs from "dayjs";
|
|
2
|
+
function diffTime(time1, time2) {
|
|
3
|
+
const format = 'HH:mm:ss MM/D/YYYY';
|
|
4
|
+
const startTime = dayjs(time1).format(format);
|
|
5
|
+
const endTime = dayjs(time2).format(format);
|
|
6
|
+
if (!startTime || !endTime) {
|
|
7
|
+
console.warn('Invalid time format provided to diffTime function');
|
|
8
|
+
return 0;
|
|
9
|
+
}
|
|
10
|
+
return dayjs(endTime).diff(dayjs(startTime), 'seconds');
|
|
11
|
+
}
|
|
12
|
+
export { diffTime };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import EventEmitter from '@braintree/event-emitter';
|
|
2
|
+
/**
|
|
3
|
+
* 获取组件密钥
|
|
4
|
+
* @returns 组件密钥
|
|
5
|
+
*/
|
|
6
|
+
export declare function getComponentsKeys(): string;
|
|
7
|
+
/**
|
|
8
|
+
* 从Cookie中获取令牌
|
|
9
|
+
* @param key Cookie键名,默认为'zw-authorization'
|
|
10
|
+
* @returns 令牌值,如果不存在则返回undefined
|
|
11
|
+
*/
|
|
12
|
+
export declare function getToken(key?: string): string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* 获取CSRF令牌并进行MD5加密
|
|
15
|
+
* @param key Cookie键名,默认为'zw-csrf-token'
|
|
16
|
+
* @returns 加密后的CSRF令牌
|
|
17
|
+
*/
|
|
18
|
+
export declare function getCSFToken(key?: string): string;
|
|
19
|
+
/**
|
|
20
|
+
* 获取系统信息
|
|
21
|
+
* @param key Cookie键名,默认为'$BiSystem'
|
|
22
|
+
* @returns 系统信息,如果不存在则返回undefined
|
|
23
|
+
*/
|
|
24
|
+
export declare function getSystem(key?: string): string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* 获取环境信息
|
|
27
|
+
* @param key Cookie键名,默认为'$BiEnv'
|
|
28
|
+
* @returns 环境信息,如果不存在则返回undefined
|
|
29
|
+
*/
|
|
30
|
+
export declare function getEnv(key?: string): string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* 生成随机字符串
|
|
33
|
+
* @param len 字符串长度,默认为32
|
|
34
|
+
* @returns 随机字符串(包含时间戳)
|
|
35
|
+
*/
|
|
36
|
+
export declare function randomStr(len?: number): string;
|
|
37
|
+
/**
|
|
38
|
+
* 清除所有cookies的函数
|
|
39
|
+
* 尝试多种路径和域名组合确保cookie被完全删除
|
|
40
|
+
*/
|
|
41
|
+
export declare function removeAllCookies(): void;
|
|
42
|
+
export declare function isNumeric(value: any): boolean;
|
|
43
|
+
export declare const eventEmitter: EventEmitter;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import event_emitter from "@braintree/event-emitter";
|
|
2
|
+
import js_cookie from "js-cookie";
|
|
3
|
+
import md5 from "md5";
|
|
4
|
+
const componentsKeys = md5(Date.now().toString());
|
|
5
|
+
function getComponentsKeys() {
|
|
6
|
+
return componentsKeys;
|
|
7
|
+
}
|
|
8
|
+
function getToken(key = 'zw-authorization') {
|
|
9
|
+
return js_cookie.get(key);
|
|
10
|
+
}
|
|
11
|
+
function getCSFToken(key = 'zw-csrf-token') {
|
|
12
|
+
const token = js_cookie.get(key);
|
|
13
|
+
return token ? md5(token) : '';
|
|
14
|
+
}
|
|
15
|
+
function getSystem(key = '$BiSystem') {
|
|
16
|
+
return js_cookie.get(key);
|
|
17
|
+
}
|
|
18
|
+
function getEnv(key = '$BiEnv') {
|
|
19
|
+
return js_cookie.get(key);
|
|
20
|
+
}
|
|
21
|
+
function randomStr(len = 32) {
|
|
22
|
+
const chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678';
|
|
23
|
+
const maxPos = chars.length;
|
|
24
|
+
let str = '';
|
|
25
|
+
for(let i = 0; i < len; i++)str += chars.charAt(Math.floor(Math.random() * maxPos));
|
|
26
|
+
const timestamp = new Date().getTime().toString();
|
|
27
|
+
return str + timestamp;
|
|
28
|
+
}
|
|
29
|
+
function removeAllCookies() {
|
|
30
|
+
if ('undefined' == typeof document) return;
|
|
31
|
+
const cookies = document.cookie.split(';');
|
|
32
|
+
cookies.forEach((cookie)=>{
|
|
33
|
+
const eqPos = cookie.indexOf('=');
|
|
34
|
+
const name = eqPos > -1 ? cookie.substring(0, eqPos).trim() : cookie.trim();
|
|
35
|
+
if (name && 'undefined' != typeof window) {
|
|
36
|
+
js_cookie.remove(name);
|
|
37
|
+
js_cookie.remove(name, {
|
|
38
|
+
path: '/'
|
|
39
|
+
});
|
|
40
|
+
js_cookie.remove(name, {
|
|
41
|
+
path: '/',
|
|
42
|
+
domain: window.location.hostname
|
|
43
|
+
});
|
|
44
|
+
js_cookie.remove(name, {
|
|
45
|
+
path: '/',
|
|
46
|
+
domain: '.' + window.location.hostname
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function isNumeric(value) {
|
|
52
|
+
if ('string' != typeof value && 'number' != typeof value) return false;
|
|
53
|
+
const str = String(value).trim();
|
|
54
|
+
return /^-?\d+(\.\d+)?$/.test(str);
|
|
55
|
+
}
|
|
56
|
+
const eventEmitter = new event_emitter();
|
|
57
|
+
export { eventEmitter, getCSFToken, getComponentsKeys, getEnv, getSystem, getToken, isNumeric, randomStr, removeAllCookies };
|
package/package.json
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@zw-team/react-lib",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "zw-team 业务组件库,基于 React + Ant Design,提供通用组件、Hooks 与工具函数",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"antd",
|
|
8
|
+
"components",
|
|
9
|
+
"hooks",
|
|
10
|
+
"utils",
|
|
11
|
+
"zw-team"
|
|
12
|
+
],
|
|
13
|
+
"author": "zw-team",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "http://git.wozhangwan.com/frontend/react-components.git"
|
|
18
|
+
},
|
|
19
|
+
"homepage": "http://git.wozhangwan.com/frontend/react-components",
|
|
20
|
+
"type": "module",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"import": "./dist/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./components": {
|
|
27
|
+
"types": "./dist/components/index.d.ts",
|
|
28
|
+
"import": "./dist/components/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./hooks": {
|
|
31
|
+
"types": "./dist/hooks/index.d.ts",
|
|
32
|
+
"import": "./dist/hooks/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./utils": {
|
|
35
|
+
"types": "./dist/utils/index.d.ts",
|
|
36
|
+
"import": "./dist/utils/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./config": {
|
|
39
|
+
"types": "./dist/config/index.d.ts",
|
|
40
|
+
"import": "./dist/config/index.js"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"types": "./dist/index.d.ts",
|
|
44
|
+
"files": [
|
|
45
|
+
"dist"
|
|
46
|
+
],
|
|
47
|
+
"engines": {
|
|
48
|
+
"node": ">=20.0.0"
|
|
49
|
+
},
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"access": "public",
|
|
52
|
+
"registry": "https://registry.npmjs.org"
|
|
53
|
+
},
|
|
54
|
+
"sideEffects": [
|
|
55
|
+
"**/*.css",
|
|
56
|
+
"**/*.scss"
|
|
57
|
+
],
|
|
58
|
+
"scripts": {
|
|
59
|
+
"build": "rslib build",
|
|
60
|
+
"build:storybook": "storybook build",
|
|
61
|
+
"check": "biome check --write",
|
|
62
|
+
"dev": "rslib build --watch",
|
|
63
|
+
"format": "biome format --write",
|
|
64
|
+
"lint": "biome lint",
|
|
65
|
+
"prepublishOnly": "npm run build",
|
|
66
|
+
"release:patch": "npm version patch && npm publish",
|
|
67
|
+
"release:minor": "npm version minor && npm publish",
|
|
68
|
+
"release:major": "npm version major && npm publish",
|
|
69
|
+
"storybook": "storybook dev --host frontend.zwwlkj03.top --port 8080"
|
|
70
|
+
},
|
|
71
|
+
"dependencies": {
|
|
72
|
+
"@braintree/event-emitter": "2.0.2",
|
|
73
|
+
"ali-oss": "^6.23.0",
|
|
74
|
+
"js-cookie": "^3.0.5",
|
|
75
|
+
"md5": "^2.3.0",
|
|
76
|
+
"react-infinite-scroller": "^1.2.6",
|
|
77
|
+
"react-quill-new": "^3.7.0",
|
|
78
|
+
"react-resizable": "^3.0.5",
|
|
79
|
+
"sortablejs": "^1.15.6"
|
|
80
|
+
},
|
|
81
|
+
"peerDependencies": {
|
|
82
|
+
"@ant-design/icons": ">=6.1.0",
|
|
83
|
+
"antd": ">=6.0.0",
|
|
84
|
+
"axios": ">=1.0.0",
|
|
85
|
+
"dayjs": ">=1.11.0",
|
|
86
|
+
"react": ">=18.0.0",
|
|
87
|
+
"react-dom": ">=18.0.0",
|
|
88
|
+
"zustand": ">=5.0.0"
|
|
89
|
+
},
|
|
90
|
+
"devDependencies": {
|
|
91
|
+
"@biomejs/biome": "2.2.3",
|
|
92
|
+
"@rsbuild/core": "1.5.12",
|
|
93
|
+
"@rsbuild/plugin-react": "1.4.1",
|
|
94
|
+
"@rsbuild/plugin-sass": "1.4.0",
|
|
95
|
+
"@rslib/core": "0.16.0",
|
|
96
|
+
"@storybook/addon-docs": "10.0.6",
|
|
97
|
+
"@storybook/addon-onboarding": "10.0.6",
|
|
98
|
+
"@types/ali-oss": "^6.16.13",
|
|
99
|
+
"@types/js-cookie": "^3.0.6",
|
|
100
|
+
"@types/md5": "^2.3.6",
|
|
101
|
+
"@types/react": "19.2.4",
|
|
102
|
+
"@types/react-dom": "^19.2.3",
|
|
103
|
+
"@types/react-infinite-scroller": "^1.2.5",
|
|
104
|
+
"@types/react-resizable": "^3.0.8",
|
|
105
|
+
"@types/sortablejs": "^1.15.9",
|
|
106
|
+
"axios": "^1.13.2",
|
|
107
|
+
"dayjs": "^1.11.19",
|
|
108
|
+
"react": "19.2.4",
|
|
109
|
+
"react-dom": "19.2.4",
|
|
110
|
+
"storybook": "10.0.6",
|
|
111
|
+
"storybook-addon-rslib": "2.1.4",
|
|
112
|
+
"storybook-react-rsbuild": "2.1.4",
|
|
113
|
+
"typescript": "5.9.3",
|
|
114
|
+
"zustand": "^5.0.10"
|
|
115
|
+
}
|
|
116
|
+
}
|