Last active
November 14, 2017 19:20
-
-
Save jonblack/002925ba8446845a868253ad36288614 to your computer and use it in GitHub Desktop.
Elsewhere Liquid Dialog Steps
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.toValue((newValue, oldValue) => newValue === undefined || oldValue === undefined), | |
this.use('explode', { | |
pick: '.modal', | |
use: ['fade', { duration: 350 }] | |
}), | |
); | |
this.transition( | |
this.toValue((newValue, oldValue) => newValue && oldValue && newValue.step > oldValue.step), | |
this.use('explode', { | |
pick: '.modal-card', | |
use: ['to-left', { duration: 600, easing: [0.175, 0.885, 0.32, 1.275] }] | |
}), | |
this.reverse('explode', { | |
pick: '.modal-card', | |
use: ['to-right', { duration: 600, easing: [0.175, 0.885, 0.32, 1.275] }] | |
}), | |
); | |
}; |
This file contains hidden or 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", | |
"ember-elsewhere": "1.0.0", | |
"liquid-fire": "0.27.2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment