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.
Files changed (480) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +7 -0
  3. package/dist/Ad/index.d.ts +11 -0
  4. package/dist/Ad/index.js +143 -0
  5. package/dist/Ad/index.less +12 -0
  6. package/dist/Auth/index.d.ts +16 -0
  7. package/dist/Auth/index.js +374 -0
  8. package/dist/AuthClient/index.js +30 -0
  9. package/dist/AuthClient/login-reg.css.js +6 -0
  10. package/dist/AuthClient/login-reg.js +78 -0
  11. package/dist/AuthClient/login.css.js +6 -0
  12. package/dist/AuthClient/login.d.ts +14 -0
  13. package/dist/AuthClient/login.js +198 -0
  14. package/dist/AuthClient/qr/h5-we-public-login.d.ts +2 -0
  15. package/dist/AuthClient/qr/h5-we-public-login.js +22 -0
  16. package/dist/AuthClient/qr/index.css.js +9 -0
  17. package/dist/AuthClient/qr/index.d.ts +15 -0
  18. package/dist/AuthClient/qr/index.js +348 -0
  19. package/dist/AuthClient/qr/typings.d.ts +22 -0
  20. package/dist/AuthClient/qr/ws.js +253 -0
  21. package/dist/AuthClient/reg.js +185 -0
  22. package/dist/AuthClient/user-offline.js +41 -0
  23. package/dist/Buy/index.css.js +6 -0
  24. package/dist/Buy/index.d.ts +14 -0
  25. package/dist/Buy/index.js +121 -0
  26. package/dist/Buy/qr.css.js +6 -0
  27. package/dist/Buy/qr.d.ts +11 -0
  28. package/dist/Buy/qr.js +354 -0
  29. package/dist/Buy/trial-member.css.js +6 -0
  30. package/dist/Buy/trial-member.d.ts +8 -0
  31. package/dist/Buy/trial-member.js +45 -0
  32. package/dist/Client/ClientUpdate/index.js +92 -0
  33. package/dist/Client/ClientUpdate/index.less +23 -0
  34. package/dist/Login/index.js +5 -0
  35. package/dist/Notice/index.js +36 -0
  36. package/dist/PhonePublish/account-manage/home.d.ts +11 -0
  37. package/dist/PhonePublish/account-manage/home.js +242 -0
  38. package/dist/PhonePublish/account-manage/home.less +28 -0
  39. package/dist/PhonePublish/account-manage/index.d.ts +3 -0
  40. package/dist/PhonePublish/account-manage/index.js +56 -0
  41. package/dist/PhonePublish/account-manage/index.less +59 -0
  42. package/dist/PhonePublish/account-manage/list.d.ts +17 -0
  43. package/dist/PhonePublish/account-manage/list.js +443 -0
  44. package/dist/PhonePublish/account-manage/list.less +95 -0
  45. package/dist/PhonePublish/account-manage/setting/index.d.ts +6 -0
  46. package/dist/PhonePublish/account-manage/setting/index.js +199 -0
  47. package/dist/PhonePublish/account-manage/setting/index.less +11 -0
  48. package/dist/PhonePublish/create-task/base/index.d.ts +10 -0
  49. package/dist/PhonePublish/create-task/base/index.js +386 -0
  50. package/dist/PhonePublish/create-task/base/index.less +64 -0
  51. package/dist/PhonePublish/create-task/getVideoGoodsUrl.d.ts +2 -0
  52. package/dist/PhonePublish/create-task/getVideoGoodsUrl.js +136 -0
  53. package/dist/PhonePublish/create-task/hour-enabled.js +42 -0
  54. package/dist/PhonePublish/create-task/hour-enabled.less +24 -0
  55. package/dist/PhonePublish/create-task/index.d.ts +11 -0
  56. package/dist/PhonePublish/create-task/index.js +449 -0
  57. package/dist/PhonePublish/create-task/index.less +75 -0
  58. package/dist/PhonePublish/create-task/select-list.css.js +6 -0
  59. package/dist/PhonePublish/create-task/select-list.d.ts +8 -0
  60. package/dist/PhonePublish/create-task/select-list.js +304 -0
  61. package/dist/PhonePublish/create-task/task-list.css.js +6 -0
  62. package/dist/PhonePublish/create-task/task-list.d.ts +9 -0
  63. package/dist/PhonePublish/create-task/task-list.js +323 -0
  64. package/dist/PhonePublish/index.css.js +35 -0
  65. package/dist/PhonePublish/index.d.ts +15 -0
  66. package/dist/PhonePublish/index.js +192 -0
  67. package/dist/PhonePublish/index.less +55 -0
  68. package/dist/PhonePublish/lib/chrome-quit.js +20 -0
  69. package/dist/PhonePublish/log/index.d.ts +8 -0
  70. package/dist/PhonePublish/log/index.js +186 -0
  71. package/dist/PhonePublish/log/index.less +81 -0
  72. package/dist/PhonePublish/publish-task-plan/index.d.ts +9 -0
  73. package/dist/PhonePublish/publish-task-plan/index.js +32 -0
  74. package/dist/PhonePublish/publish-task-plan/index.less +4 -0
  75. package/dist/PhonePublish/publish-task-plan/tool-bak.txt +219 -0
  76. package/dist/PhonePublish/publish-task-plan/tool.d.ts +29 -0
  77. package/dist/PhonePublish/publish-task-plan/tool.js +720 -0
  78. package/dist/PhonePublish/task-list/index.d.ts +8 -0
  79. package/dist/PhonePublish/task-list/index.js +224 -0
  80. package/dist/PhonePublish/task-list/index.less +8 -0
  81. package/dist/PhonePublish/task-list/plan/list.d.ts +12 -0
  82. package/dist/PhonePublish/task-list/plan/list.js +290 -0
  83. package/dist/PhonePublish/task-list/plan/list.less +87 -0
  84. package/dist/PhonePublish/task-list/plan/operate.d.ts +8 -0
  85. package/dist/PhonePublish/task-list/plan/operate.js +145 -0
  86. package/dist/PhonePublish/task-list/plan/query.d.ts +8 -0
  87. package/dist/PhonePublish/task-list/plan/query.js +89 -0
  88. package/dist/PhonePublish/task-list/plan/query.less +9 -0
  89. package/dist/PhonePublish/task-list/plan/status.js +53 -0
  90. package/dist/PhonePublish/task-list/query.js +76 -0
  91. package/dist/PhonePublish/task-list/query.less +19 -0
  92. package/dist/PhonePublish/task-list/who-can-view.js +37 -0
  93. package/dist/PhonePublish/video-account/ban/index.d.ts +10 -0
  94. package/dist/PhonePublish/video-account/ban/index.js +94 -0
  95. package/dist/PhonePublish/video-account/ban/index.less +4 -0
  96. package/dist/PhonePublish/video-account/base-info.d.ts +13 -0
  97. package/dist/PhonePublish/video-account/base-info.js +75 -0
  98. package/dist/PhonePublish/video-account/base-info.less +92 -0
  99. package/dist/PhonePublish/video-account/create.d.ts +8 -0
  100. package/dist/PhonePublish/video-account/create.js +174 -0
  101. package/dist/PhonePublish/video-account/group.d.ts +9 -0
  102. package/dist/PhonePublish/video-account/group.js +255 -0
  103. package/dist/PhonePublish/video-account/group.less +10 -0
  104. package/dist/PhonePublish/video-account/index.d.ts +8 -0
  105. package/dist/PhonePublish/video-account/index.js +403 -0
  106. package/dist/PhonePublish/video-account/index.less +92 -0
  107. package/dist/PhonePublish/video-account/query.d.ts +8 -0
  108. package/dist/PhonePublish/video-account/query.js +115 -0
  109. package/dist/PhonePublish/video-account/query.less +18 -0
  110. package/dist/PhonePublish/video-publish-statistic/account-trend/index.d.ts +8 -0
  111. package/dist/PhonePublish/video-publish-statistic/account-trend/index.js +173 -0
  112. package/dist/PhonePublish/video-publish-statistic/account-trend/index.less +3 -0
  113. package/dist/PhonePublish/video-publish-statistic/account-trend/kind-list.js +22 -0
  114. package/dist/PhonePublish/video-publish-statistic/account-trend/query.js +54 -0
  115. package/dist/PhonePublish/video-publish-statistic/account-trend/query.less +3 -0
  116. package/dist/PhonePublish/video-publish-statistic/index.d.ts +2 -0
  117. package/dist/PhonePublish/video-publish-statistic/index.js +37 -0
  118. package/dist/PhonePublish/video-publish-statistic/kind.js +57 -0
  119. package/dist/PhonePublish/video-publish-statistic/operation/list.d.ts +7 -0
  120. package/dist/PhonePublish/video-publish-statistic/operation/list.js +242 -0
  121. package/dist/PhonePublish/video-publish-statistic/operation/list.less +10 -0
  122. package/dist/PhonePublish/video-publish-statistic/operation/query.js +56 -0
  123. package/dist/PhonePublish/video-publish-statistic/operation/query.less +3 -0
  124. package/dist/PhonePublish/video-publish-statistic/publish-plan/list.d.ts +8 -0
  125. package/dist/PhonePublish/video-publish-statistic/publish-plan/list.js +257 -0
  126. package/dist/PhonePublish/video-publish-statistic/publish-plan/list.less +105 -0
  127. package/dist/PhonePublish/video-publish-statistic/publish-plan/query.js +79 -0
  128. package/dist/PhonePublish/video-publish-statistic/publish-plan/query.less +3 -0
  129. package/dist/Product/dict.d.ts +16 -0
  130. package/dist/Product/dict.js +93 -0
  131. package/dist/Product/index.js +36 -0
  132. package/dist/UI/DialogDrawer.css.js +6 -0
  133. package/dist/UI/DialogDrawer.js +74 -0
  134. package/dist/UI/DialogDrawerFooter.css.js +6 -0
  135. package/dist/UI/DialogDrawerFooter.js +22 -0
  136. package/dist/UI/FileSize.css.js +6 -0
  137. package/dist/UI/FileSize.js +63 -0
  138. package/dist/UI/LayoutContent.js +73 -0
  139. package/dist/UI/LayoutContent.less +64 -0
  140. package/dist/UI/LoadError.css.js +6 -0
  141. package/dist/UI/LoadError.js +36 -0
  142. package/dist/UI/Money/index.css.js +6 -0
  143. package/dist/UI/Money/index.js +40 -0
  144. package/dist/UI/PageContentWarp.js +80 -0
  145. package/dist/UI/PageContentWarp.less +56 -0
  146. package/dist/UI/PageLoading.js +11 -0
  147. package/dist/UI/PageLoading.less +7 -0
  148. package/dist/UI/Time.js +21 -0
  149. package/dist/UI/duration.css.js +6 -0
  150. package/dist/UI/duration.js +49 -0
  151. package/dist/UI/enabled.js +28 -0
  152. package/dist/UI/text-input.js +110 -0
  153. package/dist/UI/text-input.less +22 -0
  154. package/dist/VideoPublish/account-manage/home.d.ts +11 -0
  155. package/dist/VideoPublish/account-manage/home.js +232 -0
  156. package/dist/VideoPublish/account-manage/home.less +58 -0
  157. package/dist/VideoPublish/account-manage/index.d.ts +3 -0
  158. package/dist/VideoPublish/account-manage/index.js +56 -0
  159. package/dist/VideoPublish/account-manage/index.less +59 -0
  160. package/dist/VideoPublish/account-manage/list.d.ts +17 -0
  161. package/dist/VideoPublish/account-manage/list.js +501 -0
  162. package/dist/VideoPublish/account-manage/list.less +95 -0
  163. package/dist/VideoPublish/account-manage/setting/index.d.ts +6 -0
  164. package/dist/VideoPublish/account-manage/setting/index.js +199 -0
  165. package/dist/VideoPublish/account-manage/setting/index.less +11 -0
  166. package/dist/VideoPublish/create-task/base/index.d.ts +10 -0
  167. package/dist/VideoPublish/create-task/base/index.js +386 -0
  168. package/dist/VideoPublish/create-task/base/index.less +64 -0
  169. package/dist/VideoPublish/create-task/getVideoGoodsUrl.d.ts +2 -0
  170. package/dist/VideoPublish/create-task/getVideoGoodsUrl.js +136 -0
  171. package/dist/VideoPublish/create-task/hour-enabled.js +42 -0
  172. package/dist/VideoPublish/create-task/hour-enabled.less +24 -0
  173. package/dist/VideoPublish/create-task/index.d.ts +11 -0
  174. package/dist/VideoPublish/create-task/index.js +449 -0
  175. package/dist/VideoPublish/create-task/index.less +75 -0
  176. package/dist/VideoPublish/create-task/select-list.css.js +6 -0
  177. package/dist/VideoPublish/create-task/select-list.d.ts +8 -0
  178. package/dist/VideoPublish/create-task/select-list.js +304 -0
  179. package/dist/VideoPublish/create-task/task-list.css.js +6 -0
  180. package/dist/VideoPublish/create-task/task-list.d.ts +9 -0
  181. package/dist/VideoPublish/create-task/task-list.js +323 -0
  182. package/dist/VideoPublish/index.css.js +35 -0
  183. package/dist/VideoPublish/index.d.ts +15 -0
  184. package/dist/VideoPublish/index.js +235 -0
  185. package/dist/VideoPublish/index.less +55 -0
  186. package/dist/VideoPublish/lib/chrome-quit.js +20 -0
  187. package/dist/VideoPublish/log/index.d.ts +8 -0
  188. package/dist/VideoPublish/log/index.js +186 -0
  189. package/dist/VideoPublish/log/index.less +81 -0
  190. package/dist/VideoPublish/proxy/create.d.ts +8 -0
  191. package/dist/VideoPublish/proxy/create.js +176 -0
  192. package/dist/VideoPublish/proxy/list.d.ts +9 -0
  193. package/dist/VideoPublish/proxy/list.js +276 -0
  194. package/dist/VideoPublish/proxy/list.less +10 -0
  195. package/dist/VideoPublish/proxy/query.d.ts +9 -0
  196. package/dist/VideoPublish/proxy/query.js +75 -0
  197. package/dist/VideoPublish/proxy/query.less +10 -0
  198. package/dist/VideoPublish/proxy/select.d.ts +10 -0
  199. package/dist/VideoPublish/proxy/select.js +110 -0
  200. package/dist/VideoPublish/proxy/select.less +17 -0
  201. package/dist/VideoPublish/publish-task-plan/index.d.ts +9 -0
  202. package/dist/VideoPublish/publish-task-plan/index.js +32 -0
  203. package/dist/VideoPublish/publish-task-plan/index.less +4 -0
  204. package/dist/VideoPublish/publish-task-plan/tool-bak.txt +219 -0
  205. package/dist/VideoPublish/publish-task-plan/tool.d.ts +29 -0
  206. package/dist/VideoPublish/publish-task-plan/tool.js +720 -0
  207. package/dist/VideoPublish/task-list/index.d.ts +8 -0
  208. package/dist/VideoPublish/task-list/index.js +224 -0
  209. package/dist/VideoPublish/task-list/index.less +8 -0
  210. package/dist/VideoPublish/task-list/plan/list.d.ts +12 -0
  211. package/dist/VideoPublish/task-list/plan/list.js +290 -0
  212. package/dist/VideoPublish/task-list/plan/list.less +87 -0
  213. package/dist/VideoPublish/task-list/plan/operate.d.ts +8 -0
  214. package/dist/VideoPublish/task-list/plan/operate.js +145 -0
  215. package/dist/VideoPublish/task-list/plan/query.d.ts +8 -0
  216. package/dist/VideoPublish/task-list/plan/query.js +89 -0
  217. package/dist/VideoPublish/task-list/plan/query.less +9 -0
  218. package/dist/VideoPublish/task-list/plan/status.js +53 -0
  219. package/dist/VideoPublish/task-list/query.js +76 -0
  220. package/dist/VideoPublish/task-list/query.less +19 -0
  221. package/dist/VideoPublish/task-list/who-can-view.js +37 -0
  222. package/dist/VideoPublish/video-account/ban/index.d.ts +10 -0
  223. package/dist/VideoPublish/video-account/ban/index.js +94 -0
  224. package/dist/VideoPublish/video-account/ban/index.less +4 -0
  225. package/dist/VideoPublish/video-account/base-info.d.ts +13 -0
  226. package/dist/VideoPublish/video-account/base-info.js +75 -0
  227. package/dist/VideoPublish/video-account/base-info.less +92 -0
  228. package/dist/VideoPublish/video-account/create.d.ts +8 -0
  229. package/dist/VideoPublish/video-account/create.js +174 -0
  230. package/dist/VideoPublish/video-account/group.d.ts +9 -0
  231. package/dist/VideoPublish/video-account/group.js +255 -0
  232. package/dist/VideoPublish/video-account/group.less +10 -0
  233. package/dist/VideoPublish/video-account/index.d.ts +8 -0
  234. package/dist/VideoPublish/video-account/index.js +403 -0
  235. package/dist/VideoPublish/video-account/index.less +92 -0
  236. package/dist/VideoPublish/video-account/query.d.ts +8 -0
  237. package/dist/VideoPublish/video-account/query.js +115 -0
  238. package/dist/VideoPublish/video-account/query.less +18 -0
  239. package/dist/VideoPublish/video-publish-statistic/account-trend/index.d.ts +8 -0
  240. package/dist/VideoPublish/video-publish-statistic/account-trend/index.js +173 -0
  241. package/dist/VideoPublish/video-publish-statistic/account-trend/index.less +3 -0
  242. package/dist/VideoPublish/video-publish-statistic/account-trend/kind-list.js +22 -0
  243. package/dist/VideoPublish/video-publish-statistic/account-trend/query.js +54 -0
  244. package/dist/VideoPublish/video-publish-statistic/account-trend/query.less +3 -0
  245. package/dist/VideoPublish/video-publish-statistic/index.d.ts +2 -0
  246. package/dist/VideoPublish/video-publish-statistic/index.js +37 -0
  247. package/dist/VideoPublish/video-publish-statistic/kind.js +57 -0
  248. package/dist/VideoPublish/video-publish-statistic/operation/list.d.ts +7 -0
  249. package/dist/VideoPublish/video-publish-statistic/operation/list.js +242 -0
  250. package/dist/VideoPublish/video-publish-statistic/operation/list.less +10 -0
  251. package/dist/VideoPublish/video-publish-statistic/operation/query.js +56 -0
  252. package/dist/VideoPublish/video-publish-statistic/operation/query.less +3 -0
  253. package/dist/VideoPublish/video-publish-statistic/publish-plan/list.d.ts +8 -0
  254. package/dist/VideoPublish/video-publish-statistic/publish-plan/list.js +257 -0
  255. package/dist/VideoPublish/video-publish-statistic/publish-plan/list.less +105 -0
  256. package/dist/VideoPublish/video-publish-statistic/publish-plan/query.js +79 -0
  257. package/dist/VideoPublish/video-publish-statistic/publish-plan/query.less +3 -0
  258. package/dist/VideoPublish/video-topic/add.d.ts +9 -0
  259. package/dist/VideoPublish/video-topic/add.js +89 -0
  260. package/dist/VideoPublish/video-topic/add.less +3 -0
  261. package/dist/VideoPublish/video-topic/index.d.ts +8 -0
  262. package/dist/VideoPublish/video-topic/index.js +301 -0
  263. package/dist/VideoPublish/video-topic/index.less +37 -0
  264. package/dist/VideoPublish/video-topic/select.d.ts +11 -0
  265. package/dist/VideoPublish/video-topic/select.js +172 -0
  266. package/dist/VideoPublish/video-topic/select.less +3 -0
  267. package/dist/VipCompare/commend.css.js +6 -0
  268. package/dist/VipCompare/commend.js +28 -0
  269. package/dist/VipCompare/index.css.js +6 -0
  270. package/dist/VipCompare/index.d.ts +8 -0
  271. package/dist/VipCompare/index.js +325 -0
  272. package/dist/VipList/index.css.js +6 -0
  273. package/dist/VipList/index.d.ts +15 -0
  274. package/dist/VipList/index.js +397 -0
  275. package/dist/active-code/index.d.ts +7 -0
  276. package/dist/active-code/index.js +78 -0
  277. package/dist/active-code/user-vip.d.ts +3 -0
  278. package/dist/active-code/user-vip.js +84 -0
  279. package/dist/active-code/user-vip.less +3 -0
  280. package/dist/asset/image/platform/bilibili.png +0 -0
  281. package/dist/asset/image/platform/buyin.png +0 -0
  282. package/dist/asset/image/platform/douyin.png +0 -0
  283. package/dist/asset/image/platform/douyu.png +0 -0
  284. package/dist/asset/image/platform/huya.png +0 -0
  285. package/dist/asset/image/platform/kuaishou.png +0 -0
  286. package/dist/asset/image/platform/tiktok.png +0 -0
  287. package/dist/asset/image/platform/youtube.png +0 -0
  288. package/dist/base/DealerUrlDict.js +7 -0
  289. package/dist/base/fileList.d.ts +2 -0
  290. package/dist/base/fileList.js +61 -0
  291. package/dist/base/fileListContent.d.ts +2 -0
  292. package/dist/base/fileListContent.js +61 -0
  293. package/dist/base/fileSelect.d.ts +2 -0
  294. package/dist/base/fileSelect.js +54 -0
  295. package/dist/base/folderCreate.d.ts +2 -0
  296. package/dist/base/folderCreate.js +56 -0
  297. package/dist/base/folderOpen.d.ts +2 -0
  298. package/dist/base/folderOpen.js +54 -0
  299. package/dist/base/folderSelect.d.ts +2 -0
  300. package/dist/base/folderSelect.js +54 -0
  301. package/dist/base/index.js +57 -0
  302. package/dist/base/openInFolder.d.ts +2 -0
  303. package/dist/base/openInFolder.js +54 -0
  304. package/dist/base/soundInfo.d.ts +8 -0
  305. package/dist/base/soundInfo.js +55 -0
  306. package/dist/component/AccountBan/index.js +10 -0
  307. package/dist/component/AccountBan/index.less +12 -0
  308. package/dist/component/file-select.d.ts +18 -0
  309. package/dist/component/file-select.js +163 -0
  310. package/dist/component/file-select.less +24 -0
  311. package/dist/component/folder-select.d.ts +19 -0
  312. package/dist/component/folder-select.js +224 -0
  313. package/dist/component/folder-select.less +22 -0
  314. package/dist/component/is-installed-chrome.d.ts +2 -0
  315. package/dist/component/is-installed-chrome.js +7 -0
  316. package/dist/component/isFileExist.js +50 -0
  317. package/dist/component/markdown/github-markdown-light.less +1102 -0
  318. package/dist/component/markdown/index.d.ts +8 -0
  319. package/dist/component/markdown/index.js +69 -0
  320. package/dist/component/markdown/index.less +55 -0
  321. package/dist/component/media-kind.js +24 -0
  322. package/dist/component/media-show/index.js +59 -0
  323. package/dist/component/media-show/index.less +0 -0
  324. package/dist/component/media-show/render.js +112 -0
  325. package/dist/component/media-show/render.less +54 -0
  326. package/dist/component/param.js +9 -0
  327. package/dist/component/product-dict.js +11 -0
  328. package/dist/component/product-type.js +20 -0
  329. package/dist/component/sse.js +66 -0
  330. package/dist/component/video-platform/logo.js +61 -0
  331. package/dist/component/video-platform/logo.less +49 -0
  332. package/dist/component/videoKindTag/index.js +44 -0
  333. package/dist/component/websocket/index.js +139 -0
  334. package/dist/config/apiUrls.js +25 -0
  335. package/dist/global.less +34 -0
  336. package/dist/index.d.ts +31 -0
  337. package/dist/index.js +35 -0
  338. package/dist/lib/Tool.js +1175 -0
  339. package/dist/lib/accountManageSettingConfig.js +24 -0
  340. package/dist/lib/allow-mine-type.js +19 -0
  341. package/dist/lib/call-mini-url.js +8 -0
  342. package/dist/lib/component/getImageUrl.js +9 -0
  343. package/dist/lib/component/getSoundUrl.js +9 -0
  344. package/dist/lib/component/getVideoUrl.js +9 -0
  345. package/dist/lib/event.js +59 -0
  346. package/dist/lib/file-type.js +156 -0
  347. package/dist/lib/fs.d.ts +14 -0
  348. package/dist/lib/fs.js +480 -0
  349. package/dist/lib/getApiUrl.js +80 -0
  350. package/dist/lib/getFileExt.js +6 -0
  351. package/dist/lib/getLocalUserInfo.js +19 -0
  352. package/dist/lib/getPublishExtensionDir.d.ts +2 -0
  353. package/dist/lib/getPublishExtensionDir.js +55 -0
  354. package/dist/lib/getWorkServerUploadToken.d.ts +8 -0
  355. package/dist/lib/getWorkServerUploadToken.js +12 -0
  356. package/dist/lib/goAuth.js +28 -0
  357. package/dist/lib/isInClient.js +5 -0
  358. package/dist/lib/js-error.js +30 -0
  359. package/dist/lib/math.js +146 -0
  360. package/dist/lib/moneySimple.js +27 -0
  361. package/dist/lib/notification.js +43 -0
  362. package/dist/lib/openChrome.d.ts +2 -0
  363. package/dist/lib/openChrome.js +257 -0
  364. package/dist/lib/platform.js +57 -0
  365. package/dist/lib/postMessage.js +8 -0
  366. package/dist/lib/request.js +145 -0
  367. package/dist/lib/save-path.d.ts +17 -0
  368. package/dist/lib/save-path.js +177 -0
  369. package/dist/lib/save-path.less +21 -0
  370. package/dist/lib/saveSid.d.ts +2 -0
  371. package/dist/lib/saveSid.js +64 -0
  372. package/dist/lib/sleep.js +23 -0
  373. package/dist/lib/store.js +36 -0
  374. package/dist/lib/toast.js +8 -0
  375. package/dist/lib/toastError.js +8 -0
  376. package/dist/lib/updateUserInfo.js +40 -0
  377. package/dist/lib/user-agent.d.ts +2 -0
  378. package/dist/lib/user-agent.js +10 -0
  379. package/dist/lib/video-api/open-chrome.js +51 -0
  380. package/dist/lib/video-api/quit-chrome.d.ts +2 -0
  381. package/dist/lib/video-api/quit-chrome.js +51 -0
  382. package/dist/renewal-vip/index.d.ts +2 -0
  383. package/dist/renewal-vip/index.js +77 -0
  384. package/dist/service/api/ActiveAccountModeSettingController.d.ts +2 -0
  385. package/dist/service/api/ActiveAccountModeSettingController.js +53 -0
  386. package/dist/service/api/AdController.d.ts +6 -0
  387. package/dist/service/api/AdController.js +27 -0
  388. package/dist/service/api/AuthController.js +77 -0
  389. package/dist/service/api/ClientVersionController.js +27 -0
  390. package/dist/service/api/JsErrorController.js +27 -0
  391. package/dist/service/api/ProductController.js +77 -0
  392. package/dist/service/api/PublishTaskPlanStatisticController.d.ts +1 -0
  393. package/dist/service/api/PublishTaskPlanStatisticController.js +28 -0
  394. package/dist/service/api/SubClientController.d.ts +7 -0
  395. package/dist/service/api/SubClientController.js +48 -0
  396. package/dist/service/api/TradeController.js +52 -0
  397. package/dist/service/api/UserController.js +52 -0
  398. package/dist/service/api/UserVipController.js +27 -0
  399. package/dist/service/api/VideoPublishController.js +110 -0
  400. package/dist/service/api/VideoPublishCrawlerTaskController.d.ts +2 -0
  401. package/dist/service/api/VideoPublishCrawlerTaskController.js +51 -0
  402. package/dist/service/api/VideoPublishStatisticOperationController.d.ts +12 -0
  403. package/dist/service/api/VideoPublishStatisticOperationController.js +51 -0
  404. package/dist/service/api/VideoPublishStatisticPublishController.js +28 -0
  405. package/dist/service/api/VideoPublishTaskController.js +29 -0
  406. package/dist/service/api/VideoPublishTaskPlanController.d.ts +13 -0
  407. package/dist/service/api/VideoPublishTaskPlanController.js +74 -0
  408. package/dist/service/api/VideoPublishVideoAccountController.d.ts +17 -0
  409. package/dist/service/api/VideoPublishVideoAccountController.js +237 -0
  410. package/dist/service/api/VideoPublishVideoAccountGroupController.d.ts +8 -0
  411. package/dist/service/api/VideoPublishVideoAccountGroupController.js +105 -0
  412. package/dist/service/api/VideoPublishVideoAccountProxyController.d.ts +11 -0
  413. package/dist/service/api/VideoPublishVideoAccountProxyController.js +105 -0
  414. package/dist/service/api/VideoPublishVideoTopicController.d.ts +5 -0
  415. package/dist/service/api/VideoPublishVideoTopicController.js +80 -0
  416. package/dist/service/api/VideoPublishVideoTopicGroupController.d.ts +5 -0
  417. package/dist/service/api/VideoPublishVideoTopicGroupController.js +80 -0
  418. package/dist/service/api/VideoStudyController.d.ts +1 -0
  419. package/dist/service/api/VideoStudyController.js +29 -0
  420. package/dist/service/api/VipCardController.js +115 -0
  421. package/dist/service/api/VipController.js +50 -0
  422. package/dist/service/api/VipPowerController.js +27 -0
  423. package/dist/service/api/WechatController.js +50 -0
  424. package/dist/service/api/WorkServerController.js +27 -0
  425. package/dist/service/local/FileController.d.ts +35 -0
  426. package/dist/service/local/FileController.js +249 -0
  427. package/dist/service/local/LocalServerController.d.ts +1 -0
  428. package/dist/service/local/LocalServerController.js +32 -0
  429. package/dist/service/local/VideoPublishTaskController.d.ts +1 -0
  430. package/dist/service/local/VideoPublishTaskController.js +32 -0
  431. package/dist/service/typing.d.ts +14 -0
  432. package/dist/service/video-api/BaseController.js +27 -0
  433. package/dist/service/video-api/FileController.js +50 -0
  434. package/dist/service/video-api/SidController.js +27 -0
  435. package/dist/service/video-api/VideoApiOpenChromeController.js +50 -0
  436. package/dist/types/ApiLocal.js +0 -0
  437. package/dist/types/AutoMakeTaskSetting.js +0 -0
  438. package/dist/types/ChromeOperate.js +0 -0
  439. package/dist/types/ClientUpdate.js +0 -0
  440. package/dist/types/ClientVersion.js +0 -0
  441. package/dist/types/File.js +0 -0
  442. package/dist/types/LocalServer.js +0 -0
  443. package/dist/types/PublishNpm.js +0 -0
  444. package/dist/types/PublishTaskPlan.js +0 -0
  445. package/dist/types/PublishTaskPlanStatistic.js +0 -0
  446. package/dist/types/PublishVideo.js +0 -0
  447. package/dist/types/Site.js +0 -0
  448. package/dist/types/User.d.ts +84 -0
  449. package/dist/types/VideoPublish.js +0 -0
  450. package/dist/types/VideoPublishLog.js +0 -0
  451. package/dist/types/VideoPublishStatistic.js +0 -0
  452. package/dist/types/VideoPublishStatisticOperation.js +0 -0
  453. package/dist/types/VideoPublishTaskPlan.js +0 -0
  454. package/dist/types/VideoPublishVideoAccount.js +0 -0
  455. package/dist/types/VideoPublishVideoAccountGroup.js +0 -0
  456. package/dist/types/VideoPublishVideoAccountProxy.js +0 -0
  457. package/dist/types/VideoPublishVideoTopic.js +0 -0
  458. package/dist/types/VideoPublishVideoTopicGroup.js +0 -0
  459. package/dist/types/VideoStudy.js +0 -0
  460. package/dist/types/VidepApiBase.js +0 -0
  461. package/dist/types/VipCard.js +0 -0
  462. package/dist/types/VipList.js +0 -0
  463. package/dist/types/VipPower.js +0 -0
  464. package/dist/types/WorkServer.js +0 -0
  465. package/dist/typings/Ad.js +0 -0
  466. package/dist/typings/LocalFile.js +0 -0
  467. package/dist/typings/Product.js +0 -0
  468. package/dist/typings/SubClient.js +0 -0
  469. package/dist/typings/Trade.js +0 -0
  470. package/dist/typings/User.js +0 -0
  471. package/dist/typings/VideoPublishAccountManageSetting.js +0 -0
  472. package/dist/typings/VideoPublishVideoAccount.js +0 -0
  473. package/dist/typings/Vip.js +0 -0
  474. package/dist/typings/Wechat.js +0 -0
  475. package/dist/typings.d.ts +86 -0
  476. package/dist/video-study/index.d.ts +11 -0
  477. package/dist/video-study/index.js +71 -0
  478. package/dist/video-study/index.less +16 -0
  479. package/dist/window.d.ts +33 -0
  480. package/package.json +92 -0
@@ -0,0 +1,27 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
+ import request from "../../lib/request";
5
+ export function getUploadToken(_x, _x2) {
6
+ return _getUploadToken.apply(this, arguments);
7
+ }
8
+ function _getUploadToken() {
9
+ _getUploadToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(body, options) {
10
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
11
+ while (1) switch (_context.prev = _context.next) {
12
+ case 0:
13
+ return _context.abrupt("return", request("user/workServer/getUploadToken", _objectSpread({
14
+ method: 'POST',
15
+ headers: {
16
+ 'Content-Type': 'application/json'
17
+ },
18
+ data: body
19
+ }, options || {})));
20
+ case 1:
21
+ case "end":
22
+ return _context.stop();
23
+ }
24
+ }, _callee);
25
+ }));
26
+ return _getUploadToken.apply(this, arguments);
27
+ }
@@ -0,0 +1,35 @@
1
+ import { SoundInfo } from "../../base/soundInfo";
2
+ export declare function fileList(body: {
3
+ path: string[];
4
+ fileType: 'folder' | 'file' | '';
5
+ extTypes?: string[];
6
+ }, options?: ServicesApi.RequestOptions): Promise<string[][]>;
7
+ export declare function fileSelect(body: {
8
+ fileType: 'video' | 'video+image' | 'image' | 'sound' | string;
9
+ }, optionsQuery?: ServicesApi.RequestOptions): Promise<LocalFile.FileSelect>;
10
+ export declare function folderSelect(body: {
11
+ defaultPath: string;
12
+ }, optionsQuery?: ServicesApi.RequestOptions): Promise<LocalFile.FileSelect>;
13
+ export declare function folderCreate(body: {
14
+ folderPath: string;
15
+ }, optionsQuery?: ServicesApi.RequestOptions): Promise<LocalFile.FileCreate>;
16
+ export declare function openInFolder(body: {
17
+ filePath: string;
18
+ }, optionsQuery?: ServicesApi.RequestOptions): Promise<LocalFile.FileSelect>;
19
+ export declare function folderOpen(body: {
20
+ folderPath: string;
21
+ }, optionsQuery?: ServicesApi.RequestOptions): Promise<LocalFile.FileSelect>;
22
+ export declare function fileListContent(body: {
23
+ fileDir: string;
24
+ extName: string[];
25
+ maxCount: number;
26
+ }, optionsQuery?: ServicesApi.RequestOptions): Promise<string[]>;
27
+ export declare function soundInfo(body: {
28
+ filePath: string;
29
+ isShowCover?: boolean;
30
+ }, optionsQuery?: ServicesApi.RequestOptions): Promise<SoundInfo>;
31
+ export declare function downUrl(body: {
32
+ url: string;
33
+ savePath?: string;
34
+ saveName?: string;
35
+ }, options?: ServicesApi.RequestOptions): Promise<LocalFile.DownUrlResult>;
@@ -0,0 +1,249 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
+ import request from "../../lib/request";
5
+ export function fileList(_x, _x2) {
6
+ return _fileList.apply(this, arguments);
7
+ }
8
+ function _fileList() {
9
+ _fileList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(body, options) {
10
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
11
+ while (1) switch (_context.prev = _context.next) {
12
+ case 0:
13
+ return _context.abrupt("return", request("_local/file/localFileList", _objectSpread({
14
+ method: 'POST',
15
+ headers: {
16
+ 'Content-Type': 'application/json'
17
+ },
18
+ data: body
19
+ }, options || {})));
20
+ case 1:
21
+ case "end":
22
+ return _context.stop();
23
+ }
24
+ }, _callee);
25
+ }));
26
+ return _fileList.apply(this, arguments);
27
+ }
28
+ export function fileSelect(_x3, _x4) {
29
+ return _fileSelect.apply(this, arguments);
30
+ }
31
+ function _fileSelect() {
32
+ _fileSelect = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(body, optionsQuery) {
33
+ var options;
34
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
35
+ while (1) switch (_context2.prev = _context2.next) {
36
+ case 0:
37
+ options = _objectSpread(_objectSpread({}, optionsQuery), {}, {
38
+ timeout: 120e3
39
+ });
40
+ return _context2.abrupt("return", request("_main/file/select", _objectSpread({
41
+ method: 'POST',
42
+ headers: {
43
+ 'Content-Type': 'application/json'
44
+ },
45
+ data: body
46
+ }, options)));
47
+ case 2:
48
+ case "end":
49
+ return _context2.stop();
50
+ }
51
+ }, _callee2);
52
+ }));
53
+ return _fileSelect.apply(this, arguments);
54
+ }
55
+ export function folderSelect(_x5, _x6) {
56
+ return _folderSelect.apply(this, arguments);
57
+ }
58
+ function _folderSelect() {
59
+ _folderSelect = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(body, optionsQuery) {
60
+ var options;
61
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
62
+ while (1) switch (_context3.prev = _context3.next) {
63
+ case 0:
64
+ options = _objectSpread(_objectSpread({}, optionsQuery), {}, {
65
+ timeout: 120e3
66
+ });
67
+ return _context3.abrupt("return", request("_main/file/folderSelect", _objectSpread({
68
+ method: 'POST',
69
+ headers: {
70
+ 'Content-Type': 'application/json'
71
+ },
72
+ data: body
73
+ }, options || {})));
74
+ case 2:
75
+ case "end":
76
+ return _context3.stop();
77
+ }
78
+ }, _callee3);
79
+ }));
80
+ return _folderSelect.apply(this, arguments);
81
+ }
82
+ export function folderCreate(_x7, _x8) {
83
+ return _folderCreate.apply(this, arguments);
84
+ }
85
+ function _folderCreate() {
86
+ _folderCreate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(body, optionsQuery) {
87
+ var options;
88
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
89
+ while (1) switch (_context4.prev = _context4.next) {
90
+ case 0:
91
+ options = _objectSpread(_objectSpread({}, optionsQuery), {}, {
92
+ timeout: 10e3
93
+ });
94
+ return _context4.abrupt("return", request("_main/file/folderCreate", _objectSpread({
95
+ method: 'POST',
96
+ headers: {
97
+ 'Content-Type': 'application/json'
98
+ },
99
+ data: body
100
+ }, options || {})));
101
+ case 2:
102
+ case "end":
103
+ return _context4.stop();
104
+ }
105
+ }, _callee4);
106
+ }));
107
+ return _folderCreate.apply(this, arguments);
108
+ }
109
+ export function openInFolder(_x9, _x10) {
110
+ return _openInFolder.apply(this, arguments);
111
+ }
112
+ function _openInFolder() {
113
+ _openInFolder = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(body, optionsQuery) {
114
+ var options;
115
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
116
+ while (1) switch (_context5.prev = _context5.next) {
117
+ case 0:
118
+ options = _objectSpread(_objectSpread({}, optionsQuery), {}, {
119
+ timeout: 120e3
120
+ });
121
+ return _context5.abrupt("return", request("_main/file/openInFolder", _objectSpread({
122
+ method: 'POST',
123
+ headers: {
124
+ 'Content-Type': 'application/json'
125
+ },
126
+ data: body
127
+ }, options || {})));
128
+ case 2:
129
+ case "end":
130
+ return _context5.stop();
131
+ }
132
+ }, _callee5);
133
+ }));
134
+ return _openInFolder.apply(this, arguments);
135
+ }
136
+ export function folderOpen(_x11, _x12) {
137
+ return _folderOpen.apply(this, arguments);
138
+ }
139
+ function _folderOpen() {
140
+ _folderOpen = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(body, optionsQuery) {
141
+ var options;
142
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
143
+ while (1) switch (_context6.prev = _context6.next) {
144
+ case 0:
145
+ options = _objectSpread(_objectSpread({}, optionsQuery), {}, {
146
+ timeout: 120e3
147
+ });
148
+ return _context6.abrupt("return", request("_main/file/folderOpen", _objectSpread({
149
+ method: 'POST',
150
+ headers: {
151
+ 'Content-Type': 'application/json'
152
+ },
153
+ data: body
154
+ }, options || {})));
155
+ case 2:
156
+ case "end":
157
+ return _context6.stop();
158
+ }
159
+ }, _callee6);
160
+ }));
161
+ return _folderOpen.apply(this, arguments);
162
+ }
163
+ export function fileListContent(_x13, _x14) {
164
+ return _fileListContent.apply(this, arguments);
165
+ }
166
+ function _fileListContent() {
167
+ _fileListContent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(body, optionsQuery) {
168
+ var options;
169
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
170
+ while (1) switch (_context7.prev = _context7.next) {
171
+ case 0:
172
+ options = _objectSpread(_objectSpread({}, optionsQuery), {}, {
173
+ timeout: 120e3
174
+ });
175
+ return _context7.abrupt("return", request("_main/file/fileListContent", _objectSpread({
176
+ method: 'POST',
177
+ headers: {
178
+ 'Content-Type': 'application/json'
179
+ },
180
+ data: body
181
+ }, options || {})));
182
+ case 2:
183
+ case "end":
184
+ return _context7.stop();
185
+ }
186
+ }, _callee7);
187
+ }));
188
+ return _fileListContent.apply(this, arguments);
189
+ }
190
+ export function soundInfo(_x15, _x16) {
191
+ return _soundInfo.apply(this, arguments);
192
+ }
193
+
194
+ // 相对粗糙,假设文件都不大;
195
+ function _soundInfo() {
196
+ _soundInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(body, optionsQuery) {
197
+ var options;
198
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
199
+ while (1) switch (_context8.prev = _context8.next) {
200
+ case 0:
201
+ options = _objectSpread(_objectSpread({}, optionsQuery), {}, {
202
+ timeout: 120e3
203
+ });
204
+ return _context8.abrupt("return", request("_main/sound/info", _objectSpread({
205
+ method: 'POST',
206
+ headers: {
207
+ 'Content-Type': 'application/json'
208
+ },
209
+ data: body
210
+ }, options || {})));
211
+ case 2:
212
+ case "end":
213
+ return _context8.stop();
214
+ }
215
+ }, _callee8);
216
+ }));
217
+ return _soundInfo.apply(this, arguments);
218
+ }
219
+ export function downUrl(_x17, _x18) {
220
+ return _downUrl.apply(this, arguments);
221
+ }
222
+ function _downUrl() {
223
+ _downUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(body, options) {
224
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
225
+ while (1) switch (_context9.prev = _context9.next) {
226
+ case 0:
227
+ if (body.savePath) {
228
+ if (!/\/$/.test(body.savePath)) {
229
+ body.savePath += '/';
230
+ }
231
+ }
232
+ return _context9.abrupt("return", request("_local/file/downUrl", _objectSpread({
233
+ method: 'POST',
234
+ headers: {
235
+ 'Content-Type': 'application/json'
236
+ },
237
+ data: body
238
+ }, _objectSpread(_objectSpread({}, options), {}, {
239
+ // 超时时间
240
+ timeout: 20 * 6e4
241
+ }))));
242
+ case 2:
243
+ case "end":
244
+ return _context9.stop();
245
+ }
246
+ }, _callee9);
247
+ }));
248
+ return _downUrl.apply(this, arguments);
249
+ }
@@ -0,0 +1 @@
1
+ export declare function chromeQuit(body: LocalServer.ChromeQuitQuery, options?: Global.RequestOptions): Promise<PublishTaskPlan.TaskDetail>;
@@ -0,0 +1,32 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
+ import request from "../../lib/request";
5
+ import AccountManageSettingConfig from "../../lib/accountManageSettingConfig";
6
+ export function chromeQuit(_x, _x2) {
7
+ return _chromeQuit.apply(this, arguments);
8
+ }
9
+ function _chromeQuit() {
10
+ _chromeQuit = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(body, options) {
11
+ var setting;
12
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
13
+ while (1) switch (_context.prev = _context.next) {
14
+ case 0:
15
+ setting = AccountManageSettingConfig();
16
+ return _context.abrupt("return", request("http://127.0.0.1:".concat(window.__ShipinlvLocalServerPort, "/chrome/quit"), _objectSpread({
17
+ method: 'POST',
18
+ headers: {
19
+ 'Content-Type': 'application/json'
20
+ },
21
+ data: _objectSpread({}, body),
22
+ timeout: 10e3,
23
+ silent: true
24
+ }, options || {})));
25
+ case 2:
26
+ case "end":
27
+ return _context.stop();
28
+ }
29
+ }, _callee);
30
+ }));
31
+ return _chromeQuit.apply(this, arguments);
32
+ }
@@ -0,0 +1 @@
1
+ export declare function sendMessageToPort(body: PublishTaskPlan.ReportTaskQuery, options?: Global.RequestOptions): Promise<PublishTaskPlan.TaskDetail>;
@@ -0,0 +1,32 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
+ import request from "../../lib/request";
5
+ import AccountManageSettingConfig from "../../lib/accountManageSettingConfig";
6
+ export function sendMessageToPort(_x, _x2) {
7
+ return _sendMessageToPort.apply(this, arguments);
8
+ }
9
+ function _sendMessageToPort() {
10
+ _sendMessageToPort = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(body, options) {
11
+ var setting;
12
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
13
+ while (1) switch (_context.prev = _context.next) {
14
+ case 0:
15
+ setting = AccountManageSettingConfig();
16
+ return _context.abrupt("return", request("http://127.0.0.1:".concat(setting.sendMessageToPort, "/publish/result"), _objectSpread({
17
+ method: 'POST',
18
+ headers: {
19
+ 'Content-Type': 'application/json'
20
+ },
21
+ data: _objectSpread({}, body),
22
+ timeout: 10e3,
23
+ silent: true
24
+ }, options || {})));
25
+ case 2:
26
+ case "end":
27
+ return _context.stop();
28
+ }
29
+ }, _callee);
30
+ }));
31
+ return _sendMessageToPort.apply(this, arguments);
32
+ }
@@ -0,0 +1,14 @@
1
+ declare namespace ServicesApi {
2
+ interface ApiResult<T> {
3
+ data: T;
4
+ success: boolean;
5
+ message: string;
6
+ }
7
+
8
+ interface RequestOptions {
9
+ silent?: boolean;
10
+ timeout?: number;
11
+ apiUrl?: string;
12
+ [key: string]: any;
13
+ }
14
+ }
@@ -0,0 +1,27 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
+ import request from "../../lib/request";
5
+ export function getLocalVideoServerDir(_x, _x2) {
6
+ return _getLocalVideoServerDir.apply(this, arguments);
7
+ }
8
+ function _getLocalVideoServerDir() {
9
+ _getLocalVideoServerDir = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(body, options) {
10
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
11
+ while (1) switch (_context.prev = _context.next) {
12
+ case 0:
13
+ return _context.abrupt("return", request("_video-api/base/getLocalVideoServerDir", _objectSpread({
14
+ method: 'POST',
15
+ headers: {
16
+ 'Content-Type': 'application/json'
17
+ },
18
+ data: body
19
+ }, options || {})));
20
+ case 1:
21
+ case "end":
22
+ return _context.stop();
23
+ }
24
+ }, _callee);
25
+ }));
26
+ return _getLocalVideoServerDir.apply(this, arguments);
27
+ }
@@ -0,0 +1,50 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
+ import request from "../../lib/request";
5
+ export function isExist(_x, _x2) {
6
+ return _isExist.apply(this, arguments);
7
+ }
8
+ function _isExist() {
9
+ _isExist = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(body, options) {
10
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
11
+ while (1) switch (_context.prev = _context.next) {
12
+ case 0:
13
+ return _context.abrupt("return", request("_video-api/file/isExist", _objectSpread({
14
+ method: 'POST',
15
+ headers: {
16
+ 'Content-Type': 'application/json'
17
+ },
18
+ data: body
19
+ }, options || {})));
20
+ case 1:
21
+ case "end":
22
+ return _context.stop();
23
+ }
24
+ }, _callee);
25
+ }));
26
+ return _isExist.apply(this, arguments);
27
+ }
28
+ export function getFolderTxtListContent(_x3, _x4) {
29
+ return _getFolderTxtListContent.apply(this, arguments);
30
+ }
31
+ function _getFolderTxtListContent() {
32
+ _getFolderTxtListContent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(body, options) {
33
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
34
+ while (1) switch (_context2.prev = _context2.next) {
35
+ case 0:
36
+ return _context2.abrupt("return", request("_video-api/file/getFolderTxtListContent", _objectSpread({
37
+ method: 'POST',
38
+ headers: {
39
+ 'Content-Type': 'application/json'
40
+ },
41
+ data: body
42
+ }, options || {})));
43
+ case 1:
44
+ case "end":
45
+ return _context2.stop();
46
+ }
47
+ }, _callee2);
48
+ }));
49
+ return _getFolderTxtListContent.apply(this, arguments);
50
+ }
@@ -0,0 +1,27 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
+ import request from "../../lib/request";
5
+ export function saveSid(_x, _x2) {
6
+ return _saveSid.apply(this, arguments);
7
+ }
8
+ function _saveSid() {
9
+ _saveSid = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(body, options) {
10
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
11
+ while (1) switch (_context.prev = _context.next) {
12
+ case 0:
13
+ return _context.abrupt("return", request("_video-api/sid/save", _objectSpread({
14
+ method: 'POST',
15
+ headers: {
16
+ 'Content-Type': 'application/json'
17
+ },
18
+ data: body
19
+ }, options || {})));
20
+ case 1:
21
+ case "end":
22
+ return _context.stop();
23
+ }
24
+ }, _callee);
25
+ }));
26
+ return _saveSid.apply(this, arguments);
27
+ }
@@ -0,0 +1,50 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
+ import request from "../../lib/request";
5
+ export function openChrome(_x, _x2) {
6
+ return _openChrome.apply(this, arguments);
7
+ }
8
+ function _openChrome() {
9
+ _openChrome = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(body, options) {
10
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
11
+ while (1) switch (_context.prev = _context.next) {
12
+ case 0:
13
+ return _context.abrupt("return", request("_video-api/chrome/chromeOpen", _objectSpread({
14
+ method: 'POST',
15
+ headers: {
16
+ 'Content-Type': 'application/json'
17
+ },
18
+ data: body
19
+ }, options || {})));
20
+ case 1:
21
+ case "end":
22
+ return _context.stop();
23
+ }
24
+ }, _callee);
25
+ }));
26
+ return _openChrome.apply(this, arguments);
27
+ }
28
+ export function quitChrome(_x3, _x4) {
29
+ return _quitChrome.apply(this, arguments);
30
+ }
31
+ function _quitChrome() {
32
+ _quitChrome = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(body, options) {
33
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
34
+ while (1) switch (_context2.prev = _context2.next) {
35
+ case 0:
36
+ return _context2.abrupt("return", request("_video-api/chrome/quit", _objectSpread({
37
+ method: 'POST',
38
+ headers: {
39
+ 'Content-Type': 'application/json'
40
+ },
41
+ data: body
42
+ }, options || {})));
43
+ case 1:
44
+ case "end":
45
+ return _context2.stop();
46
+ }
47
+ }, _callee2);
48
+ }));
49
+ return _quitChrome.apply(this, arguments);
50
+ }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,84 @@
1
+ declare namespace User {
2
+ type Gender = 1 | 2 | 0;
3
+ type BanState = '' | 'true' | 'false';
4
+ type Enabled = '' | 'true' | 'false';
5
+ type Role = '' | 'user' | 'dealer';
6
+
7
+ interface List {
8
+ id: number;
9
+ accountName: string;
10
+ // password: string;
11
+ nickname: string;
12
+ gender: Gender;
13
+ avatarUrl: string;
14
+ enabled: boolean;
15
+ expired: number;
16
+ parentUserInfo: {
17
+ id: number;
18
+ accountName: string;
19
+ nickname: string;
20
+ gender: Gender;
21
+ avatarUrl: string;
22
+ }
23
+ }
24
+
25
+ interface ListQuery{
26
+ keyWord: string;
27
+ enabled: '' | 'true' | 'false';
28
+ }
29
+
30
+ interface ListResult {
31
+ list: List[];
32
+ pagination: Global.Pagination;
33
+
34
+ }
35
+
36
+ interface CreateForm {
37
+ id: number;
38
+ accountName: string;
39
+ password: string;
40
+ nickname: string;
41
+ gender: Gender;
42
+ avatarUrl: string;
43
+ enabled: boolean;
44
+ expired: moment.Moment;
45
+ }
46
+
47
+ interface CreateQuery{
48
+ id: number;
49
+ accountName: string;
50
+ password: string;
51
+ nickname: string;
52
+ gender: Gender;
53
+ avatarUrl: string;
54
+ enabled: boolean;
55
+ isVerified: boolean;
56
+ expired: number | null;
57
+ }
58
+
59
+ interface UserInfo{
60
+ id: number;
61
+ avatarUrl: string;
62
+ nickname: string;
63
+ gender: Gender;
64
+ accountName: string;
65
+ isLogin: boolean;
66
+ sid: string;
67
+ role: Role;
68
+ isVerified: boolean;
69
+ userVip: {
70
+ [ productType: string]: UserVipInfo
71
+ }
72
+ }
73
+
74
+ interface UserVipInfo{
75
+ vipLevel: number; // 1,
76
+ isVip: boolean;
77
+ expired: number;
78
+ productType: string;
79
+ }
80
+
81
+ interface StaffUserInfo{
82
+
83
+ }
84
+ }
File without changes
File without changes
File without changes