diff --git a/pkg/mining/service.go b/pkg/mining/service.go index c7ec1c7..9690ef6 100644 --- a/pkg/mining/service.go +++ b/pkg/mining/service.go @@ -110,7 +110,7 @@ func (s *Service) setupRoutes() { // New route to serve the custom HTML element bundle // This path now points to the output of the Angular project within the 'ui' directory - s.Router.StaticFile("/component/mining-dashboard.js", "./ui/dist/ui/main.js") + s.Router.StaticFile("/component/mining-dashboard.js", "./ui/dist/ui/mbe-mining-dashboard.js") // Register Swagger UI route under a distinct sub-path to avoid conflicts swaggerURL := ginSwagger.URL(fmt.Sprintf("http://%s%s/doc.json", s.DisplayAddr, s.SwaggerUIPath)) diff --git a/server.log b/server.log new file mode 100644 index 0000000..2855339 --- /dev/null +++ b/server.log @@ -0,0 +1,15 @@ +Tidying dependencies... +go mod tidy +go: downloading github.com/inconshreveable/mousetrap v1.1.0 +go: downloading github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 +go: downloading github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 +go: downloading github.com/tklauser/go-sysconf v0.3.15 +go: downloading github.com/stretchr/testify v1.11.1 +go: downloading github.com/gin-contrib/gzip v0.0.6 +go: downloading github.com/google/go-cmp v0.7.0 +go: downloading github.com/ebitengine/purego v0.9.0 +go: downloading github.com/yusufpapurcu/wmi v1.2.4 +go: downloading github.com/json-iterator/go v1.1.12 +go: downloading github.com/modern-go/reflect2 v1.0.2 +go: downloading github.com/bytedance/sonic v1.14.0 +go: downloading github.com/goccy/go-json v0.10.5 diff --git a/server2.log b/server2.log new file mode 100644 index 0000000..1370250 --- /dev/null +++ b/server2.log @@ -0,0 +1,6 @@ +Tidying dependencies... +go mod tidy +Generating Swagger documentation... +swag init -g ./cmd/mining/main.go +make: swag: No such file or directory +make: *** [Makefile:93: docs] Error 127 diff --git a/server3.log b/server3.log new file mode 100644 index 0000000..1370250 --- /dev/null +++ b/server3.log @@ -0,0 +1,6 @@ +Tidying dependencies... +go mod tidy +Generating Swagger documentation... +swag init -g ./cmd/mining/main.go +make: swag: No such file or directory +make: *** [Makefile:93: docs] Error 127 diff --git a/server4.log b/server4.log new file mode 100644 index 0000000..e69de29 diff --git a/server5.log b/server5.log new file mode 100644 index 0000000..e69de29 diff --git a/server6.log b/server6.log new file mode 100644 index 0000000..e69de29 diff --git a/ui/package.json b/ui/package.json index a6e3bd8..2bdcd47 100644 --- a/ui/package.json +++ b/ui/package.json @@ -4,7 +4,7 @@ "scripts": { "ng": "ng", "start": "ng serve", - "build": "ng build --output-path=dist && cat dist/{runtime,polyfills,main}.js > dist/mbe-mining-dashboard.js", + "build": "ng build --output-path=dist/ui && cat dist/ui/runtime.js dist/ui/polyfills.js dist/ui/main.js > dist/ui/mbe-mining-dashboard.js", "watch": "ng build --watch --configuration development", "test": "ng test" },