Commit Graph

2867 Commits

Author SHA1 Message Date
Greenkeeper ea784437ac chore(package): update codemirror to version 5.17.0 (#132)
https://greenkeeper.io/
2016-07-19 09:14:13 -06:00
Kevin Ansfield ab14b78282 Fix editor error handling (#128)
closes https://github.com/TryGhost/Ghost/issues/7099
- update editor base controller's `showErrorAlert` method to handle `AdapterError` or `AjaxError` objects
- update PSM's error handling so that we don't pass an error object wrapped in an array to `showAPIError`
- add missing title attribute to Mirage's Post factory
- remove some leftover `console.log`s
2016-07-18 17:23:43 -06:00
Vijay Kandy 96f1b6342d Added upgrade notification component to About page. (#102)
- Picked some fixes https://github.com/TryGhost/Ghost/pull/5670/files
- Destructured Ember properties
- Removed unused imports and fixed unit test errors.
2016-07-15 16:58:35 -06:00
Hannah Wolfe eb31c438d5 Fix: travis exception for greenkeeper branches (#130)
- travis terminology is inconsistent :(
2016-07-15 10:51:00 -06:00
Greenkeeper 870bcc8f18 chore(package): update broccoli-concat to version 3.0.1 (#129)
https://greenkeeper.io/
2016-07-15 10:17:24 -06:00
Aileen Nowak f7b76f2d3e Fixes curser changing to pointer on hover (#127)
closes #7100

Adds `:hover` pseudo-class to `gh-notification-schedule` that sets the curser to default to avoid having it as a pointer on hover.
2016-07-15 09:30:50 -06:00
Hannah Wolfe dec555a9d4 Recommend Node v4 & use as default (#126)
refs TryGhost/Ghost#7098

- Use Node v4 as our default build environment
- Change engines in package.json to match Ghost core
2016-07-15 12:12:17 +01:00
Greenkeeper e66ff5d2d9 chore(package): update broccoli-concat to version 3.0.0 (#124)
https://greenkeeper.io/
2016-07-15 11:24:12 +01:00
Greenkeeper b8076c753f chore(package): update ember-cli to version 2.6.3 (#125)
https://greenkeeper.io/
2016-07-15 09:59:37 +01:00
Austin Burdine a82181fdd6 fix image component displaying alt text in uploader (#105)
closes TryGhost/Ghost#7064
- pull alt text from parsed markdown
- move text to image uploader component proper
2016-07-14 13:27:18 +01:00
Kevin Ansfield 453c885e37 Add `grunt clean` task (#119)
refs #6977
- adds `grunt-contrib-clean` dependency
- adds `grunt clean` task that cleans the same client folders as core's `grunt clean` ready to be used via subgrunt
2016-07-14 12:43:49 +01:00
Greenkeeper 5dd50bc65e chore(package): update broccoli-merge-trees to version 1.1.2 (#118)
https://greenkeeper.io/
2016-07-13 11:16:08 -06:00
Greenkeeper 46b20be625 chore(package): update liquid-fire to version 0.24.1 (#117)
https://greenkeeper.io/
2016-07-12 07:01:05 +01:00
Greenkeeper 3d4865ca62 chore(package): update broccoli-concat to version 2.2.1 (#115)
https://greenkeeper.io/
2016-07-11 15:18:44 -06:00
Austin Burdine a2c6b949f1 Merge pull request #112 from kevinansfield/503-maintenance
"503 Maintenance" error handling
2016-07-11 05:34:56 -06:00
Greenkeeper 4b784e874c chore(package): update liquid-fire to version 0.24.0 (#114)
https://greenkeeper.io/
2016-07-09 12:24:50 +01:00
Greenkeeper 40bcb51f5e chore(package): update ember-suave to version 4.0.0 (#113)
https://greenkeeper.io/
2016-07-09 08:06:05 +01:00
Kevin Ansfield 13df2e426b "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 690dc9dffb 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 e4c0aaf7b9 "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 1fd879343f more shimming of controllers (#110)
refs #101, #95
- shim controllers that were missed initially
2016-07-06 20:47:30 +01:00
Austin Burdine 666a3e7f1a 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 078f85ef76 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 05d71ed62b 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 cfd7990dbe chore(package): update moment to version 2.14.0 (#106)
https://greenkeeper.io/
2016-07-04 06:38:56 +01:00
Kevin Ansfield 668feb0f78 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 2dff7edd3d 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 c803bd913d only build parts of jquery-ui that we need (#100) 2016-06-30 14:42:00 +01:00
Austin Burdine a9ce94de9f convert ember imports to ember-cli-shim imports where possible (#95) 2016-06-30 11:21:47 +01:00
Greenkeeper e57bc5615d chore(package): update broccoli-asset-rev to version 2.4.4 (#97) 2016-06-29 22:00:50 -06:00
Austin Burdine 45a33fc008 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 b9cf09541d 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 47f286448e deps: jquery-deparam@0.5.2 as npm module 2016-06-29 11:28:53 +01:00
Kevin Ansfield e9ebca5189 deps: codemirror@5.16.0 as npm module 2016-06-29 11:28:53 +01:00
Kevin Ansfield 2609226f31 deps: ember-cli-shims@0.1.3 2016-06-29 11:28:53 +01:00
Kevin Ansfield 99936dc1c8 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 b2ee1b7d8e 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 7c57a7cef6 add buildAboutPage task to Gruntfile (#90) 2016-06-28 18:36:00 +01:00
Austin Burdine 57f212285c 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 8b4173652e 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 0c4180f77d Merge pull request #92 from acburdine/add-bower
Add bower to client dependencies
2016-06-26 15:18:27 +01:00
Austin Burdine 7956633c39 deps: bower@1.7.9
refs TryGhost/Ghost#7039
- add bower dependency to client
2016-06-26 08:00:51 -06:00
Kevin Ansfield a9c1726810 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 70f92b0d2c 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 da44c97b21 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 9c5c8f2eca chore(package): update loader.js to version 4.0.10
https://greenkeeper.io/
2016-06-22 03:11:01 +01:00
Austin Burdine d172e280bf 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 5dd978c1a7 chore(package): update grunt-jscs to version 3.0.1
https://greenkeeper.io/
2016-06-21 22:22:13 +01:00
Austin Burdine c2f2df034e 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 9c1029e100 chore(package): update glob to version 7.0.5
https://greenkeeper.io/
2016-06-21 02:15:55 +01:00