Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: centrally managed configuration and defaults #26

Open
Tails opened this issue Apr 20, 2022 · 1 comment
Open

Feature Request: centrally managed configuration and defaults #26

Tails opened this issue Apr 20, 2022 · 1 comment

Comments

@Tails
Copy link

Tails commented Apr 20, 2022

When hosting a cascade.page instance, I like to define the configuration in a certain way, for example, with the sidebar disabled and with the "light" theme enabled.

Currently, to do this requires adjusting the defaults of the Vue components or injecting custom code to fill the localStorage with these configuration options.

It would be great if such options could be defined centrally in a JSON file that is either compiled into the instance or loaded over AJAX so that people running their own instance do not have to (pre)compile Nuxt.

Example of configuration options that would be nice to have:

  • hide/show certain buttons in the sidebar
  • set default theme that is statically compiled by Nuxt (to prevent a theme change flash on hydration)
  • set editor pane enabled/disabled
  • enable/disable theme switcher
  • etc
@kochrt
Copy link
Member

kochrt commented Jun 30, 2022

Possibly related to #55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants