added tailwind prettier plugin

pull/3/head
TZGyn 2 years ago
parent 1c44bfb2a8
commit 1701dda000
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

@ -4,7 +4,6 @@
"semi": false, "semi": false,
"trailingComma": "all", "trailingComma": "all",
"printWidth": 80, "printWidth": 80,
"plugins": ["prettier-plugin-svelte"], "plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
"pluginSearchDirs": ["."],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
} }

Binary file not shown.

@ -1,13 +1,13 @@
{ {
"$schema": "https://shadcn-svelte.com/schema.json", "$schema": "https://shadcn-svelte.com/schema.json",
"style": "default", "style": "default",
"tailwind": { "tailwind": {
"config": "tailwind.config.js", "config": "tailwind.config.js",
"css": "src/app.postcss", "css": "src/app.postcss",
"baseColor": "zinc" "baseColor": "zinc"
}, },
"aliases": { "aliases": {
"components": "$lib/components", "components": "$lib/components",
"utils": "$lib/utils" "utils": "$lib/utils"
} }
} }

@ -1,5 +1,5 @@
// drizzle.config.ts // drizzle.config.ts
import type { Config } from 'drizzle-kit'; import type { Config } from 'drizzle-kit'
export default { export default {
schema: './src/lib/db/schema.ts', schema: './src/lib/db/schema.ts',
@ -12,4 +12,4 @@ export default {
port: 5432, port: 5432,
database: 'link-shortener', database: 'link-shortener',
}, },
} satisfies Config; } satisfies Config

