Skip to content

Commit

Permalink
Merge pull request #25 from Chocolate1999:chore/fix-issue-22
Browse files Browse the repository at this point in the history
chore: remove some chore & fix-22
  • Loading branch information
Chocolate1999 authored Sep 12, 2022
2 parents 7f4c8d8 + 62892d9 commit 0061986
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 40 deletions.
13 changes: 0 additions & 13 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@ module.exports = {
images: {
domains: ['res.cloudinary.com'],
},

webpack: (config, { dev, isServer }) => {
// Replace React with Preact only in client production build
if (!dev && !isServer) {
Object.assign(config.resolve.alias, {
react: 'preact/compat',
'react-dom/test-utils': 'preact/test-utils',
'react-dom': 'preact/compat',
});
}

return config;
},
};

const intercept = require('intercept-stdout');
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,12 @@
"lodash": "^4.17.21",
"next": "^12.2.3",
"next-themes": "^0.2.0",
"preact": "^10.10.6",
"react": "^18.2.0",
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.34.0",
"react-icons": "^4.4.0",
"react-image-lightbox": "^5.1.4",
"react-intersection-observer": "^9.4.0",
"react-lite-youtube-embed": "^2.3.1",
"react-tippy": "^1.4.0",
"react-use": "^17.4.0",
"recoil": "^0.7.4",
Expand Down
Binary file removed public/images/new-tab.png
Binary file not shown.
2 changes: 0 additions & 2 deletions src/components/content/MDXComponents.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Image from 'next/image';
import LiteYouTubeEmbed from 'react-lite-youtube-embed';

import GithubCard from '@/components/content/card/GithubCard';
import CustomCode, { Pre } from '@/components/content/CustomCode';
Expand All @@ -14,7 +13,6 @@ const MDXComponents = {
pre: Pre,
code: CustomCode,
CloudinaryImg,
LiteYouTubeEmbed,
SplitImage,
Split,
TechIcons,
Expand Down
2 changes: 1 addition & 1 deletion src/components/links/UnstyledLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const UnstyledLink = React.forwardRef<HTMLAnchorElement, UnstyledLinkProps>(
rel='noopener noreferrer'
href={href}
{...rest}
className={clsxm('cursor-newtab', className)}
className={clsxm('cursor-pointer', className)}
>
{children}
</a>
Expand Down
2 changes: 0 additions & 2 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { ThemeProvider } from 'next-themes';
import nProgress from 'nprogress';
import { RecoilRoot } from 'recoil';

import 'react-lite-youtube-embed/dist/LiteYouTubeEmbed.css';
import 'react-tippy/dist/tippy.css';
import '@/styles/globals.css';
import '@/styles/mdx.css';
import '@/styles/dracula.css';
Expand Down
4 changes: 0 additions & 4 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ html.dark {
U+2215, U+FEFF, U+FFFD;
}

.cursor-newtab {
cursor: url('/images/new-tab.png') 10 10, pointer;
}

/* #region /**=========== Default Typography =========== */
h1,
.h1 {
Expand Down
15 changes: 0 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7505,11 +7505,6 @@ [email protected], postcss@^8.4.14:
picocolors "^1.0.0"
source-map-js "^1.0.2"

preact@^10.10.6:
version "10.10.6"
resolved "https://registry.yarnpkg.com/preact/-/preact-10.10.6.tgz#1fe62aecf93974b64e6a42e09ba1f00f93207d14"
integrity sha512-w0mCL5vICUAZrh1DuHEdOWBjxdO62lvcO++jbzr8UhhYcTbFkpegLH9XX+7MadjTl/y0feoqwQ/zAnzkc/EGog==

prelude-ls@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
Expand Down Expand Up @@ -7617,11 +7612,6 @@ react-dom@^18.2.0:
loose-envify "^1.1.0"
scheduler "^0.23.0"

react-hook-form@^7.34.0:
version "7.34.0"
resolved "https://registry.yarnpkg.com/react-hook-form/-/react-hook-form-7.34.0.tgz#22883b5e014e5c5e35f3061d0e3862153b0df2ec"
integrity sha512-s0/TJ09NVlEk2JPp3yit1WnMuPNBXFmUKEQPulgDi9pYBw/ZmmAFHe6AXWq73Y+kp8ye4OcMf0Jv+i/qLPektg==

react-icons@^4.4.0:
version "4.4.0"
resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-4.4.0.tgz#a13a8a20c254854e1ec9aecef28a95cdf24ef703"
Expand Down Expand Up @@ -7655,11 +7645,6 @@ react-lifecycles-compat@^3.0.0:
resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362"
integrity sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==

react-lite-youtube-embed@^2.3.1:
version "2.3.1"
resolved "https://registry.yarnpkg.com/react-lite-youtube-embed/-/react-lite-youtube-embed-2.3.1.tgz#f5ecb8e178b67e4b38670fccb32f05ccc80f0939"
integrity sha512-14YlE6iZPHwqaQqSmwfI614qumdVAICU9PFmk34vcGnOfiixFjaATGkOfUd2TA6pFpVMP8DT2/l9ebu5/aKeag==

react-modal@^3.11.1:
version "3.15.1"
resolved "https://registry.yarnpkg.com/react-modal/-/react-modal-3.15.1.tgz#950ce67bfef80971182dd0ed38f2d9b1a681288b"
Expand Down

0 comments on commit 0061986

Please sign in to comment.