From 17efc4e1ba8c47c78126fb12377ee5c3205d2c7d Mon Sep 17 00:00:00 2001 From: lewisblackburn Date: Sun, 20 Oct 2024 14:20:55 +0100 Subject: [PATCH] chore(lint): formatting and linting --- app/root.tsx | 36 ++++++++-------- app/routes/_home+/index.tsx | 2 +- app/routes/dashboard.tsx | 82 ++++++++++++++++++------------------- app/utils/env.server.ts | 2 +- index.js | 2 - public/site.webmanifest | 34 +++++++-------- 6 files changed, 78 insertions(+), 80 deletions(-) diff --git a/app/root.tsx b/app/root.tsx index fbe3608..fee2881 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -77,27 +77,27 @@ export async function loader({ request }: LoaderFunctionArgs) { const user = userId ? await time( - () => - prisma.user.findUniqueOrThrow({ - select: { - id: true, - name: true, - username: true, - image: { select: { id: true } }, - initials: true, - roles: { - select: { - name: true, - permissions: { - select: { entity: true, action: true, access: true }, + () => + prisma.user.findUniqueOrThrow({ + select: { + id: true, + name: true, + username: true, + image: { select: { id: true } }, + initials: true, + roles: { + select: { + name: true, + permissions: { + select: { entity: true, action: true, access: true }, + }, }, }, }, - }, - where: { id: userId }, - }), - { timings, type: 'find user', desc: 'find user in root' }, - ) + where: { id: userId }, + }), + { timings, type: 'find user', desc: 'find user in root' }, + ) : null if (userId && !user) { console.info('something weird happened') diff --git a/app/routes/_home+/index.tsx b/app/routes/_home+/index.tsx index ba47c32..759d587 100644 --- a/app/routes/_home+/index.tsx +++ b/app/routes/_home+/index.tsx @@ -105,7 +105,7 @@ function LogoCloud() { { }, // Disable drag + watchDrag: () => {}, // Disable drag loop: true, }} plugins={[Autoscroll({ startDelay: 0 })]} diff --git a/app/routes/dashboard.tsx b/app/routes/dashboard.tsx index 0fda46a..139f05d 100644 --- a/app/routes/dashboard.tsx +++ b/app/routes/dashboard.tsx @@ -35,47 +35,47 @@ const sidebarLinks: { href: string icon: IconName }[] = [ - { - name: 'Dashboard', - href: '/dashboard', - icon: 'home', - }, - { - name: 'Films', - href: '/dashboard/films', - icon: 'video', - }, - { - name: 'TV Shows', - href: '/dashboard/series', - icon: 'tv', - }, - { - name: 'People', - href: '/dashboard/people', - icon: 'users', - }, - { - name: 'Books', - href: 'dashboard/books', - icon: 'book-open', - }, - { - name: 'Music', - href: '/dashboard/music', - icon: 'audio-lines', - }, - { - name: 'Games', - href: '/dashboard/games', - icon: 'gamepad', - }, - { - name: 'Changes', - href: '/dashboard/changes', - icon: 'clock', - }, - ] + { + name: 'Dashboard', + href: '/dashboard', + icon: 'home', + }, + { + name: 'Films', + href: '/dashboard/films', + icon: 'video', + }, + { + name: 'TV Shows', + href: '/dashboard/series', + icon: 'tv', + }, + { + name: 'People', + href: '/dashboard/people', + icon: 'users', + }, + { + name: 'Books', + href: 'dashboard/books', + icon: 'book-open', + }, + { + name: 'Music', + href: '/dashboard/music', + icon: 'audio-lines', + }, + { + name: 'Games', + href: '/dashboard/games', + icon: 'gamepad', + }, + { + name: 'Changes', + href: '/dashboard/changes', + icon: 'clock', + }, +] const dropdownLinks = [ { diff --git a/app/utils/env.server.ts b/app/utils/env.server.ts index 78b37d6..c343531 100644 --- a/app/utils/env.server.ts +++ b/app/utils/env.server.ts @@ -29,7 +29,7 @@ const schema = z.object({ declare global { namespace NodeJS { - interface ProcessEnv extends z.infer { } + interface ProcessEnv extends z.infer {} } } diff --git a/index.js b/index.js index fb09291..082cd60 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,5 @@ import 'dotenv/config' import * as fs from 'node:fs' -import chalk from 'chalk' -import closeWithGrace from 'close-with-grace' import sourceMapSupport from 'source-map-support' sourceMapSupport.install({ diff --git a/public/site.webmanifest b/public/site.webmanifest index 90daecb..eb39015 100644 --- a/public/site.webmanifest +++ b/public/site.webmanifest @@ -1,19 +1,19 @@ { - "name": "Metabase", - "short_name": "Metabase", - "icons": [ - { - "src": "/favicons/android-chrome-192x192.png", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "/favicons/android-chrome-512x512.png", - "sizes": "512x512", - "type": "image/png" - } - ], - "theme_color": "#ffffff", - "background_color": "#ffffff", - "display": "standalone" + "name": "Metabase", + "short_name": "Metabase", + "icons": [ + { + "src": "/favicons/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/favicons/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" }