0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/client/app/components
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
..
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
gh-app.js
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
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
gh-dropdown.js Routable tags 2015-10-27 12:48:41 +00:00
gh-ed-editor.js
gh-ed-preview.js Use private properties for unobserved render state 2015-11-21 09:25:21 -05:00
gh-editor-save-button.js
gh-editor.js
gh-error-message.js
gh-file-upload.js
gh-form-group.js Fix nav regressions in admin client 2015-09-23 17:05:41 +01:00
gh-infinite-scroll-box.js
gh-infinite-scroll.js
gh-input.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
gh-main.js
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
gh-popover-button.js
gh-popover.js
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
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
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