@x-edu/live-player 0.0.34 → 0.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/XEduLivePlayer.common.js +1072 -11202
- package/dist/XEduLivePlayerPre.common.js +877 -11368
- package/package.json +6 -4
- package/.browserslistrc +0 -10
- package/.eslintignore +0 -8
- package/.eslintrc.js +0 -26
- package/.gem-mine +0 -11
- package/.postcssrc.js +0 -6
- package/babel.config.js +0 -33
- package/doc/develop.md +0 -24
- package/gem-mine.config.js +0 -86
- package/jest.config.js +0 -9
- package/jsconfig.json +0 -15
- package/mock/helper.js +0 -8
- package/mock/index.js +0 -34
- package/public/.well-known/apple-app-site-association +0 -1
- package/public/3rd/ali-player/alipayercomponents-1.0.8.min.js +0 -26
- package/public/3rd/ali-player/aliplayer-hls-min.js +0 -28
- package/public/3rd/ali-player/aliplayer-min.css +0 -1
- package/public/3rd/ali-player/aliplayer-min.js +0 -2
- package/public/3rd/ali-player/img/fullscreen.png +0 -0
- package/public/3rd/ali-player/img/playanimation.png +0 -0
- package/public/3rd/ali-player/img/smallscreen.png +0 -0
- package/public/3rd/ali-player/img/volume.png +0 -0
- package/public/3rd/im-web-push/index.umd.js +0 -14
- package/public/JsBridge.js +0 -1602
- package/public/fish/editor/lang/zh-cn/zh-cn.min.js +0 -1
- package/public/fish/editor/loading.gif +0 -0
- package/public/fish/editor/themes/default/css/ueditor.css +0 -1906
- package/public/fish/editor/themes/default/images/icons.png +0 -0
- package/public/fish/editor/themes/default/images/scale.png +0 -0
- package/public/fish/editor/themes/default/images/spacer.gif +0 -0
- package/public/fish/editor/themes/default/images/videologo.gif +0 -0
- package/public/fish/editor/themes/iframe.css +0 -0
- package/public/fish/editor/third-party/codemirror/codemirror.css +0 -104
- package/public/fish/editor/third-party/codemirror/codemirror.js +0 -3581
- package/public/fish/editor/third-party/zeroclipboard/ZeroClipboard.js +0 -1256
- package/public/fish/editor/ueditor.all.min.js +0 -17
- package/public/fish/editor/ueditor.config.js +0 -467
- package/public/fish/icon/umd-4.1.2.js +0 -2
- package/public/fish/video/icon_active.gif +0 -0
- package/public/fish/video/videoplayer.min.css +0 -7
- package/public/fish/video/videoplayer.min.js +0 -32
- package/public/fish/video/zh-CN.js +0 -83
- package/public/icon/demo.css +0 -539
- package/public/icon/demo_index.html +0 -2189
- package/public/icon/iconfont.css +0 -363
- package/public/icon/iconfont.js +0 -1
- package/public/icon/iconfont.json +0 -618
- package/public/icon/iconfont.ttf +0 -0
- package/public/icon/iconfont.woff +0 -0
- package/public/icon/iconfont.woff2 +0 -0
- package/public/index.html +0 -50
- package/script/image/readme.md +0 -77
- package/script/postcss.js +0 -48
- package/src/App.jsx +0 -24
- 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
- package/src/asset/img/activeBanner//344/271/211/345/212/241/346/225/231/350/202/262.png +0 -0
- 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
- package/src/asset/img/activeBanner//344/275/223/350/202/262/351/224/273/347/202/274.png +0 -0
- package/src/asset/img/activeBanner//345/205/232/345/217/262/345/255/246/344/271/240.png +0 -0
- package/src/asset/img/activeBanner//345/205/232/345/273/272/345/276/267/350/202/262.png +0 -0
- package/src/asset/img/activeBanner//345/212/263/345/212/250/345/205/211/350/215/243.png +0 -0
- package/src/asset/img/activeBanner//345/212/263/345/212/250/345/257/274/350/210/252.png +0 -0
- package/src/asset/img/activeBanner//345/212/263/345/212/250/346/225/231/350/202/262.png +0 -0
- package/src/asset/img/activeBanner//345/212/263/345/212/250/346/231/272/346/205/247.png +0 -0
- package/src/asset/img/activeBanner//345/223/201/345/276/267/346/225/231/350/202/262.png +0 -0
- package/src/asset/img/activeBanner//345/255/246/345/211/215/346/225/231/350/202/262.png +0 -0
- package/src/asset/img/activeBanner//345/256/252/346/263/225/346/263/225/346/262/273.png +0 -0
- 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
- 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
- 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
- package/src/asset/img/activeBanner//345/275/261/350/247/206/346/225/231/350/202/262.png +0 -0
- package/src/asset/img/activeBanner//345/277/203/347/220/206/345/201/245/345/272/267.png +0 -0
- package/src/asset/img/activeBanner//346/200/235/346/224/277/350/257/276/347/250/213.png +0 -0
- package/src/asset/img/activeBanner//346/225/231/345/255/246/346/210/220/346/236/234.png +0 -0
- package/src/asset/img/activeBanner//346/225/231/346/235/220/344/270/223/345/214/272.png +0 -0
- package/src/asset/img/activeBanner//346/225/231/350/202/262/344/277/241/346/201/257/345/214/226.png +0 -0
- package/src/asset/img/activeBanner//346/226/207/345/214/226/350/211/272/346/234/257.png +0 -0
- package/src/asset/img/activeBanner//346/231/256/351/200/232/351/253/230/344/270/255.png +0 -0
- package/src/asset/img/activeBanner//347/210/261/345/233/275/344/270/273/344/271/211.png +0 -0
- package/src/asset/img/activeBanner//347/211/271/346/256/212/346/225/231/350/202/262.png +0 -0
- package/src/asset/img/activeBanner//347/224/237/345/221/275/344/270/216/345/256/211/345/205/250.png +0 -0
- package/src/asset/img/activeBanner//347/224/237/346/200/201/346/226/207/346/230/216.png +0 -0
- package/src/asset/img/activeBanner//347/240/224/345/255/246/345/256/236/350/267/265.png +0 -0
- package/src/asset/img/activeBanner//347/247/221/346/231/256/346/225/231/350/202/262.png +0 -0
- package/src/asset/img/activeBanner//347/273/217/345/205/270/351/230/205/350/257/273.png +0 -0
- package/src/asset/img/activeBanner//347/273/274/345/220/210/346/224/271/351/235/251.png +0 -0
- package/src/asset/img/advertisement.png +0 -0
- package/src/asset/img/bg-block.png +0 -0
- package/src/asset/img/bookhover.png +0 -0
- package/src/asset/img/card.png +0 -0
- package/src/asset/img/catalog/article.png +0 -0
- package/src/asset/img/catalog/audio.png +0 -0
- package/src/asset/img/catalog/course.png +0 -0
- package/src/asset/img/catalog/document.png +0 -0
- package/src/asset/img/catalog/image.png +0 -0
- package/src/asset/img/catalog/link.png +0 -0
- package/src/asset/img/catalog/openClassLive.png +0 -0
- package/src/asset/img/catalog/other.png +0 -0
- package/src/asset/img/catalog/video.png +0 -0
- package/src/asset/img/class-live-header-icon.png +0 -0
- package/src/asset/img/content/article.png +0 -0
- package/src/asset/img/content/document.png +0 -0
- package/src/asset/img/content/image.png +0 -0
- package/src/asset/img/content/url.png +0 -0
- package/src/asset/img/content/video.png +0 -0
- package/src/asset/img/contentType/default.png +0 -0
- package/src/asset/img/contentType/x_article.png +0 -0
- package/src/asset/img/contentType/x_audio_video.png +0 -0
- package/src/asset/img/contentType/x_course.png +0 -0
- package/src/asset/img/contentType/x_document.png +0 -0
- package/src/asset/img/contentType/x_image_list.png +0 -0
- package/src/asset/img/course/book.svg +0 -1
- package/src/asset/img/course/courseBg.png +0 -0
- package/src/asset/img/course/default.png +0 -0
- package/src/asset/img/course/document.png +0 -0
- package/src/asset/img/course/done.png +0 -0
- package/src/asset/img/course/file_doc.svg +0 -1
- package/src/asset/img/course/file_doc_active.svg +0 -1
- package/src/asset/img/course/file_video.svg +0 -1
- package/src/asset/img/course/file_video_active.svg +0 -1
- package/src/asset/img/course/icon_checkbox_linear.svg +0 -1
- package/src/asset/img/course/icondown.png +0 -0
- package/src/asset/img/course/learning.png +0 -0
- package/src/asset/img/course/lecturerDefault.png +0 -0
- package/src/asset/img/course/nolearn.png +0 -0
- package/src/asset/img/course/noplay.png +0 -0
- package/src/asset/img/course/pause.png +0 -0
- package/src/asset/img/course/people.png +0 -0
- package/src/asset/img/course/play.png +0 -0
- package/src/asset/img/course/playing.svg +0 -22
- package/src/asset/img/course/reload.png +0 -0
- package/src/asset/img/course/shouqi_icon.png +0 -0
- package/src/asset/img/course/test.png +0 -0
- package/src/asset/img/course/video.png +0 -0
- package/src/asset/img/def/resource_def.png +0 -0
- package/src/asset/img/def/studio_def.png +0 -0
- package/src/asset/img/def-avatar.jpg +0 -0
- package/src/asset/img/download-active.png +0 -0
- package/src/asset/img/download.png +0 -0
- package/src/asset/img/eduReform/djdy-cover.png +0 -0
- package/src/asset/img/eduReform/djdy.png +0 -0
- package/src/asset/img/eduReform/jxcg-1.png +0 -0
- package/src/asset/img/eduReform/jxcg-2.png +0 -0
- package/src/asset/img/eduReform/jxcg-3.png +0 -0
- package/src/asset/img/eduReform/jxcg-4.png +0 -0
- package/src/asset/img/eduReform/jxcg-cover.png +0 -0
- package/src/asset/img/eduReform/jxgg.png +0 -0
- package/src/asset/img/eduReform/jyxxh-cover.png +0 -0
- package/src/asset/img/eduReform/jyxxh.png +0 -0
- package/src/asset/img/eduReform/ptgz-cover.png +0 -0
- package/src/asset/img/eduReform/ptgz.png +0 -0
- package/src/asset/img/eduReform/sjgz-cover.png +0 -0
- package/src/asset/img/eduReform/sjgz.png +0 -0
- package/src/asset/img/eduReform/tsjy-cover.png +0 -0
- package/src/asset/img/eduReform/tsjy.png +0 -0
- package/src/asset/img/eduReform/xqjy-1.png +0 -0
- package/src/asset/img/eduReform/xqjy-2.png +0 -0
- package/src/asset/img/eduReform/xqjy-3.png +0 -0
- package/src/asset/img/eduReform/xqjy-4.png +0 -0
- package/src/asset/img/eduReform/xqjy-cover.png +0 -0
- package/src/asset/img/eduReform/xqjy.png +0 -0
- package/src/asset/img/eduReform/ywjy-1.png +0 -0
- package/src/asset/img/eduReform/ywjy-2.png +0 -0
- package/src/asset/img/eduReform/ywjy-cover.png +0 -0
- package/src/asset/img/eduReform/ywjy.png +0 -0
- package/src/asset/img/eduReform/zhgg-1.png +0 -0
- package/src/asset/img/eduReform/zhgg-2.png +0 -0
- package/src/asset/img/eduReform/zhgg-cover.png +0 -0
- package/src/asset/img/eduReform/zhgg.png +0 -0
- package/src/asset/img/family/1.jpg +0 -0
- package/src/asset/img/family/ff-1.png +0 -0
- package/src/asset/img/family/ff-2.png +0 -0
- package/src/asset/img/family/ff-3.png +0 -0
- package/src/asset/img/family/ff-cover.png +0 -0
- package/src/asset/img/family/gn-1.png +0 -0
- package/src/asset/img/family/gn-2.png +0 -0
- package/src/asset/img/family/gn-3.png +0 -0
- package/src/asset/img/family/gn-cover.png +0 -0
- package/src/asset/img/family/icon/jyff.png +0 -0
- package/src/asset/img/family/icon/jygn.png +0 -0
- package/src/asset/img/family/icon/jyzd.png +0 -0
- package/src/asset/img/family/zd-1.png +0 -0
- package/src/asset/img/family/zd-2.png +0 -0
- package/src/asset/img/family/zd-3.png +0 -0
- package/src/asset/img/family/zd-cover.png +0 -0
- package/src/asset/img/favicon-m.png +0 -0
- package/src/asset/img/favicon.png +0 -0
- package/src/asset/img/icon-course-white.svg +0 -3
- package/src/asset/img/icon-course.svg +0 -3
- package/src/asset/img/icon-eye-white.svg +0 -4
- package/src/asset/img/icon-eye.svg +0 -4
- package/src/asset/img/icon-school-white.svg +0 -3
- package/src/asset/img/icon-school.svg +0 -3
- package/src/asset/img/img-jgsj/10.png +0 -0
- package/src/asset/img/img-jgsj/3.png +0 -0
- package/src/asset/img/img-jgsj/4.png +0 -0
- package/src/asset/img/img-jgsj/5.png +0 -0
- package/src/asset/img/img-jgsj/6.png +0 -0
- package/src/asset/img/img-jgsj/7-1.png +0 -0
- package/src/asset/img/img-jgsj/7-2.png +0 -0
- package/src/asset/img/img-jgsj/8.png +0 -0
- package/src/asset/img/img-jgsj/8s.png +0 -0
- package/src/asset/img/img-jgsj/9.png +0 -0
- package/src/asset/img/img-search-tag-bottom.png +0 -0
- package/src/asset/img/img-ztjy/1.png +0 -0
- package/src/asset/img/img-ztjy/2.png +0 -0
- package/src/asset/img/img-ztjy/3.png +0 -0
- package/src/asset/img/img-ztjy/4.png +0 -0
- package/src/asset/img/img-ztjy/5.png +0 -0
- package/src/asset/img/img-ztjy/6.png +0 -0
- package/src/asset/img/img-ztjy/icon/agzy.png +0 -0
- package/src/asset/img/img-ztjy/icon/dsxx.png +0 -0
- package/src/asset/img/img-ztjy/icon/kcjx.png +0 -0
- package/src/asset/img/img-ztjy/icon/pdjy.png +0 -0
- package/src/asset/img/img-ztjy/icon/smyaq.png +0 -0
- package/src/asset/img/img-ztjy/icon/stwm.png +0 -0
- package/src/asset/img/img-ztjy/icon/xffz.png +0 -0
- package/src/asset/img/img-ztjy/icon/xljk.png +0 -0
- package/src/asset/img/img-ztjy/icon/yxctwh.png +0 -0
- package/src/asset/img/incentives/star.png +0 -0
- package/src/asset/img/juhe-bg.png +0 -0
- package/src/asset/img/left-hover.png +0 -0
- package/src/asset/img/left-nor.png +0 -0
- package/src/asset/img/living-gif-web.gif +0 -0
- package/src/asset/img/loading.svg +0 -52
- package/src/asset/img/person.png +0 -0
- package/src/asset/img/personalCenter/calendar_icon.png +0 -0
- package/src/asset/img/personalCenter/clock.png +0 -0
- package/src/asset/img/personalCenter/cover.jpg +0 -0
- package/src/asset/img/personalCenter/default_cover.png +0 -0
- package/src/asset/img/personalCenter/header_bg.png +0 -0
- package/src/asset/img/personalCenter/video_icon.png +0 -0
- package/src/asset/img/resource/cover.png +0 -0
- package/src/asset/img/resource/more_close.png +0 -0
- package/src/asset/img/resource/more_open.png +0 -0
- package/src/asset/img/resource/remove.png +0 -0
- package/src/asset/img/resource/tags.png +0 -0
- package/src/asset/img/resource/upload.png +0 -0
- package/src/asset/img/resource//346/211/271/351/207/217/347/274/226/350/276/221@2x.png +0 -0
- package/src/asset/img/right-hover.png +0 -0
- package/src/asset/img/right-icon.png +0 -0
- package/src/asset/img/right-nor.png +0 -0
- package/src/asset/img/schoolService/jdyd-1.png +0 -0
- package/src/asset/img/schoolService/jdyd-2.png +0 -0
- package/src/asset/img/schoolService/jdyd-3.png +0 -0
- package/src/asset/img/schoolService/jdyd-cover.png +0 -0
- package/src/asset/img/schoolService/jdyd.png +0 -0
- package/src/asset/img/schoolService/kpjy-1.png +0 -0
- package/src/asset/img/schoolService/kpjy-2.png +0 -0
- package/src/asset/img/schoolService/kpjy-3.png +0 -0
- package/src/asset/img/schoolService/kpjy-cover.png +0 -0
- package/src/asset/img/schoolService/kpjy.png +0 -0
- package/src/asset/img/schoolService/tydl-1.png +0 -0
- package/src/asset/img/schoolService/tydl-2.png +0 -0
- package/src/asset/img/schoolService/tydl-3.png +0 -0
- package/src/asset/img/schoolService/tydl-cover.png +0 -0
- package/src/asset/img/schoolService/tydl.png +0 -0
- package/src/asset/img/schoolService/whys-1.png +0 -0
- package/src/asset/img/schoolService/whys-2.png +0 -0
- package/src/asset/img/schoolService/whys-3.png +0 -0
- package/src/asset/img/schoolService/whys-4.png +0 -0
- package/src/asset/img/schoolService/whys-cover.png +0 -0
- package/src/asset/img/schoolService/whys.png +0 -0
- package/src/asset/img/schoolService/ysjy-1.png +0 -0
- package/src/asset/img/schoolService/ysjy-2.png +0 -0
- package/src/asset/img/schoolService/ysjy-3.png +0 -0
- package/src/asset/img/schoolService/ysjy-4.png +0 -0
- package/src/asset/img/schoolService/ysjy-cover.png +0 -0
- package/src/asset/img/schoolService/ysjy.png +0 -0
- package/src/asset/img/schoolService/yxjy-cover.png +0 -0
- package/src/asset/img/schoolService/yxsj-1.png +0 -0
- package/src/asset/img/schoolService/yxsj-2.png +0 -0
- package/src/asset/img/schoolService/yxsj-3.png +0 -0
- package/src/asset/img/schoolService/yxsj.png +0 -0
- package/src/asset/img/sedu/catalog/list.png +0 -0
- package/src/asset/img/sedu/icon/agzy-prefix.png +0 -0
- package/src/asset/img/sedu/icon/agzy.png +0 -0
- package/src/asset/img/sedu/icon/arrow-hover.png +0 -0
- package/src/asset/img/sedu/icon/arrow.png +0 -0
- package/src/asset/img/sedu/icon/dsxx-prefix.png +0 -0
- package/src/asset/img/sedu/icon/dsxx.png +0 -0
- package/src/asset/img/sedu/icon/epidemic-prevention-bg.png +0 -0
- package/src/asset/img/sedu/icon/epidemic-prevention.png +0 -0
- package/src/asset/img/sedu/icon/family-bg.png +0 -0
- package/src/asset/img/sedu/icon/family.png +0 -0
- package/src/asset/img/sedu/icon/film-bg.png +0 -0
- package/src/asset/img/sedu/icon/film.png +0 -0
- package/src/asset/img/sedu/icon/go-more-hover.png +0 -0
- package/src/asset/img/sedu/icon/go-more.png +0 -0
- package/src/asset/img/sedu/icon/kcjx.png +0 -0
- package/src/asset/img/sedu/icon/ldjy-prefix.png +0 -0
- package/src/asset/img/sedu/icon/life-safe-bg.png +0 -0
- package/src/asset/img/sedu/icon/life-safe.png +0 -0
- package/src/asset/img/sedu/icon/morality-bg.png +0 -0
- package/src/asset/img/sedu/icon/morality.png +0 -0
- package/src/asset/img/sedu/icon/more-bg.png +0 -0
- package/src/asset/img/sedu/icon/more.png +0 -0
- package/src/asset/img/sedu/icon/party-history-bg.png +0 -0
- package/src/asset/img/sedu/icon/party-history.png +0 -0
- package/src/asset/img/sedu/icon/pdjy-prefix.png +0 -0
- package/src/asset/img/sedu/icon/pdjy.png +0 -0
- package/src/asset/img/sedu/icon/psychological-bg.png +0 -0
- package/src/asset/img/sedu/icon/psychological.png +0 -0
- package/src/asset/img/sedu/icon/read-bg.png +0 -0
- package/src/asset/img/sedu/icon/read.png +0 -0
- package/src/asset/img/sedu/icon/smaq-prefix.png +0 -0
- package/src/asset/img/sedu/icon/smyaq.png +0 -0
- package/src/asset/img/sedu/icon/study-bg.png +0 -0
- package/src/asset/img/sedu/icon/study.png +0 -0
- package/src/asset/img/sedu/icon/stwm-prefix.png +0 -0
- package/src/asset/img/sedu/icon/stwm.png +0 -0
- package/src/asset/img/sedu/icon/xffz-prefix.png +0 -0
- package/src/asset/img/sedu/icon/xffz.png +0 -0
- package/src/asset/img/sedu/icon/xljk-prefix.png +0 -0
- package/src/asset/img/sedu/icon/xljk.png +0 -0
- package/src/asset/img/sedu/icon/yxctwh-prefix.png +0 -0
- package/src/asset/img/sedu/icon/yxctwh.png +0 -0
- package/src/asset/img/sedu/nav_new/agzy-1.png +0 -0
- package/src/asset/img/sedu/nav_new/agzy-2.png +0 -0
- package/src/asset/img/sedu/nav_new/agzy-3.png +0 -0
- package/src/asset/img/sedu/nav_new/agzy-cover.png +0 -0
- package/src/asset/img/sedu/nav_new/agzy.png +0 -0
- package/src/asset/img/sedu/nav_new/dsxx-1.png +0 -0
- package/src/asset/img/sedu/nav_new/dsxx-2.png +0 -0
- package/src/asset/img/sedu/nav_new/dsxx-3.png +0 -0
- package/src/asset/img/sedu/nav_new/dsxx-cover.png +0 -0
- package/src/asset/img/sedu/nav_new/dsxx.png +0 -0
- package/src/asset/img/sedu/nav_new/jdwy-1.png +0 -0
- package/src/asset/img/sedu/nav_new/jdwy-2.png +0 -0
- package/src/asset/img/sedu/nav_new/jdwy-3.png +0 -0
- package/src/asset/img/sedu/nav_new/ldjy-1.png +0 -0
- package/src/asset/img/sedu/nav_new/ldjy-2.png +0 -0
- package/src/asset/img/sedu/nav_new/ldjy-3.png +0 -0
- package/src/asset/img/sedu/nav_new/ldjy-cover.png +0 -0
- package/src/asset/img/sedu/nav_new/ldjy.png +0 -0
- package/src/asset/img/sedu/nav_new/pdjy-1.png +0 -0
- package/src/asset/img/sedu/nav_new/pdjy-2.png +0 -0
- package/src/asset/img/sedu/nav_new/pdjy-3.png +0 -0
- package/src/asset/img/sedu/nav_new/pdjy-cover.png +0 -0
- package/src/asset/img/sedu/nav_new/pdjy.png +0 -0
- package/src/asset/img/sedu/nav_new/smyaq-1.png +0 -0
- package/src/asset/img/sedu/nav_new/smyaq-2.png +0 -0
- package/src/asset/img/sedu/nav_new/smyaq-3.png +0 -0
- package/src/asset/img/sedu/nav_new/smyaq-4.png +0 -0
- package/src/asset/img/sedu/nav_new/smyaq-cover.png +0 -0
- package/src/asset/img/sedu/nav_new/smyaq.png +0 -0
- package/src/asset/img/sedu/nav_new/stwm-1.png +0 -0
- package/src/asset/img/sedu/nav_new/stwm-2.png +0 -0
- package/src/asset/img/sedu/nav_new/stwm-3.png +0 -0
- package/src/asset/img/sedu/nav_new/stwm-cover.png +0 -0
- package/src/asset/img/sedu/nav_new/stwm.png +0 -0
- package/src/asset/img/sedu/nav_new/xffz-1.png +0 -0
- package/src/asset/img/sedu/nav_new/xffz-2.png +0 -0
- package/src/asset/img/sedu/nav_new/xffz-3.png +0 -0
- package/src/asset/img/sedu/nav_new/xffz-4.png +0 -0
- package/src/asset/img/sedu/nav_new/xffz-cover.png +0 -0
- package/src/asset/img/sedu/nav_new/xffz.png +0 -0
- package/src/asset/img/sedu/nav_new/xljk-1.png +0 -0
- package/src/asset/img/sedu/nav_new/xljk-2.png +0 -0
- package/src/asset/img/sedu/nav_new/xljk-3.png +0 -0
- package/src/asset/img/sedu/nav_new/xljk-cover.png +0 -0
- package/src/asset/img/sedu/nav_new/xljk.png +0 -0
- package/src/asset/img/sedu/nav_new/yxctwh-1.png +0 -0
- package/src/asset/img/sedu/nav_new/yxctwh-2.png +0 -0
- package/src/asset/img/sedu/nav_new/yxctwh-3.png +0 -0
- package/src/asset/img/sedu/nav_new/zgwhct-cover.png +0 -0
- package/src/asset/img/sedu/nav_new/zgwhct.png +0 -0
- package/src/asset/img/star.png +0 -0
- package/src/asset/img/star_filled.png +0 -0
- package/src/asset/img/star_hover.png +0 -0
- package/src/asset/img/up-hover.png +0 -0
- package/src/asset/img/up-nor.png +0 -0
- package/src/asset/img/video-play.svg +0 -6
- package/src/asset/style/background.less +0 -20
- package/src/asset/style/banner.less +0 -36
- package/src/asset/style/base.less +0 -74
- package/src/asset/style/index.less +0 -114
- package/src/asset/style/reset-theme.less +0 -142
- package/src/asset/style/theme/index.less +0 -55
- package/src/asset/style/theme/party/global.less +0 -20
- package/src/asset/style/theme/party/img/footer-bg.png +0 -0
- package/src/asset/style/theme/party/img/header-bg-1.png +0 -0
- package/src/asset/style/theme/party/img/header-bg-2.png +0 -0
- package/src/asset/style/theme/party/img/header-bg.png +0 -0
- package/src/asset/style/theme/party/img/logo.png +0 -0
- package/src/asset/style/theme/party/override.less +0 -57
- package/src/asset/style/theme/test/global.less +0 -18
- package/src/asset/style/theme/test/img/footer-bg.png +0 -0
- package/src/asset/style/theme/test/img/header-bg-1.png +0 -0
- package/src/asset/style/theme/test/img/header-bg-2.png +0 -0
- package/src/asset/style/theme/test/img/header-bg.png +0 -0
- package/src/asset/style/theme/test/img/logo.png +0 -0
- package/src/asset/style/theme/test/override.less +0 -45
- package/src/asset/style/variable.less +0 -12
- package/src/component/AliPlayer/index.jsx +0 -49
- package/src/component/Avatar/index.jsx +0 -50
- package/src/component/Empty/img/empty.png +0 -0
- package/src/component/Empty/index.jsx +0 -34
- package/src/component/Empty/index.module.less +0 -37
- package/src/component/IMChatroom/asset/style/images/welcome-m.png +0 -0
- package/src/component/IMChatroom/asset/style/images/welcome.png +0 -0
- package/src/component/IMChatroom/asset/style/index.module.less +0 -0
- package/src/component/IMChatroom/component/status/403.jsx +0 -13
- package/src/component/IMChatroom/component/status/404.jsx +0 -13
- package/src/component/IMChatroom/component/status/Error.jsx +0 -23
- package/src/component/IMChatroom/component/status/Loading.jsx +0 -5
- package/src/component/IMChatroom/config/app/config.js +0 -118
- package/src/component/IMChatroom/config/app/index.js +0 -60
- package/src/component/IMChatroom/config/env.js +0 -5
- package/src/component/IMChatroom/config/index.js +0 -3
- package/src/component/IMChatroom/config/request/config/base.js +0 -124
- package/src/component/IMChatroom/config/request/config/chatroom.js +0 -26
- package/src/component/IMChatroom/config/request/config/imCoreApi.js +0 -21
- package/src/component/IMChatroom/config/request/index.js +0 -21
- package/src/component/IMChatroom/config/request/proxy.js +0 -39
- package/src/component/IMChatroom/config/url.js +0 -7
- package/src/component/IMChatroom/constants/errorCode.js +0 -9
- package/src/component/IMChatroom/constants/index.js +0 -84
- package/src/component/IMChatroom/constants/origin.js +0 -27
- package/src/component/IMChatroom/context/chatroom.js +0 -154
- package/src/component/IMChatroom/context/connect.js +0 -28
- package/src/component/IMChatroom/i18n/en/index.json +0 -73
- package/src/component/IMChatroom/i18n/index.jsx +0 -14
- package/src/component/IMChatroom/i18n/language.js +0 -9
- package/src/component/IMChatroom/i18n/zh-CN/index.json +0 -73
- package/src/component/IMChatroom/index.jsx +0 -49
- package/src/component/IMChatroom/page/chat/index.jsx +0 -27
- package/src/component/IMChatroom/page/chat/messageEditor/index.jsx +0 -375
- package/src/component/IMChatroom/page/chat/messageList/index.jsx +0 -354
- package/src/component/IMChatroom/page/chat/stickedMessage/index.jsx +0 -59
- package/src/component/IMChatroom/page/chat/stickedMessage/style/index.module.less +0 -8
- package/src/component/IMChatroom/page/chat/style/index.module.less +0 -52
- package/src/component/IMChatroom/page/home/connect/index.jsx +0 -188
- package/src/component/IMChatroom/page/home/connect/status.jsx +0 -124
- package/src/component/IMChatroom/page/home/context/cmd.jsx +0 -37
- package/src/component/IMChatroom/page/home/context/index.jsx +0 -67
- package/src/component/IMChatroom/page/home/index.jsx +0 -164
- package/src/component/IMChatroom/page/home/notice/index.jsx +0 -123
- package/src/component/IMChatroom/page/home/notice/style/index.module.less +0 -50
- package/src/component/IMChatroom/page/home/style/images/font-size-active-m.png +0 -0
- package/src/component/IMChatroom/page/home/style/images/font-size-active.png +0 -0
- package/src/component/IMChatroom/page/home/style/images/font-size-m.png +0 -0
- package/src/component/IMChatroom/page/home/style/images/font-size.png +0 -0
- package/src/component/IMChatroom/page/home/style/images/notice-active-m.png +0 -0
- package/src/component/IMChatroom/page/home/style/images/notice-active.png +0 -0
- package/src/component/IMChatroom/page/home/style/images/notice-m.png +0 -0
- package/src/component/IMChatroom/page/home/style/images/notice.png +0 -0
- package/src/component/IMChatroom/page/home/style/index.module.less +0 -111
- package/src/component/IMChatroom/page/member/index.jsx +0 -15
- package/src/component/IMChatroom/page/member/memberCount/index.jsx +0 -44
- package/src/component/IMChatroom/page/member/memberList/index.jsx +0 -121
- package/src/component/IMChatroom/page/member/style/index.module.less +0 -3
- package/src/component/IMChatroom/sdk/bridge.js +0 -39
- package/src/component/IMChatroom/sdk/cs/constants.js +0 -20
- package/src/component/IMChatroom/sdk/cs/index.js +0 -101
- package/src/component/IMChatroom/sdk/imChatroom.js +0 -22
- package/src/component/IMChatroom/sdk/imcore/constants.js +0 -130
- package/src/component/IMChatroom/sdk/imcore/emitters/chatroomDestroyed.js +0 -5
- package/src/component/IMChatroom/sdk/imcore/emitters/chatroomInfoGetFail.js +0 -5
- package/src/component/IMChatroom/sdk/imcore/emitters/chatroomKickedByAdmin.js +0 -5
- package/src/component/IMChatroom/sdk/imcore/emitters/chatroomKickedBySelf.js +0 -5
- package/src/component/IMChatroom/sdk/imcore/emitters/chatroomLoginFail.js +0 -5
- package/src/component/IMChatroom/sdk/imcore/emitters/chatroomLoginSuccess.js +0 -5
- package/src/component/IMChatroom/sdk/imcore/emitters/chatroomMemberLogin.js +0 -5
- package/src/component/IMChatroom/sdk/imcore/emitters/chatroomMemberLogout.js +0 -5
- package/src/component/IMChatroom/sdk/imcore/emitters/connectionConnected.js +0 -5
- package/src/component/IMChatroom/sdk/imcore/emitters/connectionConnecting.js +0 -5
- package/src/component/IMChatroom/sdk/imcore/emitters/connectionDisconnect.js +0 -5
- package/src/component/IMChatroom/sdk/imcore/emitters/index.js +0 -57
- package/src/component/IMChatroom/sdk/imcore/emitters/messageReceive.js +0 -36
- package/src/component/IMChatroom/sdk/imcore/index.js +0 -178
- package/src/component/IMChatroom/sdk/imcore/interceptors/request.js +0 -7
- package/src/component/IMChatroom/sdk/imcore/interceptors/response.js +0 -5
- package/src/component/IMChatroom/sdk/imcore/plugins/getAuth.js +0 -64
- package/src/component/IMChatroom/sdk/imcore/plugins/getConversationId.js +0 -20
- package/src/component/IMChatroom/sdk/imcore/plugins/getExtInfo.js +0 -10
- package/src/component/IMChatroom/sdk/imcore/plugins/getLoginInfo.js +0 -48
- package/src/component/IMChatroom/sdk/imcore/plugins/getPlatformType.js +0 -12
- package/src/component/IMChatroom/sdk/imcore/plugins/index.js +0 -22
- package/src/component/IMChatroom/sdk/imcore/util/format.js +0 -177
- package/src/component/IMChatroom/sdk/imcore/util/parser.js +0 -35
- package/src/component/IMChatroom/sdk/oms.js +0 -18
- package/src/component/IMChatroom/sdk/uc.js +0 -3
- package/src/component/IMChatroom/subscription/channel/app.js +0 -5
- package/src/component/IMChatroom/subscription/channel/ctl.js +0 -22
- package/src/component/IMChatroom/subscription/channel/member.js +0 -40
- package/src/component/IMChatroom/subscription/channel/message.js +0 -13
- package/src/component/IMChatroom/subscription/channel/ntf.js +0 -86
- package/src/component/IMChatroom/subscription/channel/tel.js +0 -5
- package/src/component/IMChatroom/subscription/channel/websocket.js +0 -5
- package/src/component/IMChatroom/subscription/event.js +0 -37
- package/src/component/IMChatroom/subscription/index.js +0 -19
- package/src/component/IMChatroom/util/account.js +0 -8
- package/src/component/IMChatroom/util/chatroom.js +0 -255
- package/src/component/IMChatroom/util/jsonBigInt.js +0 -5
- package/src/component/IMChatroom/util/location.js +0 -12
- package/src/component/Icon/index.jsx +0 -16
- package/src/component/Icon/index.module.less +0 -3
- package/src/component/Pagination/LocalPagination.jsx +0 -27
- package/src/component/Pagination/RemotePagination.jsx +0 -32
- package/src/component/Pagination/index.jsx +0 -32
- package/src/component/Pagination/index.module.less +0 -117
- package/src/component/PlayerTip/index.jsx +0 -34
- package/src/component/VideoBase/index.jsx +0 -242
- package/src/component/VideoBase/style.less +0 -66
- package/src/component/VideoBase/utils.js +0 -81
- package/src/component/mixin.less +0 -10
- package/src/component/status/403.jsx +0 -15
- package/src/component/status/404/img/404.png +0 -0
- package/src/component/status/404/index.jsx +0 -73
- package/src/component/status/404/index.module.less +0 -36
- package/src/component/status/Error/error.module.less +0 -14
- package/src/component/status/Error/img/error.png +0 -0
- package/src/component/status/Error/index.jsx +0 -47
- package/src/component/status/Loading/img/loading.svg +0 -52
- package/src/component/status/Loading/index.jsx +0 -31
- package/src/component/status/Loading/index.less +0 -57
- package/src/component/status/None/img/404.png +0 -0
- package/src/component/status/None/index.jsx +0 -20
- package/src/component/status/None/index.module.less +0 -35
- package/src/component/status/Status/index.jsx +0 -26
- package/src/component/status/Status/index.module.less +0 -9
- package/src/config/constant/commonUrl.js +0 -2
- package/src/config/constant/user.js +0 -6
- package/src/config/context/site-config.js +0 -48
- package/src/config/env/index.js +0 -5
- package/src/config/env/local/index.js +0 -13
- package/src/config/env/ncet-xedu/api.js +0 -175
- package/src/config/env/ncet-xedu/app.js +0 -12
- package/src/config/env/ncet-xedu/cs.js +0 -8
- package/src/config/env/ncet-xedu/index.js +0 -14
- package/src/config/env/ncet-xedu/push.js +0 -5
- package/src/config/env/ncet-xedu-beta/api.js +0 -175
- package/src/config/env/ncet-xedu-beta/app.js +0 -12
- package/src/config/env/ncet-xedu-beta/cs.js +0 -8
- package/src/config/env/ncet-xedu-beta/index.js +0 -14
- package/src/config/env/ncet-xedu-beta/push.js +0 -5
- package/src/config/env/preproduction/api.js +0 -144
- package/src/config/env/preproduction/app.js +0 -12
- package/src/config/env/preproduction/cs.js +0 -8
- package/src/config/env/preproduction/index.js +0 -14
- package/src/config/env/preproduction/push.js +0 -5
- package/src/config/env/product/api.js +0 -113
- package/src/config/env/product/app.js +0 -12
- package/src/config/env/product/cs.js +0 -5
- package/src/config/env/product/index.js +0 -14
- package/src/config/env/product/push.js +0 -5
- package/src/config/live.js +0 -80
- package/src/config/publicLive.js +0 -53
- package/src/config/request/assessments.js +0 -24
- package/src/config/request/config-center.js +0 -8
- package/src/config/request/helper.js +0 -190
- package/src/config/request/im-broadcasts.js +0 -12
- package/src/config/request/live-activity-gateway.js +0 -8
- package/src/config/request/live-activity.js +0 -13
- package/src/config/request/raw.js +0 -6
- package/src/config/request/x-cloud-web.js +0 -13
- package/src/config/request/x-proxy.js +0 -34
- package/src/demo/Detail.jsx +0 -11
- package/src/demo/List.jsx +0 -68
- package/src/demo/index.jsx +0 -17
- package/src/detail/LineSwitch/index.jsx +0 -71
- package/src/detail/LineSwitch/index.module.less +0 -0
- package/src/detail/LiveCountDown/index.jsx +0 -44
- package/src/detail/LiveCountDown/index.module.less +0 -32
- package/src/detail/LiveOnlineCount/img/icon.svg +0 -16
- package/src/detail/LiveOnlineCount/index.jsx +0 -68
- package/src/detail/LiveOnlineCount/index.module.less +0 -34
- package/src/detail/LiveOnlineCount/util.js +0 -74
- package/src/detail/LiveStatus/AnchorOnTheWay.jsx +0 -88
- package/src/detail/LiveStatus/index.jsx +0 -202
- package/src/detail/LiveStatus/index.module.less +0 -193
- package/src/detail/LiveVideo/asset/play-button-hover-m.png +0 -0
- package/src/detail/LiveVideo/asset/play-button-hover.png +0 -0
- package/src/detail/LiveVideo/asset/play-button-m.png +0 -0
- package/src/detail/LiveVideo/asset/play-button.png +0 -0
- package/src/detail/LiveVideo/config.js +0 -37
- package/src/detail/LiveVideo/index.jsx +0 -188
- package/src/detail/LiveVideo/index.module.less +0 -41
- package/src/detail/NotLoginChatroom/asset/empty-m.png +0 -0
- package/src/detail/NotLoginChatroom/asset/empty.png +0 -0
- package/src/detail/NotLoginChatroom/index.jsx +0 -37
- package/src/detail/NotLoginChatroom/index.module.less +0 -46
- package/src/detail/RecordVideo/index.jsx +0 -150
- package/src/detail/RecordVideo/index.module.less +0 -32
- package/src/detail/ReplayVideo/index.jsx +0 -93
- package/src/detail/ReplayVideo/index.module.less +0 -65
- package/src/detail/const.js +0 -20
- package/src/detail/hook/usePullSource.js +0 -82
- package/src/detail/hook/usePullState.js +0 -51
- package/src/detail/img/icon_coffee.png +0 -0
- package/src/detail/img/icon_completed.png +0 -0
- package/src/detail/index.jsx +0 -483
- package/src/detail/index.module.less +0 -189
- package/src/hook/useAsync.js +0 -84
- package/src/hook/useGoToPage.js +0 -83
- package/src/hook/useInterval.js +0 -28
- package/src/hook/useIsMounted.js +0 -17
- package/src/hook/useModuleByRole.js +0 -53
- package/src/hook/usePageScrollable.js +0 -52
- package/src/hook/usePortal.js +0 -83
- package/src/hook/useScrollRestore/index.js +0 -32
- package/src/hook/useScrollRestore/scrollContext.js +0 -20
- package/src/hook/useTrackRef.js +0 -11
- package/src/hook/useWindowSize.js +0 -28
- package/src/hook/useZoom.js +0 -47
- package/src/index.js +0 -10
- package/src/lib/getLiveOnlineCount.js +0 -10
- package/src/lib/getServiceConfig.js +0 -102
- package/src/list/Empty/img/empty.png +0 -0
- package/src/list/Empty/index.jsx +0 -20
- package/src/list/Empty/index.module.less +0 -23
- package/src/list/ListItem/Action/index.jsx +0 -109
- package/src/list/ListItem/Action/index.module.less +0 -26
- package/src/list/ListItem/img/dianzan.svg +0 -4
- package/src/list/ListItem/img/like-fill.svg +0 -8
- package/src/list/ListItem/img/live.png +0 -0
- package/src/list/ListItem/img/play.svg +0 -16
- package/src/list/ListItem/img/video.svg +0 -3
- package/src/list/ListItem/img/view-fill.svg +0 -8
- package/src/list/ListItem/img/yiguankan.svg +0 -3
- package/src/list/ListItem/index.jsx +0 -135
- package/src/list/ListItem/index.module.less +0 -158
- package/src/list/index.jsx +0 -241
- package/src/list/index.module.less +0 -39
- package/src/service/common.js +0 -73
- package/src/service/content-mgr.js +0 -73
- package/src/service/im-group.js +0 -12
- package/src/service/im.js +0 -7
- package/src/service/imBroadcasts.js +0 -33
- package/src/service/like.js +0 -134
- package/src/service/live.js +0 -293
- package/src/service/manageApi.js +0 -7
- package/src/service/managePortal.js +0 -6
- package/src/service/myStudyRecord.js +0 -93
- package/src/service/navigation.js +0 -47
- package/src/service/ndMeeting.js +0 -10
- package/src/service/ndr.js +0 -122
- package/src/service/news.js +0 -93
- package/src/service/personalCenter.js +0 -270
- package/src/service/qualityCourse.js +0 -31
- package/src/service/recommend.js +0 -81
- package/src/service/school.js +0 -323
- package/src/service/search.js +0 -170
- package/src/service/site-config.js +0 -7
- package/src/service/socialCensor.js +0 -45
- package/src/service/specialEdu.js +0 -31
- package/src/service/suggestion.js +0 -85
- package/src/service/syncClassroom.js +0 -321
- package/src/service/tCourse.js +0 -204
- package/src/service/tchTraining.js +0 -37
- package/src/service/uc.js +0 -45
- package/src/util/app.js +0 -1
- package/src/util/array.js +0 -3
- package/src/util/auth/func.js +0 -57
- package/src/util/date.js +0 -53
- package/src/util/env.js +0 -9
- package/src/util/getTimestamp.js +0 -10
- package/src/util/hof.js +0 -105
- package/src/util/live/index.js +0 -42
- package/src/util/liveCountUtil.js +0 -52
- package/src/util/netUrl.js +0 -35
- package/src/util/object.js +0 -13
- package/src/util/push/index.js +0 -58
- package/src/util/request.js +0 -227
- package/src/util/type.js +0 -17
- package/src/util/url.js +0 -203
- package/src/util/video.js +0 -26
- package/test/setup.js +0 -21
- package/test/unit/component/header/logo.spec.jsx +0 -8
- package/test/unit/helper.jsx +0 -25
- package/test/unit/util/date.spec.js +0 -40
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
.container {
|
|
2
|
-
padding: 24px 0;
|
|
3
|
-
margin: 0 24px;
|
|
4
|
-
display: flex;
|
|
5
|
-
justify-content: flex-start;
|
|
6
|
-
// border-top: 1px solid #eee;
|
|
7
|
-
cursor: pointer;
|
|
8
|
-
|
|
9
|
-
&:first-child {
|
|
10
|
-
border-top: none;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.left {
|
|
14
|
-
|
|
15
|
-
border-radius: 8px;
|
|
16
|
-
position: relative;
|
|
17
|
-
|
|
18
|
-
.avatar {
|
|
19
|
-
width: 204px;
|
|
20
|
-
height: 120px;
|
|
21
|
-
border-radius: 8px;
|
|
22
|
-
object-fit: cover;
|
|
23
|
-
overflow: hidden;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.tag {
|
|
27
|
-
position: absolute;
|
|
28
|
-
top: 0px;
|
|
29
|
-
border-radius: 8px 0px;
|
|
30
|
-
font-size: 12px;
|
|
31
|
-
line-height: 12px;
|
|
32
|
-
height: 20px;
|
|
33
|
-
padding: 0 8px;
|
|
34
|
-
display: flex;
|
|
35
|
-
align-items: center;
|
|
36
|
-
color: #fff;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.tag0 { // 预告
|
|
40
|
-
background-color: #FF7826;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.tag1, .tag3 { // 直播中
|
|
44
|
-
background-color: #1E62EC;
|
|
45
|
-
padding: 0 5px;
|
|
46
|
-
|
|
47
|
-
img {
|
|
48
|
-
transform: rotate(180deg);
|
|
49
|
-
height: 10px;
|
|
50
|
-
width: 10px;
|
|
51
|
-
margin-right: 5px;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.tag2 { // 回放
|
|
56
|
-
background-color: rgba(0, 0, 0, 0.60);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.right {
|
|
61
|
-
display: flex;
|
|
62
|
-
flex-direction: column;
|
|
63
|
-
justify-content: space-between;
|
|
64
|
-
width: calc(100% - 228px);
|
|
65
|
-
margin-right: 24px;
|
|
66
|
-
&-top {
|
|
67
|
-
.title {
|
|
68
|
-
overflow: hidden;
|
|
69
|
-
text-overflow: ellipsis;
|
|
70
|
-
display: -webkit-box;
|
|
71
|
-
-webkit-box-orient: vertical;
|
|
72
|
-
word-wrap: break-word;
|
|
73
|
-
line-height: 28px;
|
|
74
|
-
-webkit-line-clamp: 2;
|
|
75
|
-
font-size: 20px;
|
|
76
|
-
font-weight: 600;
|
|
77
|
-
color: #333;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&-bottom {
|
|
82
|
-
// display: flex;
|
|
83
|
-
// justify-content: space-between;
|
|
84
|
-
align-items: center;
|
|
85
|
-
|
|
86
|
-
.time {
|
|
87
|
-
font-size: 14px;
|
|
88
|
-
color: #999;
|
|
89
|
-
display: flex;
|
|
90
|
-
align-items: center;
|
|
91
|
-
&-icon {
|
|
92
|
-
width: 16px;
|
|
93
|
-
height: 16px;
|
|
94
|
-
color: #ccc;
|
|
95
|
-
margin-right: 4px;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
.foreshow-time {
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
.like_sty {
|
|
102
|
-
color: #999;
|
|
103
|
-
display: flex;
|
|
104
|
-
align-items: center;
|
|
105
|
-
margin-left: 40px;
|
|
106
|
-
.icon_bottom {
|
|
107
|
-
margin-right: 30px;
|
|
108
|
-
//styleName: web正文-常规14px;
|
|
109
|
-
font-family: PingFang SC;
|
|
110
|
-
font-size: 14px;
|
|
111
|
-
font-weight: 400;
|
|
112
|
-
line-height: 22px;
|
|
113
|
-
letter-spacing: 0px;
|
|
114
|
-
text-align: left;
|
|
115
|
-
display: flex;
|
|
116
|
-
align-items: center;
|
|
117
|
-
|
|
118
|
-
img {
|
|
119
|
-
width: 16px;
|
|
120
|
-
height: 16px;
|
|
121
|
-
margin-right: 5px;
|
|
122
|
-
color: rgba(204, 204, 204, 1);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
&:global(.dark) {
|
|
130
|
-
.title {
|
|
131
|
-
color: #fff;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.container:hover {
|
|
137
|
-
.title {
|
|
138
|
-
color: #1E62EC;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.action {
|
|
143
|
-
font-size: 14px;
|
|
144
|
-
line-height: 22px;
|
|
145
|
-
color: #1E62EC;
|
|
146
|
-
border-radius: 144.889px;
|
|
147
|
-
border: 1px solid #1E62EC;
|
|
148
|
-
width: 88px;
|
|
149
|
-
height: 32px;
|
|
150
|
-
display: flex;
|
|
151
|
-
align-items: center;
|
|
152
|
-
justify-content: center;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.action-subscribe {
|
|
156
|
-
background: #1E62EC;
|
|
157
|
-
color: #fff;
|
|
158
|
-
}
|
package/src/list/index.jsx
DELETED
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react'
|
|
2
|
-
import { getXEduThemeName } from '@x-edu/theme'
|
|
3
|
-
import classNames from 'classnames'
|
|
4
|
-
import { Tabs } from 'fish'
|
|
5
|
-
import { OpenLiveSearchFront, getSubscription } from '@/service/live'
|
|
6
|
-
import { setUC } from '@/util/auth/func'
|
|
7
|
-
import config from '@/config/env'
|
|
8
|
-
import Loading from '@/component/status/Loading'
|
|
9
|
-
import Pagination from '@/component/Pagination'
|
|
10
|
-
import Empty from './Empty'
|
|
11
|
-
import ListItem from './ListItem'
|
|
12
|
-
import style from './index.module.less'
|
|
13
|
-
|
|
14
|
-
const PageSize = 7
|
|
15
|
-
|
|
16
|
-
const StatusEnum = [
|
|
17
|
-
{
|
|
18
|
-
label: '全部',
|
|
19
|
-
value: 'all'
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
label: '直播中',
|
|
23
|
-
value: '1,3'
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
label: '预告',
|
|
27
|
-
value: 0
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
label: '回放',
|
|
31
|
-
value: 2
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
|
|
35
|
-
export default function PublicLiveList({
|
|
36
|
-
scopeType,
|
|
37
|
-
scopeId,
|
|
38
|
-
containerClassName,
|
|
39
|
-
uc,
|
|
40
|
-
loginInfo,
|
|
41
|
-
sdpAppId: propSdpAppId,
|
|
42
|
-
onDetailClick,
|
|
43
|
-
handleLogin = () => {},
|
|
44
|
-
onSubscribe = () => {},
|
|
45
|
-
emptyClassName,
|
|
46
|
-
refreshPage
|
|
47
|
-
}) {
|
|
48
|
-
setUC(uc, loginInfo?.userInfo)
|
|
49
|
-
if (propSdpAppId) {
|
|
50
|
-
config.app.appid = propSdpAppId
|
|
51
|
-
window._propSdpAppId = propSdpAppId
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const [list, setList] = useState([])
|
|
55
|
-
const [total, setTotal] = useState(0)
|
|
56
|
-
const [loading, setLoading] = useState(true)
|
|
57
|
-
const [page, setPage] = useState(1)
|
|
58
|
-
const [status, setStatus] = useState('all')
|
|
59
|
-
const [subscription, setSubscription] = useState([])
|
|
60
|
-
const [isLogin, setIsLogin] = useState(false)
|
|
61
|
-
|
|
62
|
-
const handleTabChange = (value) => {
|
|
63
|
-
setStatus(value)
|
|
64
|
-
setPage(1)
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
const handlePageChange = (value) => {
|
|
68
|
-
setPage(value)
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// 分页获取直播列表
|
|
72
|
-
useEffect(() => {
|
|
73
|
-
async function getList() {
|
|
74
|
-
setLoading(true)
|
|
75
|
-
const data = await OpenLiveSearchFront({
|
|
76
|
-
status,
|
|
77
|
-
scopeType,
|
|
78
|
-
scopeId,
|
|
79
|
-
offset: (page - 1) * PageSize,
|
|
80
|
-
limit: PageSize
|
|
81
|
-
})
|
|
82
|
-
|
|
83
|
-
const { items, count } = data
|
|
84
|
-
if (uc) {
|
|
85
|
-
const curIsLogin = await uc.isLogin()
|
|
86
|
-
if (curIsLogin) {
|
|
87
|
-
const curSubscription = await getSubscription()
|
|
88
|
-
setSubscription(curSubscription)
|
|
89
|
-
setIsLogin(true)
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
setList(items || [])
|
|
93
|
-
setTotal(count || 0)
|
|
94
|
-
setLoading(false)
|
|
95
|
-
// setList([
|
|
96
|
-
// {
|
|
97
|
-
// live_id: 'ac56674a-81cc-4401-8895-ccf1896fcfa0',
|
|
98
|
-
// live_name: '推进整本书阅读课程化建设,打造书香教室111111',
|
|
99
|
-
// lecture_user_id: 452641273747,
|
|
100
|
-
// lecture_user_name: '李其',
|
|
101
|
-
// begin_time: '2023-11-18T15:19:00.000+0800',
|
|
102
|
-
// end_time: '2023-11-18T19:30:00.000+0800',
|
|
103
|
-
// duration: null,
|
|
104
|
-
// status:0,
|
|
105
|
-
// type: 1,
|
|
106
|
-
// view_replay: 1,
|
|
107
|
-
// replay_url: 'https://cdncs.ykt.cbern.com.cn/v0.1/static/xedu_nd_meeting/live/64e8ccaacd42c00011712808/64e8ccaacd42c00011712808-1693377380963-upload-1.m3u8',
|
|
108
|
-
// provide_record: 2,
|
|
109
|
-
// conference_id: '807172129',
|
|
110
|
-
// room_id: '64e8ccaacd42c00011712808',
|
|
111
|
-
// chat_room_id: '6038005',
|
|
112
|
-
// chat_room_convid: '4617293527729099756',
|
|
113
|
-
// chat_enabled: false,
|
|
114
|
-
// play_smart_link: 'https://x-link.ykt.eduyun.cn/smart_links/225041074225153?qrEventName=smartlink',
|
|
115
|
-
// sub_type: 1,
|
|
116
|
-
// video_url: 'https://cdncs.ykt.cbern.com.cn/v0.1/download?path=/xxuexiimbr/replays/25304756_1693380769228.mp4',
|
|
117
|
-
// tenant_id: 416,
|
|
118
|
-
// login: false,
|
|
119
|
-
// description: null,
|
|
120
|
-
// desc_pic_web_url: 'https://bdcs-file-1.ykt.cbern.com.cn/bd_x_live/%E5%AD%99%E7%8E%89%E7%BA%A2%E5%86%85%E5%AE%B9%E4%BB%8B%E7%BB%8D(6)_1692978325699.jpg',
|
|
121
|
-
// desc_pic_mobile_url: 'https://bdcs-file-1.ykt.cbern.com.cn/bd_x_live/%E5%AD%99%E7%8E%89%E7%BA%A2%20%E6%89%8B%E6%9C%BA%E7%AB%AF_1692978330612.jpg',
|
|
122
|
-
// cover_url: 'https://bdcs-file-1.ykt.cbern.com.cn/zxx/X-COURSE/416/1_1693400535645.jpg',
|
|
123
|
-
// cover_pic_web_url: 'https://bdcs-file-1.ykt.cbern.com.cn/bd_x_live/%E5%AD%99%E7%8E%89%E7%BA%A2_1692978313015.jpg',
|
|
124
|
-
// cover_pic_mobile_url: 'https://bdcs-file-1.ykt.cbern.com.cn/bd_x_live/%E5%AD%99%E7%8E%89%E7%BA%A2_1692978318463.jpg',
|
|
125
|
-
// create_user_id: 452672293205,
|
|
126
|
-
// create_time: '2023-08-25T23:45:47.000+0800',
|
|
127
|
-
// first_begin_time: null,
|
|
128
|
-
// scope_type: 'e_teacher_studio',
|
|
129
|
-
// scope_id: '7294ef75-b01c-4a2e-af81-b32310dc8510',
|
|
130
|
-
// scope_name: '孙玉红名师工作室',
|
|
131
|
-
// scope_link: 'https://x-link.ykt.eduyun.cn/smart_links/146348054036481?qrEventName=smartlink',
|
|
132
|
-
// scope_image: 'https://bdcs-file-2.ykt.cbern.com.cn/e_teacher_studio/b84ae1fb-9b36-441c-ba7f-5e739ca89669.jpg',
|
|
133
|
-
// env: 'product',
|
|
134
|
-
// chat_type: false,
|
|
135
|
-
// discuss_chat_type: false,
|
|
136
|
-
// comment_chat_room_id: null,
|
|
137
|
-
// comment_chat_room_convid: null,
|
|
138
|
-
// message_interval: 5,
|
|
139
|
-
// bid: null,
|
|
140
|
-
// replay_begin_time: '2023-08-31T10:00:00.000+0800',
|
|
141
|
-
// replay_end_time: null,
|
|
142
|
-
// view_replay_type: 0,
|
|
143
|
-
// view_replay_name: null,
|
|
144
|
-
// view_replay_url: null,
|
|
145
|
-
// create_user_user_facade: {
|
|
146
|
-
// user_id: 452672293205,
|
|
147
|
-
// user_name: '康晓宇',
|
|
148
|
-
// nick_name: null,
|
|
149
|
-
// nick_name_full: null,
|
|
150
|
-
// nick_name_short: null,
|
|
151
|
-
// create_time: '2023-07-14T10:15:15.099+0800',
|
|
152
|
-
// org_exinfo: {
|
|
153
|
-
// node_id: 0,
|
|
154
|
-
// node_name: '',
|
|
155
|
-
// org_id: 594001860704,
|
|
156
|
-
// org_name: null,
|
|
157
|
-
// org_full_name: null,
|
|
158
|
-
// org_user_code: '',
|
|
159
|
-
// real_name: '康晓宇',
|
|
160
|
-
// real_name_full: 'kangxiaoyu',
|
|
161
|
-
// real_name_short: 'kxy'
|
|
162
|
-
// },
|
|
163
|
-
// email: null,
|
|
164
|
-
// mobile: null,
|
|
165
|
-
// avatar_url: 'http://uc-gateway.ykt.eduyun.cn/v1.1/users/452672293205/avatar_url?size=80&SDP-APP-ID=e5649925-441d-4a53-b525-51a2f1c4e0a8',
|
|
166
|
-
// display_name: '康晓宇',
|
|
167
|
-
// display_real_name: '康晓宇',
|
|
168
|
-
// icon: 'http://uc-gateway.ykt.eduyun.cn/v1.1/users/452672293205/avatar_url?size=80&SDP-APP-ID=e5649925-441d-4a53-b525-51a2f1c4e0a8',
|
|
169
|
-
// existed: true
|
|
170
|
-
// }
|
|
171
|
-
// }
|
|
172
|
-
// ])
|
|
173
|
-
// setTotal(1)
|
|
174
|
-
// setLoading(false)
|
|
175
|
-
}
|
|
176
|
-
getList()
|
|
177
|
-
}, [page, status, refreshPage])
|
|
178
|
-
|
|
179
|
-
const themeName = getXEduThemeName()
|
|
180
|
-
|
|
181
|
-
return (
|
|
182
|
-
<div
|
|
183
|
-
className={classNames(
|
|
184
|
-
containerClassName,
|
|
185
|
-
style.container,
|
|
186
|
-
themeName
|
|
187
|
-
)}
|
|
188
|
-
>
|
|
189
|
-
<Tabs
|
|
190
|
-
accessKey={status}
|
|
191
|
-
onChange={handleTabChange}
|
|
192
|
-
>
|
|
193
|
-
{StatusEnum.map((item) => (
|
|
194
|
-
<Tabs.TabPane
|
|
195
|
-
key={item.value}
|
|
196
|
-
tab={item.label}
|
|
197
|
-
>
|
|
198
|
-
<Loading
|
|
199
|
-
loading={loading}
|
|
200
|
-
delay={500}
|
|
201
|
-
>
|
|
202
|
-
<div className={style.list}>
|
|
203
|
-
{loading ? null : (
|
|
204
|
-
<>
|
|
205
|
-
{!loading && list.length ? (
|
|
206
|
-
<>
|
|
207
|
-
{list.map((listItem) => (
|
|
208
|
-
<ListItem
|
|
209
|
-
themeName={themeName}
|
|
210
|
-
data={listItem}
|
|
211
|
-
key={listItem.live_id}
|
|
212
|
-
subscription={subscription}
|
|
213
|
-
onDetailClick={onDetailClick}
|
|
214
|
-
handleLogin={handleLogin}
|
|
215
|
-
isLogin={isLogin}
|
|
216
|
-
onSubscribe={onSubscribe}
|
|
217
|
-
/>
|
|
218
|
-
))}
|
|
219
|
-
<Pagination
|
|
220
|
-
total={total}
|
|
221
|
-
pageSize={PageSize}
|
|
222
|
-
current={page}
|
|
223
|
-
onChange={handlePageChange}
|
|
224
|
-
/>
|
|
225
|
-
</>
|
|
226
|
-
) : (
|
|
227
|
-
<Empty
|
|
228
|
-
tip="暂无内容"
|
|
229
|
-
className={emptyClassName}
|
|
230
|
-
/>
|
|
231
|
-
)}
|
|
232
|
-
</>
|
|
233
|
-
)}
|
|
234
|
-
</div>
|
|
235
|
-
</Loading>
|
|
236
|
-
</Tabs.TabPane>
|
|
237
|
-
))}
|
|
238
|
-
</Tabs>
|
|
239
|
-
</div>
|
|
240
|
-
)
|
|
241
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
.container {
|
|
2
|
-
max-width: 1300px;
|
|
3
|
-
margin: 0 auto;
|
|
4
|
-
padding: 24px 24px 0px 24px;
|
|
5
|
-
width: 956px;
|
|
6
|
-
|
|
7
|
-
:global {
|
|
8
|
-
.fish-tabs-nav {
|
|
9
|
-
margin-bottom: 24px;
|
|
10
|
-
}
|
|
11
|
-
.fish-tabs-nav::before {
|
|
12
|
-
display: none;
|
|
13
|
-
}
|
|
14
|
-
.fish-tabs-ink-bar {
|
|
15
|
-
display: none;
|
|
16
|
-
}
|
|
17
|
-
.fish-tabs-tab + .fish-tabs-tab {
|
|
18
|
-
margin-left: 0px;
|
|
19
|
-
}
|
|
20
|
-
.fish-tabs-tab {
|
|
21
|
-
padding: 9px 20px;
|
|
22
|
-
}
|
|
23
|
-
.fish-tabs-tab-btn {
|
|
24
|
-
font-size: 14px;
|
|
25
|
-
line-height: 14px;
|
|
26
|
-
color: #666
|
|
27
|
-
}
|
|
28
|
-
.fish-tabs-tab-active {
|
|
29
|
-
border-radius: 16px;
|
|
30
|
-
background: var(--f-3-f-7-ff, #F3F7FF);
|
|
31
|
-
.fish-tabs-tab-btn {
|
|
32
|
-
color: #1E62EC;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
.list {
|
|
38
|
-
min-height: 500px;
|
|
39
|
-
}
|
package/src/service/common.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { getJobTitles } from './school'
|
|
2
|
-
import rawAPI from '@/config/request/raw'
|
|
3
|
-
|
|
4
|
-
/* 数据字典:获取职称 */
|
|
5
|
-
export async function getJobTitle() {
|
|
6
|
-
const data = await getJobTitles()
|
|
7
|
-
return {
|
|
8
|
-
data
|
|
9
|
-
}
|
|
10
|
-
// const url = '/studio/configs/dictionary/job_title.json'
|
|
11
|
-
// return getCdnHotAPI().get(url)
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/* 数据字典:获取身份证类型 */
|
|
15
|
-
export async function getCardType() {
|
|
16
|
-
// const url = '/studio/configs/dictionary/card_type.json'
|
|
17
|
-
// return getCdnHotAPI().get(url)
|
|
18
|
-
const resp = await rawAPI.get('https://bdcs-file-1.ykt.cbern.com.cn/bdxcloud/configs/card_type.json')
|
|
19
|
-
return resp
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/** 数据字典:获取性别 */
|
|
23
|
-
export async function getGender() {
|
|
24
|
-
const res = await rawAPI.get('https://bdcs-file-1.ykt.cbern.com.cn/bdxcloud/configs/gender.json')
|
|
25
|
-
return res.data
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* 获取民族字典
|
|
30
|
-
* @returns
|
|
31
|
-
*/
|
|
32
|
-
export async function getMinzu() {
|
|
33
|
-
const res = await rawAPI.get('https://bdcs-file-1.ykt.cbern.com.cn/bdxcloud/configs/national.json')
|
|
34
|
-
return res.data
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* 获取最高学历字典
|
|
39
|
-
* @returns
|
|
40
|
-
*/
|
|
41
|
-
export async function getDegree() {
|
|
42
|
-
const res = await rawAPI.get('https://bdcs-file-1.ykt.cbern.com.cn/bdxcloud/configs/degree.json')
|
|
43
|
-
return res.data
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* 获取政治面貌字典
|
|
48
|
-
* @returns
|
|
49
|
-
*/
|
|
50
|
-
export async function getPoliticalStatus() {
|
|
51
|
-
const res = await rawAPI.get('https://bdcs-file-1.ykt.cbern.com.cn/bdxcloud/configs/political_status.json')
|
|
52
|
-
return res.data
|
|
53
|
-
}
|
|
54
|
-
// 获取荣誉
|
|
55
|
-
export async function getHonor() {
|
|
56
|
-
const res = await rawAPI.get('https://bdcs-file-1.ykt.cbern.com.cn/bdxcloud/configs/teacher_honor.json')
|
|
57
|
-
return res.data
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* 是否心理健康教育教师
|
|
62
|
-
* @returns
|
|
63
|
-
*/
|
|
64
|
-
export async function getMentalHealthTeacher() {
|
|
65
|
-
const res = await rawAPI.get('https://bdcs-file-1.ykt.cbern.com.cn/bdxcloud/configs/employment_type.json')
|
|
66
|
-
return res.data
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/** 数据字典:获取性别 */
|
|
70
|
-
export async function getAreaInfoMap() {
|
|
71
|
-
const res = await rawAPI.get('https://bdcs-file-2.ykt.cbern.com.cn/bdxcloud/configs/rank_area_info.json')
|
|
72
|
-
return res.data
|
|
73
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
|
|
3
|
-
import ContentMgrApi from '@/config/request/content-mgr-web'
|
|
4
|
-
|
|
5
|
-
export const getDocument = async (id) => {
|
|
6
|
-
const url = `/v1/proxy/documents/${id}?r=${Math.random()}`
|
|
7
|
-
const { data } = await ContentMgrApi.get(url)
|
|
8
|
-
return data
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const getVedio = async (id) => {
|
|
12
|
-
const url = `/v1/proxy/videos/${id}?r=${Math.random()}`
|
|
13
|
-
const { data } = await ContentMgrApi.get(url)
|
|
14
|
-
return data
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export const getVedioUrls = async (id) => {
|
|
18
|
-
const url = `/v1/proxy/videos/${id}/urls?r=${Math.random()}`
|
|
19
|
-
const { data } = await ContentMgrApi.get(url)
|
|
20
|
-
return data
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* 创建content_mgr
|
|
25
|
-
* @param {string} type 类型:x_audio_video,x_document
|
|
26
|
-
* @param {Object} content 内容
|
|
27
|
-
*/
|
|
28
|
-
export const createContent = async (type, content) => {
|
|
29
|
-
const url = `/v1/content_types/${type}/contents?r=${Math.random()}`
|
|
30
|
-
const res = await ContentMgrApi.post(url, content)
|
|
31
|
-
return res?.data
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export const getContent = async (contentType, id) => {
|
|
35
|
-
const url = `/v1/content_types/${contentType}/contents/${id}?r=${Math.random()}`
|
|
36
|
-
const res = await ContentMgrApi.get(url)
|
|
37
|
-
return res?.data
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export const getContentDetail = async (type, id) => {
|
|
41
|
-
const url = `/v1/content_types/${type}/contents/${id}?r=${Math.random()}`
|
|
42
|
-
const res = await ContentMgrApi.get(url)
|
|
43
|
-
return res?.data
|
|
44
|
-
// await ContentMgrApi.get(`/v1/content_types/${type}/contents/${id}`, {
|
|
45
|
-
// headers: {
|
|
46
|
-
// 'sdp-app-id': appid
|
|
47
|
-
// }
|
|
48
|
-
// })
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export const updateContent = async (type, id, body) => {
|
|
52
|
-
const url = `/v1/content_types/${type}/contents/${id}?r=${Math.random()}`
|
|
53
|
-
const res = await ContentMgrApi.put(url, body)
|
|
54
|
-
return res?.data
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export const putOnline = async (id) => {
|
|
58
|
-
const url = `/v1/spi/contents/${id}/online?r=${Math.random()}`
|
|
59
|
-
const res = await ContentMgrApi.put(url)
|
|
60
|
-
return res?.data
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export const putOffline = async (id) => {
|
|
64
|
-
const url = `/v1/spi/contents/${id}/offline?r=${Math.random()}`
|
|
65
|
-
const res = await ContentMgrApi.put(url)
|
|
66
|
-
return res?.data
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export const deleteContent = async (id) => {
|
|
70
|
-
const url = `/v1/spi/contents/${id}?r=${Math.random()}`
|
|
71
|
-
const res = await ContentMgrApi.delete(url)
|
|
72
|
-
return res?.data
|
|
73
|
-
}
|
package/src/service/im-group.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { imGroupWithUC } from '@/config/request/imGroup'
|
|
2
|
-
|
|
3
|
-
/* 获取群头像内容服务上传token */
|
|
4
|
-
export async function getCSToken(id, params) {
|
|
5
|
-
const response = await imGroupWithUC.post(`/groups/${id}/upload_token/avatar`, params)
|
|
6
|
-
return response.data
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
/* 客户端上传群头像成功通知 */
|
|
10
|
-
export function avatarUploadOk(id) {
|
|
11
|
-
return imGroupWithUC.patch(`/groups/${id}/avatar_uploadOk`)
|
|
12
|
-
}
|
package/src/service/im.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import imBroadcastsAPI, {
|
|
2
|
-
staticAPI as imBroadcastsStaticAPI
|
|
3
|
-
} from '@/config/request/im-broadcasts'
|
|
4
|
-
|
|
5
|
-
// https://wiki.doc.101.com/index.php?title=IM%E7%9B%B4%E6%92%ADv2#.5BGET.5D_.2Fapis.2Fbroadcasts.2F.7BroomId.7D_.E6.A0.B9.E6.8D.AEroomId_.E8.8E.B7.E5.8F.96.E7.9B.B4.E6.92.AD.E4.BF.A1.E6.81.AF
|
|
6
|
-
export const getIMLiveInfo = async (roomId) => {
|
|
7
|
-
const url = `/v4/apis/broadcasts/${roomId}`
|
|
8
|
-
const response = await imBroadcastsAPI.get(url)
|
|
9
|
-
return response.data
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* 预生产
|
|
14
|
-
https://betacs.101.com/v0.1/static/preproduction_content_chatroom/livecache/{bid}.json
|
|
15
|
-
百度
|
|
16
|
-
https://bdcs-file-1.ykt.cbern.com.cn/xxuexiimbr/livecache/{bid}.json
|
|
17
|
-
|
|
18
|
-
*/
|
|
19
|
-
export const getGuestIMLiveInfoStatic = async (bId) => {
|
|
20
|
-
const { data } = await imBroadcastsStaticAPI.get(`/livecache/${bId}.json`)
|
|
21
|
-
return data
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// https://wiki.doc.101.com/index.php?title=IM%E7%9B%B4%E6%92%ADv2#.5BGET.5D_.2Fguest.2Fbroadcasts.2F.7Bbid.7D_.E8.8E.B7.E5.8F.96.E7.9B.B4.E6.92.AD
|
|
25
|
-
// 访客获取直播接口
|
|
26
|
-
export const getGuestIMLiveInfo = async (bId) => {
|
|
27
|
-
try {
|
|
28
|
-
return await getGuestIMLiveInfoStatic(bId)
|
|
29
|
-
} catch (e) {
|
|
30
|
-
const { data } = await imBroadcastsAPI.get(`/v2/guest/broadcasts/${bId}`)
|
|
31
|
-
return data
|
|
32
|
-
}
|
|
33
|
-
}
|