From 6fc6207171e361a1c09540830d3e0b1d00b0376e Mon Sep 17 00:00:00 2001 From: Damillora Date: Sun, 24 Jul 2022 23:18:37 +0700 Subject: [PATCH] feat: update plachta --- package.json | 2 +- pnpm-lock.yaml | 8 ++++---- src/routes/[tag]/[slug].svelte | 6 ++++++ 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 8ee779b..1ca6762 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ }, "type": "module", "dependencies": { - "@damillora/plachta": "^1.3.0", + "@damillora/plachta": "^1.7.0", "@tryghost/content-api": "^1.11.0", "fitvids": "^2.1.1", "svelte-material-icons": "^2.0.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fdbb287..26ca731 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,7 +1,7 @@ lockfileVersion: 5.3 specifiers: - '@damillora/plachta': ^1.3.0 + '@damillora/plachta': ^1.7.0 '@sveltejs/adapter-auto': next '@sveltejs/adapter-node': ^1.0.0-next.83 '@sveltejs/kit': next @@ -30,7 +30,7 @@ specifiers: vite: ^3.0.2 dependencies: - '@damillora/plachta': 1.3.0_svelte@3.49.0 + '@damillora/plachta': 1.7.0_svelte@3.49.0 '@tryghost/content-api': 1.11.0 fitvids: 2.1.1 svelte-material-icons: 2.0.2_svelte@3.49.0 @@ -66,8 +66,8 @@ packages: resolution: {integrity: sha512-B1/plF62pt+H2IJHvApK8fdOJAVsvojvacuac8x8s+JIyqbropMyqNqHTKLm3YD8ZFLGwYeFTudU+PQ7vGvBdA==} dev: true - /@damillora/plachta/1.3.0_svelte@3.49.0: - resolution: {integrity: sha512-QOgo/cXXncPsNlhYKZlKXWcveBnqO8DamLoHy6eQviMGmL7u2fLl6nY723m/rgIz0nsG+K5GU9KYr1HXLTFWUw==} + /@damillora/plachta/1.7.0_svelte@3.49.0: + resolution: {integrity: sha512-CO1gAQ7BnvU9cbP8ahQkjVal1EwKJkLseU9UtTQbAGK23GYtgnT2bcNoKtS+iwRsOYH9zDp62ctliM5frs2baQ==} dependencies: svelte-material-icons: 2.0.2_svelte@3.49.0 svelte-themes: 0.0.98 diff --git a/src/routes/[tag]/[slug].svelte b/src/routes/[tag]/[slug].svelte index c0fec3f..7b95306 100644 --- a/src/routes/[tag]/[slug].svelte +++ b/src/routes/[tag]/[slug].svelte @@ -53,6 +53,12 @@ export let nextPost: any; export let relatedPost: any[]; + onMount(() => { + if (browser) { + fitvids(); + } + }); + afterNavigate(() => { if (browser) { fitvids();