dist 打包view

This commit is contained in:
theluyuan 2023-07-31 22:07:40 +08:00
parent 3f8f14c024
commit f2fe0a0c51
7 changed files with 2 additions and 60 deletions

View File

@ -1 +0,0 @@
import{a as x}from"./axios-4a70c6fc.js";import{_ as D,r as u,a as n,o as h,c as E,w as o,b as e,d as r,e as v,f as b,g as L,F as U,E as w,t as N,p as F,h as M}from"./index-0f1208b8.js";const R=d=>(F("data-v-509f07c5"),d=d(),M(),d),j=R(()=>r("div",{class:"card-header"},[r("span",null,"Video Download Test")],-1)),z={style:{display:"flex",width:"100%"}},Q={style:{display:"flex"}},A={style:{display:"flex"}},G={style:{width:"100%",height:"100%","overflow-y":"auto"}},H={__name:"downloadTest",setup(d){const i=u(!1),l=u({name:"https://v.qq.com/x/cover/mzc002007vp35qj.html",start:1,save:localStorage.getItem("save")}),c=u([]),p=u();function V(){x.get("/getQqList",{params:{url:l.value.name}}).then(t=>{c.value=t.data})}function k(){p.value.clearSelection();for(let t=l.value.start-1;t<c.value.length;t++)console.log(t),p.value.toggleRowSelection(c.value[t],void 0)}const m=u([]);async function S(){let t=p.value.getSelectionRows();if(t.length===0){w({showClose:!0,message:"请选择要下载的剧集",type:"error"});return}if(!l.value.save){w({showClose:!0,message:"请填写下载位置",type:"error"});return}i.value=!0,localStorage.setItem("save",l.value.save);for(let a of t)await x.get("/startDown",{params:{...a,save:l.value.save+"/"+a.title.split(" ")[0]}});w({showClose:!0,message:"添加完成",type:"success"})}const C=new EventSource("/msg");C.onmessage=t=>{m.value.length>200&&m.value.splice(200),m.value.unshift(t.data)};function I(){i.value=!0}return(t,a)=>{const f=n("el-input"),_=n("el-button"),g=n("el-form-item"),y=n("el-table-column"),T=n("el-table"),q=n("el-dialog"),B=n("el-card");return h(),E(B,{class:"box-card"},{header:o(()=>[j]),default:o(()=>[e(g,{label:"视频地址"},{default:o(()=>[r("div",z,[e(f,{style:{width:"100%"},modelValue:l.value.name,"onUpdate:modelValue":a[0]||(a[0]=s=>l.value.name=s)},null,8,["modelValue"]),e(_,{style:{"flex-shrink":"0",margin:"0 10px"},onClick:V,type:"primary"},{default:o(()=>[v("获取")]),_:1})])]),_:1}),e(g,{label:"第几集开始"},{default:o(()=>[r("div",Q,[e(f,{modelValue:l.value.start,"onUpdate:modelValue":a[1]||(a[1]=s=>l.value.start=s)},null,8,["modelValue"]),e(_,{style:{"flex-shrink":"0",margin:"0 10px"},onClick:k,type:"primary"},{default:o(()=>[v("设置")]),_:1})])]),_:1}),e(g,{label:"下载保存地址"},{default:o(()=>[r("div",A,[e(f,{modelValue:l.value.save,"onUpdate:modelValue":a[2]||(a[2]=s=>l.value.save=s)},null,8,["modelValue"]),e(_,{style:{"flex-shrink":"0",margin:"0 10px"},onClick:S,type:"primary"},{default:o(()=>[v("下载")]),_:1}),e(_,{style:{"flex-shrink":"0",margin:"0 10px"},onClick:I,type:"primary"},{default:o(()=>[v("查看进度")]),_:1})])]),_:1}),e(T,{ref_key:"table",ref:p,data:c.value,style:{width:"100%"}},{default:o(()=>[e(y,{type:"selection",width:"55"}),e(y,{label:"title",prop:"title"}),e(y,{label:"url",prop:"url"})]),_:1},8,["data"]),e(q,{fullscreen:!0,modelValue:i.value,"onUpdate:modelValue":a[3]||(a[3]=s=>i.value=s),title:"Tips",width:"30%"},{default:o(()=>[r("div",G,[(h(!0),b(U,null,L(m.value,s=>(h(),b("div",null,N(s),1))),256))])]),_:1},8,["modelValue"])]),_:1})}}},O=D(H,[["__scopeId","data-v-509f07c5"]]);export{O as default};

