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
| 'use strict'; | |
| (function () { | |
| var pinHandle = document.querySelector('.pin__main'); | |
| var formAddress = document.querySelector('#address'); | |
| var PIN_HEIGHT = 94; | |
| var PIN_WIDTH = 74; | |
| var tokyoMap = document.querySelector('.tokyo'); | |
| var MIN_X = 0; | |
| var MAX_X = 1200; |
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 Application from '../application'; | |
| import renderScreen from '../utils/render-screen'; | |
| import computePercentage from '../utils/compute-percentage'; | |
| import timer from './timer-presenter'; | |
| import state from '../data/state'; | |
| import adapter from '../data/adapter'; | |
| import LevelArtistView from '../view/level-artist-view'; |
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 EXAMPLE_TIME_ENTRIES = [ | |
| { | |
| id: 1, | |
| date: '2017-11-20', | |
| categoryId: 1, | |
| notes: 'some example notes', | |
| minutesTracked: 180, | |
| }, | |
| { | |
| id: 2, |
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 map from 'lodash/map' | |
| function deepFlattenHelper(obj, acc = {}, path = []) { | |
| if (!obj) { | |
| return acc | |
| } | |
| let result = { ...acc } | |
| if (typeof obj === 'object') { |
OlderNewer