2 lines
2.4 KiB
JavaScript
2 lines
2.4 KiB
JavaScript
import{H as p}from"./element-plus.c4a2af8a.js";import{x as m}from"./index.7c5c8d56.js";import"./vue-echarts.be5aceea.js";import{d as e,$ as n,j as c,o as d,c as u,a as r,U as l,L as _,T as v}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.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"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./resize-detector.4e96b72b.js";const h={class:"workbench"},x={class:"lg:flex"},y=r("span",{class:"card-title"},"\u4ECA\u65E5\u6570\u636E",-1),f={class:"text-tx-secondary text-xs ml-4"},E=e({name:"workbench"}),et=e({...E,setup(g){const t=n({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}]}}),s=()=>{m().then(o=>{t.version=o.version,t.today=o.today,t.menu=o.menu,t.visitor=o.visitor,t.support=o.support,t.visitorOption.xAxis.data=[],t.visitorOption.series[0].data=[],o.visitor.date.reverse().forEach(i=>{t.visitorOption.xAxis.data.push(i)}),o.visitor.list[0].data.forEach(i=>{t.visitorOption.series[0].data.push(i)})}).catch(o=>{console.log("err",o)})};return c(()=>{s()}),(o,i)=>{const a=p;return d(),u("div",h,[r("div",x,[l(a,{class:"!border-none mb-4 flex-1",shadow:"never"},{header:_(()=>[r("div",null,[y,r("span",f," \u66F4\u65B0\u65F6\u95F4\uFF1A"+v(t.today.time),1)])]),_:1})])])}}});export{et as default};
|