2021-12-11 22:18:48 +05:30
< script >
import { GlAlert , GlLink , GlSprintf } from '@gitlab/ui' ;
2022-08-13 15:12:31 +05:30
const FEATURE _REQUEST _KEY = 'feature_request' ;
const REPORT _BUG _KEY = 'report_bug' ;
const GENERAL _FEEDBACK _KEY = 'general_feedback' ;
2021-12-11 22:18:48 +05:30
export default {
components : { GlAlert , GlLink , GlSprintf } ,
2022-08-13 15:12:31 +05:30
methods : {
feedbackUrl ( template ) {
return ` https://gitlab.com/gitlab-org/incubation-engineering/five-minute-production/feedback/-/issues/new?issuable_template= ${ template } ` ;
2021-12-11 22:18:48 +05:30
} ,
} ,
2022-08-13 15:12:31 +05:30
FEATURE _REQUEST _KEY ,
REPORT _BUG _KEY ,
GENERAL _FEEDBACK _KEY ,
2021-12-11 22:18:48 +05:30
} ;
< / script >
< template >
< gl-alert :dismissible = "false" variant = "info" >
{ { _ _ ( 'This is an experimental feature developed by GitLab Incubation Engineering.' ) } }
< gl-sprintf
: message = "
_ _ (
'We invite you to %{featureLinkStart}request a feature%{featureLinkEnd}, %{bugLinkStart}report a bug%{bugLinkEnd} or %{feedbackLinkStart}share feedback%{feedbackLinkEnd}' ,
)
"
>
< template # featureLink = "{ content }" >
2022-08-13 15:12:31 +05:30
< gl-link :href = "feedbackUrl($options.FEATURE_REQUEST_KEY)" > { { content } } < / gl-link >
2021-12-11 22:18:48 +05:30
< / template >
< template # bugLink = "{ content }" >
2022-08-13 15:12:31 +05:30
< gl-link :href = "feedbackUrl($options.REPORT_BUG_KEY)" > { { content } } < / gl-link >
2021-12-11 22:18:48 +05:30
< / template >
< template # feedbackLink = "{ content }" >
2022-08-13 15:12:31 +05:30
< gl-link :href = "feedbackUrl($options.GENERAL_FEEDBACK_KEY)" > { { content } } < / gl-link >
2021-12-11 22:18:48 +05:30
< / template >
< / gl-sprintf >
< / gl-alert >
< / template >