component-sanzhizhou 1.0.0
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/LICENSE +21 -0
- package/README.md +7 -0
- package/dist/Ad/index.d.ts +11 -0
- package/dist/Ad/index.js +143 -0
- package/dist/Ad/index.less +12 -0
- package/dist/Auth/index.d.ts +16 -0
- package/dist/Auth/index.js +374 -0
- package/dist/AuthClient/index.js +30 -0
- package/dist/AuthClient/login-reg.css.js +6 -0
- package/dist/AuthClient/login-reg.js +78 -0
- package/dist/AuthClient/login.css.js +6 -0
- package/dist/AuthClient/login.d.ts +14 -0
- package/dist/AuthClient/login.js +198 -0
- package/dist/AuthClient/qr/h5-we-public-login.d.ts +2 -0
- package/dist/AuthClient/qr/h5-we-public-login.js +22 -0
- package/dist/AuthClient/qr/index.css.js +9 -0
- package/dist/AuthClient/qr/index.d.ts +15 -0
- package/dist/AuthClient/qr/index.js +348 -0
- package/dist/AuthClient/qr/typings.d.ts +22 -0
- package/dist/AuthClient/qr/ws.js +253 -0
- package/dist/AuthClient/reg.js +185 -0
- package/dist/AuthClient/user-offline.js +41 -0
- package/dist/Buy/index.css.js +6 -0
- package/dist/Buy/index.d.ts +14 -0
- package/dist/Buy/index.js +121 -0
- package/dist/Buy/qr.css.js +6 -0
- package/dist/Buy/qr.d.ts +11 -0
- package/dist/Buy/qr.js +354 -0
- package/dist/Buy/trial-member.css.js +6 -0
- package/dist/Buy/trial-member.d.ts +8 -0
- package/dist/Buy/trial-member.js +45 -0
- package/dist/Client/ClientUpdate/index.js +92 -0
- package/dist/Client/ClientUpdate/index.less +23 -0
- package/dist/Login/index.js +5 -0
- package/dist/Notice/index.js +36 -0
- package/dist/PhonePublish/account-manage/home.d.ts +11 -0
- package/dist/PhonePublish/account-manage/home.js +242 -0
- package/dist/PhonePublish/account-manage/home.less +28 -0
- package/dist/PhonePublish/account-manage/index.d.ts +3 -0
- package/dist/PhonePublish/account-manage/index.js +56 -0
- package/dist/PhonePublish/account-manage/index.less +59 -0
- package/dist/PhonePublish/account-manage/list.d.ts +17 -0
- package/dist/PhonePublish/account-manage/list.js +443 -0
- package/dist/PhonePublish/account-manage/list.less +95 -0
- package/dist/PhonePublish/account-manage/setting/index.d.ts +6 -0
- package/dist/PhonePublish/account-manage/setting/index.js +199 -0
- package/dist/PhonePublish/account-manage/setting/index.less +11 -0
- package/dist/PhonePublish/create-task/base/index.d.ts +10 -0
- package/dist/PhonePublish/create-task/base/index.js +386 -0
- package/dist/PhonePublish/create-task/base/index.less +64 -0
- package/dist/PhonePublish/create-task/getVideoGoodsUrl.d.ts +2 -0
- package/dist/PhonePublish/create-task/getVideoGoodsUrl.js +136 -0
- package/dist/PhonePublish/create-task/hour-enabled.js +42 -0
- package/dist/PhonePublish/create-task/hour-enabled.less +24 -0
- package/dist/PhonePublish/create-task/index.d.ts +11 -0
- package/dist/PhonePublish/create-task/index.js +449 -0
- package/dist/PhonePublish/create-task/index.less +75 -0
- package/dist/PhonePublish/create-task/select-list.css.js +6 -0
- package/dist/PhonePublish/create-task/select-list.d.ts +8 -0
- package/dist/PhonePublish/create-task/select-list.js +304 -0
- package/dist/PhonePublish/create-task/task-list.css.js +6 -0
- package/dist/PhonePublish/create-task/task-list.d.ts +9 -0
- package/dist/PhonePublish/create-task/task-list.js +323 -0
- package/dist/PhonePublish/index.css.js +35 -0
- package/dist/PhonePublish/index.d.ts +15 -0
- package/dist/PhonePublish/index.js +192 -0
- package/dist/PhonePublish/index.less +55 -0
- package/dist/PhonePublish/lib/chrome-quit.js +20 -0
- package/dist/PhonePublish/log/index.d.ts +8 -0
- package/dist/PhonePublish/log/index.js +186 -0
- package/dist/PhonePublish/log/index.less +81 -0
- package/dist/PhonePublish/publish-task-plan/index.d.ts +9 -0
- package/dist/PhonePublish/publish-task-plan/index.js +32 -0
- package/dist/PhonePublish/publish-task-plan/index.less +4 -0
- package/dist/PhonePublish/publish-task-plan/tool-bak.txt +219 -0
- package/dist/PhonePublish/publish-task-plan/tool.d.ts +29 -0
- package/dist/PhonePublish/publish-task-plan/tool.js +720 -0
- package/dist/PhonePublish/task-list/index.d.ts +8 -0
- package/dist/PhonePublish/task-list/index.js +224 -0
- package/dist/PhonePublish/task-list/index.less +8 -0
- package/dist/PhonePublish/task-list/plan/list.d.ts +12 -0
- package/dist/PhonePublish/task-list/plan/list.js +290 -0
- package/dist/PhonePublish/task-list/plan/list.less +87 -0
- package/dist/PhonePublish/task-list/plan/operate.d.ts +8 -0
- package/dist/PhonePublish/task-list/plan/operate.js +145 -0
- package/dist/PhonePublish/task-list/plan/query.d.ts +8 -0
- package/dist/PhonePublish/task-list/plan/query.js +89 -0
- package/dist/PhonePublish/task-list/plan/query.less +9 -0
- package/dist/PhonePublish/task-list/plan/status.js +53 -0
- package/dist/PhonePublish/task-list/query.js +76 -0
- package/dist/PhonePublish/task-list/query.less +19 -0
- package/dist/PhonePublish/task-list/who-can-view.js +37 -0
- package/dist/PhonePublish/video-account/ban/index.d.ts +10 -0
- package/dist/PhonePublish/video-account/ban/index.js +94 -0
- package/dist/PhonePublish/video-account/ban/index.less +4 -0
- package/dist/PhonePublish/video-account/base-info.d.ts +13 -0
- package/dist/PhonePublish/video-account/base-info.js +75 -0
- package/dist/PhonePublish/video-account/base-info.less +92 -0
- package/dist/PhonePublish/video-account/create.d.ts +8 -0
- package/dist/PhonePublish/video-account/create.js +174 -0
- package/dist/PhonePublish/video-account/group.d.ts +9 -0
- package/dist/PhonePublish/video-account/group.js +255 -0
- package/dist/PhonePublish/video-account/group.less +10 -0
- package/dist/PhonePublish/video-account/index.d.ts +8 -0
- package/dist/PhonePublish/video-account/index.js +403 -0
- package/dist/PhonePublish/video-account/index.less +92 -0
- package/dist/PhonePublish/video-account/query.d.ts +8 -0
- package/dist/PhonePublish/video-account/query.js +115 -0
- package/dist/PhonePublish/video-account/query.less +18 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/index.d.ts +8 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/index.js +173 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/index.less +3 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/kind-list.js +22 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/query.js +54 -0
- package/dist/PhonePublish/video-publish-statistic/account-trend/query.less +3 -0
- package/dist/PhonePublish/video-publish-statistic/index.d.ts +2 -0
- package/dist/PhonePublish/video-publish-statistic/index.js +37 -0
- package/dist/PhonePublish/video-publish-statistic/kind.js +57 -0
- package/dist/PhonePublish/video-publish-statistic/operation/list.d.ts +7 -0
- package/dist/PhonePublish/video-publish-statistic/operation/list.js +242 -0
- package/dist/PhonePublish/video-publish-statistic/operation/list.less +10 -0
- package/dist/PhonePublish/video-publish-statistic/operation/query.js +56 -0
- package/dist/PhonePublish/video-publish-statistic/operation/query.less +3 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/list.d.ts +8 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/list.js +257 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/list.less +105 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/query.js +79 -0
- package/dist/PhonePublish/video-publish-statistic/publish-plan/query.less +3 -0
- package/dist/Product/dict.d.ts +16 -0
- package/dist/Product/dict.js +93 -0
- package/dist/Product/index.js +36 -0
- package/dist/UI/DialogDrawer.css.js +6 -0
- package/dist/UI/DialogDrawer.js +74 -0
- package/dist/UI/DialogDrawerFooter.css.js +6 -0
- package/dist/UI/DialogDrawerFooter.js +22 -0
- package/dist/UI/FileSize.css.js +6 -0
- package/dist/UI/FileSize.js +63 -0
- package/dist/UI/LayoutContent.js +73 -0
- package/dist/UI/LayoutContent.less +64 -0
- package/dist/UI/LoadError.css.js +6 -0
- package/dist/UI/LoadError.js +36 -0
- package/dist/UI/Money/index.css.js +6 -0
- package/dist/UI/Money/index.js +40 -0
- package/dist/UI/PageContentWarp.js +80 -0
- package/dist/UI/PageContentWarp.less +56 -0
- package/dist/UI/PageLoading.js +11 -0
- package/dist/UI/PageLoading.less +7 -0
- package/dist/UI/Time.js +21 -0
- package/dist/UI/duration.css.js +6 -0
- package/dist/UI/duration.js +49 -0
- package/dist/UI/enabled.js +28 -0
- package/dist/UI/text-input.js +110 -0
- package/dist/UI/text-input.less +22 -0
- package/dist/VideoPublish/account-manage/home.d.ts +11 -0
- package/dist/VideoPublish/account-manage/home.js +232 -0
- package/dist/VideoPublish/account-manage/home.less +58 -0
- package/dist/VideoPublish/account-manage/index.d.ts +3 -0
- package/dist/VideoPublish/account-manage/index.js +56 -0
- package/dist/VideoPublish/account-manage/index.less +59 -0
- package/dist/VideoPublish/account-manage/list.d.ts +17 -0
- package/dist/VideoPublish/account-manage/list.js +501 -0
- package/dist/VideoPublish/account-manage/list.less +95 -0
- package/dist/VideoPublish/account-manage/setting/index.d.ts +6 -0
- package/dist/VideoPublish/account-manage/setting/index.js +199 -0
- package/dist/VideoPublish/account-manage/setting/index.less +11 -0
- package/dist/VideoPublish/create-task/base/index.d.ts +10 -0
- package/dist/VideoPublish/create-task/base/index.js +386 -0
- package/dist/VideoPublish/create-task/base/index.less +64 -0
- package/dist/VideoPublish/create-task/getVideoGoodsUrl.d.ts +2 -0
- package/dist/VideoPublish/create-task/getVideoGoodsUrl.js +136 -0
- package/dist/VideoPublish/create-task/hour-enabled.js +42 -0
- package/dist/VideoPublish/create-task/hour-enabled.less +24 -0
- package/dist/VideoPublish/create-task/index.d.ts +11 -0
- package/dist/VideoPublish/create-task/index.js +449 -0
- package/dist/VideoPublish/create-task/index.less +75 -0
- package/dist/VideoPublish/create-task/select-list.css.js +6 -0
- package/dist/VideoPublish/create-task/select-list.d.ts +8 -0
- package/dist/VideoPublish/create-task/select-list.js +304 -0
- package/dist/VideoPublish/create-task/task-list.css.js +6 -0
- package/dist/VideoPublish/create-task/task-list.d.ts +9 -0
- package/dist/VideoPublish/create-task/task-list.js +323 -0
- package/dist/VideoPublish/index.css.js +35 -0
- package/dist/VideoPublish/index.d.ts +15 -0
- package/dist/VideoPublish/index.js +235 -0
- package/dist/VideoPublish/index.less +55 -0
- package/dist/VideoPublish/lib/chrome-quit.js +20 -0
- package/dist/VideoPublish/log/index.d.ts +8 -0
- package/dist/VideoPublish/log/index.js +186 -0
- package/dist/VideoPublish/log/index.less +81 -0
- package/dist/VideoPublish/proxy/create.d.ts +8 -0
- package/dist/VideoPublish/proxy/create.js +176 -0
- package/dist/VideoPublish/proxy/list.d.ts +9 -0
- package/dist/VideoPublish/proxy/list.js +276 -0
- package/dist/VideoPublish/proxy/list.less +10 -0
- package/dist/VideoPublish/proxy/query.d.ts +9 -0
- package/dist/VideoPublish/proxy/query.js +75 -0
- package/dist/VideoPublish/proxy/query.less +10 -0
- package/dist/VideoPublish/proxy/select.d.ts +10 -0
- package/dist/VideoPublish/proxy/select.js +110 -0
- package/dist/VideoPublish/proxy/select.less +17 -0
- package/dist/VideoPublish/publish-task-plan/index.d.ts +9 -0
- package/dist/VideoPublish/publish-task-plan/index.js +32 -0
- package/dist/VideoPublish/publish-task-plan/index.less +4 -0
- package/dist/VideoPublish/publish-task-plan/tool-bak.txt +219 -0
- package/dist/VideoPublish/publish-task-plan/tool.d.ts +29 -0
- package/dist/VideoPublish/publish-task-plan/tool.js +720 -0
- package/dist/VideoPublish/task-list/index.d.ts +8 -0
- package/dist/VideoPublish/task-list/index.js +224 -0
- package/dist/VideoPublish/task-list/index.less +8 -0
- package/dist/VideoPublish/task-list/plan/list.d.ts +12 -0
- package/dist/VideoPublish/task-list/plan/list.js +290 -0
- package/dist/VideoPublish/task-list/plan/list.less +87 -0
- package/dist/VideoPublish/task-list/plan/operate.d.ts +8 -0
- package/dist/VideoPublish/task-list/plan/operate.js +145 -0
- package/dist/VideoPublish/task-list/plan/query.d.ts +8 -0
- package/dist/VideoPublish/task-list/plan/query.js +89 -0
- package/dist/VideoPublish/task-list/plan/query.less +9 -0
- package/dist/VideoPublish/task-list/plan/status.js +53 -0
- package/dist/VideoPublish/task-list/query.js +76 -0
- package/dist/VideoPublish/task-list/query.less +19 -0
- package/dist/VideoPublish/task-list/who-can-view.js +37 -0
- package/dist/VideoPublish/video-account/ban/index.d.ts +10 -0
- package/dist/VideoPublish/video-account/ban/index.js +94 -0
- package/dist/VideoPublish/video-account/ban/index.less +4 -0
- package/dist/VideoPublish/video-account/base-info.d.ts +13 -0
- package/dist/VideoPublish/video-account/base-info.js +75 -0
- package/dist/VideoPublish/video-account/base-info.less +92 -0
- package/dist/VideoPublish/video-account/create.d.ts +8 -0
- package/dist/VideoPublish/video-account/create.js +174 -0
- package/dist/VideoPublish/video-account/group.d.ts +9 -0
- package/dist/VideoPublish/video-account/group.js +255 -0
- package/dist/VideoPublish/video-account/group.less +10 -0
- package/dist/VideoPublish/video-account/index.d.ts +8 -0
- package/dist/VideoPublish/video-account/index.js +403 -0
- package/dist/VideoPublish/video-account/index.less +92 -0
- package/dist/VideoPublish/video-account/query.d.ts +8 -0
- package/dist/VideoPublish/video-account/query.js +115 -0
- package/dist/VideoPublish/video-account/query.less +18 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/index.d.ts +8 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/index.js +173 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/index.less +3 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/kind-list.js +22 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/query.js +54 -0
- package/dist/VideoPublish/video-publish-statistic/account-trend/query.less +3 -0
- package/dist/VideoPublish/video-publish-statistic/index.d.ts +2 -0
- package/dist/VideoPublish/video-publish-statistic/index.js +37 -0
- package/dist/VideoPublish/video-publish-statistic/kind.js +57 -0
- package/dist/VideoPublish/video-publish-statistic/operation/list.d.ts +7 -0
- package/dist/VideoPublish/video-publish-statistic/operation/list.js +242 -0
- package/dist/VideoPublish/video-publish-statistic/operation/list.less +10 -0
- package/dist/VideoPublish/video-publish-statistic/operation/query.js +56 -0
- package/dist/VideoPublish/video-publish-statistic/operation/query.less +3 -0
- package/dist/VideoPublish/video-publish-statistic/publish-plan/list.d.ts +8 -0
- package/dist/VideoPublish/video-publish-statistic/publish-plan/list.js +257 -0
- package/dist/VideoPublish/video-publish-statistic/publish-plan/list.less +105 -0
- package/dist/VideoPublish/video-publish-statistic/publish-plan/query.js +79 -0
- package/dist/VideoPublish/video-publish-statistic/publish-plan/query.less +3 -0
- package/dist/VideoPublish/video-topic/add.d.ts +9 -0
- package/dist/VideoPublish/video-topic/add.js +89 -0
- package/dist/VideoPublish/video-topic/add.less +3 -0
- package/dist/VideoPublish/video-topic/index.d.ts +8 -0
- package/dist/VideoPublish/video-topic/index.js +301 -0
- package/dist/VideoPublish/video-topic/index.less +37 -0
- package/dist/VideoPublish/video-topic/select.d.ts +11 -0
- package/dist/VideoPublish/video-topic/select.js +172 -0
- package/dist/VideoPublish/video-topic/select.less +3 -0
- package/dist/VipCompare/commend.css.js +6 -0
- package/dist/VipCompare/commend.js +28 -0
- package/dist/VipCompare/index.css.js +6 -0
- package/dist/VipCompare/index.d.ts +8 -0
- package/dist/VipCompare/index.js +325 -0
- package/dist/VipList/index.css.js +6 -0
- package/dist/VipList/index.d.ts +15 -0
- package/dist/VipList/index.js +397 -0
- package/dist/active-code/index.d.ts +7 -0
- package/dist/active-code/index.js +78 -0
- package/dist/active-code/user-vip.d.ts +3 -0
- package/dist/active-code/user-vip.js +84 -0
- package/dist/active-code/user-vip.less +3 -0
- package/dist/asset/image/platform/bilibili.png +0 -0
- package/dist/asset/image/platform/buyin.png +0 -0
- package/dist/asset/image/platform/douyin.png +0 -0
- package/dist/asset/image/platform/douyu.png +0 -0
- package/dist/asset/image/platform/huya.png +0 -0
- package/dist/asset/image/platform/kuaishou.png +0 -0
- package/dist/asset/image/platform/tiktok.png +0 -0
- package/dist/asset/image/platform/youtube.png +0 -0
- package/dist/base/DealerUrlDict.js +7 -0
- package/dist/base/fileList.d.ts +2 -0
- package/dist/base/fileList.js +61 -0
- package/dist/base/fileListContent.d.ts +2 -0
- package/dist/base/fileListContent.js +61 -0
- package/dist/base/fileSelect.d.ts +2 -0
- package/dist/base/fileSelect.js +54 -0
- package/dist/base/folderCreate.d.ts +2 -0
- package/dist/base/folderCreate.js +56 -0
- package/dist/base/folderOpen.d.ts +2 -0
- package/dist/base/folderOpen.js +54 -0
- package/dist/base/folderSelect.d.ts +2 -0
- package/dist/base/folderSelect.js +54 -0
- package/dist/base/index.js +57 -0
- package/dist/base/openInFolder.d.ts +2 -0
- package/dist/base/openInFolder.js +54 -0
- package/dist/base/soundInfo.d.ts +8 -0
- package/dist/base/soundInfo.js +55 -0
- package/dist/component/AccountBan/index.js +10 -0
- package/dist/component/AccountBan/index.less +12 -0
- package/dist/component/file-select.d.ts +18 -0
- package/dist/component/file-select.js +163 -0
- package/dist/component/file-select.less +24 -0
- package/dist/component/folder-select.d.ts +19 -0
- package/dist/component/folder-select.js +224 -0
- package/dist/component/folder-select.less +22 -0
- package/dist/component/is-installed-chrome.d.ts +2 -0
- package/dist/component/is-installed-chrome.js +7 -0
- package/dist/component/isFileExist.js +50 -0
- package/dist/component/markdown/github-markdown-light.less +1102 -0
- package/dist/component/markdown/index.d.ts +8 -0
- package/dist/component/markdown/index.js +69 -0
- package/dist/component/markdown/index.less +55 -0
- package/dist/component/media-kind.js +24 -0
- package/dist/component/media-show/index.js +59 -0
- package/dist/component/media-show/index.less +0 -0
- package/dist/component/media-show/render.js +112 -0
- package/dist/component/media-show/render.less +54 -0
- package/dist/component/param.js +9 -0
- package/dist/component/product-dict.js +11 -0
- package/dist/component/product-type.js +20 -0
- package/dist/component/sse.js +66 -0
- package/dist/component/video-platform/logo.js +61 -0
- package/dist/component/video-platform/logo.less +49 -0
- package/dist/component/videoKindTag/index.js +44 -0
- package/dist/component/websocket/index.js +139 -0
- package/dist/config/apiUrls.js +25 -0
- package/dist/global.less +34 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +35 -0
- package/dist/lib/Tool.js +1175 -0
- package/dist/lib/accountManageSettingConfig.js +24 -0
- package/dist/lib/allow-mine-type.js +19 -0
- package/dist/lib/call-mini-url.js +8 -0
- package/dist/lib/component/getImageUrl.js +9 -0
- package/dist/lib/component/getSoundUrl.js +9 -0
- package/dist/lib/component/getVideoUrl.js +9 -0
- package/dist/lib/event.js +59 -0
- package/dist/lib/file-type.js +156 -0
- package/dist/lib/fs.d.ts +14 -0
- package/dist/lib/fs.js +480 -0
- package/dist/lib/getApiUrl.js +80 -0
- package/dist/lib/getFileExt.js +6 -0
- package/dist/lib/getLocalUserInfo.js +19 -0
- package/dist/lib/getPublishExtensionDir.d.ts +2 -0
- package/dist/lib/getPublishExtensionDir.js +55 -0
- package/dist/lib/getWorkServerUploadToken.d.ts +8 -0
- package/dist/lib/getWorkServerUploadToken.js +12 -0
- package/dist/lib/goAuth.js +28 -0
- package/dist/lib/isInClient.js +5 -0
- package/dist/lib/js-error.js +30 -0
- package/dist/lib/math.js +146 -0
- package/dist/lib/moneySimple.js +27 -0
- package/dist/lib/notification.js +43 -0
- package/dist/lib/openChrome.d.ts +2 -0
- package/dist/lib/openChrome.js +257 -0
- package/dist/lib/platform.js +57 -0
- package/dist/lib/postMessage.js +8 -0
- package/dist/lib/request.js +145 -0
- package/dist/lib/save-path.d.ts +17 -0
- package/dist/lib/save-path.js +177 -0
- package/dist/lib/save-path.less +21 -0
- package/dist/lib/saveSid.d.ts +2 -0
- package/dist/lib/saveSid.js +64 -0
- package/dist/lib/sleep.js +23 -0
- package/dist/lib/store.js +36 -0
- package/dist/lib/toast.js +8 -0
- package/dist/lib/toastError.js +8 -0
- package/dist/lib/updateUserInfo.js +40 -0
- package/dist/lib/user-agent.d.ts +2 -0
- package/dist/lib/user-agent.js +10 -0
- package/dist/lib/video-api/open-chrome.js +51 -0
- package/dist/lib/video-api/quit-chrome.d.ts +2 -0
- package/dist/lib/video-api/quit-chrome.js +51 -0
- package/dist/renewal-vip/index.d.ts +2 -0
- package/dist/renewal-vip/index.js +77 -0
- package/dist/service/api/ActiveAccountModeSettingController.d.ts +2 -0
- package/dist/service/api/ActiveAccountModeSettingController.js +53 -0
- package/dist/service/api/AdController.d.ts +6 -0
- package/dist/service/api/AdController.js +27 -0
- package/dist/service/api/AuthController.js +77 -0
- package/dist/service/api/ClientVersionController.js +27 -0
- package/dist/service/api/JsErrorController.js +27 -0
- package/dist/service/api/ProductController.js +77 -0
- package/dist/service/api/PublishTaskPlanStatisticController.d.ts +1 -0
- package/dist/service/api/PublishTaskPlanStatisticController.js +28 -0
- package/dist/service/api/SubClientController.d.ts +7 -0
- package/dist/service/api/SubClientController.js +48 -0
- package/dist/service/api/TradeController.js +52 -0
- package/dist/service/api/UserController.js +52 -0
- package/dist/service/api/UserVipController.js +27 -0
- package/dist/service/api/VideoPublishController.js +110 -0
- package/dist/service/api/VideoPublishCrawlerTaskController.d.ts +2 -0
- package/dist/service/api/VideoPublishCrawlerTaskController.js +51 -0
- package/dist/service/api/VideoPublishStatisticOperationController.d.ts +12 -0
- package/dist/service/api/VideoPublishStatisticOperationController.js +51 -0
- package/dist/service/api/VideoPublishStatisticPublishController.js +28 -0
- package/dist/service/api/VideoPublishTaskController.js +29 -0
- package/dist/service/api/VideoPublishTaskPlanController.d.ts +13 -0
- package/dist/service/api/VideoPublishTaskPlanController.js +74 -0
- package/dist/service/api/VideoPublishVideoAccountController.d.ts +17 -0
- package/dist/service/api/VideoPublishVideoAccountController.js +237 -0
- package/dist/service/api/VideoPublishVideoAccountGroupController.d.ts +8 -0
- package/dist/service/api/VideoPublishVideoAccountGroupController.js +105 -0
- package/dist/service/api/VideoPublishVideoAccountProxyController.d.ts +11 -0
- package/dist/service/api/VideoPublishVideoAccountProxyController.js +105 -0
- package/dist/service/api/VideoPublishVideoTopicController.d.ts +5 -0
- package/dist/service/api/VideoPublishVideoTopicController.js +80 -0
- package/dist/service/api/VideoPublishVideoTopicGroupController.d.ts +5 -0
- package/dist/service/api/VideoPublishVideoTopicGroupController.js +80 -0
- package/dist/service/api/VideoStudyController.d.ts +1 -0
- package/dist/service/api/VideoStudyController.js +29 -0
- package/dist/service/api/VipCardController.js +115 -0
- package/dist/service/api/VipController.js +50 -0
- package/dist/service/api/VipPowerController.js +27 -0
- package/dist/service/api/WechatController.js +50 -0
- package/dist/service/api/WorkServerController.js +27 -0
- package/dist/service/local/FileController.d.ts +35 -0
- package/dist/service/local/FileController.js +249 -0
- package/dist/service/local/LocalServerController.d.ts +1 -0
- package/dist/service/local/LocalServerController.js +32 -0
- package/dist/service/local/VideoPublishTaskController.d.ts +1 -0
- package/dist/service/local/VideoPublishTaskController.js +32 -0
- package/dist/service/typing.d.ts +14 -0
- package/dist/service/video-api/BaseController.js +27 -0
- package/dist/service/video-api/FileController.js +50 -0
- package/dist/service/video-api/SidController.js +27 -0
- package/dist/service/video-api/VideoApiOpenChromeController.js +50 -0
- package/dist/types/ApiLocal.js +0 -0
- package/dist/types/AutoMakeTaskSetting.js +0 -0
- package/dist/types/ChromeOperate.js +0 -0
- package/dist/types/ClientUpdate.js +0 -0
- package/dist/types/ClientVersion.js +0 -0
- package/dist/types/File.js +0 -0
- package/dist/types/LocalServer.js +0 -0
- package/dist/types/PublishNpm.js +0 -0
- package/dist/types/PublishTaskPlan.js +0 -0
- package/dist/types/PublishTaskPlanStatistic.js +0 -0
- package/dist/types/PublishVideo.js +0 -0
- package/dist/types/Site.js +0 -0
- package/dist/types/User.d.ts +84 -0
- package/dist/types/VideoPublish.js +0 -0
- package/dist/types/VideoPublishLog.js +0 -0
- package/dist/types/VideoPublishStatistic.js +0 -0
- package/dist/types/VideoPublishStatisticOperation.js +0 -0
- package/dist/types/VideoPublishTaskPlan.js +0 -0
- package/dist/types/VideoPublishVideoAccount.js +0 -0
- package/dist/types/VideoPublishVideoAccountGroup.js +0 -0
- package/dist/types/VideoPublishVideoAccountProxy.js +0 -0
- package/dist/types/VideoPublishVideoTopic.js +0 -0
- package/dist/types/VideoPublishVideoTopicGroup.js +0 -0
- package/dist/types/VideoStudy.js +0 -0
- package/dist/types/VidepApiBase.js +0 -0
- package/dist/types/VipCard.js +0 -0
- package/dist/types/VipList.js +0 -0
- package/dist/types/VipPower.js +0 -0
- package/dist/types/WorkServer.js +0 -0
- package/dist/typings/Ad.js +0 -0
- package/dist/typings/LocalFile.js +0 -0
- package/dist/typings/Product.js +0 -0
- package/dist/typings/SubClient.js +0 -0
- package/dist/typings/Trade.js +0 -0
- package/dist/typings/User.js +0 -0
- package/dist/typings/VideoPublishAccountManageSetting.js +0 -0
- package/dist/typings/VideoPublishVideoAccount.js +0 -0
- package/dist/typings/Vip.js +0 -0
- package/dist/typings/Wechat.js +0 -0
- package/dist/typings.d.ts +86 -0
- package/dist/video-study/index.d.ts +11 -0
- package/dist/video-study/index.js +71 -0
- package/dist/video-study/index.less +16 -0
- package/dist/window.d.ts +33 -0
- package/package.json +92 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import MarkdownToJsx from "markdown-to-jsx";
|
|
3
|
+
import { Tag, Button, Divider, Progress, Tooltip } from 'antd';
|
|
4
|
+
import { WarningFilled, CheckCircleFilled, ClockCircleOutlined, CloseSquareFilled } from '@ant-design/icons';
|
|
5
|
+
import { VideoPlatform } from "../..";
|
|
6
|
+
import "./index.less";
|
|
7
|
+
import "./github-markdown-light.less";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
var Markdown = function Markdown(_ref) {
|
|
10
|
+
var _ref$content = _ref.content,
|
|
11
|
+
content = _ref$content === void 0 ? '' : _ref$content;
|
|
12
|
+
return /*#__PURE__*/_jsx("div", {
|
|
13
|
+
className: "shipinlv-markdown markdown-body ",
|
|
14
|
+
children: /*#__PURE__*/_jsx(MarkdownToJsx, {
|
|
15
|
+
options: {
|
|
16
|
+
disableParsingRawHTML: false,
|
|
17
|
+
overrides: {
|
|
18
|
+
Tag: {
|
|
19
|
+
component: Tag
|
|
20
|
+
},
|
|
21
|
+
Button: {
|
|
22
|
+
component: Button
|
|
23
|
+
},
|
|
24
|
+
Divider: {
|
|
25
|
+
component: Divider
|
|
26
|
+
},
|
|
27
|
+
Progress: {
|
|
28
|
+
component: Progress
|
|
29
|
+
},
|
|
30
|
+
VideoPlatform: {
|
|
31
|
+
component: VideoPlatform
|
|
32
|
+
},
|
|
33
|
+
Tooltip: {
|
|
34
|
+
component: Tooltip
|
|
35
|
+
},
|
|
36
|
+
hr: {
|
|
37
|
+
component: Divider
|
|
38
|
+
},
|
|
39
|
+
WarningFilled: {
|
|
40
|
+
component: WarningFilled,
|
|
41
|
+
props: {
|
|
42
|
+
className: 'icon-warn'
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
CheckCircleFilled: {
|
|
46
|
+
component: CheckCircleFilled,
|
|
47
|
+
props: {
|
|
48
|
+
className: 'icon-success'
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
ClockCircleOutlined: {
|
|
52
|
+
component: ClockCircleOutlined,
|
|
53
|
+
props: {
|
|
54
|
+
className: 'icon-wait'
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
CloseSquareFilled: {
|
|
58
|
+
component: CloseSquareFilled,
|
|
59
|
+
props: {
|
|
60
|
+
className: 'icon-fail'
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
children: content
|
|
66
|
+
})
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
export default Markdown;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
.shipinlv-markdown{
|
|
2
|
+
position: relative;
|
|
3
|
+
line-height: 1.5em;
|
|
4
|
+
word-break: break-all;
|
|
5
|
+
word-wrap: break-word;
|
|
6
|
+
white-space: break-spaces;
|
|
7
|
+
blockquote{
|
|
8
|
+
margin-bottom: -5px !important;
|
|
9
|
+
}
|
|
10
|
+
p{
|
|
11
|
+
//margin: 0 !important;
|
|
12
|
+
//padding: 1px;
|
|
13
|
+
//margin-block-start: 0 !important;
|
|
14
|
+
//margin-inline-end: 0 !important; ;
|
|
15
|
+
}
|
|
16
|
+
//.copy{
|
|
17
|
+
// position: absolute;
|
|
18
|
+
// right: 5px;
|
|
19
|
+
// top: 3px;
|
|
20
|
+
// background-color: rgba( 0, 0, 0, 0.6 );
|
|
21
|
+
// color: #FFF;
|
|
22
|
+
// line-height: 1em;
|
|
23
|
+
// padding: 4px;
|
|
24
|
+
// border-radius: 3px;
|
|
25
|
+
// font-size: 12px;
|
|
26
|
+
// opacity: 0.8;
|
|
27
|
+
// &:hover{
|
|
28
|
+
// opacity: 0.96;
|
|
29
|
+
// }
|
|
30
|
+
//}
|
|
31
|
+
//.languageTag{
|
|
32
|
+
// position: absolute;
|
|
33
|
+
// left: 0;
|
|
34
|
+
// top: 0;
|
|
35
|
+
// font-size: 12px;
|
|
36
|
+
// line-height: 1em;
|
|
37
|
+
// padding: 1px 3px 2px;
|
|
38
|
+
// background-color: #4fc6d6;
|
|
39
|
+
// color: #FFF;
|
|
40
|
+
// border-bottom-right-radius: 3px;
|
|
41
|
+
// border-top-left-radius: 3px;
|
|
42
|
+
// &.php{
|
|
43
|
+
// background-color: #7177ad;
|
|
44
|
+
// }
|
|
45
|
+
// &.shell{
|
|
46
|
+
// background-color: #333;
|
|
47
|
+
// }
|
|
48
|
+
// &.python{
|
|
49
|
+
// background-color: #4173a1;
|
|
50
|
+
// }
|
|
51
|
+
// &.tsx{
|
|
52
|
+
// background-color: #609b56;
|
|
53
|
+
// }
|
|
54
|
+
//}
|
|
55
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import Tool from "../lib/Tool";
|
|
2
|
+
export var MediaSourceMineTypeList = {
|
|
3
|
+
image: ['image/jpeg', 'image/jpg', 'image/png', 'image/webp', 'image/gif', '.png', '.jpg', '.webp', '.gif'],
|
|
4
|
+
video: ['video/mp4', 'video/webm', '.mp4', '.webm', '.wmv', '.mov', '.mpeg', '.avi', '.mv4'],
|
|
5
|
+
audio: ['audio/mp3', '.mp3', '.wav', '.wma', '.aac', '.ogg', '.ape', '.flac'],
|
|
6
|
+
font: ['.ttf'],
|
|
7
|
+
subtitle: ['.txt'
|
|
8
|
+
// '.srt',
|
|
9
|
+
]
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export var GetMineTypeByUrl = function GetMineTypeByUrl(url) {
|
|
13
|
+
var fileExt = '.' + Tool.getFileExt(url).toLocaleLowerCase();
|
|
14
|
+
var typeKind = '';
|
|
15
|
+
for (var kind in MediaSourceMineTypeList) {
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
var item = MediaSourceMineTypeList[kind];
|
|
18
|
+
if (item !== null && item !== void 0 && item.includes(fileExt)) {
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
typeKind = kind;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return typeKind;
|
|
24
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
+
import React, { useState } from "react";
|
|
3
|
+
import "./index.less";
|
|
4
|
+
import Tool from "../../lib/Tool";
|
|
5
|
+
import { PlayCircleOutlined, SoundOutlined } from "@ant-design/icons";
|
|
6
|
+
import { GetMineTypeByUrl } from "../media-kind";
|
|
7
|
+
import MediaShowRender from "./render";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
export var onMediaShowView = function onMediaShowView(title, url, typeKind) {
|
|
11
|
+
Tool.drawer({
|
|
12
|
+
title: title,
|
|
13
|
+
content: /*#__PURE__*/_jsx(MediaShowRender, {
|
|
14
|
+
title: title,
|
|
15
|
+
url: url,
|
|
16
|
+
typeKind: typeKind
|
|
17
|
+
}),
|
|
18
|
+
width: 580
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var Index = function Index(_ref) {
|
|
22
|
+
var _ref$title = _ref.title,
|
|
23
|
+
title = _ref$title === void 0 ? '' : _ref$title,
|
|
24
|
+
className = _ref.className,
|
|
25
|
+
url = _ref.url,
|
|
26
|
+
width = _ref.width,
|
|
27
|
+
height = _ref.height;
|
|
28
|
+
var _useState = useState(GetMineTypeByUrl(url)),
|
|
29
|
+
_useState2 = _slicedToArray(_useState, 1),
|
|
30
|
+
typeKind = _useState2[0];
|
|
31
|
+
var ThumbUrlQuery = "?imageView2/0/w/".concat(width * 2);
|
|
32
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
33
|
+
className: "mediaShow ".concat(className, " ").concat(url === '' ? 'hidden' : '', " "),
|
|
34
|
+
style: {
|
|
35
|
+
width: width,
|
|
36
|
+
height: height
|
|
37
|
+
},
|
|
38
|
+
onClick: function onClick() {
|
|
39
|
+
return onMediaShowView(title, url, typeKind);
|
|
40
|
+
},
|
|
41
|
+
children: [typeKind === "image" && /*#__PURE__*/_jsx("div", {
|
|
42
|
+
className: "image",
|
|
43
|
+
style: {
|
|
44
|
+
backgroundImage: "url(\"".concat(url).concat(ThumbUrlQuery, "\")")
|
|
45
|
+
}
|
|
46
|
+
}), typeKind === "audio" && /*#__PURE__*/_jsx("div", {
|
|
47
|
+
className: "audio",
|
|
48
|
+
children: /*#__PURE__*/_jsx(SoundOutlined, {
|
|
49
|
+
className: "icon"
|
|
50
|
+
})
|
|
51
|
+
}), typeKind === "video" && /*#__PURE__*/_jsx("div", {
|
|
52
|
+
className: "video",
|
|
53
|
+
children: /*#__PURE__*/_jsx(PlayCircleOutlined, {
|
|
54
|
+
className: "icon"
|
|
55
|
+
})
|
|
56
|
+
})]
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
export default Index;
|
|
File without changes
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
2
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
|
+
import React, { useEffect, useState } from "react";
|
|
5
|
+
import "./render.less";
|
|
6
|
+
import Tool from "../../lib/Tool";
|
|
7
|
+
import getVideoUrl from "../../lib/component/getVideoUrl";
|
|
8
|
+
import { LoadingOutlined } from "@ant-design/icons";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
export var MediaShowRender = function MediaShowRender(_ref) {
|
|
13
|
+
var title = _ref.title,
|
|
14
|
+
url = _ref.url,
|
|
15
|
+
typeKind = _ref.typeKind;
|
|
16
|
+
var _useState = useState(''),
|
|
17
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
18
|
+
pathLink = _useState2[0],
|
|
19
|
+
setPathLink = _useState2[1];
|
|
20
|
+
var fetchVideoAsBlob = /*#__PURE__*/function () {
|
|
21
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22
|
+
var response, blob, _pathLink;
|
|
23
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24
|
+
while (1) switch (_context.prev = _context.next) {
|
|
25
|
+
case 0:
|
|
26
|
+
if (!/^https?:/i.test(url)) {
|
|
27
|
+
_context.next = 3;
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
setPathLink(url);
|
|
31
|
+
return _context.abrupt("return");
|
|
32
|
+
case 3:
|
|
33
|
+
_context.prev = 3;
|
|
34
|
+
_context.next = 6;
|
|
35
|
+
return fetch(getVideoUrl(url)).catch(function (err) {
|
|
36
|
+
Tool.toastError('获取视频失败');
|
|
37
|
+
});
|
|
38
|
+
case 6:
|
|
39
|
+
response = _context.sent;
|
|
40
|
+
if (response) {
|
|
41
|
+
_context.next = 9;
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
return _context.abrupt("return");
|
|
45
|
+
case 9:
|
|
46
|
+
_context.next = 11;
|
|
47
|
+
return response.blob().catch(function (err) {
|
|
48
|
+
Tool.toastError('获取视频失败 2:' + (err === null || err === void 0 ? void 0 : err.message));
|
|
49
|
+
});
|
|
50
|
+
case 11:
|
|
51
|
+
blob = _context.sent;
|
|
52
|
+
if (blob) {
|
|
53
|
+
_context.next = 14;
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
return _context.abrupt("return");
|
|
57
|
+
case 14:
|
|
58
|
+
_pathLink = URL.createObjectURL(blob);
|
|
59
|
+
setPathLink(_pathLink);
|
|
60
|
+
// const mediaUrl = getVideoUrl( url );
|
|
61
|
+
_context.next = 21;
|
|
62
|
+
break;
|
|
63
|
+
case 18:
|
|
64
|
+
_context.prev = 18;
|
|
65
|
+
_context.t0 = _context["catch"](3);
|
|
66
|
+
console.error('There has been a problem with your fetch operation:', _context.t0);
|
|
67
|
+
case 21:
|
|
68
|
+
case "end":
|
|
69
|
+
return _context.stop();
|
|
70
|
+
}
|
|
71
|
+
}, _callee, null, [[3, 18]]);
|
|
72
|
+
}));
|
|
73
|
+
return function fetchVideoAsBlob() {
|
|
74
|
+
return _ref2.apply(this, arguments);
|
|
75
|
+
};
|
|
76
|
+
}();
|
|
77
|
+
useEffect(function () {
|
|
78
|
+
fetchVideoAsBlob();
|
|
79
|
+
}, []);
|
|
80
|
+
return /*#__PURE__*/_jsx("div", {
|
|
81
|
+
className: "mediaShow",
|
|
82
|
+
children: pathLink ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
83
|
+
children: [["image", "font"].includes(typeKind) && /*#__PURE__*/_jsx("div", {
|
|
84
|
+
className: "image",
|
|
85
|
+
style: {
|
|
86
|
+
backgroundImage: "url(\"".concat(pathLink, "\")")
|
|
87
|
+
}
|
|
88
|
+
}), typeKind === "audio" && /*#__PURE__*/_jsx("div", {
|
|
89
|
+
className: "audio",
|
|
90
|
+
children: /*#__PURE__*/_jsx("audio", {
|
|
91
|
+
controls: true,
|
|
92
|
+
autoPlay: true,
|
|
93
|
+
children: /*#__PURE__*/_jsx("source", {
|
|
94
|
+
src: pathLink
|
|
95
|
+
})
|
|
96
|
+
})
|
|
97
|
+
}), typeKind === "video" && /*#__PURE__*/_jsx("div", {
|
|
98
|
+
className: "video",
|
|
99
|
+
children: /*#__PURE__*/_jsx("video", {
|
|
100
|
+
width: "100%",
|
|
101
|
+
height: "100%",
|
|
102
|
+
controls: true,
|
|
103
|
+
autoPlay: true,
|
|
104
|
+
children: /*#__PURE__*/_jsx("source", {
|
|
105
|
+
src: pathLink
|
|
106
|
+
})
|
|
107
|
+
})
|
|
108
|
+
})]
|
|
109
|
+
}) : /*#__PURE__*/_jsx(LoadingOutlined, {})
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
export default MediaShowRender;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
.mediaShow{
|
|
2
|
+
background-color: #F2F2F2;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
height: 100%;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
&.hidden{
|
|
8
|
+
display: none;
|
|
9
|
+
}
|
|
10
|
+
.image{
|
|
11
|
+
background-position: center;
|
|
12
|
+
background-repeat: no-repeat;
|
|
13
|
+
background-size: contain;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
height: 100%;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.audio{
|
|
21
|
+
position: relative;
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
text-align: center;
|
|
26
|
+
border-radius: 3px;
|
|
27
|
+
margin: auto 0;
|
|
28
|
+
.icon{
|
|
29
|
+
margin: 0 auto;
|
|
30
|
+
color: #000;
|
|
31
|
+
font-size: 30px;
|
|
32
|
+
padding: 6px 0;
|
|
33
|
+
opacity: 0.8;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.video{
|
|
38
|
+
position: relative;
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
height: 90vh;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
text-align: center;
|
|
45
|
+
background-color: #000;
|
|
46
|
+
border-radius: 3px;
|
|
47
|
+
.icon{
|
|
48
|
+
margin: 0 auto;
|
|
49
|
+
color: #FFF;
|
|
50
|
+
font-size: 28px;
|
|
51
|
+
opacity: 0.8;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var param = function param() {
|
|
2
|
+
var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
3
|
+
var queryString = [];
|
|
4
|
+
for (var i in query) {
|
|
5
|
+
queryString.push("".concat(i, "=").concat(encodeURIComponent(query[i] || '')));
|
|
6
|
+
}
|
|
7
|
+
return queryString.join('&');
|
|
8
|
+
};
|
|
9
|
+
export default param;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AndroidOutlined } from '@ant-design/icons';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
var ProductTypeDict = {
|
|
5
|
+
'chatGPT': {
|
|
6
|
+
title: 'ChatPGT AI',
|
|
7
|
+
color: '',
|
|
8
|
+
icon: /*#__PURE__*/_jsx(AndroidOutlined, {})
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export default ProductTypeDict;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ProductTypeDict from "./product-dict";
|
|
3
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
var ProductType = function ProductType(_ref) {
|
|
5
|
+
var _ref$productType = _ref.productType,
|
|
6
|
+
productType = _ref$productType === void 0 ? '' : _ref$productType,
|
|
7
|
+
productName = _ref.productName;
|
|
8
|
+
var itemData = ProductTypeDict[productType] || {
|
|
9
|
+
color: '',
|
|
10
|
+
icon: '',
|
|
11
|
+
title: ''
|
|
12
|
+
};
|
|
13
|
+
return /*#__PURE__*/_jsxs("span", {
|
|
14
|
+
style: {
|
|
15
|
+
color: itemData.color
|
|
16
|
+
},
|
|
17
|
+
children: [itemData.icon, " ", itemData.title || productName || productType]
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
export default ProductType;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
+
var SSE = /*#__PURE__*/function () {
|
|
5
|
+
function SSE(apiUrl, onMessage, onOpen, onClose, onError) {
|
|
6
|
+
_classCallCheck(this, SSE);
|
|
7
|
+
_defineProperty(this, "apiUrl", '');
|
|
8
|
+
_defineProperty(this, "source", null);
|
|
9
|
+
_defineProperty(this, "onMessage", function (lastEventId, data) {});
|
|
10
|
+
_defineProperty(this, "onOpen", function () {});
|
|
11
|
+
_defineProperty(this, "onClose", function () {});
|
|
12
|
+
_defineProperty(this, "onError", function (err) {});
|
|
13
|
+
this.apiUrl = apiUrl;
|
|
14
|
+
this.onMessage = onMessage;
|
|
15
|
+
this.onOpen = onOpen;
|
|
16
|
+
this.onClose = onClose;
|
|
17
|
+
this.onError = onError;
|
|
18
|
+
}
|
|
19
|
+
_createClass(SSE, [{
|
|
20
|
+
key: "onInit",
|
|
21
|
+
value: function onInit() {
|
|
22
|
+
var _this = this;
|
|
23
|
+
// 创建一个新的EventSource
|
|
24
|
+
this.source = new EventSource(this.apiUrl);
|
|
25
|
+
|
|
26
|
+
// this.source.onmessage = ( event ) => {
|
|
27
|
+
// console.log('接收到消息:', event );
|
|
28
|
+
//
|
|
29
|
+
// }
|
|
30
|
+
|
|
31
|
+
// 监听message事件(默认事件名称为message)
|
|
32
|
+
this.source.addEventListener('message', function (event) {
|
|
33
|
+
// event.data包含服务器发送的信息
|
|
34
|
+
// console.log('接收到消息:', event );
|
|
35
|
+
_this.onMessage(event.lastEventId, event.data);
|
|
36
|
+
}, false);
|
|
37
|
+
|
|
38
|
+
// 监听open事件,当连接建立时触发
|
|
39
|
+
this.source.addEventListener('open', function (event) {
|
|
40
|
+
// event.data包含服务器发送的信息
|
|
41
|
+
console.log(' 消息 open :', event);
|
|
42
|
+
_this.onOpen();
|
|
43
|
+
}, false);
|
|
44
|
+
this.source.addEventListener('error', function (event) {
|
|
45
|
+
var _event$target, _this$source;
|
|
46
|
+
// event.data包含服务器发送的信息
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
var readyState = (_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.readyState;
|
|
49
|
+
if (readyState === EventSource.CLOSED) {
|
|
50
|
+
console.log('连接已关闭');
|
|
51
|
+
_this.onClose();
|
|
52
|
+
}
|
|
53
|
+
if (readyState === EventSource.CONNECTING) {
|
|
54
|
+
console.log('连接已关闭: EventSource.CONNECTING');
|
|
55
|
+
// this.onError( new Error('连接时失败'));
|
|
56
|
+
} else {
|
|
57
|
+
console.error('发生错误或连接关闭', readyState);
|
|
58
|
+
_this.onError(new Error('发生错误或连接关闭'));
|
|
59
|
+
}
|
|
60
|
+
(_this$source = _this.source) === null || _this$source === void 0 || _this$source.close();
|
|
61
|
+
}, false);
|
|
62
|
+
}
|
|
63
|
+
}]);
|
|
64
|
+
return SSE;
|
|
65
|
+
}();
|
|
66
|
+
export default SSE;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import "./logo.less";
|
|
3
|
+
|
|
4
|
+
// https://olived.app/zh-hans/olivetv/#bilibili
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
export var VideoPlatformList = [{
|
|
8
|
+
platform: 'douyin',
|
|
9
|
+
name: '抖音',
|
|
10
|
+
loginWebSiteUrl: 'https://www.douyin.com/user/self?from_tab_name=main',
|
|
11
|
+
// auth login
|
|
12
|
+
allowMainDomainList: ['douyin.com', 'iesdouyin.com']
|
|
13
|
+
}, {
|
|
14
|
+
platform: 'kuaishou',
|
|
15
|
+
name: '快手',
|
|
16
|
+
loginWebSiteUrl: 'https://cp.kuaishou.com/article/publish/video',
|
|
17
|
+
// auth login
|
|
18
|
+
allowMainDomainList: ['kuaishou.com']
|
|
19
|
+
// disabled: true,
|
|
20
|
+
}, {
|
|
21
|
+
platform: 'tiktok',
|
|
22
|
+
name: 'Tiktok',
|
|
23
|
+
loginWebSiteUrl: 'https://www.tiktok.com/',
|
|
24
|
+
// auth login
|
|
25
|
+
allowMainDomainList: ['tiktok.com'],
|
|
26
|
+
disabled: true
|
|
27
|
+
}];
|
|
28
|
+
export var VideoPlatformDict = function () {
|
|
29
|
+
var dict = {};
|
|
30
|
+
VideoPlatformList.forEach(function (item) {
|
|
31
|
+
dict[item.platform] = item;
|
|
32
|
+
});
|
|
33
|
+
return dict;
|
|
34
|
+
}();
|
|
35
|
+
var VideoPlatform = function VideoPlatform(_ref) {
|
|
36
|
+
var platform = _ref.platform,
|
|
37
|
+
_ref$size = _ref.size,
|
|
38
|
+
size = _ref$size === void 0 ? 16 : _ref$size,
|
|
39
|
+
_ref$className = _ref.className,
|
|
40
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
41
|
+
_ref$disabled = _ref.disabled,
|
|
42
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
43
|
+
showName = _ref.showName;
|
|
44
|
+
var itemData = VideoPlatformDict[platform] || {
|
|
45
|
+
name: platform
|
|
46
|
+
};
|
|
47
|
+
return /*#__PURE__*/_jsxs("i", {
|
|
48
|
+
className: "videoPlatformLogo ".concat(disabled ? 'disabled' : '', " ").concat(className),
|
|
49
|
+
children: [/*#__PURE__*/_jsx("i", {
|
|
50
|
+
className: "logo ".concat(platform || '', " "),
|
|
51
|
+
style: {
|
|
52
|
+
width: size,
|
|
53
|
+
height: size
|
|
54
|
+
}
|
|
55
|
+
}), showName && /*#__PURE__*/_jsx("span", {
|
|
56
|
+
className: "name",
|
|
57
|
+
children: itemData === null || itemData === void 0 ? void 0 : itemData.name
|
|
58
|
+
})]
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
export default VideoPlatform;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
.videoPlatformLogo{
|
|
2
|
+
display: inline-block;
|
|
3
|
+
&.disabled{
|
|
4
|
+
.logo{
|
|
5
|
+
opacity: 0.3;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
.logo{
|
|
9
|
+
display: inline-block;
|
|
10
|
+
vertical-align: middle;
|
|
11
|
+
position: relative;
|
|
12
|
+
top: -0.1em;
|
|
13
|
+
background-size: cover;
|
|
14
|
+
background-position: center;
|
|
15
|
+
background-repeat: no-repeat;
|
|
16
|
+
margin-right: 4px;
|
|
17
|
+
border-radius: 100px;
|
|
18
|
+
&.douyin{
|
|
19
|
+
background-image: url("../../asset/image/platform/douyin.png");
|
|
20
|
+
}
|
|
21
|
+
&.buyin{
|
|
22
|
+
background-image: url("../../asset/image/platform/buyin.png");
|
|
23
|
+
}
|
|
24
|
+
&.tiktok{
|
|
25
|
+
background-image: url("../../asset/image/platform/tiktok.png");
|
|
26
|
+
}
|
|
27
|
+
&.kuaishou{
|
|
28
|
+
background-image: url("../../asset/image/platform/kuaishou.png");
|
|
29
|
+
}
|
|
30
|
+
&.douyu{
|
|
31
|
+
background-image: url("../../asset/image/platform/douyu.png");
|
|
32
|
+
}
|
|
33
|
+
&.huya{
|
|
34
|
+
background-image: url("../../asset/image/platform/huya.png");
|
|
35
|
+
}
|
|
36
|
+
&.bilibili{
|
|
37
|
+
background-image: url("../../asset/image/platform/bilibili.png");
|
|
38
|
+
}
|
|
39
|
+
&.youtube{
|
|
40
|
+
background-image: url("../../asset/image/platform/youtube.png");
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.name{
|
|
45
|
+
//vertical-align: middle;
|
|
46
|
+
display: inline-block;
|
|
47
|
+
font-style: normal;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Tag } from 'antd';
|
|
4
|
+
import { ShoppingCartOutlined, GlobalOutlined, AppstoreAddOutlined } from '@ant-design/icons';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
// 'shopping' | 'location' | 'min-app'
|
|
8
|
+
var Dict = {
|
|
9
|
+
shopping: {
|
|
10
|
+
title: '购物车',
|
|
11
|
+
color: 'orange',
|
|
12
|
+
icon: /*#__PURE__*/_jsx(ShoppingCartOutlined, {})
|
|
13
|
+
},
|
|
14
|
+
location: {
|
|
15
|
+
title: '定位',
|
|
16
|
+
color: 'blue',
|
|
17
|
+
icon: /*#__PURE__*/_jsx(GlobalOutlined, {})
|
|
18
|
+
},
|
|
19
|
+
'min-app': {
|
|
20
|
+
title: '小程序',
|
|
21
|
+
color: 'green',
|
|
22
|
+
icon: /*#__PURE__*/_jsx(AppstoreAddOutlined, {})
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
export var VideoKindTagList = function () {
|
|
26
|
+
var list = [];
|
|
27
|
+
for (var videoKindTag in Dict) {
|
|
28
|
+
list.push(_objectSpread({
|
|
29
|
+
videoKindTag: videoKindTag
|
|
30
|
+
}, Dict[videoKindTag]));
|
|
31
|
+
}
|
|
32
|
+
return list;
|
|
33
|
+
}();
|
|
34
|
+
var VideoKindTag = function VideoKindTag(_ref) {
|
|
35
|
+
var _ref$videoKindTag = _ref.videoKindTag,
|
|
36
|
+
videoKindTag = _ref$videoKindTag === void 0 ? '' : _ref$videoKindTag;
|
|
37
|
+
var items = Dict[videoKindTag] || {};
|
|
38
|
+
var title = items.title || videoKindTag;
|
|
39
|
+
return title ? /*#__PURE__*/_jsxs(Tag, {
|
|
40
|
+
color: items.color,
|
|
41
|
+
children: [items.icon, " ", title]
|
|
42
|
+
}) : null;
|
|
43
|
+
};
|
|
44
|
+
export default VideoKindTag;
|