Skip to content

Instantly share code, notes, and snippets.

@korshunad
korshunad / machine.js
Last active March 21, 2021 17:17
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@korshunad
korshunad / machine.js
Last active October 21, 2020 00:08
Generated by XState Viz: https://xstate.js.org/viz
const IGNORE_ERRORS_DURATION = 3000;
const FS = {
IDLE: 'idle',
UNSEALED_RESET: 'unsealed_reset',
UNSEALED_ERROR: 'unsealed_error',
OPENING: 'opening',
POLLING_PACK: 'polling_pack',
GETTING_MOMENTS: 'getting_moments',
}
@korshunad
korshunad / machine.js
Created September 10, 2020 00:04
Generated by XState Viz: https://xstate.js.org/viz
const IGNORE_ERRORS_DURATION = 3000;
const FS = {
IDLE: 'idle',
UNSEALED_RESET: 'unsealed_reset',
OPENING: 'opening',
UNSEALED_RETRYING: 'unsealed_retrying',
POLLING_PACK: 'polling_pack',
GETTING_MOMENTS: 'getting_moments',
DONE: 'done',
@korshunad
korshunad / machine.js
Created September 4, 2020 21:32
Generated by XState Viz: https://xstate.js.org/viz
const FS = {
IDLE: 'idle',
IN_VIEW: 'in_view',
APPEARING: 'appearing',
UNVEILING: 'unveiling',
REVEALING: 'revealing',
HIGHLIGHT_PLAYING: 'highlight_playing',
REVEALED: 'revealed',
};
@korshunad
korshunad / machine.js
Last active September 4, 2020 21:20
Generated by XState Viz: https://xstate.js.org/viz
const FS = {
IDLE: 'idle',
IN_VIEW: 'in_view',
APPEARING: 'appearing',
UNVEILING: 'unveiling',
REVEALING: 'revealing',
REVEALING_SKIP_HIGHLIGHT: 'revealing_skip_highlight',
HIGHLIGHT_PLAYING: 'highlight_playing',
REVEALED: 'revealed',
};
import React from "react";
import { Helmet } from "react-helmet";
import Header from "../components/Header";
import Footer from "../components/Footer";
import HeroBanner from "../components/HeroBanner";
export default ({ children, title, bannerMessage, dir, imagePreview, metaDescr, location, nolinks }) => (
<React.Fragment>
<Helmet>
exports.createPages = ({ graphql, actions }) => {
const { createPage } = actions
return graphql(`
{
allMarkdownRemark {
edges {
node {
fields {
slug
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.