Ghost/ghost/admin
Matthew Beale e79b07fd31 Unify mobile state in JS, drop resize
In `gh-content-view-container` the visibility of another DOM node was
being used to detect if a given view was mobile or not. This means the
UI needed to have layout forced (and DOM rendered) before the content
view container would render a second time. This is slow interaction with
the DOM (forcing layout) and slow for Ember's renderer (it needs to
render the container once with a default, then again when the value
changes).

Additionally there were two ways resize was being observed. The
`Window.matchMedia` API was used for some styles and the `ember-resize`
addon used to detect other changes. Here I've unified around just the
`Window.matcheMedia` API but abstracted it behind a service.

Sizes are exposed as properties that can be bound to or used directly in
templates.
2015-11-25 11:54:08 -05:00
..
app Unify mobile state in JS, drop resize 2015-11-25 11:54:08 -05:00
config Unify mobile state in JS, drop resize 2015-11-25 11:54:08 -05:00
lib Merge core/built instead of clearing on every build. 2015-08-21 12:17:39 -04:00
public/assets Added multiline "placeholder" to 3rd step of setup 2015-07-01 23:14:27 +02:00
tests Unify mobile state in JS, drop resize 2015-11-25 11:54:08 -05:00
.ember-cli grunt init, dev 2015-03-11 12:37:41 -06:00
.gitignore Convert Sass to Myth 2015-05-22 19:05:09 +01:00
.jshintrc Set up ember-cli-mirage and update existing acceptance tests 2015-11-03 15:35:58 +00:00
.watchmanconfig updates Ember-CLI to 0.2.7 2015-06-08 09:18:50 -04:00
bower.json Specify full SHAs when importing packages in bower.json 2015-11-24 16:39:14 +00:00
ember-cli-build.js Add acceptance test for setup flow happy-path 2015-11-15 11:51:19 +00:00
package.json Unify mobile state in JS, drop resize 2015-11-25 11:54:08 -05:00
testem.json Fix random ember test failures 2015-10-14 11:26:21 +01:00