Skip to content

Commit

Permalink
Rearrange files & directories
Browse files Browse the repository at this point in the history
  • Loading branch information
salimi-my committed Jan 30, 2024
1 parent 2de88fa commit f056477
Show file tree
Hide file tree
Showing 65 changed files with 40 additions and 47 deletions.
7 changes: 0 additions & 7 deletions app/(secured)/layout.tsx

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { redirect } from 'next/navigation';

import prismadb from '@/lib/prismadb';
import { currentUser } from '@/lib/authentication';
import AboutForm from '@/components/secured/about-form';
import AboutForm from '@/components/admin/about-form';
import {
Card,
CardContent,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { redirect } from 'next/navigation';

import prismadb from '@/lib/prismadb';
import { currentUser } from '@/lib/authentication';
import ProfileForm from '@/components/secured/profile-form';
import PasswordForm from '@/components/secured/password-form';
import ProfileForm from '@/components/admin/profile-form';
import PasswordForm from '@/components/admin/password-form';
import {
Card,
CardContent,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { redirect } from 'next/navigation';

import prismadb from '@/lib/prismadb';
import { currentUser } from '@/lib/authentication';
import ExperienceForm from '@/components/secured/experience-form';
import ExperienceForm from '@/components/admin/experience-form';
import {
Card,
CardContent,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { redirect } from 'next/navigation';

import prismadb from '@/lib/prismadb';
import { currentUser } from '@/lib/authentication';
import ExpertiseForm from '@/components/secured/expertise-form';
import ExpertiseForm from '@/components/admin/expertise-form';
import {
Card,
CardContent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import { cn } from '@/lib/utils';
import useStore from '@/hooks/use-store';
import Footer from '@/components/secured/footer';
import Navbar from '@/components/secured/navbar';
import Sidebar from '@/components/secured/sidebar';
import Footer from '@/components/admin/footer';
import Navbar from '@/components/admin/navbar';
import Sidebar from '@/components/admin/sidebar';
import useSidebarToggle from '@/hooks/use-sidebar-toggle';

export default function AdminRouteLayout({
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { redirect } from 'next/navigation';

import prismadb from '@/lib/prismadb';
import { currentUser } from '@/lib/authentication';
import MiscellaneousForm from '@/components/secured/miscellaneous-form';
import MiscellaneousForm from '@/components/admin/miscellaneous-form';
import {
Card,
CardContent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { Book, Briefcase, FolderGit2, Laptop } from 'lucide-react';
import prismadb from '@/lib/prismadb';
import { Button } from '@/components/ui/button';
import { currentUser } from '@/lib/authentication';
import MiniCard from '@/components/secured/mini-card';
import RecentProject from '@/components/secured/recent-project';
import QualificationTab from '@/components/secured/qualification-tab';
import MiniCard from '@/components/admin/mini-card';
import RecentProject from '@/components/admin/recent-project';
import QualificationTab from '@/components/admin/qualification-tab';
import {
Card,
CardContent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { redirect } from 'next/navigation';
import prismadb from '@/lib/prismadb';
import BackButton from '@/components/back-button';
import { currentUser } from '@/lib/authentication';
import PortfolioForm from '@/components/secured/portfolio-form';
import PortfolioForm from '@/components/admin/portfolio-form';
import {
Card,
CardContent,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import BackButton from '@/components/back-button';
import PortfolioForm from '@/components/secured/portfolio-form';
import PortfolioForm from '@/components/admin/portfolio-form';
import {
Card,
CardContent,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { redirect } from 'next/navigation';
import prismadb from '@/lib/prismadb';
import { currentUser } from '@/lib/authentication';
import { DataTable } from '@/components/data-table/data-table';
import { columns } from '@/components/secured/portfolio-table/columns';
import AddButton from '@/components/secured/portfolio-table/add-button';
import { columns } from '@/components/admin/portfolio-table/columns';
import AddButton from '@/components/admin/portfolio-table/add-button';
import {
Card,
CardContent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { redirect } from 'next/navigation';
import prismadb from '@/lib/prismadb';
import { currentUser } from '@/lib/authentication';
import { DataTable } from '@/components/data-table/data-table';
import { columns } from '@/components/secured/qualification-table/columns';
import AddButton from '@/components/secured/qualification-table/add-button';
import { columns } from '@/components/admin/qualification-table/columns';
import AddButton from '@/components/admin/qualification-table/add-button';
import {
Card,
CardContent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { redirect } from 'next/navigation';
import prismadb from '@/lib/prismadb';
import BackButton from '@/components/back-button';
import { currentUser } from '@/lib/authentication';
import ToolForm from '@/components/secured/tool-form';
import ToolForm from '@/components/admin/tool-form';
import {
Card,
CardContent,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import BackButton from '@/components/back-button';
import ToolForm from '@/components/secured/tool-form';
import ToolForm from '@/components/admin/tool-form';
import {
Card,
CardContent,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { redirect } from 'next/navigation';
import prismadb from '@/lib/prismadb';
import { currentUser } from '@/lib/authentication';
import { DataTable } from '@/components/data-table/data-table';
import { columns } from '@/components/secured/tool-table/columns';
import AddButton from '@/components/secured/tool-table/add-button';
import { columns } from '@/components/admin/tool-table/columns';
import AddButton from '@/components/admin/tool-table/add-button';
import {
Card,
CardContent,
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion app/auth/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ModeToggle } from '@/components/mode-toggle';
import ViewWebsite from '@/components/secured/view-website';
import ViewWebsite from '@/components/admin/view-website';

export default async function AuthLayout({
children
Expand Down
2 changes: 1 addition & 1 deletion app/auth/sign-in/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Metadata } from 'next';

import SignInForm from '@/components/secured/sign-in-form';
import SignInForm from '@/components/auth/sign-in-form';

export const metadata: Metadata = {
title: 'Sign In — Secure Access to Your Account',
Expand Down
2 changes: 1 addition & 1 deletion app/auth/sign-up/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Metadata } from 'next';

import SignUpForm from '@/components/secured/sign-up-form';
import SignUpForm from '@/components/auth/sign-up-form';

export const metadata: Metadata = {
title: 'Sign Up — Start Your Digital Journey Today',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions components/secured/navbar.tsx → components/admin/navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import UserNav from '@/components/secured/user-nav';
import UserNav from '@/components/admin/user-nav';
import { ModeToggle } from '@/components/mode-toggle';
import PageTitle from '@/components/secured/page-title';
import SheetMenu from '@/components/secured/sheet-menu';
import ViewWebsite from '@/components/secured/view-website';
import PageTitle from '@/components/admin/page-title';
import SheetMenu from '@/components/admin/sheet-menu';
import ViewWebsite from '@/components/admin/view-website';

export default function Navbar() {
return (
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { useEdgeStore } from '@/lib/edgestore';
import { Button } from '@/components/ui/button';
import { Textarea } from '@/components/ui/textarea';
import { useToast } from '@/components/ui/use-toast';
import { SingleImageDropzone } from '@/components/secured/single-image-dropzone';
import { SingleImageDropzone } from '@/components/admin/single-image-dropzone';
import {
Form,
FormControl,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Badge } from '@/components/ui/badge';
import type { Portfolio } from '@prisma/client';
import { Button } from '@/components/ui/button';
import { Checkbox } from '@/components/ui/checkbox';
import { CellActions } from '@/components/secured/portfolio-table/cell-actions';
import { CellActions } from '@/components/admin/portfolio-table/cell-actions';
import { DataTableColumnHeader } from '@/components/data-table/data-table-column-header';

export const columns: ColumnDef<Portfolio>[] = [
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Qualification } from '@prisma/client';

import QualificationTimeline from '@/components/admin/qualification-timeline';
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
import QualificationTimeline from '@/components/secured/qualification-timeline';

interface QualificationTabProps {
education: Qualification[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { Qualification } from '@prisma/client';

import { Badge } from '@/components/ui/badge';
import { Checkbox } from '@/components/ui/checkbox';
import { CellActions } from '@/components/secured/qualification-table/cell-actions';
import { CellActions } from '@/components/admin/qualification-table/cell-actions';
import { DataTableColumnHeader } from '@/components/data-table/data-table-column-header';

export const columns: ColumnDef<Qualification>[] = [
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Link from 'next/link';
import { LayoutTemplate, MenuIcon } from 'lucide-react';

import Menu from '@/components/secured/menu';
import Menu from '@/components/admin/menu';
import { Button } from '@/components/ui/button';
import {
Sheet,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { LayoutTemplate } from 'lucide-react';

import { cn } from '@/lib/utils';
import useStore from '@/hooks/use-store';
import Menu from '@/components/secured/menu';
import Menu from '@/components/admin/menu';
import { Button } from '@/components/ui/button';
import useSidebarToggle from '@/hooks/use-sidebar-toggle';
import SidebarToggle from '@/components/secured/sidebar-toggle';
import SidebarToggle from '@/components/admin/sidebar-toggle';

export default function Sidebar() {
const sidebar = useStore(useSidebarToggle, (state) => state);
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
import * as z from 'zod';
import axios from 'axios';
import { useState } from 'react';
import { useRouter } from 'next/navigation';
import { Loader2 } from 'lucide-react';
import { zodResolver } from '@hookform/resolvers/zod';
import { useForm } from 'react-hook-form';
import { useRouter } from 'next/navigation';
import { zodResolver } from '@hookform/resolvers/zod';

import type { Tool } from '@prisma/client';
import { Input } from '@/components/ui/input';
import { useEdgeStore } from '@/lib/edgestore';
import { Button } from '@/components/ui/button';
import { useToast } from '@/components/ui/use-toast';
import { SingleImageDropzone } from '@/components/secured/single-image-dropzone';
import { SingleImageDropzone } from '@/components/admin/single-image-dropzone';
import {
Form,
FormControl,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { ColumnDef } from '@tanstack/react-table';
import type { Tool } from '@prisma/client';
import { Badge } from '@/components/ui/badge';
import { Checkbox } from '@/components/ui/checkbox';
import { CellActions } from '@/components/secured/tool-table/cell-actions';
import { CellActions } from '@/components/admin/tool-table/cell-actions';
import { DataTableColumnHeader } from '@/components/data-table/data-table-column-header';

export const columns: ColumnDef<Tool>[] = [
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f056477

Please sign in to comment.