From 48f0c30d47d62e4f35706edb93a1bb2f97eba14c Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.net>
Date: Sun, 1 Mar 2026 16:04:11 -0800
Subject: chore(biome): enable svelte formatting

---
 src/lib/User/BadgeWall/AWC.svelte | 92 +++++++++++++++++++--------------------
 1 file changed, 46 insertions(+), 46 deletions(-)

(limited to 'src/lib/User/BadgeWall/AWC.svelte')

diff --git a/src/lib/User/BadgeWall/AWC.svelte b/src/lib/User/BadgeWall/AWC.svelte
index 8d340282..52eb670a 100644
--- a/src/lib/User/BadgeWall/AWC.svelte
+++ b/src/lib/User/BadgeWall/AWC.svelte
@@ -1,63 +1,63 @@
 <script lang="ts">
-  import Spacer from '$lib/Layout/Spacer.svelte';
-  import type { AWCBadgesGroup } from '$lib/Data/awc';
-  import { cdn, thumbnail } from '$lib/Utility/image';
-  import type { Preferences } from '../../../graphql/$types';
-  import FallbackBadge from './FallbackBadge.svelte';
-  import './badges.css';
+import Spacer from '$lib/Layout/Spacer.svelte';
+import type { AWCBadgesGroup } from '$lib/Data/awc';
+import { cdn, thumbnail } from '$lib/Utility/image';
+import type { Preferences } from '../../../graphql/$types';
+import FallbackBadge from './FallbackBadge.svelte';
+import './badges.css';
 
-  export let awcPromise: Promise<Response>;
-  export let categoryFilter: string | null;
-  export let isOwner: boolean;
-  export let preferences: Preferences;
+export let awcPromise: Promise<Response>;
+export let categoryFilter: string | null;
+export let isOwner: boolean;
+export let preferences: Preferences;
 
-  const awcBadgesGrouped = (awcResponse: string): AWCBadgesGroup[] => {
-    return Array.from(
-      new DOMParser().parseFromString(awcResponse, 'text/html').querySelectorAll('.container')
-    )
-      .map((c) => {
-        const container = c as HTMLDivElement;
-        const header = container.querySelector('.container-header') as HTMLDivElement;
+const awcBadgesGrouped = (awcResponse: string): AWCBadgesGroup[] => {
+  return Array.from(
+    new DOMParser().parseFromString(awcResponse, 'text/html').querySelectorAll('.container')
+  )
+    .map((c) => {
+      const container = c as HTMLDivElement;
+      const header = container.querySelector('.container-header') as HTMLDivElement;
 
-        if (!header) return;
+      if (!header) return;
 
-        if (!['Anime', 'Manga', 'Special'].includes(header.innerText)) return;
-
-        if (header.innerText === 'Special') {
-          return {
-            group: header.innerText,
-            badges: Array.from(container.querySelectorAll('.badge-display img')).map((b) => {
-              const badge = b as HTMLImageElement;
-
-              return {
-                link: '#',
-                description: badge.alt,
-                image: badge.src.includes('placeholder')
-                  ? cdn('https://awc.moe/static/images/badge-placeholder.png')
-                  : badge.src
-              };
-            })
-          };
-        }
+      if (!['Anime', 'Manga', 'Special'].includes(header.innerText)) return;
 
+      if (header.innerText === 'Special') {
         return {
           group: header.innerText,
-          badges: Array.from(container.querySelectorAll('.badge-display a')).map((b) => {
-            const badge = b as HTMLAnchorElement;
-            const image = badge.querySelector('img') as HTMLImageElement;
+          badges: Array.from(container.querySelectorAll('.badge-display img')).map((b) => {
+            const badge = b as HTMLImageElement;
 
             return {
-              link: badge.href,
-              description: image.alt,
-              image: image.src.includes('placeholder')
+              link: '#',
+              description: badge.alt,
+              image: badge.src.includes('placeholder')
                 ? cdn('https://awc.moe/static/images/badge-placeholder.png')
-                : image.src
+                : badge.src
             };
           })
         };
-      })
-      .filter((b) => b !== undefined) as AWCBadgesGroup[];
-  };
+      }
+
+      return {
+        group: header.innerText,
+        badges: Array.from(container.querySelectorAll('.badge-display a')).map((b) => {
+          const badge = b as HTMLAnchorElement;
+          const image = badge.querySelector('img') as HTMLImageElement;
+
+          return {
+            link: badge.href,
+            description: image.alt,
+            image: image.src.includes('placeholder')
+              ? cdn('https://awc.moe/static/images/badge-placeholder.png')
+              : image.src
+          };
+        })
+      };
+    })
+    .filter((b) => b !== undefined) as AWCBadgesGroup[];
+};
 </script>
 
 {#await awcPromise then badges}
-- 
cgit v1.2.3

