From eb11e54a4b8a9bf3d648659521906d4cacdd8ae2 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 21 Jan 2024 17:53:00 -0800
Subject: refactor(schedule): move module out of tools

---
 src/lib/Tools/Schedule/CoverBypass.svelte | 66 -------------------------------
 1 file changed, 66 deletions(-)
 delete mode 100644 src/lib/Tools/Schedule/CoverBypass.svelte

(limited to 'src/lib/Tools/Schedule/CoverBypass.svelte')

diff --git a/src/lib/Tools/Schedule/CoverBypass.svelte b/src/lib/Tools/Schedule/CoverBypass.svelte
deleted file mode 100644
index 235979c1..00000000
--- a/src/lib/Tools/Schedule/CoverBypass.svelte
+++ /dev/null
@@ -1,66 +0,0 @@
-<script lang="ts" ts>
-	import type { Media } from '$lib/AniList/media';
-	import MediaTitleDisplay from '$lib/List/MediaTitleDisplay.svelte';
-	import type { SubsPleaseEpisode } from '$lib/Media/Anime/Airing/Subtitled/subsPlease';
-	import HoverCover from '$lib/Media/Cover/HoverCover.svelte';
-	import {
-		onMouseEnter,
-		type HoverCoverResponse,
-		onMouseLeave,
-		onMouseMove
-	} from '$lib/Media/Cover/hoverCover';
-
-	import { outboundLink } from '$lib/Media/links';
-	import settings from '$stores/settings';
-
-	export let media: Media | null;
-	export let entry: SubsPleaseEpisode;
-	export let cover = true;
-
-	let hoverCoverState: HoverCoverResponse = {};
-
-	const titleSelect = (media: Media | null) =>
-		media ? media.title.english || media.title.romaji || media.title.native : null;
-</script>
-
-<a
-	href={media
-		? outboundLink(media, 'anime', $settings.displayOutboundLinksTo)
-		: outboundLink(
-				null,
-				'anime',
-				$settings.displayOutboundLinksTo,
-				true,
-				titleSelect(media) || entry.title
-		  )}
-	target="_blank"
-	on:mouseenter={() => {
-		const response = onMouseEnter(media, entry);
-
-		hoverCoverState.hovering = response.hovering;
-		hoverCoverState.item = response.item;
-		hoverCoverState.media = response.media;
-	}}
-	on:mouseleave={() => {
-		const response = onMouseLeave();
-
-		hoverCoverState.hovering = response.hovering;
-		hoverCoverState.item = response.item;
-		hoverCoverState.media = response.media;
-	}}
-	on:mousemove={(e) => {
-		const response = onMouseMove(e, 300);
-
-		hoverCoverState.style = response.style;
-	}}
->
-	{#if media}
-		<MediaTitleDisplay title={media.title} />
-	{:else}
-		{entry.title}
-	{/if}
-</a>
-
-{#if cover}
-	<HoverCover options={hoverCoverState} width={300} />
-{/if}
-- 
cgit v1.2.3

