Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9146b7b4
Commit
9146b7b4
authored
Dec 01, 2020
by
jboyson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Load html component when data is a jpeg
parent
483289a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
app/assets/javascripts/notebook/cells/output/index.vue
app/assets/javascripts/notebook/cells/output/index.vue
+4
-0
No files found.
app/assets/javascripts/notebook/cells/output/index.vue
View file @
9146b7b4
...
@@ -31,6 +31,8 @@ export default {
...
@@ -31,6 +31,8 @@ export default {
return
'
text/plain
'
;
return
'
text/plain
'
;
}
else
if
(
output
.
data
[
'
image/png
'
])
{
}
else
if
(
output
.
data
[
'
image/png
'
])
{
return
'
image/png
'
;
return
'
image/png
'
;
}
else
if
(
output
.
data
[
'
image/jpeg
'
])
{
return
'
image/jpeg
'
;
}
else
if
(
output
.
data
[
'
text/html
'
])
{
}
else
if
(
output
.
data
[
'
text/html
'
])
{
return
'
text/html
'
;
return
'
text/html
'
;
}
else
if
(
output
.
data
[
'
image/svg+xml
'
])
{
}
else
if
(
output
.
data
[
'
image/svg+xml
'
])
{
...
@@ -53,6 +55,8 @@ export default {
...
@@ -53,6 +55,8 @@ export default {
return
CodeOutput
;
return
CodeOutput
;
}
else
if
(
output
.
data
[
'
image/png
'
])
{
}
else
if
(
output
.
data
[
'
image/png
'
])
{
return
ImageOutput
;
return
ImageOutput
;
}
else
if
(
output
.
data
[
'
image/jpeg
'
])
{
return
ImageOutput
;
}
else
if
(
output
.
data
[
'
text/html
'
])
{
}
else
if
(
output
.
data
[
'
text/html
'
])
{
return
HtmlOutput
;
return
HtmlOutput
;
}
else
if
(
output
.
data
[
'
image/svg+xml
'
])
{
}
else
if
(
output
.
data
[
'
image/svg+xml
'
])
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment