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 function fontPrimary () { | |
return 'Source Sans Pro, sans-serif'; | |
} | |
export function fontSecondary () { | |
return 'Lato, sans-serif'; | |
} | |
export function textStyle (style) { | |
if (style === 'upper') { |
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 dependencies = new Map(); | |
export class Container { | |
static resolve(Class) { | |
const deps = dependencies.get(Class); | |
return new Class(...deps); | |
} | |
static registerDependencies(Class, deps) { | |
dependencies.set(Class, deps); |
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 set from 'lodash.set'; | |
/* | |
New DOM node. | |
arguments: | |
nodeType (string) 'div': name of the DOM element | |
children (ArrayOf[n, t, svg]): Child nodes | |
opts (Object): element attributes. className, id, etc | |
Usage: |
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 function compose (factories) { | |
return function ontoEntity (entity) { | |
const factoryAdditions = factories.reduce((composed, fn) => { | |
return { ...composed, ...fn(entity) }; | |
}, {}); | |
return { | |
...entity, | |
...factoryAdditions | |
}; |
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
<Spacing bottom="30px"> | |
<Label>Username</Label> | |
<TextInput | |
value={this.state.userName} | |
onChange={this.updateUsername} | |
/> | |
</Spacing> |
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
<Input | |
labelText="Username" | |
value={this.state.username} | |
onChange={this.updateUsername} | |
/> |
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
<Input | |
shouldShowLabel={false} | |
// labelText="Username" - Don't need this anymore | |
value={this.state.username} | |
style={{ marginBottom: '30px' }} | |
onChange={this.updateUsername} | |
/> |
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
<Input | |
shouldShowLabel={false} | |
// labelText=”Username” - Still don't need this | |
value={this.state.username} | |
inputStyle={{ padding: ‘12px’ }} | |
wrapperStyle={{ marginBottom: ‘30px’ }} | |
onChange={this.updateUsername} | |
/> |
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 Service from '@ember/service'; | |
import { setProperties } from '@ember/object'; | |
import { defer } from 'rsvp'; | |
export default Service.extend({ | |
showPrompt: false, | |
title: null, | |
message: null, | |
_deferred: null, |
OlderNewer