homebridge-config-ui-x
Version:
A web based management, configuration and control platform for Homebridge.
1 lines • 1.19 kB
JavaScript
import {E,g,X as I3,Z as m,l as le,a1 as M0,a2 as bf}from'./main-ONDCASUV.js';var l=()=>E(null,null,function*(){let t=g(I3),a=g(m),n=g(le),o=g(M0),u=g(bf);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-Cs4L3uLu.js').then(t=>t.StartupScriptComponent),resolve:{startupScript:l}},{path:"restart-container",loadComponent:()=>import('./chunk-CgJ78OcI.js').then(t=>t.ContainerRestartComponent)}]},{path:"linux",children:[{path:"",redirectTo:"/",pathMatch:"full"},{path:"restart-server",loadComponent:()=>import('./chunk-Cc85VwMQ.js').then(t=>t.RestartLinuxComponent)},{path:"shutdown-server",loadComponent:()=>import('./chunk-inVkdKDe.js').then(t=>t.ShutdownLinuxComponent)}]},{path:"terminal",loadComponent:()=>import('./chunk-C6jxVE1g.js').then(t=>t.TerminalComponent),canDeactivate:[(t,a,n,o)=>t.canDeactivate?t.canDeactivate(o?.url):true]}];export{M as PLATFORM_TOOLS_ROUTES};