diff --git a/.env.example b/.env.example index 8ac1992..979dc18 100644 --- a/.env.example +++ b/.env.example @@ -23,7 +23,7 @@ MAIL_FROM_NAME=Example MAIL_TO_ADDRESS=hello@example.com MAIL_TO_NAME=Example -_94LIST_VERSION=1.3.35 +_94LIST_VERSION=1.3.37 _94LIST_SLEEP=3 _94LIST_MAX_ONCE=20 _94LIST_PASSWORD="" diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a36468..ea5320a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ ## 2024 +### 08-22 v1.3.37 + +- [*] 修复不能修改企业账户信息 + +### 08-22 v1.3.36 + +- [*] 更新 `ua` + ### 08-22 v1.3.35 - [*] 检查账户是否是企业账户 diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.php index 6fa7ca1..1ec7232 100644 --- a/app/Http/Controllers/AccountController.php +++ b/app/Http/Controllers/AccountController.php @@ -220,7 +220,7 @@ public static function updateAccount(Request $request, $account_id) { $validator = Validator::make($request->all(), [ "baidu_name" => "required|string", - "account_type" => ["required", Rule::in(["cookie", "access_token"])], + "account_type" => ["required", Rule::in(["cookie", "access_token", "enterprise"])], "access_token" => "nullable|string", "refresh_token" => "nullable|string", "cookie" => "nullable|string", diff --git a/app/Http/Controllers/ParseController.php b/app/Http/Controllers/ParseController.php index 6fbbfd9..0dc4051 100644 --- a/app/Http/Controllers/ParseController.php +++ b/app/Http/Controllers/ParseController.php @@ -757,13 +757,15 @@ public function getDownloadLinks(Request $request) "account_id" => $ck_id ]); - if (str_contains($url, "http") && isset($responseDatum["urls"])) $res["urls"] = array_map(function ($item) use ($server, $key, $ua) { - if ($server !== "") { - $json = JSON::encode(["url" => $item, "ua" => $ua]); - $item = $server . "?data=" . self::xorEncrypt($json, $key); - } - return $item; - }, $responseDatum["urls"]); + if (str_contains($url, "http") && isset($responseDatum["urls"])) { + $res["urls"] = array_map(function ($item) use ($server, $key, $ua) { + if ($server !== "") { + $json = JSON::encode(["url" => $item, "ua" => $ua]); + $item = $server . "?data=" . self::xorEncrypt($json, $key); + } + return $item; + }, $responseDatum["urls"]); + } } } else if (str_contains($url, "风控") || str_contains($url, "invalid")) { $account->update([ diff --git a/config/94list.php b/config/94list.php index 38ea1c6..e14fa03 100644 --- a/config/94list.php +++ b/config/94list.php @@ -5,7 +5,7 @@ "fake_wx_user_agent" => "Mozilla/5.0 (Linux; Android 7.1.1; MI 6 Build/NMF26X; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.132 MQQBrowser/6.2 TBS/043807 Mobile Safari/537.36 MicroMessenger/6.6.1.1220(0x26060135) NetType/4G Language/zh_CN MicroMessenger/6.6.1.1220(0x26060135) NetType/4G Language/zh_CN miniProgram", "fake_cookie" => "BAIDUID=A4FDFAE43DDBF7E6956B02F6EF715373:FG=1; BAIDUID_BFESS=A4FDFAE43DDBF7E6956B02F6EF715373:FG=1; newlogin=1", - "version" => "1.3.35", + "version" => "1.3.37", "sleep" => (int)env("_94LIST_SLEEP", 3), "max_once" => (int)env("_94LIST_MAX_ONCE", 20), "password" => env("_94LIST_PASSWORD", ""), diff --git a/public/assets/js/AccountManagement-DIV621kl.js b/public/assets/js/AccountManagement-CRZA0e4z.js similarity index 99% rename from public/assets/js/AccountManagement-DIV621kl.js rename to public/assets/js/AccountManagement-CRZA0e4z.js index 7cb347e..5cf383c 100644 --- a/public/assets/js/AccountManagement-DIV621kl.js +++ b/public/assets/js/AccountManagement-CRZA0e4z.js @@ -1 +1 @@ -import{E as f,g as se,c as de,i as J,j as Q,b as W,e as ue,d as X,k as ie,v as Y,m as ce,r as pe,q as re,o as _e,s as me}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as g}from"./index-BrpDzfc2.js";import{d as Z,_ as fe,$ as ye,o,G as y,H as t,i as a,L as i,I as ee,m as ve,c as b,K as p,a as G,F as I,R}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as A,u as H}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{f as K}from"./format-CyW-QbYa.js";import{L as r}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as ke}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const be=c=>g.post("/admin/account",c),ge=c=>g.get(`/admin/account?page=${c.page}&size=${c.size}`),Ve=c=>g.patch(`/admin/account/${c.id}`,c),Ae=c=>g.patch("/admin/account/info",{account_ids:[c.id]}),he=c=>g.patch("/admin/account/info",{account_ids:c}),xe=c=>g.delete("/admin/account",{data:{account_ids:[c.id]}}),$e=c=>g.delete("/admin/account",{data:{account_ids:c}}),O=c=>g.patch("/admin/account/switch",c),Ce=c=>g.get(`/admin/account/ban?account_id=${c.id}`),Ue=()=>g.patch("/admin/account/ban"),ze=Z({__name:"AddAccount",props:{modelValue:{},modelModifiers:{}},emits:fe(["getAccounts"],["update:modelValue"]),setup(c,{emit:u}){const C=u,x=ye(c,"modelValue"),h=A(!1),_=A({type:1,cookie:""}),v=A(null),L={cookie:[{required:!0,message:"请输入账户信息",trigger:"blur"}]},D=async $=>{if(!(!$||!await $.validate()))try{h.value=!0,(await be(_.value)).data.have_repeat&&f.info("存在重复的账号,已自动过滤"),f.success("添加成功")}finally{h.value=!1}},B=$=>{C("getAccounts"),$()},F=()=>{x.value=!1,C("getAccounts")};return($,k)=>{const M=se,V=de,U=J,S=Q,E=W,N=ue,d=X,l=ie,m=Y;return o(),y(l,{title:"添加账号",width:"60%",modelValue:x.value,"onUpdate:modelValue":k[5]||(k[5]=s=>x.value=s),"before-close":B},{footer:t(()=>[a(d,{type:"info",onClick:k[3]||(k[3]=s=>F())},{default:t(()=>[i("取消")]),_:1}),a(d,{type:"primary",onClick:k[4]||(k[4]=s=>D(v.value))},{default:t(()=>[i("添加")]),_:1})]),default:t(()=>[ee((o(),y(N,{ref_key:"addAccountFormRef",ref:v,model:_.value,rules:L,"label-width":"auto"},{default:t(()=>[a(V,{label:"提示"},{default:t(()=>[a(M,null,{default:t(()=>[i("可以使用换行来分割多个账号")]),_:1})]),_:1}),a(V,{label:"账号类型"},{default:t(()=>[a(S,{modelValue:_.value.type,"onUpdate:modelValue":k[0]||(k[0]=s=>_.value.type=s)},{default:t(()=>[a(U,{label:"cookie",value:1}),a(U,{label:"token",value:2}),a(U,{label:"enterprise",value:3})]),_:1},8,["modelValue"])]),_:1}),_.value.type===1||_.value.type===3?(o(),y(V,{key:0,label:"Cookie",prop:"cookie"},{default:t(()=>[a(E,{type:"textarea",modelValue:_.value.cookie,"onUpdate:modelValue":k[1]||(k[1]=s=>_.value.cookie=s)},null,8,["modelValue"])]),_:1})):(o(),y(V,{key:1,label:"refresh_token",prop:"cookie"},{default:t(()=>[a(E,{type:"textarea",modelValue:_.value.cookie,"onUpdate:modelValue":k[2]||(k[2]=s=>_.value.cookie=s)},null,8,["modelValue"])]),_:1}))]),_:1},8,["model"])),[[m,h.value]])]),_:1},8,["modelValue"])}}}),Se={key:0},Ee={key:0},we={key:0},Ie={key:0},Le={key:0},De={key:0},Be={key:0},Fe={key:0},Me={key:0},Ne={key:0},Te=Z({__name:"AccountManagement",setup(c){const u=A(!1),C=A(15),x=A(1),h=A(),_=A([]),v=async()=>{try{u.value=!0;const d=await ge({page:x.value,size:C.value});d.data.data=d.data.data.map(l=>(l.switch=!!l.switch,l)),h.value=d.data}finally{u.value=!1}},L=async d=>{try{u.value=!0,await Ae(d),f.success("更新账户信息成功")}finally{u.value=!1,await v()}},D=async()=>{try{u.value=!0;const d=_.value.map(l=>l.id);await he(d),f.success("批量更新账户成功")}finally{u.value=!1,await v()}},B=async d=>{try{u.value=!0,await xe(d),f.success("删除账户成功")}finally{u.value=!1,await v()}},F=async()=>{try{u.value=!0;const d=_.value.map(l=>l.id);await $e(d),f.success("批量删除账户成功")}finally{u.value=!1,await v()}},$=async()=>{try{u.value=!0;const d=_.value.map(l=>l.id);await O({account_ids:d,switch:1}),f.success("批量启用账户成功")}finally{u.value=!1,await v()}},k=async()=>{try{u.value=!0;const d=_.value.map(l=>l.id);await O({account_ids:d,switch:0}),f.success("批量禁用账户成功")}finally{u.value=!1,await v()}},M=d=>_.value=d;ve(v);const V=A(!1),U=()=>V.value=!V.value,S=async d=>{if(d.edit=!d.edit,d.edit===!1)try{u.value=!0,await Ve(d),f.success("修改賬號成功")}finally{u.value=!1,await v()}},E=async()=>{try{u.value=!0,await Ue(),f.success("启用被限速账号成功")}finally{u.value=!1,await v()}},N=async d=>{try{u.value=!0;const l=await Ce(d);if(l.data.errno===0){const m=l.data.anti;f.success("获取封禁信息成功"),m.ban_status?(f.success("封禁状态:已封禁"),f.success(`封禁开始时间: ${new Date(parseInt(`${m.start_time}000`)).toLocaleString()}`),f.success(`封禁结束时间: ${new Date(parseInt(`${m.end_time}000`)).toLocaleString()}`),f.success(`已被封禁${m.ban_times}次`),f.success(`封禁原因: ${m.ban_reason}`)):f.success("封禁状态:未封禁")}else l.data.errno===-6?f.warning("获取封禁信息失败,Cookie或AccessToken已过期"):f.warning(`获取封禁信息失败,code:${l.data.errno},msg:${l.data.errmsg}`)}finally{u.value=!1}};return(d,l)=>{var P,j,q;const m=X,s=ce,z=W,w=J,T=Q,te=pe,ae=re,le=_e,ne=me,oe=Y;return o(),b(I,null,[a(ze,{onGetAccounts:v,modelValue:V.value,"onUpdate:modelValue":l[0]||(l[0]=e=>V.value=e)},null,8,["modelValue"]),a(m,{type:"primary",onClick:l[1]||(l[1]=e=>v())},{default:t(()=>[i("刷新列表")]),_:1}),a(m,{type:"primary",onClick:l[2]||(l[2]=e=>U())},{default:t(()=>[i("添加账号")]),_:1}),a(m,{type:"primary",disabled:_.value.length<=0,onClick:l[3]||(l[3]=e=>D())},{default:t(()=>[i(" 批量更新信息 ")]),_:1},8,["disabled"]),a(m,{type:"primary",disabled:_.value.length<=0,onClick:l[4]||(l[4]=e=>$())},{default:t(()=>[i(" 批量启用 ")]),_:1},8,["disabled"]),a(m,{type:"primary",disabled:_.value.length<=0,onClick:l[5]||(l[5]=e=>k())},{default:t(()=>[i(" 批量禁用 ")]),_:1},8,["disabled"]),a(m,{type:"danger",disabled:_.value.length<=0,onClick:l[6]||(l[6]=e=>F())},{default:t(()=>[i(" 批量删除 ")]),_:1},8,["disabled"]),a(m,{type:"primary",onClick:l[7]||(l[7]=e=>E())},{default:t(()=>[i(" 启用被限速的账号 ")]),_:1}),ee((o(),y(le,{data:((P=h.value)==null?void 0:P.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:M},{default:t(()=>[a(s,{type:"selection",fixed:"",width:"40"}),a(s,{prop:"id",label:"ID",fixed:""}),a(s,{prop:"baidu_name",label:"百度用户名",width:"150px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Se,r(e.baidu_name),1)),e.edit?(o(),y(z,{key:1,modelValue:e.baidu_name,"onUpdate:modelValue":n=>e.baidu_name=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"today_size",label:"今日解析",width:"150px"},{default:t(({row:e})=>[G("span",null,r(e.today_count)+" ("+r(H(K)(e.today_size??0))+")",1)]),_:1}),a(s,{prop:"today_size",label:"总共解析",width:"150px"},{default:t(({row:e})=>[G("span",null,r(e.total_count)+" ("+r(H(K)(e.total_size??0))+")",1)]),_:1}),a(s,{prop:"account_type",label:"账号类型",width:"160px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Ee,r(e.account_type),1)),e.edit?(o(),y(T,{key:1,modelValue:e.account_type,"onUpdate:modelValue":n=>e.account_type=n},{default:t(()=>[(o(),b(I,null,R(["cookie","access_token"],n=>a(w,{key:n,value:n},{default:t(()=>[i(r(n),1)]),_:2},1032,["value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"cookie",label:"Cookie",width:"150px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",we,r(e.cookie),1)),e.edit?(o(),y(z,{key:1,modelValue:e.cookie,"onUpdate:modelValue":n=>e.cookie=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"access_token",label:"access_token",width:"150px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Ie,r(e.access_token),1)),e.edit?(o(),y(z,{key:1,modelValue:e.access_token,"onUpdate:modelValue":n=>e.access_token=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"refresh_token",label:"refresh_token",width:"150px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Le,r(e.refresh_token),1)),e.edit?(o(),y(z,{key:1,modelValue:e.refresh_token,"onUpdate:modelValue":n=>e.refresh_token=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"cid",label:"cid",width:"200px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",De,r(e.cid),1)),e.edit?(o(),y(te,{key:1,modelValue:e.cid,"onUpdate:modelValue":n=>e.cid=n,style:{width:"170px"}},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"expired_at",label:"token过期时间",width:"160px"},{default:t(({row:e})=>[i(r(e.expired_at?new Date(e.expired_at).toLocaleString():"非token模式"),1)]),_:1}),a(s,{prop:"vip_type",label:"会员类型",width:"130px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Be,r(e.vip_type),1)),e.edit?(o(),y(T,{key:1,modelValue:e.vip_type,"onUpdate:modelValue":n=>e.vip_type=n},{default:t(()=>[(o(),b(I,null,R(["超级会员","假超级会员","普通会员","普通用户"],n=>a(w,{key:n,value:n},{default:t(()=>[i(r(n),1)]),_:2},1032,["value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"switch",label:"状态",width:"70px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Fe,r(e.switch?"启用":"禁用"),1)),e.edit?(o(),y(ae,{key:1,modelValue:e.switch,"onUpdate:modelValue":n=>e.switch=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"prov",label:"省份",width:"120px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Me,r(e.prov??"未使用"),1)),e.edit?(o(),y(T,{key:1,modelValue:e.prov,"onUpdate:modelValue":n=>e.prov=n},{default:t(()=>[(o(),y(w,{key:null,value:null},{default:t(()=>[i("未使用")]),_:1})),(o(),b(I,null,R(["北京市","天津市","上海市","重庆市","河北省","山西省","内蒙古自治区","辽宁省","吉林省","黑龙江省","江苏省","浙江省","安徽省","福建省","江西省","山东省","河南省","湖北省","湖南省","广东省","广西壮族自治区","海南省","四川省","贵州省","云南省","西藏自治区","陕西省","甘肃省","青海省","宁夏回族自治区","新疆维吾尔自治区","香港特别行政区","澳门特别行政区","台湾省"],n=>a(w,{key:n,label:n,value:n},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"reason",label:"禁用原因",width:"150px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Ne,r(e.reason??"未禁用"),1)),e.edit?(o(),y(z,{key:1,modelValue:e.reason,"onUpdate:modelValue":n=>e.reason=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"svip_end_at",label:"超级会员结束时间",width:"160px"},{default:t(({row:e})=>[i(r(new Date(e.svip_end_at).toLocaleString()),1)]),_:1}),a(s,{prop:"last_use_at",label:"上次使用时间",width:"160px"},{default:t(({row:e})=>[i(r(new Date(e.last_use_at).toLocaleString()),1)]),_:1}),a(s,{prop:"created_at",label:"创建时间",width:"160px"},{default:t(({row:e})=>[i(r(new Date(e.created_at).toLocaleString()),1)]),_:1}),a(s,{prop:"updated_at",label:"更新时间",width:"160px"},{default:t(({row:e})=>[i(r(new Date(e.updated_at).toLocaleString()),1)]),_:1}),a(s,{width:"350",label:"操作",fixed:"right"},{default:t(({row:e})=>[a(m,{size:"small",type:"primary",disabled:e.id===0,onClick:n=>L(e)},{default:t(()=>[i("更新信息")]),_:2},1032,["disabled","onClick"]),a(m,{size:"small",type:"primary",disabled:e.id===0,onClick:n=>N(e)},{default:t(()=>[i(" 检查封禁状态 ")]),_:2},1032,["disabled","onClick"]),e.edit?p("",!0):(o(),y(m,{key:0,size:"small",type:"primary",disabled:e.id===0,onClick:n=>S(e)},{default:t(()=>[i(" 編輯 ")]),_:2},1032,["disabled","onClick"])),e.edit?(o(),y(m,{key:1,size:"small",type:"primary",disabled:e.id===0,onClick:n=>S(e)},{default:t(()=>[i(" 完成 ")]),_:2},1032,["disabled","onClick"])):p("",!0),a(m,{size:"small",type:"danger",disabled:e.id===0,onClick:n=>B(e)},{default:t(()=>[i("删除")]),_:2},1032,["disabled","onClick"])]),_:1})]),_:1},8,["data"])),[[oe,u.value]]),a(ne,{"current-page":x.value,"onUpdate:currentPage":l[8]||(l[8]=e=>x.value=e),"page-size":C.value,"onUpdate:pageSize":l[9]||(l[9]=e=>C.value=e),"page-sizes":[15,50,100,500,((j=h.value)==null?void 0:j.total)??100],total:((q=h.value)==null?void 0:q.total)??100,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:v,onCurrentChange:v},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),dt=ke(Te,[["__scopeId","data-v-a8baa8b2"]]);export{dt as default}; +import{E as f,g as se,c as de,i as J,j as Q,b as W,e as ue,d as X,k as ie,v as Y,m as ce,r as pe,q as re,o as _e,s as me}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as g}from"./index-BE2XYqVW.js";import{d as Z,_ as fe,$ as ye,o,G as y,H as t,i as a,L as i,I as ee,m as ve,c as b,K as p,a as G,F as I,R}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as A,u as H}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{f as K}from"./format-CyW-QbYa.js";import{L as r}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as ke}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const be=c=>g.post("/admin/account",c),ge=c=>g.get(`/admin/account?page=${c.page}&size=${c.size}`),Ve=c=>g.patch(`/admin/account/${c.id}`,c),Ae=c=>g.patch("/admin/account/info",{account_ids:[c.id]}),he=c=>g.patch("/admin/account/info",{account_ids:c}),xe=c=>g.delete("/admin/account",{data:{account_ids:[c.id]}}),$e=c=>g.delete("/admin/account",{data:{account_ids:c}}),O=c=>g.patch("/admin/account/switch",c),Ce=c=>g.get(`/admin/account/ban?account_id=${c.id}`),Ue=()=>g.patch("/admin/account/ban"),ze=Z({__name:"AddAccount",props:{modelValue:{},modelModifiers:{}},emits:fe(["getAccounts"],["update:modelValue"]),setup(c,{emit:u}){const C=u,x=ye(c,"modelValue"),h=A(!1),_=A({type:1,cookie:""}),v=A(null),L={cookie:[{required:!0,message:"请输入账户信息",trigger:"blur"}]},D=async $=>{if(!(!$||!await $.validate()))try{h.value=!0,(await be(_.value)).data.have_repeat&&f.info("存在重复的账号,已自动过滤"),f.success("添加成功")}finally{h.value=!1}},B=$=>{C("getAccounts"),$()},F=()=>{x.value=!1,C("getAccounts")};return($,k)=>{const M=se,V=de,U=J,S=Q,E=W,N=ue,d=X,l=ie,m=Y;return o(),y(l,{title:"添加账号",width:"60%",modelValue:x.value,"onUpdate:modelValue":k[5]||(k[5]=s=>x.value=s),"before-close":B},{footer:t(()=>[a(d,{type:"info",onClick:k[3]||(k[3]=s=>F())},{default:t(()=>[i("取消")]),_:1}),a(d,{type:"primary",onClick:k[4]||(k[4]=s=>D(v.value))},{default:t(()=>[i("添加")]),_:1})]),default:t(()=>[ee((o(),y(N,{ref_key:"addAccountFormRef",ref:v,model:_.value,rules:L,"label-width":"auto"},{default:t(()=>[a(V,{label:"提示"},{default:t(()=>[a(M,null,{default:t(()=>[i("可以使用换行来分割多个账号")]),_:1})]),_:1}),a(V,{label:"账号类型"},{default:t(()=>[a(S,{modelValue:_.value.type,"onUpdate:modelValue":k[0]||(k[0]=s=>_.value.type=s)},{default:t(()=>[a(U,{label:"cookie",value:1}),a(U,{label:"token",value:2}),a(U,{label:"enterprise",value:3})]),_:1},8,["modelValue"])]),_:1}),_.value.type===1||_.value.type===3?(o(),y(V,{key:0,label:"Cookie",prop:"cookie"},{default:t(()=>[a(E,{type:"textarea",modelValue:_.value.cookie,"onUpdate:modelValue":k[1]||(k[1]=s=>_.value.cookie=s)},null,8,["modelValue"])]),_:1})):(o(),y(V,{key:1,label:"refresh_token",prop:"cookie"},{default:t(()=>[a(E,{type:"textarea",modelValue:_.value.cookie,"onUpdate:modelValue":k[2]||(k[2]=s=>_.value.cookie=s)},null,8,["modelValue"])]),_:1}))]),_:1},8,["model"])),[[m,h.value]])]),_:1},8,["modelValue"])}}}),Se={key:0},Ee={key:0},we={key:0},Ie={key:0},Le={key:0},De={key:0},Be={key:0},Fe={key:0},Me={key:0},Ne={key:0},Te=Z({__name:"AccountManagement",setup(c){const u=A(!1),C=A(15),x=A(1),h=A(),_=A([]),v=async()=>{try{u.value=!0;const d=await ge({page:x.value,size:C.value});d.data.data=d.data.data.map(l=>(l.switch=!!l.switch,l)),h.value=d.data}finally{u.value=!1}},L=async d=>{try{u.value=!0,await Ae(d),f.success("更新账户信息成功")}finally{u.value=!1,await v()}},D=async()=>{try{u.value=!0;const d=_.value.map(l=>l.id);await he(d),f.success("批量更新账户成功")}finally{u.value=!1,await v()}},B=async d=>{try{u.value=!0,await xe(d),f.success("删除账户成功")}finally{u.value=!1,await v()}},F=async()=>{try{u.value=!0;const d=_.value.map(l=>l.id);await $e(d),f.success("批量删除账户成功")}finally{u.value=!1,await v()}},$=async()=>{try{u.value=!0;const d=_.value.map(l=>l.id);await O({account_ids:d,switch:1}),f.success("批量启用账户成功")}finally{u.value=!1,await v()}},k=async()=>{try{u.value=!0;const d=_.value.map(l=>l.id);await O({account_ids:d,switch:0}),f.success("批量禁用账户成功")}finally{u.value=!1,await v()}},M=d=>_.value=d;ve(v);const V=A(!1),U=()=>V.value=!V.value,S=async d=>{if(d.edit=!d.edit,d.edit===!1)try{u.value=!0,await Ve(d),f.success("修改賬號成功")}finally{u.value=!1,await v()}},E=async()=>{try{u.value=!0,await Ue(),f.success("启用被限速账号成功")}finally{u.value=!1,await v()}},N=async d=>{try{u.value=!0;const l=await Ce(d);if(l.data.errno===0){const m=l.data.anti;f.success("获取封禁信息成功"),m.ban_status?(f.success("封禁状态:已封禁"),f.success(`封禁开始时间: ${new Date(parseInt(`${m.start_time}000`)).toLocaleString()}`),f.success(`封禁结束时间: ${new Date(parseInt(`${m.end_time}000`)).toLocaleString()}`),f.success(`已被封禁${m.ban_times}次`),f.success(`封禁原因: ${m.ban_reason}`)):f.success("封禁状态:未封禁")}else l.data.errno===-6?f.warning("获取封禁信息失败,Cookie或AccessToken已过期"):f.warning(`获取封禁信息失败,code:${l.data.errno},msg:${l.data.errmsg}`)}finally{u.value=!1}};return(d,l)=>{var P,j,q;const m=X,s=ce,z=W,w=J,T=Q,te=pe,ae=re,le=_e,ne=me,oe=Y;return o(),b(I,null,[a(ze,{onGetAccounts:v,modelValue:V.value,"onUpdate:modelValue":l[0]||(l[0]=e=>V.value=e)},null,8,["modelValue"]),a(m,{type:"primary",onClick:l[1]||(l[1]=e=>v())},{default:t(()=>[i("刷新列表")]),_:1}),a(m,{type:"primary",onClick:l[2]||(l[2]=e=>U())},{default:t(()=>[i("添加账号")]),_:1}),a(m,{type:"primary",disabled:_.value.length<=0,onClick:l[3]||(l[3]=e=>D())},{default:t(()=>[i(" 批量更新信息 ")]),_:1},8,["disabled"]),a(m,{type:"primary",disabled:_.value.length<=0,onClick:l[4]||(l[4]=e=>$())},{default:t(()=>[i(" 批量启用 ")]),_:1},8,["disabled"]),a(m,{type:"primary",disabled:_.value.length<=0,onClick:l[5]||(l[5]=e=>k())},{default:t(()=>[i(" 批量禁用 ")]),_:1},8,["disabled"]),a(m,{type:"danger",disabled:_.value.length<=0,onClick:l[6]||(l[6]=e=>F())},{default:t(()=>[i(" 批量删除 ")]),_:1},8,["disabled"]),a(m,{type:"primary",onClick:l[7]||(l[7]=e=>E())},{default:t(()=>[i(" 启用被限速的账号 ")]),_:1}),ee((o(),y(le,{data:((P=h.value)==null?void 0:P.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:M},{default:t(()=>[a(s,{type:"selection",fixed:"",width:"40"}),a(s,{prop:"id",label:"ID",fixed:""}),a(s,{prop:"baidu_name",label:"百度用户名",width:"150px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Se,r(e.baidu_name),1)),e.edit?(o(),y(z,{key:1,modelValue:e.baidu_name,"onUpdate:modelValue":n=>e.baidu_name=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"today_size",label:"今日解析",width:"150px"},{default:t(({row:e})=>[G("span",null,r(e.today_count)+" ("+r(H(K)(e.today_size??0))+")",1)]),_:1}),a(s,{prop:"today_size",label:"总共解析",width:"150px"},{default:t(({row:e})=>[G("span",null,r(e.total_count)+" ("+r(H(K)(e.total_size??0))+")",1)]),_:1}),a(s,{prop:"account_type",label:"账号类型",width:"160px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Ee,r(e.account_type),1)),e.edit?(o(),y(T,{key:1,modelValue:e.account_type,"onUpdate:modelValue":n=>e.account_type=n},{default:t(()=>[(o(),b(I,null,R(["cookie","access_token"],n=>a(w,{key:n,value:n},{default:t(()=>[i(r(n),1)]),_:2},1032,["value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"cookie",label:"Cookie",width:"150px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",we,r(e.cookie),1)),e.edit?(o(),y(z,{key:1,modelValue:e.cookie,"onUpdate:modelValue":n=>e.cookie=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"access_token",label:"access_token",width:"150px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Ie,r(e.access_token),1)),e.edit?(o(),y(z,{key:1,modelValue:e.access_token,"onUpdate:modelValue":n=>e.access_token=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"refresh_token",label:"refresh_token",width:"150px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Le,r(e.refresh_token),1)),e.edit?(o(),y(z,{key:1,modelValue:e.refresh_token,"onUpdate:modelValue":n=>e.refresh_token=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"cid",label:"cid",width:"200px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",De,r(e.cid),1)),e.edit?(o(),y(te,{key:1,modelValue:e.cid,"onUpdate:modelValue":n=>e.cid=n,style:{width:"170px"}},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"expired_at",label:"token过期时间",width:"160px"},{default:t(({row:e})=>[i(r(e.expired_at?new Date(e.expired_at).toLocaleString():"非token模式"),1)]),_:1}),a(s,{prop:"vip_type",label:"会员类型",width:"130px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Be,r(e.vip_type),1)),e.edit?(o(),y(T,{key:1,modelValue:e.vip_type,"onUpdate:modelValue":n=>e.vip_type=n},{default:t(()=>[(o(),b(I,null,R(["超级会员","假超级会员","普通会员","普通用户"],n=>a(w,{key:n,value:n},{default:t(()=>[i(r(n),1)]),_:2},1032,["value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"switch",label:"状态",width:"70px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Fe,r(e.switch?"启用":"禁用"),1)),e.edit?(o(),y(ae,{key:1,modelValue:e.switch,"onUpdate:modelValue":n=>e.switch=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"prov",label:"省份",width:"120px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Me,r(e.prov??"未使用"),1)),e.edit?(o(),y(T,{key:1,modelValue:e.prov,"onUpdate:modelValue":n=>e.prov=n},{default:t(()=>[(o(),y(w,{key:null,value:null},{default:t(()=>[i("未使用")]),_:1})),(o(),b(I,null,R(["北京市","天津市","上海市","重庆市","河北省","山西省","内蒙古自治区","辽宁省","吉林省","黑龙江省","江苏省","浙江省","安徽省","福建省","江西省","山东省","河南省","湖北省","湖南省","广东省","广西壮族自治区","海南省","四川省","贵州省","云南省","西藏自治区","陕西省","甘肃省","青海省","宁夏回族自治区","新疆维吾尔自治区","香港特别行政区","澳门特别行政区","台湾省"],n=>a(w,{key:n,label:n,value:n},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"reason",label:"禁用原因",width:"150px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Ne,r(e.reason??"未禁用"),1)),e.edit?(o(),y(z,{key:1,modelValue:e.reason,"onUpdate:modelValue":n=>e.reason=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"svip_end_at",label:"超级会员结束时间",width:"160px"},{default:t(({row:e})=>[i(r(new Date(e.svip_end_at).toLocaleString()),1)]),_:1}),a(s,{prop:"last_use_at",label:"上次使用时间",width:"160px"},{default:t(({row:e})=>[i(r(new Date(e.last_use_at).toLocaleString()),1)]),_:1}),a(s,{prop:"created_at",label:"创建时间",width:"160px"},{default:t(({row:e})=>[i(r(new Date(e.created_at).toLocaleString()),1)]),_:1}),a(s,{prop:"updated_at",label:"更新时间",width:"160px"},{default:t(({row:e})=>[i(r(new Date(e.updated_at).toLocaleString()),1)]),_:1}),a(s,{width:"350",label:"操作",fixed:"right"},{default:t(({row:e})=>[a(m,{size:"small",type:"primary",disabled:e.id===0,onClick:n=>L(e)},{default:t(()=>[i("更新信息")]),_:2},1032,["disabled","onClick"]),a(m,{size:"small",type:"primary",disabled:e.id===0,onClick:n=>N(e)},{default:t(()=>[i(" 检查封禁状态 ")]),_:2},1032,["disabled","onClick"]),e.edit?p("",!0):(o(),y(m,{key:0,size:"small",type:"primary",disabled:e.id===0,onClick:n=>S(e)},{default:t(()=>[i(" 編輯 ")]),_:2},1032,["disabled","onClick"])),e.edit?(o(),y(m,{key:1,size:"small",type:"primary",disabled:e.id===0,onClick:n=>S(e)},{default:t(()=>[i(" 完成 ")]),_:2},1032,["disabled","onClick"])):p("",!0),a(m,{size:"small",type:"danger",disabled:e.id===0,onClick:n=>B(e)},{default:t(()=>[i("删除")]),_:2},1032,["disabled","onClick"])]),_:1})]),_:1},8,["data"])),[[oe,u.value]]),a(ne,{"current-page":x.value,"onUpdate:currentPage":l[8]||(l[8]=e=>x.value=e),"page-size":C.value,"onUpdate:pageSize":l[9]||(l[9]=e=>C.value=e),"page-sizes":[15,50,100,500,((j=h.value)==null?void 0:j.total)??100],total:((q=h.value)==null?void 0:q.total)??100,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:v,onCurrentChange:v},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),dt=ke(Te,[["__scopeId","data-v-a8baa8b2"]]);export{dt as default}; diff --git a/public/assets/js/AccountManagement-CRZA0e4z.js.gz b/public/assets/js/AccountManagement-CRZA0e4z.js.gz new file mode 100644 index 0000000..7360d17 Binary files /dev/null and b/public/assets/js/AccountManagement-CRZA0e4z.js.gz differ diff --git a/public/assets/js/AccountManagement-DIV621kl.js.gz b/public/assets/js/AccountManagement-DIV621kl.js.gz deleted file mode 100644 index ead4411..0000000 Binary files a/public/assets/js/AccountManagement-DIV621kl.js.gz and /dev/null differ diff --git a/public/assets/js/AdminView-5JrZ8C3C.js.gz b/public/assets/js/AdminView-5JrZ8C3C.js.gz deleted file mode 100644 index b226129..0000000 Binary files a/public/assets/js/AdminView-5JrZ8C3C.js.gz and /dev/null differ diff --git a/public/assets/js/AdminView-5JrZ8C3C.js b/public/assets/js/AdminView-DP9h94LN.js similarity index 79% rename from public/assets/js/AdminView-5JrZ8C3C.js rename to public/assets/js/AdminView-DP9h94LN.js index b7e3805..b57aa9e 100644 --- a/public/assets/js/AdminView-5JrZ8C3C.js +++ b/public/assets/js/AdminView-DP9h94LN.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/ChangeMainConfig-l2rllipF.js","assets/js/element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js","assets/js/@vue_runtime-dom@3.4.32-DNdjNMzo.js","assets/js/@vue_runtime-core@3.4.32-BofAHbgu.js","assets/js/@vue_reactivity@3.4.32-DksAu7zd.js","assets/js/@vue_shared@3.4.32-CaCWPAm8.js","assets/js/lodash-es@4.17.21-BB-zMWwC.js","assets/js/async-validator@4.2.5-DKvM95Vc.js","assets/js/@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js","assets/js/@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js","assets/js/dayjs@1.11.11-Ct2Knyoi.js","assets/js/@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js","assets/js/@ctrl_tinycolor@3.6.1-r5W6hzzQ.js","assets/js/@sxzz_popperjs-es@2.11.7-D9SI2xQl.js","assets/js/normalize-wheel-es@1.2.0-B6fDCfyv.js","assets/css/element-plus@2.7.7_vue@3.4.32_typescript@5.5-YF1DmkJl.css","assets/js/index-BrpDzfc2.js","assets/js/pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js","assets/js/vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js","assets/js/axios@1.7.2-B4uVmeYG.js","assets/js/vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js","assets/css/index-qsVAQOGj.css","assets/js/changeConfigForm-GjgVryLW.js","assets/js/ChangeMailConfig-D_yPduVS.js","assets/js/UserManagement-BcXbbZRX.js","assets/js/format-CyW-QbYa.js","assets/js/_plugin-vue_export-helper-DlAUqK2U.js","assets/css/UserManagement-C5ETFEKD.css","assets/js/InvCodeManagement-3kTe-fD5.js","assets/js/copy-By2guqEs.js","assets/css/InvCodeManagement-BIcF9Kxd.css","assets/js/TokenManagement-Cf_kOt7J.js","assets/css/TokenManagement-aT40K2D6.css","assets/js/GroupManagement-CCDkPi17.js","assets/css/GroupManagement-DsjCwHwp.css","assets/js/AccountManagement-DIV621kl.js","assets/css/AccountManagement-CvA_2gMU.css","assets/js/RecordManagement-DkwxqT_A.js","assets/css/RecordManagement-S3Hh6B8z.css","assets/js/IpManagement-Co1yF6gt.js","assets/css/IpManagement-BHydyvRO.css"])))=>i.map(i=>d[i]); -import{u as A,g as c,c as L,a as R,_ as n}from"./index-BrpDzfc2.js";import{a as D,d as O,f as h,g as k,h as x}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{u as N}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as y,G as S,H as t,K as B,o as w,a as G,L as m,i as e,X as r}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as U,u as a}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as $}from"./@vue_shared@3.4.32-CaCWPAm8.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./axios@1.7.2-B4uVmeYG.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";const ie=y({__name:"AdminView",setup(H){const f=A(),s=r(()=>n(()=>import("./ChangeMainConfig-l2rllipF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]))),g=r(()=>n(()=>import("./ChangeMailConfig-D_yPduVS.js"),__vite__mapDeps([23,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))),E=r(()=>n(()=>import("./UserManagement-BcXbbZRX.js"),__vite__mapDeps([24,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,25,26,27]))),M=r(()=>n(()=>import("./InvCodeManagement-3kTe-fD5.js"),__vite__mapDeps([28,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,29,26,30]))),V=r(()=>n(()=>import("./TokenManagement-Cf_kOt7J.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,29,25,26,32]))),b=r(()=>n(()=>import("./GroupManagement-CCDkPi17.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,26,34]))),v=r(()=>n(()=>import("./AccountManagement-DIV621kl.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,25,26,36]))),C=r(()=>n(()=>import("./RecordManagement-DkwxqT_A.js"),__vite__mapDeps([37,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,25,22,29,26,38]))),P=r(()=>n(()=>import("./IpManagement-Co1yF6gt.js"),__vite__mapDeps([39,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,26,40]))),u=U("changeMainConfig"),l=N();return c()==="0"&&l.push("/login"),L()==="user"&&l.push("/user"),(K,_)=>{const p=O,o=h,I=k,d=D,T=x;return a(c)()==="1"?(w(),S(d,{key:0,class:"box-card"},{default:t(()=>[G("h2",null,[m(" 后台控制中心 | "+$(a(R)())+" ",1),e(p,{type:"primary",onClick:_[0]||(_[0]=i=>a(l).push("/"))},{default:t(()=>[m("回到首页")]),_:1}),e(p,{type:"danger",onClick:_[1]||(_[1]=i=>a(f).logout())},{default:t(()=>[m("退出登陆")]),_:1})]),e(T,{modelValue:u.value,"onUpdate:modelValue":_[2]||(_[2]=i=>u.value=i)},{default:t(()=>[e(o,{label:"基础配置",name:"changeMainConfig"},{default:t(()=>[e(a(s),{Mode:"main"})]),_:1}),e(o,{label:"解析配置",name:"changeParseConfig"},{default:t(()=>[e(a(s),{Mode:"parse"})]),_:1}),e(o,{label:"邮件配置",name:"changeMailConfig"},{default:t(()=>[e(a(g))]),_:1}),e(o,{label:"用户管理",name:"userManagement"},{default:t(()=>[e(a(E))]),_:1}),e(o,{label:"用户组管理",name:"groupManagement"},{default:t(()=>[e(a(b))]),_:1}),e(o,{label:"邀请码管理",name:"invCodeManagement"},{default:t(()=>[e(a(M))]),_:1}),e(o,{label:"卡密管理",name:"tokenManagement"},{default:t(()=>[e(a(V))]),_:1}),e(o,{label:"账号管理",name:"accountManagement"},{default:t(()=>[e(a(v))]),_:1}),e(o,{label:"记录管理",name:"recordManagement"},{default:t(()=>[e(a(C))]),_:1}),e(o,{label:"IP管理",name:"ipManagement"},{default:t(()=>[e(a(P))]),_:1}),e(o,{label:"开源说明",name:"openSourceNotice"},{default:t(()=>[e(d,null,{default:t(()=>[e(I,null,{default:t(()=>[m(" 项目所涉及的接口均为官方开放接口,需使用正版 SVIP 会员账号进行代理提取高速链接,无破坏官方接口行为,本身不存在违法。 仅供自己参考学习使用。诺违规使用官方会限制或封禁你的账号,包括你的 IP,如无官方授权进行商业用途会对你造成更严重后果。 源码仅供学习,如无视声明使用产生正负面结果(限速,被封等)都与作者无关。 ")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})):B("",!0)}}});export{ie as default}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/ChangeMainConfig-DuHdDpeJ.js","assets/js/element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js","assets/js/@vue_runtime-dom@3.4.32-DNdjNMzo.js","assets/js/@vue_runtime-core@3.4.32-BofAHbgu.js","assets/js/@vue_reactivity@3.4.32-DksAu7zd.js","assets/js/@vue_shared@3.4.32-CaCWPAm8.js","assets/js/lodash-es@4.17.21-BB-zMWwC.js","assets/js/async-validator@4.2.5-DKvM95Vc.js","assets/js/@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js","assets/js/@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js","assets/js/dayjs@1.11.11-Ct2Knyoi.js","assets/js/@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js","assets/js/@ctrl_tinycolor@3.6.1-r5W6hzzQ.js","assets/js/@sxzz_popperjs-es@2.11.7-D9SI2xQl.js","assets/js/normalize-wheel-es@1.2.0-B6fDCfyv.js","assets/css/element-plus@2.7.7_vue@3.4.32_typescript@5.5-YF1DmkJl.css","assets/js/index-BE2XYqVW.js","assets/js/pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js","assets/js/vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js","assets/js/axios@1.7.2-B4uVmeYG.js","assets/js/vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js","assets/css/index-qsVAQOGj.css","assets/js/changeConfigForm-D02j05Uv.js","assets/js/ChangeMailConfig-ClDW8ZY5.js","assets/js/UserManagement-Dk35CLpN.js","assets/js/format-CyW-QbYa.js","assets/js/_plugin-vue_export-helper-DlAUqK2U.js","assets/css/UserManagement-C5ETFEKD.css","assets/js/InvCodeManagement-Ct0UzEyU.js","assets/js/copy-By2guqEs.js","assets/css/InvCodeManagement-BIcF9Kxd.css","assets/js/TokenManagement-CqLz1EbZ.js","assets/css/TokenManagement-aT40K2D6.css","assets/js/GroupManagement-ZUL4seNa.js","assets/css/GroupManagement-DsjCwHwp.css","assets/js/AccountManagement-CRZA0e4z.js","assets/css/AccountManagement-CvA_2gMU.css","assets/js/RecordManagement-J2tVDgdK.js","assets/css/RecordManagement-S3Hh6B8z.css","assets/js/IpManagement-CZSvyyPn.js","assets/css/IpManagement-BHydyvRO.css"])))=>i.map(i=>d[i]); +import{u as A,g as c,c as L,a as R,_ as n}from"./index-BE2XYqVW.js";import{a as D,d as O,f as h,g as k,h as x}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{u as N}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as y,G as S,H as t,K as B,o as w,a as G,L as m,i as e,X as r}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as U,u as a}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as $}from"./@vue_shared@3.4.32-CaCWPAm8.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./axios@1.7.2-B4uVmeYG.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";const ie=y({__name:"AdminView",setup(H){const f=A(),s=r(()=>n(()=>import("./ChangeMainConfig-DuHdDpeJ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]))),g=r(()=>n(()=>import("./ChangeMailConfig-ClDW8ZY5.js"),__vite__mapDeps([23,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))),E=r(()=>n(()=>import("./UserManagement-Dk35CLpN.js"),__vite__mapDeps([24,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,25,26,27]))),M=r(()=>n(()=>import("./InvCodeManagement-Ct0UzEyU.js"),__vite__mapDeps([28,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,29,26,30]))),V=r(()=>n(()=>import("./TokenManagement-CqLz1EbZ.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,29,25,26,32]))),b=r(()=>n(()=>import("./GroupManagement-ZUL4seNa.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,26,34]))),v=r(()=>n(()=>import("./AccountManagement-CRZA0e4z.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,25,26,36]))),C=r(()=>n(()=>import("./RecordManagement-J2tVDgdK.js"),__vite__mapDeps([37,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,25,22,29,26,38]))),P=r(()=>n(()=>import("./IpManagement-CZSvyyPn.js"),__vite__mapDeps([39,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,26,40]))),u=U("changeMainConfig"),l=N();return c()==="0"&&l.push("/login"),L()==="user"&&l.push("/user"),(K,_)=>{const p=O,o=h,I=k,d=D,T=x;return a(c)()==="1"?(w(),S(d,{key:0,class:"box-card"},{default:t(()=>[G("h2",null,[m(" 后台控制中心 | "+$(a(R)())+" ",1),e(p,{type:"primary",onClick:_[0]||(_[0]=i=>a(l).push("/"))},{default:t(()=>[m("回到首页")]),_:1}),e(p,{type:"danger",onClick:_[1]||(_[1]=i=>a(f).logout())},{default:t(()=>[m("退出登陆")]),_:1})]),e(T,{modelValue:u.value,"onUpdate:modelValue":_[2]||(_[2]=i=>u.value=i)},{default:t(()=>[e(o,{label:"基础配置",name:"changeMainConfig"},{default:t(()=>[e(a(s),{Mode:"main"})]),_:1}),e(o,{label:"解析配置",name:"changeParseConfig"},{default:t(()=>[e(a(s),{Mode:"parse"})]),_:1}),e(o,{label:"邮件配置",name:"changeMailConfig"},{default:t(()=>[e(a(g))]),_:1}),e(o,{label:"用户管理",name:"userManagement"},{default:t(()=>[e(a(E))]),_:1}),e(o,{label:"用户组管理",name:"groupManagement"},{default:t(()=>[e(a(b))]),_:1}),e(o,{label:"邀请码管理",name:"invCodeManagement"},{default:t(()=>[e(a(M))]),_:1}),e(o,{label:"卡密管理",name:"tokenManagement"},{default:t(()=>[e(a(V))]),_:1}),e(o,{label:"账号管理",name:"accountManagement"},{default:t(()=>[e(a(v))]),_:1}),e(o,{label:"记录管理",name:"recordManagement"},{default:t(()=>[e(a(C))]),_:1}),e(o,{label:"IP管理",name:"ipManagement"},{default:t(()=>[e(a(P))]),_:1}),e(o,{label:"开源说明",name:"openSourceNotice"},{default:t(()=>[e(d,null,{default:t(()=>[e(I,null,{default:t(()=>[m(" 项目所涉及的接口均为官方开放接口,需使用正版 SVIP 会员账号进行代理提取高速链接,无破坏官方接口行为,本身不存在违法。 仅供自己参考学习使用。诺违规使用官方会限制或封禁你的账号,包括你的 IP,如无官方授权进行商业用途会对你造成更严重后果。 源码仅供学习,如无视声明使用产生正负面结果(限速,被封等)都与作者无关。 ")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})):B("",!0)}}});export{ie as default}; diff --git a/public/assets/js/AdminView-DP9h94LN.js.gz b/public/assets/js/AdminView-DP9h94LN.js.gz new file mode 100644 index 0000000..8f209de Binary files /dev/null and b/public/assets/js/AdminView-DP9h94LN.js.gz differ diff --git a/public/assets/js/AnnounceDialog-CGrscHav.js.gz b/public/assets/js/AnnounceDialog-CGrscHav.js.gz deleted file mode 100644 index 490bc9a..0000000 Binary files a/public/assets/js/AnnounceDialog-CGrscHav.js.gz and /dev/null differ diff --git a/public/assets/js/AnnounceDialog-CGrscHav.js b/public/assets/js/AnnounceDialog-Qk_FjRtt.js similarity index 96% rename from public/assets/js/AnnounceDialog-CGrscHav.js rename to public/assets/js/AnnounceDialog-Qk_FjRtt.js index ff49646..b2daeeb 100644 --- a/public/assets/js/AnnounceDialog-CGrscHav.js +++ b/public/assets/js/AnnounceDialog-Qk_FjRtt.js @@ -1 +1 @@ -import{d,k as _}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{u as f,d as g}from"./index-BrpDzfc2.js";import{s as k}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{d as V,o as w,G as h,H as t,a as i,i as m,L as l}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{u as n}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const v=["innerHTML"],x={class:"dialog-footer"},I=V({__name:"AnnounceDialog",setup(B){const p=f(),{config:o}=k(p),a=()=>o.value.show_announce=!1,c=()=>{g(o.value.announce),a()};return(C,e)=>{const r=d,u=_;return w(),h(u,{modelValue:n(o).show_announce,"onUpdate:modelValue":e[1]||(e[1]=s=>n(o).show_announce=s),title:"公告",width:"60%","close-on-click-modal":!1},{footer:t(()=>[i("div",x,[m(r,{type:"danger",onClick:c},{default:t(()=>[l(" 下次不再提示 ")]),_:1}),m(r,{type:"primary",onClick:e[0]||(e[0]=s=>a())},{default:t(()=>[l(" 确认 ")]),_:1})])]),default:t(()=>[i("span",{innerHTML:n(o).announce},null,8,v)]),_:1},8,["modelValue"])}}});export{I as default}; +import{d,k as _}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{u as f,d as g}from"./index-BE2XYqVW.js";import{s as k}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{d as V,o as w,G as h,H as t,a as i,i as m,L as l}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{u as n}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const v=["innerHTML"],x={class:"dialog-footer"},I=V({__name:"AnnounceDialog",setup(B){const p=f(),{config:o}=k(p),a=()=>o.value.show_announce=!1,c=()=>{g(o.value.announce),a()};return(C,e)=>{const r=d,u=_;return w(),h(u,{modelValue:n(o).show_announce,"onUpdate:modelValue":e[1]||(e[1]=s=>n(o).show_announce=s),title:"公告",width:"60%","close-on-click-modal":!1},{footer:t(()=>[i("div",x,[m(r,{type:"danger",onClick:c},{default:t(()=>[l(" 下次不再提示 ")]),_:1}),m(r,{type:"primary",onClick:e[0]||(e[0]=s=>a())},{default:t(()=>[l(" 确认 ")]),_:1})])]),default:t(()=>[i("span",{innerHTML:n(o).announce},null,8,v)]),_:1},8,["modelValue"])}}});export{I as default}; diff --git a/public/assets/js/AnnounceDialog-Qk_FjRtt.js.gz b/public/assets/js/AnnounceDialog-Qk_FjRtt.js.gz new file mode 100644 index 0000000..e84f313 Binary files /dev/null and b/public/assets/js/AnnounceDialog-Qk_FjRtt.js.gz differ diff --git a/public/assets/js/Aria2Dialog-CdQ9TYie.js.gz b/public/assets/js/Aria2Dialog-CdQ9TYie.js.gz deleted file mode 100644 index d234a4e..0000000 Binary files a/public/assets/js/Aria2Dialog-CdQ9TYie.js.gz and /dev/null differ diff --git a/public/assets/js/Aria2Dialog-CdQ9TYie.js b/public/assets/js/Aria2Dialog-E-I3wvQw.js similarity index 95% rename from public/assets/js/Aria2Dialog-CdQ9TYie.js rename to public/assets/js/Aria2Dialog-E-I3wvQw.js index 0bf0db2..2d223f5 100644 --- a/public/assets/js/Aria2Dialog-CdQ9TYie.js +++ b/public/assets/js/Aria2Dialog-E-I3wvQw.js @@ -1 +1 @@ -import{b as g,c as A,d as C,e as b,k as c}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{u as k}from"./aria2Store-B9s7DO4c.js";import{s as E}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{d as F,o as w,G as R,H as i,i as e,L as x}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{u as r,a as U}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./index-BrpDzfc2.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const W=F({__name:"Aria2Dialog",setup(v){const s=k(),{aria2ConfigForm:l,aria2ConfigFormRef:p,aria2ConfigDialogVisible:n}=E(s),u={host:[{required:!0,validator:(d,o,a)=>o===""?a(new Error("请输入Aria2 服务器地址")):o.includes("jsonrpc")?a(new Error("地址不需要包含端口或jsonrpc路径")):a(),message:"",trigger:"blur"}],port:[{required:!0,message:"请输入Aria2 端口号",trigger:"blur"}]};return(d,o)=>{const a=g,m=A,f=C,_=b,V=c;return w(),R(V,{modelValue:r(n),"onUpdate:modelValue":o[4]||(o[4]=t=>U(n)?n.value=t:null),title:"Aria2配置",width:"90%","close-on-click-modal":!1},{default:i(()=>[e(_,{ref_key:"aria2ConfigFormRef",ref:p,model:r(l),rules:u,"label-width":"auto"},{default:i(()=>[e(m,{label:"Aria2 服务器地址",prop:"host"},{default:i(()=>[e(a,{modelValue:r(l).host,"onUpdate:modelValue":o[0]||(o[0]=t=>r(l).host=t)},null,8,["modelValue"])]),_:1}),e(m,{label:"Aria2 端口号",prop:"port"},{default:i(()=>[e(a,{modelValue:r(l).port,"onUpdate:modelValue":o[1]||(o[1]=t=>r(l).port=t)},null,8,["modelValue"])]),_:1}),e(m,{label:"Aria2 下载密钥",prop:"token"},{default:i(()=>[e(a,{modelValue:r(l).token,"onUpdate:modelValue":o[2]||(o[2]=t=>r(l).token=t)},null,8,["modelValue"])]),_:1}),e(m,{label:" "},{default:i(()=>[e(f,{type:"primary",onClick:o[3]||(o[3]=t=>r(s).saveAria2Config())},{default:i(()=>[x(" 保存 ")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});export{W as default}; +import{b as g,c as A,d as C,e as b,k as c}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{u as k}from"./aria2Store-P2WeHPdx.js";import{s as E}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{d as F,o as w,G as R,H as i,i as e,L as x}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{u as r,a as U}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./index-BE2XYqVW.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const W=F({__name:"Aria2Dialog",setup(v){const s=k(),{aria2ConfigForm:l,aria2ConfigFormRef:p,aria2ConfigDialogVisible:n}=E(s),u={host:[{required:!0,validator:(d,o,a)=>o===""?a(new Error("请输入Aria2 服务器地址")):o.includes("jsonrpc")?a(new Error("地址不需要包含端口或jsonrpc路径")):a(),message:"",trigger:"blur"}],port:[{required:!0,message:"请输入Aria2 端口号",trigger:"blur"}]};return(d,o)=>{const a=g,m=A,f=C,_=b,V=c;return w(),R(V,{modelValue:r(n),"onUpdate:modelValue":o[4]||(o[4]=t=>U(n)?n.value=t:null),title:"Aria2配置",width:"90%","close-on-click-modal":!1},{default:i(()=>[e(_,{ref_key:"aria2ConfigFormRef",ref:p,model:r(l),rules:u,"label-width":"auto"},{default:i(()=>[e(m,{label:"Aria2 服务器地址",prop:"host"},{default:i(()=>[e(a,{modelValue:r(l).host,"onUpdate:modelValue":o[0]||(o[0]=t=>r(l).host=t)},null,8,["modelValue"])]),_:1}),e(m,{label:"Aria2 端口号",prop:"port"},{default:i(()=>[e(a,{modelValue:r(l).port,"onUpdate:modelValue":o[1]||(o[1]=t=>r(l).port=t)},null,8,["modelValue"])]),_:1}),e(m,{label:"Aria2 下载密钥",prop:"token"},{default:i(()=>[e(a,{modelValue:r(l).token,"onUpdate:modelValue":o[2]||(o[2]=t=>r(l).token=t)},null,8,["modelValue"])]),_:1}),e(m,{label:" "},{default:i(()=>[e(f,{type:"primary",onClick:o[3]||(o[3]=t=>r(s).saveAria2Config())},{default:i(()=>[x(" 保存 ")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});export{W as default}; diff --git a/public/assets/js/Aria2Dialog-E-I3wvQw.js.gz b/public/assets/js/Aria2Dialog-E-I3wvQw.js.gz new file mode 100644 index 0000000..ad0775a Binary files /dev/null and b/public/assets/js/Aria2Dialog-E-I3wvQw.js.gz differ diff --git a/public/assets/js/ChangeMailConfig-D_yPduVS.js b/public/assets/js/ChangeMailConfig-ClDW8ZY5.js similarity index 98% rename from public/assets/js/ChangeMailConfig-D_yPduVS.js rename to public/assets/js/ChangeMailConfig-ClDW8ZY5.js index c19def2..cfc4cb1 100644 --- a/public/assets/js/ChangeMailConfig-D_yPduVS.js +++ b/public/assets/js/ChangeMailConfig-ClDW8ZY5.js @@ -1 +1 @@ -import{E as _,q,c as P,b as U,i as E,j as F,d as k,e as x,v as B}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as p}from"./index-BrpDzfc2.js";import{d as R,m as I,I as L,o as v,G as $,H as t,i as o,c as N,F as j,R as z,L as V}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as i}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const D=()=>p.get("/admin/config/mail"),G=m=>p.patch("/admin/config/mail",m),H=m=>p.post("/admin/config/mail",m),me=R({__name:"ChangeMailConfig",setup(m){const s=i(!1),l=i({switch:!1,host:"",port:"",username:"",password:"",encryption:"tls",from_address:"",from_name:"",to_address:"",to_name:""}),d=i(null),c={host:[{required:!0,message:"请输入SMTP服务器地址",trigger:"blur"}],port:[{required:!0,message:"请输入SMTP服务器端口",trigger:"blur"}],username:[{required:!0,message:"请输入SMTP服务器账户",trigger:"blur"}],password:[{required:!0,message:"请输入SMTP服务器密码",trigger:"blur"}],encryption:[{required:!0,message:"请选择SMTP服务器加密方式",trigger:"blur"}],from_address:[{required:!0,message:"请输入发件人地址",trigger:"blur"}],from_name:[{required:!0,message:"请输入发件人名称",trigger:"blur"}],to_address:[{required:!0,message:"请输入收件人地址",trigger:"blur"}],to_name:[{required:!0,message:"请输入收件人名称",trigger:"blur"}]},f=async()=>{try{s.value=!0;const u=await D();l.value=u.data}finally{s.value=!1}},b=async u=>{if(!(!u||!await u.validate()))try{s.value=!0,await G(l.value),_.success("保存成功")}finally{s.value=!1,await f()}},w=async u=>{if(!(!u||!await u.validate()))try{s.value=!0,await H(l.value),_.success("发送成功,请检查邮箱是否收到")}finally{s.value=!1}};return I(f),(u,a)=>{const y=q,r=P,n=U,M=E,C=F,g=k,T=x,S=B;return L((v(),$(T,{ref_key:"changeMailConfigFormRef",ref:d,model:l.value,rules:c,"label-width":"auto"},{default:t(()=>[o(r,{label:"是否开启",prop:"switch"},{default:t(()=>[o(y,{modelValue:l.value.switch,"onUpdate:modelValue":a[0]||(a[0]=e=>l.value.switch=e),size:"large"},null,8,["modelValue"])]),_:1}),o(r,{label:"SMTP服务器地址",prop:"host"},{default:t(()=>[o(n,{modelValue:l.value.host,"onUpdate:modelValue":a[1]||(a[1]=e=>l.value.host=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"SMTP服务器加密方式",prop:"encryption"},{default:t(()=>[o(C,{modelValue:l.value.encryption,"onUpdate:modelValue":a[2]||(a[2]=e=>l.value.encryption=e),placeholder:"选择加密方式"},{default:t(()=>[(v(),N(j,null,z(["tls","ssl"],e=>o(M,{key:e,label:e,value:e},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),o(r,{label:"SMTP服务器端口",prop:"port"},{default:t(()=>[o(n,{modelValue:l.value.port,"onUpdate:modelValue":a[3]||(a[3]=e=>l.value.port=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"SMTP服务器用户名",prop:"username"},{default:t(()=>[o(n,{modelValue:l.value.username,"onUpdate:modelValue":a[4]||(a[4]=e=>l.value.username=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"SMTP服务器密码",prop:"password"},{default:t(()=>[o(n,{modelValue:l.value.password,"onUpdate:modelValue":a[5]||(a[5]=e=>l.value.password=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"发件人地址",prop:"from_address"},{default:t(()=>[o(n,{modelValue:l.value.from_address,"onUpdate:modelValue":a[6]||(a[6]=e=>l.value.from_address=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"发件人名称",prop:"from_name"},{default:t(()=>[o(n,{modelValue:l.value.from_name,"onUpdate:modelValue":a[7]||(a[7]=e=>l.value.from_name=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"收件人名称",prop:"to_name"},{default:t(()=>[o(n,{modelValue:l.value.to_name,"onUpdate:modelValue":a[8]||(a[8]=e=>l.value.to_name=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"收件人地址",prop:"to_address"},{default:t(()=>[o(n,{modelValue:l.value.to_address,"onUpdate:modelValue":a[9]||(a[9]=e=>l.value.to_address=e)},null,8,["modelValue"])]),_:1}),o(r,{label:" "},{default:t(()=>[o(g,{type:"primary",onClick:a[10]||(a[10]=e=>b(d.value))},{default:t(()=>[V("保存")]),_:1}),o(g,{type:"primary",onClick:a[11]||(a[11]=e=>w(d.value))},{default:t(()=>[V(" 发送测试邮件 ")]),_:1})]),_:1})]),_:1},8,["model"])),[[S,s.value]])}}});export{me as default}; +import{E as _,q,c as P,b as U,i as E,j as F,d as k,e as x,v as B}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as p}from"./index-BE2XYqVW.js";import{d as R,m as I,I as L,o as v,G as $,H as t,i as o,c as N,F as j,R as z,L as V}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as i}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const D=()=>p.get("/admin/config/mail"),G=m=>p.patch("/admin/config/mail",m),H=m=>p.post("/admin/config/mail",m),me=R({__name:"ChangeMailConfig",setup(m){const s=i(!1),l=i({switch:!1,host:"",port:"",username:"",password:"",encryption:"tls",from_address:"",from_name:"",to_address:"",to_name:""}),d=i(null),c={host:[{required:!0,message:"请输入SMTP服务器地址",trigger:"blur"}],port:[{required:!0,message:"请输入SMTP服务器端口",trigger:"blur"}],username:[{required:!0,message:"请输入SMTP服务器账户",trigger:"blur"}],password:[{required:!0,message:"请输入SMTP服务器密码",trigger:"blur"}],encryption:[{required:!0,message:"请选择SMTP服务器加密方式",trigger:"blur"}],from_address:[{required:!0,message:"请输入发件人地址",trigger:"blur"}],from_name:[{required:!0,message:"请输入发件人名称",trigger:"blur"}],to_address:[{required:!0,message:"请输入收件人地址",trigger:"blur"}],to_name:[{required:!0,message:"请输入收件人名称",trigger:"blur"}]},f=async()=>{try{s.value=!0;const u=await D();l.value=u.data}finally{s.value=!1}},b=async u=>{if(!(!u||!await u.validate()))try{s.value=!0,await G(l.value),_.success("保存成功")}finally{s.value=!1,await f()}},w=async u=>{if(!(!u||!await u.validate()))try{s.value=!0,await H(l.value),_.success("发送成功,请检查邮箱是否收到")}finally{s.value=!1}};return I(f),(u,a)=>{const y=q,r=P,n=U,M=E,C=F,g=k,T=x,S=B;return L((v(),$(T,{ref_key:"changeMailConfigFormRef",ref:d,model:l.value,rules:c,"label-width":"auto"},{default:t(()=>[o(r,{label:"是否开启",prop:"switch"},{default:t(()=>[o(y,{modelValue:l.value.switch,"onUpdate:modelValue":a[0]||(a[0]=e=>l.value.switch=e),size:"large"},null,8,["modelValue"])]),_:1}),o(r,{label:"SMTP服务器地址",prop:"host"},{default:t(()=>[o(n,{modelValue:l.value.host,"onUpdate:modelValue":a[1]||(a[1]=e=>l.value.host=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"SMTP服务器加密方式",prop:"encryption"},{default:t(()=>[o(C,{modelValue:l.value.encryption,"onUpdate:modelValue":a[2]||(a[2]=e=>l.value.encryption=e),placeholder:"选择加密方式"},{default:t(()=>[(v(),N(j,null,z(["tls","ssl"],e=>o(M,{key:e,label:e,value:e},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),o(r,{label:"SMTP服务器端口",prop:"port"},{default:t(()=>[o(n,{modelValue:l.value.port,"onUpdate:modelValue":a[3]||(a[3]=e=>l.value.port=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"SMTP服务器用户名",prop:"username"},{default:t(()=>[o(n,{modelValue:l.value.username,"onUpdate:modelValue":a[4]||(a[4]=e=>l.value.username=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"SMTP服务器密码",prop:"password"},{default:t(()=>[o(n,{modelValue:l.value.password,"onUpdate:modelValue":a[5]||(a[5]=e=>l.value.password=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"发件人地址",prop:"from_address"},{default:t(()=>[o(n,{modelValue:l.value.from_address,"onUpdate:modelValue":a[6]||(a[6]=e=>l.value.from_address=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"发件人名称",prop:"from_name"},{default:t(()=>[o(n,{modelValue:l.value.from_name,"onUpdate:modelValue":a[7]||(a[7]=e=>l.value.from_name=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"收件人名称",prop:"to_name"},{default:t(()=>[o(n,{modelValue:l.value.to_name,"onUpdate:modelValue":a[8]||(a[8]=e=>l.value.to_name=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"收件人地址",prop:"to_address"},{default:t(()=>[o(n,{modelValue:l.value.to_address,"onUpdate:modelValue":a[9]||(a[9]=e=>l.value.to_address=e)},null,8,["modelValue"])]),_:1}),o(r,{label:" "},{default:t(()=>[o(g,{type:"primary",onClick:a[10]||(a[10]=e=>b(d.value))},{default:t(()=>[V("保存")]),_:1}),o(g,{type:"primary",onClick:a[11]||(a[11]=e=>w(d.value))},{default:t(()=>[V(" 发送测试邮件 ")]),_:1})]),_:1})]),_:1},8,["model"])),[[S,s.value]])}}});export{me as default}; diff --git a/public/assets/js/ChangeMailConfig-ClDW8ZY5.js.gz b/public/assets/js/ChangeMailConfig-ClDW8ZY5.js.gz new file mode 100644 index 0000000..7e72cf6 Binary files /dev/null and b/public/assets/js/ChangeMailConfig-ClDW8ZY5.js.gz differ diff --git a/public/assets/js/ChangeMailConfig-D_yPduVS.js.gz b/public/assets/js/ChangeMailConfig-D_yPduVS.js.gz deleted file mode 100644 index a269dd3..0000000 Binary files a/public/assets/js/ChangeMailConfig-D_yPduVS.js.gz and /dev/null differ diff --git a/public/assets/js/ChangeMainConfig-DuHdDpeJ.js b/public/assets/js/ChangeMainConfig-DuHdDpeJ.js new file mode 100644 index 0000000..51d750e --- /dev/null +++ b/public/assets/js/ChangeMainConfig-DuHdDpeJ.js @@ -0,0 +1,2 @@ +import{E as f,b as S,c as $,q as N,r as R,i as I,j as D,d as L,e as T,v as W}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as x,n as j}from"./index-BE2XYqVW.js";import{s as J}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{u as H}from"./changeConfigForm-D02j05Uv.js";import{d as K,m as O,I as Y,o as g,G as w,H as i,c as y,F as U,i as a,K as v,L as C}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as M,u as t}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const Q=()=>x.get("/admin/config/main"),X=m=>x.patch("/admin/config/main",m),Z=m=>x.post("/admin/config/main/testAuth",m),ve=K({__name:"ChangeMainConfig",props:["Mode"],setup(m){const p=M(!1),q=H(),{changeConfigForm:e}=J(q),V=M(null),A={name:[{required:!0,message:"请输入站点名称",trigger:"blur"}],sleep:[{required:!0,message:"请输入批量解析时休眠时间",trigger:"blur"}],max_once:[{required:!0,message:"请输入批量解析时单次最大解析数量",trigger:"blur"}],max_filesize:[{required:!0,message:"请输入单日单个账号最大解析大小",trigger:"blur"}],min_single_filesize:[{required:!0,message:"请输入可解析文件最小需要大小",trigger:"blur"}],max_single_filesize:[{required:!0,message:"请输入可解析文件最大可是大小",trigger:"blur"}],user_agent:[{required:!0,message:"请输入User_Agent",trigger:"blur"}]},b=async()=>{try{p.value=!0;const l=(await Q()).data;e.value={...l,max_filesize:l.max_filesize/1024**3,min_single_filesize:l.min_single_filesize/1024**3,max_single_filesize:l.max_single_filesize/1024**3,front_end_version:await j(),announce:l.announce.replaceAll("[NextLine]",` +`)}}finally{p.value=!1}},B=async d=>{if(!(!d||!await d.validate())){if(e.value.parse_mode===11&&!/^netdisk;/.test(e.value.user_agent)){f.error("User_Agent格式不正确, 请使用 netdisk;xxx");return}try{p.value=!0,await X({...e.value,max_filesize:e.value.max_filesize*1024**3,min_single_filesize:e.value.min_single_filesize*1024**3,max_single_filesize:e.value.max_single_filesize*1024**3}),f.success("保存成功")}finally{p.value=!1,await b()}}},E=async d=>{if(!(!d||!await d.validate()))try{p.value=!0;const l=await Z({...e.value,max_filesize:e.value.max_filesize*1024**3,min_single_filesize:e.value.min_single_filesize*1024**3,max_single_filesize:e.value.max_single_filesize*1024**3});"ip"in l.data?f.error(`未知授权码,当前ip为: ${l.data.ip}`):f.success(`测试通过,有效期至: ${l.data.expired_at}`)}finally{p.value=!1,await b()}};O(b);const z=()=>{let d="";switch(e.value.parse_mode){case 5:d="pan.baidu.com";break;case 1:case 8:d="netdisk;P2SP;3.0.10.22";break;case 6:case 7:d="netdisk;P2SP;3.0.20.4;netdisk;4.36.2;PC;PC-Windows;10.0.19045;UniBaiduYunGuanJia";break;case 2:case 9:d="netdisk;12.11.9;23049RAD8C;android-android;13;JSbridge4.4.0;jointBridge;1.1.0;";break;case 10:d="Mozilla/5.0 (94list-laravel;netdisk;svip)";break;case 11:d="netdisk;hklist";break;default:d="netdisk;P2SP;3.0.10.22";break}e.value.user_agent=d};return(d,l)=>{const u=S,n=$,r=N,_=R,s=I,F=D,k=L,P=T,G=W;return Y((g(),w(P,{ref_key:"changeConfigFormRef",ref:V,model:t(e),rules:A,"label-width":"auto"},{default:i(()=>[m.Mode==="main"?(g(),y(U,{key:0},[a(n,{label:"前端版本号",prop:"front_end_version"},{default:i(()=>[a(u,{disabled:"",modelValue:t(e).front_end_version,"onUpdate:modelValue":l[0]||(l[0]=o=>t(e).front_end_version=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"后端版本号",prop:"version"},{default:i(()=>[a(u,{disabled:"",modelValue:t(e).version,"onUpdate:modelValue":l[1]||(l[1]=o=>t(e).version=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"站点名称",prop:"name"},{default:i(()=>[a(u,{modelValue:t(e).name,"onUpdate:modelValue":l[2]||(l[2]=o=>t(e).name=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"公告内容",prop:"announce"},{default:i(()=>[a(u,{type:"textarea",modelValue:t(e).announce,"onUpdate:modelValue":l[3]||(l[3]=o=>t(e).announce=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"DEBUG模式开关",prop:"debug"},{default:i(()=>[a(r,{modelValue:t(e).debug,"onUpdate:modelValue":l[4]||(l[4]=o=>t(e).debug=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"邀请码开关",prop:"need_inv_code"},{default:i(()=>[a(r,{modelValue:t(e).need_inv_code,"onUpdate:modelValue":l[5]||(l[5]=o=>t(e).need_inv_code=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"白名单模式开关",prop:"whitelist_mode"},{default:i(()=>[a(r,{modelValue:t(e).whitelist_mode,"onUpdate:modelValue":l[6]||(l[6]=o=>t(e).whitelist_mode=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"展示版权信息",prop:"show_copyright"},{default:i(()=>[a(r,{modelValue:t(e).show_copyright,"onUpdate:modelValue":l[7]||(l[7]=o=>t(e).show_copyright=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"自定义版权",prop:"custom_copyright"},{default:i(()=>[a(u,{modelValue:t(e).custom_copyright,"onUpdate:modelValue":l[8]||(l[8]=o=>t(e).custom_copyright=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"卡密模式开关",prop:"token_mode"},{default:i(()=>[a(r,{modelValue:t(e).token_mode,"onUpdate:modelValue":l[9]||(l[9]=o=>t(e).token_mode=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"卡网跳转链接",prop:"button_link"},{default:i(()=>[a(u,{modelValue:t(e).button_link,"onUpdate:modelValue":l[10]||(l[10]=o=>t(e).button_link=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"显示登陆按钮",prop:"show_login_button"},{default:i(()=>[a(r,{modelValue:t(e).show_login_button,"onUpdate:modelValue":l[11]||(l[11]=o=>t(e).show_login_button=o),size:"large"},null,8,["modelValue"])]),_:1})],64)):v("",!0),m.Mode==="parse"?(g(),y(U,{key:1},[a(n,{label:"下载使用的 User_Agent",prop:"user_agent"},{default:i(()=>[a(u,{modelValue:t(e).user_agent,"onUpdate:modelValue":l[12]||(l[12]=o=>t(e).user_agent=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"批量解析时休眠时间(秒)",prop:"sleep"},{default:i(()=>[a(_,{modelValue:t(e).sleep,"onUpdate:modelValue":l[13]||(l[13]=o=>t(e).sleep=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"批量解析时单次最大解析数量(个)",prop:"max_once"},{default:i(()=>[a(_,{modelValue:t(e).max_once,"onUpdate:modelValue":l[14]||(l[14]=o=>t(e).max_once=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"单日单个账号最大解析大小(GB)",prop:"max_filesize"},{default:i(()=>[a(_,{modelValue:t(e).max_filesize,"onUpdate:modelValue":l[15]||(l[15]=o=>t(e).max_filesize=o),style:{width:"300px"}},null,8,["modelValue"])]),_:1}),a(n,{label:"可解析文件最小需要大小(GB)",prop:"min_single_filesize"},{default:i(()=>[a(_,{modelValue:t(e).min_single_filesize,"onUpdate:modelValue":l[16]||(l[16]=o=>t(e).min_single_filesize=o),style:{width:"300px"}},null,8,["modelValue"])]),_:1}),a(n,{label:"可解析文件最大可是大小(GB)",prop:"max_single_filesize"},{default:i(()=>[a(_,{modelValue:t(e).max_single_filesize,"onUpdate:modelValue":l[17]||(l[17]=o=>t(e).max_single_filesize=o),style:{width:"300px"}},null,8,["modelValue"])]),_:1}),a(n,{label:"解析密码",prop:"password"},{default:i(()=>[a(u,{modelValue:t(e).password,"onUpdate:modelValue":l[18]||(l[18]=o=>t(e).password=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"购买授权联系TG:"},{default:i(()=>[a(u,{disabled:"",value:"t.me/huan_kong"})]),_:1}),a(n,{label:"授权服务器",prop:"main_server"},{default:i(()=>[a(u,{modelValue:t(e).main_server,"onUpdate:modelValue":l[19]||(l[19]=o=>t(e).main_server=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"授权码",prop:"code"},{default:i(()=>[a(u,{modelValue:t(e).code,"onUpdate:modelValue":l[20]||(l[20]=o=>t(e).code=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"代理下载服务器",prop:"proxy_server"},{default:i(()=>[a(u,{modelValue:t(e).proxy_server,"onUpdate:modelValue":l[21]||(l[21]=o=>t(e).proxy_server=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"代理下载服务器密码",prop:"proxy_password"},{default:i(()=>[a(u,{modelValue:t(e).proxy_password,"onUpdate:modelValue":l[22]||(l[22]=o=>t(e).proxy_password=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"解析模式",prop:"parse_mode"},{default:i(()=>[a(F,{modelValue:t(e).parse_mode,"onUpdate:modelValue":l[23]||(l[23]=o=>t(e).parse_mode=o),onBlur:z,onChange:z},{default:i(()=>[a(s,{value:5,label:"V5盘内(开放平台接口)"}),a(s,{value:10,label:"V10盘内(开放平台接口)"}),a(s,{value:1,label:"V1盘内(原版V1,qdall下载可能失败,Windows)"}),a(s,{value:6,label:"V6盘内(改版V1,一定程度防风控)"}),a(s,{value:8,label:"V8盘内(改版V1,qdall下载可能失败,Android)"}),a(s,{value:2,label:"V2盘外(原版V2,qdall下载可能失败,Android)"}),a(s,{value:7,label:"V7盘外(改版V2,一定程度防风控)"}),a(s,{value:9,label:"V9盘外(改版V2,qdall下载可能失败,Windows)"}),a(s,{value:11,label:"V11盘内"})]),_:1},8,["modelValue"])]),_:1}),a(n,{label:"省份模式开关",prop:"limit_prov"},{default:i(()=>[a(r,{modelValue:t(e).limit_prov,"onUpdate:modelValue":l[24]||(l[24]=o=>t(e).limit_prov=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"仅限中国用户使用",prop:"limit_cn"},{default:i(()=>[a(r,{modelValue:t(e).limit_cn,"onUpdate:modelValue":l[25]||(l[25]=o=>t(e).limit_cn=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"卡密绑定ip",prop:"token_bind_ip"},{default:i(()=>[a(r,{modelValue:t(e).token_bind_ip,"onUpdate:modelValue":l[26]||(l[26]=o=>t(e).token_bind_ip=o),size:"large"},null,8,["modelValue"])]),_:1})],64)):v("",!0),a(n,{label:" "},{default:i(()=>[a(k,{type:"primary",onClick:l[27]||(l[27]=o=>B(V.value))},{default:i(()=>[C("保存")]),_:1}),m.Mode==="parse"?(g(),w(k,{key:0,type:"primary",onClick:l[28]||(l[28]=o=>E(V.value))},{default:i(()=>[C(" 测试授权 ")]),_:1})):v("",!0)]),_:1})]),_:1},8,["model"])),[[G,p.value]])}}});export{ve as default}; diff --git a/public/assets/js/ChangeMainConfig-DuHdDpeJ.js.gz b/public/assets/js/ChangeMainConfig-DuHdDpeJ.js.gz new file mode 100644 index 0000000..5bade48 Binary files /dev/null and b/public/assets/js/ChangeMainConfig-DuHdDpeJ.js.gz differ diff --git a/public/assets/js/ChangeMainConfig-l2rllipF.js b/public/assets/js/ChangeMainConfig-l2rllipF.js deleted file mode 100644 index c54dcfd..0000000 --- a/public/assets/js/ChangeMainConfig-l2rllipF.js +++ /dev/null @@ -1,2 +0,0 @@ -import{E as f,b as S,c as $,q as N,r as R,i as I,j as D,d as L,e as T,v as W}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as x,n as j}from"./index-BrpDzfc2.js";import{s as J}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{u as H}from"./changeConfigForm-GjgVryLW.js";import{d as K,m as O,I as Y,o as g,G as w,H as i,c as y,F as U,i as a,K as v,L as C}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as M,u as t}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const Q=()=>x.get("/admin/config/main"),X=m=>x.patch("/admin/config/main",m),Z=m=>x.post("/admin/config/main/testAuth",m),ve=K({__name:"ChangeMainConfig",props:["Mode"],setup(m){const p=M(!1),q=H(),{changeConfigForm:e}=J(q),V=M(null),A={name:[{required:!0,message:"请输入站点名称",trigger:"blur"}],sleep:[{required:!0,message:"请输入批量解析时休眠时间",trigger:"blur"}],max_once:[{required:!0,message:"请输入批量解析时单次最大解析数量",trigger:"blur"}],max_filesize:[{required:!0,message:"请输入单日单个账号最大解析大小",trigger:"blur"}],min_single_filesize:[{required:!0,message:"请输入可解析文件最小需要大小",trigger:"blur"}],max_single_filesize:[{required:!0,message:"请输入可解析文件最大可是大小",trigger:"blur"}],user_agent:[{required:!0,message:"请输入User_Agent",trigger:"blur"}]},b=async()=>{try{p.value=!0;const l=(await Q()).data;e.value={...l,max_filesize:l.max_filesize/1024**3,min_single_filesize:l.min_single_filesize/1024**3,max_single_filesize:l.max_single_filesize/1024**3,front_end_version:await j(),announce:l.announce.replaceAll("[NextLine]",` -`)}}finally{p.value=!1}},B=async d=>{if(!(!d||!await d.validate())){if(e.value.parse_mode===11&&!/^netdisk;/.test(e.value.user_agent)){f.error("User_Agent格式不正确, 请使用 netdisk;xxx");return}try{p.value=!0,await X({...e.value,max_filesize:e.value.max_filesize*1024**3,min_single_filesize:e.value.min_single_filesize*1024**3,max_single_filesize:e.value.max_single_filesize*1024**3}),f.success("保存成功")}finally{p.value=!1,await b()}}},E=async d=>{if(!(!d||!await d.validate()))try{p.value=!0;const l=await Z({...e.value,max_filesize:e.value.max_filesize*1024**3,min_single_filesize:e.value.min_single_filesize*1024**3,max_single_filesize:e.value.max_single_filesize*1024**3});"ip"in l.data?f.error(`未知授权码,当前ip为: ${l.data.ip}`):f.success(`测试通过,有效期至: ${l.data.expired_at}`)}finally{p.value=!1,await b()}};O(b);const z=()=>{let d="";switch(e.value.parse_mode){case 5:d="pan.baidu.com";break;case 1:case 8:d="netdisk;P2SP;3.0.10.22";break;case 6:case 7:d="netdisk;P2SP;3.0.10.22;netdisk;4.32.1;PC;PC-Windows;10.0.19045;UniBaiduYunGuanJia";break;case 2:case 9:d="netdisk;12.11.9;23049RAD8C;android-android;13;JSbridge4.4.0;jointBridge;1.1.0;";break;case 10:d="Mozilla/5.0 (94list-laravel;netdisk;svip)";break;case 11:d="netdisk;hklist";break;default:d="netdisk;P2SP;3.0.10.22";break}e.value.user_agent=d};return(d,l)=>{const u=S,n=$,r=N,_=R,s=I,F=D,k=L,P=T,G=W;return Y((g(),w(P,{ref_key:"changeConfigFormRef",ref:V,model:t(e),rules:A,"label-width":"auto"},{default:i(()=>[m.Mode==="main"?(g(),y(U,{key:0},[a(n,{label:"前端版本号",prop:"front_end_version"},{default:i(()=>[a(u,{disabled:"",modelValue:t(e).front_end_version,"onUpdate:modelValue":l[0]||(l[0]=o=>t(e).front_end_version=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"后端版本号",prop:"version"},{default:i(()=>[a(u,{disabled:"",modelValue:t(e).version,"onUpdate:modelValue":l[1]||(l[1]=o=>t(e).version=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"站点名称",prop:"name"},{default:i(()=>[a(u,{modelValue:t(e).name,"onUpdate:modelValue":l[2]||(l[2]=o=>t(e).name=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"公告内容",prop:"announce"},{default:i(()=>[a(u,{type:"textarea",modelValue:t(e).announce,"onUpdate:modelValue":l[3]||(l[3]=o=>t(e).announce=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"DEBUG模式开关",prop:"debug"},{default:i(()=>[a(r,{modelValue:t(e).debug,"onUpdate:modelValue":l[4]||(l[4]=o=>t(e).debug=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"邀请码开关",prop:"need_inv_code"},{default:i(()=>[a(r,{modelValue:t(e).need_inv_code,"onUpdate:modelValue":l[5]||(l[5]=o=>t(e).need_inv_code=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"白名单模式开关",prop:"whitelist_mode"},{default:i(()=>[a(r,{modelValue:t(e).whitelist_mode,"onUpdate:modelValue":l[6]||(l[6]=o=>t(e).whitelist_mode=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"展示版权信息",prop:"show_copyright"},{default:i(()=>[a(r,{modelValue:t(e).show_copyright,"onUpdate:modelValue":l[7]||(l[7]=o=>t(e).show_copyright=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"自定义版权",prop:"custom_copyright"},{default:i(()=>[a(u,{modelValue:t(e).custom_copyright,"onUpdate:modelValue":l[8]||(l[8]=o=>t(e).custom_copyright=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"卡密模式开关",prop:"token_mode"},{default:i(()=>[a(r,{modelValue:t(e).token_mode,"onUpdate:modelValue":l[9]||(l[9]=o=>t(e).token_mode=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"卡网跳转链接",prop:"button_link"},{default:i(()=>[a(u,{modelValue:t(e).button_link,"onUpdate:modelValue":l[10]||(l[10]=o=>t(e).button_link=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"显示登陆按钮",prop:"show_login_button"},{default:i(()=>[a(r,{modelValue:t(e).show_login_button,"onUpdate:modelValue":l[11]||(l[11]=o=>t(e).show_login_button=o),size:"large"},null,8,["modelValue"])]),_:1})],64)):v("",!0),m.Mode==="parse"?(g(),y(U,{key:1},[a(n,{label:"下载使用的 User_Agent",prop:"user_agent"},{default:i(()=>[a(u,{modelValue:t(e).user_agent,"onUpdate:modelValue":l[12]||(l[12]=o=>t(e).user_agent=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"批量解析时休眠时间(秒)",prop:"sleep"},{default:i(()=>[a(_,{modelValue:t(e).sleep,"onUpdate:modelValue":l[13]||(l[13]=o=>t(e).sleep=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"批量解析时单次最大解析数量(个)",prop:"max_once"},{default:i(()=>[a(_,{modelValue:t(e).max_once,"onUpdate:modelValue":l[14]||(l[14]=o=>t(e).max_once=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"单日单个账号最大解析大小(GB)",prop:"max_filesize"},{default:i(()=>[a(_,{modelValue:t(e).max_filesize,"onUpdate:modelValue":l[15]||(l[15]=o=>t(e).max_filesize=o),style:{width:"300px"}},null,8,["modelValue"])]),_:1}),a(n,{label:"可解析文件最小需要大小(GB)",prop:"min_single_filesize"},{default:i(()=>[a(_,{modelValue:t(e).min_single_filesize,"onUpdate:modelValue":l[16]||(l[16]=o=>t(e).min_single_filesize=o),style:{width:"300px"}},null,8,["modelValue"])]),_:1}),a(n,{label:"可解析文件最大可是大小(GB)",prop:"max_single_filesize"},{default:i(()=>[a(_,{modelValue:t(e).max_single_filesize,"onUpdate:modelValue":l[17]||(l[17]=o=>t(e).max_single_filesize=o),style:{width:"300px"}},null,8,["modelValue"])]),_:1}),a(n,{label:"解析密码",prop:"password"},{default:i(()=>[a(u,{modelValue:t(e).password,"onUpdate:modelValue":l[18]||(l[18]=o=>t(e).password=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"购买授权联系TG:"},{default:i(()=>[a(u,{disabled:"",value:"t.me/huan_kong"})]),_:1}),a(n,{label:"授权服务器",prop:"main_server"},{default:i(()=>[a(u,{modelValue:t(e).main_server,"onUpdate:modelValue":l[19]||(l[19]=o=>t(e).main_server=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"授权码",prop:"code"},{default:i(()=>[a(u,{modelValue:t(e).code,"onUpdate:modelValue":l[20]||(l[20]=o=>t(e).code=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"代理下载服务器",prop:"proxy_server"},{default:i(()=>[a(u,{modelValue:t(e).proxy_server,"onUpdate:modelValue":l[21]||(l[21]=o=>t(e).proxy_server=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"代理下载服务器密码",prop:"proxy_password"},{default:i(()=>[a(u,{modelValue:t(e).proxy_password,"onUpdate:modelValue":l[22]||(l[22]=o=>t(e).proxy_password=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"解析模式",prop:"parse_mode"},{default:i(()=>[a(F,{modelValue:t(e).parse_mode,"onUpdate:modelValue":l[23]||(l[23]=o=>t(e).parse_mode=o),onBlur:z,onChange:z},{default:i(()=>[a(s,{value:5,label:"V5盘内(开放平台接口)"}),a(s,{value:10,label:"V10盘内(开放平台接口)"}),a(s,{value:1,label:"V1盘内(原版V1,qdall下载可能失败,Windows)"}),a(s,{value:6,label:"V6盘内(改版V1,一定程度防风控)"}),a(s,{value:8,label:"V8盘内(改版V1,qdall下载可能失败,Android)"}),a(s,{value:2,label:"V2盘外(原版V2,qdall下载可能失败,Android)"}),a(s,{value:7,label:"V7盘外(改版V2,一定程度防风控)"}),a(s,{value:9,label:"V9盘外(改版V2,qdall下载可能失败,Windows)"}),a(s,{value:11,label:"V11盘内"})]),_:1},8,["modelValue"])]),_:1}),a(n,{label:"省份模式开关",prop:"limit_prov"},{default:i(()=>[a(r,{modelValue:t(e).limit_prov,"onUpdate:modelValue":l[24]||(l[24]=o=>t(e).limit_prov=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"仅限中国用户使用",prop:"limit_cn"},{default:i(()=>[a(r,{modelValue:t(e).limit_cn,"onUpdate:modelValue":l[25]||(l[25]=o=>t(e).limit_cn=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"卡密绑定ip",prop:"token_bind_ip"},{default:i(()=>[a(r,{modelValue:t(e).token_bind_ip,"onUpdate:modelValue":l[26]||(l[26]=o=>t(e).token_bind_ip=o),size:"large"},null,8,["modelValue"])]),_:1})],64)):v("",!0),a(n,{label:" "},{default:i(()=>[a(k,{type:"primary",onClick:l[27]||(l[27]=o=>B(V.value))},{default:i(()=>[C("保存")]),_:1}),m.Mode==="parse"?(g(),w(k,{key:0,type:"primary",onClick:l[28]||(l[28]=o=>E(V.value))},{default:i(()=>[C(" 测试授权 ")]),_:1})):v("",!0)]),_:1})]),_:1},8,["model"])),[[G,p.value]])}}});export{ve as default}; diff --git a/public/assets/js/ChangeMainConfig-l2rllipF.js.gz b/public/assets/js/ChangeMainConfig-l2rllipF.js.gz deleted file mode 100644 index 28d6158..0000000 Binary files a/public/assets/js/ChangeMainConfig-l2rllipF.js.gz and /dev/null differ diff --git a/public/assets/js/DownloadLinks-B5rVMfXv.js.gz b/public/assets/js/DownloadLinks-B5rVMfXv.js.gz deleted file mode 100644 index 711b110..0000000 Binary files a/public/assets/js/DownloadLinks-B5rVMfXv.js.gz and /dev/null differ diff --git a/public/assets/js/DownloadLinks-B5rVMfXv.js b/public/assets/js/DownloadLinks-D1mfWYmi.js similarity index 95% rename from public/assets/js/DownloadLinks-B5rVMfXv.js rename to public/assets/js/DownloadLinks-D1mfWYmi.js index 86ca21a..ae58435 100644 --- a/public/assets/js/DownloadLinks-B5rVMfXv.js +++ b/public/assets/js/DownloadLinks-D1mfWYmi.js @@ -1 +1 @@ -import{E as r,d as M,n as R,m as G,p as H,o as I,k as P}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as D,a as x}from"./index-BrpDzfc2.js";import{u as q}from"./aria2Store-B9s7DO4c.js";import{u as J}from"./fileListStore-CTDvCN_1.js";import{c as A}from"./copy-By2guqEs.js";import{s as E}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{d as K,o as p,G as f,H as a,i as o,L as s,c as O,F as Q,a as k}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as W,u as _,a as X}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as C}from"./@vue_shared@3.4.32-CaCWPAm8.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const Y=h=>new Promise(u=>setTimeout(u,h)),Z=k("h3",null,[s("下载请推荐使用Aria2下载器,如 "),k("a",{href:"https://motrix.app/",target:"_blank"},"Motrix")],-1),w=k("h3",null,"IDM下载需要手动指定UA,点击即可复制",-1),ee=k("h3",null,"如果当前链接下载失败,请尝试更换链接,如果全部不可用可以单独重新解析单个文件",-1),$e=K({__name:"DownloadLinks",setup(h){const u=J(),{downloadLinks:g,dialogVisible:y}=E(u),v=W([]),L=t=>v.value=t,V=q(),{aria2ConfigForm:i,aria2ConfigDialogVisible:F}=E(V),b=async t=>{try{await D.post(`${i.value.host}:${i.value.port}/jsonrpc`,{jsonrpc:"2.0",id:x(),method:"aria2.getVersion",params:[`token:${i.value.token}`]})}catch{return r.error("检查 Aria2 服务状态失败")}try{await D.post(`${i.value.host}:${i.value.port}/jsonrpc`,{jsonrpc:"2.0",id:x(),method:"aria2.addUri",params:[`token:${i.value.token}`,[t.urls?t.urls[t.index]:t.url],{out:t.filename,header:[`User-Agent: ${t.ua}`]}]})}catch{return r.error("发送失败, 请检查控制台输出, 自行谷歌搜索或提交issue")}r.success(`已把${t.filename}任务发送给下载器`)},S=async()=>{r.error("请确保最大同时下载文件数在5及以下,否则可能出现下载失败!"),await Y(3e3),r.success("开始下载"),v.value.forEach(t=>b(t))},U=()=>F.value=!0,$=async(t,l)=>{const n=await u.getDownloadLinks(l,!0);if(!n)return r.error("重新解析失败");g.value[t]=n[0]},z=t=>{g.value[t].index++};return(t,l)=>{const n=M,B=R,c=G,T=H,j=I,N=P;return p(),f(N,{title:"链接列表",modelValue:_(y),"onUpdate:modelValue":l[2]||(l[2]=e=>X(y)?y.value=e:null),"align-center":"","show-close":"","close-on-click-modal":!1},{default:a(()=>[Z,w,ee,o(B,null,{default:a(()=>[o(n,{type:"primary",disabled:v.value.length<=0,onClick:l[0]||(l[0]=e=>S())},{default:a(()=>[s(" 批量下载 ")]),_:1},8,["disabled"]),o(n,{type:"primary",onClick:l[1]||(l[1]=e=>U())},{default:a(()=>[s("下载配置")]),_:1})]),_:1}),o(j,{border:"","show-overflow-tooltip":"",class:"table",data:_(g),onSelectionChange:L},{default:a(()=>[o(c,{type:"selection",width:"40"}),o(c,{prop:"ua",label:"UA"},{default:a(({row:e})=>[o(T,{type:"danger",onClick:m=>_(A)(e.ua,"已复制UA")},{default:a(()=>[s(C(e.ua??e.url),1)]),_:2},1032,["onClick"])]),_:1}),o(c,{prop:"filename",label:"文件名"}),o(c,{prop:"url",label:"下载链接"},{default:a(({row:e})=>[s(C(e.urls?e.urls[e.index]:e.url),1)]),_:1}),o(c,{label:"操作",width:"400"},{default:a(({row:e,$index:m})=>[o(n,{type:"primary",size:"small",onClick:d=>_(A)(e.urls?e.urls[e.index]:e.url,"已将链接复制到粘贴板内")},{default:a(()=>[s(" 复制链接 ")]),_:2},1032,["onClick"]),o(n,{type:"primary",size:"small",onClick:d=>b(e)},{default:a(()=>[s(" 发送Aria2 ")]),_:2},1032,["onClick"]),e.urls?(p(),O(Q,{key:0},[e.indexz(m)},{default:a(()=>[s(" 更换链接 (当前第"+C(e.index+1)+"条链接) ",1)]),_:2},1032,["onClick"])):(p(),f(n,{key:1,type:"danger",size:"small",onClick:d=>$(m,e.fs_id)},{default:a(()=>[s(" 重新解析 ")]),_:2},1032,["onClick"]))],64)):(p(),f(n,{key:1,type:"danger",size:"small",onClick:d=>$(m,e.fs_id)},{default:a(()=>[s(" 重新解析 ")]),_:2},1032,["onClick"]))]),_:1})]),_:1},8,["data"])]),_:1},8,["modelValue"])}}});export{$e as default}; +import{E as r,d as M,n as R,m as G,p as H,o as I,k as P}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as D,a as x}from"./index-BE2XYqVW.js";import{u as q}from"./aria2Store-P2WeHPdx.js";import{u as J}from"./fileListStore-CjKNV6Yt.js";import{c as A}from"./copy-By2guqEs.js";import{s as E}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{d as K,o as p,G as f,H as a,i as o,L as s,c as O,F as Q,a as k}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as W,u as _,a as X}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as C}from"./@vue_shared@3.4.32-CaCWPAm8.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const Y=h=>new Promise(u=>setTimeout(u,h)),Z=k("h3",null,[s("下载请推荐使用Aria2下载器,如 "),k("a",{href:"https://motrix.app/",target:"_blank"},"Motrix")],-1),w=k("h3",null,"IDM下载需要手动指定UA,点击即可复制",-1),ee=k("h3",null,"如果当前链接下载失败,请尝试更换链接,如果全部不可用可以单独重新解析单个文件",-1),$e=K({__name:"DownloadLinks",setup(h){const u=J(),{downloadLinks:g,dialogVisible:y}=E(u),v=W([]),L=t=>v.value=t,V=q(),{aria2ConfigForm:i,aria2ConfigDialogVisible:F}=E(V),b=async t=>{try{await D.post(`${i.value.host}:${i.value.port}/jsonrpc`,{jsonrpc:"2.0",id:x(),method:"aria2.getVersion",params:[`token:${i.value.token}`]})}catch{return r.error("检查 Aria2 服务状态失败")}try{await D.post(`${i.value.host}:${i.value.port}/jsonrpc`,{jsonrpc:"2.0",id:x(),method:"aria2.addUri",params:[`token:${i.value.token}`,[t.urls?t.urls[t.index]:t.url],{out:t.filename,header:[`User-Agent: ${t.ua}`]}]})}catch{return r.error("发送失败, 请检查控制台输出, 自行谷歌搜索或提交issue")}r.success(`已把${t.filename}任务发送给下载器`)},S=async()=>{r.error("请确保最大同时下载文件数在5及以下,否则可能出现下载失败!"),await Y(3e3),r.success("开始下载"),v.value.forEach(t=>b(t))},U=()=>F.value=!0,$=async(t,l)=>{const n=await u.getDownloadLinks(l,!0);if(!n)return r.error("重新解析失败");g.value[t]=n[0]},z=t=>{g.value[t].index++};return(t,l)=>{const n=M,B=R,c=G,T=H,j=I,N=P;return p(),f(N,{title:"链接列表",modelValue:_(y),"onUpdate:modelValue":l[2]||(l[2]=e=>X(y)?y.value=e:null),"align-center":"","show-close":"","close-on-click-modal":!1},{default:a(()=>[Z,w,ee,o(B,null,{default:a(()=>[o(n,{type:"primary",disabled:v.value.length<=0,onClick:l[0]||(l[0]=e=>S())},{default:a(()=>[s(" 批量下载 ")]),_:1},8,["disabled"]),o(n,{type:"primary",onClick:l[1]||(l[1]=e=>U())},{default:a(()=>[s("下载配置")]),_:1})]),_:1}),o(j,{border:"","show-overflow-tooltip":"",class:"table",data:_(g),onSelectionChange:L},{default:a(()=>[o(c,{type:"selection",width:"40"}),o(c,{prop:"ua",label:"UA"},{default:a(({row:e})=>[o(T,{type:"danger",onClick:m=>_(A)(e.ua,"已复制UA")},{default:a(()=>[s(C(e.ua??e.url),1)]),_:2},1032,["onClick"])]),_:1}),o(c,{prop:"filename",label:"文件名"}),o(c,{prop:"url",label:"下载链接"},{default:a(({row:e})=>[s(C(e.urls?e.urls[e.index]:e.url),1)]),_:1}),o(c,{label:"操作",width:"400"},{default:a(({row:e,$index:m})=>[o(n,{type:"primary",size:"small",onClick:d=>_(A)(e.urls?e.urls[e.index]:e.url,"已将链接复制到粘贴板内")},{default:a(()=>[s(" 复制链接 ")]),_:2},1032,["onClick"]),o(n,{type:"primary",size:"small",onClick:d=>b(e)},{default:a(()=>[s(" 发送Aria2 ")]),_:2},1032,["onClick"]),e.urls?(p(),O(Q,{key:0},[e.indexz(m)},{default:a(()=>[s(" 更换链接 (当前第"+C(e.index+1)+"条链接) ",1)]),_:2},1032,["onClick"])):(p(),f(n,{key:1,type:"danger",size:"small",onClick:d=>$(m,e.fs_id)},{default:a(()=>[s(" 重新解析 ")]),_:2},1032,["onClick"]))],64)):(p(),f(n,{key:1,type:"danger",size:"small",onClick:d=>$(m,e.fs_id)},{default:a(()=>[s(" 重新解析 ")]),_:2},1032,["onClick"]))]),_:1})]),_:1},8,["data"])]),_:1},8,["modelValue"])}}});export{$e as default}; diff --git a/public/assets/js/DownloadLinks-D1mfWYmi.js.gz b/public/assets/js/DownloadLinks-D1mfWYmi.js.gz new file mode 100644 index 0000000..8cc7064 Binary files /dev/null and b/public/assets/js/DownloadLinks-D1mfWYmi.js.gz differ diff --git a/public/assets/js/GetFileList-BHH6U9wx.js.gz b/public/assets/js/GetFileList-BHH6U9wx.js.gz deleted file mode 100644 index 04625cf..0000000 Binary files a/public/assets/js/GetFileList-BHH6U9wx.js.gz and /dev/null differ diff --git a/public/assets/js/GetFileList-BHH6U9wx.js b/public/assets/js/GetFileList-ks6g1pZh.js similarity index 98% rename from public/assets/js/GetFileList-BHH6U9wx.js rename to public/assets/js/GetFileList-ks6g1pZh.js index c790636..7af3758 100644 --- a/public/assets/js/GetFileList-BHH6U9wx.js +++ b/public/assets/js/GetFileList-ks6g1pZh.js @@ -1 +1 @@ -import{E as D,l as ee,b as te,c as le,d as oe,e as se,a as ae,v as re}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{u as ne}from"./fileListStore-CTDvCN_1.js";import{u as ie,a as ue,c as T,g as I}from"./index-BrpDzfc2.js";import{c as de}from"./copy-By2guqEs.js";import{f as N}from"./format-CyW-QbYa.js";import{i as pe}from"./isMobile-BD0f7XPI.js";import{s as Z}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{u as me}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as ce,m as fe,n as _e,I as ge,o as r,G as d,H as a,a as g,K as m,c as V,L as v,i as n,F as $}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as C,u as e}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as y}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as ve}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const ye={key:0},ke={key:1},we=["src"],be=ce({__name:"GetFileList",setup(Ve){const M=C("right");pe()&&(M.value="top");const k=ne(),{pending:G,getFileListForm:o,getFileListFormRef:S,selectedRows:P,limitForm:_,limitMessage:U,vcode:w,downloadLinks:E,dialogVisible:q}=Z(k),B=ie(),{config:f}=Z(B),H=(l,t,i)=>t===""?i(new Error("请先输入需要解析的链接")):x(t)?i():i(new Error("请输入合法的链接")),K=()=>{o.value.dir="/",o.value.surl="";const l=x(o.value.url);l&&(l.id&&(l.surl?(o.value.url=`https://pan.baidu.com/share/init?surl=${l.id}`,o.value.surl=`1${l.id}`):(o.value.url=`https://pan.baidu.com/s/${l.id}`,o.value.surl=l.id)),l.pwd&&(o.value.pwd=l.pwd,D.success("已自动填写密码")))},x=l=>{const t=l.match(/s\/([a-zA-Z0-9_-]+)/),i=l.match(/surl=([a-zA-Z0-9_-]+)/),p=l.match(/\?pwd=([a-zA-Z0-9_-]+)/),u=l.match(/&pwd=([a-zA-Z0-9_-]+)/),c=l.match(/提取码[::]\s?([a-zA-Z0-9_-]+)/);let b;if(i)b=i[1];else if(t)b=t[1];else return!1;const L=p?p[1]:u?u[1]:c?c[1]:null;return i?{surl:!0,id:b,pwd:L}:{id:b,pwd:L}},j={url:[{required:!0,validator:H,trigger:"blur"}]},J=async l=>{if(!l||!await l.validate())return;const t=new URLSearchParams;t.set("url",o.value.url),t.set("surl",o.value.surl),t.set("pwd",o.value.pwd),t.set("dir",o.value.dir),de(`${location.host}/?${t.toString()}`,"复制成功")};fe(()=>{_e(()=>{const l=new URLSearchParams(location.search);if(l.size<4)return;const t=l.get("url"),i=l.get("pwd"),p=l.get("dir"),u=l.get("surl");!t||!i||!p||!u||(o.value={url:t,pwd:i,dir:p,surl:u},D.success("已读取到参数,正在加载"),setTimeout(k.getFileList,500))}),k.getLimit(),z()});const A=me(),O=()=>A.push("/login"),Q=()=>A.push("/admin"),W=l=>window.open(l),R=C(0),z=()=>R.value=Date.now(),h=()=>E.value=[],F=C(!1),X=()=>{o.value.token!==""?F.value=!0:F.value=!1,k.getLimit()};return(l,t)=>{const i=ee,p=te,u=le,c=oe,b=se,L=ae,Y=re;return ge((r(),d(L,null,{default:a(()=>[g("h2",null,"前台解析中心 | "+y(e(ue)()),1),e(f).show_copyright?(r(),d(i,{key:0,"show-icon":"",type:"warning",closable:!1,title:e(f).custom_copyright},null,8,["title"])):m("",!0),e(f).have_account?(r(),d(i,{key:1,closable:!1,class:"alert",title:"当前中转账号充足",type:"success"})):(r(),d(i,{key:2,closable:!1,class:"alert",title:"当前中转账号不足",type:"error"})),e(f).debug?(r(),d(i,{key:3,class:"alert",title:"当前网站开启了DEBUG模式,非调试请关闭!!!!",type:"error",closable:!1})):m("",!0),e(f).is_https?m("",!0):(r(),d(i,{key:4,class:"alert",title:"当前网站未开启SSL,可能出现无法请求Aria2服务器的问题",type:"error",closable:!1})),e(U)===""?(r(),d(i,{key:5,class:"alert",type:"success",closable:!1},{default:a(()=>[F.value?(r(),V("span",ye,[g("span",null,"当前卡密: "+y(e(_).group_name),1),g("span",null,"剩余可解析文件数: "+y(e(_).count),1),g("span",null,"剩余可解析大小: "+y(e(N)(e(_).size)),1),g("span",null," 到期时间: "+y(e(_).expired_at==="未使用"?e(_).expired_at:new Date(e(_).expired_at??0).toLocaleString()),1)])):(r(),V("span",ke,[g("span",null,"当前用户组: "+y(e(_).group_name),1),g("span",null,"剩余可解析文件数: "+y(e(_).count),1),g("span",null,"剩余可解析大小: "+y(e(N)(e(_).size)),1)]))]),_:1})):(r(),d(i,{key:6,class:"alert",type:"error",closable:!1},{default:a(()=>[v(y(e(U)??"未知错误"),1)]),_:1})),n(b,{ref_key:"getFileListFormRef",ref:S,model:e(o),rules:j,"label-width":"auto",class:"form","label-position":M.value},{default:a(()=>[n(u,{label:"链接",prop:"url"},{default:a(()=>[n(p,{modelValue:e(o).url,"onUpdate:modelValue":t[0]||(t[0]=s=>e(o).url=s),modelModifiers:{trim:!0},onChange:t[1]||(t[1]=s=>h()),onBlur:t[2]||(t[2]=s=>K())},null,8,["modelValue"])]),_:1}),n(u,{label:"密码",prop:"pwd"},{default:a(()=>[n(p,{modelValue:e(o).pwd,"onUpdate:modelValue":t[3]||(t[3]=s=>e(o).pwd=s),modelModifiers:{trim:!0},onChange:t[4]||(t[4]=s=>h())},null,8,["modelValue"])]),_:1}),e(f).need_password?(r(),d(u,{key:0,label:"解析密码",prop:"password"},{default:a(()=>[n(p,{modelValue:e(o).password,"onUpdate:modelValue":t[5]||(t[5]=s=>e(o).password=s),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1})):m("",!0),e(f).token_mode?(r(),d(u,{key:1,label:"卡密(不用留空即可)",prop:"token"},{default:a(()=>[n(p,{modelValue:e(o).token,"onUpdate:modelValue":t[6]||(t[6]=s=>e(o).token=s),modelModifiers:{trim:!0},onBlur:X},null,8,["modelValue"])]),_:1})):m("",!0),n(u,{label:"当前路径",prop:"dir"},{default:a(()=>[n(p,{modelValue:e(o).dir,"onUpdate:modelValue":t[7]||(t[7]=s=>e(o).dir=s),disabled:""},null,8,["modelValue"])]),_:1}),e(w).hit_captcha?(r(),V($,{key:2},[n(u,{label:"验证码编号",prop:"vcode_str"},{default:a(()=>[n(p,{modelValue:e(w).vcode_str,"onUpdate:modelValue":t[8]||(t[8]=s=>e(w).vcode_str=s),disabled:""},null,8,["modelValue"])]),_:1}),n(u,{label:"验证码图片",prop:"vcode_img"},{default:a(()=>[g("img",{src:`${e(w).vcode_img}&t=${R.value}`,alt:"验证码图片",onClick:z},null,8,we)]),_:1}),n(u,{label:"验证码字符",prop:"vcode_input"},{default:a(()=>[n(p,{modelValue:e(w).vcode_input,"onUpdate:modelValue":t[9]||(t[9]=s=>e(w).vcode_input=s)},null,8,["modelValue"])]),_:1})],64)):m("",!0),e(T)()==="admin"?(r(),d(u,{key:3,label:"解析账号id,多个使用,分割",prop:"account_ids"},{default:a(()=>[n(p,{modelValue:e(o).account_ids,"onUpdate:modelValue":t[10]||(t[10]=s=>e(o).account_ids=s)},null,8,["modelValue"])]),_:1})):m("",!0),n(u,{label:" ",class:"buttons"},{default:a(()=>[n(c,{type:"primary",onClick:t[11]||(t[11]=s=>e(k).getFileList())},{default:a(()=>[v("获取/刷新列表")]),_:1}),n(c,{type:"primary",disabled:e(P).length<=0,onClick:t[12]||(t[12]=s=>e(k).getDownloadLinks())},{default:a(()=>[v(" 批量解析 ")]),_:1},8,["disabled"]),n(c,{type:"primary",onClick:t[13]||(t[13]=s=>J(e(S)))},{default:a(()=>[v("复制当前地址")]),_:1}),e(E).length!==0?(r(),d(c,{key:0,type:"primary",onClick:t[14]||(t[14]=s=>q.value=!0)},{default:a(()=>[v(" 重新显示下载链接 ")]),_:1})):m("",!0),e(f).button_link!==""?(r(),d(c,{key:1,type:"primary",onClick:t[15]||(t[15]=s=>W(e(f).button_link))},{default:a(()=>[v(" 前往购买卡密 ")]),_:1})):m("",!0),e(f).show_login_button?(r(),V($,{key:2},[e(I)()==="0"?(r(),d(c,{key:0,type:"primary",onClick:t[16]||(t[16]=s=>O())},{default:a(()=>[v("登陆")]),_:1})):m("",!0),e(I)()==="1"?(r(),V($,{key:1},[e(T)()==="admin"?(r(),d(c,{key:0,type:"primary",onClick:t[17]||(t[17]=s=>Q())},{default:a(()=>[v(" 进入后台 ")]),_:1})):m("",!0),n(c,{type:"danger",onClick:t[18]||(t[18]=s=>e(B).logout())},{default:a(()=>[v(" 注销 ")]),_:1})],64)):m("",!0)],64)):m("",!0)]),_:1})]),_:1},8,["model","label-position"])]),_:1})),[[Y,e(G)]])}}}),je=ve(be,[["__scopeId","data-v-cd0f8a9c"]]);export{je as default}; +import{E as D,l as ee,b as te,c as le,d as oe,e as se,a as ae,v as re}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{u as ne}from"./fileListStore-CjKNV6Yt.js";import{u as ie,a as ue,c as T,g as I}from"./index-BE2XYqVW.js";import{c as de}from"./copy-By2guqEs.js";import{f as N}from"./format-CyW-QbYa.js";import{i as pe}from"./isMobile-BD0f7XPI.js";import{s as Z}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{u as me}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as ce,m as fe,n as _e,I as ge,o as r,G as d,H as a,a as g,K as m,c as V,L as v,i as n,F as $}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as C,u as e}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as y}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as ve}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const ye={key:0},ke={key:1},we=["src"],be=ce({__name:"GetFileList",setup(Ve){const M=C("right");pe()&&(M.value="top");const k=ne(),{pending:G,getFileListForm:o,getFileListFormRef:S,selectedRows:P,limitForm:_,limitMessage:U,vcode:w,downloadLinks:E,dialogVisible:q}=Z(k),B=ie(),{config:f}=Z(B),H=(l,t,i)=>t===""?i(new Error("请先输入需要解析的链接")):x(t)?i():i(new Error("请输入合法的链接")),K=()=>{o.value.dir="/",o.value.surl="";const l=x(o.value.url);l&&(l.id&&(l.surl?(o.value.url=`https://pan.baidu.com/share/init?surl=${l.id}`,o.value.surl=`1${l.id}`):(o.value.url=`https://pan.baidu.com/s/${l.id}`,o.value.surl=l.id)),l.pwd&&(o.value.pwd=l.pwd,D.success("已自动填写密码")))},x=l=>{const t=l.match(/s\/([a-zA-Z0-9_-]+)/),i=l.match(/surl=([a-zA-Z0-9_-]+)/),p=l.match(/\?pwd=([a-zA-Z0-9_-]+)/),u=l.match(/&pwd=([a-zA-Z0-9_-]+)/),c=l.match(/提取码[::]\s?([a-zA-Z0-9_-]+)/);let b;if(i)b=i[1];else if(t)b=t[1];else return!1;const L=p?p[1]:u?u[1]:c?c[1]:null;return i?{surl:!0,id:b,pwd:L}:{id:b,pwd:L}},j={url:[{required:!0,validator:H,trigger:"blur"}]},J=async l=>{if(!l||!await l.validate())return;const t=new URLSearchParams;t.set("url",o.value.url),t.set("surl",o.value.surl),t.set("pwd",o.value.pwd),t.set("dir",o.value.dir),de(`${location.host}/?${t.toString()}`,"复制成功")};fe(()=>{_e(()=>{const l=new URLSearchParams(location.search);if(l.size<4)return;const t=l.get("url"),i=l.get("pwd"),p=l.get("dir"),u=l.get("surl");!t||!i||!p||!u||(o.value={url:t,pwd:i,dir:p,surl:u},D.success("已读取到参数,正在加载"),setTimeout(k.getFileList,500))}),k.getLimit(),z()});const A=me(),O=()=>A.push("/login"),Q=()=>A.push("/admin"),W=l=>window.open(l),R=C(0),z=()=>R.value=Date.now(),h=()=>E.value=[],F=C(!1),X=()=>{o.value.token!==""?F.value=!0:F.value=!1,k.getLimit()};return(l,t)=>{const i=ee,p=te,u=le,c=oe,b=se,L=ae,Y=re;return ge((r(),d(L,null,{default:a(()=>[g("h2",null,"前台解析中心 | "+y(e(ue)()),1),e(f).show_copyright?(r(),d(i,{key:0,"show-icon":"",type:"warning",closable:!1,title:e(f).custom_copyright},null,8,["title"])):m("",!0),e(f).have_account?(r(),d(i,{key:1,closable:!1,class:"alert",title:"当前中转账号充足",type:"success"})):(r(),d(i,{key:2,closable:!1,class:"alert",title:"当前中转账号不足",type:"error"})),e(f).debug?(r(),d(i,{key:3,class:"alert",title:"当前网站开启了DEBUG模式,非调试请关闭!!!!",type:"error",closable:!1})):m("",!0),e(f).is_https?m("",!0):(r(),d(i,{key:4,class:"alert",title:"当前网站未开启SSL,可能出现无法请求Aria2服务器的问题",type:"error",closable:!1})),e(U)===""?(r(),d(i,{key:5,class:"alert",type:"success",closable:!1},{default:a(()=>[F.value?(r(),V("span",ye,[g("span",null,"当前卡密: "+y(e(_).group_name),1),g("span",null,"剩余可解析文件数: "+y(e(_).count),1),g("span",null,"剩余可解析大小: "+y(e(N)(e(_).size)),1),g("span",null," 到期时间: "+y(e(_).expired_at==="未使用"?e(_).expired_at:new Date(e(_).expired_at??0).toLocaleString()),1)])):(r(),V("span",ke,[g("span",null,"当前用户组: "+y(e(_).group_name),1),g("span",null,"剩余可解析文件数: "+y(e(_).count),1),g("span",null,"剩余可解析大小: "+y(e(N)(e(_).size)),1)]))]),_:1})):(r(),d(i,{key:6,class:"alert",type:"error",closable:!1},{default:a(()=>[v(y(e(U)??"未知错误"),1)]),_:1})),n(b,{ref_key:"getFileListFormRef",ref:S,model:e(o),rules:j,"label-width":"auto",class:"form","label-position":M.value},{default:a(()=>[n(u,{label:"链接",prop:"url"},{default:a(()=>[n(p,{modelValue:e(o).url,"onUpdate:modelValue":t[0]||(t[0]=s=>e(o).url=s),modelModifiers:{trim:!0},onChange:t[1]||(t[1]=s=>h()),onBlur:t[2]||(t[2]=s=>K())},null,8,["modelValue"])]),_:1}),n(u,{label:"密码",prop:"pwd"},{default:a(()=>[n(p,{modelValue:e(o).pwd,"onUpdate:modelValue":t[3]||(t[3]=s=>e(o).pwd=s),modelModifiers:{trim:!0},onChange:t[4]||(t[4]=s=>h())},null,8,["modelValue"])]),_:1}),e(f).need_password?(r(),d(u,{key:0,label:"解析密码",prop:"password"},{default:a(()=>[n(p,{modelValue:e(o).password,"onUpdate:modelValue":t[5]||(t[5]=s=>e(o).password=s),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1})):m("",!0),e(f).token_mode?(r(),d(u,{key:1,label:"卡密(不用留空即可)",prop:"token"},{default:a(()=>[n(p,{modelValue:e(o).token,"onUpdate:modelValue":t[6]||(t[6]=s=>e(o).token=s),modelModifiers:{trim:!0},onBlur:X},null,8,["modelValue"])]),_:1})):m("",!0),n(u,{label:"当前路径",prop:"dir"},{default:a(()=>[n(p,{modelValue:e(o).dir,"onUpdate:modelValue":t[7]||(t[7]=s=>e(o).dir=s),disabled:""},null,8,["modelValue"])]),_:1}),e(w).hit_captcha?(r(),V($,{key:2},[n(u,{label:"验证码编号",prop:"vcode_str"},{default:a(()=>[n(p,{modelValue:e(w).vcode_str,"onUpdate:modelValue":t[8]||(t[8]=s=>e(w).vcode_str=s),disabled:""},null,8,["modelValue"])]),_:1}),n(u,{label:"验证码图片",prop:"vcode_img"},{default:a(()=>[g("img",{src:`${e(w).vcode_img}&t=${R.value}`,alt:"验证码图片",onClick:z},null,8,we)]),_:1}),n(u,{label:"验证码字符",prop:"vcode_input"},{default:a(()=>[n(p,{modelValue:e(w).vcode_input,"onUpdate:modelValue":t[9]||(t[9]=s=>e(w).vcode_input=s)},null,8,["modelValue"])]),_:1})],64)):m("",!0),e(T)()==="admin"?(r(),d(u,{key:3,label:"解析账号id,多个使用,分割",prop:"account_ids"},{default:a(()=>[n(p,{modelValue:e(o).account_ids,"onUpdate:modelValue":t[10]||(t[10]=s=>e(o).account_ids=s)},null,8,["modelValue"])]),_:1})):m("",!0),n(u,{label:" ",class:"buttons"},{default:a(()=>[n(c,{type:"primary",onClick:t[11]||(t[11]=s=>e(k).getFileList())},{default:a(()=>[v("获取/刷新列表")]),_:1}),n(c,{type:"primary",disabled:e(P).length<=0,onClick:t[12]||(t[12]=s=>e(k).getDownloadLinks())},{default:a(()=>[v(" 批量解析 ")]),_:1},8,["disabled"]),n(c,{type:"primary",onClick:t[13]||(t[13]=s=>J(e(S)))},{default:a(()=>[v("复制当前地址")]),_:1}),e(E).length!==0?(r(),d(c,{key:0,type:"primary",onClick:t[14]||(t[14]=s=>q.value=!0)},{default:a(()=>[v(" 重新显示下载链接 ")]),_:1})):m("",!0),e(f).button_link!==""?(r(),d(c,{key:1,type:"primary",onClick:t[15]||(t[15]=s=>W(e(f).button_link))},{default:a(()=>[v(" 前往购买卡密 ")]),_:1})):m("",!0),e(f).show_login_button?(r(),V($,{key:2},[e(I)()==="0"?(r(),d(c,{key:0,type:"primary",onClick:t[16]||(t[16]=s=>O())},{default:a(()=>[v("登陆")]),_:1})):m("",!0),e(I)()==="1"?(r(),V($,{key:1},[e(T)()==="admin"?(r(),d(c,{key:0,type:"primary",onClick:t[17]||(t[17]=s=>Q())},{default:a(()=>[v(" 进入后台 ")]),_:1})):m("",!0),n(c,{type:"danger",onClick:t[18]||(t[18]=s=>e(B).logout())},{default:a(()=>[v(" 注销 ")]),_:1})],64)):m("",!0)],64)):m("",!0)]),_:1})]),_:1},8,["model","label-position"])]),_:1})),[[Y,e(G)]])}}}),je=ve(be,[["__scopeId","data-v-cd0f8a9c"]]);export{je as default}; diff --git a/public/assets/js/GetFileList-ks6g1pZh.js.gz b/public/assets/js/GetFileList-ks6g1pZh.js.gz new file mode 100644 index 0000000..0d51b37 Binary files /dev/null and b/public/assets/js/GetFileList-ks6g1pZh.js.gz differ diff --git a/public/assets/js/GroupManagement-CCDkPi17.js.gz b/public/assets/js/GroupManagement-CCDkPi17.js.gz deleted file mode 100644 index f9abde0..0000000 Binary files a/public/assets/js/GroupManagement-CCDkPi17.js.gz and /dev/null differ diff --git a/public/assets/js/GroupManagement-CCDkPi17.js b/public/assets/js/GroupManagement-ZUL4seNa.js similarity index 99% rename from public/assets/js/GroupManagement-CCDkPi17.js rename to public/assets/js/GroupManagement-ZUL4seNa.js index a72bba1..4daf3ab 100644 --- a/public/assets/js/GroupManagement-CCDkPi17.js +++ b/public/assets/js/GroupManagement-ZUL4seNa.js @@ -1 +1 @@ -import{E as M,b as w,c as J,r as P,e as Q,d as R,k as W,v as T,m as X,o as Y,s as Z}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{v as z}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{i as U}from"./index-BrpDzfc2.js";import{d as O,_ as h,$ as ee,o as C,G as E,H as a,i as t,L as m,I as v,m as te,c as ae,a as L,K as q,F as le}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as _}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as $}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as oe}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const ne=n=>U.post("/admin/group",n),ue=n=>U.get(`/admin/group?page=${n.page}&size=${n.size}`),se=n=>U.patch(`/admin/group/${n.id}`,n),de=n=>U.delete("/admin/group",{data:{group_ids:[n.id]}}),ie=n=>U.delete("/admin/group",{data:{group_ids:n}}),re=O({__name:"AddGroup",props:{modelValue:{},modelModifiers:{}},emits:h(["getGroups"],["update:modelValue"]),setup(n,{emit:i}){const b=i,y=ee(n,"modelValue"),f=_(!1),s=_({name:"",count:0,size:0}),r=_(null),S={name:[{required:!0,message:"请输入组名",trigger:"blur"}],count:[{required:!0,message:"请输入可解析文件个数",trigger:"blur"}],size:[{required:!0,message:"请输入可解析大小",trigger:"blur"}]},x=async V=>{if(!(!V||!await V.validate()))try{f.value=!0,await ne(s.value),M.success("添加成功")}finally{f.value=!1}},F=V=>{b("getGroups"),V()},D=()=>{y.value=!1,b("getGroups")};return(V,u)=>{const G=w,k=J,l=P,o=Q,c=R,p=W,I=T;return C(),E(p,{title:"添加用户组",width:"60%",modelValue:y.value,"onUpdate:modelValue":u[5]||(u[5]=d=>y.value=d),"before-close":F},{footer:a(()=>[t(c,{type:"info",onClick:u[3]||(u[3]=d=>D())},{default:a(()=>[m("取消")]),_:1}),t(c,{type:"primary",onClick:u[4]||(u[4]=d=>x(r.value))},{default:a(()=>[m("添加")]),_:1})]),default:a(()=>[v((C(),E(o,{ref_key:"addGroupFormRef",ref:r,model:s.value,rules:S,"label-width":"auto"},{default:a(()=>[t(k,{label:"组名",prop:"name"},{default:a(()=>[t(G,{modelValue:s.value.name,"onUpdate:modelValue":u[0]||(u[0]=d=>s.value.name=d)},null,8,["modelValue"])]),_:1}),t(k,{label:"可解析文件个数",prop:"count"},{default:a(()=>[t(l,{modelValue:s.value.count,"onUpdate:modelValue":u[1]||(u[1]=d=>s.value.count=d)},null,8,["modelValue"])]),_:1}),t(k,{label:"可解析大小",prop:"size"},{default:a(()=>[t(l,{modelValue:s.value.size,"onUpdate:modelValue":u[2]||(u[2]=d=>s.value.size=d)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[I,f.value]])]),_:1},8,["modelValue"])}}}),pe=O({__name:"GroupManagement",setup(n){const i=_(!1),b=_(15),y=_(1),f=_(),s=_([]),r=async()=>{try{i.value=!0;const l=await ue({page:y.value,size:b.value});f.value=l.data}finally{i.value=!1}},S=async l=>{l.edit=!(l.edit??!1)},x=async l=>{l.edit=!(l.edit??!0),await F(l)},F=async l=>{try{i.value=!0,await se(l),M.success("修改用户组成功")}finally{i.value=!1,await r()}},D=async l=>{try{i.value=!0,await de(l),M.success("删除用户组成功")}finally{i.value=!1,await r()}},V=async()=>{try{i.value=!0;const l=s.value.map(o=>o.id);await ie(l),M.success("批量删除用户组成功")}finally{i.value=!1,await r()}},u=l=>s.value=l;te(r);const G=_(!1),k=()=>G.value=!G.value;return(l,o)=>{var B,N,A;const c=R,p=X,I=w,d=P,j=Y,H=Z,K=T;return C(),ae(le,null,[t(re,{onGetGroups:r,modelValue:G.value,"onUpdate:modelValue":o[0]||(o[0]=e=>G.value=e)},null,8,["modelValue"]),t(c,{type:"primary",onClick:o[1]||(o[1]=e=>r())},{default:a(()=>[m("刷新列表")]),_:1}),t(c,{type:"primary",onClick:o[2]||(o[2]=e=>k())},{default:a(()=>[m("添加用户组")]),_:1}),t(c,{type:"danger",disabled:s.value.length<=0,onClick:o[3]||(o[3]=e=>V())},{default:a(()=>[m(" 批量删除 ")]),_:1},8,["disabled"]),v((C(),E(j,{data:((B=f.value)==null?void 0:B.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:u},{default:a(()=>[t(p,{type:"selection",width:"40"}),t(p,{prop:"id",label:"ID"}),t(p,{prop:"name",label:"组名"},{default:a(({row:e})=>[v(L("span",null,$(e.name),513),[[z,!e.edit]]),v(t(I,{modelValue:e.name,"onUpdate:modelValue":g=>e.name=g},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(p,{prop:"count",label:"可解析文件数量"},{default:a(({row:e})=>[v(L("span",null,$(e.count),513),[[z,!e.edit]]),v(t(d,{modelValue:e.count,"onUpdate:modelValue":g=>e.count=g},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(p,{prop:"size",label:"可解析大小"},{default:a(({row:e})=>[v(L("span",null,$(e.size),513),[[z,!e.edit]]),v(t(d,{modelValue:e.size,"onUpdate:modelValue":g=>e.size=g},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(p,{prop:"created_at",label:"创建时间"},{default:a(({row:e})=>[m($(new Date(e.created_at).toLocaleString()),1)]),_:1}),t(p,{prop:"updated_at",label:"更新时间"},{default:a(({row:e})=>[m($(new Date(e.updated_at).toLocaleString()),1)]),_:1}),t(p,{width:"150",label:"操作",fixed:"right"},{default:a(({row:e})=>[e.edit?q("",!0):(C(),E(c,{key:0,size:"small",type:"primary",onClick:g=>S(e)},{default:a(()=>[m(" 编辑 ")]),_:2},1032,["onClick"])),e.edit?(C(),E(c,{key:1,size:"small",type:"primary",onClick:g=>x(e)},{default:a(()=>[m(" 保存 ")]),_:2},1032,["onClick"])):q("",!0),t(c,{size:"small",type:"danger",onClick:g=>D(e)},{default:a(()=>[m("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[K,i.value]]),t(H,{"current-page":y.value,"onUpdate:currentPage":o[4]||(o[4]=e=>y.value=e),"page-size":b.value,"onUpdate:pageSize":o[5]||(o[5]=e=>b.value=e),"page-sizes":[15,50,100,500,((N=f.value)==null?void 0:N.total)??100],total:((A=f.value)==null?void 0:A.total)??100,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:r,onCurrentChange:r},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),De=oe(pe,[["__scopeId","data-v-6ac724f9"]]);export{De as default}; +import{E as M,b as w,c as J,r as P,e as Q,d as R,k as W,v as T,m as X,o as Y,s as Z}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{v as z}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{i as U}from"./index-BE2XYqVW.js";import{d as O,_ as h,$ as ee,o as C,G as E,H as a,i as t,L as m,I as v,m as te,c as ae,a as L,K as q,F as le}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as _}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as $}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as oe}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const ne=n=>U.post("/admin/group",n),ue=n=>U.get(`/admin/group?page=${n.page}&size=${n.size}`),se=n=>U.patch(`/admin/group/${n.id}`,n),de=n=>U.delete("/admin/group",{data:{group_ids:[n.id]}}),ie=n=>U.delete("/admin/group",{data:{group_ids:n}}),re=O({__name:"AddGroup",props:{modelValue:{},modelModifiers:{}},emits:h(["getGroups"],["update:modelValue"]),setup(n,{emit:i}){const b=i,y=ee(n,"modelValue"),f=_(!1),s=_({name:"",count:0,size:0}),r=_(null),S={name:[{required:!0,message:"请输入组名",trigger:"blur"}],count:[{required:!0,message:"请输入可解析文件个数",trigger:"blur"}],size:[{required:!0,message:"请输入可解析大小",trigger:"blur"}]},x=async V=>{if(!(!V||!await V.validate()))try{f.value=!0,await ne(s.value),M.success("添加成功")}finally{f.value=!1}},F=V=>{b("getGroups"),V()},D=()=>{y.value=!1,b("getGroups")};return(V,u)=>{const G=w,k=J,l=P,o=Q,c=R,p=W,I=T;return C(),E(p,{title:"添加用户组",width:"60%",modelValue:y.value,"onUpdate:modelValue":u[5]||(u[5]=d=>y.value=d),"before-close":F},{footer:a(()=>[t(c,{type:"info",onClick:u[3]||(u[3]=d=>D())},{default:a(()=>[m("取消")]),_:1}),t(c,{type:"primary",onClick:u[4]||(u[4]=d=>x(r.value))},{default:a(()=>[m("添加")]),_:1})]),default:a(()=>[v((C(),E(o,{ref_key:"addGroupFormRef",ref:r,model:s.value,rules:S,"label-width":"auto"},{default:a(()=>[t(k,{label:"组名",prop:"name"},{default:a(()=>[t(G,{modelValue:s.value.name,"onUpdate:modelValue":u[0]||(u[0]=d=>s.value.name=d)},null,8,["modelValue"])]),_:1}),t(k,{label:"可解析文件个数",prop:"count"},{default:a(()=>[t(l,{modelValue:s.value.count,"onUpdate:modelValue":u[1]||(u[1]=d=>s.value.count=d)},null,8,["modelValue"])]),_:1}),t(k,{label:"可解析大小",prop:"size"},{default:a(()=>[t(l,{modelValue:s.value.size,"onUpdate:modelValue":u[2]||(u[2]=d=>s.value.size=d)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[I,f.value]])]),_:1},8,["modelValue"])}}}),pe=O({__name:"GroupManagement",setup(n){const i=_(!1),b=_(15),y=_(1),f=_(),s=_([]),r=async()=>{try{i.value=!0;const l=await ue({page:y.value,size:b.value});f.value=l.data}finally{i.value=!1}},S=async l=>{l.edit=!(l.edit??!1)},x=async l=>{l.edit=!(l.edit??!0),await F(l)},F=async l=>{try{i.value=!0,await se(l),M.success("修改用户组成功")}finally{i.value=!1,await r()}},D=async l=>{try{i.value=!0,await de(l),M.success("删除用户组成功")}finally{i.value=!1,await r()}},V=async()=>{try{i.value=!0;const l=s.value.map(o=>o.id);await ie(l),M.success("批量删除用户组成功")}finally{i.value=!1,await r()}},u=l=>s.value=l;te(r);const G=_(!1),k=()=>G.value=!G.value;return(l,o)=>{var B,N,A;const c=R,p=X,I=w,d=P,j=Y,H=Z,K=T;return C(),ae(le,null,[t(re,{onGetGroups:r,modelValue:G.value,"onUpdate:modelValue":o[0]||(o[0]=e=>G.value=e)},null,8,["modelValue"]),t(c,{type:"primary",onClick:o[1]||(o[1]=e=>r())},{default:a(()=>[m("刷新列表")]),_:1}),t(c,{type:"primary",onClick:o[2]||(o[2]=e=>k())},{default:a(()=>[m("添加用户组")]),_:1}),t(c,{type:"danger",disabled:s.value.length<=0,onClick:o[3]||(o[3]=e=>V())},{default:a(()=>[m(" 批量删除 ")]),_:1},8,["disabled"]),v((C(),E(j,{data:((B=f.value)==null?void 0:B.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:u},{default:a(()=>[t(p,{type:"selection",width:"40"}),t(p,{prop:"id",label:"ID"}),t(p,{prop:"name",label:"组名"},{default:a(({row:e})=>[v(L("span",null,$(e.name),513),[[z,!e.edit]]),v(t(I,{modelValue:e.name,"onUpdate:modelValue":g=>e.name=g},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(p,{prop:"count",label:"可解析文件数量"},{default:a(({row:e})=>[v(L("span",null,$(e.count),513),[[z,!e.edit]]),v(t(d,{modelValue:e.count,"onUpdate:modelValue":g=>e.count=g},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(p,{prop:"size",label:"可解析大小"},{default:a(({row:e})=>[v(L("span",null,$(e.size),513),[[z,!e.edit]]),v(t(d,{modelValue:e.size,"onUpdate:modelValue":g=>e.size=g},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(p,{prop:"created_at",label:"创建时间"},{default:a(({row:e})=>[m($(new Date(e.created_at).toLocaleString()),1)]),_:1}),t(p,{prop:"updated_at",label:"更新时间"},{default:a(({row:e})=>[m($(new Date(e.updated_at).toLocaleString()),1)]),_:1}),t(p,{width:"150",label:"操作",fixed:"right"},{default:a(({row:e})=>[e.edit?q("",!0):(C(),E(c,{key:0,size:"small",type:"primary",onClick:g=>S(e)},{default:a(()=>[m(" 编辑 ")]),_:2},1032,["onClick"])),e.edit?(C(),E(c,{key:1,size:"small",type:"primary",onClick:g=>x(e)},{default:a(()=>[m(" 保存 ")]),_:2},1032,["onClick"])):q("",!0),t(c,{size:"small",type:"danger",onClick:g=>D(e)},{default:a(()=>[m("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[K,i.value]]),t(H,{"current-page":y.value,"onUpdate:currentPage":o[4]||(o[4]=e=>y.value=e),"page-size":b.value,"onUpdate:pageSize":o[5]||(o[5]=e=>b.value=e),"page-sizes":[15,50,100,500,((N=f.value)==null?void 0:N.total)??100],total:((A=f.value)==null?void 0:A.total)??100,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:r,onCurrentChange:r},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),De=oe(pe,[["__scopeId","data-v-6ac724f9"]]);export{De as default}; diff --git a/public/assets/js/GroupManagement-ZUL4seNa.js.gz b/public/assets/js/GroupManagement-ZUL4seNa.js.gz new file mode 100644 index 0000000..66ae417 Binary files /dev/null and b/public/assets/js/GroupManagement-ZUL4seNa.js.gz differ diff --git a/public/assets/js/InstallView-bDsLnmEN.js b/public/assets/js/InstallView-BiWK1Ekm.js similarity index 98% rename from public/assets/js/InstallView-bDsLnmEN.js rename to public/assets/js/InstallView-BiWK1Ekm.js index 9a8ac5b..b55d296 100644 --- a/public/assets/js/InstallView-bDsLnmEN.js +++ b/public/assets/js/InstallView-BiWK1Ekm.js @@ -1 +1 @@ -import{a as F,E as I,d as C,b as U,c as x,i as N,j as B,e as R}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as $,a as h}from"./index-BrpDzfc2.js";import{f as A}from"./favicon-BrYC5Vmz.js";import{u as H}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as j,c as b,i as e,H as o,o as c,a as u,L as f,K as y,F as D,Y as K,Z as O}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as d,u as S}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as T}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as Y}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";const Z=r=>$.post("/install",r),z=r=>(K("data-v-c77698d2"),r=r(),O(),r),G={class:"container"},J=["src"],P={key:0},W=z(()=>u("p",null,"您的后台登录账号密码均为:admin,请及时登录修改!",-1)),X=j({__name:"InstallView",setup(r){const a=d({db_connection:"mysql",db_host:"localhost",db_port:"3306",db_database:"94list-laravel",db_username:"94list-laravel",db_password:"",app_name:"94list-laravel"}),v=d(null),L={db_connection:[{required:!0,message:"请选择安装方式",trigger:"change"}],db_host:[{required:!0,message:"请输入MySQL 数据库地址",trigger:"blur"}],db_port:[{required:!0,message:"请输入MySQL 端口",trigger:"blur"}],db_database:[{required:!0,message:"请输入MySQL 数据库名",trigger:"blur"}],db_username:[{required:!0,message:"请输入MySQL 用户名",trigger:"blur"}],app_name:[{required:!0,message:"请输入网站名称",trigger:"blur"}]},m=d(!1),p=d(!1),w=async i=>{if(!(!i||!await i.validate()))try{m.value=!0,await Z(a.value),I.success("安装成功!"),p.value=!0}finally{m.value=!1}},g=H(),M=()=>g.push("/"),Q=()=>g.push("/login");return(i,l)=>{const _=C,n=U,s=x,V=N,q=B,E=R,k=F;return c(),b("div",G,[e(k,null,{default:o(()=>[u("h1",null,[u("img",{src:S(A),alt:"logo"},null,8,J)]),u("h2",null,"安装 | "+T(S(h)()),1),p.value?(c(),b("h3",P,[W,e(_,{type:"primary",onClick:l[0]||(l[0]=t=>M())},{default:o(()=>[f("访问首页")]),_:1}),e(_,{type:"success",onClick:l[1]||(l[1]=t=>Q())},{default:o(()=>[f("访问后台")]),_:1})])):y("",!0),e(E,{ref_key:"installFormRef",ref:v,model:a.value,rules:L,disabled:p.value,"label-width":"auto"},{default:o(()=>[e(s,{label:"网站名称",prop:"app_name"},{default:o(()=>[e(n,{modelValue:a.value.app_name,"onUpdate:modelValue":l[2]||(l[2]=t=>a.value.app_name=t)},null,8,["modelValue"])]),_:1}),e(s,{label:"数据库驱动",prop:"db_connection"},{default:o(()=>[e(q,{modelValue:a.value.db_connection,"onUpdate:modelValue":l[3]||(l[3]=t=>a.value.db_connection=t),placeholder:"请选择数据库驱动"},{default:o(()=>[e(V,{label:"MySQL",value:"mysql"}),e(V,{label:"SQLite",value:"sqlite"})]),_:1},8,["modelValue"])]),_:1}),a.value.db_connection==="mysql"?(c(),b(D,{key:0},[e(s,{label:"MySQL 数据库地址",prop:"db_host"},{default:o(()=>[e(n,{modelValue:a.value.db_host,"onUpdate:modelValue":l[4]||(l[4]=t=>a.value.db_host=t)},null,8,["modelValue"])]),_:1}),e(s,{label:"MySQL 端口",prop:"db_port"},{default:o(()=>[e(n,{modelValue:a.value.db_port,"onUpdate:modelValue":l[5]||(l[5]=t=>a.value.db_port=t)},null,8,["modelValue"])]),_:1}),e(s,{label:"MySQL 数据库名",prop:"db_database"},{default:o(()=>[e(n,{modelValue:a.value.db_database,"onUpdate:modelValue":l[6]||(l[6]=t=>a.value.db_database=t)},null,8,["modelValue"])]),_:1}),e(s,{label:"MySQL 用户名",prop:"db_username"},{default:o(()=>[e(n,{modelValue:a.value.db_username,"onUpdate:modelValue":l[7]||(l[7]=t=>a.value.db_username=t)},null,8,["modelValue"])]),_:1}),e(s,{label:"MySQL 密码",prop:"db_password"},{default:o(()=>[e(n,{modelValue:a.value.db_password,"onUpdate:modelValue":l[8]||(l[8]=t=>a.value.db_password=t)},null,8,["modelValue"])]),_:1})],64)):y("",!0),e(s,{class:"center"},{default:o(()=>[e(_,{type:"primary",onClick:l[9]||(l[9]=t=>w(v.value)),loading:m.value},{default:o(()=>[f(" 安装 ")]),_:1},8,["loading"])]),_:1})]),_:1},8,["model","disabled"])]),_:1})])}}}),Se=Y(X,[["__scopeId","data-v-c77698d2"]]);export{Se as default}; +import{a as F,E as I,d as C,b as U,c as x,i as N,j as B,e as R}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as $,a as h}from"./index-BE2XYqVW.js";import{f as A}from"./favicon-BrYC5Vmz.js";import{u as H}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as j,c as b,i as e,H as o,o as c,a as u,L as f,K as y,F as D,Y as K,Z as O}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as d,u as S}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as T}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as Y}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";const Z=r=>$.post("/install",r),z=r=>(K("data-v-c77698d2"),r=r(),O(),r),G={class:"container"},J=["src"],P={key:0},W=z(()=>u("p",null,"您的后台登录账号密码均为:admin,请及时登录修改!",-1)),X=j({__name:"InstallView",setup(r){const a=d({db_connection:"mysql",db_host:"localhost",db_port:"3306",db_database:"94list-laravel",db_username:"94list-laravel",db_password:"",app_name:"94list-laravel"}),v=d(null),L={db_connection:[{required:!0,message:"请选择安装方式",trigger:"change"}],db_host:[{required:!0,message:"请输入MySQL 数据库地址",trigger:"blur"}],db_port:[{required:!0,message:"请输入MySQL 端口",trigger:"blur"}],db_database:[{required:!0,message:"请输入MySQL 数据库名",trigger:"blur"}],db_username:[{required:!0,message:"请输入MySQL 用户名",trigger:"blur"}],app_name:[{required:!0,message:"请输入网站名称",trigger:"blur"}]},m=d(!1),p=d(!1),w=async i=>{if(!(!i||!await i.validate()))try{m.value=!0,await Z(a.value),I.success("安装成功!"),p.value=!0}finally{m.value=!1}},g=H(),M=()=>g.push("/"),Q=()=>g.push("/login");return(i,l)=>{const _=C,n=U,s=x,V=N,q=B,E=R,k=F;return c(),b("div",G,[e(k,null,{default:o(()=>[u("h1",null,[u("img",{src:S(A),alt:"logo"},null,8,J)]),u("h2",null,"安装 | "+T(S(h)()),1),p.value?(c(),b("h3",P,[W,e(_,{type:"primary",onClick:l[0]||(l[0]=t=>M())},{default:o(()=>[f("访问首页")]),_:1}),e(_,{type:"success",onClick:l[1]||(l[1]=t=>Q())},{default:o(()=>[f("访问后台")]),_:1})])):y("",!0),e(E,{ref_key:"installFormRef",ref:v,model:a.value,rules:L,disabled:p.value,"label-width":"auto"},{default:o(()=>[e(s,{label:"网站名称",prop:"app_name"},{default:o(()=>[e(n,{modelValue:a.value.app_name,"onUpdate:modelValue":l[2]||(l[2]=t=>a.value.app_name=t)},null,8,["modelValue"])]),_:1}),e(s,{label:"数据库驱动",prop:"db_connection"},{default:o(()=>[e(q,{modelValue:a.value.db_connection,"onUpdate:modelValue":l[3]||(l[3]=t=>a.value.db_connection=t),placeholder:"请选择数据库驱动"},{default:o(()=>[e(V,{label:"MySQL",value:"mysql"}),e(V,{label:"SQLite",value:"sqlite"})]),_:1},8,["modelValue"])]),_:1}),a.value.db_connection==="mysql"?(c(),b(D,{key:0},[e(s,{label:"MySQL 数据库地址",prop:"db_host"},{default:o(()=>[e(n,{modelValue:a.value.db_host,"onUpdate:modelValue":l[4]||(l[4]=t=>a.value.db_host=t)},null,8,["modelValue"])]),_:1}),e(s,{label:"MySQL 端口",prop:"db_port"},{default:o(()=>[e(n,{modelValue:a.value.db_port,"onUpdate:modelValue":l[5]||(l[5]=t=>a.value.db_port=t)},null,8,["modelValue"])]),_:1}),e(s,{label:"MySQL 数据库名",prop:"db_database"},{default:o(()=>[e(n,{modelValue:a.value.db_database,"onUpdate:modelValue":l[6]||(l[6]=t=>a.value.db_database=t)},null,8,["modelValue"])]),_:1}),e(s,{label:"MySQL 用户名",prop:"db_username"},{default:o(()=>[e(n,{modelValue:a.value.db_username,"onUpdate:modelValue":l[7]||(l[7]=t=>a.value.db_username=t)},null,8,["modelValue"])]),_:1}),e(s,{label:"MySQL 密码",prop:"db_password"},{default:o(()=>[e(n,{modelValue:a.value.db_password,"onUpdate:modelValue":l[8]||(l[8]=t=>a.value.db_password=t)},null,8,["modelValue"])]),_:1})],64)):y("",!0),e(s,{class:"center"},{default:o(()=>[e(_,{type:"primary",onClick:l[9]||(l[9]=t=>w(v.value)),loading:m.value},{default:o(()=>[f(" 安装 ")]),_:1},8,["loading"])]),_:1})]),_:1},8,["model","disabled"])]),_:1})])}}}),Se=Y(X,[["__scopeId","data-v-c77698d2"]]);export{Se as default}; diff --git a/public/assets/js/InstallView-BiWK1Ekm.js.gz b/public/assets/js/InstallView-BiWK1Ekm.js.gz new file mode 100644 index 0000000..271a558 Binary files /dev/null and b/public/assets/js/InstallView-BiWK1Ekm.js.gz differ diff --git a/public/assets/js/InstallView-bDsLnmEN.js.gz b/public/assets/js/InstallView-bDsLnmEN.js.gz deleted file mode 100644 index c81609c..0000000 Binary files a/public/assets/js/InstallView-bDsLnmEN.js.gz and /dev/null differ diff --git a/public/assets/js/InvCodeManagement-3kTe-fD5.js.gz b/public/assets/js/InvCodeManagement-3kTe-fD5.js.gz deleted file mode 100644 index c25114c..0000000 Binary files a/public/assets/js/InvCodeManagement-3kTe-fD5.js.gz and /dev/null differ diff --git a/public/assets/js/InvCodeManagement-3kTe-fD5.js b/public/assets/js/InvCodeManagement-Ct0UzEyU.js similarity index 99% rename from public/assets/js/InvCodeManagement-3kTe-fD5.js rename to public/assets/js/InvCodeManagement-Ct0UzEyU.js index 99cba01..f571051 100644 --- a/public/assets/js/InvCodeManagement-3kTe-fD5.js +++ b/public/assets/js/InvCodeManagement-Ct0UzEyU.js @@ -1,3 +1,3 @@ -import{E as x,i as Y,j as Z,c as h,r as P,b as T,e as ee,d as G,k as te,v as H,m as ae,o as le,s as ne}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{v as z}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{i as E}from"./index-BrpDzfc2.js";import{d as K,_ as oe,$ as de,o as g,G as I,H as l,i as t,L as p,I as C,c as J,F as Q,R as ue,m as se,a as N,K as O}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as _,u as ie}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{c as R}from"./copy-By2guqEs.js";import{L as U}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as pe}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const re=i=>E.post("/admin/inv_code",i),me=i=>E.post("/admin/inv_code/generate",i),ce=i=>E.get(`/admin/inv_code?page=${i.page}&size=${i.size}`),ve=i=>E.patch(`/admin/inv_code/${i.id}`,i),_e=i=>E.delete("/admin/inv_code",{data:{inv_code_ids:[i.id]}}),ge=i=>E.delete("/admin/inv_code",{data:{inv_code_ids:i}}),fe=K({__name:"AddInvCode",props:{modelValue:{},modelModifiers:{}},emits:oe(["getInvCodes"],["update:modelValue"]),setup(i,{emit:m}){const k=m,V=de(i,"modelValue"),f=_(!1),a=_({type:"single",group_id:2,name:"",can_count:10}),c=_(null),D={group_id:[{required:!0,message:"请输入邀请码用户组ID",trigger:"blur"}],name:[{required:!0,message:"请输入邀请码名称",trigger:"blur"}],can_count:[{required:!0,message:"请输入可注册次数",trigger:"blur"}],count:[{required:!0,message:"请输入邀请码个数",trigger:"blur"}]},M=async b=>{if(!(!b||!await b.validate()))try{f.value=!0,a.value.type==="single"?await re({type:"single",name:a.value.name,can_count:a.value.can_count,group_id:a.value.group_id}):await me({type:"random",count:a.value.count,can_count:a.value.can_count,group_id:a.value.group_id}),x.success("添加成功")}finally{f.value=!1}},F=b=>{k("getInvCodes"),b()},L=()=>{V.value=!1,k("getInvCodes")};return(b,u)=>{const $=Y,j=Z,y=h,n=P,o=T,s=ee,r=G,B=te,S=H;return g(),I(B,{title:"添加邀请码",width:"60%",modelValue:V.value,"onUpdate:modelValue":u[7]||(u[7]=d=>V.value=d),"before-close":F},{footer:l(()=>[t(r,{type:"info",onClick:u[5]||(u[5]=d=>L())},{default:l(()=>[p("取消")]),_:1}),t(r,{type:"primary",onClick:u[6]||(u[6]=d=>M(c.value))},{default:l(()=>[p("添加")]),_:1})]),default:l(()=>[C((g(),I(s,{ref_key:"addInvCodeFormRef",ref:c,model:a.value,rules:D,"label-width":"auto"},{default:l(()=>[t(y,{label:"创建方式",prop:"type"},{default:l(()=>[t(j,{modelValue:a.value.type,"onUpdate:modelValue":u[0]||(u[0]=d=>a.value.type=d)},{default:l(()=>[(g(),J(Q,null,ue(["single","random"],d=>t($,{key:d,label:d,value:d},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),t(y,{label:"可用次数",prop:"can_count"},{default:l(()=>[t(n,{modelValue:a.value.can_count,"onUpdate:modelValue":u[1]||(u[1]=d=>a.value.can_count=d)},null,8,["modelValue"])]),_:1}),t(y,{label:"用户组ID",prop:"group_id"},{default:l(()=>[t(n,{modelValue:a.value.group_id,"onUpdate:modelValue":u[2]||(u[2]=d=>a.value.group_id=d)},null,8,["modelValue"])]),_:1}),a.value.type==="single"?(g(),I(y,{key:0,label:"邀请码名称",prop:"name"},{default:l(()=>[t(o,{modelValue:a.value.name,"onUpdate:modelValue":u[3]||(u[3]=d=>a.value.name=d)},null,8,["modelValue"])]),_:1})):(g(),I(y,{key:1,label:"邀请码个数",prop:"count"},{default:l(()=>[t(n,{modelValue:a.value.count,"onUpdate:modelValue":u[4]||(u[4]=d=>a.value.count=d)},null,8,["modelValue"])]),_:1}))]),_:1},8,["model"])),[[S,f.value]])]),_:1},8,["modelValue"])}}}),ye=K({__name:"InvCodeManagement",setup(i){const m=_(!1),k=_(15),V=_(1),f=_(),a=_([]),c=async()=>{try{m.value=!0;const n=await ce({page:V.value,size:k.value});f.value=n.data}finally{m.value=!1}},D=async n=>{n.edit=!(n.edit??!1)},M=async n=>{n.edit=!(n.edit??!0),await F(n)},F=async n=>{try{m.value=!0,await ve(n),x.success("修改邀请码成功")}finally{m.value=!1,await c()}},L=async n=>{try{m.value=!0,await _e(n),x.success("删除邀请码成功")}finally{m.value=!1,await c()}},b=async()=>{try{m.value=!0;const n=a.value.map(o=>o.id);await ge(n),x.success("删除邀请码成功")}finally{m.value=!1,await c()}},u=n=>a.value=n;se(c);const $=_(!1),j=()=>$.value=!$.value,y=(n=!0)=>{if(!n){R(a.value.map(s=>s.name).join(` +import{E as x,i as Y,j as Z,c as h,r as P,b as T,e as ee,d as G,k as te,v as H,m as ae,o as le,s as ne}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{v as z}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{i as E}from"./index-BE2XYqVW.js";import{d as K,_ as oe,$ as de,o as g,G as I,H as l,i as t,L as p,I as C,c as J,F as Q,R as ue,m as se,a as N,K as O}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as _,u as ie}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{c as R}from"./copy-By2guqEs.js";import{L as U}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as pe}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const re=i=>E.post("/admin/inv_code",i),me=i=>E.post("/admin/inv_code/generate",i),ce=i=>E.get(`/admin/inv_code?page=${i.page}&size=${i.size}`),ve=i=>E.patch(`/admin/inv_code/${i.id}`,i),_e=i=>E.delete("/admin/inv_code",{data:{inv_code_ids:[i.id]}}),ge=i=>E.delete("/admin/inv_code",{data:{inv_code_ids:i}}),fe=K({__name:"AddInvCode",props:{modelValue:{},modelModifiers:{}},emits:oe(["getInvCodes"],["update:modelValue"]),setup(i,{emit:m}){const k=m,V=de(i,"modelValue"),f=_(!1),a=_({type:"single",group_id:2,name:"",can_count:10}),c=_(null),D={group_id:[{required:!0,message:"请输入邀请码用户组ID",trigger:"blur"}],name:[{required:!0,message:"请输入邀请码名称",trigger:"blur"}],can_count:[{required:!0,message:"请输入可注册次数",trigger:"blur"}],count:[{required:!0,message:"请输入邀请码个数",trigger:"blur"}]},M=async b=>{if(!(!b||!await b.validate()))try{f.value=!0,a.value.type==="single"?await re({type:"single",name:a.value.name,can_count:a.value.can_count,group_id:a.value.group_id}):await me({type:"random",count:a.value.count,can_count:a.value.can_count,group_id:a.value.group_id}),x.success("添加成功")}finally{f.value=!1}},F=b=>{k("getInvCodes"),b()},L=()=>{V.value=!1,k("getInvCodes")};return(b,u)=>{const $=Y,j=Z,y=h,n=P,o=T,s=ee,r=G,B=te,S=H;return g(),I(B,{title:"添加邀请码",width:"60%",modelValue:V.value,"onUpdate:modelValue":u[7]||(u[7]=d=>V.value=d),"before-close":F},{footer:l(()=>[t(r,{type:"info",onClick:u[5]||(u[5]=d=>L())},{default:l(()=>[p("取消")]),_:1}),t(r,{type:"primary",onClick:u[6]||(u[6]=d=>M(c.value))},{default:l(()=>[p("添加")]),_:1})]),default:l(()=>[C((g(),I(s,{ref_key:"addInvCodeFormRef",ref:c,model:a.value,rules:D,"label-width":"auto"},{default:l(()=>[t(y,{label:"创建方式",prop:"type"},{default:l(()=>[t(j,{modelValue:a.value.type,"onUpdate:modelValue":u[0]||(u[0]=d=>a.value.type=d)},{default:l(()=>[(g(),J(Q,null,ue(["single","random"],d=>t($,{key:d,label:d,value:d},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),t(y,{label:"可用次数",prop:"can_count"},{default:l(()=>[t(n,{modelValue:a.value.can_count,"onUpdate:modelValue":u[1]||(u[1]=d=>a.value.can_count=d)},null,8,["modelValue"])]),_:1}),t(y,{label:"用户组ID",prop:"group_id"},{default:l(()=>[t(n,{modelValue:a.value.group_id,"onUpdate:modelValue":u[2]||(u[2]=d=>a.value.group_id=d)},null,8,["modelValue"])]),_:1}),a.value.type==="single"?(g(),I(y,{key:0,label:"邀请码名称",prop:"name"},{default:l(()=>[t(o,{modelValue:a.value.name,"onUpdate:modelValue":u[3]||(u[3]=d=>a.value.name=d)},null,8,["modelValue"])]),_:1})):(g(),I(y,{key:1,label:"邀请码个数",prop:"count"},{default:l(()=>[t(n,{modelValue:a.value.count,"onUpdate:modelValue":u[4]||(u[4]=d=>a.value.count=d)},null,8,["modelValue"])]),_:1}))]),_:1},8,["model"])),[[S,f.value]])]),_:1},8,["modelValue"])}}}),ye=K({__name:"InvCodeManagement",setup(i){const m=_(!1),k=_(15),V=_(1),f=_(),a=_([]),c=async()=>{try{m.value=!0;const n=await ce({page:V.value,size:k.value});f.value=n.data}finally{m.value=!1}},D=async n=>{n.edit=!(n.edit??!1)},M=async n=>{n.edit=!(n.edit??!0),await F(n)},F=async n=>{try{m.value=!0,await ve(n),x.success("修改邀请码成功")}finally{m.value=!1,await c()}},L=async n=>{try{m.value=!0,await _e(n),x.success("删除邀请码成功")}finally{m.value=!1,await c()}},b=async()=>{try{m.value=!0;const n=a.value.map(o=>o.id);await ge(n),x.success("删除邀请码成功")}finally{m.value=!1,await c()}},u=n=>a.value=n;se(c);const $=_(!1),j=()=>$.value=!$.value,y=(n=!0)=>{if(!n){R(a.value.map(s=>s.name).join(` `));return}const o=a.value.map(s=>[s.name,s.group.count,s.group.size].join(" | "));o.unshift(["邀请码","可用次数","可下载量"].join(" | ")),R(o.join(` `))};return(n,o)=>{var q,A,w;const s=G,r=ae,B=T,S=P,d=le,W=ne,X=H;return g(),J(Q,null,[t(fe,{onGetInvCodes:c,modelValue:$.value,"onUpdate:modelValue":o[0]||(o[0]=e=>$.value=e)},null,8,["modelValue"]),t(s,{type:"primary",onClick:o[1]||(o[1]=e=>c())},{default:l(()=>[p("刷新列表")]),_:1}),t(s,{type:"primary",onClick:o[2]||(o[2]=e=>j())},{default:l(()=>[p("添加邀请码")]),_:1}),t(s,{type:"primary",disabled:a.value.length<=0,onClick:o[3]||(o[3]=e=>y())},{default:l(()=>[p(" 批量复制 ")]),_:1},8,["disabled"]),t(s,{type:"primary",disabled:a.value.length<=0,onClick:o[4]||(o[4]=e=>y())},{default:l(()=>[p(" 批量复制(无格式) ")]),_:1},8,["disabled"]),t(s,{type:"danger",disabled:a.value.length<=0,onClick:o[5]||(o[5]=e=>b())},{default:l(()=>[p(" 批量删除 ")]),_:1},8,["disabled"]),C((g(),I(d,{data:((q=f.value)==null?void 0:q.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:u},{default:l(()=>[t(r,{type:"selection",width:"40"}),t(r,{prop:"id",label:"ID"}),t(r,{prop:"name",label:"邀请码名称"},{default:l(({row:e})=>[C(N("span",null,U(e.name),513),[[z,!e.edit]]),C(t(B,{modelValue:e.name,"onUpdate:modelValue":v=>e.name=v},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(r,{prop:"group_id",label:"用户组ID"},{default:l(({row:e})=>[C(N("span",null,U(e.group_id),513),[[z,!e.edit]]),C(t(S,{modelValue:e.group_id,"onUpdate:modelValue":v=>e.group_id=v},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(r,{prop:"can_count",label:"可用次数"},{default:l(({row:e})=>[C(N("span",null,U(e.can_count),513),[[z,!e.edit]]),C(t(S,{modelValue:e.can_count,"onUpdate:modelValue":v=>e.can_count=v},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(r,{prop:"use_count",label:"已使用次数"}),t(r,{prop:"created_at",label:"创建时间"},{default:l(({row:e})=>[p(U(new Date(e.created_at).toLocaleString()),1)]),_:1}),t(r,{prop:"updated_at",label:"更新时间"},{default:l(({row:e})=>[p(U(new Date(e.updated_at).toLocaleString()),1)]),_:1}),t(r,{width:"200",label:"操作",fixed:"right"},{default:l(({row:e})=>[e.edit?O("",!0):(g(),I(s,{key:0,size:"small",type:"primary",onClick:v=>D(e)},{default:l(()=>[p(" 编辑 ")]),_:2},1032,["onClick"])),e.edit?(g(),I(s,{key:1,size:"small",type:"primary",onClick:v=>M(e)},{default:l(()=>[p(" 保存 ")]),_:2},1032,["onClick"])):O("",!0),t(s,{size:"small",type:"primary",onClick:v=>ie(R)(e.name)},{default:l(()=>[p(" 复制 ")]),_:2},1032,["onClick"]),t(s,{size:"small",type:"danger",onClick:v=>L(e)},{default:l(()=>[p("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[X,m.value]]),t(W,{"current-page":V.value,"onUpdate:currentPage":o[6]||(o[6]=e=>V.value=e),"page-size":k.value,"onUpdate:pageSize":o[7]||(o[7]=e=>k.value=e),"page-sizes":[15,50,100,500,((A=f.value)==null?void 0:A.total)??100],total:((w=f.value)==null?void 0:w.total)??100,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:c,onCurrentChange:c},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),we=pe(ye,[["__scopeId","data-v-3f8aea2f"]]);export{we as default}; diff --git a/public/assets/js/InvCodeManagement-Ct0UzEyU.js.gz b/public/assets/js/InvCodeManagement-Ct0UzEyU.js.gz new file mode 100644 index 0000000..2c7a241 Binary files /dev/null and b/public/assets/js/InvCodeManagement-Ct0UzEyU.js.gz differ diff --git a/public/assets/js/IpManagement-Co1yF6gt.js b/public/assets/js/IpManagement-CZSvyyPn.js similarity index 98% rename from public/assets/js/IpManagement-Co1yF6gt.js rename to public/assets/js/IpManagement-CZSvyyPn.js index a3e9cc2..007b30a 100644 --- a/public/assets/js/IpManagement-Co1yF6gt.js +++ b/public/assets/js/IpManagement-CZSvyyPn.js @@ -1 +1 @@ -import{E as A,b as K,c as ee,i as q,j as J,e as te,d as Q,k as ae,v as W,m as le,o as oe,s as ne}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{v as z}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{i as k}from"./index-BrpDzfc2.js";import{d as X,_ as se,$ as ie,o as g,G as C,H as l,i as t,L as u,I as b,c as R,F as B,R as Y,m as de,a as G,K as H}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as m}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as S}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as pe}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const ue=n=>k.post("/admin/ip",n),re=n=>k.get(`/admin/ip?page=${n.page}&size=${n.size}`),me=n=>k.patch(`/admin/ip/${n.id}`,n),ce=n=>k.delete("/admin/ip",{data:{ip_ids:[n.id]}}),fe=n=>k.delete("/admin/ip",{data:{ip_ids:n}}),_e=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/,ve=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))/,Z=n=>_e.test(n)||ve.test(n),ge=X({__name:"AddIp",props:{modelValue:{},modelModifiers:{}},emits:se(["getIps"],["update:modelValue"]),setup(n,{emit:d}){const V=d,I=ie(n,"modelValue"),c=m(!1),F=(f,o,y)=>{if(!o)return y(new Error("请输入IP地址"));Z(o)?y():y(new Error("请输入有效的IP地址"))},i=m({ip:"",mode:0}),$=m(null),U={ip:[{validator:F,message:"请输入IP",trigger:"blur"}]},M=async f=>{if(!(!f||!await f.validate()))try{c.value=!0,await ue(i.value),A.success("添加成功")}finally{c.value=!1}},w=f=>{V("getIps"),f()},x=()=>{I.value=!1,V("getIps")};return(f,o)=>{const y=K,a=ee,s=q,_=J,r=te,E=Q,L=ae,D=W;return g(),C(L,{title:"添加IP",width:"60%",modelValue:I.value,"onUpdate:modelValue":o[4]||(o[4]=p=>I.value=p),"before-close":w},{footer:l(()=>[t(E,{type:"info",onClick:o[2]||(o[2]=p=>x())},{default:l(()=>[u("取消")]),_:1}),t(E,{type:"primary",onClick:o[3]||(o[3]=p=>M($.value))},{default:l(()=>[u("添加")]),_:1})]),default:l(()=>[b((g(),C(r,{ref_key:"addIpFormRef",ref:$,model:i.value,rules:U,"label-width":"auto"},{default:l(()=>[t(a,{label:"IP",prop:"ip"},{default:l(()=>[t(y,{modelValue:i.value.ip,"onUpdate:modelValue":o[0]||(o[0]=p=>i.value.ip=p)},null,8,["modelValue"])]),_:1}),t(a,{label:"模式",prop:"mode"},{default:l(()=>[t(_,{modelValue:i.value.mode,"onUpdate:modelValue":o[1]||(o[1]=p=>i.value.mode=p)},{default:l(()=>[(g(),R(B,null,Y(["黑名单","白名单"],(p,P)=>t(s,{key:P,label:p,value:P},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[D,c.value]])]),_:1},8,["modelValue"])}}}),Ie=X({__name:"IpManagement",setup(n){const d=m(!1),V=m(15),I=m(1),c=m(),F=m([]),i=async()=>{try{d.value=!0;const a=await re({page:I.value,size:V.value});c.value=a.data}finally{d.value=!1}},$=async a=>{a.edit=!(a.edit??!1)},U=async a=>{if(!Z(a.ip))return A.error("请输入正确的IP");a.edit=!(a.edit??!0),await M(a)},M=async a=>{try{d.value=!0,await me(a),A.success("修改IP成功")}finally{d.value=!1,await i()}},w=async a=>{try{d.value=!0,await ce(a),A.success("删除IP成功")}finally{d.value=!1,await i()}},x=async()=>{try{d.value=!0;const a=F.value.map(s=>s.id);await fe(a),A.success("批量删除IP成功")}finally{d.value=!1,await i()}},f=a=>F.value=a;de(i);const o=m(!1),y=()=>o.value=!o.value;return(a,s)=>{var N,O,T;const _=Q,r=le,E=K,L=q,D=J,p=oe,P=ne,h=W;return g(),R(B,null,[t(ge,{onGetIps:i,modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=e=>o.value=e)},null,8,["modelValue"]),t(_,{type:"primary",onClick:s[1]||(s[1]=e=>i())},{default:l(()=>[u("刷新列表")]),_:1}),t(_,{type:"primary",onClick:s[2]||(s[2]=e=>y())},{default:l(()=>[u("添加IP")]),_:1}),t(_,{type:"danger",disabled:F.value.length<=0,onClick:s[3]||(s[3]=e=>x())},{default:l(()=>[u(" 批量删除 ")]),_:1},8,["disabled"]),b((g(),C(p,{data:((N=c.value)==null?void 0:N.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:f},{default:l(()=>[t(r,{type:"selection",width:"40"}),t(r,{prop:"id",label:"ID"}),t(r,{prop:"ip",label:"IP"},{default:l(({row:e})=>[b(G("span",null,S(e.ip),513),[[z,!e.edit]]),b(t(E,{modelValue:e.ip,"onUpdate:modelValue":v=>e.ip=v},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(r,{prop:"mode",label:"模式"},{default:l(({row:e})=>[b(G("span",null,S(e.mode?"白名单":"黑名单"),513),[[z,!e.edit]]),b(t(D,{modelValue:e.mode,"onUpdate:modelValue":v=>e.mode=v},{default:l(()=>[(g(),R(B,null,Y(["黑名单","白名单"],(v,j)=>t(L,{key:j,label:v,value:j},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(r,{prop:"created_at",label:"创建时间"},{default:l(({row:e})=>[u(S(new Date(e.created_at).toLocaleString()),1)]),_:1}),t(r,{prop:"updated_at",label:"更新时间"},{default:l(({row:e})=>[u(S(new Date(e.updated_at).toLocaleString()),1)]),_:1}),t(r,{width:"150",label:"操作",fixed:"right"},{default:l(({row:e})=>[e.edit?H("",!0):(g(),C(_,{key:0,size:"small",type:"primary",onClick:v=>$(e)},{default:l(()=>[u(" 编辑 ")]),_:2},1032,["onClick"])),e.edit?(g(),C(_,{key:1,size:"small",type:"primary",onClick:v=>U(e)},{default:l(()=>[u(" 保存 ")]),_:2},1032,["onClick"])):H("",!0),t(_,{size:"small",type:"danger",onClick:v=>w(e)},{default:l(()=>[u("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[h,d.value]]),t(P,{"current-page":I.value,"onUpdate:currentPage":s[4]||(s[4]=e=>I.value=e),"page-size":V.value,"onUpdate:pageSize":s[5]||(s[5]=e=>V.value=e),"page-sizes":[15,50,100,500,((O=c.value)==null?void 0:O.total)??100],total:((T=c.value)==null?void 0:T.total)??100,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:i,onCurrentChange:i},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),Ne=pe(Ie,[["__scopeId","data-v-bfd061e8"]]);export{Ne as default}; +import{E as A,b as K,c as ee,i as q,j as J,e as te,d as Q,k as ae,v as W,m as le,o as oe,s as ne}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{v as z}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{i as k}from"./index-BE2XYqVW.js";import{d as X,_ as se,$ as ie,o as g,G as C,H as l,i as t,L as u,I as b,c as R,F as B,R as Y,m as de,a as G,K as H}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as m}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as S}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as pe}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const ue=n=>k.post("/admin/ip",n),re=n=>k.get(`/admin/ip?page=${n.page}&size=${n.size}`),me=n=>k.patch(`/admin/ip/${n.id}`,n),ce=n=>k.delete("/admin/ip",{data:{ip_ids:[n.id]}}),fe=n=>k.delete("/admin/ip",{data:{ip_ids:n}}),_e=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/,ve=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))/,Z=n=>_e.test(n)||ve.test(n),ge=X({__name:"AddIp",props:{modelValue:{},modelModifiers:{}},emits:se(["getIps"],["update:modelValue"]),setup(n,{emit:d}){const V=d,I=ie(n,"modelValue"),c=m(!1),F=(f,o,y)=>{if(!o)return y(new Error("请输入IP地址"));Z(o)?y():y(new Error("请输入有效的IP地址"))},i=m({ip:"",mode:0}),$=m(null),U={ip:[{validator:F,message:"请输入IP",trigger:"blur"}]},M=async f=>{if(!(!f||!await f.validate()))try{c.value=!0,await ue(i.value),A.success("添加成功")}finally{c.value=!1}},w=f=>{V("getIps"),f()},x=()=>{I.value=!1,V("getIps")};return(f,o)=>{const y=K,a=ee,s=q,_=J,r=te,E=Q,L=ae,D=W;return g(),C(L,{title:"添加IP",width:"60%",modelValue:I.value,"onUpdate:modelValue":o[4]||(o[4]=p=>I.value=p),"before-close":w},{footer:l(()=>[t(E,{type:"info",onClick:o[2]||(o[2]=p=>x())},{default:l(()=>[u("取消")]),_:1}),t(E,{type:"primary",onClick:o[3]||(o[3]=p=>M($.value))},{default:l(()=>[u("添加")]),_:1})]),default:l(()=>[b((g(),C(r,{ref_key:"addIpFormRef",ref:$,model:i.value,rules:U,"label-width":"auto"},{default:l(()=>[t(a,{label:"IP",prop:"ip"},{default:l(()=>[t(y,{modelValue:i.value.ip,"onUpdate:modelValue":o[0]||(o[0]=p=>i.value.ip=p)},null,8,["modelValue"])]),_:1}),t(a,{label:"模式",prop:"mode"},{default:l(()=>[t(_,{modelValue:i.value.mode,"onUpdate:modelValue":o[1]||(o[1]=p=>i.value.mode=p)},{default:l(()=>[(g(),R(B,null,Y(["黑名单","白名单"],(p,P)=>t(s,{key:P,label:p,value:P},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[D,c.value]])]),_:1},8,["modelValue"])}}}),Ie=X({__name:"IpManagement",setup(n){const d=m(!1),V=m(15),I=m(1),c=m(),F=m([]),i=async()=>{try{d.value=!0;const a=await re({page:I.value,size:V.value});c.value=a.data}finally{d.value=!1}},$=async a=>{a.edit=!(a.edit??!1)},U=async a=>{if(!Z(a.ip))return A.error("请输入正确的IP");a.edit=!(a.edit??!0),await M(a)},M=async a=>{try{d.value=!0,await me(a),A.success("修改IP成功")}finally{d.value=!1,await i()}},w=async a=>{try{d.value=!0,await ce(a),A.success("删除IP成功")}finally{d.value=!1,await i()}},x=async()=>{try{d.value=!0;const a=F.value.map(s=>s.id);await fe(a),A.success("批量删除IP成功")}finally{d.value=!1,await i()}},f=a=>F.value=a;de(i);const o=m(!1),y=()=>o.value=!o.value;return(a,s)=>{var N,O,T;const _=Q,r=le,E=K,L=q,D=J,p=oe,P=ne,h=W;return g(),R(B,null,[t(ge,{onGetIps:i,modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=e=>o.value=e)},null,8,["modelValue"]),t(_,{type:"primary",onClick:s[1]||(s[1]=e=>i())},{default:l(()=>[u("刷新列表")]),_:1}),t(_,{type:"primary",onClick:s[2]||(s[2]=e=>y())},{default:l(()=>[u("添加IP")]),_:1}),t(_,{type:"danger",disabled:F.value.length<=0,onClick:s[3]||(s[3]=e=>x())},{default:l(()=>[u(" 批量删除 ")]),_:1},8,["disabled"]),b((g(),C(p,{data:((N=c.value)==null?void 0:N.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:f},{default:l(()=>[t(r,{type:"selection",width:"40"}),t(r,{prop:"id",label:"ID"}),t(r,{prop:"ip",label:"IP"},{default:l(({row:e})=>[b(G("span",null,S(e.ip),513),[[z,!e.edit]]),b(t(E,{modelValue:e.ip,"onUpdate:modelValue":v=>e.ip=v},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(r,{prop:"mode",label:"模式"},{default:l(({row:e})=>[b(G("span",null,S(e.mode?"白名单":"黑名单"),513),[[z,!e.edit]]),b(t(D,{modelValue:e.mode,"onUpdate:modelValue":v=>e.mode=v},{default:l(()=>[(g(),R(B,null,Y(["黑名单","白名单"],(v,j)=>t(L,{key:j,label:v,value:j},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(r,{prop:"created_at",label:"创建时间"},{default:l(({row:e})=>[u(S(new Date(e.created_at).toLocaleString()),1)]),_:1}),t(r,{prop:"updated_at",label:"更新时间"},{default:l(({row:e})=>[u(S(new Date(e.updated_at).toLocaleString()),1)]),_:1}),t(r,{width:"150",label:"操作",fixed:"right"},{default:l(({row:e})=>[e.edit?H("",!0):(g(),C(_,{key:0,size:"small",type:"primary",onClick:v=>$(e)},{default:l(()=>[u(" 编辑 ")]),_:2},1032,["onClick"])),e.edit?(g(),C(_,{key:1,size:"small",type:"primary",onClick:v=>U(e)},{default:l(()=>[u(" 保存 ")]),_:2},1032,["onClick"])):H("",!0),t(_,{size:"small",type:"danger",onClick:v=>w(e)},{default:l(()=>[u("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[h,d.value]]),t(P,{"current-page":I.value,"onUpdate:currentPage":s[4]||(s[4]=e=>I.value=e),"page-size":V.value,"onUpdate:pageSize":s[5]||(s[5]=e=>V.value=e),"page-sizes":[15,50,100,500,((O=c.value)==null?void 0:O.total)??100],total:((T=c.value)==null?void 0:T.total)??100,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:i,onCurrentChange:i},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),Ne=pe(Ie,[["__scopeId","data-v-bfd061e8"]]);export{Ne as default}; diff --git a/public/assets/js/IpManagement-CZSvyyPn.js.gz b/public/assets/js/IpManagement-CZSvyyPn.js.gz new file mode 100644 index 0000000..64086e9 Binary files /dev/null and b/public/assets/js/IpManagement-CZSvyyPn.js.gz differ diff --git a/public/assets/js/IpManagement-Co1yF6gt.js.gz b/public/assets/js/IpManagement-Co1yF6gt.js.gz deleted file mode 100644 index de141cd..0000000 Binary files a/public/assets/js/IpManagement-Co1yF6gt.js.gz and /dev/null differ diff --git a/public/assets/js/LoginView-Bspeea7Q.js.gz b/public/assets/js/LoginView-Bspeea7Q.js.gz deleted file mode 100644 index 6b00bc0..0000000 Binary files a/public/assets/js/LoginView-Bspeea7Q.js.gz and /dev/null differ diff --git a/public/assets/js/LoginView-Bspeea7Q.js b/public/assets/js/LoginView-C-WVw0kt.js similarity index 97% rename from public/assets/js/LoginView-Bspeea7Q.js rename to public/assets/js/LoginView-C-WVw0kt.js index 2e3bab0..975aa3e 100644 --- a/public/assets/js/LoginView-Bspeea7Q.js +++ b/public/assets/js/LoginView-C-WVw0kt.js @@ -1 +1 @@ -import{a as F,v as k,E as R,b as x,c as B,d as C,e as $}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{c as _}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{g as I,a as N,l as K,s as S,b as q}from"./index-BrpDzfc2.js";import{f as D}from"./favicon-BrYC5Vmz.js";import{u as U}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as A,c as G,I as H,G as M,H as s,o as g,a as d,i as o,L as v}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as f,u as w}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as T}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as h}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";const j={class:"container"},z=["src"],J=A({__name:"LoginView",setup(O){const n=U();I()==="1"&&n.push("/admin");const y=()=>n.push("/register"),i=f(!1),t=f({username:"",password:""}),l=f(null),V={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},m=async u=>{if(!(!u||!await u.validate()))try{i.value=!0;const e=await K({username:t.value.username,password:t.value.password});R.success("登陆成功"),S("1");const a=e.data.role;q(a),n.push(`/${a}`)}finally{i.value=!1}};return(u,e)=>{const a=x,p=B,c=C,b=$,L=F,E=k;return g(),G("div",j,[H((g(),M(L,null,{default:s(()=>[d("h1",null,[d("img",{src:w(D),alt:"logo"},null,8,z)]),d("h2",null,"登陆 | "+T(w(N)()),1),o(b,{ref_key:"loginFormRef",ref:l,model:t.value,rules:V,"label-width":"auto"},{default:s(()=>[o(p,{label:"用户名",prop:"username"},{default:s(()=>[o(a,{modelValue:t.value.username,"onUpdate:modelValue":e[0]||(e[0]=r=>t.value.username=r),onKeyup:e[1]||(e[1]=_(r=>m(l.value),["enter"]))},null,8,["modelValue"])]),_:1}),o(p,{label:"密码",prop:"password"},{default:s(()=>[o(a,{modelValue:t.value.password,"onUpdate:modelValue":e[2]||(e[2]=r=>t.value.password=r),type:"password",onKeyup:e[3]||(e[3]=_(r=>m(l.value),["enter"]))},null,8,["modelValue"])]),_:1}),o(p,{class:"center"},{default:s(()=>[o(c,{type:"primary",onClick:e[4]||(e[4]=r=>y())},{default:s(()=>[v("注册")]),_:1}),o(c,{type:"primary",onClick:e[5]||(e[5]=r=>m(l.value))},{default:s(()=>[v("登陆")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})),[[E,i.value]])])}}}),_e=h(J,[["__scopeId","data-v-76f977eb"]]);export{_e as default}; +import{a as F,v as k,E as R,b as x,c as B,d as C,e as $}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{c as _}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{g as I,a as N,l as K,s as S,b as q}from"./index-BE2XYqVW.js";import{f as D}from"./favicon-BrYC5Vmz.js";import{u as U}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as A,c as G,I as H,G as M,H as s,o as g,a as d,i as o,L as v}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as f,u as w}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as T}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as h}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";const j={class:"container"},z=["src"],J=A({__name:"LoginView",setup(O){const n=U();I()==="1"&&n.push("/admin");const y=()=>n.push("/register"),i=f(!1),t=f({username:"",password:""}),l=f(null),V={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},m=async u=>{if(!(!u||!await u.validate()))try{i.value=!0;const e=await K({username:t.value.username,password:t.value.password});R.success("登陆成功"),S("1");const a=e.data.role;q(a),n.push(`/${a}`)}finally{i.value=!1}};return(u,e)=>{const a=x,p=B,c=C,b=$,L=F,E=k;return g(),G("div",j,[H((g(),M(L,null,{default:s(()=>[d("h1",null,[d("img",{src:w(D),alt:"logo"},null,8,z)]),d("h2",null,"登陆 | "+T(w(N)()),1),o(b,{ref_key:"loginFormRef",ref:l,model:t.value,rules:V,"label-width":"auto"},{default:s(()=>[o(p,{label:"用户名",prop:"username"},{default:s(()=>[o(a,{modelValue:t.value.username,"onUpdate:modelValue":e[0]||(e[0]=r=>t.value.username=r),onKeyup:e[1]||(e[1]=_(r=>m(l.value),["enter"]))},null,8,["modelValue"])]),_:1}),o(p,{label:"密码",prop:"password"},{default:s(()=>[o(a,{modelValue:t.value.password,"onUpdate:modelValue":e[2]||(e[2]=r=>t.value.password=r),type:"password",onKeyup:e[3]||(e[3]=_(r=>m(l.value),["enter"]))},null,8,["modelValue"])]),_:1}),o(p,{class:"center"},{default:s(()=>[o(c,{type:"primary",onClick:e[4]||(e[4]=r=>y())},{default:s(()=>[v("注册")]),_:1}),o(c,{type:"primary",onClick:e[5]||(e[5]=r=>m(l.value))},{default:s(()=>[v("登陆")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})),[[E,i.value]])])}}}),_e=h(J,[["__scopeId","data-v-76f977eb"]]);export{_e as default}; diff --git a/public/assets/js/LoginView-C-WVw0kt.js.gz b/public/assets/js/LoginView-C-WVw0kt.js.gz new file mode 100644 index 0000000..2f1ab20 Binary files /dev/null and b/public/assets/js/LoginView-C-WVw0kt.js.gz differ diff --git a/public/assets/js/RecordManagement-DkwxqT_A.js.gz b/public/assets/js/RecordManagement-DkwxqT_A.js.gz deleted file mode 100644 index 36579a2..0000000 Binary files a/public/assets/js/RecordManagement-DkwxqT_A.js.gz and /dev/null differ diff --git a/public/assets/js/RecordManagement-DkwxqT_A.js b/public/assets/js/RecordManagement-J2tVDgdK.js similarity index 97% rename from public/assets/js/RecordManagement-DkwxqT_A.js rename to public/assets/js/RecordManagement-J2tVDgdK.js index 4801b6e..00aaa79 100644 --- a/public/assets/js/RecordManagement-DkwxqT_A.js +++ b/public/assets/js/RecordManagement-J2tVDgdK.js @@ -1 +1 @@ -import{E as x,d as j,g as A,i as H,j as O,m as G,o as J,s as q,v as K}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as v}from"./index-BrpDzfc2.js";import{f as w}from"./format-CyW-QbYa.js";import{u as Q}from"./changeConfigForm-GjgVryLW.js";import{c as W}from"./copy-By2guqEs.js";import{d as X,m as Y,o as E,c as Z,i as e,H as l,L as r,I as ee,G as te,a as ae,F as oe}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as m,u as h}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as d}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as le}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const ne=p=>v.get(`/admin/record?page=${p.page}&size=${p.size}&orderBy=${p.orderBy}`),re=()=>v.get("/admin/record/count"),se=p=>v.delete("/admin/record",{data:{record_ids:[p.id]}}),ie=p=>v.delete("/admin/record",{data:{record_ids:p}}),de=X({__name:"RecordManagement",setup(p){const s=m(!1),y=m(15),b=m(1),C=m("id"),_=m(),z=m([]),g=m({today:{count:0,size:0},total:{count:0,size:0}}),c=async()=>{try{s.value=!0;const o=await ne({page:b.value,size:y.value,orderBy:C.value});_.value=o.data}finally{s.value=!1,await B()}},B=async()=>{try{s.value=!0;const o=await re();g.value=o.data}finally{s.value=!1}},D=async o=>{try{s.value=!0,await se(o),x.success("删除记录成功")}finally{s.value=!1,await c()}},$=async()=>{try{s.value=!0;const o=z.value.map(t=>t.id);await ie(o),x.success("删除记录成功")}finally{s.value=!1,await c()}},I=o=>z.value=o;Y(c);function L(o){return o.map(t=>t.toString(16).padStart(2,"0")).join("")}function F(o,t){const i=t.length,f=[];for(let u=0;u{const t=Q(),i=t.changeConfigForm.proxy_server;if(!i)return x.warning("未配置代理服务器");W(i+"?data="+F(JSON.stringify({url:o.url,ua:o.ua}),t.changeConfigForm.proxy_password))};return(o,t)=>{var k,R,S;const i=j,f=A,u=H,P=O,n=G,T=J,M=q,N=K;return E(),Z(oe,null,[e(i,{type:"primary",onClick:t[0]||(t[0]=a=>c())},{default:l(()=>[r("刷新列表")]),_:1}),e(i,{type:"danger",disabled:z.value.length<=0,onClick:t[1]||(t[1]=a=>$())},{default:l(()=>[r(" 批量删除 ")]),_:1},8,["disabled"]),e(f,{style:{"margin-left":"20px"}},{default:l(()=>[r(" 累计解析: "+d(g.value.total.count)+" ("+d(h(w)(g.value.total.size??0))+") ",1)]),_:1}),e(f,null,{default:l(()=>[r(" 今日解析: "+d(g.value.today.count)+" ("+d(h(w)(g.value.today.size??0))+") ",1)]),_:1}),e(f,{style:{"margin-left":"20px"}},{default:l(()=>[r(" 按照 "),e(P,{modelValue:C.value,"onUpdate:modelValue":t[2]||(t[2]=a=>C.value=a),onChange:c,style:{width:"100px"}},{default:l(()=>[e(u,{key:"id",label:"时间",value:"id"}),e(u,{key:"size",label:"文件大小",value:"size"})]),_:1},8,["modelValue"]),r(" 排序 ")]),_:1}),ee((E(),te(T,{data:((k=_.value)==null?void 0:k.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:I},{default:l(()=>[e(n,{type:"selection",width:"40"}),e(n,{prop:"id",label:"ID"}),e(n,{prop:"ip",label:"IP"}),e(n,{prop:"fs_id",label:"文件ID"}),e(n,{prop:"file.filename",label:"文件名"}),e(n,{prop:"fs_id",label:"文件大小"},{default:l(({row:a})=>[ae("span",null,d(h(w)(a.file.size)),1)]),_:1}),e(n,{prop:"url",label:"下载链接"}),e(n,{prop:"ua",label:"UA"}),e(n,{prop:"user_id",label:"用户ID"},{default:l(({row:a})=>[r(d(a.user_id??"非用戶解析"),1)]),_:1}),e(n,{prop:"token_id",label:"卡密ID"},{default:l(({row:a})=>[r(d(a.token_id??"非卡密解析"),1)]),_:1}),e(n,{prop:"account_id",label:"解析账号ID"}),e(n,{prop:"created_at",label:"创建时间"},{default:l(({row:a})=>[r(d(new Date(a.created_at).toLocaleString()),1)]),_:1}),e(n,{prop:"updated_at",label:"更新时间"},{default:l(({row:a})=>[r(d(new Date(a.updated_at).toLocaleString()),1)]),_:1}),e(n,{width:"220",label:"操作",fixed:"right"},{default:l(({row:a})=>[e(i,{size:"small",type:"primary",onClick:U=>V(a)},{default:l(()=>[r(" 获取代理服务器链接 ")]),_:2},1032,["onClick"]),e(i,{size:"small",type:"danger",onClick:U=>D(a)},{default:l(()=>[r("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[N,s.value]]),e(M,{"current-page":b.value,"onUpdate:currentPage":t[3]||(t[3]=a=>b.value=a),"page-size":y.value,"onUpdate:pageSize":t[4]||(t[4]=a=>y.value=a),"page-sizes":[15,50,100,500,((R=_.value)==null?void 0:R.total)??100],total:((S=_.value)==null?void 0:S.total)??100,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:c,onCurrentChange:c},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),Le=le(de,[["__scopeId","data-v-f57bd9b1"]]);export{Le as default}; +import{E as x,d as j,g as A,i as H,j as O,m as G,o as J,s as q,v as K}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as v}from"./index-BE2XYqVW.js";import{f as w}from"./format-CyW-QbYa.js";import{u as Q}from"./changeConfigForm-D02j05Uv.js";import{c as W}from"./copy-By2guqEs.js";import{d as X,m as Y,o as E,c as Z,i as e,H as l,L as r,I as ee,G as te,a as ae,F as oe}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as m,u as h}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as d}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as le}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const ne=p=>v.get(`/admin/record?page=${p.page}&size=${p.size}&orderBy=${p.orderBy}`),re=()=>v.get("/admin/record/count"),se=p=>v.delete("/admin/record",{data:{record_ids:[p.id]}}),ie=p=>v.delete("/admin/record",{data:{record_ids:p}}),de=X({__name:"RecordManagement",setup(p){const s=m(!1),y=m(15),b=m(1),C=m("id"),_=m(),z=m([]),g=m({today:{count:0,size:0},total:{count:0,size:0}}),c=async()=>{try{s.value=!0;const o=await ne({page:b.value,size:y.value,orderBy:C.value});_.value=o.data}finally{s.value=!1,await B()}},B=async()=>{try{s.value=!0;const o=await re();g.value=o.data}finally{s.value=!1}},D=async o=>{try{s.value=!0,await se(o),x.success("删除记录成功")}finally{s.value=!1,await c()}},$=async()=>{try{s.value=!0;const o=z.value.map(t=>t.id);await ie(o),x.success("删除记录成功")}finally{s.value=!1,await c()}},I=o=>z.value=o;Y(c);function L(o){return o.map(t=>t.toString(16).padStart(2,"0")).join("")}function F(o,t){const i=t.length,f=[];for(let u=0;u{const t=Q(),i=t.changeConfigForm.proxy_server;if(!i)return x.warning("未配置代理服务器");W(i+"?data="+F(JSON.stringify({url:o.url,ua:o.ua}),t.changeConfigForm.proxy_password))};return(o,t)=>{var k,R,S;const i=j,f=A,u=H,P=O,n=G,T=J,M=q,N=K;return E(),Z(oe,null,[e(i,{type:"primary",onClick:t[0]||(t[0]=a=>c())},{default:l(()=>[r("刷新列表")]),_:1}),e(i,{type:"danger",disabled:z.value.length<=0,onClick:t[1]||(t[1]=a=>$())},{default:l(()=>[r(" 批量删除 ")]),_:1},8,["disabled"]),e(f,{style:{"margin-left":"20px"}},{default:l(()=>[r(" 累计解析: "+d(g.value.total.count)+" ("+d(h(w)(g.value.total.size??0))+") ",1)]),_:1}),e(f,null,{default:l(()=>[r(" 今日解析: "+d(g.value.today.count)+" ("+d(h(w)(g.value.today.size??0))+") ",1)]),_:1}),e(f,{style:{"margin-left":"20px"}},{default:l(()=>[r(" 按照 "),e(P,{modelValue:C.value,"onUpdate:modelValue":t[2]||(t[2]=a=>C.value=a),onChange:c,style:{width:"100px"}},{default:l(()=>[e(u,{key:"id",label:"时间",value:"id"}),e(u,{key:"size",label:"文件大小",value:"size"})]),_:1},8,["modelValue"]),r(" 排序 ")]),_:1}),ee((E(),te(T,{data:((k=_.value)==null?void 0:k.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:I},{default:l(()=>[e(n,{type:"selection",width:"40"}),e(n,{prop:"id",label:"ID"}),e(n,{prop:"ip",label:"IP"}),e(n,{prop:"fs_id",label:"文件ID"}),e(n,{prop:"file.filename",label:"文件名"}),e(n,{prop:"fs_id",label:"文件大小"},{default:l(({row:a})=>[ae("span",null,d(h(w)(a.file.size)),1)]),_:1}),e(n,{prop:"url",label:"下载链接"}),e(n,{prop:"ua",label:"UA"}),e(n,{prop:"user_id",label:"用户ID"},{default:l(({row:a})=>[r(d(a.user_id??"非用戶解析"),1)]),_:1}),e(n,{prop:"token_id",label:"卡密ID"},{default:l(({row:a})=>[r(d(a.token_id??"非卡密解析"),1)]),_:1}),e(n,{prop:"account_id",label:"解析账号ID"}),e(n,{prop:"created_at",label:"创建时间"},{default:l(({row:a})=>[r(d(new Date(a.created_at).toLocaleString()),1)]),_:1}),e(n,{prop:"updated_at",label:"更新时间"},{default:l(({row:a})=>[r(d(new Date(a.updated_at).toLocaleString()),1)]),_:1}),e(n,{width:"220",label:"操作",fixed:"right"},{default:l(({row:a})=>[e(i,{size:"small",type:"primary",onClick:U=>V(a)},{default:l(()=>[r(" 获取代理服务器链接 ")]),_:2},1032,["onClick"]),e(i,{size:"small",type:"danger",onClick:U=>D(a)},{default:l(()=>[r("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[N,s.value]]),e(M,{"current-page":b.value,"onUpdate:currentPage":t[3]||(t[3]=a=>b.value=a),"page-size":y.value,"onUpdate:pageSize":t[4]||(t[4]=a=>y.value=a),"page-sizes":[15,50,100,500,((R=_.value)==null?void 0:R.total)??100],total:((S=_.value)==null?void 0:S.total)??100,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:c,onCurrentChange:c},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),Le=le(de,[["__scopeId","data-v-f57bd9b1"]]);export{Le as default}; diff --git a/public/assets/js/RecordManagement-J2tVDgdK.js.gz b/public/assets/js/RecordManagement-J2tVDgdK.js.gz new file mode 100644 index 0000000..6ed3e4d Binary files /dev/null and b/public/assets/js/RecordManagement-J2tVDgdK.js.gz differ diff --git a/public/assets/js/RegisterView-Bl1dUNGS.js.gz b/public/assets/js/RegisterView-Bl1dUNGS.js.gz deleted file mode 100644 index 3903aee..0000000 Binary files a/public/assets/js/RegisterView-Bl1dUNGS.js.gz and /dev/null differ diff --git a/public/assets/js/RegisterView-Bl1dUNGS.js b/public/assets/js/RegisterView-Ce4hpDS4.js similarity index 98% rename from public/assets/js/RegisterView-Bl1dUNGS.js rename to public/assets/js/RegisterView-Ce4hpDS4.js index 9ebd1ce..c793050 100644 --- a/public/assets/js/RegisterView-Bl1dUNGS.js +++ b/public/assets/js/RegisterView-Ce4hpDS4.js @@ -1 +1 @@ -import{a as R,v as x,E as B,b as K,c as L,d as N,e as $}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{c as d}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{g as I,u as S,a as q,r as U}from"./index-BrpDzfc2.js";import{f as D}from"./favicon-BrYC5Vmz.js";import{u as M}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as A,c as G,I as H,G as V,H as a,o as f,a as v,i as r,K as T,L as b}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as _,u as c}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as j}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as z}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";const J={class:"container"},O=["src"],P=A({__name:"RegisterView",setup(Q){const i=M();I()==="1"&&i.push("/admin");const k=()=>i.push("/login"),u=_(!1),o=_({username:"",password:"",inv_code:""}),s=_(null),g={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},w=S();w.config.need_inv_code&&(g.inv_code=[{required:!0,message:"请输入邀请码",trigger:"blur"}]);const n=async m=>{if(!(!m||!await m.validate()))try{u.value=!0,await U({username:o.value.username,password:o.value.password,inv_code:o.value.inv_code}),B.success("注册成功"),i.push("/login")}finally{u.value=!1}};return(m,e)=>{const p=K,l=L,y=N,E=$,F=R,C=x;return f(),G("div",J,[H((f(),V(F,null,{default:a(()=>[v("h1",null,[v("img",{src:c(D),alt:"logo"},null,8,O)]),v("h2",null,"注册 | "+j(c(q)()),1),r(E,{ref_key:"registerFormRef",ref:s,model:o.value,rules:g,"label-width":"auto"},{default:a(()=>[r(l,{label:"用户名",prop:"username"},{default:a(()=>[r(p,{modelValue:o.value.username,"onUpdate:modelValue":e[0]||(e[0]=t=>o.value.username=t),onKeyup:e[1]||(e[1]=d(t=>n(s.value),["enter"]))},null,8,["modelValue"])]),_:1}),r(l,{label:"密码",prop:"password"},{default:a(()=>[r(p,{modelValue:o.value.password,"onUpdate:modelValue":e[2]||(e[2]=t=>o.value.password=t),type:"password",onKeyup:e[3]||(e[3]=d(t=>n(s.value),["enter"]))},null,8,["modelValue"])]),_:1}),c(w).config.need_inv_code?(f(),V(l,{key:0,label:"邀请码",prop:"inv_code"},{default:a(()=>[r(p,{modelValue:o.value.inv_code,"onUpdate:modelValue":e[4]||(e[4]=t=>o.value.inv_code=t),onKeyup:e[5]||(e[5]=d(t=>n(s.value),["enter"]))},null,8,["modelValue"])]),_:1})):T("",!0),r(l,{class:"center"},{default:a(()=>[r(y,{type:"primary",onClick:e[6]||(e[6]=t=>k())},{default:a(()=>[b("登陆")]),_:1}),r(y,{type:"primary",onClick:e[7]||(e[7]=t=>n(s.value))},{default:a(()=>[b("注册")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})),[[C,u.value]])])}}}),ce=z(P,[["__scopeId","data-v-da197fbf"]]);export{ce as default}; +import{a as R,v as x,E as B,b as K,c as L,d as N,e as $}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{c as d}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{g as I,u as S,a as q,r as U}from"./index-BE2XYqVW.js";import{f as D}from"./favicon-BrYC5Vmz.js";import{u as M}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as A,c as G,I as H,G as V,H as a,o as f,a as v,i as r,K as T,L as b}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as _,u as c}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as j}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as z}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";const J={class:"container"},O=["src"],P=A({__name:"RegisterView",setup(Q){const i=M();I()==="1"&&i.push("/admin");const k=()=>i.push("/login"),u=_(!1),o=_({username:"",password:"",inv_code:""}),s=_(null),g={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},w=S();w.config.need_inv_code&&(g.inv_code=[{required:!0,message:"请输入邀请码",trigger:"blur"}]);const n=async m=>{if(!(!m||!await m.validate()))try{u.value=!0,await U({username:o.value.username,password:o.value.password,inv_code:o.value.inv_code}),B.success("注册成功"),i.push("/login")}finally{u.value=!1}};return(m,e)=>{const p=K,l=L,y=N,E=$,F=R,C=x;return f(),G("div",J,[H((f(),V(F,null,{default:a(()=>[v("h1",null,[v("img",{src:c(D),alt:"logo"},null,8,O)]),v("h2",null,"注册 | "+j(c(q)()),1),r(E,{ref_key:"registerFormRef",ref:s,model:o.value,rules:g,"label-width":"auto"},{default:a(()=>[r(l,{label:"用户名",prop:"username"},{default:a(()=>[r(p,{modelValue:o.value.username,"onUpdate:modelValue":e[0]||(e[0]=t=>o.value.username=t),onKeyup:e[1]||(e[1]=d(t=>n(s.value),["enter"]))},null,8,["modelValue"])]),_:1}),r(l,{label:"密码",prop:"password"},{default:a(()=>[r(p,{modelValue:o.value.password,"onUpdate:modelValue":e[2]||(e[2]=t=>o.value.password=t),type:"password",onKeyup:e[3]||(e[3]=d(t=>n(s.value),["enter"]))},null,8,["modelValue"])]),_:1}),c(w).config.need_inv_code?(f(),V(l,{key:0,label:"邀请码",prop:"inv_code"},{default:a(()=>[r(p,{modelValue:o.value.inv_code,"onUpdate:modelValue":e[4]||(e[4]=t=>o.value.inv_code=t),onKeyup:e[5]||(e[5]=d(t=>n(s.value),["enter"]))},null,8,["modelValue"])]),_:1})):T("",!0),r(l,{class:"center"},{default:a(()=>[r(y,{type:"primary",onClick:e[6]||(e[6]=t=>k())},{default:a(()=>[b("登陆")]),_:1}),r(y,{type:"primary",onClick:e[7]||(e[7]=t=>n(s.value))},{default:a(()=>[b("注册")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})),[[C,u.value]])])}}}),ce=z(P,[["__scopeId","data-v-da197fbf"]]);export{ce as default}; diff --git a/public/assets/js/RegisterView-Ce4hpDS4.js.gz b/public/assets/js/RegisterView-Ce4hpDS4.js.gz new file mode 100644 index 0000000..63144d4 Binary files /dev/null and b/public/assets/js/RegisterView-Ce4hpDS4.js.gz differ diff --git a/public/assets/js/ShowFileList-DPSUtq2U.js b/public/assets/js/ShowFileList-BUr4nlX1.js similarity index 97% rename from public/assets/js/ShowFileList-DPSUtq2U.js rename to public/assets/js/ShowFileList-BUr4nlX1.js index 487d98e..a75e6b1 100644 --- a/public/assets/js/ShowFileList-DPSUtq2U.js +++ b/public/assets/js/ShowFileList-BUr4nlX1.js @@ -1 +1 @@ -import{m as w,n as D,o as u,a as L,v as Z}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import"./index-BrpDzfc2.js";import{u as F}from"./fileListStore-CTDvCN_1.js";import{a as U,f as x}from"./format-CyW-QbYa.js";import{i as c}from"./isMobile-BD0f7XPI.js";import{s as y}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{d as N,I as M,o as T,G as V,H as a,i,a as C,L as l,K as Y,Y as J,Z as b}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as j,u as t}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as g}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as G}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const O="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACRlJREFUeF7tnUFuGzcUhkmrm/YStRHlGEWtRQx0F9jZJ7pBb9D4BD1CnH3kZlcgWcTpEdplG2QK9Boqi7HkQk7ihHzDmfk17zMQuGjImcfv5weSGkmJgR8IQOBOAhE2EIDA3QQQhNkBgc8QQBCmBwQQhDkAARsBVhAbN3o5IYAgToJmmDYCCGLjRi8nBBDESdAM00YAQWzc6OWEAII4CZph2gggiI0bvZwQQBAnQTNMGwEEsXGjlxMCCOIkaIZpI4AgNm70ckIAQZwEzTBtBBDExo1eTgggiJOgGaaNAILYuNHLCQEEcRI0w7QRQBAbN3o5IYAgToJmmDYCCGLjRi8nBBDESdAM00ZgUEHSrw8Pw1cHj0OKhyGE9k/7c2wr3X2vZkvgavM7vb3+FQ+a+ODF9v+5Z9QZQO+C7EjRioAMnSPLukATQjqPJ5cXWa1pdCeBXgVJr09/Cik+hf9oBNpV5irE+JxVxZZBL4Kk14+OQ0rPdrZRturoVZPARTxZLWte0MO1qgvCqiE9bdh6FcZTVZD06uwN54zCBMZoHtPT+ODyfIxb79s9qwmCHPsWfWjCer2IP7y8eTVs7wYwRMFVBEmvztrzxpMhCuYeVQk08WR1VPWKE7tYZ0G2B/J2a8XPfhK4iierxX6W3n/VnQS5fsYxm73vv0zu0DMBXuG6A3A3QTiU9zxvB7w8B/dPwjYLwtZqwMk7zK2aEOOSB4q3YdsFYfUYZtoOexcO7R/w7iJIGjY77jYQAc4jO6BNgqRXp09CiO1Lu/xMkUCMC7Zam2CNgvDcY4pe7IyJrdYWhlUQtlcTNySEwFbLsoLw7GP6ZmxHyKtaJkE2b2XnybkPT9xvtYq3WBzQfZixM0rXWy0EcTffiwfseqtVLggfoy2eYRPo4HarhSATmL2DDMHpe7UQZJDZNYmbuNxqlQvy2+nPYR1/nETkDKKMQAz/hG/X35V1+nzreKT9icZyQX4/exO+4futak4SrhVuPvbb/t78d4rP4/3xvwAPQZidygQ23+sV0ts4H+dL8BBEeXpQ2y6BJsR0Ee8N+20sCMIk3DcCg4qCIPs2Paj3hsDmS/B63nohCBNunwn0vpqUC/LH2S/h6/Bwn6lS+8QItA8xezqblAvyjm9sn9j0mspwmjBbL2o/V0GQqUwPxtESaOK87jdFIggTa2oELuK83j/zgCBTmx6MJ4SKZxIEYUJNk0AlSRBkmtODUbXv6apwaEcQptKUCXQ+jyDIlKcHY2tCissu7wpGECbR1Alcxbn93z9BkKlPD8bXfrZkYV1FEIQJ5IGA+SyCIB6mB2M0P2FHECaPDwLGbRaC+JgejNL44BBBmDpeCJi2WQjiZXowzhDnq+L5Xtwh8XkQptq+Epitj0o/L4Ig+xo2dZcTMBzUEaQcMz32lQCC7Gty1D0IAcMrWawggyTDTSQIIIhEDBShSgBBVJOhLgkCCCIRA0WoEkAQ1WSoS4IAgkjEQBGqBBBENRnqkiCAIBIxUIQqAQRRTYa6JAggiEQMFKFKAEFUk6EuCQIIIhEDRagSQBDVZKhLggCCSMRAEaoEEEQ1GeqSIIAgEjFQhCoBBFFNhrokCCCIRAwUoUoAQVSToS4JAggiEQNFqBJAENVkqEuCAIJIxEARqgQQRDUZ6pIggCASMVCEKgEEUU2GuiQIIIhEDBShSgBBVJOhLgkCCCIRA0WoEkAQ1WSoS4IAgkjEQBGqBBBENRnqkiCAIBIxUIQqAQRRTYa6JAggiEQMFKFKAEFUk6EuCQIIIhEDRagSQBDVZKhLggCCSMRAEaoEEEQ1GeqSIIAgEjFQhCoBBFFNhrokCCCIRAwUoUoAQVSToS4JAggiEQNFqBJAENVkqEuCAIJIxEARqgQQRDUZ6pIggCASMVCEKgEEUU2GuiQIIIhEDBShSgBBVJOhLgkCCCIRA0WoEkAQ1WSoS4IAgkjEQBGqBBBENRnqkiCAIBIxUIQqAQRRTYa6JAggiEQMFKFKAEFUk6EuCQIIIhEDRagSQBDVZKhLggCCSMRAEaoEEEQ1GeqSIIAgEjFQhCoBBFFNhrokCCCIRAwUoUoAQVSToS4JAggiEQNFqBJAENVkqEuCAIJIxEARqgQQRDUZ6pIgMIggfz46DjG9kRgwRUCgiEBaxvnlRUmXWNK4bZsQpBQZ7WUIDCHI+4eHYT17LzNmCoFALoHZ+igevWxym7ftylcQBCnhS1slAkMIcr3N+ussKY2bWiCQQyDOV8ULQnGHrSDtIf04pyjaQECEwEWcr5altRgFOX0SQnxWejPaQ2A8AuUHdNMZ5HoF4RwyXs7c2UbAcP4wC8I2y5YRvcYjYDl/dBPk3elPIcWn4w2ZO0Mgm4Dp/NFNELZZ2enQcGQCxu1VJ0E22ywO6yNHz+2/TMC8enQXZLOKtC/5Hn65TlpAYAQCHVaPzoKwiowQOLfMJ2B49+6HFzc9B9m9yPYl3/aZCA8O86OjZf8EmjhfHXW9TWdBrlcRDuxdc6B/bQIpLuL9F1ddL1tFELZaXWOgf1UCleSocga5td3i2UjVnLmYgUCFc8fuXautIDcXTUhiSJUulQhcxflqUela15epL0h7Hvn34DFP2WvGxLUyCHR63nHX9asLwkqSESVN6hKovK3qdYt160zCg8S6E4GrfUyg4oH8U3h7W0H+X0nYcjGt+yFwFWbrZelnzEtL6V2QW6KsZzxQLE2I9h8SaEKKyxrPOHLQDiYIouTEQZvPEGhCSOel32vVlejggtwW5eA4hPiYt6l0jXGy/ZsQ00W8d3k+1ghHE+Tjw3wrS/sTv9/+XfsOYd4lPNbMGPa+7XdVtTJsvrMqhb+HXinuGq6EIMNmwd0gkE8AQfJZ0dIhAQRxGDpDzieAIPmsaOmQAII4DJ0h5xNAkHxWtHRIAEEchs6Q8wkgSD4rWjokgCAOQ2fI+QQQJJ8VLR0SQBCHoTPkfAIIks+Klg4JIIjD0BlyPgEEyWdFS4cEEMRh6Aw5nwCC5LOipUMCCOIwdIacTwBB8lnR0iEBBHEYOkPOJ4Ag+axo6ZAAgjgMnSHnE0CQfFa0dEgAQRyGzpDzCSBIPitaOiSAIA5DZ8j5BP4DGhIEBS0yns0AAAAASUVORK5CYII=",_="/assets/png/unknownfile-BBXNi05M.png",q=s=>(J("data-v-a8be935c"),s=s(),b(),s),v=q(()=>C("h2",null,"文件列表",-1)),P=["src"],W=N({__name:"ShowFileList",setup(s){const A=F(),{pending:Q,fileList:n,selectedRows:r,getFileListForm:B}=y(A),m=j(null),p=e=>r.value=e,I=async e=>{B.value.dir=e,await A.getFileList()},S=async e=>{if(c())try{e.isdir===1?await I(e.path):await A.getDownloadLinks(e.fs_id)}finally{Q.value=!1}},f=async e=>{if(!c())try{e.isdir===1?await I(e.path):await A.getDownloadLinks(e.fs_id)}finally{Q.value=!1}};return(e,H)=>{const E=w,h=D,R=u,d=L,k=Z;return t(n).list.length>0?M((T(),V(d,{key:0,class:"card"},{default:a(()=>[v,i(R,{border:"",stripe:"",ref_key:"fileListTableRef",ref:m,data:t(n).list,onRowClick:S,onRowDblclick:f,onSelectionChange:p,class:"table"},{default:a(()=>[i(E,{type:"selection",width:"40"}),i(E,{label:"文件名"},{default:a(({row:o})=>[i(h,{wrap:""},{default:a(()=>[C("img",{src:o.isdir===1?t(O):t(_)},null,8,P),l(" "+g(o.server_filename),1)]),_:2},1024)]),_:1}),i(E,{label:"修改时间"},{default:a(({row:o})=>[l(g(t(U)(o.server_mtime)),1)]),_:1}),i(E,{label:"大小"},{default:a(({row:o})=>[l(g(t(x)(o.size)),1)]),_:1})]),_:1},8,["data"])]),_:1})),[[k,t(Q)]]):Y("",!0)}}}),Se=G(W,[["__scopeId","data-v-a8be935c"]]);export{Se as default}; +import{m as w,n as D,o as u,a as L,v as Z}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import"./index-BE2XYqVW.js";import{u as F}from"./fileListStore-CjKNV6Yt.js";import{a as U,f as x}from"./format-CyW-QbYa.js";import{i as c}from"./isMobile-BD0f7XPI.js";import{s as y}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{d as N,I as M,o as T,G as V,H as a,i,a as C,L as l,K as Y,Y as J,Z as b}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as j,u as t}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as g}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as G}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const O="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACRlJREFUeF7tnUFuGzcUhkmrm/YStRHlGEWtRQx0F9jZJ7pBb9D4BD1CnH3kZlcgWcTpEdplG2QK9Boqi7HkQk7ihHzDmfk17zMQuGjImcfv5weSGkmJgR8IQOBOAhE2EIDA3QQQhNkBgc8QQBCmBwQQhDkAARsBVhAbN3o5IYAgToJmmDYCCGLjRi8nBBDESdAM00YAQWzc6OWEAII4CZph2gggiI0bvZwQQBAnQTNMGwEEsXGjlxMCCOIkaIZpI4AgNm70ckIAQZwEzTBtBBDExo1eTgggiJOgGaaNAILYuNHLCQEEcRI0w7QRQBAbN3o5IYAgToJmmDYCCGLjRi8nBBDESdAM00ZgUEHSrw8Pw1cHj0OKhyGE9k/7c2wr3X2vZkvgavM7vb3+FQ+a+ODF9v+5Z9QZQO+C7EjRioAMnSPLukATQjqPJ5cXWa1pdCeBXgVJr09/Cik+hf9oBNpV5irE+JxVxZZBL4Kk14+OQ0rPdrZRturoVZPARTxZLWte0MO1qgvCqiE9bdh6FcZTVZD06uwN54zCBMZoHtPT+ODyfIxb79s9qwmCHPsWfWjCer2IP7y8eTVs7wYwRMFVBEmvztrzxpMhCuYeVQk08WR1VPWKE7tYZ0G2B/J2a8XPfhK4iierxX6W3n/VnQS5fsYxm73vv0zu0DMBXuG6A3A3QTiU9zxvB7w8B/dPwjYLwtZqwMk7zK2aEOOSB4q3YdsFYfUYZtoOexcO7R/w7iJIGjY77jYQAc4jO6BNgqRXp09CiO1Lu/xMkUCMC7Zam2CNgvDcY4pe7IyJrdYWhlUQtlcTNySEwFbLsoLw7GP6ZmxHyKtaJkE2b2XnybkPT9xvtYq3WBzQfZixM0rXWy0EcTffiwfseqtVLggfoy2eYRPo4HarhSATmL2DDMHpe7UQZJDZNYmbuNxqlQvy2+nPYR1/nETkDKKMQAz/hG/X35V1+nzreKT9icZyQX4/exO+4futak4SrhVuPvbb/t78d4rP4/3xvwAPQZidygQ23+sV0ts4H+dL8BBEeXpQ2y6BJsR0Ee8N+20sCMIk3DcCg4qCIPs2Paj3hsDmS/B63nohCBNunwn0vpqUC/LH2S/h6/Bwn6lS+8QItA8xezqblAvyjm9sn9j0mspwmjBbL2o/V0GQqUwPxtESaOK87jdFIggTa2oELuK83j/zgCBTmx6MJ4SKZxIEYUJNk0AlSRBkmtODUbXv6apwaEcQptKUCXQ+jyDIlKcHY2tCissu7wpGECbR1Alcxbn93z9BkKlPD8bXfrZkYV1FEIQJ5IGA+SyCIB6mB2M0P2FHECaPDwLGbRaC+JgejNL44BBBmDpeCJi2WQjiZXowzhDnq+L5Xtwh8XkQptq+Epitj0o/L4Ig+xo2dZcTMBzUEaQcMz32lQCC7Gty1D0IAcMrWawggyTDTSQIIIhEDBShSgBBVJOhLgkCCCIRA0WoEkAQ1WSoS4IAgkjEQBGqBBBENRnqkiCAIBIxUIQqAQRRTYa6JAggiEQMFKFKAEFUk6EuCQIIIhEDRagSQBDVZKhLggCCSMRAEaoEEEQ1GeqSIIAgEjFQhCoBBFFNhrokCCCIRAwUoUoAQVSToS4JAggiEQNFqBJAENVkqEuCAIJIxEARqgQQRDUZ6pIggCASMVCEKgEEUU2GuiQIIIhEDBShSgBBVJOhLgkCCCIRA0WoEkAQ1WSoS4IAgkjEQBGqBBBENRnqkiCAIBIxUIQqAQRRTYa6JAggiEQMFKFKAEFUk6EuCQIIIhEDRagSQBDVZKhLggCCSMRAEaoEEEQ1GeqSIIAgEjFQhCoBBFFNhrokCCCIRAwUoUoAQVSToS4JAggiEQNFqBJAENVkqEuCAIJIxEARqgQQRDUZ6pIggCASMVCEKgEEUU2GuiQIIIhEDBShSgBBVJOhLgkCCCIRA0WoEkAQ1WSoS4IAgkjEQBGqBBBENRnqkiCAIBIxUIQqAQRRTYa6JAggiEQMFKFKAEFUk6EuCQIIIhEDRagSQBDVZKhLggCCSMRAEaoEEEQ1GeqSIIAgEjFQhCoBBFFNhrokCCCIRAwUoUoAQVSToS4JAggiEQNFqBJAENVkqEuCAIJIxEARqgQQRDUZ6pIgMIggfz46DjG9kRgwRUCgiEBaxvnlRUmXWNK4bZsQpBQZ7WUIDCHI+4eHYT17LzNmCoFALoHZ+igevWxym7ftylcQBCnhS1slAkMIcr3N+ussKY2bWiCQQyDOV8ULQnGHrSDtIf04pyjaQECEwEWcr5altRgFOX0SQnxWejPaQ2A8AuUHdNMZ5HoF4RwyXs7c2UbAcP4wC8I2y5YRvcYjYDl/dBPk3elPIcWn4w2ZO0Mgm4Dp/NFNELZZ2enQcGQCxu1VJ0E22ywO6yNHz+2/TMC8enQXZLOKtC/5Hn65TlpAYAQCHVaPzoKwiowQOLfMJ2B49+6HFzc9B9m9yPYl3/aZCA8O86OjZf8EmjhfHXW9TWdBrlcRDuxdc6B/bQIpLuL9F1ddL1tFELZaXWOgf1UCleSocga5td3i2UjVnLmYgUCFc8fuXautIDcXTUhiSJUulQhcxflqUela15epL0h7Hvn34DFP2WvGxLUyCHR63nHX9asLwkqSESVN6hKovK3qdYt160zCg8S6E4GrfUyg4oH8U3h7W0H+X0nYcjGt+yFwFWbrZelnzEtL6V2QW6KsZzxQLE2I9h8SaEKKyxrPOHLQDiYIouTEQZvPEGhCSOel32vVlejggtwW5eA4hPiYt6l0jXGy/ZsQ00W8d3k+1ghHE+Tjw3wrS/sTv9/+XfsOYd4lPNbMGPa+7XdVtTJsvrMqhb+HXinuGq6EIMNmwd0gkE8AQfJZ0dIhAQRxGDpDzieAIPmsaOmQAII4DJ0h5xNAkHxWtHRIAEEchs6Q8wkgSD4rWjokgCAOQ2fI+QQQJJ8VLR0SQBCHoTPkfAIIks+Klg4JIIjD0BlyPgEEyWdFS4cEEMRh6Aw5nwCC5LOipUMCCOIwdIacTwBB8lnR0iEBBHEYOkPOJ4Ag+axo6ZAAgjgMnSHnE0CQfFa0dEgAQRyGzpDzCSBIPitaOiSAIA5DZ8j5BP4DGhIEBS0yns0AAAAASUVORK5CYII=",_="/assets/png/unknownfile-BBXNi05M.png",q=s=>(J("data-v-a8be935c"),s=s(),b(),s),v=q(()=>C("h2",null,"文件列表",-1)),P=["src"],W=N({__name:"ShowFileList",setup(s){const A=F(),{pending:Q,fileList:n,selectedRows:r,getFileListForm:B}=y(A),m=j(null),p=e=>r.value=e,I=async e=>{B.value.dir=e,await A.getFileList()},S=async e=>{if(c())try{e.isdir===1?await I(e.path):await A.getDownloadLinks(e.fs_id)}finally{Q.value=!1}},f=async e=>{if(!c())try{e.isdir===1?await I(e.path):await A.getDownloadLinks(e.fs_id)}finally{Q.value=!1}};return(e,H)=>{const E=w,h=D,R=u,d=L,k=Z;return t(n).list.length>0?M((T(),V(d,{key:0,class:"card"},{default:a(()=>[v,i(R,{border:"",stripe:"",ref_key:"fileListTableRef",ref:m,data:t(n).list,onRowClick:S,onRowDblclick:f,onSelectionChange:p,class:"table"},{default:a(()=>[i(E,{type:"selection",width:"40"}),i(E,{label:"文件名"},{default:a(({row:o})=>[i(h,{wrap:""},{default:a(()=>[C("img",{src:o.isdir===1?t(O):t(_)},null,8,P),l(" "+g(o.server_filename),1)]),_:2},1024)]),_:1}),i(E,{label:"修改时间"},{default:a(({row:o})=>[l(g(t(U)(o.server_mtime)),1)]),_:1}),i(E,{label:"大小"},{default:a(({row:o})=>[l(g(t(x)(o.size)),1)]),_:1})]),_:1},8,["data"])]),_:1})),[[k,t(Q)]]):Y("",!0)}}}),Se=G(W,[["__scopeId","data-v-a8be935c"]]);export{Se as default}; diff --git a/public/assets/js/ShowFileList-BUr4nlX1.js.gz b/public/assets/js/ShowFileList-BUr4nlX1.js.gz new file mode 100644 index 0000000..aafcadb Binary files /dev/null and b/public/assets/js/ShowFileList-BUr4nlX1.js.gz differ diff --git a/public/assets/js/ShowFileList-DPSUtq2U.js.gz b/public/assets/js/ShowFileList-DPSUtq2U.js.gz deleted file mode 100644 index 995586e..0000000 Binary files a/public/assets/js/ShowFileList-DPSUtq2U.js.gz and /dev/null differ diff --git a/public/assets/js/TokenManagement-Cf_kOt7J.js.gz b/public/assets/js/TokenManagement-Cf_kOt7J.js.gz deleted file mode 100644 index 97bab9b..0000000 Binary files a/public/assets/js/TokenManagement-Cf_kOt7J.js.gz and /dev/null differ diff --git a/public/assets/js/TokenManagement-Cf_kOt7J.js b/public/assets/js/TokenManagement-CqLz1EbZ.js similarity index 99% rename from public/assets/js/TokenManagement-Cf_kOt7J.js rename to public/assets/js/TokenManagement-CqLz1EbZ.js index e1e5d96..e285662 100644 --- a/public/assets/js/TokenManagement-Cf_kOt7J.js +++ b/public/assets/js/TokenManagement-CqLz1EbZ.js @@ -1,3 +1,3 @@ -import{E as M,i as ee,j as le,c as te,r as H,b as K,e as ae,d as J,k as ne,v as Q,m as oe,t as ue,o as de,s as se}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{v as y}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{i as x}from"./index-BrpDzfc2.js";import{d as W,_ as ie,$ as pe,o as g,G as T,H as t,i as l,L as c,I as r,c as X,F as Y,R as me,m as re,a as z,K as q}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as V,u as N}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{c as R}from"./copy-By2guqEs.js";import{f as O}from"./format-CyW-QbYa.js";import{L as _}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as ce}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const _e=i=>x.post("/admin/token",i),fe=i=>x.post("/admin/token/generate",i),ve=i=>x.get(`/admin/token?page=${i.page}&size=${i.size}`),ye=i=>x.patch(`/admin/token/${i.id}`,i),ge=i=>x.delete("/admin/token",{data:{token_ids:[i.id]}}),ke=i=>x.delete("/admin/token",{data:{token_ids:i}}),Ve=W({__name:"AddToken",props:{modelValue:{},modelModifiers:{}},emits:ie(["getTokens"],["update:modelValue"]),setup(i,{emit:f}){const $=f,C=pe(i,"modelValue"),b=V(!1),a=V({type:"single",name:"",count:1,size:1,day:1}),v=V(null),F={name:[{required:!0,message:"请输入卡密名称",trigger:"blur"}],token_count:[{required:!0,message:"请输入卡密个数",trigger:"blur"}],day:[{required:!0,message:"请输入卡密天数",trigger:"blur"}],count:[{required:!0,message:"请输入可下载次数",trigger:"blur"}],size:[{required:!0,message:"请输入可下载大小",trigger:"blur"}]},L=async U=>{if(!(!U||!await U.validate()))try{b.value=!0,a.value.type==="single"?await _e({type:"single",name:a.value.name,count:a.value.count,size:a.value.size,day:a.value.day}):await fe({type:"random",token_count:a.value.token_count,count:a.value.count,size:a.value.size,day:a.value.day}),M.success("添加成功")}finally{b.value=!1}},B=U=>{$("getTokens"),U()},j=()=>{C.value=!1,$("getTokens")};return(U,d)=>{const E=ee,I=le,k=te,n=H,o=K,s=ae,p=J,D=ne,S=Q;return g(),T(D,{title:"添加卡密",width:"60%",modelValue:C.value,"onUpdate:modelValue":d[8]||(d[8]=u=>C.value=u),"before-close":B},{footer:t(()=>[l(p,{type:"info",onClick:d[6]||(d[6]=u=>j())},{default:t(()=>[c("取消")]),_:1}),l(p,{type:"primary",onClick:d[7]||(d[7]=u=>L(v.value))},{default:t(()=>[c("添加")]),_:1})]),default:t(()=>[r((g(),T(s,{ref_key:"addTokenFormRef",ref:v,model:a.value,rules:F,"label-width":"auto"},{default:t(()=>[l(k,{label:"创建方式",prop:"type"},{default:t(()=>[l(I,{modelValue:a.value.type,"onUpdate:modelValue":d[0]||(d[0]=u=>a.value.type=u)},{default:t(()=>[(g(),X(Y,null,me(["single","random"],u=>l(E,{key:u,label:u,value:u},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),l(k,{label:"可用次数",prop:"count"},{default:t(()=>[l(n,{modelValue:a.value.count,"onUpdate:modelValue":d[1]||(d[1]=u=>a.value.count=u)},null,8,["modelValue"])]),_:1}),l(k,{label:"可用天数",prop:"day"},{default:t(()=>[l(n,{modelValue:a.value.day,"onUpdate:modelValue":d[2]||(d[2]=u=>a.value.day=u)},null,8,["modelValue"])]),_:1}),l(k,{label:"可用大小(GB)",prop:"size"},{default:t(()=>[l(n,{modelValue:a.value.size,"onUpdate:modelValue":d[3]||(d[3]=u=>a.value.size=u)},null,8,["modelValue"])]),_:1}),a.value.type==="single"?(g(),T(k,{key:0,label:"卡密名称",prop:"name"},{default:t(()=>[l(o,{modelValue:a.value.name,"onUpdate:modelValue":d[4]||(d[4]=u=>a.value.name=u)},null,8,["modelValue"])]),_:1})):(g(),T(k,{key:1,label:"卡密个数",prop:"token_count"},{default:t(()=>[l(n,{modelValue:a.value.token_count,"onUpdate:modelValue":d[5]||(d[5]=u=>a.value.token_count=u)},null,8,["modelValue"])]),_:1}))]),_:1},8,["model"])),[[S,b.value]])]),_:1},8,["modelValue"])}}}),be=W({__name:"TokenManagement",setup(i){const f=V(!1),$=V(15),C=V(1),b=V(),a=V([]),v=async()=>{try{f.value=!0;const n=await ve({page:C.value,size:$.value});b.value=n.data}finally{f.value=!1}},F=async n=>{n.edit=!(n.edit??!1)},L=async n=>{n.edit=!(n.edit??!0),await B(n)},B=async n=>{try{f.value=!0,await ye(n),M.success("修改卡密成功")}finally{f.value=!1,await v()}},j=async n=>{try{f.value=!0,await ge(n),M.success("删除卡密成功")}finally{f.value=!1,await v()}},U=async()=>{try{f.value=!0;const n=a.value.map(o=>o.id);await ke(n),M.success("删除卡密成功")}finally{f.value=!1,await v()}},d=n=>a.value=n;re(v);const E=V(!1),I=()=>E.value=!E.value,k=(n=!0)=>{if(!n){R(a.value.map(s=>s.name).join(` +import{E as M,i as ee,j as le,c as te,r as H,b as K,e as ae,d as J,k as ne,v as Q,m as oe,t as ue,o as de,s as se}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{v as y}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{i as x}from"./index-BE2XYqVW.js";import{d as W,_ as ie,$ as pe,o as g,G as T,H as t,i as l,L as c,I as r,c as X,F as Y,R as me,m as re,a as z,K as q}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as V,u as N}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{c as R}from"./copy-By2guqEs.js";import{f as O}from"./format-CyW-QbYa.js";import{L as _}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as ce}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const _e=i=>x.post("/admin/token",i),fe=i=>x.post("/admin/token/generate",i),ve=i=>x.get(`/admin/token?page=${i.page}&size=${i.size}`),ye=i=>x.patch(`/admin/token/${i.id}`,i),ge=i=>x.delete("/admin/token",{data:{token_ids:[i.id]}}),ke=i=>x.delete("/admin/token",{data:{token_ids:i}}),Ve=W({__name:"AddToken",props:{modelValue:{},modelModifiers:{}},emits:ie(["getTokens"],["update:modelValue"]),setup(i,{emit:f}){const $=f,C=pe(i,"modelValue"),b=V(!1),a=V({type:"single",name:"",count:1,size:1,day:1}),v=V(null),F={name:[{required:!0,message:"请输入卡密名称",trigger:"blur"}],token_count:[{required:!0,message:"请输入卡密个数",trigger:"blur"}],day:[{required:!0,message:"请输入卡密天数",trigger:"blur"}],count:[{required:!0,message:"请输入可下载次数",trigger:"blur"}],size:[{required:!0,message:"请输入可下载大小",trigger:"blur"}]},L=async U=>{if(!(!U||!await U.validate()))try{b.value=!0,a.value.type==="single"?await _e({type:"single",name:a.value.name,count:a.value.count,size:a.value.size,day:a.value.day}):await fe({type:"random",token_count:a.value.token_count,count:a.value.count,size:a.value.size,day:a.value.day}),M.success("添加成功")}finally{b.value=!1}},B=U=>{$("getTokens"),U()},j=()=>{C.value=!1,$("getTokens")};return(U,d)=>{const E=ee,I=le,k=te,n=H,o=K,s=ae,p=J,D=ne,S=Q;return g(),T(D,{title:"添加卡密",width:"60%",modelValue:C.value,"onUpdate:modelValue":d[8]||(d[8]=u=>C.value=u),"before-close":B},{footer:t(()=>[l(p,{type:"info",onClick:d[6]||(d[6]=u=>j())},{default:t(()=>[c("取消")]),_:1}),l(p,{type:"primary",onClick:d[7]||(d[7]=u=>L(v.value))},{default:t(()=>[c("添加")]),_:1})]),default:t(()=>[r((g(),T(s,{ref_key:"addTokenFormRef",ref:v,model:a.value,rules:F,"label-width":"auto"},{default:t(()=>[l(k,{label:"创建方式",prop:"type"},{default:t(()=>[l(I,{modelValue:a.value.type,"onUpdate:modelValue":d[0]||(d[0]=u=>a.value.type=u)},{default:t(()=>[(g(),X(Y,null,me(["single","random"],u=>l(E,{key:u,label:u,value:u},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),l(k,{label:"可用次数",prop:"count"},{default:t(()=>[l(n,{modelValue:a.value.count,"onUpdate:modelValue":d[1]||(d[1]=u=>a.value.count=u)},null,8,["modelValue"])]),_:1}),l(k,{label:"可用天数",prop:"day"},{default:t(()=>[l(n,{modelValue:a.value.day,"onUpdate:modelValue":d[2]||(d[2]=u=>a.value.day=u)},null,8,["modelValue"])]),_:1}),l(k,{label:"可用大小(GB)",prop:"size"},{default:t(()=>[l(n,{modelValue:a.value.size,"onUpdate:modelValue":d[3]||(d[3]=u=>a.value.size=u)},null,8,["modelValue"])]),_:1}),a.value.type==="single"?(g(),T(k,{key:0,label:"卡密名称",prop:"name"},{default:t(()=>[l(o,{modelValue:a.value.name,"onUpdate:modelValue":d[4]||(d[4]=u=>a.value.name=u)},null,8,["modelValue"])]),_:1})):(g(),T(k,{key:1,label:"卡密个数",prop:"token_count"},{default:t(()=>[l(n,{modelValue:a.value.token_count,"onUpdate:modelValue":d[5]||(d[5]=u=>a.value.token_count=u)},null,8,["modelValue"])]),_:1}))]),_:1},8,["model"])),[[S,b.value]])]),_:1},8,["modelValue"])}}}),be=W({__name:"TokenManagement",setup(i){const f=V(!1),$=V(15),C=V(1),b=V(),a=V([]),v=async()=>{try{f.value=!0;const n=await ve({page:C.value,size:$.value});b.value=n.data}finally{f.value=!1}},F=async n=>{n.edit=!(n.edit??!1)},L=async n=>{n.edit=!(n.edit??!0),await B(n)},B=async n=>{try{f.value=!0,await ye(n),M.success("修改卡密成功")}finally{f.value=!1,await v()}},j=async n=>{try{f.value=!0,await ge(n),M.success("删除卡密成功")}finally{f.value=!1,await v()}},U=async()=>{try{f.value=!0;const n=a.value.map(o=>o.id);await ke(n),M.success("删除卡密成功")}finally{f.value=!1,await v()}},d=n=>a.value=n;re(v);const E=V(!1),I=()=>E.value=!E.value,k=(n=!0)=>{if(!n){R(a.value.map(s=>s.name).join(` `));return}const o=a.value.map(s=>[s.name,s.count,s.size,s.day].join(" | "));o.unshift(["卡密","可用次数","可下载量","可用天数"].join(" | ")),R(o.join(` `))};return(n,o)=>{var A,P,G;const s=J,p=oe,D=K,S=H,u=ue,Z=de,w=se,h=Q;return g(),X(Y,null,[l(Ve,{onGetTokens:v,modelValue:E.value,"onUpdate:modelValue":o[0]||(o[0]=e=>E.value=e)},null,8,["modelValue"]),l(s,{type:"primary",onClick:o[1]||(o[1]=e=>v())},{default:t(()=>[c("刷新列表")]),_:1}),l(s,{type:"primary",onClick:o[2]||(o[2]=e=>I())},{default:t(()=>[c("添加卡密")]),_:1}),l(s,{type:"primary",disabled:a.value.length<=0,onClick:o[3]||(o[3]=e=>k())},{default:t(()=>[c(" 批量复制 ")]),_:1},8,["disabled"]),l(s,{type:"primary",disabled:a.value.length<=0,onClick:o[4]||(o[4]=e=>k(!1))},{default:t(()=>[c(" 批量复制(无格式) ")]),_:1},8,["disabled"]),l(s,{type:"danger",disabled:a.value.length<=0,onClick:o[5]||(o[5]=e=>U())},{default:t(()=>[c(" 批量删除 ")]),_:1},8,["disabled"]),r((g(),T(Z,{data:((A=b.value)==null?void 0:A.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:d},{default:t(()=>[l(p,{type:"selection",width:"40"}),l(p,{prop:"id",label:"ID"}),l(p,{prop:"name",label:"卡密名称"},{default:t(({row:e})=>[r(z("span",null,_(e.name),513),[[y,!e.edit]]),r(l(D,{modelValue:e.name,"onUpdate:modelValue":m=>e.name=m},null,8,["modelValue","onUpdate:modelValue"]),[[y,e.edit]])]),_:1}),l(p,{prop:"today_size",label:"今日解析"},{default:t(({row:e})=>[z("span",null,_(e.today_count)+" ("+_(N(O)(e.today_size??0))+")",1)]),_:1}),l(p,{prop:"today_size",label:"縂共解析"},{default:t(({row:e})=>[z("span",null,_(e.total_count)+" ("+_(N(O)(e.total_size??0))+")",1)]),_:1}),l(p,{prop:"count",label:"可用次数"},{default:t(({row:e})=>[r(z("span",null,_(e.count),513),[[y,!e.edit]]),r(l(S,{modelValue:e.count,"onUpdate:modelValue":m=>e.count=m},null,8,["modelValue","onUpdate:modelValue"]),[[y,e.edit]])]),_:1}),l(p,{prop:"size",label:"可下载大小"},{default:t(({row:e})=>[r(z("span",null,_(e.size),513),[[y,!e.edit]]),r(l(S,{modelValue:e.size,"onUpdate:modelValue":m=>e.size=m},null,8,["modelValue","onUpdate:modelValue"]),[[y,e.edit]])]),_:1}),l(p,{prop:"day",label:"有效期"},{default:t(({row:e})=>[r(z("span",null,_(e.day),513),[[y,!e.edit]]),r(l(S,{modelValue:e.day,"onUpdate:modelValue":m=>e.day=m},null,8,["modelValue","onUpdate:modelValue"]),[[y,e.edit]])]),_:1}),l(p,{prop:"expired_at",label:"到期时间",width:"250"},{default:t(({row:e})=>[r(z("span",null,_(e.expired_at?`${new Date(e.expired_at).getTime()e.expired_at=m,type:"datetime",placeholder:"请选择日期"},null,8,["modelValue","onUpdate:modelValue"])):q("",!0)]),_:1}),l(p,{prop:"ip",label:"ip"},{default:t(({row:e})=>[r(z("span",null,_(e.ip??"未绑定ip"),513),[[y,!e.edit]]),r(l(D,{modelValue:e.ip,"onUpdate:modelValue":m=>e.ip=m},null,8,["modelValue","onUpdate:modelValue"]),[[y,e.edit]])]),_:1}),l(p,{prop:"created_at",label:"创建时间"},{default:t(({row:e})=>[c(_(new Date(e.created_at).toLocaleString()),1)]),_:1}),l(p,{prop:"updated_at",label:"更新时间"},{default:t(({row:e})=>[c(_(new Date(e.updated_at).toLocaleString()),1)]),_:1}),l(p,{width:"200",label:"操作",fixed:"right"},{default:t(({row:e})=>[e.edit?q("",!0):(g(),T(s,{key:0,size:"small",type:"primary",onClick:m=>F(e)},{default:t(()=>[c(" 编辑 ")]),_:2},1032,["onClick"])),e.edit?(g(),T(s,{key:1,size:"small",type:"primary",onClick:m=>L(e)},{default:t(()=>[c(" 保存 ")]),_:2},1032,["onClick"])):q("",!0),l(s,{size:"small",type:"primary",onClick:m=>N(R)(e.name)},{default:t(()=>[c("复制")]),_:2},1032,["onClick"]),l(s,{size:"small",type:"danger",onClick:m=>j(e)},{default:t(()=>[c("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[h,f.value]]),l(w,{"current-page":C.value,"onUpdate:currentPage":o[6]||(o[6]=e=>C.value=e),"page-size":$.value,"onUpdate:pageSize":o[7]||(o[7]=e=>$.value=e),"page-sizes":[15,50,100,500,((P=b.value)==null?void 0:P.total)??100],total:((G=b.value)==null?void 0:G.total)??100,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:v,onCurrentChange:v},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),He=ce(be,[["__scopeId","data-v-9f80afaa"]]);export{He as default}; diff --git a/public/assets/js/TokenManagement-CqLz1EbZ.js.gz b/public/assets/js/TokenManagement-CqLz1EbZ.js.gz new file mode 100644 index 0000000..3e90fc3 Binary files /dev/null and b/public/assets/js/TokenManagement-CqLz1EbZ.js.gz differ diff --git a/public/assets/js/UserManagement-BcXbbZRX.js.gz b/public/assets/js/UserManagement-BcXbbZRX.js.gz deleted file mode 100644 index 594bd0e..0000000 Binary files a/public/assets/js/UserManagement-BcXbbZRX.js.gz and /dev/null differ diff --git a/public/assets/js/UserManagement-BcXbbZRX.js b/public/assets/js/UserManagement-Dk35CLpN.js similarity index 98% rename from public/assets/js/UserManagement-BcXbbZRX.js rename to public/assets/js/UserManagement-Dk35CLpN.js index 845b4b3..b8ebf7c 100644 --- a/public/assets/js/UserManagement-BcXbbZRX.js +++ b/public/assets/js/UserManagement-Dk35CLpN.js @@ -1 +1 @@ -import{E as x,b as j,c as ee,i as H,j as K,e as ae,d as J,k as le,v as Q,m as te,o as oe,s as se}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{v as E}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{i as M}from"./index-BrpDzfc2.js";import{d as W,_ as ne,$ as de,o as V,G as S,H as l,i as a,L as _,I as U,c as A,F as N,R as X,m as ue,a as C,K as T}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as f,u as q}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{f as G}from"./format-CyW-QbYa.js";import{L as i}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as re}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const ie=u=>M.post("/admin/user",u),pe=u=>M.get(`/admin/user?page=${u.page}&size=${u.size}`),me=u=>M.patch(`/admin/user/${u.id}`,u),ce=u=>M.delete("/admin/user",{data:{user_ids:[u.id]}}),_e=u=>M.delete("/admin/user",{data:{user_ids:u}}),fe=W({__name:"AddUser",props:{modelValue:{},modelModifiers:{}},emits:ne(["getUsers"],["update:modelValue"]),setup(u,{emit:m}){const z=m,b=de(u,"modelValue"),v=f(!1),r=f({username:"",password:"",role:"user",inv_code_id:1}),c=f(null),F={username:[{required:!0,message:"请输入账户用户名",trigger:"blur"}],password:[{required:!0,message:"请输入账户密码",trigger:"blur"}]},D=async k=>{if(!(!k||!await k.validate()))try{v.value=!0,await ie(r.value),x.success("添加成功")}finally{v.value=!1}},L=k=>{z("getUsers"),k()},B=()=>{b.value=!1,z("getUsers")};return(k,s)=>{const g=j,$=ee,t=H,n=K,y=ae,d=J,w=le,I=Q;return V(),S(w,{title:"添加用户",width:"60%",modelValue:b.value,"onUpdate:modelValue":s[6]||(s[6]=o=>b.value=o),"before-close":L},{footer:l(()=>[a(d,{type:"info",onClick:s[4]||(s[4]=o=>B())},{default:l(()=>[_("取消")]),_:1}),a(d,{type:"primary",onClick:s[5]||(s[5]=o=>D(c.value))},{default:l(()=>[_("添加")]),_:1})]),default:l(()=>[U((V(),S(y,{ref_key:"addUserFormRef",ref:c,model:r.value,rules:F,"label-width":"auto"},{default:l(()=>[a($,{label:"用户名",prop:"username"},{default:l(()=>[a(g,{modelValue:r.value.username,"onUpdate:modelValue":s[0]||(s[0]=o=>r.value.username=o)},null,8,["modelValue"])]),_:1}),a($,{label:"密码",prop:"password"},{default:l(()=>[a(g,{modelValue:r.value.password,"onUpdate:modelValue":s[1]||(s[1]=o=>r.value.password=o)},null,8,["modelValue"])]),_:1}),a($,{label:"权限",prop:"role"},{default:l(()=>[a(n,{modelValue:r.value.role,"onUpdate:modelValue":s[2]||(s[2]=o=>r.value.role=o)},{default:l(()=>[(V(),A(N,null,X(["user","admin"],o=>a(t,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),a($,{label:"邀请码ID",prop:"inv_code_id"},{default:l(()=>[a(g,{modelValue:r.value.inv_code_id,"onUpdate:modelValue":s[3]||(s[3]=o=>r.value.inv_code_id=o)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[I,v.value]])]),_:1},8,["modelValue"])}}}),ve=W({__name:"UserManagement",setup(u){const m=f(!1),z=f(15),b=f(1),v=f(),r=f([]),c=async()=>{try{m.value=!0;const t=await pe({page:b.value,size:z.value});v.value=t.data}finally{m.value=!1}},F=async t=>{t.edit=!(t.edit??!1)},D=async t=>{t.edit=!(t.edit??!0),await L(t)},L=async t=>{try{m.value=!0,await me(t),x.success("修改用户成功")}finally{m.value=!1,await c()}},B=async t=>{try{m.value=!0,await ce(t),x.success("删除用户成功")}finally{m.value=!1,await c()}},k=async()=>{try{m.value=!0;const t=r.value.map(n=>n.id);await _e(t),x.success("批量删除用户成功")}finally{m.value=!1,await c()}},s=t=>r.value=t;ue(c);const g=f(!1),$=()=>g.value=!g.value;return(t,n)=>{var R,O,P;const y=J,d=te,w=j,I=H,o=K,Y=oe,Z=se,h=Q;return V(),A(N,null,[a(fe,{onGetUsers:c,modelValue:g.value,"onUpdate:modelValue":n[0]||(n[0]=e=>g.value=e)},null,8,["modelValue"]),a(y,{type:"primary",onClick:n[1]||(n[1]=e=>c())},{default:l(()=>[_("刷新列表")]),_:1}),a(y,{type:"primary",onClick:n[2]||(n[2]=e=>$())},{default:l(()=>[_("添加用户")]),_:1}),a(y,{type:"danger",disabled:r.value.length<=0,onClick:n[3]||(n[3]=e=>k())},{default:l(()=>[_(" 批量删除 ")]),_:1},8,["disabled"]),U((V(),S(Y,{data:((R=v.value)==null?void 0:R.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:s},{default:l(()=>[a(d,{type:"selection",width:"40"}),a(d,{prop:"id",label:"ID"}),a(d,{prop:"",label:"用户组"},{default:l(({row:e})=>[C("span",null,i(e.group.id)+" ("+i(e.group.name)+")",1)]),_:1}),a(d,{prop:"inv_code.name",label:"邀请码"},{default:l(({row:e})=>[C("span",null,i(e.inv_code.id)+" ("+i(e.inv_code.name)+")",1)]),_:1}),a(d,{prop:"today_size",label:"今日解析"},{default:l(({row:e})=>[C("span",null,i(e.today_count)+" ("+i(q(G)(e.today_size??0))+")",1)]),_:1}),a(d,{prop:"today_size",label:"縂共解析"},{default:l(({row:e})=>[C("span",null,i(e.total_count)+" ("+i(q(G)(e.total_size??0))+")",1)]),_:1}),a(d,{prop:"username",label:"用户名"},{default:l(({row:e})=>[U(C("span",null,i(e.username),513),[[E,!e.edit]]),U(a(w,{modelValue:e.username,"onUpdate:modelValue":p=>e.username=p},null,8,["modelValue","onUpdate:modelValue"]),[[E,e.edit]])]),_:1}),a(d,{prop:"password",label:"密码"},{default:l(({row:e})=>[U(C("span",null,i(e.password),513),[[E,!e.edit]]),U(a(w,{modelValue:e.password,"onUpdate:modelValue":p=>e.password=p},null,8,["modelValue","onUpdate:modelValue"]),[[E,e.edit]])]),_:1}),a(d,{prop:"role",label:"权限"},{default:l(({row:e})=>[U(C("span",null,i(e.role),513),[[E,!e.edit]]),U(a(o,{modelValue:e.role,"onUpdate:modelValue":p=>e.role=p},{default:l(()=>[(V(),A(N,null,X(["user","admin"],p=>a(I,{key:p,label:p,value:p},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"]),[[E,e.edit]])]),_:1}),a(d,{prop:"created_at",label:"创建时间"},{default:l(({row:e})=>[_(i(new Date(e.created_at).toLocaleString()),1)]),_:1}),a(d,{prop:"updated_at",label:"更新时间"},{default:l(({row:e})=>[_(i(new Date(e.updated_at).toLocaleString()),1)]),_:1}),a(d,{width:"150",label:"操作",fixed:"right"},{default:l(({row:e})=>[e.edit?T("",!0):(V(),S(y,{key:0,size:"small",type:"primary",onClick:p=>F(e)},{default:l(()=>[_(" 编辑 ")]),_:2},1032,["onClick"])),e.edit?(V(),S(y,{key:1,size:"small",type:"primary",onClick:p=>D(e)},{default:l(()=>[_(" 保存 ")]),_:2},1032,["onClick"])):T("",!0),a(y,{size:"small",type:"danger",onClick:p=>B(e)},{default:l(()=>[_("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[h,m.value]]),a(Z,{"current-page":b.value,"onUpdate:currentPage":n[4]||(n[4]=e=>b.value=e),"page-size":z.value,"onUpdate:pageSize":n[5]||(n[5]=e=>z.value=e),"page-sizes":[15,50,100,500,((O=v.value)==null?void 0:O.total)??100],total:((P=v.value)==null?void 0:P.total)??100,layout:"sizes, prev, pager, next",onSizeChange:c,onCurrentChange:c},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),Re=re(ve,[["__scopeId","data-v-39a05d3b"]]);export{Re as default}; +import{E as x,b as j,c as ee,i as H,j as K,e as ae,d as J,k as le,v as Q,m as te,o as oe,s as se}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{v as E}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{i as M}from"./index-BE2XYqVW.js";import{d as W,_ as ne,$ as de,o as V,G as S,H as l,i as a,L as _,I as U,c as A,F as N,R as X,m as ue,a as C,K as T}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as f,u as q}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{f as G}from"./format-CyW-QbYa.js";import{L as i}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as re}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const ie=u=>M.post("/admin/user",u),pe=u=>M.get(`/admin/user?page=${u.page}&size=${u.size}`),me=u=>M.patch(`/admin/user/${u.id}`,u),ce=u=>M.delete("/admin/user",{data:{user_ids:[u.id]}}),_e=u=>M.delete("/admin/user",{data:{user_ids:u}}),fe=W({__name:"AddUser",props:{modelValue:{},modelModifiers:{}},emits:ne(["getUsers"],["update:modelValue"]),setup(u,{emit:m}){const z=m,b=de(u,"modelValue"),v=f(!1),r=f({username:"",password:"",role:"user",inv_code_id:1}),c=f(null),F={username:[{required:!0,message:"请输入账户用户名",trigger:"blur"}],password:[{required:!0,message:"请输入账户密码",trigger:"blur"}]},D=async k=>{if(!(!k||!await k.validate()))try{v.value=!0,await ie(r.value),x.success("添加成功")}finally{v.value=!1}},L=k=>{z("getUsers"),k()},B=()=>{b.value=!1,z("getUsers")};return(k,s)=>{const g=j,$=ee,t=H,n=K,y=ae,d=J,w=le,I=Q;return V(),S(w,{title:"添加用户",width:"60%",modelValue:b.value,"onUpdate:modelValue":s[6]||(s[6]=o=>b.value=o),"before-close":L},{footer:l(()=>[a(d,{type:"info",onClick:s[4]||(s[4]=o=>B())},{default:l(()=>[_("取消")]),_:1}),a(d,{type:"primary",onClick:s[5]||(s[5]=o=>D(c.value))},{default:l(()=>[_("添加")]),_:1})]),default:l(()=>[U((V(),S(y,{ref_key:"addUserFormRef",ref:c,model:r.value,rules:F,"label-width":"auto"},{default:l(()=>[a($,{label:"用户名",prop:"username"},{default:l(()=>[a(g,{modelValue:r.value.username,"onUpdate:modelValue":s[0]||(s[0]=o=>r.value.username=o)},null,8,["modelValue"])]),_:1}),a($,{label:"密码",prop:"password"},{default:l(()=>[a(g,{modelValue:r.value.password,"onUpdate:modelValue":s[1]||(s[1]=o=>r.value.password=o)},null,8,["modelValue"])]),_:1}),a($,{label:"权限",prop:"role"},{default:l(()=>[a(n,{modelValue:r.value.role,"onUpdate:modelValue":s[2]||(s[2]=o=>r.value.role=o)},{default:l(()=>[(V(),A(N,null,X(["user","admin"],o=>a(t,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),a($,{label:"邀请码ID",prop:"inv_code_id"},{default:l(()=>[a(g,{modelValue:r.value.inv_code_id,"onUpdate:modelValue":s[3]||(s[3]=o=>r.value.inv_code_id=o)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[I,v.value]])]),_:1},8,["modelValue"])}}}),ve=W({__name:"UserManagement",setup(u){const m=f(!1),z=f(15),b=f(1),v=f(),r=f([]),c=async()=>{try{m.value=!0;const t=await pe({page:b.value,size:z.value});v.value=t.data}finally{m.value=!1}},F=async t=>{t.edit=!(t.edit??!1)},D=async t=>{t.edit=!(t.edit??!0),await L(t)},L=async t=>{try{m.value=!0,await me(t),x.success("修改用户成功")}finally{m.value=!1,await c()}},B=async t=>{try{m.value=!0,await ce(t),x.success("删除用户成功")}finally{m.value=!1,await c()}},k=async()=>{try{m.value=!0;const t=r.value.map(n=>n.id);await _e(t),x.success("批量删除用户成功")}finally{m.value=!1,await c()}},s=t=>r.value=t;ue(c);const g=f(!1),$=()=>g.value=!g.value;return(t,n)=>{var R,O,P;const y=J,d=te,w=j,I=H,o=K,Y=oe,Z=se,h=Q;return V(),A(N,null,[a(fe,{onGetUsers:c,modelValue:g.value,"onUpdate:modelValue":n[0]||(n[0]=e=>g.value=e)},null,8,["modelValue"]),a(y,{type:"primary",onClick:n[1]||(n[1]=e=>c())},{default:l(()=>[_("刷新列表")]),_:1}),a(y,{type:"primary",onClick:n[2]||(n[2]=e=>$())},{default:l(()=>[_("添加用户")]),_:1}),a(y,{type:"danger",disabled:r.value.length<=0,onClick:n[3]||(n[3]=e=>k())},{default:l(()=>[_(" 批量删除 ")]),_:1},8,["disabled"]),U((V(),S(Y,{data:((R=v.value)==null?void 0:R.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:s},{default:l(()=>[a(d,{type:"selection",width:"40"}),a(d,{prop:"id",label:"ID"}),a(d,{prop:"",label:"用户组"},{default:l(({row:e})=>[C("span",null,i(e.group.id)+" ("+i(e.group.name)+")",1)]),_:1}),a(d,{prop:"inv_code.name",label:"邀请码"},{default:l(({row:e})=>[C("span",null,i(e.inv_code.id)+" ("+i(e.inv_code.name)+")",1)]),_:1}),a(d,{prop:"today_size",label:"今日解析"},{default:l(({row:e})=>[C("span",null,i(e.today_count)+" ("+i(q(G)(e.today_size??0))+")",1)]),_:1}),a(d,{prop:"today_size",label:"縂共解析"},{default:l(({row:e})=>[C("span",null,i(e.total_count)+" ("+i(q(G)(e.total_size??0))+")",1)]),_:1}),a(d,{prop:"username",label:"用户名"},{default:l(({row:e})=>[U(C("span",null,i(e.username),513),[[E,!e.edit]]),U(a(w,{modelValue:e.username,"onUpdate:modelValue":p=>e.username=p},null,8,["modelValue","onUpdate:modelValue"]),[[E,e.edit]])]),_:1}),a(d,{prop:"password",label:"密码"},{default:l(({row:e})=>[U(C("span",null,i(e.password),513),[[E,!e.edit]]),U(a(w,{modelValue:e.password,"onUpdate:modelValue":p=>e.password=p},null,8,["modelValue","onUpdate:modelValue"]),[[E,e.edit]])]),_:1}),a(d,{prop:"role",label:"权限"},{default:l(({row:e})=>[U(C("span",null,i(e.role),513),[[E,!e.edit]]),U(a(o,{modelValue:e.role,"onUpdate:modelValue":p=>e.role=p},{default:l(()=>[(V(),A(N,null,X(["user","admin"],p=>a(I,{key:p,label:p,value:p},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"]),[[E,e.edit]])]),_:1}),a(d,{prop:"created_at",label:"创建时间"},{default:l(({row:e})=>[_(i(new Date(e.created_at).toLocaleString()),1)]),_:1}),a(d,{prop:"updated_at",label:"更新时间"},{default:l(({row:e})=>[_(i(new Date(e.updated_at).toLocaleString()),1)]),_:1}),a(d,{width:"150",label:"操作",fixed:"right"},{default:l(({row:e})=>[e.edit?T("",!0):(V(),S(y,{key:0,size:"small",type:"primary",onClick:p=>F(e)},{default:l(()=>[_(" 编辑 ")]),_:2},1032,["onClick"])),e.edit?(V(),S(y,{key:1,size:"small",type:"primary",onClick:p=>D(e)},{default:l(()=>[_(" 保存 ")]),_:2},1032,["onClick"])):T("",!0),a(y,{size:"small",type:"danger",onClick:p=>B(e)},{default:l(()=>[_("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[h,m.value]]),a(Z,{"current-page":b.value,"onUpdate:currentPage":n[4]||(n[4]=e=>b.value=e),"page-size":z.value,"onUpdate:pageSize":n[5]||(n[5]=e=>z.value=e),"page-sizes":[15,50,100,500,((O=v.value)==null?void 0:O.total)??100],total:((P=v.value)==null?void 0:P.total)??100,layout:"sizes, prev, pager, next",onSizeChange:c,onCurrentChange:c},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),Re=re(ve,[["__scopeId","data-v-39a05d3b"]]);export{Re as default}; diff --git a/public/assets/js/UserManagement-Dk35CLpN.js.gz b/public/assets/js/UserManagement-Dk35CLpN.js.gz new file mode 100644 index 0000000..458ac99 Binary files /dev/null and b/public/assets/js/UserManagement-Dk35CLpN.js.gz differ diff --git a/public/assets/js/UserView-CCs5uc6w.js.gz b/public/assets/js/UserView-CCs5uc6w.js.gz deleted file mode 100644 index 7007e97..0000000 Binary files a/public/assets/js/UserView-CCs5uc6w.js.gz and /dev/null differ diff --git a/public/assets/js/UserView-CCs5uc6w.js b/public/assets/js/UserView-xBEjdJhk.js similarity index 75% rename from public/assets/js/UserView-CCs5uc6w.js rename to public/assets/js/UserView-xBEjdJhk.js index c5dd03b..f148058 100644 --- a/public/assets/js/UserView-CCs5uc6w.js +++ b/public/assets/js/UserView-xBEjdJhk.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/AnnounceDialog-CGrscHav.js","assets/js/element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js","assets/js/@vue_runtime-dom@3.4.32-DNdjNMzo.js","assets/js/@vue_runtime-core@3.4.32-BofAHbgu.js","assets/js/@vue_reactivity@3.4.32-DksAu7zd.js","assets/js/@vue_shared@3.4.32-CaCWPAm8.js","assets/js/lodash-es@4.17.21-BB-zMWwC.js","assets/js/async-validator@4.2.5-DKvM95Vc.js","assets/js/@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js","assets/js/@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js","assets/js/dayjs@1.11.11-Ct2Knyoi.js","assets/js/@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js","assets/js/@ctrl_tinycolor@3.6.1-r5W6hzzQ.js","assets/js/@sxzz_popperjs-es@2.11.7-D9SI2xQl.js","assets/js/normalize-wheel-es@1.2.0-B6fDCfyv.js","assets/css/element-plus@2.7.7_vue@3.4.32_typescript@5.5-YF1DmkJl.css","assets/js/index-BrpDzfc2.js","assets/js/pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js","assets/js/vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js","assets/js/axios@1.7.2-B4uVmeYG.js","assets/js/vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js","assets/css/index-qsVAQOGj.css","assets/js/GetFileList-BHH6U9wx.js","assets/js/fileListStore-CTDvCN_1.js","assets/js/copy-By2guqEs.js","assets/js/format-CyW-QbYa.js","assets/js/isMobile-BD0f7XPI.js","assets/js/_plugin-vue_export-helper-DlAUqK2U.js","assets/css/GetFileList-DHikvjDK.css","assets/js/ShowFileList-DPSUtq2U.js","assets/css/ShowFileList-CbcFgyZ7.css","assets/js/DownloadLinks-B5rVMfXv.js","assets/js/aria2Store-B9s7DO4c.js","assets/js/Aria2Dialog-CdQ9TYie.js"])))=>i.map(i=>d[i]); -import{_ as o}from"./index-BrpDzfc2.js";import{d as s,c as a,i as t,o as c,X as i}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{u as r}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const d={class:"container"},y=s({__name:"UserView",setup(u){const _=i(()=>o(()=>import("./AnnounceDialog-CGrscHav.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))),e=i(()=>o(()=>import("./GetFileList-BHH6U9wx.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,23,16,17,18,19,20,21,24,25,26,27,28]))),m=i(()=>o(()=>import("./ShowFileList-DPSUtq2U.js"),__vite__mapDeps([29,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,25,26,27,30]))),p=i(()=>o(()=>import("./DownloadLinks-B5rVMfXv.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,32,23,24]))),n=i(()=>o(()=>import("./Aria2Dialog-CdQ9TYie.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,32,16,17,18,19,20,21])));return(l,E)=>(c(),a("div",d,[t(r(_)),t(r(n)),t(r(e)),t(r(m)),t(r(p))]))}});export{y as default}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/AnnounceDialog-Qk_FjRtt.js","assets/js/element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js","assets/js/@vue_runtime-dom@3.4.32-DNdjNMzo.js","assets/js/@vue_runtime-core@3.4.32-BofAHbgu.js","assets/js/@vue_reactivity@3.4.32-DksAu7zd.js","assets/js/@vue_shared@3.4.32-CaCWPAm8.js","assets/js/lodash-es@4.17.21-BB-zMWwC.js","assets/js/async-validator@4.2.5-DKvM95Vc.js","assets/js/@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js","assets/js/@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js","assets/js/dayjs@1.11.11-Ct2Knyoi.js","assets/js/@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js","assets/js/@ctrl_tinycolor@3.6.1-r5W6hzzQ.js","assets/js/@sxzz_popperjs-es@2.11.7-D9SI2xQl.js","assets/js/normalize-wheel-es@1.2.0-B6fDCfyv.js","assets/css/element-plus@2.7.7_vue@3.4.32_typescript@5.5-YF1DmkJl.css","assets/js/index-BE2XYqVW.js","assets/js/pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js","assets/js/vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js","assets/js/axios@1.7.2-B4uVmeYG.js","assets/js/vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js","assets/css/index-qsVAQOGj.css","assets/js/GetFileList-ks6g1pZh.js","assets/js/fileListStore-CjKNV6Yt.js","assets/js/copy-By2guqEs.js","assets/js/format-CyW-QbYa.js","assets/js/isMobile-BD0f7XPI.js","assets/js/_plugin-vue_export-helper-DlAUqK2U.js","assets/css/GetFileList-DHikvjDK.css","assets/js/ShowFileList-BUr4nlX1.js","assets/css/ShowFileList-CbcFgyZ7.css","assets/js/DownloadLinks-D1mfWYmi.js","assets/js/aria2Store-P2WeHPdx.js","assets/js/Aria2Dialog-E-I3wvQw.js"])))=>i.map(i=>d[i]); +import{_ as o}from"./index-BE2XYqVW.js";import{d as s,c as a,i as t,o as c,X as i}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{u as r}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const d={class:"container"},y=s({__name:"UserView",setup(u){const _=i(()=>o(()=>import("./AnnounceDialog-Qk_FjRtt.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))),e=i(()=>o(()=>import("./GetFileList-ks6g1pZh.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,23,16,17,18,19,20,21,24,25,26,27,28]))),m=i(()=>o(()=>import("./ShowFileList-BUr4nlX1.js"),__vite__mapDeps([29,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,25,26,27,30]))),p=i(()=>o(()=>import("./DownloadLinks-D1mfWYmi.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,32,23,24]))),n=i(()=>o(()=>import("./Aria2Dialog-E-I3wvQw.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,32,16,17,18,19,20,21])));return(l,E)=>(c(),a("div",d,[t(r(_)),t(r(n)),t(r(e)),t(r(m)),t(r(p))]))}});export{y as default}; diff --git a/public/assets/js/UserView-xBEjdJhk.js.gz b/public/assets/js/UserView-xBEjdJhk.js.gz new file mode 100644 index 0000000..cb79d77 Binary files /dev/null and b/public/assets/js/UserView-xBEjdJhk.js.gz differ diff --git a/public/assets/js/aria2Store-B9s7DO4c.js b/public/assets/js/aria2Store-P2WeHPdx.js similarity index 88% rename from public/assets/js/aria2Store-B9s7DO4c.js rename to public/assets/js/aria2Store-P2WeHPdx.js index ea9ce7b..4484775 100644 --- a/public/assets/js/aria2Store-B9s7DO4c.js +++ b/public/assets/js/aria2Store-P2WeHPdx.js @@ -1 +1 @@ -import{k as e,m as s}from"./index-BrpDzfc2.js";import{d as t}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{E as f}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{r}from"./@vue_reactivity@3.4.32-DksAu7zd.js";const c=t("aria2Store",()=>{const o=r(!1),i=r(e()),a=r(null);return{aria2ConfigDialogVisible:o,aria2ConfigForm:i,aria2ConfigFormRef:a,saveAria2Config:async()=>{!a.value||!await a.value.validate()||(s(i.value),f.success("保存成功"),o.value=!1)}}});export{c as u}; +import{k as e,m as s}from"./index-BE2XYqVW.js";import{d as t}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{E as f}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{r}from"./@vue_reactivity@3.4.32-DksAu7zd.js";const c=t("aria2Store",()=>{const o=r(!1),i=r(e()),a=r(null);return{aria2ConfigDialogVisible:o,aria2ConfigForm:i,aria2ConfigFormRef:a,saveAria2Config:async()=>{!a.value||!await a.value.validate()||(s(i.value),f.success("保存成功"),o.value=!1)}}});export{c as u}; diff --git a/public/assets/js/changeConfigForm-GjgVryLW.js b/public/assets/js/changeConfigForm-D02j05Uv.js similarity index 90% rename from public/assets/js/changeConfigForm-GjgVryLW.js rename to public/assets/js/changeConfigForm-D02j05Uv.js index 5c648ef..613ca97 100644 --- a/public/assets/js/changeConfigForm-GjgVryLW.js +++ b/public/assets/js/changeConfigForm-D02j05Uv.js @@ -1 +1 @@ -import{d as e}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./index-BrpDzfc2.js";import{r as o}from"./@vue_reactivity@3.4.32-DksAu7zd.js";const a=e("changeConfigForm",()=>({changeConfigForm:o({version:"",front_end_version:"",sleep:0,max_once:0,password:"",announce:"",user_agent:"",need_inv_code:!1,whitelist_mode:!1,show_copyright:!1,custom_copyright:"",main_server:"",code:"",parse_mode:0,max_filesize:0,min_single_filesize:0,max_single_filesize:0,token_mode:!1,button_link:"",limit_cn:!1,limit_prov:!1,debug:!1,name:"",show_login_button:!1,token_bind_ip:!1,proxy_server:"",proxy_password:""})}));export{a as u}; +import{d as e}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./index-BE2XYqVW.js";import{r as o}from"./@vue_reactivity@3.4.32-DksAu7zd.js";const a=e("changeConfigForm",()=>({changeConfigForm:o({version:"",front_end_version:"",sleep:0,max_once:0,password:"",announce:"",user_agent:"",need_inv_code:!1,whitelist_mode:!1,show_copyright:!1,custom_copyright:"",main_server:"",code:"",parse_mode:0,max_filesize:0,min_single_filesize:0,max_single_filesize:0,token_mode:!1,button_link:"",limit_cn:!1,limit_prov:!1,debug:!1,name:"",show_login_button:!1,token_bind_ip:!1,proxy_server:"",proxy_password:""})}));export{a as u}; diff --git a/public/assets/js/fileListStore-CTDvCN_1.js.gz b/public/assets/js/fileListStore-CTDvCN_1.js.gz deleted file mode 100644 index be51153..0000000 Binary files a/public/assets/js/fileListStore-CTDvCN_1.js.gz and /dev/null differ diff --git a/public/assets/js/fileListStore-CTDvCN_1.js b/public/assets/js/fileListStore-CjKNV6Yt.js similarity index 98% rename from public/assets/js/fileListStore-CTDvCN_1.js rename to public/assets/js/fileListStore-CjKNV6Yt.js index 768a43e..3822197 100644 --- a/public/assets/js/fileListStore-CTDvCN_1.js +++ b/public/assets/js/fileListStore-CjKNV6Yt.js @@ -1 +1 @@ -import{u as $,e as D,f as M,h as P,j}from"./index-BrpDzfc2.js";import{d as E}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{E as s}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{r}from"./@vue_reactivity@3.4.32-DksAu7zd.js";const v=$(),A=E("fileListStore",()=>{const l=r(!1),a=r({surl:"",url:"",pwd:"",dir:"/",password:"",token:"",account_ids:""}),g=r(null),F=()=>{const i=a.value.dir.split("/");i.pop();const f=i.join("/");return f===""?"/":f},x=async()=>{if(!(!g.value||!await g.value.validate())){if(a.value.surl==="")return s.error("获取链接surl失败");try{u.value=[],l.value=!0;const i=await D(a.value);n.value=i.data,a.value.dir!=="/"&&n.value.list.unshift({category:-1,fs_id:0,isdir:1,local_ctime:0,local_mtime:0,server_ctime:0,server_mtime:0,size:0,md5:"",path:F(),server_filename:"..",dlink:""}),s.success("获取文件列表成功")}finally{l.value=!1}}},o=r({hit_captcha:!1,vcode_str:"",vcode_img:"",vcode_input:""}),n=r({uk:0,shareid:0,randsk:"",list:[]}),u=r([]),p=r([]),S=async(i,f=!1)=>{if(l.value){s.info("请勿重复点击~");return}const k=v.config.min_single_filesize,L=v.config.max_single_filesize;let c=[];if(i){const e=n.value.list.find(t=>t.fs_id===i);if(!e)s.error("获取文件信息失败");else if(e.sizeL){s.error("文件过大不会被解析!");return}c=[i]}else{let e=u.value.filter(t=>t.isdir!==1);e.length!==u.value.length&&s.error("文件夹不会被解析!"),e=e.filter(t=>t.size>k),e.length!==u.value.length&&s.error("文件过小不会被解析!"),e=e.filter(t=>t.sizet.fs_id)}if(c.length>v.config.max_once){s.error(`一次最多解析${v.config.max_once}个文件`);return}if(c.length===0){s.error("满足要求的文件数量为0");return}let d;try{l.value=!0;const e={uk:n.value.uk,shareid:n.value.shareid,randsk:n.value.randsk,fs_ids:c,password:a.value.password,token:a.value.token,url:a.value.url,surl:a.value.surl,dir:a.value.dir,pwd:a.value.pwd,account_ids:a.value.account_ids};if(o.value.hit_captcha){if(!o.value.vcode_str||!o.value.vcode_input){s.error("请先输入验证码");return}e.vcode_str=o.value.vcode_str,e.vcode_input=o.value.vcode_input}if(d=await M(e),d.data?s.success("解析成功"):(s.success("解析可能失败,请打开控制台查看是否存在报错"),console.log(d)),o.value={hit_captcha:!1,vcode_str:"",vcode_img:"",vcode_input:""},f)return l.value=!1,await _(),d.data.map(t=>({...t,index:0}));w.value=!0,p.value=d.data.map(t=>({...t,index:0}))}catch(e){const{code:t,message:y}=e;if(t&&y&&y.includes("验证码")){const z=await P({password:a.value.password});o.value={hit_captcha:!0,vcode_str:z.data.vcode,vcode_img:z.data.img,vcode_input:""}}}finally{l.value=!1,await _(),await v.getConfig(!1)}},h=r({group_name:"",count:0,size:0}),m=r(""),_=async()=>{try{l.value=!0;const i=await j({token:a.value.token});h.value=i.data,m.value=""}catch(i){m.value=i.message}finally{l.value=!1}},w=r(!1);return{pending:l,fileList:n,getFileList:x,getFileListForm:a,getFileListFormRef:g,selectedRows:u,downloadLinks:p,getDownloadLinks:S,limitForm:h,getLimit:_,limitMessage:m,vcode:o,dialogVisible:w}});export{A as u}; +import{u as $,e as D,f as M,h as P,j}from"./index-BE2XYqVW.js";import{d as E}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{E as s}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{r}from"./@vue_reactivity@3.4.32-DksAu7zd.js";const v=$(),A=E("fileListStore",()=>{const l=r(!1),a=r({surl:"",url:"",pwd:"",dir:"/",password:"",token:"",account_ids:""}),g=r(null),F=()=>{const i=a.value.dir.split("/");i.pop();const f=i.join("/");return f===""?"/":f},x=async()=>{if(!(!g.value||!await g.value.validate())){if(a.value.surl==="")return s.error("获取链接surl失败");try{u.value=[],l.value=!0;const i=await D(a.value);n.value=i.data,a.value.dir!=="/"&&n.value.list.unshift({category:-1,fs_id:0,isdir:1,local_ctime:0,local_mtime:0,server_ctime:0,server_mtime:0,size:0,md5:"",path:F(),server_filename:"..",dlink:""}),s.success("获取文件列表成功")}finally{l.value=!1}}},o=r({hit_captcha:!1,vcode_str:"",vcode_img:"",vcode_input:""}),n=r({uk:0,shareid:0,randsk:"",list:[]}),u=r([]),p=r([]),S=async(i,f=!1)=>{if(l.value){s.info("请勿重复点击~");return}const k=v.config.min_single_filesize,L=v.config.max_single_filesize;let c=[];if(i){const e=n.value.list.find(t=>t.fs_id===i);if(!e)s.error("获取文件信息失败");else if(e.sizeL){s.error("文件过大不会被解析!");return}c=[i]}else{let e=u.value.filter(t=>t.isdir!==1);e.length!==u.value.length&&s.error("文件夹不会被解析!"),e=e.filter(t=>t.size>k),e.length!==u.value.length&&s.error("文件过小不会被解析!"),e=e.filter(t=>t.sizet.fs_id)}if(c.length>v.config.max_once){s.error(`一次最多解析${v.config.max_once}个文件`);return}if(c.length===0){s.error("满足要求的文件数量为0");return}let d;try{l.value=!0;const e={uk:n.value.uk,shareid:n.value.shareid,randsk:n.value.randsk,fs_ids:c,password:a.value.password,token:a.value.token,url:a.value.url,surl:a.value.surl,dir:a.value.dir,pwd:a.value.pwd,account_ids:a.value.account_ids};if(o.value.hit_captcha){if(!o.value.vcode_str||!o.value.vcode_input){s.error("请先输入验证码");return}e.vcode_str=o.value.vcode_str,e.vcode_input=o.value.vcode_input}if(d=await M(e),d.data?s.success("解析成功"):(s.success("解析可能失败,请打开控制台查看是否存在报错"),console.log(d)),o.value={hit_captcha:!1,vcode_str:"",vcode_img:"",vcode_input:""},f)return l.value=!1,await _(),d.data.map(t=>({...t,index:0}));w.value=!0,p.value=d.data.map(t=>({...t,index:0}))}catch(e){const{code:t,message:y}=e;if(t&&y&&y.includes("验证码")){const z=await P({password:a.value.password});o.value={hit_captcha:!0,vcode_str:z.data.vcode,vcode_img:z.data.img,vcode_input:""}}}finally{l.value=!1,await _(),await v.getConfig(!1)}},h=r({group_name:"",count:0,size:0}),m=r(""),_=async()=>{try{l.value=!0;const i=await j({token:a.value.token});h.value=i.data,m.value=""}catch(i){m.value=i.message}finally{l.value=!1}},w=r(!1);return{pending:l,fileList:n,getFileList:x,getFileListForm:a,getFileListFormRef:g,selectedRows:u,downloadLinks:p,getDownloadLinks:S,limitForm:h,getLimit:_,limitMessage:m,vcode:o,dialogVisible:w}});export{A as u}; diff --git a/public/assets/js/fileListStore-CjKNV6Yt.js.gz b/public/assets/js/fileListStore-CjKNV6Yt.js.gz new file mode 100644 index 0000000..47357c1 Binary files /dev/null and b/public/assets/js/fileListStore-CjKNV6Yt.js.gz differ diff --git a/public/assets/js/index-BrpDzfc2.js b/public/assets/js/index-BE2XYqVW.js similarity index 93% rename from public/assets/js/index-BrpDzfc2.js rename to public/assets/js/index-BE2XYqVW.js index 0933ffa..d228b86 100644 --- a/public/assets/js/index-BrpDzfc2.js +++ b/public/assets/js/index-BE2XYqVW.js @@ -1,8 +1,8 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/UserView-CCs5uc6w.js","assets/js/@vue_runtime-core@3.4.32-BofAHbgu.js","assets/js/@vue_reactivity@3.4.32-DksAu7zd.js","assets/js/@vue_shared@3.4.32-CaCWPAm8.js","assets/js/element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js","assets/js/@vue_runtime-dom@3.4.32-DNdjNMzo.js","assets/js/lodash-es@4.17.21-BB-zMWwC.js","assets/js/async-validator@4.2.5-DKvM95Vc.js","assets/js/@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js","assets/js/@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js","assets/js/dayjs@1.11.11-Ct2Knyoi.js","assets/js/@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js","assets/js/@ctrl_tinycolor@3.6.1-r5W6hzzQ.js","assets/js/@sxzz_popperjs-es@2.11.7-D9SI2xQl.js","assets/js/normalize-wheel-es@1.2.0-B6fDCfyv.js","assets/css/element-plus@2.7.7_vue@3.4.32_typescript@5.5-YF1DmkJl.css","assets/js/pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js","assets/js/vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js","assets/js/axios@1.7.2-B4uVmeYG.js","assets/js/vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js","assets/css/UserView-BojJVPlK.css","assets/js/LoginView-Bspeea7Q.js","assets/js/favicon-BrYC5Vmz.js","assets/js/_plugin-vue_export-helper-DlAUqK2U.js","assets/css/LoginView-kFAD-Fzo.css","assets/js/RegisterView-Bl1dUNGS.js","assets/css/RegisterView-BnKfmdM9.css","assets/js/AdminView-5JrZ8C3C.js","assets/js/InstallView-bDsLnmEN.js","assets/css/InstallView-CRaRKPdy.css","assets/js/NotFoundView-D8J8xe3g.js","assets/css/NotFoundView-B8o8jygP.css"])))=>i.map(i=>d[i]); -import{E as p}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{d as w,c as S}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{e as b}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{a as A}from"./axios@1.7.2-B4uVmeYG.js";import{r as R,u as I}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{R as P,c as k,a as O}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as C,m as T,G as $,o as D}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const t of n)if(t.type==="childList")for(const a of t.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function o(n){const t={};return n.integrity&&(t.integrity=n.integrity),n.referrerPolicy&&(t.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?t.credentials="include":n.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function s(n){if(n.ep)return;n.ep=!0;const t=o(n);fetch(n.href,t)}})();const V="modulepreload",x=function(e){return"/"+e},f={},u=function(r,o,s){let n=Promise.resolve();if(o&&o.length>0){document.getElementsByTagName("link");const t=document.querySelector("meta[property=csp-nonce]"),a=(t==null?void 0:t.nonce)||(t==null?void 0:t.getAttribute("nonce"));n=Promise.all(o.map(c=>{if(c=x(c),c in f)return;f[c]=!0;const d=c.endsWith(".css"),E=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${E}`))return;const l=document.createElement("link");if(l.rel=d?"stylesheet":V,d||(l.as="script",l.crossOrigin=""),l.href=c,a&&l.setAttribute("nonce",a),document.head.appendChild(l),d)return new Promise((v,L)=>{l.addEventListener("load",v),l.addEventListener("error",()=>L(new Error(`Unable to preload CSS for ${c}`)))})}))}return n.then(()=>r()).catch(t=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=t,window.dispatchEvent(a),!a.defaultPrevented)throw t})},ie=()=>localStorage.getItem("login_state")??"0",g=e=>localStorage.setItem("login_state",e),ce=()=>localStorage.getItem("login_role")??"user",h=e=>localStorage.setItem("login_role",e),q=()=>localStorage.getItem("announce")??"",le=e=>localStorage.setItem("announce",e),me=async()=>(await u(async()=>{const{default:e}=await import("./package-BTQ76oxn.js");return{default:e}},[])).default.version,M=()=>{var e;return((e=document.querySelector("meta[name='app_name']"))==null?void 0:e.getAttribute("content"))??"94list-laravel"},ue=()=>{const e=localStorage.getItem("aria2_config");return e?JSON.parse(e):{host:"http://localhost",port:6800,token:""}},pe=e=>localStorage.setItem("aria2_config",JSON.stringify(e)),i=A.create({baseURL:"/api",timeout:1/0,headers:{Accept:"application/json","Content-Type":"application/json"}});i.interceptors.response.use(e=>e.data,e=>{var o;const r=(o=e.response.data)==null?void 0:o.message;return r?r==="用户未登陆"?(p.error("登陆已过期, 请重新登陆!"),g("0"),setTimeout(()=>location.href="/login",1e3)):r==="Too Many Attempts."?p.error("请求量过大! 请等待10分钟后重试!"):r==="用户权限不足"?(p.error("用户权限不足, 请联系管理员!"),h("user"),setTimeout(()=>location.href="/user",1e3)):p.error(r):(p.error("服务器异常, 请稍后再试"),console.log(e)),Promise.reject(e.response.data)});const m=e=>typeof e=="string"?parseInt(e):e,N=()=>i.get("/parse/config"),de=async e=>{const r=await i.post("/parse/get_file_list",e);return r.data.list=r.data.list.map(o=>(o.category=m(o.category),o.fs_id=m(o.fs_id),o.isdir=m(o.isdir),o.local_ctime=m(o.local_ctime),o.local_mtime=m(o.local_mtime),o.server_ctime=m(o.local_mtime),o.server_mtime=m(o.local_mtime),o.size=m(o.size),o)),r},ge=e=>i.post("/parse/get_vcode",e),_e=e=>i.post("/parse/get_download_links",e),fe=e=>i.get(`/parse/limit?token=${e.token}`),he=e=>i.post("/user/login",e),ye=e=>i.post("/user/register",e),j=()=>i.delete("/user"),z=w("mainStore",()=>{const e=R({show_announce:!1,announce:"",debug:!1,max_once:0,have_account:!1,have_login:!1,need_inv_code:!1,need_password:!1,is_https:!1,show_copyright:!1,custom_copyright:"",min_single_filesize:0,max_single_filesize:0,token_mode:!1,button_link:"",show_login_button:!1});return{config:e,logout:async()=>{try{await j()}finally{g("0"),h("user"),location.reload(),p.success("退出登陆成功~")}},getConfig:async(s=!0)=>{const t=(await N()).data;t.announce=t.announce.replaceAll("[NextLine]","
"),t.announce===q()&&(t.show_announce=!1),s||(t.show_announce=!1),e.value={...t,is_https:document.location.protocol==="https:"},g(t.have_login?"1":"0")}}}),B=C({__name:"App",setup(e){const r=z();function o(){const s="0123456789ABCDEF";let n="#";for(let t=0;t<6;t++)n+=s[Math.floor(Math.random()*16)];return n}return T(async()=>{console.info(`%c +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/UserView-xBEjdJhk.js","assets/js/@vue_runtime-core@3.4.32-BofAHbgu.js","assets/js/@vue_reactivity@3.4.32-DksAu7zd.js","assets/js/@vue_shared@3.4.32-CaCWPAm8.js","assets/js/element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js","assets/js/@vue_runtime-dom@3.4.32-DNdjNMzo.js","assets/js/lodash-es@4.17.21-BB-zMWwC.js","assets/js/async-validator@4.2.5-DKvM95Vc.js","assets/js/@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js","assets/js/@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js","assets/js/dayjs@1.11.11-Ct2Knyoi.js","assets/js/@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js","assets/js/@ctrl_tinycolor@3.6.1-r5W6hzzQ.js","assets/js/@sxzz_popperjs-es@2.11.7-D9SI2xQl.js","assets/js/normalize-wheel-es@1.2.0-B6fDCfyv.js","assets/css/element-plus@2.7.7_vue@3.4.32_typescript@5.5-YF1DmkJl.css","assets/js/pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js","assets/js/vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js","assets/js/axios@1.7.2-B4uVmeYG.js","assets/js/vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js","assets/css/UserView-BojJVPlK.css","assets/js/LoginView-C-WVw0kt.js","assets/js/favicon-BrYC5Vmz.js","assets/js/_plugin-vue_export-helper-DlAUqK2U.js","assets/css/LoginView-kFAD-Fzo.css","assets/js/RegisterView-Ce4hpDS4.js","assets/css/RegisterView-BnKfmdM9.css","assets/js/AdminView-DP9h94LN.js","assets/js/InstallView-BiWK1Ekm.js","assets/css/InstallView-CRaRKPdy.css","assets/js/NotFoundView-D8J8xe3g.js","assets/css/NotFoundView-B8o8jygP.css"])))=>i.map(i=>d[i]); +import{E as p}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{d as w,c as S}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{e as b}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{a as A}from"./axios@1.7.2-B4uVmeYG.js";import{r as R,u as I}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{R as P,c as k,a as O}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as C,m as T,G as $,o as D}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const t of n)if(t.type==="childList")for(const a of t.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function o(n){const t={};return n.integrity&&(t.integrity=n.integrity),n.referrerPolicy&&(t.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?t.credentials="include":n.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function s(n){if(n.ep)return;n.ep=!0;const t=o(n);fetch(n.href,t)}})();const V="modulepreload",x=function(e){return"/"+e},f={},u=function(r,o,s){let n=Promise.resolve();if(o&&o.length>0){document.getElementsByTagName("link");const t=document.querySelector("meta[property=csp-nonce]"),a=(t==null?void 0:t.nonce)||(t==null?void 0:t.getAttribute("nonce"));n=Promise.all(o.map(c=>{if(c=x(c),c in f)return;f[c]=!0;const d=c.endsWith(".css"),E=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${E}`))return;const l=document.createElement("link");if(l.rel=d?"stylesheet":V,d||(l.as="script",l.crossOrigin=""),l.href=c,a&&l.setAttribute("nonce",a),document.head.appendChild(l),d)return new Promise((v,L)=>{l.addEventListener("load",v),l.addEventListener("error",()=>L(new Error(`Unable to preload CSS for ${c}`)))})}))}return n.then(()=>r()).catch(t=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=t,window.dispatchEvent(a),!a.defaultPrevented)throw t})},ie=()=>localStorage.getItem("login_state")??"0",g=e=>localStorage.setItem("login_state",e),ce=()=>localStorage.getItem("login_role")??"user",h=e=>localStorage.setItem("login_role",e),q=()=>localStorage.getItem("announce")??"",le=e=>localStorage.setItem("announce",e),me=async()=>(await u(async()=>{const{default:e}=await import("./package-C4f7Xhtj.js");return{default:e}},[])).default.version,M=()=>{var e;return((e=document.querySelector("meta[name='app_name']"))==null?void 0:e.getAttribute("content"))??"94list-laravel"},ue=()=>{const e=localStorage.getItem("aria2_config");return e?JSON.parse(e):{host:"http://localhost",port:6800,token:""}},pe=e=>localStorage.setItem("aria2_config",JSON.stringify(e)),i=A.create({baseURL:"/api",timeout:1/0,headers:{Accept:"application/json","Content-Type":"application/json"}});i.interceptors.response.use(e=>e.data,e=>{var o;const r=(o=e.response.data)==null?void 0:o.message;return r?r==="用户未登陆"?(p.error("登陆已过期, 请重新登陆!"),g("0"),setTimeout(()=>location.href="/login",1e3)):r==="Too Many Attempts."?p.error("请求量过大! 请等待10分钟后重试!"):r==="用户权限不足"?(p.error("用户权限不足, 请联系管理员!"),h("user"),setTimeout(()=>location.href="/user",1e3)):p.error(r):(p.error("服务器异常, 请稍后再试"),console.log(e)),Promise.reject(e.response.data)});const m=e=>typeof e=="string"?parseInt(e):e,N=()=>i.get("/parse/config"),de=async e=>{const r=await i.post("/parse/get_file_list",e);return r.data.list=r.data.list.map(o=>(o.category=m(o.category),o.fs_id=m(o.fs_id),o.isdir=m(o.isdir),o.local_ctime=m(o.local_ctime),o.local_mtime=m(o.local_mtime),o.server_ctime=m(o.local_mtime),o.server_mtime=m(o.local_mtime),o.size=m(o.size),o)),r},ge=e=>i.post("/parse/get_vcode",e),_e=e=>i.post("/parse/get_download_links",e),fe=e=>i.get(`/parse/limit?token=${e.token}`),he=e=>i.post("/user/login",e),ye=e=>i.post("/user/register",e),j=()=>i.delete("/user"),z=w("mainStore",()=>{const e=R({show_announce:!1,announce:"",debug:!1,max_once:0,have_account:!1,have_login:!1,need_inv_code:!1,need_password:!1,is_https:!1,show_copyright:!1,custom_copyright:"",min_single_filesize:0,max_single_filesize:0,token_mode:!1,button_link:"",show_login_button:!1});return{config:e,logout:async()=>{try{await j()}finally{g("0"),h("user"),location.reload(),p.success("退出登陆成功~")}},getConfig:async(s=!0)=>{const t=(await N()).data;t.announce=t.announce.replaceAll("[NextLine]","
"),t.announce===q()&&(t.show_announce=!1),s||(t.show_announce=!1),e.value={...t,is_https:document.location.protocol==="https:"},g(t.have_login?"1":"0")}}}),B=C({__name:"App",setup(e){const r=z();function o(){const s="0123456789ABCDEF";let n="#";for(let t=0;t<6;t++)n+=s[Math.floor(Math.random()*16)];return n}return T(async()=>{console.info(`%c █████╗ ██╗ ██╗ ██╗ ██╗ ███████╗ ████████╗ ██╗ █████╗ ██████╗ █████╗ ██╗ ██╗ ███████╗ ██╗ ██╔══██╗ ██║ ██║ ██║ ██║ ██╔════╝ ╚══██╔══╝ ██║ ██╔══██╗ ██╔══██╗ ██╔══██╗ ██║ ██║ ██╔════╝ ██║ ╚██████║ ███████║ ██║ ██║ ███████╗ ██║ █████╗ ██║ ███████║ ██████╔╝ ███████║ ██║ ██║ █████╗ ██║ ╚═══██║ ╚════██║ ██║ ██║ ╚════██║ ██║ ╚════╝ ██║ ██╔══██║ ██╔══██╗ ██╔══██║ ╚██╗ ██╔╝ ██╔══╝ ██║ █████╔╝ ██║ ███████╗ ██║ ███████║ ██║ ███████╗ ██║ ██║ ██║ ██║ ██║ ██║ ╚████╔╝ ███████╗ ███████╗ - ╚════╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ ╚══════╝ `,`font-family: courier; background: linear-gradient(to right, ${o()}, ${o()});-webkit-background-clip: text;color: transparent;`);const s=window.matchMedia("(prefers-color-scheme: dark)");n(s),s.addEventListener("change",n);function n(t){t.matches?document.querySelector("html").classList.add("dark"):document.querySelector("html").classList.remove("dark")}await r.getConfig()}),(s,n)=>(D(),$(I(P)))}}),y=k({history:O("/"),routes:[{path:"/",name:"index",redirect:"/user"},{path:"/user",name:"user",meta:{title:"前台解析中心"},component:()=>u(()=>import("./UserView-CCs5uc6w.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]))},{path:"/login",name:"login",meta:{title:"登陆"},component:()=>u(()=>import("./LoginView-Bspeea7Q.js"),__vite__mapDeps([21,4,5,1,2,3,6,7,8,9,10,11,12,13,14,15,22,19,23,16,17,18,24]))},{path:"/register",name:"register",meta:{title:"注册"},component:()=>u(()=>import("./RegisterView-Bl1dUNGS.js"),__vite__mapDeps([25,4,5,1,2,3,6,7,8,9,10,11,12,13,14,15,22,19,23,16,17,18,26]))},{path:"/admin",name:"admin",meta:{title:"后台控制中心"},component:()=>u(()=>import("./AdminView-5JrZ8C3C.js"),__vite__mapDeps([27,4,5,1,2,3,6,7,8,9,10,11,12,13,14,15,19,16,17,18]))},{path:"/install",name:"install",meta:{title:"安装"},component:()=>u(()=>import("./InstallView-bDsLnmEN.js"),__vite__mapDeps([28,4,5,1,2,3,6,7,8,9,10,11,12,13,14,15,22,19,23,16,17,18,29]))},{path:"/404",name:"404",meta:{title:"404页面不存在"},component:()=>u(()=>import("./NotFoundView-D8J8xe3g.js"),__vite__mapDeps([30,19,2,3,1,31]))},{path:"/:pathMatch(.*)",redirect:"/404"}]});y.beforeEach((e,r,o)=>{document.title=`${e.meta.title} | ${M()}`,o()});const _=b(B);_.use(S());_.use(y);_.mount("#app");export{u as _,M as a,h as b,ce as c,le as d,de as e,_e as f,ie as g,ge as h,i,fe as j,ue as k,he as l,pe as m,me as n,ye as r,g as s,z as u}; + ╚════╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ ╚══════╝ `,`font-family: courier; background: linear-gradient(to right, ${o()}, ${o()});-webkit-background-clip: text;color: transparent;`);const s=window.matchMedia("(prefers-color-scheme: dark)");n(s),s.addEventListener("change",n);function n(t){t.matches?document.querySelector("html").classList.add("dark"):document.querySelector("html").classList.remove("dark")}await r.getConfig()}),(s,n)=>(D(),$(I(P)))}}),y=k({history:O("/"),routes:[{path:"/",name:"index",redirect:"/user"},{path:"/user",name:"user",meta:{title:"前台解析中心"},component:()=>u(()=>import("./UserView-xBEjdJhk.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]))},{path:"/login",name:"login",meta:{title:"登陆"},component:()=>u(()=>import("./LoginView-C-WVw0kt.js"),__vite__mapDeps([21,4,5,1,2,3,6,7,8,9,10,11,12,13,14,15,22,19,23,16,17,18,24]))},{path:"/register",name:"register",meta:{title:"注册"},component:()=>u(()=>import("./RegisterView-Ce4hpDS4.js"),__vite__mapDeps([25,4,5,1,2,3,6,7,8,9,10,11,12,13,14,15,22,19,23,16,17,18,26]))},{path:"/admin",name:"admin",meta:{title:"后台控制中心"},component:()=>u(()=>import("./AdminView-DP9h94LN.js"),__vite__mapDeps([27,4,5,1,2,3,6,7,8,9,10,11,12,13,14,15,19,16,17,18]))},{path:"/install",name:"install",meta:{title:"安装"},component:()=>u(()=>import("./InstallView-BiWK1Ekm.js"),__vite__mapDeps([28,4,5,1,2,3,6,7,8,9,10,11,12,13,14,15,22,19,23,16,17,18,29]))},{path:"/404",name:"404",meta:{title:"404页面不存在"},component:()=>u(()=>import("./NotFoundView-D8J8xe3g.js"),__vite__mapDeps([30,19,2,3,1,31]))},{path:"/:pathMatch(.*)",redirect:"/404"}]});y.beforeEach((e,r,o)=>{document.title=`${e.meta.title} | ${M()}`,o()});const _=b(B);_.use(S());_.use(y);_.mount("#app");export{u as _,M as a,h as b,ce as c,le as d,de as e,_e as f,ie as g,ge as h,i,fe as j,ue as k,he as l,pe as m,me as n,ye as r,g as s,z as u}; diff --git a/public/assets/js/index-BE2XYqVW.js.gz b/public/assets/js/index-BE2XYqVW.js.gz new file mode 100644 index 0000000..e616e4d Binary files /dev/null and b/public/assets/js/index-BE2XYqVW.js.gz differ diff --git a/public/assets/js/index-BrpDzfc2.js.gz b/public/assets/js/index-BrpDzfc2.js.gz deleted file mode 100644 index c1d6bd4..0000000 Binary files a/public/assets/js/index-BrpDzfc2.js.gz and /dev/null differ diff --git a/public/assets/js/package-BTQ76oxn.js.gz b/public/assets/js/package-BTQ76oxn.js.gz deleted file mode 100644 index 75fb103..0000000 Binary files a/public/assets/js/package-BTQ76oxn.js.gz and /dev/null differ diff --git a/public/assets/js/package-BTQ76oxn.js b/public/assets/js/package-C4f7Xhtj.js similarity index 95% rename from public/assets/js/package-BTQ76oxn.js rename to public/assets/js/package-C4f7Xhtj.js index c310c75..092606a 100644 --- a/public/assets/js/package-BTQ76oxn.js +++ b/public/assets/js/package-C4f7Xhtj.js @@ -1 +1 @@ -const e="94list-frontend",s="1.3.19",t="module",i={dev:"vite",build:"pnpm type-check & pnpm build-only","remove-css":"tsx ./scripts/remove-css.js","revoer-css":"tsx ./scripts/recover-css.js",preview:"vite preview","build-only":"vite build","type-check":"vue-tsc --build --force",lint:"eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",format:"prettier --write src/"},n={axios:"^1.7.2","element-plus":"2.7.7",pinia:"^2.1.7",vue:"^3.4.32","vue-demi":"^0.14.8","vue-router":"^4.4.0"},p={"@rushstack/eslint-patch":"^1.10.3","@tsconfig/node20":"^20.1.4","@types/node":"^20.14.11","@vitejs/plugin-vue":"^5.0.5","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^13.0.0","@vue/tsconfig":"^0.5.1","async-validator":"^4.2.5",eslint:"^8.57.0","eslint-plugin-vue":"^9.27.0","npm-run-all2":"^6.2.2",prettier:"^3.3.3","rollup-plugin-visualizer":"^5.12.0",sass:"^1.77.8",tsx:"^4.16.2",typescript:"~5.5.3","unplugin-auto-import":"^0.18.0","unplugin-vue-components":"^0.27.3",vite:"^5.3.4","vite-plugin-cdn-import":"^1.0.1","vite-plugin-compression":"^0.5.1","vue-tsc":"^2.0.26"},c={name:e,version:s,type:t,scripts:i,dependencies:n,devDependencies:p};export{c as default,n as dependencies,p as devDependencies,e as name,i as scripts,t as type,s as version}; +const e="94list-frontend",s="1.3.20",t="module",i={dev:"vite",build:"pnpm type-check & pnpm build-only","remove-css":"tsx ./scripts/remove-css.js","revoer-css":"tsx ./scripts/recover-css.js",preview:"vite preview","build-only":"vite build","type-check":"vue-tsc --build --force",lint:"eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",format:"prettier --write src/"},n={axios:"^1.7.2","element-plus":"2.7.7",pinia:"^2.1.7",vue:"^3.4.32","vue-demi":"^0.14.8","vue-router":"^4.4.0"},p={"@rushstack/eslint-patch":"^1.10.3","@tsconfig/node20":"^20.1.4","@types/node":"^20.14.11","@vitejs/plugin-vue":"^5.0.5","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^13.0.0","@vue/tsconfig":"^0.5.1","async-validator":"^4.2.5",eslint:"^8.57.0","eslint-plugin-vue":"^9.27.0","npm-run-all2":"^6.2.2",prettier:"^3.3.3","rollup-plugin-visualizer":"^5.12.0",sass:"^1.77.8",tsx:"^4.16.2",typescript:"~5.5.3","unplugin-auto-import":"^0.18.0","unplugin-vue-components":"^0.27.3",vite:"^5.3.4","vite-plugin-cdn-import":"^1.0.1","vite-plugin-compression":"^0.5.1","vue-tsc":"^2.0.26"},c={name:e,version:s,type:t,scripts:i,dependencies:n,devDependencies:p};export{c as default,n as dependencies,p as devDependencies,e as name,i as scripts,t as type,s as version}; diff --git a/public/assets/js/package-C4f7Xhtj.js.gz b/public/assets/js/package-C4f7Xhtj.js.gz new file mode 100644 index 0000000..2ee6ea5 Binary files /dev/null and b/public/assets/js/package-C4f7Xhtj.js.gz differ diff --git a/public/index.html b/public/index.html index b3a3815..047d941 100644 --- a/public/index.html +++ b/public/index.html @@ -6,7 +6,7 @@ 94list-laravel - +