UNPKG

homebridge-config-ui-x

Version:

A web based management, configuration and control platform for Homebridge.

2 lines (1 loc) 1.25 kB
import{e as i}from"./chunk-ODMFCOQJ.js";import{C as c,F as s,I as m}from"./chunk-QCMOCU6Q.js";import{aa as r}from"./chunk-ZMC752RO.js";import{h as p}from"./chunk-B4AJQJMI.js";var h=()=>p(null,null,function*(){let t=r(m),o=r(i),a=r(s),e=r(c);try{return yield t.get("/platform-tools/docker/startup-script")}catch(n){console.error(n),a.error(n.message,e.instant("toast.title_error")),o.navigate(["/"]);return}});var R=[{path:"",redirectTo:"/",pathMatch:"full"},{path:"docker",children:[{path:"",redirectTo:"/",pathMatch:"full"},{path:"startup-script",loadComponent:()=>import("./chunk-SRL6U22A.js").then(t=>t.StartupScriptComponent),resolve:{startupScript:h}},{path:"restart-container",loadComponent:()=>import("./chunk-YOU5L7RB.js").then(t=>t.ContainerRestartComponent)}]},{path:"linux",children:[{path:"",redirectTo:"/",pathMatch:"full"},{path:"restart-server",loadComponent:()=>import("./chunk-QETHF4PE.js").then(t=>t.RestartLinuxComponent)},{path:"shutdown-server",loadComponent:()=>import("./chunk-CZ3EUPRW.js").then(t=>t.ShutdownLinuxComponent)}]},{path:"terminal",loadComponent:()=>import("./chunk-E2RITWSO.js").then(t=>t.TerminalComponent),canDeactivate:[(t,o,a,e)=>t.canDeactivate?t.canDeactivate(e?.url):!0]}];export{R as PLATFORM_TOOLS_ROUTES};