Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion next.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import type { NextConfig } from 'next';

const nextConfig: NextConfig = {};
const nextConfig: NextConfig = {
images: {
remotePatterns: [
{
protocol: 'https',
hostname: '**',
},
],
},
};

export default nextConfig;
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@
"prepare": "husky"
},
"dependencies": {
"@hookform/resolvers": "^5.2.1",
"@radix-ui/react-label": "^2.1.7",
"@ariakit/react": "^0.4.17",
"@emoji-mart/data": "1.2.1",
"@faker-js/faker": "^9.9.0",
"@hookform/resolvers": "^5.2.1",
"@platejs/autoformat": "^49.0.0",
"@platejs/basic-nodes": "^49.0.0",
"@platejs/basic-styles": "^49.0.0",
Expand Down Expand Up @@ -55,9 +54,11 @@
"@radix-ui/react-context-menu": "^2.2.15",
"@radix-ui/react-dialog": "^1.1.14",
"@radix-ui/react-dropdown-menu": "^2.1.15",
"@radix-ui/react-label": "^2.1.7",
"@radix-ui/react-popover": "^1.1.14",
"@radix-ui/react-separator": "^1.1.7",
"@radix-ui/react-slot": "^1.2.3",
"@radix-ui/react-tabs": "^1.1.13",
"@radix-ui/react-toolbar": "^1.1.10",
"@radix-ui/react-tooltip": "^1.2.7",
"@udecode/cn": "^49.0.15",
Expand All @@ -72,7 +73,7 @@
"pdf-lib": "^1.17.1",
"platejs": "^49.1.13",
"react": "19.1.0",
"react-day-picker": "^9.8.1",
"react-day-picker": "^9.9.0",
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "19.1.0",
Expand All @@ -86,9 +87,10 @@
"remark-math": "^6.0.0",
"sonner": "^2.0.6",
"tailwind-merge": "^3.3.1",
"zod": "^4.0.14",
"tailwind-scrollbar-hide": "^4.0.0",
"use-file-picker": "2.1.2",
"vaul": "^1.1.2",
"zod": "^4.0.14",
"zustand": "^5.0.8"
},
"devDependencies": {
Expand Down
3,902 changes: 3,837 additions & 65 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions public/icons/file.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/icons/upload.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 0 additions & 60 deletions src/app/draft/edit-content.tsx

This file was deleted.

71 changes: 0 additions & 71 deletions src/app/draft/edit-top.tsx

This file was deleted.

36 changes: 0 additions & 36 deletions src/app/draft/edit-wrapper.tsx

This file was deleted.

21 changes: 0 additions & 21 deletions src/app/draft/edit.tsx

This file was deleted.

17 changes: 17 additions & 0 deletions src/app/draft/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { SidebarProvider } from '@/components/ui/sidebar';
import DraftHeader from '@/features/draft/components/draft-main/draft-header';
import AppSideBar from '@/features/draft/components/draft-sidebar.tsx/app-sidebar';

export default function Layout({ children }: { children: React.ReactNode }) {
return (
<section className='h-dvh w-full'>
<SidebarProvider className='h-full w-full'>
<AppSideBar />
<div className='w-full'>
<DraftHeader />
<main className='mx-auto h-full w-full max-w-[1920px]'>{children}</main>
</div>
</SidebarProvider>
</section>
);
}
4 changes: 2 additions & 2 deletions src/app/draft/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Edit from './edit';
import DraftMain from '@/features/draft/components/draft-main/draft-main';

export default function EditPage() {
return <Edit />;
return <DraftMain />;
}
11 changes: 0 additions & 11 deletions src/app/draft/plate-wrapper.tsx

This file was deleted.

42 changes: 0 additions & 42 deletions src/app/draft/sidebar-draft.tsx

This file was deleted.

17 changes: 0 additions & 17 deletions src/app/draft/sidebar-top.tsx

This file was deleted.

30 changes: 0 additions & 30 deletions src/app/draft/sidebar-wrapper.tsx

This file was deleted.

Loading