Ghost/ghost/admin/app/utils
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
..
ajax.js ES6 module version of ic-ajax instead of global 2015-05-26 22:13:25 -05:00
bind.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
bound-one-way.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
caja-sanitizers.js The great migration (EAK -> ember-cli) 2015-03-11 12:37:41 -06:00
ctrl-or-cmd.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
date-formatting.js Allow setting a post date using a single digit day. 2015-05-12 15:42:02 -07:00
document-title.js Routable tags 2015-10-27 12:48:41 +00:00
ed-image-manager.js No more CodeMirror 2015-03-17 14:32:55 +00:00
editor-shortcuts.js No more CodeMirror 2015-03-17 14:32:55 +00:00
ghost-paths.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
isFinite.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
isNumber.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
link-component.js Rework gh-activating-list-item for new link-to 2015-07-08 18:37:15 -05:00
random-password.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
set-scroll-classname.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
text-field.js Ember-cli, Ember, & Ember Data 1.13.x upgrades 2015-10-06 16:09:05 +01:00
titleize.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
validator-extensions.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
window-proxy.js Fix auth regressions after ESA 1.0 upgrade 2015-11-12 12:56:27 +00:00
word-count.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00