Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zhige Yu
scientia
Commits
a9a9d1bf
Commit
a9a9d1bf
authored
Jan 24, 2021
by
ss16118
Browse files
Removed unnecessary output messages and commented out "Exams" section.
parent
66781963
Pipeline
#172815
failed with stages
Changes
9
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
src/components/App.tsx
View file @
a9a9d1bf
...
...
@@ -141,7 +141,7 @@ class App extends React.Component<{}, AppState> {
{
name
:
"
Dashboard
"
,
path
:
"
/dashboard
"
,
icon
:
faHome
},
{
name
:
"
Modules
"
,
path
:
"
/modules
"
,
icon
:
faChalkboardTeacher
},
{
name
:
"
Timeline
"
,
path
:
"
/timeline
"
,
icon
:
faCalendarWeek
},
{
name
:
"
Exams
"
,
path
:
"
/exams
"
,
icon
:
faBookOpen
},
//
{ name: "Exams", path: "/exams", icon: faBookOpen },
]
return
(
...
...
src/components/modals/CreateModal/index.tsx
View file @
a9a9d1bf
This diff is collapsed.
Click to expand it.
src/components/pages/Dashboard/index.tsx
View file @
a9a9d1bf
...
...
@@ -48,7 +48,6 @@ const Dashboard: React.FC = () => {
return
insight
}))
.
then
(
insights
=>
{
console
.
log
(
insights
)
setInsightsSorted
(
insights
)
})
.
finally
(()
=>
{
...
...
src/components/pages/SignIn/index.tsx
View file @
a9a9d1bf
...
...
@@ -40,7 +40,6 @@ const SignIn: React.FC<Props> = ({ location }) => {
api
:
api
.
EMARKING_ME_INFO
(),
method
:
methods
.
GET
})
console
.
log
(
response
)
onChangeCurrentUserInfo
(
response
)
setRedirect
(
true
)
...
...
src/components/pages/index.tsx
View file @
a9a9d1bf
...
...
@@ -153,10 +153,6 @@ const StandardView: React.FC<StandardViewProps> = ({
setModulesTracks
(
modulesTracks
)
},
[
timelineEvents
])
useEffect
(()
=>
{
console
.
log
(
modulesList
.
length
)
},
[
modulesList
])
return
(
<
div
id
=
"wrapper"
...
...
src/components/pages/modulePages/ModuleFeedback/index.tsx
View file @
a9a9d1bf
...
...
@@ -58,7 +58,6 @@ const ModuleFeedback: React.FC<Props> = ({ courseCode }) => {
}
})
.
then
(
feedbacks
=>
{
console
.
log
(
feedbacks
)
setFeedbacks
(
feedbacks
.
filter
(
x
=>
x
.
course
===
courseCode
).
sort
((
a
,
b
)
=>
a
.
id
-
b
.
id
))
setLoading
(
Stage
.
OK
)
})
...
...
src/components/pages/modulePages/ModuleResources/components/StaffView.tsx
View file @
a9a9d1bf
...
...
@@ -184,8 +184,8 @@ const StaffView: React.FC<StaffViewProps> = ({
}
}
year
=
{
year
}
course
=
{
course
}
start
_d
ate
=
{
moment
.
now
()
}
due
_d
ate
=
{
moment
.
now
()
}
/>
start
D
ate
=
{
moment
.
now
()
}
due
D
ate
=
{
moment
.
now
()
}
/>
<
AlertModal
show
=
{
modal
===
"
alert
"
}
...
...
src/components/sections/DistributionSection/index.tsx
View file @
a9a9d1bf
...
...
@@ -112,7 +112,6 @@ const DistributionSection: React.FC<Props> = ({
}).
then
(
distributions
=>
{
const
distribution
=
distributions
[
0
]
distribution
&&
setDistribution
(
distribution
)
console
.
log
(
distributions
)
setLoading
(
distribution
?
Stage
.
OK
:
Stage
.
NO_DISTRIBUTION
)
})
.
catch
(
error
=>
setLoading
(
Stage
.
ERROR
))
...
...
src/utils/auth.tsx
View file @
a9a9d1bf
...
...
@@ -79,7 +79,6 @@ async function login(username: string, password: string, loginURL: string, login
})
if
(
response
.
ok
)
{
const
data
=
await
response
.
json
()
console
.
log
(
loginService
,
data
)
storeDataInStorage
(
loginService
,
{
...
data
,
user_info
:
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment