Commit Graph

6393 Commits

Author SHA1 Message Date
Hannah Wolfe
3f50f1194d Merge pull request #6781 from TryGhost/greenkeeper-sinon-1.17.4
Update sinon to version 1.17.4 🚀
2016-05-03 22:43:32 +02:00
greenkeeperio-bot
09bb961072 chore(package): update sinon to version 1.17.4
https://greenkeeper.io/
2016-05-03 22:19:27 +02:00
Hannah Wolfe
cf62db847d Merge pull request #6776 from TryGhost/greenkeeper-update-all
Update all dependencies 🌴
2016-05-03 21:57:41 +02:00
greenkeeperio-bot
04cde39657 chore(package): update dependencies
https://greenkeeper.io/
2016-05-03 21:22:43 +02:00
Kevin Ansfield
6f9d7913b6 Merge pull request #6772 from acburdine/remove-feature-controller
Remove unused feature controller
2016-05-02 08:31:33 +01:00
Hannah Wolfe
b3facbf84f Merge pull request #6747 from jaswilli/grunt
deps: grunt@1.0.1 + related updates
2016-04-29 21:35:55 +01:00
Austin Burdine
1a6568d8e2 remove unused feature controller 2016-04-28 12:22:54 -05:00
Kevin Ansfield
77134ad583 Merge pull request #6768 from acburdine/more-action-fixes
More action cleanup
2016-04-28 16:58:35 +01:00
Austin Burdine
d5a2bc0b63 convert more action calls to the ember-invoke-action syntax 2016-04-28 10:34:36 -05:00
Jason Williams
7a8c064c42 deps: grunt@1.0.1 + related updates
- Gets all grunt dependencies in line with the
  grunt 1.0 release.
- deps: grunt-cli@1.2.0.
- deps: grunt-bg-shell@2.3.3.
- deps: grunt-contrib-clean@1.0.0.
- deps: grunt-contrib-compress@1.2.0.
- deps: grunt-contrib-copy@1.0.0.
- deps: grunt-contrib-jshint@1.0.0.
- deps: grunt-contrib-watch@1.0.0.
- deps: grunt-docker@0.0.11.
- deps: grunt-express-server@0.5.3.
- deps: grunt-jscs@2.8.0.
- deps: grunt-mocha-cli@2.1.0.
- deps: grunt-mocha-istanbul@4.0.2.
- deps: grunt-shell@1.3.0.
- deps: istanbul@0.4.3.
2016-04-28 09:18:27 -05:00
Kevin Ansfield
d085c827ca Merge pull request #6519 from acburdine/esa-1.1
Upgrade ember-simple-auth to 1.1-beta
2016-04-28 14:58:15 +01:00
Austin Burdine
0f3c5e5900 deps: ember-simple-auth@1.1.0-beta.4
- remove related deprecation line in deprecation-workflow.js
2016-04-28 08:34:26 -05:00
Kevin Ansfield
9271343c9f Merge pull request #6767 from acburdine/ember-2.5.1
deps: ember@2.5.1
2016-04-28 14:18:29 +01:00
Austin Burdine
abea119a40 Merge pull request #6766 from kevinansfield/fix-trailing-slashes-for-params
Don't add trailing slash to end of url with parameters
2016-04-28 07:32:12 -05:00
Austin Burdine
2cb22326d9 deps: ember@2.5.1
- removes Ember.merge deprecation
2016-04-28 07:15:15 -05:00
Kevin Ansfield
9aa43ec751 Don't add trailing slash to end of url with parameters
no issue
- updates the `TrailingHistory` locationType so that trailing slashes aren't added to the end of URLs with parameters but instead matches how the server-side redirects to trailing-slash URLs
- before: `/subscribers?order=created_at/`
- after: `/subscribers/?order=created_at`
2016-04-28 12:42:03 +01:00
Kevin Ansfield
3fe030187e Merge pull request #6748 from acburdine/closure-actions-readability
Use ember-invoke-action for closure action handling
2016-04-28 10:12:24 +01:00
Hannah Wolfe
8808674bbd Merge pull request #6461 from terinjokes/resource-hints
Add Preload link headers for browsers and CDNs
2016-04-28 09:51:14 +01:00
Austin Burdine
b89181e9cd Merge pull request #6760 from kevinansfield/nav-transforms-for-win
Use a custom transform to simplify navigation settings
2016-04-27 07:09:56 -05:00
Austin Burdine
f8c0163eb1 deps: ember-invoke-action@1.3.0
no issue
- replace instances of `this.get('action')()` with ember-invoke-action syntax
2016-04-26 16:32:17 -05:00
Terin Stock
7bbfc37df6 automatically insert Link rel="preload" headers 2016-04-26 14:07:36 -07:00
Sebastian Gierlinger
0f75fc30b9 Merge pull request #6753 from ErisDS/deps-update
Minor/patch dependency updates
2016-04-26 16:16:38 +02:00
Hannah Wolfe
f955fa14e8 deps: path-match@1.2.4 2016-04-26 13:00:12 +01:00
Hannah Wolfe
5f64d03054 deps: morgan@1.7.0 2016-04-26 13:00:11 +01:00
Hannah Wolfe
7b9e61cba9 deps: moment@2.13.0 2016-04-26 13:00:11 +01:00
Hannah Wolfe
380a539ec0 deps: extract-zip@1.5.0 2016-04-26 13:00:11 +01:00
Hannah Wolfe
de9976070b deps: chalk@1.1.3 2016-04-26 12:59:32 +01:00
Hannah Wolfe
adaa5c2992 deps: bookshelf@0.9.4 2016-04-26 12:59:32 +01:00
Hannah Wolfe
1745335423 deps: body-parser@1.15.0 2016-04-26 12:59:32 +01:00
Hannah Wolfe
63be9964a2 deps: bluebird@3.3.5 2016-04-26 12:59:32 +01:00
Sebastian Gierlinger
9dd19dd4ff Merge pull request #6745 from ErisDS/express-hbs-update
deps: express-hbs@1.0.0
2016-04-26 13:47:42 +02:00
Kevin Ansfield
9c5eaab37f Use a custom transform to simplify navigation settings
no issue
- moves the `NavItem` object from the navigation controller to an explicit `NavigationItem` model file
- adds a custom transform `navigation-settings` that transforms the navigation settings JSON string to/from an array of `NavigationItem` objects
- simplifies the `settings/navigation` controller as it no longer has to export it's own internal model and handle serialization and deserialization

