mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
fix: resolve lint issues
This commit is contained in:
@@ -911,6 +911,7 @@
|
|||||||
on:click={handleMarkdownClick}
|
on:click={handleMarkdownClick}
|
||||||
role="presentation"
|
role="presentation"
|
||||||
>
|
>
|
||||||
|
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
|
||||||
{@html pasteContent}
|
{@html pasteContent}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
let passwordFocused = false;
|
let passwordFocused = false;
|
||||||
let showPassword = false;
|
let showPassword = false;
|
||||||
1;
|
|
||||||
let passwordChecks = {
|
let passwordChecks = {
|
||||||
minLength: false,
|
minLength: false,
|
||||||
maxLength: false,
|
maxLength: false,
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
$: stats = data.stats.stats;
|
$: stats = data.stats.stats;
|
||||||
|
|
||||||
$: dailyData = stats.pastes.daily || [];
|
$: dailyData = stats.pastes.daily || [];
|
||||||
$: maxCount = Math.max(...dailyData.map((d: any) => d.count), 5);
|
$: maxCount = Math.max(...dailyData.map((d: { count: number; date: number }) => d.count), 5);
|
||||||
|
|
||||||
function getOrdinal(n: number) {
|
function getOrdinal(n: number) {
|
||||||
const s = ['th', 'st', 'nd', 'rd'];
|
const s = ['th', 'st', 'nd', 'rd'];
|
||||||
@@ -90,7 +90,7 @@
|
|||||||
<h2 class="mb-6 text-xl font-semibold">Pastes Growth (Last 7 Days)</h2>
|
<h2 class="mb-6 text-xl font-semibold">Pastes Growth (Last 7 Days)</h2>
|
||||||
<div class="flex h-64 w-full items-end justify-between gap-2 px-2">
|
<div class="flex h-64 w-full items-end justify-between gap-2 px-2">
|
||||||
{#if dailyData.length > 0}
|
{#if dailyData.length > 0}
|
||||||
{#each dailyData as d}
|
{#each dailyData as d (d.date)}
|
||||||
<div class="group relative flex h-full flex-1 flex-col justify-end">
|
<div class="group relative flex h-full flex-1 flex-col justify-end">
|
||||||
<div
|
<div
|
||||||
use:tooltip={[`${formatNumber(d.count)} paste${d.count !== 1 ? 's' : ''}`, true]}
|
use:tooltip={[`${formatNumber(d.count)} paste${d.count !== 1 ? 's' : ''}`, true]}
|
||||||
|
|||||||
Reference in New Issue
Block a user