trenz-gmbh / trenz-docs

An SPA wiki made by TRENZ
MIT License
3 stars 0 forks source link

Move all user configuration to json file #23

Closed ricardoboss closed 1 year ago

ricardoboss commented 2 years ago

Currently, things like the backend API and theme colors are configured through VUE_APP_* environment variables.

This makes the resulting image depend on the values of these variables at build time and impossible to adjust after the image was built (i.e. during runtime).

To make this image more useful, it would be great to be able to configure everything in one file (JSON would be appropriate) and have the app load that file on startup to apply it.

AFAIK, the Vuetify theme needs to be known during build because the stylesheets need to be generated with fixed colors (it is however possible to define :root { --v-theme-primary: r, g, b } at runtime).