Skip to content

Commit 0061986

Browse files
Merge pull request #25 from Chocolate1999:chore/fix-issue-22
chore: remove some chore & fix-22
2 parents 7f4c8d8 + 62892d9 commit 0061986

File tree

8 files changed

+1
-40
lines changed

8 files changed

+1
-40
lines changed

next.config.js

-13
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,6 @@ module.exports = {
88
images: {
99
domains: ['res.cloudinary.com'],
1010
},
11-
12-
webpack: (config, { dev, isServer }) => {
13-
// Replace React with Preact only in client production build
14-
if (!dev && !isServer) {
15-
Object.assign(config.resolve.alias, {
16-
react: 'preact/compat',
17-
'react-dom/test-utils': 'preact/test-utils',
18-
'react-dom': 'preact/compat',
19-
});
20-
}
21-
22-
return config;
23-
},
2411
};
2512

2613
const intercept = require('intercept-stdout');

package.json

-3
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,12 @@
2828
"lodash": "^4.17.21",
2929
"next": "^12.2.3",
3030
"next-themes": "^0.2.0",
31-
"preact": "^10.10.6",
3231
"react": "^18.2.0",
3332
"react-copy-to-clipboard": "^5.1.0",
3433
"react-dom": "^18.2.0",
35-
"react-hook-form": "^7.34.0",
3634
"react-icons": "^4.4.0",
3735
"react-image-lightbox": "^5.1.4",
3836
"react-intersection-observer": "^9.4.0",
39-
"react-lite-youtube-embed": "^2.3.1",
4037
"react-tippy": "^1.4.0",
4138
"react-use": "^17.4.0",
4239
"recoil": "^0.7.4",

public/images/new-tab.png

-565 Bytes
Binary file not shown.

src/components/content/MDXComponents.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import Image from 'next/image';
2-
import LiteYouTubeEmbed from 'react-lite-youtube-embed';
32

43
import GithubCard from '@/components/content/card/GithubCard';
54
import CustomCode, { Pre } from '@/components/content/CustomCode';
@@ -14,7 +13,6 @@ const MDXComponents = {
1413
pre: Pre,
1514
code: CustomCode,
1615
CloudinaryImg,
17-
LiteYouTubeEmbed,
1816
SplitImage,
1917
Split,
2018
TechIcons,

src/components/links/UnstyledLink.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const UnstyledLink = React.forwardRef<HTMLAnchorElement, UnstyledLinkProps>(
3535
rel='noopener noreferrer'
3636
href={href}
3737
{...rest}
38-
className={clsxm('cursor-newtab', className)}
38+
className={clsxm('cursor-pointer', className)}
3939
>
4040
{children}
4141
</a>

src/pages/_app.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import { ThemeProvider } from 'next-themes';
44
import nProgress from 'nprogress';
55
import { RecoilRoot } from 'recoil';
66

7-
import 'react-lite-youtube-embed/dist/LiteYouTubeEmbed.css';
8-
import 'react-tippy/dist/tippy.css';
97
import '@/styles/globals.css';
108
import '@/styles/mdx.css';
119
import '@/styles/dracula.css';

src/styles/globals.css

-4
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ html.dark {
5050
U+2215, U+FEFF, U+FFFD;
5151
}
5252

53-
.cursor-newtab {
54-
cursor: url('/images/new-tab.png') 10 10, pointer;
55-
}
56-
5753
/* #region /**=========== Default Typography =========== */
5854
h1,
5955
.h1 {

yarn.lock

-15
Original file line numberDiff line numberDiff line change
@@ -7505,11 +7505,6 @@ [email protected], postcss@^8.4.14:
75057505
picocolors "^1.0.0"
75067506
source-map-js "^1.0.2"
75077507

7508-
preact@^10.10.6:
7509-
version "10.10.6"
7510-
resolved "https://registry.yarnpkg.com/preact/-/preact-10.10.6.tgz#1fe62aecf93974b64e6a42e09ba1f00f93207d14"
7511-
integrity sha512-w0mCL5vICUAZrh1DuHEdOWBjxdO62lvcO++jbzr8UhhYcTbFkpegLH9XX+7MadjTl/y0feoqwQ/zAnzkc/EGog==
7512-
75137508
prelude-ls@^1.2.1:
75147509
version "1.2.1"
75157510
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
@@ -7617,11 +7612,6 @@ react-dom@^18.2.0:
76177612
loose-envify "^1.1.0"
76187613
scheduler "^0.23.0"
76197614

7620-
react-hook-form@^7.34.0:
7621-
version "7.34.0"
7622-
resolved "https://registry.yarnpkg.com/react-hook-form/-/react-hook-form-7.34.0.tgz#22883b5e014e5c5e35f3061d0e3862153b0df2ec"
7623-
integrity sha512-s0/TJ09NVlEk2JPp3yit1WnMuPNBXFmUKEQPulgDi9pYBw/ZmmAFHe6AXWq73Y+kp8ye4OcMf0Jv+i/qLPektg==
7624-
76257615
react-icons@^4.4.0:
76267616
version "4.4.0"
76277617
resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-4.4.0.tgz#a13a8a20c254854e1ec9aecef28a95cdf24ef703"
@@ -7655,11 +7645,6 @@ react-lifecycles-compat@^3.0.0:
76557645
resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362"
76567646
integrity sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==
76577647

7658-
react-lite-youtube-embed@^2.3.1:
7659-
version "2.3.1"
7660-
resolved "https://registry.yarnpkg.com/react-lite-youtube-embed/-/react-lite-youtube-embed-2.3.1.tgz#f5ecb8e178b67e4b38670fccb32f05ccc80f0939"
7661-
integrity sha512-14YlE6iZPHwqaQqSmwfI614qumdVAICU9PFmk34vcGnOfiixFjaATGkOfUd2TA6pFpVMP8DT2/l9ebu5/aKeag==
7662-
76637648
react-modal@^3.11.1:
76647649
version "3.15.1"
76657650
resolved "https://registry.yarnpkg.com/react-modal/-/react-modal-3.15.1.tgz#950ce67bfef80971182dd0ed38f2d9b1a681288b"

0 commit comments

Comments
 (0)