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
'use strict'; | |
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | |
var React = _interopDefault(require('react')); | |
function Html(_ref) { | |
var className = _ref.className, | |
children = _ref.children, | |
_ref$comp = _ref.comp, |
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 babel from "rollup-plugin-babel"; | |
import multiInput from "rollup-plugin-multi-input"; | |
const extensions = [".ts", ".tsx"]; | |
export default { | |
input: ["./src/components/**/*.tsx"], | |
external: ["react"], |
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, { Component } from 'react'; | |
import dlv from 'dlv'; | |
function getUrlQueryData() { | |
const queryData = window.location.search.replace(/^\?/, '').split('&'); | |
const d = {}; | |
if (queryData) { | |
queryData.forEach(k => { | |
const [key, value] = k.split('='); | |
d[key] = value; |
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
import { useEffect, useState } from "react"; | |
export default function Piano() { | |
const [key, setKey] = useState(null); | |
useEffect(() => { | |
function onKeyPress(e) { | |
e.preventDefault(); | |
const key = e.key.toLowerCase(); |
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
{ | |
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", | |
"organizeImports": { | |
"enabled": true | |
}, | |
"formatter": { | |
"enabled": true, | |
"lineWidth": 80, | |
"lineEnding": "lf" | |
}, |