init commit,
This commit is contained in:
17
03_source/frontend/src/pages/dashboard/analytics/index.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/analytics/index.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { OverviewAnalyticsView } from 'src/sections/overview/analytics/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Analytics | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<OverviewAnalyticsView />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/banking/index.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/banking/index.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { OverviewBankingView } from 'src/sections/overview/banking/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Banking | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<OverviewBankingView />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/blank/index.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/blank/index.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { BlankView } from 'src/sections/blank/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Blank | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<BlankView />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/booking/index.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/booking/index.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { OverviewBookingView } from 'src/sections/overview/booking/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Booking | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<OverviewBookingView />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/calendar/index.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/calendar/index.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { CalendarView } from 'src/sections/calendar/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Calendar | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<CalendarView />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/chat/index.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/chat/index.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { ChatView } from 'src/sections/chat/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Chat | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<ChatView />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/course/index.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/course/index.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { OverviewCourseView } from 'src/sections/overview/course/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Course | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<OverviewCourseView />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/ecommerce/index.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/ecommerce/index.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { OverviewEcommerceView } from 'src/sections/overview/e-commerce/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `E-commerce | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<OverviewEcommerceView />
|
||||
</>
|
||||
);
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { FileManagerView } from 'src/sections/file-manager/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `File manager | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<FileManagerView />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/file/index.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/file/index.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { OverviewFileView } from 'src/sections/overview/file/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `File | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<OverviewFileView />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/index.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/index.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { OverviewAppView } from 'src/sections/overview/app/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function OverviewAppPage() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<OverviewAppView />
|
||||
</>
|
||||
);
|
||||
}
|
24
03_source/frontend/src/pages/dashboard/invoice/details.tsx
Normal file
24
03_source/frontend/src/pages/dashboard/invoice/details.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import { useParams } from 'src/routes/hooks';
|
||||
|
||||
import { CONFIG } from 'src/global-config';
|
||||
import { _invoices } from 'src/_mock/_invoice';
|
||||
|
||||
import { InvoiceDetailsView } from 'src/sections/invoice/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Invoice details | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
const { id = '' } = useParams();
|
||||
|
||||
const currentInvoice = _invoices.find((invoice) => invoice.id === id);
|
||||
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<InvoiceDetailsView invoice={currentInvoice} />
|
||||
</>
|
||||
);
|
||||
}
|
24
03_source/frontend/src/pages/dashboard/invoice/edit.tsx
Normal file
24
03_source/frontend/src/pages/dashboard/invoice/edit.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import { useParams } from 'src/routes/hooks';
|
||||
|
||||
import { CONFIG } from 'src/global-config';
|
||||
import { _invoices } from 'src/_mock/_invoice';
|
||||
|
||||
import { InvoiceEditView } from 'src/sections/invoice/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Invoice edit | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
const { id = '' } = useParams();
|
||||
|
||||
const currentInvoice = _invoices.find((invoice) => invoice.id === id);
|
||||
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<InvoiceEditView invoice={currentInvoice} />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/invoice/list.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/invoice/list.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { InvoiceListView } from 'src/sections/invoice/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Invoice list | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<InvoiceListView />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/invoice/new.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/invoice/new.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { InvoiceCreateView } from 'src/sections/invoice/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Create a new invoice | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<InvoiceCreateView />
|
||||
</>
|
||||
);
|
||||
}
|
24
03_source/frontend/src/pages/dashboard/job/details.tsx
Normal file
24
03_source/frontend/src/pages/dashboard/job/details.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import { useParams } from 'src/routes/hooks';
|
||||
|
||||
import { _jobs } from 'src/_mock/_job';
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { JobDetailsView } from 'src/sections/job/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Job details | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
const { id = '' } = useParams();
|
||||
|
||||
const currentJob = _jobs.find((job) => job.id === id);
|
||||
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<JobDetailsView job={currentJob} />
|
||||
</>
|
||||
);
|
||||
}
|
24
03_source/frontend/src/pages/dashboard/job/edit.tsx
Normal file
24
03_source/frontend/src/pages/dashboard/job/edit.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import { useParams } from 'src/routes/hooks';
|
||||
|
||||
import { _jobs } from 'src/_mock/_job';
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { JobEditView } from 'src/sections/job/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Job edit | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
const { id = '' } = useParams();
|
||||
|
||||
const currentJob = _jobs.find((job) => job.id === id);
|
||||
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<JobEditView job={currentJob} />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/job/list.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/job/list.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { JobListView } from 'src/sections/job/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Job list | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<JobListView />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/job/new.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/job/new.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { JobCreateView } from 'src/sections/job/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Create a new job | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<JobCreateView />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/kanban/index.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/kanban/index.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { KanbanView } from 'src/sections/kanban/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Kanban | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<KanbanView />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/mail/index.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/mail/index.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { MailView } from 'src/sections/mail/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Mail | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<MailView />
|
||||
</>
|
||||
);
|
||||
}
|
24
03_source/frontend/src/pages/dashboard/order/details.tsx
Normal file
24
03_source/frontend/src/pages/dashboard/order/details.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import { useParams } from 'src/routes/hooks';
|
||||
|
||||
import { _orders } from 'src/_mock/_order';
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { OrderDetailsView } from 'src/sections/order/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Order details | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
const { id = '' } = useParams();
|
||||
|
||||
const currentOrder = _orders.find((order) => order.id === id);
|
||||
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<OrderDetailsView order={currentOrder} />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/order/list.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/order/list.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { OrderListView } from 'src/sections/order/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Order list | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<OrderListView />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/params/index.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/params/index.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { BlankView } from 'src/sections/blank/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Item params | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<BlankView title="Item active has params" />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/permission/index.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/permission/index.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { PermissionDeniedView } from 'src/sections/permission/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Permission | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<PermissionDeniedView />
|
||||
</>
|
||||
);
|
||||
}
|
24
03_source/frontend/src/pages/dashboard/post/details.tsx
Normal file
24
03_source/frontend/src/pages/dashboard/post/details.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import { useParams } from 'src/routes/hooks';
|
||||
|
||||
import { CONFIG } from 'src/global-config';
|
||||
import { useGetPost } from 'src/actions/blog';
|
||||
|
||||
import { PostDetailsView } from 'src/sections/blog/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Post details | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
const { title = '' } = useParams();
|
||||
|
||||
const { post, postLoading, postError } = useGetPost(title);
|
||||
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<PostDetailsView post={post} loading={postLoading} error={postError} />
|
||||
</>
|
||||
);
|
||||
}
|
24
03_source/frontend/src/pages/dashboard/post/edit.tsx
Normal file
24
03_source/frontend/src/pages/dashboard/post/edit.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import { useParams } from 'src/routes/hooks';
|
||||
|
||||
import { CONFIG } from 'src/global-config';
|
||||
import { useGetPost } from 'src/actions/blog';
|
||||
|
||||
import { PostEditView } from 'src/sections/blog/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Post edit | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
const { title = '' } = useParams();
|
||||
|
||||
const { post } = useGetPost(title);
|
||||
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<PostEditView post={post} />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/post/list.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/post/list.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { PostListView } from 'src/sections/blog/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Post list | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<PostListView />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/post/new.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/post/new.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { PostCreateView } from 'src/sections/blog/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Create a new post | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<PostCreateView />
|
||||
</>
|
||||
);
|
||||
}
|
24
03_source/frontend/src/pages/dashboard/product/details.tsx
Normal file
24
03_source/frontend/src/pages/dashboard/product/details.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import { useParams } from 'src/routes/hooks';
|
||||
|
||||
import { CONFIG } from 'src/global-config';
|
||||
import { useGetProduct } from 'src/actions/product';
|
||||
|
||||
import { ProductDetailsView } from 'src/sections/product/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Product details | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
const { id = '' } = useParams();
|
||||
|
||||
const { product, productLoading, productError } = useGetProduct(id);
|
||||
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<ProductDetailsView product={product} loading={productLoading} error={productError} />
|
||||
</>
|
||||
);
|
||||
}
|
24
03_source/frontend/src/pages/dashboard/product/edit.tsx
Normal file
24
03_source/frontend/src/pages/dashboard/product/edit.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import { useParams } from 'src/routes/hooks';
|
||||
|
||||
import { CONFIG } from 'src/global-config';
|
||||
import { useGetProduct } from 'src/actions/product';
|
||||
|
||||
import { ProductEditView } from 'src/sections/product/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Product edit | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
const { id = '' } = useParams();
|
||||
|
||||
const { product } = useGetProduct(id);
|
||||
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<ProductEditView product={product} />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/product/list.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/product/list.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { ProductListView } from 'src/sections/product/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Product list | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<ProductListView />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/product/new.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/product/new.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { ProductCreateView } from 'src/sections/product/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Create a new product | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<ProductCreateView />
|
||||
</>
|
||||
);
|
||||
}
|
24
03_source/frontend/src/pages/dashboard/tour/details.tsx
Normal file
24
03_source/frontend/src/pages/dashboard/tour/details.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import { useParams } from 'src/routes/hooks';
|
||||
|
||||
import { _tours } from 'src/_mock/_tour';
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { TourDetailsView } from 'src/sections/tour/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Tour details | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
const { id = '' } = useParams();
|
||||
|
||||
const currentTour = _tours.find((tour) => tour.id === id);
|
||||
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<TourDetailsView tour={currentTour} />
|
||||
</>
|
||||
);
|
||||
}
|
24
03_source/frontend/src/pages/dashboard/tour/edit.tsx
Normal file
24
03_source/frontend/src/pages/dashboard/tour/edit.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import { useParams } from 'src/routes/hooks';
|
||||
|
||||
import { _tours } from 'src/_mock/_tour';
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { TourEditView } from 'src/sections/tour/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Tour edit | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
const { id = '' } = useParams();
|
||||
|
||||
const currentTour = _tours.find((tour) => tour.id === id);
|
||||
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<TourEditView tour={currentTour} />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/tour/list.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/tour/list.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { TourListView } from 'src/sections/tour/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Tour list | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<TourListView />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/tour/new.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/tour/new.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { TourCreateView } from 'src/sections/tour/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Create a new tour | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<TourCreateView />
|
||||
</>
|
||||
);
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { AccountBillingView } from 'src/sections/account/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Account billing settings | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<AccountBillingView />
|
||||
</>
|
||||
);
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { AccountChangePasswordView } from 'src/sections/account/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Account change password settings | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<AccountChangePasswordView />
|
||||
</>
|
||||
);
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { AccountGeneralView } from 'src/sections/account/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Account general settings | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<AccountGeneralView />
|
||||
</>
|
||||
);
|
||||
}
|
@@ -0,0 +1,19 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { AccountNotificationsView } from 'src/sections/account/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = {
|
||||
title: `Account notifications settings | Dashboard - ${CONFIG.appName}`,
|
||||
};
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<AccountNotificationsView />
|
||||
</>
|
||||
);
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { AccountSocialsView } from 'src/sections/account/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Account socials settings | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<AccountSocialsView />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/user/cards.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/user/cards.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { UserCardsView } from 'src/sections/user/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `User cards | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<UserCardsView />
|
||||
</>
|
||||
);
|
||||
}
|
24
03_source/frontend/src/pages/dashboard/user/edit.tsx
Normal file
24
03_source/frontend/src/pages/dashboard/user/edit.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import { useParams } from 'src/routes/hooks';
|
||||
|
||||
import { CONFIG } from 'src/global-config';
|
||||
import { _userList } from 'src/_mock/_user';
|
||||
|
||||
import { UserEditView } from 'src/sections/user/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `User edit | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
const { id = '' } = useParams();
|
||||
|
||||
const currentUser = _userList.find((user) => user.id === id);
|
||||
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<UserEditView user={currentUser} />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/user/list.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/user/list.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { UserListView } from 'src/sections/user/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `User list | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<UserListView />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/user/new.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/user/new.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { UserCreateView } from 'src/sections/user/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `Create a new user | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<UserCreateView />
|
||||
</>
|
||||
);
|
||||
}
|
17
03_source/frontend/src/pages/dashboard/user/profile.tsx
Normal file
17
03_source/frontend/src/pages/dashboard/user/profile.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { CONFIG } from 'src/global-config';
|
||||
|
||||
import { UserProfileView } from 'src/sections/user/view';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const metadata = { title: `User profile | Dashboard - ${CONFIG.appName}` };
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<title>{metadata.title}</title>
|
||||
|
||||
<UserProfileView />
|
||||
</>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user