ember-cli 1.13.1

This commit is contained in:
Matthew Dillon 2015-07-09 11:40:58 -08:00
parent 780b5ddb6c
commit 58779a4a7d
13 changed files with 63 additions and 31 deletions

View file

@ -1,5 +1,5 @@
export function initialize(container, application) { export function initialize(container, application) {
application.inject('component', 'store', 'store:main'); application.inject('component', 'store', 'service:store');
} }
export default { export default {

View file

@ -7,10 +7,10 @@ var globals = Ember.Object.extend({
}); });
export function initialize(container, application) { export function initialize(container, application) {
application.register('global:variables', globals, {singleton: true}); application.register('service:globals', globals, {singleton: true});
application.inject('controller', 'globals', 'global:variables'); application.inject('controller', 'globals', 'service:globals');
application.inject('component', 'globals', 'global:variables'); application.inject('component', 'globals', 'service:globals');
application.inject('adapter', 'globals', 'global:variables'); application.inject('adapter', 'globals', 'service:globals');
} }
export default { export default {

View file

@ -20,7 +20,7 @@ export default DS.RESTAdapter.extend({
errors = {}; errors = {};
if (response.errors !== undefined) { if (response.errors !== undefined) {
var jsonErrors = response.errors; 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]; errors[Ember.String.camelize(key)] = jsonErrors[key];
}); });
} }

View file

@ -1,3 +1,4 @@
{{#x-application}}
<div class="flakes-navigation"> <div class="flakes-navigation">
{{site-logo}} {{site-logo}}
{{#if session.isAuthenticated}} {{#if session.isAuthenticated}}
@ -49,3 +50,4 @@
{{outlet}} {{outlet}}
</div> </div>
</div> </div>
{{/x-application}}

View file

@ -1,9 +0,0 @@
import Ember from 'ember';
/* global FlakesFrame */
export default Ember.View.extend({
classNames: ['flakes-frame'],
didInsertElement: function() {
FlakesFrame.init();
}
});

View file

@ -0,0 +1,3 @@
import Ember from 'ember';
export default Ember.Component.extend({});

View file

@ -0,0 +1,10 @@
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ["flakes-frame"],
didInsertElement: function() {
FlakesFrame.init();
},
});

View file

@ -0,0 +1 @@
{{yield}}

View file

@ -2,14 +2,14 @@
"name": "hymenobacterdotinfo", "name": "hymenobacterdotinfo",
"dependencies": { "dependencies": {
"jquery": "~2.1.1", "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-shims": "ember-cli/ember-cli-shims#0.0.3",
"ember-cli-test-loader": "ember-cli-test-loader#0.1.3", "ember-cli-test-loader": "ember-cli-test-loader#0.1.3",
"ember-data": "1.0.0-beta.18", "ember-data": "1.13.5",
"ember-load-initializers": "ember-cli/ember-load-initializers#0.1.4", "ember-load-initializers": "ember-cli/ember-load-initializers#0.1.5",
"ember-qunit": "0.3.3", "ember-qunit": "0.4.1",
"ember-qunit-notifications": "0.0.7", "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", "loader.js": "ember-cli/loader.js#3.2.0",
"qunit": "~1.17.1", "qunit": "~1.17.1",
"flakes": "~1.0.0", "flakes": "~1.0.0",

24
ember-cli-build.js Normal file
View 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();
};

View file

@ -20,25 +20,26 @@
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"broccoli-asset-rev": "^2.0.2", "broccoli-asset-rev": "^2.0.2",
"ember-cli": "0.2.7", "ember-cli": "1.13.1",
"ember-cli-app-version": "0.3.3", "ember-cli-app-version": "0.4.0",
"ember-cli-babel": "^5.0.0", "ember-cli-babel": "^5.0.0",
"ember-cli-content-security-policy": "0.4.0", "ember-cli-content-security-policy": "0.4.0",
"ember-cli-dependency-checker": "^1.0.0", "ember-cli-dependency-checker": "^1.0.0",
"ember-cli-divshot": "^0.1.7", "ember-cli-divshot": "^0.1.7",
"ember-cli-flash": "1.1.4", "ember-cli-flash": "1.1.4",
"ember-cli-htmlbars": "0.7.6", "ember-cli-htmlbars": "0.7.9",
"ember-cli-ic-ajax": "0.1.1", "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-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": "^0.8.0",
"ember-cli-simple-auth-token": "^0.7.2", "ember-cli-simple-auth-token": "^0.7.2",
"ember-cli-release": "0.2.3",
"ember-cli-uglify": "^1.0.1", "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-disable-proxy-controllers": "^1.0.0",
"ember-export-application-global": "^1.0.2", "ember-export-application-global": "^1.0.2",
"ember-select-2": "1.3.0", "ember-select-2": "1.3.0",
"ember-table": "0.5.0", "ember-table": "0.5.0"
"glob": "^4.5.3"
} }
} }

View file

@ -26,7 +26,7 @@
"node": false, "node": false,
"browser": false, "browser": false,
"boss": true, "boss": true,
"curly": false, "curly": true,
"debug": false, "debug": false,
"devel": false, "devel": false,
"eqeqeq": true, "eqeqeq": true,
@ -47,5 +47,6 @@
"strict": false, "strict": false,
"white": false, "white": false,
"eqnull": true, "eqnull": true,
"esnext": true "esnext": true,
"unused": true
} }

View file

@ -1,6 +1,5 @@
import Ember from 'ember'; import Ember from 'ember';
import Application from '../../app'; import Application from '../../app';
import Router from '../../router';
import config from '../../config/environment'; import config from '../../config/environment';
export default function startApp(attrs) { export default function startApp(attrs) {