@cloud-app-dev/vidc 4.0.15 → 4.0.17
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/.dumirc.ts +2 -18
- package/.fatherrc.ts +0 -1
- package/package.json +35 -31
- package/release-build.sh +1 -2
- package/es/AppContext/Sync.d.ts +0 -8
- package/es/AppContext/Sync.js +0 -44
- package/es/AppContext/index.d.ts +0 -10
- package/es/AppContext/index.js +0 -144
- package/es/AppContext/interface.d.ts +0 -41
- package/es/AppContext/static.d.ts +0 -8
- package/es/AppContext/static.js +0 -9
- package/es/Auth/index.d.ts +0 -8
- package/es/Auth/index.js +0 -18
- package/es/AutoExit/index.d.ts +0 -6
- package/es/AutoExit/index.js +0 -23
- package/es/CheckGroupFixed/demo.d.ts +0 -3
- package/es/CheckGroupFixed/demo.js +0 -25
- package/es/CheckGroupFixed/index.d.ts +0 -18
- package/es/CheckGroupFixed/index.js +0 -150
- package/es/CheckGroupFixed/index.less +0 -53
- package/es/Config/index.d.ts +0 -4
- package/es/Config/index.js +0 -77
- package/es/Config/interface.d.ts +0 -65
- package/es/Config/utils.d.ts +0 -4
- package/es/Config/utils.js +0 -33
- package/es/ConfigContext/index.d.ts +0 -22
- package/es/ConfigContext/index.js +0 -25
- package/es/CustomRenderSelect/index.d.ts +0 -12
- package/es/CustomRenderSelect/index.js +0 -83
- package/es/CustomRenderSelect/index.less +0 -25
- package/es/DBTools/index.d.ts +0 -25
- package/es/DBTools/index.js +0 -337
- package/es/DisableMark/index.d.ts +0 -9
- package/es/DisableMark/index.js +0 -22
- package/es/DisableMark/index.less +0 -9
- package/es/DomMove/demo.d.ts +0 -2
- package/es/DomMove/demo.js +0 -20
- package/es/DomMove/index.d.ts +0 -16
- package/es/DomMove/index.js +0 -149
- package/es/DomMove/utils.d.ts +0 -8
- package/es/DomMove/utils.js +0 -33
- package/es/Drag/DragAndDropItem.d.ts +0 -4
- package/es/Drag/DragAndDropItem.js +0 -133
- package/es/Drag/DropItem.d.ts +0 -4
- package/es/Drag/DropItem.js +0 -50
- package/es/Drag/index.d.ts +0 -7
- package/es/Drag/index.js +0 -7
- package/es/Drag/interface.d.ts +0 -16
- package/es/DynamicGridList/Demo.d.ts +0 -3
- package/es/DynamicGridList/Demo.js +0 -86
- package/es/DynamicGridList/index.d.ts +0 -27
- package/es/DynamicGridList/index.js +0 -71
- package/es/DynamicList/demo.d.ts +0 -2
- package/es/DynamicList/demo.js +0 -50
- package/es/DynamicList/index.d.ts +0 -31
- package/es/DynamicList/index.js +0 -96
- package/es/DynamicList/index.less +0 -17
- package/es/DynamicList/interface.d.ts +0 -19
- package/es/DynamicList/utils.d.ts +0 -4
- package/es/DynamicList/utils.js +0 -6
- package/es/ErrorFallback/index.d.ts +0 -9
- package/es/ErrorFallback/index.js +0 -38
- package/es/ErrorFallback/inerface.d.ts +0 -48
- package/es/EventTools/index.d.ts +0 -3
- package/es/EventTools/index.js +0 -12
- package/es/FrontendPlayer/index.d.ts +0 -4
- package/es/FrontendPlayer/index.js +0 -2
- package/es/FullScreen/index.d.ts +0 -22
- package/es/FullScreen/index.js +0 -36
- package/es/FullScreen/index.less +0 -18
- package/es/GridList/Demo.d.ts +0 -3
- package/es/GridList/Demo.js +0 -89
- package/es/GridList/data.d.ts +0 -16
- package/es/GridList/data.js +0 -609
- package/es/GridList/hook.d.ts +0 -13
- package/es/GridList/hook.js +0 -270
- package/es/GridList/index.d.ts +0 -15
- package/es/GridList/index.js +0 -48
- package/es/GridList/index.less +0 -8
- package/es/GridList/interface.d.ts +0 -59
- package/es/GridList/utils.d.ts +0 -9
- package/es/GridList/utils.js +0 -42
- package/es/HightLevel/index.d.ts +0 -9
- package/es/HightLevel/index.js +0 -21
- package/es/HightLevel/index.less +0 -3
- package/es/IconFont/index.d.ts +0 -12
- package/es/IconFont/index.js +0 -63
- package/es/ImageView/index.d.ts +0 -17
- package/es/ImageView/index.js +0 -58
- package/es/ImageView/index.less +0 -11
- package/es/InstanceHistory/index.d.ts +0 -3
- package/es/InstanceHistory/index.js +0 -7
- package/es/LabelPlayer/111.png +0 -0
- package/es/LabelPlayer/demo.d.ts +0 -2
- package/es/LabelPlayer/demo.js +0 -123
- package/es/LabelPlayer/index.d.ts +0 -21
- package/es/LabelPlayer/index.js +0 -169
- package/es/LabelPlayer/index.less +0 -24
- package/es/LabelValue/index.d.ts +0 -15
- package/es/LabelValue/index.js +0 -32
- package/es/LabelValue/index.less +0 -23
- package/es/List/demo.d.ts +0 -3
- package/es/List/demo.js +0 -26
- package/es/List/index.d.ts +0 -28
- package/es/List/index.js +0 -30
- package/es/List/index.less +0 -13
- package/es/ListWithSizeAnimate/demo.d.ts +0 -2
- package/es/ListWithSizeAnimate/demo.js +0 -128
- package/es/ListWithSizeAnimate/index.d.ts +0 -14
- package/es/ListWithSizeAnimate/index.js +0 -97
- package/es/ListWithSizeAnimate/index.less +0 -23
- package/es/LoaderScript/index.d.ts +0 -47
- package/es/LoaderScript/index.js +0 -38
- package/es/LoaderScript/utils.d.ts +0 -13
- package/es/LoaderScript/utils.js +0 -179
- package/es/Map/AMap.d.ts +0 -7109
- package/es/Map/BasicMap/AMapInstance.d.ts +0 -19
- package/es/Map/BasicMap/AMapInstance.js +0 -98
- package/es/Map/BasicMap/LeafletInstance.d.ts +0 -18
- package/es/Map/BasicMap/LeafletInstance.js +0 -111
- package/es/Map/BasicMap/index.d.ts +0 -9
- package/es/Map/BasicMap/index.js +0 -98
- package/es/Map/BasicMap/index.less +0 -29
- package/es/Map/ClusterLayer/demo.d.ts +0 -3
- package/es/Map/ClusterLayer/demo.js +0 -22
- package/es/Map/ClusterLayer/hook.d.ts +0 -5
- package/es/Map/ClusterLayer/hook.js +0 -124
- package/es/Map/ClusterLayer/index.d.ts +0 -6
- package/es/Map/ClusterLayer/index.js +0 -32
- package/es/Map/ClusterLayer/index.less +0 -29
- package/es/Map/ClusterLayer/props.d.ts +0 -8
- package/es/Map/Config/index.d.ts +0 -9
- package/es/Map/Config/index.js +0 -52
- package/es/Map/Config/utils.d.ts +0 -2
- package/es/Map/Config/utils.js +0 -65
- package/es/Map/Context/index.d.ts +0 -11
- package/es/Map/Context/index.js +0 -56
- package/es/Map/FindPio/index.d.ts +0 -4
- package/es/Map/FindPio/index.js +0 -14
- package/es/Map/FindPio/index.less +0 -7
- package/es/Map/InfoWindow/MakerLikeWindow.d.ts +0 -4
- package/es/Map/InfoWindow/MakerLikeWindow.js +0 -113
- package/es/Map/InfoWindow/demo.d.ts +0 -3
- package/es/Map/InfoWindow/demo.js +0 -76
- package/es/Map/InfoWindow/index.d.ts +0 -11
- package/es/Map/InfoWindow/index.js +0 -67
- package/es/Map/LevelCenter/DragMarker/index.d.ts +0 -10
- package/es/Map/LevelCenter/DragMarker/index.js +0 -44
- package/es/Map/LevelCenter/demo.d.ts +0 -3
- package/es/Map/LevelCenter/demo.js +0 -46
- package/es/Map/LevelCenter/index.d.ts +0 -15
- package/es/Map/LevelCenter/index.js +0 -71
- package/es/Map/LoaderMap/index.d.ts +0 -12
- package/es/Map/LoaderMap/index.js +0 -71
- package/es/Map/MapDrawSelect/demo.d.ts +0 -3
- package/es/Map/MapDrawSelect/demo.js +0 -79
- package/es/Map/MapDrawSelect/index.d.ts +0 -15
- package/es/Map/MapDrawSelect/index.js +0 -62
- package/es/Map/MouseTool/index.d.ts +0 -10
- package/es/Map/MouseTool/index.js +0 -44
- package/es/Map/MouseTool/useMouseTools.d.ts +0 -7
- package/es/Map/MouseTool/useMouseTools.js +0 -83
- package/es/Map/ResetTools/index.d.ts +0 -10
- package/es/Map/ResetTools/index.js +0 -67
- package/es/Map/ResetTools/index.less +0 -39
- package/es/Map/SinglePoint/demo.d.ts +0 -3
- package/es/Map/SinglePoint/demo.js +0 -16
- package/es/Map/SinglePoint/index.d.ts +0 -27
- package/es/Map/SinglePoint/index.js +0 -57
- package/es/Map/SinglePoint/index.less +0 -41
- package/es/Map/hook/useMapEvent.d.ts +0 -2
- package/es/Map/hook/useMapEvent.js +0 -19
- package/es/Map/hook/useMapType.d.ts +0 -4
- package/es/Map/hook/useMapType.js +0 -12
- package/es/Map/icon.d.ts +0 -2
- package/es/Map/icon.js +0 -10
- package/es/Map/index.d.ts +0 -24
- package/es/Map/index.js +0 -25
- package/es/Map/interface.d.ts +0 -74
- package/es/Map/points.d.ts +0 -74
- package/es/Map/points.js +0 -1
- package/es/Map/useMarker/index.d.ts +0 -10
- package/es/Map/useMarker/index.js +0 -71
- package/es/Map/withMap/index.d.ts +0 -3
- package/es/Map/withMap/index.js +0 -18
- package/es/Picture/component/DefaultRects/RectInfo.d.ts +0 -8
- package/es/Picture/component/DefaultRects/RectInfo.js +0 -88
- package/es/Picture/component/DefaultRects/index.d.ts +0 -13
- package/es/Picture/component/DefaultRects/index.js +0 -58
- package/es/Picture/component/DefaultRects/index.less +0 -211
- package/es/Picture/component/DefaultRects/utils.d.ts +0 -2
- package/es/Picture/component/DefaultRects/utils.js +0 -11
- package/es/Picture/component/DrawRect/index.d.ts +0 -13
- package/es/Picture/component/DrawRect/index.js +0 -51
- package/es/Picture/component/DrawRect/index.less +0 -8
- package/es/Picture/component/RectMenu/index.d.ts +0 -12
- package/es/Picture/component/RectMenu/index.js +0 -79
- package/es/Picture/component/RectMenu/index.less +0 -36
- package/es/Picture/component/RectMenu/utils.d.ts +0 -12
- package/es/Picture/component/RectMenu/utils.js +0 -19
- package/es/Picture/component/Tools/index.d.ts +0 -12
- package/es/Picture/component/Tools/index.js +0 -93
- package/es/Picture/component/Tools/index.less +0 -49
- package/es/Picture/component/WheelScale/index.d.ts +0 -7
- package/es/Picture/component/WheelScale/index.js +0 -29
- package/es/Picture/demo.d.ts +0 -2
- package/es/Picture/demo.js +0 -114
- package/es/Picture/index.d.ts +0 -19
- package/es/Picture/index.js +0 -354
- package/es/Picture/index.less +0 -20
- package/es/Picture/interface.d.ts +0 -196
- package/es/Picture/loadCaptureRectImage.d.ts +0 -3
- package/es/Picture/loadCaptureRectImage.js +0 -99
- package/es/Picture/useDraw.d.ts +0 -1
- package/es/Picture/useDraw.js +0 -103
- package/es/Picture/utils.d.ts +0 -26
- package/es/Picture/utils.js +0 -143
- package/es/Player/api/index.d.ts +0 -68
- package/es/Player/api/index.js +0 -283
- package/es/Player/context.d.ts +0 -21
- package/es/Player/context.js +0 -25
- package/es/Player/contraller_bar/bar.d.ts +0 -8
- package/es/Player/contraller_bar/bar.js +0 -28
- package/es/Player/contraller_bar/contraller_event.d.ts +0 -6
- package/es/Player/contraller_bar/contraller_event.js +0 -53
- package/es/Player/contraller_bar/index.d.ts +0 -14
- package/es/Player/contraller_bar/index.js +0 -33
- package/es/Player/contraller_bar/left_bar.d.ts +0 -10
- package/es/Player/contraller_bar/left_bar.js +0 -88
- package/es/Player/contraller_bar/right_bar.d.ts +0 -8
- package/es/Player/contraller_bar/right_bar.js +0 -37
- package/es/Player/contraller_bar/time.d.ts +0 -3
- package/es/Player/contraller_bar/time.js +0 -21
- package/es/Player/contraller_bar/useBarStatus.d.ts +0 -2
- package/es/Player/contraller_bar/useBarStatus.js +0 -43
- package/es/Player/contraller_bar/volume.d.ts +0 -9
- package/es/Player/contraller_bar/volume.js +0 -65
- package/es/Player/demo.d.ts +0 -3
- package/es/Player/demo.js +0 -277
- package/es/Player/empty.d.ts +0 -2
- package/es/Player/empty.js +0 -6
- package/es/Player/event/errorEvent.d.ts +0 -14
- package/es/Player/event/errorEvent.js +0 -88
- package/es/Player/event/eventName.d.ts +0 -18
- package/es/Player/event/eventName.js +0 -30
- package/es/Player/event/index.d.ts +0 -24
- package/es/Player/event/index.js +0 -204
- package/es/Player/fps_play.d.ts +0 -11
- package/es/Player/fps_play.js +0 -84
- package/es/Player/frontend_player.d.ts +0 -8
- package/es/Player/frontend_player.js +0 -72
- package/es/Player/frontend_timeline.d.ts +0 -10
- package/es/Player/frontend_timeline.js +0 -145
- package/es/Player/iconfont.d.ts +0 -5
- package/es/Player/iconfont.js +0 -22
- package/es/Player/index.d.ts +0 -2
- package/es/Player/index.js +0 -2
- package/es/Player/live_heart.d.ts +0 -8
- package/es/Player/live_heart.js +0 -46
- package/es/Player/message.d.ts +0 -5
- package/es/Player/message.js +0 -138
- package/es/Player/player.d.ts +0 -231
- package/es/Player/segment_player.d.ts +0 -9
- package/es/Player/segment_player.js +0 -230
- package/es/Player/segment_timeline.d.ts +0 -12
- package/es/Player/segment_timeline.js +0 -190
- package/es/Player/single_player.d.ts +0 -5
- package/es/Player/single_player.js +0 -275
- package/es/Player/style/bar.less +0 -43
- package/es/Player/style/iconfont.js +0 -43
- package/es/Player/style/index.less +0 -34
- package/es/Player/style/message.less +0 -56
- package/es/Player/style/slider.less +0 -106
- package/es/Player/style/timeline.less +0 -116
- package/es/Player/style/volume.less +0 -24
- package/es/Player/timeline.d.ts +0 -5
- package/es/Player/timeline.js +0 -98
- package/es/Player/util.d.ts +0 -43
- package/es/Player/util.js +0 -189
- package/es/PlayerExt/demo.d.ts +0 -3
- package/es/PlayerExt/demo.js +0 -170
- package/es/PlayerExt/index.d.ts +0 -48
- package/es/PlayerExt/index.js +0 -207
- package/es/PlayerExt/index.less +0 -10
- package/es/Progress/index.d.ts +0 -12
- package/es/Progress/index.js +0 -56
- package/es/Progress/index.less +0 -21
- package/es/ROI/demo.d.ts +0 -3
- package/es/ROI/demo.js +0 -18
- package/es/ROI/index.d.ts +0 -33
- package/es/ROI/index.js +0 -57
- package/es/ROI/index.less +0 -33
- package/es/RefDrawer/Footer.d.ts +0 -9
- package/es/RefDrawer/Footer.js +0 -27
- package/es/RefDrawer/demo.d.ts +0 -3
- package/es/RefDrawer/demo.js +0 -32
- package/es/RefDrawer/index.d.ts +0 -26
- package/es/RefDrawer/index.js +0 -73
- package/es/RefModal/demo.d.ts +0 -3
- package/es/RefModal/demo.js +0 -32
- package/es/RefModal/index.d.ts +0 -17
- package/es/RefModal/index.js +0 -71
- package/es/ScreenPlayer/Live.d.ts +0 -10
- package/es/ScreenPlayer/Live.js +0 -220
- package/es/ScreenPlayer/LiveTools.d.ts +0 -29
- package/es/ScreenPlayer/LiveTools.js +0 -167
- package/es/ScreenPlayer/PlayerWithExt.d.ts +0 -34
- package/es/ScreenPlayer/PlayerWithExt.js +0 -240
- package/es/ScreenPlayer/RatePick.d.ts +0 -8
- package/es/ScreenPlayer/RatePick.js +0 -30
- package/es/ScreenPlayer/Record.d.ts +0 -10
- package/es/ScreenPlayer/Record.js +0 -447
- package/es/ScreenPlayer/RecordTools.d.ts +0 -38
- package/es/ScreenPlayer/RecordTools.js +0 -216
- package/es/ScreenPlayer/ScreenSelect.d.ts +0 -7
- package/es/ScreenPlayer/ScreenSelect.js +0 -51
- package/es/ScreenPlayer/SegmentTimeLine.d.ts +0 -17
- package/es/ScreenPlayer/SegmentTimeLine.js +0 -38
- package/es/ScreenPlayer/TimeMode.d.ts +0 -7
- package/es/ScreenPlayer/TimeMode.js +0 -30
- package/es/ScreenPlayer/TimeSelect.d.ts +0 -7
- package/es/ScreenPlayer/TimeSelect.js +0 -94
- package/es/ScreenPlayer/demo.d.ts +0 -2
- package/es/ScreenPlayer/demo.js +0 -24
- package/es/ScreenPlayer/demo2.d.ts +0 -2
- package/es/ScreenPlayer/demo2.js +0 -200
- package/es/ScreenPlayer/index.d.ts +0 -6
- package/es/ScreenPlayer/index.js +0 -9
- package/es/ScreenPlayer/index.less +0 -335
- package/es/ScreenPlayer/interface.d.ts +0 -216
- package/es/ScreenPlayer/useTimeSlider.d.ts +0 -25
- package/es/ScreenPlayer/useTimeSlider.js +0 -450
- package/es/ScreenPlayer/useVideoFit.d.ts +0 -5
- package/es/ScreenPlayer/useVideoFit.js +0 -35
- package/es/ScreenPlayer/utils.d.ts +0 -17
- package/es/ScreenPlayer/utils.js +0 -85
- package/es/SegmentPlayer/index.d.ts +0 -2
- package/es/SegmentPlayer/index.js +0 -2
- package/es/Service/http.d.ts +0 -6
- package/es/Service/http.js +0 -125
- package/es/Service/index.d.ts +0 -3
- package/es/Service/index.js +0 -10
- package/es/Service/interface.d.ts +0 -22
- package/es/Service/middleware.d.ts +0 -5
- package/es/Service/middleware.js +0 -15
- package/es/SocketEmitter/eventEmitter.d.ts +0 -27
- package/es/SocketEmitter/eventEmitter.js +0 -88
- package/es/SocketEmitter/index.d.ts +0 -24
- package/es/SocketEmitter/index.js +0 -125
- package/es/SocketEmitter/interface.d.ts +0 -4
- package/es/TableLayout/index.d.ts +0 -10
- package/es/TableLayout/index.js +0 -29
- package/es/TableLayout/index.less +0 -4
- package/es/ThemeAntd/demo.d.ts +0 -4
- package/es/ThemeAntd/demo.js +0 -129
- package/es/ThemeAntd/demo.less +0 -20
- package/es/ThemeAntd/index.d.ts +0 -7
- package/es/ThemeAntd/index.js +0 -23
- package/es/ThemeAntd/index.less +0 -4
- package/es/Timeout/index.d.ts +0 -32
- package/es/Timeout/index.js +0 -70
- package/es/VList/index.d.ts +0 -11
- package/es/VList/index.js +0 -42
- package/es/VList/index.less +0 -6
- package/es/VList/utils.d.ts +0 -14
- package/es/VList/utils.js +0 -17
- package/es/bigNumberTransformCN/index.d.ts +0 -5
- package/es/bigNumberTransformCN/index.js +0 -60
- package/es/cache/index.d.ts +0 -34
- package/es/cache/index.js +0 -94
- package/es/copy/index.d.ts +0 -1
- package/es/copy/index.js +0 -9
- package/es/core.d.ts +0 -0
- package/es/getThemeStyle/index.d.ts +0 -2
- package/es/getThemeStyle/index.js +0 -5
- package/es/index.d.ts +0 -60
- package/es/index.js +0 -60
- package/es/logger/index.d.ts +0 -7
- package/es/logger/index.js +0 -30
- package/es/nextTick/index.d.ts +0 -1
- package/es/nextTick/index.js +0 -7
- package/es/submidstr/index.d.ts +0 -5
- package/es/submidstr/index.js +0 -14
- package/es/treeHelper/index.d.ts +0 -11
- package/es/treeHelper/index.js +0 -189
- package/es/typings.d.ts +0 -2
- package/es/useDrawROI/index.d.ts +0 -16
- package/es/useDrawROI/index.js +0 -322
- package/es/useEventEmitterHandle/index.d.ts +0 -2
- package/es/useEventEmitterHandle/index.js +0 -17
- package/es/useFullscreen/demo.d.ts +0 -2
- package/es/useFullscreen/demo.js +0 -48
- package/es/useFullscreen/index.d.ts +0 -12
- package/es/useFullscreen/index.js +0 -76
- package/es/useHistory/index.d.ts +0 -3
- package/es/useHistory/index.js +0 -9
- package/es/useHistory/interface.d.ts +0 -3
- package/es/useInfiniteScroll/index.d.ts +0 -16
- package/es/useInfiniteScroll/index.js +0 -101
- package/es/useRafInterval/index.d.ts +0 -5
- package/es/useRafInterval/index.js +0 -70
- package/es/useSimpleState/index.d.ts +0 -3
- package/es/useSimpleState/index.js +0 -36
- package/es/useVirtualList/index.d.ts +0 -13
- package/es/useVirtualList/index.js +0 -139
- package/es/utils.d.ts +0 -14
- package/es/utils.js +0 -75
- package/es/uuid/index.d.ts +0 -4
- package/es/uuid/index.js +0 -15
package/.dumirc.ts
CHANGED
|
@@ -14,18 +14,6 @@ export default defineConfig({
|
|
|
14
14
|
// 配置入口文件路径,API 解析将从这里开始
|
|
15
15
|
entryFile: './src/index.ts',
|
|
16
16
|
},
|
|
17
|
-
extraBabelPlugins: [
|
|
18
|
-
[
|
|
19
|
-
'import',
|
|
20
|
-
{
|
|
21
|
-
libraryName: 'ahooks',
|
|
22
|
-
style: false,
|
|
23
|
-
camel2DashComponentName: false,
|
|
24
|
-
libraryDirectory: 'es',
|
|
25
|
-
},
|
|
26
|
-
'ahooks',
|
|
27
|
-
],
|
|
28
|
-
],
|
|
29
17
|
theme: {
|
|
30
18
|
'@ant-prefix': 'cloudapp',
|
|
31
19
|
},
|
|
@@ -46,7 +34,7 @@ export default defineConfig({
|
|
|
46
34
|
},
|
|
47
35
|
proxy: {
|
|
48
36
|
'/api': {
|
|
49
|
-
target: '
|
|
37
|
+
target: 'http://192.168.101.41:13336',
|
|
50
38
|
changeOrigin: true,
|
|
51
39
|
},
|
|
52
40
|
'/twinmapdataservice': {
|
|
@@ -59,11 +47,7 @@ export default defineConfig({
|
|
|
59
47
|
changeOrigin: true,
|
|
60
48
|
},
|
|
61
49
|
},
|
|
62
|
-
scripts: [
|
|
63
|
-
'//at.alicdn.com/t/font_1724012_972m5d05cou.js',
|
|
64
|
-
'http://192.168.101.38:8888/twinmap/resources/TwinMap3D/lib/Cesium/Cesium.js',
|
|
65
|
-
'http://192.168.101.38:8888/twinmap/resources/TwinMap3D/TwinMap3D.js',
|
|
66
|
-
],
|
|
50
|
+
scripts: ['//at.alicdn.com/t/font_1724012_972m5d05cou.js'],
|
|
67
51
|
styles: [themeConfig],
|
|
68
52
|
|
|
69
53
|
// more config: https://d.umijs.org/config
|
package/.fatherrc.ts
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"private": false,
|
|
3
3
|
"name": "@cloud-app-dev/vidc",
|
|
4
4
|
"description": "Video Image Data Componennts",
|
|
5
|
-
"version": "4.0.
|
|
5
|
+
"version": "4.0.17",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"docs:deploy": "gh-pages -d docs-dist",
|
|
8
8
|
"build": "npm run entry && father build",
|
|
@@ -45,51 +45,55 @@
|
|
|
45
45
|
]
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@cloud-app-dev/mpegts.js": "^1.7.
|
|
48
|
+
"@cloud-app-dev/mpegts.js": "^1.7.3",
|
|
49
|
+
"@emotion/css": "^11.11.0",
|
|
50
|
+
"@paddlejs-models/ocr": "^1.2.3",
|
|
49
51
|
"@turf/boolean-disjoint": "^6.5.0",
|
|
50
52
|
"@turf/helpers": "^6.5.0",
|
|
51
53
|
"@turf/line-to-polygon": "^6.5.0",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
54
|
+
"@types/js-cookie": "^3.0.3",
|
|
55
|
+
"@types/uuid": "^9.0.1",
|
|
56
|
+
"ahooks": "^3.7.7",
|
|
57
|
+
"axios": "^1.4.0",
|
|
58
|
+
"dayjs": "^1.11.8",
|
|
55
59
|
"db.js": "^0.15.0",
|
|
56
60
|
"history": "^5.3.0",
|
|
57
|
-
"hls.js": "^1.4.
|
|
58
|
-
"immer": "^
|
|
61
|
+
"hls.js": "^1.4.5",
|
|
62
|
+
"immer": "^10.0.2",
|
|
59
63
|
"js-cookie": "^2.2.1",
|
|
60
64
|
"lodash-es": "^4.17.21",
|
|
61
65
|
"react-error-boundary": "^3.1.4",
|
|
62
|
-
"react-hotkeys-hook": "^4.0
|
|
66
|
+
"react-hotkeys-hook": "^4.4.0",
|
|
63
67
|
"screenfull": "^6.0.2",
|
|
64
|
-
"socket.io-client": "
|
|
68
|
+
"socket.io-client": "2.5.0",
|
|
69
|
+
"uuid": "^9.0.0"
|
|
65
70
|
},
|
|
66
71
|
"devDependencies": {
|
|
67
|
-
"@commitlint/cli": "^17.
|
|
68
|
-
"@commitlint/config-conventional": "^17.
|
|
72
|
+
"@commitlint/cli": "^17.6.5",
|
|
73
|
+
"@commitlint/config-conventional": "^17.6.5",
|
|
69
74
|
"@types/db.js": "^0.14.7",
|
|
70
|
-
"@types/leaflet": "^1.9.
|
|
71
|
-
"@types/lodash-es": "^4.17.
|
|
72
|
-
"@types/node": "^18.
|
|
73
|
-
"@types/react": "^18.
|
|
74
|
-
"@types/react-dom": "^18.
|
|
75
|
-
"@
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"lint-staged": "^13.0.3",
|
|
75
|
+
"@types/leaflet": "^1.9.3",
|
|
76
|
+
"@types/lodash-es": "^4.17.7",
|
|
77
|
+
"@types/node": "^18.16.16",
|
|
78
|
+
"@types/react": "^18.2.9",
|
|
79
|
+
"@types/react-dom": "^18.2.4",
|
|
80
|
+
"@umijs/lint": "^4.0.70",
|
|
81
|
+
"antd": "^5.6.1",
|
|
82
|
+
"babel-plugin-import": "^1.13.6",
|
|
83
|
+
"dumi": "^2.2.1",
|
|
84
|
+
"eslint": "^8.42.0",
|
|
85
|
+
"father": "^4.2.3",
|
|
86
|
+
"gh-pages": "^5.0.0",
|
|
87
|
+
"husky": "^8.0.3",
|
|
88
|
+
"lint-staged": "^13.2.2",
|
|
85
89
|
"postcss-less": "^6.0.0",
|
|
86
|
-
"prettier": "^2.
|
|
87
|
-
"prettier-plugin-organize-imports": "^3.
|
|
88
|
-
"prettier-plugin-packagejson": "^2.
|
|
90
|
+
"prettier": "^2.8.8",
|
|
91
|
+
"prettier-plugin-organize-imports": "^3.2.2",
|
|
92
|
+
"prettier-plugin-packagejson": "^2.4.3",
|
|
89
93
|
"react": "^18.2.0",
|
|
90
94
|
"react-dom": "^18.2.0",
|
|
91
|
-
"stylelint": "^14.
|
|
92
|
-
"stylelint-config-prettier": "^9.0.
|
|
95
|
+
"stylelint": "^14.16.1",
|
|
96
|
+
"stylelint-config-prettier": "^9.0.5",
|
|
93
97
|
"stylelint-config-standard": "^29.0.0",
|
|
94
98
|
"stylelint-order": "^5.0.0"
|
|
95
99
|
}
|
package/release-build.sh
CHANGED
package/es/AppContext/Sync.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { AppContextInterface, AppStoreType } from './interface';
|
|
3
|
-
interface ISyncProps {
|
|
4
|
-
stateChange: (options: AppContextInterface) => void;
|
|
5
|
-
storeChange: (store: AppStoreType) => void;
|
|
6
|
-
}
|
|
7
|
-
declare function Sync({ stateChange, storeChange }: ISyncProps): JSX.Element;
|
|
8
|
-
export default Sync;
|
package/es/AppContext/Sync.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React, { useEffect } from 'react';
|
|
2
|
-
import SocketEmitter from "../SocketEmitter";
|
|
3
|
-
import { _LOGIN_STATUS_EVENT_CHANGE_, _OPERATION_EVENT_CHANGE_, _STORE_EVENT_CHANGE_, _USER_EVENT_CHANGE_ } from "./static";
|
|
4
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
function Sync(_ref) {
|
|
7
|
-
var stateChange = _ref.stateChange,
|
|
8
|
-
storeChange = _ref.storeChange;
|
|
9
|
-
/**
|
|
10
|
-
* @description 用户微应用之间的状态同步
|
|
11
|
-
*/
|
|
12
|
-
useEffect(function () {
|
|
13
|
-
var userFn = function userFn(user) {
|
|
14
|
-
return stateChange({
|
|
15
|
-
user: user
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
var operationFn = function operationFn(operation) {
|
|
19
|
-
return stateChange({
|
|
20
|
-
operation: operation
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
var statusFn = function statusFn(status) {
|
|
24
|
-
return stateChange({
|
|
25
|
-
loginStatus: status
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
var storeFn = function storeFn(store) {
|
|
29
|
-
return storeChange(store);
|
|
30
|
-
};
|
|
31
|
-
SocketEmitter.on(_USER_EVENT_CHANGE_, userFn);
|
|
32
|
-
SocketEmitter.on(_OPERATION_EVENT_CHANGE_, operationFn);
|
|
33
|
-
SocketEmitter.on(_LOGIN_STATUS_EVENT_CHANGE_, statusFn);
|
|
34
|
-
SocketEmitter.on(_STORE_EVENT_CHANGE_, storeFn);
|
|
35
|
-
return function () {
|
|
36
|
-
SocketEmitter.off(_USER_EVENT_CHANGE_, userFn);
|
|
37
|
-
SocketEmitter.off(_OPERATION_EVENT_CHANGE_, operationFn);
|
|
38
|
-
SocketEmitter.off(_LOGIN_STATUS_EVENT_CHANGE_, statusFn);
|
|
39
|
-
SocketEmitter.off(_STORE_EVENT_CHANGE_, storeFn);
|
|
40
|
-
};
|
|
41
|
-
}, []);
|
|
42
|
-
return /*#__PURE__*/_jsx(_Fragment, {});
|
|
43
|
-
}
|
|
44
|
-
export default Sync;
|
package/es/AppContext/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AppContextInterface } from './interface';
|
|
3
|
-
declare function Provider({ children }: {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
}): JSX.Element;
|
|
6
|
-
declare const _default: {
|
|
7
|
-
Provider: typeof Provider;
|
|
8
|
-
Context: React.Context<AppContextInterface>;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
package/es/AppContext/index.js
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
-
import { isEmpty } from 'lodash-es';
|
|
14
|
-
import React, { useCallback, useMemo, useState } from 'react';
|
|
15
|
-
import cache from "../cache";
|
|
16
|
-
import nextTick from "../nextTick";
|
|
17
|
-
import SocketEmitter from "../SocketEmitter";
|
|
18
|
-
import { _LOGIN_STATUS_EVENT_CHANGE_, _LOGIN_STATUS_SESSION_, _OPERATION_EVENT_CHANGE_, _OPERATION_SESSION_, _STORE_EVENT_CHANGE_, _STORE_SESSION_, _USER_EVENT_CHANGE_, _USER_SESSION_ } from "./static";
|
|
19
|
-
import Sync from "./Sync";
|
|
20
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
-
var Context = /*#__PURE__*/React.createContext(null);
|
|
23
|
-
function Provider(_ref) {
|
|
24
|
-
var children = _ref.children;
|
|
25
|
-
var _useState = useState({
|
|
26
|
-
user: cache.getCache(_USER_SESSION_, 'session') || {},
|
|
27
|
-
operation: cache.getCache(_OPERATION_SESSION_, 'session') || {},
|
|
28
|
-
loginStatus: cache.getCache(_LOGIN_STATUS_SESSION_, 'session') || false,
|
|
29
|
-
store: cache.getCache(_STORE_SESSION_, 'session') || {}
|
|
30
|
-
}),
|
|
31
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
32
|
-
state = _useState2[0],
|
|
33
|
-
setState = _useState2[1];
|
|
34
|
-
function updateUser() {
|
|
35
|
-
var user = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
36
|
-
var newUser = _objectSpread(_objectSpread({}, state.user), user);
|
|
37
|
-
setState(function (old) {
|
|
38
|
-
return _objectSpread(_objectSpread({}, old), {}, {
|
|
39
|
-
user: newUser
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
nextTick(function () {
|
|
43
|
-
SocketEmitter.emit(_USER_EVENT_CHANGE_, newUser);
|
|
44
|
-
cache.setCache(_USER_SESSION_, newUser, 'session');
|
|
45
|
-
console.info('AppContext updateUser is run !', user);
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
function updateOperation() {
|
|
49
|
-
var operation = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
50
|
-
var newOperation = _objectSpread(_objectSpread({}, state.operation), operation);
|
|
51
|
-
setState(function (old) {
|
|
52
|
-
return _objectSpread(_objectSpread({}, old), {}, {
|
|
53
|
-
operation: newOperation
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
nextTick(function () {
|
|
57
|
-
SocketEmitter.emit(_OPERATION_EVENT_CHANGE_, newOperation);
|
|
58
|
-
cache.setCache(_OPERATION_SESSION_, newOperation, 'session');
|
|
59
|
-
console.info('AppContext updateOperation is run !', operation);
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
function updateLoginStatus(status) {
|
|
63
|
-
if (typeof status !== 'boolean') {
|
|
64
|
-
throw new Error('status type is boolean !');
|
|
65
|
-
}
|
|
66
|
-
setState(function (old) {
|
|
67
|
-
return status !== old.loginStatus ? _objectSpread(_objectSpread({}, old), {}, {
|
|
68
|
-
loginStatus: status
|
|
69
|
-
}) : old;
|
|
70
|
-
});
|
|
71
|
-
nextTick(function () {
|
|
72
|
-
SocketEmitter.emit(_LOGIN_STATUS_EVENT_CHANGE_, status);
|
|
73
|
-
cache.setCache(_LOGIN_STATUS_SESSION_, status, 'session');
|
|
74
|
-
console.info('AppContext updateLoginStatus is run !', status);
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* @desc 用于全局自定义状态存储,依赖sessionStorage持久化能力,不建议存储大数据量
|
|
80
|
-
* @param data
|
|
81
|
-
*/
|
|
82
|
-
function updateStore() {
|
|
83
|
-
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
84
|
-
setState(function (old) {
|
|
85
|
-
var newData = {};
|
|
86
|
-
|
|
87
|
-
//获取变更项
|
|
88
|
-
for (var _key in data) {
|
|
89
|
-
if (data[_key] !== old.store[_key]) {
|
|
90
|
-
newData[_key] = data[_key];
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
if (isEmpty(newData)) {
|
|
94
|
-
return old;
|
|
95
|
-
}
|
|
96
|
-
var newStore = _objectSpread(_objectSpread({}, old.store), newData);
|
|
97
|
-
cache.setCache(_STORE_SESSION_, newStore, 'session');
|
|
98
|
-
return _objectSpread(_objectSpread({}, old), {}, {
|
|
99
|
-
store: newStore
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
nextTick(function () {
|
|
103
|
-
SocketEmitter.emit(_STORE_EVENT_CHANGE_, data);
|
|
104
|
-
console.info('AppContext updateStore is run !', data);
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
var stateChange = useCallback(function (options) {
|
|
108
|
-
return setState(function (old) {
|
|
109
|
-
return _objectSpread(_objectSpread({}, old), options);
|
|
110
|
-
});
|
|
111
|
-
}, []);
|
|
112
|
-
var storeChange = useCallback(function (store) {
|
|
113
|
-
return setState(function (old) {
|
|
114
|
-
return _objectSpread(_objectSpread({}, old), {}, {
|
|
115
|
-
store: _objectSpread(_objectSpread({}, old.store), store)
|
|
116
|
-
});
|
|
117
|
-
});
|
|
118
|
-
}, []);
|
|
119
|
-
var providerValue = useMemo(function () {
|
|
120
|
-
return {
|
|
121
|
-
user: state.user,
|
|
122
|
-
operation: state.operation,
|
|
123
|
-
loginStatus: state.loginStatus,
|
|
124
|
-
store: state.store,
|
|
125
|
-
updateUser: updateUser,
|
|
126
|
-
updateOperation: updateOperation,
|
|
127
|
-
updateLoginStatus: updateLoginStatus,
|
|
128
|
-
updateStore: updateStore
|
|
129
|
-
};
|
|
130
|
-
},
|
|
131
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
132
|
-
[state.user, state.operation, state.loginStatus]);
|
|
133
|
-
return /*#__PURE__*/_jsxs(Context.Provider, {
|
|
134
|
-
value: providerValue,
|
|
135
|
-
children: [children, /*#__PURE__*/_jsx(Sync, {
|
|
136
|
-
stateChange: stateChange,
|
|
137
|
-
storeChange: storeChange
|
|
138
|
-
})]
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
export default {
|
|
142
|
-
Provider: Provider,
|
|
143
|
-
Context: Context
|
|
144
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export type UserInfoType = {
|
|
2
|
-
acceptAgreement: boolean;
|
|
3
|
-
id: string;
|
|
4
|
-
idCardNotNull: false;
|
|
5
|
-
lockTime: string;
|
|
6
|
-
loginName: string;
|
|
7
|
-
operationCenterId: string;
|
|
8
|
-
organizationId: string;
|
|
9
|
-
organizationName: string;
|
|
10
|
-
phoneNum: string;
|
|
11
|
-
realName: string;
|
|
12
|
-
roleIds: string[];
|
|
13
|
-
userAvatarUrl?: string;
|
|
14
|
-
userGrade: string;
|
|
15
|
-
userSource: string;
|
|
16
|
-
userType: string;
|
|
17
|
-
validState: string;
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export type OperationInfoType = {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export type AppStoreType = {
|
|
26
|
-
[key: string]: any;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export interface IProviderState {
|
|
30
|
-
user: UserInfoType;
|
|
31
|
-
operation: OperationInfoType;
|
|
32
|
-
loginStatus: boolean;
|
|
33
|
-
store: AppStoreType;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface AppContextInterface extends IProviderState {
|
|
37
|
-
updateUser: (user: UserInfoType) => void;
|
|
38
|
-
updateOperation: (user: OperationInfoType) => void;
|
|
39
|
-
updateLoginStatus: (status: boolean) => void;
|
|
40
|
-
updateStore: (data: { [key: string]: any }) => void;
|
|
41
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const _USER_EVENT_CHANGE_ = "_USER_EVENT_CHANGE_";
|
|
2
|
-
export declare const _OPERATION_EVENT_CHANGE_ = "_OPERATION_EVENT_CHANGE_";
|
|
3
|
-
export declare const _LOGIN_STATUS_EVENT_CHANGE_ = "_LOGIN_STATUS_EVENT_CHANGE_";
|
|
4
|
-
export declare const _STORE_EVENT_CHANGE_ = "_STORE_EVENT_CHANGE_";
|
|
5
|
-
export declare const _USER_SESSION_ = "_USER_SESSION_";
|
|
6
|
-
export declare const _OPERATION_SESSION_ = "_OPERATION_SESSION_";
|
|
7
|
-
export declare const _LOGIN_STATUS_SESSION_ = "_LOGIN_STATUS_SESSION_";
|
|
8
|
-
export declare const _STORE_SESSION_ = "_STORE_SESSION_";
|
package/es/AppContext/static.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export var _USER_EVENT_CHANGE_ = '_USER_EVENT_CHANGE_'; //用户信息变化
|
|
2
|
-
export var _OPERATION_EVENT_CHANGE_ = '_OPERATION_EVENT_CHANGE_'; //应用系统信息变化
|
|
3
|
-
export var _LOGIN_STATUS_EVENT_CHANGE_ = '_LOGIN_STATUS_EVENT_CHANGE_'; //登录状态变化
|
|
4
|
-
export var _STORE_EVENT_CHANGE_ = '_STORE_EVENT_CHANGE_'; //登录状态变化
|
|
5
|
-
|
|
6
|
-
export var _USER_SESSION_ = '_USER_SESSION_'; //用户信息 缓存key
|
|
7
|
-
export var _OPERATION_SESSION_ = '_OPERATION_SESSION_'; //应用系统信息 缓存key
|
|
8
|
-
export var _LOGIN_STATUS_SESSION_ = '_LOGIN_STATUS_SESSION_'; //登录状态 缓存key
|
|
9
|
-
export var _STORE_SESSION_ = '_STORE_SESSION_'; //登录状态 缓存key
|
package/es/Auth/index.d.ts
DELETED
package/es/Auth/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React, { useMemo } from 'react';
|
|
2
|
-
import Config from "../Config";
|
|
3
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
4
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
function Auth(_ref) {
|
|
6
|
-
var featureId = _ref.featureId,
|
|
7
|
-
noAuthContent = _ref.noAuthContent,
|
|
8
|
-
children = _ref.children;
|
|
9
|
-
var action = useMemo(function () {
|
|
10
|
-
return !!Config.feature.find(function (v) {
|
|
11
|
-
return v === featureId;
|
|
12
|
-
});
|
|
13
|
-
}, [featureId]); //获取按钮权限
|
|
14
|
-
return /*#__PURE__*/_jsx(_Fragment, {
|
|
15
|
-
children: !action ? noAuthContent ? noAuthContent : null : children
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
export default Auth;
|
package/es/AutoExit/index.d.ts
DELETED
package/es/AutoExit/index.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React, { useContext, useEffect } from 'react';
|
|
2
|
-
import AppContext from "../AppContext";
|
|
3
|
-
import nextTick from "../nextTick";
|
|
4
|
-
import useHistory from "../useHistory";
|
|
5
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
function AutoExit(_ref) {
|
|
8
|
-
var children = _ref.children;
|
|
9
|
-
var _useContext = useContext(AppContext.Context),
|
|
10
|
-
loginStatus = _useContext.loginStatus;
|
|
11
|
-
var history = useHistory();
|
|
12
|
-
useEffect(function () {
|
|
13
|
-
if (!loginStatus) {
|
|
14
|
-
nextTick(function () {
|
|
15
|
-
return history.replace('/login');
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}, [loginStatus]);
|
|
19
|
-
return /*#__PURE__*/_jsx(_Fragment, {
|
|
20
|
-
children: loginStatus ? children : null
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
export default AutoExit;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ConfigProvider } from 'antd';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import CheckGroupFixed from "./index";
|
|
4
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
var defaultSource = Array.from(new Array(100)).map(function (_, i) {
|
|
6
|
-
return {
|
|
7
|
-
label: "\u9009\u9879".concat(i),
|
|
8
|
-
value: i
|
|
9
|
-
};
|
|
10
|
-
});
|
|
11
|
-
var App = function App() {
|
|
12
|
-
return /*#__PURE__*/_jsx(ConfigProvider, {
|
|
13
|
-
prefixCls: "cloudapp",
|
|
14
|
-
children: /*#__PURE__*/_jsx("div", {
|
|
15
|
-
style: {
|
|
16
|
-
width: '100%'
|
|
17
|
-
},
|
|
18
|
-
children: /*#__PURE__*/_jsx(CheckGroupFixed, {
|
|
19
|
-
label: "\u6807\u9898",
|
|
20
|
-
source: defaultSource
|
|
21
|
-
})
|
|
22
|
-
})
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
export default App;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface SourceDictType {
|
|
4
|
-
value?: string | number;
|
|
5
|
-
label: string;
|
|
6
|
-
icon?: string;
|
|
7
|
-
}
|
|
8
|
-
interface ICheckGroupFixedProps {
|
|
9
|
-
label: string;
|
|
10
|
-
source: SourceDictType[];
|
|
11
|
-
onChange?: (keys: string[] & number[] & boolean[]) => void;
|
|
12
|
-
checboxSize?: number;
|
|
13
|
-
labelSize?: number;
|
|
14
|
-
cutRow?: number;
|
|
15
|
-
value?: string[] & number[] & boolean[];
|
|
16
|
-
}
|
|
17
|
-
declare function CheckGroupFixed({ label, source, checboxSize, cutRow, labelSize, value, onChange }: ICheckGroupFixedProps): JSX.Element;
|
|
18
|
-
export default CheckGroupFixed;
|