@x-edu/live-player 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (645) hide show
  1. package/.browserslistrc +10 -0
  2. package/.eslintignore +8 -0
  3. package/.eslintrc.js +26 -0
  4. package/.gem-mine +11 -0
  5. package/.postcssrc.js +6 -0
  6. package/babel.config.js +33 -0
  7. package/dist/XEduLivePlayer.umd.min.js +29419 -0
  8. package/dist/img/icon_coffee.afc4fe2f.png +0 -0
  9. package/dist/img/icon_completed.19a464a3.png +0 -0
  10. package/dist/img/play-button-hover.fdb338b1.png +0 -0
  11. package/dist/img/play-button.f4b271fb.png +0 -0
  12. package/dist/img/reload.3cf8ef22.png +0 -0
  13. package/gem-mine.config.js +86 -0
  14. package/jest.config.js +9 -0
  15. package/jsconfig.json +15 -0
  16. package/mock/helper.js +8 -0
  17. package/mock/index.js +34 -0
  18. package/package.json +96 -0
  19. package/public/.well-known/apple-app-site-association +1 -0
  20. package/public/3rd/ali-player/alipayercomponents-1.0.8.min.js +26 -0
  21. package/public/3rd/ali-player/aliplayer-hls-min.js +28 -0
  22. package/public/3rd/ali-player/aliplayer-min.css +1 -0
  23. package/public/3rd/ali-player/aliplayer-min.js +2 -0
  24. package/public/3rd/ali-player/img/fullscreen.png +0 -0
  25. package/public/3rd/ali-player/img/playanimation.png +0 -0
  26. package/public/3rd/ali-player/img/smallscreen.png +0 -0
  27. package/public/3rd/ali-player/img/volume.png +0 -0
  28. package/public/3rd/im-web-push/index.umd.js +14 -0
  29. package/public/JsBridge.js +1602 -0
  30. package/public/fish/editor/lang/zh-cn/zh-cn.min.js +1 -0
  31. package/public/fish/editor/loading.gif +0 -0
  32. package/public/fish/editor/themes/default/css/ueditor.css +1906 -0
  33. package/public/fish/editor/themes/default/images/icons.png +0 -0
  34. package/public/fish/editor/themes/default/images/scale.png +0 -0
  35. package/public/fish/editor/themes/default/images/spacer.gif +0 -0
  36. package/public/fish/editor/themes/default/images/videologo.gif +0 -0
  37. package/public/fish/editor/themes/iframe.css +0 -0
  38. package/public/fish/editor/third-party/codemirror/codemirror.css +104 -0
  39. package/public/fish/editor/third-party/codemirror/codemirror.js +3581 -0
  40. package/public/fish/editor/third-party/zeroclipboard/ZeroClipboard.js +1256 -0
  41. package/public/fish/editor/ueditor.all.min.js +17 -0
  42. package/public/fish/editor/ueditor.config.js +467 -0
  43. package/public/fish/icon/umd-4.1.2.js +2 -0
  44. package/public/fish/video/icon_active.gif +0 -0
  45. package/public/fish/video/videoplayer.min.css +7 -0
  46. package/public/fish/video/videoplayer.min.js +32 -0
  47. package/public/fish/video/zh-CN.js +83 -0
  48. package/public/icon/demo.css +539 -0
  49. package/public/icon/demo_index.html +2189 -0
  50. package/public/icon/iconfont.css +363 -0
  51. package/public/icon/iconfont.js +1 -0
  52. package/public/icon/iconfont.json +618 -0
  53. package/public/icon/iconfont.ttf +0 -0
  54. package/public/icon/iconfont.woff +0 -0
  55. package/public/icon/iconfont.woff2 +0 -0
  56. package/public/index.html +50 -0
  57. package/script/image/readme.md +77 -0
  58. package/script/postcss.js +48 -0
  59. package/src/App.jsx +18 -0
  60. 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
  61. package/src/asset/img/activeBanner//344/271/211/345/212/241/346/225/231/350/202/262.png +0 -0
  62. 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
  63. package/src/asset/img/activeBanner//344/275/223/350/202/262/351/224/273/347/202/274.png +0 -0
  64. package/src/asset/img/activeBanner//345/205/232/345/217/262/345/255/246/344/271/240.png +0 -0
  65. package/src/asset/img/activeBanner//345/205/232/345/273/272/345/276/267/350/202/262.png +0 -0
  66. package/src/asset/img/activeBanner//345/212/263/345/212/250/345/205/211/350/215/243.png +0 -0
  67. package/src/asset/img/activeBanner//345/212/263/345/212/250/345/257/274/350/210/252.png +0 -0
  68. package/src/asset/img/activeBanner//345/212/263/345/212/250/346/225/231/350/202/262.png +0 -0
  69. package/src/asset/img/activeBanner//345/212/263/345/212/250/346/231/272/346/205/247.png +0 -0
  70. package/src/asset/img/activeBanner//345/223/201/345/276/267/346/225/231/350/202/262.png +0 -0
  71. package/src/asset/img/activeBanner//345/255/246/345/211/215/346/225/231/350/202/262.png +0 -0
  72. package/src/asset/img/activeBanner//345/256/252/346/263/225/346/263/225/346/262/273.png +0 -0
  73. 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
  74. 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
  75. 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
  76. package/src/asset/img/activeBanner//345/275/261/350/247/206/346/225/231/350/202/262.png +0 -0
  77. package/src/asset/img/activeBanner//345/277/203/347/220/206/345/201/245/345/272/267.png +0 -0
  78. package/src/asset/img/activeBanner//346/200/235/346/224/277/350/257/276/347/250/213.png +0 -0
  79. package/src/asset/img/activeBanner//346/225/231/345/255/246/346/210/220/346/236/234.png +0 -0
  80. package/src/asset/img/activeBanner//346/225/231/346/235/220/344/270/223/345/214/272.png +0 -0
  81. package/src/asset/img/activeBanner//346/225/231/350/202/262/344/277/241/346/201/257/345/214/226.png +0 -0
  82. package/src/asset/img/activeBanner//346/226/207/345/214/226/350/211/272/346/234/257.png +0 -0
  83. package/src/asset/img/activeBanner//346/231/256/351/200/232/351/253/230/344/270/255.png +0 -0
  84. package/src/asset/img/activeBanner//347/210/261/345/233/275/344/270/273/344/271/211.png +0 -0
  85. package/src/asset/img/activeBanner//347/211/271/346/256/212/346/225/231/350/202/262.png +0 -0
  86. package/src/asset/img/activeBanner//347/224/237/345/221/275/344/270/216/345/256/211/345/205/250.png +0 -0
  87. package/src/asset/img/activeBanner//347/224/237/346/200/201/346/226/207/346/230/216.png +0 -0
  88. package/src/asset/img/activeBanner//347/240/224/345/255/246/345/256/236/350/267/265.png +0 -0
  89. package/src/asset/img/activeBanner//347/247/221/346/231/256/346/225/231/350/202/262.png +0 -0
  90. package/src/asset/img/activeBanner//347/273/217/345/205/270/351/230/205/350/257/273.png +0 -0
  91. package/src/asset/img/activeBanner//347/273/274/345/220/210/346/224/271/351/235/251.png +0 -0
  92. package/src/asset/img/advertisement.png +0 -0
  93. package/src/asset/img/bg-block.png +0 -0
  94. package/src/asset/img/bookhover.png +0 -0
  95. package/src/asset/img/card.png +0 -0
  96. package/src/asset/img/catalog/article.png +0 -0
  97. package/src/asset/img/catalog/audio.png +0 -0
  98. package/src/asset/img/catalog/course.png +0 -0
  99. package/src/asset/img/catalog/document.png +0 -0
  100. package/src/asset/img/catalog/image.png +0 -0
  101. package/src/asset/img/catalog/link.png +0 -0
  102. package/src/asset/img/catalog/openClassLive.png +0 -0
  103. package/src/asset/img/catalog/other.png +0 -0
  104. package/src/asset/img/catalog/video.png +0 -0
  105. package/src/asset/img/class-live-header-icon.png +0 -0
  106. package/src/asset/img/content/article.png +0 -0
  107. package/src/asset/img/content/document.png +0 -0
  108. package/src/asset/img/content/image.png +0 -0
  109. package/src/asset/img/content/url.png +0 -0
  110. package/src/asset/img/content/video.png +0 -0
  111. package/src/asset/img/contentType/default.png +0 -0
  112. package/src/asset/img/contentType/x_article.png +0 -0
  113. package/src/asset/img/contentType/x_audio_video.png +0 -0
  114. package/src/asset/img/contentType/x_course.png +0 -0
  115. package/src/asset/img/contentType/x_document.png +0 -0
  116. package/src/asset/img/contentType/x_image_list.png +0 -0
  117. package/src/asset/img/course/book.svg +1 -0
  118. package/src/asset/img/course/courseBg.png +0 -0
  119. package/src/asset/img/course/default.png +0 -0
  120. package/src/asset/img/course/document.png +0 -0
  121. package/src/asset/img/course/done.png +0 -0
  122. package/src/asset/img/course/file_doc.svg +1 -0
  123. package/src/asset/img/course/file_doc_active.svg +1 -0
  124. package/src/asset/img/course/file_video.svg +1 -0
  125. package/src/asset/img/course/file_video_active.svg +1 -0
  126. package/src/asset/img/course/icon_checkbox_linear.svg +1 -0
  127. package/src/asset/img/course/icondown.png +0 -0
  128. package/src/asset/img/course/learning.png +0 -0
  129. package/src/asset/img/course/lecturerDefault.png +0 -0
  130. package/src/asset/img/course/nolearn.png +0 -0
  131. package/src/asset/img/course/noplay.png +0 -0
  132. package/src/asset/img/course/pause.png +0 -0
  133. package/src/asset/img/course/people.png +0 -0
  134. package/src/asset/img/course/play.png +0 -0
  135. package/src/asset/img/course/playing.svg +22 -0
  136. package/src/asset/img/course/reload.png +0 -0
  137. package/src/asset/img/course/shouqi_icon.png +0 -0
  138. package/src/asset/img/course/test.png +0 -0
  139. package/src/asset/img/course/video.png +0 -0
  140. package/src/asset/img/def/resource_def.png +0 -0
  141. package/src/asset/img/def/studio_def.png +0 -0
  142. package/src/asset/img/def-avatar.jpg +0 -0
  143. package/src/asset/img/download-active.png +0 -0
  144. package/src/asset/img/download.png +0 -0
  145. package/src/asset/img/eduReform/djdy-cover.png +0 -0
  146. package/src/asset/img/eduReform/djdy.png +0 -0
  147. package/src/asset/img/eduReform/jxcg-1.png +0 -0
  148. package/src/asset/img/eduReform/jxcg-2.png +0 -0
  149. package/src/asset/img/eduReform/jxcg-3.png +0 -0
  150. package/src/asset/img/eduReform/jxcg-4.png +0 -0
  151. package/src/asset/img/eduReform/jxcg-cover.png +0 -0
  152. package/src/asset/img/eduReform/jxgg.png +0 -0
  153. package/src/asset/img/eduReform/jyxxh-cover.png +0 -0
  154. package/src/asset/img/eduReform/jyxxh.png +0 -0
  155. package/src/asset/img/eduReform/ptgz-cover.png +0 -0
  156. package/src/asset/img/eduReform/ptgz.png +0 -0
  157. package/src/asset/img/eduReform/sjgz-cover.png +0 -0
  158. package/src/asset/img/eduReform/sjgz.png +0 -0
  159. package/src/asset/img/eduReform/tsjy-cover.png +0 -0
  160. package/src/asset/img/eduReform/tsjy.png +0 -0
  161. package/src/asset/img/eduReform/xqjy-1.png +0 -0
  162. package/src/asset/img/eduReform/xqjy-2.png +0 -0
  163. package/src/asset/img/eduReform/xqjy-3.png +0 -0
  164. package/src/asset/img/eduReform/xqjy-4.png +0 -0
  165. package/src/asset/img/eduReform/xqjy-cover.png +0 -0
  166. package/src/asset/img/eduReform/xqjy.png +0 -0
  167. package/src/asset/img/eduReform/ywjy-1.png +0 -0
  168. package/src/asset/img/eduReform/ywjy-2.png +0 -0
  169. package/src/asset/img/eduReform/ywjy-cover.png +0 -0
  170. package/src/asset/img/eduReform/ywjy.png +0 -0
  171. package/src/asset/img/eduReform/zhgg-1.png +0 -0
  172. package/src/asset/img/eduReform/zhgg-2.png +0 -0
  173. package/src/asset/img/eduReform/zhgg-cover.png +0 -0
  174. package/src/asset/img/eduReform/zhgg.png +0 -0
  175. package/src/asset/img/family/1.jpg +0 -0
  176. package/src/asset/img/family/ff-1.png +0 -0
  177. package/src/asset/img/family/ff-2.png +0 -0
  178. package/src/asset/img/family/ff-3.png +0 -0
  179. package/src/asset/img/family/ff-cover.png +0 -0
  180. package/src/asset/img/family/gn-1.png +0 -0
  181. package/src/asset/img/family/gn-2.png +0 -0
  182. package/src/asset/img/family/gn-3.png +0 -0
  183. package/src/asset/img/family/gn-cover.png +0 -0
  184. package/src/asset/img/family/icon/jyff.png +0 -0
  185. package/src/asset/img/family/icon/jygn.png +0 -0
  186. package/src/asset/img/family/icon/jyzd.png +0 -0
  187. package/src/asset/img/family/zd-1.png +0 -0
  188. package/src/asset/img/family/zd-2.png +0 -0
  189. package/src/asset/img/family/zd-3.png +0 -0
  190. package/src/asset/img/family/zd-cover.png +0 -0
  191. package/src/asset/img/favicon-m.png +0 -0
  192. package/src/asset/img/favicon.png +0 -0
  193. package/src/asset/img/icon-course-white.svg +3 -0
  194. package/src/asset/img/icon-course.svg +3 -0
  195. package/src/asset/img/icon-eye-white.svg +4 -0
  196. package/src/asset/img/icon-eye.svg +4 -0
  197. package/src/asset/img/icon-school-white.svg +3 -0
  198. package/src/asset/img/icon-school.svg +3 -0
  199. package/src/asset/img/img-jgsj/10.png +0 -0
  200. package/src/asset/img/img-jgsj/3.png +0 -0
  201. package/src/asset/img/img-jgsj/4.png +0 -0
  202. package/src/asset/img/img-jgsj/5.png +0 -0
  203. package/src/asset/img/img-jgsj/6.png +0 -0
  204. package/src/asset/img/img-jgsj/7-1.png +0 -0
  205. package/src/asset/img/img-jgsj/7-2.png +0 -0
  206. package/src/asset/img/img-jgsj/8.png +0 -0
  207. package/src/asset/img/img-jgsj/8s.png +0 -0
  208. package/src/asset/img/img-jgsj/9.png +0 -0
  209. package/src/asset/img/img-search-tag-bottom.png +0 -0
  210. package/src/asset/img/img-ztjy/1.png +0 -0
  211. package/src/asset/img/img-ztjy/2.png +0 -0
  212. package/src/asset/img/img-ztjy/3.png +0 -0
  213. package/src/asset/img/img-ztjy/4.png +0 -0
  214. package/src/asset/img/img-ztjy/5.png +0 -0
  215. package/src/asset/img/img-ztjy/6.png +0 -0
  216. package/src/asset/img/img-ztjy/icon/agzy.png +0 -0
  217. package/src/asset/img/img-ztjy/icon/dsxx.png +0 -0
  218. package/src/asset/img/img-ztjy/icon/kcjx.png +0 -0
  219. package/src/asset/img/img-ztjy/icon/pdjy.png +0 -0
  220. package/src/asset/img/img-ztjy/icon/smyaq.png +0 -0
  221. package/src/asset/img/img-ztjy/icon/stwm.png +0 -0
  222. package/src/asset/img/img-ztjy/icon/xffz.png +0 -0
  223. package/src/asset/img/img-ztjy/icon/xljk.png +0 -0
  224. package/src/asset/img/img-ztjy/icon/yxctwh.png +0 -0
  225. package/src/asset/img/incentives/star.png +0 -0
  226. package/src/asset/img/juhe-bg.png +0 -0
  227. package/src/asset/img/left-hover.png +0 -0
  228. package/src/asset/img/left-nor.png +0 -0
  229. package/src/asset/img/living-gif-web.gif +0 -0
  230. package/src/asset/img/loading.svg +52 -0
  231. package/src/asset/img/person.png +0 -0
  232. package/src/asset/img/personalCenter/calendar_icon.png +0 -0
  233. package/src/asset/img/personalCenter/clock.png +0 -0
  234. package/src/asset/img/personalCenter/cover.jpg +0 -0
  235. package/src/asset/img/personalCenter/default_cover.png +0 -0
  236. package/src/asset/img/personalCenter/header_bg.png +0 -0
  237. package/src/asset/img/personalCenter/video_icon.png +0 -0
  238. package/src/asset/img/resource/cover.png +0 -0
  239. package/src/asset/img/resource/more_close.png +0 -0
  240. package/src/asset/img/resource/more_open.png +0 -0
  241. package/src/asset/img/resource/remove.png +0 -0
  242. package/src/asset/img/resource/tags.png +0 -0
  243. package/src/asset/img/resource/upload.png +0 -0
  244. package/src/asset/img/resource//346/211/271/351/207/217/347/274/226/350/276/221@2x.png +0 -0
  245. package/src/asset/img/right-hover.png +0 -0
  246. package/src/asset/img/right-icon.png +0 -0
  247. package/src/asset/img/right-nor.png +0 -0
  248. package/src/asset/img/schoolService/jdyd-1.png +0 -0
  249. package/src/asset/img/schoolService/jdyd-2.png +0 -0
  250. package/src/asset/img/schoolService/jdyd-3.png +0 -0
  251. package/src/asset/img/schoolService/jdyd-cover.png +0 -0
  252. package/src/asset/img/schoolService/jdyd.png +0 -0
  253. package/src/asset/img/schoolService/kpjy-1.png +0 -0
  254. package/src/asset/img/schoolService/kpjy-2.png +0 -0
  255. package/src/asset/img/schoolService/kpjy-3.png +0 -0
  256. package/src/asset/img/schoolService/kpjy-cover.png +0 -0
  257. package/src/asset/img/schoolService/kpjy.png +0 -0
  258. package/src/asset/img/schoolService/tydl-1.png +0 -0
  259. package/src/asset/img/schoolService/tydl-2.png +0 -0
  260. package/src/asset/img/schoolService/tydl-3.png +0 -0
  261. package/src/asset/img/schoolService/tydl-cover.png +0 -0
  262. package/src/asset/img/schoolService/tydl.png +0 -0
  263. package/src/asset/img/schoolService/whys-1.png +0 -0
  264. package/src/asset/img/schoolService/whys-2.png +0 -0
  265. package/src/asset/img/schoolService/whys-3.png +0 -0
  266. package/src/asset/img/schoolService/whys-4.png +0 -0
  267. package/src/asset/img/schoolService/whys-cover.png +0 -0
  268. package/src/asset/img/schoolService/whys.png +0 -0
  269. package/src/asset/img/schoolService/ysjy-1.png +0 -0
  270. package/src/asset/img/schoolService/ysjy-2.png +0 -0
  271. package/src/asset/img/schoolService/ysjy-3.png +0 -0
  272. package/src/asset/img/schoolService/ysjy-4.png +0 -0
  273. package/src/asset/img/schoolService/ysjy-cover.png +0 -0
  274. package/src/asset/img/schoolService/ysjy.png +0 -0
  275. package/src/asset/img/schoolService/yxjy-cover.png +0 -0
  276. package/src/asset/img/schoolService/yxsj-1.png +0 -0
  277. package/src/asset/img/schoolService/yxsj-2.png +0 -0
  278. package/src/asset/img/schoolService/yxsj-3.png +0 -0
  279. package/src/asset/img/schoolService/yxsj.png +0 -0
  280. package/src/asset/img/sedu/catalog/list.png +0 -0
  281. package/src/asset/img/sedu/icon/agzy-prefix.png +0 -0
  282. package/src/asset/img/sedu/icon/agzy.png +0 -0
  283. package/src/asset/img/sedu/icon/arrow-hover.png +0 -0
  284. package/src/asset/img/sedu/icon/arrow.png +0 -0
  285. package/src/asset/img/sedu/icon/dsxx-prefix.png +0 -0
  286. package/src/asset/img/sedu/icon/dsxx.png +0 -0
  287. package/src/asset/img/sedu/icon/epidemic-prevention-bg.png +0 -0
  288. package/src/asset/img/sedu/icon/epidemic-prevention.png +0 -0
  289. package/src/asset/img/sedu/icon/family-bg.png +0 -0
  290. package/src/asset/img/sedu/icon/family.png +0 -0
  291. package/src/asset/img/sedu/icon/film-bg.png +0 -0
  292. package/src/asset/img/sedu/icon/film.png +0 -0
  293. package/src/asset/img/sedu/icon/go-more-hover.png +0 -0
  294. package/src/asset/img/sedu/icon/go-more.png +0 -0
  295. package/src/asset/img/sedu/icon/kcjx.png +0 -0
  296. package/src/asset/img/sedu/icon/ldjy-prefix.png +0 -0
  297. package/src/asset/img/sedu/icon/life-safe-bg.png +0 -0
  298. package/src/asset/img/sedu/icon/life-safe.png +0 -0
  299. package/src/asset/img/sedu/icon/morality-bg.png +0 -0
  300. package/src/asset/img/sedu/icon/morality.png +0 -0
  301. package/src/asset/img/sedu/icon/more-bg.png +0 -0
  302. package/src/asset/img/sedu/icon/more.png +0 -0
  303. package/src/asset/img/sedu/icon/party-history-bg.png +0 -0
  304. package/src/asset/img/sedu/icon/party-history.png +0 -0
  305. package/src/asset/img/sedu/icon/pdjy-prefix.png +0 -0
  306. package/src/asset/img/sedu/icon/pdjy.png +0 -0
  307. package/src/asset/img/sedu/icon/psychological-bg.png +0 -0
  308. package/src/asset/img/sedu/icon/psychological.png +0 -0
  309. package/src/asset/img/sedu/icon/read-bg.png +0 -0
  310. package/src/asset/img/sedu/icon/read.png +0 -0
  311. package/src/asset/img/sedu/icon/smaq-prefix.png +0 -0
  312. package/src/asset/img/sedu/icon/smyaq.png +0 -0
  313. package/src/asset/img/sedu/icon/study-bg.png +0 -0
  314. package/src/asset/img/sedu/icon/study.png +0 -0
  315. package/src/asset/img/sedu/icon/stwm-prefix.png +0 -0
  316. package/src/asset/img/sedu/icon/stwm.png +0 -0
  317. package/src/asset/img/sedu/icon/xffz-prefix.png +0 -0
  318. package/src/asset/img/sedu/icon/xffz.png +0 -0
  319. package/src/asset/img/sedu/icon/xljk-prefix.png +0 -0
  320. package/src/asset/img/sedu/icon/xljk.png +0 -0
  321. package/src/asset/img/sedu/icon/yxctwh-prefix.png +0 -0
  322. package/src/asset/img/sedu/icon/yxctwh.png +0 -0
  323. package/src/asset/img/sedu/nav_new/agzy-1.png +0 -0
  324. package/src/asset/img/sedu/nav_new/agzy-2.png +0 -0
  325. package/src/asset/img/sedu/nav_new/agzy-3.png +0 -0
  326. package/src/asset/img/sedu/nav_new/agzy-cover.png +0 -0
  327. package/src/asset/img/sedu/nav_new/agzy.png +0 -0
  328. package/src/asset/img/sedu/nav_new/dsxx-1.png +0 -0
  329. package/src/asset/img/sedu/nav_new/dsxx-2.png +0 -0
  330. package/src/asset/img/sedu/nav_new/dsxx-3.png +0 -0
  331. package/src/asset/img/sedu/nav_new/dsxx-cover.png +0 -0
  332. package/src/asset/img/sedu/nav_new/dsxx.png +0 -0
  333. package/src/asset/img/sedu/nav_new/jdwy-1.png +0 -0
  334. package/src/asset/img/sedu/nav_new/jdwy-2.png +0 -0
  335. package/src/asset/img/sedu/nav_new/jdwy-3.png +0 -0
  336. package/src/asset/img/sedu/nav_new/ldjy-1.png +0 -0
  337. package/src/asset/img/sedu/nav_new/ldjy-2.png +0 -0
  338. package/src/asset/img/sedu/nav_new/ldjy-3.png +0 -0
  339. package/src/asset/img/sedu/nav_new/ldjy-cover.png +0 -0
  340. package/src/asset/img/sedu/nav_new/ldjy.png +0 -0
  341. package/src/asset/img/sedu/nav_new/pdjy-1.png +0 -0
  342. package/src/asset/img/sedu/nav_new/pdjy-2.png +0 -0
  343. package/src/asset/img/sedu/nav_new/pdjy-3.png +0 -0
  344. package/src/asset/img/sedu/nav_new/pdjy-cover.png +0 -0
  345. package/src/asset/img/sedu/nav_new/pdjy.png +0 -0
  346. package/src/asset/img/sedu/nav_new/smyaq-1.png +0 -0
  347. package/src/asset/img/sedu/nav_new/smyaq-2.png +0 -0
  348. package/src/asset/img/sedu/nav_new/smyaq-3.png +0 -0
  349. package/src/asset/img/sedu/nav_new/smyaq-4.png +0 -0
  350. package/src/asset/img/sedu/nav_new/smyaq-cover.png +0 -0
  351. package/src/asset/img/sedu/nav_new/smyaq.png +0 -0
  352. package/src/asset/img/sedu/nav_new/stwm-1.png +0 -0
  353. package/src/asset/img/sedu/nav_new/stwm-2.png +0 -0
  354. package/src/asset/img/sedu/nav_new/stwm-3.png +0 -0
  355. package/src/asset/img/sedu/nav_new/stwm-cover.png +0 -0
  356. package/src/asset/img/sedu/nav_new/stwm.png +0 -0
  357. package/src/asset/img/sedu/nav_new/xffz-1.png +0 -0
  358. package/src/asset/img/sedu/nav_new/xffz-2.png +0 -0
  359. package/src/asset/img/sedu/nav_new/xffz-3.png +0 -0
  360. package/src/asset/img/sedu/nav_new/xffz-4.png +0 -0
  361. package/src/asset/img/sedu/nav_new/xffz-cover.png +0 -0
  362. package/src/asset/img/sedu/nav_new/xffz.png +0 -0
  363. package/src/asset/img/sedu/nav_new/xljk-1.png +0 -0
  364. package/src/asset/img/sedu/nav_new/xljk-2.png +0 -0
  365. package/src/asset/img/sedu/nav_new/xljk-3.png +0 -0
  366. package/src/asset/img/sedu/nav_new/xljk-cover.png +0 -0
  367. package/src/asset/img/sedu/nav_new/xljk.png +0 -0
  368. package/src/asset/img/sedu/nav_new/yxctwh-1.png +0 -0
  369. package/src/asset/img/sedu/nav_new/yxctwh-2.png +0 -0
  370. package/src/asset/img/sedu/nav_new/yxctwh-3.png +0 -0
  371. package/src/asset/img/sedu/nav_new/zgwhct-cover.png +0 -0
  372. package/src/asset/img/sedu/nav_new/zgwhct.png +0 -0
  373. package/src/asset/img/star.png +0 -0
  374. package/src/asset/img/star_filled.png +0 -0
  375. package/src/asset/img/star_hover.png +0 -0
  376. package/src/asset/img/up-hover.png +0 -0
  377. package/src/asset/img/up-nor.png +0 -0
  378. package/src/asset/img/video-play.svg +6 -0
  379. package/src/asset/style/background.less +20 -0
  380. package/src/asset/style/banner.less +36 -0
  381. package/src/asset/style/base.less +74 -0
  382. package/src/asset/style/index.less +114 -0
  383. package/src/asset/style/reset-theme.less +142 -0
  384. package/src/asset/style/theme/index.less +55 -0
  385. package/src/asset/style/theme/party/global.less +20 -0
  386. package/src/asset/style/theme/party/img/footer-bg.png +0 -0
  387. package/src/asset/style/theme/party/img/header-bg-1.png +0 -0
  388. package/src/asset/style/theme/party/img/header-bg-2.png +0 -0
  389. package/src/asset/style/theme/party/img/header-bg.png +0 -0
  390. package/src/asset/style/theme/party/img/logo.png +0 -0
  391. package/src/asset/style/theme/party/override.less +57 -0
  392. package/src/asset/style/theme/test/global.less +18 -0
  393. package/src/asset/style/theme/test/img/footer-bg.png +0 -0
  394. package/src/asset/style/theme/test/img/header-bg-1.png +0 -0
  395. package/src/asset/style/theme/test/img/header-bg-2.png +0 -0
  396. package/src/asset/style/theme/test/img/header-bg.png +0 -0
  397. package/src/asset/style/theme/test/img/logo.png +0 -0
  398. package/src/asset/style/theme/test/override.less +45 -0
  399. package/src/asset/style/variable.less +12 -0
  400. package/src/component/AliPlayer/index.jsx +46 -0
  401. package/src/component/Avatar/index.jsx +52 -0
  402. package/src/component/Empty/img/empty.png +0 -0
  403. package/src/component/Empty/index.jsx +36 -0
  404. package/src/component/Empty/index.module.less +37 -0
  405. package/src/component/IMChatroom/asset/style/images/welcome-m.png +0 -0
  406. package/src/component/IMChatroom/asset/style/images/welcome.png +0 -0
  407. package/src/component/IMChatroom/asset/style/index.module.less +0 -0
  408. package/src/component/IMChatroom/component/status/403.jsx +13 -0
  409. package/src/component/IMChatroom/component/status/404.jsx +13 -0
  410. package/src/component/IMChatroom/component/status/Error.jsx +23 -0
  411. package/src/component/IMChatroom/component/status/Loading.jsx +5 -0
  412. package/src/component/IMChatroom/config/app/config.js +118 -0
  413. package/src/component/IMChatroom/config/app/index.js +60 -0
  414. package/src/component/IMChatroom/config/env.js +5 -0
  415. package/src/component/IMChatroom/config/index.js +3 -0
  416. package/src/component/IMChatroom/config/request/config/base.js +124 -0
  417. package/src/component/IMChatroom/config/request/config/chatroom.js +26 -0
  418. package/src/component/IMChatroom/config/request/config/imCoreApi.js +21 -0
  419. package/src/component/IMChatroom/config/request/index.js +21 -0
  420. package/src/component/IMChatroom/config/request/proxy.js +39 -0
  421. package/src/component/IMChatroom/config/url.js +7 -0
  422. package/src/component/IMChatroom/constants/errorCode.js +9 -0
  423. package/src/component/IMChatroom/constants/index.js +84 -0
  424. package/src/component/IMChatroom/constants/origin.js +27 -0
  425. package/src/component/IMChatroom/context/chatroom.js +154 -0
  426. package/src/component/IMChatroom/context/connect.js +28 -0
  427. package/src/component/IMChatroom/i18n/en/index.json +73 -0
  428. package/src/component/IMChatroom/i18n/index.jsx +14 -0
  429. package/src/component/IMChatroom/i18n/language.js +9 -0
  430. package/src/component/IMChatroom/i18n/zh-CN/index.json +73 -0
  431. package/src/component/IMChatroom/index.jsx +49 -0
  432. package/src/component/IMChatroom/page/chat/index.jsx +27 -0
  433. package/src/component/IMChatroom/page/chat/messageEditor/index.jsx +375 -0
  434. package/src/component/IMChatroom/page/chat/messageList/index.jsx +354 -0
  435. package/src/component/IMChatroom/page/chat/stickedMessage/index.jsx +59 -0
  436. package/src/component/IMChatroom/page/chat/stickedMessage/style/index.module.less +8 -0
  437. package/src/component/IMChatroom/page/chat/style/index.module.less +52 -0
  438. package/src/component/IMChatroom/page/home/connect/index.jsx +188 -0
  439. package/src/component/IMChatroom/page/home/connect/status.jsx +124 -0
  440. package/src/component/IMChatroom/page/home/context/cmd.jsx +37 -0
  441. package/src/component/IMChatroom/page/home/context/index.jsx +67 -0
  442. package/src/component/IMChatroom/page/home/index.jsx +164 -0
  443. package/src/component/IMChatroom/page/home/notice/index.jsx +123 -0
  444. package/src/component/IMChatroom/page/home/notice/style/index.module.less +50 -0
  445. package/src/component/IMChatroom/page/home/style/images/font-size-active-m.png +0 -0
  446. package/src/component/IMChatroom/page/home/style/images/font-size-active.png +0 -0
  447. package/src/component/IMChatroom/page/home/style/images/font-size-m.png +0 -0
  448. package/src/component/IMChatroom/page/home/style/images/font-size.png +0 -0
  449. package/src/component/IMChatroom/page/home/style/images/notice-active-m.png +0 -0
  450. package/src/component/IMChatroom/page/home/style/images/notice-active.png +0 -0
  451. package/src/component/IMChatroom/page/home/style/images/notice-m.png +0 -0
  452. package/src/component/IMChatroom/page/home/style/images/notice.png +0 -0
  453. package/src/component/IMChatroom/page/home/style/index.module.less +111 -0
  454. package/src/component/IMChatroom/page/member/index.jsx +15 -0
  455. package/src/component/IMChatroom/page/member/memberCount/index.jsx +44 -0
  456. package/src/component/IMChatroom/page/member/memberList/index.jsx +121 -0
  457. package/src/component/IMChatroom/page/member/style/index.module.less +3 -0
  458. package/src/component/IMChatroom/sdk/bridge.js +39 -0
  459. package/src/component/IMChatroom/sdk/cs/constants.js +20 -0
  460. package/src/component/IMChatroom/sdk/cs/index.js +101 -0
  461. package/src/component/IMChatroom/sdk/imChatroom.js +15 -0
  462. package/src/component/IMChatroom/sdk/imcore/constants.js +128 -0
  463. package/src/component/IMChatroom/sdk/imcore/emitters/chatroomDestroyed.js +5 -0
  464. package/src/component/IMChatroom/sdk/imcore/emitters/chatroomInfoGetFail.js +5 -0
  465. package/src/component/IMChatroom/sdk/imcore/emitters/chatroomKickedByAdmin.js +5 -0
  466. package/src/component/IMChatroom/sdk/imcore/emitters/chatroomKickedBySelf.js +5 -0
  467. package/src/component/IMChatroom/sdk/imcore/emitters/chatroomLoginFail.js +5 -0
  468. package/src/component/IMChatroom/sdk/imcore/emitters/chatroomLoginSuccess.js +5 -0
  469. package/src/component/IMChatroom/sdk/imcore/emitters/chatroomMemberLogin.js +5 -0
  470. package/src/component/IMChatroom/sdk/imcore/emitters/chatroomMemberLogout.js +5 -0
  471. package/src/component/IMChatroom/sdk/imcore/emitters/connectionConnected.js +5 -0
  472. package/src/component/IMChatroom/sdk/imcore/emitters/connectionConnecting.js +5 -0
  473. package/src/component/IMChatroom/sdk/imcore/emitters/connectionDisconnect.js +5 -0
  474. package/src/component/IMChatroom/sdk/imcore/emitters/index.js +57 -0
  475. package/src/component/IMChatroom/sdk/imcore/emitters/messageReceive.js +36 -0
  476. package/src/component/IMChatroom/sdk/imcore/index.js +178 -0
  477. package/src/component/IMChatroom/sdk/imcore/interceptors/request.js +7 -0
  478. package/src/component/IMChatroom/sdk/imcore/interceptors/response.js +5 -0
  479. package/src/component/IMChatroom/sdk/imcore/plugins/getAuth.js +64 -0
  480. package/src/component/IMChatroom/sdk/imcore/plugins/getConversationId.js +20 -0
  481. package/src/component/IMChatroom/sdk/imcore/plugins/getExtInfo.js +10 -0
  482. package/src/component/IMChatroom/sdk/imcore/plugins/getLoginInfo.js +48 -0
  483. package/src/component/IMChatroom/sdk/imcore/plugins/getPlatformType.js +12 -0
  484. package/src/component/IMChatroom/sdk/imcore/plugins/index.js +22 -0
  485. package/src/component/IMChatroom/sdk/imcore/util/format.js +177 -0
  486. package/src/component/IMChatroom/sdk/imcore/util/parser.js +35 -0
  487. package/src/component/IMChatroom/sdk/oms.js +18 -0
  488. package/src/component/IMChatroom/sdk/uc.js +3 -0
  489. package/src/component/IMChatroom/subscription/channel/app.js +5 -0
  490. package/src/component/IMChatroom/subscription/channel/ctl.js +22 -0
  491. package/src/component/IMChatroom/subscription/channel/member.js +40 -0
  492. package/src/component/IMChatroom/subscription/channel/message.js +13 -0
  493. package/src/component/IMChatroom/subscription/channel/ntf.js +86 -0
  494. package/src/component/IMChatroom/subscription/channel/tel.js +5 -0
  495. package/src/component/IMChatroom/subscription/channel/websocket.js +5 -0
  496. package/src/component/IMChatroom/subscription/event.js +37 -0
  497. package/src/component/IMChatroom/subscription/index.js +19 -0
  498. package/src/component/IMChatroom/util/account.js +8 -0
  499. package/src/component/IMChatroom/util/chatroom.js +255 -0
  500. package/src/component/IMChatroom/util/jsonBigInt.js +5 -0
  501. package/src/component/IMChatroom/util/location.js +12 -0
  502. package/src/component/PlayerTip/index.jsx +34 -0
  503. package/src/component/VideoBase/index.jsx +242 -0
  504. package/src/component/VideoBase/style.less +66 -0
  505. package/src/component/VideoBase/utils.js +81 -0
  506. package/src/component/mixin.less +10 -0
  507. package/src/component/status/403.jsx +15 -0
  508. package/src/component/status/404/img/404.png +0 -0
  509. package/src/component/status/404/index.jsx +73 -0
  510. package/src/component/status/404/index.module.less +36 -0
  511. package/src/component/status/Error/error.module.less +14 -0
  512. package/src/component/status/Error/img/error.png +0 -0
  513. package/src/component/status/Error/index.jsx +47 -0
  514. package/src/component/status/Loading/img/loading.svg +52 -0
  515. package/src/component/status/Loading/index.jsx +31 -0
  516. package/src/component/status/Loading/index.less +57 -0
  517. package/src/component/status/None/img/404.png +0 -0
  518. package/src/component/status/None/index.jsx +20 -0
  519. package/src/component/status/None/index.module.less +35 -0
  520. package/src/component/status/Status/index.jsx +26 -0
  521. package/src/component/status/Status/index.module.less +9 -0
  522. package/src/config/constant/commonUrl.js +2 -0
  523. package/src/config/constant/user.js +6 -0
  524. package/src/config/context/site-config.js +48 -0
  525. package/src/config/env/index.js +5 -0
  526. package/src/config/env/local/index.js +13 -0
  527. package/src/config/env/ncet-xedu/api.js +175 -0
  528. package/src/config/env/ncet-xedu/app.js +12 -0
  529. package/src/config/env/ncet-xedu/cs.js +8 -0
  530. package/src/config/env/ncet-xedu/index.js +14 -0
  531. package/src/config/env/ncet-xedu/push.js +5 -0
  532. package/src/config/env/preproduction/api.js +144 -0
  533. package/src/config/env/preproduction/app.js +12 -0
  534. package/src/config/env/preproduction/cs.js +8 -0
  535. package/src/config/env/preproduction/index.js +14 -0
  536. package/src/config/env/preproduction/push.js +5 -0
  537. package/src/config/env/product/api.js +113 -0
  538. package/src/config/env/product/app.js +12 -0
  539. package/src/config/env/product/cs.js +5 -0
  540. package/src/config/env/product/index.js +14 -0
  541. package/src/config/env/product/push.js +5 -0
  542. package/src/config/live.js +80 -0
  543. package/src/config/publicLive.js +53 -0
  544. package/src/config/request/assessments.js +24 -0
  545. package/src/config/request/config-center.js +8 -0
  546. package/src/config/request/helper.js +166 -0
  547. package/src/config/request/im-broadcasts.js +12 -0
  548. package/src/config/request/live-activity-gateway.js +8 -0
  549. package/src/config/request/live-activity.js +13 -0
  550. package/src/config/request/raw.js +6 -0
  551. package/src/config/request/x-cloud-web.js +13 -0
  552. package/src/config/request/x-proxy.js +34 -0
  553. package/src/detail/LineSwitch/index.jsx +71 -0
  554. package/src/detail/LineSwitch/index.module.less +0 -0
  555. package/src/detail/LiveCountDown/index.jsx +44 -0
  556. package/src/detail/LiveCountDown/index.module.less +32 -0
  557. package/src/detail/LiveOnlineCount/img/icon.svg +16 -0
  558. package/src/detail/LiveOnlineCount/index.jsx +68 -0
  559. package/src/detail/LiveOnlineCount/index.module.less +33 -0
  560. package/src/detail/LiveOnlineCount/util.js +74 -0
  561. package/src/detail/LiveStatus/AnchorOnTheWay.jsx +78 -0
  562. package/src/detail/LiveStatus/index.jsx +186 -0
  563. package/src/detail/LiveStatus/index.module.less +193 -0
  564. package/src/detail/LiveVideo/asset/play-button-hover-m.png +0 -0
  565. package/src/detail/LiveVideo/asset/play-button-hover.png +0 -0
  566. package/src/detail/LiveVideo/asset/play-button-m.png +0 -0
  567. package/src/detail/LiveVideo/asset/play-button.png +0 -0
  568. package/src/detail/LiveVideo/config.js +37 -0
  569. package/src/detail/LiveVideo/index.jsx +186 -0
  570. package/src/detail/LiveVideo/index.module.less +41 -0
  571. package/src/detail/NotLoginChatroom/asset/empty-m.png +0 -0
  572. package/src/detail/NotLoginChatroom/asset/empty.png +0 -0
  573. package/src/detail/NotLoginChatroom/index.jsx +37 -0
  574. package/src/detail/NotLoginChatroom/index.module.less +46 -0
  575. package/src/detail/RecordVideo/index.jsx +148 -0
  576. package/src/detail/RecordVideo/index.module.less +32 -0
  577. package/src/detail/ReplayVideo/index.jsx +93 -0
  578. package/src/detail/ReplayVideo/index.module.less +65 -0
  579. package/src/detail/const.js +20 -0
  580. package/src/detail/hook/usePullSource.js +50 -0
  581. package/src/detail/hook/usePullState.js +51 -0
  582. package/src/detail/img/icon_coffee.png +0 -0
  583. package/src/detail/img/icon_completed.png +0 -0
  584. package/src/detail/index.jsx +479 -0
  585. package/src/detail/index.module.less +164 -0
  586. package/src/hook/useAsync.js +84 -0
  587. package/src/hook/useGoToPage.js +83 -0
  588. package/src/hook/useInterval.js +28 -0
  589. package/src/hook/useIsMounted.js +17 -0
  590. package/src/hook/useModuleByRole.js +53 -0
  591. package/src/hook/usePageScrollable.js +52 -0
  592. package/src/hook/usePortal.js +83 -0
  593. package/src/hook/useScrollRestore/index.js +32 -0
  594. package/src/hook/useScrollRestore/scrollContext.js +20 -0
  595. package/src/hook/useTrackRef.js +11 -0
  596. package/src/hook/useWindowSize.js +28 -0
  597. package/src/hook/useZoom.js +47 -0
  598. package/src/index.js +15 -0
  599. package/src/lib/getServiceConfig.js +102 -0
  600. package/src/service/common.js +73 -0
  601. package/src/service/content-mgr.js +73 -0
  602. package/src/service/im-group.js +12 -0
  603. package/src/service/im.js +7 -0
  604. package/src/service/imBroadcasts.js +33 -0
  605. package/src/service/like.js +134 -0
  606. package/src/service/live.js +236 -0
  607. package/src/service/manageApi.js +7 -0
  608. package/src/service/managePortal.js +6 -0
  609. package/src/service/myStudyRecord.js +93 -0
  610. package/src/service/navigation.js +47 -0
  611. package/src/service/ndMeeting.js +10 -0
  612. package/src/service/ndr.js +122 -0
  613. package/src/service/news.js +93 -0
  614. package/src/service/personalCenter.js +270 -0
  615. package/src/service/qualityCourse.js +31 -0
  616. package/src/service/recommend.js +81 -0
  617. package/src/service/school.js +323 -0
  618. package/src/service/search.js +170 -0
  619. package/src/service/site-config.js +7 -0
  620. package/src/service/socialCensor.js +45 -0
  621. package/src/service/specialEdu.js +31 -0
  622. package/src/service/suggestion.js +85 -0
  623. package/src/service/syncClassroom.js +321 -0
  624. package/src/service/tCourse.js +204 -0
  625. package/src/service/tchTraining.js +37 -0
  626. package/src/service/uc.js +45 -0
  627. package/src/util/app.js +1 -0
  628. package/src/util/array.js +3 -0
  629. package/src/util/auth/func.js +57 -0
  630. package/src/util/date.js +53 -0
  631. package/src/util/env.js +9 -0
  632. package/src/util/getTimestamp.js +10 -0
  633. package/src/util/hof.js +105 -0
  634. package/src/util/live/index.js +42 -0
  635. package/src/util/netUrl.js +35 -0
  636. package/src/util/object.js +13 -0
  637. package/src/util/push/index.js +58 -0
  638. package/src/util/request.js +227 -0
  639. package/src/util/type.js +17 -0
  640. package/src/util/url.js +203 -0
  641. package/src/util/video.js +26 -0
  642. package/test/setup.js +21 -0
  643. package/test/unit/component/header/logo.spec.jsx +8 -0
  644. package/test/unit/helper.jsx +25 -0
  645. package/test/unit/util/date.spec.js +40 -0
