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
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
b56ca9c9
Commit
b56ca9c9
authored
4 years ago
by
lfr20
Browse files
Options
Downloads
Patches
Plain Diff
Removed terminal warnings
parent
d3899d9f
No related branches found
No related tags found
1 merge request
!46
Gamefication admin
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/App.js
+3
-196
3 additions, 196 deletions
src/App.js
with
3 additions
and
196 deletions
src/App.js
+
3
−
196
View file @
b56ca9c9
...
...
@@ -35,7 +35,7 @@ import TabManageAc from "./Pages/TabsHelp/TabManageAc";
import
PasswordRecoveryPage
from
"
./Pages/PasswordRecoveryPage.js
"
;
import
PageProfessor
from
"
./Pages/PageProfessor.js
"
;
import
ResourcePage
from
"
./Pages/ResourcePage
"
;
import
{
BrowserRouter
,
Switch
,
Route
,
Link
}
from
"
react-router-dom
"
;
import
{
BrowserRouter
,
Switch
,
Route
}
from
"
react-router-dom
"
;
import
{
Store
}
from
"
./Store
"
;
import
TermsPage
from
"
./Pages/TermsPage.js
"
;
import
PublicationPermissionsPage
from
"
./Pages/PublicationPermissionsPage.js
"
;
...
...
@@ -52,12 +52,8 @@ import FormationMaterialPage from "./Pages/FormationMaterialPage.js";
import
FormationMaterialIframe
from
"
./Pages/FormationMaterialIframe.js
"
;
import
MaterialPage
from
"
./Pages/MaterialPage
"
;
//material ui
import
{
Tab
,
Tabs
}
from
"
@material-ui/core
"
;
//admin
import
{
makeStyles
}
from
"
@material-ui/core/styles
"
;
import
DisplayIcon
from
"
./Admin/Components/Components/DisplayIcon
"
;
import
NoteVariables
from
"
./Admin/Pages/Pages/SubPages/NoteVariables
"
;
import
Institution
from
"
./Admin/Pages/Pages/SubPages/Institutions
"
;
import
SendEmail
from
"
./Admin/Pages/Pages/SubPages/SendEmail
"
;
...
...
@@ -112,44 +108,9 @@ import GameficationActions from './Admin/Pages/Pages/SubPages/GameficationAction
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
AppBar
from
'
./Admin/Components/Components/AppBar
'
import
PropTypes
from
"
prop-types
"
;
import
Typography
from
"
@material-ui/core/Typography
"
;
import
Box
from
"
@material-ui/core/Box
"
;
import
AppBar
from
"
@material-ui/core/AppBar
"
;
function
TabPanel
(
props
)
{
const
{
children
,
value
,
index
,
...
other
}
=
props
;
return
(
<
div
role
=
"
tabpanel
"
hidden
=
{
value
!==
index
}
id
=
{
`nav-tabpanel-
${
index
}
`
}
aria
-
labelledby
=
{
`nav-tab-
${
index
}
`
}
{...
other
}
>
{
value
===
index
&&
(
<
Box
p
=
{
3
}
>
<
Typography
>
{
children
}
<
/Typography
>
<
/Box
>
)}
<
/div
>
);
}
TabPanel
.
propTypes
=
{
children
:
PropTypes
.
node
,
index
:
PropTypes
.
any
.
isRequired
,
value
:
PropTypes
.
any
.
isRequired
,
};
function
a11yProps
(
index
)
{
return
{
id
:
`nav-tab-
${
index
}
`
,
"
aria-controls
"
:
`nav-tabpanel-
${
index
}
`
,
};
}
const
useStyles
=
makeStyles
({
list
:
{
...
...
@@ -166,11 +127,6 @@ export default function App() {
const
{
dispatch
}
=
useContext
(
Store
);
const
[
hideFooter
,
setHideFooter
]
=
useState
(
false
);
const
[
value
,
setValue
]
=
React
.
useState
(
0
);
const
handleChange
=
(
event
,
newValue
)
=>
{
setValue
(
newValue
);
};
useEffect
(()
=>
{
setHideFooter
(
String
(
window
.
location
.
href
).
includes
(
"
iframe-colecao
"
));
...
...
@@ -252,156 +208,7 @@ export default function App() {
<
Route
path
=
"
/iframe-colecao
"
component
=
{
FormationMaterialIframe
}
/
>
<
Route
path
=
"
/material-formacao
"
component
=
{
MaterialPage
}
/
>
<
div
style
=
{{
backgroundColor
:
"
#D3D3D3
"
}}
>
<
AppBar
position
=
"
static
"
color
=
"
default
"
>
<
Tabs
variant
=
"
scrollable
"
scrollButtons
=
"
on
"
value
=
{
value
}
onChange
=
{
handleChange
}
aria
-
label
=
"
nav tabs example
"
>
<
Tab
label
=
"
Home
"
to
=
"
/admin/home
"
icon
=
{
<
DisplayIcon
i
=
{
0
}
/>
}
component
=
{
Link
}
{...
a11yProps
(
0
)}
/
>
<
Tab
label
=
"
Coleções
"
to
=
"
/admin/Collections
"
icon
=
{
<
DisplayIcon
i
=
{
1
}
/>
}
component
=
{
Link
}
{...
a11yProps
(
1
)}
/
>
<
Tab
label
=
"
Atividades
"
to
=
"
/admin/activities
"
icon
=
{
<
DisplayIcon
i
=
{
2
}
/>
}
component
=
{
Link
}
{...
a11yProps
(
2
)}
/
>
<
Tab
label
=
"
Dúvidas da comunidade
"
to
=
"
/admin/CommunityQuestions
"
icon
=
{
<
DisplayIcon
i
=
{
3
}
/>
}
component
=
{
Link
}
{...
a11yProps
(
3
)}
/
>
<
Tab
label
=
"
Instituição
"
to
=
"
/admin/intitutions
"
icon
=
{
<
DisplayIcon
i
=
{
4
}
/>
}
component
=
{
Link
}
{...
a11yProps
(
4
)}
/
>
<
Tab
label
=
"
Linguagens
"
to
=
"
/admin/languages
"
icon
=
{
<
DisplayIcon
i
=
{
5
}
/>
}
component
=
{
Link
}
{...
a11yProps
(
5
)}
/
>
<
Tab
label
=
"
Objetos educacionais
"
to
=
"
/admin/learningObjects
"
icon
=
{
<
DisplayIcon
i
=
{
6
}
/>
}
component
=
{
Link
}
{...
a11yProps
(
6
)}
/
>
<
Tab
label
=
"
Rating
"
to
=
"
/admin/Ratings
"
icon
=
{
<
DisplayIcon
i
=
{
7
}
/>
}
component
=
{
Link
}
{...
a11yProps
(
7
)}
/
>
<
Tab
label
=
"
Permissões do usuário
"
to
=
"
/admin/permissions
"
icon
=
{
<
DisplayIcon
i
=
{
8
}
/>
}
component
=
{
Link
}
{...
a11yProps
(
8
)}
/
>
<
Tab
label
=
"
Variáveis de nota
"
to
=
"
/admin/noteVars
"
icon
=
{
<
DisplayIcon
i
=
{
9
}
/>
}
component
=
{
Link
}
{...
a11yProps
(
9
)}
/
>
<
Tab
label
=
"
Perguntas da curadoria
"
to
=
"
/admin/Questions
"
icon
=
{
<
DisplayIcon
i
=
{
10
}
/>
}
component
=
{
Link
}
{...
a11yProps
(
10
)}
/
>
<
Tab
label
=
"
Aprovação de professores
"
to
=
"
/admin/users/teacher_requests
"
icon
=
{
<
DisplayIcon
i
=
{
11
}
/>
}
component
=
{
Link
}
{...
a11yProps
(
11
)}
/
>
<
Tab
label
=
"
Usuários
"
to
=
"
/admin/usersList
"
icon
=
{
<
DisplayIcon
i
=
{
12
}
/>
}
component
=
{
Link
}
{...
a11yProps
(
12
)}
/
>
<
Tab
label
=
"
Usuários bloqueados
"
to
=
"
/admin/BlockedUsers
"
icon
=
{
<
DisplayIcon
i
=
{
13
}
/>
}
component
=
{
Link
}
{...
a11yProps
(
13
)}
/
>
<
Tab
label
=
"
Denúncias
"
to
=
"
/admin/complaints
"
icon
=
{
<
DisplayIcon
i
=
{
14
}
/>
}
component
=
{
Link
}
{...
a11yProps
(
14
)}
/
>
<
Tab
label
=
"
Enviar email
"
to
=
"
/admin/sendEmail/:email
"
icon
=
{
<
DisplayIcon
i
=
{
15
}
/>
}
component
=
{
Link
}
{...
a11yProps
(
15
)}
/
>
<
Tab
label
=
"
Gameficação
"
to
=
"
/admin/gamefication
"
icon
=
{
<
DisplayIcon
i
=
{
16
}
/>
}
component
=
{
Link
}
{...
a11yProps
(
16
)}
/
>
<
Tab
label
=
"
Conquistas
"
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
>
<
AppBar
/>
<
div
style
=
{{
padding
:
"
2em
"
}}
>
<
Route
path
=
"
/admin/home
"
exact
=
{
true
}
component
=
{
Inframe
}
/
>
<
Route
path
=
"
/admin/intitutions
"
component
=
{
Institution
}
/
>
...
...
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