chore: layout for recent activity

This commit is contained in:
Cory Dransfeldt 2024-11-25 20:29:01 -08:00
parent fb23caebfc
commit 1bdb4da519
No known key found for this signature in database
5 changed files with 67 additions and 69 deletions

46
package-lock.json generated
View file

@ -14,7 +14,7 @@
"@astrojs/sitemap": "3.2.1", "@astrojs/sitemap": "3.2.1",
"@cdransf/astro-tabler-icons": "1.0.5", "@cdransf/astro-tabler-icons": "1.0.5",
"@supabase/supabase-js": "^2.46.1", "@supabase/supabase-js": "^2.46.1",
"astro": "4.16.14", "astro": "4.16.15",
"astro-embed": "0.9.0", "astro-embed": "0.9.0",
"date-fns": "4.1.0", "date-fns": "4.1.0",
"date-fns-tz": "3.2.0", "date-fns-tz": "3.2.0",
@ -2350,12 +2350,12 @@
} }
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "22.9.4", "version": "22.10.0",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.9.4.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.0.tgz",
"integrity": "sha512-d9RWfoR7JC/87vj7n+PVTzGg9hDyuFjir3RxUHbjFSKNd9mpxbxwMEyaCim/ddCmy4IuW7HjTzF3g9p3EtWEOg==", "integrity": "sha512-XC70cRZVElFHfIUB40FgZOBbgJYFKKMa5nb9lxcwYstFG/Mi+/Y0bGS+rs6Dmhmkpq4pnNiLiuZAbc02YCOnmA==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"undici-types": "~6.19.8" "undici-types": "~6.20.0"
} }
}, },
"node_modules/@types/node-forge": { "node_modules/@types/node-forge": {
@ -2660,9 +2660,9 @@
} }
}, },
"node_modules/astro": { "node_modules/astro": {
"version": "4.16.14", "version": "4.16.15",
"resolved": "https://registry.npmjs.org/astro/-/astro-4.16.14.tgz", "resolved": "https://registry.npmjs.org/astro/-/astro-4.16.15.tgz",
"integrity": "sha512-2IuLkIp4idyspugq+F52rHZyNqHHi2AdQzuKp3SGytg/YAm50dNeWhP/7l+enjgWZLloLq5xsH5gVQpoDFoyFg==", "integrity": "sha512-usybZ7nEUiwYKT7r47l4VbkqjKfaE+BgWV/ed4PT3mE3vFRTBWFsXLnkzrN7awfN6+/ekZTAcE+MAkdA551Umw==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@astrojs/compiler": "^2.10.3", "@astrojs/compiler": "^2.10.3",
@ -4827,9 +4827,9 @@
} }
}, },
"node_modules/magic-string": { "node_modules/magic-string": {
"version": "0.30.13", "version": "0.30.14",
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.13.tgz", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.14.tgz",
"integrity": "sha512-8rYBO+MsWkgjDSOvLomYnzhdwEG51olQ4zL5KXnNJWV5MNmrb4rTZdrtkhxjnD/QyZUqR/Z/XDsUs/4ej2nx0g==", "integrity": "sha512-5c99P1WKTed11ZC0HMJOj6CDIue6F8ySu+bJL+85q1zBEIY8IklrJ1eiKC2NDRh3Ct3FcvmJPyQHb9erXMTJNw==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@jridgewell/sourcemap-codec": "^1.5.0" "@jridgewell/sourcemap-codec": "^1.5.0"
@ -5854,9 +5854,9 @@
} }
}, },
"node_modules/nanoid": { "node_modules/nanoid": {
"version": "3.3.7", "version": "3.3.8",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz",
"integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==",
"funding": [ "funding": [
{ {
"type": "github", "type": "github",
@ -6292,9 +6292,9 @@
} }
}, },
"node_modules/prettier": { "node_modules/prettier": {
"version": "3.3.3", "version": "3.4.1",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.4.1.tgz",
"integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", "integrity": "sha512-G+YdqtITVZmOJje6QkXQWzl3fSfMxFwm1tjTyo9exhkmWSqC4Yhd1+lug++IlR2mvRVAxEDDWYkQdeSztajqgg==",
"license": "MIT", "license": "MIT",
"optional": true, "optional": true,
"peer": true, "peer": true,
@ -7470,9 +7470,9 @@
"license": "0BSD" "license": "0BSD"
}, },
"node_modules/type-fest": { "node_modules/type-fest": {
"version": "4.28.0", "version": "4.28.1",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.28.0.tgz", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.28.1.tgz",
"integrity": "sha512-jXMwges/FVbFRe5lTMJZVEZCrO9kI9c8k0PA/z7nF3bo0JSCCLysvokFjNPIUK/itEMas10MQM+AiHoHt/T/XA==", "integrity": "sha512-LO/+yb3mf46YqfUC7QkkoAlpa7CTYh//V1Xy9+NQ+pKqDqXIq0NTfPfQRwFfCt+if4Qkwb9gzZfsl6E5TkXZGw==",
"license": "(MIT OR CC0-1.0)", "license": "(MIT OR CC0-1.0)",
"engines": { "engines": {
"node": ">=16" "node": ">=16"
@ -7550,9 +7550,9 @@
} }
}, },
"node_modules/undici-types": { "node_modules/undici-types": {
"version": "6.19.8", "version": "6.20.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz",
"integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/unenv": { "node_modules/unenv": {

View file

@ -22,7 +22,7 @@
"@astrojs/sitemap": "3.2.1", "@astrojs/sitemap": "3.2.1",
"@cdransf/astro-tabler-icons": "1.0.5", "@cdransf/astro-tabler-icons": "1.0.5",
"@supabase/supabase-js": "^2.46.1", "@supabase/supabase-js": "^2.46.1",
"astro": "4.16.14", "astro": "4.16.15",
"astro-embed": "0.9.0", "astro-embed": "0.9.0",
"date-fns": "4.1.0", "date-fns": "4.1.0",
"date-fns-tz": "3.2.0", "date-fns-tz": "3.2.0",

View file

@ -29,49 +29,47 @@ const link = links[0];
<div set:html={IconActivity({ size: 24 })} /> <div set:html={IconActivity({ size: 24 })} />
Recent activity Recent activity
</h2> </h2>
<ul> <p>
<li> <span class="music">Top artist this week:</span>
<span class="music">Top artist this week:</span> <a href={artist.artist_url} data-astro-prefetch>{artist.artist_name}</a>
<a href={artist.artist_url} data-astro-prefetch>{artist.artist_name}</a> </p>
</li> <p>
<li> <span class="music">Top track this week:</span>
<span class="music">Top track this week:</span> <a href={track.artist_url} data-astro-prefetch
<a href={track.artist_url} data-astro-prefetch >{track.track_name} by {track.artist_name}</a
>{track.track_name} by {track.artist_name}</a >
> </p>
</li> <p>
<li> <span class="tv">Last episode watched:</span>
<span class="tv">Last episode watched:</span> <strong class="highlight-text">{show.formatted_episode}</strong> of <a
<strong class="highlight-text">{show.formatted_episode}</strong> of <a href={show.url}
href={show.url} data-astro-prefetch>{show.title}</a
data-astro-prefetch>{show.title}</a >
> </p>
</li> <p>
<li> <span class="movies">Last movie watched:</span>
<span class="movies">Last movie watched:</span> <a href={movie.url} data-astro-prefetch>{movie.title}</a>{
<a href={movie.url} data-astro-prefetch>{movie.title}</a>{ movie.rating ? ` (${movie.rating})` : ""
movie.rating ? ` (${movie.rating})` : "" }
} </p>
</li> <p>
<li> <span class="books">Last book finished:</span>
<span class="books">Last book finished:</span> <a href={book.url} data-astro-prefetch>{book.title}</a> by {book.author}{
<a href={book.url} data-astro-prefetch>{book.title}</a> by {book.author}{ book.rating ? ` (${book.rating})` : ""
book.rating ? ` (${book.rating})` : "" }
} </p>
</li> <p>
<li> <span class="link">Last link shared:</span>
<span class="link">Last link shared:</span> <a href={link.link}>{link.title}</a>
<a href={link.link}>{link.title}</a> {
{ link.author && (
link.author && ( <span>
<span> {" "}
{" "} via <a href={link.author.url}>{link.author.name}</a>
via <a href={link.author.url}>{link.author.name}</a> </span>
</span> )
) }
} </p>
</li>
</ul>
<Rss <Rss
url="/feeds" url="/feeds"
text="Subscribe to my movies, books, links or activity feed(s)" text="Subscribe to my movies, books, links or activity feed(s)"

View file

@ -14,7 +14,7 @@ id = "${RSS_TO_MASTODON_KV_NAMESPACE_ID}"
[env.production] [env.production]
name = "rss-to-mastodon-worker-production" name = "rss-to-mastodon-worker-production"
triggers = { crons = ["*/15 * * * *"] } triggers = { crons = ["0 * * * *"] }
[[env.production.kv_namespaces]] [[env.production.kv_namespaces]]
binding = "RSS_TO_MASTODON_NAMESPACE" binding = "RSS_TO_MASTODON_NAMESPACE"

View file

@ -7,4 +7,4 @@ workers_dev = true
[env.production] [env.production]
name = "scheduled-rebuild-worker-production" name = "scheduled-rebuild-worker-production"
triggers = {crons = ["0 * * * *"]} triggers = {crons = ["*/15 * * * *"]}