import{y as d,a1 as p,o as m,k as x,n as b,b as t,w as e,l as f,F as g,aq as i,e as a,j as l,ar as h,p as _}from"./index-73815609.js";import{W as y}from"./WaitingForRestart-c1919295.js";import{_ as k}from"./_plugin-vue_export-helper-c27b6911.js";import"./common-382ac853.js";const G={components:{WaitingForRestart:y},data(){return{githubProxies:["https://ghproxy.cn","https://gh.llkk.cc","https://ghproxy.net","https://gitproxy.click","https://github.tbedu.top"],selectedGitHubProxy:""}},methods:{restartAstrBot(){d.post("/api/stat/restart-core").then(()=>{this.$refs.wfr.check()})}},mounted(){this.selectedGitHubProxy=localStorage.getItem("selectedGitHubProxy")||""},watch:{selectedGitHubProxy:function(o,s){o||(o=""),localStorage.setItem("selectedGitHubProxy",o)}}},H={style:{"background-color":"white",padding:"8px","padding-left":"16px","border-radius":"8px","margin-bottom":"16px"}};function V(o,s,P,B,r,n){const u=p("WaitingForRestart");return m(),x(g,null,[b("div",H,[t(f,{lines:"two"},{default:e(()=>[t(i,null,{default:e(()=>[a("网络")]),_:1}),t(l,{subtitle:"设置下载插件或者更新 AstrBot 时所用的 GitHub 加速地址。这在中国大陆的网络环境有效。可以自定义，输入结果实时生效",title:"GitHub 加速地址"},{default:e(()=>[t(h,{variant:"outlined",style:{width:"100%","margin-top":"16px"},modelValue:r.selectedGitHubProxy,"onUpdate:modelValue":s[0]||(s[0]=c=>r.selectedGitHubProxy=c),items:r.githubProxies,label:"选择 GitHub 加速地址"},null,8,["modelValue","items"])]),_:1}),t(i,null,{default:e(()=>[a("系统")]),_:1}),t(l,{subtitle:"重启 AstrBot",title:"重启"},{default:e(()=>[t(_,{style:{"margin-top":"16px"},color:"error",onClick:n.restartAstrBot},{default:e(()=>[a("重启")]),_:1},8,["onClick"])]),_:1})]),_:1})]),t(u,{ref:"wfr"},null,512)],64)}const S=k(G,[["render",V]]);export{S as default};
