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

image.vue « output « cells « notebook « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 67d6c5ad12b4bef0104e60ab276ae5222ce55c62 (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
<script>
  import Prompt from '../prompt.vue';

  export default {
    components: {
      prompt: Prompt,
    },
    props: {
      outputType: {
        type: String,
        required: true,
      },
      rawCode: {
        type: String,
        required: true,
      },
    },
  };
</script>

<template>
  <div class="output">
    <prompt />
    <img :src="'data:' + outputType + ';base64,' + rawCode" />
  </div>
</template>