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 React, { useContext } from 'react' | |
| import cx from 'classnames' | |
| import { ThemeContext } from '../ThemeContext/ThemeContext' | |
| import type { Theme } from '../ThemeContext/ThemeContext' | |
| import './Base.css' | |
| type ResponsiveProperty<T> = T | { min?: T; max: T } | |
| type MediaQueryProperty<T> = T | { xs?: T; sm?: T; md?: T; lg?: T; xl?: T } |
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 React from 'react' | |
| import { useForm } from 'react-hook-form' | |
| import { FormButtons } from '../../components/FormButtons/FormButtons' | |
| import { TextFieldComponent } from '../../components/TextFieldComponent/TextFieldComponent' | |
| import { Box } from '../../components/Box/Box' | |
| import { getErrorsToShow } from '../../lib/formErrorsUtils' | |
| type CreateOrganizationFormValues = { | |
| name: string |
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 cx from 'classnames' | |
| import React from 'react' | |
| import { Link as ReactRouterLink } from 'react-router-dom' | |
| import type { LinkProps as ReactRouterLinkProps } from 'react-router-dom' | |
| import { ButtonSpinner } from '../ButtonSpinner/ButtonSpinner' | |
| import styles from './Button.css' | |
| type CommonProps = { |
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
| * { | |
| --pl: initial; | |
| --pr: initial; | |
| --pt: initial; | |
| --pb: initial; | |
| --ml: initial; | |
| --mr: initial; | |
| --mt: initial; | |
| --mb: initial; | |
| --c: initial; |
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 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 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 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 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 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 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 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 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 { 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 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 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, |