Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PortalMEC-React
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PortalMEC
PortalMEC-React
Commits
0fb34582
Commit
0fb34582
authored
4 years ago
by
lfr20
Browse files
Options
Downloads
Patches
Plain Diff
Add routes to Requirements and Actions
parent
60075dab
Branches
Branches containing commit
No related tags found
1 merge request
!46
Gamefication admin
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Admin/Components/Components/DisplayIcon.js
+7
-3
7 additions, 3 deletions
src/Admin/Components/Components/DisplayIcon.js
src/App.js
+33
-1
33 additions, 1 deletion
src/App.js
with
40 additions
and
4 deletions
src/Admin/Components/Components/DisplayIcon.js
+
7
−
3
View file @
0fb34582
...
...
@@ -39,6 +39,8 @@ import ExitToAppRoundedIcon from "@material-ui/icons/ExitToAppRounded";
import
AllOutIcon
from
"
@material-ui/icons/AllOut
"
;
import
SportsEsportsRoundedIcon
from
'
@material-ui/icons/SportsEsportsRounded
'
;
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
...
...
@@ -66,6 +68,8 @@ const icons = [
<
EmailRoundedIcon
style
=
{{
fill
:
blue
}}
/>
,
<
SportsEsportsRoundedIcon
style
=
{{
fill
:
orange
}}
/>
,
<
GiAchievement
size
=
{
24
}
style
=
{{
fill
:
pink
}}
/>
,
<
DiRequirejs
size
=
{
24
}
style
=
{{
fill
:
purple
}}
/>
,
<
GrAction
size
=
{
24
}
style
=
{{
fill
:
blue
}}
/>
,
<
TimelineRoundedIcon
style
=
{{
fill
:
orange
}}
/>
,
<
SettingsRoundedIcon
style
=
{{
fill
:
pink
}}
/>
,
<
ExitToAppRoundedIcon
style
=
{{
fill
:
purple
}}
/>
,
...
...
This diff is collapsed.
Click to expand it.
src/App.js
+
33
−
1
View file @
0fb34582
...
...
@@ -103,6 +103,15 @@ import EditItem from "./Admin/Components/Components/Inputs/EditItem/EditItem"
import
GameficationAchieves
from
'
./Admin/Pages/Pages/SubPages/GameficationAchieves
'
import
AchievementCard
from
'
./Admin/Components/Components/DataCards/AchievementsCard
'
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
Typography
from
"
@material-ui/core/Typography
"
;
...
...
@@ -371,12 +380,26 @@ export default function App() {
{...
a11yProps
(
16
)}
/
>
<
Tab
label
=
"
Achievement
s
"
label
=
"
Conquista
s
"
to
=
"
/admin/achievements
"
icon
=
{
<
DisplayIcon
i
=
{
17
}
/>
}
component
=
{
Link
}
{...
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
>
<
/AppBar
>
<
div
style
=
{{
padding
:
"
2em
"
}}
>
...
...
@@ -452,6 +475,15 @@ export default function App() {
<
Route
path
=
"
/admin/achievements
"
component
=
{
GameficationAchieves
}
/
>
<
Route
path
=
"
/admin/achievement/:id
"
component
=
{
AchievementCard
}
/
>
<
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
>
<
/Switch
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment