chore: cache bust component js

This commit is contained in:
Cory Dransfeldt 2024-08-11 15:09:24 -07:00
parent 32c6bc3ba2
commit 16f8f3579f
No known key found for this signature in database
7 changed files with 8 additions and 8 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "coryd.dev",
"version": "22.1.4",
"version": "22.1.5",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "coryd.dev",
"version": "22.1.4",
"version": "22.1.5",
"license": "MIT",
"dependencies": {
"@cdransf/api-text": "^1.5.0",

View file

@ -1,6 +1,6 @@
{
"name": "coryd.dev",
"version": "22.1.4",
"version": "22.1.5",
"description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module",
"scripts": {

View file

@ -1,4 +1,4 @@
<script type="module" src="/assets/scripts/components/api-text.js" crossorigin="anonymous"></script>
<script type="module" src="/assets/scripts/components/api-text.js?v={% appVersion %}" crossorigin="anonymous"></script>
<api-text api-url="/api/now-playing">
<p class="loading">🎧 Loading...</p>
<p class="content"></p>

View file

@ -1,3 +1,3 @@
<script type="module" src="/assets/scripts/components/youtube-video-element.js"></script>
<script type="module" src="/assets/scripts/components/youtube-video-element.js?v={% appVersion %}"></script>
<style>youtube-video{aspect-ratio:16/9;width:100%;margin-bottom:var(--sizing-base)}</style>
<youtube-video controls src="{{ url }}"></youtube-video>

View file

@ -1,4 +1,4 @@
<script type="module" src="/assets/scripts/components/select-pagination.js"></script>
<script type="module" src="/assets/scripts/components/select-pagination.js?v={% appVersion %}"></script>
<nav aria-label="Pagination" class="pagination flex-centered">
{%- if pagination.href.previous -%}
<a href="{{ pagination.href.previous }}" aria-label="Previous page">

View file

@ -1,4 +1,4 @@
<script type="module" src="/assets/scripts/components/theme-toggle.js" crossorigin="anonymous"></script>
<script type="module" src="/assets/scripts/components/theme-toggle.js?v={% appVersion %}" crossorigin="anonymous"></script>
<span class="client-side">
<theme-toggle>
<button class="theme-toggle" tabindex="0">

View file

@ -4,7 +4,7 @@ description: Search through and find the posts and links on my site.
layout: default
permalink: /search.html
---
<script src="/assets/scripts/components/minisearch.js"></script>
<script src="/assets/scripts/components/minisearch.js?v={% appVersion %}"></script>
<script type="module">
(() => {
const miniSearch = new MiniSearch({