copied the code from the working repo
This commit is contained in:
7
mtucijobsweb2/app/create/page.tsx
Normal file
7
mtucijobsweb2/app/create/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import VacansyPage from "@/fsd/pages/VacansyPage";
|
||||
|
||||
const Create = () => {
|
||||
return <><VacansyPage/></>;
|
||||
};
|
||||
|
||||
export default Create;
|
||||
9
mtucijobsweb2/app/editvacansy/[id]/page.tsx
Normal file
9
mtucijobsweb2/app/editvacansy/[id]/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
import EditVacancyPage from '@/fsd/pages/EditVacancyPage';
|
||||
import React from 'react';
|
||||
|
||||
const Edit = ({ params }: { params: { id: number } }) => {
|
||||
return <EditVacancyPage id={params.id} />;
|
||||
};
|
||||
|
||||
export default Edit;
|
||||
36
mtucijobsweb2/app/layout.tsx
Normal file
36
mtucijobsweb2/app/layout.tsx
Normal file
@@ -0,0 +1,36 @@
|
||||
import type { Metadata } from 'next';
|
||||
import { Inter } from 'next/font/google';
|
||||
const inter = Inter({ subsets: ['latin'] });
|
||||
import '../fsd/app/styles/global.scss';
|
||||
import AppHeader from '@/fsd/widgets/Header/Header';
|
||||
import ClientProvider from '@/fsd/app/provider/QueryClient';
|
||||
import { AuthProvider } from '@/fsd/app/provider/AuthContext';
|
||||
import AuthGuard from "@/fsd/app/provider/AuthGuard"
|
||||
import RedirectPage from '@/fsd/pages/RedirectPage';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'MTUCI JOBS',
|
||||
description: 'Project for mtuci jobs',
|
||||
icons: {
|
||||
icon: '/favicon.svg'
|
||||
},
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<ClientProvider>
|
||||
<html lang='en'>
|
||||
<AuthProvider>
|
||||
<body className={inter.className}>
|
||||
<AppHeader />
|
||||
<AuthGuard>{children}</AuthGuard>
|
||||
</body>
|
||||
</AuthProvider>
|
||||
</html>
|
||||
</ClientProvider>
|
||||
);
|
||||
}
|
||||
7
mtucijobsweb2/app/login/page.tsx
Normal file
7
mtucijobsweb2/app/login/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import LoginPage from "@/fsd/pages/LoginPage";
|
||||
|
||||
const Login = () => {
|
||||
return <><LoginPage/></>;
|
||||
};
|
||||
|
||||
export default Login;
|
||||
12
mtucijobsweb2/app/page.tsx
Normal file
12
mtucijobsweb2/app/page.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import LoginPage from "@/fsd/pages/LoginPage";
|
||||
import RedirectPage from "@/fsd/pages/RedirectPage";
|
||||
import VacansyPage from "@/fsd/pages/VacansyPage";
|
||||
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<>
|
||||
<RedirectPage/>
|
||||
</>
|
||||
)
|
||||
}
|
||||
8
mtucijobsweb2/app/resume/[id]/page.tsx
Normal file
8
mtucijobsweb2/app/resume/[id]/page.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import ResumePage from '@/fsd/pages/ResumePage';
|
||||
import React from 'react'
|
||||
|
||||
const ResumeList = ({ params }: { params: { id: number } }) => {
|
||||
return <ResumePage id = {params.id}/>;
|
||||
};
|
||||
|
||||
export default ResumeList;
|
||||
11
mtucijobsweb2/app/search/page.tsx
Normal file
11
mtucijobsweb2/app/search/page.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import SearchResumePage from '@/fsd/pages/SearchResumePage';
|
||||
|
||||
const Search = () => {
|
||||
return (
|
||||
<>
|
||||
<SearchResumePage />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Search;
|
||||
11
mtucijobsweb2/app/view/page.tsx
Normal file
11
mtucijobsweb2/app/view/page.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import ViewVacansyPage from '@/fsd/pages/ViewVacansyPage';
|
||||
|
||||
const View = () => {
|
||||
return (
|
||||
<>
|
||||
<ViewVacansyPage />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default View;
|
||||
Reference in New Issue
Block a user