UNPKG

homebridge-config-ui-x

Version:

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

2 lines (1 loc) 1.29 kB
import{a as h}from"./chunk-VYTJCKZA.js";import{f as i}from"./chunk-3APJQTJL.js";import{$c as s,Yc as c,aa as r,dd as m}from"./chunk-LTGI3NYM.js";import{h as p}from"./chunk-B4AJQJMI.js";var l=()=>p(null,null,function*(){let t=r(m),a=r(h),n=r(i),o=r(s),u=r(c);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-V6RBSPQL.js").then(t=>t.StartupScriptComponent),resolve:{startupScript:l}},{path:"restart-container",loadComponent:()=>import("./chunk-RKXNAUCJ.js").then(t=>t.ContainerRestartComponent)}]},{path:"linux",children:[{path:"",redirectTo:"/",pathMatch:"full"},{path:"restart-server",loadComponent:()=>import("./chunk-PT6XGS5Z.js").then(t=>t.RestartLinuxComponent)},{path:"shutdown-server",loadComponent:()=>import("./chunk-L46NFNOR.js").then(t=>t.ShutdownLinuxComponent)}]},{path:"terminal",loadComponent:()=>import("./chunk-LYGR3UAA.js").then(t=>t.TerminalComponent),canDeactivate:[(t,a,n,o)=>t.canDeactivate?t.canDeactivate(o?.url):!0]}];export{M as PLATFORM_TOOLS_ROUTES};