homebridge-config-ui-x
Version:
A web based management, configuration and control platform for Homebridge.
1 lines • 1.29 kB
JavaScript
import{a as E}from"./chunk-D39XL-zh.js";import{Un as g,Vt as U3,dt as Nf,ui as z0}from"./chunk-D96TCRAL.js";import{l as le}from"./chunk-DZYp0NQB.js";import{t as m}from"./main-E3N63CH7.js";var l=()=>E(null,null,function*(){let t=g(U3),a=g(m),n=g(le),o=g(z0),u=g(Nf);try{return yield t.get(`/platform-tools/docker/startup-script`)}catch(e){throw console.error(e),o.error(a.toToastMessage(e),u.instant(`toast.title_error`)),yield n.navigate([`/`]),e}});var M=[{path:``,redirectTo:`/`,pathMatch:`full`},{path:`docker`,children:[{path:``,redirectTo:`/`,pathMatch:`full`},{path:`startup-script`,loadComponent:()=>import(`./chunk--Ev2TLa0.js`).then(t=>t.StartupScriptComponent),resolve:{startupScript:l}},{path:`restart-container`,loadComponent:()=>import(`./chunk-QpIp2LRR.js`).then(t=>t.ContainerRestartComponent)}]},{path:`linux`,children:[{path:``,redirectTo:`/`,pathMatch:`full`},{path:`restart-server`,loadComponent:()=>import(`./chunk-CguukJAf.js`).then(t=>t.RestartLinuxComponent)},{path:`shutdown-server`,loadComponent:()=>import(`./chunk-DeVKHr3Z.js`).then(t=>t.ShutdownLinuxComponent)}]},{path:`terminal`,loadComponent:()=>import(`./chunk-B1QFpS7Z.js`).then(t=>t.TerminalComponent),canDeactivate:[(t,a,n,o)=>t.canDeactivate?t.canDeactivate(o?.url):!0]}];export{M as PLATFORM_TOOLS_ROUTES};