mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -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>
|
||||
<div
|
||||
v-if="adName !== 'default'"
|
||||
v-if="name !== 'default'"
|
||||
class="w-full"
|
||||
>
|
||||
<a
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
>
|
||||
<div class="flex flex-col text-center">
|
||||
<img
|
||||
:src="imageSrc"
|
||||
:src="ad.imageSrc"
|
||||
:alt="ad.imageAlt"
|
||||
class="w-32 h-full aspect-video object-cover"
|
||||
>
|
||||
|
|
@ -91,35 +91,11 @@ export default {
|
|||
type: String,
|
||||
default: 'default'
|
||||
},
|
||||
page: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
}
|
||||
},
|
||||
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 () {
|
||||
return ads[ this.adName ]
|
||||
},
|
||||
imageSrc () {
|
||||
return this.ad.imageSrc
|
||||
return ads[ this.name ]
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
console.log( 'mounted', this.adName )
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue