## Problem - Continue with dropping the Cockpit dependency ## Solution - Do not use the Cockpit manifest for storing the list of supported languages - Use a separate `languages.json` file instead of the `manifest.json` - Import the JSON file directly into the JS code - The workflow is not changed, the update script just generates a different file - The change is backward compatible, works with both Cockpit and the new server ## Testing - Updated unit tests - Tested manually, the language selection still works fine
27 lines
509 B
JSON
27 lines
509 B
JSON
{
|
|
"compilerOptions": {
|
|
"baseUrl": "./",
|
|
"isolatedModules": true,
|
|
"noEmit": true,
|
|
"target": "esnext",
|
|
"moduleResolution": "node",
|
|
"resolveJsonModule": true,
|
|
"allowJs": true,
|
|
"jsx": "react",
|
|
"allowSyntheticDefaultImports": true,
|
|
"paths": {
|
|
"~/*": [
|
|
"src/*"
|
|
],
|
|
"~/client": [
|
|
"src/client/index.js"
|
|
],
|
|
"@icons/*": [
|
|
"node_modules/@material-symbols/svg-400/outlined/*"
|
|
]
|
|
}
|
|
},
|
|
"include": [
|
|
"src"
|
|
]
|
|
}
|