Commit Graph

2619 Commits

Author SHA1 Message Date
Sebastian Gierlinger
c8e8da4780 oAuth
closes #2759
closes #3027

- added oauth2orize library for server side oAuth handling
- added ember-simple-auth library for admin oAuth handling
- added tables for client, accesstoken and refreshtoken
- implemented RFC6749 4.3 Ressouce Owner Password Credentials Grant
- updated api tests with oAuth
- removed session, authentication is now token based

Known issues:
- Restore spam prevention #3128
- Signin after Signup #3125
- Signin validation #3125

**Attention**
- oldClient doesn't work with this PR anymore, session authentication
was
removed
2014-06-30 14:58:10 +02:00
Hannah Wolfe
44b4327423 Merge pull request #3148 from javorszky/iss3130
Bower's indentation is changed (grumble)
2014-06-29 16:21:58 +01:00
Gabor Javorszky
ee70622264 Bower's indentation is changed (grumble)
Closes #3130.

Because I flipped the table a TON of times that one file creating bloody merge conflicts ALL THE TIME. I have better use of my time than fixing indentation in merge conflict files. </rant>
2014-06-29 14:54:07 +01:00
Hannah Wolfe
2d64372d6e Merge pull request #3132 from darvelo/tags-embedded
Calls to POST API have include=tags
2014-06-28 18:01:04 +01:00
David Arvelo
8cbc6dc3b7 Calls to POST API have include=tags
closes #2998
- update PostSerializer to use DS.EmbeddedRecordsMixin
- create PostAdapter to include include=tags in query params for POST and PUT
- set include=tags for various GET post requests
- change PostModel to have { embedded: always } instead of { async: true }
- update Ember-Data to beta8 from beta7
- make call to get tags from model in editor.edit route synchronous since the tags now exist in the store
- change casper test to wait for call to posts api with `?include=tags`
2014-06-28 03:13:31 -04:00
Hannah Wolfe
7eab416d01 Merge pull request #3142 from novaugust/submodule-init
Add --init param to update_submodules grunt task
2014-06-27 22:07:24 +01:00
Hannah Wolfe
1b21a42b48 Merge pull request #3129 from jaswilli/issue-3071
Fix mail test send endpoint
2014-06-27 22:07:13 +01:00
Hannah Wolfe
39d8136666 Merge pull request #3112 from ErisDS/issue-3008
Ember post order matches server post order
2014-06-27 21:59:20 +01:00
Hannah Wolfe
5db08ee333 Ember post order matches server post order
fixes #3008

- this effectively breaks the sort order on the client, because the serverside order is marginally broken.
2014-06-27 21:57:59 +01:00
Hannah Wolfe
a7767a0586 Merge pull request #3115 from halfdan/2850-post-notifications
Show correct post notificatons based on status.
2014-06-27 21:52:28 +01:00
Hannah Wolfe
6cd6260fd2 Merge pull request #3111 from halfdan/3105-notifications
Close notifications on user action properly.
2014-06-27 21:35:29 +01:00
Matt Enlow
3011834177 Add --init param to update_submodules grunt task
Closes #3141
2014-06-27 11:05:09 -06:00
John O'Nolan
e2ca73a1a0 Merge pull request #3113 from ErisDS/issue-3106
Change text on leave modal cancel button
2014-06-27 19:00:11 +02:00
Jason Williams
2356692fe3 Fix mail test send endpoint
Closes #3071
-Refactor api.mail.sendTest to take a "to:" parameter.
-Inject recipient address into the mail api's sendTest method
 from the route handler.
2014-06-26 22:00:31 +00:00
Hannah Wolfe
0436fb71d2 Merge pull request #3117 from ErisDS/switch-tests
Switching the tests to use ember admin by default
2014-06-26 19:33:58 +01:00
Hannah Wolfe
b391c8d1ae Switching the tests to use ember admin by default
ref #3060

