From 41ce5a3b3219f8f87c2e397b5dd0a1fe3d3c1e48 Mon Sep 17 00:00:00 2001 From: Anders Roos Date: Fri, 11 Nov 2022 11:56:01 +0100 Subject: [PATCH] Move static web assets to /web dir --- pkg/dashboard/dashboard.go | 2 +- {pkg/dashboard => web}/static/api.js | 0 {pkg/dashboard => web}/static/app.css | 0 {pkg/dashboard => web}/static/app.jsx | 0 {pkg/dashboard => web}/static/index.html | 0 .../static/lib/babel-standalone@6.26.0/babel.min.js | 0 .../lib/bootstrap-icons@1.9.1/bootstrap-icons.css | 0 .../fonts/bootstrap-icons.woff | Bin .../fonts/bootstrap-icons.woff2 | Bin .../static/lib/bootstrap@5.2.2/bootstrap.min.css | 0 .../react-dom@18.2.0/react-dom.production.min.js | 0 .../static/lib/react@18.2.0/react.production.min.js | 0 {pkg/dashboard => web}/static/logo-450px.png | Bin 13 files changed, 1 insertion(+), 1 deletion(-) rename {pkg/dashboard => web}/static/api.js (100%) rename {pkg/dashboard => web}/static/app.css (100%) rename {pkg/dashboard => web}/static/app.jsx (100%) rename {pkg/dashboard => web}/static/index.html (100%) rename {pkg/dashboard => web}/static/lib/babel-standalone@6.26.0/babel.min.js (100%) rename {pkg/dashboard => web}/static/lib/bootstrap-icons@1.9.1/bootstrap-icons.css (100%) rename {pkg/dashboard => web}/static/lib/bootstrap-icons@1.9.1/fonts/bootstrap-icons.woff (100%) rename {pkg/dashboard => web}/static/lib/bootstrap-icons@1.9.1/fonts/bootstrap-icons.woff2 (100%) rename {pkg/dashboard => web}/static/lib/bootstrap@5.2.2/bootstrap.min.css (100%) rename {pkg/dashboard => web}/static/lib/react-dom@18.2.0/react-dom.production.min.js (100%) rename {pkg/dashboard => web}/static/lib/react@18.2.0/react.production.min.js (100%) rename {pkg/dashboard => web}/static/logo-450px.png (100%) diff --git a/pkg/dashboard/dashboard.go b/pkg/dashboard/dashboard.go index 62f5f2c..72f06b2 100644 --- a/pkg/dashboard/dashboard.go +++ b/pkg/dashboard/dashboard.go @@ -32,5 +32,5 @@ func runHTTPServer() { } func getHandler() http.Handler { - return http.FileServer(http.Dir("./pkg/dashboard/static")) + return http.FileServer(http.Dir("./web/static")) } diff --git a/pkg/dashboard/static/api.js b/web/static/api.js similarity index 100% rename from pkg/dashboard/static/api.js rename to web/static/api.js diff --git a/pkg/dashboard/static/app.css b/web/static/app.css similarity index 100% rename from pkg/dashboard/static/app.css rename to web/static/app.css diff --git a/pkg/dashboard/static/app.jsx b/web/static/app.jsx similarity index 100% rename from pkg/dashboard/static/app.jsx rename to web/static/app.jsx diff --git a/pkg/dashboard/static/index.html b/web/static/index.html similarity index 100% rename from pkg/dashboard/static/index.html rename to web/static/index.html diff --git a/pkg/dashboard/static/lib/babel-standalone@6.26.0/babel.min.js b/web/static/lib/babel-standalone@6.26.0/babel.min.js similarity index 100% rename from pkg/dashboard/static/lib/babel-standalone@6.26.0/babel.min.js rename to web/static/lib/babel-standalone@6.26.0/babel.min.js diff --git a/pkg/dashboard/static/lib/bootstrap-icons@1.9.1/bootstrap-icons.css b/web/static/lib/bootstrap-icons@1.9.1/bootstrap-icons.css similarity index 100% rename from pkg/dashboard/static/lib/bootstrap-icons@1.9.1/bootstrap-icons.css rename to web/static/lib/bootstrap-icons@1.9.1/bootstrap-icons.css diff --git a/pkg/dashboard/static/lib/bootstrap-icons@1.9.1/fonts/bootstrap-icons.woff b/web/static/lib/bootstrap-icons@1.9.1/fonts/bootstrap-icons.woff similarity index 100% rename from pkg/dashboard/static/lib/bootstrap-icons@1.9.1/fonts/bootstrap-icons.woff rename to web/static/lib/bootstrap-icons@1.9.1/fonts/bootstrap-icons.woff diff --git a/pkg/dashboard/static/lib/bootstrap-icons@1.9.1/fonts/bootstrap-icons.woff2 b/web/static/lib/bootstrap-icons@1.9.1/fonts/bootstrap-icons.woff2 similarity index 100% rename from pkg/dashboard/static/lib/bootstrap-icons@1.9.1/fonts/bootstrap-icons.woff2 rename to web/static/lib/bootstrap-icons@1.9.1/fonts/bootstrap-icons.woff2 diff --git a/pkg/dashboard/static/lib/bootstrap@5.2.2/bootstrap.min.css b/web/static/lib/bootstrap@5.2.2/bootstrap.min.css similarity index 100% rename from pkg/dashboard/static/lib/bootstrap@5.2.2/bootstrap.min.css rename to web/static/lib/bootstrap@5.2.2/bootstrap.min.css diff --git a/pkg/dashboard/static/lib/react-dom@18.2.0/react-dom.production.min.js b/web/static/lib/react-dom@18.2.0/react-dom.production.min.js similarity index 100% rename from pkg/dashboard/static/lib/react-dom@18.2.0/react-dom.production.min.js rename to web/static/lib/react-dom@18.2.0/react-dom.production.min.js diff --git a/pkg/dashboard/static/lib/react@18.2.0/react.production.min.js b/web/static/lib/react@18.2.0/react.production.min.js similarity index 100% rename from pkg/dashboard/static/lib/react@18.2.0/react.production.min.js rename to web/static/lib/react@18.2.0/react.production.min.js diff --git a/pkg/dashboard/static/logo-450px.png b/web/static/logo-450px.png similarity index 100% rename from pkg/dashboard/static/logo-450px.png rename to web/static/logo-450px.png