Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/pages/projects/learn_gitlab/components/learn_gitlab_section_card.vue')
-rw-r--r--app/assets/javascripts/pages/projects/learn_gitlab/components/learn_gitlab_section_card.vue56
1 files changed, 0 insertions, 56 deletions
diff --git a/app/assets/javascripts/pages/projects/learn_gitlab/components/learn_gitlab_section_card.vue b/app/assets/javascripts/pages/projects/learn_gitlab/components/learn_gitlab_section_card.vue
deleted file mode 100644
index e8f0e6c47ee..00000000000
--- a/app/assets/javascripts/pages/projects/learn_gitlab/components/learn_gitlab_section_card.vue
+++ /dev/null
@@ -1,56 +0,0 @@
-<script>
-import { GlCard } from '@gitlab/ui';
-import { ACTION_LABELS, ACTION_SECTIONS } from '../constants';
-
-import LearnGitlabSectionLink from './learn_gitlab_section_link.vue';
-
-export default {
- name: 'LearnGitlabSectionCard',
- components: { GlCard, LearnGitlabSectionLink },
- i18n: {
- ...ACTION_SECTIONS,
- },
- props: {
- section: {
- required: true,
- type: String,
- },
- svg: {
- required: true,
- type: String,
- },
- actions: {
- required: true,
- type: Object,
- },
- },
- computed: {
- sortedActions() {
- return Object.entries(this.actions).sort(
- (a1, a2) => ACTION_LABELS[a1[0]].position - ACTION_LABELS[a2[0]].position,
- );
- },
- },
-};
-</script>
-<template>
- <gl-card
- class="gl-pt-0 h-100"
- header-class="gl-bg-white gl-border-0 gl-pb-0"
- body-class="gl-pt-0"
- >
- <template #header>
- <img :src="svg" />
- <h2 class="gl-font-lg gl-mb-3">{{ $options.i18n[section].title }}</h2>
- <p class="gl-text-gray-700 gl-mb-6">{{ $options.i18n[section].description }}</p>
- </template>
- <template #default>
- <learn-gitlab-section-link
- v-for="[action, value] in sortedActions"
- :key="action"
- :action="action"
- :value="value"
- />
- </template>
- </gl-card>
-</template>