DEV: Use Ember CLI middleware to decorate the index template (#12292)

* DEV: Use Ember CLI middleware to decorate the index template

Previously we'd do this on the client side which did not support our
full plugin API. Now requests for the index template will contact the
dev server for a bootstrap.json and apply it to the current template.

* FIX: Allows logins in development mode for Ember CLI
This commit is contained in:
Robin Ward
2021-03-09 10:09:35 -05:00
committed by GitHub
parent 687e09c885
commit 7435d55ea6
10 changed files with 304 additions and 131 deletions

View File

@ -61,7 +61,8 @@ class BootstrapController < ApplicationController
html: create_html,
theme_html: create_theme_html,
html_classes: html_classes,
html_lang: html_lang
html_lang: html_lang,
login_path: main_app.login_path
}
bootstrap[:extra_locales] = extra_locales if extra_locales.present?
bootstrap[:csrf_token] = form_authenticity_token if current_user