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
d6b85a6e
Commit
d6b85a6e
authored
Sep 09, 2021
by
Dheeraj Joshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to v-safe-html in performance_bar_app.vue
parent
5c2ac9ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
app/assets/javascripts/performance_bar/components/performance_bar_app.vue
...cripts/performance_bar/components/performance_bar_app.vue
+6
-1
No files found.
app/assets/javascripts/performance_bar/components/performance_bar_app.vue
View file @
d6b85a6e
<
script
>
<
script
>
import
{
GlSafeHtmlDirective
}
from
'
@gitlab/ui
'
;
import
{
glEmojiTag
}
from
'
~/emoji
'
;
import
{
glEmojiTag
}
from
'
~/emoji
'
;
import
{
s__
}
from
'
~/locale
'
;
import
{
s__
}
from
'
~/locale
'
;
...
@@ -12,6 +13,9 @@ export default {
...
@@ -12,6 +13,9 @@ export default {
DetailedMetric
,
DetailedMetric
,
RequestSelector
,
RequestSelector
,
},
},
directives
:
{
SafeHtml
:
GlSafeHtmlDirective
,
},
props
:
{
props
:
{
store
:
{
store
:
{
type
:
Object
,
type
:
Object
,
...
@@ -128,6 +132,7 @@ export default {
...
@@ -128,6 +132,7 @@ export default {
this
.
currentRequest
=
newRequestId
;
this
.
currentRequest
=
newRequestId
;
},
},
},
},
safeHtmlConfig
:
{
ADD_TAGS
:
[
'
gl-emoji
'
]
},
};
};
</
script
>
</
script
>
<
template
>
<
template
>
...
@@ -143,7 +148,7 @@ export default {
...
@@ -143,7 +148,7 @@ export default {
class=
"current-host"
class=
"current-host"
:class=
"
{ canary: currentRequest.details.host.canary }"
:class=
"
{ canary: currentRequest.details.host.canary }"
>
>
<span
v-
html=
"birdEmoji /* eslint-disable-line vue/no-v-html */
"
></span>
<span
v-
safe-html:
[$
options.safeHtmlConfig]=
"birdEmoji
"
></span>
{{
currentRequest
.
details
.
host
.
hostname
}}
{{
currentRequest
.
details
.
host
.
hostname
}}
</span>
</span>
</div>
</div>
...
...
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