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 { | |
assign, | |
DoneInvokeEvent, | |
EventObject, | |
Machine, | |
send, | |
sendParent, | |
StateMachine, | |
StateSchema | |
} from "xstate"; |
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 { Router } from "@reach/router"; | |
import { useMachine } from "@xstate/react"; | |
import { SnackbarProvider } from "notistack"; | |
import React from "react"; | |
import Header from "./components/Header"; | |
import SignIn from "./components/SignIn"; | |
import AuthMachine from "./states/AuthMachine"; | |
const App: React.FC = () => { | |
const [current, send] = useMachine(AuthMachine, { devTools: true }); |
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 { | |
Avatar, | |
Box, | |
Button, | |
Checkbox, | |
Container, | |
CssBaseline, | |
FormControlLabel, | |
Grid, | |
Link, |
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
class DagreWidget extends React.Component<DagreWidgetProps, any> { | |
engine: DagreEngine; | |
constructor(props: any) { | |
super(props); | |
this.engine = new DagreEngine({ | |
graph: { | |
rankdir: "RL", | |
ranker: "longest-path", | |
marginx: 25, |
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
{ | |
"index_name": "trakas", | |
"start_urls": [ | |
"https://trakas.js.org" | |
], | |
"stop_urls": [], | |
"selectors": { | |
"lvl0": { | |
"selector": "(//ul[contains(@class,'menu__list')]//a[contains(@class, 'menu__link menu__link--sublist menu__link--active')]/text() | //nav[contains(@class, 'navbar')]//a[contains(@class, 'navbar__link--active')]/text())[last()]", | |
"type": "xpath", |
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
/** | |
* Uploads artifacts with a set concurrency limit. | |
*/ | |
async function uploadWithConcurrency( | |
artifacts: BunnyArtifact[], | |
concurrency: number, | |
task: (artifact: BunnyArtifact) => Promise<void> | |
): Promise<void> { | |
const queue: Promise<void>[] = [] |
OlderNewer