chore: refresh types and formatting

This commit is contained in:
2026-06-24 13:56:41 +01:00
parent 44bfb083f9
commit 2339fa02f8
6 changed files with 26 additions and 28 deletions
+9 -9
View File
@@ -6,20 +6,20 @@ This project is based inspired by Clarity Core by RA, for which more information
## Tech Stack
- Svelte
- SvelteKit
- Drizzle w/ libSQL
- [better-auth for authenticaton](https://better-auth.com/docs/introduction)
- [shadcn-svelte for UI components](https://www.shadcn-svelte.com/docs)
- [runed for helper functions](https://runed.dev/docs) (e.g. useUrlSearchParams)
- Svelte
- SvelteKit
- Drizzle w/ libSQL
- [better-auth for authenticaton](https://better-auth.com/docs/introduction)
- [shadcn-svelte for UI components](https://www.shadcn-svelte.com/docs)
- [runed for helper functions](https://runed.dev/docs) (e.g. useUrlSearchParams)
## Deployment
Target for deployment is Cloudflare using wrangler.jsonc and the wrangler cli.
- Cloudflare Workers
- Cloudflare D1
- Cloudflare R2
- Cloudflare Workers
- Cloudflare D1
- Cloudflare R2
## Semantics
@@ -16,18 +16,6 @@
id: string;
name: string;
workspace: string;
addressLine1?: string | null;
addressLine2?: string | null;
city?: string | null;
region?: string | null;
postcode?: string | null;
country?: string | null;
bankName?: string | null;
bankAccountName?: string | null;
bankAccountNumber?: string | null;
bankSortCode?: string | null;
bankIban?: string | null;
bankSwift?: string | null;
};
let {
+6 -4
View File
@@ -1,19 +1,21 @@
<script lang="ts">
import HomeIcon from '@lucide/svelte/icons/home';
import RefreshCwIcon from '@lucide/svelte/icons/refresh-cw';
import { resolve } from '$app/paths';
import { page } from '$app/state';
import { Button } from '$lib/components/ui/button/index.js';
const status = $derived(page.status);
const message = $derived(page.error?.message ?? 'Something went wrong.');
const currentPath = $derived(page.url.pathname);
const title = $derived(status === 404 ? message : 'Something went wrong');
const description = $derived(
status === 404
? 'This item may be archived, deleted, or unavailable in the active organization.'
: 'The dashboard could not finish loading this view.'
);
function retry() {
window.location.reload();
}
</script>
<svelte:head>
@@ -29,11 +31,11 @@
</div>
<div class="flex justify-center gap-2">
<Button href={resolve('/dashboard')} variant="outline">
<Button href="/dashboard" variant="outline">
<HomeIcon data-icon="inline-start" />
Dashboard
</Button>
<Button href={currentPath}>
<Button onclick={retry}>
<RefreshCwIcon data-icon="inline-start" />
Retry
</Button>
@@ -46,7 +46,6 @@
dueDate: string;
lines: BillingLine[];
clients: BillingClient[];
totalGbp: number;
};
formatMoney: (value: unknown) => string;
formatDate: (value: unknown) => string;
@@ -35,7 +35,13 @@
<Dialog.Description>Update this contract record.</Dialog.Description>
</Dialog.Header>
{#if editingRecord}
<form id="edit-contract-form" method="POST" action="?/edit" class="grid gap-2" use:enhanceEdit>
<form
id="edit-contract-form"
method="POST"
action="?/edit"
class="grid gap-2"
use:enhanceEdit
>
<input type="hidden" name="id" value={$editData.id} />
<ContractFormFields form={editForm} data={editData} {options} prefix="edit" />
</form>
+4 -1
View File
@@ -1,8 +1,11 @@
/* eslint-disable */
// Generated by Wrangler by running `wrangler types` (hash: 4f9fe9ddb2ea1e2c41e1be5910da8551)
// Generated by Wrangler by running `wrangler types` (hash: 61c64c9cd1c2465ff3a92bc5ac82d57d)
// Runtime types generated with workerd@1.20260521.1 2026-05-23 nodejs_als
interface __BaseEnv_Env {
ASSETS: Fetcher;
DATABASE_URL: string;
ORIGIN: string;
BETTER_AUTH_SECRET: string;
}
declare namespace Cloudflare {
interface Env extends __BaseEnv_Env {}