ember-cli 1.13.1
This commit is contained in:
parent
780b5ddb6c
commit
58779a4a7d
13 changed files with 63 additions and 31 deletions
|
@ -1,5 +1,5 @@
|
|||
export function initialize(container, application) {
|
||||
application.inject('component', 'store', 'store:main');
|
||||
application.inject('component', 'store', 'service:store');
|
||||
}
|
||||
|
||||
export default {
|
||||
|
|
|
@ -7,10 +7,10 @@ var globals = Ember.Object.extend({
|
|||
});
|
||||
|
||||
export function initialize(container, application) {
|
||||
application.register('global:variables', globals, {singleton: true});
|
||||
application.inject('controller', 'globals', 'global:variables');
|
||||
application.inject('component', 'globals', 'global:variables');
|
||||
application.inject('adapter', 'globals', 'global:variables');
|
||||
application.register('service:globals', globals, {singleton: true});
|
||||
application.inject('controller', 'globals', 'service:globals');
|
||||
application.inject('component', 'globals', 'service:globals');
|
||||
application.inject('adapter', 'globals', 'service:globals');
|
||||
}
|
||||
|
||||
export default {
|
||||
|
|
|
@ -20,7 +20,7 @@ export default DS.RESTAdapter.extend({
|
|||
errors = {};
|
||||
if (response.errors !== undefined) {
|
||||
var jsonErrors = response.errors;
|
||||
Ember.EnumerableUtils.forEach(Ember.keys(jsonErrors), function(key) {
|
||||
Ember.EnumerableUtils.forEach(Object.keys(jsonErrors), function(key) {
|
||||
errors[Ember.String.camelize(key)] = jsonErrors[key];
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{#x-application}}
|
||||
<div class="flakes-navigation">
|
||||
{{site-logo}}
|
||||
{{#if session.isAuthenticated}}
|
||||
|
@ -49,3 +50,4 @@
|
|||
{{outlet}}
|
||||
</div>
|
||||
</div>
|
||||
{{/x-application}}
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
import Ember from 'ember';
|
||||
/* global FlakesFrame */
|
||||
|
||||
export default Ember.View.extend({
|
||||
classNames: ['flakes-frame'],
|
||||
didInsertElement: function() {
|
||||
FlakesFrame.init();
|
||||
}
|
||||
});
|
3
app/pods/components/site-logo/component.js
Normal file
3
app/pods/components/site-logo/component.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.Component.extend({});
|
10
app/pods/components/x-application/component.js
Normal file
10
app/pods/components/x-application/component.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.Component.extend({
|
||||
classNames: ["flakes-frame"],
|
||||
|
||||
didInsertElement: function() {
|
||||
FlakesFrame.init();
|
||||
},
|
||||
|
||||
});
|
1
app/pods/components/x-application/template.hbs
Normal file
1
app/pods/components/x-application/template.hbs
Normal file
|
@ -0,0 +1 @@
|
|||
{{yield}}
|
10
bower.json
10
bower.json
|
@ -2,14 +2,14 @@
|
|||
"name": "hymenobacterdotinfo",
|
||||
"dependencies": {
|
||||
"jquery": "~2.1.1",
|
||||
"ember": "1.12.0",
|
||||
"ember": "1.13.3",
|
||||
"ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3",
|
||||
"ember-cli-test-loader": "ember-cli-test-loader#0.1.3",
|
||||
"ember-data": "1.0.0-beta.18",
|
||||
"ember-load-initializers": "ember-cli/ember-load-initializers#0.1.4",
|
||||
"ember-qunit": "0.3.3",
|
||||
"ember-data": "1.13.5",
|
||||
"ember-load-initializers": "ember-cli/ember-load-initializers#0.1.5",
|
||||
"ember-qunit": "0.4.1",
|
||||
"ember-qunit-notifications": "0.0.7",
|
||||
"ember-resolver": "~0.1.15",
|
||||
"ember-resolver": "~0.1.18",
|
||||
"loader.js": "ember-cli/loader.js#3.2.0",
|
||||
"qunit": "~1.17.1",
|
||||
"flakes": "~1.0.0",
|
||||
|
|
24
ember-cli-build.js
Normal file
24
ember-cli-build.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
/* global require, module */
|
||||
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
|
||||
|
||||
module.exports = function(defaults) {
|
||||
var app = new EmberApp(defaults, {
|
||||
// Add options here
|
||||
});
|
||||
|
||||
// STYLES //////////////////////////////////////////////////////////////////////
|
||||
// flakes (and deps)
|
||||
app.import('bower_components/flakes/css/all.css');
|
||||
app.import('bower_components/gridforms/gridforms/gridforms.css');
|
||||
|
||||
// LIBS ////////////////////////////////////////////////////////////////////////
|
||||
// flakes (and deps)
|
||||
app.import('bower_components/snapjs/snap.js');
|
||||
app.import('bower_components/responsive-elements/responsive-elements.js');
|
||||
app.import('bower_components/gridforms/gridforms/gridforms.js');
|
||||
app.import('bower_components/flakes/js/base.js');
|
||||
// moment
|
||||
app.import('bower_components/moment/moment.js');
|
||||
|
||||
return app.toTree();
|
||||
};
|
17
package.json
17
package.json
|
@ -20,25 +20,26 @@
|
|||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"broccoli-asset-rev": "^2.0.2",
|
||||
"ember-cli": "0.2.7",
|
||||
"ember-cli-app-version": "0.3.3",
|
||||
"ember-cli": "1.13.1",
|
||||
"ember-cli-app-version": "0.4.0",
|
||||
"ember-cli-babel": "^5.0.0",
|
||||
"ember-cli-content-security-policy": "0.4.0",
|
||||
"ember-cli-dependency-checker": "^1.0.0",
|
||||
"ember-cli-divshot": "^0.1.7",
|
||||
"ember-cli-flash": "1.1.4",
|
||||
"ember-cli-htmlbars": "0.7.6",
|
||||
"ember-cli-ic-ajax": "0.1.1",
|
||||
"ember-cli-htmlbars": "0.7.9",
|
||||
"ember-cli-htmlbars-inline-precompile": "^0.1.1",
|
||||
"ember-cli-ic-ajax": "0.2.1",
|
||||
"ember-cli-inject-live-reload": "^1.3.0",
|
||||
"ember-cli-qunit": "0.3.13",
|
||||
"ember-cli-qunit": "0.3.15",
|
||||
"ember-cli-simple-auth": "^0.8.0",
|
||||
"ember-cli-simple-auth-token": "^0.7.2",
|
||||
"ember-cli-release": "0.2.3",
|
||||
"ember-cli-uglify": "^1.0.1",
|
||||
"ember-data": "1.0.0-beta.18",
|
||||
"ember-data": "1.13.5",
|
||||
"ember-disable-proxy-controllers": "^1.0.0",
|
||||
"ember-export-application-global": "^1.0.2",
|
||||
"ember-select-2": "1.3.0",
|
||||
"ember-table": "0.5.0",
|
||||
"glob": "^4.5.3"
|
||||
"ember-table": "0.5.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
"node": false,
|
||||
"browser": false,
|
||||
"boss": true,
|
||||
"curly": false,
|
||||
"curly": true,
|
||||
"debug": false,
|
||||
"devel": false,
|
||||
"eqeqeq": true,
|
||||
|
@ -47,5 +47,6 @@
|
|||
"strict": false,
|
||||
"white": false,
|
||||
"eqnull": true,
|
||||
"esnext": true
|
||||
"esnext": true,
|
||||
"unused": true
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import Ember from 'ember';
|
||||
import Application from '../../app';
|
||||
import Router from '../../router';
|
||||
import config from '../../config/environment';
|
||||
|
||||
export default function startApp(attrs) {
|
||||
|
|
Reference in a new issue