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:
maziggy
2026-02-03 12:04:02 +01:00
parent 7264e5fb40
commit 08f2dffd75
5 changed files with 160 additions and 37 deletions
Executable
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
./test_frontend.sh && ./test_backend.sh && ./test_docker.sh