Last active
April 19, 2017 18:31
-
-
Save jonblack/4381ddaed6f4cf72f6249185b4d3cddd to your computer and use it in GitHub Desktop.
Bulma Liquid Tether
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
showDialogStepOne: Ember.computed.equal('currentDialogStep', 1), | |
showDialogStepTwo: Ember.computed.equal('currentDialogStep', 2), | |
showDialogStepThree: Ember.computed.equal('currentDialogStep', 3), | |
actions: { | |
cancel() { | |
console.log("cancel"); | |
this.set('currentDialogStep', 0); | |
}, | |
save() { | |
console.log("save"); | |
this.set('currentDialogStep', 0); | |
}, | |
next() { | |
console.log("next"); | |
this.incrementProperty('currentDialogStep'); | |
}, | |
prev() { | |
console.log("prev"); | |
this.decrementProperty('currentDialogStep'); | |
} | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import config from './config/environment'; | |
const Router = Ember.Router.extend({ | |
location: 'none', | |
rootURL: config.rootURL | |
}); | |
Router.map(function() { | |
this.route('profile'); | |
}); | |
export default Router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Route.extend({ | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function() { | |
this.transition( | |
this.matchSelector('#modal-background'), | |
this.toValue((newValue, oldValue) => newValue === null || oldValue === null), | |
this.use('fade'), | |
this.debug(), | |
); | |
this.transition( | |
this.matchSelector('#modal-dialog'), | |
this.toValue((newValue, oldValue) => newValue === null || oldValue === null), | |
this.use('fade'), | |
this.debug(), | |
); | |
this.transition( | |
this.matchSelector('#modal-dialog'), | |
this.toValue((newValue, oldValue) => newValue && oldValue && newValue > oldValue), | |
this.use('to-left', { duration: 700, easing: [0.175, 0.885, 0.32, 1.275] }), | |
this.reverse('to-right', { duration: 700, easing: [0.175, 0.885, 0.32, 1.275] }), | |
this.debug(), | |
); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.12.1", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "2.12.0", | |
"ember-template-compiler": "2.12.0", | |
"ember-testing": "2.12.0", | |
"bulma": "https://cdnjs.cloudflare.com/ajax/libs/bulma/0.4.0/css/bulma.css", | |
"font-awesome": "https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" | |
}, | |
"addons": { | |
"ember-data": "2.12.1", | |
"liquid-tether": "2.0.4" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment