Bootstrap the device 'facilities' and other essential data into the single-page app
See original GitHub issueIn the Coach, User, and Facility plugins, we make substantial changes to the layout and behavior of each plugins’ Single-Page app depending on whether or not the device has 1 or more facilities.
This data (the facilities on the device) need to be available as soon as the app renders, but is (usually) requested asynchronously inside of a beforeEnter
guard in the Vue Router, or perhaps somewhere else in a Vuex action. There is one bug #7222 that appears to be the result of the facilities not being loaded in time.
The ask: we bootstrap the facilities information into the SPA as we do for other crucial information, so it is always guaranteed that this data is available when the page renders.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Bootstrap · The most popular HTML, CSS, and JS library in the ...
Powerful, extensible, and feature-packed frontend toolkit. Build and customize with Sass, utilize prebuilt grid system and components, and bring projects to ...
Read more >What is a Bootstrap and how does it work? - TechTarget
Bootstrap is a free, open source front-end development framework for the creation of websites and web apps. Designed to enable responsive development of...
Read more >Create a Single Page Responsive Website Using Bootstrap
Everyone wants to create the website which is compatible with all the devices like computer, laptops, tablets, and mobiles.
Read more >Bootstrapmincss Pdf ? - www.online.utsa.edu
web/mobile application: fetching data, displaying it, submitting new data. Other ... This practical book gets you started building pages with Bootstrap's ...
Read more >Creating Single Page Apps on Demand - Code On Time
Examples of a single page applications explain how to create a custom data-aware SPA in a project with jQuery Mobile and Bootstrap.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Another thing we might consider is that we could bootstrap it using JS in the
app.js
for any individual plugin using thestateSetters
method of theKolibriApp
class that all of our plugins are extended from.https://github.com/learningequality/kolibri/blob/7f76b3b2caa9b7866b318c7140d3a34704e3962d/kolibri/core/assets/src/kolibri_app.js#L38-L49
Dozens is still not particularly problematic - thousands might be though.