Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
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-07
frontend
Commits
65c63f09
Commit
65c63f09
authored
10 months ago
by
heikkkk
Browse files
Options
Downloads
Patches
Plain Diff
refactor: move shop button
parent
458a72df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!76
Refactor/folder structure
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/components/Shop/ShopButton.vue
+1
-1
1 addition, 1 deletion
src/components/Shop/ShopButton.vue
src/components/Shop/__tests__/ShopButton.spec.ts
+1
-1
1 addition, 1 deletion
src/components/Shop/__tests__/ShopButton.spec.ts
src/views/ShopView.vue
+1
-1
1 addition, 1 deletion
src/views/ShopView.vue
with
3 additions
and
3 deletions
src/components/
Buttons
/ShopButton.vue
→
src/components/
Shop
/ShopButton.vue
+
1
−
1
View file @
65c63f09
<
template
>
<button
type=
"button"
class=
"btn btn-primary"
id=
"buttonStyle"
><img
src=
"
@
/assets/items/pigcoin.png"
style=
"width: 2rem"
>
+
{{
buttonText
}}
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"buttonStyle"
><img
src=
"
../..
/assets/items/pigcoin.png"
style=
"width: 2rem"
>
+
{{
buttonText
}}
</button>
</
template
>
<
script
setup
lang=
"ts"
>
...
...
This diff is collapsed.
Click to expand it.
src/components/
Buttons
/__tests__/ShopButton.spec.ts
→
src/components/
Shop
/__tests__/ShopButton.spec.ts
+
1
−
1
View file @
65c63f09
import
{
describe
,
it
,
expect
}
from
'
vitest
'
import
{
mount
}
from
'
@vue/test-utils
'
import
ImageButtonComponent
from
'
@/components/Buttons
/ShopButton.vue
'
import
ImageButtonComponent
from
'
..
/ShopButton.vue
'
describe
(
'
ImageButtonComponent
'
,
()
=>
{
it
(
'
renders the button with the correct text and image
'
,
()
=>
{
...
...
This diff is collapsed.
Click to expand it.
src/views/ShopView.vue
+
1
−
1
View file @
65c63f09
...
...
@@ -76,7 +76,7 @@
</
template
>
<
script
setup
lang=
"ts"
>
import
ShopButton
from
'
@/components/
Buttons
/ShopButton.vue
'
;
import
ShopButton
from
'
@/components/
Shop
/ShopButton.vue
'
;
import
{
ref
,
onMounted
}
from
'
vue
'
;
import
{
UserService
}
from
'
@/api
'
;
import
{
useUserInfoStore
}
from
'
@/stores/UserStore
'
;
...
...
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