View File

@ -1 +0,0 @@
import{a as i}from"./axios-4a70c6fc.js";import{_ as f,r as m,a as o,o as v,c as x,w as s,d as _,b as l,e as I,i as h,p as g,h as M}from"./index-0f1208b8.js";const T=e=>(g("data-v-215ae4a3"),e=e(),M(),e),V={class:"card-header"},b=T(()=>_("span",null,"MediaInfo Test",-1)),B={__name:"getMediaInfoTest",setup(e){const a=m("");function c(){i.get("/getMediaInfo",{params:{filePath:a.value}}).then(n=>{h.alert(n.data.data)})}return(n,t)=>{const p=o("el-button"),r=o("el-input"),u=o("el-card");return v(),x(u,{class:"box-card"},{header:s(()=>[_("div",V,[b,l(p,{onClick:t[0]||(t[0]=d=>c()),class:"button",text:""},{default:s(()=>[I("Test")]),_:1})])]),default:s(()=>[l(r,{modelValue:a.value,"onUpdate:modelValue":t[1]||(t[1]=d=>a.value=d),placeholder:"视频文件绝对路径"},null,8,["modelValue"])]),_:1})}}},C=f(B,[["__scopeId","data-v-215ae4a3"]]);export{C as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{a as n,o as r,c as v,w as t,b as e,u as a,j as w,e as _,v as b,k as g,l as k,m as y,n as B,q as C,s as I,x as M,r as p,f as x,F as N,d as h,_ as T}from"./index-0f1208b8.js";import{a as V}from"./axios-4a70c6fc.js";function $(){V.get("/test").then(d=>{})}const z={__name:"leftMenu",setup(d){return(i,m)=>{const l=n("el-icon"),o=n("el-menu-item"),u=n("el-menu-item-group"),s=n("el-sub-menu"),c=n("el-menu"),f=n("el-scrollbar");return r(),v(f,null,{default:t(()=>[e(c,{router:!0},{default:t(()=>[e(s,{index:"1"},{title:t(()=>[e(l,null,{default:t(()=>[e(a(w))]),_:1}),_(" 订阅管理 ")]),default:t(()=>[e(u,null,{default:t(()=>[e(o,{index:"/subscribe"},{default:t(()=>[e(l,null,{default:t(()=>[e(a(b))]),_:1}),_(" 电视剧订阅 ")]),_:1}),e(o,{index:""},{default:t(()=>[e(l,null,{default:t(()=>[e(a(g))]),_:1}),_(" 电影订阅 ")]),_:1})]),_:1})]),_:1}),e(s,{index:"2"},{title:t(()=>[e(l,null,{default:t(()=>[e(a(k))]),_:1}),_(" 功能测试 ")]),default:t(()=>[e(u,null,{title:t(()=>[_("测试模块")]),default:t(()=>[e(o,{index:"/medaInfoTest"},{default:t(()=>[e(l,null,{default:t(()=>[e(a(y))]),_:1}),_(" MediaInfo ")]),_:1}),e(o,{index:"1"},{default:t(()=>[e(l,null,{default:t(()=>[e(a(B))]),_:1}),_(" 图像截取 ")]),_:1}),e(o,{index:"/downloadTest",to:""},{default:t(()=>[e(l,null,{default:t(()=>[e(a(C))]),_:1}),_(" 视频下载 ")]),_:1}),e(o,{onClick:$},{default:t(()=>[e(l,null,{default:t(()=>[e(a(I))]),_:1}),_(" 功能测试 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}}},E=h("h3",{style:{width:"180px"}},"WEB-DL发布工具",-1),F=h("div",{class:"h-6"},null,-1),S=M({__name:"headerMenu",setup(d){const i=p("1");p("1");const m=(l,o)=>{console.log(l,o)};return(l,o)=>{const u=n("el-menu-item"),s=n("el-sub-menu"),c=n("el-avatar"),f=n("el-menu");return r(),x(N,null,[e(f,{"default-active":i.value,class:"el-menu-demo",mode:"horizontal",onSelect:m},{default:t(()=>[E,e(u,{index:"1"},{default:t(()=>[_("首页")]),_:1}),e(s,{index:"2"},{title:t(()=>[_("设置")]),default:t(()=>[e(u,{index:"2-1"},{default:t(()=>[_("item one")]),_:1})]),_:1}),e(c,{style:{position:"absolute",right:"0"},size:50,src:"https://www.konfan.cn/img/favicon.png"})]),_:1},8,["default-active"]),F],64)}}});const j={class:"common-layout"},q={__name:"index",setup(d){return(i,m)=>{const l=n("el-header"),o=n("el-aside"),u=n("router-view"),s=n("el-main"),c=n("el-container");return r(),x("div",j,[e(c,null,{default:t(()=>[e(l,null,{default:t(()=>[e(S)]),_:1}),e(c,null,{default:t(()=>[e(o,{width:"200px"},{default:t(()=>[e(z)]),_:1}),e(s,null,{default:t(()=>[e(u)]),_:1})]),_:1})]),_:1})])}}},W=T(q,[["__scopeId","data-v-10e397ef"]]);export{W as default};

View File

@ -1 +0,0 @@
import{_ as i,a as t,o as c,c as u,w as s,f as p,g as f,F as m,b as o,d as e,e as b}from"./index-0f1208b8.js";const h={},x=e("img",{src:"https://puui.qpic.cn/vcover_vt_pic/0/ww18u675tfmhas61669188848910/260",class:"image"},null,-1),v={style:{padding:"14px"}},g=e("span",null,"一念永恒",-1),w={class:"bottom"},y=e("time",{class:"time"},"正在订阅100/104",-1);function k(B,N){const n=t("el-button"),_=t("el-card"),a=t("el-col"),l=t("el-row");return c(),u(l,null,{default:s(()=>[(c(),p(m,null,f(1,(r,d)=>o(a,{key:r,span:8,offset:d>0?2:0},{default:s(()=>[o(_,{"body-style":{padding:"0px"}},{default:s(()=>[x,e("div",v,[g,e("div",w,[y,o(n,{text:"",class:"button"},{default:s(()=>[b("编辑")]),_:1})])])]),_:1})]),_:2},1032,["offset"])),64))]),_:1})}const C=i(h,[["render",k]]);export{C as default};

View File

@ -1 +0,0 @@
.time{font-size:12px;color:#999}.bottom{margin-top:13px;line-height:12px;display:flex;justify-content:space-between;align-items:center}.button{padding:0;min-height:auto}.image{width:100%;display:block}

View File

@ -5,7 +5,8 @@
<link rel="icon" type="image/svg+xml" href="./vite.svg" /> <link rel="icon" type="image/svg+xml" href="./vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Vue</title> <title>Vite + Vue</title>
<script type="module" crossorigin src="./assets/index-0f1208b8.js"></script> <meta name="referrer" content="never">
<script type="module" crossorigin src="./assets/index-47b9ad87.js"></script>
<link rel="stylesheet" href="./assets/index-6ef103ac.css"> <link rel="stylesheet" href="./assets/index-6ef103ac.css">
</head> </head>
<body> <body>