Skip to content

Use provide/inject for URL configuration

Erik Körner requested to merge feature/provide-inject into develop

Changes deeply embedded import.meta.env.VITE_ environment variable access to vue.inject(key) with keys defined as symbols in src/utils/keys.js. Those can be used to provide values via vue.provide(key, value) to the whole application, e.g. by using import.meta.env.VITE_ variables.

Also adds ability to restrict resources to a subset by providing a list of resource IDs using the FCS_REST_RESOURCE_IDS injection key. Intended to allow usage of this web component on institution webpages with only the institution resources.

https://vuejs.org/guide/components/provide-inject.html#app-level-provide

Merge request reports

Loading