Skip to content

Commit cad03bd

Browse files
authored
Upgrade frontend to Angular 20 (#95)
Upgrade to Angular 20 and auto-migrate to block control flow syntax
1 parent 7ef6adc commit cad03bd

14 files changed

Lines changed: 4661 additions & 3320 deletions

cmd/engarde-server/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package main
22

33
import (
4-
"io/ioutil"
54
"net"
65
"os"
76
"strconv"
@@ -79,7 +78,7 @@ func main() {
7978
return
8079
}
8180

82-
yamlFile, err := ioutil.ReadFile(configName)
81+
yamlFile, err := os.ReadFile(configName)
8382
handleErr(err, "Reading config file "+configName+" failed")
8483
err = yaml.Unmarshal(yamlFile, &genconfig)
8584
handleErr(err, "Parsing config file failed")

webmanager/angular.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,5 +114,31 @@
114114
},
115115
"cli": {
116116
"analytics": false
117+
},
118+
"schematics": {
119+
"@schematics/angular:component": {
120+
"type": "component"
121+
},
122+
"@schematics/angular:directive": {
123+
"type": "directive"
124+
},
125+
"@schematics/angular:service": {
126+
"type": "service"
127+
},
128+
"@schematics/angular:guard": {
129+
"typeSeparator": "."
130+
},
131+
"@schematics/angular:interceptor": {
132+
"typeSeparator": "."
133+
},
134+
"@schematics/angular:module": {
135+
"typeSeparator": "."
136+
},
137+
"@schematics/angular:pipe": {
138+
"typeSeparator": "."
139+
},
140+
"@schematics/angular:resolver": {
141+
"typeSeparator": "."
142+
}
117143
}
118144
}

0 commit comments

Comments
 (0)