You've already forked AstralRinth
forked from didirus/AstralRinth
Update Ad Placement, fix version sorting
This commit is contained in:
35
components/EthicalAd.vue
Normal file
35
components/EthicalAd.vue
Normal file
@@ -0,0 +1,35 @@
|
||||
<template>
|
||||
<div
|
||||
:class="$colorMode.value"
|
||||
data-ea-publisher="modrinth-com"
|
||||
:data-ea-type="type"
|
||||
data-ea-manual="true"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'EthicalAd',
|
||||
props: {
|
||||
type: {
|
||||
type: String,
|
||||
default: 'text',
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
try {
|
||||
// eslint-disable-next-line no-undef
|
||||
ethicalads.load()
|
||||
} catch (err) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(err)
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
[data-ea-type='image'] {
|
||||
margin: auto 10px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user