Ghost/ghost/admin/app/components
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
..
gh-activating-list-item.js Ember-cli, Ember, & Ember Data 1.13.x upgrades 2015-10-06 16:09:05 +01:00
gh-alert.js Avoid duplicate alerts, clear alerts on successful retry or sign-in 2015-10-12 19:21:30 +01:00
gh-alerts.js Refactor notifications service & components 2015-07-28 12:26:11 +01:00
gh-app.js Update Ember to 1.13.2 2015-06-24 11:47:28 -05:00
gh-blog-url.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
gh-cm-editor.js Use private properties for unobserved render state 2015-11-21 09:25:21 -05:00
gh-content-cover.js Add mobile menu open button and close on click outside nav 2015-06-08 22:13:34 +02:00
gh-content-preview-content.js Use private properties for unobserved render state 2015-11-21 09:25:21 -05:00
gh-content-view-container.js Unify mobile state in JS, drop resize 2015-11-25 11:54:08 -05:00
gh-dropdown-button.js Use Ember.inject instead of needs and initializers 2015-05-27 07:41:42 -05:00
gh-dropdown.js Routable tags 2015-10-27 12:48:41 +00:00
gh-ed-editor.js Update Ember to 1.13.2 2015-06-24 11:47:28 -05:00
gh-ed-preview.js Use private properties for unobserved render state 2015-11-21 09:25:21 -05:00
gh-editor-save-button.js add spin-button component & implement it 2015-08-10 09:43:50 -06:00
gh-editor.js Mobile markdown/preview tabs 2015-09-01 18:14:40 +01:00
gh-error-message.js adds inline errors to validation 2015-07-05 14:02:06 -04:00
gh-file-upload.js Update Ember to 1.13.2 2015-06-24 11:47:28 -05:00
gh-form-group.js Fix nav regressions in admin client 2015-09-23 17:05:41 +01:00
gh-infinite-scroll-box.js Update Ember to 1.13.2 2015-06-24 11:47:28 -05:00
gh-infinite-scroll.js Update Ember to 1.13.2 2015-06-24 11:47:28 -05:00
gh-input.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
gh-main.js Refactor main nav menu into components 2015-05-24 01:42:59 -05:00
gh-menu-toggle.js Unify mobile state in JS, drop resize 2015-11-25 11:54:08 -05:00
gh-modal-dialog.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
gh-nav-menu.js deps: ember-simple-auth@1.0.0 2015-10-18 13:17:02 -05:00
gh-navigation.js Fix nav regressions in admin client 2015-09-23 17:05:41 +01:00
gh-navitem-url-input.js Fix nav regressions in admin client 2015-09-23 17:05:41 +01:00
gh-navitem.js Fix nav regressions in admin client 2015-09-23 17:05:41 +01:00
gh-notification.js Avoid duplicate alerts, clear alerts on successful retry or sign-in 2015-10-12 19:21:30 +01:00
gh-notifications.js Refactor notifications service & components 2015-07-28 12:26:11 +01:00
gh-popover-button.js Use Ember.inject instead of needs and initializers 2015-05-27 07:41:42 -05:00
gh-popover.js Use Ember.inject instead of needs and initializers 2015-05-27 07:41:42 -05:00
gh-posts-list-item.js Properly use htmlSafe styles 2015-11-20 17:48:48 -05:00
gh-profile-image.js Use private properties for unobserved render state 2015-11-21 09:25:21 -05:00
gh-search-input.js Add tags to auto-complete search 2015-11-02 15:34:13 +00:00
gh-select-native.js Update Ember to 1.13.2 2015-06-24 11:47:28 -05:00
gh-selectize.js Use private properties for unobserved render state 2015-11-21 09:25:21 -05:00
gh-skip-link.js Ember-cli, Ember, & Ember Data 1.13.x upgrades 2015-10-06 16:09:05 +01:00
gh-spin-button.js Prevent gh-spin-button from infinite spin 2015-08-31 13:41:01 +01:00
gh-tab-pane.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
gh-tab.js Ember-cli, Ember, & Ember Data 1.13.x upgrades 2015-10-06 16:09:05 +01:00
gh-tabs-manager.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
gh-tag-settings-form.js Unify mobile state in JS, drop resize 2015-11-25 11:54:08 -05:00
gh-tags-management-container.js Unify mobile state in JS, drop resize 2015-11-25 11:54:08 -05:00
gh-textarea.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
gh-trim-focus-input.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
gh-upload-modal.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
gh-uploader.js Routable tags 2015-10-27 12:48:41 +00:00
gh-url-preview.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
gh-user-active.js Properly use htmlSafe styles 2015-11-20 17:48:48 -05:00
gh-user-invited.js Avoid duplicate alerts, clear alerts on successful retry or sign-in 2015-10-12 19:21:30 +01:00
gh-validation-status-container.js Fix gh-validation-settings-container throwing error on tag settings page 2015-10-14 14:29:04 +01:00
gh-view-title.js Update Ember to 1.13.2 2015-06-24 11:47:28 -05:00