2024-06-20 18:07:07 +08:00
|
|
|
import{H as f,_ as F}from"./index.f207e39d.js";import{w,I as y}from"./element-plus.61695454.js";import{B as g}from"./vue-echarts.60e3d927.js";import{d as m,a0 as B,i as E,af as b,o as c,c as u,a as t,W as n,O as i,U as o,u as e,T as p,V as A,a7 as k}from"./@vue.c3e77981.js";import"./@vueuse.a48d0173.js";import"./lodash.a2abcd4b.js";import"./axios.a8078129.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.975e80a5.js";import"./color.d986aa86.js";import"./clone.704d8332.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./@element-plus.12c58ce2.js";import"./nprogress.ded7f805.js";import"./vue-clipboard3.987889a8.js";import"./clipboard.af74a91f.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";import"./lodash-es.2b5acb28.js";import"./dayjs.16ed1fda.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./resize-detector.4e96b72b.js";const C={class:"workbench"},D={class:"lg:flex"},O=t("span",{class:"card-title"},"\u7248\u672C\u4FE1\u606F",-1),V={class:"flex leading-9"},z=t("div",{class:"w-20"},"\u5E73\u53F0\u540D\u79F0",-1),N={class:"flex leading-9"},S=t("div",{class:"w-20"},"\u5F53\u524D\u7248\u672C",-1),T={class:"flex leading-9"},W=t("div",{class:"w-20"},"\u83B7\u53D6\u6E20\u9053",-1),G=["href"],H=["href"],I=t("span",{class:"card-title"},"\u4ECA\u65E5\u6570\u636E",-1),L={class:"text-tx-secondary text-xs ml-4"},M={class:"flex flex-wrap"},U={class:"w-1/2 md:w-1/4"},j=t("div",{class:"leading-10"},"\u9500\u552E\u989D",-1),q={class:"text-6xl"},J={class:"text-tx-secondary text-xs"},K={class:"w-1/2 md:w-1/4"},P=t("div",{class:"leading-10"},"\u6210\u4EA4\u8BA2\u5355",-1),Q={class:"text-6xl"},R={class:"text-tx-secondary text-xs"},X={class:"w-1/2 md:w-1/4"},Y=t("div",{class:"leading-10"},"\u65B0\u589E\u7528\u6237",-1),Z={class:"text-6xl"},$={class:"text-tx-secondary text-xs"},tt={class:"w-1/2 md:w-1/4"},st=t("div",{class:"leading-10"},"\u65B0\u589E\u8BBF\u95EE\u91CF",-1),et={class:"text-6xl"},ot={class:"text-tx-secondary text-xs"},it={class:"function mb-4"},at=t("span",null,"\u5E38\u7528\u529F\u80FD",-1),nt={class:"flex flex-wrap"},dt={class:"mt-2"},rt={class:"md:flex"},lt=t("span",null,"\u8BBF\u95EE\u91CF\u8D8B\u52BF\u56FE",-1),ct=m({name:"workbench"}),Kt=m({...ct,setup(ut){const s=B({version:{version:"",website:"",based:"",channel:{gitee:"",website:""}},support:[],today:{},menu:[],visitor:[],article:[],visitorOption:{xAxis:{type:"category",data:[0]},yAxis:{type:"value"},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u8BBF\u95EE\u91CF",data:[0],type:"line",smooth:!0}]}}),h=()=>{f().then(a=>{s.version=a.version,s.today=a.today,s.menu=a.menu,s.visitor=a.visitor,s.support=a.support,s.visitorOption.xAxis.data=[],s.visitorOption.series[0].data=[],a.visitor.date.reverse().forEach(r=>{s.visitorOption.xAxis.data.push(r)}),a.visitor.list[0].data.forEach(r=>{s.visitorOption.series[0].data.push(r)})}).catch(a=>{console.log("err",a)})};return E(()=>{h()}),(a,r)=>{const _=w,l=y,v=F,x=b("router-link");return c(),u("div",C,[t("div",D,[n(l,{class:"!border-none mb-4 lg:mr-4 lg:w-[350px]",shadow:"never"},{header:i(()=>[O]),default:i(()=>[t("div",null,[t("div",V,[z,t("span",null,o(e(s).version.name),1)]),t("div",N,[S,t("span",null,o(e(s).version.version),1)]),t("div",T,[W,t("div",null,[t("a",{href:e(s).version.channel.website,target:"_blank"},[n(_,{type:"success",size:"small"},{default:i(()=>[p("\u5B98\u7F51")]),_:1})],8,G),t("a",{class:"ml-3",href:e(s).version.channel.gitee,target:"_blank"},[n(_,{type:"danger",size:"small"},{default:i(()=>[p("Gitee")]),_:1})],8,H)])])])]),_:1}),n(l,{class:"!border-none mb-4 flex-1",shadow:"never"},{header:i(()=>[t("div",null,[I,t("span",L," \u66F4\u65B0\u65F6
|