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
| .ui-modal__shadow { | |
| position: fixed; | |
| top: 0; | |
| height: 100vh; | |
| width: 100vw; | |
| align-items: center; | |
| background-color: rgba(152,152,152,.37); | |
| display: flex; | |
| justify-content: center; | |
| z-index: 10; |
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
| <div class="ui-modal__shadow"> | |
| <div tabindex="0" class="ui-modal__dialog" role="dialog" aria-labelledby="modal-title" aria-modal="true"> | |
| <div class="ui-modal__header"> | |
| <h1 id="modal-title" class="ui-modal__title"> | |
| Redirection to the old admin | |
| </h1> | |
| <button type="button" aria-label="Close" class="close" onclick={{action "cancelRedirection" target=redirection}}> | |
| <i class="fa fa-times"></i> | |
| </button> | |
| </div> |
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 { inject as service } from '@ember/service'; | |
| export default Ember.Component.extend({ | |
| redirection: service(), | |
| tagName: '' | |
| }); |
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 { inject as service } from '@ember/service'; | |
| export default Ember.Component.extend({ | |
| redirection: service(), | |
| tagName: '' | |
| }); |
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 AdultValidations from '../validations/adult'; | |
| import ChildValidations from '../validations/child'; | |
| import { reservedEmails } from '../validators/uniqueness'; | |
| import { schema } from '../models/user'; | |
| const { get } = Ember; | |
| const { keys } = Object; | |
| export default Ember.Controller.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
| const ua = navigator.userAgent; | |
| function isIE() { | |
| return ua.indexOf('MSIE')!=-1 || ua.indexOf('Trident/') !== -1; | |
| } | |
| function getIEVersion() { | |
| const msie = ua.indexOf('MSIE '); | |
| if (msie > 0) { | |
| return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10); |
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.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
| require 'spec_helper' | |
| # /$$ /$$ | |
| # | $$ |__/ | |
| # /$$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$$$$$$ /$$$$$$ | |
| # /$$_____/|_ $$_/ /$$__ $$| $$| $$__ $$ /$$__ $$ | |
| # | $$$$$$ | $$ | $$ \__/| $$| $$ \ $$| $$ \ $$ | |
| # \____ $$ | $$ /$$| $$ | $$| $$ | $$| $$ | $$ | |
| # /$$$$$$$/ | $$$$/| $$ | $$| $$ | $$| $$$$$$$ |
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 hbs from ‘htmlbars-inline-precompile’; | |
| import { describe, it } from ‘mocha’; | |
| import { setupComponentTest } from ‘ember-mocha’; | |
| import { percySnapshot } from ‘ember-percy’; | |
| describe(‘ember-percy example’, function() { | |
| setupComponentTest(‘checkbox’, { | |
| integration: true | |
| }); | |
| it(‘Will generate a percySnapshot’, function() { | |
| this.render(hbs` |