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 C from './constants' | |
import { v4 } from 'uuid' | |
export const addColor = (title, color) => | |
({ | |
type: C.ADD_COLOR, | |
id: v4(), | |
title, | |
color, | |
timestamp: new Date().toString() |
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, { Component } from 'react' | |
import storeFactory from './store' | |
import { loadLifts, changeLiftStatus } from './actions' | |
import './App.css' | |
const StatusCircle = ({status, selected=false, onSelect=f=>f}) => | |
<div className={selected ? `${status} selected` : status} onClick={() => onSelect(status)}/> | |
const StatusIndicator = ({currentStatus, onStatusChange=f=>f}) => | |
['open', 'hold', 'closed'].map( |
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
html, body, div#react-container { | |
height: 100%; | |
min-height: 100%; } | |
h1 { | |
margin: 0; | |
padding: 0; } | |
body { | |
margin: 0; |
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
Show hidden characters
{ | |
"presets": [ | |
"env", | |
"stage-0", | |
"react" | |
] | |
} |
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
td:last-child { | |
padding: 5px; | |
width: 100px; | |
display: flex; | |
flex-direction: row; | |
align-items: center; | |
justify-content: space-around; | |
} | |
td 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
const lightBulbMachine = Machine({ | |
id: 'light', | |
initial: 'unlit', | |
context: { | |
color: "blue" | |
}, | |
states: { | |
lit: { | |
on: { | |
TOGGLE:'unlit', |
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 tahoeTravelMachine = Machine({ | |
id: 'tahoe-travel', | |
initial: 'walking', | |
states: { | |
walking: { | |
on: { | |
THUMBS_UP: 'hitchhiking', | |
ARRIVE: 'arrived' | |
} | |
}, |
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 walk = assign({ | |
distance: (context, event) => context.distance - 1 | |
}); | |
const ride = assign({ | |
distance: (context, event) => context.distance - 5 | |
}) | |
const hasArrived = (context, event) => context.distance <= 0; |
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 seedToSale = Machine({ | |
id: "canabis-regulation", | |
initial: "idle", | |
states: { | |
idle: { | |
on: { | |
TAG_RECEIVED: "seed" | |
} | |
}, | |
seed: { |
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
Feature: Timing an Agenda | |
As a Leader I want to time my agendas | |
so that I can know how long it really takes | |
to run my agendas | |
Background: | |
Given the following agenda: | |
| HOW TO CAMP | time | | |
| What is camping? | 3 min | | |
| History of camping | 2 min | |
OlderNewer