Commit Graph

2867 Commits

Author SHA1 Message Date
Greenkeeper
aeb8b91aa0 chore(package): update codemirror to version 5.17.0 (#132)
https://greenkeeper.io/
2016-07-19 09:14:13 -06:00
Kevin Ansfield
0b2345e635 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
b4e812db54 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
cb30a834b7 Fix: travis exception for greenkeeper branches (#130)
- travis terminology is inconsistent :(
2016-07-15 10:51:00 -06:00
Greenkeeper
d3d0e3c942 chore(package): update broccoli-concat to version 3.0.1 (#129)
https://greenkeeper.io/
2016-07-15 10:17:24 -06:00
Aileen Nowak
2b20e6d3e1 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
4848955425 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
01546d7d1a chore(package): update broccoli-concat to version 3.0.0 (#124)
https://greenkeeper.io/
2016-07-15 11:24:12 +01:00
Greenkeeper
f5de858235 chore(package): update ember-cli to version 2.6.3 (#125)
https://greenkeeper.io/
2016-07-15 09:59:37 +01:00
Austin Burdine
5573d72e65 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
b86da86de5 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
ce7b82d13a chore(package): update broccoli-merge-trees to version 1.1.2 (#118)
https://greenkeeper.io/
2016-07-13 11:16:08 -06:00
Greenkeeper
637f23731f chore(package): update liquid-fire to version 0.24.1 (#117)
https://greenkeeper.io/
2016-07-12 07:01:05 +01:00
Greenkeeper
b1cc631636 chore(package): update broccoli-concat to version 2.2.1 (#115)
https://greenkeeper.io/
2016-07-11 15:18:44 -06:00
Austin Burdine
8fc2107308 Merge pull request #112 from kevinansfield/503-maintenance
"503 Maintenance" error handling
2016-07-11 05:34:56 -06:00
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