├── src ├── routes │ ├── +layout.ts │ ├── +layout.svelte │ └── +page.svelte ├── app.d.ts ├── lib │ ├── components │ │ └── ui │ │ │ └── button │ │ │ ├── index.ts │ │ │ └── button.svelte │ └── utils.ts ├── app.html └── app.css ├── src-tauri ├── .gitignore ├── build.rs ├── icons │ ├── icon.ico │ ├── icon.png │ ├── 128x128.png │ ├── 32x32.png │ ├── icon.icns │ ├── StoreLogo.png │ ├── 128x128@2x.png │ ├── Square107x107Logo.png │ ├── Square142x142Logo.png │ ├── Square150x150Logo.png │ ├── Square284x284Logo.png │ ├── Square30x30Logo.png │ ├── Square310x310Logo.png │ ├── Square44x44Logo.png │ ├── Square71x71Logo.png │ └── Square89x89Logo.png ├── src │ ├── lib.rs │ └── main.rs ├── Cargo.toml └── tauri.conf.json ├── static └── favicon.png ├── .gitignore ├── svelte.config.js ├── components.json ├── biome.json ├── vite.config.ts ├── tsconfig.json ├── LICENSE ├── package.json └── README.md /src/routes/+layout.ts: -------------------------------------------------------------------------------- 1 | export const prerender = true; 2 | export const ssr = false; 3 | -------------------------------------------------------------------------------- /src-tauri/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by Cargo 2 | # will have compiled files and executables 3 | /target/ -------------------------------------------------------------------------------- /src-tauri/build.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | tauri_runtime_verso_build::get_verso_as_external_bin().unwrap(); 3 | tauri_build::build(); 4 | } 5 | -------------------------------------------------------------------------------- /static/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopsled/template-sveltekit-rolldown-tauri-servo-biome-tailwind-shadcn-bun/HEAD/static/favicon.png -------------------------------------------------------------------------------- /src-tauri/icons/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopsled/template-sveltekit-rolldown-tauri-servo-biome-tailwind-shadcn-bun/HEAD/src-tauri/icons/icon.ico -------------------------------------------------------------------------------- /src-tauri/icons/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopsled/template-sveltekit-rolldown-tauri-servo-biome-tailwind-shadcn-bun/HEAD/src-tauri/icons/icon.png -------------------------------------------------------------------------------- /src-tauri/icons/128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopsled/template-sveltekit-rolldown-tauri-servo-biome-tailwind-shadcn-bun/HEAD/src-tauri/icons/128x128.png -------------------------------------------------------------------------------- /src-tauri/icons/32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopsled/template-sveltekit-rolldown-tauri-servo-biome-tailwind-shadcn-bun/HEAD/src-tauri/icons/32x32.png -------------------------------------------------------------------------------- /src-tauri/icons/icon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopsled/template-sveltekit-rolldown-tauri-servo-biome-tailwind-shadcn-bun/HEAD/src-tauri/icons/icon.icns -------------------------------------------------------------------------------- /src-tauri/icons/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopsled/template-sveltekit-rolldown-tauri-servo-biome-tailwind-shadcn-bun/HEAD/src-tauri/icons/StoreLogo.png -------------------------------------------------------------------------------- /src-tauri/icons/128x128@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopsled/template-sveltekit-rolldown-tauri-servo-biome-tailwind-shadcn-bun/HEAD/src-tauri/icons/128x128@2x.png -------------------------------------------------------------------------------- /src-tauri/icons/Square107x107Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopsled/template-sveltekit-rolldown-tauri-servo-biome-tailwind-shadcn-bun/HEAD/src-tauri/icons/Square107x107Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square142x142Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopsled/template-sveltekit-rolldown-tauri-servo-biome-tailwind-shadcn-bun/HEAD/src-tauri/icons/Square142x142Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square150x150Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopsled/template-sveltekit-rolldown-tauri-servo-biome-tailwind-shadcn-bun/HEAD/src-tauri/icons/Square150x150Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square284x284Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopsled/template-sveltekit-rolldown-tauri-servo-biome-tailwind-shadcn-bun/HEAD/src-tauri/icons/Square284x284Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square30x30Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopsled/template-sveltekit-rolldown-tauri-servo-biome-tailwind-shadcn-bun/HEAD/src-tauri/icons/Square30x30Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square310x310Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopsled/template-sveltekit-rolldown-tauri-servo-biome-tailwind-shadcn-bun/HEAD/src-tauri/icons/Square310x310Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square44x44Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopsled/template-sveltekit-rolldown-tauri-servo-biome-tailwind-shadcn-bun/HEAD/src-tauri/icons/Square44x44Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square71x71Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopsled/template-sveltekit-rolldown-tauri-servo-biome-tailwind-shadcn-bun/HEAD/src-tauri/icons/Square71x71Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square89x89Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nopsled/template-sveltekit-rolldown-tauri-servo-biome-tailwind-shadcn-bun/HEAD/src-tauri/icons/Square89x89Logo.png -------------------------------------------------------------------------------- /src-tauri/src/lib.rs: -------------------------------------------------------------------------------- 1 | #[cfg_attr(mobile, tauri::mobile_entry_point)] 2 | pub fn run() { 3 | tauri_runtime_verso::builder() 4 | .run(tauri::generate_context!()) 5 | .unwrap(); 6 | } 7 | -------------------------------------------------------------------------------- /src/routes/+layout.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | {#if children} 7 | {@render children()} 8 | {:else} 9 |
Fallback content
10 | {/if} 11 | -------------------------------------------------------------------------------- /src/app.d.ts: -------------------------------------------------------------------------------- 1 | // See https://kit.svelte.dev/docs/types#app 2 | // for information about these interfaces 3 | declare global { 4 | namespace App { 5 | // interface Error {} 6 | // interface Locals {} 7 | // interface PageData {} 8 | // interface Platform {} 9 | } 10 | } 11 | 12 | export {}; 13 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /build 4 | /.svelte-kit 5 | /package 6 | .env 7 | .env.* 8 | !.env.example 9 | vite.config.js.timestamp-* 10 | vite.config.ts.timestamp-* 11 | 12 | # Tauri 13 | /src-tauri/target 14 | /src-tauri/gen 15 | /src-tauri/versoview 16 | 17 | # Lock files 18 | package-lock.json 19 | bun.lock 20 | src-tauri/Cargo.lock 21 | -------------------------------------------------------------------------------- /src/lib/components/ui/button/index.ts: -------------------------------------------------------------------------------- 1 | import Root, { 2 | type ButtonProps, 3 | type ButtonSize, 4 | type ButtonVariant, 5 | buttonVariants, 6 | } from "./button.svelte"; 7 | 8 | export { 9 | Root, 10 | type ButtonProps as Props, 11 | // 12 | Root as Button, 13 | buttonVariants, 14 | type ButtonProps, 15 | type ButtonSize, 16 | type ButtonVariant, 17 | }; 18 | -------------------------------------------------------------------------------- /svelte.config.js: -------------------------------------------------------------------------------- 1 | import adapter from "@sveltejs/adapter-static"; 2 | 3 | /** @type {import('@sveltejs/kit').Config} */ 4 | export default { 5 | compilerOptions: { 6 | runes: true, 7 | }, 8 | adapter: adapter({ 9 | pages: "build", 10 | assets: "build", 11 | fallback: "index.html", 12 | }), 13 | alias: { 14 | $lib: "src/lib", 15 | }, 16 | }; -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://shadcn-svelte.com/schema.json", 3 | "tailwind": { 4 | "css": "src/app.css", 5 | "baseColor": "slate" 6 | }, 7 | "aliases": { 8 | "components": "$lib/components", 9 | "utils": "$lib/utils", 10 | "ui": "$lib/components/ui", 11 | "hooks": "$lib/hooks", 12 | "lib": "$lib" 13 | }, 14 | "typescript": true, 15 | "registry": "https://shadcn-svelte.com/registry" 16 | } 17 | -------------------------------------------------------------------------------- /src/app.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | %sveltekit.head% 8 | 9 | 10 |14 | A powerful desktop app framework combining Rust and modern web 15 | tech 16 |
17 |