@ -1,175 +1,173 @@
{ {
"id": "9d44b46b-3e93-4782-8750-dbf39513bb0c", "id": "9d44b46b-3e93-4782-8750-dbf39513bb0c",
"prevId": "00000000-0000-0000-0000-000000000000", "prevId": "00000000-0000-0000-0000-000000000000",
"version": "5", "version": "5",
"dialect": "pg", "dialect": "pg",
"tables": { "tables": {
"session": { "session": {
"name": "session", "name": "session",
"schema": "", "schema": "",
"columns": { "columns": {
"token": { "token": {
"name": "token", "name": "token",
"type": "varchar(255)", "type": "varchar(255)",
"primaryKey": false, "primaryKey": false,
"notNull": true "notNull": true
}, },
"user_id": { "user_id": {
"name": "user_id", "name": "user_id",
"type": "integer", "type": "integer",
"primaryKey": false, "primaryKey": false,
"notNull": true "notNull": true
}, },
"expires": { "expires": {
"name": "expires", "name": "expires",
"type": "timestamp", "type": "timestamp",
"primaryKey": false, "primaryKey": false,
"notNull": true "notNull": true
} }
}, },
"indexes": {}, "indexes": {},
"foreignKeys": {}, "foreignKeys": {},
"compositePrimaryKeys": {}, "compositePrimaryKeys": {},
"uniqueConstraints": {} "uniqueConstraints": {}
}, },
"shortener": { "shortener": {
"name": "shortener", "name": "shortener",
"schema": "", "schema": "",
"columns": { "columns": {
"id": { "id": {
"name": "id", "name": "id",
"type": "serial", "type": "serial",
"primaryKey": true, "primaryKey": true,
"notNull": true "notNull": true
}, },
"link": { "link": {
"name": "link", "name": "link",
"type": "varchar(255)", "type": "varchar(255)",
"primaryKey": false, "primaryKey": false,
"notNull": true "notNull": true
}, },
"code": { "code": {
"name": "code", "name": "code",
"type": "varchar(255)", "type": "varchar(255)",
"primaryKey": false, "primaryKey": false,
"notNull": true "notNull": true
}, },
"created_at": { "created_at": {
"name": "created_at", "name": "created_at",
"type": "timestamp", "type": "timestamp",
"primaryKey": false, "primaryKey": false,
"notNull": true, "notNull": true,
"default": "now()" "default": "now()"
} }
}, },
"indexes": {}, "indexes": {},
"foreignKeys": {}, "foreignKeys": {},
"compositePrimaryKeys": {}, "compositePrimaryKeys": {},
"uniqueConstraints": {} "uniqueConstraints": {}
}, },
"user": { "user": {
"name": "user", "name": "user",
"schema": "", "schema": "",
"columns": { "columns": {
"id": { "id": {
"name": "id", "name": "id",
"type": "serial", "type": "serial",
"primaryKey": true, "primaryKey": true,
"notNull": true "notNull": true
}, },
"uuid": { "uuid": {
"name": "uuid", "name": "uuid",
"type": "uuid", "type": "uuid",
"primaryKey": false, "primaryKey": false,
"notNull": false, "notNull": false,
"default": "gen_random_uuid()" "default": "gen_random_uuid()"
}, },
"email": { "email": {
"name": "email", "name": "email",
"type": "varchar(255)", "type": "varchar(255)",
"primaryKey": false, "primaryKey": false,
"notNull": true "notNull": true
}, },
"username": { "username": {
"name": "username", "name": "username",
"type": "varchar(255)", "type": "varchar(255)",
"primaryKey": false, "primaryKey": false,
"notNull": false "notNull": false
}, },
"password": { "password": {
"name": "password", "name": "password",
"type": "varchar(255)", "type": "varchar(255)",
"primaryKey": false, "primaryKey": false,
"notNull": true "notNull": true
}, },
"created_at": { "created_at": {
"name": "created_at", "name": "created_at",
"type": "timestamp", "type": "timestamp",
"primaryKey": false, "primaryKey": false,
"notNull": true, "notNull": true,
"default": "now()" "default": "now()"
} }
}, },
"indexes": {}, "indexes": {},
"foreignKeys": {}, "foreignKeys": {},
"compositePrimaryKeys": {}, "compositePrimaryKeys": {},
"uniqueConstraints": { "uniqueConstraints": {
"user_email_unique": { "user_email_unique": {
"name": "user_email_unique", "name": "user_email_unique",
"nullsNotDistinct": false, "nullsNotDistinct": false,
"columns": [ "columns": ["email"]
"email" }
] }
} },
} "visitor": {
}, "name": "visitor",
"visitor": { "schema": "",
"name": "visitor", "columns": {
"schema": "", "id": {
"columns": { "name": "id",
"id": { "type": "serial",
"name": "id", "primaryKey": true,
"type": "serial", "notNull": true
"primaryKey": true, },
"notNull": true "shortener_id": {
}, "name": "shortener_id",
"shortener_id": { "type": "integer",
"name": "shortener_id", "primaryKey": false,
"type": "integer", "notNull": true
"primaryKey": false, },
"notNull": true "created_at": {
}, "name": "created_at",
"created_at": { "type": "timestamp",
"name": "created_at", "primaryKey": false,
"type": "timestamp", "notNull": true,
"primaryKey": false, "default": "now()"
"notNull": true, },
"default": "now()" "country_code": {
}, "name": "country_code",
"country_code": { "type": "varchar(255)",
"name": "country_code", "primaryKey": false,
"type": "varchar(255)", "notNull": true
"primaryKey": false, },
"notNull": true "country": {
}, "name": "country",
"country": { "type": "varchar(255)",
"name": "country", "primaryKey": false,
"type": "varchar(255)", "notNull": true
"primaryKey": false, }
"notNull": true },
} "indexes": {},
}, "foreignKeys": {},
"indexes": {}, "compositePrimaryKeys": {},
"foreignKeys": {}, "uniqueConstraints": {}
"compositePrimaryKeys": {}, }
"uniqueConstraints": {} },
} "enums": {},
}, "schemas": {},
"enums": {}, "_meta": {
"schemas": {}, "schemas": {},
"_meta": { "tables": {},
"schemas": {}, "columns": {}
"tables": {}, }
"columns": {} }
}
}

@ -1,13 +1,13 @@
{ {
"version": "5", "version": "5",
"dialect": "pg", "dialect": "pg",
"entries": [ "entries": [
{ {
"idx": 0, "idx": 0,
"version": "5", "version": "5",
"when": 1699851315914, "when": 1699851315914,
"tag": "0000_nebulous_energizer", "tag": "0000_nebulous_energizer",
"breakpoints": true "breakpoints": true
} }
] ]
} }

