Skip to content

Instantly share code, notes, and snippets.

View AndreAffonso's full-sized avatar

André AndreAffonso

  • Pier
  • São Paulo, Brazil
View GitHub Profile
const STEPS = {
INITIAL: "INITIAL",
LICENSE_PLATE: "LICENSE_PLATE",
BRAND_NEW_CAR: "BRAND_NEW_CAR",
CAR_MODEL: "CAR_MODEL",
CEP: "CEP",
ADDRESS: "ADDRESS",
CPF: "CPF",
EMAIL: "EMAIL",
@AndreAffonso
AndreAffonso / machine.js
Created January 6, 2021 13:50
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@AndreAffonso
AndreAffonso / machine.js
Last active January 6, 2021 16:17
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Idle
// - loading
// - not found
// - Instructions
// - Step Details
// - Camera
// - Done
// - raise
const STEPS = {
INITIAL: "INITIAL",
LICENSE_PLATE: "LICENSE_PLATE",
BRAND_NEW_CAR: "BRAND_NEW_CAR",
BUSINESS_CAR: "BUSINESS_CAR",
CAR_MODEL: "CAR_MODEL",
CEP: "CEP",
ADDRESS: "ADDRESS",
CPF: "CPF",
@AndreAffonso
AndreAffonso / noInstruction.json
Created June 29, 2021 17:57
vistorias com e sem instructions
{
"data": {
"id": "8f76c8b3-4140-46a8-aed2-e67df3bea028",
"type": "inspection_details",
"attributes": {
"id": "8f76c8b3-4140-46a8-aed2-e67df3bea028",
"state": "new",
"started_at": null,
"submitted_at": null,
"user_id": "abc3d534-4e49-43c7-9062-62be6aab7bdf",
import * as React from "react";
import typography from "../theme/typography";
import colors from "../theme/colors";
import styled from "styled-components";
import breakpoints from "../theme/breakpoints";
interface Props {
variant: keyof typeof typography;
bold?: boolean;
highlight?: boolean;
@AndreAffonso
AndreAffonso / inspection-with-steps.json
Created November 16, 2021 16:30
Inspection response with steps included
{
"data": [{
"id": "d341c4fe-93c7-440d-af4a-ccc1a9ab0d58",
"type": "inspection",
"attributes": {
"id": "d341c4fe-93c7-440d-af4a-ccc1a9ab0d58",
"state": "being_reviewed",
"started_at": "2021-11-16T15:44:43.373Z",
"submitted_at": "2021-11-16T16:04:59.390Z",
"user_id": "45de7133-ab0f-47de-b662-7c7471d5e5f5",
@AndreAffonso
AndreAffonso / machine.js
Last active May 9, 2022 13:05
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@AndreAffonso
AndreAffonso / machine.js
Created September 26, 2022 22:01
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions