mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Revert back to no page context
This commit is contained in:
parent
9e817f0f6c
commit
d06d26223d
1 changed files with 3 additions and 27 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
v-if="adName !== 'default'"
|
v-if="name !== 'default'"
|
||||||
class="w-full"
|
class="w-full"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
>
|
>
|
||||||
<div class="flex flex-col text-center">
|
<div class="flex flex-col text-center">
|
||||||
<img
|
<img
|
||||||
:src="imageSrc"
|
:src="ad.imageSrc"
|
||||||
:alt="ad.imageAlt"
|
:alt="ad.imageAlt"
|
||||||
class="w-32 h-full aspect-video object-cover"
|
class="w-32 h-full aspect-video object-cover"
|
||||||
>
|
>
|
||||||
|
|
@ -91,35 +91,11 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'default'
|
default: 'default'
|
||||||
},
|
},
|
||||||
page: {
|
|
||||||
type: Object,
|
|
||||||
default: () => ({})
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
adName () {
|
|
||||||
console.log( 'kindName', this.page?.kindName )
|
|
||||||
|
|
||||||
if ( this.name === 'placeholder' ) {
|
|
||||||
return 'placeholder'
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( this.page?.kindName === 'developer-tools' ) return 'jotform-for-developers-1'
|
|
||||||
|
|
||||||
// Video and Motion Tools
|
|
||||||
if ( this.page?.kindName === 'video-and-motion-tools' ) return 'wondershare-arm-1'
|
|
||||||
|
|
||||||
return this.name
|
|
||||||
},
|
|
||||||
ad () {
|
ad () {
|
||||||
return ads[ this.adName ]
|
return ads[ this.name ]
|
||||||
},
|
|
||||||
imageSrc () {
|
|
||||||
return this.ad.imageSrc
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
|
||||||
console.log( 'mounted', this.adName )
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue