fix: remove unused roles variable, lint and format
All checks were successful
Build and Push Backend Image / build (push) Successful in 48s
Build and Push Frontend Image / build (push) Successful in 1m15s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-12 18:40:58 +01:00
parent 91951667e3
commit 85554453e7
5 changed files with 21 additions and 15 deletions

View File

@@ -307,9 +307,7 @@ const ARTICLE_CATEGORIES_QUERY = gql`
}
`;
export async function getArticleCategories(
fetchFn?: typeof globalThis.fetch,
): Promise<string[]> {
export async function getArticleCategories(fetchFn?: typeof globalThis.fetch): Promise<string[]> {
return loggedApiCall("getArticleCategories", async () => {
const data = await getGraphQLClient(fetchFn).request<{ articleCategories: string[] }>(
ARTICLE_CATEGORIES_QUERY,

View File

@@ -27,8 +27,6 @@
const currentUserId = page.data.authStatus?.user?.id;
const roles = ["", "viewer", "model"] as const;
function debounceSearch(value: string) {
clearTimeout(searchTimeout);
searchTimeout = setTimeout(() => {

View File

@@ -196,7 +196,9 @@
<div
class="absolute inset-0 bg-gradient-to-t from-black/60 to-transparent flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity"
>
<div class="w-12 h-12 bg-primary/90 rounded-full flex items-center justify-center">
<div
class="w-12 h-12 bg-primary/90 rounded-full flex items-center justify-center"
>
<span class="icon-[ri--play-large-fill] w-6 h-6 text-white ml-0.5"></span>
</div>
</div>
@@ -253,11 +255,8 @@
class="w-16 h-12 object-cover rounded"
/>
{:else}
<div
class="w-16 h-12 rounded bg-muted/50 flex items-center justify-center"
>
<span
class="icon-[ri--article-line] w-4 h-4 text-muted-foreground"
<div class="w-16 h-12 rounded bg-muted/50 flex items-center justify-center">
<span class="icon-[ri--article-line] w-4 h-4 text-muted-foreground"
></span>
</div>
{/if}

View File

@@ -460,9 +460,7 @@
class="w-24 h-16 object-cover rounded"
/>
{:else}
<div
class="w-24 h-16 rounded bg-muted/50 flex items-center justify-center"
>
<div class="w-24 h-16 rounded bg-muted/50 flex items-center justify-center">
<span class="icon-[ri--film-line] w-5 h-5 text-muted-foreground"></span>
</div>
{/if}