Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sparesti-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_2024_01
sparesti-frontend
Merge requests
!11
refactor: handled text overflow in SuggestedSavingChallenge
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
refactor: handled text overflow in SuggestedSavingChallenge
suggested-saving-challenge-component
into
development
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Maria Elizabeth Pauna Lane
requested to merge
suggested-saving-challenge-component
into
development
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
development
development (base)
and
latest version
latest version
3ed8969a
1 commit,
1 year ago
1 file
+
16
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/components/SuggestedSavingChallenge.vue
+
16
−
7
Options
<
script
setup
>
import
{
ref
}
from
'
vue
'
import
{
Card
,
CardContent
,
CardDescription
,
CardHeader
,
CardTitle
}
from
"
@/components/ui/card/index.js
"
;
import
{
Card
,
CardContent
,
CardDescription
,
CardFooter
,
CardHeader
,
CardTitle
}
from
"
@/components/ui/card/index.js
"
;
/**
* The category of the challenge
* @type {Ref<UnwrapRef<string>>}
*/
const
category
=
ref
(
'
Kaffe
'
)
/**
* The description of the challenge
* @type {Ref<UnwrapRef<string>>}
*/
const
description
=
ref
(
'
Du har brukt 200 kr på kaffe den siste uken, bruk mindre enn 100 kr på kaffe.
'
)
const
description
=
ref
(
'
Du har brukt 200 kr på kaffe den siste uken, bruk mindre enn 100 kr på kaffe.
'
+
'
Du har brukt 200 kr på kaffe den siste uken, bruk mindre enn 100 kr på kaffe. Du har brukt 200 kr på kaffe
'
+
'
den siste uken, bruk mindre enn 100 kr på kaffe. Du har brukt 200 kr på kaffe den siste uken, bruk mindre enn
'
+
'
100 kr på kaffe. Du har brukt 200 kr på kaffe den siste uken, bruk mindre enn 100 kr på kaffe.
'
)
/**
* The difficulty of the challenge
* @type {Ref<UnwrapRef<string>>}
*/
const
difficulty
=
ref
(
'
Enkel
'
)
/**
* The goal of the challenge
*/
const
goal
=
ref
(
100
)
/**
* The time limit of the challenge
*/
const
tid
=
ref
(
7
)
</
script
>
@@ -29,10 +37,11 @@ const difficulty = ref('Enkel')
<CardTitle
class=
"text-left justify-self-start pb-1"
>
{{
category
}}
</CardTitle>
<p
id=
"difficulty"
class=
"justify-self-end"
>
{{
difficulty
}}
</p>
</div>
</CardHeader>
<CardContent>
<CardDescription>
{{
description
}}
</CardDescription>
<CardDescription
class=
"line-clamp-2"
>
{{
description
}}
</CardDescription>
</CardContent>
<
/
Card
Head
er>
<Card
Footer
class=
"justify-center font-bold"
>
Mål: Bruk mindre enn
{{
goal
}}
kr på
{{
tid
}}
dager
</CardFoot
er>
</RouterLink>
</Card>
Loading