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

image_viewer.vue « blob_viewers « components « repository « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 014f1abc1210aa565a886d6ead6aac1dd80c8774 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<script>
export default {
  props: {
    blob: {
      type: Object,
      required: true,
    },
  },
  data() {
    return {
      url: this.blob.rawPath,
      alt: this.blob.name,
    };
  },
};
</script>
<template>
  <div class="gl-text-center gl-p-7 gl-bg-gray-50">
    <img :src="url" :alt="alt" data-testid="image" class="gl-max-w-full" />
  </div>
</template>