├── .prettierignore ├── src ├── routes │ ├── +layout.ts │ ├── +layout.svelte │ └── +page.svelte ├── lib │ ├── PageSize.ts │ ├── InvoiceTitle.svelte │ ├── Item.ts │ ├── InvoiceTitleSection.ts │ ├── NoteRow.svelte │ ├── Footer.svelte │ ├── PDFSection.ts │ ├── NoteSection.ts │ ├── pageDimensions.ts │ ├── InvoiceInfo.svelte │ ├── InvoiceInfoSection.ts │ ├── Address.svelte │ ├── ItemTableTotals.svelte │ ├── AddressSection.ts │ ├── ItemTable.svelte │ ├── ItemTableSection.ts │ ├── Page.svelte │ └── PDFWriter.ts ├── main.ts ├── app.html └── app.css ├── .prettierrc ├── vite.config.ts ├── tsconfig.json ├── .gitignore ├── README.md ├── package.json ├── svelte.config.js └── LICENSE /.prettierignore: -------------------------------------------------------------------------------- 1 | dist -------------------------------------------------------------------------------- /src/routes/+layout.ts: -------------------------------------------------------------------------------- 1 | export const prerender = true; 2 | -------------------------------------------------------------------------------- /src/lib/PageSize.ts: -------------------------------------------------------------------------------- 1 | export type PageSize = 'letter' | 'a4' | 'legal'; 2 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | useTabs: true 2 | semi: true 3 | singleQuote: true 4 | trailingComma: 'none' 5 | -------------------------------------------------------------------------------- /src/routes/+layout.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/lib/InvoiceTitle.svelte: -------------------------------------------------------------------------------- 1 |
INVOICE
2 | 3 | 9 | -------------------------------------------------------------------------------- /src/routes/+page.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 |