WIP push-to-talk Letta chat frontend

start settings page and add basic styles

graham.systems 5678f3d8 bbe0a520

verified
+11 -8
.idea/modules.xml
··· 1 - <?xml version="1.0" encoding="UTF-8"?> 2 - <project version="4"> 3 - <component name="ProjectModuleManager"> 4 - <modules> 5 - <module fileurl="file://$PROJECT_DIR$/.idea/miwiwi.iml" filepath="$PROJECT_DIR$/.idea/miwiwi.iml" /> 6 - </modules> 7 - </component> 8 - </project> 1 + <?xml version="1.0" encoding="UTF-8"?> 2 + <project version="4"> 3 + <component name="ProjectModuleManager"> 4 + <modules> 5 + <module 6 + fileurl="file://$PROJECT_DIR$/.idea/miwiwi.iml" 7 + filepath="$PROJECT_DIR$/.idea/miwiwi.iml" 8 + /> 9 + </modules> 10 + </component> 11 + </project>
+6 -6
.idea/vcs.xml
··· 1 - <?xml version="1.0" encoding="UTF-8"?> 2 - <project version="4"> 3 - <component name="VcsDirectoryMappings"> 4 - <mapping directory="$PROJECT_DIR$" vcs="Jujutsu" /> 5 - </component> 6 - </project> 1 + <?xml version="1.0" encoding="UTF-8"?> 2 + <project version="4"> 3 + <component name="VcsDirectoryMappings"> 4 + <mapping directory="$PROJECT_DIR$" vcs="Jujutsu" /> 5 + </component> 6 + </project>
+7 -7
.vscode/extensions.json
··· 1 - { 2 - "recommendations": [ 3 - "svelte.svelte-vscode", 4 - "tauri-apps.tauri-vscode", 5 - "rust-lang.rust-analyzer" 6 - ] 7 - } 1 + { 2 + "recommendations": [ 3 + "svelte.svelte-vscode", 4 + "tauri-apps.tauri-vscode", 5 + "rust-lang.rust-analyzer" 6 + ] 7 + }
+32 -32
.vscode/launch.json
··· 1 - { 2 - // Use IntelliSense to learn about possible attributes. 3 - // Hover to view descriptions of existing attributes. 4 - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 - "version": "0.2.0", 6 - "configurations": [ 7 - { 8 - "type": "lldb", 9 - "request": "launch", 10 - "name": "Tauri Development Debug", 11 - "cargo": { 12 - "args": [ 13 - "build", 14 - "--manifest-path=./src-tauri/Cargo.toml", 15 - "--no-default-features" 16 - ] 17 - }, 18 - // task for the `beforeDevCommand` if used, must be configured in `.vscode/tasks.json` 19 - "preLaunchTask": "ui:dev" 20 - }, 21 - { 22 - "type": "lldb", 23 - "request": "launch", 24 - "name": "Tauri Production Debug", 25 - "cargo": { 26 - "args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"] 27 - }, 28 - // task for the `beforeBuildCommand` if used, must be configured in `.vscode/tasks.json` 29 - "preLaunchTask": "ui:build" 30 - } 31 - ] 32 - } 1 + { 2 + // Use IntelliSense to learn about possible attributes. 3 + // Hover to view descriptions of existing attributes. 4 + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 + "version": "0.2.0", 6 + "configurations": [ 7 + { 8 + "type": "lldb", 9 + "request": "launch", 10 + "name": "Tauri Development Debug", 11 + "cargo": { 12 + "args": [ 13 + "build", 14 + "--manifest-path=./src-tauri/Cargo.toml", 15 + "--no-default-features" 16 + ] 17 + }, 18 + // task for the `beforeDevCommand` if used, must be configured in `.vscode/tasks.json` 19 + "preLaunchTask": "ui:dev" 20 + }, 21 + { 22 + "type": "lldb", 23 + "request": "launch", 24 + "name": "Tauri Production Debug", 25 + "cargo": { 26 + "args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"] 27 + }, 28 + // task for the `beforeBuildCommand` if used, must be configured in `.vscode/tasks.json` 29 + "preLaunchTask": "ui:build" 30 + } 31 + ] 32 + }
+4 -4
.vscode/settings.json
··· 1 - { 2 - "svelte.enable-ts-plugin": true, 3 - "deno.enable": true 4 - } 1 + { 2 + "svelte.enable-ts-plugin": true, 3 + "deno.enable": true 4 + }
+25 -25
.vscode/tasks.json
··· 1 - { 2 - // See https://go.microsoft.com/fwlink/?LinkId=733558 3 - // for the documentation about the tasks.json format 4 - "version": "2.0.0", 5 - "tasks": [ 6 - { 7 - "label": "ui:dev", 8 - "type": "shell", 9 - // `dev` keeps running in the background 10 - // ideally you should also configure a `problemMatcher` 11 - // see https://code.visualstudio.com/docs/editor/tasks#_can-a-background-task-be-used-as-a-prelaunchtask-in-launchjson 12 - "isBackground": true, 13 - // change this to your `beforeDevCommand`: 14 - "command": "deno", 15 - "args": ["task", "dev"] 16 - }, 17 - { 18 - "label": "ui:build", 19 - "type": "shell", 20 - // change this to your `beforeBuildCommand`: 21 - "command": "deno", 22 - "args": ["task", "build"] 23 - } 24 - ] 25 - } 1 + { 2 + // See https://go.microsoft.com/fwlink/?LinkId=733558 3 + // for the documentation about the tasks.json format 4 + "version": "2.0.0", 5 + "tasks": [ 6 + { 7 + "label": "ui:dev", 8 + "type": "shell", 9 + // `dev` keeps running in the background 10 + // ideally you should also configure a `problemMatcher` 11 + // see https://code.visualstudio.com/docs/editor/tasks#_can-a-background-task-be-used-as-a-prelaunchtask-in-launchjson 12 + "isBackground": true, 13 + // change this to your `beforeDevCommand`: 14 + "command": "deno", 15 + "args": ["task", "dev"] 16 + }, 17 + { 18 + "label": "ui:build", 19 + "type": "shell", 20 + // change this to your `beforeBuildCommand`: 21 + "command": "deno", 22 + "args": ["task", "build"] 23 + } 24 + ] 25 + }
+11 -7
README.md
··· 1 - # Tauri + SvelteKit + TypeScript 2 - 3 - This template should help get you started developing with Tauri, SvelteKit and TypeScript in Vite. 4 - 5 - ## Recommended IDE Setup 6 - 7 - [VS Code](https://code.visualstudio.com/) + [Svelte](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer). 1 + # Tauri + SvelteKit + TypeScript 2 + 3 + This template should help get you started developing with Tauri, SvelteKit and 4 + TypeScript in Vite. 5 + 6 + ## Recommended IDE Setup 7 + 8 + [VS Code](https://code.visualstudio.com/) + 9 + [Svelte](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode) + 10 + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + 11 + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer).
+1
deno.json
··· 1 1 { 2 + "unstable": ["fmt-component"], 2 3 "imports": { 3 4 "@std/async": "jsr:@std/async@^1.0.14" 4 5 }
+116
deno.lock
··· 3 3 "specifiers": { 4 4 "jsr:@std/async@^1.0.14": "1.0.14", 5 5 "npm:@deno/vite-plugin@^1.0.5": "1.0.5_vite@6.3.5__picomatch@4.0.3", 6 + "npm:@fontsource-variable/recursive@^5.2.7": "5.2.7", 7 + "npm:@iconify/json@^2.2.382": "2.2.382", 8 + "npm:@iconify/tailwind4@^1.0.6": "1.0.6_tailwindcss@4.1.12", 6 9 "npm:@sveltejs/adapter-static@^3.0.6": "3.0.9_@sveltejs+kit@2.36.2__@sveltejs+vite-plugin-svelte@5.1.1___svelte@5.38.3____acorn@8.15.0___vite@6.3.5____picomatch@4.0.3__svelte@5.38.3___acorn@8.15.0__vite@6.3.5___picomatch@4.0.3__acorn@8.15.0_@sveltejs+vite-plugin-svelte@5.1.1__svelte@5.38.3___acorn@8.15.0__vite@6.3.5___picomatch@4.0.3_svelte@5.38.3__acorn@8.15.0_vite@6.3.5__picomatch@4.0.3", 7 10 "npm:@sveltejs/kit@^2.9.0": "2.36.2_@sveltejs+vite-plugin-svelte@5.1.1__svelte@5.38.3___acorn@8.15.0__vite@6.3.5___picomatch@4.0.3_svelte@5.38.3__acorn@8.15.0_vite@6.3.5__picomatch@4.0.3_acorn@8.15.0", 8 11 "npm:@sveltejs/vite-plugin-svelte@5": "5.1.1_svelte@5.38.3__acorn@8.15.0_vite@6.3.5__picomatch@4.0.3", ··· 24 27 } 25 28 }, 26 29 "npm": { 30 + "@antfu/install-pkg@1.1.0": { 31 + "integrity": "sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ==", 32 + "dependencies": [ 33 + "package-manager-detector", 34 + "tinyexec" 35 + ] 36 + }, 37 + "@antfu/utils@8.1.1": { 38 + "integrity": "sha512-Mex9nXf9vR6AhcXmMrlz/HVgYYZpVGJ6YlPgwl7UnaFpnshXs6EK/oa5Gpf3CzENMjkvEx2tQtntGnb7UtSTOQ==" 39 + }, 27 40 "@deno/vite-plugin@1.0.5_vite@6.3.5__picomatch@4.0.3": { 28 41 "integrity": "sha512-tLja5n4dyMhcze1NzvSs2iiriBymfBlDCZIrjMTxb9O2ru0gvmV6mn5oBD2teNw5Sd92cj3YJzKwsAs8tMJXlg==", 29 42 "dependencies": [ ··· 178 191 "integrity": "sha512-PPOl1mi6lpLNQxnGoyAfschAodRFYXJ+9fs6WHXz7CSWKbOqiMZsubC+BQsVKuul+3vKLuwTHsS2c2y9EoKwxQ==", 179 192 "os": ["win32"], 180 193 "cpu": ["x64"] 194 + }, 195 + "@fontsource-variable/recursive@5.2.7": { 196 + "integrity": "sha512-6hDJ9EDUxShoqhmxV3B+q8k6YC7cBBzVvDapNAESDIn53SzBC7y1KbEr/aha70zx/GWJiNTTVf7gdJ3B5K1/vg==" 197 + }, 198 + "@iconify/json@2.2.382": { 199 + "integrity": "sha512-1UT0ouWPVXNteS+kaQjtDvxKy/swWqB84fq9b+xbpE7nhgfak7ljYneWSXTDU+SyfL112F9978p7Mf3C3Q/8LQ==", 200 + "dependencies": [ 201 + "@iconify/types", 202 + "pathe@1.1.2" 203 + ] 204 + }, 205 + "@iconify/tailwind4@1.0.6_tailwindcss@4.1.12": { 206 + "integrity": "sha512-43ZXe+bC7CuE2LCgROdqbQeFYJi/J7L/k1UpSy8KDQlWVsWxPzLSWbWhlJx4uRYLOh1NRyw02YlDOgzBOFNd+A==", 207 + "dependencies": [ 208 + "@iconify/types", 209 + "@iconify/utils", 210 + "tailwindcss" 211 + ] 212 + }, 213 + "@iconify/types@2.0.0": { 214 + "integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==" 215 + }, 216 + "@iconify/utils@2.3.0": { 217 + "integrity": "sha512-GmQ78prtwYW6EtzXRU1rY+KwOKfz32PD7iJh6Iyqw68GiKuoZ2A6pRtzWONz5VQJbp50mEjXh/7NkumtrAgRKA==", 218 + "dependencies": [ 219 + "@antfu/install-pkg", 220 + "@antfu/utils", 221 + "@iconify/types", 222 + "debug", 223 + "globals", 224 + "kolorist", 225 + "local-pkg", 226 + "mlly" 227 + ] 181 228 }, 182 229 "@isaacs/fs-minipass@4.0.1": { 183 230 "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==", ··· 619 666 "clsx@2.1.1": { 620 667 "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==" 621 668 }, 669 + "confbox@0.1.8": { 670 + "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==" 671 + }, 672 + "confbox@0.2.2": { 673 + "integrity": "sha512-1NB+BKqhtNipMsov4xI/NnhCKp9XG9NamYp5PVm9klAT0fsrNPjaFICsCFhNhwZJKNh7zB/3q8qXz0E9oaMNtQ==" 674 + }, 622 675 "cookie@0.6.0": { 623 676 "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==" 624 677 }, ··· 686 739 "@jridgewell/sourcemap-codec" 687 740 ] 688 741 }, 742 + "exsolve@1.0.7": { 743 + "integrity": "sha512-VO5fQUzZtI6C+vx4w/4BWJpg3s/5l+6pRQEHzFRM8WFi4XffSP1Z+4qi7GbjWbvRQEbdIco5mIMq+zX4rPuLrw==" 744 + }, 689 745 "fdir@6.5.0_picomatch@4.0.3": { 690 746 "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", 691 747 "dependencies": [ ··· 700 756 "os": ["darwin"], 701 757 "scripts": true 702 758 }, 759 + "globals@15.15.0": { 760 + "integrity": "sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==" 761 + }, 703 762 "graceful-fs@4.2.11": { 704 763 "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" 705 764 }, ··· 715 774 }, 716 775 "kleur@4.1.5": { 717 776 "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==" 777 + }, 778 + "kolorist@1.8.0": { 779 + "integrity": "sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==" 718 780 }, 719 781 "lightningcss-darwin-arm64@1.30.1": { 720 782 "integrity": "sha512-c8JK7hyE65X1MHMN+Viq9n11RRC7hgin3HhYKhrMyaXflk5GVplZ60IxyoVtzILeKr+xAJwg6zK6sjTBJ0FKYQ==", ··· 784 846 "lightningcss-win32-x64-msvc" 785 847 ] 786 848 }, 849 + "local-pkg@1.1.2": { 850 + "integrity": "sha512-arhlxbFRmoQHl33a0Zkle/YWlmNwoyt6QNZEIJcqNbdrsix5Lvc4HyyI3EnwxTYlZYc32EbYrQ8SzEZ7dqgg9A==", 851 + "dependencies": [ 852 + "mlly", 853 + "pkg-types@2.3.0", 854 + "quansync" 855 + ] 856 + }, 787 857 "locate-character@3.0.0": { 788 858 "integrity": "sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==" 789 859 }, ··· 806 876 "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", 807 877 "bin": true 808 878 }, 879 + "mlly@1.8.0": { 880 + "integrity": "sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==", 881 + "dependencies": [ 882 + "acorn", 883 + "pathe@2.0.3", 884 + "pkg-types@1.3.1", 885 + "ufo" 886 + ] 887 + }, 809 888 "mri@1.2.0": { 810 889 "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==" 811 890 }, ··· 819 898 "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", 820 899 "bin": true 821 900 }, 901 + "package-manager-detector@1.3.0": { 902 + "integrity": "sha512-ZsEbbZORsyHuO00lY1kV3/t72yp6Ysay6Pd17ZAlNGuGwmWDLCJxFpRs0IzfXfj1o4icJOkUEioexFHzyPurSQ==" 903 + }, 904 + "pathe@1.1.2": { 905 + "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==" 906 + }, 907 + "pathe@2.0.3": { 908 + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==" 909 + }, 822 910 "picocolors@1.1.1": { 823 911 "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" 824 912 }, 825 913 "picomatch@4.0.3": { 826 914 "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==" 827 915 }, 916 + "pkg-types@1.3.1": { 917 + "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==", 918 + "dependencies": [ 919 + "confbox@0.1.8", 920 + "mlly", 921 + "pathe@2.0.3" 922 + ] 923 + }, 924 + "pkg-types@2.3.0": { 925 + "integrity": "sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig==", 926 + "dependencies": [ 927 + "confbox@0.2.2", 928 + "exsolve", 929 + "pathe@2.0.3" 930 + ] 931 + }, 828 932 "postcss@8.5.6": { 829 933 "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", 830 934 "dependencies": [ ··· 832 936 "picocolors", 833 937 "source-map-js" 834 938 ] 939 + }, 940 + "quansync@0.2.11": { 941 + "integrity": "sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==" 835 942 }, 836 943 "readdirp@4.1.2": { 837 944 "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==" ··· 935 1042 "yallist" 936 1043 ] 937 1044 }, 1045 + "tinyexec@1.0.1": { 1046 + "integrity": "sha512-5uC6DDlmeqiOwCPmK9jMSdOuZTh8bU39Ys6yidB+UTt5hfZUPGAypSgFRiEp+jbi9qH40BLDvy85jIU88wKSqw==" 1047 + }, 938 1048 "tinyglobby@0.2.14_picomatch@4.0.3": { 939 1049 "integrity": "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==", 940 1050 "dependencies": [ ··· 951 1061 "typescript@5.6.3": { 952 1062 "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", 953 1063 "bin": true 1064 + }, 1065 + "ufo@1.6.1": { 1066 + "integrity": "sha512-9a4/uxlTWJ4+a5i0ooc1rU7C7YOw3wT+UGqdeNNHWnOF9qcMBgLRS+4IYUqbczewFx4mLEig6gawh7X6mFlEkA==" 954 1067 }, 955 1068 "vite@6.3.5_picomatch@4.0.3": { 956 1069 "integrity": "sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==", ··· 990 1103 "packageJson": { 991 1104 "dependencies": [ 992 1105 "npm:@deno/vite-plugin@^1.0.5", 1106 + "npm:@fontsource-variable/recursive@^5.2.7", 1107 + "npm:@iconify/json@^2.2.382", 1108 + "npm:@iconify/tailwind4@^1.0.6", 993 1109 "npm:@sveltejs/adapter-static@^3.0.6", 994 1110 "npm:@sveltejs/kit@^2.9.0", 995 1111 "npm:@sveltejs/vite-plugin-svelte@5",
+37 -34
package.json
··· 1 - { 2 - "name": "miwiwi", 3 - "version": "0.1.0", 4 - "description": "", 5 - "type": "module", 6 - "scripts": { 7 - "dev": "vite dev", 8 - "build": "vite build", 9 - "preview": "vite preview", 10 - "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", 11 - "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", 12 - "tauri": "tauri" 13 - }, 14 - "license": "MIT", 15 - "dependencies": { 16 - "@deno/vite-plugin": "^1.0.5", 17 - "@tailwindcss/vite": "^4.1.12", 18 - "@tauri-apps/api": "^2", 19 - "@tauri-apps/plugin-opener": "^2", 20 - "@tauri-apps/plugin-positioner": "~2.3.0", 21 - "@tauri-apps/plugin-window-state": "~2.4.0", 22 - "tailwindcss": "^4.1.12" 23 - }, 24 - "devDependencies": { 25 - "@sveltejs/adapter-static": "^3.0.6", 26 - "@sveltejs/kit": "^2.9.0", 27 - "@sveltejs/vite-plugin-svelte": "^5.0.0", 28 - "svelte": "^5.0.0", 29 - "svelte-check": "^4.0.0", 30 - "typescript": "~5.6.2", 31 - "vite": "^6.0.3", 32 - "@tauri-apps/cli": "^2" 33 - } 34 - } 1 + { 2 + "name": "miwiwi", 3 + "version": "0.1.0", 4 + "description": "", 5 + "type": "module", 6 + "scripts": { 7 + "dev": "vite dev", 8 + "build": "vite build", 9 + "preview": "vite preview", 10 + "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", 11 + "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", 12 + "tauri": "tauri" 13 + }, 14 + "license": "MIT", 15 + "dependencies": { 16 + "@deno/vite-plugin": "^1.0.5", 17 + "@fontsource-variable/recursive": "^5.2.7", 18 + "@iconify/json": "^2.2.382", 19 + "@iconify/tailwind4": "^1.0.6", 20 + "@tailwindcss/vite": "^4.1.12", 21 + "@tauri-apps/api": "^2", 22 + "@tauri-apps/plugin-opener": "^2", 23 + "@tauri-apps/plugin-positioner": "~2.3.0", 24 + "@tauri-apps/plugin-window-state": "~2.4.0", 25 + "tailwindcss": "^4.1.12" 26 + }, 27 + "devDependencies": { 28 + "@sveltejs/adapter-static": "^3.0.6", 29 + "@sveltejs/kit": "^2.9.0", 30 + "@sveltejs/vite-plugin-svelte": "^5.0.0", 31 + "svelte": "^5.0.0", 32 + "svelte-check": "^4.0.0", 33 + "typescript": "~5.6.2", 34 + "vite": "^6.0.3", 35 + "@tauri-apps/cli": "^2" 36 + } 37 + }
+10 -10
src-tauri/capabilities/default.json
··· 1 - { 2 - "$schema": "../gen/schemas/desktop-schema.json", 3 - "identifier": "default", 4 - "description": "Capability for the main window", 5 - "windows": ["main"], 6 - "permissions": [ 7 - "core:default", 8 - "opener:default" 9 - ] 10 - } 1 + { 2 + "$schema": "../gen/schemas/desktop-schema.json", 3 + "identifier": "default", 4 + "description": "Capability for the main window", 5 + "windows": ["main"], 6 + "permissions": [ 7 + "core:default", 8 + "opener:default" 9 + ] 10 + }
+1 -1
src-tauri/capabilities/desktop.json
··· 12 12 "positioner:default", 13 13 "window-state:default" 14 14 ] 15 - } 15 + }
+36 -36
src-tauri/src/devices/types.rs
··· 1 - use std::fmt; 2 - 3 - #[derive(Debug)] 4 - pub enum AudioDeviceError { 5 - NoHostAvailable, 6 - NoDevicesFound, 7 - ConfigurationError(String), 8 - CpalDevicesError(cpal::DevicesError), 9 - CpalConfigError(cpal::DefaultStreamConfigError), 10 - } 11 - 12 - impl fmt::Display for AudioDeviceError { 13 - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { 14 - match self { 15 - AudioDeviceError::NoHostAvailable => write!(f, "No host available"), 16 - AudioDeviceError::NoDevicesFound => write!(f, "No devices found"), 17 - AudioDeviceError::ConfigurationError(msg) => write!(f, "Configuration error: {}", msg), 18 - AudioDeviceError::CpalDevicesError(err) => write!(f, "CPAL device error: {}", err), 19 - AudioDeviceError::CpalConfigError(err) => write!(f, "CPAL config error: {}", err), 20 - } 21 - } 22 - } 23 - 24 - impl std::error::Error for AudioDeviceError {} 25 - 26 - impl From<cpal::DevicesError> for AudioDeviceError { 27 - fn from(err: cpal::DevicesError) -> Self { 28 - AudioDeviceError::CpalDevicesError(err) 29 - } 30 - } 31 - 32 - impl From<cpal::DefaultStreamConfigError> for AudioDeviceError { 33 - fn from(err: cpal::DefaultStreamConfigError) -> Self { 34 - AudioDeviceError::CpalConfigError(err) 35 - } 36 - } 1 + use std::fmt; 2 + 3 + #[derive(Debug)] 4 + pub enum AudioDeviceError { 5 + NoHostAvailable, 6 + NoDevicesFound, 7 + ConfigurationError(String), 8 + CpalDevicesError(cpal::DevicesError), 9 + CpalConfigError(cpal::DefaultStreamConfigError), 10 + } 11 + 12 + impl fmt::Display for AudioDeviceError { 13 + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { 14 + match self { 15 + AudioDeviceError::NoHostAvailable => write!(f, "No host available"), 16 + AudioDeviceError::NoDevicesFound => write!(f, "No devices found"), 17 + AudioDeviceError::ConfigurationError(msg) => write!(f, "Configuration error: {}", msg), 18 + AudioDeviceError::CpalDevicesError(err) => write!(f, "CPAL device error: {}", err), 19 + AudioDeviceError::CpalConfigError(err) => write!(f, "CPAL config error: {}", err), 20 + } 21 + } 22 + } 23 + 24 + impl std::error::Error for AudioDeviceError {} 25 + 26 + impl From<cpal::DevicesError> for AudioDeviceError { 27 + fn from(err: cpal::DevicesError) -> Self { 28 + AudioDeviceError::CpalDevicesError(err) 29 + } 30 + } 31 + 32 + impl From<cpal::DefaultStreamConfigError> for AudioDeviceError { 33 + fn from(err: cpal::DefaultStreamConfigError) -> Self { 34 + AudioDeviceError::CpalConfigError(err) 35 + } 36 + }
+2
src-tauri/src/lib.rs
··· 49 49 .decorations(false) 50 50 .always_on_top(true) 51 51 .visible(false) 52 + .transparent(true) 53 + .shadow(false) 52 54 .maximizable(false); 53 55 } 54 56
+29 -29
src-tauri/tauri.conf.json
··· 1 - { 2 - "$schema": "https://schema.tauri.app/config/2", 3 - "productName": "miwiwi", 4 - "version": "0.1.0", 5 - "identifier": "systems.graham.miwiwi", 6 - "build": { 7 - "beforeDevCommand": "deno task dev", 8 - "devUrl": "http://localhost:1420", 9 - "beforeBuildCommand": "deno task build", 10 - "frontendDist": "../build" 11 - }, 12 - "app": { 13 - "windows": [], 14 - "security": { 15 - "csp": null 16 - } 17 - }, 18 - "bundle": { 19 - "active": true, 20 - "targets": "all", 21 - "icon": [ 22 - "icons/32x32.png", 23 - "icons/128x128.png", 24 - "icons/128x128@2x.png", 25 - "icons/icon.icns", 26 - "icons/icon.ico" 27 - ] 28 - } 29 - } 1 + { 2 + "$schema": "https://schema.tauri.app/config/2", 3 + "productName": "miwiwi", 4 + "version": "0.1.0", 5 + "identifier": "systems.graham.miwiwi", 6 + "build": { 7 + "beforeDevCommand": "deno task dev", 8 + "devUrl": "http://localhost:1420", 9 + "beforeBuildCommand": "deno task build", 10 + "frontendDist": "../build" 11 + }, 12 + "app": { 13 + "windows": [], 14 + "security": { 15 + "csp": null 16 + } 17 + }, 18 + "bundle": { 19 + "active": true, 20 + "targets": "all", 21 + "icon": [ 22 + "icons/32x32.png", 23 + "icons/128x128.png", 24 + "icons/128x128@2x.png", 25 + "icons/icon.icns", 26 + "icons/icon.ico" 27 + ] 28 + } 29 + }
+37 -1
src/app.css
··· 1 - @import "tailwindcss"; 1 + @import "tailwindcss"; 2 + @plugin "@iconify/tailwind4"; 3 + 4 + @theme { 5 + --color-rose-pine-base: hsl(249deg, 22%, 12%); 6 + --color-rose-pine-surface: hsl(247deg, 23%, 15%); 7 + --color-rose-pine-overlay: hsl(248deg, 25%, 18%); 8 + --color-rose-pine-muted: hsl(249deg, 12%, 47%); 9 + --color-rose-pine-subtle: hsl(248deg, 15%, 61%); 10 + --color-rose-pine-text: hsl(245deg, 50%, 91%); 11 + --color-rose-pine-love: hsl(343deg, 76%, 68%); 12 + --color-rose-pine-gold: hsl(35deg, 88%, 72%); 13 + --color-rose-pine-rose: hsl(2deg, 55%, 83%); 14 + --color-rose-pine-pine: hsl(197deg, 49%, 38%); 15 + --color-rose-pine-foam: hsl(189deg, 43%, 73%); 16 + --color-rose-pine-iris: hsl(267deg, 57%, 78%); 17 + --color-rose-pine-highlight-low: hsl(244deg, 18%, 15%); 18 + --color-rose-pine-highlight-med: hsl(249deg, 15%, 28%); 19 + --color-rose-pine-highlight-high: hsl(248deg, 13%, 36%); 20 + 21 + --font-sans: "Recursive Variable"; 22 + 23 + --animate-wiggle: wiggle 1s ease-in-out infinite; 24 + 25 + @keyframes wiggle { 26 + 0%, 27 + 100% { 28 + transform: rotate(0deg); 29 + } 30 + 33% { 31 + transform: rotate(-5deg); 32 + } 33 + 66% { 34 + transform: rotate(5deg); 35 + } 36 + } 37 + }
+18 -13
src/app.html
··· 1 - <!doctype html> 2 - <html lang="en"> 3 - <head> 4 - <meta charset="utf-8" /> 5 - <link rel="icon" href="%sveltekit.assets%/favicon.png" /> 6 - <meta name="viewport" content="width=device-width, initial-scale=1" /> 7 - <title>Tauri + SvelteKit + Typescript App</title> 8 - %sveltekit.head% 9 - </head> 10 - <body data-sveltekit-preload-data="hover"> 11 - <div style="display: contents">%sveltekit.body%</div> 12 - </body> 13 - </html> 1 + <!DOCTYPE html> 2 + <html lang="en"> 3 + <head> 4 + <meta charset="utf-8" /> 5 + <link rel="icon" href="%sveltekit.assets%/favicon.png" /> 6 + <meta name="viewport" content="width=device-width, initial-scale=1" /> 7 + <title>miwiwi</title> 8 + %sveltekit.head% 9 + </head> 10 + <body 11 + data-sveltekit-preload-data="hover" 12 + class="text-rose-pine-text h-screen" 13 + > 14 + <div style="display: contents"> 15 + %sveltekit.body% 16 + </div> 17 + </body> 18 + </html>
+10
src/routes/+layout.svelte
··· 1 + <script lang="ts"> 2 + import "@fontsource-variable/recursive/full.css"; 3 + import "../app.css"; 4 + 5 + let { children } = $props(); 6 + </script> 7 + 8 + <div class="flex flex-col-reverse justify-start gap-2 h-full"> 9 + {@render children()} 10 + </div>
+15 -16
src/routes/+layout.ts
··· 1 - import "../app.css"; 2 - import { debounce } from "@std/async"; 3 - import { saveWindowState, StateFlags } from "@tauri-apps/plugin-window-state"; 4 - import { listen, type Event, TauriEvent } from "@tauri-apps/api/event"; 5 - 6 - // Tauri doesn't have a Node.js server to do proper SSR 7 - // so we use adapter-static with a fallback to index.html to put the site in SPA mode 8 - // See: https://svelte.dev/docs/kit/single-page-apps 9 - // See: https://v2.tauri.app/start/frontend/sveltekit/ for more info 10 - export const ssr = false; 11 - 12 - const debounced = debounce((_: Event<TauriEvent.WINDOW_RESIZED>) => { 13 - saveWindowState(StateFlags.ALL); 14 - }, 250); 15 - 16 - listen("tauri://resize", debounced); 1 + import { debounce } from "@std/async"; 2 + import { saveWindowState, StateFlags } from "@tauri-apps/plugin-window-state"; 3 + import { type Event, listen, TauriEvent } from "@tauri-apps/api/event"; 4 + 5 + // Tauri doesn't have a Node.js server to do proper SSR 6 + // so we use adapter-static with a fallback to index.html to put the site in SPA mode 7 + // See: https://svelte.dev/docs/kit/single-page-apps 8 + // See: https://v2.tauri.app/start/frontend/sveltekit/ for more info 9 + export const ssr = false; 10 + 11 + const debounced = debounce((_: Event<TauriEvent.WINDOW_RESIZED>) => { 12 + saveWindowState(StateFlags.ALL); 13 + }, 250); 14 + 15 + listen("tauri://resize", debounced);
+70 -35
src/routes/+page.svelte
··· 1 - <script lang="ts"> 2 - import { invoke } from "@tauri-apps/api/core" 3 - 4 - let keyInvocation = $state(invoke("has_secret", { name: "cartesia_api_key"})) 5 - let tempCredential = $state("") 6 - 7 - async function deleteKey() { 8 - await invoke("delete_secret", { name: "cartesia_api_key"}) 9 - keyInvocation = invoke("has_secret", { name: "cartesia_api_key"}) 10 - } 11 - </script> 12 - 13 - {#await keyInvocation} 14 - <p>checking for cred...</p> 15 - {:then hasKey} 16 - {#if hasKey} 17 - <p>key has been set</p> 18 - <button onclick={deleteKey}>delete key</button> 19 - {:else} 20 - <p>no key yet</p> 21 - <input placeholder="my key..." bind:value={tempCredential} /> 22 - <button onclick={async () => { 23 - await invoke("set_secret", { name: "cartesia_api_key", value: tempCredential}) 24 - 25 - keyInvocation = invoke("has_secret", { name: "cartesia_api_key"}) 26 - }}>Save API key</button> 27 - {/if} 28 - {:catch err} 29 - <p>{err}</p> 30 - {/await} 31 - 32 - <main>miwiwi</main> 33 - <button onclick={() => invoke("start_stt")}>Start STT</button> 34 - <button onclick={() => invoke("stop_stt")}>Stop STT</button> 35 - 1 + <script lang="ts"> 2 + import { invoke } from "@tauri-apps/api/core"; 3 + 4 + let keyInvocation = $state( 5 + invoke("has_secret", { name: "cartesia_api_key" }), 6 + ); 7 + let isRecording = $state(false); 8 + 9 + $effect(() => { 10 + if (isRecording) invoke("start_stt"); 11 + else invoke("stop_stt"); 12 + }); 13 + </script> 14 + 15 + <div 16 + class="p-2 bg-rose-pine-base rounded-md flex items-center justify-between text-xs shadow-xl" 17 + > 18 + <a 19 + href="/settings" 20 + class="flex items-center gap-1 group text-rose-pine-subtle hover:text-rose-pine-iris" 21 + > 22 + <span class="icon-[tabler--settings-filled] size-4"></span> 23 + <span class="leading-none group-[:hover]:underline"> 24 + Settings 25 + </span> 26 + </a> 27 + </div> 28 + 29 + <div class="bg-rose-pine-base rounded-md p-3 flex gap-3 shadow-xl"> 30 + {#await keyInvocation} 31 + <div class="flex items-center justify-center w-full"> 32 + <span 33 + class="icon-[svg-spinners--180-ring-with-bg] text-rose-pine-muted" 34 + ></span> 35 + </div> 36 + {:then hasKey} 37 + {#if hasKey} 38 + <button 39 + class={[ 40 + "p-4 w-full flex items-center justify-center rounded-2xl transition", 41 + isRecording 42 + ? "bg-rose-pine-rose text-rose-pine-highlight-low" 43 + : "bg-rose-pine-surface text-rose-pine-subtle hover:bg-rose-pine-overlay hover:text-rose-pine-text", 44 + ]} 45 + onclick={() => isRecording = !isRecording} 46 + aria-label="push-to-talk" 47 + > 48 + {#if isRecording} 49 + <span 50 + class="icon-[tabler--microphone-off] size-6 animate-wiggle" 51 + ></span> 52 + {:else} 53 + <span class="icon-[tabler--microphone] size-6"></span> 54 + {/if} 55 + </button> 56 + {:else} 57 + <div 58 + class="bg-rose-pine-gold rounded-md p-3 text-rose-pine-highlight-low flex gap-3 shadow-xl" 59 + > 60 + <span class="icon-[tabler--exclamation-circle-filled] size-6"></span> 61 + <p> 62 + Set your Cartesia API key in <a href="/settings" class="underline" 63 + >Settings</a> to get started 64 + </p> 65 + </div> 66 + {/if} 67 + {:catch err} 68 + <p>{err}</p> 69 + {/await} 70 + </div>
+88
src/routes/settings/+page.svelte
··· 1 + <script lang="ts"> 2 + import { invoke } from "@tauri-apps/api/core"; 3 + 4 + let keyInvocation = $state( 5 + invoke("has_secret", { name: "cartesia_api_key" }), 6 + ); 7 + let tempCredential = $state(""); 8 + 9 + async function deleteKey() { 10 + await invoke("delete_secret", { name: "cartesia_api_key" }); 11 + keyInvocation = invoke("has_secret", { name: "cartesia_api_key" }); 12 + } 13 + </script> 14 + 15 + <div 16 + class="p-2 bg-rose-pine-base rounded-md flex items-center justify-between text-xs shadow-xl" 17 + > 18 + <a 19 + href="/" 20 + class="flex items-center gap-1 group text-rose-pine-subtle hover:text-rose-pine-iris" 21 + > 22 + <span class="icon-[tabler--arrow-left] size-4"></span> 23 + <span class="leading-none group-[:hover]:underline"> 24 + Back 25 + </span> 26 + </a> 27 + </div> 28 + 29 + <div class="w-full bg-rose-pine-base p-4 shadow-xl rounded-md"> 30 + <h2 class="text-xl mb-3 font-bold">Cartesia Settings</h2> 31 + 32 + {#await keyInvocation} 33 + <div class="flex items-center justify-center"> 34 + <span 35 + class="icon-[svg-spinners--180-ring-with-bg] text-rose-pine-muted" 36 + ></span> 37 + </div> 38 + {:then hasKey} 39 + {#if hasKey} 40 + <div 41 + class="p-3 rounded-md grid grid-flow-col grid-cols-[auto_auto_1fr] grid-rows-1 bg-rose-pine-pine items-center gap-3" 42 + > 43 + <span class="icon-[tabler--circle-check-filled] size-5"></span> 44 + <p>Cartesia key has been set!</p> 45 + <button 46 + onclick={deleteKey} 47 + class="justify-self-end text-xs hover:underline" 48 + > 49 + delete key 50 + </button> 51 + </div> 52 + {:else} 53 + <label for="cartesia-key" class="block mb-1 text-sm text-rose-pine-subtle" 54 + >API Key</label> 55 + <div class="flex"> 56 + <input 57 + placeholder="my key..." 58 + bind:value={tempCredential} 59 + class="bg-rose-pine-surface px-3 py-2 flex-1" 60 + /> 61 + <button 62 + class="bg-rose-pine-foam px-6 py-2 text-rose-pine-highlight-low font-bold" 63 + onclick={async () => { 64 + await invoke("set_secret", { 65 + name: "cartesia_api_key", 66 + value: tempCredential, 67 + }); 68 + 69 + keyInvocation = invoke("has_secret", { 70 + name: "cartesia_api_key", 71 + }); 72 + }} 73 + > 74 + Save 75 + </button> 76 + </div> 77 + 78 + <p 79 + class="mt-2 bg-rose-pine-gold text-rose-pine-highlight-low p-3 rounded-md leading-snug flex gap-3" 80 + > 81 + <span class="icon-[tabler--exclamation-circle-filled] size-6"></span> 82 + You must set a key before managing other Cartesia settings 83 + </p> 84 + {/if} 85 + {:catch err} 86 + <p>{err}</p> 87 + {/await} 88 + </div>
+19 -1
static/svelte.svg
··· 1 - <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="26.6" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 308"><path fill="#FF3E00" d="M239.682 40.707C211.113-.182 154.69-12.301 113.895 13.69L42.247 59.356a82.198 82.198 0 0 0-37.135 55.056a86.566 86.566 0 0 0 8.536 55.576a82.425 82.425 0 0 0-12.296 30.719a87.596 87.596 0 0 0 14.964 66.244c28.574 40.893 84.997 53.007 125.787 27.016l71.648-45.664a82.182 82.182 0 0 0 37.135-55.057a86.601 86.601 0 0 0-8.53-55.577a82.409 82.409 0 0 0 12.29-30.718a87.573 87.573 0 0 0-14.963-66.244"></path><path fill="#FFF" d="M106.889 270.841c-23.102 6.007-47.497-3.036-61.103-22.648a52.685 52.685 0 0 1-9.003-39.85a49.978 49.978 0 0 1 1.713-6.693l1.35-4.115l3.671 2.697a92.447 92.447 0 0 0 28.036 14.007l2.663.808l-.245 2.659a16.067 16.067 0 0 0 2.89 10.656a17.143 17.143 0 0 0 18.397 6.828a15.786 15.786 0 0 0 4.403-1.935l71.67-45.672a14.922 14.922 0 0 0 6.734-9.977a15.923 15.923 0 0 0-2.713-12.011a17.156 17.156 0 0 0-18.404-6.832a15.78 15.78 0 0 0-4.396 1.933l-27.35 17.434a52.298 52.298 0 0 1-14.553 6.391c-23.101 6.007-47.497-3.036-61.101-22.649a52.681 52.681 0 0 1-9.004-39.849a49.428 49.428 0 0 1 22.34-33.114l71.664-45.677a52.218 52.218 0 0 1 14.563-6.398c23.101-6.007 47.497 3.036 61.101 22.648a52.685 52.685 0 0 1 9.004 39.85a50.559 50.559 0 0 1-1.713 6.692l-1.35 4.116l-3.67-2.693a92.373 92.373 0 0 0-28.037-14.013l-2.664-.809l.246-2.658a16.099 16.099 0 0 0-2.89-10.656a17.143 17.143 0 0 0-18.398-6.828a15.786 15.786 0 0 0-4.402 1.935l-71.67 45.674a14.898 14.898 0 0 0-6.73 9.975a15.9 15.9 0 0 0 2.709 12.012a17.156 17.156 0 0 0 18.404 6.832a15.841 15.841 0 0 0 4.402-1.935l27.345-17.427a52.147 52.147 0 0 1 14.552-6.397c23.101-6.006 47.497 3.037 61.102 22.65a52.681 52.681 0 0 1 9.003 39.848a49.453 49.453 0 0 1-22.34 33.12l-71.664 45.673a52.218 52.218 0 0 1-14.563 6.398"></path></svg> 1 + <svg 2 + xmlns="http://www.w3.org/2000/svg" 3 + xmlns:xlink="http://www.w3.org/1999/xlink" 4 + aria-hidden="true" 5 + role="img" 6 + class="iconify iconify--logos" 7 + width="26.6" 8 + height="32" 9 + preserveAspectRatio="xMidYMid meet" 10 + viewBox="0 0 256 308" 11 + > 12 + <path 13 + fill="#FF3E00" 14 + d="M239.682 40.707C211.113-.182 154.69-12.301 113.895 13.69L42.247 59.356a82.198 82.198 0 0 0-37.135 55.056a86.566 86.566 0 0 0 8.536 55.576a82.425 82.425 0 0 0-12.296 30.719a87.596 87.596 0 0 0 14.964 66.244c28.574 40.893 84.997 53.007 125.787 27.016l71.648-45.664a82.182 82.182 0 0 0 37.135-55.057a86.601 86.601 0 0 0-8.53-55.577a82.409 82.409 0 0 0 12.29-30.718a87.573 87.573 0 0 0-14.963-66.244" 15 + ></path><path 16 + fill="#FFF" 17 + d="M106.889 270.841c-23.102 6.007-47.497-3.036-61.103-22.648a52.685 52.685 0 0 1-9.003-39.85a49.978 49.978 0 0 1 1.713-6.693l1.35-4.115l3.671 2.697a92.447 92.447 0 0 0 28.036 14.007l2.663.808l-.245 2.659a16.067 16.067 0 0 0 2.89 10.656a17.143 17.143 0 0 0 18.397 6.828a15.786 15.786 0 0 0 4.403-1.935l71.67-45.672a14.922 14.922 0 0 0 6.734-9.977a15.923 15.923 0 0 0-2.713-12.011a17.156 17.156 0 0 0-18.404-6.832a15.78 15.78 0 0 0-4.396 1.933l-27.35 17.434a52.298 52.298 0 0 1-14.553 6.391c-23.101 6.007-47.497-3.036-61.101-22.649a52.681 52.681 0 0 1-9.004-39.849a49.428 49.428 0 0 1 22.34-33.114l71.664-45.677a52.218 52.218 0 0 1 14.563-6.398c23.101-6.007 47.497 3.036 61.101 22.648a52.685 52.685 0 0 1 9.004 39.85a50.559 50.559 0 0 1-1.713 6.692l-1.35 4.116l-3.67-2.693a92.373 92.373 0 0 0-28.037-14.013l-2.664-.809l.246-2.658a16.099 16.099 0 0 0-2.89-10.656a17.143 17.143 0 0 0-18.398-6.828a15.786 15.786 0 0 0-4.402 1.935l-71.67 45.674a14.898 14.898 0 0 0-6.73 9.975a15.9 15.9 0 0 0 2.709 12.012a17.156 17.156 0 0 0 18.404 6.832a15.841 15.841 0 0 0 4.402-1.935l27.345-17.427a52.147 52.147 0 0 1 14.552-6.397c23.101-6.006 47.497 3.037 61.102 22.65a52.681 52.681 0 0 1 9.003 39.848a49.453 49.453 0 0 1-22.34 33.12l-71.664 45.673a52.218 52.218 0 0 1-14.563 6.398" 18 + ></path> 19 + </svg>
+32 -6
static/tauri.svg
··· 1 - <svg width="206" height="231" viewBox="0 0 206 231" fill="none" xmlns="http://www.w3.org/2000/svg"> 2 - <path d="M143.143 84C143.143 96.1503 133.293 106 121.143 106C108.992 106 99.1426 96.1503 99.1426 84C99.1426 71.8497 108.992 62 121.143 62C133.293 62 143.143 71.8497 143.143 84Z" fill="#FFC131"/> 3 - <ellipse cx="84.1426" cy="147" rx="22" ry="22" transform="rotate(180 84.1426 147)" fill="#24C8DB"/> 4 - <path fill-rule="evenodd" clip-rule="evenodd" d="M166.738 154.548C157.86 160.286 148.023 164.269 137.757 166.341C139.858 160.282 141 153.774 141 147C141 144.543 140.85 142.121 140.558 139.743C144.975 138.204 149.215 136.139 153.183 133.575C162.73 127.404 170.292 118.608 174.961 108.244C179.63 97.8797 181.207 86.3876 179.502 75.1487C177.798 63.9098 172.884 53.4021 165.352 44.8883C157.82 36.3744 147.99 30.2165 137.042 27.1546C126.095 24.0926 114.496 24.2568 103.64 27.6274C92.7839 30.998 83.1319 37.4317 75.8437 46.1553C74.9102 47.2727 74.0206 48.4216 73.176 49.5993C61.9292 50.8488 51.0363 54.0318 40.9629 58.9556C44.2417 48.4586 49.5653 38.6591 56.679 30.1442C67.0505 17.7298 80.7861 8.57426 96.2354 3.77762C111.685 -1.01901 128.19 -1.25267 143.769 3.10474C159.348 7.46215 173.337 16.2252 184.056 28.3411C194.775 40.457 201.767 55.4101 204.193 71.404C206.619 87.3978 204.374 103.752 197.73 118.501C191.086 133.25 180.324 145.767 166.738 154.548ZM41.9631 74.275L62.5557 76.8042C63.0459 72.813 63.9401 68.9018 65.2138 65.1274C57.0465 67.0016 49.2088 70.087 41.9631 74.275Z" fill="#FFC131"/> 5 - <path fill-rule="evenodd" clip-rule="evenodd" d="M38.4045 76.4519C47.3493 70.6709 57.2677 66.6712 67.6171 64.6132C65.2774 70.9669 64 77.8343 64 85.0001C64 87.1434 64.1143 89.26 64.3371 91.3442C60.0093 92.8732 55.8533 94.9092 51.9599 97.4256C42.4128 103.596 34.8505 112.392 30.1816 122.756C25.5126 133.12 23.9357 144.612 25.6403 155.851C27.3449 167.09 32.2584 177.598 39.7906 186.112C47.3227 194.626 57.153 200.784 68.1003 203.846C79.0476 206.907 90.6462 206.743 101.502 203.373C112.359 200.002 122.011 193.568 129.299 184.845C130.237 183.722 131.131 182.567 131.979 181.383C143.235 180.114 154.132 176.91 164.205 171.962C160.929 182.49 155.596 192.319 148.464 200.856C138.092 213.27 124.357 222.426 108.907 227.222C93.458 232.019 76.9524 232.253 61.3736 227.895C45.7948 223.538 31.8055 214.775 21.0867 202.659C10.3679 190.543 3.37557 175.59 0.949823 159.596C-1.47592 143.602 0.768139 127.248 7.41237 112.499C14.0566 97.7497 24.8183 85.2327 38.4045 76.4519ZM163.062 156.711L163.062 156.711C162.954 156.773 162.846 156.835 162.738 156.897C162.846 156.835 162.954 156.773 163.062 156.711Z" fill="#24C8DB"/> 6 - </svg> 1 + <svg 2 + width="206" 3 + height="231" 4 + viewBox="0 0 206 231" 5 + fill="none" 6 + xmlns="http://www.w3.org/2000/svg" 7 + > 8 + <path 9 + d="M143.143 84C143.143 96.1503 133.293 106 121.143 106C108.992 106 99.1426 96.1503 99.1426 84C99.1426 71.8497 108.992 62 121.143 62C133.293 62 143.143 71.8497 143.143 84Z" 10 + fill="#FFC131" 11 + /> 12 + <ellipse 13 + cx="84.1426" 14 + cy="147" 15 + rx="22" 16 + ry="22" 17 + transform="rotate(180 84.1426 147)" 18 + fill="#24C8DB" 19 + /> 20 + <path 21 + fill-rule="evenodd" 22 + clip-rule="evenodd" 23 + d="M166.738 154.548C157.86 160.286 148.023 164.269 137.757 166.341C139.858 160.282 141 153.774 141 147C141 144.543 140.85 142.121 140.558 139.743C144.975 138.204 149.215 136.139 153.183 133.575C162.73 127.404 170.292 118.608 174.961 108.244C179.63 97.8797 181.207 86.3876 179.502 75.1487C177.798 63.9098 172.884 53.4021 165.352 44.8883C157.82 36.3744 147.99 30.2165 137.042 27.1546C126.095 24.0926 114.496 24.2568 103.64 27.6274C92.7839 30.998 83.1319 37.4317 75.8437 46.1553C74.9102 47.2727 74.0206 48.4216 73.176 49.5993C61.9292 50.8488 51.0363 54.0318 40.9629 58.9556C44.2417 48.4586 49.5653 38.6591 56.679 30.1442C67.0505 17.7298 80.7861 8.57426 96.2354 3.77762C111.685 -1.01901 128.19 -1.25267 143.769 3.10474C159.348 7.46215 173.337 16.2252 184.056 28.3411C194.775 40.457 201.767 55.4101 204.193 71.404C206.619 87.3978 204.374 103.752 197.73 118.501C191.086 133.25 180.324 145.767 166.738 154.548ZM41.9631 74.275L62.5557 76.8042C63.0459 72.813 63.9401 68.9018 65.2138 65.1274C57.0465 67.0016 49.2088 70.087 41.9631 74.275Z" 24 + fill="#FFC131" 25 + /> 26 + <path 27 + fill-rule="evenodd" 28 + clip-rule="evenodd" 29 + d="M38.4045 76.4519C47.3493 70.6709 57.2677 66.6712 67.6171 64.6132C65.2774 70.9669 64 77.8343 64 85.0001C64 87.1434 64.1143 89.26 64.3371 91.3442C60.0093 92.8732 55.8533 94.9092 51.9599 97.4256C42.4128 103.596 34.8505 112.392 30.1816 122.756C25.5126 133.12 23.9357 144.612 25.6403 155.851C27.3449 167.09 32.2584 177.598 39.7906 186.112C47.3227 194.626 57.153 200.784 68.1003 203.846C79.0476 206.907 90.6462 206.743 101.502 203.373C112.359 200.002 122.011 193.568 129.299 184.845C130.237 183.722 131.131 182.567 131.979 181.383C143.235 180.114 154.132 176.91 164.205 171.962C160.929 182.49 155.596 192.319 148.464 200.856C138.092 213.27 124.357 222.426 108.907 227.222C93.458 232.019 76.9524 232.253 61.3736 227.895C45.7948 223.538 31.8055 214.775 21.0867 202.659C10.3679 190.543 3.37557 175.59 0.949823 159.596C-1.47592 143.602 0.768139 127.248 7.41237 112.499C14.0566 97.7497 24.8183 85.2327 38.4045 76.4519ZM163.062 156.711L163.062 156.711C162.954 156.773 162.846 156.835 162.738 156.897C162.846 156.835 162.954 156.773 163.062 156.711Z" 30 + fill="#24C8DB" 31 + /> 32 + </svg>
+40 -1
static/vite.svg
··· 1 - <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg> 1 + <svg 2 + xmlns="http://www.w3.org/2000/svg" 3 + xmlns:xlink="http://www.w3.org/1999/xlink" 4 + aria-hidden="true" 5 + role="img" 6 + class="iconify iconify--logos" 7 + width="31.88" 8 + height="32" 9 + preserveAspectRatio="xMidYMid meet" 10 + viewBox="0 0 256 257" 11 + > 12 + <defs><linearGradient 13 + id="IconifyId1813088fe1fbc01fb466" 14 + x1="-.828%" 15 + x2="57.636%" 16 + y1="7.652%" 17 + y2="78.411%" 18 + ><stop offset="0%" stop-color="#41D1FF"></stop><stop 19 + offset="100%" 20 + stop-color="#BD34FE" 21 + ></stop></linearGradient><linearGradient 22 + id="IconifyId1813088fe1fbc01fb467" 23 + x1="43.376%" 24 + x2="50.316%" 25 + y1="2.242%" 26 + y2="89.03%" 27 + ><stop offset="0%" stop-color="#FFEA83"></stop><stop 28 + offset="8.333%" 29 + stop-color="#FFDD35" 30 + ></stop><stop 31 + offset="100%" 32 + stop-color="#FFA800" 33 + ></stop></linearGradient></defs><path 34 + fill="url(#IconifyId1813088fe1fbc01fb466)" 35 + d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z" 36 + ></path><path 37 + fill="url(#IconifyId1813088fe1fbc01fb467)" 38 + d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z" 39 + ></path> 40 + </svg>
+18 -18
svelte.config.js
··· 1 - // Tauri doesn't have a Node.js server to do proper SSR 2 - // so we use adapter-static with a fallback to index.html to put the site in SPA mode 3 - // See: https://svelte.dev/docs/kit/single-page-apps 4 - // See: https://v2.tauri.app/start/frontend/sveltekit/ for more info 5 - import adapter from "@sveltejs/adapter-static"; 6 - import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; 7 - 8 - /** @type {import('@sveltejs/kit').Config} */ 9 - const config = { 10 - preprocess: vitePreprocess(), 11 - kit: { 12 - adapter: adapter({ 13 - fallback: "index.html", 14 - }), 15 - }, 16 - }; 17 - 18 - export default config; 1 + // Tauri doesn't have a Node.js server to do proper SSR 2 + // so we use adapter-static with a fallback to index.html to put the site in SPA mode 3 + // See: https://svelte.dev/docs/kit/single-page-apps 4 + // See: https://v2.tauri.app/start/frontend/sveltekit/ for more info 5 + import adapter from "npm:@sveltejs/adapter-static"; 6 + import { vitePreprocess } from "npm:@sveltejs/vite-plugin-svelte"; 7 + 8 + /** @type {import('@sveltejs/kit').Config} */ 9 + const config = { 10 + preprocess: vitePreprocess(), 11 + kit: { 12 + adapter: adapter({ 13 + fallback: "index.html", 14 + }), 15 + }, 16 + }; 17 + 18 + export default config;
+19 -19
tsconfig.json
··· 1 - { 2 - "extends": "./.svelte-kit/tsconfig.json", 3 - "compilerOptions": { 4 - "allowJs": true, 5 - "checkJs": true, 6 - "esModuleInterop": true, 7 - "forceConsistentCasingInFileNames": true, 8 - "resolveJsonModule": true, 9 - "skipLibCheck": true, 10 - "sourceMap": true, 11 - "strict": true, 12 - "moduleResolution": "bundler" 13 - } 14 - // Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias 15 - // except $lib which is handled by https://svelte.dev/docs/kit/configuration#files 16 - // 17 - // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes 18 - // from the referenced tsconfig.json - TypeScript does not merge them in 19 - } 1 + { 2 + "extends": "./.svelte-kit/tsconfig.json", 3 + "compilerOptions": { 4 + "allowJs": true, 5 + "checkJs": true, 6 + "esModuleInterop": true, 7 + "forceConsistentCasingInFileNames": true, 8 + "resolveJsonModule": true, 9 + "skipLibCheck": true, 10 + "sourceMap": true, 11 + "strict": true, 12 + "moduleResolution": "bundler" 13 + } 14 + // Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias 15 + // except $lib which is handled by https://svelte.dev/docs/kit/configuration#files 16 + // 17 + // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes 18 + // from the referenced tsconfig.json - TypeScript does not merge them in 19 + }
+34 -34
vite.config.js
··· 1 - import { defineConfig } from "vite"; 2 - import { sveltekit } from "@sveltejs/kit/vite"; 3 - import deno from "@deno/vite-plugin"; 4 - import tailwindcss from "@tailwindcss/vite"; 5 - 6 - // @ts-expect-error process is a nodejs global 7 - const host = Deno.env.get("TAURI_DEV_HOST"); 8 - 9 - // https://vite.dev/config/ 10 - export default defineConfig(async () => ({ 11 - plugins: [sveltekit(), tailwindcss(), deno()], 12 - 13 - // Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build` 14 - // 15 - // 1. prevent Vite from obscuring rust errors 16 - clearScreen: false, 17 - // 2. tauri expects a fixed port, fail if that port is not available 18 - server: { 19 - port: 1420, 20 - strictPort: true, 21 - host: host || false, 22 - hmr: host 23 - ? { 24 - protocol: "ws", 25 - host, 26 - port: 1421, 27 - } 28 - : undefined, 29 - watch: { 30 - // 3. tell Vite to ignore watching `src-tauri` and jujutsu directory 31 - ignored: ["**/src-tauri/**", "**/.jj/**"], 32 - }, 33 - }, 34 - })); 1 + import { defineConfig } from "vite"; 2 + import { sveltekit } from "@sveltejs/kit/vite"; 3 + import deno from "@deno/vite-plugin"; 4 + import tailwindcss from "@tailwindcss/vite"; 5 + 6 + // @ts-expect-error process is a nodejs global 7 + const host = Deno.env.get("TAURI_DEV_HOST"); 8 + 9 + // https://vite.dev/config/ 10 + export default defineConfig(async () => ({ 11 + plugins: [sveltekit(), tailwindcss(), deno()], 12 + 13 + // Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build` 14 + // 15 + // 1. prevent Vite from obscuring rust errors 16 + clearScreen: false, 17 + // 2. tauri expects a fixed port, fail if that port is not available 18 + server: { 19 + port: 1420, 20 + strictPort: true, 21 + host: host || false, 22 + hmr: host 23 + ? { 24 + protocol: "ws", 25 + host, 26 + port: 1421, 27 + } 28 + : undefined, 29 + watch: { 30 + // 3. tell Vite to ignore watching `src-tauri` and jujutsu directory 31 + ignored: ["**/src-tauri/**", "**/.jj/**"], 32 + }, 33 + }, 34 + }));