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
public class User { | |
// composed class | |
public enum UserRole { | |
Guest = 0, | |
Subscriber = 1, | |
Supervisor = 2, | |
Editor = 3, | |
Publisher = 4, | |
Administrator = 5 |
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
:root { | |
--gutter-width: 1; | |
--gutter-compensation: calc((var(--gutter-width) * 0.5) * -1); | |
--half-gutter-width: calc((var(--gutter-width) * 0.5)); | |
--container-sm: 46.5em; | |
--container-md: 63em; | |
--container-lg: 74em; | |
} | |
@custom-media --sm-viewport only screen and (min-width: 48em); |
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, useState } from 'react'; | |
import PropType from 'prop-types'; | |
import { makeStyles } from '@material-ui/core/styles'; | |
import classNames from 'classnames'; | |
import Fade from '@material-ui/core/Fade'; | |
import FormControl from '@material-ui/core/FormControl'; | |
import IconButton from '@material-ui/core/IconButton'; | |
import InputLabel from '@material-ui/core/InputLabel'; |
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 { IncomingMessage } from "http"; | |
const basePath = process.env.NEXT_PUBLIC_BASE_PATH ?? ""; | |
export type RequestURL = URL & { | |
basePath: string; | |
}; | |
const getFromMeta = (req: IncomingMessage) => { | |
const meta = Object.getOwnPropertySymbols(req).find( |