Skip to content

Commit

Permalink
Merge pull request #344 from vim-jp-radio/feature/342
Browse files Browse the repository at this point in the history
update sveltweet@3
  • Loading branch information
ryoppippi authored Dec 29, 2024
2 parents 7cbcee9 + df55339 commit a1b2b2b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"svelte-check": "^4.0.5",
"svelte-eslint-parser": "^0.41.1",
"svelte-preprocess-budoux": "^1.0.2",
"sveltweet": "^0.2.11",
"sveltweet": "^0.3.2",
"tslib": "^2.8.0",
"typescript": "^5.6.3",
"typescript-svelte-plugin": "^0.3.42",
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/routes/+page.server.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { Tweet } from 'sveltweet';
import type { Tweet as TweetT } from 'sveltweet/api';
import { LISTENERS_TWEET_IDS } from '$/lib/links';
import { retry } from '@std/async';
import { error } from '@sveltejs/kit';
import { getTweet } from 'sveltweet/api';

/* tweet を取得する。 */
export async function load() {
const tweets: Tweet[] = [];
const tweets: TweetT[] = [];
for (const id of LISTENERS_TWEET_IDS) {
const tweet = await retry(async () => {
const _tweet = await getTweet(id);
Expand Down
7 changes: 4 additions & 3 deletions src/routes/ListenersTweets.svelte
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<script lang='ts'>
import type { Tweet as TweetT } from 'sveltweet/api';
import { Heading } from '$/lib/Heading';
import { SvelteTweet, type Tweet } from 'sveltweet';
import { Tweet } from 'sveltweet';
const { tweets }: { tweets: Tweet[] } = $props();
const { tweets }: { tweets: TweetT[] } = $props();
</script>

<section>
<Heading title='リスナーの声' />
<div data-theme='dark'>
{#each tweets as tweet (tweet.id_str)}
<SvelteTweet {tweet} />
<Tweet {tweet} />
{/each}
</div>
</section>

0 comments on commit a1b2b2b

Please sign in to comment.