mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 03:01:21 +02:00
Added new download functions to client.ts:
- downloadArchive(id, filename) - for 3MF archive downloads
- downloadSource3mf(archiveId) - for source 3MF downloads
- downloadF3d(archiveId) - for Fusion 360 file downloads
- downloadLibraryFile(id, filename) - for library file downloads
- downloadPrinterFile(printerId, path) - for printer file downloads
- exportBackup() - fixed (already existed, just added auth header)
Updated components to use auth-aware downloads:
- ArchivesPage.tsx - 8 places fixed (F3D, Source 3MF, Archive downloads)
- FileManagerPage.tsx - Library file download fixed
- FileManagerModal.tsx - Printer file download fixed
All fetch-based downloads now include the Authorization: Bearer ${token} header when auth is enabled.
This commit is contained in:
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
./test_frontend.sh && ./test_backend.sh && ./test_docker.sh
|
||||
Reference in New Issue
Block a user