Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.definitionLinkOpensInPeek": false
}
9 changes: 9 additions & 0 deletions frontend/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Package Managers
package-lock.json
pnpm-lock.yaml
yarn.lock
bun.lock
bun.lockb

# Miscellaneous
/static/
26 changes: 13 additions & 13 deletions frontend/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"useTabs": true,
"singleQuote": false,
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"overrides": [
{
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
]
"useTabs": true,
"singleQuote": false,
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"overrides": [
{
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
]
}
5 changes: 1 addition & 4 deletions frontend/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"recommendations": [
"svelte.svelte-vscode",
"bradlc.vscode-tailwindcss"
]
"recommendations": ["svelte.svelte-vscode", "bradlc.vscode-tailwindcss", "esbenp.prettier-vscode"]
}
9 changes: 9 additions & 0 deletions frontend/bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"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",
"stripe-dev": "stripe listen --forward-to localhost:5173/api/webhook/stripe"
"stripe-dev": "stripe listen --forward-to localhost:5173/api/webhook/stripe",
"lint": "prettier --check .",
"format": "prettier --write ."
},
"devDependencies": {
"@fontsource-variable/inter": "^5.2.8",
Expand All @@ -24,6 +26,9 @@
"clsx": "^2.1.1",
"embla-carousel-autoplay": "^8.6.0",
"embla-carousel-svelte": "^8.6.0",
"prettier": "^3.8.3",
"prettier-plugin-svelte": "^4.1.0",
"prettier-plugin-tailwindcss": "^0.8.0",
"runed": "^0.37.1",
"shadcn-svelte": "^1.2.7",
"svelte": "^5.54.0",
Expand Down
13 changes: 13 additions & 0 deletions frontend/prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/** @type {import("prettier").Config} */
const config = {
useTabs: true,
tabWidth: 4,
singleQuote: true,
trailingComma: "none",
printWidth: 100,
plugins: ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
overrides: [{ files: "*.svelte", options: { parser: "svelte" } }],
tailwindStylesheet: "./src/routes/layout.css"
};

export default config;
6 changes: 3 additions & 3 deletions frontend/src/app.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { UserModel } from "@/utils";
import type PocketBase from "pocketbase";

type AuthModel = {
[key: string]: any;
[key: string]: any;
} | null;

// See https://svelte.dev/docs/kit/types#app.d.ts
Expand All @@ -11,8 +11,8 @@ declare global {
namespace App {
// interface Error {}
interface Locals {
pb: PocketBase,
user?: UserModel | undefined
pb: PocketBase;
user?: UserModel | undefined;
}
// interface PageData {}
// interface PageState {}
Expand Down
9 changes: 6 additions & 3 deletions frontend/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&family=Geist:wght@100..900&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&family=Geist:wght@100..900&display=swap"
rel="stylesheet"
/>
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover" class="font-sans antialiased bg-background">
Expand Down
Loading
Loading