Skip to content

Commit 9c651ae

Browse files
jkuritraefiker
authored andcommitted
New web ui
1 parent e09d5cb commit 9c651ae

File tree

105 files changed

+7285
-5485
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+7285
-5485
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
/traefik
77
/traefik.toml
88
/static/
9+
/webui/.tmp/
910
.vscode/
1011
/site/
1112
*.log

api/dashboard.go

+14-4
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,19 @@ type DashboardHandler struct{}
1414
// AddRoutes add dashboard routes on a router
1515
func (g DashboardHandler) AddRoutes(router *mux.Router) {
1616
// Expose dashboard
17-
router.Methods(http.MethodGet).Path("/").HandlerFunc(func(response http.ResponseWriter, request *http.Request) {
18-
http.Redirect(response, request, request.Header.Get("X-Forwarded-Prefix")+"/dashboard/", 302)
19-
})
20-
router.Methods(http.MethodGet).PathPrefix("/dashboard/").
17+
router.Methods(http.MethodGet).
18+
Path("/").
19+
HandlerFunc(func(response http.ResponseWriter, request *http.Request) {
20+
http.Redirect(response, request, request.Header.Get("X-Forwarded-Prefix")+"/dashboard/", 302)
21+
})
22+
23+
router.Methods(http.MethodGet).
24+
Path("/dashboard/status").
25+
HandlerFunc(func(response http.ResponseWriter, request *http.Request) {
26+
http.Redirect(response, request, "/dashboard/", 302)
27+
})
28+
29+
router.Methods(http.MethodGet).
30+
PathPrefix("/dashboard/").
2131
Handler(http.StripPrefix("/dashboard/", http.FileServer(&assetfs.AssetFS{Asset: genstatic.Asset, AssetInfo: genstatic.AssetInfo, AssetDir: genstatic.AssetDir, Prefix: "static"})))
2232
}

webui/.angular-cli.json

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"project": {
4+
"name": "webui"
5+
},
6+
"apps": [
7+
{
8+
"root": "src",
9+
"outDir": "dist",
10+
"assets": [
11+
"assets",
12+
"favicon.ico"
13+
],
14+
"index": "index.html",
15+
"main": "main.ts",
16+
"polyfills": "polyfills.ts",
17+
"test": "test.ts",
18+
"tsconfig": "tsconfig.app.json",
19+
"testTsconfig": "tsconfig.spec.json",
20+
"prefix": "app",
21+
"styles": [
22+
"styles/app.sass"
23+
],
24+
"scripts": [
25+
"../node_modules/@fortawesome/fontawesome/index.js",
26+
"../node_modules/@fortawesome/fontawesome-free-solid/index.js"
27+
],
28+
"environmentSource": "environments/environment.ts",
29+
"environments": {
30+
"dev": "environments/environment.ts",
31+
"prod": "environments/environment.prod.ts"
32+
}
33+
}
34+
],
35+
"e2e": {
36+
"protractor": {
37+
"config": "./protractor.conf.js"
38+
}
39+
},
40+
"lint": [
41+
{
42+
"project": "src/tsconfig.app.json",
43+
"exclude": "**/node_modules/**"
44+
},
45+
{
46+
"project": "src/tsconfig.spec.json",
47+
"exclude": "**/node_modules/**"
48+
},
49+
{
50+
"project": "e2e/tsconfig.e2e.json",
51+
"exclude": "**/node_modules/**"
52+
}
53+
],
54+
"test": {
55+
"karma": {
56+
"config": "./karma.conf.js"
57+
}
58+
},
59+
"defaults": {
60+
"styleExt": "sass",
61+
"component": {}
62+
}
63+
}

webui/.babelrc

-3
This file was deleted.

webui/.editorconfig

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# http://editorconfig.org
1+
# Editor configuration, see http://editorconfig.org
22
root = true
33

44
[*]
5+
charset = utf-8
56
indent_style = space
67
indent_size = 2
7-
end_of_line = lf
8-
charset = utf-8
9-
trim_trailing_whitespace = true
108
insert_final_newline = true
9+
trim_trailing_whitespace = true
1110

1211
[*.md]
12+
max_line_length = off
1313
trim_trailing_whitespace = false

webui/.gitattributes

-1
This file was deleted.

webui/.gitignore

+43-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,44 @@
1-
.tmp/
2-
coverage/
3-
dist/
4-
node_modules/
5-
.sass-cache/
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
62

3+
# compiled output
4+
/dist
5+
/dist-server
6+
/tmp
7+
/out-tsc
8+
9+
# dependencies
10+
/node_modules
11+
12+
# IDEs and editors
13+
/.idea
14+
.project
15+
.classpath
16+
.c9/
17+
*.launch
18+
.settings/
19+
*.sublime-workspace
20+
21+
# IDE - VSCode
22+
.vscode/*
23+
!.vscode/settings.json
24+
!.vscode/tasks.json
25+
!.vscode/launch.json
26+
!.vscode/extensions.json
27+
28+
# misc
29+
/.sass-cache
30+
/connect.lock
31+
/coverage
32+
/libpeerconnection.log
33+
npm-debug.log
34+
yarn-error.log
35+
testem.log
36+
/typings
37+
38+
# e2e
39+
/e2e/*.js
40+
/e2e/*.map
41+
42+
# System Files
43+
.DS_Store
44+
Thumbs.db

webui/.yo-rc.json

-20
This file was deleted.

webui/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ RUN yarn install
1919

2020
COPY . $WEBUI_DIR/
2121

22-
EXPOSE 3000 3001 8080
22+
EXPOSE 8080

webui/conf/browsersync-dist.conf.js

-12
This file was deleted.

webui/conf/browsersync.conf.js

-28
This file was deleted.

webui/conf/gulp.conf.js

-47
This file was deleted.

webui/conf/karma-auto.conf.js

-55
This file was deleted.

webui/conf/karma.conf.js

-55
This file was deleted.

0 commit comments

Comments
 (0)