openmct/platform/commonUI
Pete Richards 1147f3aa47 tutorials: support arbitrary hosting directory (#1097)
* Include all bundles in artifact

change bundle registry such that all bundles are immediately registered,
but must be specifically enabled.  A default registry class enables bundles
that make sense for demonstration purposes.

Added methods to the registry to allow enabling and disabling of bundles
without having to load additional files.

* support alternate asset/worker paths

Change the gulp glob for assets to copy over a more minimal
set of files-- only css, fonts, and images.  Results in a
smaller distributable archive.

Update stylesheet loader to use a constant for the assets path.

This can be customized at run time via MCT.setAssetPath() to
allow MCT to be hosted in various locations.

Update worker loader to support loading workers from blobs to
support packaging as standalone file.

* Load templates via requirejs

* [gulp] lazy-require where reasonable

Require things right before starting tasks to reduce gulp start up time.

* document setAssetPath
2016-07-25 14:38:44 -07:00
..
about [Code Style] Run gulp fixstyle 2016-05-19 11:29:13 -07:00
browse tutorials: support arbitrary hosting directory (#1097) 2016-07-25 14:38:44 -07:00
dialog [Code Style] Run gulp fixstyle 2016-05-19 11:29:13 -07:00
edit [Frontend] New message for unsaved changes warning 2016-05-26 09:04:40 -07:00
formats [Code Style] Run gulp fixstyle 2016-05-19 11:29:13 -07:00
general tutorials: support arbitrary hosting directory (#1097) 2016-07-25 14:38:44 -07:00
inspect [Mobile] Remove usage of element.scope() 2016-05-20 16:13:51 -07:00
mobile [Code Style] Rename shadowing variables 2016-05-20 13:05:32 -07:00
notification [Code Style] Run gulp fixstyle 2016-05-19 11:29:13 -07:00
regions [Code Style] Run fixstyle on merged changes 2016-05-20 13:09:16 -07:00
themes Merge remote-tracking branch 'origin/open889' into open922 2016-05-25 09:55:09 -07:00
README.md [Stylesheets] Add documentation 2015-01-14 17:07:16 -08:00

This directory contains bundles containing common user interface elements of Open MCT Web; that is, the user interface for the application as a whole (as opposed to for specific features) is implemented here.

Extensions

This bundles adds a stylesheets extension category used to inject CSS from bundles. These extensions are declaration-only (no scripted implementation is needed or used); a single property, stylesheetUrl, should be provided, with a path to the relevant CSS file (including extension) relative to the resources directory for that bundle.

Links to these CSS files are appended to the head when the application is started. These are added in standard priority order (see documentation for the framework layer); the order of inclusion of style sheets can change the way they are handled/understood by the browser, so priority can be used to provide control over this order.