Skip to content

Commit

Permalink
upgrade dependencies and OH MY GOD
Browse files Browse the repository at this point in the history
Signed-off-by: Vu Van Dung <me@joulev.dev>
  • Loading branch information
joulev committed May 28, 2023
1 parent 1d5f6ba commit f0991fd
Show file tree
Hide file tree
Showing 5 changed files with 1,714 additions and 1,741 deletions.
3 changes: 2 additions & 1 deletion app/(auth)/app/handle-loading.ts
Expand Up @@ -6,7 +6,8 @@ export default function useLoadingParams(context: any) {
const router = useRouter();
const pathname = usePathname();
const searchParams = useSearchParams();
const loading = searchParams.get("loading") !== null;
// TODO
const loading = searchParams!.get("loading") !== null;
useEffect(() => {
if (!loading) return;
router.push(pathname || "/app/dashboard");
Expand Down
3 changes: 2 additions & 1 deletion app/(auth)/app/site/[site-name]/[page-id]/page.tsx
Expand Up @@ -183,7 +183,8 @@ function useConfetti() {
const pathname = usePathname();
const router = useRouter();
const searchParams = useSearchParams();
const hasConfetti = searchParams.get("confetti") !== null;
// TODO
const hasConfetti = searchParams!.get("confetti") !== null;
const confettiRef = useRef<JSConfetti>();
useEffect(() => {
confettiRef.current = new JSConfetti();
Expand Down
5 changes: 3 additions & 2 deletions app/(public)/orbital/[doc]/page.tsx
Expand Up @@ -27,11 +27,12 @@ export default async function OrbitalDocumentPage({ params: { doc } }: { params:
if (!doc || !docs.includes(doc)) notFound();
const source = await serialise(doc);
const { title, timestamp } = source.frontmatter!;
// TODO: fix any
return (
<BlogLayout
title={title}
title={title as any}
authors={[authors.joulev, authors.vietanh]}
timestamp={new Date(timestamp)}
timestamp={new Date(timestamp as any)}
>
<Mdx source={source} />
</BlogLayout>
Expand Down
62 changes: 31 additions & 31 deletions package.json
Expand Up @@ -13,74 +13,74 @@
"lint": "next lint"
},
"dependencies": {
"@monaco-editor/react": "4.4.6",
"@vercel/og": "0.0.21",
"@monaco-editor/react": "4.5.1",
"@vercel/og": "0.5.6",
"@victorioberra/trianglify-browser": "4.1.1",
"client-only": "0.0.1",
"clsx": "1.2.1",
"cors": "2.8.5",
"date-fns": "2.29.3",
"date-fns": "2.30.0",
"encoding": "0.1.13",
"firebase": "9.14.0",
"firebase-admin": "11.3.0",
"framer-motion": "7.6.12",
"firebase": "9.22.1",
"firebase-admin": "11.8.0",
"framer-motion": "10.12.16",
"gray-matter": "4.0.3",
"jose": "4.11.1",
"jose": "4.14.4",
"js-confetti": "0.11.0",
"json5": "2.2.1",
"lucide-react": "0.102.0",
"json5": "2.2.3",
"lucide-react": "0.223.0",
"merge-ranges": "1.0.2",
"monaco-editor": "0.34.1",
"monaco-editor": "0.38.0",
"multer": "1.4.5-lts.1",
"next": "canary",
"next-connect": "next",
"next-mdx-remote": "4.2.0",
"next-mdx-remote": "4.4.1",
"nookies": "2.5.2",
"nprogress": "0.2.0",
"prismjs": "1.29.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-full-screen": "1.1.1",
"react-intersection-observer": "9.4.1",
"react-intersection-observer": "9.4.3",
"react-string-replace": "1.1.0",
"rehype-external-links": "2.0.1",
"rehype-external-links": "2.1.0",
"rehype-raw": "6.1.1",
"rehype-sanitize": "5.0.1",
"rehype-slug": "5.1.0",
"rehype-stringify": "9.0.3",
"remark": "14.0.2",
"remark": "14.0.3",
"remark-gfm": "3.0.1",
"remark-parse": "10.0.1",
"remark-parse": "10.0.2",
"remark-rehype": "10.1.0",
"remark-toc": "8.0.1",
"request": "2.88.2",
"server-only": "0.0.1",
"strip-markdown": "5.0.0",
"swr": "1.3.0",
"typed.js": "2.0.12",
"strip-markdown": "5.0.1",
"swr": "2.1.5",
"typed.js": "2.0.16",
"unified": "10.1.2",
"validator": "13.7.0"
"validator": "13.9.0"
},
"devDependencies": {
"@tailwindcss/aspect-ratio": "0.4.2",
"@tailwindcss/forms": "0.5.3",
"@types/cors": "2.8.12",
"@types/cors": "2.8.13",
"@types/merge-ranges": "1.0.0",
"@types/multer": "1.4.7",
"@types/node": "18.11.9",
"@types/node": "20.2.5",
"@types/nprogress": "0.2.0",
"@types/prettier": "2.7.1",
"@types/prettier": "2.7.2",
"@types/prismjs": "1.26.0",
"@types/react": "18.0.25",
"@types/react-dom": "18.0.9",
"@types/validator": "13.7.10",
"autoprefixer": "10.4.13",
"eslint": "8.28.0",
"@types/react": "18.2.7",
"@types/react-dom": "18.2.4",
"@types/validator": "13.7.17",
"autoprefixer": "10.4.14",
"eslint": "8.41.0",
"eslint-config-next": "canary",
"postcss": "8.4.19",
"prettier": "2.8.0",
"tailwindcss": "3.2.4",
"typescript": "4.9.3",
"postcss": "8.4.24",
"prettier": "2.8.8",
"tailwindcss": "3.3.2",
"typescript": "5.0.4",
"uglify-js": "3.17.4"
}
}

0 comments on commit f0991fd

Please sign in to comment.