From 9dfde0448a1da2597f8709e9d1455e4cdf98c0d1 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sat, 6 Jan 2024 06:05:28 -0800
Subject: feat(tools): dump profile tool

---
 src/lib/Tools/DumpProfile.svelte | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 src/lib/Tools/DumpProfile.svelte

(limited to 'src/lib/Tools/DumpProfile.svelte')

diff --git a/src/lib/Tools/DumpProfile.svelte b/src/lib/Tools/DumpProfile.svelte
new file mode 100644
index 00000000..f01814e6
--- /dev/null
+++ b/src/lib/Tools/DumpProfile.svelte
@@ -0,0 +1,18 @@
+<script lang="ts">
+	import { dumpUser } from '$lib/AniList/user';
+	import RateLimited from '$lib/Error/RateLimited.svelte';
+	import InputTemplate from './InputTemplate.svelte';
+
+	let submission = '';
+</script>
+
+<!-- svelte-ignore missing-declaration -->
+<InputTemplate field="Username" bind:submission event="Dump User" submitText="Dump">
+	{#await dumpUser(submission)}
+		Loading user ... 50%
+	{:then dump}
+		<pre style="margin: 0;">{JSON.stringify(dump, null, 2)}</pre>
+	{:catch}
+		<RateLimited type="User" list={false} />
+	{/await}
+</InputTemplate>
-- 
cgit v1.2.3

