Skip to content
Snippets Groups Projects
Commit 0fb34582 authored by lfr20's avatar lfr20
Browse files

Add routes to Requirements and Actions

parent 60075dab
No related branches found
No related tags found
1 merge request!46Gamefication admin
...@@ -39,6 +39,8 @@ import ExitToAppRoundedIcon from "@material-ui/icons/ExitToAppRounded"; ...@@ -39,6 +39,8 @@ import ExitToAppRoundedIcon from "@material-ui/icons/ExitToAppRounded";
import AllOutIcon from "@material-ui/icons/AllOut"; import AllOutIcon from "@material-ui/icons/AllOut";
import SportsEsportsRoundedIcon from '@material-ui/icons/SportsEsportsRounded'; import SportsEsportsRoundedIcon from '@material-ui/icons/SportsEsportsRounded';
import { GiAchievement } from "react-icons/gi" import { GiAchievement } from "react-icons/gi"
import { DiRequirejs } from "react-icons/di"
import { GrAction } from 'react-icons/gr'
//This file manipulate the icon that will be displayed in the left navigation menu //This file manipulate the icon that will be displayed in the left navigation menu
...@@ -66,6 +68,8 @@ const icons = [ ...@@ -66,6 +68,8 @@ const icons = [
<EmailRoundedIcon style={{ fill: blue }} />, <EmailRoundedIcon style={{ fill: blue }} />,
<SportsEsportsRoundedIcon style={{ fill: orange }} />, <SportsEsportsRoundedIcon style={{ fill: orange }} />,
<GiAchievement size={24} style={{ fill: pink }} />, <GiAchievement size={24} style={{ fill: pink }} />,
<DiRequirejs size={24} style={{ fill: purple }} />,
<GrAction size={24} style={{ fill: blue }} />,
<TimelineRoundedIcon style={{ fill: orange }} />, <TimelineRoundedIcon style={{ fill: orange }} />,
<SettingsRoundedIcon style={{ fill: pink }} />, <SettingsRoundedIcon style={{ fill: pink }} />,
<ExitToAppRoundedIcon style={{ fill: purple }} />, <ExitToAppRoundedIcon style={{ fill: purple }} />,
......
...@@ -103,6 +103,15 @@ import EditItem from "./Admin/Components/Components/Inputs/EditItem/EditItem" ...@@ -103,6 +103,15 @@ import EditItem from "./Admin/Components/Components/Inputs/EditItem/EditItem"
import GameficationAchieves from './Admin/Pages/Pages/SubPages/GameficationAchieves' import GameficationAchieves from './Admin/Pages/Pages/SubPages/GameficationAchieves'
import AchievementCard from './Admin/Components/Components/DataCards/AchievementsCard' import AchievementCard from './Admin/Components/Components/DataCards/AchievementsCard'
import EditAchievement from "./Admin/Components/Components/Inputs/EditAchievement" import EditAchievement from "./Admin/Components/Components/Inputs/EditAchievement"
import CreateAchievements from './Admin/Components/Components/Inputs/CreateAchievements'
import GameficationRequires from './Admin/Pages/Pages/SubPages/GameficationRequires'
import EditRequirement from "./Admin/Components/Components/Inputs/EditRequirements"
import CreateRequirement from './Admin/Components/Components/Inputs/CreateRequirement'
import RequirementCard from './Admin/Components/Components/DataCards/RequirementCard'
import GameficationActions from './Admin/Pages/Pages/SubPages/GameficationActions'
import ActionCard from './Admin/Components/Components/DataCards/ActionCard'
import EditAction from "./Admin/Components/Components/Inputs/EditAction"
import CreateAction from "./Admin/Components/Components/Inputs/CreateAction"
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import Typography from "@material-ui/core/Typography"; import Typography from "@material-ui/core/Typography";
...@@ -371,12 +380,26 @@ export default function App() { ...@@ -371,12 +380,26 @@ export default function App() {
{...a11yProps(16)} {...a11yProps(16)}
/> />
<Tab <Tab
label="Achievements" label="Conquistas"
to="/admin/achievements" to="/admin/achievements"
icon={<DisplayIcon i={17} />} icon={<DisplayIcon i={17} />}
component={Link} component={Link}
{...a11yProps(17)} {...a11yProps(17)}
/> />
<Tab
label="Requisitos"
to="/admin/requirements"
icon={<DisplayIcon i={18} />}
component={Link}
{...a11yProps(18)}
/>
<Tab
label="Ações"
to="/admin/actions"
icon={<DisplayIcon i={19} />}
component={Link}
{...a11yProps(19)}
/>
</Tabs> </Tabs>
</AppBar> </AppBar>
<div style={{ padding: "2em" }}> <div style={{ padding: "2em" }}>
...@@ -452,6 +475,15 @@ export default function App() { ...@@ -452,6 +475,15 @@ export default function App() {
<Route path="/admin/achievements" component={GameficationAchieves} /> <Route path="/admin/achievements" component={GameficationAchieves} />
<Route path="/admin/achievement/:id" component={AchievementCard} /> <Route path="/admin/achievement/:id" component={AchievementCard} />
<Route path="/admin/EditAchievement/:id" component={EditAchievement} /> <Route path="/admin/EditAchievement/:id" component={EditAchievement} />
<Route path="/admin/createAchievements" component={CreateAchievements} />
<Route path="/admin/requirements" component={GameficationRequires} />
<Route path="/admin/EditRequirement/:id" component={EditRequirement} />
<Route path="/admin/CreateRequirement" component={CreateRequirement} />
<Route path="/admin/requirement/:id" component={RequirementCard} />
<Route path="/admin/actions" component={GameficationActions} />
<Route path="/admin/action/:id" component={ActionCard} />
<Route path="/admin/EditAction/:id" component={EditAction} />
<Route path="/admin/CreateAction" component={CreateAction} />
</div> </div>
</div> </div>
</Switch> </Switch>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment