0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/client/app/templates
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
..
components Merge pull request #6017 from kevinansfield/finalize-debounced-gravatar 2015-11-02 18:14:53 +00:00
editor Fix auth regressions after ESA 1.0 upgrade 2015-11-12 12:56:27 +00:00
modals Update client for tag.post_count -> tag.count.posts rename 2015-11-23 19:57:56 +00:00
posts Add titles to key icons 2015-10-12 09:04:16 +01:00
settings Unify mobile state in JS, drop resize 2015-11-25 11:54:08 -05:00
setup Adds debounced email validation and gravatar loading on second setup/signup screen 2015-10-28 09:40:40 +00:00
team Properly use htmlSafe styles 2015-11-20 17:48:48 -05:00
-import-errors.hbs
-user-list-item.hbs Fix team/index screen 2015-07-14 18:21:08 +02:00
about.hbs Add Menu to About Ghost Page 2015-08-24 18:27:33 -07:00
application.hbs Merge pull request #5791 from kevinansfield/autohide-nav-translate3d 2015-09-02 18:36:28 +01:00
error.hbs
post-settings-menu.hbs Drag-n-drop re-ordering of tags in post settings menu 2015-10-26 18:05:25 +00:00
posts.hbs Fix double-click & enter/o editing shortcuts 2015-08-31 10:58:34 +01:00
reset.hbs Form field icons load in default 'grey' state 2015-09-01 13:02:27 +01:00
setup.hbs User Onboarding - flow navigation 2015-07-21 17:23:04 +01:00
signin.hbs Merge pull request #5775 from ErisDS/signin-validation 2015-09-02 11:05:38 +01:00
signup.hbs Adds debounced email validation and gravatar loading on second setup/signup screen 2015-10-28 09:40:40 +00:00