consul/ui/packages/consul-ui/app
John Cowen 39f15306d9
ui: Change approach to loading debug.css (#12242)
We need a way to load certain CSS based on the environment you are viewing, i.e. we have debug CSS that we use for our Eng Documentation and various other DX utilities that shouldn't be compiled into our production or test builds.

Previously we would compile two entirely different CSS files (app and debug) and the load one or the other depending on which environment you were in.

This approach just empties out the debug.css file in certain environments (prod/test) which means we can just import that file from app. When in staging/development this imports the contents of debug.css (quite a bit of CSS) whereas when building for production/test this debug.css is emptied out during the build process.

There is a slight little hack in order to have this work, we import _debug.scss which imports the debug.scss file. I couldn't for the life of me figure out how to have broccoli empty out a file during the build process, so instead we essentially copy over debug.scss during dev and create an empty file during prod to _debug.scss.

When using make build to build an artifact for production CSS remains at ~58kb (during dev its a lot bigger than this)
2022-02-03 08:40:03 +00:00
..
abilities ui: Remove KV pre-flight auth check (#11968) 2022-01-07 19:26:54 +00:00
adapters ui: [Port] Ensure the tokens default nspace (and partition) is passed thru to the auth endpoint (#11490) 2021-11-11 12:02:29 +00:00
components ui: Alias all our Structure Icons to Flight Icons (#12209) 2022-02-02 13:24:47 +00:00
controllers ui: Move nspace CRUD to use the same approach as partitions (#11633) 2021-12-01 11:04:02 +00:00
decorators
filter/predicates ui: Ensure service instance data does not get re-written on blocking refresh (#11903) 2022-01-07 19:16:21 +00:00
forms ui: Move nspace CRUD to use the same approach as partitions (#11633) 2021-12-01 11:04:02 +00:00
helpers ui: attach-shadow modifier (#12207) 2022-02-01 19:48:57 +00:00
instance-initializers ui: Runtime Injectable Components (#11969) 2022-01-19 10:14:59 +00:00
locations ui: Add selective no-console eslint rule (#11938) 2022-01-05 16:56:26 +00:00
machines ui: Adds initial CRUD for partitions (#11188) 2021-10-08 16:29:30 +01:00
mixins ui: Notifications re-organization/re-style (#11577) 2021-11-24 18:14:07 +00:00
models ui: Ensure service instance data does not get re-written on blocking refresh (#11903) 2022-01-07 19:16:21 +00:00
modifiers ui: attach-shadow modifier (#12207) 2022-02-01 19:48:57 +00:00
routes ui: Allow templateName paths to be relative (#11955) 2022-01-12 09:27:00 +00:00
routing ui: Allow templateName paths to be relative (#11955) 2022-01-12 09:27:00 +00:00
search/predicates ui: Fixup names of Meta for instance search, also add Node (#11774) 2021-12-21 07:00:02 +00:00
serializers ui: Ensure the partition is passed through to the request for the SSO auth URL (#11979) 2022-01-11 11:02:46 +00:00
services ui: Fixup KV folder creation then further creation within that folder (#12081) 2022-01-19 10:09:25 +00:00
sort/comparators ui: Adds initial CRUD for partitions (#11188) 2021-10-08 16:29:30 +01:00
styles ui: Change approach to loading debug.css (#12242) 2022-02-03 08:40:03 +00:00
templates ui: Fixup KV folder creation then further creation within that folder (#12081) 2022-01-19 10:09:25 +00:00
utils ui: Enable theming (#12134) 2022-01-21 12:19:03 +00:00
validations ui: Move nspace CRUD to use the same approach as partitions (#11633) 2021-12-01 11:04:02 +00:00
app.js
env.js
formats.js
index.html
router.js ui: Runtime Injectable Components (#11969) 2022-01-19 10:14:59 +00:00