Skip to content
Snippets Groups Projects
Commit efd39de3 authored by David Trattnig's avatar David Trattnig
Browse files

feat: base impl for global settings

parent fc1da90c
No related branches found
No related tags found
1 merge request!1Local settings via JSON and initial use of Context API
Pipeline #2671 failed
......@@ -4,3 +4,4 @@
.DS_Store
sync.sh
/config/settings.json
\ No newline at end of file
{
"appVersion": "__APP_VERSION__",
"renderHtml": true,
"api": {
"url": "https://prog-info.o94.at/api.php",
"endpoints": {
"programme": "",
"currentProgramme": ""
}
},
"components": {
"programme": {
}
}
}
\ No newline at end of file
<script context="module">
/* Bundle version automatically replaced during build process */
export const appVersion = 'APP_VERSION'
import * as localJsonConfig from '../../config/settings.json'
/* Global settings */
export let settings = localJsonConfig
/* Fetches data from the passed URL and passes it to the provided callback */
export async function fetchApi(url, callback) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment