made with esnextbin
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'; | |
| const { | |
| Component, | |
| on, | |
| computed, | |
| A: EArray, | |
| } = Ember; | |
| export default 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'; | |
| import { | |
| times, | |
| constant | |
| } from 'lodash'; | |
| const { | |
| get, | |
| set, | |
| Component, |
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 gql from 'graphql-tag' | |
| const query = gql` | |
| query pokedex { | |
| pokedex { | |
| pokemon(start: 0 number: 10) {edges {node {id name}}} | |
| } | |
| } | |
| ` |
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 React from 'react' | |
| import { observer } from 'mobx-react' | |
| function ArtistList({ uiState: { artistData } }) { | |
| const { data } = artistData; | |
| if ( !data || !data.artists || !data.artists.length ) { | |
| return <div>No artists bruh.</div> | |
| } | |
| const { artists } = data | |
| return ( |
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
| function parseDuration(duration) { | |
| let durationInSeconds = 0 | |
| const hourIndex = duration.indexOf('h') | |
| if(hourIndex > -1) { | |
| let hours = parseInt(duration.substr(0, hourIndex), 10) | |
| duration = duration.substr(hourIndex + 1) | |
| durationInSeconds += hours * 60 * 60 | |
| } |
NewerOlder