20738f3623
Replace the legacy React UI with the new Svelte-based one. Introduce a Playground in the UI to quickly test out text, image, text to speech and speech to text models behind llama-swap.
Key Changes
New Svelte UI (ui-svelte/)
- Multi-tab Playground with Chat, Image Generation, Audio Transcription, and Speech interfaces
- Chat: message editing/regeneration, markdown rendering with LaTeX math support, image attachments, code syntax highlighting
- Image: size selector, download/fullscreen viewing
- Audio: transcription with peer support
- Speech: voice caching with manual refresh, download button
- Responsive mobile layout with collapsible navigation
- XSS fixes and accessibility improvements
Proxy Improvements
- Add gzip/brotli compression for UI static assets (proxy/ui_compress.go)
- Add GET /v1/audio/voices?model={model} endpoint for voice listing
- Add peer support for /v1/audio/transcriptions
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"name": "ui-svelte",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"start": "vite",
|
|
"build": "vite build --emptyOutDir",
|
|
"preview": "vite preview",
|
|
"check": "svelte-check --tsconfig ./tsconfig.json",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"devDependencies": {
|
|
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
"@tailwindcss/vite": "^4.1.8",
|
|
"@tsconfig/svelte": "^5.0.4",
|
|
"@types/hast": "^3.0.4",
|
|
"@types/node": "^25.1.0",
|
|
"svelte": "^5.19.0",
|
|
"svelte-check": "^4.1.4",
|
|
"tailwindcss": "^4.1.8",
|
|
"typescript": "~5.8.3",
|
|
"vite": "^6.3.5",
|
|
"vite-plugin-compression2": "^2.4.0",
|
|
"vitest": "^4.0.18"
|
|
},
|
|
"dependencies": {
|
|
"highlight.js": "^11.11.1",
|
|
"katex": "^0.16.28",
|
|
"lucide-svelte": "^0.563.0",
|
|
"rehype-katex": "^7.0.1",
|
|
"rehype-stringify": "^10.0.1",
|
|
"remark-gfm": "^4.0.1",
|
|
"remark-math": "^6.0.0",
|
|
"remark-parse": "^11.0.0",
|
|
"remark-rehype": "^11.1.2",
|
|
"svelte-spa-router": "^4.0.1",
|
|
"unified": "^11.0.5",
|
|
"unist-util-visit": "^5.1.0"
|
|
}
|
|
}
|