Commit Graph

416 Commits

Author SHA1 Message Date
Leon Bösche
3854234a3c Update WOPI source URL for document viewing in publicFileShareHandler 2026-01-25 19:22:26 +01:00
Leon Bösche
0617d258f6 idle 2026-01-25 19:18:24 +01:00
Leon Bösche
f353e634d2 idle 2026-01-25 19:11:04 +01:00
Leon Bösche
b041cd5440 Set initial location for GoRouter based on web platform and clean up unused imports in PublicFileViewer 2026-01-25 18:59:28 +01:00
Leon Bösche
3fb556c8f1 Refactor URL generation in file sharing handlers to remove hash fragment 2026-01-25 18:50:02 +01:00
Leon Bösche
904e909ce1 Set initial location for GoRouter based on web URL hash 2026-01-25 18:37:01 +01:00
Leon Bösche
2205536549 idle 2026-01-25 18:28:39 +01:00
Leon Bösche
0b07522d7c Set URL strategy for web support in main.dart 2026-01-25 18:19:20 +01:00
Leon Bösche
d471634f30 Remove unused web URL strategy configuration from main.dart 2026-01-25 17:16:39 +01:00
Leon Bösche
9aa1667e9c Implement authentication check and redirect for internal file access in PublicFileViewer 2026-01-25 17:11:58 +01:00
Leon Bösche
565b9fed6f Fix GoRouter initialLocation for web share links 2026-01-25 16:57:51 +01:00
Leon Bösche
7a58769139 Enable path-based URL routing for clean share links 2026-01-25 16:45:33 +01:00
Leon Bösche
a451ae8a98 Adjust padding and icon size for download button in PublicFileViewer 2026-01-25 16:40:02 +01:00
Leon Bösche
1c1606d61d Remove duplicate file info header in public file viewer 2026-01-25 16:32:32 +01:00
Leon Bösche
6121acdc4b Adjust padding for leading ModernGlassButton in PublicFileViewer 2026-01-25 16:25:44 +01:00
Leon Bösche
26fa1712ec Fix WebDAV 504 by using internal Nextcloud URL 2026-01-25 16:23:18 +01:00
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