-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from yarre-uk/feat/react
React
- Loading branch information
Showing
182 changed files
with
840 additions
and
8,266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
NEXTAUTH_SECRET=Pn9CJbdUk6C9J8+lY6SlmFHkw4NItMpoHJ6ylIwEqrk= | ||
NEXT_PUBLIC_API_URL=https://mangahub.azurewebsites.net | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ yarn-error.log* | |
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
.next | ||
node_modules | ||
dist | ||
dist-ssr | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="description" content="Our lovely anime portal" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link rel="icon" href="/icon.jpg" /> | ||
<link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap" | ||
rel="stylesheet" | ||
/> | ||
<link rel="stylesheet" href="src/styles/preloadedStyles.css" /> | ||
<title>Manga Hub</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
module.exports = { | ||
export default { | ||
// Type check TypeScript files | ||
'**/*.(ts|tsx)': () => 'yarn tsc --noEmit', | ||
|
||
// Lint then format TypeScript and JavaScript files | ||
'**/*.(ts|tsx|js)': (filenames) => [ | ||
`yarn eslint --fix ${filenames | ||
.filter((filePath) => !filePath.includes('[', '(')) | ||
.join(' ')}`, | ||
`yarn prettier --write ${filenames | ||
.filter((filePath) => !filePath.includes('[', '(')) | ||
.join(' ')}`, | ||
`yarn eslint --fix ${filenames.join(' ')}`, | ||
`yarn prettier --write ${filenames.join(' ')}`, | ||
], | ||
|
||
// Format MarkDown and JSON | ||
'**/*.(md|json)': (filenames) => | ||
`yarn prettier --write ${filenames | ||
.filter((filePath) => !filePath.includes('[...nextauth]')) | ||
.join(' ')}`, | ||
`yarn prettier --write ${filenames.join(' ')}`, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { BrowserRouter, Route, Routes } from 'react-router-dom'; | ||
|
||
import { ROUTE } from './constants'; | ||
import { | ||
ChangePasswordContainer, | ||
ForgotPasswordContainer, | ||
SignInContainer, | ||
SignUpContainer, | ||
} from './modules/auth'; | ||
import { HomeContainer } from './modules/home'; | ||
import { LayoutContainer } from './modules/layout'; | ||
import { NotFoundContainer } from './modules/notFound'; | ||
|
||
import GlobalStyles from '@/globals'; | ||
|
||
const App = () => { | ||
return ( | ||
<> | ||
<GlobalStyles /> | ||
<BrowserRouter> | ||
<Routes> | ||
<Route path={ROUTE.HOME} element={<LayoutContainer />}> | ||
<Route index element={<HomeContainer />} /> | ||
<Route path={ROUTE.SIGN_IN} element={<SignInContainer />} /> | ||
<Route path={ROUTE.SIGN_UP} element={<SignUpContainer />} /> | ||
<Route | ||
path={ROUTE.FORGOT_PASSWORD} | ||
element={<ForgotPasswordContainer />} | ||
/> | ||
<Route | ||
path={ROUTE.CHANGE_PASSWORD} | ||
element={<ChangePasswordContainer />} | ||
/> | ||
<Route path="/*" element={<NotFoundContainer />} /> | ||
</Route> | ||
</Routes> | ||
</BrowserRouter> | ||
</> | ||
); | ||
}; | ||
|
||
export default App; |
Oops, something went wrong.