Skip to content

Instantly share code, notes, and snippets.

@sp3ber
sp3ber / machine.js
Created June 2, 2020 09:00
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@sp3ber
sp3ber / machine.js
Created May 14, 2020 10:07
Generated by XState Viz: https://xstate.js.org/viz
Machine(
{
id: 'osagoReport',
initial: 'introduction',
context: {
},
states: {
introduction: {
on: {
@sp3ber
sp3ber / machine.js
Created May 14, 2020 09:52
Generated by XState Viz: https://xstate.js.org/viz
Machine(
{
id: 'osagoReport',
initial: 'introduction',
context: {
},
states: {
introduction: {
on: {
import React, { Component, PropTypes as types } from 'react';
import ReactGridLayout from 'react-grid-layout';
import SizeMe from 'react-sizeme';
import 'react-grid-layout/css/styles.css';
import 'react-resizable/css/styles.css';
import {
WIDGET_LAYOUT_COLUMNS_COUNT,
DASHBOARD_MOVE_BUTTON_CLASS,
WIDGET_LAYOUT_ROW_HEIGHT,
ORDER_DATE_COMPLETED,