- Some of our tests use the old signin/signout as part of the setup/teardown process. The old stuff is going away, so this PR switches everything over to use the new admin by default.
- There wil be a further PR to remove the old stuff completely soon.
2014-06-26 16:05:42 +01:00
Hannah Wolfe
7e5b914318 Merge pull request #3102 from halfdan/3072-setup-screen
New setup screen for blog installation.
2014-06-26 15:25:32 +01:00
Fabian Becker
72156c7f89 New setup screen for blog installation.
fixes #3072
- Change router to handle /ember/setup/
- Adjust doSignup to also handle setup
- Adjust tests and add new where necessary
- Add setup controller, setup validation, setup route
- Adjust casper emberSetup to handle new setup
2014-06-26 15:31:44 +02:00
Hannah Wolfe
ce4d57eea2 Merge pull request #3116 from PaulAdamDavis/master
Update Ghost-UI version to 0.8.1
2014-06-26 13:26:55 +01:00
Paul Adam Davis
bcc08d065b Update Ghost-UI version to 0.8.1
References #3102 #2491
2014-06-26 12:55:49 +01:00
Fabian Becker
7fec884ea0 Show correct post notificatons based on status.
closes #2850
- Add messageMap from old admin
- Add two methods to pick the correct notification based on prev status and current status
2014-06-26 09:42:29 +00:00
Hannah Wolfe
b2c3e7b6a9 Change text on leave modal cancel button
issue #3106
2014-06-26 09:04:52 +01:00
Fabian Becker
1af5eb6248 Close notifications on user action properly.
fixes #3105, refs #3012
- Add additional closeAll() calls where users interact with data
2014-06-25 16:56:09 +00:00
Hannah Wolfe
9c4f427340 Merge pull request #3108 from novaugust/touch-editor-off
Add off as a noop function to touch editor.
2014-06-25 17:06:38 +01:00
Matt Enlow
0bb4c1bd06 Add off as a noop function to touch editor.
Closes #3107
2014-06-25 10:04:00 -06:00
Hannah Wolfe
da4fc98d47 Merge pull request #3104 from jaswilli/route-undefined
Stay on posts.index route when no posts exist
2014-06-25 16:21:42 +01:00
Jason Williams
450095460a Stay on posts.index route when no posts exist
No Issue
2014-06-25 14:56:41 +00:00
Hannah Wolfe
df8e7263e1 Merge pull request #3098 from halfdan/3095-non-mobile-tabbing
Allow tabbing responsive editor when not on mobile.
2014-06-25 15:33:23 +01:00
Fabian Becker
b2662bbdff Allow tabbing responsive editor when not on mobile.
fixes #3095
- Add `click` event to floatingheader
2014-06-25 12:30:57 +00:00
Hannah Wolfe
4bc166e252 Merge pull request #3091 from jaswilli/debug
Finish Debug screen for Ember admin
2014-06-25 11:15:08 +01:00
Jason Williams
39c0f219e6 Finish Debug screen for Ember admin
Closes #2847
2014-06-25 04:36:17 +00:00
Hannah Wolfe
ca19017509 Set edit post shortcut to 'enter'
closes #2308
2014-06-24 23:58:43 +01:00
Hannah Wolfe
0c102f3e85 Merge pull request #3052 from ErisDS/issue-2851
Add error template, routes and controller
2014-06-24 23:52:29 +01:00
Hannah Wolfe
aabf853f88 Merge pull request #3055 from darvelo/mobile-interactions
Mobile Interactions
2014-06-24 23:52:14 +01:00
Hannah Wolfe
7bbf372660 Merge pull request #3050 from darvelo/mobile-editor
Implement Mobile Editor
2014-06-24 23:51:55 +01:00
Hannah Wolfe
30a96f9f30 Merge pull request #3089 from halfdan/app-slug
Generate slug when adding new app.
2014-06-24 23:34:53 +01:00
David Arvelo
d236d0a7c3 Mobile Interactions
closes #3018
- split clientold mobile interactions into their respective Ember routes/views
- create PostsView and SettingsView with mobile interactions
- place interactions for the publish bar into ApplicationRoute on init
2014-06-24 18:33:59 -04:00
David Arvelo
6658675646 Implement Mobile Editor
closes #2957
- add FastClick library to Gruntfile.js
- add touch-editor to client/assets/lib/
- add mobile-specific utils to util/mobile-utils.js
- add codemirror util to set up TouchEditor only if we're really on mobile
- change gh-codemirror from having a default action to a named action. prevents Ember.TextArea firing action on change
- change gh-codemirror `cm.getDoc().getValue()` to `cm.getValue()` for portability
- change codemirror-shortcuts ES6 export/import style
- changed ghostimagepreview.js to check for Ember.touchEditor in addition to Ghost.touchEditor
2014-06-24 18:33:43 -04:00
Hannah Wolfe
299b59385b Add error template, route and controller
closes #2851

- adds asset paths to ghostPaths as we don't have an asset helper
- sends any invalid routes to 404
2014-06-24 23:33:02 +01:00
Fabian Becker
3d2205195d Generate slug when adding new app.
No issue
- Remove duplicate code from model_posts_spec.
- Add slug generation to app model
- Test slug generation on app model
2014-06-24 22:20:35 +00:00
Hannah Wolfe
e0587ed79b Merge pull request #3054 from jaswilli/issue-3036-settings
Enable validation for settings/general screen
2014-06-24 23:00:56 +01:00
Hannah Wolfe
36fc769733 Merge pull request #3090 from PaulAdamDavis/master
Update Ghost-UI version in bower.json
2014-06-24 22:42:25 +01:00
Paul Adam Davis
d168968cb4 Update Ghost-UI version in bower.json
No issue

- Update the version of Ghost-UI Bower is looking for.
2014-06-24 21:55:21 +01:00
Hannah Wolfe
62ec124aee Merge pull request #3066 from kevinansfield/fix-sticky-incomplete-tags
Fix incomplete tags sticking between post edits
2014-06-24 21:07:27 +01:00
John O'Nolan
1a47a64f3f Merge pull request #3070 from PaulAdamDavis/remove-ember-hacks-css
Remove ember-hacks.css file
2014-06-24 15:51:41 +02:00
Paul Adam Davis
92fe4966c9 Remove ember-hacks.css file
No issue

- Removes `ember-hacks.css` file and move some of its styles into Ghost-UI
2014-06-24 14:49:37 +01:00
Jason Williams
b9f9c576ed Enable validation for settings/general screen
Closes #3036 Refs #3012
-Enable validation for settings/general
-Turn on functional tests for the validations
-Move notification closeAll calls so that notifications
 are cleared on attempted saves instead of just on
 successful saves
2014-06-24 13:32:47 +00:00
Kevin Ansfield
dc73235232 Fixes incomplete tags showing when switching to edit a different post
closes #3065
- send 'reset' action to PostTagsInputController when associated view is destroyed
2014-06-24 15:09:11 +02:00
Hannah Wolfe
f9f7201f5a Merge pull request #3063 from JohnONolan/pg
Language cleanup in update check disclosure
2014-06-24 13:50:21 +01:00
John O'Nolan
2fbac60c58 Language cleanup in update check disclosure 2014-06-24 14:59:34 +02:00