1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-16 14:43:39 +00:00

refactor: run formatter

This commit is contained in:
Elias Schneider
2025-06-10 14:43:56 +02:00
parent 698bc3a35a
commit fd3c76ffa3
4 changed files with 64 additions and 66 deletions

View File

@@ -3,12 +3,13 @@ package utils
import ( import (
"errors" "errors"
"fmt" "fmt"
"github.com/google/uuid"
"github.com/pocket-id/pocket-id/backend/resources"
"io" "io"
"mime/multipart" "mime/multipart"
"os" "os"
"path/filepath" "path/filepath"
"github.com/google/uuid"
"github.com/pocket-id/pocket-id/backend/resources"
) )
func GetFileExtension(filename string) string { func GetFileExtension(filename string) string {

View File

@@ -68,7 +68,7 @@
<div class="w-full" {...restProps}> <div class="w-full" {...restProps}>
<Popover.Root bind:open> <Popover.Root bind:open>
<Popover.Trigger {id} class="w-full" > <Popover.Trigger {id} class="w-full">
{#snippet child({ props })} {#snippet child({ props })}
<Button <Button
{...props} {...props}

View File

@@ -26,10 +26,7 @@
}; };
const formSchema = z.object({ const formSchema = z.object({
name: z name: z.string().min(3).max(50),
.string()
.min(3)
.max(50),
description: z.string().default(''), description: z.string().default(''),
expiresAt: z.date().min(new Date(), m.expiration_date_must_be_in_the_future()) expiresAt: z.date().min(new Date(), m.expiration_date_must_be_in_the_future())
}); });