Google adsense implementation

This commit is contained in:
Čarodej
2022-02-07 17:47:29 +01:00
parent 81362fef2d
commit 09774b1d48
9 changed files with 162 additions and 13 deletions

View File

@@ -1,11 +1,14 @@
<template>
<div class="flex h-screen items-center justify-center">
<div>
<div class="w-full text-center">
<ItemGrid v-if="sharedFile" :entry="sharedFile" :highlight="true" :mobile-handler="true" />
<ButtonBase @click.native="download" button-style="theme">
<ButtonBase @click.native="download" button-style="theme" class="mx-auto">
{{ $t('page_shared.download_file') }}
</ButtonBase>
<!--Google Adsense banner-->
<div v-if="config.allowedAdsense" v-html="config.adsenseBanner01" class="min-h-[120px] mt-5"></div>
</div>
</div>
</template>
@@ -22,7 +25,7 @@ export default {
ItemGrid,
},
computed: {
...mapGetters(['sharedDetail', 'sharedFile']),
...mapGetters(['sharedDetail', 'sharedFile', 'config']),
},
methods: {
download() {