This is the readme file for the size-compare repo size check
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 * as generator from '@babel/generator'; | |
| import * as t from '@babel/types'; | |
| import {createFilter} from '@rollup/pluginutils'; | |
| import changeCase from 'change-case'; | |
| import fs from 'fs'; | |
| import path from 'path'; | |
| import {optimize} from 'svgo'; | |
| import {fromXml} from 'xast-util-from-xml'; | |
| const generate = generator.default.default; |
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 { h, spec } from "forest"; | |
| export default function Icon(props = {}) { | |
| h("svg", { | |
| attr: { | |
| "height": "32", | |
| "width": "32", | |
| "xml:space": "preserve", | |
| "xmlns": "http://www.w3.org/2000/svg" | |
| }, |
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
| useEffect(() => { | |
| const durationMs = parseDuration(duration ?? ''); | |
| if (durationMs && selectedToken) { | |
| const durationSeconds = new Decimal(durationMs).div(1000); | |
| const speedInYocto = new Decimal(amountToStream) | |
| .div(durationSeconds) | |
| .toFixed(); | |
| setValue('speed', speedInYocto); |
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
| module.exports = { | |
| forbidden: [ | |
| { | |
| name: "no-pages-on-pages", | |
| severity: "warn", | |
| comment: "Page MUST not depends on another page.", | |
| from: { path: "^src/pages/([^/]+)/?.+", pathNot: "^src/pages/(routes|paths).ts" }, | |
| to: { path: "^src/pages/(?!$1)/?.+", pathNot: "^src/pages/(routes|paths).ts" }, | |
| }, | |
| { |
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 phrase = ` | |
| This, like a preacher, spoke Yevgeny. | |
| Eyes blinded, as the salt tears choked, | |
| Tatyana, breathless, uncomplaining, | |
| Was listening to him as he spoke. | |
| He gave his arm. Far from ecstatic, | |
| With movements now called “automatic”, | |
| She lent on him (nothing was said), | |
| And languidly inclined her head. | |
| The came back round the kitchen garden, |
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
| #!/usr/bin/env node | |
| import fs from "fs/promises"; | |
| import path from "path"; | |
| import { fileURLToPath } from "url"; | |
| import { unified } from "unified"; | |
| import rehypeParse from "rehype-parse"; | |
| import { VFile } from "vfile"; | |
| import { write } from "to-vfile"; | |
| import generate from "@babel/generator"; |
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
| export function WorkspacePaneTable( | |
| props: WorkspacePaneProps<Workspace.WorkspaceItemHeaderTable> | |
| ) { | |
| let [selectedId, setSelectedId] = React.useState<Data.Id | null>(null); | |
| let catalog = Recoil.useRecoilValue(Data.$catalog); | |
| let table = catalog.schema_tables[props.item.name]; | |
| let query = React.useMemo(() => createQuery(table), [table]); | |
| let panes = State.usePanesAPI(); |
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 { | |
| allSettled, | |
| attach, | |
| createDomain, | |
| createEvent, | |
| createStore, | |
| fork, | |
| forward, | |
| guard, | |
| sample, |
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
| World |