This file contains 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
* { | |
--pl: initial; | |
--pr: initial; | |
--pt: initial; | |
--pb: initial; | |
--ml: initial; | |
--mr: initial; | |
--mt: initial; | |
--mb: initial; | |
--c: initial; |
This file contains 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 React from 'react' | |
import { VerticalStack } from '../VerticalStack2/VerticalStack2' | |
export function App() { | |
return ( | |
<VerticalStack gap={10} passthrough skipLast> | |
<h1>Hello world</h1> | |
<p>Bla bla bla</p> | |
<p>Bla bla bla</p> |
This file contains 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 React, { useEffect, useRef } from 'react' | |
import videoAV1 from '../../../static/video/video.av1.mp4' | |
import videoH264 from '../../../static/video/video.h264.mp4' | |
import styles from './VideoBackground.module.css' | |
function VideoBackground() { | |
const videoRef = useRef<HTMLVideoElement | null>(null) | |
const videoSrcAV1ref = useRef<HTMLSourceElement | null>(null) |
This file contains 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 React from 'react' | |
type ResponsiveType<T> = | |
| T | |
| [T] | |
| [T, T] | |
| [T, T, T] | |
| [T, T, T, T] | |
| [T, T, T, T, T] | |
type SpacingType = 0 | 5 | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45 | 50 | |
type MarginSpacingType = SpacingType | 'auto' |
This file contains 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 execa = require('execa') | |
const jsf = require('json-schema-faker') | |
;(async () => { | |
const { stdout } = await execa( | |
'./node_modules/.bin/ts-json-schema-generator', | |
[ | |
'--path', | |
'./organizations.ts', | |
'--type', |
This file contains 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 { StaticRouter } = require('react-router-dom') | |
const https = require('https') | |
const http = require('http') | |
const express = require('express') | |
const bodyParser = require('body-parser') | |
const React = require('react') | |
const { renderToString } = require('react-dom/server') | |
const path = require('path') | |
const fs = require('fs') |
This file contains 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 api = route.all('/api/(.*)', async (ctx, next) => { | |
ctx.respond = false | |
const { res, req, url, method, headers } = ctx | |
const proxyUrl = new URL( | |
BASE_URL + url.replace(/^\/api/, '/api/v2'), | |
) | |
const proxyReq = makeProxyRequest({ | |
url: proxyUrl, |
This file contains 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 route = require('koa-route') | |
const http = require('http') | |
const https = require('https') | |
const got = require('got') | |
const { | |
UMBRA_APS_CLIENT_SECRET, | |
UMBRA_API_EXTERNALURL, | |
UMBRA_AUTH_URI, | |
} = process.env |
This file contains 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 set = new Set() | |
if (typeof window !== 'undefined') { | |
window.addEventListener('scroll', () => { | |
Array.from(set).forEach(fn => fn()) | |
}) | |
} | |
class ItemsListCursorTracker extends Component { | |
constructor(props) { |
This file contains 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 route = require('koa-route') | |
const request = require('request') | |
const got = require('got') | |
const { | |
UMBRA_APS_CLIENT_SECRET, | |
UMBRA_API_EXTERNALURL, | |
UMBRA_AUTH_URI, | |
} = process.env |