Add Svelte app boilerplate (#27)

* Add Svelte app boilerplate

* Delete www folder

* Web app setup

* Fix vector images

* README
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2022-12-07 12:43:33 -05:00
1 parent f71c70d90b
commit 9031f51d5d
31 files changed
+3403 -68

No files matched your search

@@ -26,11 +26,16 @@ function WebServerLoop()
homeRouter = new Http.HttpRouter()
homeRouter.Get("/", function(context as object) as boolean
response = context.response
response.Redirect("/index.html?tab=settings", 302)
response.Redirect("/index.v1.html", 302)
return true
end function)
m.server.UseRouter(new Http.CorsMiddleware(`http://${GetLocalIpAddress()}:8888`))
#if DEBUG
allowedOrigin = "*"
#else
allowedOrigin = `http://${GetLocalIpAddress()}:8888`
#end if
m.server.UseRouter(new Http.CorsMiddleware(allowedOrigin))
m.server.UseRouter(homeRouter)
m.server.UseRouter(new Http.DashRouter())
m.server.UseRouter(new Http.CommandsApiRouter())