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

pypi.vue « metadata « details « components « package_registry « packages_and_registries « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ef35349c228c5f964835fd1953bfc65be3b65525 (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
<script>
import { GlSprintf } from '@gitlab/ui';
import { s__ } from '~/locale';

import DetailsRow from '~/vue_shared/components/registry/details_row.vue';

export default {
  i18n: {
    requiredPython: s__('PackageRegistry|Required Python: %{pythonVersion}'),
  },
  components: {
    DetailsRow,
    GlSprintf,
  },
  props: {
    packageMetadata: {
      type: Object,
      required: true,
    },
  },
};
</script>

<template>
  <div>
    <details-row icon="information-o" padding="gl-p-4" data-testid="pypi-required-python">
      <gl-sprintf :message="$options.i18n.requiredPython">
        <template #pythonVersion>
          <strong>{{ packageMetadata.requiredPython }}</strong>
        </template>
      </gl-sprintf>
    </details-row>
  </div>
</template>