2 lines
5.8 KiB
JavaScript
2 lines
5.8 KiB
JavaScript
|
import{w,_ as g}from"./index.f7b40131.js";import{w as y,I as B}from"./element-plus.ceab5937.js";import{C as b}from"./vue-echarts.5be4544b.js";import{d as v,$ as E,j as C,a4 as A,o as r,c as l,a as t,U as i,L as o,T as e,V as m,a7 as h,u as k,S as x,P as D}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./lodash.97edab7a.js";import"./axios.570399d0.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.9204d96d.js";import"./color.60e780a4.js";import"./clone.a887b4ac.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.68b2a7d2.js";import"./ms.a9ae1d6d.js";import"./@element-plus.196c7323.js";import"./nprogress.acb2d2d4.js";import"./vue-clipboard3.bf9940ba.js";import"./clipboard.7d8bd768.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./lodash-es.29c53eac.js";import"./dayjs.4f22cb48.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./resize-detector.4e96b72b.js";const O={class:"workbench"},z={class:"lg:flex"},V=t("span",{class:"card-title"},"\u7248\u672C\u4FE1\u606F",-1),N={class:"flex leading-9"},S=t("div",{class:"w-20"},"\u5F53\u524D\u7248\u672C",-1),L={class:"flex leading-9"},T=t("div",{class:"w-20"},"\u57FA\u4E8E\u6846\u67B6",-1),j={class:"flex leading-9"},G=t("div",{class:"w-20"},"\u83B7\u53D6\u6E20\u9053",-1),I=["href"],M=x("\u5B98\u7F51"),P=["href"],U=x("Gitee"),W=t("span",{class:"card-title"},"\u4ECA\u65E5\u6570\u636E",-1),$={class:"text-tx-secondary text-xs ml-4"},q={class:"flex flex-wrap"},H={class:"w-1/2 md:w-1/4"},J=t("div",{class:"leading-10"},"\u8BBF\u95EE\u91CF(\u4EBA)",-1),K={class:"text-6xl"},Q={class:"text-tx-secondary text-xs"},R={class:"w-1/2 md:w-1/4"},X=t("div",{class:"leading-10"},"\u9500\u552E\u989D(\u5143)",-1),Y={class:"text-6xl"},Z={class:"text-tx-secondary text-xs"},tt={class:"w-1/2 md:w-1/4"},st=t("div",{class:"leading-10"},"\u8BA2\u5355\u91CF(\u7B14)",-1),et={class:"text-6xl"},ot={class:"text-tx-secondary text-xs"},it={class:"w-1/2 md:w-1/4"},at=t("div",{class:"leading-10"},"\u65B0\u589E\u7528\u6237",-1),nt={class:"text-6xl"},dt={class:"text-tx-secondary text-xs"},rt={class:"function mb-4"},lt=t("span",null,"\u5E38\u7528\u529F\u80FD",-1),ct={class:"flex flex-wrap"},ut={class:"mt-2"},_t={class:"md:flex"},pt=t("span",null,"\u8BBF\u95EE\u91CF\u8D8B\u52BF\u56FE",-1),mt=t("span",null,"\u670D\u52A1\u652F\u6301",-1),ht={class:"ml-2"},vt={class:"text-tx-regular text-xs mt-4"},xt=v({name:"workbench"}),ss=v({...xt,setup(ft){const s=E({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}]}}),f=()=>{w().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(c=>{s.visitorOption.xAxis.data.push(c)}),a.visitor.list[0].data.forEach(c=>{s.visitorOption.series[0].data.push(c)})}).catch(a=>{console.log("err",a)})};return C(()=>{f()}),(a,c)=>{const u=y,d=B,_=g,F=A("router-link");return r(),l("div",O,[t("div",z,[i(d,{class:"!border-none mb-4 lg:mr-4 lg:w-[350px]",shadow:"never"},{header:o(()=>[V]),default:o(()=>[t("div",null,[t("div",N,[S,t("span",null,e(s.version.version),1)]),t("div",L,[T,t("span",null,e(s.version.based),1)]),t("div",j,[G,t("div",null,[t("a",{href:s.version.channel.website,target:"_blank"},[i(u,{type:"success",size:"small"},{default:o(()=>[M]),_:1})],8,I),t("a",{class:"ml-3",href:s.version.channel.gitee,target:"_blank"},[i(u,{type:"dang
|