#220 [profile] card images - fixes

This commit is contained in:
Avris 2021-07-10 19:02:08 +02:00
parent 92d004fc6d
commit 97a0a1cfc1
5 changed files with 10 additions and 6 deletions

View File

@ -49,6 +49,10 @@
if (process.client) {
sorter();
}
if (process.env.NODE_ENV === 'production') {
this.$loadScript('arc', 'https://arc.io/widget.min.js#yHdNYRkC');
}
}
}
</script>

View File

@ -91,9 +91,6 @@ export default {
link: [
{ rel: 'icon', type: 'image/svg', href: '/favicon.svg' }
],
script: process.env.NODE_ENV === 'production' ? [
{src: 'https://arc.io/widget.min.js#yHdNYRkC', async: true},
] : [],
},
css: [],
plugins: [

View File

@ -3,7 +3,7 @@
<nuxt-link to="/">
<h1 class="text-nowrap h5">
<Icon v="tags"/>
<T>title</T>
<T>title</T><span v-if="profile">/@{{profile.username}}</span>
</h1>
</nuxt-link>
</Profile>

View File

@ -28,7 +28,10 @@ for (let [code, , url, ] of locales) {
console.log(locale, username, cardId);
for (let dark of [false, true]) {
const [ buffer ] = await new Pageres({ darkMode: dark })
const [ buffer ] = await new Pageres({
darkMode: dark,
delay: 3,
})
.src(urlBases[locale] + username, ['1024x300'])
.run();

View File

@ -1,5 +1,5 @@
const overloadPeriods = {
en: [[17, 23]],
en: [[16, 23]],
};
module.exports = (locale, timestamp = new Date) => {