summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pipeline_editor/components/drawer/cards/pipeline_config_reference_card.vue
blob: 04140434af2bab5f9cdbdb7b8e15513583ec90ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<script>
import { GlLink, GlSprintf } from '@gitlab/ui';
import { s__ } from '~/locale';

export default {
  i18n: {
    title: s__('PipelineEditorTutorial|⚙️ Pipeline configuration reference'),
    firstParagraph: s__('PipelineEditorTutorial|Resources to help with your CI/CD configuration:'),
    browseExamples: s__(
      'PipelineEditorTutorial|Browse %{linkStart}CI/CD examples and templates%{linkEnd}',
    ),
    viewSyntaxRef: s__(
      'PipelineEditorTutorial|View %{linkStart}.gitlab-ci.yml syntax reference%{linkEnd}',
    ),
    learnMore: s__(
      'PipelineEditorTutorial|Learn more about %{linkStart}GitLab CI/CD concepts%{linkEnd}',
    ),
    needs: s__(
      'PipelineEditorTutorial|Make your pipeline more efficient with the %{linkStart}Needs keyword%{linkEnd}',
    ),
  },
  components: {
    GlLink,
    GlSprintf,
  },
  inject: ['ciExamplesHelpPagePath', 'ciHelpPagePath', 'needsHelpPagePath', 'ymlHelpPagePath'],
};
</script>
<template>
  <div>
    <h3 class="gl-font-lg gl-mt-0 gl-mb-5">{{ $options.i18n.title }}</h3>
    <p class="gl-mb-3">{{ $options.i18n.firstParagraph }}</p>
    <ul>
      <li>
        <gl-sprintf :message="$options.i18n.browseExamples">
          <template #link="{ content }">
            <gl-link :href="ciExamplesHelpPagePath" target="_blank">
              {{ content }}
            </gl-link>
          </template>
        </gl-sprintf>
      </li>
      <li>
        <gl-sprintf :message="$options.i18n.viewSyntaxRef">
          <template #link="{ content }">
            <gl-link :href="ymlHelpPagePath" target="_blank">
              {{ content }}
            </gl-link>
          </template>
        </gl-sprintf>
      </li>
      <li>
        <gl-sprintf :message="$options.i18n.learnMore">
          <template #link="{ content }">
            <gl-link :href="ciHelpPagePath" target="_blank">
              {{ content }}
            </gl-link>
          </template>
        </gl-sprintf>
      </li>
      <li>
        <gl-sprintf :message="$options.i18n.needs">
          <template #link="{ content }">
            <gl-link :href="needsHelpPagePath" target="_blank">
              {{ content }}
            </gl-link>
          </template>
        </gl-sprintf>
      </li>
    </ul>
  </div>
</template>