🤷♂️
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
.DS_Store | |
*.sql | |
npm-debug.log | |
# local by flywheelプロビジョンデータでいらないものignoreする | |
conf | |
logs | |
app/sql | |
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
.DS_Store | |
.bundle | |
.idea/ | |
.vagrant | |
Movefile | |
vendor | |
node_modules/ | |
*.sql | |
npm-debug.log |
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 { uniqueId } from 'lodash-es' | |
import PullToRefreshJS from 'pulltorefreshjs' | |
import * as React from 'react' | |
import { findDOMNode } from 'react-dom' | |
type Props = { | |
onRefresh: (() => Promise<any>) | (() => void) | |
children: React.ReactNode | |
targetComponent?: React.ReactInstance | |
} & Partial<DefaultProps> |
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
<List autoHeight={true} ...{listProps} /> |
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
host github.com-main | |
HostName github.com | |
IdentityFile ~/.ssh/id_rsa_github | |
User git | |
host github.com-sub | |
HostName github.com | |
IdentityFile ~/.ssh/id_rsa_github_sub | |
User git |
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
$ yarn add -D @types/react-collapsible @types/react-dom @types/react-image-gallery @types/react-modal @types/react-router-dom @types/react-swipeable-views @types/react-virtualized |
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
export const getElementRects = (element: HTMLElement) => { | |
const heightWithPadding = element.getBoundingClientRect().height | |
const heightWithoutPadding = () => { | |
if (!getComputedStyle) return 0 | |
const { paddingTop, paddingBottom } = getComputedStyle(element) | |
const padding = | |
parseFloat(paddingTop ? paddingTop : '0') + |
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
{ | |
"parser": "@typescript-eslint/parser", | |
"parserOptions": { | |
"project": "./tsconfig.json", | |
"tsconfigRootDir": "." | |
}, | |
"env": { | |
"browser": true, | |
"jest/globals": true | |
}, |
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 { useRef, useCallback, useEffect, useLayoutEffect } from 'react' | |
/* eslint-disable @typescript-eslint/no-explicit-any */ | |
/** | |
* | |
* @description For reference state value on event handler. | |
* @see https://reactjs.org/docs/hooks-faq.html#how-to-read-an-often-changing-value-from-usecallback | |
* @see https://github.com/facebook/react/issues/14099 | |
* @todo `unknown` type loos better than `any`. But can't use unknown……Error message "Type 'unknown' is not assignable to type ~" why?? |
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 @typescript-eslint/no-explicit-any */ | |
export type HTMLElementEventHandlers<U extends keyof HTMLElementEventMap> = { | |
[K in U]: (event: HTMLElementEventMap[K]) => any | |
} |
OlderNewer