Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
imageboard-web
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
Container 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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Trirst
imageboard-web
Commits
14d29364
Commit
14d29364
authored
Jun 23, 2021
by
Trirst
Browse files
Options
Downloads
Patches
Plain Diff
Fix individual image viewing
parent
4ffc9b3c
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#758
failed
Jun 23, 2021
Stage: build
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/ImageItem.vue
+5
-2
5 additions, 2 deletions
src/components/ImageItem.vue
src/views/ImageView.vue
+2
-2
2 additions, 2 deletions
src/views/ImageView.vue
with
7 additions
and
4 deletions
src/components/ImageItem.vue
+
5
−
2
View file @
14d29364
...
...
@@ -16,9 +16,12 @@
>
X
</div>
<a
@
click.ctrl.shift.prevent
:href=
"`/$
{hash}`">
<router-link
@
click.ctrl.shift.native.prevent
:to=
"
{ name: 'ImageView', params: { hash: hash } }"
>
<img
:src=
"`/api/image/$
{hash}/file`" />
</
a
>
</
router-link
>
</div>
</
template
>
...
...
This diff is collapsed.
Click to expand it.
src/views/ImageView.vue
+
2
−
2
View file @
14d29364
<
template
>
<div>
<div
id=
"image-container"
>
<img
:src=
"`/api/image` + hash + `/file`"
alt=
""
/>
<img
:src=
"`/api/image
/
` + hash + `/file`"
alt=
""
/>
</div>
</div>
</
template
>
...
...
@@ -10,7 +10,7 @@
export
default
{
computed
:
{
hash
:
()
=>
{
return
window
.
location
.
pathname
;
return
window
.
location
.
pathname
.
split
(
"
/
"
)[
2
]
;
},
},
};
...
...
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