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
<template>
<q-card class="full-width z-max">
<q-card-section class="row items-center text-primary">
<div class="text-h6">{{ midia.data.titulo }}</div>
<q-space />
<q-btn icon="close" flat round dense v-close-popup />
</q-card-section>
<q-separator />
<q-card-section>
<q-pdfviewer
:value="true"
:src="`${baseUrl}/acervo/download/${midia.path}`"
type="pdfjs"
content-inner-class="absolute"
content-style="height: 70vh;"
/>
</q-card-section>
<q-card-section class="q-pt-none q-mb-xl">
<midia-details
:description="midia.data.descricao"
:created="midia.created"
:username="midia.creator.username"
:authorName="midia.creator.name"
:authorEmail="midia.creator.email"
/>
</q-card-section>
<q-card-actions align="right" class="bg-white text-teal fixed-bottom">
<q-btn :label="$t('gallery.buttonLabelClose')" v-close-popup color="dark"/>
</q-card-actions>
</q-card>
</template>
<script>
export default {
name: 'ContentsFile',
components: {
MidiaDetails: () => import('components/acervo/MidiaDetails')
},
props: {
midia: {
type: Object,
required: true
}
},
data () {
return {
baseUrl: this.$axios.defaults.baseURL
}
}
}
</script>