2020-05-29 21:08:35 +00:00
|
|
|
<script>
|
2020-06-09 18:08:28 +00:00
|
|
|
import { mapGetters } from 'vuex';
|
2020-05-29 21:08:35 +00:00
|
|
|
import { GlIcon, GlLink } from '@gitlab/ui';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
GlIcon,
|
|
|
|
GlLink,
|
|
|
|
},
|
|
|
|
computed: {
|
2020-06-09 18:08:28 +00:00
|
|
|
...mapGetters('monitoringDashboard', { links: 'linksWithMetadata' }),
|
2020-05-29 21:08:35 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<template>
|
|
|
|
<div
|
|
|
|
ref="linksSection"
|
2020-06-04 21:08:11 +00:00
|
|
|
class="gl-display-sm-flex gl-flex-sm-wrap gl-mt-5 gl-p-3 gl-bg-gray-10 border gl-rounded-base links-section"
|
2020-05-29 21:08:35 +00:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
v-for="(link, key) in links"
|
|
|
|
:key="key"
|
2020-06-04 21:08:11 +00:00
|
|
|
class="gl-mb-1 gl-mr-5 gl-display-flex gl-display-sm-block gl-hover-text-blue-600-children gl-word-break-all"
|
2020-05-29 21:08:35 +00:00
|
|
|
>
|
2020-06-04 21:08:11 +00:00
|
|
|
<gl-link :href="link.url" class="gl-text-gray-900 gl-text-decoration-none!"
|
2020-08-17 21:09:56 +00:00
|
|
|
><gl-icon name="link" class="gl-text-gray-500 gl-vertical-align-text-bottom gl-mr-2" />{{
|
2020-06-04 21:08:11 +00:00
|
|
|
link.title
|
|
|
|
}}
|
2020-05-29 21:08:35 +00:00
|
|
|
</gl-link>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|