2 lines
5.8 KiB
JavaScript
2 lines
5.8 KiB
JavaScript
|
import{F as g,_ as y}from"./index.2ce58885.js";import{w as B,I as b}from"./element-plus.b0ecf6ae.js";import{C as E}from"./vue-echarts.91588d37.js";import{d as f,$ as C,j as A,a4 as k,o as l,c as u,a as t,U as a,L as i,S as o,u as e,R as h,T as v,a7 as x,O as D}from"./@vue.51d7f2d8.js";import"./@vueuse.ec90c285.js";import"./lodash.ffb5376d.js";import"./@amap.8a62addd.js";import"./axios.f9df025a.js";import"./vue-router.9f65afb1.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.4b0c77cb.js";import"./color.992612d2.js";import"./clone.d8d3ae9a.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./@element-plus.c80b8015.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.40d5feba.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.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"},N=t("span",{class:"card-title"},"\u7248\u672C\u4FE1\u606F",-1),S={class:"flex leading-9"},V=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=["href"],R=t("span",{class:"card-title"},"\u4ECA\u65E5\u6570\u636E",-1),U={class:"text-tx-secondary text-xs ml-4"},W={class:"flex flex-wrap"},$={class:"w-1/2 md:w-1/4"},q=t("div",{class:"leading-10"},"\u8BBF\u95EE\u91CF(\u4EBA)",-1),H={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"},"\u9500\u552E\u989D(\u5143)",-1),Q={class:"text-6xl"},X={class:"text-tx-secondary text-xs"},Y={class:"w-1/2 md:w-1/4"},Z=t("div",{class:"leading-10"},"\u8BA2\u5355\u91CF(\u7B14)",-1),tt={class:"text-6xl"},st={class:"text-tx-secondary text-xs"},et={class:"w-1/2 md:w-1/4"},ot=t("div",{class:"leading-10"},"\u65B0\u589E\u7528\u6237",-1),it={class:"text-6xl"},at={class:"text-tx-secondary text-xs"},nt={class:"function mb-4"},dt=t("span",null,"\u5E38\u7528\u529F\u80FD",-1),rt={class:"flex flex-wrap"},lt={class:"mt-2"},ut={class:"md:flex"},ct=t("span",null,"\u8BBF\u95EE\u91CF\u8D8B\u52BF\u56FE",-1),_t=t("span",null,"\u670D\u52A1\u652F\u6301",-1),pt={class:"ml-2"},mt={class:"text-tx-regular text-xs mt-4"},ht=f({name:"workbench"}),Xt=f({...ht,setup(vt){const s=C({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=()=>{g().then(n=>{s.version=n.version,s.today=n.today,s.menu=n.menu,s.visitor=n.visitor,s.support=n.support,s.visitorOption.xAxis.data=[],s.visitorOption.series[0].data=[],n.visitor.date.reverse().forEach(c=>{s.visitorOption.xAxis.data.push(c)}),n.visitor.list[0].data.forEach(c=>{s.visitorOption.series[0].data.push(c)})}).catch(n=>{console.log("err",n)})};return A(()=>{F()}),(n,c)=>{const _=B,r=b,p=y,w=k("router-link");return l(),u("div",O,[t("div",z,[a(r,{class:"!border-none mb-4 lg:mr-4 lg:w-[350px]",shadow:"never"},{header:i(()=>[N]),default:i(()=>[t("div",null,[t("div",S,[V,t("span",null,o(e(s).version.version),1)]),t("div",L,[T,t("span",null,o(e(s).version.based),1)]),t("div",j,[G,t("div",null,[t("a",{href:e(s).version.channel.website,target:"_blank"},[a(_,{type:"success",size:"small"},{default:i(()=>[h("\u5B98\u7F51")]),_:1})],8,I),t("a",{class:"ml-3",href:e(s).version.channel.gitee,target:"_blank"},[a(_,{type:"danger",size:"small"},{default:i(()=>[h("Gitee")]),_:1})],8,M)])])])
|