mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Move Ember Admin to use es6 modules
- adds required dependencies to package.json and to bower.json - added required Grunt tasks to transpile and concat ember admin files
This commit is contained in:
parent
8b91492830
commit
d456281668
3 changed files with 15 additions and 8 deletions
|
@ -1,6 +1,8 @@
|
||||||
/*global Ember */
|
/*global Ember */
|
||||||
|
|
||||||
var App = Ember.Application.create({
|
import Resolver from 'ember/resolver';
|
||||||
|
|
||||||
|
var App = Ember.Application.extend({
|
||||||
/**
|
/**
|
||||||
* These are debugging flags, they are useful during development
|
* These are debugging flags, they are useful during development
|
||||||
*/
|
*/
|
||||||
|
@ -9,6 +11,8 @@ var App = Ember.Application.create({
|
||||||
LOG_TRANSITIONS: true,
|
LOG_TRANSITIONS: true,
|
||||||
LOG_TRANSITIONS_INTERNAL: true,
|
LOG_TRANSITIONS_INTERNAL: true,
|
||||||
LOG_VIEW_LOOKUPS: true,
|
LOG_VIEW_LOOKUPS: true,
|
||||||
rootElement: '#ember-app' // tells ember to inject this app into element with selector #ember-app
|
modulePrefix: 'ghost', // TODO: loaded via config
|
||||||
|
Resolver: Resolver['default']
|
||||||
});
|
});
|
||||||
|
|
||||||
|
export default App;
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
/*global App */
|
/*global Ember */
|
||||||
|
|
||||||
App.Router.map(function () {
|
// ensure we don't share routes between all Router instances
|
||||||
|
var Router = Ember.Router.extend();
|
||||||
|
|
||||||
|
Router.map(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
this.resource('posts');
|
|
||||||
this.resource('post', {path: 'post/:id'}, function () {
|
|
||||||
this.route('edit');
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
export default Router;
|
||||||
|
|
1
ghost/admin/templates/index.hbs
Executable file
1
ghost/admin/templates/index.hbs
Executable file
|
@ -0,0 +1 @@
|
||||||
|
<em>This is the index route</em>
|
Loading…
Add table
Reference in a new issue