Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
search-page
Commits
409c94b4
Commit
409c94b4
authored
Jan 06, 2021
by
baesangjune
Browse files
rm node_modules
parent
df52aea8
Changes
741
Hide whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
741 of 741+
files are displayed.
Plain diff
Email patch
node_modules/@restart/hooks/esm/useUpdateEffect.d.ts
deleted
100644 → 0
View file @
df52aea8
import
{
EffectCallback
,
DependencyList
}
from
'
react
'
;
/**
* Runs an effect only when the dependencies have changed, skipping the
* initial "on mount" run. Caution, if the dependency list never changes,
* the effect is **never run**
*
* ```ts
* const ref = useRef<HTMLInput>(null);
*
* // focuses an element only if the focus changes, and not on mount
* useUpdateEffect(() => {
* const element = ref.current?.children[focusedIdx] as HTMLElement
*
* element?.focus()
*
* }, [focusedIndex])
* ```
* @param effect An effect to run on mount
*
* @category effects
*/
declare
function
useUpdateEffect
(
fn
:
EffectCallback
,
deps
:
DependencyList
):
void
;
export
default
useUpdateEffect
;
node_modules/@restart/hooks/esm/useUpdateEffect.js
deleted
100644 → 0
View file @
df52aea8
import
{
useEffect
,
useRef
}
from
'
react
'
;
/**
* Runs an effect only when the dependencies have changed, skipping the
* initial "on mount" run. Caution, if the dependency list never changes,
* the effect is **never run**
*
* ```ts
* const ref = useRef<HTMLInput>(null);
*
* // focuses an element only if the focus changes, and not on mount
* useUpdateEffect(() => {
* const element = ref.current?.children[focusedIdx] as HTMLElement
*
* element?.focus()
*
* }, [focusedIndex])
* ```
* @param effect An effect to run on mount
*
* @category effects
*/
function
useUpdateEffect
(
fn
,
deps
)
{
var
isFirst
=
useRef
(
true
);
useEffect
(
function
()
{
if
(
isFirst
.
current
)
{
isFirst
.
current
=
false
;
return
;
}
return
fn
();
},
deps
);
}
export
default
useUpdateEffect
;
\ No newline at end of file
node_modules/@restart/hooks/esm/useUpdatedRef.d.ts
deleted
100644 → 0
View file @
df52aea8
/// <reference types="react" />
/**
* Returns a ref that is immediately updated with the new value
*
* @param value The Ref value
* @category refs
*/
export
default
function
useUpdatedRef
<
T
>
(
value
:
T
):
import
(
"
react
"
).
MutableRefObject
<
T
>
;
node_modules/@restart/hooks/esm/useUpdatedRef.js
deleted
100644 → 0
View file @
df52aea8
import
{
useRef
}
from
'
react
'
;
/**
* Returns a ref that is immediately updated with the new value
*
* @param value The Ref value
* @category refs
*/
export
default
function
useUpdatedRef
(
value
)
{
var
valueRef
=
useRef
(
value
);
valueRef
.
current
=
value
;
return
valueRef
;
}
\ No newline at end of file
node_modules/@restart/hooks/esm/useWillUnmount.d.ts
deleted
100644 → 0
View file @
df52aea8
/**
* Attach a callback that fires when a component unmounts
*
* @param fn Handler to run when the component unmounts
* @category effects
*/
export
default
function
useWillUnmount
(
fn
:
()
=>
void
):
void
;
node_modules/@restart/hooks/esm/useWillUnmount.js
deleted
100644 → 0
View file @
df52aea8
import
useUpdatedRef
from
'
./useUpdatedRef
'
;
import
{
useEffect
}
from
'
react
'
;
/**
* Attach a callback that fires when a component unmounts
*
* @param fn Handler to run when the component unmounts
* @category effects
*/
export
default
function
useWillUnmount
(
fn
)
{
var
onUnmount
=
useUpdatedRef
(
fn
);
useEffect
(
function
()
{
return
function
()
{
return
onUnmount
.
current
();
};
},
[]);
}
\ No newline at end of file
node_modules/@restart/hooks/package.json
deleted
100644 → 0
View file @
df52aea8
{
"_args"
:
[
[
"@restart/hooks@0.3.25"
,
"C:
\\
Users
\\
Korea
\\
Desktop
\\
2020winter
\\
search-page"
]
],
"_from"
:
"@restart/hooks@0.3.25"
,
"_id"
:
"@restart/hooks@0.3.25"
,
"_inBundle"
:
false
,
"_integrity"
:
"sha512-m2v3N5pxTsIiSH74/sb1yW8D9RxkJidGW+5Mfwn/lHb2QzhZNlaU1su7abSyT9EGf0xS/0waLjrf7/XxQHUk7w=="
,
"_location"
:
"/@restart/hooks"
,
"_phantomChildren"
:
{},
"_requested"
:
{
"type"
:
"version"
,
"registry"
:
true
,
"raw"
:
"@restart/hooks@0.3.25"
,
"name"
:
"@restart/hooks"
,
"escapedName"
:
"@restart%2fhooks"
,
"scope"
:
"@restart"
,
"rawSpec"
:
"0.3.25"
,
"saveSpec"
:
null
,
"fetchSpec"
:
"0.3.25"
},
"_requiredBy"
:
[
"/react-bootstrap"
,
"/react-overlays"
],
"_resolved"
:
"https://registry.npmjs.org/@restart/hooks/-/hooks-0.3.25.tgz"
,
"_spec"
:
"0.3.25"
,
"_where"
:
"C:
\\
Users
\\
Korea
\\
Desktop
\\
2020winter
\\
search-page"
,
"author"
:
{
"name"
:
"Jason Quense"
,
"email"
:
"monastic.panic@gmail.com"
},
"bugs"
:
{
"url"
:
"https://github.com/react-restart/hooks/issues"
},
"dependencies"
:
{
"lodash"
:
"^4.17.15"
,
"lodash-es"
:
"^4.17.15"
},
"homepage"
:
"https://github.com/react-restart/hooks#readme"
,
"jest"
:
{
"preset"
:
"@4c"
,
"rootDir"
:
"./test"
,
"setupFilesAfterEnv"
:
[
"./setup.js"
]
},
"license"
:
"MIT"
,
"main"
:
"cjs/index.js"
,
"module"
:
"esm/index.js"
,
"name"
:
"@restart/hooks"
,
"peerDependencies"
:
{
"react"
:
"^16.8.0"
},
"prettier"
:
{
"singleQuote"
:
true
,
"semi"
:
false
,
"trailingComma"
:
"all"
},
"publishConfig"
:
{
"access"
:
"public"
,
"directory"
:
"lib"
},
"release"
:
{
"conventionalCommits"
:
true
},
"repository"
:
{
"type"
:
"git"
,
"url"
:
"git+https://github.com/jquense/react-common-hooks.git"
},
"types"
:
"cjs/index.d.ts"
,
"version"
:
"0.3.25"
}
node_modules/@restart/hooks/useAnimationFrame/package.json
deleted
100644 → 0
View file @
df52aea8
{
"name"
:
"@restart/hooks/useAnimationFrame"
,
"private"
:
true
,
"main"
:
"../cjs/useAnimationFrame.js"
,
"module"
:
"../esm/useAnimationFrame.js"
,
"types"
:
"../esm/useAnimationFrame.d.ts"
}
node_modules/@restart/hooks/useBreakpoint/package.json
deleted
100644 → 0
View file @
df52aea8
{
"name"
:
"@restart/hooks/useBreakpoint"
,
"private"
:
true
,
"main"
:
"../cjs/useBreakpoint.js"
,
"module"
:
"../esm/useBreakpoint.js"
,
"types"
:
"../esm/useBreakpoint.d.ts"
}
node_modules/@restart/hooks/useCallbackRef/package.json
deleted
100644 → 0
View file @
df52aea8
{
"name"
:
"@restart/hooks/useCallbackRef"
,
"private"
:
true
,
"main"
:
"../cjs/useCallbackRef.js"
,
"module"
:
"../esm/useCallbackRef.js"
,
"types"
:
"../esm/useCallbackRef.d.ts"
}
node_modules/@restart/hooks/useCommittedRef/package.json
deleted
100644 → 0
View file @
df52aea8
{
"name"
:
"@restart/hooks/useCommittedRef"
,
"private"
:
true
,
"main"
:
"../cjs/useCommittedRef.js"
,
"module"
:
"../esm/useCommittedRef.js"
,
"types"
:
"../esm/useCommittedRef.d.ts"
}
node_modules/@restart/hooks/useCustomEffect/package.json
deleted
100644 → 0
View file @
df52aea8
{
"name"
:
"@restart/hooks/useCustomEffect"
,
"private"
:
true
,
"main"
:
"../cjs/useCustomEffect.js"
,
"module"
:
"../esm/useCustomEffect.js"
,
"types"
:
"../esm/useCustomEffect.d.ts"
}
node_modules/@restart/hooks/useEventCallback/package.json
deleted
100644 → 0
View file @
df52aea8
{
"name"
:
"@restart/hooks/useEventCallback"
,
"private"
:
true
,
"main"
:
"../cjs/useEventCallback.js"
,
"module"
:
"../esm/useEventCallback.js"
,
"types"
:
"../esm/useEventCallback.d.ts"
}
node_modules/@restart/hooks/useEventListener/package.json
deleted
100644 → 0
View file @
df52aea8
{
"name"
:
"@restart/hooks/useEventListener"
,
"private"
:
true
,
"main"
:
"../cjs/useEventListener.js"
,
"module"
:
"../esm/useEventListener.js"
,
"types"
:
"../esm/useEventListener.d.ts"
}
node_modules/@restart/hooks/useFocusManager/package.json
deleted
100644 → 0
View file @
df52aea8
{
"name"
:
"@restart/hooks/useFocusManager"
,
"private"
:
true
,
"main"
:
"../cjs/useFocusManager.js"
,
"module"
:
"../esm/useFocusManager.js"
,
"types"
:
"../esm/useFocusManager.d.ts"
}
node_modules/@restart/hooks/useForceUpdate/package.json
deleted
100644 → 0
View file @
df52aea8
{
"name"
:
"@restart/hooks/useForceUpdate"
,
"private"
:
true
,
"main"
:
"../cjs/useForceUpdate.js"
,
"module"
:
"../esm/useForceUpdate.js"
,
"types"
:
"../esm/useForceUpdate.d.ts"
}
node_modules/@restart/hooks/useGlobalListener/package.json
deleted
100644 → 0
View file @
df52aea8
{
"name"
:
"@restart/hooks/useGlobalListener"
,
"private"
:
true
,
"main"
:
"../cjs/useGlobalListener.js"
,
"module"
:
"../esm/useGlobalListener.js"
,
"types"
:
"../esm/useGlobalListener.d.ts"
}
node_modules/@restart/hooks/useImage/package.json
deleted
100644 → 0
View file @
df52aea8
{
"name"
:
"@restart/hooks/useImage"
,
"private"
:
true
,
"main"
:
"../cjs/useImage.js"
,
"module"
:
"../esm/useImage.js"
,
"types"
:
"../esm/useImage.d.ts"
}
node_modules/@restart/hooks/useImmediateUpdateEffect/package.json
deleted
100644 → 0
View file @
df52aea8
{
"name"
:
"@restart/hooks/useImmediateUpdateEffect"
,
"private"
:
true
,
"main"
:
"../cjs/useImmediateUpdateEffect.js"
,
"module"
:
"../esm/useImmediateUpdateEffect.js"
,
"types"
:
"../esm/useImmediateUpdateEffect.d.ts"
}
node_modules/@restart/hooks/useIntersectionObserver/package.json
deleted
100644 → 0
View file @
df52aea8
{
"name"
:
"@restart/hooks/useIntersectionObserver"
,
"private"
:
true
,
"main"
:
"../cjs/useIntersectionObserver.js"
,
"module"
:
"../esm/useIntersectionObserver.js"
,
"types"
:
"../esm/useIntersectionObserver.d.ts"
}
Prev
1
…
27
28
29
30
31
32
33
34
35
…
38
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment