Sebastian Gierlinger
ec46dc93ec
Merge pull request #2801 from ErisDS/issue-2773
...
correct settings.edit call signature for installedApps
2014-05-24 08:19:16 +02:00
Hannah Wolfe
4aabce4474
correct settings.edit call signature for installedApps
...
closes #2773
- this is left over from my refactoring work
2014-05-24 08:21:17 +02:00
Hannah Wolfe
b6528c0494
Merge pull request #2754 from sebgie/issue#2187
...
Improve status codes
2014-05-24 09:14:23 +03:00
Jacob Gable
f795a907f0
Add ghostPaths util and initializer
...
No Issue
- Move the ghostPaths from base model to utils
- Add initializer that injects it into every route, model and controller
- Add a adminUrl and apiUrl helper method
2014-05-24 08:52:47 +02:00
Sebastian Gierlinger
217e3ed7ad
Improve status codes
...
closes #2187
- added UnsupportedMediaTypeError (code: 415)
- added status code 201 if a new object was created
- Updated tests
2014-05-24 08:05:12 +02:00
Hannah Wolfe
11cf0ae125
Merge pull request #2791 from shindakun/assetcache
...
Make cache max-age on theme assets one year.
2014-05-23 19:05:49 +03:00
Hannah Wolfe
83f7cfe08b
Merge pull request #2788 from jaswilli/issue-1842-tests
...
Add tests for handlebars core helper functions
2014-05-23 16:15:16 +03:00
Martijn Swaagman
f7d2b6bd82
[fix] always add quotes
2014-05-23 14:37:03 +02:00
Martijn Swaagman
83742837c2
[docs] absolute=true will add options.hash
...
Ran into this will calling the helper from a theme, tried to get the absolute url, but just providing {{url absolute}} wasn't enough. After explicitly adding `=true` it worked.
2014-05-22 21:06:26 +02:00
Steve
5f7182b7a2
Make cache max-age on theme assets one year.
...
closes #2790
- Added one year in ms var.
- refs: #2447
2014-05-22 07:55:38 -07:00
Jason Williams
9d16e72bb0
Add tests for handlebars core helper functions
...
Closes #1842
-add unit tests for core helper functions
-fix up coreHelpers.e
-clean up coreHelpers.pagination
2014-05-22 03:57:52 +00:00
Hannah Wolfe
c7bbb9e789
Merge pull request #2782 from morficus/master
...
updating fixtures for posts data
2014-05-20 21:02:04 +03:00
Maurice Williams
33e3ad679e
Modifying "posts" fixture to match the new API data structure
...
closes #2415
- data now match the new Posts API data structure
- has enough entries to allow for scrolling
- also including the generator template (as a txt file) used in json-generator.com
2014-05-20 09:37:31 -05:00
fabfou
789f1bd968
Move debug page from /settings/debug to /debug
...
closes #2743
- remove settings/debug route and associated files
- reimplementation at debug route
2014-05-19 19:18:07 +02:00
Hannah Wolfe
6b1dd06364
Merge pull request #2769 from novaugust/ember-settings-fade
...
Added fade-in to ember settings panes
2014-05-19 20:01:16 +03:00
Hannah Wolfe
e30ea91234
Merge pull request #2764 from jgable/emberSignin
...
Improve signin
2014-05-18 15:56:54 +01:00
Hannah Wolfe
c15534c4de
Merge pull request #2771 from halfdan/2741-trailing-slashes
...
Correct behaviour for trailing slashes
2014-05-17 20:27:58 +01:00
Hannah Wolfe
b139bb6380
Merge pull request #2765 from novaugust/ember-content-redirect
...
Add /content redirect to Ember admin.
2014-05-17 20:24:10 +01:00
Hannah Wolfe
3ca815cc3d
Merge pull request #2772 from shindakun/profilelink
...
Corrected link to user profile settings
2014-05-17 20:23:07 +01:00
Hannah Wolfe
1c7a6f4a98
Merge pull request #2734 from shindakun/userurl
...
Validate user URL input to ensure protocol is present
2014-05-17 20:22:32 +01:00
Matt Enlow
992433a131
Added fade-in to ember settings panes
...
Closes #2749
- Add fade-in class to settings panes headers and contents
2014-05-15 19:59:06 -06:00
Matt Enlow
a29289c448
Add /content redirect to Ember admin.
...
Closes #2746
- Adds content route to router
- Content route transitions to posts route in the beforeModel hook.
2014-05-15 18:52:10 -06:00
Fabian Becker
f64203cdf7
Correct behaviour for trailing slashes
...
fixes #2741
- Extend HistoryLocation
- Add trailing slash to path
2014-05-15 22:28:05 +00:00
Jacob Gable
42a1d55858
Improve signin
...
Ref #2413
- Remove fixture and use actual API
- Store and send down actual logged in user data
- Refactor isLoggedIn to use computed property on application
- After signin, update user data in dependency container
- Add CSRF to all routes and controllers via initializer
- Update authenticated route to check for user.isLoggedIn
- Add notifications for signin error
- Add notifications.showAPIError helper
- Add plumbing for refreshless signup to doSignUp in admin controller
2014-05-15 09:18:43 -05:00
Steve
e0e9bf2046
Validate user URL input to ensure protocol is present
...
closes #1623
- added protocol validation to isURL on user settings validator.
- added placeholder URL to user profile template
- ref: https://github.com/sethlilly/Vapor/issues/10
- ref: https://github.com/oswaldoacauan/ghostium/issues/38
2014-05-15 06:34:07 -07:00
Steve
f6dd5c1e1d
Corrected link to user profile settings
...
closes #2745
- Added link
2014-05-15 06:27:38 -07:00
Hannah Wolfe
c02ebb0dcf
Refactor API arguments
...
closes #2610 , refs #2697
- cleanup API index.js, and add docs
- all API methods take consistent arguments: object & options
- browse, read, destroy take options, edit and add take object and options
- the context is passed as part of options, meaning no more .call
everywhere
- destroy expects an object, rather than an id all the way down to the model layer
- route params such as :id, :slug, and :key are passed as an option & used
to perform reads, updates and deletes where possible - settings / themes
may need work here still
- HTTP posts api can find a post by slug
- Add API utils for checkData
2014-05-15 10:41:05 +01:00
Jacob Gable
f565dd505a
Fix sign up not setting user on session
...
No issue found
- Grab user out of api response from users[0]
2014-05-14 20:38:58 -05:00
Hannah Wolfe
f1a3f1a7a5
Merge pull request #2753 from jgable/fixPermissable
...
Add apps permissable checks in posts and users
2014-05-14 22:10:44 +01:00
Hannah Wolfe
692573a241
Merge pull request #2735 from shindakun/tag404
...
Display 404 page if tag does not exist.
2014-05-14 16:32:18 +01:00
Hannah Wolfe
4c0010db45
Merge pull request #2673 from halfdan/2592-tags-api
...
Implements new Themes JSON API
2014-05-14 16:31:36 +01:00
Jacob Gable
0dc6dc29a7
Add apps permissable checks in posts and users
...
Closes #2738
- Re-introduce the TargetModel.permissable interface check in the
regular permission flow path
- Pass loadedPermissions, hasUserPermission and hasAppPermission to
permissable interface to reduce logic necessary
- Refactor recursive call to pass original arguments but with actual
model
- Refactor canThis(this.user) use in api/posts.js to just canThis(this)
2014-05-14 09:22:25 -05:00
Sebastian Gierlinger
d1149a927b
Fix validation
...
- fixed validation that broke when introducing error classes
- added a test
2014-05-14 15:30:46 +02:00
Fabian Becker
628654961a
Implements new Themes JSON API
...
closes #2592
- Add themes browse/read endpoint
- Add new permissions for themes (only admin by default)
- Add integration tests
2014-05-14 11:23:42 +02:00
Gabor Javorszky
24190a186e
Move mail api to json/api format
...
Fixes #2650
* rerouted all mail sending to api/mail
* changed request and response formats to json/api-like structure
* tested with forgotten password and new blog email
2014-05-13 17:34:37 +01:00
Hannah Wolfe
169a984372
Merge pull request #2737 from jaswilli/issue-2736-pg
...
Ensure settings values are strings before saving
2014-05-13 14:28:29 +01:00
Hannah Wolfe
89f140c48b
Merge pull request #2726 from jaswilli/issue-2720-tags
...
updateTags refactor
2014-05-13 11:32:16 +01:00
Jason Williams
414890f263
Ensure settings values are strings before saving
...
closes #2736
-reintroduces JSON.stringify for non-string values in
api.settings.edit
-added a regression test
2014-05-13 05:36:18 +00:00
Jason Williams
954cb1a59e
updateTags refactor
...
closes #2720
-refactor Models.Posts.updateTags method to reduce complexity
2014-05-12 21:03:26 +00:00
Steve
eb2fdc44fb
Display 404 page if tag does not exist.
...
closes #2667
- if tag result is '' 404 instead of rendering an empty page
- added test for /tag/asdf should 404
2014-05-12 11:30:08 -07:00
Hannah Wolfe
10759ed45a
Merge pull request #2733 from jaswilli/test-error
...
Fix intermittent image upload modal failures
2014-05-12 10:27:15 +01:00
Jason Williams
0d7a935855
Fix intermittent image upload modal failures
...
ref #1702
-wait for logo upload modal to go away before beginning test
for cover upload modal
2014-05-12 02:31:20 +00:00
Jason Williams
ef1bc05422
Another adjustment to handle timing issue on tests
...
ref #1702
-timing issue with the test still exists in #2729 since
.description is added to the dom after the fact via js
2014-05-11 19:25:48 +00:00
Hannah Wolfe
e4799e3fb0
Merge pull request #2729 from jaswilli/test-errors
...
Adjust test to handle timing issue on upload modal
2014-05-11 20:06:30 +01:00
Jason Williams
e3c3c2ab30
Adjust test to handle timing issue on upload modal
...
ref #1702
-change the tests for the cover and logo image upload modal to
handle a timing issue in the way they are rendered
2014-05-11 18:31:48 +00:00
Hannah Wolfe
31b693da1f
Add try-catch to startup
...
- Should prevent Ghost from exiting without an error message
2014-05-11 17:33:18 +01:00
Hannah Wolfe
25ec0f3f75
Merge pull request #2719 from appleYaks/import-backward-compatible
...
Make DB Import backwards compatible
2014-05-11 16:17:17 +01:00
Sebastian Gierlinger
fd0f5a5028
Add distinct error classes
...
closes #2690
- added new error classes
- moved errorhandling.js to /errors/index.js
- changed API errors to use new classes
- updated tests
2014-05-09 12:11:29 +02:00
David Arvelo
eb18991ddb
Make DB Import backwards compatible
...
closes #2716
- Continues to parse and allow import with the old format
- Detects the presence of the new JSON-API format and allows import
2014-05-08 20:29:45 -04:00
Hannah Wolfe
d4a6eb26a4
Merge pull request #2713 from jaswilli/startup-issues
...
Don't xmlrpc ping for the default Welcome to Ghost post
2014-05-08 12:24:39 +01:00