0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/ghost/admin
Manuel Mitasch b1b15afc5e Ember.js: User fixtures + injection + login
* Adding **user fixtures** for signin

* Adds an initializer for the **current logged in user**.
The created singleton object is injected into all controllers + routes.
It can be used inside routes + controllers with this.get('user').
For simple development the object is instanciated with a userFixture.
Once a proper login and api mock is in place, the fixture needs to be removed.

* Added **route 'login'** on url '/ghost/ember/signin'
* Added authenticated route with an error hook that redirects to the login route, if status 401 (unauthorized) is returned from REST API.
* All "secure" routes now extend from authenticated route
* Add /ghost/ember to noAuthNeeded routes in middleware
2014-03-12 19:26:47 +01:00
..
assets/vendor Adding missing loader.js 2014-03-07 10:14:40 +00:00
components Amend fixtures & put body classes in styleBody mixin 2014-03-09 15:30:54 +00:00
controllers Ember.js: User fixtures + injection + login 2014-03-12 19:26:47 +01:00
fixtures Ember.js: User fixtures + injection + login 2014-03-12 19:26:47 +01:00
helpers Amend fixtures & put body classes in styleBody mixin 2014-03-09 15:30:54 +00:00
initializers Ember.js: User fixtures + injection + login 2014-03-12 19:26:47 +01:00
mixins Amend fixtures & put body classes in styleBody mixin 2014-03-09 15:30:54 +00:00
models Minor refactoring of the routers: 2014-03-07 14:01:27 +00:00
routes Ember.js: User fixtures + injection + login 2014-03-12 19:26:47 +01:00
templates Ember.js: User fixtures + injection + login 2014-03-12 19:26:47 +01:00
utils Amend fixtures & put body classes in styleBody mixin 2014-03-09 15:30:54 +00:00
views Specify itemView on the each helper rather than nesting a view helper. 2014-03-09 14:20:15 -07:00
app.js Ember.js: User fixtures + injection + login 2014-03-12 19:26:47 +01:00
router.js Ember.js: User fixtures + injection + login 2014-03-12 19:26:47 +01:00