Commit Graph

400 Commits

Author SHA1 Message Date
Leon Bösche
9bc03f6db8 Add file viewer dispatch for handling multiple file types and extend download timeout 2026-01-25 16:14:03 +01:00
Leon Bösche
d5aecdfba8 idle 2026-01-25 16:04:45 +01:00
Leon Bösche
5fa436f204 idle 2026-01-25 16:03:57 +01:00
Leon Bösche
bd4796116e Refactor ModernGlassButton to accept customizable padding 2026-01-25 15:52:05 +01:00
Leon Bösche
0aea602122 Implement public WOPI routes for shared files and integrate Collabora for document viewing 2026-01-25 15:47:59 +01:00
Leon Bösche
7582f27899 Add DOCX viewer support in public file viewer 2026-01-25 15:44:32 +01:00
Leon Bösche
532848ebdf Fix PDF loading by preserving Nextcloud headers
- Revert to synchronous download but keep 5-minute timeout
- Copy Content-Length and other headers from Nextcloud response
- Ensures PDF viewer gets proper content metadata
- Maintains streaming for audio/video with headers
2026-01-25 15:42:10 +01:00
Leon Bösche
387f39cbcc Fix public file streaming with async download
- Use io.Pipe for immediate response headers
- Start WebDAV download in goroutine to avoid blocking
- Stream content as it becomes available
- Prevents client timeouts on slow downloads
- Maintains CORS and MIME type headers
2026-01-25 15:40:04 +01:00
Leon Bösche
4d1e83e9e7 Fix public file download timeout
- Increase timeout for WebDAV downloads from default to 5 minutes
- Prevents 504 Gateway Timeout errors when downloading large files
- Uses context.WithTimeout for better control over download duration
2026-01-25 15:26:09 +01:00
Leon Bösche
a88121d465 Fix PDF loading in public file viewer
- Change PDF viewer to use SfPdfViewer.network instead of loading bytes
- Remove _loadPdfBytes method and _pdfBytes variable
- Use direct network loading for better performance and reliability
- Add onDocumentLoadFailed callback for error handling
- Remove unused dart:typed_data import
2026-01-25 15:23:01 +01:00
Leon Bösche
86f0cb188e Fix public file viewer compilation errors and add PDF styling
- Add missing imports for SfPdfViewer and Uint8List
- Fix _initializeVideoPlayer method declaration
- Correct SfTheme import to use syncfusion_flutter_core/theme.dart
- Restore PDF bytes loading via API for public shares
- Add SfTheme wrapper for PDF viewer styling
2026-01-25 15:13:01 +01:00
Leon Bösche
92bafe57fb Frontend: restore PDF bytes loading for public viewer to fix loading, add SfTheme for app styling consistency 2026-01-25 14:43:44 +01:00
Leon Bösche
b25dd0a10c Remove unused import of 'dart:typed_data' in public_file_viewer.dart 2026-01-25 14:17:28 +01:00
Leon Bösche
0d41cdeebf Frontend: unify PDF viewer to use network URL like internal viewer, remove bytes loading hack 2026-01-25 14:16:28 +01:00
Leon Bösche
083ab8c95d Revert "Restore Traefik dynamic public_share config and copy it during auto-deploy"
This reverts commit 1eae6d5713.
2026-01-25 14:15:48 +01:00
Leon Bösche
62d976eae5 Revert "Remove CORS middleware from public share configuration"
This reverts commit 13a5310ba5.
2026-01-25 14:15:43 +01:00
Leon Bösche
13a5310ba5 Remove CORS middleware from public share configuration 2026-01-25 04:02:15 +01:00
Leon Bösche
1eae6d5713 Restore Traefik dynamic public_share config and copy it during auto-deploy 2026-01-25 03:54:39 +01:00
Leon Bösche
0311122602 Revert API base URL to go.b0esche.cloud to fix login 2026-01-25 03:47:03 +01:00
Leon Bösche
93bc0e582a Change API base URL to www.b0esche.cloud and revert host to www for public URLs 2026-01-25 03:34:17 +01:00
Leon Bösche
d3c174f623 Fix public share URLs to use request host instead of hardcoded www.b0esche.cloud 2026-01-25 03:33:28 +01:00
Leon Bösche
5de1ab0b18 Refactor download button: adjust size and padding for improved layout 2026-01-25 03:32:35 +01:00
Leon Bösche
15de51feb8 Enhance download button: center icon and increase size for better visibility 2026-01-25 03:25:06 +01:00
Leon Bösche
08fc0906c0 Add range request support to publicFileViewHandler for video/audio seeking 2026-01-25 03:23:59 +01:00
Leon Bösche
e7b222bc7d Force correct Content-Type for public files and add OPTIONS handlers for CORS 2026-01-25 03:22:39 +01:00
Leon Bösche
1f3b70ba74 Fix shared audio/video viewer: add CORS and Content-Type headers to public endpoints 2026-01-25 02:47:39 +01:00
Leon Bösche
290556e602 Fix public file viewer: adjust padding for improved layout 2026-01-25 02:30:33 +01:00
Leon Bösche
927d35c984 Fix video view factory: format code for better readability 2026-01-25 02:29:58 +01:00
Leon Bösche
aec4fd0272 Fix public file share handler: include audio MIME types for inline viewing 2026-01-25 02:29:53 +01:00
Leon Bösche
91a9759874 Fix file viewer: increase download button width for better accessibility 2026-01-25 02:20:17 +01:00
Leon Bösche
cb560366b8 Fix audio player: streamline setUrl method call for web implementation 2026-01-25 02:00:59 +01:00
Leon Bösche
132f0cae6c Fix audio player: use explicit platform-specific imports and dynamic typing 2026-01-25 01:59:46 +01:00
Leon Bösche
aa0983eba3 Fix audio source setting: add ignore comments for undefined method and getter 2026-01-25 01:43:09 +01:00
Leon Bösche
143675bad0 Fix web build: add ignore comments for conditional import methods 2026-01-25 01:42:27 +01:00
Leon Bösche
edf83de94c Fix web build: use dynamic cast for Blob arguments 2026-01-25 01:37:22 +01:00
Leon Bösche
edced8825d Fix flutter analyze errors: correct Blob constructor usage and dispose method 2026-01-25 01:31:33 +01:00
Leon Bösche
88f1f5d87e Fix download button centering and width, fix audio/video loading by using blob URLs for web 2026-01-25 01:29:05 +01:00
Leon Bösche
9286fe4dd8 idle0119 2026-01-25 01:19:51 +01:00
Leon Bösche
f346b628ed Fix audio player bar height: center it instead of expanding 2026-01-25 01:19:37 +01:00
Leon Bösche
b819fee208 Fix download button: show only download icon without text 2026-01-25 01:16:38 +01:00
Leon Bösche
cbb18854da idleee 2026-01-25 01:09:25 +01:00
Leon Bösche
bb8cb5a23d Fix PDF loading: fetch PDF bytes directly and use SfPdfViewer.memory() 2026-01-25 01:08:47 +01:00
Leon Bösche
73db23f590 Enhance close button in PublicFileViewer: add custom button style to remove splash effect 2026-01-25 01:05:29 +01:00
Leon Bösche
8fd0ded519 Reorder PublicFileViewer header: download button left, close button right, add 4px top padding 2026-01-25 00:57:55 +01:00
Leon Bösche
c29bd89a0a idle 2026-01-25 00:45:26 +01:00
Leon Bösche
02e4eeec07 Enhance PublicFileViewer: add PDF/video viewing, ModernGlassButton, and improved layout 2026-01-25 00:44:40 +01:00
Leon Bösche
d482c533d7 Refactor initialLocation formatting in GoRouter for improved readability 2026-01-25 00:34:34 +01:00
Leon Bösche
db331ef4ca Fix share link routing: add initialLocation to GoRouter and fix download URL host 2026-01-25 00:34:16 +01:00
Leon Bösche
f44d64b7ad Fix share URL host to always use www.b0esche.cloud instead of r.Host 2026-01-25 00:27:58 +01:00
Leon Bösche
7ed915555b Update file share link host to use 'www' for consistency 2026-01-25 00:20:32 +01:00