@cloud-app-dev/vidc 3.2.11 → 3.2.13

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.
Files changed (421) hide show
  1. package/.dumi/tmp/core/EmptyRoute.tsx +9 -0
  2. package/.dumi/tmp/core/defineApp.ts +16 -0
  3. package/.dumi/tmp/core/history.ts +61 -0
  4. package/.dumi/tmp/core/plugin.ts +42 -0
  5. package/.dumi/tmp/core/pluginConfig.d.ts +276 -0
  6. package/.dumi/tmp/core/polyfill.ts +202 -0
  7. package/.dumi/tmp/core/route.tsx +38 -0
  8. package/.dumi/tmp/core/terminal.ts +38 -0
  9. package/.dumi/tmp/dumi/exports.ts +5 -0
  10. package/.dumi/tmp/dumi/locales/config.ts +56 -0
  11. package/.dumi/tmp/dumi/locales/runtime.tsx +38 -0
  12. package/.dumi/tmp/dumi/meta/atoms.ts +4 -0
  13. package/.dumi/tmp/dumi/meta/index.ts +186 -0
  14. package/.dumi/tmp/dumi/meta/runtime.ts +18 -0
  15. package/.dumi/tmp/dumi/meta/tabs.ts +8 -0
  16. package/.dumi/tmp/dumi/theme/ContextWrapper.tsx +41 -0
  17. package/.dumi/tmp/dumi/theme/builtins/API.ts +4 -0
  18. package/.dumi/tmp/dumi/theme/builtins/Badge.ts +4 -0
  19. package/.dumi/tmp/dumi/theme/builtins/Container.ts +4 -0
  20. package/.dumi/tmp/dumi/theme/builtins/Previewer.ts +4 -0
  21. package/.dumi/tmp/dumi/theme/builtins/SourceCode.ts +4 -0
  22. package/.dumi/tmp/dumi/theme/builtins/Table.ts +4 -0
  23. package/.dumi/tmp/dumi/theme/layouts/DocLayout.ts +4 -0
  24. package/.dumi/tmp/dumi/theme/slots/Content.ts +4 -0
  25. package/.dumi/tmp/dumi/theme/slots/ContentTabs.ts +4 -0
  26. package/.dumi/tmp/dumi/theme/slots/Features.ts +4 -0
  27. package/.dumi/tmp/dumi/theme/slots/Footer.ts +4 -0
  28. package/.dumi/tmp/dumi/theme/slots/Header.ts +4 -0
  29. package/.dumi/tmp/dumi/theme/slots/Hero.ts +4 -0
  30. package/.dumi/tmp/dumi/theme/slots/HeroTitle.ts +4 -0
  31. package/.dumi/tmp/dumi/theme/slots/LangSwitch.ts +4 -0
  32. package/.dumi/tmp/dumi/theme/slots/Logo.ts +4 -0
  33. package/.dumi/tmp/dumi/theme/slots/Navbar.ts +4 -0
  34. package/.dumi/tmp/dumi/theme/slots/NotFound.ts +4 -0
  35. package/.dumi/tmp/dumi/theme/slots/PreviewerActions.ts +4 -0
  36. package/.dumi/tmp/dumi/theme/slots/PreviewerActionsExtra.ts +4 -0
  37. package/.dumi/tmp/dumi/theme/slots/RtlSwitch.ts +4 -0
  38. package/.dumi/tmp/dumi/theme/slots/SearchBar.ts +4 -0
  39. package/.dumi/tmp/dumi/theme/slots/SearchResult.ts +4 -0
  40. package/.dumi/tmp/dumi/theme/slots/Sidebar.ts +4 -0
  41. package/.dumi/tmp/dumi/theme/slots/Toc.ts +4 -0
  42. package/.dumi/tmp/exports.ts +15 -0
  43. package/.dumi/tmp/testBrowser.tsx +82 -0
  44. package/.dumi/tmp/tsconfig.json +35 -0
  45. package/.dumi/tmp/typings.d.ts +136 -0
  46. package/.dumi/tmp/umi.ts +77 -0
  47. package/.dumi/tmp-production/core/EmptyRoute.tsx +9 -0
  48. package/.dumi/tmp-production/core/defineApp.ts +16 -0
  49. package/.dumi/tmp-production/core/history.ts +61 -0
  50. package/.dumi/tmp-production/core/plugin.ts +42 -0
  51. package/.dumi/tmp-production/core/pluginConfig.d.ts +276 -0
  52. package/.dumi/tmp-production/core/polyfill.ts +202 -0
  53. package/.dumi/tmp-production/core/route.tsx +38 -0
  54. package/.dumi/tmp-production/core/terminal.ts +38 -0
  55. package/.dumi/tmp-production/dumi/exports.ts +5 -0
  56. package/.dumi/tmp-production/dumi/locales/config.ts +56 -0
  57. package/.dumi/tmp-production/dumi/locales/runtime.tsx +38 -0
  58. package/.dumi/tmp-production/dumi/meta/atoms.ts +4 -0
  59. package/.dumi/tmp-production/dumi/meta/index.ts +178 -0
  60. package/.dumi/tmp-production/dumi/meta/runtime.ts +18 -0
  61. package/.dumi/tmp-production/dumi/meta/tabs.ts +5 -0
  62. package/.dumi/tmp-production/dumi/theme/ContextWrapper.tsx +41 -0
  63. package/.dumi/tmp-production/dumi/theme/builtins/API.ts +4 -0
  64. package/.dumi/tmp-production/dumi/theme/builtins/Badge.ts +4 -0
  65. package/.dumi/tmp-production/dumi/theme/builtins/Container.ts +4 -0
  66. package/.dumi/tmp-production/dumi/theme/builtins/Previewer.ts +4 -0
  67. package/.dumi/tmp-production/dumi/theme/builtins/SourceCode.ts +4 -0
  68. package/.dumi/tmp-production/dumi/theme/builtins/Table.ts +4 -0
  69. package/.dumi/tmp-production/dumi/theme/layouts/DocLayout.ts +4 -0
  70. package/.dumi/tmp-production/dumi/theme/slots/Content.ts +4 -0
  71. package/.dumi/tmp-production/dumi/theme/slots/ContentTabs.ts +4 -0
  72. package/.dumi/tmp-production/dumi/theme/slots/Features.ts +4 -0
  73. package/.dumi/tmp-production/dumi/theme/slots/Footer.ts +4 -0
  74. package/.dumi/tmp-production/dumi/theme/slots/Header.ts +4 -0
  75. package/.dumi/tmp-production/dumi/theme/slots/Hero.ts +4 -0
  76. package/.dumi/tmp-production/dumi/theme/slots/HeroTitle.ts +4 -0
  77. package/.dumi/tmp-production/dumi/theme/slots/LangSwitch.ts +4 -0
  78. package/.dumi/tmp-production/dumi/theme/slots/Logo.ts +4 -0
  79. package/.dumi/tmp-production/dumi/theme/slots/Navbar.ts +4 -0
  80. package/.dumi/tmp-production/dumi/theme/slots/NotFound.ts +4 -0
  81. package/.dumi/tmp-production/dumi/theme/slots/PreviewerActions.ts +4 -0
  82. package/.dumi/tmp-production/dumi/theme/slots/PreviewerActionsExtra.ts +4 -0
  83. package/.dumi/tmp-production/dumi/theme/slots/RtlSwitch.ts +4 -0
  84. package/.dumi/tmp-production/dumi/theme/slots/SearchBar.ts +4 -0
  85. package/.dumi/tmp-production/dumi/theme/slots/SearchResult.ts +4 -0
  86. package/.dumi/tmp-production/dumi/theme/slots/Sidebar.ts +4 -0
  87. package/.dumi/tmp-production/dumi/theme/slots/Toc.ts +4 -0
  88. package/.dumi/tmp-production/exports.ts +14 -0
  89. package/.dumi/tmp-production/testBrowser.tsx +82 -0
  90. package/.dumi/tmp-production/tsconfig.json +35 -0
  91. package/.dumi/tmp-production/typings.d.ts +136 -0
  92. package/.dumi/tmp-production/umi.ts +77 -0
  93. package/.dumirc.ts +71 -0
  94. package/.editorconfig +0 -3
  95. package/.eslintrc.js +3 -0
  96. package/.fatherrc.ts +19 -0
  97. package/.husky/commit-msg +5 -0
  98. package/.husky/pre-commit +4 -0
  99. package/.prettierrc.js +16 -0
  100. package/.stylelintrc +3 -0
  101. package/README.md +14 -26
  102. package/es/Api/index.js +100 -30
  103. package/es/AppContext/Sync.js +19 -3
  104. package/es/AppContext/index.js +86 -42
  105. package/es/AppContext/static.js +7 -0
  106. package/es/Auth/index.js +11 -4
  107. package/es/AutoExit/index.js +11 -3
  108. package/es/Box/BetweenBox/index.js +19 -10
  109. package/es/Box/BetweenBox/{index.css → index.less} +0 -0
  110. package/es/Box/InfoBox/index.js +24 -18
  111. package/es/Box/InfoBox/index.less +22 -0
  112. package/es/Box/TwoColumnBox/index.js +42 -25
  113. package/es/Box/TwoColumnBox/index.less +70 -0
  114. package/es/Box/deps/grid-factory.d.ts +2 -2
  115. package/es/Box/deps/grid-factory.js +12 -0
  116. package/es/Box/index.js +29 -16
  117. package/es/Box/{index.css → index.less} +5 -4
  118. package/es/CheckGroupFixed/demo.d.ts +3 -0
  119. package/es/CheckGroupFixed/demo.js +28 -0
  120. package/es/CheckGroupFixed/index.js +117 -82
  121. package/es/CheckGroupFixed/index.less +50 -0
  122. package/es/Config/index.js +5 -1
  123. package/es/Config/utils.js +18 -3
  124. package/es/ConfigContext/index.js +8 -4
  125. package/es/CustomRenderSelect/index.js +71 -36
  126. package/es/CustomRenderSelect/index.less +25 -0
  127. package/es/DisableMark/index.js +14 -11
  128. package/es/DisableMark/{index.css → index.less} +0 -0
  129. package/es/DomMove/demo.js +14 -10
  130. package/es/DomMove/index.js +52 -30
  131. package/es/DomMove/utils.js +8 -3
  132. package/es/Drag/DragAndDropItem.js +44 -20
  133. package/es/Drag/DropItem.js +22 -6
  134. package/es/Drag/index.js +2 -2
  135. package/es/Drag/{index.css → index.less} +0 -0
  136. package/es/Drawer/Footer.js +22 -15
  137. package/es/Drawer/{Demo.d.ts → demo.d.ts} +0 -0
  138. package/es/Drawer/demo.js +109 -0
  139. package/es/Drawer/index.js +98 -60
  140. package/es/Drawer/index.less +42 -0
  141. package/es/ErrorFallback/index.js +23 -14
  142. package/es/FrontendPlayer/index.js +1 -1
  143. package/es/FullScreen/index.js +30 -17
  144. package/es/FullScreen/index.less +16 -0
  145. package/es/HightLevel/index.js +11 -4
  146. package/es/HightLevel/{index.css → index.less} +0 -0
  147. package/es/IconFont/index.js +39 -18
  148. package/es/ImageView/index.js +37 -13
  149. package/es/ImageView/index.less +10 -0
  150. package/es/Input/demo.d.ts +3 -0
  151. package/es/Input/demo.js +16 -0
  152. package/es/Input/index.js +46 -22
  153. package/es/Input/index.less +12 -0
  154. package/es/InstanceHistory/index.js +2 -0
  155. package/es/LabelValue/index.js +25 -18
  156. package/es/LabelValue/index.less +20 -0
  157. package/es/List/DynamicGridList/Demo.d.ts +1 -0
  158. package/es/List/DynamicGridList/Demo.js +52 -32
  159. package/es/List/DynamicGridList/index.js +37 -22
  160. package/es/List/DynamicList/index.js +76 -56
  161. package/es/List/DynamicList/index.less +15 -0
  162. package/es/List/GridList/Demo.d.ts +1 -0
  163. package/es/List/GridList/Demo.js +60 -38
  164. package/es/List/GridList/hook.d.ts +1 -1
  165. package/es/List/GridList/hook.js +66 -35
  166. package/es/List/GridList/index.js +33 -29
  167. package/es/List/GridList/{index.css → index.less} +0 -0
  168. package/es/List/GridList/utils.d.ts +2 -2
  169. package/es/List/GridList/utils.js +1 -0
  170. package/es/List/VList/index.d.ts +1 -1
  171. package/es/List/VList/index.js +32 -19
  172. package/es/List/VList/{index.css → index.less} +0 -0
  173. package/es/List/VList/utils.d.ts +2 -2
  174. package/es/List/VList/utils.js +8 -6
  175. package/es/List/demo.d.ts +3 -0
  176. package/es/List/demo.js +26 -0
  177. package/es/List/index.d.ts +1 -1
  178. package/es/List/index.js +31 -23
  179. package/es/List/{index.css → index.less} +5 -4
  180. package/es/LoaderApp/index.js +59 -25
  181. package/es/LoaderApp/{index.css → index.less} +0 -0
  182. package/es/LoaderApp/loader.js +40 -23
  183. package/es/LoaderApp/sandbox.back.js +101 -24
  184. package/es/LoaderApp/sandbox.js +26 -9
  185. package/es/LoaderApp/utils.d.ts +1 -1
  186. package/es/LoaderApp/utils.js +68 -25
  187. package/es/LoaderScript/index.js +25 -10
  188. package/es/LoaderScript/utils.js +151 -87
  189. package/es/Map/BasicMap/AMapInstance.d.ts +1 -1
  190. package/es/Map/BasicMap/AMapInstance.js +25 -3
  191. package/es/Map/BasicMap/LeafletInstance.js +28 -11
  192. package/es/Map/BasicMap/index.js +67 -27
  193. package/es/Map/BasicMap/index.less +24 -0
  194. package/es/Map/ClusterLayer/hook.d.ts +2 -2
  195. package/es/Map/ClusterLayer/hook.js +51 -23
  196. package/es/Map/ClusterLayer/index.d.ts +1 -1
  197. package/es/Map/ClusterLayer/index.js +14 -6
  198. package/es/Map/ClusterLayer/index.less +27 -0
  199. package/es/Map/Config/index.js +44 -16
  200. package/es/Map/Config/utils.js +17 -3
  201. package/es/Map/Context/index.js +43 -9
  202. package/es/Map/FindPio/index.js +5 -2
  203. package/es/Map/FindPio/{index.css → index.less} +0 -0
  204. package/es/Map/InfoWindow/MakerLikeWindow.d.ts +1 -1
  205. package/es/Map/InfoWindow/MakerLikeWindow.js +41 -18
  206. package/es/Map/InfoWindow/demo.d.ts +1 -0
  207. package/es/Map/InfoWindow/demo.js +51 -29
  208. package/es/Map/InfoWindow/index.d.ts +1 -1
  209. package/es/Map/InfoWindow/index.js +39 -18
  210. package/es/Map/LevelCenter/DragMarker/index.js +16 -10
  211. package/es/Map/LevelCenter/demo.d.ts +1 -0
  212. package/es/Map/LevelCenter/demo.js +41 -22
  213. package/es/Map/LevelCenter/index.js +41 -29
  214. package/es/Map/LevelCenter/index.less +2 -0
  215. package/es/Map/LoaderMap/index.js +38 -22
  216. package/es/Map/MapDrawSelect/demo.d.ts +1 -0
  217. package/es/Map/MapDrawSelect/demo.js +65 -46
  218. package/es/Map/MapDrawSelect/index.js +43 -31
  219. package/es/Map/MapDrawSelect/index.less +2 -0
  220. package/es/Map/MouseTool/index.js +32 -18
  221. package/es/Map/MouseTool/useMouseTools.js +37 -8
  222. package/es/Map/ResetTools/index.js +58 -44
  223. package/es/Map/ResetTools/index.less +35 -0
  224. package/es/Map/SinglePoint/index.js +39 -27
  225. package/es/Map/SinglePoint/index.less +41 -0
  226. package/es/Map/hook/useMapEvent.js +8 -4
  227. package/es/Map/hook/useMapType.js +3 -2
  228. package/es/Map/index.d.ts +1 -0
  229. package/es/Map/index.js +11 -11
  230. package/es/Map/useMarker/index.d.ts +1 -1
  231. package/es/Map/useMarker/index.js +33 -13
  232. package/es/Map/{LevelCenter/index.css → useMarker/index.less} +0 -0
  233. package/es/Map/withMap/index.d.ts +1 -0
  234. package/es/Map/withMap/index.js +14 -4
  235. package/es/Modal/demo.d.ts +3 -0
  236. package/es/Modal/demo.js +106 -0
  237. package/es/Modal/index.js +94 -57
  238. package/es/Modal/index.less +45 -0
  239. package/es/Picture/component/DefaultRects/RectInfo.js +59 -37
  240. package/es/Picture/component/DefaultRects/index.js +46 -32
  241. package/es/Picture/component/DefaultRects/index.less +188 -0
  242. package/es/Picture/component/DrawRect/index.js +37 -24
  243. package/es/Picture/component/DrawRect/{index.css → index.less} +0 -0
  244. package/es/Picture/component/RectMenu/index.js +35 -26
  245. package/es/Picture/component/RectMenu/index.less +31 -0
  246. package/es/Picture/component/RectMenu/utils.js +6 -3
  247. package/es/Picture/component/Tools/index.js +91 -69
  248. package/es/Picture/component/Tools/index.less +43 -0
  249. package/es/Picture/component/WheelScale/index.js +9 -4
  250. package/es/Picture/demo.js +14 -11
  251. package/es/Picture/dragBound.d.ts +1 -1
  252. package/es/Picture/dragBound.js +17 -4
  253. package/es/Picture/index.d.ts +2 -2
  254. package/es/Picture/index.js +201 -137
  255. package/es/Picture/index.less +14 -0
  256. package/es/Picture/loadCaptureRectImage.d.ts +1 -1
  257. package/es/Picture/loadCaptureRectImage.js +39 -14
  258. package/es/Picture/useDraw.js +40 -20
  259. package/es/Picture/utils.d.ts +9 -9
  260. package/es/Picture/utils.js +18 -3
  261. package/es/Player/api/index.d.ts +3 -3
  262. package/es/Player/api/index.js +117 -82
  263. package/es/Player/context.js +21 -7
  264. package/es/Player/contraller_bar/bar.d.ts +1 -1
  265. package/es/Player/contraller_bar/bar.js +28 -10
  266. package/es/Player/contraller_bar/contraller_event.js +34 -12
  267. package/es/Player/contraller_bar/index.js +30 -22
  268. package/es/Player/contraller_bar/left_bar.js +62 -39
  269. package/es/Player/contraller_bar/right_bar.js +34 -18
  270. package/es/Player/contraller_bar/time.js +19 -8
  271. package/es/Player/contraller_bar/useBarStatus.js +29 -11
  272. package/es/Player/contraller_bar/volume.js +43 -21
  273. package/es/Player/demo.d.ts +1 -0
  274. package/es/Player/demo.js +258 -215
  275. package/es/Player/event/errorEvent.js +41 -16
  276. package/es/Player/event/eventName.js +12 -1
  277. package/es/Player/event/index.js +66 -24
  278. package/es/Player/fps_play.js +33 -15
  279. package/es/Player/frontend_player.js +42 -20
  280. package/es/Player/frontend_timeline.js +95 -55
  281. package/es/Player/iconfont.js +23 -8
  282. package/es/Player/index.js +1 -1
  283. package/es/Player/live_heart.js +15 -3
  284. package/es/Player/message.js +68 -37
  285. package/es/Player/segment_player.js +113 -62
  286. package/es/Player/segment_timeline.js +145 -97
  287. package/es/Player/single_player.js +153 -111
  288. package/es/Player/style/bar.less +39 -0
  289. package/es/Player/style/iconfont.js +17 -10
  290. package/es/Player/style/index.less +30 -0
  291. package/es/Player/style/message.less +50 -0
  292. package/es/Player/style/slider.less +103 -0
  293. package/es/Player/style/timeline.less +106 -0
  294. package/es/Player/style/volume.less +21 -0
  295. package/es/Player/timeline.d.ts +1 -1
  296. package/es/Player/timeline.js +59 -32
  297. package/es/Player/util.js +46 -7
  298. package/es/PlayerExt/demo.d.ts +1 -0
  299. package/es/PlayerExt/demo.js +145 -112
  300. package/es/PlayerExt/index.d.ts +1 -1
  301. package/es/PlayerExt/index.js +135 -82
  302. package/es/PlayerExt/{index.css → index.less} +0 -0
  303. package/es/Progress/index.js +18 -5
  304. package/es/Progress/index.less +20 -0
  305. package/es/ROI/demo.d.ts +1 -0
  306. package/es/ROI/demo.js +12 -8
  307. package/es/ROI/index.js +45 -35
  308. package/es/ROI/index.less +29 -0
  309. package/es/ScreenPlayer/Live.d.ts +1 -1
  310. package/es/ScreenPlayer/Live.js +159 -103
  311. package/es/ScreenPlayer/LiveTools.js +153 -116
  312. package/es/ScreenPlayer/PlayerWithExt.js +168 -113
  313. package/es/ScreenPlayer/RatePick.js +35 -22
  314. package/es/ScreenPlayer/Record.js +291 -185
  315. package/es/ScreenPlayer/RecordTools.js +192 -148
  316. package/es/ScreenPlayer/ScreenSelect.js +33 -26
  317. package/es/ScreenPlayer/SegmentTimeLine.js +23 -16
  318. package/es/ScreenPlayer/TimeMode.js +22 -16
  319. package/es/ScreenPlayer/TimeSelect.js +84 -63
  320. package/es/ScreenPlayer/demo.js +16 -18
  321. package/es/ScreenPlayer/demo2.js +192 -177
  322. package/es/ScreenPlayer/index.d.ts +1 -0
  323. package/es/ScreenPlayer/index.js +3 -3
  324. package/es/ScreenPlayer/index.less +178 -0
  325. package/es/ScreenPlayer/useTimeSlider.js +148 -49
  326. package/es/ScreenPlayer/useVideoFit.js +18 -5
  327. package/es/ScreenPlayer/utils.js +6 -0
  328. package/es/SegmentPlayer/index.js +1 -1
  329. package/es/Service/fetch-adapter.d.ts +1 -1
  330. package/es/Service/fetch-adapter.js +48 -5
  331. package/es/Service/http.js +46 -16
  332. package/es/Service/index.js +2 -2
  333. package/es/TableLayout/index.js +18 -12
  334. package/es/TableLayout/{index.css → index.less} +0 -0
  335. package/es/ThemeAntd/demo.d.ts +1 -0
  336. package/es/ThemeAntd/demo.js +126 -76
  337. package/es/ThemeAntd/{demo.css → demo.less} +4 -3
  338. package/es/ThemeAntd/index.js +6 -2
  339. package/es/ThemeAntd/index.less +16 -0
  340. package/es/ThemeAntd/style/button.less +67 -0
  341. package/es/ThemeAntd/style/checkbox.less +72 -0
  342. package/es/ThemeAntd/style/form.less +12 -0
  343. package/es/ThemeAntd/style/input.less +83 -0
  344. package/es/ThemeAntd/style/pagination.less +95 -0
  345. package/es/ThemeAntd/style/picker.less +106 -0
  346. package/es/ThemeAntd/style/popover.less +5 -0
  347. package/es/ThemeAntd/style/radio.less +87 -0
  348. package/es/ThemeAntd/style/{scrollbar.css → scrollbar.less} +4 -2
  349. package/es/ThemeAntd/style/select.less +81 -0
  350. package/es/ThemeAntd/style/table.less +57 -0
  351. package/es/ThemeAntd/style/tree.less +18 -0
  352. package/es/Timeout/index.js +36 -12
  353. package/es/Tree/demo.js +26 -21
  354. package/es/Tree/index.js +51 -30
  355. package/es/Tree/index.less +59 -0
  356. package/es/index.js +47 -47
  357. package/es/useDrawROI/index.js +130 -65
  358. package/es/useEventEmitterHandle/index.js +6 -2
  359. package/es/useFullscreen/demo.js +44 -27
  360. package/es/useFullscreen/index.js +30 -8
  361. package/es/useHistory/index.js +3 -1
  362. package/es/useInfiniteScroll/index.js +50 -19
  363. package/es/useRafInterval/index.js +28 -4
  364. package/es/useSimpleState/index.js +23 -6
  365. package/es/useVirtualList/index.js +58 -20
  366. package/es/utils.d.ts +1 -1
  367. package/es/utils.js +53 -14
  368. package/package.json +42 -32
  369. package/tsconfig.json +8 -32
  370. package/.eslintrc +0 -4
  371. package/.fatherrc.js +0 -25
  372. package/.prettierrc +0 -11
  373. package/.umirc.ts +0 -55
  374. package/es/Box/InfoBox/index.css +0 -22
  375. package/es/Box/TwoColumnBox/index.css +0 -70
  376. package/es/CheckGroupFixed/index.css +0 -49
  377. package/es/CustomRenderSelect/index.css +0 -20
  378. package/es/Drawer/Demo.js +0 -59
  379. package/es/Drawer/index.css +0 -40
  380. package/es/FullScreen/index.css +0 -16
  381. package/es/ImageView/index.css +0 -10
  382. package/es/Input/index.css +0 -8
  383. package/es/LabelValue/index.css +0 -18
  384. package/es/List/DynamicList/index.css +0 -15
  385. package/es/Map/BasicMap/index.css +0 -24
  386. package/es/Map/ClusterLayer/index.css +0 -26
  387. package/es/Map/MapDrawSelect/index.css +0 -0
  388. package/es/Map/ResetTools/index.css +0 -32
  389. package/es/Map/SinglePoint/icon/Place_icon_OnLine_Hover.svg +0 -15
  390. package/es/Map/SinglePoint/icon/Place_icon_OnLine_Normal.svg +0 -15
  391. package/es/Map/SinglePoint/icon/Place_icon_OutLine_Hover.svg +0 -15
  392. package/es/Map/SinglePoint/icon/Place_icon_OutLine_Normal.svg +0 -15
  393. package/es/Map/SinglePoint/index.css +0 -29
  394. package/es/Map/useMarker/index.css +0 -0
  395. package/es/Modal/index.css +0 -43
  396. package/es/Picture/component/DefaultRects/index.css +0 -247
  397. package/es/Picture/component/RectMenu/index.css +0 -31
  398. package/es/Picture/component/Tools/index.css +0 -42
  399. package/es/Picture/index.css +0 -12
  400. package/es/Player/style/bar.css +0 -38
  401. package/es/Player/style/index.css +0 -30
  402. package/es/Player/style/message.css +0 -49
  403. package/es/Player/style/slider.css +0 -96
  404. package/es/Player/style/timeline.css +0 -99
  405. package/es/Player/style/volume.css +0 -19
  406. package/es/Progress/index.css +0 -20
  407. package/es/ROI/index.css +0 -29
  408. package/es/ScreenPlayer/index.css +0 -166
  409. package/es/ThemeAntd/index.css +0 -620
  410. package/es/ThemeAntd/style/button.css +0 -55
  411. package/es/ThemeAntd/style/checkbox.css +0 -64
  412. package/es/ThemeAntd/style/form.css +0 -10
  413. package/es/ThemeAntd/style/input.css +0 -68
  414. package/es/ThemeAntd/style/pagination.css +0 -82
  415. package/es/ThemeAntd/style/picker.css +0 -98
  416. package/es/ThemeAntd/style/popover.css +0 -3
  417. package/es/ThemeAntd/style/radio.css +0 -80
  418. package/es/ThemeAntd/style/select.css +0 -76
  419. package/es/ThemeAntd/style/table.css +0 -46
  420. package/es/ThemeAntd/style/tree.css +0 -16
  421. package/es/Tree/index.css +0 -64
