#220 [profile] card images - fixes
This commit is contained in:
parent
92d004fc6d
commit
97a0a1cfc1
|
@ -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>
|
||||
|
|
|
@ -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: [
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const overloadPeriods = {
|
||||
en: [[17, 23]],
|
||||
en: [[16, 23]],
|
||||
};
|
||||
|
||||
module.exports = (locale, timestamp = new Date) => {
|
||||
|
|
Reference in New Issue