Skip to content

Commit

Permalink
v5
Browse files Browse the repository at this point in the history
  • Loading branch information
clxrityy committed Nov 14, 2024
1 parent 935a932 commit c6452d0
Show file tree
Hide file tree
Showing 106 changed files with 14,211 additions and 5,730 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": [
"next/core-web-vitals",
"next/typescript"
]
}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ next-env.d.ts

/test

.env
.env
__archive__
test.md
2 changes: 1 addition & 1 deletion components.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
"utils": "@/utils/cn"
}
}
59 changes: 32 additions & 27 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,40 +1,45 @@
import withMdx from '@next/mdx';
import remarkGfm from 'remark-gfm';
import withMdx from "@next/mdx";
import remarkGfm from "remark-gfm";
import rehypePrettyCode from "rehype-pretty-code";

/** @type {import('rehype-pretty-code').Options} */
const options = {
keepBackground: true,
theme: "one-dark-pro",
defaultLang: "plaintext",
keepBackground: true,
theme: "one-dark-pro",
defaultLang: "plaintext",
};

/** @type {import('next').NextConfig} */

const nextConfig = {
// env: {
// ADMIN_PASS: process.env.ADMIN_PASS,
// },
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'i.gyazo.com',
},
{
protocol: 'https',
hostname: "github.com"
}
]
},
pageExtensions: ['ts', 'tsx', 'mdx',],
reactStrictMode: false,
images: {
remotePatterns: [
{
protocol: "https",
hostname: "i.gyazo.com",
},
{
protocol: "https",
hostname: "github.com",
},
{
protocol: "https",
hostname: "cdn.sanity.io",
},
{
protocol: "https",
hostname: "media2.dev.to"
}
],
},
pageExtensions: ["ts", "tsx", "mdx"],
reactStrictMode: false,
};

export default withMdx({
extension: /\.mdx?$/,
options: {
remarkPlugins: [remarkGfm],
rehypePlugins: [[rehypePrettyCode, options]],
}
extension: /\.mdx?$/,
options: {
remarkPlugins: [remarkGfm],
rehypePlugins: [[rehypePrettyCode, options]],
},
})(nextConfig);
41 changes: 26 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mjanglin.com",
"version": "4.0.0",
"version": "5.0.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -9,42 +9,53 @@
"lint": "next lint"
},
"dependencies": {
"@mdx-js/loader": "^3.0.1",
"@mdx-js/react": "^3.0.1",
"@next/mdx": "^14.2.15",
"@birdgg/react-github": "^0.2.3",
"@mdx-js/loader": "^3.1.0",
"@mdx-js/react": "^3.1.0",
"@next/mdx": "^15.0.3",
"@nextui-org/react": "^2.4.8",
"@nextui-org/system": "^2.2.6",
"@nextui-org/theme": "^2.2.11",
"@radix-ui/react-hover-card": "^1.1.2",
"@radix-ui/react-menubar": "^1.1.2",
"@radix-ui/react-separator": "^1.1.0",
"@sanity/asset-utils": "^2.1.0",
"@sanity/code-input": "^4.1.4",
"@sanity/icons": "^3.4.0",
"@sanity/image-url": "^1.1.0",
"@sanity/vision": "^3.64.0",
"@types/mdx": "^2.0.13",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"framer-motion": "^11.11.8",
"lucide-react": "^0.452.0",
"next": "14.2.15",
"next-themes": "^0.3.0",
"framer-motion": "^11.11.13",
"lucide-react": "^0.456.0",
"next": "15.0.3",
"next-sanity": "^9.8.12",
"next-themes": "^0.4.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hot-toast": "^2.4.1",
"react-icons": "^5.3.0",
"recharts": "^2.13.0",
"recharts": "^2.13.3",
"rehype-pretty-code": "^0.14.0",
"remark-gfm": "^4.0.0",
"tailwind-merge": "^2.5.3",
"sanity": "^3.64.0",
"styled-components": "^6.1.13",
"tailwind-merge": "^2.5.4",
"tailwindcss-animate": "^1.0.7",
"uuid": "^10.0.0",
"uuid": "^11.0.3",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/node": "^22.7.5",
"@types/react": "^18.3.11",
"@types/node": "^22.9.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/uuid": "^10.0.0",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.47",
"tailwindcss": "^3.4.13",
"eslint": "^9",
"eslint-config-next": "15.0.3",
"postcss": "^8.4.49",
"tailwindcss": "^3.4.14",
"typescript": "^5.6.3"
}
}
Loading

0 comments on commit c6452d0

Please sign in to comment.