@x-edu/live-player 0.0.34 → 0.0.36

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 (674) hide show
  1. package/dist/XEduLivePlayer.common.js +1222 -11530
  2. package/package.json +7 -8
  3. package/.browserslistrc +0 -10
  4. package/.eslintignore +0 -8
  5. package/.eslintrc.js +0 -26
  6. package/.gem-mine +0 -11
  7. package/.postcssrc.js +0 -6
  8. package/babel.config.js +0 -33
  9. package/dist/XEduLivePlayerPre.common.js +0 -72819
  10. package/doc/develop.md +0 -24
  11. package/gem-mine.config.js +0 -86
  12. package/jest.config.js +0 -9
  13. package/jsconfig.json +0 -15
  14. package/mock/helper.js +0 -8
  15. package/mock/index.js +0 -34
  16. package/public/.well-known/apple-app-site-association +0 -1
  17. package/public/3rd/ali-player/alipayercomponents-1.0.8.min.js +0 -26
  18. package/public/3rd/ali-player/aliplayer-hls-min.js +0 -28
  19. package/public/3rd/ali-player/aliplayer-min.css +0 -1
  20. package/public/3rd/ali-player/aliplayer-min.js +0 -2
  21. package/public/3rd/ali-player/img/fullscreen.png +0 -0
  22. package/public/3rd/ali-player/img/playanimation.png +0 -0
  23. package/public/3rd/ali-player/img/smallscreen.png +0 -0
  24. package/public/3rd/ali-player/img/volume.png +0 -0
  25. package/public/3rd/im-web-push/index.umd.js +0 -14
  26. package/public/JsBridge.js +0 -1602
  27. package/public/fish/editor/lang/zh-cn/zh-cn.min.js +0 -1
  28. package/public/fish/editor/loading.gif +0 -0
  29. package/public/fish/editor/themes/default/css/ueditor.css +0 -1906
  30. package/public/fish/editor/themes/default/images/icons.png +0 -0
  31. package/public/fish/editor/themes/default/images/scale.png +0 -0
  32. package/public/fish/editor/themes/default/images/spacer.gif +0 -0
  33. package/public/fish/editor/themes/default/images/videologo.gif +0 -0
  34. package/public/fish/editor/themes/iframe.css +0 -0
  35. package/public/fish/editor/third-party/codemirror/codemirror.css +0 -104
  36. package/public/fish/editor/third-party/codemirror/codemirror.js +0 -3581
  37. package/public/fish/editor/third-party/zeroclipboard/ZeroClipboard.js +0 -1256
  38. package/public/fish/editor/ueditor.all.min.js +0 -17
  39. package/public/fish/editor/ueditor.config.js +0 -467
  40. package/public/fish/icon/umd-4.1.2.js +0 -2
  41. package/public/fish/video/icon_active.gif +0 -0
  42. package/public/fish/video/videoplayer.min.css +0 -7
  43. package/public/fish/video/videoplayer.min.js +0 -32
  44. package/public/fish/video/zh-CN.js +0 -83
  45. package/public/icon/demo.css +0 -539
  46. package/public/icon/demo_index.html +0 -2189
  47. package/public/icon/iconfont.css +0 -363
  48. package/public/icon/iconfont.js +0 -1
  49. package/public/icon/iconfont.json +0 -618
  50. package/public/icon/iconfont.ttf +0 -0
  51. package/public/icon/iconfont.woff +0 -0
  52. package/public/icon/iconfont.woff2 +0 -0
  53. package/public/index.html +0 -50
  54. package/script/image/readme.md +0 -77
  55. package/script/postcss.js +0 -48
  56. package/src/App.jsx +0 -24
  57. package/src/asset/img/activeBanner//342/200/234/345/217/214/345/207/217/342/200/235/345/267/245/344/275/234.png +0 -0
  58. package/src/asset/img/activeBanner//344/271/211/345/212/241/346/225/231/350/202/262.png +0 -0
  59. package/src/asset/img/activeBanner//344/274/230/347/247/200/344/274/240/347/273/237/346/226/207/345/214/226.png +0 -0
  60. package/src/asset/img/activeBanner//344/275/223/350/202/262/351/224/273/347/202/274.png +0 -0
  61. package/src/asset/img/activeBanner//345/205/232/345/217/262/345/255/246/344/271/240.png +0 -0
  62. package/src/asset/img/activeBanner//345/205/232/345/273/272/345/276/267/350/202/262.png +0 -0
  63. package/src/asset/img/activeBanner//345/212/263/345/212/250/345/205/211/350/215/243.png +0 -0
  64. package/src/asset/img/activeBanner//345/212/263/345/212/250/345/257/274/350/210/252.png +0 -0
  65. package/src/asset/img/activeBanner//345/212/263/345/212/250/346/225/231/350/202/262.png +0 -0
  66. package/src/asset/img/activeBanner//345/212/263/345/212/250/346/231/272/346/205/247.png +0 -0
  67. package/src/asset/img/activeBanner//345/223/201/345/276/267/346/225/231/350/202/262.png +0 -0
  68. package/src/asset/img/activeBanner//345/255/246/345/211/215/346/225/231/350/202/262.png +0 -0
  69. package/src/asset/img/activeBanner//345/256/252/346/263/225/346/263/225/346/262/273.png +0 -0
  70. package/src/asset/img/activeBanner//345/256/266/345/272/255/346/225/231/350/202/262/346/214/207/345/257/274.png +0 -0
  71. package/src/asset/img/activeBanner//345/256/266/345/272/255/346/225/231/350/202/262/346/226/271/346/263/225.png +0 -0
  72. package/src/asset/img/activeBanner//345/256/266/345/272/255/346/225/231/350/202/262/350/247/202/345/277/265.png +0 -0
  73. package/src/asset/img/activeBanner//345/275/261/350/247/206/346/225/231/350/202/262.png +0 -0
  74. package/src/asset/img/activeBanner//345/277/203/347/220/206/345/201/245/345/272/267.png +0 -0
  75. package/src/asset/img/activeBanner//346/200/235/346/224/277/350/257/276/347/250/213.png +0 -0
  76. package/src/asset/img/activeBanner//346/225/231/345/255/246/346/210/220/346/236/234.png +0 -0
  77. package/src/asset/img/activeBanner//346/225/231/346/235/220/344/270/223/345/214/272.png +0 -0
  78. package/src/asset/img/activeBanner//346/225/231/350/202/262/344/277/241/346/201/257/345/214/226.png +0 -0
  79. package/src/asset/img/activeBanner//346/226/207/345/214/226/350/211/272/346/234/257.png +0 -0
  80. package/src/asset/img/activeBanner//346/231/256/351/200/232/351/253/230/344/270/255.png +0 -0
  81. package/src/asset/img/activeBanner//347/210/261/345/233/275/344/270/273/344/271/211.png +0 -0
  82. package/src/asset/img/activeBanner//347/211/271/346/256/212/346/225/231/350/202/262.png +0 -0
  83. package/src/asset/img/activeBanner//347/224/237/345/221/275/344/270/216/345/256/211/345/205/250.png +0 -0
  84. package/src/asset/img/activeBanner//347/224/237/346/200/201/346/226/207/346/230/216.png +0 -0
  85. package/src/asset/img/activeBanner//347/240/224/345/255/246/345/256/236/350/267/265.png +0 -0
  86. package/src/asset/img/activeBanner//347/247/221/346/231/256/346/225/231/350/202/262.png +0 -0
  87. package/src/asset/img/activeBanner//347/273/217/345/205/270/351/230/205/350/257/273.png +0 -0
  88. package/src/asset/img/activeBanner//347/273/274/345/220/210/346/224/271/351/235/251.png +0 -0
  89. package/src/asset/img/advertisement.png +0 -0
  90. package/src/asset/img/bg-block.png +0 -0
  91. package/src/asset/img/bookhover.png +0 -0
  92. package/src/asset/img/card.png +0 -0
  93. package/src/asset/img/catalog/article.png +0 -0
  94. package/src/asset/img/catalog/audio.png +0 -0
  95. package/src/asset/img/catalog/course.png +0 -0
  96. package/src/asset/img/catalog/document.png +0 -0
  97. package/src/asset/img/catalog/image.png +0 -0
  98. package/src/asset/img/catalog/link.png +0 -0
  99. package/src/asset/img/catalog/openClassLive.png +0 -0
  100. package/src/asset/img/catalog/other.png +0 -0
  101. package/src/asset/img/catalog/video.png +0 -0
  102. package/src/asset/img/class-live-header-icon.png +0 -0
  103. package/src/asset/img/content/article.png +0 -0
  104. package/src/asset/img/content/document.png +0 -0
  105. package/src/asset/img/content/image.png +0 -0
  106. package/src/asset/img/content/url.png +0 -0
  107. package/src/asset/img/content/video.png +0 -0
  108. package/src/asset/img/contentType/default.png +0 -0
  109. package/src/asset/img/contentType/x_article.png +0 -0
  110. package/src/asset/img/contentType/x_audio_video.png +0 -0
  111. package/src/asset/img/contentType/x_course.png +0 -0
  112. package/src/asset/img/contentType/x_document.png +0 -0
  113. package/src/asset/img/contentType/x_image_list.png +0 -0
  114. package/src/asset/img/course/book.svg +0 -1
  115. package/src/asset/img/course/courseBg.png +0 -0
  116. package/src/asset/img/course/default.png +0 -0
  117. package/src/asset/img/course/document.png +0 -0
  118. package/src/asset/img/course/done.png +0 -0
  119. package/src/asset/img/course/file_doc.svg +0 -1
  120. package/src/asset/img/course/file_doc_active.svg +0 -1
  121. package/src/asset/img/course/file_video.svg +0 -1
  122. package/src/asset/img/course/file_video_active.svg +0 -1
  123. package/src/asset/img/course/icon_checkbox_linear.svg +0 -1
  124. package/src/asset/img/course/icondown.png +0 -0
  125. package/src/asset/img/course/learning.png +0 -0
  126. package/src/asset/img/course/lecturerDefault.png +0 -0
  127. package/src/asset/img/course/nolearn.png +0 -0
  128. package/src/asset/img/course/noplay.png +0 -0
  129. package/src/asset/img/course/pause.png +0 -0
  130. package/src/asset/img/course/people.png +0 -0
  131. package/src/asset/img/course/play.png +0 -0
  132. package/src/asset/img/course/playing.svg +0 -22
  133. package/src/asset/img/course/reload.png +0 -0
  134. package/src/asset/img/course/shouqi_icon.png +0 -0
  135. package/src/asset/img/course/test.png +0 -0
  136. package/src/asset/img/course/video.png +0 -0
  137. package/src/asset/img/def/resource_def.png +0 -0
  138. package/src/asset/img/def/studio_def.png +0 -0
  139. package/src/asset/img/def-avatar.jpg +0 -0
  140. package/src/asset/img/download-active.png +0 -0
  141. package/src/asset/img/download.png +0 -0
  142. package/src/asset/img/eduReform/djdy-cover.png +0 -0
  143. package/src/asset/img/eduReform/djdy.png +0 -0
  144. package/src/asset/img/eduReform/jxcg-1.png +0 -0
  145. package/src/asset/img/eduReform/jxcg-2.png +0 -0
  146. package/src/asset/img/eduReform/jxcg-3.png +0 -0
  147. package/src/asset/img/eduReform/jxcg-4.png +0 -0
  148. package/src/asset/img/eduReform/jxcg-cover.png +0 -0
  149. package/src/asset/img/eduReform/jxgg.png +0 -0
  150. package/src/asset/img/eduReform/jyxxh-cover.png +0 -0
  151. package/src/asset/img/eduReform/jyxxh.png +0 -0
  152. package/src/asset/img/eduReform/ptgz-cover.png +0 -0
  153. package/src/asset/img/eduReform/ptgz.png +0 -0
  154. package/src/asset/img/eduReform/sjgz-cover.png +0 -0
  155. package/src/asset/img/eduReform/sjgz.png +0 -0
  156. package/src/asset/img/eduReform/tsjy-cover.png +0 -0
  157. package/src/asset/img/eduReform/tsjy.png +0 -0
  158. package/src/asset/img/eduReform/xqjy-1.png +0 -0
  159. package/src/asset/img/eduReform/xqjy-2.png +0 -0
  160. package/src/asset/img/eduReform/xqjy-3.png +0 -0
  161. package/src/asset/img/eduReform/xqjy-4.png +0 -0
  162. package/src/asset/img/eduReform/xqjy-cover.png +0 -0
  163. package/src/asset/img/eduReform/xqjy.png +0 -0
  164. package/src/asset/img/eduReform/ywjy-1.png +0 -0
  165. package/src/asset/img/eduReform/ywjy-2.png +0 -0
  166. package/src/asset/img/eduReform/ywjy-cover.png +0 -0
  167. package/src/asset/img/eduReform/ywjy.png +0 -0
  168. package/src/asset/img/eduReform/zhgg-1.png +0 -0
  169. package/src/asset/img/eduReform/zhgg-2.png +0 -0
  170. package/src/asset/img/eduReform/zhgg-cover.png +0 -0
  171. package/src/asset/img/eduReform/zhgg.png +0 -0
  172. package/src/asset/img/family/1.jpg +0 -0
  173. package/src/asset/img/family/ff-1.png +0 -0
  174. package/src/asset/img/family/ff-2.png +0 -0
  175. package/src/asset/img/family/ff-3.png +0 -0
  176. package/src/asset/img/family/ff-cover.png +0 -0
  177. package/src/asset/img/family/gn-1.png +0 -0
  178. package/src/asset/img/family/gn-2.png +0 -0
  179. package/src/asset/img/family/gn-3.png +0 -0
  180. package/src/asset/img/family/gn-cover.png +0 -0
  181. package/src/asset/img/family/icon/jyff.png +0 -0
  182. package/src/asset/img/family/icon/jygn.png +0 -0
  183. package/src/asset/img/family/icon/jyzd.png +0 -0
  184. package/src/asset/img/family/zd-1.png +0 -0
  185. package/src/asset/img/family/zd-2.png +0 -0
  186. package/src/asset/img/family/zd-3.png +0 -0
  187. package/src/asset/img/family/zd-cover.png +0 -0
  188. package/src/asset/img/favicon-m.png +0 -0
  189. package/src/asset/img/favicon.png +0 -0
  190. package/src/asset/img/icon-course-white.svg +0 -3
  191. package/src/asset/img/icon-course.svg +0 -3
  192. package/src/asset/img/icon-eye-white.svg +0 -4
  193. package/src/asset/img/icon-eye.svg +0 -4
  194. package/src/asset/img/icon-school-white.svg +0 -3
  195. package/src/asset/img/icon-school.svg +0 -3
  196. package/src/asset/img/img-jgsj/10.png +0 -0
  197. package/src/asset/img/img-jgsj/3.png +0 -0
  198. package/src/asset/img/img-jgsj/4.png +0 -0
  199. package/src/asset/img/img-jgsj/5.png +0 -0
  200. package/src/asset/img/img-jgsj/6.png +0 -0
  201. package/src/asset/img/img-jgsj/7-1.png +0 -0
  202. package/src/asset/img/img-jgsj/7-2.png +0 -0
  203. package/src/asset/img/img-jgsj/8.png +0 -0
  204. package/src/asset/img/img-jgsj/8s.png +0 -0
  205. package/src/asset/img/img-jgsj/9.png +0 -0
  206. package/src/asset/img/img-search-tag-bottom.png +0 -0
  207. package/src/asset/img/img-ztjy/1.png +0 -0
  208. package/src/asset/img/img-ztjy/2.png +0 -0
  209. package/src/asset/img/img-ztjy/3.png +0 -0
  210. package/src/asset/img/img-ztjy/4.png +0 -0
  211. package/src/asset/img/img-ztjy/5.png +0 -0
  212. package/src/asset/img/img-ztjy/6.png +0 -0
  213. package/src/asset/img/img-ztjy/icon/agzy.png +0 -0
  214. package/src/asset/img/img-ztjy/icon/dsxx.png +0 -0
  215. package/src/asset/img/img-ztjy/icon/kcjx.png +0 -0
  216. package/src/asset/img/img-ztjy/icon/pdjy.png +0 -0
  217. package/src/asset/img/img-ztjy/icon/smyaq.png +0 -0
  218. package/src/asset/img/img-ztjy/icon/stwm.png +0 -0
  219. package/src/asset/img/img-ztjy/icon/xffz.png +0 -0
  220. package/src/asset/img/img-ztjy/icon/xljk.png +0 -0
  221. package/src/asset/img/img-ztjy/icon/yxctwh.png +0 -0
  222. package/src/asset/img/incentives/star.png +0 -0
  223. package/src/asset/img/juhe-bg.png +0 -0
  224. package/src/asset/img/left-hover.png +0 -0
  225. package/src/asset/img/left-nor.png +0 -0
  226. package/src/asset/img/living-gif-web.gif +0 -0
  227. package/src/asset/img/loading.svg +0 -52
  228. package/src/asset/img/person.png +0 -0
  229. package/src/asset/img/personalCenter/calendar_icon.png +0 -0
  230. package/src/asset/img/personalCenter/clock.png +0 -0
  231. package/src/asset/img/personalCenter/cover.jpg +0 -0
  232. package/src/asset/img/personalCenter/default_cover.png +0 -0
  233. package/src/asset/img/personalCenter/header_bg.png +0 -0
  234. package/src/asset/img/personalCenter/video_icon.png +0 -0
  235. package/src/asset/img/resource/cover.png +0 -0
  236. package/src/asset/img/resource/more_close.png +0 -0
  237. package/src/asset/img/resource/more_open.png +0 -0
  238. package/src/asset/img/resource/remove.png +0 -0
  239. package/src/asset/img/resource/tags.png +0 -0
  240. package/src/asset/img/resource/upload.png +0 -0
  241. package/src/asset/img/resource//346/211/271/351/207/217/347/274/226/350/276/221@2x.png +0 -0
  242. package/src/asset/img/right-hover.png +0 -0
  243. package/src/asset/img/right-icon.png +0 -0
  244. package/src/asset/img/right-nor.png +0 -0
  245. package/src/asset/img/schoolService/jdyd-1.png +0 -0
  246. package/src/asset/img/schoolService/jdyd-2.png +0 -0
  247. package/src/asset/img/schoolService/jdyd-3.png +0 -0
  248. package/src/asset/img/schoolService/jdyd-cover.png +0 -0
  249. package/src/asset/img/schoolService/jdyd.png +0 -0
  250. package/src/asset/img/schoolService/kpjy-1.png +0 -0
  251. package/src/asset/img/schoolService/kpjy-2.png +0 -0
  252. package/src/asset/img/schoolService/kpjy-3.png +0 -0
  253. package/src/asset/img/schoolService/kpjy-cover.png +0 -0
  254. package/src/asset/img/schoolService/kpjy.png +0 -0
  255. package/src/asset/img/schoolService/tydl-1.png +0 -0
  256. package/src/asset/img/schoolService/tydl-2.png +0 -0
  257. package/src/asset/img/schoolService/tydl-3.png +0 -0
  258. package/src/asset/img/schoolService/tydl-cover.png +0 -0
  259. package/src/asset/img/schoolService/tydl.png +0 -0
  260. package/src/asset/img/schoolService/whys-1.png +0 -0
  261. package/src/asset/img/schoolService/whys-2.png +0 -0
  262. package/src/asset/img/schoolService/whys-3.png +0 -0
  263. package/src/asset/img/schoolService/whys-4.png +0 -0
  264. package/src/asset/img/schoolService/whys-cover.png +0 -0
  265. package/src/asset/img/schoolService/whys.png +0 -0
  266. package/src/asset/img/schoolService/ysjy-1.png +0 -0
  267. package/src/asset/img/schoolService/ysjy-2.png +0 -0
  268. package/src/asset/img/schoolService/ysjy-3.png +0 -0
  269. package/src/asset/img/schoolService/ysjy-4.png +0 -0
  270. package/src/asset/img/schoolService/ysjy-cover.png +0 -0
  271. package/src/asset/img/schoolService/ysjy.png +0 -0
  272. package/src/asset/img/schoolService/yxjy-cover.png +0 -0
  273. package/src/asset/img/schoolService/yxsj-1.png +0 -0
  274. package/src/asset/img/schoolService/yxsj-2.png +0 -0
  275. package/src/asset/img/schoolService/yxsj-3.png +0 -0
  276. package/src/asset/img/schoolService/yxsj.png +0 -0
  277. package/src/asset/img/sedu/catalog/list.png +0 -0
  278. package/src/asset/img/sedu/icon/agzy-prefix.png +0 -0
  279. package/src/asset/img/sedu/icon/agzy.png +0 -0
  280. package/src/asset/img/sedu/icon/arrow-hover.png +0 -0
  281. package/src/asset/img/sedu/icon/arrow.png +0 -0
  282. package/src/asset/img/sedu/icon/dsxx-prefix.png +0 -0
  283. package/src/asset/img/sedu/icon/dsxx.png +0 -0
  284. package/src/asset/img/sedu/icon/epidemic-prevention-bg.png +0 -0
  285. package/src/asset/img/sedu/icon/epidemic-prevention.png +0 -0
  286. package/src/asset/img/sedu/icon/family-bg.png +0 -0
  287. package/src/asset/img/sedu/icon/family.png +0 -0
  288. package/src/asset/img/sedu/icon/film-bg.png +0 -0
  289. package/src/asset/img/sedu/icon/film.png +0 -0
  290. package/src/asset/img/sedu/icon/go-more-hover.png +0 -0
  291. package/src/asset/img/sedu/icon/go-more.png +0 -0
  292. package/src/asset/img/sedu/icon/kcjx.png +0 -0
  293. package/src/asset/img/sedu/icon/ldjy-prefix.png +0 -0
  294. package/src/asset/img/sedu/icon/life-safe-bg.png +0 -0
  295. package/src/asset/img/sedu/icon/life-safe.png +0 -0
  296. package/src/asset/img/sedu/icon/morality-bg.png +0 -0
  297. package/src/asset/img/sedu/icon/morality.png +0 -0
  298. package/src/asset/img/sedu/icon/more-bg.png +0 -0
  299. package/src/asset/img/sedu/icon/more.png +0 -0
  300. package/src/asset/img/sedu/icon/party-history-bg.png +0 -0
  301. package/src/asset/img/sedu/icon/party-history.png +0 -0
  302. package/src/asset/img/sedu/icon/pdjy-prefix.png +0 -0
  303. package/src/asset/img/sedu/icon/pdjy.png +0 -0
  304. package/src/asset/img/sedu/icon/psychological-bg.png +0 -0
  305. package/src/asset/img/sedu/icon/psychological.png +0 -0
  306. package/src/asset/img/sedu/icon/read-bg.png +0 -0
  307. package/src/asset/img/sedu/icon/read.png +0 -0
  308. package/src/asset/img/sedu/icon/smaq-prefix.png +0 -0
  309. package/src/asset/img/sedu/icon/smyaq.png +0 -0
  310. package/src/asset/img/sedu/icon/study-bg.png +0 -0
  311. package/src/asset/img/sedu/icon/study.png +0 -0
  312. package/src/asset/img/sedu/icon/stwm-prefix.png +0 -0
  313. package/src/asset/img/sedu/icon/stwm.png +0 -0
  314. package/src/asset/img/sedu/icon/xffz-prefix.png +0 -0
  315. package/src/asset/img/sedu/icon/xffz.png +0 -0
  316. package/src/asset/img/sedu/icon/xljk-prefix.png +0 -0
  317. package/src/asset/img/sedu/icon/xljk.png +0 -0
  318. package/src/asset/img/sedu/icon/yxctwh-prefix.png +0 -0
  319. package/src/asset/img/sedu/icon/yxctwh.png +0 -0
  320. package/src/asset/img/sedu/nav_new/agzy-1.png +0 -0
  321. package/src/asset/img/sedu/nav_new/agzy-2.png +0 -0
  322. package/src/asset/img/sedu/nav_new/agzy-3.png +0 -0
  323. package/src/asset/img/sedu/nav_new/agzy-cover.png +0 -0
  324. package/src/asset/img/sedu/nav_new/agzy.png +0 -0
  325. package/src/asset/img/sedu/nav_new/dsxx-1.png +0 -0
  326. package/src/asset/img/sedu/nav_new/dsxx-2.png +0 -0
  327. package/src/asset/img/sedu/nav_new/dsxx-3.png +0 -0
  328. package/src/asset/img/sedu/nav_new/dsxx-cover.png +0 -0
  329. package/src/asset/img/sedu/nav_new/dsxx.png +0 -0
  330. package/src/asset/img/sedu/nav_new/jdwy-1.png +0 -0
  331. package/src/asset/img/sedu/nav_new/jdwy-2.png +0 -0
  332. package/src/asset/img/sedu/nav_new/jdwy-3.png +0 -0
  333. package/src/asset/img/sedu/nav_new/ldjy-1.png +0 -0
  334. package/src/asset/img/sedu/nav_new/ldjy-2.png +0 -0
  335. package/src/asset/img/sedu/nav_new/ldjy-3.png +0 -0
  336. package/src/asset/img/sedu/nav_new/ldjy-cover.png +0 -0
  337. package/src/asset/img/sedu/nav_new/ldjy.png +0 -0
  338. package/src/asset/img/sedu/nav_new/pdjy-1.png +0 -0
  339. package/src/asset/img/sedu/nav_new/pdjy-2.png +0 -0
  340. package/src/asset/img/sedu/nav_new/pdjy-3.png +0 -0
  341. package/src/asset/img/sedu/nav_new/pdjy-cover.png +0 -0
  342. package/src/asset/img/sedu/nav_new/pdjy.png +0 -0
  343. package/src/asset/img/sedu/nav_new/smyaq-1.png +0 -0
  344. package/src/asset/img/sedu/nav_new/smyaq-2.png +0 -0
  345. package/src/asset/img/sedu/nav_new/smyaq-3.png +0 -0
  346. package/src/asset/img/sedu/nav_new/smyaq-4.png +0 -0
  347. package/src/asset/img/sedu/nav_new/smyaq-cover.png +0 -0
  348. package/src/asset/img/sedu/nav_new/smyaq.png +0 -0
  349. package/src/asset/img/sedu/nav_new/stwm-1.png +0 -0
  350. package/src/asset/img/sedu/nav_new/stwm-2.png +0 -0
  351. package/src/asset/img/sedu/nav_new/stwm-3.png +0 -0
  352. package/src/asset/img/sedu/nav_new/stwm-cover.png +0 -0
  353. package/src/asset/img/sedu/nav_new/stwm.png +0 -0
  354. package/src/asset/img/sedu/nav_new/xffz-1.png +0 -0
  355. package/src/asset/img/sedu/nav_new/xffz-2.png +0 -0
  356. package/src/asset/img/sedu/nav_new/xffz-3.png +0 -0
  357. package/src/asset/img/sedu/nav_new/xffz-4.png +0 -0
  358. package/src/asset/img/sedu/nav_new/xffz-cover.png +0 -0
  359. package/src/asset/img/sedu/nav_new/xffz.png +0 -0
  360. package/src/asset/img/sedu/nav_new/xljk-1.png +0 -0
  361. package/src/asset/img/sedu/nav_new/xljk-2.png +0 -0
  362. package/src/asset/img/sedu/nav_new/xljk-3.png +0 -0
  363. package/src/asset/img/sedu/nav_new/xljk-cover.png +0 -0
  364. package/src/asset/img/sedu/nav_new/xljk.png +0 -0
  365. package/src/asset/img/sedu/nav_new/yxctwh-1.png +0 -0
  366. package/src/asset/img/sedu/nav_new/yxctwh-2.png +0 -0
  367. package/src/asset/img/sedu/nav_new/yxctwh-3.png +0 -0
  368. package/src/asset/img/sedu/nav_new/zgwhct-cover.png +0 -0
  369. package/src/asset/img/sedu/nav_new/zgwhct.png +0 -0
  370. package/src/asset/img/star.png +0 -0
  371. package/src/asset/img/star_filled.png +0 -0
  372. package/src/asset/img/star_hover.png +0 -0
  373. package/src/asset/img/up-hover.png +0 -0
  374. package/src/asset/img/up-nor.png +0 -0
  375. package/src/asset/img/video-play.svg +0 -6
  376. package/src/asset/style/background.less +0 -20
  377. package/src/asset/style/banner.less +0 -36
  378. package/src/asset/style/base.less +0 -74
  379. package/src/asset/style/index.less +0 -114
  380. package/src/asset/style/reset-theme.less +0 -142
  381. package/src/asset/style/theme/index.less +0 -55
  382. package/src/asset/style/theme/party/global.less +0 -20
  383. package/src/asset/style/theme/party/img/footer-bg.png +0 -0
  384. package/src/asset/style/theme/party/img/header-bg-1.png +0 -0
  385. package/src/asset/style/theme/party/img/header-bg-2.png +0 -0
  386. package/src/asset/style/theme/party/img/header-bg.png +0 -0
  387. package/src/asset/style/theme/party/img/logo.png +0 -0
  388. package/src/asset/style/theme/party/override.less +0 -57
  389. package/src/asset/style/theme/test/global.less +0 -18
  390. package/src/asset/style/theme/test/img/footer-bg.png +0 -0
  391. package/src/asset/style/theme/test/img/header-bg-1.png +0 -0
  392. package/src/asset/style/theme/test/img/header-bg-2.png +0 -0
  393. package/src/asset/style/theme/test/img/header-bg.png +0 -0
  394. package/src/asset/style/theme/test/img/logo.png +0 -0
  395. package/src/asset/style/theme/test/override.less +0 -45
  396. package/src/asset/style/variable.less +0 -12
  397. package/src/component/AliPlayer/index.jsx +0 -49
  398. package/src/component/Avatar/index.jsx +0 -50
  399. package/src/component/Empty/img/empty.png +0 -0
  400. package/src/component/Empty/index.jsx +0 -34
  401. package/src/component/Empty/index.module.less +0 -37
  402. package/src/component/IMChatroom/asset/style/images/welcome-m.png +0 -0
  403. package/src/component/IMChatroom/asset/style/images/welcome.png +0 -0
  404. package/src/component/IMChatroom/asset/style/index.module.less +0 -0
  405. package/src/component/IMChatroom/component/status/403.jsx +0 -13
  406. package/src/component/IMChatroom/component/status/404.jsx +0 -13
  407. package/src/component/IMChatroom/component/status/Error.jsx +0 -23
  408. package/src/component/IMChatroom/component/status/Loading.jsx +0 -5
  409. package/src/component/IMChatroom/config/app/config.js +0 -118
  410. package/src/component/IMChatroom/config/app/index.js +0 -60
  411. package/src/component/IMChatroom/config/env.js +0 -5
  412. package/src/component/IMChatroom/config/index.js +0 -3
  413. package/src/component/IMChatroom/config/request/config/base.js +0 -124
  414. package/src/component/IMChatroom/config/request/config/chatroom.js +0 -26
  415. package/src/component/IMChatroom/config/request/config/imCoreApi.js +0 -21
  416. package/src/component/IMChatroom/config/request/index.js +0 -21
  417. package/src/component/IMChatroom/config/request/proxy.js +0 -39
  418. package/src/component/IMChatroom/config/url.js +0 -7
  419. package/src/component/IMChatroom/constants/errorCode.js +0 -9
  420. package/src/component/IMChatroom/constants/index.js +0 -84
  421. package/src/component/IMChatroom/constants/origin.js +0 -27
  422. package/src/component/IMChatroom/context/chatroom.js +0 -154
  423. package/src/component/IMChatroom/context/connect.js +0 -28
  424. package/src/component/IMChatroom/i18n/en/index.json +0 -73
  425. package/src/component/IMChatroom/i18n/index.jsx +0 -14
  426. package/src/component/IMChatroom/i18n/language.js +0 -9
  427. package/src/component/IMChatroom/i18n/zh-CN/index.json +0 -73
  428. package/src/component/IMChatroom/index.jsx +0 -49
  429. package/src/component/IMChatroom/page/chat/index.jsx +0 -27
  430. package/src/component/IMChatroom/page/chat/messageEditor/index.jsx +0 -375
  431. package/src/component/IMChatroom/page/chat/messageList/index.jsx +0 -354
  432. package/src/component/IMChatroom/page/chat/stickedMessage/index.jsx +0 -59
  433. package/src/component/IMChatroom/page/chat/stickedMessage/style/index.module.less +0 -8
  434. package/src/component/IMChatroom/page/chat/style/index.module.less +0 -52
  435. package/src/component/IMChatroom/page/home/connect/index.jsx +0 -188
  436. package/src/component/IMChatroom/page/home/connect/status.jsx +0 -124
  437. package/src/component/IMChatroom/page/home/context/cmd.jsx +0 -37
  438. package/src/component/IMChatroom/page/home/context/index.jsx +0 -67
  439. package/src/component/IMChatroom/page/home/index.jsx +0 -164
  440. package/src/component/IMChatroom/page/home/notice/index.jsx +0 -123
  441. package/src/component/IMChatroom/page/home/notice/style/index.module.less +0 -50
  442. package/src/component/IMChatroom/page/home/style/images/font-size-active-m.png +0 -0
  443. package/src/component/IMChatroom/page/home/style/images/font-size-active.png +0 -0
  444. package/src/component/IMChatroom/page/home/style/images/font-size-m.png +0 -0
  445. package/src/component/IMChatroom/page/home/style/images/font-size.png +0 -0
  446. package/src/component/IMChatroom/page/home/style/images/notice-active-m.png +0 -0
  447. package/src/component/IMChatroom/page/home/style/images/notice-active.png +0 -0
  448. package/src/component/IMChatroom/page/home/style/images/notice-m.png +0 -0
  449. package/src/component/IMChatroom/page/home/style/images/notice.png +0 -0
  450. package/src/component/IMChatroom/page/home/style/index.module.less +0 -111
  451. package/src/component/IMChatroom/page/member/index.jsx +0 -15
  452. package/src/component/IMChatroom/page/member/memberCount/index.jsx +0 -44
  453. package/src/component/IMChatroom/page/member/memberList/index.jsx +0 -121
  454. package/src/component/IMChatroom/page/member/style/index.module.less +0 -3
  455. package/src/component/IMChatroom/sdk/bridge.js +0 -39
  456. package/src/component/IMChatroom/sdk/cs/constants.js +0 -20
  457. package/src/component/IMChatroom/sdk/cs/index.js +0 -101
  458. package/src/component/IMChatroom/sdk/imChatroom.js +0 -22
  459. package/src/component/IMChatroom/sdk/imcore/constants.js +0 -130
  460. package/src/component/IMChatroom/sdk/imcore/emitters/chatroomDestroyed.js +0 -5
  461. package/src/component/IMChatroom/sdk/imcore/emitters/chatroomInfoGetFail.js +0 -5
  462. package/src/component/IMChatroom/sdk/imcore/emitters/chatroomKickedByAdmin.js +0 -5
  463. package/src/component/IMChatroom/sdk/imcore/emitters/chatroomKickedBySelf.js +0 -5
  464. package/src/component/IMChatroom/sdk/imcore/emitters/chatroomLoginFail.js +0 -5
  465. package/src/component/IMChatroom/sdk/imcore/emitters/chatroomLoginSuccess.js +0 -5
  466. package/src/component/IMChatroom/sdk/imcore/emitters/chatroomMemberLogin.js +0 -5
  467. package/src/component/IMChatroom/sdk/imcore/emitters/chatroomMemberLogout.js +0 -5
  468. package/src/component/IMChatroom/sdk/imcore/emitters/connectionConnected.js +0 -5
  469. package/src/component/IMChatroom/sdk/imcore/emitters/connectionConnecting.js +0 -5
  470. package/src/component/IMChatroom/sdk/imcore/emitters/connectionDisconnect.js +0 -5
  471. package/src/component/IMChatroom/sdk/imcore/emitters/index.js +0 -57
  472. package/src/component/IMChatroom/sdk/imcore/emitters/messageReceive.js +0 -36
  473. package/src/component/IMChatroom/sdk/imcore/index.js +0 -178
  474. package/src/component/IMChatroom/sdk/imcore/interceptors/request.js +0 -7
  475. package/src/component/IMChatroom/sdk/imcore/interceptors/response.js +0 -5
  476. package/src/component/IMChatroom/sdk/imcore/plugins/getAuth.js +0 -64
  477. package/src/component/IMChatroom/sdk/imcore/plugins/getConversationId.js +0 -20
  478. package/src/component/IMChatroom/sdk/imcore/plugins/getExtInfo.js +0 -10
  479. package/src/component/IMChatroom/sdk/imcore/plugins/getLoginInfo.js +0 -48
  480. package/src/component/IMChatroom/sdk/imcore/plugins/getPlatformType.js +0 -12
  481. package/src/component/IMChatroom/sdk/imcore/plugins/index.js +0 -22
  482. package/src/component/IMChatroom/sdk/imcore/util/format.js +0 -177
  483. package/src/component/IMChatroom/sdk/imcore/util/parser.js +0 -35
  484. package/src/component/IMChatroom/sdk/oms.js +0 -18
  485. package/src/component/IMChatroom/sdk/uc.js +0 -3
  486. package/src/component/IMChatroom/subscription/channel/app.js +0 -5
  487. package/src/component/IMChatroom/subscription/channel/ctl.js +0 -22
  488. package/src/component/IMChatroom/subscription/channel/member.js +0 -40
  489. package/src/component/IMChatroom/subscription/channel/message.js +0 -13
  490. package/src/component/IMChatroom/subscription/channel/ntf.js +0 -86
  491. package/src/component/IMChatroom/subscription/channel/tel.js +0 -5
  492. package/src/component/IMChatroom/subscription/channel/websocket.js +0 -5
  493. package/src/component/IMChatroom/subscription/event.js +0 -37
  494. package/src/component/IMChatroom/subscription/index.js +0 -19
  495. package/src/component/IMChatroom/util/account.js +0 -8
  496. package/src/component/IMChatroom/util/chatroom.js +0 -255
  497. package/src/component/IMChatroom/util/jsonBigInt.js +0 -5
  498. package/src/component/IMChatroom/util/location.js +0 -12
  499. package/src/component/Icon/index.jsx +0 -16
  500. package/src/component/Icon/index.module.less +0 -3
  501. package/src/component/Pagination/LocalPagination.jsx +0 -27
  502. package/src/component/Pagination/RemotePagination.jsx +0 -32
  503. package/src/component/Pagination/index.jsx +0 -32
  504. package/src/component/Pagination/index.module.less +0 -117
  505. package/src/component/PlayerTip/index.jsx +0 -34
  506. package/src/component/VideoBase/index.jsx +0 -242
  507. package/src/component/VideoBase/style.less +0 -66
  508. package/src/component/VideoBase/utils.js +0 -81
  509. package/src/component/mixin.less +0 -10
  510. package/src/component/status/403.jsx +0 -15
  511. package/src/component/status/404/img/404.png +0 -0
  512. package/src/component/status/404/index.jsx +0 -73
  513. package/src/component/status/404/index.module.less +0 -36
  514. package/src/component/status/Error/error.module.less +0 -14
  515. package/src/component/status/Error/img/error.png +0 -0
  516. package/src/component/status/Error/index.jsx +0 -47
  517. package/src/component/status/Loading/img/loading.svg +0 -52
  518. package/src/component/status/Loading/index.jsx +0 -31
  519. package/src/component/status/Loading/index.less +0 -57
  520. package/src/component/status/None/img/404.png +0 -0
  521. package/src/component/status/None/index.jsx +0 -20
  522. package/src/component/status/None/index.module.less +0 -35
  523. package/src/component/status/Status/index.jsx +0 -26
  524. package/src/component/status/Status/index.module.less +0 -9
  525. package/src/config/constant/commonUrl.js +0 -2
  526. package/src/config/constant/user.js +0 -6
  527. package/src/config/context/site-config.js +0 -48
  528. package/src/config/env/index.js +0 -5
  529. package/src/config/env/local/index.js +0 -13
  530. package/src/config/env/ncet-xedu/api.js +0 -175
  531. package/src/config/env/ncet-xedu/app.js +0 -12
  532. package/src/config/env/ncet-xedu/cs.js +0 -8
  533. package/src/config/env/ncet-xedu/index.js +0 -14
  534. package/src/config/env/ncet-xedu/push.js +0 -5
  535. package/src/config/env/ncet-xedu-beta/api.js +0 -175
  536. package/src/config/env/ncet-xedu-beta/app.js +0 -12
  537. package/src/config/env/ncet-xedu-beta/cs.js +0 -8
  538. package/src/config/env/ncet-xedu-beta/index.js +0 -14
  539. package/src/config/env/ncet-xedu-beta/push.js +0 -5
  540. package/src/config/env/preproduction/api.js +0 -144
  541. package/src/config/env/preproduction/app.js +0 -12
  542. package/src/config/env/preproduction/cs.js +0 -8
  543. package/src/config/env/preproduction/index.js +0 -14
  544. package/src/config/env/preproduction/push.js +0 -5
  545. package/src/config/env/product/api.js +0 -113
  546. package/src/config/env/product/app.js +0 -12
  547. package/src/config/env/product/cs.js +0 -5
  548. package/src/config/env/product/index.js +0 -14
  549. package/src/config/env/product/push.js +0 -5
  550. package/src/config/live.js +0 -80
  551. package/src/config/publicLive.js +0 -53
  552. package/src/config/request/assessments.js +0 -24
  553. package/src/config/request/config-center.js +0 -8
  554. package/src/config/request/helper.js +0 -190
  555. package/src/config/request/im-broadcasts.js +0 -12
  556. package/src/config/request/live-activity-gateway.js +0 -8
  557. package/src/config/request/live-activity.js +0 -13
  558. package/src/config/request/raw.js +0 -6
  559. package/src/config/request/x-cloud-web.js +0 -13
  560. package/src/config/request/x-proxy.js +0 -34
  561. package/src/demo/Detail.jsx +0 -11
  562. package/src/demo/List.jsx +0 -68
  563. package/src/demo/index.jsx +0 -17
  564. package/src/detail/LineSwitch/index.jsx +0 -71
  565. package/src/detail/LineSwitch/index.module.less +0 -0
  566. package/src/detail/LiveCountDown/index.jsx +0 -44
  567. package/src/detail/LiveCountDown/index.module.less +0 -32
  568. package/src/detail/LiveOnlineCount/img/icon.svg +0 -16
  569. package/src/detail/LiveOnlineCount/index.jsx +0 -68
  570. package/src/detail/LiveOnlineCount/index.module.less +0 -34
  571. package/src/detail/LiveOnlineCount/util.js +0 -74
  572. package/src/detail/LiveStatus/AnchorOnTheWay.jsx +0 -88
  573. package/src/detail/LiveStatus/index.jsx +0 -202
  574. package/src/detail/LiveStatus/index.module.less +0 -193
  575. package/src/detail/LiveVideo/asset/play-button-hover-m.png +0 -0
  576. package/src/detail/LiveVideo/asset/play-button-hover.png +0 -0
  577. package/src/detail/LiveVideo/asset/play-button-m.png +0 -0
  578. package/src/detail/LiveVideo/asset/play-button.png +0 -0
  579. package/src/detail/LiveVideo/config.js +0 -37
  580. package/src/detail/LiveVideo/index.jsx +0 -188
  581. package/src/detail/LiveVideo/index.module.less +0 -41
  582. package/src/detail/NotLoginChatroom/asset/empty-m.png +0 -0
  583. package/src/detail/NotLoginChatroom/asset/empty.png +0 -0
  584. package/src/detail/NotLoginChatroom/index.jsx +0 -37
  585. package/src/detail/NotLoginChatroom/index.module.less +0 -46
  586. package/src/detail/RecordVideo/index.jsx +0 -150
  587. package/src/detail/RecordVideo/index.module.less +0 -32
  588. package/src/detail/ReplayVideo/index.jsx +0 -93
  589. package/src/detail/ReplayVideo/index.module.less +0 -65
  590. package/src/detail/const.js +0 -20
  591. package/src/detail/hook/usePullSource.js +0 -82
  592. package/src/detail/hook/usePullState.js +0 -51
  593. package/src/detail/img/icon_coffee.png +0 -0
  594. package/src/detail/img/icon_completed.png +0 -0
  595. package/src/detail/index.jsx +0 -483
  596. package/src/detail/index.module.less +0 -189
  597. package/src/hook/useAsync.js +0 -84
  598. package/src/hook/useGoToPage.js +0 -83
  599. package/src/hook/useInterval.js +0 -28
  600. package/src/hook/useIsMounted.js +0 -17
  601. package/src/hook/useModuleByRole.js +0 -53
  602. package/src/hook/usePageScrollable.js +0 -52
  603. package/src/hook/usePortal.js +0 -83
  604. package/src/hook/useScrollRestore/index.js +0 -32
  605. package/src/hook/useScrollRestore/scrollContext.js +0 -20
  606. package/src/hook/useTrackRef.js +0 -11
  607. package/src/hook/useWindowSize.js +0 -28
  608. package/src/hook/useZoom.js +0 -47
  609. package/src/index.js +0 -10
  610. package/src/lib/getLiveOnlineCount.js +0 -10
  611. package/src/lib/getServiceConfig.js +0 -102
  612. package/src/list/Empty/img/empty.png +0 -0
  613. package/src/list/Empty/index.jsx +0 -20
  614. package/src/list/Empty/index.module.less +0 -23
  615. package/src/list/ListItem/Action/index.jsx +0 -109
  616. package/src/list/ListItem/Action/index.module.less +0 -26
  617. package/src/list/ListItem/img/dianzan.svg +0 -4
  618. package/src/list/ListItem/img/like-fill.svg +0 -8
  619. package/src/list/ListItem/img/live.png +0 -0
  620. package/src/list/ListItem/img/play.svg +0 -16
  621. package/src/list/ListItem/img/video.svg +0 -3
  622. package/src/list/ListItem/img/view-fill.svg +0 -8
  623. package/src/list/ListItem/img/yiguankan.svg +0 -3
  624. package/src/list/ListItem/index.jsx +0 -135
  625. package/src/list/ListItem/index.module.less +0 -158
  626. package/src/list/index.jsx +0 -241
  627. package/src/list/index.module.less +0 -39
  628. package/src/service/common.js +0 -73
  629. package/src/service/content-mgr.js +0 -73
  630. package/src/service/im-group.js +0 -12
  631. package/src/service/im.js +0 -7
  632. package/src/service/imBroadcasts.js +0 -33
  633. package/src/service/like.js +0 -134
  634. package/src/service/live.js +0 -293
  635. package/src/service/manageApi.js +0 -7
  636. package/src/service/managePortal.js +0 -6
  637. package/src/service/myStudyRecord.js +0 -93
  638. package/src/service/navigation.js +0 -47
  639. package/src/service/ndMeeting.js +0 -10
  640. package/src/service/ndr.js +0 -122
  641. package/src/service/news.js +0 -93
  642. package/src/service/personalCenter.js +0 -270
  643. package/src/service/qualityCourse.js +0 -31
  644. package/src/service/recommend.js +0 -81
  645. package/src/service/school.js +0 -323
  646. package/src/service/search.js +0 -170
  647. package/src/service/site-config.js +0 -7
  648. package/src/service/socialCensor.js +0 -45
  649. package/src/service/specialEdu.js +0 -31
  650. package/src/service/suggestion.js +0 -85
  651. package/src/service/syncClassroom.js +0 -321
  652. package/src/service/tCourse.js +0 -204
  653. package/src/service/tchTraining.js +0 -37
  654. package/src/service/uc.js +0 -45
  655. package/src/util/app.js +0 -1
  656. package/src/util/array.js +0 -3
  657. package/src/util/auth/func.js +0 -57
  658. package/src/util/date.js +0 -53
  659. package/src/util/env.js +0 -9
  660. package/src/util/getTimestamp.js +0 -10
  661. package/src/util/hof.js +0 -105
  662. package/src/util/live/index.js +0 -42
  663. package/src/util/liveCountUtil.js +0 -52
  664. package/src/util/netUrl.js +0 -35
  665. package/src/util/object.js +0 -13
  666. package/src/util/push/index.js +0 -58
  667. package/src/util/request.js +0 -227
  668. package/src/util/type.js +0 -17
  669. package/src/util/url.js +0 -203
  670. package/src/util/video.js +0 -26
  671. package/test/setup.js +0 -21
  672. package/test/unit/component/header/logo.spec.jsx +0 -8
  673. package/test/unit/helper.jsx +0 -25
  674. package/test/unit/util/date.spec.js +0 -40
