debian-mirror-gitlab/app/assets/javascripts/snippets/components/snippet_description_view.vue

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
674 B
Vue
Raw Normal View History

2020-05-24 23:13:21 +05:30
<script>
2023-03-04 22:38:38 +05:30
import SafeHtml from '~/vue_shared/directives/safe_html';
2020-05-24 23:13:21 +05:30
import MarkdownFieldView from '~/vue_shared/components/markdown/field_view.vue';
export default {
components: {
MarkdownFieldView,
},
2021-11-18 22:05:49 +05:30
directives: {
SafeHtml,
},
2020-05-24 23:13:21 +05:30
props: {
description: {
type: String,
required: false,
default: '',
},
},
2021-11-18 22:05:49 +05:30
safeHtmlConfig: { ADD_TAGS: ['gl-emoji'] },
2020-05-24 23:13:21 +05:30
};
</script>
<template>
2020-06-23 00:09:42 +05:30
<markdown-field-view class="snippet-description" data-qa-selector="snippet_description_content">
2021-11-11 11:23:49 +05:30
<div
2021-11-18 22:05:49 +05:30
v-safe-html:[$options.safeHtmlConfig]="description"
2021-11-11 11:23:49 +05:30
class="md js-snippet-description"
></div>
2020-05-24 23:13:21 +05:30
</markdown-field-view>
</template>