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

ci_validate.vue « validate « components « pipeline_editor « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5f26318497b6c3c2ea75a9273f75194119cef0b4 (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
<script>
import { GlButton, GlDropdown, GlTooltipDirective, GlSprintf } from '@gitlab/ui';
import { s__, __ } from '~/locale';

export const i18n = {
  help: __('Help'),
  pipelineSource: s__('PipelineEditor|Pipeline Source'),
  pipelineSourceDefault: s__('PipelineEditor|Git push event to the default branch'),
  pipelineSourceTooltip: s__('PipelineEditor|Other pipeline sources are not available yet.'),
  title: s__('PipelineEditor|Validate pipeline under selected conditions'),
  contentNote: s__(
    'PipelineEditor|Current content in the Edit tab will be used for the simulation.',
  ),
  simulationNote: s__(
    'PipelineEditor|Pipeline behavior will be simulated including the %{codeStart}rules%{codeEnd} %{codeStart}only%{codeEnd} %{codeStart}except%{codeEnd} and %{codeStart}needs%{codeEnd} job dependencies.',
  ),
  cta: s__('PipelineEditor|Validate pipeline'),
};

export default {
  name: 'CiValidateTab',
  components: {
    GlButton,
    GlDropdown,
    GlSprintf,
  },
  directives: {
    GlTooltip: GlTooltipDirective,
  },
  inject: ['validateTabIllustrationPath'],
  i18n,
};
</script>

<template>
  <div>
    <div class="gl-mt-3">
      <label>{{ $options.i18n.pipelineSource }}</label>
      <gl-dropdown
        v-gl-tooltip.hover
        :title="$options.i18n.pipelineSourceTooltip"
        :text="$options.i18n.pipelineSourceDefault"
        disabled
        data-testid="pipeline-source"
      />
    </div>
    <div class="gl-display-flex gl-flex-direction-column gl-align-items-center gl-mt-11">
      <img :src="validateTabIllustrationPath" />
      <h1 class="gl-font-size-h1 gl-mb-6">{{ $options.i18n.title }}</h1>
      <ul>
        <li class="gl-mb-3">{{ $options.i18n.contentNote }}</li>
        <li class="gl-mb-3">
          <gl-sprintf :message="$options.i18n.simulationNote">
            <template #code="{ content }">
              <code>{{ content }}</code>
            </template>
          </gl-sprintf>
        </li>
      </ul>
      <gl-button variant="confirm" class="gl-mt-3" data-qa-selector="simulate_pipeline">
        {{ $options.i18n.cta }}
      </gl-button>
    </div>
  </div>
</template>