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
8aaf26ce
Commit
8aaf26ce
authored
Mar 22, 2022
by
Jacques Erasmus
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '324318-add-svg-blob-viewer' into 'master'
Add SVG blob viewer See merge request gitlab-org/gitlab!81567
parents
608f21b0
b01cb463
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
app/assets/javascripts/repository/components/blob_viewers/index.js
...s/javascripts/repository/components/blob_viewers/index.js
+1
-0
spec/support/shared_examples/features/project_upload_files_shared_examples.rb
...examples/features/project_upload_files_shared_examples.rb
+1
-1
No files found.
app/assets/javascripts/repository/components/blob_viewers/index.js
View file @
8aaf26ce
...
...
@@ -8,6 +8,7 @@ const viewers = {
pdf
:
()
=>
import
(
'
./pdf_viewer.vue
'
),
lfs
:
()
=>
import
(
'
./lfs_viewer.vue
'
),
audio
:
()
=>
import
(
'
./audio_viewer.vue
'
),
svg
:
()
=>
import
(
'
./image_viewer.vue
'
),
};
export
const
loadViewer
=
(
type
,
isUsingLfs
)
=>
{
...
...
spec/support/shared_examples/features/project_upload_files_shared_examples.rb
View file @
8aaf26ce
...
...
@@ -62,7 +62,7 @@ RSpec.shared_examples 'it uploads and commits a new image file' do |drop: false|
visit
(
project_blob_path
(
project
,
'upload_image/logo_sample.svg'
))
expect
(
page
).
to
have_css
(
'.file-
content
img'
)
expect
(
page
).
to
have_css
(
'.file-
holder
img'
)
end
end
...
...
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