Skip to content

Commit

Permalink
Merge pull request #1 from Authmaker/feature/emberCliUpgrade
Browse files Browse the repository at this point in the history
Feature/ember cli upgrade
  • Loading branch information
mansona committed Nov 27, 2015
2 parents 0fb85b3 + 65fe4cd commit 96d3b8f
Show file tree
Hide file tree
Showing 68 changed files with 623 additions and 403 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ indent_style = space
indent_size = 2

[*.hbs]
insert_final_newline = false
indent_style = space
indent_size = 2

Expand Down
4 changes: 2 additions & 2 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"window",
"-Promise"
],
"browser" : true,
"boss" : true,
"browser": true,
"boss": true,
"curly": true,
"debug": false,
"devel": true,
Expand Down
12 changes: 12 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
app/
bower_components/
config/
node_modules/
public/
tests/
vendor/
tmp/
bower.json
testem.json
Brocfile.js
ember-cli-build.js
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
language: node_js
node_js:
- "0.12"

sudo: false

Expand All @@ -8,6 +10,7 @@ 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"

Expand Down
3 changes: 3 additions & 0 deletions .watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ignore_dirs": ["tmp", "dist"]
}
28 changes: 0 additions & 28 deletions Brocfile.js

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Oauthscopesapp
# authmaker-scopes-app

This README outlines the details of collaborating on this Ember application.
A short introduction of this app could easily go here.
Expand Down Expand Up @@ -50,4 +50,3 @@ Specify what it takes to deploy your app.
* 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/)

5 changes: 5 additions & 0 deletions app/adapters/application.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import DS from 'ember-data';

export default DS.RESTAdapter.extend({
namespace: 'api'
});
6 changes: 4 additions & 2 deletions app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ import Resolver from 'ember/resolver';
import loadInitializers from 'ember/load-initializers';
import config from './config/environment';

let App;

Ember.MODEL_FACTORY_INJECTIONS = true;

var App = Ember.Application.extend({
App = Ember.Application.extend({
modulePrefix: config.modulePrefix,
podModulePrefix: config.podModulePrefix,
Resolver: Resolver
Resolver
});

loadInitializers(App, config.modulePrefix);
Expand Down
4 changes: 2 additions & 2 deletions app/components/blooie-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ export default Ember.Component.extend({

hasBeenInserted: false,

onDidInsertElement: function() {
onDidInsertElement: Ember.on('didInsertElement', function() {
// Make sure <body> can't scroll
Ember.$('body').addClass('modal-open');

setTimeout(function() {
this.set('hasBeenInserted', true);
}.bind(this), 1);

}.on('didInsertElement'),
}),

transitionEnd: function() {
if (!this.get('hasBeenInserted')) {
Expand Down
Empty file removed app/controllers/.gitkeep
Empty file.
Empty file removed app/helpers/.gitkeep
Empty file.
13 changes: 7 additions & 6 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,23 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Blooie</title>
<title>Authmaker Scopes App</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">

<script type="text/javascript" src="//use.typekit.net/eid7zra.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>

{{content-for 'head'}}

<link rel="stylesheet" href="assets/vendor.css">
<link rel="stylesheet" href="assets/oauthscopesapp.css">
<link rel="stylesheet" href="assets/authmaker-scopes-app.css">


{{content-for 'head-footer'}}
</head>
<body class="narrow fill-grey">
{{content-for 'body'}}

<script src="assets/vendor.js"></script>
<script src="assets/oauthscopesapp.js"></script>
<script src="assets/authmaker-scopes-app.js"></script>
{{content-for 'body-footer'}}
</body>
</html>
Empty file removed app/models/.gitkeep
Empty file.
14 changes: 14 additions & 0 deletions app/pods/application/controller.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import Ember from 'ember';

export default Ember.Controller.extend({

queryParams: ['response_type', 'display', 'client_id', 'redirect_uri', 'scope', 'state', 'previous_location'],

response_type: '',
display: '',
client_id: '',
redirect_uri: '',
scope: '',
state: '',
previous_location: ''
});
9 changes: 9 additions & 0 deletions app/pods/application/route.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
import Ember from 'ember';

export default Ember.Route.extend({
model: function(){
return Ember.$.getJSON('/settings/scopes');
},

actions: {
transitionTo: function (route, model) {
this.transitionTo(route, model);
}
}
});
30 changes: 15 additions & 15 deletions app/pods/application/template.hbs
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<div class="c-notification__container">
{{#each notifications as |notification|}}
{{notification-message notification=notification}}
{{/each}}
</div>
<div class="container">
<div class="main spacing-bottom4">
<header class="auth-header text-center pad-y4">
<h1 class="spacing0">
<a class="text-hide" href="#">Blooie</a>
<a class="text-hide">Authmaker Scopes App</a>
</h1>
</header>
{{{outlet}}}
{{outlet}}
</div>
<footer class="auth-footer text-center text-small">
<div class="spacing-bottom4">
<p>Welcome back
{{#if user.username}}
<strong>{{user.username}}</strong>
{{else}}
<strong>{{user.email}}</strong>
{{/if}}
</p>
<a class="btn hollow small" href="/auth/logout">Sign out</a>
</div>
<ul class="list-inline">
<li>&copy; Blooie, 2014</li>
<li><a href="//{{urlPrefix}}{{#if urlPrefix}}.{{/if}}bloo.ie/privacy">Privacy</a></li>
<li><a href="//{{urlPrefix}}{{#if urlPrefix}}.{{/if}}bloo.ie/terms">Terms</a></li>
{{#if privacyLink}}
<li><a href={{privacyLink}}>Privacy</a></li>
{{/if}}

{{#if termsLink}}
<li><a href={{termsLink}}>Terms</a></li>
{{/if}}
</ul>
<a href="http://authmaker.com">Simple authentication powered by AuthMaker</a>
</footer>
</div>
4 changes: 0 additions & 4 deletions app/pods/auth/route.js

This file was deleted.

7 changes: 7 additions & 0 deletions app/pods/authorize/route.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import Ember from 'ember';

export default Ember.Route.extend({
redirect: function(model, transition) {
this.transitionTo('plans', {queryParams: transition.queryParams});
}
});
17 changes: 17 additions & 0 deletions app/pods/card/model.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import DS from 'ember-data';
import Ember from 'ember';

var attr = DS.attr;

export default DS.Model.extend({
default: attr('boolean'),
name: attr('string'),
brand: attr('string'),
country: attr('string'),
last4: attr('string'),
exp_month: attr('string'),
exp_year: attr('string'),
logo: Ember.computed('brand', function(){
return this.get('brand').toLowerCase();
})
});
4 changes: 0 additions & 4 deletions app/pods/cart/route.js

This file was deleted.

92 changes: 0 additions & 92 deletions app/pods/cart/template.hbs

This file was deleted.

4 changes: 0 additions & 4 deletions app/pods/payment/route.js

This file was deleted.

Loading

0 comments on commit 96d3b8f

Please sign in to comment.