refactor: replace all explicit any types with proper TypeScript types
Backend resolvers: typed enrichArticle/enrichVideo/enrichModel with DB and $inferSelect types, SQL<unknown>[] for conditions arrays, proper enum casts for status/role fields, $inferInsert for .set() updates, typed raw SQL result rows in gamification, ReplyLike interface for ctx.reply in auth. Frontend: typed catch blocks with Error/interface casts, isActiveLink param, adminGetUser response, tags filter callback. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -315,8 +315,8 @@
|
||||
size="sm"
|
||||
disabled={data.page <= 1}
|
||||
onclick={() => goToPage(data.page - 1)}
|
||||
class="border-primary/20 hover:bg-primary/10"
|
||||
>{$_("common.previous")}</Button>
|
||||
class="border-primary/20 hover:bg-primary/10">{$_("common.previous")}</Button
|
||||
>
|
||||
{#each pageNumbers() as p, i (i)}
|
||||
{#if p === -1}
|
||||
<span class="px-2 text-muted-foreground select-none">…</span>
|
||||
@@ -327,8 +327,8 @@
|
||||
onclick={() => goToPage(p)}
|
||||
class={p === data.page
|
||||
? "bg-gradient-to-r from-primary to-accent min-w-9"
|
||||
: "border-primary/20 hover:bg-primary/10 min-w-9"}
|
||||
>{p}</Button>
|
||||
: "border-primary/20 hover:bg-primary/10 min-w-9"}>{p}</Button
|
||||
>
|
||||
{/if}
|
||||
{/each}
|
||||
<Button
|
||||
@@ -336,8 +336,8 @@
|
||||
size="sm"
|
||||
disabled={data.page >= totalPages}
|
||||
onclick={() => goToPage(data.page + 1)}
|
||||
class="border-primary/20 hover:bg-primary/10"
|
||||
>{$_("common.next")}</Button>
|
||||
class="border-primary/20 hover:bg-primary/10">{$_("common.next")}</Button
|
||||
>
|
||||
</div>
|
||||
<p class="text-sm text-muted-foreground">
|
||||
{$_("common.total_results", { values: { total: data.total } })}
|
||||
|
||||
@@ -153,10 +153,15 @@
|
||||
<div class="flex-1">
|
||||
<h3 class="font-semibold text-lg mb-1">About {author.artist_name}</h3>
|
||||
{#if author.description}
|
||||
<p class="text-sm text-muted-foreground mb-3 leading-relaxed">{author.description}</p>
|
||||
<p class="text-sm text-muted-foreground mb-3 leading-relaxed">
|
||||
{author.description}
|
||||
</p>
|
||||
{/if}
|
||||
{#if author.slug}
|
||||
<a href="/models/{author.slug}" class="inline-flex items-center gap-1 text-sm text-primary hover:underline">
|
||||
<a
|
||||
href="/models/{author.slug}"
|
||||
class="inline-flex items-center gap-1 text-sm text-primary hover:underline"
|
||||
>
|
||||
View profile
|
||||
<span class="icon-[ri--arrow-right-line] w-3.5 h-3.5"></span>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user