1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-16 17:35:17 +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

@@ -1,61 +1,61 @@
{ {
"name": "pocket-id-frontend", "name": "pocket-id-frontend",
"version": "1.3.1", "version": "1.3.1",
"private": true, "private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite dev --port 3000", "dev": "vite dev --port 3000",
"build": "vite build", "build": "vite build",
"preview": "vite preview --port 3000", "preview": "vite preview --port 3000",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .", "lint": "prettier --check . && eslint .",
"format": "prettier --write ." "format": "prettier --write ."
}, },
"dependencies": { "dependencies": {
"@lucide/svelte": "^0.511.0", "@lucide/svelte": "^0.511.0",
"@simplewebauthn/browser": "^13.1.0", "@simplewebauthn/browser": "^13.1.0",
"@tailwindcss/vite": "^4.1.7", "@tailwindcss/vite": "^4.1.7",
"axios": "^1.8.2", "axios": "^1.8.2",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"crypto": "^1.0.1", "crypto": "^1.0.1",
"jose": "^5.9.6", "jose": "^5.9.6",
"qrcode": "^1.5.4", "qrcode": "^1.5.4",
"sveltekit-superforms": "^2.23.1", "sveltekit-superforms": "^2.23.1",
"tailwind-merge": "^3.3.0", "tailwind-merge": "^3.3.0",
"zod": "^3.25.55" "zod": "^3.25.55"
}, },
"devDependencies": { "devDependencies": {
"@inlang/paraglide-js": "^2.0.13", "@inlang/paraglide-js": "^2.0.13",
"@inlang/plugin-m-function-matcher": "^2.0.10", "@inlang/plugin-m-function-matcher": "^2.0.10",
"@inlang/plugin-message-format": "^4.0.0", "@inlang/plugin-message-format": "^4.0.0",
"@internationalized/date": "^3.7.0", "@internationalized/date": "^3.7.0",
"@playwright/test": "^1.50.0", "@playwright/test": "^1.50.0",
"@sveltejs/adapter-static": "^3.0.8", "@sveltejs/adapter-static": "^3.0.8",
"@sveltejs/kit": "^2.20.7", "@sveltejs/kit": "^2.20.7",
"@sveltejs/vite-plugin-svelte": "^5.0.3", "@sveltejs/vite-plugin-svelte": "^5.0.3",
"@types/eslint": "^9.6.1", "@types/eslint": "^9.6.1",
"@types/node": "^22.10.10", "@types/node": "^22.10.10",
"@types/qrcode": "^1.5.5", "@types/qrcode": "^1.5.5",
"bits-ui": "^1.5.3", "bits-ui": "^1.5.3",
"eslint": "^9.19.0", "eslint": "^9.19.0",
"eslint-config-prettier": "^10.0.1", "eslint-config-prettier": "^10.0.1",
"eslint-plugin-svelte": "^2.46.1", "eslint-plugin-svelte": "^2.46.1",
"formsnap": "^2.0.1", "formsnap": "^2.0.1",
"globals": "^15.14.0", "globals": "^15.14.0",
"mode-watcher": "^1.0.7", "mode-watcher": "^1.0.7",
"prettier": "^3.4.2", "prettier": "^3.4.2",
"prettier-plugin-svelte": "^3.3.3", "prettier-plugin-svelte": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.11", "prettier-plugin-tailwindcss": "^0.6.11",
"svelte": "^5.31.1", "svelte": "^5.31.1",
"svelte-check": "^4.1.4", "svelte-check": "^4.1.4",
"svelte-sonner": "^1.0.1", "svelte-sonner": "^1.0.1",
"tailwind-variants": "^1.0.0", "tailwind-variants": "^1.0.0",
"tailwindcss": "^4.1.7", "tailwindcss": "^4.1.7",
"tslib": "^2.8.1", "tslib": "^2.8.1",
"tw-animate-css": "^1.3.0", "tw-animate-css": "^1.3.0",
"typescript": "^5.7.3", "typescript": "^5.7.3",
"typescript-eslint": "^8.21.0", "typescript-eslint": "^8.21.0",
"vite": "^6.3.4" "vite": "^6.3.4"
} }
} }

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())
}); });