0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/client/tests
Matthew Beale 402b27c7e9 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
..
acceptance Add acceptance test for setup flow happy-path 2015-11-15 11:51:19 +00:00
helpers upgrade ember-cli to 1.13.0 and ember-cli-mocha to 0.9.3 2015-09-21 14:55:59 +01:00
integration/components Unify mobile state in JS, drop resize 2015-11-25 11:54:08 -05:00
unit implement custom user adapter to pull users by slug 2015-11-23 07:48:08 -06:00
.jshintrc Set up ember-cli-mirage and update existing acceptance tests 2015-11-03 15:35:58 +00:00
index.html Fix ember browser tests to always use full height of preview container 2015-11-04 15:43:05 +00:00
test-helper.js Increase timeout in ember tests 2015-10-20 16:00:16 +01:00