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 { useCallback, useEffect } from "react" | |
/** | |
React hook to update the CSS custom properties `--viewport-height` and | |
`--viewport-width` when the window is resized. | |
Alternatively, an object with properties `height` and `width` can be | |
used with the CSS custom properties to update can be provided instead. | |
@param {object} [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
import React, { useEffect, useRef, useState } from "react" | |
export const VisualViewport = ({ | |
as: Element = "div", | |
children, | |
style = {}, | |
...props | |
}) => { | |
const ref = useRef (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
<!DOCTYPE html> | |
<html class='no-js' lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'> | |
<head> | |
<meta charset='UTF-8' /> | |
<title>Messages</title> | |
<meta content='initial-scale=1, width=device-width' name='viewport' /> | |
<style type='text/css'> | |
*, *:before, *:after { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; |
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 { css } from "@amory/style" | |
import { motion } from "framer-motion" | |
import { createElement } from "react" | |
export const Element = ({ | |
animate, | |
as = "div", | |
className, | |
custom, | |
drag, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/* eslint-disable no-use-before-define */ | |
const isArr = Array.isArray | |
const isMap = (value) => value instanceof Map | |
const isObj = (value) => typeof value === "object" | |
const canMerge = (value) => | |
Boolean (value) && | |
isObj (value) && | |
!(/^\[object (?:Date|RegExp)\]$/) |
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
/* eslint compat/compat: off, max-statements: off */ | |
const RawSource = require ("webpack-sources/lib/RawSource") | |
const evaluate = require ("eval") | |
const path = require ("path") | |
const cheerio = require ("cheerio") | |
const url = require ("url") | |
const Promise = require ("bluebird") | |
const findAsset = (src, compilation, webpackStatsJson) => { |
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
# Logs | |
logs | |
*.log | |
npm-debug.log* | |
yarn-debug.log* | |
yarn-error.log* | |
# Runtime data | |
pids | |
*.pid |
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
border-width: 0 0 1px | |
border-bottom-style: solid | |
border-bottom-color: #c8c7cc | |
/* :root.retina */ | |
border-image-source: url("data:image/svg+xml;charset=utf-8,<svg height='1' width='1' xmlns='http://www.w3.org/2000/svg'><rect height='.5' width='1' y='.5' fill='%23c8c7cc'/></svg>") | |
border-image-slice: 0 0 1 |
NewerOlder