Update Ad Placement, fix version sorting

This commit is contained in:
Jai A
2020-10-30 22:15:08 -07:00
parent 099adb3853
commit 3434907f52
4 changed files with 47 additions and 5 deletions

35
components/EthicalAd.vue Normal file
View 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>