{
- intersecting = true
- dispatch("enterViewport")
- }}
->
- {#if intersecting}
-
-
-
- {:else}
-
- {/if}
+
+ {#if loaded}
+
+
+
+ {/if}
diff --git a/src/lib/components/general-observer.test.ts b/src/lib/components/general-observer.test.ts
index 5fadcd87..5d676071 100644
--- a/src/lib/components/general-observer.test.ts
+++ b/src/lib/components/general-observer.test.ts
@@ -2,17 +2,11 @@ import GeneralObserver from '$lib/components/general-observer.svelte'
import { cleanup, render } from '@testing-library/svelte'
import { afterEach, describe, expect, it, vi } from 'vitest'
-globalThis.IntersectionObserver = vi.fn(() => ({
- observe: () => null,
- unobserve: () => null,
- disconnect: () => null,
-})) as unknown as typeof globalThis.IntersectionObserver
-
describe('General Observer', () => {
- afterEach(() => cleanup())
+ afterEach(() => cleanup())
- it('mounts', () => {
- const { container } = render(GeneralObserver)
- expect(container).toBeTruthy()
- })
+ it('mounts', () => {
+ const { container } = render(GeneralObserver)
+ expect(container).toBeTruthy()
+ })
})
diff --git a/src/lib/components/generic-embed.svelte b/src/lib/components/generic-embed.svelte
index 58acec47..85c40329 100644
--- a/src/lib/components/generic-embed.svelte
+++ b/src/lib/components/generic-embed.svelte
@@ -1,12 +1,12 @@
-
-
+
+
diff --git a/src/lib/components/generic-embed.test.ts b/src/lib/components/generic-embed.test.ts
index 801d0158..53a740da 100644
--- a/src/lib/components/generic-embed.test.ts
+++ b/src/lib/components/generic-embed.test.ts
@@ -3,16 +3,16 @@ import { cleanup, render } from '@testing-library/svelte'
import { afterEach, describe, expect, it, vi } from 'vitest'
globalThis.IntersectionObserver = vi.fn(() => ({
- observe: () => null,
- unobserve: () => null,
- disconnect: () => null,
+ observe: () => null,
+ unobserve: () => null,
+ disconnect: () => null,
})) as unknown as typeof globalThis.IntersectionObserver
describe('GenericEmbed', () => {
- afterEach(() => cleanup())
+ afterEach(() => cleanup())
- it('mounts', () => {
- const { container } = render(GenericEmbed)
- expect(container).toBeTruthy()
- })
+ it('mounts', () => {
+ const { container } = render(GenericEmbed)
+ expect(container).toBeTruthy()
+ })
})
diff --git a/src/lib/components/gist.svelte b/src/lib/components/gist.svelte
index c4168505..c0701074 100644
--- a/src/lib/components/gist.svelte
+++ b/src/lib/components/gist.svelte
@@ -1,28 +1,30 @@
-
-
+
+
\ No newline at end of file
+
diff --git a/src/lib/components/gist.test.ts b/src/lib/components/gist.test.ts
index 78acedc9..a4bf934a 100644
--- a/src/lib/components/gist.test.ts
+++ b/src/lib/components/gist.test.ts
@@ -3,16 +3,16 @@ import { cleanup, render } from '@testing-library/svelte'
import { afterEach, describe, expect, it, vi } from 'vitest'
globalThis.IntersectionObserver = vi.fn(() => ({
- observe: () => null,
- unobserve: () => null,
- disconnect: () => null,
+ observe: () => null,
+ unobserve: () => null,
+ disconnect: () => null,
})) as unknown as typeof globalThis.IntersectionObserver
describe('Gist', () => {
- afterEach(() => cleanup())
+ afterEach(() => cleanup())
- it('mounts', () => {
- const { container } = render(Gist)
- expect(container).toBeTruthy()
- })
+ it('mounts', () => {
+ const { container } = render(Gist)
+ expect(container).toBeTruthy()
+ })
})
diff --git a/src/lib/components/guild.svelte b/src/lib/components/guild.svelte
index d3f3925c..4007f01c 100644
--- a/src/lib/components/guild.svelte
+++ b/src/lib/components/guild.svelte
@@ -24,42 +24,42 @@
https://beta.guild.host/embeds/presentation/microfrontends-with-e6mtnf/item
-->
-
-
+ />
+
diff --git a/src/lib/components/guild.test.ts b/src/lib/components/guild.test.ts
index 894f01f7..b6c514a3 100644
--- a/src/lib/components/guild.test.ts
+++ b/src/lib/components/guild.test.ts
@@ -3,16 +3,16 @@ import { cleanup, render } from '@testing-library/svelte'
import { afterEach, describe, expect, it, vi } from 'vitest'
globalThis.IntersectionObserver = vi.fn(() => ({
- observe: () => null,
- unobserve: () => null,
- disconnect: () => null,
+ observe: () => null,
+ unobserve: () => null,
+ disconnect: () => null,
})) as unknown as typeof globalThis.IntersectionObserver
describe('Guild', () => {
- afterEach(() => cleanup())
+ afterEach(() => cleanup())
- it('mounts', () => {
- const { container } = render(Guild)
- expect(container).toBeTruthy()
- })
+ it('mounts', () => {
+ const { container } = render(Guild)
+ expect(container).toBeTruthy()
+ })
})
diff --git a/src/lib/components/relive.svelte b/src/lib/components/relive.svelte
index 0e8c61ef..2eac6bb6 100644
--- a/src/lib/components/relive.svelte
+++ b/src/lib/components/relive.svelte
@@ -1,34 +1,34 @@