From 998b63a35256ac985a5a2714dd1ca451af4dfd8a Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 9 Oct 2024 00:41:20 -0700 Subject: chore(prettier): use spaces instead of tabs --- src/lib/Hololive/Lives.svelte | 130 +++++++++--------- src/lib/Hololive/Stream.svelte | 290 ++++++++++++++++++++--------------------- src/lib/Hololive/hololive.ts | 18 +-- 3 files changed, 219 insertions(+), 219 deletions(-) (limited to 'src/lib/Hololive') diff --git a/src/lib/Hololive/Lives.svelte b/src/lib/Hololive/Lives.svelte index 7281b18f..9e762df9 100644 --- a/src/lib/Hololive/Lives.svelte +++ b/src/lib/Hololive/Lives.svelte @@ -1,93 +1,93 @@ {#if schedule.lives.length === 0} - + {/if}
- {#each categorisedStreams.live as live} - - {/each} + {#each categorisedStreams.live as live} + + {/each}

- {#each categorisedStreams.upcoming as live} - - {/each} + {#each categorisedStreams.upcoming as live} + + {/each}

- {#each categorisedStreams.ended as live} - - {/each} + {#each categorisedStreams.ended as live} + + {/each}
diff --git a/src/lib/Hololive/Stream.svelte b/src/lib/Hololive/Stream.svelte index cde3be68..12681acb 100644 --- a/src/lib/Hololive/Stream.svelte +++ b/src/lib/Hololive/Stream.svelte @@ -1,153 +1,153 @@
- {#if $identity.id !== -2} - - {/if} - -

- {#if live.streaming} - {$locale().hololive.live}{:else if new Date(live.time).getTime() < Date.now()} - {$locale().hololive.ended}{:else} - {$locale().hololive.upcoming}{/if} - | - {#if icon} - - Avatar - - {/if} - - {live.streamer} - -
- {$locale().hololive.dateFormatter(new Date(live.time))} - {#if live.guests.length > 0} - {$locale().hololive.with}{live.guests - .join($locale().hololive.comma) - .replace( - new RegExp(`${$locale().hololive.comma}([^${$locale().hololive.commaNoSpace}]+)$`, 'g'), - `${$locale().hololive.comma}${$locale().hololive.ampersand}$1` - )} - {/if} -

- - - - - - + {#if $identity.id !== -2} + + {/if} + +

+ {#if live.streaming} + {$locale().hololive.live}{:else if new Date(live.time).getTime() < Date.now()} + {$locale().hololive.ended}{:else} + {$locale().hololive.upcoming}{/if} + | + {#if icon} + + Avatar + + {/if} + + {live.streamer} + +
+ {$locale().hololive.dateFormatter(new Date(live.time))} + {#if live.guests.length > 0} + {$locale().hololive.with}{live.guests + .join($locale().hololive.comma) + .replace( + new RegExp(`${$locale().hololive.comma}([^${$locale().hololive.commaNoSpace}]+)$`, 'g'), + `${$locale().hololive.comma}${$locale().hololive.ampersand}$1` + )} + {/if} +

+ + + + + +
diff --git a/src/lib/Hololive/hololive.ts b/src/lib/Hololive/hololive.ts index 4b9ed25e..f348567c 100644 --- a/src/lib/Hololive/hololive.ts +++ b/src/lib/Hololive/hololive.ts @@ -1,16 +1,16 @@ export interface Live { - time: Date; - link: string; - videoId: string; - streamer: string; - livePreviewImage: string; - guests: string[]; - streaming: boolean; + time: Date; + link: string; + videoId: string; + streamer: string; + livePreviewImage: string; + guests: string[]; + streaming: boolean; } export interface ParseResult { - lives: Live[]; - dict: Record; + lives: Live[]; + dict: Record; } export const typeSchedule = (schedule: object) => schedule as ParseResult; -- cgit v1.2.3