@@ -0,0 +1,5 @@
1
+ const config = {
2
+ host: 'wss://iot-ws.beta.101.com'
3
+ }
4
+
5
+ export default config
@@ -0,0 +1,113 @@
1
+ /**
2
+ * 存放 API 请求 host
3
+ */
4
+
5
+ const config = {
6
+ staticKeys: [
7
+ 'cdnHot', 'cdn', 'edu-admin-public-base',
8
+ 'cdnRt1', 'cdnRt2',
9
+ 'cdnHotRt1', 'cdnHotRt2',
10
+ 'cdnStudio', 'cdnBanner'
11
+ ],
12
+ // CDN 文件
13
+ cdn: '//s-file-fz.101.com',
14
+ 'cdn-prefix': '',
15
+ // 存在几个组件生产的静态文件,目前归口在 zxx 这个租户下
16
+ serviceName: {
17
+ 'x-course': 'zxx',
18
+ 'x-cloud': 'zxx',
19
+ library: 'zxx',
20
+ tagPlugin: 'zxx',
21
+ 't-course': 'teach',
22
+ tchChannel: 'teach',
23
+ tchLibrary: 'teach',
24
+ assessment: 'teach',
25
+ imGroup: 'im_group_file',
26
+ teacherStudio: 'e_teacher_studio'
27
+ },
28
+ // uc 相关接口,接口文档:
29
+ uc: '//uc-gateway.sdp.101.com',
30
+ //
31
+ 'x-course': '//x-course.sdp.101.com',
32
+ //
33
+ 'x-admin-public-service': '//x-admin-public-service.sdp.101.com',
34
+ // http://api.e.101.com/services/x-live-activity-api/description/rest/html?env=preproduction&version=9.10.2-SNAPSHOT
35
+ 'live-activity': '//x-live-activity-api.sdp.101.com',
36
+ // http://api.e.101.com/services/x-open-live-consumer/description/rest/html?env=design&version=1.0.13-SNAPSHOT
37
+ 'open-live': '//x-open-live-consumer.sdp.101.com',
38
+ //
39
+ 'live-activity-gateway': '//x-live-activity-gateway.sdp.101.com',
40
+ //
41
+ 'nd-meeting-extend': '//nd-meeting-extend.sdp.101.com',
42
+ //
43
+ 'config-center': '//config-cfgcenter.sdp.101.com',
44
+ //
45
+ 'user-select-framework-service':
46
+ '//user-select-framework-service.sdp.101.com',
47
+ //
48
+ 'my-study-record': '//x-study-record-api.sdp.101.com',
49
+ //
50
+ 'x-record-api': '//x-record-api.sdp.101.com',
51
+ //
52
+ 'im-broadcasts': '//im-broadcasts.sdp.101.com',
53
+ //
54
+ 'social-censor': '//censor2.sdp.101.com',
55
+ // TODO: 用于图片上传,应该 优化处理掉
56
+ 'delivery-cdn': '//gcdncs.101.com',
57
+ // TODO: 仅用于头像上传,应该优化处理掉
58
+ 'cs-server': '//cs.101.com',
59
+ // 统计相关
60
+ stat: '//api.ykt.cbern.com.cn',
61
+ // 站点配置(存在灰度能力)
62
+ 'site-config': '//grey-config.ykt.cbern.com.cn',
63
+ 'community-server': '//teacher-community-service.sdp.101.com',
64
+ 'e-favorite-api': '//e-favorite-api.sdp.101.com',
65
+ 'e-assessment-api': '//e-assessment-api.sdp.101.com',
66
+ // 获取资源点赞
67
+ 'x-proxy': '//x-proxy.sdp.101.com',
68
+ // 资源点赞
69
+ 'x-cloud-web': '//x-cloud-web.sdp.101.com',
70
+ // 用户进度数据
71
+ 'auxo-userdata': '//auxo-userdata-service.sdp.101.com',
72
+ // 名师工作室
73
+ 'teacher-studio': '//e-teacher-studio-api.sdp.101.com',
74
+ // 名师工作室模块代理
75
+ 'teacher-studio-proxy': '//e-teacher-studio-api.sdp.101.com',
76
+ // 内容库
77
+ 'library-config': '//elearning-library-gateway.sdp.101.com',
78
+ // 标签管理-->频道管理host
79
+ 'library-admin': '//elearning-study-library-gateway.sdp.101.com',
80
+ // IM群
81
+ 'im-group': '//imgroup.101.com',
82
+ // 名师工作室网关
83
+ 'teacher-studio-gateway': '//e-teacher-studio-gateway.sdp.101.com',
84
+ // 名师工作室网关代理
85
+ 'teacher-studio-gateway-proxy': '//e-teacher-studio-gateway.sdp.101.com',
86
+ // mgr服务
87
+ 'content-mgr-web': 'https://content-mgr-web.sdp.101.com',
88
+ // 新闻模块
89
+ 'e-news': '//e-news.sdp.101.com',
90
+ // 名师工作室模块代理
91
+ 'e-teacher-proxy': '//e-news.sdp.101.com',
92
+ // 我的授课
93
+ 'teach-record': '//x-bb-support.sdp.101.com',
94
+ // 我的关注
95
+ 'x-follow-api': '//x-follow-api.sdp.101.com',
96
+ // 建议反馈
97
+ 'x-feedback': '//feedback.sdp.101.com',
98
+ 'cs-feedback': '//gcdncs.101.com',
99
+ // 课时活动临时获取习题的动态接口
100
+ 'x-class-hour-activity': '//x-class-hour-activity.sdp.101.com',
101
+ // 聚合后台
102
+ 'manage-portal': '//manage-portal-api.sdp.101.com',
103
+ // 管理后台
104
+ 'edu-admin-manage-api': '//edu-admin-manage-api.sdp.101.com',
105
+ // faq
106
+ faq: '//satellite.sdp.101.com',
107
+ // 搜索
108
+ search: '//x-search.sdp.101.com',
109
+ // 应用超市
110
+ 'x-connect': 'https://x-connect-api.sdp.101.com'
111
+ }
112
+
113
+ module.exports = config
@@ -0,0 +1,12 @@
1
+ const config = {
2
+ appid: '122fc2fa-d78e-43af-856e-3f8148d1fc55',
3
+ tchAppid: 'f43875db-6973-4e75-b846-4ef7f58ccba6',
4
+ meetingSchema: 'ndmeeting-xstudy-product',
5
+ videoUrl: {
6
+ js: '/fish/video/videoplayer.min.js',
7
+ css: '/fish/video/videoplayer.min.css',
8
+ locale: '/fish/video/'
9
+ }
10
+ }
11
+
12
+ export default config
@@ -0,0 +1,5 @@
1
+ const config = {
2
+ host: '//cdncs.101.com'
3
+ }
4
+
5
+ export default config
@@ -0,0 +1,14 @@
1
+ import app from './app'
2
+ import api from './api'
3
+ import cs from './cs'
4
+ import push from './push'
5
+
6
+ const config = {
7
+ env: 'product',
8
+ app,
9
+ api,
10
+ cs,
11
+ push
12
+ }
13
+
14
+ export default config
@@ -0,0 +1,5 @@
1
+ const config = {
2
+ host: 'wss://iot-ws.sdp.101.com'
3
+ }
4
+
5
+ export default config
@@ -0,0 +1,80 @@
1
+ export const USER_IDENTITY = {
2
+ TEACHER: 'TEACHER',
3
+ STUDENT: 'STUDENT',
4
+ GUARDIAN: 'GUARDIAN', // 家长
5
+ ACADEMIC_STAFF: 'ACADEMIC_STAFF', // 教研员
6
+ ELECTRIC_TEACHER: 'ELECTRIC_TEACHER', // 电教人员
7
+ EDU_ADMIN: 'EDU_ADMIN', // 管理人员
8
+ SOCIAL_LEARNER: 'SOCIAL_LEARNER' // 社会学习者
9
+ }
10
+
11
+ export const USER_IDENTITY_NAME = {
12
+ [USER_IDENTITY.TEACHER]: '老师',
13
+ [USER_IDENTITY.STUDENT]: '学生',
14
+ [USER_IDENTITY.GUARDIAN]: '家长',
15
+ [USER_IDENTITY.ACADEMIC_STAFF]: '教研员',
16
+ [USER_IDENTITY.ELECTRIC_TEACHER]: '电教人员',
17
+ [USER_IDENTITY.EDU_ADMIN]: '管理人员',
18
+ [USER_IDENTITY.SOCIAL_LEARNER]: '社会学习者'
19
+ }
20
+
21
+ export const USER_IDENTITY_TEXT = {
22
+ [USER_IDENTITY.TEACHER]: '我是老师',
23
+ [USER_IDENTITY.STUDENT]: '我是学生',
24
+ [USER_IDENTITY.GUARDIAN]: '我是家长',
25
+ [USER_IDENTITY.ACADEMIC_STAFF]: '我是教研员',
26
+ [USER_IDENTITY.ELECTRIC_TEACHER]: '我是电教人员',
27
+ [USER_IDENTITY.EDU_ADMIN]: '我是管理人员',
28
+ [USER_IDENTITY.SOCIAL_LEARNER]: '我是社会学习者'
29
+ }
30
+
31
+ export const SELECTED_TAB_TYPE = {
32
+ MYLIVE: 'MYLIVE',
33
+ ALLLIVE: 'ALLLIVE'
34
+ }
35
+
36
+ export const LIVE_STATUS_TYPE = {
37
+ ALLSTATUS: -1, // 全部
38
+ NOSTARTED: 0, // 未开始
39
+ LIVING: 1, // 进行中
40
+ COMPLETED: 2 // 已结束
41
+ }
42
+
43
+ export const LIVE_STATUS_TEXT = {
44
+ [LIVE_STATUS_TYPE.ALLSTATUS]: '全部状态',
45
+ [LIVE_STATUS_TYPE.NOSTARTED]: '未开始',
46
+ [LIVE_STATUS_TYPE.LIVING]: '上课中',
47
+ [LIVE_STATUS_TYPE.COMPLETED]: '已结束'
48
+ }
49
+
50
+ export const AUDIT_STATUS_TYPE = {
51
+ PENDING: 0, // 全部
52
+ NORMAL: 1, // 未开始
53
+ BANNED: 2 // 进行中
54
+ }
55
+
56
+ export const RECORD_STATUS = {
57
+ NOT_PROVIDED: 0,
58
+ IN_PREPARATION: 1,
59
+ PROVIDED: 2
60
+ }
61
+
62
+ export const BANNED_STATUS = {
63
+ INVALID: 0, // 无效(取消禁播)
64
+ BANNED: 1, // -有效(禁播中)
65
+ BANNEDOVER: 2 // -禁播已结束
66
+ }
67
+
68
+ export const LIVE_REPLAY_PROGRESS_KEY = 'LIVE_REPLAY_PROGRESS'
69
+
70
+ export const LIVE_INVITATION_PATH = '/liveInvitation'
71
+
72
+ export const LIVE_REPLAY_PATH = '/livePlayBack'
73
+
74
+ export const CLASS_DETAIL_CACHE_KEY = 'CLASS_DETAIL_CACHE'
75
+
76
+ export const CLASS_DETAIL_CACHE_TIME = 7 * 24 * 60 * 60 * 1000
77
+
78
+ export const CLASS_DETAIL_CACHE_FIELDS = [
79
+ 'class_id', 'class_name', 'grade_id', 'grade_name', 'school_id', 'school_name', 'class_cover_url'
80
+ ]
@@ -0,0 +1,53 @@
1
+ // 直播状态
2
+ export const PUBLIC_LIVE_STATUS = {
3
+ NOSTARTED: 0,
4
+ LIVEING: 1,
5
+ COMPLETEED: 2,
6
+ PASUED: 3,
7
+ OFFLINE: 4
8
+ }
9
+
10
+ // 直播模式
11
+ export const PUBLIC_LIVE_MODE = {
12
+ LIVING: 1,
13
+ RECORDED: 2
14
+ }
15
+
16
+ // 回放提供状态
17
+ export const PROVIDE_RECORD = {
18
+ NOT_PROVIDED: 0,
19
+ IN_PREPARATION: 1,
20
+ PROVIDED: 2
21
+ }
22
+
23
+ // 是否允许查看回放
24
+ export const VIEW_REPLAY = {
25
+ NOT_ALLOW: 0,
26
+ ALLOW: 1
27
+ }
28
+
29
+ // 上报学习记录的 type
30
+ export const RECORD_LIVE_TYPE = 'open_class_live'
31
+
32
+ export const PUBLIC_LIVE_PUSH_TOPIC = 'open_class_live_topic'
33
+
34
+ export const PUBLIC_LIVE_PUSH_EVENT = {
35
+ STATUS_CHANGE: 'com.nd.xst.x-live-public/live_status_change'
36
+ }
37
+
38
+ export const PUBLIC_LIVE_BASE_PATH = '/publicLive'
39
+
40
+ // 教师发起直播时间可提前的时机,分钟单位
41
+ export const LIVING_STATUS_ADVANCE = 60
42
+
43
+ export const LIVING_CLOSE_LOGIN = {
44
+ NORMAL: '0',
45
+ CLOSE: '1'
46
+ }
47
+
48
+ // 子类型 1 网龙会议 2 外部推流 3 转播
49
+ export const SUB_TYPE = {
50
+ NET_DRAGON: 1,
51
+ OUTSIDE: 2,
52
+ REBROADCAST: 3
53
+ }
@@ -0,0 +1,24 @@
1
+ import { generateCommonAPIWithUC, generateCommonAPI } from './helper'
2
+
3
+ const env = process.env.SDP_ENV
4
+
5
+ const assessmentApi = generateCommonAPIWithUC({
6
+ hostKey: 'e-assessment-api',
7
+ prefix: '/v1'
8
+ })
9
+
10
+ const assessmentApiCdn = env === 'ncet-xedu' ? generateCommonAPI({
11
+ hostKey: 'x-proxy',
12
+ prefix: '/proxy/assessment/v1'
13
+ }) : assessmentApi
14
+
15
+ const assessmentStaticApi = generateCommonAPI({
16
+ hostKey: 'x-proxy',
17
+ prefix: '/proxy/assessment'
18
+ })
19
+
20
+ export {
21
+ assessmentApi,
22
+ assessmentApiCdn,
23
+ assessmentStaticApi
24
+ }
@@ -0,0 +1,8 @@
1
+ import { generateCommonAPI } from './helper'
2
+
3
+ const api = generateCommonAPI({
4
+ hostKey: 'config-center',
5
+ prefix: '/v2.0'
6
+ })
7
+
8
+ export default api
@@ -0,0 +1,166 @@
1
+ import Request from '@/util/request'
2
+ import { getTimestamp } from '@/util/getTimestamp'
3
+ import config from '@/config/env'
4
+ import { isInElectron, xElectron } from '@/util/env'
5
+ import { getSdpQuery } from '@/util/url'
6
+ import { getAuthHeader } from '@/util/auth/func'
7
+
8
+ const IGNORE_403_HOST = ['x-record-api']
9
+
10
+ const {
11
+ sdpOrgId,
12
+ sdpAppId
13
+ } = getSdpQuery()
14
+
15
+ export function rawAPI(params) {
16
+ const { hostKey, prefix = '', noSdpOrgId = false } = params
17
+ // 生产环境,CDN请求增加header会导致莫名其妙的跨域错误
18
+ const headers = {}
19
+ if (config.api.staticKeys.indexOf(hostKey) === -1) {
20
+ if (!headers['sdp-app-id']) {
21
+ headers['sdp-app-id'] = sdpAppId || config.app.appid
22
+ }
23
+ if (!noSdpOrgId && sdpOrgId && !headers['sdp-org-id']) {
24
+ headers['sdp-org-id'] = sdpOrgId
25
+ }
26
+ // 本地构建请求禁用缓存
27
+ if (process.env.DEV) {
28
+ // headers['Cache-Control'] = 'no-cache'
29
+ }
30
+ }
31
+
32
+ if (hostKey) {
33
+ params.originBaseURL = `${config.api[hostKey]}${prefix}`
34
+ params.baseURL = params.originBaseURL
35
+ // params.baseURL = process.env.DEV ? `/wds_${hostKey}${prefix}` : params.originBaseURL
36
+ }
37
+
38
+ const api = Request.create({
39
+ headers,
40
+ ...params
41
+ })
42
+ return api
43
+ }
44
+
45
+ /**
46
+ * 用于创建通用 api 请求对象,携带 loading、error 通用处理
47
+ */
48
+ export function generateCommonAPI(params) {
49
+ const api = rawAPI({
50
+ ...params
51
+ })
52
+
53
+ api.interceptors.request.use(async (c) => {
54
+ c.params = c.params || {}
55
+ if (process.env.SDP_ENV !== 'ncet-xedu') {
56
+ c.params.v = c.params.v ?? getTimestamp(10 * 60)
57
+ }
58
+ return c
59
+ })
60
+
61
+ return api
62
+ }
63
+
64
+ /**
65
+ * 用于创建需要使用 UC 认证的 api,基于 generateCommonAPI;
66
+ */
67
+ export function generateCommonAPIWithUC(params, throwError = false) {
68
+ const api = rawAPI({
69
+ ...params
70
+ })
71
+
72
+ api.interceptors.request.use(async (c) => {
73
+ if (c.noAuth) {
74
+ return c
75
+ }
76
+ // UC 计算 mac token 必须是完整的 URL
77
+ const Authorization = await getAuthHeader({
78
+ ...c,
79
+ url: getURL(c)
80
+ })
81
+ if (Authorization) {
82
+ c.headers.Authorization = Authorization
83
+ }
84
+ return c
85
+ })
86
+
87
+ api.interceptors.response.use(
88
+ (response) => response,
89
+ (error) => {
90
+ if ([
91
+ 'WAF/ACCESS_DENIED',
92
+ 'UC/AUTH_INVALID_TOKEN'
93
+ ].includes(error?.response?.data?.code)) {
94
+ if (IGNORE_403_HOST.indexOf(error?.config?.hostKey) === -1) {
95
+ if (!isInElectron) {
96
+ window.location.pathname = '/'
97
+ } else {
98
+ xElectron.subView.triggerLogout(error.message)
99
+ }
100
+ }
101
+ }
102
+ /* 新增,如果需要报错信息,则抛出 */
103
+ if (throwError) {
104
+ throw error
105
+ }
106
+ }
107
+ )
108
+
109
+ return api
110
+ }
111
+
112
+ /**
113
+ * 用于百度云需要走cdn代理的接口(接口访问频率比较高,单独设了代理,可以理解为缓存)
114
+ * 代理的接口不需要传认证
115
+ * 基于generateCommonAPIWithUC
116
+ */
117
+ export function generateAPIWithProxy(params, throwError = false) {
118
+ const api = rawAPI({
119
+ ...params
120
+ })
121
+
122
+ api.interceptors.request.use(async (c) => {
123
+ if (c.noAuth) {
124
+ return c
125
+ }
126
+ // 百度云环境不需要认证
127
+ if (process.env.SDP_ENV === 'ncet-xedu') {
128
+ return c
129
+ }
130
+ // UC 计算 mac token 必须是完整的 URL
131
+ const Authorization = await getAuthHeader({
132
+ ...c,
133
+ url: getURL(c)
134
+ })
135
+ if (Authorization) {
136
+ c.headers.Authorization = Authorization
137
+ }
138
+ return c
139
+ })
140
+
141
+ api.interceptors.response.use(
142
+ (response) => response,
143
+ (error) => {
144
+ if (error?.response?.data?.code === 'WAF/ACCESS_DENIED') {
145
+ window.location.pathname = '/'
146
+ }
147
+ /* 新增,如果需要报错信息,则抛出 */
148
+ if (throwError) {
149
+ return error
150
+ }
151
+ }
152
+ )
153
+
154
+ return api
155
+ }
156
+
157
+ function getURL(c) {
158
+ const { url, originBaseURL } = c
159
+ if (/^https?:/.test(url)) {
160
+ return url
161
+ }
162
+ if (/^https?:/.test(originBaseURL)) {
163
+ return `${originBaseURL}${c.url}`
164
+ }
165
+ return `https:${originBaseURL}${c.url}`
166
+ }
@@ -0,0 +1,12 @@
1
+ import { generateCommonAPI, generateCommonAPIWithUC } from './helper'
2
+
3
+ const api = generateCommonAPIWithUC({
4
+ hostKey: 'im-broadcasts',
5
+ prefix: ''
6
+ })
7
+
8
+ export default api
9
+
10
+ export const staticAPI = generateCommonAPI({
11
+ hostKey: 'im-broadcasts-static'
12
+ })
@@ -0,0 +1,8 @@
1
+ import { generateCommonAPIWithUC } from './helper'
2
+
3
+ const api = generateCommonAPIWithUC({
4
+ hostKey: 'live-activity-gateway',
5
+ prefix: '/v1'
6
+ })
7
+
8
+ export default api
@@ -0,0 +1,13 @@
1
+ import { generateCommonAPI, generateCommonAPIWithUC } from './helper'
2
+
3
+ const api = generateCommonAPIWithUC({
4
+ hostKey: 'live-activity',
5
+ prefix: ''
6
+ })
7
+
8
+ export default api
9
+
10
+ export const proxyApi = generateCommonAPI({
11
+ hostKey: 'x-proxy',
12
+ prefix: '/proxy/live'
13
+ })
@@ -0,0 +1,6 @@
1
+ import { generateCommonAPI } from './helper'
2
+
3
+ // 用于少数仅一个接口,且不区分环境的情况
4
+ const api = generateCommonAPI()
5
+
6
+ export default api
@@ -0,0 +1,13 @@
1
+ import { generateCommonAPIWithUC, generateCommonAPI } from './helper'
2
+
3
+ const api = generateCommonAPIWithUC({
4
+ hostKey: 'x-cloud-web',
5
+ prefix: ''
6
+ })
7
+
8
+ export default api
9
+
10
+ export const apiCommon = generateCommonAPI({
11
+ hostKey: 'x-cloud-web',
12
+ prefix: ''
13
+ })
@@ -0,0 +1,34 @@
1
+ import { generateCommonAPI, generateCommonAPIWithUC } from './helper'
2
+
3
+ // test5.ykt.eduyun.cn 为提测的地址
4
+ // 使用测试环境数据
5
+
6
+ const api = generateCommonAPI({
7
+ hostKey: 'x-proxy',
8
+ prefix: '/proxy/cloud'
9
+ })
10
+
11
+ export const liveProxy = generateCommonAPI({
12
+ hostKey: 'x-proxy',
13
+ prefix: '/proxy/live'
14
+ })
15
+
16
+ // 积分配置
17
+ export const recordConfigAPI = generateCommonAPI({
18
+ hostKey: 'x-proxy',
19
+ prefix: '/proxy/record_config/v1'
20
+ })
21
+
22
+ // 资源推荐
23
+ export const recommendAPI = generateCommonAPI({
24
+ hostKey: 'x-proxy',
25
+ prefix: '/proxy/recommend/v1'
26
+ })
27
+
28
+ // 资源推荐v2
29
+ export const recommendAPIV2 = generateCommonAPIWithUC({
30
+ hostKey: 'recommend',
31
+ prefix: '/v2'
32
+ })
33
+
34
+ export default api
@@ -0,0 +1,71 @@
1
+ import React, { useState, useMemo } from 'react'
2
+ import { Select } from 'fish'
3
+
4
+ import style from './index.module.less'
5
+
6
+ const { Option } = Select
7
+
8
+ export default function LineSwitch({
9
+ className,
10
+ liveInfo,
11
+ onChange
12
+ }) {
13
+ const lines = useMemo(
14
+ () => liveInfo?.imInfo?.param?.lines
15
+ ?.map((item, i) => {
16
+ const { name, source } = item
17
+ if (name && source) {
18
+ return item
19
+ }
20
+
21
+ return {
22
+ name: name || `线路${i + 1}`,
23
+ source: item
24
+ }
25
+ }),
26
+ [liveInfo]
27
+ )
28
+
29
+ const [lineName, setLineName] = useState(lines?.[0]?.name || '线路1')
30
+
31
+ const handleSelectChange = (value) => {
32
+ setLineName(value)
33
+ const source = lines
34
+ ?.find((item) => item.name === value)
35
+ ?.source
36
+ onChange(source)
37
+ }
38
+
39
+ return (
40
+ <>
41
+ {
42
+ lines.length > 1 ? (
43
+ <div className={`${style['line-switch']} ${className}`}>
44
+ <span>切换线路:</span>
45
+ <Select
46
+ defaultValue={lineName}
47
+ onChange={handleSelectChange}
48
+ style={{
49
+ width: '120px'
50
+ }}
51
+ >
52
+ {
53
+ lines?.map((item) => (
54
+ <Option
55
+ key={item.name}
56
+ value={item.name}
57
+ >
58
+ {item.name}
59
+ </Option>
60
+ ))
61
+ }
62
+ </Select>
63
+ </div>
64
+ ) : (
65
+ <></>
66
+ )
67
+ }
68
+ </>
69
+
70
+ )
71
+ }
File without changes