Skip to content
This repository has been archived by the owner on Nov 6, 2018. It is now read-only.

Commit

Permalink
Updated ember to v2.6
Browse files Browse the repository at this point in the history
Signed-off-by: Kenneth Dahlstrøm <[email protected]>
  • Loading branch information
kedano committed Jun 23, 2016
1 parent c91b5d2 commit afd5ab7
Show file tree
Hide file tree
Showing 22 changed files with 261 additions and 227 deletions.
9 changes: 4 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
language: node_js
node_js:
- "0.12"
- "4"

sudo: false

Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion .watchmanconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"ignore_dirs": ["tmp"]
"ignore_dirs": ["tmp", "dist"]
}
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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
8 changes: 4 additions & 4 deletions app/app.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
3 changes: 2 additions & 1 deletion app/pods/components/content-section/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
5 changes: 3 additions & 2 deletions app/pods/components/content-section/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@
<img {{action 'openModal' basename}} class="img-illustration" data-id="image-{{convert-aeoaa basename}}" src="https://hiof.no/assets/plugins/design-{{type}}/illustrations/{{illustration}}">


{{#my-modal title=title basename=basename}}
{{#bs-modal title=title basename=basename footer=false open=false id=basename}}
<img src="https://hiof.no/assets/plugins/design-{{type}}/illustrations/{{illustration}}">
{{/my-modal}}
{{bs-modal-footer closeTitle="Cancel" submitTitle="Ok"}}
{{/bs-modal}}

</aside>

Expand Down
6 changes: 2 additions & 4 deletions app/pods/components/header-section/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@


<ul id="nav-internal" class="nav navbar-nav navbar-right">
<li>{{#link-to 'guide'}}Designmal{{/link-to}}</li>
<li>{{#link-to 'template'}}Dokumentmaler{{/link-to}}</li>
<li>{{#link-to 'webcomponent'}}Web komponenter{{/link-to}}</li>
<li>{{#link-to 'guide'}}Design spesifikasjon{{/link-to}}</li>
<li>{{#link-to 'webcomponent'}}Web-komponenter spesifikasjon{{/link-to}}</li>
<!--
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Nettsidekomponenter<span class="caret"></span></a><ul class="dropdown-menu collapse" role="menu">
Expand Down Expand Up @@ -62,5 +62,3 @@

</div>
</nav>


5 changes: 0 additions & 5 deletions app/pods/components/my-modal/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,3 @@
</div>
</div>
</div>





40 changes: 21 additions & 19 deletions app/pods/components/nav-internal/component.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
import Ember from 'ember';

export default Ember.Component.extend({
tagName: 'aside',
classNames: ['internal-nav'],
didInsertElement: function() {
Ember.$('.nav-internal').toc({
title: '',
listType: 'ul'
});
//Ember.$('body').scrollspy({ target: 'nav.nav-internal' });
Ember.$('.nav-internal ul').addClass('nav nav-pills nav-stacked');
tagName: 'aside',
classNames: ['internal-nav'],
didInsertElement: function() {
Ember.$('.nav-internal').toc({
title: '',
listType: 'ul',
headers: '.content h1, .content h2, .content h3, .content h4, .content h5, .content h6',
showEffect: 'fadeIn'
});
//Ember.$('body').scrollspy({ target: 'nav.nav-internal' });
Ember.$('.nav-internal ul').addClass('nav nav-pills nav-stacked');

Ember.$('.nav-internal a').on('click', function(e) {
e.preventDefault();
var el = Ember.$(this).attr('href');
Ember.$('.nav-internal a').on('click', function(e) {
e.preventDefault();
var el = Ember.$(this).attr('href');



Ember.$('html, body').animate({
scrollTop: Ember.$(el).offset().top
}, 200);
Ember.$('html, body').animate({
scrollTop: Ember.$(el).offset().top
}, 200);

//Ember.$.scrolTo($(this).attr('href'));
//console.log(this);
});
}
//Ember.$.scrolTo($(this).attr('href'));
//console.log(this);
});
}
});
3 changes: 3 additions & 0 deletions app/resolver.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Resolver from 'ember-resolver';

export default Resolver;
100 changes: 50 additions & 50 deletions app/styles/_bootstrap-custom.scss
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
// Core variables and mixins
@import "bootstrap/variables";
@import "bootstrap/mixins";

// Reset and dependencies
@import "bootstrap/normalize";
//@import "bootstrap/print";
@import "bootstrap/glyphicons";

// Core CSS
@import "bootstrap/scaffolding";
@import "bootstrap/type";
@import "bootstrap/code";
//@import "bootstrap/grid";
@import "bootstrap/tables";
@import "bootstrap/forms";
@import "bootstrap/buttons";

// Components
@import "bootstrap/component-animations";
@import "bootstrap/dropdowns";
@import "bootstrap/button-groups";
@import "bootstrap/input-groups";
@import "bootstrap/navs";
@import "bootstrap/navbar";
@import "bootstrap/breadcrumbs";
@import "bootstrap/pagination";
@import "bootstrap/pager";
@import "bootstrap/labels";
@import "bootstrap/badges";
@import "bootstrap/jumbotron";
@import "bootstrap/thumbnails";
@import "bootstrap/alerts";
@import "bootstrap/progress-bars";
@import "bootstrap/media";
@import "bootstrap/list-group";
@import "bootstrap/panels";
@import "bootstrap/responsive-embed";
@import "bootstrap/wells";
@import "bootstrap/close";

// Components w/ JavaScript
@import "bootstrap/modals";
@import "bootstrap/tooltip";
@import "bootstrap/popovers";
//@import "bootstrap/carousel";

// Utility classes
@import "bootstrap/utilities";
//@import "bootstrap/responsive-utilities";
// // Core variables and mixins
// @import "bootstrap/variables";
// @import "bootstrap/mixins";
//
// // Reset and dependencies
// @import "bootstrap/normalize";
// //@import "bootstrap/print";
// @import "bootstrap/glyphicons";
//
// // Core CSS
// @import "bootstrap/scaffolding";
// @import "bootstrap/type";
// @import "bootstrap/code";
// //@import "bootstrap/grid";
// @import "bootstrap/tables";
// @import "bootstrap/forms";
// @import "bootstrap/buttons";
//
// // Components
// @import "bootstrap/component-animations";
// @import "bootstrap/dropdowns";
// @import "bootstrap/button-groups";
// @import "bootstrap/input-groups";
// @import "bootstrap/navs";
// @import "bootstrap/navbar";
// @import "bootstrap/breadcrumbs";
// @import "bootstrap/pagination";
// @import "bootstrap/pager";
// @import "bootstrap/labels";
// @import "bootstrap/badges";
// @import "bootstrap/jumbotron";
// @import "bootstrap/thumbnails";
// @import "bootstrap/alerts";
// @import "bootstrap/progress-bars";
// @import "bootstrap/media";
// @import "bootstrap/list-group";
// @import "bootstrap/panels";
// @import "bootstrap/responsive-embed";
// @import "bootstrap/wells";
// @import "bootstrap/close";
//
// // Components w/ JavaScript
// @import "bootstrap/modals";
// @import "bootstrap/tooltip";
// @import "bootstrap/popovers";
// //@import "bootstrap/carousel";
//
// // Utility classes
// @import "bootstrap/utilities";
// //@import "bootstrap/responsive-utilities";
8 changes: 5 additions & 3 deletions app/styles/app.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@import 'bootstrap-custom';
//@import 'bootstrap-custom';
@import '../../bower_components/sass-mq/mq';
@import '../../bower_components/hiof-layout/dist/layout';
@import '../../bower_components/hiof-colors/dist/colors';
@import '../../bower_components/hiof-typography/dist/typography';
@import '../../bower_components/highlightjs/styles/github';
@import "pod-styles";
//@import "pod-styles";
html {
overflow-x: hidden;

Expand Down Expand Up @@ -41,7 +41,9 @@ body {
color: #111;
}
}

.nav-stacked > li + li{
margin-left: 2.4rem;
}
.container-fluid {
max-width: 104rem;
margin: 0 auto;
Expand Down
21 changes: 8 additions & 13 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
{
"name": "design",
"dependencies": {
"ember": "1.13.5",
"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.13.7",
"ember-load-initializers": "ember-cli/ember-load-initializers#0.1.5",
"ember-qunit": "0.4.7",
"ember-qunit-notifications": "0.0.7",
"ember-resolver": "~0.1.18",
"jquery": "^1.11.1",
"loader.js": "ember-cli/loader.js#3.2.0",
"qunit": "~1.17.1",
"ember": "~2.6.0",
"ember-cli-shims": "0.1.1",
"ember-cli-test-loader": "0.2.2",
"ember-qunit-notifications": "0.1.0",
"showdown": "^1.4.2",
"toc": "[email protected]:ghiculescu/jekyll-table-of-contents.git",
"hiof-layout": "[email protected]:hiof/layout.git",
"hiof-colors": "[email protected]:hiof/colors.git",
"hiof-typography": "[email protected]:hiof/typography.git",
"toc": "[email protected]:ghiculescu/jekyll-table-of-contents.git",
"sass-mq": "~3.2.4",
"highlightjs": "~8.8.0"
"highlightjs": "~8.8.0",
"bootstrap": "~3.3.5"
}
}
Loading

0 comments on commit afd5ab7

Please sign in to comment.