diff --git a/.prettierignore b/.prettierignore index 8e91c7d..5702b1e 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,3 @@ .adonisjs node_modules -build +build \ No newline at end of file diff --git a/app/services/jetstream_service.ts b/app/services/jetstream_service.ts index 6452687..7f1b4e2 100644 --- a/app/services/jetstream_service.ts +++ b/app/services/jetstream_service.ts @@ -196,7 +196,11 @@ export class JetstreamService { this.pingInterval = null } if (this.ws) { - try { this.ws.close() } catch {} + try { + this.ws.close() + } catch { + logger.warn('[Jetstream] error closing WebSocket') + } this.ws = null } } diff --git a/commands/jetstream/listen.ts b/commands/jetstream/listen.ts index 2b5d27f..7e0378c 100644 --- a/commands/jetstream/listen.ts +++ b/commands/jetstream/listen.ts @@ -21,7 +21,10 @@ export default class JetstreamListen extends BaseCommand { declare collections: string async run() { - const wantedCollections = this.collections.split(',').map((c) => c.trim()).filter(Boolean) + const wantedCollections = this.collections + .split(',') + .map((c) => c.trim()) + .filter(Boolean) this.logger.info(`Starting Jetstream listener for: ${wantedCollections.join(', ')}`) const jetstream = new JetstreamService({ diff --git a/eslint.config.js b/eslint.config.js index b7fd9c9..b7f0fac 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,4 +1,7 @@ import { configApp } from '@adonisjs/eslint-config' import { react } from '@adonisjs/eslint-config/react' -export default configApp(...react) +export default [ + { ignores: ['app/lexicons/build/**', 'database/schema.ts'] }, + ...configApp(...react), +] diff --git a/inertia/pages/dashboard.tsx b/inertia/pages/dashboard.tsx index cda2484..178e4d1 100644 --- a/inertia/pages/dashboard.tsx +++ b/inertia/pages/dashboard.tsx @@ -15,11 +15,11 @@ type KitItem = { type PageProps = InertiaProps<{ kits: KitItem[] }> const STATUS_LABELS: Record = { - backlog: 'Backlog', + 'backlog': 'Backlog', 'in-progress': 'In progress', 'on-hold': 'On hold', - dropped: 'Dropped', - done: 'Done', + 'dropped': 'Dropped', + 'done': 'Done', } function KitCard({ kit }: { kit: KitItem }) { diff --git a/inertia/pages/home.tsx b/inertia/pages/home.tsx index edbc3e8..d075584 100644 --- a/inertia/pages/home.tsx +++ b/inertia/pages/home.tsx @@ -24,11 +24,11 @@ type KitRow = { } const STATUS_COLORS: Record = { - backlog: 'var(--muted)', + 'backlog': 'var(--muted)', 'in-progress': 'var(--ok)', 'on-hold': 'var(--warn)', - dropped: 'var(--err)', - done: 'var(--accent)', + 'dropped': 'var(--err)', + 'done': 'var(--accent)', } type PageProps = InertiaProps<{ kits: KitRow[] }> @@ -38,7 +38,9 @@ export default function Home({ kits }: PageProps) {
gunpla.build
-

Track your Gunpla collection and share your builds with the ATProto community.

+

+ Track your Gunpla collection and share your builds with the ATProto community. +

@@ -47,13 +49,20 @@ export default function Home({ kits }: PageProps) { {kits.length === 0 ? ( -

No builds indexed yet. Start a Jetstream listener to populate this feed.

+

+ No builds indexed yet. Start a Jetstream listener to populate this feed. +

) : (
    {kits.map((kit) => (
  • - + {kit.name} {[kit.grade, kit.scale].filter(Boolean).join(' ยท ')}