-
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.
- Loading branch information
Showing
133 changed files
with
10,524 additions
and
419 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react'; | ||
|
||
import Router from './routes'; | ||
import ThemeProvider from './theme'; | ||
|
||
const App = () => { | ||
return ( | ||
<ThemeProvider> | ||
<Router /> | ||
</ThemeProvider> | ||
); | ||
}; | ||
|
||
export default App; |
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,7 @@ | ||
const account ={ | ||
displayName: 'Jaydon Frankie', | ||
email: 'demo@minimals.cc', | ||
photoURL: '/static/mock-images/avatars/avatar_default.jpg', | ||
}; | ||
|
||
export default account; |
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,27 @@ | ||
import { faker } from '@faker-js/faker'; | ||
import { sample } from 'lodash'; | ||
|
||
// ---------------------------------------------------------------------- | ||
|
||
const users = [...Array(24)].map((_, index) => ({ | ||
id: faker.datatype.uuid(), | ||
avatarUrl: `/static/mock-images/avatars/avatar_${index + 1}.jpg`, | ||
name: faker.name.findName(), | ||
company: faker.company.companyName(), | ||
isVerified: faker.datatype.boolean(), | ||
status: sample(['active', 'banned']), | ||
role: sample([ | ||
'Leader', | ||
'Hr Manager', | ||
'UI Designer', | ||
'UX Designer', | ||
'UI/UX Designer', | ||
'Project Manager', | ||
'Backend Developer', | ||
'Full Stack Designer', | ||
'Front End Developer', | ||
'Full Stack Developer', | ||
]), | ||
})); | ||
|
||
export default users; |
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,17 @@ | ||
export const BASE_API_URL = 'http://localhost:5001/api/v1'; | ||
|
||
export const action_status = { | ||
IDLE: 'idle', | ||
LOADING: 'loading', | ||
SUCCEEDED: 'succeeded', | ||
FAILED: 'failed' | ||
}; | ||
|
||
export const MESSAGE_VARIANT = { | ||
SUCCESS: 'success', | ||
ERROR: 'error' | ||
}; | ||
|
||
export const ROLES = { | ||
ADMIN: 'admin' | ||
}; |
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,8 +1,26 @@ | ||
import { configureStore } from '@reduxjs/toolkit'; | ||
import counterReducer from '../features/counter/counterSlice'; | ||
import authReducer from '../features/auth/authSlice'; | ||
import jobReducer from '../features/jobs/jobSlice'; | ||
import messageReducer from '../features/message/messageSlice'; | ||
import categoryReducer from '../features/categories/categorySlice'; | ||
import userReducer from '../features/users/userSlice'; | ||
import pointReducer from '../features/points/pointSlice'; | ||
import paymentReducer from '../features/payments/paymentSlice'; | ||
import statisticReducer from '../features/statistic/statisticSlice'; | ||
import feedbackReducer from '../features/feedbacks/feedbackSlice'; | ||
import commentReducer from '../features/comments/commentSlice'; | ||
|
||
export const store = configureStore({ | ||
reducer: { | ||
counter: counterReducer, | ||
}, | ||
}); | ||
reducer: { | ||
auth: authReducer, | ||
jobs: jobReducer, | ||
message: messageReducer, | ||
categories: categoryReducer, | ||
users: userReducer, | ||
points: pointReducer, | ||
payments: paymentReducer, | ||
statistic: statisticReducer, | ||
feedbacks: feedbackReducer, | ||
comments: commentReducer | ||
}, | ||
}); |
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,47 @@ | ||
import React from 'react'; | ||
import { Link as RouterLink, useLocation } from 'react-router-dom'; | ||
import { Breadcrumbs, Link, Typography } from '@mui/material'; | ||
import { styled } from '@mui/material/styles'; | ||
|
||
|
||
const LinkRouter = (props) => (<Link {...props} component={RouterLink} />); | ||
const LinkRouterStyle = styled(LinkRouter)(({ theme }) => ({ | ||
color: theme.palette.primary.light, | ||
textTransform: 'capitalize' | ||
})); | ||
|
||
const BreadcrumbRouter = (props) => { | ||
const { exclude, breadcrumbNameMap, id } = props; | ||
const { pathname } = useLocation(); | ||
let pathnames = pathname.split('/').filter((x) => x).filter((x) => x !== exclude); | ||
|
||
if (id) { | ||
pathnames = pathnames.filter((x) => x !== id); | ||
} | ||
|
||
return ( | ||
<Breadcrumbs aria-label='breadcrumb'> | ||
<LinkRouterStyle underline='hover' to='/dashboard'> | ||
{exclude ? `${exclude}` : 'Home' } | ||
</LinkRouterStyle> | ||
{ | ||
pathnames.map((value, index) => { | ||
const last = index === pathnames.length - 1; | ||
const to = `${pathnames.slice(0, index + 1).join('/')}`; | ||
|
||
return last ? ( | ||
<Typography color='text.primary' key={to}> | ||
{breadcrumbNameMap[to]} | ||
</Typography> | ||
) : ( | ||
<LinkRouterStyle underline="hover" to={`/${exclude}/${to}`} key={to}> | ||
{breadcrumbNameMap[to]} | ||
</LinkRouterStyle> | ||
) | ||
}) | ||
} | ||
</Breadcrumbs> | ||
); | ||
}; | ||
|
||
export default BreadcrumbRouter; |
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,37 @@ | ||
import React from 'react'; | ||
import { styled } from '@mui/material/styles'; | ||
import { Typography, Card, CardContent, Link as MuiLink } from '@mui/material'; | ||
|
||
const InfoAreaStyle = styled(Card)(({theme}) => ({ | ||
backgroundColor: 'rgb(255, 255, 255)', | ||
color: 'rgb(33, 43, 54)', | ||
transition: 'box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms', | ||
overflow: 'hidden', | ||
position: 'relative', | ||
boxShadow: theme.shadows[2], | ||
borderRadius: theme.shape.borderRadius[5], | ||
zIndex: 0 | ||
})); | ||
|
||
const InfoContentStyle = styled('div')(({theme}) => ({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
padding: theme.spacing(2) | ||
})); | ||
|
||
const CardInfo = ({ children, title }) => { | ||
return ( | ||
<InfoAreaStyle> | ||
<CardContent> | ||
<Typography variant='h5' sx={{ paddingInlineStart: 2, fontWeight: 700, lineHeight: 1.5 }}> | ||
{title} | ||
</Typography> | ||
<InfoContentStyle> | ||
{children} | ||
</InfoContentStyle> | ||
</CardContent> | ||
</InfoAreaStyle> | ||
); | ||
}; | ||
|
||
export default CardInfo; |
Oops, something went wrong.