From afd5ab704de31a0b526b178f03205e282167ef4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kenneth=20Dahlstr=C3=B8m?= Date: Thu, 23 Jun 2016 13:29:55 +0200 Subject: [PATCH] Updated ember to v2.6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kenneth Dahlstrøm --- .travis.yml | 9 +- .watchmanconfig | 2 +- README.md | 12 ++- app/app.js | 8 +- .../components/content-section/component.js | 3 +- .../components/content-section/template.hbs | 5 +- .../components/header-section/template.hbs | 6 +- app/pods/components/my-modal/template.hbs | 5 - app/pods/components/nav-internal/component.js | 40 +++---- app/resolver.js | 3 + app/styles/_bootstrap-custom.scss | 100 +++++++++--------- app/styles/app.scss | 8 +- bower.json | 21 ++-- config/environment.js | 90 ++++++++-------- ember-cli-build.js | 51 ++++----- package.json | 55 +++++----- testem.js | 13 +++ tests/helpers/destroy-app.js | 5 + tests/helpers/module-for-acceptance.js | 23 ++++ tests/helpers/resolver.js | 4 +- tests/helpers/start-app.js | 6 +- tests/index.html | 19 ++-- 22 files changed, 261 insertions(+), 227 deletions(-) create mode 100644 app/resolver.js create mode 100644 testem.js create mode 100644 tests/helpers/destroy-app.js create mode 100644 tests/helpers/module-for-acceptance.js diff --git a/.travis.yml b/.travis.yml index 66dd107..64533be 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ --- language: node_js node_js: - - "0.12" + - "4" sudo: false @@ -10,12 +10,11 @@ cache: - node_modules before_install: - - export PATH=/usr/local/phantomjs-2.0.0/bin:$PATH - - "npm config set spin false" - - "npm install -g npm@^2" + - npm config set spin false + - npm install -g bower + - npm install phantomjs-prebuilt install: - - npm install -g bower - npm install - bower install diff --git a/.watchmanconfig b/.watchmanconfig index 5e9462c..e7834e3 100644 --- a/.watchmanconfig +++ b/.watchmanconfig @@ -1,3 +1,3 @@ { - "ignore_dirs": ["tmp"] + "ignore_dirs": ["tmp", "dist"] } diff --git a/README.md b/README.md index d9dc038..ee83d1b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Design This README outlines the details of collaborating on this Ember application. -A short introduction of this app could easily go here. + ## Prerequisites @@ -10,7 +10,7 @@ You will need the following things properly installed on your computer. * [Git](http://git-scm.com/) * [Node.js](http://nodejs.org/) (with NPM) * [Bower](http://bower.io/) -* [Ember CLI](http://www.ember-cli.com/) +* [Ember CLI](http://ember-cli.com/) * [PhantomJS](http://phantomjs.org/) ## Installation @@ -46,8 +46,14 @@ Specify what it takes to deploy your app. ## Further Reading / Useful Links * [ember.js](http://emberjs.com/) -* [ember-cli](http://www.ember-cli.com/) +* [ember-cli](http://ember-cli.com/) * Development Browser Extensions * [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi) * [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/) +## Todo + + +[ ] Resources formats with descriptions +[ ] Make section-links available for deep-linking straight to content. +[ ] Feedback for each diff --git a/app/app.js b/app/app.js index 8d66b95..831ad61 100644 --- a/app/app.js +++ b/app/app.js @@ -1,16 +1,16 @@ import Ember from 'ember'; -import Resolver from 'ember/resolver'; -import loadInitializers from 'ember/load-initializers'; +import Resolver from './resolver'; +import loadInitializers from 'ember-load-initializers'; import config from './config/environment'; -var App; +let App; Ember.MODEL_FACTORY_INJECTIONS = true; App = Ember.Application.extend({ modulePrefix: config.modulePrefix, podModulePrefix: config.podModulePrefix, - Resolver: Resolver + Resolver }); loadInitializers(App, config.modulePrefix); diff --git a/app/pods/components/content-section/component.js b/app/pods/components/content-section/component.js index f9e5a83..1993e33 100644 --- a/app/pods/components/content-section/component.js +++ b/app/pods/components/content-section/component.js @@ -19,7 +19,8 @@ export default Ember.Component.extend({ }, actions: { openModal(element){ - Ember.$('#modal-image-'+element).modal(); + console.log("#"+element + "-modal"); + Ember.$("#"+element + "-modal").modal(); //console.log('modal-image-'+element); } } diff --git a/app/pods/components/content-section/template.hbs b/app/pods/components/content-section/template.hbs index 517d28f..aa77cb2 100644 --- a/app/pods/components/content-section/template.hbs +++ b/app/pods/components/content-section/template.hbs @@ -41,9 +41,10 @@ - {{#my-modal title=title basename=basename}} + {{#bs-modal title=title basename=basename footer=false open=false id=basename}} - {{/my-modal}} + {{bs-modal-footer closeTitle="Cancel" submitTitle="Ok"}} + {{/bs-modal}} diff --git a/app/pods/components/header-section/template.hbs b/app/pods/components/header-section/template.hbs index 4cea7fa..46427a7 100644 --- a/app/pods/components/header-section/template.hbs +++ b/app/pods/components/header-section/template.hbs @@ -26,9 +26,9 @@