Commit Graph

3279 Commits

Author SHA1 Message Date
Austin Burdine
253a0fb2cf various test deprecation cleanup
no issue
- cleans up a lot of the deprecation noise in tests
- remove ember-cli-deprecation-workflow dependency
2017-03-08 18:56:30 +00:00
Kevin Ansfield
ad98a9a072 🎨 refactor settings screens to use ember-concurrency & gh-task-button
refs https://github.com/TryGhost/Ghost/issues/7865
- updates all settings screens to use EC tasks and `gh-task-button` to get save-state save buttons
- removes now-unused `settings-save` mixin
- moves the order of button color CSS so that grey buttons can change to green/red after completing
- removes the heading from `apps-loading` template so that there's no odd flash when loading slack/amp screens directly
2017-03-08 10:00:03 -07:00
Kevin Ansfield
33a0e50ae5 🐛 fix blank PSM meta description placeholder
no issue
- with the new editor there's no longer a `.rendered-markdown` preview element so the meta description placeholder stopped working
- this uses the `post.html` attribute in place of the old preview element, the downside to this is that `post.html` and therefore the meta description placeholder is only updated on save but that's better than not having any placeholder
2017-03-08 09:42:32 -07:00
Kevin Ansfield
fce096afd1 🔥 remove unused markdown/preview helper and component
no issue
- `gh-format-markdown` is no longer used
- `gh-ed-preview` is a hangover from the old editor
2017-03-08 09:42:32 -07:00
John O'Nolan
8aa02da02c Editor card-menu and toolbar style updates 2017-03-08 21:08:20 +08:00
Kevin Ansfield
06e2912c14 bump yarn.lock sub-dependencies 2017-03-08 12:16:25 +00:00
Kevin Ansfield
3036b385c3 deps: loader.js@4.2.3 2017-03-08 12:16:25 +00:00
Kevin Ansfield
7c056536e5 deps: liquid-wormhole@2.0.4 2017-03-08 12:16:25 +00:00
Kevin Ansfield
6d5b97418c deps: ember-power-select@1.5.0 2017-03-08 12:16:25 +00:00
Kevin Ansfield
9bf5b42eb7 deps: ember-light-table@1.8.4 2017-03-08 12:16:25 +00:00
Kevin Ansfield
352e3d6aa7 deps: ember-cli-postcss@3.1.2 2017-03-08 12:16:25 +00:00
Kevin Ansfield
c0f74b561e deps: broccoli-merge-trees@2.0.0 2017-03-08 12:16:25 +00:00
Kevin Ansfield
57c6f27820 deps: ember-ajax@2.5.6 2017-03-08 12:16:25 +00:00
Kevin Ansfield
0fb5888921 deps: csscomb@4.0.1 2017-03-08 12:16:25 +00:00
Kevin Ansfield
d109316b9a deps: coveralls@2.12.0 2017-03-08 12:16:25 +00:00
Kevin Ansfield
bec3b2e0fb deps: autoprefixer@6.7.6 2017-03-08 12:16:25 +00:00
Kevin Ansfield
96743e64cd 🎨 move theme activation to /themes endpoint
requires https://github.com/TryGhost/Ghost/pull/8093
- adds `theme.activate()` method and associated adapter method for activating themes rather than relying on `settings.activeTheme`
- minor refactors to the `modals/upload-theme` component to use a full theme model
2017-03-08 10:46:33 +00:00
Kevin Ansfield
f26ddc68dd add "sort by" dropdown to content screen filters (#565)
closes TryGhost/Ghost#7860
- add "sort by" dropdown allowing to order posts by earliest or latest publication date
2017-03-07 10:36:28 -07:00
Kevin Ansfield
f1512d12c2 success/failure state spinner buttons (#566)
refs https://github.com/TryGhost/Ghost/issues/7515
- changes to `gh-task-button`:
  - can take `buttonText` (default: "Save"), `runningText` ("Saving"), `successText` ("Saved"), and `failureText` ("Retry") params
  - positional param for `buttonText`
  - default button display can be overridden by passing in a block, in that scenario the component will yield a hash containing all states to be used in this fashion:
    ```
    {{#gh-task-button task=myTask as |task|}}
    {{if task.isIdle "Save me"}}
    {{if task.isRunning "Saving"}}
    {{if task.isSuccess "Thank you!"}}
    {{if task.isFailure "Nooooooo!"}}
    {{/gh-task-button}}
    ```
- update existing uses of `gh-task-button` to match new component signature
2017-03-07 10:28:52 -07:00
Ryan McCarvill
c5b0301e87 Koenig tests. (#564)
* 👷   Editor tests
Added acceptance tests for koenig markdown-like support.
Added some unit tests for koenig located in the /lib/koenig/test-support directory.
2017-03-07 23:57:09 +13:00
kirrg001
9c137df839 Version bump to 1.0.0-alpha.15 2017-03-03 18:35:18 +01:00
Kevin Ansfield
3df6b2693b 🐛 re-add broccoli-clean-css
no issue
- `broccoli-clean-css` is used to compress codemirror CSS files so it's still needed
- update usage in `ember-cli-build.js` to match 2.0's class interface
2017-03-03 17:19:19 +00:00
Kevin Ansfield
ea58dc6f85 🔥 remove URL input option from image upload components
refs https://github.com/TryGhost/Ghost/issues/8032
- `fileStorage: false` config is going away, it predates storage engines and will simplify future image optimisation work
- simplifies UI, it can be brought back in the future in a more robust fashion if required
2017-03-03 11:01:55 -06:00
Austin Burdine
0366bde545 💄 import gh-koenig styles into dark mode stylesheet 2017-03-03 16:54:50 +00:00
Austin Burdine
6619f09eca 🎨 implement night mode
no issue
- add functionality for night mode feature flag using alternate
stylesheets
- modify lazy loader service to work with alternate stylesheets
- update feature service to use user accessibility property & add tests
2017-03-03 16:54:50 +00:00
Austin Burdine
3536d91c9c 🎨 make lazyLoader return a promise for loadStyle method
no issue
- cleans up the interface to maintain consistency between loadScript and
loadStyle
- update gh-cm-editor component to await result of loadStyle
2017-03-03 16:54:50 +00:00
Kevin Ansfield
85d9d76f88 comment out temporary static card menu template
no issue
- card menu template on Labs screen is temporary whilst working on the design, this disables it for the alpha
2017-03-03 16:42:07 +00:00
Kevin Ansfield
ae60352c16 disable email input field when using OAuth, direct users to my.ghost.org for login details (#560)
no issue

- disables user email input field when using Ghost OAuth because email addresses are synced from the central identity management system
- adds a link to my.ghost.org account management when using Ghost OAuth and viewing your own user
2017-03-03 14:24:43 +01:00
Kevin Ansfield
38913eedfd fix missing template compiler warning for gh-koenig
no issue
- I was a little overzealous with the file cleanup, not realising that the template compiler must be specified even if it's not installed within the addon
2017-03-02 18:56:32 +00:00
Kevin Ansfield
cce955545e Merge branch 'integrated-editor' 2017-03-02 18:50:01 +00:00
Kevin Ansfield
cfea2010ef clean up gh-koenig files not relevant to in-repo-addon
no issue
- removes local addon dependency files to avoid confusion now that the host app manages dependencies
- removes unused tests directory
- these files may come back eventually, there's an open ember-cli RFC to improve in-repo-addon isolation and testing https://github.com/ember-cli/rfcs/pull/60
2017-03-02 18:45:04 +00:00
Kevin Ansfield
ea8b4277b0 add dropdown filters for post type, author, and tag (#554)
refs TryGhost/Ghost#7860
- removes post type filter links
- adds dropdown filters for post type, author, and tag
- replaces custom refresh on query params change with Ember's standard `refreshModel` config
2017-03-02 12:35:09 -06:00
Kevin Ansfield
8542331c4a remove duplicate/conflicting gh-koenig license files 2017-03-02 18:24:35 +00:00
Kevin Ansfield
7ed3fad074 turn on linting for the editor, fix errors and match Ghost-Admin styles 2017-03-02 16:51:57 +00:00
Kevin Ansfield
a3a6c6c3ec remove unused codemirror files 2017-03-02 15:15:27 +00:00
Kevin Ansfield
7f14f6cd87 remove duplicated and unused editor files
no issue
- as a separate project a number of Ghost-Admin components and files had been copied verbatim, these are no longer needed as the original components are available now that the editor is integrated
2017-03-02 12:16:20 +00:00
Kevin Ansfield
91137a486e fix malformed CSS that was breaking production builds
no issue
- cssnano was erroring with `Error: Unexpected "space" found`
2017-03-02 11:52:33 +00:00
Kevin Ansfield
1571429088 remove broccoli-clean-css dependency
no issue
- we're now using postcss with the cssnano plugin when building the production files so we don't need the additional minification plugin
- fixes `ember build -prod`
2017-03-02 11:13:18 +00:00
Kevin Ansfield
30de389144 remove editor install step from Travis
no issue
- all deps are now in the main project, there's no longer any extra install step needed
2017-03-02 11:09:38 +00:00
Kevin Ansfield
023a714c6b move editor deps into main project
no issue
- this prevents the need for running `npm/yarn install` inside the `lib/gh-koenig` directory
- `ember-cli` may eventually be able to handle this with an `ember install` or similar command, there's [an in-repo-addon RFC](638cad2405/active/0000-better-in-repo-addons.md) suggesting this improvement but it hasn't got much traction yet - it may be necessary to wait until ember-cli has standardised on `yarn`
2017-03-02 11:06:20 +00:00
Kevin Ansfield
a3c5a1b5e6 fix cardmenu.css import location 2017-03-02 10:16:30 +00:00
Kevin Ansfield
cfda316c89 bump yarn.lock deps 2017-03-02 09:57:56 +00:00
John O'Nolan
49a15a70c5 Card menu styles and editor tweaks 2017-03-02 09:56:52 +00:00
Ryan McCarvill
4ceb547db7 fixed the menu in perperation to the + button 2017-03-02 09:56:52 +00:00
Ryan McCarvill
b61e2055a2 refactor and rename ghost-editor to koenig, removed tests from koenig to integrate into ghost-admin 2017-03-02 09:56:52 +00:00
Ryan McCarvill
b5cb951d3c renamed to koenig 2017-03-02 09:56:52 +00:00
Ryan McCarvill
0c7646dea8 removed tests 2017-03-02 09:56:52 +00:00
Ryan McCarvill
9c7215423e Removed frontend components. 2017-03-02 09:56:52 +00:00
Ryan McCarvill
999c6067f0 Implemented new toolbar styling and layout. 2017-03-02 09:56:52 +00:00
John O'Nolan
08e6b00048 Minor editor style updates
Refs https://github.com/TryGhost/Ghost/issues/8021
2017-03-02 09:56:52 +00:00
Ryan McCarvill
76d89d9f61 added .jshintrc file to pass jshint 2017-03-02 09:56:51 +00:00
Ryan McCarvill
913a67b2c0 🐜 added the installation for ghost-editor into the tarvis.yml file 2017-03-02 09:56:51 +00:00
Ryan McCarvill
e422f0bcba 👷🏻‍♀️🚧👷 Ghost-Editor integration.
Integrated Ghost-Editor as an in-repo addon.
Moved CSS to /app/styles/addons/ghost-editor/

Still a WIP.
2017-03-02 09:56:51 +00:00
Kevin Ansfield
60dc827e59 🐛 fix unclickable app after closing modal
no issue
- `liquid-wormhole` changed the class of it's default destination element which meant that one of our styles resulted in it overlaying the whole app and preventing anything from being clicked after closing a modal
2017-03-01 17:30:46 +00:00
Kevin Ansfield
ad736c86f5 bump yarn.lock sub-dependencies 2017-03-01 16:47:50 +00:00
Kevin Ansfield
d37f506e32 deps: ember-cli-mirage@0.2.6 2017-03-01 16:47:50 +00:00
Kevin Ansfield
269eba685d deps: loader.js@4.2.2 2017-03-01 16:47:50 +00:00
Kevin Ansfield
bde951617f deps: broccoli-clean-css@2.0.1 2017-03-01 16:47:50 +00:00
Kevin Ansfield
22287764e3 deps: liquid-wormhole@2.0.3 2017-03-01 16:47:50 +00:00
Kevin Ansfield
9563bba1b2 deps: broccoli-concat@3.2.2 2017-03-01 16:47:50 +00:00
Kevin Ansfield
bc18046287 deps: liquid-fire@0.27.1 2017-03-01 16:47:50 +00:00
Kevin Ansfield
fc37f38d9a deps: codemirror@5.24.2 2017-03-01 16:47:50 +00:00
Kevin Ansfield
403cd3db4c deps: csscomb@4.0.0 2017-03-01 16:47:50 +00:00
Kevin Ansfield
97498475b2 deps: ember-souce@2.11.2 2017-03-01 16:47:50 +00:00
Kevin Ansfield
ae006258da deps: ember-power-select@1.4.4 2017-03-01 16:47:50 +00:00
Kevin Ansfield
3bde30cb58 deps: ember-light-table@1.8.3 2017-03-01 16:47:50 +00:00
Kevin Ansfield
75120fbf2a deps: ember-data@2.11.3 2017-03-01 16:47:50 +00:00
Kevin Ansfield
22a652c9e5 deps: ember-ajax@2.5.5 2017-03-01 16:47:50 +00:00
Kevin Ansfield
82794c16b3 deps: ember-cli-content-security-policy@0.6.0 2017-03-01 16:47:50 +00:00
Kevin Ansfield
a5a4506c99 deps: ember-cli-babel@5.2.4 2017-03-01 16:47:50 +00:00
Kevin Ansfield
97421d9548 deps: ember-cli@2.11.1 2017-03-01 16:47:50 +00:00
Kevin Ansfield
84d3025f26 deps: blueimp-md5@2.7.0 2017-03-01 16:47:50 +00:00
Kevin Ansfield
021b95a057 deps: autoprefixer@6.7.3 2017-03-01 16:47:50 +00:00
Kevin Ansfield
b0c1330c0f inline-svg helper for icons (#558)
no issue
- adds [ember-inline-svg](https://github.com/minutebase/ember-inline-svg) addon
- configure svg path to `public/assets/icons` so that icons can be accessed directly, eg `{{inline-svg "plane.svg"}}`
- configure svg optimization to remove title, dimensions, and xmlns element (not needed for inline svg)
- add existing icons as used on Ghost.org
2017-03-01 12:48:27 +00:00
Kevin Ansfield
1db799e634 🐛 display correct expired/expires text for invites (#550)
closes https://github.com/TryGhost/Ghost/issues/8055

- use `expired` if the date is in the past, otherwise `expires`
- fix mirage factories to use `moment.valueOf` instead of `moment.unix` for invite `expires` attributes
2017-02-27 13:11:39 +00:00
Kevin Ansfield
e1532d1f5a fix tests for new themes table styles (#553) 2017-02-27 12:34:46 +00:00
John O'Nolan
afdc20d31e Update design screen styles, fix login bugs
Refs https://github.com/TryGhost/Ghost/issues/8021
2017-02-27 13:31:01 +07:00
Kevin Ansfield
82489d7da6 Version bump to 1.0.0-alpha.14 2017-02-24 19:53:36 +00:00
Kevin Ansfield
43529c488a remove unnecessary posts/index route (#545)
no issue
- the index route/controller/template was initially used for a separate loading state within the posts screen layout, this isn't necessary however as the same effect can be achieved with the `posts-loading.hbs` template
- this change also lays the groundwork for more complex dropdown-based filters as it enables the filters and query params to live in the same controller+template
2017-02-23 18:47:52 +00:00
Kevin Ansfield
3e172eb8db bump yarn.lock including sub-dependencies 2017-02-23 11:30:54 +00:00
Ryan McCarvill
964e649284 This should (hopefully) be the last release of an independent editor project, for the beta it will be intergrated into the master ghost-admin repository. 2017-02-23 11:30:54 +00:00
Kevin Ansfield
30a5ac904d rename settings/navigation -> settings/design, move theme management (#543)
no issue

- following from the `settings/general` redesign, navigation and themes management are now co-located in `settings/design`
2017-02-21 19:04:50 +00:00
Kevin Ansfield
bad68bd7c2 fetch themes from /themes endpoint (#542)
refs https://github.com/TryGhost/Ghost/pull/8022

- use `/themes` API endpoint to fetch list of themes instead of `settings[0].availableThemes`
2017-02-21 18:28:44 +00:00
Kevin Ansfield
099cc91a90 accordion toggles for settings sections 2017-02-21 13:03:44 +00:00
Kevin Ansfield
09d4ffb1fe fix settings/general acceptance tests 2017-02-21 13:03:44 +00:00
John O'Nolan
54486af893 Colour updates 2017-02-21 13:03:44 +00:00
John O'Nolan
73ddd59367 New settings/general styles 2017-02-21 13:03:44 +00:00
Kevin Ansfield
be3ab3e4bb 🐛 fix posts screen infinite scroll (#539)
no issue
- changes to layout meant that every page was automatically requested upon loading the content screen, this changes the infinite scroll trigger to match the new scrollable element
2017-02-21 11:12:30 +00:00
Kevin Ansfield
647c691283 Re-enable yarn in Travis
no issue
- we had [previously reverted](787646a4a2) the use of `yarn` on Travis as we suspected it as being a culprit in failing editor builds, that wasn't the real cause so this switches us back to using `yarn`
2017-02-19 10:59:51 -06:00
Kevin Ansfield
4c1417877f 🏃 persist broccoli cache on Travis for faster builds
no issue
- persisting the broccoli cache should dramatically speed up the client builds on Travis as it will only need to rebuild changed files and those that depend on them
2017-02-19 10:59:51 -06:00
kirrg001
dc28621877 Version bump to 1.0.0-alpha.13 2017-02-18 17:24:12 +01:00
Austin Burdine
e91b231452 🎨 Myth => PostCSS (#537) 2017-02-18 02:46:41 +07:00
Austin Burdine
a39b553f44 chore: update yarn.lock 2017-02-17 13:29:46 -06:00
Austin Burdine
528ecb7662 🐛 disable failing test temporarily 2017-02-17 12:31:12 -06:00
John O'Nolan
2a300e0410 Prototype nightshift 🌆 2017-02-17 12:31:12 -06:00
John O'Nolan
639264166a Labs UI update 2017-02-17 12:31:12 -06:00
John O'Nolan
981bfd6633 Prototype mobile navbar 2017-02-17 12:31:12 -06:00
Ryan McCarvill
fc154472c2 deps: ghost-editor@0.1.9 (#535) 2017-02-17 15:40:32 +01:00
Austin Burdine
2d6bb65322 🐛 don't destroy codemirror editor if it doesn't exist (#530)
closes TryGhost/Ghost#7855
- check if codemirror has been initialized before trying to destroy it
2017-02-17 10:15:28 +00:00
Austin Burdine
aff121ebce 🐛 fix gh-search-input highlighting (#532)
closes TryGhost/Ghost#8013
- ember-power-select yields the select public api object instead of just
the searchterm
2017-02-17 10:15:09 +00:00
Kevin Ansfield
30202d9e7e update tests for HTML changes 2017-02-17 10:14:16 +00:00
John O'Nolan
38315ffab1 Style updates to new app frame for all other screens 2017-02-17 10:14:16 +00:00
John O'Nolan
87e48b2f45 Team / Apps app frame style update 2017-02-17 10:14:16 +00:00
Kevin Ansfield
db74744d2b Update styles for content screen, buttons, and app frame
* Updates styling on content management screen, replaces button styles, tweaks application frame style
2017-02-16 19:50:05 +00:00
Kevin Ansfield
e18457cebe fix header flash when changing content filters 2017-02-15 12:45:44 +00:00
John O'Nolan
f7fe91ceac WIP: New content (#528)
* Initial style updates
* First pass content management design overhaul
2017-02-15 12:43:49 +00:00
Kevin Ansfield
fca572163b Version bump to 1.0.0-alpha.12 2017-02-11 23:01:07 +00:00
Kevin Ansfield
920406c252 Revert "Offline Support via ServiceWorker" (#526)
Temporarily reverting in order to get the next alpha release out. Unfortunately this has the unintended consequence of the service worker caching a 200 response for /ghost/ so when starting a new blog the redirect to /setup/one that the server sends is never picked up.

This would only affect developers using localhost/people trying to set up a blog multiple times on the same domain but as that's the target audience for the alpha it's probably best to avoid any confusion.
2017-02-11 22:57:12 +00:00
Felix Rieseberg
abe3444426 🚀 Offline Support via ServiceWorker (#523)
This commit adds support for service workers, mostly by including packages that do the heavy lifting. Those are in detail:

* ember-service-worker (SW infrastructure)
* ember-service-worker-ghost-cache (Caches static assets and the main application)
* ember-service-worker-cache-fallback (Caches API requests and falls back to the cache if the server can’t be reached)
* ember-service-worker-index (Caches main html)
2017-02-11 14:42:46 +00:00
Kevin Ansfield
dab87f9739 refresh access token on app boot (#524)
refs https://github.com/TryGhost/Ghost/issues/5202

- refresh the access token after a successful authenticated application boot so that the session lifetime is continually extended
2017-02-10 14:35:45 +01:00
Kevin Ansfield
a8a7e98150 Content link resets filter if already viewing content screen (#521)
no issue

- the content filter will be remembered if you navigate away from then back to the content screen
- this PR changes the behaviour slightly so that clicking the sidebar "Content" link whilst viewing the content screen will act as a shortcut to reset the filter
2017-02-10 14:24:13 +01:00
Austin Burdine
bb007ec84f more ember-simple-auth UnauthenticatedRoute cleanup (#44)
no issue
- aligns routes that require the user to be logged out with the ember-simple-auth method of doing things
2017-02-10 10:34:37 +00:00
Kevin Ansfield
fbc99e6fa7 deps: ember-simple-auth@1.2.0 2017-02-06 16:39:42 +00:00
Kevin Ansfield
9ddd4681f7 yarn.lock: bump sub-dependencies 2017-02-06 16:39:42 +00:00
Kevin Ansfield
ab3ecc8ab4 deps: ember-power-select@1.4.3 2017-02-06 16:39:42 +00:00
Kevin Ansfield
8b7166706c deps: ember-data@2.11.1 2017-02-06 16:39:42 +00:00
Kevin Ansfield
cf8f545430 deps: ember-cli-babel@5.2.2 2017-02-06 16:39:42 +00:00
Kevin Ansfield
7a0db0d0a0 deps: coveralls@2.11.16 2017-02-06 16:39:42 +00:00
Kevin Ansfield
3579dc6eea deps: broccoli-concat@3.1.1 2017-02-06 16:39:42 +00:00
kirrg001
542b94824b Version bump to 1.0.0-alpha.11 2017-02-04 17:33:12 +01:00
Kevin Ansfield
beb03dbb43 bring keyboard navigation back to the content screen
refs https://github.com/TryGhost/Ghost/issues/7860
- restores the previous up/down/enter/cmd+backspace functionality
- modifies the `delete-post` modal to accept a hash with an `onSuccess` action
2017-02-04 09:01:52 -06:00
Kevin Ansfield
357a1c1654 deps: ember-truth-helpers@1.3.0 2017-02-04 09:01:52 -06:00
Kevin Ansfield
7eaa7170ec clean up content screen prototype
refs https://github.com/TryGhost/Ghost/issues/7860
- load 30 posts per page
- clean up unnecessary styles, match class name to component name
- start moving towards desired content/styles end goal
2017-02-04 09:01:52 -06:00
Kevin Ansfield
c0d3c26257 disable touch events in ember's event dispatcher (Chrome scrolling fix)
refs https://github.com/TryGhost/Ghost/issues/7860
- if touch event handlers are registered Chrome assumes it's being run on a touch device and will attempt to optimise scrolling by delaying `setTimeout` and XHRs which in turn plays havoc with infinite scroll performance
2017-02-04 09:01:52 -06:00
Kevin Ansfield
210057ef49 prevent ember searching for non-existant custom event dispatchers 2017-02-04 09:01:52 -06:00
Kevin Ansfield
8620daab52 deps: ghost-editor@0.1.6 (#515)
no issue
- adds Ghost-Editor 0.1.6
  - Improves markdown parsing speed
  - Shows toolbar on mouseup now (still freezes on loading unfortunately)
  - Makes Ghost-Editor full height for easy selection
- temporarily pull from a branch that fixes dependency issues
- remove unused module-for-acceptance.js file
2017-02-03 22:51:18 +00:00
Kevin Ansfield
29a42678f0 fix flickering filter menu on content screen 2017-02-01 17:03:38 -06:00
Kevin Ansfield
a75f6f8579 defer navigation display until user promise is fulfilled 2017-02-01 17:03:38 -06:00
Kevin Ansfield
7e14378a63 fix gh-selectize-test 2017-02-01 17:03:38 -06:00
Kevin Ansfield
11a06e7d19 remove unused gh-content-preview-content component 2017-02-01 17:03:38 -06:00
Kevin Ansfield
b2973326a5 fix gh-image-uploader-test 2017-02-01 17:03:38 -06:00
Kevin Ansfield
295f2cce96 fix double-render issues with validation-state mixin 2017-02-01 17:03:38 -06:00
Kevin Ansfield
719aed29cf deps: ember@2.11.0 2017-02-01 17:03:38 -06:00
Kevin Ansfield
0522482256 deps: ember-light-table@1.8.2 2017-02-01 17:03:38 -06:00
Kevin Ansfield
b68fc53efd use current URI instead of configured blog URI for OAuth redirectURI (#518)
refs https://github.com/TryGhost/Ghost/issues/7907
- rather than forwarding the redirect URI as configured in Ghost we should use the URL that the admin client is currently loaded on when setting the Ghost OAuth `redirectUri` attribute
- fixes issue with the admin app loading inside of the OAuth popup window and not logging in when using https with a registered http redirect uri
2017-02-01 16:15:47 +00:00
André Borud
ca08a878d2 🐛 fix jumping "Invite User" button when modal is opened
closes TryGhost/Ghost#7890
- moved the modal outside of the `<header>` tag to avoid triggering unexpected flexbox justification
2017-01-31 09:10:36 +00:00
Kevin Ansfield
9b7a8cdc55 clean up duplicated / no-longer-needed bower dependencies 2017-01-30 19:33:12 +00:00
Kevin Ansfield
836ca10124 deps: ember-test-selectors@0.2.1 2017-01-30 18:57:39 +00:00
Kevin Ansfield
093ee6b1c3 deps: ember-power-select@1.4.2 2017-01-30 18:53:40 +00:00
Kevin Ansfield
ffe9cfa98d deps: ember-cli-mocha@0.13.2 2017-01-30 18:51:24 +00:00
Kevin Ansfield
0aa44552e1 deps: ember-concurrency@0.7.19 2017-01-30 18:51:12 +00:00
Kevin Ansfield
deddeaf743 deps: ember-cli-mirage@0.2.5 2017-01-30 18:46:11 +00:00
Kevin Ansfield
a3bf9f5d7e deps: ember-ajax@2.5.4 2017-01-30 18:43:35 +00:00
Kevin Ansfield
fa22c2063a deps: codemirror@2.53.0 2017-01-30 18:43:24 +00:00
Kevin Ansfield
96fac39a56 Version bump to 1.0.0-alpha.10 2017-01-26 18:08:41 +00:00
Kevin Ansfield
9fe6b906c4 Update yarn.lock 2017-01-26 17:10:52 +00:00
Kevin Ansfield
2a85de5ccf 🔥 remove unused CPs (#509)
no issue
-  `settings/general` controller contained a number of `xImageSource` CPs that are no longer being used
2017-01-26 11:01:49 -06:00
Kevin Ansfield
580e9aea34 deps: ember-cli-code-coverage@0.3.11 (#510) 2017-01-26 10:48:54 -06:00
Kevin Ansfield
787646a4a2 Revert Travis config back to npm 2017-01-26 15:11:50 +00:00
Austin Burdine
2fc7319247 Use latest version of yarn (installed via npm) (#508)
no issue
- adds yarn cache to travis
- uses latest version of yarn via npm install
2017-01-26 14:32:46 +00:00
Kevin Ansfield
ec760ca2f6 🐛 fix double slashes in URLs (#506)
no issue

- update `config` service normalise blogUrl to non-trailing slash to match previous API behaviour
- fixes double slashes appearing in places around the app
- fixes "Redirect URI Mismatch" errors when using Ghost OAuth due to the double slashes
2017-01-26 13:45:11 +01:00
Aileen Nowak
66f7bad47b Blog icon uplod (#397)
refs TryGhost/Ghost#7688
- Adds new upload functionality for a blog icon in general settings.
- Icons will be uploaded to a new endpoint `uploads/icons` to trigger different validations.
2017-01-26 11:17:34 +00:00
Kevin Ansfield
c16d633d4b New content screen prototype (#503)
refs https://github.com/TryGhost/Ghost/issues/7860

- remove preview pane from content screen
- add basic post status filters
- replace custom infinite scroll with ember-infinity and increase trigger threshold for improved scroll behaviour

Commits:
* basic content list + filter using existing infinite scroll and pagination
* swap our custom pagination + infinite loader for `ember-infinity`
* minor cleanups
* reset scroll position when changing filter
* fix tests
* remove client-side sorting step as we no longer have a live collection
* remove unused `mobile-index-route`
* add acceptance tests for content screen filters
2017-01-25 21:05:28 +01:00
Kevin Ansfield
74b020e0e3 refactor reset password screen to use ember-concurrency (#502)
refs https://github.com/TryGhost/Ghost/issues/7865
- swap promise based action for an ember-concurrency task
2017-01-25 07:00:58 -06:00
Kevin Ansfield
170f8d29fe deps: ember-cli@2.11.0 (#501)
no issue
- note: this does not include the switch from using bower for ember + ember-cli-shims as we are currently on an older ember version.
2017-01-24 10:39:31 +00:00
Greenkeeper
c26b6fa04f Update ember-one-way-controls to version 2.0.0 🚀 (#475)
* chore(package): update ember-one-way-controls to version 2.0.0
* update yarn.lock
* update `gh-trim-focus-input` for removal of `sanitizeInput` in `ember-one-way-controls`
2017-01-23 12:03:05 +00:00
Kevin Ansfield
01cc9ae9be switch all modals over to ember-concurrency and gh-task-button 2017-01-20 10:03:38 +00:00
Kevin Ansfield
0e7d455351 de-couple gh-task-button from gh-spin-button 2017-01-20 10:03:38 +00:00
Kevin Ansfield
a988938a78 deps: chai-jquery@2.0.0 2017-01-20 09:35:42 +00:00
Aileen Nowak
683dbaa376 AMP app integration (#483)
refs TryGhost/Ghost#7769
- adds Google AMP to `apps` in order to disable and enable it on request.
2017-01-20 09:33:54 +00:00
Austin Burdine
928aa46de8 Add workaround for yarn node-sass bug (#498) 2017-01-20 09:31:45 +00:00
Kevin Ansfield
51bdf48428 deps: password-generator@2.1.0 2017-01-19 13:39:19 +00:00
Kevin Ansfield
cda660c65d deps: ember-route-action-helper@2.0.2 2017-01-19 13:38:29 +00:00
Kevin Ansfield
99997f1ba1 deps: ember-power-select@1.2.0 2017-01-19 13:37:23 +00:00
Kevin Ansfield
aaece232c2 deps: ember-cli-code-coverage@0.3.10 2017-01-19 13:36:22 +00:00
Kevin Ansfield
c5189b9e0d deps: ember-cli-chai@0.3.2 2017-01-19 13:34:16 +00:00
Kevin Ansfield
3c50735485 deps: ember-cli@2.10.1 2017-01-19 13:32:36 +00:00
Kevin Ansfield
99dd49903d 🏃 improve navigation responsiveness with loading substates (#495)
no issue
- add loading substates for all routes that previously blocked transitions until their model had finished loading
  - enables immediate response on navigation click
  - loading templates include the title bar to provide immediate indication of which page is loading
  - loading templates include a new `{{gh-loading-spinner}}` component that will only show the spinner after 200ms to avoid flashing a spinner for users on fast connections
- updated Version Mismatch tests to match new behaviour of intermediate transitions when navigating
2017-01-17 17:44:08 -06:00
Greenkeeper
348f1c0ffa Update fs-extra to version 2.0.0 🚀 (#493)
* chore(package): update fs-extra to version 2.0.0
* update yarn.lock and fix fs-extra usage in lib/asset-delivery
2017-01-16 19:45:13 +00:00
Austin Burdine
6ade86f00f add yarn.lock file and update travis (#494)
no issue
- add yarn.lock file with latest dependencies
- update travis to install via yarn
2017-01-16 19:14:25 +00:00
Kevin Ansfield
7a5481f242 display a spinner whilst the app is loading (#491)
no issue
- use the same loading indicator as used on my.ghost.org
- will display whilst the JS is loading and initializing rather than showing a completely blank screen
2017-01-15 15:11:43 -06:00
Austin Burdine
dfd6d444c3 fix test warnings (#492)
- fix ember-data complex default value returning in post model
- fix mirage returning a user of id 'me' from /user/me
2017-01-13 21:14:54 +00:00
Austin Burdine
3df9b6016a Update acceptance tests to use new mirage api 2017-01-13 15:59:37 +00:00
Austin Burdine
52b6668955 deps: ember-cli-mirage@0.2.0
- remove lodash from bower
- move all resources to /mirage instead of /app/mirage
- update endpoints to use ORM
- general cleanup
2017-01-13 15:59:37 +00:00
Austin Burdine
9dc85d02e8 🎨 move template content to gh-posts-list-item component
- we were exporting the component through a yield, which is probably not best practice. As there were no major things barring the content from going into the posts-list-item component, the template content was just moved
2017-01-13 13:26:38 +00:00
Austin Burdine
f955de1e31 deps: ember-cli-active-link-wrapper@0.3.2
- we were using borrowed code from an older version, now that ember-cli-active-link-wrapper has a built-in mixin we can just use that
- this fixes render issues with ember 2.10
2017-01-13 13:26:38 +00:00
Greenkeeper
a155d4f652 chore(package): update ember-cli-selectize to version 0.5.12 (#490)
https://greenkeeper.io/
2017-01-13 13:25:11 +00:00
Greenkeeper
920341942f chore(package): update codemirror to version 5.22.2 (#489)
https://greenkeeper.io/
2017-01-13 13:24:42 +00:00
Greenkeeper
bfc7f0258b chore(package): update ember-power-select to version 1.1.0 (#488)
https://greenkeeper.io/
2017-01-13 13:24:23 +00:00
Greenkeeper
d55194daab chore(package): update ember-data to version 2.11.0 (#485)
https://greenkeeper.io/
2017-01-13 13:23:42 +00:00
Kevin Ansfield
b1c94c6397 🐛 correctly count multibyte chars in character counters (#487)
closes https://github.com/TryGhost/Ghost/issues/7739

- use es6's `Array.from` to convert the string to an array to get a symbol count rather than a byte count
2017-01-11 14:45:22 +01:00
Kenneth Ashley
a1621d65a4 Long theme names break themes table layout (#304)
closes #274
- Removed “white-space: nowrap” property to allow word breaks.
- Added “flex: 1” to “.theme-list-item-body” and
“.theme-list-item-aside”.
- Aligned links inside “.theme-list-item-aside” to right.
2017-01-11 13:11:55 +00:00
Austin Burdine
8796f257d4 Add code coverage badge to README (#486) 2017-01-11 13:09:26 +00:00
Greenkeeper
81f5d99d6f chore(package): update ember-cli-pretender to version 1.0.1 (#484)
https://greenkeeper.io/
2017-01-10 09:34:04 +00:00
Austin Burdine
1ec41e5d87 Add code coverage (#481)
no issue
- adds code coverage via ember-cli-code-coverage
- add coverage and ember-cli-code-coverage deps
2017-01-09 23:00:12 +00:00
Greenkeeper
045f4221e1 chore(package): update ember-light-table to version 1.8.1 (#480)
https://greenkeeper.io/
2017-01-08 10:33:49 -06:00
John O'Mahoney
d270bef724 Show error message for invalid data in PostsPerPage (#419)
closes TryGhost/Ghost#7746
- Added gh-form-group around PostsPerPage
- Changed focusOut action to validate
- Removed now redundant `checkPostsPerPage()` call
2017-01-08 09:55:19 -06:00
Kevin Ansfield
0a37a27568 add manual pretender shutdown to fix acceptance tests (#342)
no issue
- a [recent update](https://github.com/pretenderjs/pretender/pull/178) to Pretender contained a breaking change that throws an error when multiple pretender instances exist
- using mirage in acceptance tests was [triggering the error](https://github.com/samselikoff/ember-cli-mirage/issues/915)
2017-01-05 08:36:50 -07:00
Greenkeeper
55b8c76798 chore(package): update emberx-file-input to version 1.1.1 (#472)
https://greenkeeper.io/
2017-01-04 18:44:53 +00:00
Kevin Ansfield
26a18a69af add extra escaping when using htmlSafe on user input (#469)
no issue
- ensure that we always pre-escape user input when it's used within `htmlSafe` marked output
2017-01-04 08:52:00 -07:00
Kevin Ansfield
c97e4c1dfc remove unused Gruntfile dependencies (#471)
no issue
- many of our grunt tasks have already been removed but we still had the imports and respective npm dependencies lying around
2017-01-04 08:40:56 -07:00
Greenkeeper
0acb8f9fa3 chore(package): update ember-route-action-helper to version 2.0.1 (#450)
https://greenkeeper.io/
2017-01-04 13:34:25 +00:00
Greenkeeper
583d440ce9 chore(package): update jquery-deparam to version 0.5.3 (#468)
https://greenkeeper.io/
2017-01-04 13:32:47 +00:00
Greenkeeper
13beafff6f chore(package): update ember-power-select to version 1.0.3 (#463)
https://greenkeeper.io/
2017-01-04 13:32:30 +00:00
Greenkeeper
fde8ee8cf6 chore(package): update ember-sortable to version 1.9.1 (#418)
https://greenkeeper.io/
2017-01-04 13:31:48 +00:00
Greenkeeper
b849647f59 chore(package): update loader.js to version 4.1.0 (#442)
https://greenkeeper.io/
2017-01-04 13:01:18 +00:00
Greenkeeper
8331263547 chore(package): update ember-cli-htmlbars to version 1.1.1 (#422)
https://greenkeeper.io/
2017-01-04 13:00:52 +00:00
Greenkeeper
498c728be2 chore(package): update codemirror to version 5.22.0 (#457)
https://greenkeeper.io/
2017-01-04 13:00:24 +00:00
Greenkeeper
1e937caa9f chore(package): update ember-cli-eslint to version 3.0.2 (#467)
https://greenkeeper.io/
2017-01-04 12:59:31 +00:00
Greenkeeper
e09a9a865e chore(package): update ember-light-table to version 1.8.0 (#452)
https://greenkeeper.io/
2017-01-04 12:59:09 +00:00