debian-mirror-gitlab/app/assets/javascripts/google_cloud/components/incubation_banner.vue

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

43 lines
1.4 KiB
Vue
Raw Normal View History

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>