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
Commits
bfc2099e
Commit
bfc2099e
authored
3 years ago
by
Albin Henriksson
Browse files
Options
Downloads
Plain Diff
merge
parents
fa34cb62
dea26be4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#45301
failed
3 years ago
Stage: setup
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
client/src/pages/presentationEditor/components/SlideDisplay.tsx
+4
-0
4 additions, 0 deletions
.../src/pages/presentationEditor/components/SlideDisplay.tsx
client/src/pages/views/TeamViewPage.tsx
+3
-19
3 additions, 19 deletions
client/src/pages/views/TeamViewPage.tsx
with
7 additions
and
19 deletions
client/src/pages/presentationEditor/components/SlideDisplay.tsx
+
4
−
0
View file @
bfc2099e
...
...
@@ -23,6 +23,10 @@ const SlideDisplay = ({ variant, activeViewTypeId, currentSlideId }: SlideDispla
return
state
.
editor
.
competition
.
slides
.
find
((
slide
)
=>
slide
.
id
===
state
.
editor
.
activeSlideId
)
return
state
.
presentation
.
competition
.
slides
.
find
((
slide
)
=>
slide
.
id
===
state
.
presentation
.
activeSlideId
)
})
const
totalSlides
=
useAppSelector
((
state
)
=>
{
if
(
variant
===
'
presentation
'
)
return
state
.
presentation
.
competition
.
slides
.
length
return
state
.
editor
.
competition
.
slides
.
length
})
const
components
=
slide
?.
components
const
competitionBackgroundImage
=
useAppSelector
((
state
)
=>
{
if
(
variant
===
'
editor
'
)
return
state
.
editor
.
competition
.
background_image
...
...
This diff is collapsed.
Click to expand it.
client/src/pages/views/TeamViewPage.tsx
+
3
−
19
View file @
bfc2099e
import
{
Snackbar
,
Typography
}
from
'
@material-ui/core
'
import
{
Snackbar
}
from
'
@material-ui/core
'
import
{
Alert
}
from
'
@material-ui/lab
'
import
React
,
{
useEffect
,
useState
}
from
'
react
'
import
{
useAppSelector
}
from
'
../../hooks
'
import
{
socketConnect
,
socketJoinPresentation
}
from
'
../../sockets
'
import
SlideDisplay
from
'
../presentationEditor/components/SlideDisplay
'
import
Timer
from
'
../views/components/Timer
'
import
{
OperatorContainer
,
OperatorHeader
,
OperatorHeaderItem
,
PresentationBackground
,
PresentationContainer
,
}
from
'
./styled
'
import
{
OperatorContainer
,
OperatorHeader
,
PresentationBackground
,
PresentationContainer
}
from
'
./styled
'
const
TeamViewPage
:
React
.
FC
=
()
=>
{
const
code
=
useAppSelector
((
state
)
=>
state
.
presentation
.
code
)
...
...
@@ -36,16 +29,7 @@ const TeamViewPage: React.FC = () => {
},
[])
return
(
<
OperatorContainer
>
<
OperatorHeader
>
<
Typography
variant
=
"h1"
>
<
Timer
/>
</
Typography
>
<
OperatorHeaderItem
>
<
Typography
variant
=
"h3"
>
{
activeSlideOrder
!==
undefined
&&
activeSlideOrder
+
1
}
/
{
presentation
.
competition
.
slides
.
length
}
</
Typography
>
</
OperatorHeaderItem
>
</
OperatorHeader
>
<
OperatorHeader
></
OperatorHeader
>
<
PresentationBackground
>
<
PresentationContainer
>
{
activeViewTypeId
&&
<
SlideDisplay
variant
=
"presentation"
activeViewTypeId
=
{
activeViewTypeId
}
/>
}
...
...
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