fix: resolve lint errors from ACL/admin implementation

- Remove unused requireOwnerOrAdmin import from videos.ts
- Remove unused requireAuth import from users.ts
- Remove unused GraphQLError import from articles.ts
- Replace URLSearchParams with SvelteURLSearchParams in admin users page
- Apply prettier formatting to all changed files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 12:35:11 +01:00
parent c1770ab9c9
commit ad7ceee5f8
18 changed files with 112 additions and 130 deletions

View File

@@ -21,7 +21,7 @@
let imageId = $state<string | null>(null);
let saving = $state(false);
let preview = $derived(content ? marked.parse(content) as string : "");
let preview = $derived(content ? (marked.parse(content) as string) : "");
function generateSlug(t: string) {
return t
@@ -87,7 +87,9 @@
<Input
id="title"
bind:value={title}
oninput={() => { if (!slug) slug = generateSlug(title); }}
oninput={() => {
if (!slug) slug = generateSlug(title);
}}
placeholder="Article title"
/>
</div>
@@ -125,11 +127,7 @@
<div class="space-y-1.5">
<Label>Cover image</Label>
<FileDropZone
accept="image/*"
maxFileSize={10 * MEGABYTE}
onUpload={handleImageUpload}
/>
<FileDropZone accept="image/*" maxFileSize={10 * MEGABYTE} onUpload={handleImageUpload} />
{#if imageId}<p class="text-xs text-green-600 mt-1">Image uploaded ✓</p>{/if}
</div>