package/es/utils.js CHANGED
@@ -1,7 +1,13 @@
1
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
+
2
3
  import _cache from "@cloud-app-dev/utils/es/cache";
4
+
3
5
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
4
- import { __awaiter } from "tslib";
6
+
7
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
8
+
9
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
10
+
5
11
  export var getHeader = function getHeader() {
6
12
  return {
7
13
  Authorization: _cache.getCache('token', 'session')
@@ -10,20 +16,25 @@ export var getHeader = function getHeader() {
10
16
  /**
11
17
  * @desc 根据id获取所有父级
12
18
  */
19
+
13
20
  export function getParentListById(id) {
14
21
  var orgList = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
15
22
  var list = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
16
23
  var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'id';
17
24
  var pkey = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'parentId';
25
+
18
26
  for (var i = 0, len = orgList.length; i < len; i++) {
19
27
  var item = orgList[i];
28
+
20
29
  if (item[key] === id) {
21
30
  list.push(item);
31
+
22
32
  if (item[pkey]) {
23
33
  getParentListById(item[pkey], orgList, list, key, pkey);
24
34
  }
25
35
  }
26
36
  }
37
+
27
38
  return list;
28
39
  }
29
40
  /**
@@ -31,6 +42,7 @@ export function getParentListById(id) {
31
42
  * @param {string} orgId
32
43
  * @param {Array} ids = []
33
44
  */
45
+
34
46
  export function getPlaceCodesWithParent(areaCode) {
35
47
  var list = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
36
48
  var areaCodes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
@@ -39,50 +51,67 @@ export function getPlaceCodesWithParent(areaCode) {
39
51
  var info = list.find(function (v) {
40
52
  return v[key] === areaCode;
41
53
  });
42
- if (info === null || info === void 0 ? void 0 : info.pcodes) {
54
+
55
+ if (info !== null && info !== void 0 && info.pcodes) {
43
56
  return info.pcodes.reverse();
44
57
  }
58
+
45
59
  if (info) {
46
60
  areaCodes.push(areaCode);
61
+
47
62
  if (info[pkey] && info[pkey] * 1 !== 0) {
48
63
  getPlaceCodesWithParent(info.parentCode, areaCodes, list, key, pkey);
49
64
  }
50
65
  }
66
+
51
67
  return areaCodes;
52
68
  }
53
69
  export function nextTick(cb) {
54
70
  Promise.resolve().then(cb);
55
71
  }
56
- export function tryCatch(resolveFn) {
57
- var rejectFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : console.error;
58
- return __awaiter(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
72
+ export function tryCatch(_x) {
73
+ return _tryCatch.apply(this, arguments);
74
+ }
75
+
76
+ function _tryCatch() {
77
+ _tryCatch = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(resolveFn) {
78
+ var rejectFn,
79
+ _args = arguments;
59
80
  return _regeneratorRuntime().wrap(function _callee$(_context) {
60
81
  while (1) {
61
82
  switch (_context.prev = _context.next) {
62
83
  case 0:
63
- _context.prev = 0;
64
- _context.next = 3;
84
+ rejectFn = _args.length > 1 && _args[1] !== undefined ? _args[1] : console.error;
85
+ _context.prev = 1;
86
+ _context.next = 4;
65
87
  return resolveFn();
66
- case 3:
67
- _context.next = 8;
88
+
89
+ case 4:
90
+ _context.next = 9;
68
91
  break;
69
- case 5:
70
- _context.prev = 5;
71
- _context.t0 = _context["catch"](0);
92
+
93
+ case 6:
94
+ _context.prev = 6;
95
+ _context.t0 = _context["catch"](1);
72
96
  rejectFn(_context.t0);
73
- case 8:
97
+
98
+ case 9:
74
99
  case "end":
75
100
  return _context.stop();
76
101
  }
77
102
  }
78
- }, _callee, null, [[0, 5]]);
103
+ }, _callee, null, [[1, 6]]);
79
104
  }));
105
+ return _tryCatch.apply(this, arguments);
80
106
  }
107
+
81
108
  export function getTargetElement(target, defaultElement) {
82
109
  if (!target) {
83
110
  return defaultElement;
84
111
  }
112
+
85
113
  var targetElement;
114
+
86
115
  if (typeof target === 'function') {
87
116
  targetElement = target();
88
117
  } else if ('current' in target) {
@@ -90,30 +119,40 @@ export function getTargetElement(target, defaultElement) {
90
119
  } else {
91
120
  targetElement = target;
92
121
  }
122
+
93
123
  return targetElement;
94
124
  }
125
+
95
126
  var getScrollTop = function getScrollTop(el) {
96
127
  if (el === document || el === document.body) {
97
128
  return Math.max(window.pageYOffset, document.documentElement.scrollTop, document.body.scrollTop);
98
129
  }
130
+
99
131
  return el.scrollTop;
100
132
  };
133
+
101
134
  var getScrollHeight = function getScrollHeight(el) {
102
135
  return el.scrollHeight || Math.max(document.documentElement.scrollHeight, document.body.scrollHeight);
103
136
  };
137
+
104
138
  var getClientHeight = function getClientHeight(el) {
105
139
  return el.clientHeight || Math.max(document.documentElement.clientHeight, document.body.clientHeight);
106
140
  };
141
+
107
142
  var getEleScrollHeight = function getEleScrollHeight(el) {
108
143
  if (el === document || el === document.body) {
109
144
  return Math.max(window.pageYOffset, document.documentElement.scrollTop, document.body.scrollTop);
110
145
  }
146
+
111
147
  var top = 0;
112
148
  var dom = el;
149
+
113
150
  while (dom) {
114
151
  top += dom.scrollTop;
115
152
  dom = dom.parentElement;
116
153
  }
154
+
117
155
  return top;
118
156
  };
157
+
119
158
  export { getScrollTop, getScrollHeight, getClientHeight, getEleScrollHeight };
package/package.json CHANGED
@@ -2,30 +2,44 @@
2
2
  "private": false,
3
3
  "name": "@cloud-app-dev/vidc",
4
4
  "description": "Video Image Data Componennts",
5
- "version": "3.2.11",
5
+ "version": "3.2.13",
6
6
  "scripts": {
7
- "start": "dumi dev",
8
- "docs:build": "dumi build",
9
7
  "docs:deploy": "gh-pages -d docs-dist",
10
- "build": "npm run entry && father-build",
8
+ "build": "npm run entry && father build",
11
9
  "deploy": "npm run docs:build && npm run docs:deploy",
12
- "release": "npm run build && npm publish",
13
- "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
14
- "test": "umi-test",
15
- "test:coverage": "umi-test --coverage",
16
- "entry": "node ./scripts/entry.js"
10
+ "entry": "node ./scripts/entry.js",
11
+ "start": "npm run dev",
12
+ "dev": "dumi dev",
13
+ "build:watch": "father dev",
14
+ "docs:build": "dumi build",
15
+ "prepare": "husky install && dumi setup",
16
+ "doctor": "father doctor",
17
+ "lint": "npm run lint:es && npm run lint:css",
18
+ "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
19
+ "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\""
17
20
  },
18
21
  "main": "es/index.js",
19
22
  "module": "es/index.js",
20
23
  "typings": "es/index.d.ts",
21
- "gitHooks": {
22
- "pre-commit": "lint-staged"
24
+ "commitlint": {
25
+ "extends": [
26
+ "@commitlint/config-conventional"
27
+ ]
23
28
  },
24
29
  "lint-staged": {
25
- "*.{js,jsx,less,md,json}": [
30
+ "*.{md,json}": [
31
+ "prettier --write --no-error-on-unmatched-pattern"
32
+ ],
33
+ "*.{css,less}": [
34
+ "stylelint --fix",
26
35
  "prettier --write"
27
36
  ],
28
- "*.ts?(x)": [
37
+ "*.{js,jsx}": [
38
+ "eslint --fix",
39
+ "prettier --write"
40
+ ],
41
+ "*.{ts,tsx}": [
42
+ "eslint --fix",
29
43
  "prettier --parser=typescript --write"
30
44
  ]
31
45
  },
@@ -42,38 +56,34 @@
42
56
  "moment": "^2.29.4",
43
57
  "react-error-boundary": "^3.1.4",
44
58
  "react-hotkeys-hook": "^3.4.7",
45
- "screenfull": "^6.0.2"
59
+ "screenfull": "^6.0.2",
60
+ "history": "^5.3.0"
46
61
  },
47
62
  "devDependencies": {
48
63
  "@cloud-app-dev/utils": "^4.0.1",
49
- "@testing-library/react-hooks": "^8.0.1",
50
- "@types/jest": "^29.0.1",
51
64
  "@types/leaflet": "^1.7.11",
52
65
  "@types/lodash-es": "^4.17.6",
53
66
  "@types/node": "^18.7.6",
54
67
  "@types/react": "^18.0.17",
55
68
  "@types/react-dom": "^18.0.6",
56
- "@umijs/test": "^4.0.12",
57
69
  "antd": "^4.22.6",
58
70
  "babel-plugin-import": "^1.13.5",
59
- "dumi": "^1.1.47",
60
- "eslint-config-react-app": "^7.0.1",
61
- "father-build": "^1.22.3",
71
+ "dumi": "^2.0.3",
62
72
  "gh-pages": "^4.0.0",
63
- "history": "^5.3.0",
64
- "lint-staged": "^10.0.7",
65
- "prettier": "^2.2.1",
66
73
  "react": "^18.2.0",
67
74
  "react-dom": "^18.2.0",
68
75
  "react-router-dom": "^6.3.0",
69
- "tslib": "^2.4.0",
70
- "typescript": "^4.7.4",
71
- "yorkie": "^2.0.0"
72
- },
73
- "repository": {
74
- "type": "git",
75
- "url": "git+http://git.topvdn.com/cloudapp/vidc.git",
76
- "branch": "master",
77
- "platform": "github"
76
+ "@commitlint/cli": "^17.1.2",
77
+ "@commitlint/config-conventional": "^17.1.0",
78
+ "@umijs/lint": "^4.0.32",
79
+ "eslint": "^8.28.0",
80
+ "father": "^4.1.0",
81
+ "husky": "^8.0.1",
82
+ "lint-staged": "^13.0.3",
83
+ "prettier": "^2.7.1",
84
+ "prettier-plugin-organize-imports": "^3.0.0",
85
+ "prettier-plugin-packagejson": "^2.2.18",
86
+ "stylelint": "^14.9.1"
78
87
  }
88
+
79
89
  }
package/tsconfig.json CHANGED
@@ -1,38 +1,14 @@
1
1
  {
2
- "compileOnSave": true,
3
2
  "compilerOptions": {
4
- "target": "es6",
5
- "module": "esnext",
6
- "lib": ["es2018", "dom", "es2021"],
7
- "rootDir": "./",
8
- "outDir": "es",
9
- "moduleResolution": "node",
10
- "importHelpers": true,
11
- "jsx": "react",
12
- "esModuleInterop": true,
13
- "sourceMap": true,
14
- "baseUrl": "./",
15
3
  "strict": true,
16
- "declaration": true, // 只有declaration设置为true才能生成.d.ts后缀的文件
17
- "allowJs": true,
18
- "forceConsistentCasingInFileNames": true,
19
- "noImplicitReturns": true,
20
- "noImplicitThis": true,
21
- "noImplicitAny": true,
22
- "strictNullChecks": false,
23
- "suppressImplicitAnyIndexErrors": true,
24
- "noUnusedLocals": true,
25
- "experimentalDecorators": true,
4
+ "declaration": true,
26
5
  "skipLibCheck": true,
27
- "resolveJsonModule": true,
6
+ "esModuleInterop": true,
7
+ "jsx": "react",
8
+ "baseUrl": "./",
28
9
  "paths": {
29
- "@@/*": ["src/.umi/*"],
30
- "@@@/*": ["docs/*"]
31
- },
32
- "allowSyntheticDefaultImports": true,
33
- "typeRoots": ["typings", "node_modules/@types"]
34
- },
35
- "include": ["src/**/*", "dosc/**/*", "typings/*.d.ts"],
36
-
37
- "exclude": ["node_modules", "lib", "es", "dist", "**/__test__", "test"]
10
+ "@@/*": [".dumi/tmp/*"],
11
+ "test/*": ["src/*", "*"]
12
+ }
13
+ }
38
14
  }
package/.eslintrc DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "extends": "react-app",
3
- "ignorePatterns": ["**/*.html"]
4
- }
package/.fatherrc.js DELETED
@@ -1,25 +0,0 @@
1
- export default {
2
- target: 'browser',
3
- esm: 'babel',
4
- pkgs: [
5
- // 组件依赖构建顺序, 例如 a组件依赖于b组件,那么需要先编译 b,在编译a,则 这里可以控制组件编译顺序
6
- ],
7
- extraBabelPlugins: [
8
- ['import', { libraryName: 'antd', style: true }, 'antd'],
9
- ['import', { libraryName: '@cloud-app-dev/basic-components', style: false, camel2DashComponentName: false, libraryDirectory: 'es' }, 'basic-components'],
10
- ['import', { libraryName: '@cloud-app-dev/utils', style: false, camel2DashComponentName: false, libraryDirectory: 'es' }, 'utils'],
11
- ['import', { libraryName: 'ahooks', style: false, camel2DashComponentName: false, libraryDirectory: 'es' }, 'ahooks'],
12
- ['import', { libraryName: '@cloud-app-dev/map', style: false, camel2DashComponentName: false, libraryDirectory: 'es' }, 'map-components'],
13
- ],
14
- lessInRollupMode: {
15
- modifyVars: {
16
- '@ant-prefix': 'cloudapp',
17
- },
18
- },
19
- lessInBabelMode: {
20
- // babel 模式下做 less 编译
21
- modifyVars: {
22
- '@ant-prefix': 'cloudapp',
23
- },
24
- },
25
- };
package/.prettierrc DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "singleQuote": true,
3
- "trailingComma": "all",
4
- "printWidth": 160,
5
- "overrides": [
6
- {
7
- "files": ".prettierrc",
8
- "options": { "parser": "json" }
9
- }
10
- ]
11
- }
package/.umirc.ts DELETED
@@ -1,55 +0,0 @@
1
- import { defineConfig } from 'dumi';
2
- import path from 'path';
3
- import { themeConfig } from './theme-config';
4
-
5
- const token =
6
- 'eyJhbGciOiJIUzI1NiJ9.eyJvcmdhbml6YXRpb25JZCI6IjEwMDEwMTAwMDQ0NSIsImV4dCI6MTY2NTc0ODU1OTg5MSwidWlkIjoiMTAxMDAwMDAwNjk5IiwidmFsaWRTdGF0ZSI6MTA0NDA2LCJyb2xlSWQiOlsxMDAwMDAxMTA1MTgsMTAwMDAwMTEwNzI4XSwidmFsaWRUaW1lIjoxNzA0MzgzOTk5MDAwLCJvcHRDZW50ZXJJZCI6IjEwMDEwMDAwMDIzMyIsInVzZXJUeXBlIjoxMDA3MDQsImlhdCI6MTY2NTQ4OTM1OTg5MX0.zxxxxoaKjyO6CJhi2cs06gTOtjdLgPA9UI7zAQ0zzss';
7
-
8
- export default defineConfig({
9
- title: 'CloudApp VIDC',
10
- favicon: 'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
11
- logo: 'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
12
- outputPath: 'docs-dist',
13
- mode: 'site',
14
- targets: { chrome: 60 },
15
- extraBabelPlugins: [
16
- ['import', { libraryName: 'antd', style: true }, 'antd'],
17
- ['import', { libraryName: '@cloud-app-dev/utils', style: false, camel2DashComponentName: false, libraryDirectory: 'es' }, 'utils'],
18
- ['import', { libraryName: 'ahooks', style: false, camel2DashComponentName: false, libraryDirectory: 'es' }, 'ahooks'],
19
- ['import', { libraryName: '@cloud-app-dev/map', style: false, camel2DashComponentName: false, libraryDirectory: 'es' }, 'map-components'],
20
- ],
21
- theme: {
22
- '@ant-prefix': 'cloudapp',
23
- },
24
- navs: [
25
- null, // null 值代表保留约定式生成的导航,只做增量配置
26
- {
27
- title: 'GitLab',
28
- path: 'https://git.topvdn.com/cloudapp/vidc',
29
- },
30
- ],
31
- alias: {
32
- '@src': path.resolve('./src'),
33
- },
34
- proxy: {
35
- '/api': {
36
- target: 'https://jxsr-eye.antelopecloud.cn/',
37
- changeOrigin: true,
38
- },
39
- },
40
- mfsu:
41
- process.env.NODE_ENV === 'development'
42
- ? {
43
- development: {
44
- output: './.mfsu/dev',
45
- },
46
- production: {
47
- output: './.mfsu/prod',
48
- },
49
- }
50
- : undefined,
51
- scripts: ['//at.alicdn.com/t/font_1724012_972m5d05cou.js'],
52
- styles: [themeConfig],
53
-
54
- // more config: https://d.umijs.org/config
55
- });
@@ -1,22 +0,0 @@
1
- .info-box-layout {
2
- width: 100%;
3
- margin-bottom: 20px;
4
- display: flex;
5
- flex-direction: column;
6
- }
7
- .info-box-layout .info-box-title-wrapper {
8
- background-color: var(--gray2);
9
- border: 1px solid var(--gray3);
10
- border-bottom: none;
11
- height: 3em;
12
- min-height: max-content;
13
- display: flex;
14
- align-items: center;
15
- padding: 0 10px;
16
- font-weight: 700;
17
- }
18
- .info-box-layout .info-box-content-wrapper {
19
- background-color: var(--gray1);
20
- border: 1px solid var(--gray3);
21
- flex: 1;
22
- }
@@ -1,70 +0,0 @@
1
- .two-column-layout-container {
2
- width: 100%;
3
- height: 100%;
4
- position: relative;
5
- color: var(--color1);
6
- }
7
- .two-column-layout-container .two-column-aside {
8
- transition: width 0.1s ease-in;
9
- width: 30%;
10
- height: 100%;
11
- z-index: 9;
12
- position: absolute;
13
- left: 0;
14
- top: 0;
15
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
16
- }
17
- .two-column-layout-container .two-column-aside .two-colum-left-wrapper {
18
- width: 100%;
19
- height: 100%;
20
- overflow: hidden;
21
- }
22
- .two-column-layout-container .two-column-aside .two-colum-left-content {
23
- width: 100%;
24
- height: 100%;
25
- background-color: var(--gray1);
26
- }
27
- .two-column-layout-container .two-column-aside .left-aside-slider-btn {
28
- position: absolute;
29
- width: 8px;
30
- height: 20px;
31
- right: -8px;
32
- top: 50%;
33
- margin-top: -8px;
34
- font-size: var(--fs-large);
35
- background-color: var(--gray5);
36
- cursor: pointer;
37
- z-index: 9;
38
- }
39
- .two-column-layout-container .two-column-aside .left-aside-slider-btn:before,
40
- .two-column-layout-container .two-column-aside .left-aside-slider-btn:after {
41
- content: '';
42
- width: 1px;
43
- height: 16px;
44
- z-index: 2;
45
- background-color: var(--gray1);
46
- position: absolute;
47
- }
48
- .two-column-layout-container .two-column-aside .left-aside-slider-btn:before {
49
- left: 2px;
50
- bottom: 2px;
51
- }
52
- .two-column-layout-container .two-column-aside .left-aside-slider-btn:after {
53
- right: 2px;
54
- top: 2px;
55
- }
56
- .two-column-layout-container .two-column-aside.hide-left-aside {
57
- width: 0;
58
- }
59
- .two-column-layout-container .two-column-aside.hide-left-aside + .two-column-content {
60
- padding-left: 0;
61
- }
62
- .two-column-layout-container .two-column-content {
63
- width: 100%;
64
- height: 100%;
65
- overflow: hidden;
66
- padding-left: 30%;
67
- background-color: var(--gray2);
68
- transition: padding-left 0.3s ease-in-out;
69
- box-sizing: border-box;
70
- }
@@ -1,49 +0,0 @@
1
- .c-check-group-layout {
2
- position: relative;
3
- }
4
- .c-check-group-layout .c-check-group-box {
5
- padding: 10px;
6
- display: flex;
7
- }
8
- .c-check-group-layout .check-label-box {
9
- width: 80px;
10
- color: #999;
11
- }
12
- .c-check-group-layout .check-content-box {
13
- width: 100%;
14
- flex: 1;
15
- overflow: hidden;
16
- height: 30px;
17
- }
18
- .c-check-group-layout .check-content-box .cloudapp-checkbox-group {
19
- display: grid;
20
- grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
21
- grid-row-gap: 10px;
22
- grid-column-gap: 10px;
23
- }
24
- .c-check-group-layout .check-content-box .cloudapp-checkbox-group .cloudapp-checkbox-wrapper {
25
- width: 120px;
26
- margin-left: 0;
27
- height: 30px;
28
- display: flex;
29
- }
30
- .c-check-group-layout .check-content-box .cloudapp-checkbox-group .cloudapp-checkbox-wrapper > span:not(.cloudapp-checkbox) {
31
- flex: 1;
32
- white-space: nowrap;
33
- overflow: hidden;
34
- text-overflow: ellipsis;
35
- }
36
- .c-check-group-layout .sider-mask {
37
- position: fixed;
38
- z-index: 98;
39
- width: 100%;
40
- height: 100%;
41
- left: 0;
42
- top: 0;
43
- }
44
- .c-check-group-layout .slice-btn {
45
- color: var(--primary);
46
- cursor: pointer;
47
- position: relative;
48
- top: 4px;
49
- }
@@ -1,20 +0,0 @@
1
- .custom-render-select {
2
- display: inline-block;
3
- position: relative;
4
- width: max-content;
5
- overflow: hidden;
6
- }
7
- .custom-render-select .custom-render-box {
8
- display: inline-block;
9
- position: relative;
10
- z-index: 22;
11
- }
12
- .custom-render-select .cloudapp-select {
13
- position: absolute;
14
- width: max-content;
15
- height: 100%;
16
- left: 50%;
17
- top: 50%;
18
- opacity: 0;
19
- transform: translate(-50%, -50%);
20
- }