diff --git a/drizzle/meta/0000_snapshot.json b/drizzle/meta/0000_snapshot.json index b664f82..97ecbed 100644 --- a/drizzle/meta/0000_snapshot.json +++ b/drizzle/meta/0000_snapshot.json @@ -116,4 +116,4 @@ "internal": { "indexes": {} } -} \ No newline at end of file +} diff --git a/drizzle/meta/_journal.json b/drizzle/meta/_journal.json index 48a1b93..43dad4a 100644 --- a/drizzle/meta/_journal.json +++ b/drizzle/meta/_journal.json @@ -10,4 +10,4 @@ "breakpoints": true } ] -} \ No newline at end of file +} diff --git a/eslint.config.js b/eslint.config.js index 134b1b2..adf029f 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,40 +1,41 @@ -import { fileURLToPath } from 'node:url'; -import { includeIgnoreFile } from '@eslint/compat'; -import js from '@eslint/js'; -import svelte from 'eslint-plugin-svelte'; -import { defineConfig } from 'eslint/config'; -import globals from 'globals'; -import ts from 'typescript-eslint'; -import svelteConfig from './svelte.config.js'; +import { includeIgnoreFile } from "@eslint/compat"; +import js from "@eslint/js"; +import svelte from "eslint-plugin-svelte"; +import { defineConfig } from "eslint/config"; +import globals from "globals"; +import { fileURLToPath } from "node:url"; +import ts from "typescript-eslint"; +import svelteConfig from "./svelte.config.js"; -const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url)); +const gitignorePath = fileURLToPath(new URL("./.gitignore", import.meta.url)); export default defineConfig( - includeIgnoreFile(gitignorePath), - js.configs.recommended, - ...ts.configs.recommended, - ...svelte.configs.recommended, - { - languageOptions: { - globals: { ...globals.browser, ...globals.node } - }, - rules: { // typescript-eslint strongly recommend that you do not use the no-undef lint rule on TypeScript projects. - // see: https://typescript-eslint.io/troubleshooting/faqs/eslint/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors - "no-undef": 'off' } - }, - { - files: [ - '**/*.svelte', - '**/*.svelte.ts', - '**/*.svelte.js' - ], - languageOptions: { - parserOptions: { - projectService: true, - extraFileExtensions: ['.svelte'], - parser: ts.parser, - svelteConfig - } - } - } + includeIgnoreFile(gitignorePath), + js.configs.recommended, + ...ts.configs.recommended, + ...svelte.configs.recommended, + { + languageOptions: { + globals: { ...globals.browser, ...globals.node }, + }, + rules: { // typescript-eslint strongly recommend that you do not use the no-undef lint rule on TypeScript projects. + // see: https://typescript-eslint.io/troubleshooting/faqs/eslint/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors + "no-undef": "off", + }, + }, + { + files: [ + "**/*.svelte", + "**/*.svelte.ts", + "**/*.svelte.js", + ], + languageOptions: { + parserOptions: { + projectService: true, + extraFileExtensions: [".svelte"], + parser: ts.parser, + svelteConfig, + }, + }, + }, ); diff --git a/package.json b/package.json index ddb0316..3db8119 100644 --- a/package.json +++ b/package.json @@ -1,38 +1,38 @@ { - "name": "tiqued", - "private": true, - "version": "0.0.1", - "type": "module", - "scripts": { - "dev": "vite dev", - "build": "vite build", - "preview": "vite preview", - "prepare": "svelte-kit sync || echo ''", - "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", - "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", - "lint": "eslint ." - }, - "devDependencies": { - "@eslint/compat": "^1.2.5", - "@eslint/js": "^9.22.0", - "@sveltejs/adapter-auto": "^6.0.0", - "@sveltejs/kit": "^2.22.0", - "@sveltejs/vite-plugin-svelte": "^6.0.0", - "@types/node": "^22", - "bun-types": "^1.2.22", - "drizzle-kit": "^0.31.4", - "eslint": "^9.22.0", - "eslint-plugin-svelte": "^3.0.0", - "globals": "^16.0.0", - "svelte": "^5.0.0", - "svelte-check": "^4.0.0", - "typescript": "^5.0.0", - "typescript-eslint": "^8.20.0", - "vite": "^7.0.4", - "vite-plugin-devtools-json": "^1.0.0" - }, - "dependencies": { - "better-sqlite3": "^12.4.1", - "drizzle-orm": "^0.44.5" - } + "name": "tiqued", + "private": true, + "version": "0.0.1", + "type": "module", + "scripts": { + "dev": "vite dev", + "build": "vite build", + "preview": "vite preview", + "prepare": "svelte-kit sync || echo ''", + "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", + "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", + "lint": "eslint ." + }, + "devDependencies": { + "@eslint/compat": "^1.2.5", + "@eslint/js": "^9.22.0", + "@sveltejs/adapter-auto": "^6.0.0", + "@sveltejs/kit": "^2.22.0", + "@sveltejs/vite-plugin-svelte": "^6.0.0", + "@types/node": "^22", + "bun-types": "^1.2.22", + "drizzle-kit": "^0.31.4", + "eslint": "^9.22.0", + "eslint-plugin-svelte": "^3.0.0", + "globals": "^16.0.0", + "svelte": "^5.0.0", + "svelte-check": "^4.0.0", + "typescript": "^5.0.0", + "typescript-eslint": "^8.20.0", + "vite": "^7.0.4", + "vite-plugin-devtools-json": "^1.0.0" + }, + "dependencies": { + "better-sqlite3": "^12.4.1", + "drizzle-orm": "^0.44.5" + } } diff --git a/src/app.d.ts b/src/app.d.ts index da08e6d..520c421 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -1,13 +1,13 @@ // See https://svelte.dev/docs/kit/types#app.d.ts // for information about these interfaces declare global { - namespace App { - // interface Error {} - // interface Locals {} - // interface PageData {} - // interface PageState {} - // interface Platform {} - } + namespace App { + // interface Error {} + // interface Locals {} + // interface PageData {} + // interface PageState {} + // interface Platform {} + } } export {}; diff --git a/src/app.html b/src/app.html index f273cc5..179941a 100644 --- a/src/app.html +++ b/src/app.html @@ -1,11 +1,11 @@ - + - - - - %sveltekit.head% - - -
%sveltekit.body%
- + + + + %sveltekit.head% + + +
%sveltekit.body%
+ diff --git a/src/lib/assets/favicon.svg b/src/lib/assets/favicon.svg index cc5dc66..75846c2 100644 --- a/src/lib/assets/favicon.svg +++ b/src/lib/assets/favicon.svg @@ -1 +1,14 @@ -svelte-logo \ No newline at end of file + + svelte-logo + diff --git a/src/lib/server/db/schema/recordTypes.ts b/src/lib/server/db/schema/recordTypes.ts index 1b97bb9..e9f656b 100644 --- a/src/lib/server/db/schema/recordTypes.ts +++ b/src/lib/server/db/schema/recordTypes.ts @@ -1,12 +1,12 @@ import { relations } from "drizzle-orm"; -import { sqliteTable, integer, text } from "drizzle-orm/sqlite-core"; +import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core"; import { records } from "./records"; -export const recordTypes = sqliteTable('record_types', { - id: integer('id').primaryKey({autoIncrement: true}), - type: text('type') -}) +export const recordTypes = sqliteTable("record_types", { + id: integer("id").primaryKey({ autoIncrement: true }), + type: text("type"), +}); -export const recordTypesRelations = relations(recordTypes, ({many}) => ({ - records: many(records) -})) +export const recordTypesRelations = relations(recordTypes, ({ many }) => ({ + records: many(records), +})); diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 20f8d04..5a787e3 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,11 +1,11 @@ - + {@render children?.()} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index cc88df0..3d70440 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,2 +1,5 @@

Welcome to SvelteKit

-

Visit svelte.dev/docs/kit to read the documentation

+

+ Visit svelte.dev/docs/kit to read + the documentation +

diff --git a/svelte.config.js b/svelte.config.js index 4cdf6f4..ff62036 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,15 +1,16 @@ -import adapter from '@sveltejs/adapter-auto'; -import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; +import adapter from "@sveltejs/adapter-auto"; +import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; /** @type {import('@sveltejs/kit').Config} */ const config = { - // Consult https://svelte.dev/docs/kit/integrations - // for more information about preprocessors - preprocess: vitePreprocess(), - kit: { // adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list. - // If your environment is not supported, or you settled on a specific environment, switch out the adapter. - // See https://svelte.dev/docs/kit/adapters for more information about adapters. - adapter: adapter() } + // Consult https://svelte.dev/docs/kit/integrations + // for more information about preprocessors + preprocess: vitePreprocess(), + kit: { // adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list. + // If your environment is not supported, or you settled on a specific environment, switch out the adapter. + // See https://svelte.dev/docs/kit/adapters for more information about adapters. + adapter: adapter(), + }, }; export default config; diff --git a/tsconfig.json b/tsconfig.json index a5567ee..e3898cb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,19 +1,19 @@ { - "extends": "./.svelte-kit/tsconfig.json", - "compilerOptions": { - "allowJs": true, - "checkJs": true, - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "resolveJsonModule": true, - "skipLibCheck": true, - "sourceMap": true, - "strict": true, - "moduleResolution": "bundler" - } - // Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias - // except $lib which is handled by https://svelte.dev/docs/kit/configuration#files - // - // To make changes to top-level options such as include and exclude, we recommend extending - // the generated config; see https://svelte.dev/docs/kit/configuration#typescript + "extends": "./.svelte-kit/tsconfig.json", + "compilerOptions": { + "allowJs": true, + "checkJs": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "resolveJsonModule": true, + "skipLibCheck": true, + "sourceMap": true, + "strict": true, + "moduleResolution": "bundler" + } + // Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias + // except $lib which is handled by https://svelte.dev/docs/kit/configuration#files + // + // To make changes to top-level options such as include and exclude, we recommend extending + // the generated config; see https://svelte.dev/docs/kit/configuration#typescript } diff --git a/vite.config.ts b/vite.config.ts index fdfb24f..244bf61 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,12 +1,12 @@ -import devtoolsJson from 'vite-plugin-devtools-json'; -import { sveltekit } from '@sveltejs/kit/vite'; -import { defineConfig } from 'vite'; +import { sveltekit } from "@sveltejs/kit/vite"; +import { defineConfig } from "vite"; +import devtoolsJson from "vite-plugin-devtools-json"; export default defineConfig({ - plugins: [sveltekit(), devtoolsJson()], - build: { - rollupOptions: { - external: ['bun:sqlite'], // Add bun:sqlite to externals - }, - }, + plugins: [sveltekit(), devtoolsJson()], + build: { + rollupOptions: { + external: ["bun:sqlite"], // Add bun:sqlite to externals + }, + }, });