@ -1,46 +1,47 @@
{ {
"name": "link-shortener-svelte", "name": "link-shortener-svelte",
"version": "0.0.1", "version": "0.0.1",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite dev", "dev": "vite dev",
"build": "vite build", "build": "vite build",
"preview": "vite preview", "preview": "vite preview",
"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 --plugin-search-dir . --check .", "lint": "prettier --plugin-search-dir . --check .",
"format": "prettier --plugin-search-dir . --write ." "format": "prettier --write ."
}, },
"devDependencies": { "devDependencies": {
"@sveltejs/kit": "^1.20.4", "@sveltejs/kit": "^1.20.4",
"autoprefixer": "^10.4.14", "autoprefixer": "^10.4.14",
"bun-types": "^1.0.11", "bun-types": "^1.0.11",
"drizzle-kit": "^0.20.1", "drizzle-kit": "^0.20.1",
"postcss": "^8.4.24", "postcss": "^8.4.24",
"postcss-load-config": "^4.0.1", "postcss-load-config": "^4.0.1",
"prettier": "^2.8.0", "prettier": "^3.1.0",
"prettier-plugin-svelte": "^2.10.1", "prettier-plugin-svelte": "^3.1.0",
"svelte": "^4.0.5", "prettier-plugin-tailwindcss": "^0.5.7",
"svelte-adapter-bun": "^0.5.1", "svelte": "^4.0.5",
"svelte-check": "^3.4.3", "svelte-adapter-bun": "^0.5.1",
"tailwindcss": "^3.3.2", "svelte-check": "^3.4.3",
"tslib": "^2.4.1", "tailwindcss": "^3.3.2",
"typescript": "^5.0.0", "tslib": "^2.4.1",
"vite": "^4.4.2" "typescript": "^5.0.0",
}, "vite": "^4.4.2"
"type": "module", },
"dependencies": { "type": "module",
"bits-ui": "^0.9.4", "dependencies": {
"clsx": "^2.0.0", "bits-ui": "^0.9.4",
"drizzle-orm": "^0.29.0", "clsx": "^2.0.0",
"formsnap": "^0.4.1", "drizzle-orm": "^0.29.0",
"lucide-svelte": "^0.292.0", "formsnap": "^0.4.1",
"mode-watcher": "^0.0.7", "lucide-svelte": "^0.292.0",
"nanoid": "^5.0.3", "mode-watcher": "^0.0.7",
"postgres": "^3.4.3", "nanoid": "^5.0.3",
"sveltekit-superforms": "^1.10.1", "postgres": "^3.4.3",
"tailwind-merge": "^2.0.0", "sveltekit-superforms": "^1.10.1",
"tailwind-variants": "^0.1.18", "tailwind-merge": "^2.0.0",
"zod": "^3.22.4" "tailwind-variants": "^0.1.18",
} "zod": "^3.22.4"
}
} }

@ -1,13 +1,13 @@
const tailwindcss = require('tailwindcss'); const tailwindcss = require('tailwindcss')
const autoprefixer = require('autoprefixer'); const autoprefixer = require('autoprefixer')
const config = { const config = {
plugins: [ plugins: [
//Some plugins, like tailwindcss/nesting, need to run before Tailwind, //Some plugins, like tailwindcss/nesting, need to run before Tailwind,
tailwindcss(), tailwindcss(),
//But others, like autoprefixer, need to run after, //But others, like autoprefixer, need to run after,
autoprefixer autoprefixer,
] ],
}; }
module.exports = config; module.exports = config

@ -1,4 +1,4 @@
<!DOCTYPE html> <!doctype html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />

@ -9,9 +9,9 @@
import { goto } from '$app/navigation' import { goto } from '$app/navigation'
</script> </script>
<div class="min-w-[350px] p-4 border-r h-full flex flex-col justify-between"> <div class="flex h-full min-w-[350px] flex-col justify-between border-r p-4">
<div> <div>
<div class="flex justify-between pb-16 items-center"> <div class="flex items-center justify-between pb-16">
<div class="text-xl font-bold">Shortener</div> <div class="text-xl font-bold">Shortener</div>
<ThemeToggle /> <ThemeToggle />
</div> </div>
@ -19,11 +19,11 @@
<div class="pb-4">Projects</div> <div class="pb-4">Projects</div>
<Separator /> <Separator />
</div> </div>
<div class="flex justify-between items-center"> <div class="flex items-center justify-between">
<DropdownMenu.Root> <DropdownMenu.Root>
<DropdownMenu.Trigger> <DropdownMenu.Trigger>
<Avatar.Root> <Avatar.Root>
<Avatar.Image src="github.com/shadcn.png" alt="@shadcn" /> <Avatar.Image src="" alt="@shadcn" />
<Avatar.Fallback><User /></Avatar.Fallback> <Avatar.Fallback><User /></Avatar.Fallback>
</Avatar.Root> </Avatar.Root>
</DropdownMenu.Trigger> </DropdownMenu.Trigger>

@ -1,17 +1,17 @@
<script lang="ts"> <script lang="ts">
import { Avatar as AvatarPrimitive } from "bits-ui"; import { Avatar as AvatarPrimitive } from 'bits-ui'
import { cn } from "$lib/utils"; import { cn } from '$lib/utils'
type $$Props = AvatarPrimitive.FallbackProps; type $$Props = AvatarPrimitive.FallbackProps
let className: $$Props["class"] = undefined; let className: $$Props['class'] = undefined
export { className as class }; export { className as class }
</script> </script>
<AvatarPrimitive.Fallback <AvatarPrimitive.Fallback
class={cn( class={cn(
"flex h-full w-full items-center justify-center rounded-full bg-muted", 'flex h-full w-full items-center justify-center rounded-full bg-muted',
className className,
)} )}
{...$$restProps} {...$$restProps}
> >

