import{l as d,a7 as m,m as p,q as x,b as t,w as e,n as b,F as f,o as g,aO as i,e as a,j as l,aP as _,v as h}from"./index-2a609043.js";import{W as y}from"./WaitingForRestart-83845c25.js";import{_ as G}from"./_plugin-vue_export-helper-c27b6911.js";import"./common-5c9746e4.js";const H={components:{WaitingForRestart:y},data(){return{githubProxies:["https://gh.llkk.cc","https://gitproxy.click"],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)}}},P={style:{"background-color":"white",padding:"8px","padding-left":"16px","border-radius":"8px","margin-bottom":"16px"}};function V(o,s,k,B,r,n){const u=m("WaitingForRestart");return g(),p(f,null,[x("div",P,[t(b,{lines:"two"},{default:e(()=>[t(i,null,{default:e(()=>[a("网络")]),_:1}),t(l,{subtitle:"设置下载插件或者更新 AstrBot 时所用的 GitHub 加速地址。这在中国大陆的网络环境有效。可以自定义，输入结果实时生效。所有地址均不保证稳定性，如果在更新插件/项目时出现报错，请首先检查加速地址是否能正常使用。",title:"GitHub 加速地址"},{default:e(()=>[t(_,{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(h,{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 A=G(H,[["render",V]]);export{A as default};