This pattern should also help simplify the apps/slack integration code if implemented there.
2016-04-26 12:32:29 +01:00
Hannah Wolfe
452664a06e Merge pull request #6756 from kevinansfield/fix-validation-engine-shared-refs
Fix shared references in ValidationEngine
2016-04-26 12:30:51 +01:00
Kevin Ansfield
7a455a3e1d Don't share errors and hasValidated references between validator instances
no issue
- ensure that each validator instance gets it's own `errors` and `hasValidated` objects
- updates some uses of `ValidationEngine` that were relying on side-effects of the unintended reference sharing
- fixes issue with add subscriber modal displaying an error state after opening if it previously had errors when closing
2016-04-25 10:56:11 +01:00
Jason Williams
ef089cc041 Merge pull request #6746 from ErisDS/validator
deps: validator@5.2.0
2016-04-21 09:24:33 -05:00
Hannah Wolfe
e21640a7e5 deps: validator@5.2.0
- also remove from greenkeeper ignores
2016-04-21 12:20:37 +01:00
Hannah Wolfe
31857ed78a deps: express-hbs@1.0.0
refs #2459

This includes updating handlebars to v4 as well as other fixes which
will introduce breaking changes to the theme API:

From express-hbs:
- partials must now use the `.hbs` extension, the same as templates
From handlebars:
- Depthed paths are now conditionally pushed on to the stack.
If the helper uses the same context, then a new stack is not created.
This leads to behavior that better matches expectations for helpers
like if that do not seem to alter the context. Any instances of ../
in templates will need to be checked for the correct behavior under 4.0.0.
In general templates will either reduce the number of ../ instances
or leave them as is. See #1028.
- The = character is now HTML escaped. This closes a potential exploit
case when using unquoted attributes, i.e. <div foo={{bar}}>. In general
it's recommended that attributes always be quoted when their values are
generated from a mustache to avoid any potential exploit surfaces.
2016-04-21 10:45:54 +01:00
Hannah Wolfe
f14c9f488f Merge pull request #6645 from joerx/issue6462
deps: validator@5.1.0
2016-04-20 18:55:43 +01:00
Kevin Ansfield
c98872586c Merge pull request #6742 from acburdine/client-deps
Update some client dependencies
2016-04-20 13:09:26 +01:00
Austin Burdine
e8e249691c lock jquery-deparam version 2016-04-20 06:18:47 -05:00
Austin Burdine
c6ef618e10 deps: password-generator@2.0.2 2016-04-20 06:17:44 -05:00
Kevin Ansfield
f8f4d3521c Merge pull request #6741 from acburdine/drop-jquery
Allow Ember to specify jQuery version
2016-04-20 09:28:02 +01:00
Austin Burdine
95030734e9 allow ember to specify jQuery version
- fix slight acceptance test bug
2016-04-19 14:08:36 -05:00
Kevin Ansfield
7fb441e640 Merge pull request #6492 from acburdine/ember-power-select
Convert gh-search-input to ember-power-select component
2016-04-19 17:40:27 +01:00
Austin Burdine
96c855136c replace gh-selectize with power-select in gh-search-input
refs #6458
2016-04-19 10:55:10 -05:00
Austin Burdine
8221f86fac deps: ember-power-select@0.9.2 2016-04-19 10:25:58 -05:00
Austin Burdine
6c5a4ed93d Merge pull request #6735 from kevinansfield/improve-pagination-mixin
Improve `PaginationRoute` mixin
2016-04-19 10:20:08 -05:00
Austin Burdine
a9f41c96a7 Merge pull request #6734 from kevinansfield/deps-ember-one-way-controls
deps: ember-one-way-controls@0.6.2
2016-04-19 08:35:47 -05:00
Hannah Wolfe
94a4e08809 Add config URLS to CORS whitelist
refs #6644

- urls specified in config.js should be considered whitelisted/trusted
- this is not quite straightforward because config.js is not ready at the point the middleware is required
- tests have been updated to cover these new cases + use rewire to override the internal whitelist cache
2016-04-19 13:39:24 +01:00
Kevin Ansfield
459f2c4355 Improve PaginationRoute mixin
no issue
- returns the promise/result from `loadNextPage` so that it's return value can be utilised in closure actions
- sets the `isLoading` property in `loadFirstPage` to match `loadNextPage` behaviour
- reset the `isLoading` property even if the request fails
- adds a `didReceivePaginationMeta` hook so that consumers of the mixin can use the metadata values without having to rely on observers
  - eg. pulling the `total` into a separate property that can be manipulated when items are added/removed but still reset to the sever's total value the next time a page is loaded
- renames the `pagination-route` mixin to simply `pagination` as it's not tied to routes and works equally well in other objects that need to paginate an API resource
2016-04-19 10:53:45 +01:00