@ -1,18 +1,18 @@
<script lang="ts"> <script lang="ts">
import { Avatar as AvatarPrimitive } from "bits-ui"; import { Avatar as AvatarPrimitive } from 'bits-ui'
import { cn } from "$lib/utils"; import { cn } from '$lib/utils'
type $$Props = AvatarPrimitive.ImageProps; type $$Props = AvatarPrimitive.ImageProps
let className: $$Props["class"] = undefined; let className: $$Props['class'] = undefined
export let src: $$Props["src"] = undefined; export let src: $$Props['src'] = undefined
export let alt: $$Props["alt"] = undefined; export let alt: $$Props['alt'] = undefined
export { className as class }; export { className as class }
</script> </script>
<AvatarPrimitive.Image <AvatarPrimitive.Image
{src} {src}
{alt} {alt}
class={cn("aspect-square h-full w-full", className)} class={cn('aspect-square h-full w-full', className)}
{...$$restProps} {...$$restProps}
/> />

@ -1,19 +1,19 @@
<script lang="ts"> <script lang="ts">
import { Avatar as AvatarPrimitive } from "bits-ui"; import { Avatar as AvatarPrimitive } from 'bits-ui'
import { cn } from "$lib/utils"; import { cn } from '$lib/utils'
type $$Props = AvatarPrimitive.Props; type $$Props = AvatarPrimitive.Props
let className: $$Props["class"] = undefined; let className: $$Props['class'] = undefined
export let delayMs: $$Props["delayMs"] = undefined; export let delayMs: $$Props['delayMs'] = undefined
export { className as class }; export { className as class }
</script> </script>
<AvatarPrimitive.Root <AvatarPrimitive.Root
{delayMs} {delayMs}
class={cn( class={cn(
"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", 'relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full',
className className,
)} )}
{...$$restProps} {...$$restProps}
> >

