Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
fe8ccd5
clean project commit - version
Aug 5, 2024
e196750
to Angular 9
Aug 5, 2024
cee2d49
angular 9 p2
Aug 5, 2024
b9ad43a
npm forced install
Aug 5, 2024
ae76370
angular 10 p1
Aug 5, 2024
e6dda52
angular 10 p1
Aug 5, 2024
4a1b94f
angular 11
Aug 5, 2024
3290a27
upgrade
Aug 5, 2024
d068435
upgrade material@11
Aug 5, 2024
96cc4cc
ng update @angular/core@12 @angular/cli@12
Aug 5, 2024
0344823
ng update @angular/material@12
Aug 5, 2024
a1b7824
ng update @angular/core@13 @angular/cli@13
Aug 5, 2024
d02c218
ng update @angular/material@13
Aug 5, 2024
f3dbcf9
ng update @angular/core@14 @angular/cli@14
Aug 5, 2024
7c82dfd
ng update @angular/material@14
Aug 5, 2024
631fcfd
typescript
Aug 5, 2024
a7155cd
ng update @angular/core@15 @angular/cli@15
Aug 5, 2024
a77b2c0
ng update @angular/material@15
Aug 5, 2024
024679b
typescript 5
Aug 5, 2024
e57e894
ng update @angular/core@16 @angular/cli@16
Aug 5, 2024
b3a8823
ng update @angular/material@16
Aug 5, 2024
3b4a984
typescript
Aug 5, 2024
3341599
remove old libs
Aug 5, 2024
17409df
typescript
Aug 5, 2024
a4d7844
ng update @angular/core@17 @angular/cli@17
Aug 5, 2024
c393731
fixes for ng 17
Aug 5, 2024
acc2f92
ng update @angular/core@18 @angular/cli@18
Aug 5, 2024
8d388ec
ng update @angular/material@18
Aug 5, 2024
76fef78
fix vulnerabilities
Aug 5, 2024
a5e826c
Merge branch 'master' into feature/update-frontend
ale-rinaldi Oct 22, 2025
758a39d
Move to Node 22
ale-rinaldi Oct 22, 2025
5c024bd
Update path for webmanager
ale-rinaldi Oct 22, 2025
d9adaff
Remove branch name from master releases
ale-rinaldi Oct 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '12.13.0'
node-version: '22.21.0'

- name: Set up Go
uses: actions/setup-go@v4
Expand Down
5 changes: 5 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/engarde.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions build-scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,20 @@ fi
if [ "$GITHUB_REF" != "" ]; then
commit=$(echo "$GITHUB_SHA" | head -c 7);
branch=${GITHUB_REF#refs/heads/};
version="$commit ($branch)"
if [ "$branch" = "master" ]; then
version="$commit"
else
version="$commit ($branch)"
fi
elif [ $(which git) != "" ]; then
commit=$(git rev-parse HEAD | head -c 7);
branch=$(git rev-parse --abbrev-ref HEAD);
version="$commit ($branch) - UNOFFICIAL BUILD"
if [ "$branch" = "master" ]; then
version="$commit"
else
version="$commit ($branch)"
fi
version="$version - UNOFFICIAL BUILD"
else
version="UNOFFICIAL BUILD"
fi
Expand Down
6 changes: 3 additions & 3 deletions cmd/engarde-client/webserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func webInclude(w http.ResponseWriter, r *http.Request) {
return
}
var rsp []byte
if(isExcluded(req.Iface)) {
if isExcluded(req.Iface) {
swapExclusion(req.Iface)
rsp, err = json.Marshal(struct {
Status string `json:"status"`
Expand Down Expand Up @@ -213,7 +213,7 @@ func webExclude(w http.ResponseWriter, r *http.Request) {
return
}
var rsp []byte
if(!isExcluded(req.Iface)) {
if !isExcluded(req.Iface) {
swapExclusion(req.Iface)
rsp, err = json.Marshal(struct {
Status string `json:"status"`
Expand All @@ -235,7 +235,7 @@ func webExclude(w http.ResponseWriter, r *http.Request) {
func webserver(listenAddr, username, password string) {
for {
realm := "engarde"
box := packr.New("webmanager", "../../webmanager/dist/webmanager")
box := packr.New("webmanager", "../../webmanager/dist/webmanager/browser")
http.HandleFunc("/", webBasicAuth(webHandleFileServer(box, "/"), username, password, realm))
http.HandleFunc("/api/v1/get-list", NoCache(webBasicAuth(webGetList, username, password, realm)))
http.HandleFunc("/api/v1/include", NoCache(webBasicAuth(webInclude, username, password, realm)))
Expand Down
2 changes: 1 addition & 1 deletion cmd/engarde-server/webserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func webGetList(w http.ResponseWriter, r *http.Request) {
func webserver(listenAddr, username, password string) {
for {
realm := "engarde"
box := packr.New("webmanager", "../../webmanager/dist/webmanager")
box := packr.New("webmanager", "../../webmanager/dist/webmanager/browser")
http.HandleFunc("/", webBasicAuth(webHandleFileServer(box, "/"), username, password, realm))
http.HandleFunc("/api/v1/get-list", NoCache(webBasicAuth(webGetList, username, password, realm)))
log.Info("Management webserver listening on " + listenAddr)
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
1 change: 1 addition & 0 deletions webmanager/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ speed-measure-plugin.json
.history/*

# misc
/.angular/cache
/.sass-cache
/connect.lock
/coverage
Expand Down
49 changes: 15 additions & 34 deletions webmanager/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@
"schematics": {},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/webmanager",
"outputPath": {
"base": "dist/webmanager"
},
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"polyfills": [
"src/polyfills.ts"
],
"tsConfig": "src/tsconfig.app.json",
"assets": [
"src/favicon.ico",
Expand All @@ -26,7 +29,7 @@
"src/styles.css"
],
"scripts": [],
"es5BrowserSupport": true
"browser": "src/main.ts"
},
"configurations": {
"production": {
Expand All @@ -39,12 +42,9 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
Expand All @@ -58,19 +58,19 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "webmanager:build",
"proxyConfig": "src/proxy.conf.json"
"proxyConfig": "src/proxy.conf.json",
"buildTarget": "webmanager:build"
},
"configurations": {
"production": {
"browserTarget": "webmanager:build:production"
"buildTarget": "webmanager:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "webmanager:build"
"buildTarget": "webmanager:build"
}
},
"test": {
Expand All @@ -89,18 +89,6 @@
"src/assets"
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
Expand All @@ -120,18 +108,11 @@
"devServerTarget": "webmanager:serve:production"
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "e2e/tsconfig.e2e.json",
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"defaultProject": "webmanager"
"cli": {
"analytics": false
}
}
Loading