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
1ac10e56
Commit
1ac10e56
authored
Mar 31, 2021
by
Will Meek
Committed by
Phil Hughes
Mar 31, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove file content QA selector from blob content
As per refactoring this is now duplicated with the simple viewer
parent
70c4632e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
11 deletions
+1
-11
app/assets/javascripts/vue_shared/components/blob_viewers/simple_viewer.vue
...ipts/vue_shared/components/blob_viewers/simple_viewer.vue
+1
-6
qa/qa/page/component/snippet.rb
qa/qa/page/component/snippet.rb
+0
-4
spec/frontend/vue_shared/components/blob_viewers/__snapshots__/simple_viewer_spec.js.snap
...nts/blob_viewers/__snapshots__/simple_viewer_spec.js.snap
+0
-1
No files found.
app/assets/javascripts/vue_shared/components/blob_viewers/simple_viewer.vue
View file @
1ac10e56
...
@@ -54,12 +54,7 @@ export default {
...
@@ -54,12 +54,7 @@ export default {
:file-name=
"fileName"
:file-name=
"fileName"
:editor-options=
"
{ readOnly: true }"
:editor-options=
"
{ readOnly: true }"
/>
/>
<div
<div
v-else
class=
"file-content code js-syntax-highlight"
:class=
"$options.userColorScheme"
>
v-else
class=
"file-content code js-syntax-highlight"
data-qa-selector=
"file_content"
:class=
"$options.userColorScheme"
>
<div
class=
"line-numbers"
>
<div
class=
"line-numbers"
>
<a
<a
v-for=
"line in lineNumbers"
v-for=
"line in lineNumbers"
...
...
qa/qa/page/component/snippet.rb
View file @
1ac10e56
...
@@ -25,10 +25,6 @@ module QA
...
@@ -25,10 +25,6 @@ module QA
element
:file_title_content
element
:file_title_content
end
end
base
.
view
'app/assets/javascripts/vue_shared/components/blob_viewers/simple_viewer.vue'
do
element
:file_content
end
base
.
view
'app/assets/javascripts/blob/components/blob_content.vue'
do
base
.
view
'app/assets/javascripts/blob/components/blob_content.vue'
do
element
:file_content
element
:file_content
end
end
...
...
spec/frontend/vue_shared/components/blob_viewers/__snapshots__/simple_viewer_spec.js.snap
View file @
1ac10e56
...
@@ -4,7 +4,6 @@ exports[`Blob Simple Viewer component rendering matches the snapshot 1`] = `
...
@@ -4,7 +4,6 @@ exports[`Blob Simple Viewer component rendering matches the snapshot 1`] = `
<div>
<div>
<div
<div
class="file-content code js-syntax-highlight"
class="file-content code js-syntax-highlight"
data-qa-selector="file_content"
>
>
<div
<div
class="line-numbers"
class="line-numbers"
...
...
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