@ -1,6 +1,6 @@
import Root from "./avatar.svelte"; import Root from './avatar.svelte'
import Image from "./avatar-image.svelte"; import Image from './avatar-image.svelte'
import Fallback from "./avatar-fallback.svelte"; import Fallback from './avatar-fallback.svelte'
export { export {
Root, Root,
@ -9,5 +9,5 @@ export {
// //
Root as Avatar, Root as Avatar,
Image as AvatarImage, Image as AvatarImage,
Fallback as AvatarFallback Fallback as AvatarFallback,
}; }

@ -13,7 +13,7 @@
<CheckboxPrimitive.Root <CheckboxPrimitive.Root
class={cn( class={cn(
'box-content peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50', 'peer box-content h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[disabled=true]:cursor-not-allowed data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[disabled=true]:opacity-50',
className, className,
)} )}
bind:checked bind:checked
@ -21,7 +21,7 @@
on:click on:click
> >
<CheckboxPrimitive.Indicator <CheckboxPrimitive.Indicator
class={cn('flex items-center justify-center text-current h-4 w-4')} class={cn('flex h-4 w-4 items-center justify-center text-current')}
let:isChecked let:isChecked
let:isIndeterminate let:isIndeterminate
> >

@ -14,7 +14,7 @@
<DropdownMenuPrimitive.CheckboxItem <DropdownMenuPrimitive.CheckboxItem
bind:checked bind:checked
class={cn( class={cn(
'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:opacity-50',
className, className,
)} )}
{...$$restProps} {...$$restProps}

@ -14,7 +14,7 @@
<DropdownMenuPrimitive.Item <DropdownMenuPrimitive.Item
class={cn( class={cn(
'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', 'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:opacity-50',
inset && 'pl-8', inset && 'pl-8',
className, className,
)} )}

@ -13,7 +13,7 @@
<DropdownMenuPrimitive.RadioItem <DropdownMenuPrimitive.RadioItem
class={cn( class={cn(
'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:opacity-50',
className, className,
)} )}
{value} {value}

@ -13,7 +13,7 @@
<input <input
class={cn( class={cn(
'flex h-10 w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-foreground file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', 'flex h-10 w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
className, className,
)} )}
bind:value bind:value

@ -18,7 +18,7 @@
{disabled} {disabled}
{label} {label}
class={cn( class={cn(
'relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', 'relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:opacity-50',
className, className,
)} )}
{...$$restProps} {...$$restProps}

@ -1,7 +1,7 @@
import Root from "./separator.svelte"; import Root from './separator.svelte'
export { export {
Root, Root,
// //
Root as Separator Root as Separator,
}; }

@ -1,20 +1,20 @@
<script lang="ts"> <script lang="ts">
import { Separator as SeparatorPrimitive } from "bits-ui"; import { Separator as SeparatorPrimitive } from 'bits-ui'
import { cn } from "$lib/utils"; import { cn } from '$lib/utils'
type $$Props = SeparatorPrimitive.Props; type $$Props = SeparatorPrimitive.Props
let className: $$Props["class"] = undefined; let className: $$Props['class'] = undefined
export let orientation: $$Props["orientation"] = "horizontal"; export let orientation: $$Props['orientation'] = 'horizontal'
export let decorative: $$Props["decorative"] = undefined; export let decorative: $$Props['decorative'] = undefined
export { className as class }; export { className as class }
</script> </script>
<SeparatorPrimitive.Root <SeparatorPrimitive.Root
class={cn( class={cn(
"shrink-0 bg-border", 'shrink-0 bg-border',
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", orientation === 'horizontal' ? 'h-[1px] w-full' : 'h-full w-[1px]',
className className,
)} )}
{orientation} {orientation}
{decorative} {decorative}

@ -2,7 +2,7 @@
import Sidebar from '$lib/components/sidebar.svelte' import Sidebar from '$lib/components/sidebar.svelte'
</script> </script>
<div class="w-full flex h-screen"> <div class="flex h-screen w-full">
<Sidebar /> <Sidebar />
<div class="w-full p-4"> <div class="w-full p-4">
<slot /> <slot />

@ -3,9 +3,9 @@
import Button from '$lib/components/ui/button/button.svelte' import Button from '$lib/components/ui/button/button.svelte'
</script> </script>
<div class="w-full h-full flex justify-center items-center"> <div class="flex h-full w-full items-center justify-center">
<div class="flex flex-col gap-12 items-center"> <div class="flex flex-col items-center gap-12">
<div class="flex flex-col gap-4 items-center"> <div class="flex flex-col items-center gap-4">
<div class="text-4xl font-bold">404</div> <div class="text-4xl font-bold">404</div>
<div class="text-4xl font-bold">Page Not Found</div> <div class="text-4xl font-bold">Page Not Found</div>
</div> </div>

@ -16,7 +16,7 @@
class="relative hidden h-full flex-col bg-primary-foreground p-10 text-white dark:border-r lg:flex" class="relative hidden h-full flex-col bg-primary-foreground p-10 text-white dark:border-r lg:flex"
> >
<div <div
class="relative z-20 text-primary flex items-center text-lg font-medium" class="relative z-20 flex items-center text-lg font-medium text-primary"
> >
Shortener Shortener
</div> </div>

@ -13,10 +13,10 @@
<ThemeToggle /> <ThemeToggle />
</div> </div>
<div <div
class="hidden relative h-full flex-col bg-primary-foreground p-10 text-white dark:border-r lg:flex" class="relative hidden h-full flex-col bg-primary-foreground p-10 text-white dark:border-r lg:flex"
> >
<div <div
class="relative z-20 text-primary flex items-center text-lg font-medium" class="relative z-20 flex items-center text-lg font-medium text-primary"
> >
Shortener Shortener
</div> </div>

@ -1,5 +1,5 @@
import adapter from 'svelte-adapter-bun'; import adapter from 'svelte-adapter-bun'
import { vitePreprocess } from '@sveltejs/kit/vite'; import { vitePreprocess } from '@sveltejs/kit/vite'
/** @type {import('@sveltejs/kit').Config} */ /** @type {import('@sveltejs/kit').Config} */
const config = { const config = {
@ -11,8 +11,8 @@ const config = {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list. // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter. // If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters. // See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter() adapter: adapter(),
} },
}; }
export default config; export default config

@ -1,4 +1,4 @@
import { fontFamily } from 'tailwindcss/defaultTheme'; import { fontFamily } from 'tailwindcss/defaultTheme'
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
const config = { const config = {
@ -59,6 +59,6 @@ const config = {
}, },
}, },
}, },
}; }
export default config; export default config

@ -1,6 +1,6 @@
import { sveltekit } from '@sveltejs/kit/vite'; import { sveltekit } from '@sveltejs/kit/vite'
import { defineConfig } from 'vite'; import { defineConfig } from 'vite'
export default defineConfig({ export default defineConfig({
plugins: [sveltekit()] plugins: [sveltekit()],
}); })

Loading…
Cancel
Save