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
!103
Dollar sign in generate challenge
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Dollar sign in generate challenge
dollar-sign-in-generate-challenge
into
development
Overview
0
Commits
2
Pipelines
1
Changes
1
Merged
Håkon Rene Billingstad
requested to merge
dollar-sign-in-generate-challenge
into
development
1 year ago
Overview
0
Commits
2
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
development
development (base)
and
latest version
latest version
b56732ac
2 commits,
1 year ago
1 file
+
9
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/views/GenerateChallengesView.vue
+
9
−
0
Options
@@ -15,7 +15,14 @@ import MainLayout from "@/components/MainLayout.vue";
import
{
useSavingChallengeStore
}
from
"
@/stores/savingChallenge.js
"
;
import
{
computed
,
nextTick
,
onMounted
,
ref
}
from
"
vue
"
;
import
{
Button
}
from
"
@/components/ui/button/index.js
"
;
import
PinkSBg
from
"
@/assets/PinkThemeAssets/PinkSBg.png
"
;
import
GreenSBg
from
"
@/assets/GreenThemeAssets/GreenSBg.png
"
;
import
{
useThemeStore
}
from
"
@/stores/theme.js
"
;
/**
* Theme for the current dashboard view.
*/
const
theme
=
useThemeStore
().
theme
;
/**
* The store for the saving challenges
@@ -63,6 +70,8 @@ const refreshChallenges = async () => {
<
template
>
<MainLayout>
<img
v-if=
"theme === 'theme1'"
:src=
"PinkSBg"
alt=
"Pink S background"
class=
"absolute md:top-80 top-60 left-0 z-[-1] w-72 h-72"
/>
<img
v-else-if=
"theme === 'theme2'"
:src=
"GreenSBg"
alt=
"Green S background"
class=
"absolute md:top-40 top-80 left-0 z-[-1] w-72 h-72"
/>
<div
v-if=
"loading"
class=
"px-2.5 flex flex-col items-center mt-10 pt-7"
>
<h1
class=
"pt-7 pb-8 text-2xl"
>
Laster inn...
</h1>
<img
src=
"../assets/Loading/Loading.gif"
alt=
"Loading"
class=
"w-1/4 h-auto md:w-1/6"
/>
Loading