mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
Update dependencies
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import cn from 'classnames';
|
||||
import Link from 'next/link';
|
||||
import { FC, useCallback, useState } from 'react';
|
||||
import { FC, useCallback, useEffect, useState } from 'react';
|
||||
import { FiMenu } from 'react-icons/fi';
|
||||
import dynamic from 'next/dynamic';
|
||||
import { DocSearch } from '@docsearch/react';
|
||||
@ -37,6 +37,9 @@ const HeadBar: FC = () => {
|
||||
setShowMenu((showMenu) => !showMenu);
|
||||
}, []);
|
||||
|
||||
const [mounted, setMounted] = useState(false);
|
||||
useEffect(() => setMounted(true), []);
|
||||
|
||||
return (
|
||||
<>
|
||||
<header
|
||||
@ -97,12 +100,16 @@ const HeadBar: FC = () => {
|
||||
<DarkModeBtn />
|
||||
</li>
|
||||
<li className="DocSearch-wrapper">
|
||||
<DocSearch
|
||||
appId={process.env.NEXT_PUBLIC_ALGOLIA_APP_ID ?? ''}
|
||||
indexName="RUA"
|
||||
apiKey={process.env.NEXT_PUBLIC_ALGOLIA_SEARCH_ADMIN_KEY ?? ''}
|
||||
placeholder="Search..."
|
||||
/>
|
||||
{mounted && (
|
||||
<DocSearch
|
||||
appId={process.env.NEXT_PUBLIC_ALGOLIA_APP_ID ?? ''}
|
||||
indexName="RUA"
|
||||
apiKey={
|
||||
process.env.NEXT_PUBLIC_ALGOLIA_SEARCH_ADMIN_KEY ?? ''
|
||||
}
|
||||
placeholder="Search..."
|
||||
/>
|
||||
)}
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
30
package.json
30
package.json
@ -11,42 +11,42 @@
|
||||
"test-ci": "jest --ci --coverage"
|
||||
},
|
||||
"dependencies": {
|
||||
"@codesandbox/sandpack-react": "^0.18.1",
|
||||
"@codesandbox/sandpack-react": "^0.19.0",
|
||||
"@docsearch/react": "3",
|
||||
"@giscus/react": "^2.0.3",
|
||||
"@mapbox/rehype-prism": "^0.8.0",
|
||||
"@mdx-js/loader": "^2.1.1",
|
||||
"@mdx-js/react": "^2.1.0",
|
||||
"@mdx-js/react": "^2.1.1",
|
||||
"@next/mdx": "^12.1.5",
|
||||
"algoliasearch": "^4.13.0",
|
||||
"classnames": "^2.3.1",
|
||||
"next": "12.1.0",
|
||||
"next": "12.1.5",
|
||||
"next-compose-plugins": "^2.2.1",
|
||||
"next-themes": "^0.1.1",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
"react": "^18.0.0",
|
||||
"react-dom": "^18.0.0",
|
||||
"react-icons": "^4.3.1",
|
||||
"rehype-slug": "^5.0.1",
|
||||
"rehype-stringify": "^9.0.3",
|
||||
"remark-frontmatter": "^4.0.1",
|
||||
"remark-gfm": "^3.0.1",
|
||||
"sharp": "^0.30.3"
|
||||
"sharp": "^0.30.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@testing-library/jest-dom": "^5.16.2",
|
||||
"@testing-library/react": "^12.1.4",
|
||||
"@testing-library/jest-dom": "^5.16.4",
|
||||
"@testing-library/react": "^13.1.1",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/node": "17.0.21",
|
||||
"@types/react": "17.0.41",
|
||||
"@types/node": "17.0.25",
|
||||
"@types/react": "18.0.6",
|
||||
"autoprefixer": "^10.4.4",
|
||||
"dotenv": "^16.0.0",
|
||||
"eslint": "8.11.0",
|
||||
"eslint-config-next": "12.1.0",
|
||||
"eslint": "8.13.0",
|
||||
"eslint-config-next": "12.1.5",
|
||||
"gray-matter": "^4.0.3",
|
||||
"jest": "^27.5.1",
|
||||
"nanoid": "^3.3.2",
|
||||
"nanoid": "^3.3.3",
|
||||
"postcss": "^8.4.12",
|
||||
"tailwindcss": "^3.0.23",
|
||||
"typescript": "4.6.2"
|
||||
"tailwindcss": "^3.0.24",
|
||||
"typescript": "4.6.3"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user