Change to EthicalAds

This commit is contained in:
Jai A 2020-10-28 20:39:44 -07:00
parent 42b568952e
commit dd9b1c047c
No known key found for this signature in database
GPG Key ID: E8B7DFB8C62797AC
6 changed files with 6 additions and 9 deletions

View File

@ -22,6 +22,7 @@
<p>{{ mod.description }}</p>
</div>
</div>
<div data-ea-publisher="modrinth-com" data-ea-type="text" />
<div class="mod-navigation">
<nuxt-link :to="'/mod/' + mod.id">
<InfoIcon />

View File

@ -209,10 +209,6 @@ export default {
return []
},
},
isAd: {
type: Boolean,
default: false,
},
},
methods: {
formatNumber(x) {

View File

@ -70,8 +70,7 @@ export default {
defer: true,
},
{
src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js',
'data-ad-client': 'ca-pub-4615302805870170',
src: 'https://media.ethicalads.io/media/client/ethicalads.min.js',
async: true,
},
],

View File

@ -1,7 +1,6 @@
<template>
<div class="content">
<h2>My projects</h2>
<div class="section-header">
<h3>Mods</h3>
<nuxt-link class="create-button" to="/mod/create"
@ -55,6 +54,7 @@
</tr>
</tbody>
</table>
<div data-ea-publisher="modrinth-com" data-ea-type="text" />
</div>
</template>

View File

@ -54,6 +54,7 @@
></pagination>
</section>
<div class="results column-grow-4">
<div data-ea-publisher="modrinth-com" data-ea-type="text" />
<SearchResult
v-for="(result, index) in results"
:id="result.mod_id"

View File

@ -11,9 +11,10 @@
<p v-if="user.role === 'developer'" class="badge green">Developer</p>
</div>
</div>
<div data-ea-publisher="modrinth-com" data-ea-type="text" />
<div class="user-mods">
<SearchResult
v-for="(result, index) in mods"
v-for="result in mods"
:id="result.mod_id"
:key="result.mod_id"
:name="result.title"
@ -26,7 +27,6 @@
:author-url="result.author_url"
:page-url="result.page_url"
:categories="result.categories"
:is-ad="index === -1"
/>
</div>
</div>