Skip to content

Commit

Permalink
chore(lint): formatting and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisblackburn committed Oct 20, 2024
1 parent 573d620 commit 17efc4e
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 80 deletions.
36 changes: 18 additions & 18 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion app/routes/_home+/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function LogoCloud() {
<Carousel
opts={{
align: 'center',
watchDrag: () => { }, // Disable drag
watchDrag: () => {}, // Disable drag
loop: true,
}}
plugins={[Autoscroll({ startDelay: 0 })]}
Expand Down
82 changes: 41 additions & 41 deletions app/routes/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
{
Expand Down
2 changes: 1 addition & 1 deletion app/utils/env.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const schema = z.object({

declare global {
namespace NodeJS {
interface ProcessEnv extends z.infer<typeof schema> { }
interface ProcessEnv extends z.infer<typeof schema> {}
}
}

Expand Down
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -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({
Expand Down
34 changes: 17 additions & 17 deletions public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 17efc4e

Please sign in to comment.