mirror of
https://github.com/wmn1525/grasscutterTools.git
synced 2024-11-16 04:45:37 +00:00
2 lines
2.5 KiB
JavaScript
2 lines
2.5 KiB
JavaScript
/* empty css *//* empty css */import{e as k,j as C,i,t as g,x as F,V as A,J as S,B as y,W as V,h as m,o as E,c as B,b as e,a,w as n,N as w,d as o,O as I,P as W,Q as N}from"./index.716e8b89.js";import{_ as j}from"./plugin-vue_export-helper.21dcd24c.js";const h=s=>(I("data-v-5827f059"),s=s(),W(),s),z={key:0,class:"login"},G={class:"title text-slate-900 dark:text-slate-100"},J=o(" \u542F\u7528\u63D2\u4EF6 "),L=o(" GrasscuttersWebDashboard"),M=h(()=>e("div",{class:"title text-slate-900 dark:text-slate-100"}," \u8FDE\u63A5\u5931\u8D25\u5148\u53BB\u76F4\u63A5\u5148https://ip \u8BBF\u95EE\u4E00\u4E0B \u7136\u540E \u9AD8\u7EA7 \u7EE7\u7EED\u8BBF\u95EE ",-1)),T={class:"commuse-item"},q=h(()=>e("div",{class:"text-slate-900 dark:text-slate-100"}," wss: ",-1)),O={class:"title"},P=o(" \u767B\u5F55 "),Q={key:1},R={class:"inf"},U=o(" \u9000\u51FA "),$=k({setup(s){const t=C();var u=i("");function D(){u.value?t.socketConnect(u.value):N.error("\u5730\u5740\u4E0D\u6B63\u786E")}function b(){t.socketClose()}const c=i([{label:"\u7CFB\u7EDF\u8FD0\u884C\u65F6\u957F",value:"14\u5C0F\u65F68\u5206\u949F44\u79D2"},{label:"\u5728\u7EBF\u73A9\u5BB6\u6570\u91CF",value:"0"},{label:"Tick\u8017\u65F6",value:"999"},{label:"\u5185\u5B58\u5360\u7528",value:"66719376/101498880"}]),d=i([{label:"\u670D\u52A1\u5668\u540D\u79F0",value:"ttt"},{label:"\u7CFB\u7EDF",value:"win10"},{label:"\u670D\u52A1\u5668\u5730\u5740",value:"0.0.0.0"},{label:"JAVA\u7248\u672C",value:"17.0"},{label:"\u63D2\u4EF6\u7248\u672C",value:"1.0"}]);return g(()=>{const l=localStorage.getItem("WSS");l&&(u.value=l)}),F(()=>t.tick,()=>{c.value=t.tick},{immediate:!0}),F(()=>t.baseData,()=>{d.value=t.baseData},{immediate:!0}),(l,_)=>{const f=A,x=S,r=y,p=V;return m(t).isLogin?(E(),B("div",Q,[e("div",R,[a(p,{style:{"margin-top":"20px"},data:c.value,size:"large",title:"\u8FD0\u884C\u72B6\u6001",column:1},null,8,["data"]),a(p,{style:{"margin-top":"20px"},data:d.value,size:"large",title:"\u7CFB\u7EDF\u4FE1\u606F ",column:1},null,8,["data"])]),e("div",null,[a(r,{type:"outline",onClick:b},{default:n(()=>[U]),_:1})])])):(E(),B("div",z,[e("div",G,[J,a(f,{href:"https://github.com/liujiaqi7998/GrasscuttersWebDashboard",target:"_blank",icon:""},{default:n(()=>[L]),_:1})]),M,e("div",null,[e("div",T,[q,a(x,{modelValue:m(u),"onUpdate:modelValue":_[0]||(_[0]=v=>w(u)?u.value=v:u=v),clearable:"",placeholder:"\u8BF7\u4ECE\u63A7\u5236\u53F0\u83B7\u53D6"},null,8,["modelValue"])]),e("div",O,[a(r,{type:"outline",onClick:D},{default:n(()=>[P]),_:1})])])]))}}});var Z=j($,[["__scopeId","data-v-5827f059"]]);export{Z as default};
|