* Load all modules as defined in the config.
()
| 255 | * Load all modules as defined in the config. |
| 256 | */ |
| 257 | async loadModules () { |
| 258 | const moduleData = await getModuleData(); |
| 259 | const envVars = await getEnvVars(); |
| 260 | const customCss = envVars.customCss; |
| 261 | |
| 262 | // Load all modules |
| 263 | for (const module of moduleData) { |
| 264 | await loadModule(module); |
| 265 | } |
| 266 | |
| 267 | // Load custom.css |
| 268 | // Since this happens after loading the modules, |
| 269 | // it overwrites the default styles. |
| 270 | await loadFile(customCss); |
| 271 | |
| 272 | // Start all modules. |
| 273 | await startModules(); |
| 274 | }, |
| 275 | |
| 276 | /** |
| 277 | * Load a file (script or stylesheet). |
nothing calls this directly
no test coverage detected