Refactor frontend build and chart initialization

Moves chart data to JSON file for better separation of concerns
Implements lazy chart initialization in reports module
Updates build script and npm dependencies
Removes hardcoded chart scripts from Razor page
This commit is contained in:
Janus C. H. Knudsen 2026-01-22 16:32:46 +01:00
parent 097fe7f912
commit b921e26e48
12 changed files with 249 additions and 258 deletions

View file

@ -5,7 +5,7 @@
"packages": {
"": {
"dependencies": {
"@sevenweirdpeople/swp-charting": "^0.2.2",
"@sevenweirdpeople/swp-charting": "^0.2.5",
"fuse.js": "^7.1.0"
},
"devDependencies": {
@ -485,9 +485,9 @@
}
},
"node_modules/@sevenweirdpeople/swp-charting": {
"version": "0.2.2",
"resolved": "https://registry.npmjs.org/@sevenweirdpeople/swp-charting/-/swp-charting-0.2.2.tgz",
"integrity": "sha512-q9p7TOSMAq6I0t6jGEWpmjR7l2H8q8G0TnXbIpDutCz5a2JEqMDFe0NGBGcCwze2rvvRnRvCz8P2zGMQlHmphw==",
"version": "0.2.5",
"resolved": "https://registry.npmjs.org/@sevenweirdpeople/swp-charting/-/swp-charting-0.2.5.tgz",
"integrity": "sha512-bQa5FtAXsTjjFxsE79sD1+A74R7f9YgVp5fC1fsiHoaLXmapDEO2dWuGX/MQ8rEChDZFyN1ZlkV+OLUs6qtfZw==",
"license": "MIT"
},
"node_modules/ansi-regex": {