Commit Graph

2952 Commits

Author SHA1 Message Date
Greenkeeper
67a33da1f9 chore(package): update liquid-fire to version 0.24.0 (#114)
https://greenkeeper.io/
2016-07-09 12:24:50 +01:00
Greenkeeper
ad8833015a chore(package): update ember-suave to version 4.0.0 (#113)
https://greenkeeper.io/
2016-07-09 08:06:05 +01:00
Kevin Ansfield
3c92c171f9 "503 Maintenance" error handling
refs https://github.com/TryGhost/Ghost/issues/6976
- adds custom `MaintenanceError` and associated error checking functions
- updates app route and notifications service to handle `503` errors via the `upgrade-status` service
2016-07-08 15:17:26 +01:00
Kevin Ansfield
eb2a0359cf Refactor error handling
closes https://github.com/TryGhost/Ghost/issues/6974
- update "change password" fields/process to use inline validations
- remove `notifications.showErrors` and update all uses of it to `showAPIError`
- display multiple API errors as alerts rather than toaster notifications
- refactor `notifications.showAPIError`
  - remove `notifications.showErrors`, use a loop in `showAPIError` instead
  - properly determine the message from `AjaxError` or `AdapterError` objects
  - determine a unique key if possible so that we don't lose multiple different alerts
- add `ServerUnreachable` error for when we get a status code of 0 (eg, when the ghost service has been shut down)
- simplify error messages for our custom ajax errors
2016-07-08 15:16:54 +01:00
Kevin Ansfield
b4cdc85a59 "400 Version Mismatch" error handling
refs https://github.com/TryGhost/Ghost/issues/6949

Handle version mismatch errors by:
- displaying an alert asking the user to copy any data and refresh
- disabling navigation so that unsaved data is not accidentally lost

Detailed changes:
- add `error` action to application route for global route-based error handling
- remove 404-handler mixin, move logic into app route error handler
- update `.catch` in validation-engine so that promises are rejected with the
  original error objects
- add `VersionMismatchError` and `isVersionMismatchError` to ajax service
- add `upgrade-status` service
  - has a method to trigger the alert and toggle the "upgrade required" mode
  - is injected into all routes by default so that it can be checked before
    transitioning
- add `Route` override
  - updates the `willTransition` hook to check the `upgrade-status` service
    and abort the transition if we're in "upgrade required" mode
- update notifications `showAPIError` method to handle version mismatch errors
- update any areas where we were catching ajax errors manually so that the
  version mismatch error handling is obeyed
- fix redirect tests in editor acceptance test
- fix mirage's handling of 404s for unknown posts in get post requests
- adjust alert z-index to to appear above modal backgrounds
2016-07-08 14:56:26 +01:00
Austin Burdine
bfe542b27d more shimming of controllers (#110)
refs #101, #95
- shim controllers that were missed initially
2016-07-06 20:47:30 +01:00
Austin Burdine
c0f21b37d3 lazy-load codemirror on code injection screen (#99)
refs TryGhost/Ghost#6149
- concats codemirror.js and css on build, keeping them out of vendor.js
- add lazy-loader service to enable loading of external scripts
2016-07-05 17:30:14 +01:00
Kevin Ansfield
8c8365720b Revert to ember-wormhole@0.3.6 (#108)
closes https://github.com/TryGhost/Ghost/issues/7073
- reverts `ember-wormhole` to 0.3.6
- adds working test that was broken under `ember-wormhole` 0.4.0
2016-07-05 08:29:05 -06:00
Austin Burdine
d7001e54c7 deps: moment@2.14.1 (#107)
no issue
- update moment manually because greenkeeper didn't pick it up for some reason
2016-07-05 14:56:14 +01:00
Greenkeeper
9ab38e3fa9 chore(package): update moment to version 2.14.0 (#106)
https://greenkeeper.io/
2016-07-04 06:38:56 +01:00
Kevin Ansfield
96e9e1f76b fix focusOut event on slug input in PSM (#103)
no issue
- ensures that the current slug value is passed to the action instead of a `jQuery.event` object
2016-07-01 08:30:13 -06:00
Austin Burdine
fb239054a0 convert remainder of components to use ember-cli-shims (#101)
follow up from #95
- converts components to use ember-cli-shims
2016-06-30 19:14:25 +01:00
Austin Burdine
93105d5cce only build parts of jquery-ui that we need (#100) 2016-06-30 14:42:00 +01:00
Austin Burdine
f53c7dfc88 convert ember imports to ember-cli-shim imports where possible (#95) 2016-06-30 11:21:47 +01:00
Greenkeeper
e77b4d141f chore(package): update broccoli-asset-rev to version 2.4.4 (#97) 2016-06-29 22:00:50 -06:00
Austin Burdine
390afb1f71 Merge pull request #94 from kevinansfield/bower-to-npm
update bower deps and start switch from bower to npm
2016-06-29 10:49:12 -06:00
Kevin Ansfield
861d79299f convert bower deps to npm deps
no issue
- convert moment + moment-timezone to npm dependencies
- convert password-generator to npm dependency
- convert keymaster.js to npm dependency
- convert blueimp-md5 to npm dependency
2016-06-29 11:52:10 +01:00
Kevin Ansfield
8192d6fd64 deps: jquery-deparam@0.5.2 as npm module 2016-06-29 11:28:53 +01:00
Kevin Ansfield
1650069bcb deps: codemirror@5.16.0 as npm module 2016-06-29 11:28:53 +01:00
Kevin Ansfield
0dccda345e deps: ember-cli-shims@0.1.3 2016-06-29 11:28:53 +01:00
Kevin Ansfield
e3167c9afd deps: ember@2.6.1
no issue
- bugfix release: https://github.com/emberjs/ember.js/releases/tag/v2.6.1
2016-06-29 11:28:53 +01:00
Kevin Ansfield
d9b7d11401 deps: ember-cli-node-assets@0.1.3
no issue
- allows easy switching of `bower` dependencies to `npm` dependencies
2016-06-29 10:25:02 +01:00
Austin Burdine
9c2e45c44d add buildAboutPage task to Gruntfile (#90) 2016-06-28 18:36:00 +01:00
Austin Burdine
13b78ae1f7 Merge pull request #91 from starcwl/master
fix meta-data problem, which will cause SEO of post fail.
2016-06-27 04:32:19 -06:00
starcwl
541c8e67ad fix meta-data problem, which will cause SEO of post fail.
no issue
- fixed focus-out action calls in post-settings-menu meta fields which miss arguments metaDescriptionScratch and metaTitleScratch.
2016-06-27 18:10:41 +08:00
Kevin Ansfield
2d2b48dd94 Merge pull request #92 from acburdine/add-bower
Add bower to client dependencies
2016-06-26 15:18:27 +01:00
Austin Burdine
22477ef71b deps: bower@1.7.9
refs TryGhost/Ghost#7039
- add bower dependency to client
2016-06-26 08:00:51 -06:00
Kevin Ansfield
b9a24d8449 Merge pull request #86 from TryGhost/branch-exclude-fix
Add greenkeeper branch ignores to travis
2016-06-23 12:02:21 +01:00
Austin Burdine
3b294f18d8 Add greenkeeper branch ignores to travis
This prevents greenkeeper branches from being built as they will always by run in the PR.
2016-06-22 10:31:11 -06:00
Austin Burdine
5a32682239 Merge pull request #85 from TryGhost/greenkeeper-loader.js-4.0.10
Update loader.js to version 4.0.10 🚀
2016-06-21 22:34:41 -04:00
greenkeeperio-bot
ec07d0bd0b chore(package): update loader.js to version 4.0.10
https://greenkeeper.io/
2016-06-22 03:11:01 +01:00
Austin Burdine
6dcbd0916f Merge pull request #84 from TryGhost/greenkeeper-grunt-jscs-3.0.1
Update grunt-jscs to version 3.0.1 🚀
2016-06-21 17:52:50 -04:00
greenkeeperio-bot
709ac14ccf chore(package): update grunt-jscs to version 3.0.1
https://greenkeeper.io/
2016-06-21 22:22:13 +01:00
Austin Burdine
27a592f30f Merge pull request #83 from TryGhost/greenkeeper-glob-7.0.5
glob@7.0.5 untested ⚠️
2016-06-20 21:39:02 -04:00
greenkeeperio-bot
24e8f61e76 chore(package): update glob to version 7.0.5
https://greenkeeper.io/
2016-06-21 02:15:55 +01:00
Austin Burdine
71a0eba26d Merge pull request #82 from kevinansfield/fix-trim-focus-input
Fix un-bound HTML attributes for `gh-trim-focus-input`
2016-06-20 13:21:58 -04:00
Kevin Ansfield
df58953778 Fix un-bound HTML attributes for gh-trim-focus-input
no issue
- updates `gh-trim-focus-input` to extend from `gh-input`/`one-way-input` to get the auto-binding attribute behaviour for passed-in HTML attributes
- renames `focus` property to `shouldFocus` so that we're not overriding default DOM functions
- fixes signin page issues with missing placeholders and no autofocus
2016-06-20 15:20:25 +01:00
Kevin Ansfield
80c8e746f6 Merge pull request #81 from TryGhost/greenkeeper-ember-cli-2.6.2
Update ember-cli to version 2.6.2 🚀
2016-06-20 10:41:04 +01:00
greenkeeperio-bot
3466b48b9d chore(package): update ember-cli to version 2.6.2
https://greenkeeper.io/
2016-06-20 10:04:17 +01:00
Kevin Ansfield
d584b0d5fe Merge pull request #80 from TryGhost/greenkeeper-ember-cli-dependency-checker-1.3.0
Update ember-cli-dependency-checker to version 1.3.0 🚀
2016-06-19 11:25:14 +01:00
greenkeeperio-bot
9a432ab591 chore(package): update ember-cli-dependency-checker to version 1.3.0
https://greenkeeper.io/
2016-06-18 20:08:27 +01:00
Austin Burdine
ac82022997 Merge pull request #79 from kevinansfield/grunt-init
Add `grunt init` task
2016-06-18 14:20:47 -04:00
Kevin Ansfield
5e3fafa79a Add grunt init task
refs https://github.com/TryGhost/Ghost/pull/7005
- add `grunt init` task that installs `npm` and `bower` dependencies
- allows Ghost to call this task via subgrunt avoiding the need for a global bower install
2016-06-18 18:33:46 +01:00
Kevin Ansfield
7c2034df21 Merge pull request #46 from acburdine/one-way-inputs
Convert inputs to one way components
2016-06-18 16:26:17 +01:00
Austin Burdine
34ccd12111 Merge pull request #76 from kevinansfield/post-comparable
Use Ember.Comparable mixin to sort posts
2016-06-18 09:26:26 -04:00
Austin Burdine
6ee77a712a convert inputs to one-way inputs
no issue
- moves all inputs to use the data-down-actions-up component paradigm
2016-06-18 07:44:23 -04:00
Austin Burdine
2ce59c6ab2 Merge pull request #78 from TryGhost/greenkeeper-broccoli-asset-rev-2.4.3
Update broccoli-asset-rev to version 2.4.3 🚀
2016-06-18 00:13:07 -06:00
greenkeeperio-bot
f0ddd0402e chore(package): update broccoli-asset-rev to version 2.4.3
https://greenkeeper.io/
2016-06-18 06:08:23 +01:00
Kevin Ansfield
909713ec79 Merge pull request #77 from TryGhost/greenkeeper-ember-cli-deprecation-workflow-0.2.3
Update ember-cli-deprecation-workflow to version 0.2.3 🚀
2016-06-17 16:34:03 +01:00
greenkeeperio-bot
01cffa55a0 chore(package): update ember-cli-deprecation-workflow to version 0.2.3
https://greenkeeper.io/
2016-06-17 15:48:25 +01:00