Skip to content

Commit 1044167

Browse files
authored
Merge pull request #96 from hammercode-dev/feat/update-events
[FEAT] - update events
2 parents cd29b47 + 272f1b6 commit 1044167

File tree

29 files changed

+1372
-125
lines changed

29 files changed

+1372
-125
lines changed

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,19 @@
2525
"@radix-ui/react-avatar": "^1.1.1",
2626
"@radix-ui/react-dialog": "^1.1.14",
2727
"@radix-ui/react-dropdown-menu": "^2.1.15",
28-
"@radix-ui/react-label": "^2.1.6",
28+
"@radix-ui/react-label": "^2.1.7",
2929
"@radix-ui/react-popover": "^1.1.15",
3030
"@radix-ui/react-select": "^2.1.1",
3131
"@radix-ui/react-separator": "^1.1.7",
3232
"@radix-ui/react-slot": "^1.2.3",
33+
"@radix-ui/react-switch": "^1.2.6",
3334
"@radix-ui/react-tabs": "^1.1.13",
3435
"@radix-ui/react-tooltip": "^1.2.7",
36+
"@radix-ui/react-visually-hidden": "^1.2.3",
3537
"@tanstack/react-query": "^5.85.5",
3638
"@tanstack/react-table": "^8.21.3",
39+
"@tiptap/extension-code-block-lowlight": "^3.4.1",
40+
"@tiptap/extension-horizontal-rule": "^3.4.1",
3741
"@tiptap/extension-image": "^3.2.0",
3842
"@tiptap/extension-link": "^3.2.0",
3943
"@tiptap/extension-placeholder": "^3.2.0",
@@ -48,11 +52,15 @@
4852
"clsx": "^2.1.1",
4953
"cookie": "^1.0.2",
5054
"date-fns": "^4.1.0",
55+
"dompurify": "^3.2.6",
5156
"embla-carousel-autoplay": "^8.2.0",
5257
"embla-carousel-react": "^8.2.0",
58+
"highlight.js": "^11.11.1",
5359
"js-cookie": "^3.0.5",
5460
"jwt-decode": "^4.0.0",
61+
"lowlight": "^3.3.0",
5562
"lucide-react": "^0.536.0",
63+
"marked": "^16.2.1",
5664
"motion": "^12.7.4",
5765
"next": "15.3.2",
5866
"next-intl": "^4.1.0",

pnpm-lock.yaml

Lines changed: 118 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/[locale]/layout.tsx

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import { AuthJwtPayload } from "@/types";
1010
import { jwtDecode } from "jwt-decode";
1111
import { ThemeProvider } from "@/components/provider/ThemeProvider";
1212
import TanstackProvider from "@/components/provider/TanstackProvider";
13+
import { DialogProvider } from "@/contexts/dialogContext";
14+
import DialogGlobal from "@/components/common/DialogGlobal";
1315
const sora = Sora({ subsets: ["latin"] });
1416

1517
type Props = {
@@ -58,14 +60,17 @@ export default async function LocaleRootLayout(props: Readonly<Props>) {
5860
<html lang={locale} suppressHydrationWarning>
5961
<body className={`${sora.className}`}>
6062
<NextIntlClientProvider messages={messages}>
61-
<TanstackProvider>
62-
<AuthProvider payload={payload}>
63-
<ThemeProvider attribute="class" defaultTheme="system" enableSystem disableTransitionOnChange>
64-
{children}
65-
</ThemeProvider>
66-
</AuthProvider>
67-
</TanstackProvider>
68-
<Toaster />
63+
<DialogProvider>
64+
<TanstackProvider>
65+
<AuthProvider payload={payload}>
66+
<ThemeProvider attribute="class" defaultTheme="system" enableSystem disableTransitionOnChange>
67+
{children}
68+
</ThemeProvider>
69+
</AuthProvider>
70+
</TanstackProvider>
71+
<Toaster />
72+
<DialogGlobal />
73+
</DialogProvider>
6974
</NextIntlClientProvider>
7075
</body>
7176
</html>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { CircleX } from "lucide-react";
2+
3+
interface DialogErrorProps {
4+
title: string;
5+
description: string;
6+
}
7+
8+
const DialogError = ({ title, description }: DialogErrorProps) => {
9+
return (
10+
<section className="flex w-full flex-col items-center justify-center gap-2">
11+
<CircleX className="h-16 w-16 text-red-500" />
12+
<h1 className="text-xl font-semibold">{title}</h1>
13+
<p className="text-center text-gray-500">{description}</p>
14+
</section>
15+
);
16+
};
17+
export default DialogError;

0 commit comments

Comments
 (0)