openapi服务地址解析
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
import{u as S,V as w,r as c,o as a,c as l,w as t,a as o,m as g,t as n,b as i,F as f,k as s,e as m,d as M}from"./vendor.d3f949c4.js";import{m as V}from"./index.ea6b273d.js";import{_ as B}from"./main.d3c4ff0f.js";const C={setup(){const _=S(),D=w(()=>_.state.swaggerDoc),u=w(()=>_.state.swaggerDoc.info),e=w(()=>_.state.swaggerMethodStatistic);return{swaggerDoc:D,swaggerDocInfo:u,swaggerMethodStatistic:e,getDescription:I=>V.exports.markdownIt.render(I||"")}}},N=["href"],j=["href"],L=["href"],O=["innerHTML"],T={key:1,style:{"text-align":"center"}};function E(_,D,u,e,p,I){const r=c("a-form-item"),h=c("a-divider"),v=c("a-statistic"),k=c("a-card"),b=c("a-col"),y=c("a-row"),x=c("a-form");return a(),l(k,null,{default:t(()=>[e.swaggerDocInfo?(a(),l(x,{key:0,"label-col":{span:4},"wrapper-col":{span:20}},{default:t(()=>[o(r,{label:"\u6807\u9898"},{default:t(()=>[g(n(e.swaggerDocInfo.title),1)]),_:1}),o(r,{label:"\u7248\u672C"},{default:t(()=>[g(n(e.swaggerDocInfo.version),1)]),_:1}),e.swaggerDocInfo.contact?(a(),l(r,{key:0,label:"\u4F5C\u8005"},{default:t(()=>[e.swaggerDocInfo.contact.name?(a(),i(f,{key:0},[g(n(e.swaggerDocInfo.contact.name),1)],64)):s("",!0),e.swaggerDocInfo.contact.email?(a(),i(f,{key:1},[o(h,{type:"vertical"}),g(n(e.swaggerDocInfo.contact.email),1)],64)):s("",!0),e.swaggerDocInfo.contact.url?(a(),i(f,{key:2},[o(h,{type:"vertical"}),m("a",{href:e.swaggerDocInfo.contact.url,target:"_blank"},n(e.swaggerDocInfo.contact.url),9,N)],64)):s("",!0)]),_:1})):s("",!0),o(r,{label:"host"},{default:t(()=>[g(n(e.swaggerDoc.host),1)]),_:1}),e.swaggerDocInfo.license?(a(),l(r,{key:1,label:"\u8BB8\u53EF\u8BC1"},{default:t(()=>[m("a",{href:e.swaggerDocInfo.license.url,target:"_blank"},n(e.swaggerDocInfo.license.name),9,j)]),_:1})):s("",!0),e.swaggerDocInfo.termsOfService?(a(),l(r,{key:2,label:"\u670D\u52A1\u6761\u6B3E"},{default:t(()=>[m("a",{href:e.swaggerDocInfo.termsOfService,target:"_blank"},n(e.swaggerDocInfo.termsOfService),9,L)]),_:1})):s("",!0),o(r,{label:"\u6587\u6863\u8BF4\u660E"},{default:t(()=>[m("div",{class:"markdown-body",innerHTML:e.getDescription(e.swaggerDocInfo.description)},null,8,O)]),_:1}),o(r,{label:"\u63A5\u53E3\u7EDF\u8BA1"},{default:t(()=>[o(y,{gutter:[16,16]},{default:t(()=>[(a(),i(f,null,M(["get","post","put","delete","head","patch","options","trace","total"],d=>(a(),i(f,null,[e.swaggerMethodStatistic[d]?(a(),l(b,{key:0,span:6},{default:t(()=>[o(k,{size:"small"},{default:t(()=>[o(v,{title:d==="total"?"\u603B\u8BA1":d.toUpperCase()+"\u65B9\u6CD5",value:e.swaggerMethodStatistic[d],suffix:"\u4E2A"},null,8,["title","value"])]),_:2},1024)]),_:2},1024)):s("",!0)],64))),64))]),_:1})]),_:1})]),_:1})):(a(),i("div",T,"\u6682\u65E0\u6587\u6863\u4FE1\u606F\uFF0C\u8BF7\u5148\u9009\u62E9\u6587\u6863"))]),_:1})}var U=B(C,[["render",E]]);export{U as default};
|
||||
import{u as S,V as w,r as c,o as a,c as l,w as t,a as o,m as g,t as n,b as i,F as f,k as s,e as m,d as M}from"./vendor.d3f949c4.js";import{m as V}from"./index.ea6b273d.js";import{_ as B}from"./main.a111e8f9.js";const C={setup(){const _=S(),D=w(()=>_.state.swaggerDoc),u=w(()=>_.state.swaggerDoc.info),e=w(()=>_.state.swaggerMethodStatistic);return{swaggerDoc:D,swaggerDocInfo:u,swaggerMethodStatistic:e,getDescription:I=>V.exports.markdownIt.render(I||"")}}},N=["href"],j=["href"],L=["href"],O=["innerHTML"],T={key:1,style:{"text-align":"center"}};function E(_,D,u,e,p,I){const r=c("a-form-item"),h=c("a-divider"),v=c("a-statistic"),k=c("a-card"),b=c("a-col"),y=c("a-row"),x=c("a-form");return a(),l(k,null,{default:t(()=>[e.swaggerDocInfo?(a(),l(x,{key:0,"label-col":{span:4},"wrapper-col":{span:20}},{default:t(()=>[o(r,{label:"\u6807\u9898"},{default:t(()=>[g(n(e.swaggerDocInfo.title),1)]),_:1}),o(r,{label:"\u7248\u672C"},{default:t(()=>[g(n(e.swaggerDocInfo.version),1)]),_:1}),e.swaggerDocInfo.contact?(a(),l(r,{key:0,label:"\u4F5C\u8005"},{default:t(()=>[e.swaggerDocInfo.contact.name?(a(),i(f,{key:0},[g(n(e.swaggerDocInfo.contact.name),1)],64)):s("",!0),e.swaggerDocInfo.contact.email?(a(),i(f,{key:1},[o(h,{type:"vertical"}),g(n(e.swaggerDocInfo.contact.email),1)],64)):s("",!0),e.swaggerDocInfo.contact.url?(a(),i(f,{key:2},[o(h,{type:"vertical"}),m("a",{href:e.swaggerDocInfo.contact.url,target:"_blank"},n(e.swaggerDocInfo.contact.url),9,N)],64)):s("",!0)]),_:1})):s("",!0),o(r,{label:"host"},{default:t(()=>[g(n(e.swaggerDoc.host),1)]),_:1}),e.swaggerDocInfo.license?(a(),l(r,{key:1,label:"\u8BB8\u53EF\u8BC1"},{default:t(()=>[m("a",{href:e.swaggerDocInfo.license.url,target:"_blank"},n(e.swaggerDocInfo.license.name),9,j)]),_:1})):s("",!0),e.swaggerDocInfo.termsOfService?(a(),l(r,{key:2,label:"\u670D\u52A1\u6761\u6B3E"},{default:t(()=>[m("a",{href:e.swaggerDocInfo.termsOfService,target:"_blank"},n(e.swaggerDocInfo.termsOfService),9,L)]),_:1})):s("",!0),o(r,{label:"\u6587\u6863\u8BF4\u660E"},{default:t(()=>[m("div",{class:"markdown-body",innerHTML:e.getDescription(e.swaggerDocInfo.description)},null,8,O)]),_:1}),o(r,{label:"\u63A5\u53E3\u7EDF\u8BA1"},{default:t(()=>[o(y,{gutter:[16,16]},{default:t(()=>[(a(),i(f,null,M(["get","post","put","delete","head","patch","options","trace","total"],d=>(a(),i(f,null,[e.swaggerMethodStatistic[d]?(a(),l(b,{key:0,span:6},{default:t(()=>[o(k,{size:"small"},{default:t(()=>[o(v,{title:d==="total"?"\u603B\u8BA1":d.toUpperCase()+"\u65B9\u6CD5",value:e.swaggerMethodStatistic[d],suffix:"\u4E2A"},null,8,["title","value"])]),_:2},1024)]),_:2},1024)):s("",!0)],64))),64))]),_:1})]),_:1})]),_:1})):(a(),i("div",T,"\u6682\u65E0\u6587\u6863\u4FE1\u606F\uFF0C\u8BF7\u5148\u9009\u62E9\u6587\u6863"))]),_:1})}var U=B(C,[["render",E]]);export{U as default};
|
||||
@@ -1 +1 @@
|
||||
import{u as S,V as D,r as i,o as t,c as l,w as o,a as n,m as s,t as c,b as p,F as f,k as r,e as m,d as w}from"./vendor.d3f949c4.js";import{m as M}from"./index.ea6b273d.js";import{_ as V}from"./main.d3c4ff0f.js";const B={setup(){const _=S(),A=D(()=>_.state.openApiDoc),u=D(()=>_.state.openApiDoc.info),e=D(()=>_.state.openApiMethodStatistic);return{openApiDoc:A,openApiDocInfo:u,openApiMethodStatistic:e,getDescription:I=>M.exports.markdownIt.render(I||"")}}},C=["href"],N=["href"],j=["href"],L=["innerHTML"],O={key:1,style:{"text-align":"center"}};function T(_,A,u,e,v,I){const a=i("a-form-item"),h=i("a-divider"),b=i("a-statistic"),k=i("a-card"),y=i("a-col"),g=i("a-row"),x=i("a-form");return t(),l(k,null,{default:o(()=>[e.openApiDocInfo?(t(),l(x,{key:0,"label-col":{span:4},"wrapper-col":{span:20}},{default:o(()=>[n(a,{label:"\u6807\u9898"},{default:o(()=>[s(c(e.openApiDocInfo.title),1)]),_:1}),n(a,{label:"\u7248\u672C"},{default:o(()=>[s(c(e.openApiDocInfo.version),1)]),_:1}),e.openApiDocInfo.contact?(t(),l(a,{key:0,label:"\u4F5C\u8005"},{default:o(()=>[e.openApiDocInfo.contact.name?(t(),p(f,{key:0},[s(c(e.openApiDocInfo.contact.name),1)],64)):r("",!0),e.openApiDocInfo.contact.email?(t(),p(f,{key:1},[n(h,{type:"vertical"}),s(c(e.openApiDocInfo.contact.email),1)],64)):r("",!0),e.openApiDocInfo.contact.url?(t(),p(f,{key:2},[n(h,{type:"vertical"}),m("a",{href:e.openApiDocInfo.contact.url,target:"_blank"},c(e.openApiDocInfo.contact.url),9,C)],64)):r("",!0)]),_:1})):r("",!0),n(a,{label:"host"},{default:o(()=>[s(c(e.openApiDoc.host),1)]),_:1}),e.openApiDocInfo.license?(t(),l(a,{key:1,label:"\u8BB8\u53EF\u8BC1"},{default:o(()=>[m("a",{href:e.openApiDocInfo.license.url,target:"_blank"},c(e.openApiDocInfo.license.name),9,N)]),_:1})):r("",!0),e.openApiDocInfo.termsOfService?(t(),l(a,{key:2,label:"\u670D\u52A1\u6761\u6B3E"},{default:o(()=>[m("a",{href:e.openApiDocInfo.termsOfService,target:"_blank"},c(e.openApiDocInfo.termsOfService),9,j)]),_:1})):r("",!0),n(a,{label:"\u6587\u6863\u8BF4\u660E"},{default:o(()=>[m("div",{class:"markdown-body",innerHTML:e.getDescription(e.openApiDocInfo.description)},null,8,L)]),_:1}),n(a,{label:"\u63A5\u53E3\u7EDF\u8BA1"},{default:o(()=>[n(g,{gutter:[16,16]},{default:o(()=>[(t(),p(f,null,w(["get","post","put","delete","head","patch","options","trace","total"],d=>(t(),p(f,null,[e.openApiMethodStatistic[d]?(t(),l(y,{key:0,span:6},{default:o(()=>[n(k,{size:"small"},{default:o(()=>[n(b,{title:d==="total"?"\u603B\u8BA1":d.toUpperCase()+"\u65B9\u6CD5",value:e.openApiMethodStatistic[d],suffix:"\u4E2A"},null,8,["title","value"])]),_:2},1024)]),_:2},1024)):r("",!0)],64))),64))]),_:1})]),_:1})]),_:1})):(t(),p("div",O,"\u6682\u65E0\u6587\u6863\u4FE1\u606F\uFF0C\u8BF7\u5148\u9009\u62E9\u6587\u6863"))]),_:1})}var z=V(B,[["render",T]]);export{z as default};
|
||||
import{u as S,V as D,r as i,o as t,c as l,w as o,a as n,m as s,t as c,b as p,F as f,k as r,e as m,d as w}from"./vendor.d3f949c4.js";import{m as M}from"./index.ea6b273d.js";import{_ as V}from"./main.a111e8f9.js";const B={setup(){const _=S(),A=D(()=>_.state.openApiDoc),u=D(()=>_.state.openApiDoc.info),e=D(()=>_.state.openApiMethodStatistic);return{openApiDoc:A,openApiDocInfo:u,openApiMethodStatistic:e,getDescription:I=>M.exports.markdownIt.render(I||"")}}},C=["href"],N=["href"],j=["href"],L=["innerHTML"],O={key:1,style:{"text-align":"center"}};function T(_,A,u,e,v,I){const a=i("a-form-item"),h=i("a-divider"),b=i("a-statistic"),k=i("a-card"),y=i("a-col"),g=i("a-row"),x=i("a-form");return t(),l(k,null,{default:o(()=>[e.openApiDocInfo?(t(),l(x,{key:0,"label-col":{span:4},"wrapper-col":{span:20}},{default:o(()=>[n(a,{label:"\u6807\u9898"},{default:o(()=>[s(c(e.openApiDocInfo.title),1)]),_:1}),n(a,{label:"\u7248\u672C"},{default:o(()=>[s(c(e.openApiDocInfo.version),1)]),_:1}),e.openApiDocInfo.contact?(t(),l(a,{key:0,label:"\u4F5C\u8005"},{default:o(()=>[e.openApiDocInfo.contact.name?(t(),p(f,{key:0},[s(c(e.openApiDocInfo.contact.name),1)],64)):r("",!0),e.openApiDocInfo.contact.email?(t(),p(f,{key:1},[n(h,{type:"vertical"}),s(c(e.openApiDocInfo.contact.email),1)],64)):r("",!0),e.openApiDocInfo.contact.url?(t(),p(f,{key:2},[n(h,{type:"vertical"}),m("a",{href:e.openApiDocInfo.contact.url,target:"_blank"},c(e.openApiDocInfo.contact.url),9,C)],64)):r("",!0)]),_:1})):r("",!0),n(a,{label:"host"},{default:o(()=>[s(c(e.openApiDoc.host),1)]),_:1}),e.openApiDocInfo.license?(t(),l(a,{key:1,label:"\u8BB8\u53EF\u8BC1"},{default:o(()=>[m("a",{href:e.openApiDocInfo.license.url,target:"_blank"},c(e.openApiDocInfo.license.name),9,N)]),_:1})):r("",!0),e.openApiDocInfo.termsOfService?(t(),l(a,{key:2,label:"\u670D\u52A1\u6761\u6B3E"},{default:o(()=>[m("a",{href:e.openApiDocInfo.termsOfService,target:"_blank"},c(e.openApiDocInfo.termsOfService),9,j)]),_:1})):r("",!0),n(a,{label:"\u6587\u6863\u8BF4\u660E"},{default:o(()=>[m("div",{class:"markdown-body",innerHTML:e.getDescription(e.openApiDocInfo.description)},null,8,L)]),_:1}),n(a,{label:"\u63A5\u53E3\u7EDF\u8BA1"},{default:o(()=>[n(g,{gutter:[16,16]},{default:o(()=>[(t(),p(f,null,w(["get","post","put","delete","head","patch","options","trace","total"],d=>(t(),p(f,null,[e.openApiMethodStatistic[d]?(t(),l(y,{key:0,span:6},{default:o(()=>[n(k,{size:"small"},{default:o(()=>[n(b,{title:d==="total"?"\u603B\u8BA1":d.toUpperCase()+"\u65B9\u6CD5",value:e.openApiMethodStatistic[d],suffix:"\u4E2A"},null,8,["title","value"])]),_:2},1024)]),_:2},1024)):r("",!0)],64))),64))]),_:1})]),_:1})]),_:1})):(t(),p("div",O,"\u6682\u65E0\u6587\u6863\u4FE1\u606F\uFF0C\u8BF7\u5148\u9009\u62E9\u6587\u6863"))]),_:1})}var z=V(B,[["render",T]]);export{z as default};
|
||||
@@ -1,4 +1,4 @@
|
||||
import{z as U}from"./custom.914a01ae.js";import{u as A,y as w,G as P,r as u,T as J,o as s,b,a as t,w as e,F as k,k as h,c as _,H as I,e as i,t as V,m as a}from"./vendor.d3f949c4.js";import{_ as B}from"./main.d3c4ff0f.js";const F={setup(){const E=A();let l=w([]),C=w(!1),o=w({docType:"",openVisit:"",docStatus:"",pageNum:1,pageSize:20}),S=w({pageSize:20,pageNum:1,total:0,showSizeChanger:!0,pageSizeOptions:["20","50","100"],showTotal:d=>`\u5171${d}\u6761`});const L=(d,f,v)=>{S.value.pageNum=d.current,S.value.pageSize=d.pageSize,o.value.pageNum=d.current,o.value.pageSize=d.pageSize,c()},c=async()=>{C.value=!0,U.apiDocList(o.value).then(d=>{setTimeout(()=>C.value=!1,500),l.value=d.data||[],S.value.total=d.total||0})};let g=w({}),r=w(),p=w(!1);const x=async()=>{r.value.validate().then(()=>{U.apiDocAdd(g.value).then(d=>{c(),p.value=!1,E.commit("addDocChangedNum")})}).catch(d=>{console.log("error",d)})},N=async()=>{p.value=!0,g.value={docType:1,openVisit:0,docStatus:1,isNew:1}},m=d=>{U.apiDocDetail({id:d.id}).then(f=>{g.value=f.data,p.value=!0})},T=async(d,f,v)=>{U.apiDocUpdate({id:d,docStatus:f,yn:v}).then(z=>{c(),E.commit("addDocChangedNum")})},D=async d=>T(d.id,null,0);return P(()=>{c()}),{searchParam:o,docList:l,docListLoading:C,newDocVisible:p,docEdit:g,newDocFormRef:r,searchDocList:c,openNewDoc:N,handleNewDocOk:x,deleteDoc:D,editDoc:m,handleTableChange:L,pagination:S,newDocRules:{name:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u6863\u540D\u79F0",trigger:"change"}],docUrl:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u6863\u5730\u5740",trigger:"change"}],jsonContent:[{required:!0,message:"\u8BF7\u8F93\u5165JSON\u683C\u5F0F\u7684swagger\u6587\u6863\u5185\u5BB9",trigger:"change"}],docType:[{type:"number",required:!0,message:"\u8BF7\u9009\u62E9\u6587\u6863\u7C7B\u578B",trigger:"change"}],openVisit:[{type:"number",required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u5F00\u653E\u8BBF\u95EE",trigger:"change"}],docStatus:[{type:"number",required:!0,message:"\u8BF7\u9009\u62E9\u6587\u6863\u72B6\u6001",trigger:"change"}]},docListColumns:[{title:"ID",dataIndex:"id",width:70},{title:"\u6587\u6863\u540D\u79F0",dataIndex:"name",width:250},{title:"\u6587\u6863\u7C7B\u578B",dataIndex:"docType",width:120},{title:"\u72B6\u6001",dataIndex:"docStatus",width:90},{title:"\u6587\u6863\u5730\u5740",dataIndex:"docUrl"},{title:"\u76EE\u6807\u57DF\u540D",dataIndex:"rewriteDomain",width:250},{title:"\u64CD\u4F5C",dataIndex:"operation",fixed:"right",width:170}],swaggerDocDemo:`{
|
||||
import{z as U}from"./custom.914a01ae.js";import{u as A,y as w,G as P,r as u,T as J,o as s,b,a as t,w as e,F as k,k as h,c as _,H as I,e as i,t as V,m as a}from"./vendor.d3f949c4.js";import{_ as B}from"./main.a111e8f9.js";const F={setup(){const E=A();let l=w([]),C=w(!1),o=w({docType:"",openVisit:"",docStatus:"",pageNum:1,pageSize:20}),S=w({pageSize:20,pageNum:1,total:0,showSizeChanger:!0,pageSizeOptions:["20","50","100"],showTotal:d=>`\u5171${d}\u6761`});const L=(d,f,v)=>{S.value.pageNum=d.current,S.value.pageSize=d.pageSize,o.value.pageNum=d.current,o.value.pageSize=d.pageSize,c()},c=async()=>{C.value=!0,U.apiDocList(o.value).then(d=>{setTimeout(()=>C.value=!1,500),l.value=d.data||[],S.value.total=d.total||0})};let g=w({}),r=w(),p=w(!1);const x=async()=>{r.value.validate().then(()=>{U.apiDocAdd(g.value).then(d=>{c(),p.value=!1,E.commit("addDocChangedNum")})}).catch(d=>{console.log("error",d)})},N=async()=>{p.value=!0,g.value={docType:1,openVisit:0,docStatus:1,isNew:1}},m=d=>{U.apiDocDetail({id:d.id}).then(f=>{g.value=f.data,p.value=!0})},T=async(d,f,v)=>{U.apiDocUpdate({id:d,docStatus:f,yn:v}).then(z=>{c(),E.commit("addDocChangedNum")})},D=async d=>T(d.id,null,0);return P(()=>{c()}),{searchParam:o,docList:l,docListLoading:C,newDocVisible:p,docEdit:g,newDocFormRef:r,searchDocList:c,openNewDoc:N,handleNewDocOk:x,deleteDoc:D,editDoc:m,handleTableChange:L,pagination:S,newDocRules:{name:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u6863\u540D\u79F0",trigger:"change"}],docUrl:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u6863\u5730\u5740",trigger:"change"}],jsonContent:[{required:!0,message:"\u8BF7\u8F93\u5165JSON\u683C\u5F0F\u7684swagger\u6587\u6863\u5185\u5BB9",trigger:"change"}],docType:[{type:"number",required:!0,message:"\u8BF7\u9009\u62E9\u6587\u6863\u7C7B\u578B",trigger:"change"}],openVisit:[{type:"number",required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u5F00\u653E\u8BBF\u95EE",trigger:"change"}],docStatus:[{type:"number",required:!0,message:"\u8BF7\u9009\u62E9\u6587\u6863\u72B6\u6001",trigger:"change"}]},docListColumns:[{title:"ID",dataIndex:"id",width:70},{title:"\u6587\u6863\u540D\u79F0",dataIndex:"name",width:250},{title:"\u6587\u6863\u7C7B\u578B",dataIndex:"docType",width:120},{title:"\u72B6\u6001",dataIndex:"docStatus",width:90},{title:"\u6587\u6863\u5730\u5740",dataIndex:"docUrl"},{title:"\u76EE\u6807\u57DF\u540D",dataIndex:"rewriteDomain",width:250},{title:"\u64CD\u4F5C",dataIndex:"operation",fixed:"right",width:170}],swaggerDocDemo:`{
|
||||
"swagger": "2.0",
|
||||
"info": {},
|
||||
"host": "doc.zyplayer.com",
|
||||
4
zyplayer-doc-api/src/main/resources/dist/assets/DocView.00adc918.js
vendored
Normal file
4
zyplayer-doc-api/src/main/resources/dist/assets/DocView.00adc918.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
var b=Object.defineProperty,D=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var w=(a,t,o)=>t in a?b(a,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[t]=o,C=(a,t)=>{for(var o in t||(t={}))I.call(t,o)&&w(a,o,t[o]);if(V)for(var o of V(t))O.call(t,o)&&w(a,o,t[o]);return a},x=(a,t)=>D(a,T(t));import{z as zyplayerApi,g as getZyplayerApiBaseUrl}from"./custom.914a01ae.js";import{_ as _export_sfc}from"./main.d3c4ff0f.js";import{r as resolveComponent,o as openBlock,c as createBlock,w as withCtx,e as createBaseVNode,t as toDisplayString,a as createVNode,k as createCommentVNode,m as createTextVNode,D as DownOutlined,U as UserOutlined,b as createElementBlock,n as withModifiers,F as Fragment,S as StarOutlined,p as SettingOutlined,C as CarryOutOutlined,q as FileTextOutlined,s as DashboardOutlined,I as InfoCircleOutlined,d as renderList,u as useStore,v as useRoute,x as useRouter,y as ref,B as message,E as watch,G as onMounted,H as withDirectives,J as vShow,L as nextTick,M as BarChartOutlined,N as MenuFoldOutlined,O as MenuUnfoldOutlined,P as pushScopeId,Q as popScopeId}from"./vendor.d3f949c4.js";const _sfc_main$7={data(){return{aboutDialogVisible:!1,upgradeInfo:{}}},mounted(){this.checkSystemUpgrade()},methods:{show(){this.aboutDialogVisible=!0},checkSystemUpgrade(){zyplayerApi.systemUpgradeInfo({}).then(a=>{a.data&&(this.upgradeInfo=a.data,this.upgradeInfo.upgradeContent&&(this.upgradeInfo.upgradeContent=this.upgradeInfo.upgradeContent.replaceAll("\uFF1B",`
|
||||
var b=Object.defineProperty,D=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var w=(a,t,o)=>t in a?b(a,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[t]=o,C=(a,t)=>{for(var o in t||(t={}))I.call(t,o)&&w(a,o,t[o]);if(V)for(var o of V(t))O.call(t,o)&&w(a,o,t[o]);return a},x=(a,t)=>D(a,T(t));import{z as zyplayerApi,g as getZyplayerApiBaseUrl}from"./custom.914a01ae.js";import{_ as _export_sfc}from"./main.a111e8f9.js";import{r as resolveComponent,o as openBlock,c as createBlock,w as withCtx,e as createBaseVNode,t as toDisplayString,a as createVNode,k as createCommentVNode,m as createTextVNode,D as DownOutlined,U as UserOutlined,b as createElementBlock,n as withModifiers,F as Fragment,S as StarOutlined,p as SettingOutlined,C as CarryOutOutlined,q as FileTextOutlined,s as DashboardOutlined,I as InfoCircleOutlined,d as renderList,u as useStore,v as useRoute,x as useRouter,y as ref,B as message,E as watch,G as onMounted,H as withDirectives,J as vShow,L as nextTick,M as BarChartOutlined,N as MenuFoldOutlined,O as MenuUnfoldOutlined,P as pushScopeId,Q as popScopeId}from"./vendor.d3f949c4.js";const _sfc_main$7={data(){return{aboutDialogVisible:!1,upgradeInfo:{}}},mounted(){this.checkSystemUpgrade()},methods:{show(){this.aboutDialogVisible=!0},checkSystemUpgrade(){zyplayerApi.systemUpgradeInfo({}).then(a=>{a.data&&(this.upgradeInfo=a.data,this.upgradeInfo.upgradeContent&&(this.upgradeInfo.upgradeContent=this.upgradeInfo.upgradeContent.replaceAll("\uFF1B",`
|
||||
`),console.log(`zyplayer-doc\u53D1\u73B0\u65B0\u7248\u672C\uFF1A
|
||||
\u5347\u7EA7\u5730\u5740\uFF1A`+a.data.upgradeUrl+`
|
||||
\u5F53\u524D\u7248\u672C\uFF1A`+a.data.nowVersion+`
|
||||
@@ -1 +1 @@
|
||||
var G=Object.defineProperty;var V=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var w=(c,e,l)=>e in c?G(c,e,{enumerable:!0,configurable:!0,writable:!0,value:l}):c[e]=l,I=(c,e)=>{for(var l in e||(e={}))K.call(e,l)&&w(c,l,e[l]);if(V)for(var l of V(e))N.call(e,l)&&w(c,l,e[l]);return c};import{z as D}from"./custom.914a01ae.js";import{u as P,y as x,G as U,r as v,o,b as r,e as A,a as s,w as n,F as f,B as F,c as k,t as B,k as C,m as d}from"./vendor.d3f949c4.js";import{_ as S}from"./main.d3c4ff0f.js";const j={setup(){const c=P();let e=x([]),l=x(!1);const a=async()=>{i.value={},l.value=!0,D.docApiGlobalParamList().then(t=>{setTimeout(()=>l.value=!1,500),e.value=t.data||[],c.commit("setGlobalParam",e.value)})};let i=x({}),T=x();const p=()=>{i.value.isEdit&&y(i.value);let t={isEdit:!0};e.value.unshift(t),i.value=t,setTimeout(()=>{let _=document.getElementsByClassName("ant-table-body")[0];_.scrollTop=0},0)},g=t=>{i.value.isEdit&&y(i.value),t.isEdit=!0,i.value=I({},t)},y=t=>{t.isEdit=!1,t.id?e.value.forEach(_=>_.isEdit=!1):e.value=e.value.filter(_=>_!==t),i.value={}},L=t=>{if(!i.value.paramKey||!i.value.paramValue){F.error("\u53C2\u6570\u540D\u6216\u53C2\u6570\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}D.docApiGlobalParamUpdate(i.value).then(_=>{t.isEdit=!1,a()})},h=async t=>{D.docApiGlobalParamUpdate({id:t.id,yn:0}).then(_=>{a()})};return U(()=>{a()}),{docList:e,docListLoading:l,docEdit:i,tableRef:T,searchDocList:a,deleteDoc:h,editDoc:g,saveEditDoc:L,cancelEditDoc:y,addDocLine:p,docListColumns:[{title:"\u53C2\u6570\u540D\u79F0",dataIndex:"paramKey",width:250},{title:"\u53C2\u6570\u503C",dataIndex:"paramValue"},{title:"\u53C2\u6570\u4F4D\u7F6E",dataIndex:"paramType",width:120},{title:"\u64CD\u4F5C",dataIndex:"operation",fixed:"right",width:170}]}}},z={style:{"margin-bottom":"10px","text-align":"right"}},H=d("\u5237\u65B0"),M=d("\u65B0\u5EFA"),R={key:1},q={key:1},J=d("Form"),O=d("Header"),Q=d("Cookie"),W=d("Form"),X=d("Header"),Y=d("Cookie"),Z=d("\u53D6\u6D88"),$=d("\u4FDD\u5B58"),ee=d("\u7F16\u8F91"),ae=d("\u5220\u9664");function te(c,e,l,a,i,T){const p=v("a-button"),g=v("a-input"),y=v("a-select-option"),L=v("a-select"),h=v("a-tag"),t=v("a-popconfirm"),_=v("a-table");return o(),r(f,null,[A("div",z,[s(p,{onClick:a.searchDocList,type:"primary"},{default:n(()=>[H]),_:1},8,["onClick"]),s(p,{onClick:a.addDocLine},{default:n(()=>[M]),_:1},8,["onClick"])]),s(_,{dataSource:a.docList,columns:a.docListColumns,size:"middle",id:"paramTable",loading:a.docListLoading,pagination:!1,scroll:{x:1e3,y:"calc(100vh - 240px)"}},{bodyCell:n(({column:b,text:E,record:m})=>[b.dataIndex==="paramKey"?(o(),r(f,{key:0},[m.isEdit?(o(),k(g,{key:0,placeholder:"\u8BF7\u8F93\u5165\u53C2\u6570\u540D\u79F0",value:a.docEdit.paramKey,"onUpdate:value":e[0]||(e[0]=u=>a.docEdit.paramKey=u)},null,8,["value"])):(o(),r("span",R,B(E),1))],64)):C("",!0),b.dataIndex==="paramValue"?(o(),r(f,{key:1},[m.isEdit?(o(),k(g,{key:0,rows:1,placeholder:"\u8BF7\u8F93\u5165\u53C2\u6570\u503C",value:a.docEdit.paramValue,"onUpdate:value":e[1]||(e[1]=u=>a.docEdit.paramValue=u)},null,8,["value"])):(o(),r("span",q,B(E),1))],64)):C("",!0),b.dataIndex==="paramType"?(o(),r(f,{key:2},[m.isEdit?(o(),k(L,{key:0,placeholder:"\u53C2\u6570\u4F4D\u7F6E",value:a.docEdit.paramType,"onUpdate:value":e[2]||(e[2]=u=>a.docEdit.paramType=u),style:{width:"110px"}},{default:n(()=>[s(y,{value:1},{default:n(()=>[J]),_:1}),s(y,{value:2},{default:n(()=>[O]),_:1}),s(y,{value:3},{default:n(()=>[Q]),_:1})]),_:1},8,["value"])):(o(),r(f,{key:1},[E===1?(o(),k(h,{key:0,color:"green"},{default:n(()=>[W]),_:1})):E===2?(o(),k(h,{key:1,color:"pink"},{default:n(()=>[X]),_:1})):E===3?(o(),k(h,{key:2,color:"pink"},{default:n(()=>[Y]),_:1})):C("",!0)],64))],64)):C("",!0),b.dataIndex==="operation"?(o(),r(f,{key:3},[m.isEdit?(o(),r(f,{key:0},[s(p,{type:"link",onClick:u=>a.cancelEditDoc(m)},{default:n(()=>[Z]),_:2},1032,["onClick"]),s(p,{type:"link",onClick:u=>a.saveEditDoc(m)},{default:n(()=>[$]),_:2},1032,["onClick"])],64)):(o(),r(f,{key:1},[s(p,{type:"link",onClick:u=>a.editDoc(m)},{default:n(()=>[ee]),_:2},1032,["onClick"]),s(t,{title:"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F",onConfirm:u=>a.deleteDoc(m)},{default:n(()=>[s(p,{type:"link",danger:""},{default:n(()=>[ae]),_:1})]),_:2},1032,["onConfirm"])],64))],64)):C("",!0)]),_:1},8,["dataSource","columns","loading","scroll"])],64)}var de=S(j,[["render",te]]);export{de as default};
|
||||
var G=Object.defineProperty;var V=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var w=(c,e,l)=>e in c?G(c,e,{enumerable:!0,configurable:!0,writable:!0,value:l}):c[e]=l,I=(c,e)=>{for(var l in e||(e={}))K.call(e,l)&&w(c,l,e[l]);if(V)for(var l of V(e))N.call(e,l)&&w(c,l,e[l]);return c};import{z as D}from"./custom.914a01ae.js";import{u as P,y as x,G as U,r as v,o,b as r,e as A,a as s,w as n,F as f,B as F,c as k,t as B,k as C,m as d}from"./vendor.d3f949c4.js";import{_ as S}from"./main.a111e8f9.js";const j={setup(){const c=P();let e=x([]),l=x(!1);const a=async()=>{i.value={},l.value=!0,D.docApiGlobalParamList().then(t=>{setTimeout(()=>l.value=!1,500),e.value=t.data||[],c.commit("setGlobalParam",e.value)})};let i=x({}),T=x();const p=()=>{i.value.isEdit&&y(i.value);let t={isEdit:!0};e.value.unshift(t),i.value=t,setTimeout(()=>{let _=document.getElementsByClassName("ant-table-body")[0];_.scrollTop=0},0)},g=t=>{i.value.isEdit&&y(i.value),t.isEdit=!0,i.value=I({},t)},y=t=>{t.isEdit=!1,t.id?e.value.forEach(_=>_.isEdit=!1):e.value=e.value.filter(_=>_!==t),i.value={}},L=t=>{if(!i.value.paramKey||!i.value.paramValue){F.error("\u53C2\u6570\u540D\u6216\u53C2\u6570\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}D.docApiGlobalParamUpdate(i.value).then(_=>{t.isEdit=!1,a()})},h=async t=>{D.docApiGlobalParamUpdate({id:t.id,yn:0}).then(_=>{a()})};return U(()=>{a()}),{docList:e,docListLoading:l,docEdit:i,tableRef:T,searchDocList:a,deleteDoc:h,editDoc:g,saveEditDoc:L,cancelEditDoc:y,addDocLine:p,docListColumns:[{title:"\u53C2\u6570\u540D\u79F0",dataIndex:"paramKey",width:250},{title:"\u53C2\u6570\u503C",dataIndex:"paramValue"},{title:"\u53C2\u6570\u4F4D\u7F6E",dataIndex:"paramType",width:120},{title:"\u64CD\u4F5C",dataIndex:"operation",fixed:"right",width:170}]}}},z={style:{"margin-bottom":"10px","text-align":"right"}},H=d("\u5237\u65B0"),M=d("\u65B0\u5EFA"),R={key:1},q={key:1},J=d("Form"),O=d("Header"),Q=d("Cookie"),W=d("Form"),X=d("Header"),Y=d("Cookie"),Z=d("\u53D6\u6D88"),$=d("\u4FDD\u5B58"),ee=d("\u7F16\u8F91"),ae=d("\u5220\u9664");function te(c,e,l,a,i,T){const p=v("a-button"),g=v("a-input"),y=v("a-select-option"),L=v("a-select"),h=v("a-tag"),t=v("a-popconfirm"),_=v("a-table");return o(),r(f,null,[A("div",z,[s(p,{onClick:a.searchDocList,type:"primary"},{default:n(()=>[H]),_:1},8,["onClick"]),s(p,{onClick:a.addDocLine},{default:n(()=>[M]),_:1},8,["onClick"])]),s(_,{dataSource:a.docList,columns:a.docListColumns,size:"middle",id:"paramTable",loading:a.docListLoading,pagination:!1,scroll:{x:1e3,y:"calc(100vh - 240px)"}},{bodyCell:n(({column:b,text:E,record:m})=>[b.dataIndex==="paramKey"?(o(),r(f,{key:0},[m.isEdit?(o(),k(g,{key:0,placeholder:"\u8BF7\u8F93\u5165\u53C2\u6570\u540D\u79F0",value:a.docEdit.paramKey,"onUpdate:value":e[0]||(e[0]=u=>a.docEdit.paramKey=u)},null,8,["value"])):(o(),r("span",R,B(E),1))],64)):C("",!0),b.dataIndex==="paramValue"?(o(),r(f,{key:1},[m.isEdit?(o(),k(g,{key:0,rows:1,placeholder:"\u8BF7\u8F93\u5165\u53C2\u6570\u503C",value:a.docEdit.paramValue,"onUpdate:value":e[1]||(e[1]=u=>a.docEdit.paramValue=u)},null,8,["value"])):(o(),r("span",q,B(E),1))],64)):C("",!0),b.dataIndex==="paramType"?(o(),r(f,{key:2},[m.isEdit?(o(),k(L,{key:0,placeholder:"\u53C2\u6570\u4F4D\u7F6E",value:a.docEdit.paramType,"onUpdate:value":e[2]||(e[2]=u=>a.docEdit.paramType=u),style:{width:"110px"}},{default:n(()=>[s(y,{value:1},{default:n(()=>[J]),_:1}),s(y,{value:2},{default:n(()=>[O]),_:1}),s(y,{value:3},{default:n(()=>[Q]),_:1})]),_:1},8,["value"])):(o(),r(f,{key:1},[E===1?(o(),k(h,{key:0,color:"green"},{default:n(()=>[W]),_:1})):E===2?(o(),k(h,{key:1,color:"pink"},{default:n(()=>[X]),_:1})):E===3?(o(),k(h,{key:2,color:"pink"},{default:n(()=>[Y]),_:1})):C("",!0)],64))],64)):C("",!0),b.dataIndex==="operation"?(o(),r(f,{key:3},[m.isEdit?(o(),r(f,{key:0},[s(p,{type:"link",onClick:u=>a.cancelEditDoc(m)},{default:n(()=>[Z]),_:2},1032,["onClick"]),s(p,{type:"link",onClick:u=>a.saveEditDoc(m)},{default:n(()=>[$]),_:2},1032,["onClick"])],64)):(o(),r(f,{key:1},[s(p,{type:"link",onClick:u=>a.editDoc(m)},{default:n(()=>[ee]),_:2},1032,["onClick"]),s(t,{title:"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F",onConfirm:u=>a.deleteDoc(m)},{default:n(()=>[s(p,{type:"link",danger:""},{default:n(()=>[ae]),_:1})]),_:2},1032,["onConfirm"])],64))],64)):C("",!0)]),_:1},8,["dataSource","columns","loading","scroll"])],64)}var de=S(j,[["render",te]]);export{de as default};
|
||||
@@ -1 +1 @@
|
||||
import{_ as e}from"./main.d3c4ff0f.js";import{o as t,b as o}from"./vendor.d3f949c4.js";const n={name:"SettingView",components:{},data(){return{}},computed:{},mounted(){},methods:{}};function r(a,c,s,d,m,f){return t(),o("div",null," \u5C55\u793A\u914D\u7F6E\u9875\u9762 ")}var _=e(n,[["render",r]]);export{_ as default};
|
||||
import{_ as e}from"./main.a111e8f9.js";import{o as t,b as o}from"./vendor.d3f949c4.js";const n={name:"SettingView",components:{},data(){return{}},computed:{},mounted(){},methods:{}};function r(a,s,c,m,d,i){return t(),o("div",null," \u5C55\u793A\u914D\u7F6E\u9875\u9762 ")}var _=e(n,[["render",r]]);export{_ as default};
|
||||
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
import"./index.ea6b273d.js";import{_ as we}from"./main.d3c4ff0f.js";import{X as ke,$ as xe,y as se,r as re,o as J,b as le,e as Fe,a as ie,w as Q,c as ee,k as ce,F as ue,m as ne,t as pe,d as Ee,a0 as Le}from"./vendor.d3f949c4.js";function Re(v,w={}){w.filter=w.filter||(()=>!0);function D(){return a()||t()||i()||e()}function _(){return u(/\s*/),a(!0)||i()||n()||s(!1)}function y(){const b=f(),l=[];let m,c=_();for(;c;){if(c.node.type==="Element"){if(m)throw new Error("Found multiple root nodes");m=c.node}c.excluded||l.push(c.node),c=_()}if(!m)throw new Error("Failed to parse XML");return{declaration:b?b.node:null,root:m,children:l}}function f(){return s(!0)}function s(b){const l=u(b?/^<\?(xml)\s*/:/^<\?([\w-:.]+)\s*/);if(!l)return;const m={name:l[1],type:"ProcessingInstruction",attributes:{}};for(;!(h()||d("?>"));){const c=r();if(!c)return m;m.attributes[c.name]=c.value}return u(/\?>/),{excluded:b?!1:w.filter(m)===!1,node:m}}function a(b){const l=u(/^<([\w-:.]+)\s*/);if(!l)return;const m={type:"Element",name:l[1],attributes:{},children:[]};for(;!(h()||d(">")||d("?>")||d("/>"));){const g=r();if(!g)return m;m.attributes[g.name]=g.value}const c=b?!1:w.filter(m)===!1;if(u(/^\s*\/>/))return m.children=null,{excluded:c,node:m};if(u(/\??>/),!c){let g=D();for(;g;)g.excluded||m.children.push(g.node),g=D()}return u(/^<\/[\w-:.]+>/),{excluded:c,node:m}}function n(){const b=u(/^<!DOCTYPE\s+[^>]*>/);if(b){const l={type:"DocumentType",content:b[0]};return{excluded:w.filter(l)===!1,node:l}}}function e(){if(v.startsWith("<![CDATA[")){const b=v.indexOf("]]>");if(b>-1){const l=b+3,m={type:"CDATA",content:v.substring(0,l)};return v=v.slice(l),{excluded:w.filter(m)===!1,node:m}}}}function i(){const b=u(/^<!--[\s\S]*?-->/);if(b){const l={type:"Comment",content:b[0]};return{excluded:w.filter(l)===!1,node:l}}}function t(){const b=u(/^([^<]+)/);if(b){const l={type:"Text",content:b[1]};return{excluded:w.filter(l)===!1,node:l}}}function r(){const b=u(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(!!b)return{name:b[1],value:o(b[2])}}function o(b){return b.replace(/^['"]|['"]$/g,"")}function u(b){const l=v.match(b);if(!!l)return v=v.slice(l[0].length),l}function h(){return v.length===0}function d(b){return v.indexOf(b)===0}return v=v.trim(),y()}var $e=Re;function de(v){if(!v.options.indentation&&!v.options.lineSeparator)return;v.content+=v.options.lineSeparator;let w;for(w=0;w<v.level;w++)v.content+=v.options.indentation}function oe(v,w){v.content+=w}function _e(v,w,D){if(typeof v.content=="string")De(v,w,D);else if(v.type==="Element")Ne(v,w,D);else if(v.type==="ProcessingInstruction")Ce(v,w);else throw new Error("Unknown node type: "+v.type)}function De(v,w,D){D||(v.content=v.content.trim()),v.content.length>0&&(!D&&w.content.length>0&&de(w),oe(w,v.content))}function Ne(v,w,D){if(!D&&w.content.length>0&&de(w),oe(w,"<"+v.name),Te(w,v.attributes),v.children===null){const _=w.options.whiteSpaceAtEndOfSelfclosingTag?" />":"/>";oe(w,_)}else if(v.children.length===0)oe(w,"></"+v.name+">");else{oe(w,">"),w.level++;let _=v.attributes["xml:space"]==="preserve";if(!_&&w.options.collapseContent){let y=!1,f=!1,s=!1;v.children.forEach(function(a,n){a.type==="Text"?(a.content.includes(`
|
||||
import"./index.ea6b273d.js";import{_ as we}from"./main.a111e8f9.js";import{X as ke,$ as xe,y as se,r as re,o as J,b as le,e as Fe,a as ie,w as Q,c as ee,k as ce,F as ue,m as ne,t as pe,d as Ee,a0 as Le}from"./vendor.d3f949c4.js";function Re(v,w={}){w.filter=w.filter||(()=>!0);function D(){return a()||t()||i()||e()}function _(){return u(/\s*/),a(!0)||i()||n()||s(!1)}function y(){const b=f(),l=[];let m,c=_();for(;c;){if(c.node.type==="Element"){if(m)throw new Error("Found multiple root nodes");m=c.node}c.excluded||l.push(c.node),c=_()}if(!m)throw new Error("Failed to parse XML");return{declaration:b?b.node:null,root:m,children:l}}function f(){return s(!0)}function s(b){const l=u(b?/^<\?(xml)\s*/:/^<\?([\w-:.]+)\s*/);if(!l)return;const m={name:l[1],type:"ProcessingInstruction",attributes:{}};for(;!(h()||d("?>"));){const c=r();if(!c)return m;m.attributes[c.name]=c.value}return u(/\?>/),{excluded:b?!1:w.filter(m)===!1,node:m}}function a(b){const l=u(/^<([\w-:.]+)\s*/);if(!l)return;const m={type:"Element",name:l[1],attributes:{},children:[]};for(;!(h()||d(">")||d("?>")||d("/>"));){const g=r();if(!g)return m;m.attributes[g.name]=g.value}const c=b?!1:w.filter(m)===!1;if(u(/^\s*\/>/))return m.children=null,{excluded:c,node:m};if(u(/\??>/),!c){let g=D();for(;g;)g.excluded||m.children.push(g.node),g=D()}return u(/^<\/[\w-:.]+>/),{excluded:c,node:m}}function n(){const b=u(/^<!DOCTYPE\s+[^>]*>/);if(b){const l={type:"DocumentType",content:b[0]};return{excluded:w.filter(l)===!1,node:l}}}function e(){if(v.startsWith("<![CDATA[")){const b=v.indexOf("]]>");if(b>-1){const l=b+3,m={type:"CDATA",content:v.substring(0,l)};return v=v.slice(l),{excluded:w.filter(m)===!1,node:m}}}}function i(){const b=u(/^<!--[\s\S]*?-->/);if(b){const l={type:"Comment",content:b[0]};return{excluded:w.filter(l)===!1,node:l}}}function t(){const b=u(/^([^<]+)/);if(b){const l={type:"Text",content:b[1]};return{excluded:w.filter(l)===!1,node:l}}}function r(){const b=u(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(!!b)return{name:b[1],value:o(b[2])}}function o(b){return b.replace(/^['"]|['"]$/g,"")}function u(b){const l=v.match(b);if(!!l)return v=v.slice(l[0].length),l}function h(){return v.length===0}function d(b){return v.indexOf(b)===0}return v=v.trim(),y()}var $e=Re;function de(v){if(!v.options.indentation&&!v.options.lineSeparator)return;v.content+=v.options.lineSeparator;let w;for(w=0;w<v.level;w++)v.content+=v.options.indentation}function oe(v,w){v.content+=w}function _e(v,w,D){if(typeof v.content=="string")De(v,w,D);else if(v.type==="Element")Ne(v,w,D);else if(v.type==="ProcessingInstruction")Ce(v,w);else throw new Error("Unknown node type: "+v.type)}function De(v,w,D){D||(v.content=v.content.trim()),v.content.length>0&&(!D&&w.content.length>0&&de(w),oe(w,v.content))}function Ne(v,w,D){if(!D&&w.content.length>0&&de(w),oe(w,"<"+v.name),Te(w,v.attributes),v.children===null){const _=w.options.whiteSpaceAtEndOfSelfclosingTag?" />":"/>";oe(w,_)}else if(v.children.length===0)oe(w,"></"+v.name+">");else{oe(w,">"),w.level++;let _=v.attributes["xml:space"]==="preserve";if(!_&&w.options.collapseContent){let y=!1,f=!1,s=!1;v.children.forEach(function(a,n){a.type==="Text"?(a.content.includes(`
|
||||
`)?(f=!0,a.content=a.content.trim()):(n===0||n===v.children.length-1)&&a.content.trim().length===0&&(a.content=""),a.content.length>0&&(y=!0)):s=!0}),y&&(!s||!f)&&(_=!0)}v.children.forEach(function(y){_e(y,w,D||_,w.options)}),w.level--,!D&&!_&&de(w),oe(w,"</"+v.name+">")}}function Te(v,w){Object.keys(w).forEach(function(D){const _=w[D].replace(/"/g,""");oe(v," "+D+'="'+_+'"')})}function Ce(v,w){w.content.length>0&&de(w),oe(w,"<?"+v.name),Te(w,v.attributes),oe(w,"?>")}function Me(v,w={}){w.indentation="indentation"in w?w.indentation:" ",w.collapseContent=w.collapseContent===!0,w.lineSeparator="lineSeparator"in w?w.lineSeparator:`\r
|
||||
`,w.whiteSpaceAtEndOfSelfclosingTag=!!w.whiteSpaceAtEndOfSelfclosingTag;const _=$e(v,{filter:w.filter}),y={content:"",level:0,options:w};return _.declaration&&Ce(_.declaration,y),_.children.forEach(function(f){_e(f,y,!1)}),y.content.replace(/\r\n/g,`
|
||||
`).replace(/\n/g,w.lineSeparator)}var ot=Me;const Oe={props:{paramList:{type:Array,required:!0},showType:{type:Boolean}},components:{CloseOutlined:ke,UploadOutlined:xe},emits:["update:selected"],setup(v,{attrs:w,slots:D,emit:_,expose:y}){let f=se(v.paramList),s=1e4;(f.value.length<=0||!f.value[f.value.length-1].isLastRow)&&v.paramList.push({name:"",value:void 0,type:"integer",key:++s,isLastRow:!0});let a=se([]);f.value.forEach(g=>{g.value=g.value||g.example||void 0,(g.enum&&g.type==="array"||g.type==="file"||g.subType==="MultipartFile")&&(g.value=[]),a.value.push(g.key)});const n=(g,k)=>{a.value=g},e=g=>{g.isLastRow&&(g.isLastRow=!1,v.paramList.push({name:"",value:void 0,type:"integer",key:++s,isLastRow:!0}),a.value.push(s))},i=g=>{if(!g.isLastRow){let k=v.paramList.findIndex(E=>E===g);v.paramList.splice(k,1)}};let t=se([]);t.value.push({title:"\u53C2\u6570\u540D",dataIndex:"name",width:250}),v.showType,t.value.push({title:"\u53C2\u6570\u503C",dataIndex:"value"}),t.value.push({title:"",dataIndex:"action",width:40});const r=(g,k)=>(k.type!=="array"?k.value=[g]:k.value=[...k.value,g],!1),o=(g,k)=>{k.value=k.value.filter(E=>E!==g)},u=g=>g.type==="file"||g.subType==="file"||g.subType==="MultipartFile";let h=se(!1),d=se("");const b=()=>{h.value=!0,d.value=f.value.filter(g=>g.name||g.value).map(g=>u(g)?(g.name||"")+":":(g.name||"")+":"+(g.value||"")).join(`
|
||||
@@ -5,7 +5,7 @@
|
||||
<link rel="icon" href="logo.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>API文档管理</title>
|
||||
<script type="module" crossorigin src="assets/main.d3c4ff0f.js"></script>
|
||||
<script type="module" crossorigin src="assets/main.a111e8f9.js"></script>
|
||||
<link rel="modulepreload" href="assets/vendor.d3f949c4.js">
|
||||
<link rel="stylesheet" href="assets/style.1ca9b10d.css">
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user