impr: remove dead code
This commit is contained in:
7 files changed
+13
-108
No files matched your search
@@ -2,7 +2,6 @@
|
||||
import { browser } from '$app/environment'
|
||||
import { navigating, page } from '$app/state'
|
||||
import Moderation from '$lib/components/lemmy/moderation/Moderation.svelte'
|
||||
import SiteCard from '$lib/components/lemmy/SiteCard.svelte'
|
||||
import ExpandableImage from '$lib/components/ui/ExpandableImage.svelte'
|
||||
import Shell from '$lib/components/ui/layout/Shell.svelte'
|
||||
import Navbar from '$lib/components/ui/navbar/Navbar.svelte'
|
||||
@@ -139,12 +138,14 @@
|
||||
{@const SvelteComponent = page.data.slots.sidebar.component}
|
||||
<SvelteComponent {...page.data.slots.sidebar.props} class="pt-0!" />
|
||||
{:else if site.data}
|
||||
<SiteCard
|
||||
site={site.data.site_view}
|
||||
taglines={site.data.taglines}
|
||||
admins={site.data.admins}
|
||||
version={site.data.version}
|
||||
/>
|
||||
{#await import('$lib/components/lemmy/SiteCard.svelte') then { default: SiteCard }}
|
||||
<SiteCard
|
||||
site={site.data.site_view}
|
||||
taglines={site.data.taglines}
|
||||
admins={site.data.admins}
|
||||
version={site.data.version}
|
||||
/>
|
||||
{/await}
|
||||
{:else}
|
||||
<div class="h-64 w-full grid place-items-center">
|
||||
<Spinner width={32} />
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
<script lang="ts">
|
||||
import { profile } from '$lib/auth.svelte'
|
||||
import Portal from 'mono-svelte/popover/Portal.svelte'
|
||||
import { onDestroy, onMount } from 'svelte'
|
||||
|
||||
let audio = $state<HTMLAudioElement>()
|
||||
|
||||
onMount(() => {
|
||||
audio?.play()
|
||||
|
||||
document.body.style.rotate = `5deg`
|
||||
document.body.style.transition = 'rotate 1s linear'
|
||||
})
|
||||
|
||||
onDestroy(() => {
|
||||
document.body.style.rotate = ''
|
||||
})
|
||||
</script>
|
||||
|
||||
<audio bind:this={audio}>
|
||||
<source src="/other/mc.mp3" type="audio/mpeg" />
|
||||
</audio>
|
||||
<Portal class="z-50 fixed inset-0">
|
||||
<div
|
||||
class="inset-0 bg-red-500/20 w-screen h-screen flex flex-col gap-4 items-center p-16 z-50"
|
||||
style="rotate: -5deg; transition: rotate 1s linear;"
|
||||
>
|
||||
<div class="bg-black/20 font-mono fixed left-1/2 -translate-x-1/2">
|
||||
<p>{profile.current.username ?? 'You'} was slain by Command Palette</p>
|
||||
</div>
|
||||
<img
|
||||
src="/other/mc.png"
|
||||
class="object-contain w-full h-full"
|
||||
alt="Minecraft 'you died'"
|
||||
/>
|
||||
</div>
|
||||
</Portal>
|
||||
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: 'mc';
|
||||
src: url('/other/mc.otf') format('opentype');
|
||||
}
|
||||
|
||||
.main {
|
||||
font-family: 'mc';
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user