Toggle navigation
Toggle navigation
This project
Loading...
Sign in
육현진
/
DBproject
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
육현진
2020-12-08 04:50:00 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
37bc508fce042602ed2b8501e8e43c9df15516b2
37bc508f
1 parent
cb102ed8
Loading view
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
client/.eslintcache
client/src/App.js
client/.eslintcache
View file @
37bc508
This diff is collapsed. Click to expand it.
client/src/App.js
View file @
37bc508
...
...
@@ -8,6 +8,8 @@ import TableBody from '@material-ui/core/TableBody'
import
TableRow
from
'@material-ui/core/TableRow'
import
TableCell
from
'@material-ui/core/TableCell'
import
{
withStyles
}
from
'@material-ui/core/styles'
;
import
curcularProgress
from
'@material-ui/core/CircularProgress'
;
import
CircularProgress
from
'@material-ui/core/CircularProgress'
;
const
styles
=
theme
=>
({
root
:
{
...
...
@@ -17,6 +19,9 @@ const styles = theme => ({
},
table
:
{
minWidth
:
1000
},
progress
:{
margin
:
theme
.
spacing
.
unit
*
2
}
})
...
...
@@ -47,10 +52,12 @@ const students = [
class
App
extends
Component
{
state
=
{
students
:
""
students
:
""
,
completed
:
0
}
componentDidMount
()
{
this
.
timer
=
setInterval
(
this
.
progress
,
20
);
this
.
callApi
()
.
then
(
res
=>
this
.
setState
({
students
:
res
}))
.
catch
(
err
=>
console
.
log
(
err
));
...
...
@@ -62,6 +69,11 @@ class App extends Component{
return
body
;
}
progress
=
()
=>
{
const
{
completed
}
=
this
.
state
;
this
.
setState
({
completed
:
completed
>=
100
?
0
:
completed
+
1
});
}
render
(){
const
{
classes
}
=
this
.
props
;
...
...
@@ -102,7 +114,12 @@ class App extends Component{
st_Score
=
{
c
.
st_Score
}
/
>
);
})
:
""
})
:
<
TableRow
>
<
TableCell
colSpan
=
"9"
allign
=
"center"
>
<
CircularProgress
className
=
{
classes
.
progress
}
variant
=
"determinate"
value
=
{
this
.
state
.
completed
}
/
>
<
/TableCell
>
<
/TableRow
>
}
<
/TableBody
>
...
...
Please
register
or
login
to post a comment