From 4e6ddc3674a1e42ce64696ca5cea327b6de85dcb Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 21 Mar 2024 16:20:23 +0100 Subject: [PATCH] web: Implement Venatus ads --- web/assets/css/development.css | 6 +- web/assets/css/tailwind.css | 5 - web/components.d.ts | 2 + web/components/ad-cell.vue | 27 +-- web/components/ad.vue | 311 ++++++++++---------------- web/components/playwire-ramp.vue | 111 --------- web/components/venatus-placement.vue | 35 +++ web/components/venatus-rich-media.vue | 25 +++ web/composables/playwire-ramp.ts | 92 -------- web/composables/quantcast.ts | 2 +- web/composables/venatus.ts | 21 ++ web/config.ts | 8 +- web/layouts/default.vue | 23 +- web/pages/profile/_tag.vue | 9 + web/renderer/+onRenderHtml.ts | 4 +- web/renderer/app.ts | 12 +- 16 files changed, 218 insertions(+), 475 deletions(-) delete mode 100644 web/components/playwire-ramp.vue create mode 100644 web/components/venatus-placement.vue create mode 100644 web/components/venatus-rich-media.vue delete mode 100644 web/composables/playwire-ramp.ts create mode 100644 web/composables/venatus.ts diff --git a/web/assets/css/development.css b/web/assets/css/development.css index 95b20e0f..c88bba24 100644 --- a/web/assets/css/development.css +++ b/web/assets/css/development.css @@ -1,7 +1,3 @@ -.dev .adsbygoogle { - @apply bg-pink-400; -} - -.dev .adsbyplaywire { +.dev .vm-placement { @apply bg-pink-400; } diff --git a/web/assets/css/tailwind.css b/web/assets/css/tailwind.css index 4b92a8aa..ef2594c0 100644 --- a/web/assets/css/tailwind.css +++ b/web/assets/css/tailwind.css @@ -34,11 +34,6 @@ .card-prop-label { @apply text-left; } - - /** ad root-class */ - .ad-section { - @apply mt-4 text-center; - } } /* purgecss start ignore */ diff --git a/web/components.d.ts b/web/components.d.ts index 95e16679..8dc7cd23 100644 --- a/web/components.d.ts +++ b/web/components.d.ts @@ -138,6 +138,8 @@ declare module 'vue' { TopBrawlersCard: typeof import('./components/top-brawlers-card.vue')['default'] TopPlayersCard: typeof import('./components/top-players-card.vue')['default'] TrophySliderSelect: typeof import('./components/trophy-slider-select.vue')['default'] + VenatusPlacement: typeof import('./components/venatus-placement.vue')['default'] + VenatusRichMedia: typeof import('./components/venatus-rich-media.vue')['default'] VGini: typeof import('./components/klicker/v-gini.vue')['default'] VLastUpdate: typeof import('./components/klicker/v-last-update.vue')['default'] VMediaImg: typeof import('./components/klicker/v-media-img.vue')['default'] diff --git a/web/components/ad-cell.vue b/web/components/ad-cell.vue index cf3bd1a2..ccbb1a1b 100644 --- a/web/components/ad-cell.vue +++ b/web/components/ad-cell.vue @@ -6,13 +6,7 @@ hide-empty lazy > - + @@ -20,8 +14,6 @@ diff --git a/web/components/ad.vue b/web/components/ad.vue index 16fa7cc2..69c8113e 100644 --- a/web/components/ad.vue +++ b/web/components/ad.vue @@ -1,96 +1,104 @@