mirror of https://github.com/TZGyn/shortener
added tailwind prettier plugin
parent
1c44bfb2a8
commit
1701dda000
@ -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,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,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,7 +1,7 @@
|
|||||||
import Root from "./separator.svelte";
|
import Root from './separator.svelte'
|
||||||
|
|
||||||
export {
|
export {
|
||||||
Root,
|
Root,
|
||||||
//
|
//
|
||||||
Root as Separator
|
Root as Separator,
|
||||||
};
|
}
|
||||||
|
|||||||
@ -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…
Reference in New Issue