Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
teknikattan-scoring-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tddd96-grupp1
teknikattan-scoring-system
Merge requests
!148
Resolve "Styling"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Styling"
188-styling
into
dev
Overview
0
Commits
4
Pipelines
4
Changes
3
Merged
Victor Löfgren
requested to merge
188-styling
into
dev
3 years ago
Overview
0
Commits
4
Pipelines
4
Changes
3
Expand
Closes
#188 (closed)
Edited
3 years ago
by
Josef Olsson
0
0
Merge request reports
Compare
dev
version 3
e35eb028
3 years ago
version 2
df706284
3 years ago
version 1
2dd5052a
3 years ago
dev (base)
and
latest version
latest version
0d62947f
4 commits,
3 years ago
version 3
e35eb028
4 commits,
3 years ago
version 2
df706284
3 commits,
3 years ago
version 1
2dd5052a
1 commit,
3 years ago
3 files
+
65
−
60
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
client/src/pages/views/OperatorViewPage.tsx
+
44
−
45
Options
@@ -16,9 +16,9 @@ import {
Typography
,
}
from
'
@material-ui/core
'
import
AssignmentIcon
from
'
@material-ui/icons/Assignment
'
import
BackspaceIcon
from
'
@material-ui/icons/Backspace
'
import
ChevronLeftIcon
from
'
@material-ui/icons/ChevronLeft
'
import
ChevronRightIcon
from
'
@material-ui/icons/ChevronRight
'
import
CloseIcon
from
'
@material-ui/icons/Close
'
import
FileCopyIcon
from
'
@material-ui/icons/FileCopy
'
import
LinkIcon
from
'
@material-ui/icons/Link
'
import
SupervisorAccountIcon
from
'
@material-ui/icons/SupervisorAccount
'
@@ -41,7 +41,7 @@ import {
OperatorHeader
,
OperatorHeaderItem
,
OperatorInnerContent
,
ToolBarContainer
,
OperatorQuitButton
,
}
from
'
./styled
'
/**
@@ -246,11 +246,11 @@ const OperatorViewPage: React.FC = () => {
</
Button
>
</
DialogActions
>
</
Dialog
>
<
OperatorHeader
>
<
OperatorHeader
color
=
"primary"
position
=
"fixed"
>
<
Tooltip
title
=
"Avsluta tävling"
arrow
>
<
OperatorButton
onClick
=
{
handleVerifyExit
}
variant
=
"contained"
color
=
"secondary"
>
<
Backspac
eIcon
fontSize
=
"large"
/>
</
OperatorButton
>
<
Operator
Quit
Button
onClick
=
{
handleVerifyExit
}
variant
=
"contained"
color
=
"secondary"
>
<
Clos
eIcon
fontSize
=
"large"
/>
</
Operator
Quit
Button
>
</
Tooltip
>
<
Dialog
open
=
{
openAlert
}
onClose
=
{
handleClose
}
aria-labelledby
=
"responsive-dialog-title"
>
@@ -270,61 +270,60 @@ const OperatorViewPage: React.FC = () => {
</
DialogActions
>
</
Dialog
>
<
OperatorHeaderItem
>
<
Typography
variant
=
"h
3
"
>
{
presentation
.
competition
.
name
}
</
Typography
>
<
Typography
variant
=
"h
4
"
>
{
presentation
.
competition
.
name
}
</
Typography
>
</
OperatorHeaderItem
>
<
OperatorHeaderItem
>
<
Typography
variant
=
"h
3
"
>
<
Typography
variant
=
"h
4
"
>
{
activeSlideOrder
!==
undefined
&&
activeSlideOrder
+
1
}
/
{
presentation
.
competition
.
slides
.
length
}
</
Typography
>
</
OperatorHeaderItem
>
</
OperatorHeader
>
<
div
style
=
{
{
h
eight
:
0
,
paddingTop
:
120
}
}
/>
{
<
div
style
=
{
{
minH
eight
:
64
}
}
/>
}
<
OperatorContent
>
<
OperatorInnerContent
>
{
activeViewTypeId
&&
<
SlideDisplay
variant
=
"presentation"
activeViewTypeId
=
{
activeViewTypeId
}
/>
}
</
OperatorInnerContent
>
</
OperatorContent
>
<
div
style
=
{
{
height
:
0
,
paddingTop
:
140
}
}
/>
<
OperatorFooter
>
<
ToolBarContainer
>
<
Tooltip
title
=
"Föregående sida"
arrow
>
<
OperatorButton
onClick
=
{
handleSetPrevSlide
}
variant
=
"contained"
disabled
=
{
isFirstSlide
}
>
<
ChevronLeftIcon
fontSize
=
"large"
/>
</
OperatorButton
>
</
Tooltip
>
{
slideTimer
&&
(
<
Tooltip
title
=
"Starta timer"
arrow
>
<
OperatorButton
onClick
=
{
handleStartTimer
}
variant
=
"contained"
disabled
=
{
timer
.
value
!==
null
&&
!
timer
.
enabled
}
>
<
TimerIcon
fontSize
=
"large"
/>
<
Timer
disableText
/>
</
OperatorButton
>
</
Tooltip
>
)
}
{
<
div
style
=
{
{
minHeight
:
128
}
}
/>
}
<
OperatorFooter
position
=
"fixed"
>
<
Tooltip
title
=
"Föregående sida"
arrow
>
<
OperatorButton
onClick
=
{
handleSetPrevSlide
}
variant
=
"contained"
disabled
=
{
isFirstSlide
}
color
=
"primary"
>
<
ChevronLeftIcon
fontSize
=
"large"
/>
</
OperatorButton
>
</
Tooltip
>
<
Tooltip
title
=
"Visa ställning för publik"
arrow
>
<
OperatorButton
onClick
=
{
()
=>
socketSync
({
show_scoreboard
:
true
})
}
variant
=
"contained"
>
<
AssignmentIcon
fontSize
=
"large"
/>
{
slideTimer
!==
null
&&
(
<
Tooltip
title
=
"Starta timer"
arrow
>
<
OperatorButton
onClick
=
{
handleStartTimer
}
variant
=
"contained"
disabled
=
{
timer
.
value
!==
null
&&
!
timer
.
enabled
}
color
=
"primary"
>
<
TimerIcon
fontSize
=
"large"
/>
<
Timer
disableText
/>
</
OperatorButton
>
</
Tooltip
>
{
showScoreboard
&&
<
Scoreboard
isOperator
/>
}
)
}
<
Tooltip
title
=
"Visa koder"
arrow
>
<
OperatorButton
onClick
=
{
handleOpenCodes
}
variant
=
"contained"
>
<
SupervisorAccountIcon
fontSize
=
"large"
/>
</
OperatorButton
>
</
Tooltip
>
<
Tooltip
title
=
"Visa ställning för publik"
arrow
>
<
OperatorButton
onClick
=
{
()
=>
socketSync
({
show_scoreboard
:
true
})
}
variant
=
"contained"
color
=
"primary"
>
<
AssignmentIcon
fontSize
=
"large"
/>
</
OperatorButton
>
</
Tooltip
>
{
showScoreboard
&&
<
Scoreboard
isOperator
/>
}
<
Tooltip
title
=
"Nästa sida"
arrow
>
<
OperatorButton
onClick
=
{
handleSetNextSlide
}
variant
=
"contained"
disabled
=
{
isLastSlide
}
>
<
ChevronRightIcon
fontSize
=
"large"
/>
</
OperatorButton
>
</
Tooltip
>
</
ToolBarContainer
>
<
Tooltip
title
=
"Visa koder"
arrow
>
<
OperatorButton
onClick
=
{
handleOpenCodes
}
variant
=
"contained"
color
=
"primary"
>
<
SupervisorAccountIcon
fontSize
=
"large"
/>
</
OperatorButton
>
</
Tooltip
>
<
Tooltip
title
=
"Nästa sida"
arrow
>
<
OperatorButton
onClick
=
{
handleSetNextSlide
}
variant
=
"contained"
disabled
=
{
isLastSlide
}
color
=
"primary"
>
<
ChevronRightIcon
fontSize
=
"large"
/>
</
OperatorButton
>
</
Tooltip
>
</
OperatorFooter
>
<
Snackbar
Loading