Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
idatt2106_2024_02_frontend
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
IDATT2106 - Gruppe 2
idatt2106_2024_02_frontend
Merge requests
!49
Create spare component
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Create spare component
enhancement/45/create-spare-component
into
dev
Overview
0
Commits
31
Pipelines
2
Changes
18
Merged
Ina Martini
requested to merge
enhancement/45/create-spare-component
into
dev
1 year ago
Overview
0
Commits
31
Pipelines
2
Changes
18
Expand
Create spare component and refactor HelpComponent and InteractiveSpare.
0
0
Merge request reports
Compare
dev
version 1
473ff2b8
1 year ago
dev (base)
and
latest version
latest version
d38649f1
31 commits,
1 year ago
version 1
473ff2b8
30 commits,
1 year ago
18 files
+
379
−
221
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
18
Search (e.g. *.vue) (Ctrl+P)
src/components/HelpComponent.vue
0 → 100644
+
39
−
0
Options
<
template
>
<div
class=
"fixed bottom-5 left-5"
>
<div
@
click=
"isModalOpen = true"
class=
"hover:cursor-pointer"
>
<img
alt=
"Hjelp"
class=
"w-1/12 transition-transform duration-300 ease-in-out hover:scale-110"
src=
"@/assets/hjelp.png"
/>
</div>
</div>
<ModalComponent
v-if=
"isModalOpen"
@
close=
"isModalOpen = false"
>
<InteractiveSpare
:speech=
"speech"
:png-size=
"15"
direction=
"right"
@
emit:close=
"isModalOpen = false"
/>
<div
class=
"-mb-5 mt-8 text-xs text-gray-500"
>
<p
class=
"justify-center items-center"
>
Trykk for å se hva Spare har å si!
</p>
<a
@
click=
"isModalOpen = false"
class=
"underline hover:bg-transparent font-normal text-gray-500 cursor-pointer transition-none hover:transition-none hover:p-0"
>
Skip
</a>
</div>
</ModalComponent>
</
template
>
<
script
setup
lang=
"ts"
>
import
InteractiveSpare
from
'
@/components/InteractiveSpare.vue
'
import
{
ref
}
from
'
vue
'
import
ModalComponent
from
'
@/components/ModalComponent.vue
'
const
isModalOpen
=
ref
(
false
)
defineProps
([
'
speech
'
])
</
script
>
Loading