@@ -1,47 +0,0 @@
1
- import { useEffect } from 'react'
2
-
3
- const MiniContentWitdh = 1368
4
-
5
- export default function useZoom() {
6
- useEffect(() => {
7
- zoomToViewPort()
8
- }, [])
9
- }
10
-
11
- function zoomToViewPort() {
12
- if (window.location.pathname === '/home') {
13
- const target = document.querySelector('.main')
14
- if (target) {
15
- const availWidth = window.innerWidth
16
- if (availWidth < MiniContentWitdh) {
17
- const scale = availWidth / MiniContentWitdh
18
- target.style.width = `${MiniContentWitdh}px`
19
- target.style.transform = `scale(${scale})`
20
- target.style.transformOrigin = '0 0'
21
- setTimeout(() => {
22
- const wrapTarget = document.querySelector('.main-wrapper')
23
- wrapTarget.style.height = `${window.screen.availHeight - 300}px`
24
- wrapTarget.addEventListener('scroll', () => {
25
- const maxHeight = target.getBoundingClientRect().height
26
- - wrapTarget.getBoundingClientRect().height
27
- if (wrapTarget.scrollTop >= maxHeight) {
28
- wrapTarget.scrollTop = maxHeight
29
- }
30
- })
31
- setInterval(() => {
32
- let n = 0
33
- const t = setInterval(() => {
34
- n += 1
35
- if (n < 8) {
36
- const h = wrapTarget.getBoundingClientRect().height
37
- window.parent.postMessage(h, '*')
38
- } else {
39
- clearInterval(t)
40
- }
41
- }, 300)
42
- }, 1000)
43
- }, 100)
44
- }
45
- }
46
- }
47
- }
package/src/index.js DELETED
@@ -1,10 +0,0 @@
1
- import React from 'react'
2
- import { render } from 'react-dom'
3
-
4
- import Demo from './demo'
5
-
6
- // 测试页面内容
7
- render(
8
- <Demo />,
9
- document.querySelector('#root')
10
- )
@@ -1,10 +0,0 @@
1
- import { getResourceLikesForLive } from '@/service/like'
2
-
3
- const ResourceType = 'open_live'
4
-
5
- export async function getLiveOnlineCount(liveId) {
6
- const likesData = await getResourceLikesForLive(liveId, ResourceType)
7
- const count = likesData?.open_live_count || 0
8
- const currentCount = count === 0 ? 1 : count
9
- return currentCount
10
- }
@@ -1,102 +0,0 @@
1
- import MutexLock from 'mutex-lock'
2
- import configCenterAPI from '@/config/request/config-center'
3
- import config from '@/config/env'
4
-
5
- const {
6
- app,
7
- env: defaultEnv
8
- } = config
9
- const LiveCache = {}
10
- const defaultSdpAppId = app.appid
11
-
12
- const useLocalDirectly = true // 不发请求,直接使用本地数据
13
- const localConfig = {
14
- 'x-cloud': {
15
- properties: {
16
- recommend_week: 'week_1', // 首页本周推荐(周数)
17
- live_close_login: '0', // 直播间登录验证降级配置(启用后所有人都以游客身份进入直播间,跳过UC鉴权),默认不启用
18
- live_record_random_delay_sec: 99, // 用于各端上报用户参与直播的随机离散时间
19
- download_url: ''
20
- }
21
- }
22
- }
23
-
24
- /**
25
- * 获取服务组件配置
26
- *
27
- * @param {string} sdpAppId
28
- * @param {string} serviceName 服务组件标识
29
- * @param {string?} env 环境
30
- */
31
- export default async function getServiceConfig(
32
- serviceName,
33
- sdpAppId = defaultSdpAppId,
34
- env = defaultEnv
35
- ) {
36
- if (useLocalDirectly) {
37
- return localConfig[serviceName]
38
- }
39
- const key = `ServiceConfig_${serviceName}_${sdpAppId}`
40
- const mutexLock = getMutexLock(key)
41
- const lockId = await mutexLock.request()
42
-
43
- const cacheData = loadFromCache(key)
44
- if (cacheData) {
45
- mutexLock.release(lockId)
46
- return cacheData
47
- }
48
- const url = `/configs/merge/config_type/service_component/format_code/${encodeURIComponent(serviceName)
49
- }/open_way/${encodeURIComponent(`${sdpAppId}||||`)}/public_configs/for_web`
50
-
51
- let data
52
- try {
53
- const result = await configCenterAPI.get(url, {
54
- headers: {
55
- 'x-config-dispatch-env': env
56
- }
57
- })
58
- data = result.data
59
- } catch (e) {
60
- mutexLock.release(lockId)
61
- throw e
62
- }
63
-
64
- // const ttl = data.ttl || 3600
65
- const ttl = 900 // 登录降级产品配置需求调整为 15 分钟,服务端也有 1 小时缓存
66
- data.expire = new Date().getTime() + ttl * 1000
67
- LiveCache[key] = data
68
- window.localStorage.setItem(key, JSON.stringify(data))
69
- mutexLock.release(lockId)
70
- return data
71
- }
72
-
73
- function loadFromCache(key) {
74
- if (LiveCache[key]) {
75
- return LiveCache[key]
76
- }
77
- const cacheStr = window.localStorage.getItem(key)
78
- let cacheData
79
- try {
80
- cacheData = JSON.parse(cacheStr)
81
- } catch (e) {
82
- return null
83
- }
84
-
85
- if (cacheData) {
86
- const expire = cacheData.expire || 0
87
- if (expire > new Date().getTime()) {
88
- return cacheData
89
- }
90
- }
91
- }
92
-
93
- /**
94
- * 根据key给与不同的同步锁
95
- */
96
- const Lock = {}
97
- function getMutexLock(key) {
98
- if (!Lock[key]) {
99
- Lock[key] = new MutexLock()
100
- }
101
- return Lock[key]
102
- }
Binary file
@@ -1,20 +0,0 @@
1
- import React from 'react'
2
- import classNames from 'classnames'
3
-
4
- import style from './index.module.less'
5
-
6
- export default function Empty({
7
- tip = '暂无内容',
8
- className
9
- }) {
10
- return (
11
- <div className={classNames(style['empty-wrap'], className)}>
12
- <div className={style['img-wrap']}>
13
- <div>
14
- <img src={require('./img/empty.png')} alt="" />
15
- </div>
16
- <div className={style.tip}>{tip}</div>
17
- </div>
18
- </div>
19
- )
20
- }
@@ -1,23 +0,0 @@
1
- .empty-wrap {
2
- margin-top: 100px;
3
-
4
- .img-wrap {
5
- padding: 16px;
6
- display: flex;
7
- align-items: center;
8
- justify-content: center;
9
- flex-direction: column;
10
-
11
- img {
12
- width: 260px;
13
- height: 182px;
14
- }
15
- }
16
-
17
- .tip {
18
- font-size: 16px;
19
- color: #666;
20
- line-height: 24px;
21
- margin-top: 32px;
22
- }
23
- }
@@ -1,109 +0,0 @@
1
- import React, { useState } from 'react'
2
- import classNames from 'classnames'
3
- import { message } from 'fish'
4
- import { find } from 'lodash'
5
- import { openLiveSubscribe } from '@/service/live'
6
- import style from './index.module.less'
7
-
8
- const Actions = {
9
- 1: '进入直播', // 直播中 或者开播前15min
10
- 2: '观看回放', // 回放
11
- 3: '预约', // 预告 且开播时间大于 15min
12
- 4: '已预约'
13
- }
14
-
15
- export default function Action({
16
- data,
17
- subscription,
18
- onActionDetailClick,
19
- handleLogin,
20
- isLogin,
21
- onSubscribe,
22
- setIsSubscribe,
23
- status
24
- }) {
25
- const { live_id: liveId, begin_time: beginTime } = data
26
- const [curAction, setCurAction] = useState(() => {
27
- let actionNum
28
- if (status === 1 || status === 3) {
29
- actionNum = 1
30
- } else if (status === 2) {
31
- actionNum = 2
32
- } else { // status = 0
33
- // 如果超过了开播时间,不管有没有预约,都直接进入直播
34
- const now = new Date().getTime()
35
- const begin = new Date(beginTime).getTime()
36
- if (now > begin) {
37
- actionNum = 1
38
- return actionNum
39
- }
40
- // 开播前15分钟,只提供进入直播按钮
41
- if (begin > now && (begin - now) < 15 * 60 * 1000) {
42
- actionNum = 1
43
- return actionNum
44
- }
45
- // 开播前15分钟之外
46
- const subscriptionItem = find(subscription, {
47
- live_id: liveId
48
- })
49
- if (subscriptionItem?.is_subscribe) { // 已预约
50
- actionNum = 4
51
- } else { // 未预约
52
- actionNum = 3
53
- }
54
- }
55
- return actionNum
56
- })
57
-
58
- const handleBtnClick = async (e) => {
59
- e.stopPropagation()
60
- if (curAction === 3) {
61
- try {
62
- if (!isLogin) {
63
- handleLogin(data)
64
- return
65
- }
66
-
67
- await openLiveSubscribe({
68
- liveId
69
- })
70
- message.success('预约成功')
71
- const now = new Date().getTime()
72
- const begin = new Date(beginTime).getTime()
73
- setIsSubscribe(true)
74
- if (begin > now && (begin - now) < 15 * 60 * 1000) {
75
- setCurAction(1)
76
- } else {
77
- setCurAction(4)
78
- }
79
- onSubscribe({
80
- ...data,
81
- is_subscribe: true
82
- })
83
- } catch (error) {
84
- onSubscribe({
85
- ...data,
86
- is_subscribe: false
87
- })
88
- if (error?.response?.data?.message === '直播开始前15分钟无法预约') {
89
- setCurAction(3)
90
- }
91
- message.error(error?.response?.data?.message || '预约失败,请稍后重试')
92
- }
93
- } else {
94
- onActionDetailClick()
95
- }
96
- }
97
-
98
- return (
99
- <div
100
- className={classNames(style.action, {
101
- [style['action-subscribe']]: curAction === 3,
102
- [style['action-has-subscribe']]: curAction === 4
103
- })}
104
- onClick={handleBtnClick}
105
- >
106
- {Actions[curAction]}
107
- </div>
108
- )
109
- }
@@ -1,26 +0,0 @@
1
- .action {
2
- font-size: 14px;
3
- line-height: 22px;
4
- color: #1E62EC;
5
- border-radius: 144.889px;
6
- border: 1px solid #1E62EC;
7
- width: 88px;
8
- height: 32px;
9
- display: flex;
10
- align-items: center;
11
- justify-content: center;
12
- margin-top: 8px;
13
-
14
- &:hover {
15
- color: #4079EF;
16
- border: 1px solid #4079EF;
17
-
18
- }
19
- }
20
-
21
-
22
-
23
- .action-has-subscribe {
24
- border: 1px solid #B7CCF9 !important;
25
- color: #B7CCF9 !important;
26
- }
@@ -1,4 +0,0 @@
1
- <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M7.89813 1.82793L4.50419 5.22187C4.40473 5.3213 4.34884 5.45616 4.34881 5.5968V11.7409C4.34881 12.0338 4.58623 12.2712 4.87911 12.2712H10.6223C10.8372 12.2713 11.0309 12.1416 11.1128 11.9429L12.7541 7.95771C12.8068 7.8295 12.8338 7.69222 12.8337 7.55361V6.43786C12.8337 5.8521 12.3588 5.37725 11.7731 5.37725H8.37911L8.99055 2.97498C9.06988 2.6637 8.95419 2.33526 8.69729 2.1424L8.24495 1.80301C8.13927 1.72378 7.99139 1.7344 7.89813 1.82793Z" fill="#CCCCCC"/>
3
- <path d="M3.2882 5.90755H1.6973C1.40442 5.90755 1.16699 6.14498 1.16699 6.43786V11.7409C1.16699 12.0338 1.40442 12.2712 1.6973 12.2712H3.2882V5.90755Z" fill="#CCCCCC"/>
4
- </svg>
@@ -1,8 +0,0 @@
1
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g id="icon_planar/web_icon_&#231;&#130;&#185;&#232;&#181;&#158;_fill">
3
- <g id="&#232;&#183;&#175;&#229;&#190;&#132;">
4
- <path d="M9.02622 2.08907L5.14744 5.96785C5.03377 6.08149 4.96989 6.23561 4.96986 6.39634V13.4182C4.96986 13.7529 5.2412 14.0242 5.57592 14.0242H12.1396C12.3852 14.0243 12.6066 13.8762 12.7002 13.6491L14.5759 9.09452C14.6361 8.948 14.667 8.7911 14.6668 8.6327V7.35755C14.6668 6.68812 14.1241 6.14543 13.4547 6.14543H9.57592L10.2747 3.39998C10.3654 3.04423 10.2332 2.66887 9.93956 2.44846L9.42259 2.06058C9.30181 1.97003 9.13281 1.98218 9.02622 2.08907Z" fill="#CCCCCC"/>
5
- <path d="M3.75774 6.75149H1.93956C1.60484 6.75149 1.3335 7.02283 1.3335 7.35755V13.4182C1.3335 13.7529 1.60484 14.0242 1.93956 14.0242H3.75774V6.75149Z" fill="#CCCCCC"/>
6
- </g>
7
- </g>
8
- </svg>
Binary file
@@ -1,16 +0,0 @@
1
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
2
- y="0px" width="24px" height="24px" viewBox="0 0 24 24" style="enable-background:new 0 0 50 50;" xml:space="preserve">
3
- <rect x="0" y="0" width="4" height="7" fill="#fff">
4
- <animateTransform attributeType="xml" attributeName="transform" type="scale" values="1,1; 1,3; 1,1" begin="0s"
5
- dur="0.6s" repeatCount="indefinite" />
6
- </rect>
7
-
8
- <rect x="10" y="0" width="4" height="7" fill="#fff">
9
- <animateTransform attributeType="xml" attributeName="transform" type="scale" values="1,1; 1,3; 1,1" begin="0.2s"
10
- dur="0.6s" repeatCount="indefinite" />
11
- </rect>
12
- <rect x="20" y="0" width="4" height="7" fill="#fff">
13
- <animateTransform attributeType="xml" attributeName="transform" type="scale" values="1,1; 1,3; 1,1" begin="0.4s"
14
- dur="0.6s" repeatCount="indefinite" />
15
- </rect>
16
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M11.3334 3.33317C11.3334 2.96498 11.0349 2.6665 10.6667 2.6665H1.33335C0.965164 2.6665 0.666687 2.96498 0.666687 3.33317V12.6665C0.666687 13.0347 0.965164 13.3332 1.33335 13.3332H10.6667C11.0349 13.3332 11.3334 13.0347 11.3334 12.6665V9.8665L14.8087 12.2998C14.9106 12.3712 15.0437 12.38 15.154 12.3225C15.2644 12.265 15.3335 12.1509 15.3334 12.0265V3.97317C15.3335 3.84877 15.2644 3.73464 15.154 3.67717C15.0437 3.61969 14.9106 3.62843 14.8087 3.69984L11.3334 6.13317V3.33317ZM4.67202 6.09917C4.69737 5.97499 4.80662 5.88581 4.93335 5.88584C4.98396 5.8853 5.03367 5.89984 5.07669 5.9265L7.98002 7.7745L8.02202 7.80784C8.14544 7.9276 8.12489 8.13115 7.98002 8.22384L5.07669 10.0718L5.02802 10.0958C4.85351 10.1621 4.66666 10.0332 4.66669 9.8465V6.15184L4.67202 6.09917Z" fill="#CCCCCC"/>
3
- </svg>
@@ -1,8 +0,0 @@
1
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g id="icon_planar/web_icon_&#230;&#181;&#143;&#232;&#167;&#136;&#233;&#135;&#143;_fill">
3
- <g id="&#232;&#183;&#175;&#229;&#190;&#132;">
4
- <path fill-rule="evenodd" clip-rule="evenodd" d="M8.0002 13C5.55571 13 3.37488 11.4573 1.46255 8.44367C1.29048 8.17291 1.29048 7.82709 1.46255 7.55633C3.37488 4.54267 5.55571 3 8.0002 3C10.4447 3 12.6255 4.54267 14.5379 7.55633C14.7099 7.82709 14.7099 8.17291 14.5379 8.44367C12.6255 11.4573 10.4447 13 8.0002 13ZM5.33352 8C5.33352 9.47276 6.52743 10.6667 8.00018 10.6667C9.47294 10.6667 10.6669 9.47276 10.6669 8C10.6669 6.52724 9.47294 5.33333 8.00018 5.33333C6.52743 5.33333 5.33352 6.52724 5.33352 8Z" fill="#CCCCCC"/>
5
- <path d="M9.34553 8C9.34553 8.73633 8.7432 9.33333 8.0002 9.33333C7.2572 9.33333 6.65487 8.73633 6.65487 8C6.65487 7.26367 7.2572 6.66667 8.0002 6.66667C8.7432 6.66667 9.34553 7.26367 9.34553 8Z" fill="#CCCCCC"/>
6
- </g>
7
- </g>
8
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="15" height="14" viewBox="0 0 15 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M12.75 1.75033C12.75 1.42833 12.4887 1.16699 12.1667 1.16699H2.83333C2.51133 1.16699 2.25 1.42833 2.25 1.75033V12.2503C2.25 12.5723 2.51133 12.8337 2.83333 12.8337H12.1667C12.4887 12.8337 12.75 12.5723 12.75 12.2503V8.89149L9.97392 11.6676L7.49708 11.6641L7.50058 9.19191L12.75 3.94191V1.75033ZM14.0287 5.96316L13.2038 5.13833L8.66667 9.67549L8.6655 10.4992L9.4915 10.5003L14.0287 5.96316ZM7.5 7.00033H4.58333V8.16699H7.5V7.00033ZM4.58333 4.66699H9.25V5.83366H4.58333V4.66699Z" fill="#CCCCCC"/>
3
- </svg>
@@ -1,135 +0,0 @@
1
- import React, { useEffect, useState } from 'react'
2
- import dayjs from 'dayjs'
3
- import classNames from 'classnames'
4
- import { find } from 'lodash'
5
- import Avatar from '@/component/Avatar'
6
- import Icon from '@/component/Icon'
7
- import { formatLikesCount, formatUVCount } from '@/util/liveCountUtil'
8
- import { getResourceLikes } from '@/service/like'
9
- import Action from './Action'
10
- import DefaultCover from './img/live.png'
11
- import PlayImg from './img/play.svg'
12
- import dianZan from './img/like-fill.svg'
13
- import yiYue from './img/view-fill.svg'
14
- import videoSvg from './img/video.svg'
15
- import style from './index.module.less'
16
-
17
- const TagName = {
18
- 0: '直播预告',
19
- 1: '直播中',
20
- 2: '直播回放',
21
- 3: '直播中' // 实际是暂停
22
- }
23
-
24
- export default function ListItem({
25
- data,
26
- themeName,
27
- subscription,
28
- onDetailClick,
29
- handleLogin,
30
- isLogin,
31
- onSubscribe
32
- }) {
33
- const {
34
- live_id: liveId,
35
- live_name: liveName,
36
- begin_time: beginTime,
37
- // end_time: endTime,
38
- cover_url: coverUrl,
39
- status
40
- } = data
41
- const [liveExt, setLiveExt] = useState({})
42
- const [isSubscribe, setIsSubscribe] = useState(() => {
43
- if (status === 0) {
44
- // 开播前15分钟之外
45
- const subscriptionItem = find(subscription, {
46
- live_id: liveId
47
- })
48
- if (subscriptionItem?.is_subscribe) { // 已预约
49
- return true
50
- } else { // 未预约
51
- return false
52
- }
53
- } else {
54
- return false
55
- }
56
- })
57
-
58
- useEffect(() => {
59
- (async () => {
60
- const res = await getResourceLikes(liveId)
61
- setLiveExt(res || {})
62
- })()
63
- }, [])
64
-
65
- const handleDetailClick = async () => {
66
- if (data.login && !isLogin) {
67
- handleLogin(data)
68
- return
69
- }
70
- if (onDetailClick) {
71
- onDetailClick(data)
72
- } else {
73
- // 默认跳转中小学
74
- window.open(`https://basic.smartedu.cn/publicLive/${liveId}`)
75
- }
76
- }
77
-
78
- return (
79
- <div
80
- className={classNames(style.container, themeName)}
81
- onClick={handleDetailClick}
82
- >
83
- <div className={style.right}>
84
- <div className={style['right-top']}>
85
- <div className={style.title}>{liveName}</div>
86
- </div>
87
- <div className={style['right-bottom']}>
88
- <div className={`${style.time} ${status === 0 ? style['foreshow-time'] : ''} time-box`}>
89
- {isSubscribe ? <Icon type="web_icon_shijian_fill" className={`${style['time-icon']} checked-icon`} /> : <img src={videoSvg} className={style['time-icon']} />}
90
-
91
- {status === 2 ? (
92
- `${dayjs(beginTime).format('YYYY/MM/DD HH:mm')}`
93
- ) : (
94
- `${dayjs(beginTime).format('YYYY/MM/DD HH:mm')} 开始`
95
- )}
96
-
97
- <div className={style.like_sty}>
98
- <div className={style.icon_bottom}>
99
- <img src={yiYue} />
100
- {formatUVCount(liveExt.total_uv || 0)}
101
- </div>
102
- <div className={style.icon_bottom}>
103
- <img src={dianZan} alt="" />
104
- {formatLikesCount(liveExt.like_count || 0)}
105
- </div>
106
- </div>
107
- </div>
108
-
109
- <Action
110
- data={data}
111
- subscription={subscription}
112
- onActionDetailClick={handleDetailClick}
113
- handleLogin={handleLogin}
114
- isLogin={isLogin}
115
- onSubscribe={onSubscribe}
116
- setIsSubscribe={setIsSubscribe}
117
- status={status}
118
- />
119
-
120
- </div>
121
- </div>
122
- <div className={style.left}>
123
- <div className={classNames(style.tag, style[`tag${status}`])}>
124
- {status === 1 || status === 3 ? <img src={PlayImg} alt="" /> : null}
125
- {TagName[status]}
126
- </div>
127
- <Avatar
128
- src={coverUrl || DefaultCover}
129
- errorImg={DefaultCover}
130
- className={style.avatar}
131
- />
132
- </div>
133
- </div>
134
- )
135
- }