Switch FileBow to English and present the app in the public README

This commit is contained in:
nordik committed 2026-10-27 01:39:24 +01:00
1 parent 2b897267d1
commit 84164251e3
36 files changed
+346 -280

No files matched your search

+39 -63
View File
@@ -1,84 +1,60 @@
<img src="assets/icon.png" alt="FileBow icon" width="80" height="80">
# FileBow
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/E0Z827VO8I)
**Local file tools for Windows.**
Windows-App zum lokalen Konvertieren, Komprimieren und Bearbeiten von Dateien. Deutsche Oberfläche, Explorer-Auswahl, Radialmenü, Infobereich und optionaler Windows-Autostart. Keine Anmeldung, Telemetrie, Kaufabfrage oder Auftragsbegrenzung.
Convert, compress and edit images, video, audio and documents from one desktop app. Select files in File Explorer and press **Ctrl + Space** to open the radial menu, or drop them into FileBow.
## Starten
Built by **Nordik.dev** for Windows 10 and 11, x64.
`out/FileBow-win32-x64/FileBow.exe` startet die portable Anwendung. Der gesamte Ordner wird benötigt.
![FileBow image tools in dark mode](store/screenshots/02-Tools.png)
Das signierte Testpaket liegt unter `out/msix/FileBow_1.0.0.0_x64_Development.msix`. Die Signatur verwendet ein lokales Entwicklungszertifikat. Es wurde nicht systemweit als vertrauenswürdig installiert. Für eine Testinstallation in einer Windows-Testumgebung `scripts/install-development.ps1` in einer administrativen PowerShell ausführen. Dieses Skript vertraut dem beiliegenden Entwicklungszertifikat und installiert das Paket. Es ist kein Store-Installationsskript.
## What it does
Das Paket für Partner Center liegt unter `out/msix/FileBow_1.0.0.0_x64_Store.msix` und verwendet die bestätigte Identität `Nordik.dev.FileBow`. Es ist für den Store-Upload unsigniert; zur lokalen Ausführung die portable App oder das Entwicklungspaket verwenden. Offene Veröffentlichungsschritte stehen in [store/RELEASE.md](store/RELEASE.md).
## Bedienung
- Dateien im Explorer markieren, dann **Strg + Leertaste** zum Konvertieren oder **Alt + Leertaste** für Werkzeuge drücken.
- Im Radialmenü eine Aktion anklicken oder die entsprechende Ziffer drücken. **Esc** schließt es.
- Alternativ Dateien in das Hauptfenster ziehen oder über „Dateien auswählen“ öffnen.
- Neue Dateien werden neben den Originalen gespeichert. Bei Namenskonflikten wird eine Nummer angehängt.
- Unter „Verlauf“ öffnen die Ergebnis-Schaltflächen den Speicherort im Explorer.
- Der Autostart ist standardmäßig ausgeschaltet. Bei MSIX verwendet er `Windows.ApplicationModel.StartupTask`.
## Funktionen
| Bereich | Funktionen |
| Files | Tools |
| --- | --- |
| Bilder | JPEG, PNG, WebP, AVIF, TIFF, BMP, GIF, HEIC/HEIF, ICO lesen; Formatausgabe über Radialmenü; Zuschneiden, Größe ändern, Drehen, Spiegeln, Komprimieren, Metadaten entfernen, PDF |
| Video | MP4, WebM, GIF; Komprimieren, Größe ändern, Einzelbild, Audio als MP3, Metadaten entfernen |
| Audio | MP3, WAV, M4A, FLAC, OGG; Komprimieren, Metadaten entfernen |
| PDF | Text/Markdown/DOCX, Zusammenfügen, verlustfreie Optimierung, Metadaten entfernen, AES-256-Passwort setzen und mit bekanntem Passwort entfernen |
| Dokumente | TXT, Markdown, HTML, DOCX, XLS/XLSX, PPTX, EPUB, RTF als Text, Markdown oder PDF |
| Allgemein | ZIP, Stapelverarbeitung, Abbruch, Verlauf, dunkle/helle/Systemdarstellung |
| Images | Convert JPEG, PNG, WebP, AVIF, TIFF, BMP, GIF, HEIC/HEIF and ICO; crop, resize, rotate, flip, compress and create PDFs. |
| Video | Convert to MP4, WebM or GIF; resize, compress, save frames and extract MP3 audio. |
| Audio | Convert between MP3, WAV, M4A, FLAC and OGG; compress and remove metadata. |
| PDFs | Combine and reorder files, optimize size, extract text, export to Markdown or DOCX, and add or remove passwords. |
| Documents | Extract text from DOCX, XLS/XLSX, PPTX, EPUB, RTF and HTML; export as text, Markdown or PDF. |
| Batch jobs | Process multiple files, create ZIP archives, cancel jobs and revisit recent results. |
Alle Bildausgabeformate sind über die direkten Aktionen oder „Weitere Formate“ erreichbar. Beim Komprimieren behalten PNG, WebP und AVIF ihr Format; andere Bilder werden als JPEG gespeichert, bei Transparenz als PNG. Die Größenprognose verwendet bei Bildern und PDFs eine temporäre Probeverarbeitung, bei Video und Audio eine Schätzung aus Laufzeit und Bitrate. Bei Stapeln bezieht sie sich auf die erste Datei. PNG wird verlustfrei optimiert; eine Zielgröße kann zusätzlich die Bildabmessungen verringern.
Compression includes an optional target size and an output-size estimate. Transparent images stay transparent when compressed. The interface supports dark, light and system themes, with optional tray operation and Windows startup.
Textbasierte Dokumentkonvertierung erhält keine identische Seitenformatierung. PDF-Scans ohne Textebene werden nicht per OCR erkannt. Alte DOC-/PPT-Binärdateien müssen vorher als DOCX/PPTX gespeichert werden. Eine ausdrücklich gewählte JPEG-Ausgabe entfernt Transparenz. Animationen werden beim Bearbeiten einzelner Bilder auf das erste Bild reduziert. Video-Vorschau hängt von Chromiums unterstützten Codecs ab; die Einzelbildfunktion arbeitet auch mit manuell eingegebenem Zeitpunkt. Eine gewünschte Dateigröße kann nicht bei jedem Inhalt erreicht werden.
## A short workflow
Der Abgleich mit der Referenz-App steht in [FEATURE_PARITY.md](FEATURE_PARITY.md).
1. Select files in File Explorer, or drag them into FileBow.
2. Press **Ctrl + Space** for conversion or **Alt + Space** for editing tools.
3. Pick an action. Output files are saved beside the originals without overwriting existing files.
## Entwicklung und Build
Use number keys to choose radial-menu actions and **Esc** to close the menu.
Voraussetzungen: Windows x64, Node.js 24, pnpm, Python 3.11 und .NET SDK 8. Der .NET-Projekt-Restore bezieht die Windows SDK BuildTools einschließlich MakeAppx und SignTool.
Closing the window keeps FileBow in the system tray by default, so the shortcuts remain available for selected Explorer files. Enable **Start with Windows** to launch it automatically, or choose **Quit** from the tray menu to exit.
```powershell
pnpm install --frozen-lockfile
node node_modules/electron/install.js
py -3.11 -m venv .venv
.venv\Scripts\python.exe -m pip install -r engine/requirements.lock.txt
dotnet restore native/FileBow.Windows.csproj --locked-mode
powershell -NoProfile -File scripts/fetch-ffmpeg.ps1
pnpm build:windows
.venv\Scripts\python.exe scripts/store-assets.py
.venv\Scripts\python.exe scripts/collect-licenses.py
pnpm build:engine
pnpm build
pnpm build:msix
```
![FileBow conversion options in light mode](store/screenshots/04-Convert-Light.png)
`pnpm start` startet die Entwicklungsversion. `pnpm build:store` baut ein Paket mit den Werten aus `store/identity.store.json`. Der Store-Build verweigert leere Werte und die Entwicklungsidentität.
## Local by default
## Tests
File processing happens on your PC. FileBow has no account requirement, telemetry or job limit. Settings and optional job history stay in your Windows user profile. Support and issue links open external websites only when selected.
```powershell
pnpm test
.venv\Scripts\python.exe tests/engine_smoke.py
$env:FILEBOW_PACKAGED_ENGINE = (Resolve-Path vendor/engine/FileBowEngine.exe).Path
.venv\Scripts\python.exe tests/engine_smoke.py
pnpm test:ui
$env:FILEBOW_EXECUTABLE = (Resolve-Path out/FileBow-win32-x64/FileBow.exe).Path
pnpm test:ui
```
## Availability
Prüfumfang und offene Release-Prüfungen: [VALIDATION.md](VALIDATION.md). Die Store-Einreichung ist in [store/RELEASE.md](store/RELEASE.md) beschrieben.
FileBow is being prepared for the Microsoft Store. Windows x64 builds can currently be built from this repository; a public Store release is not yet confirmed. See the [build guide](docs/DEVELOPMENT.md), [validation notes](VALIDATION.md) and [release checklist](store/RELEASE.md).
## Aufbau
Document conversion extracts text rather than preserving page layout. Scanned PDFs require an existing text layer; legacy DOC and PPT files must first be saved as DOCX or PPTX. Image editing uses the first frame of animated files. Target file sizes are estimates, and some Explorer drag and multi-display scenarios still need validation.
- `src/main.cjs`: Prozesssteuerung, Aufträge, Einstellungen, Explorer und MSIX-Autostart.
- `src/renderer`: Hauptfenster, eigene Editoren und SVG-Radialmenü; isolierte Renderer ohne Node-Zugriff.
- `native/Program.cs`: eigener Windows-Hilfsprozess für Explorer-Auswahl, Zieh-Erkennung und WinRT-StartupTask.
- `engine/filebow_engine.py`: eigener Python-Worker; JSON-Protokoll, atomare Ergebnispublikation, FFmpeg als separater Prozess.
- `store`: Identitäten, Paket-Assets, Texte und Einreichungsunterlagen.
## Built with
Die Anwendung benötigt die untersuchte Referenz-App und das Verzeichnis `decompiled` nicht. Deren Code, Marke, Lizenzserver und native DLL sind nicht Bestandteil des FileBow-Builds. Drittanbieter-Lizenzen und Herkunftsnachweise stehen in `licenses`.
Electron provides the desktop interface, a Python worker handles file operations, FFmpeg processes media, and a C#/.NET helper integrates with Windows. Conversion runs outside the UI process, with isolated renderers and separate output files.
Third-party license notices and source references are included in [licenses](licenses).
## Feedback
Missing a feature or found a bug? [Open an issue](https://git.nordik.dev/nordik/FileBow/issues).
## Support development
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/E0Z827VO8I)
+22 -21
View File
@@ -1,28 +1,29 @@
# FileBow 1.0.0 – Prüfstand vom 27.10.2026
# FileBow 1.0.0 validation
Getestet auf Windows x64, Build 26300. Dieses Dokument beschreibt die tatsächlich ausgeführten Prüfungen. Es bestätigt keine Store-Zertifizierung.
Updated October 27, 2026. Tested on Windows x64, build 26300. These results document local checks, not Store certification.
## Bestanden
## Automated checks
- **11 Integrationstests des Python-Workers**, mit mehr als 40 realen Dateioperationen: JPEG/PNG/WebP/AVIF/TIFF/BMP/GIF/ICO/HEIC/PDF, Bildänderungen, Unicode-PDF und Rückkonvertierung, PDF-Passwort setzen/entfernen, PDF-/Bild-/Text-Zusammenführung, Komprimierung, Metadatenentfernung, MP4/WebM/GIF, Einzelbild, MP3/WAV/M4A/FLAC/OGG, Video-Skalierung, XLSX/PPTX, ZIP, Vorschau, Namenskollisionen und Fehlerisolierung. Originaldateien wurden per SHA-256 auf Unverändertheit geprüft.
- **Dieselben 11 Tests mit der gebündelten `FileBowEngine.exe`**, einschließlich Umlauten in Dateinamen und Dateiinhalten. Log: `test-results/engine-packaged.log`.
- **4 Node-Tests**: Aktionszuordnung einschließlich GIF/weiterer Formate und MP3-Direktaktion, PDF-Passwortaktion und Abbruch eines laufenden Workers mit Prozessbeendigung und Bereinigung temporärer Ergebnisse.
- **Automatisierter Test der gepackten `FileBow.exe`**: Start, Windows-Bridge, Konvertierung, Bildeditor, Komprimierungsdialog mit Größenprognose, PNG-Ausgabe mit Transparenz, TIFF über „Weitere Formate“, GIF, Ko-fi-Zieladresse (ohne externen Aufruf im Test), PDF-Passwortdialoge, Zusammenfügen, Radialmenü, Darstellung und Verlauf; keine Renderer-Ausnahmen. Ergebnis: `test-results/ui-result.json`.
- **Live-Explorer-Test**: `Beispiel.txt` ausgewählt, Explorer-Auswahl über den eigenen Hilfsprozess korrekt gelesen, Radialmenü über Strg+Leertaste geöffnet und PDF per Zifferntaste erstellt. Erfolgreicher Auftrag in `test-results/native-profile/history.json`.
- **MakeAppx-Paketvalidierung und Entwicklungssignatur**. Buildprotokoll: `build/makeappx-Development.log`. Identität und SHA-256: `out/msix/build-Development.json`.
- **Aktualisiertes Entwicklungs-MSIX**: Alle 459 Blockmap-Payloads und vollständigen Dateihashes stimmen. Die CMS-Signatur wurde kryptografisch geprüft, ohne den Vertrauensspeicher zu ändern. Nachweise: `test-results/msix-integrity.json` und `test-results/msix-signature.json`.
- **Store-MSIX**: MakeAppx-Validierung, alle 459 Blockmap-Payloads und vollständigen Dateihashes sowie die Übereinstimmung von Paketname, Publisher, PublisherDisplayName und Version mit `identity.store.json` geprüft. Das Store-Paket ist absichtlich unsigniert. Nachweis mit SHA-256 und Paketgröße: `store/package-check.json`.
- **Store-Konfiguration**: Die vom Herausgeber bestätigte Identität `Nordik.dev.FileBow` ist eingetragen; Store-ID `9N3MJ7558CNZ`. Ein Store-Build mit leeren Partner-Center-Werten wird vor Erstellung abgewiesen.
- Vier echte App-Screenshots mit 1600 × 900 Pixeln in `store/screenshots`.
- **11 worker integration tests**, covering more than 40 actual file operations: image formats, edits, Unicode PDF/document conversion, PDF passwords, merging, compression, metadata removal, video and audio formats, video frames/resizing, XLSX/PPTX, ZIP, previews, filename collisions and per-file error isolation. Original input hashes remain unchanged.
- **The same 11 tests with the bundled `FileBowEngine.exe`**, including non-ASCII paths and document content. Local log: `test-results/engine-packaged.log`.
- **4 Node tests** for the action catalog, PDF password actions and cancellation, including process termination and cleanup of unpublished output.
- **Packaged application UI checks** for startup, Windows bridge, conversion, resizing, compression estimates, PNG preservation, TIFF/GIF, password dialogs, merging, radial menu, themes, history and closing the main window into the tray. The app locale is `en-US`, the document language is English, and no renderer exceptions occurred. Ko-fi and issue links were checked against their exact destinations without opening external websites. Local result: `test-results/ui-result.json`.
- **Compression details**: PNG alpha and palette transparency, WebP format preservation, exact image/PDF trial sizes, cleanup after estimates and bitrate-based video estimates.
- **MSIX checks**: MakeAppx manifest/payload validation and independent verification of block hashes, complete file hashes and identity fields. Store packages are intentionally unsigned. The current Store artifact hash and size are recorded in `store/package-check.json`. Development signature evidence is kept in `test-results/msix-signature.json`.
- **Screenshots**: four actual English app captures at 1600 × 900 in `store/screenshots`.
Zusätzlich geprüft: PNG-Alphakanal einschließlich Palettentransparenz, WebP-Formaterhalt, exakte Probegrößen für Bild/PDF, temporäre Bereinigung nach Prognosen und bitratenbasierte Videoprognose.
## Earlier live integration check
## Noch nicht bestätigt
An Explorer-selected text file was read by the Windows helper. Ctrl + Space opened the radial menu, and its number-key action produced a PDF. This integration check preceded the English UI update. Evidence is retained locally in `test-results/native-profile/history.json`.
- Installation/Update/Deinstallation des MSIX auf einer sauberen Windows-Installation.
- Tatsächlicher MSIX-Autostart nach Windows-Anmeldung und die Windows-Zustände „DisabledByUser“/„DisabledByPolicy“.
- Zieh-Erkennung mit echter Maus, Desktop-Dateiauswahl, mehrere Explorer-Tabs sowie mehrere Displays/DPI-Werte. Der automatisierte Ziehversuch lieferte keinen verlässlichen Nachweis.
- Windows App Certification Kit und Microsoft-Store-Zertifizierung.
- Vollständigkeit der korrespondierenden Quellen sämtlicher nativer Drittanbieter-Codecs; siehe `store/RELEASE.md`.
Closing the window hides it in the tray by default; global shortcuts remain registered while the app is running. The radial menu requires selected files in the active Explorer window or focused FileBow window. Startup is optional and off by default.
Das Entwicklungszertifikat wurde zum Signieren im persönlichen Zertifikatspeicher angelegt. Es wurde nicht systemweit als vertrauenswürdig installiert. Keine Datei wurde in Partner Center hochgeladen und keine App veröffentlicht.
## Not yet confirmed
- MSIX installation, update and removal on a clean Windows installation.
- MSIX startup after Windows sign-in, including disabled-by-user/policy states.
- Real-mouse dragging, multiple Explorer tabs, multiple displays and DPI settings. Desktop selection is not implemented.
- Windows App Certification Kit and Microsoft Store certification.
- Complete corresponding-source coverage for native third-party codecs; see [release checklist](store/RELEASE.md).
The development certificate is held in the current user's personal certificate store. It has not been installed as system-wide trusted. No package has been uploaded to Partner Center or published by this work.
+67
View File
@@ -0,0 +1,67 @@
# Development
Build on Windows x64 with Node.js 24, pnpm, Python 3.11 and .NET SDK 8. The .NET restore includes Windows SDK BuildTools for MakeAppx and SignTool. Generated runtimes and packages are excluded from Git.
## Setup
```powershell
git clone https://git.nordik.dev/nordik/FileBow.git
cd FileBow
pnpm install --frozen-lockfile
node node_modules/electron/install.js
py -3.11 -m venv .venv
.venv/Scripts/python.exe -m pip install -r engine/requirements.lock.txt
dotnet restore native/FileBow.Windows.csproj --locked-mode
powershell -NoProfile -File scripts/fetch-ffmpeg.ps1
pnpm build:windows
.venv/Scripts/python.exe scripts/store-assets.py
.venv/Scripts/python.exe scripts/collect-licenses.py
pnpm start
```
The app interface and package language are English (`en-US`). Files and filenames can contain other languages. Windows-owned dialogs follow the operating system language.
## Build
```powershell
pnpm build:engine
pnpm build
pnpm build:msix
pnpm build:store
```
- `out/FileBow-win32-x64/FileBow.exe`: portable build; keep its entire directory together.
- `out/msix/FileBow_1.0.0.0_x64_Development.msix`: signed with a local development certificate.
- `out/msix/FileBow_1.0.0.0_x64_Store.msix`: unsigned Store submission package using `store/identity.store.json`.
To install the development package in a Windows test environment, run `scripts/install-development.ps1` from an elevated PowerShell. It verifies the recorded package hash, trusts the supplied development certificate and installs the package. It is not a Store installation script. Building a package does not install it or trust its certificate system-wide.
## Verify
```powershell
pnpm test
.venv/Scripts/python.exe tests/engine_smoke.py
$env:FILEBOW_PACKAGED_ENGINE = (Resolve-Path vendor/engine/FileBowEngine.exe).Path
.venv/Scripts/python.exe tests/engine_smoke.py
pnpm test:ui
$env:FILEBOW_EXECUTABLE = (Resolve-Path out/FileBow-win32-x64/FileBow.exe).Path
pnpm test:ui
.venv/Scripts/python.exe scripts/verify-msix.py out/msix/FileBow_1.0.0.0_x64_Store.msix --allow-unsigned --identity store/identity.store.json
node scripts/capture-store.cjs
```
The worker tests check real conversions, encryption, image transparency, estimates, filename collisions and unchanged originals. UI checks use an isolated profile with global shortcuts and drag monitoring disabled. Screenshot capture uses sample files only. Local logs are in `test-results`.
## Structure
| Path | Purpose |
| --- | --- |
| `src/main.cjs` | Jobs, settings, tray, shortcuts and application lifecycle |
| `src/renderer` | Main interface, editors and radial menu |
| `src/preload` | Narrow IPC bridges for isolated renderers |
| `engine/filebow_engine.py` | Local conversion worker and JSON-lines protocol |
| `native/Program.cs` | Explorer selection, drag detection and Windows startup integration |
| `scripts` | Runtime, application, package and screenshot builds |
| `store` | Store identity, listing drafts, assets and submission checklist |
See [validation notes](../VALIDATION.md) for tested behavior and remaining release checks. The product overview is in the [README](../README.md).
+22 -22
View File
@@ -28,7 +28,7 @@ def emit(data):
def bounded(value, default, low, high):
try: result = float(value)
except (TypeError, ValueError): result = default
if not math.isfinite(result): raise ValueError('Ungültiger Zahlenwert.')
if not math.isfinite(result): raise ValueError('Invalid numeric value.')
return max(low, min(high, result))
def ext(file): return Path(file).suffix.lower().lstrip('.')
@@ -39,7 +39,7 @@ def execute(args):
encoding='utf-8', errors='replace', creationflags=0x08000000 if os.name == 'nt' else 0)
if result.returncode:
detail = result.stderr.strip().splitlines()
raise RuntimeError('\n'.join(detail[-4:]) or 'Die Datei konnte nicht verarbeitet werden.')
raise RuntimeError('\n'.join(detail[-4:]) or 'The file could not be processed.')
return result.stdout
def media(args):
execute([ffmpeg(), '-hide_banner','-loglevel','error','-nostdin','-protocol_whitelist','file,pipe,data,crypto','-y', *args])
@@ -56,7 +56,7 @@ def probe(file):
def reader(file, password=None):
pdf = PdfReader(file)
if pdf.is_encrypted and not pdf.decrypt(password or ''):
raise ValueError('Die PDF ist geschützt. Bitte zuerst das Passwort entfernen.')
raise ValueError('This PDF is encrypted. Remove its password first.')
return pdf
def save_output(source, suffix, writer, name=None):
@@ -64,13 +64,13 @@ def save_output(source, suffix, writer, name=None):
source = Path(source)
stem = str(name or f'{source.stem} - FileBow').strip()
if not stem or stem in {'.','..'} or re.search(r'[<>:"/\\|?*\x00-\x1f]',stem) or stem.endswith(('.', ' ')):
raise ValueError('Der Dateiname enthält ungültige Zeichen.')
if re.match(r'^(CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])(?:\.|$)',stem,re.I): raise ValueError('Dieser Dateiname ist unter Windows reserviert.')
raise ValueError('The filename contains invalid characters.')
if re.match(r'^(CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])(?:\.|$)',stem,re.I): raise ValueError('This filename is reserved by Windows.')
with tempfile.TemporaryDirectory(prefix='.filebow-'+os.environ.get('FILEBOW_JOB_ID','local')+'-',dir=source.parent) as folder:
emit({'type':'stage','directory':folder})
staged = Path(folder) / ('result.'+suffix)
extra = writer(staged) or {}
if not staged.is_file() or not staged.stat().st_size: raise RuntimeError('Es wurde keine Ergebnisdatei erzeugt.')
if not staged.is_file() or not staged.stat().st_size: raise RuntimeError('No output file was created.')
for index in range(100000):
target = source.parent / f'{stem}{f" ({index})" if index else ""}.{suffix}'
try:
@@ -79,7 +79,7 @@ def save_output(source, suffix, writer, name=None):
else: os.link(staged,target); staged.unlink()
return {'ok':True,'input':str(source),'output':str(target),'size':target.stat().st_size,**extra}
except FileExistsError: continue
raise RuntimeError('Kein freier Dateiname verfügbar.')
raise RuntimeError('No available output filename.')
def image_load(file):
with Image.open(file) as image:
@@ -135,7 +135,7 @@ def text_read(file):
from posixpath import normpath,join,dirname
pages=[normpath(join(dirname(opf),manifest[x.attrib['idref']])) for x in package.iter() if x.tag.endswith('itemref')]
return '\n\n'.join(BeautifulSoup(archive.read(page),'html.parser').get_text('\n') for page in pages)
if kind in {'doc','ppt'}: raise ValueError('Bitte dieses Dokument zuerst als DOCX bzw. PPTX speichern.')
if kind in {'doc','ppt'}: raise ValueError('Save this document as DOCX or PPTX first.')
raw=Path(file).read_bytes()
if raw.startswith((b'\xff\xfe',b'\xfe\xff')): return raw.decode('utf-16')
try: text=raw.decode('utf-8-sig')
@@ -160,19 +160,19 @@ def text_write(text,out,target):
pdf.add_page()
pdf.multi_cell(0,5,text.replace('\t',' '),new_x='LMARGIN',new_y='NEXT')
pdf.output(str(out)); return
raise ValueError('Nicht unterstütztes Dokumentformat.')
raise ValueError('Unsupported document format.')
def video_args(target, options=None, bitrate=None):
options=options or {}
if target == 'webm': return ['-c:v','libvpx-vp9','-b:v',str(bitrate or 0),'-crf',str(int(bounded(options.get('crf'),32,10,50))),'-c:a','libopus','-b:a','128k']
if target == 'mp4': return ['-c:v','libopenh264','-b:v',str(bitrate or 2500000),'-pix_fmt','yuv420p','-c:a','aac','-b:a','128k','-movflags','+faststart']
if target == 'gif': return ['-an','-vf','fps=12,scale=640:-1:flags=lanczos,split[a][b];[a]palettegen[p];[b][p]paletteuse']
raise ValueError('Nicht unterstütztes Videoformat.')
raise ValueError('Unsupported video format.')
def audio_args(target, bitrate='192k'):
choices={'mp3':['-c:a','libmp3lame','-b:a',bitrate],'wav':['-c:a','pcm_s16le'],
'm4a':['-c:a','aac','-b:a',bitrate],'flac':['-c:a','flac'],
'ogg':['-c:a','libvorbis','-b:a',bitrate]}
if target not in choices: raise ValueError('Nicht unterstütztes Audioformat.')
if target not in choices: raise ValueError('Unsupported audio format.')
return ['-vn',*choices[target]]
def convert(file,target,options):
@@ -182,7 +182,7 @@ def convert(file,target,options):
image=image_load(file)
if target=='pdf': image.convert('RGB').save(out,'PDF',resolution=150)
elif target in FORMATS: image_write(image,out,target,int(bounded(options.get('quality'),85,1,100)))
else: raise ValueError('Nicht unterstütztes Bildformat.')
else: raise ValueError('Unsupported image format.')
elif kind in VIDEO:
args=['-i',file]
if target=='mp4': args += ['-vf','pad=ceil(iw/2)*2:ceil(ih/2)*2']
@@ -228,7 +228,7 @@ def compress(file,options,estimate=False):
for page in pdf.pages: page.compress_content_streams()
pdf.compress_identical_objects(remove_duplicates=True,remove_unreferenced=True)
pdf.write(out)
else: raise ValueError('Diese Datei lässt sich nicht komprimieren.')
else: raise ValueError('This file cannot be compressed.')
return {'targetMet':not limit or out.stat().st_size<=limit}
if estimate:
original=Path(file).stat().st_size
@@ -263,14 +263,14 @@ def edit(file,options):
image=image.crop((x,y,x+w,y+h))
if width or height:
w=width or max(1,round(image.width*height/image.height)); h=height or max(1,round(image.height*width/image.width))
if w*h > 100000000: raise ValueError('Die Zielgröße darf höchstens 100 Megapixel betragen.')
if w*h > 100000000: raise ValueError('The output image cannot exceed 100 megapixels.')
image=image.resize((w,h),Image.Resampling.LANCZOS)
if angle: image=image.rotate(-angle,expand=True)
if options.get('flipH'): image=ImageOps.mirror(image)
if options.get('flipV'): image=ImageOps.flip(image)
image_write(image,out,suffix)
else:
if not width and not height: raise ValueError('Bitte Breite oder Höhe angeben.')
if not width and not height: raise ValueError('Enter a width or height.')
media(['-i',file,'-vf',f'scale={width or -2}:{height or -2},pad=ceil(iw/2)*2:ceil(ih/2)*2',*video_args('mp4'),out])
return save_output(file,suffix,writer,options.get('outputName'))
@@ -283,7 +283,7 @@ def metadata(file,options):
if '/Metadata' in pdf._root_object: del pdf._root_object['/Metadata']
pdf.write(out)
elif kind in VIDEO|AUDIO: media(['-i',file,'-map','0','-map_metadata','-1','-map_chapters','-1','-c','copy',out])
else: raise ValueError('Dieses Format wird nicht unterstützt.')
else: raise ValueError('This format is not supported.')
return save_output(file,kind,writer,options.get('outputName'))
def combined(files,target,options):
@@ -297,7 +297,7 @@ def combined(files,target,options):
images[0].save(out,'PDF',save_all=True,append_images=images[1:],resolution=150)
for image in images: image.close()
else: text_write('\n\n'.join(text_read(f) for f in files),out,target)
return save_output(files[0],target,writer,options.get('outputName') or 'Zusammengefügt')
return save_output(files[0],target,writer,options.get('outputName') or 'Combined')
def dispatch(file,op,target,options):
if op=='convert': return convert(file,target,options)
@@ -307,7 +307,7 @@ def dispatch(file,op,target,options):
if op=='strip-metadata': return metadata(file,options)
if op=='pdf-password':
password=options.get('password')
if not isinstance(password,str) or not password: raise ValueError('Bitte ein Passwort eingeben.')
if not isinstance(password,str) or not password: raise ValueError('Enter a password.')
def write(out):
pdf=PdfWriter(clone_from=reader(file,password))
if options.get('mode')=='add': pdf.encrypt(password,algorithm='AES-256')
@@ -325,13 +325,13 @@ def dispatch(file,op,target,options):
return {'ok':True,'input':file,'width':original[0],'height':original[1],
'dataUrl':'data:image/png;base64,'+base64.b64encode(buffer.getvalue()).decode('ascii')}
return {'ok':True,'input':file,**probe(file)}
raise ValueError('Unbekannter Auftrag.')
raise ValueError('Unknown operation.')
def run_job(job):
files=job.get('files'); op=job.get('op'); target=str(job.get('target') or '').lower(); options=job.get('options') or {}
if not isinstance(files,list) or not files or len(files)>1000: raise ValueError('Bitte 1 bis 1000 Dateien auswählen.')
if not isinstance(files,list) or not files or len(files)>1000: raise ValueError('Select between 1 and 1,000 files.')
files=[str(Path(f).resolve(strict=True)) for f in files]
if not all(Path(f).is_file() for f in files): raise ValueError('Ordner werden nicht unterstützt.')
if not all(Path(f).is_file() for f in files): raise ValueError('Folders are not supported.')
results=[]
if op in {'zip','combine','merge','image-to-pdf'}:
if op=='zip':
@@ -343,7 +343,7 @@ def run_job(job):
while name.casefold() in names:
name=f'{Path(file).stem} ({counter}){Path(file).suffix}'; counter+=1
names.add(name.casefold()); z.write(file,name)
results=[save_output(files[0],'zip',archive,options.get('outputName') or 'Archiv')]
results=[save_output(files[0],'zip',archive,options.get('outputName') or 'Archive')]
else: results=[combined(files,'pdf' if op in {'merge','image-to-pdf'} else target,options)]
emit({'type':'progress','done':len(files),'total':len(files),'file':files[-1]})
else:
+2 -2
View File
@@ -1,4 +1,4 @@
<!doctype html><html lang="de"><meta charset="utf-8"><title>FileBow – Lizenzhinweise</title><style>body{font:15px system-ui;max-width:960px;margin:40px auto;padding:24px;line-height:1.6;color:#20232a}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px monospace}summary{cursor:pointer}a{color:#9a4518}</style><h1>FileBow – Drittanbieterkomponenten</h1><p>Die folgenden Komponenten unterliegen den Lizenzen ihrer jeweiligen Urheber. Diese Hinweise ändern keine Rechte aus diesen Lizenzen.</p><h2>FFmpeg</h2><p>FileBow verwendet FFmpeg-Bibliotheken unter der GNU LGPL Version 3. FFmpeg läuft als separater Prozess. Die dynamischen Bibliotheken liegen unverändert im Paket. Version: n9.0.2-36-g6882969ce9, BtbN LGPL shared x64. Quellcode und Buildskripte liegen im Verzeichnis <code>licenses/sources</code>.</p>
<!doctype html><html lang="en"><meta charset="utf-8"><title>FileBow – License notices</title><style>body{font:15px system-ui;max-width:960px;margin:40px auto;padding:24px;line-height:1.6;color:#20232a}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px monospace}summary{cursor:pointer}a{color:#9a4518}</style><h1>FileBow – Third-party components</h1><p>The following components are distributed under their respective licenses. These notices do not change any rights granted by those licenses.</p><h2>FFmpeg</h2><p>FileBow uses FFmpeg libraries under the GNU LGPL version 3. FFmpeg runs as a separate process. The shared libraries are included unmodified. Version: n9.0.2-36-g6882969ce9, BtbN LGPL shared x64. Source archives and build scripts are in <code>licenses/sources</code>.</p>
<details><summary>Dotnet-MIT.txt</summary><pre>The MIT License (MIT)
Copyright (c) .NET Foundation and Contributors
@@ -2662,7 +2662,7 @@ the HTML Library software distribution is included in the file
docs/license.html_lib.
</pre></details>
<h2>Electron / Chromium</h2><p><a href="Electron-LICENSES.chromium.html">Chromium-Lizenzhinweise</a></p>
<h2>Electron / Chromium</h2><p><a href="Electron-LICENSES.chromium.html">Chromium-License notices</a></p>
<h2>pillow 13.0.0</h2>
<details><summary>pillow-13.0.0.dist-info__licenses__LICENSE</summary><pre>The Python Imaging Library (PIL) is
+3 -3
View File
@@ -44,12 +44,12 @@ $manifest = @"
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="uap desktop uap10 rescap">
<Identity Name="$name" Publisher="$publisher" Version="$($identity.Version)" ProcessorArchitecture="x64" />
<Properties><DisplayName>$display</DisplayName><PublisherDisplayName>$publisherDisplay</PublisherDisplayName><Logo>Assets\StoreLogo.png</Logo><Description>Dateien konvertieren, komprimieren und bearbeiten.</Description></Properties>
<Properties><DisplayName>$display</DisplayName><PublisherDisplayName>$publisherDisplay</PublisherDisplayName><Logo>Assets\StoreLogo.png</Logo><Description>Convert, compress and edit files.</Description></Properties>
<Dependencies><TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.19041.0" MaxVersionTested="10.0.26100.0" /></Dependencies>
<Resources><Resource Language="de-de" /></Resources>
<Resources><Resource Language="en-us" /></Resources>
<Applications>
<Application Id="App" Executable="app\FileBow.exe" EntryPoint="Windows.FullTrustApplication" uap10:RuntimeBehavior="packagedClassicApp" uap10:TrustLevel="mediumIL">
<uap:VisualElements DisplayName="$display" Description="Dateien konvertieren und bearbeiten" BackgroundColor="#14161B" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png">
<uap:VisualElements DisplayName="$display" Description="Convert and edit files" BackgroundColor="#14161B" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png" Square71x71Logo="Assets\Square71x71Logo.png" Square310x310Logo="Assets\Square310x310Logo.png" />
</uap:VisualElements>
<Extensions>
+1 -1
View File
@@ -5,7 +5,7 @@ const root=path.resolve(__dirname,'..');
for(const file of ['vendor/engine/FileBowEngine.exe','vendor/windows/FileBow.Windows.exe','vendor/ffmpeg/ffmpeg.exe','licenses/THIRD_PARTY.html'])if(!fs.existsSync(path.join(root,file)))throw new Error(`Build prerequisite missing: ${file}`);
const output=await packager({dir:root,name:'FileBow',executableName:'FileBow',platform:'win32',arch:'x64',electronVersion:'43.7.0',out:path.join(root,'out'),overwrite:true,asar:false,
icon:path.join(root,'assets/icon.ico'),appVersion:require('../package.json').version,
win32metadata:{ProductName:'FileBow',FileDescription:'FileBow – Dateiwerkzeuge',InternalName:'FileBow',OriginalFilename:'FileBow.exe'},
win32metadata:{ProductName:'FileBow',FileDescription:'FileBow – File tools',InternalName:'FileBow',OriginalFilename:'FileBow.exe'},
ignore:[/^\/(?:\.venv|\.git|build|out|test-results|tests|scripts|native|store|engine|node_modules)(?:\/|$)/,/\/\.gitignore$/,/default-docx-template(?:\/|$)/,/\.pyc$/,/\.pdb$/,/requirements\./,/pnpm/,/^\/vendor\/native(?:\/|$)/],
prune:true});
console.log(output.join('\n'));
+5 -5
View File
@@ -8,13 +8,13 @@ const root=path.resolve(__dirname,'..');
try{
const page=await app.firstWindow();await page.waitForSelector('#pick');
await app.evaluate(({BrowserWindow})=>BrowserWindow.getAllWindows()[0].setContentSize(1600,900));
await page.screenshot({path:path.join(output,'01-Dateien.png')});
const file=path.join(root,'test-results/Beispielbild.png');await fs.copyFile(path.join(root,'assets/icon.png'),file);
await page.screenshot({path:path.join(output,'01-Files.png')});
const file=path.join(root,'test-results/Sample.png');await fs.copyFile(path.join(root,'assets/icon.png'),file);
await page.evaluate(file=>window.orbit.selectFiles([file]),file);await page.locator('#tab-tools').click();
await page.screenshot({path:path.join(output,'02-Werkzeuge.png')});
await page.locator('[data-page="settings"]').click();await page.screenshot({path:path.join(output,'03-Einstellungen.png')});
await page.screenshot({path:path.join(output,'02-Tools.png')});
await page.locator('[data-page="settings"]').click();await page.screenshot({path:path.join(output,'03-Settings.png')});
await page.locator('#theme').selectOption('light');await page.waitForFunction(()=>document.documentElement.dataset.theme==='light');
await page.locator('[data-page="files"]').click();await page.locator('#tab-quick').click();await page.screenshot({path:path.join(output,'04-Konvertieren-Hell.png')});
await page.locator('[data-page="files"]').click();await page.locator('#tab-quick').click();await page.screenshot({path:path.join(output,'04-Convert-Light.png')});
}finally{await app.close();}
console.log(output);
})().catch(error=>{console.error(error);process.exitCode=1;});
+2 -2
View File
@@ -25,10 +25,10 @@ electron=root/'node_modules/electron/dist'
for name in ['LICENSE','LICENSES.chromium.html']:
if (electron/name).exists():shutil.copy2(electron/name,out/('Electron-'+name))
(out/'components.json').write_text(json.dumps(records,indent=2,ensure_ascii=False),encoding='utf-8')
parts=['<!doctype html><html lang="de"><meta charset="utf-8"><title>FileBow – Lizenzhinweise</title><style>body{font:15px system-ui;max-width:960px;margin:40px auto;padding:24px;line-height:1.6;color:#20232a}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px monospace}summary{cursor:pointer}a{color:#9a4518}</style><h1>FileBow – Drittanbieterkomponenten</h1><p>Die folgenden Komponenten unterliegen den Lizenzen ihrer jeweiligen Urheber. Diese Hinweise ändern keine Rechte aus diesen Lizenzen.</p><h2>FFmpeg</h2><p>FileBow verwendet FFmpeg-Bibliotheken unter der GNU LGPL Version 3. FFmpeg läuft als separater Prozess. Die dynamischen Bibliotheken liegen unverändert im Paket. Version: n9.0.2-36-g6882969ce9, BtbN LGPL shared x64. Quellcode und Buildskripte liegen im Verzeichnis <code>licenses/sources</code>.</p>']
parts=['<!doctype html><html lang="en"><meta charset="utf-8"><title>FileBow – License notices</title><style>body{font:15px system-ui;max-width:960px;margin:40px auto;padding:24px;line-height:1.6;color:#20232a}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px monospace}summary{cursor:pointer}a{color:#9a4518}</style><h1>FileBow – Third-party components</h1><p>The following components are distributed under their respective licenses. These notices do not change any rights granted by those licenses.</p><h2>FFmpeg</h2><p>FileBow uses FFmpeg libraries under the GNU LGPL version 3. FFmpeg runs as a separate process. The shared libraries are included unmodified. Version: n9.0.2-36-g6882969ce9, BtbN LGPL shared x64. Source archives and build scripts are in <code>licenses/sources</code>.</p>']
for file in sorted(out.glob('*.txt')):
parts.append(f'<details><summary>{html.escape(file.name)}</summary><pre>{html.escape(file.read_text(encoding="utf-8",errors="replace"))}</pre></details>')
parts.append('<h2>Electron / Chromium</h2><p><a href="Electron-LICENSES.chromium.html">Chromium-Lizenzhinweise</a></p>')
parts.append('<h2>Electron / Chromium</h2><p><a href="Electron-LICENSES.chromium.html">Chromium-License notices</a></p>')
for record in records:
parts.append(f'<h2>{html.escape(record["name"])} {record["version"]}</h2>')
for name in record['files']:
+17 -15
View File
@@ -10,6 +10,7 @@ const { openDialog } = require('./main/dialogs.cjs');
const { WindowsBridge } = require('./main/windows.cjs');
app.setName('FileBow');
app.commandLine.appendSwitch('lang', 'en-US');
app.setPath('userData', process.env.FILEBOW_USER_DATA || path.join(app.getPath('appData'), 'FileBow'));
const dataPath = app.getPath('userData');
const configFile = path.join(dataPath, 'settings.json');
@@ -51,22 +52,22 @@ function publish() {
function notice(message, error = false) {
if (mainWindow && !mainWindow.isDestroyed()) mainWindow.webContents.send('orbit:notice', { message, error });
if (!mainWindow?.isFocused() && Notification.isSupported()) {
new Notification({ title: error ? 'FileBow · Fehler' : 'FileBow', body: message, icon: theme.appIconImage() }).show();
new Notification({ title: error ? 'FileBow · Error' : 'FileBow', body: message, icon: theme.appIconImage() }).show();
}
}
function showHome() { mainWindow?.show(); mainWindow?.focus(); }
async function runAction(files, option) {
if (activeJob) throw new Error('Bitte den aktuellen Auftrag beenden oder abbrechen.');
if (activeJob) throw new Error('Wait for the current job to finish, or cancel it.');
files = validFiles(files);
if (!files.length) throw new Error('Bitte mindestens eine Datei auswählen.');
if (!files.length) throw new Error('Select at least one file.');
activeJob = { id: crypto.randomUUID(), label: option.label, phase: 'preparing', done: 0, total: files.length };
publish();
let job;
try {
if (option.editor) {
const file = files.find(file => categoryOf(file) === 'image' || (option.editor === 'resize' && categoryOf(file) === 'video'));
if (!file) throw new Error('Dieses Werkzeug unterstützt die ausgewählten Dateien nicht.');
if (!file) throw new Error('This tool does not support the selected files.');
let editorError;
const result = await openDialog(engine, 'edit', [file], option.editor);
if (editorError) throw new Error(editorError);
@@ -79,13 +80,13 @@ async function runAction(files, option) {
else if (option.op === 'convert') {
const kind = dominantCategory(files); files = files.filter(file => categoryOf(file) === kind);
}
if (!files.length) throw new Error('Keine passenden Dateien für diese Aktion.');
if (!files.length) throw new Error('No compatible files for this action.');
job = { op: option.op, files, target: option.target, options: {} };
if (option.op === 'choose-format') {
files = files.filter(file => categoryOf(file) === 'image');
const result = await openDialog(engine, 'format', files);
if (!result) return;
if (!['jpg','png','webp','gif','avif','tiff','ico','bmp','heic','heif','pdf'].includes(result)) throw new Error('Ungültiges Bildformat.');
if (!['jpg','png','webp','gif','avif','tiff','ico','bmp','heic','heif','pdf'].includes(result)) throw new Error('Invalid image format.');
job = { op: 'convert', files, target: result, options: {} };
} else if (option.op === 'compress') {
const result = await openDialog(engine, 'compress', files);
@@ -121,8 +122,8 @@ async function runAction(files, option) {
history.unshift(entry); history = history.slice(0, 50);
if (settings.rememberHistory) saveJSON(historyFile, history);
const exceeded = success.filter(result => result.targetMet === false).length;
if (success.length) notice(`${success.length} Datei(en) gespeichert.${failed.length ? ` ${failed.length} fehlgeschlagen.` : ''}${exceeded ? ' Die Zielgröße wurde nicht erreicht.' : ''}`);
else notice(failed[0]?.error || 'Es wurden keine Dateien erstellt.', true);
if (success.length) notice(`${success.length} ${success.length===1?'file':'files'} saved.${failed.length ? ` ${failed.length} failed.` : ''}${exceeded ? ' The target size was not reached.' : ''}`);
else notice(failed[0]?.error || 'No files were created.', true);
return entry;
} catch (error) {
notice(error.message, true);
@@ -141,7 +142,7 @@ async function openWheel(mode, point, files) {
if (wheel.visible && wheel.mode === mode) { wheel.hide(); return; }
const explorer = files || (native ? await native.getExplorerSelection() : []);
const selection = validFiles(explorer.length ? explorer : (mainWindow?.isFocused() ? selected : []));
if (!selection.length) { notice('Bitte Dateien im Explorer oder in FileBow auswählen.'); return; }
if (!selection.length) { notice('Select files in File Explorer or FileBow.'); return; }
selected = selection; publish();
await wheel.show(selection, mode, point, true);
}
@@ -177,15 +178,16 @@ function registerIpc() {
handle('state', publicState);
handle('licenses', () => shell.openPath(path.join(app.getAppPath(), 'licenses/THIRD_PARTY.html')));
handle('support', () => shell.openExternal('https://ko-fi.com/E0Z827VO8I'));
handle('issues', () => shell.openExternal('https://git.nordik.dev/nordik/FileBow/issues'));
handle('pick', async () => {
const result = await dialog.showOpenDialog(mainWindow, { title: 'Dateien auswählen', properties: ['openFile', 'multiSelections'] });
const result = await dialog.showOpenDialog(mainWindow, { title: 'Choose files', properties: ['openFile', 'multiSelections'] });
if (!result.canceled) { selected = validFiles(result.filePaths); publish(); }
return publicState();
});
handle('select', files => { selected = validFiles(files); publish(); return publicState(); });
handle('choose', id => {
const option = [...wheelContent(selected, 'quick').options, ...wheelContent(selected, 'tools').options].find(option => option.id === id);
if (!option) throw new Error('Diese Aktion ist für die Auswahl nicht verfügbar.');
if (!option) throw new Error('This action is unavailable for the selection.');
return runAction([...selected], option);
});
handle('wheel', mode => openWheel(mode === 'tools' ? 'tools' : 'quick', screen.getCursorScreenPoint(), selected));
@@ -206,7 +208,7 @@ function registerIpc() {
if (packageIdentity.packaged) {
startupState = await native.request('startup', { enabled: settings.autoStart });
settings.autoStart = startupState === 'Enabled';
if (changes.autoStart && !settings.autoStart) notice('Autostart wurde in Windows deaktiviert. Bitte in Einstellungen > Apps > Autostart aktivieren.', true);
if (changes.autoStart && !settings.autoStart) notice('Startup is disabled in Windows. Enable it in Settings > Apps > Startup.', true);
} else app.setLoginItemSettings({ openAtLogin: settings.autoStart, path: process.execPath, args: ['--hidden'] });
}
if (!settings.rememberHistory) saveJSON(historyFile, []);
@@ -248,9 +250,9 @@ else {
registerIpc(); await configureIntegration();
tray = new Tray(theme.appIconImage().resize({ width: 32, height: 32 }));
tray.setToolTip('FileBow');
tray.setContextMenu(Menu.buildFromTemplate([{ label: 'FileBow öffnen', click: showHome },
{ label: 'Konvertieren · Strg+Leertaste', click: () => openWheel('quick').catch(() => {}) },
{ type: 'separator' }, { label: 'Beenden', click: () => { quitting = true; app.quit(); } }]));
tray.setContextMenu(Menu.buildFromTemplate([{ label: 'Open FileBow', click: showHome },
{ label: 'Convert · Ctrl+Space', click: () => openWheel('quick').catch(() => {}) },
{ type: 'separator' }, { label: 'Quit', click: () => { quitting = true; app.quit(); } }]));
tray.on('double-click', showHome);
nativeTheme.on('updated', () => { if (settings.theme === 'system') publish(); });
await mainWindow.loadFile(path.join(__dirname, 'renderer/home/index.html'));
+10 -10
View File
@@ -14,14 +14,14 @@ function dominantCategory(files) {
}
const action = (id, label, op, extra = {}) => ({ id, label, op, ...extra });
const convert = target => action(`convert-${target}`, target.toUpperCase(), 'convert', { target });
const zip = action('zip', 'ZIP erstellen', 'zip');
const compress = action('compress', 'Komprimieren', 'compress');
const clean = action('metadata', 'Metadaten entfernen', 'strip-metadata');
const combine = action('combine', 'Zusammenfügen', 'combine-manage');
const zip = action('zip', 'Create ZIP', 'zip');
const compress = action('compress', 'Compress', 'compress');
const clean = action('metadata', 'Remove metadata', 'strip-metadata');
const combine = action('combine', 'Combine', 'combine-manage');
const edit = (mode, label) => action(`edit-${mode}`, label, 'edit', { editor: mode });
function describeSelection(files) {
return { title: files.length === 1 ? path.basename(files[0]) : `${files.length} Dateien`,
subtitle: files.length ? 'Ergebnisse werden neben den Originalen gespeichert.' : 'Dateien auswählen' };
return { title: files.length === 1 ? path.basename(files[0]) : `${files.length} files`,
subtitle: files.length ? 'Output files are saved beside the originals.' : 'Choose files' };
}
function wheelContent(files, mode = 'quick') {
const kind = dominantCategory(files);
@@ -33,14 +33,14 @@ function wheelContent(files, mode = 'quick') {
let options = formats[kind].map(convert);
if (mode === 'tools') {
options = {
image: [compress, edit('crop','Zuschneiden'), edit('resize','Größe ändern'), edit('rotate','Drehen / Spiegeln'),clean,action('image-pdf','Bilder als PDF','image-to-pdf'),zip],
video: [compress, edit('resize','Größe ändern'), action('frame','Einzelbild','frame'),action('extract-audio','Audio extrahieren','extract-audio',{target:'mp3'}),clean,zip],
image: [compress, edit('crop','Crop'), edit('resize','Resize'), edit('rotate','Rotate / flip'),clean,action('image-pdf','Images to PDF','image-to-pdf'),zip],
video: [compress, edit('resize','Resize'), action('frame','Video frame','frame'),action('extract-audio','Extract audio','extract-audio',{target:'mp3'}),clean,zip],
audio: [compress,clean,zip],
pdf: [compress,combine,clean,action('password-add','Passwort setzen','pdf-password',{target:'add'}),action('password-remove','Passwort entfernen','pdf-password',{target:'remove'}),zip],
pdf: [compress,combine,clean,action('password-add','Set password','pdf-password',{target:'add'}),action('password-remove','Remove password','pdf-password',{target:'remove'}),zip],
text: [combine,zip], office:[combine,zip], other:[zip],
}[kind];
} else {
if (kind === 'image') options.push(action('more-formats','Weitere Formate','choose-format'));
if (kind === 'image') options.push(action('more-formats','More formats','choose-format'));
if (kind === 'video') options.push(action('extract-audio','MP3','extract-audio',{target:'mp3'}));
if (kind === 'pdf' && files.length > 1) options.push(combine);
if (options.length < 7) options.push(zip);
+1 -1
View File
@@ -52,7 +52,7 @@ class Wheel {
this.window.webContents.send('filebow-wheel:state', { ...content,
center: { x: this.center.x - bounds.x, y: this.center.y - bounds.y },
ready: true, interactive: this.interactive,
subtitle: this.interactive ? 'Aktion wählen · Esc zum Schließen' : content.subtitle });
subtitle: this.interactive ? 'Choose an action · Esc to close' : content.subtitle });
}
choose(id) {
const option = this.options.find(item => item.id === id);
+3 -3
View File
@@ -23,8 +23,8 @@ class WindowsBridge {
});
this.process.stderr.resume();
this.process.on('exit', () => {
reject(new Error('Windows-Hilfsprozess wurde beendet.'));
for (const pending of this.pending.values()) { clearTimeout(pending.timer); pending.reject(new Error('Windows-Hilfsprozess wurde beendet.')); }
reject(new Error('The Windows helper process has stopped.'));
for (const pending of this.pending.values()) { clearTimeout(pending.timer); pending.reject(new Error('The Windows helper process has stopped.')); }
this.pending.clear();
});
});
@@ -33,7 +33,7 @@ class WindowsBridge {
await this.ready;
return new Promise((resolve,reject) => {
const id = this.next++;
const timer = setTimeout(() => { this.pending.delete(id); reject(new Error('Windows antwortet nicht.')); }, 10000);
const timer = setTimeout(() => { this.pending.delete(id); reject(new Error('Windows is not responding.')); }, 10000);
this.pending.set(id, { resolve,reject,timer });
this.process.stdin.write(JSON.stringify({ id, command, ...extra }) + '\n');
});
+1
View File
@@ -1,6 +1,7 @@
const { contextBridge, ipcRenderer, webUtils } = require('electron');
contextBridge.exposeInMainWorld('orbit', {
support: () => ipcRenderer.invoke('orbit:support'),
issues: () => ipcRenderer.invoke('orbit:issues'),
licenses: () => ipcRenderer.invoke('orbit:licenses'),
state: () => ipcRenderer.invoke('orbit:state'),
pickFiles: () => ipcRenderer.invoke('orbit:pick'),
+3 -3
View File
@@ -1,8 +1,8 @@
<!doctype html>
<html lang="de"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self' data:; media-src file:;">
<title>FileBow</title><link rel="stylesheet" href="../shared.css"><link rel="stylesheet" href="style.css"></head>
<body><header><div class="eyebrow">FILEBOW</div><h1 id="title">Bearbeiten</h1><p id="filename" class="muted"></p></header>
<body><header><div class="eyebrow">FILEBOW</div><h1 id="title">Edit</h1><p id="filename" class="muted"></p></header>
<main><div id="error" class="error" role="alert" hidden></div><div id="content"></div></main>
<footer><p class="muted">Das Original bleibt erhalten.</p><button id="cancel">Abbrechen</button><button id="save" class="primary">Speichern</button></footer>
<footer><p class="muted">The original file is kept.</p><button id="cancel">Cancel</button><button id="save" class="primary">Save</button></footer>
<script src="index.js"></script></body></html>
+28 -28
View File
@@ -13,68 +13,68 @@ function check(label,id){const node=document.createElement('label');node.classNa
function error(message){$('#error').hidden=false;$('#error').textContent=message;}
function list(){const box=$('#files');box.replaceChildren();items.forEach((file,index)=>{
const row=document.createElement('div');row.className='file-row';const name=document.createElement('span');name.textContent=file.name;row.append(name);
for(const [label,offset] of [['↑',-1],['↓',1],['Entfernen',0]]){const b=document.createElement('button');b.textContent=label;b.title=offset?'Reihenfolge ändern':'Datei entfernen';b.disabled=offset ? index+offset<0||index+offset>=items.length : items.length===1;b.onclick=()=>{if(offset)[items[index],items[index+offset]]=[items[index+offset],items[index]];else items.splice(index,1);list();};row.append(b);}box.append(row);
for(const [label,offset] of [['↑',-1],['↓',1],['Remove',0]]){const b=document.createElement('button');b.textContent=label;b.title=offset?'Change order':'Remove file';b.disabled=offset ? index+offset<0||index+offset>=items.length : items.length===1;b.onclick=()=>{if(offset)[items[index],items[index+offset]]=[items[index+offset],items[index]];else items.splice(index,1);list();};row.append(b);}box.append(row);
});}
async function init(){
config=await api.init();document.documentElement.dataset.theme=config.theme;items=[...config.files];
$('#filename').textContent=items.length===1?items[0].name:`${items.length} Dateien`;
$('#filename').textContent=items.length===1?items[0].name:`${items.length} files`;
const content=$('#content');
if(config.type==='compress'){
$('#title').textContent='Komprimieren';content.append(text('PNG, WebP und AVIF behalten ihr Format. Andere Bilder werden als JPEG gespeichert, bei Transparenz als PNG. Videos werden MP4, Audio MP3. PDFs behalten ihr Format.'));
const q=field('Qualität: 75 %','quality','range',75);q.lastChild.min=5;q.lastChild.max=95;q.lastChild.oninput=e=>q.firstChild.textContent=`Qualität: ${e.target.value} %`;content.append(q,field('Maximale Größe pro Datei (MB, optional)','maxSizeMB','number',''));
$('#maxSizeMB').step='.1';content.append(text('Eine Zielgröße ist bei manchen Dateien nicht erreichbar. Das Ergebnis wird dann entsprechend gekennzeichnet.'));
content.append(text('PNG wird verlustfrei optimiert. Eine kleinere Zielgröße kann die Bildabmessungen verringern.'));
const estimate=text('Größe wird berechnet …');estimate.id='estimate';estimate.setAttribute('aria-live','polite');content.append(estimate);
if(items.length>1)content.append(text(`Die Prognose bezieht sich auf ${items[0].name}. Die Einstellungen gelten für alle ausgewählten Dateien.`));
$('#title').textContent='Compress';content.append(text('PNG, WebP and AVIF keep their format. Other images become JPEG, or PNG if transparent. Videos become MP4 and audio becomes MP3. PDFs keep their format.'));
const q=field('Quality: 75 %','quality','range',75);q.lastChild.min=5;q.lastChild.max=95;q.lastChild.oninput=e=>q.firstChild.textContent=`Quality: ${e.target.value} %`;content.append(q,field('Target size per file (MB, optional)','maxSizeMB','number',''));
$('#maxSizeMB').step='.1';content.append(text('Some files cannot reach the target size. You will be notified if the output exceeds it.'));
content.append(text('PNG optimization is lossless. A smaller target size may also reduce image dimensions.'));
const estimate=text('Calculating size …');estimate.id='estimate';estimate.setAttribute('aria-live','polite');content.append(estimate);
if(items.length>1)content.append(text(`The estimate is for ${items[0].name}. Settings apply to all selected files.`));
let timer, revision=0;
const bytes=value=>value<1024*1024?`${(value/1024).toLocaleString('de-DE',{maximumFractionDigits:1})} KB`:`${(value/1024/1024).toLocaleString('de-DE',{maximumFractionDigits:2})} MB`;
const update=()=>{const current=++revision;clearTimeout(timer);estimate.textContent='Größe wird berechnet …';timer=setTimeout(async()=>{try{
const bytes=value=>value<1024*1024?`${(value/1024).toLocaleString('en-US',{maximumFractionDigits:1})} KB`:`${(value/1024/1024).toLocaleString('en-US',{maximumFractionDigits:2})} MB`;
const update=()=>{const current=++revision;clearTimeout(timer);estimate.textContent='Calculating size …';timer=setTimeout(async()=>{try{
const result=await api.estimate({quality:Number($('#quality').value),maxSizeMB:Number($('#maxSizeMB').value)});
if(current!==revision||!result)return;
const change=result.originalSize?Math.round((1-result.size/result.originalSize)*100):0;
estimate.textContent=`${result.exact?'Voraussichtliche Größe':'Geschätzte Größe'}: ${bytes(result.size)} (${result.format.toUpperCase()}) · ${change>=0?`${change} % kleiner`:`${-change} % größer`} als ${bytes(result.originalSize)}${result.targetMet?'':' · Zielgröße voraussichtlich nicht erreichbar'}`;
}catch(e){if(current===revision)estimate.textContent=`Keine Prognose verfügbar: ${e.message}`;}},500);};
estimate.textContent=`${result.exact?'Expected size':'Estimated size'}: ${bytes(result.size)} (${result.format.toUpperCase()}) · ${change>=0?`${change}% smaller`:`${-change}% larger`} than ${bytes(result.originalSize)}${result.targetMet?'':' · Target size may not be reached'}`;
}catch(e){if(current===revision)estimate.textContent=`Estimate unavailable: ${e.message}`;}},500);};
$('#quality').addEventListener('input',update);$('#maxSizeMB').addEventListener('input',update);update();
}else if(config.type==='format'){
$('#title').textContent='Bildformat wählen';
const row=document.createElement('label');row.className='field';row.append(document.createTextNode('Ausgabeformat'));
$('#title').textContent='Choose image format';
const row=document.createElement('label');row.className='field';row.append(document.createTextNode('Output format'));
const select=document.createElement('select');select.id='format';
for(const fmt of ['jpg','png','webp','gif','avif','tiff','ico','bmp','heic','heif','pdf']){const option=document.createElement('option');option.value=fmt;option.textContent=fmt.toUpperCase();select.append(option);}
row.append(select);content.append(row);
}else if(config.type==='password'){
$('#title').textContent=config.mode==='add'?'PDF mit Passwort schützen':'PDF-Passwort entfernen';
content.append(field(config.mode==='add'?'Neues Passwort':'Aktuelles Passwort','password','password'));
if(config.mode==='add')content.append(field('Passwort wiederholen','confirm','password'));
$('#title').textContent=config.mode==='add'?'Protect PDF with a password':'Remove PDF password';
content.append(field(config.mode==='add'?'New password':'Current password','password','password'));
if(config.mode==='add')content.append(field('Confirm password','confirm','password'));
}else if(config.type==='combine'){
$('#title').textContent='Dateien zusammenfügen';content.append(text('Die Dateien werden in dieser Reihenfolge zusammengefügt.'));
const row=document.createElement('label');row.className='field';row.append(document.createTextNode('Ausgabeformat'));const select=document.createElement('select');select.id='format';for(const fmt of ['pdf','txt','md']){const option=document.createElement('option');option.value=fmt;option.textContent=fmt.toUpperCase();select.append(option);}row.append(select);content.append(row);
$('#title').textContent='Combine files';content.append(text('Files will be combined in this order.'));
const row=document.createElement('label');row.className='field';row.append(document.createTextNode('Output format'));const select=document.createElement('select');select.id='format';for(const fmt of ['pdf','txt','md']){const option=document.createElement('option');option.value=fmt;option.textContent=fmt.toUpperCase();select.append(option);}row.append(select);content.append(row);
const box=document.createElement('div');box.id='files';content.append(box);list();
}else if(config.type==='frame'){
$('#title').textContent='Einzelbild speichern';const box=document.createElement('div');box.className='preview';const video=document.createElement('video');video.controls=true;video.src=items[0].url;box.append(video);content.append(box,field('Zeitpunkt (Sekunden)','time','number',0));$('#time').step='.01';$('#time').max='1000000';video.ontimeupdate=()=>$('#time').value=video.currentTime.toFixed(2);$('#time').onchange=()=>video.currentTime=Number($('#time').value);video.onerror=()=>{box.replaceChildren(text('Keine Videovorschau verfügbar. Den Zeitpunkt kannst du unten angeben.'));};
$('#title').textContent='Save video frame';const box=document.createElement('div');box.className='preview';const video=document.createElement('video');video.controls=true;video.src=items[0].url;box.append(video);content.append(box,field('Timestamp (seconds)','time','number',0));$('#time').step='.01';$('#time').max='1000000';video.ontimeupdate=()=>$('#time').value=video.currentTime.toFixed(2);$('#time').onchange=()=>video.currentTime=Number($('#time').value);video.onerror=()=>{box.replaceChildren(text('Video preview is unavailable. Enter a timestamp below.'));};
}else if(config.type==='edit'){
$('#title').textContent={crop:'Zuschneiden',resize:'Größe ändern',rotate:'Drehen / Spiegeln'}[config.mode];
$('#save').disabled=true;content.append(text('Vorschau wird geladen …','muted'));
$('#title').textContent={crop:'Crop',resize:'Resize',rotate:'Rotate / flip'}[config.mode];
$('#save').disabled=true;content.append(text('Loading preview …','muted'));
try{preview=await api.preview();content.replaceChildren();aspect=preview.width/preview.height;
if(preview.dataUrl){const box=document.createElement('div');box.className='preview';const canvas=document.createElement('canvas');const image=new Image();image.src=preview.dataUrl;await image.decode();canvas.width=image.width;canvas.height=image.height;box.append(canvas);content.append(box);const ctx=canvas.getContext('2d');const draw=()=>{ctx.clearRect(0,0,canvas.width,canvas.height);ctx.drawImage(image,0,0);if(crop){const sx=canvas.width/preview.width,sy=canvas.height/preview.height;ctx.fillStyle='#ffffff25';ctx.fillRect(crop.x*sx,crop.y*sy,crop.width*sx,crop.height*sy);ctx.strokeStyle='#ffad76';ctx.lineWidth=2;ctx.strokeRect(crop.x*sx,crop.y*sy,crop.width*sx,crop.height*sy);}};draw();
if(config.mode==='crop'){content.append(text('Zum Zuschneiden einen Bereich im Bild aufziehen.'));let start;const point=e=>{const r=canvas.getBoundingClientRect();return{x:Math.round(Math.max(0,Math.min(1,(e.clientX-r.left)/r.width))*preview.width),y:Math.round(Math.max(0,Math.min(1,(e.clientY-r.top)/r.height))*preview.height)};};canvas.onpointerdown=e=>{start=point(e);canvas.setPointerCapture(e.pointerId);};canvas.onpointermove=e=>{if(!start)return;const p=point(e);crop={x:Math.min(start.x,p.x),y:Math.min(start.y,p.y),width:Math.max(1,Math.abs(p.x-start.x)),height:Math.max(1,Math.abs(p.y-start.y))};draw();};canvas.onpointerup=()=>start=null;}
if(config.mode==='crop'){content.append(text('Drag over the image to select a crop area.'));let start;const point=e=>{const r=canvas.getBoundingClientRect();return{x:Math.round(Math.max(0,Math.min(1,(e.clientX-r.left)/r.width))*preview.width),y:Math.round(Math.max(0,Math.min(1,(e.clientY-r.top)/r.height))*preview.height)};};canvas.onpointerdown=e=>{start=point(e);canvas.setPointerCapture(e.pointerId);};canvas.onpointermove=e=>{if(!start)return;const p=point(e);crop={x:Math.min(start.x,p.x),y:Math.min(start.y,p.y),width:Math.max(1,Math.abs(p.x-start.x)),height:Math.max(1,Math.abs(p.y-start.y))};draw();};canvas.onpointerup=()=>start=null;}
}
if(config.mode==='resize'){const fields=document.createElement('div');fields.className='fields';fields.append(field('Breite (px)','width','number',preview.width),field('Höhe (px)','height','number',preview.height));content.append(fields,check('Seitenverhältnis beibehalten','aspect'));$('#aspect').checked=true;$('#width').oninput=()=>{if($('#aspect').checked)$('#height').value=Math.max(1,Math.round(Number($('#width').value)/aspect));};$('#height').oninput=()=>{if($('#aspect').checked)$('#width').value=Math.max(1,Math.round(Number($('#height').value)*aspect));};}
if(config.mode==='rotate'){const label=document.createElement('label');label.className='field';label.append(document.createTextNode('Drehung im Uhrzeigersinn'));const select=document.createElement('select');select.id='rotate';for(const angle of [0,90,180,270]){const option=document.createElement('option');option.value=angle;option.textContent=`${angle}°`;select.append(option);}label.append(select);content.append(label,check('Horizontal spiegeln','flipH'),check('Vertikal spiegeln','flipV'));}
if(config.mode==='resize'){const fields=document.createElement('div');fields.className='fields';fields.append(field('Width (px)','width','number',preview.width),field('Height (px)','height','number',preview.height));content.append(fields,check('Keep aspect ratio','aspect'));$('#aspect').checked=true;$('#width').oninput=()=>{if($('#aspect').checked)$('#height').value=Math.max(1,Math.round(Number($('#width').value)/aspect));};$('#height').oninput=()=>{if($('#aspect').checked)$('#width').value=Math.max(1,Math.round(Number($('#height').value)*aspect));};}
if(config.mode==='rotate'){const label=document.createElement('label');label.className='field';label.append(document.createTextNode('Clockwise rotation'));const select=document.createElement('select');select.id='rotate';for(const angle of [0,90,180,270]){const option=document.createElement('option');option.value=angle;option.textContent=`${angle}°`;select.append(option);}label.append(select);content.append(label,check('Flip horizontally','flipH'),check('Flip vertically','flipV'));}
$('#save').disabled=false;
}catch(e){error(e.message);}
}
if(!['combine','password','format'].includes(config.type))content.append(field('Dateiname (optional, ohne Endung)','outputName','text'));
if(!['combine','password','format'].includes(config.type))content.append(field('Filename (optional, without extension)','outputName','text'));
}
$('#cancel').onclick=()=>api.submit(null);
$('#save').onclick=()=>{
$('#error').hidden=true;
const invalid=[...document.querySelectorAll('input')].find(input=>!input.checkValidity());if(invalid){invalid.reportValidity();return;}
if(config.type==='password'){const password=$('#password').value;if(!password)return error('Bitte ein Passwort eingeben.');if(config.mode==='add'&&password!==$('#confirm').value)return error('Die Passwörter stimmen nicht überein.');return api.submit(password);}
if(config.type==='password'){const password=$('#password').value;if(!password)return error('Enter a password.');if(config.mode==='add'&&password!==$('#confirm').value)return error('Passwords do not match.');return api.submit(password);}
if(config.type==='combine')return api.submit({files:items.map(x=>x.path),format:$('#format').value});
if(config.type==='format')return api.submit($('#format').value);
const result={};for(const id of ['quality','maxSizeMB','width','height','rotate','time']){if($('#'+id)&&$('#'+id).value!=='')result[id]=Number($('#'+id).value);}
for(const id of ['flipH','flipV'])if($('#'+id))result[id]=$('#'+id).checked;
if(config.type==='edit'&&config.mode==='crop'){if(!crop||crop.width<2||crop.height<2)return error('Bitte einen Bildbereich auswählen.');result.crop=crop;}
if(config.type==='edit'&&config.mode==='crop'){if(!crop||crop.width<2||crop.height<2)return error('Select a crop area.');result.crop=crop;}
if($('#outputName')?.value.trim())result.outputName=$('#outputName').value.trim();api.submit(result);
};
document.addEventListener('keydown',e=>{if(e.key==='Escape')api.submit(null);});init().catch(e=>error(e.message));
+21 -21
View File
@@ -1,25 +1,25 @@
<!doctype html><html lang="de"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self' data:;">
<title>FileBow</title><link rel="stylesheet" href="../shared.css"><link rel="stylesheet" href="style.css"></head>
<body><aside><div class="brand"><img src="../../../assets/icon.png" alt=""><strong>FileBow</strong></div>
<nav aria-label="Navigation"><button class="nav active" data-page="files"><span>▤</span>Dateien</button><button class="nav" data-page="history"><span>◷</span>Verlauf</button><button class="nav" data-page="settings"><span>⚙</span>Einstellungen</button><button class="nav" data-page="about"><span>ⓘ</span>Über FileBow</button></nav>
<div class="sidebar-bottom"><span class="status-dot"></span>Lokale Verarbeitung<p id="version"></p></div></aside>
<main><section id="page-files"><header><div><div class="eyebrow">DATEIWERKZEUGE</div><h1>Dateien bearbeiten</h1></div><button id="pick" class="primary">Dateien auswählen</button></header>
<div class="dropzone" id="dropzone"><div class="drop-icon">↓</div><h2>Dateien hier ablegen</h2><p>Bilder, Videos, Audio und Dokumente</p><button id="drop-pick">Dateien auswählen</button><div class="drop-hint">Oder im Explorer auswählen und <kbd>Strg + Leertaste</kbd> drücken.</div></div>
<div id="selection" hidden><div class="section-label"><h2>Auswahl <span id="count"></span></h2><button id="clear" class="text-button">Auswahl leeren</button></div><div id="file-list"></div>
<div class="toolbar"><div class="tabs" role="tablist"><button id="tab-quick" role="tab" aria-selected="true">Konvertieren</button><button id="tab-tools" role="tab" aria-selected="false">Werkzeuge</button></div><button id="wheel-open">Radialmenü öffnen ↗</button></div>
<div id="actions" class="actions"></div><p class="output-note">Neue Dateien werden neben den Originalen gespeichert. Bestehende Dateien werden nicht überschrieben.</p></div>
<div class="shortcuts"><div><kbd>Strg + Leertaste</kbd><span>Konvertieren</span></div><div><kbd>Alt + Leertaste</kbd><span>Werkzeuge</span></div><div><kbd>Esc</kbd><span>Radialmenü schließen</span></div></div>
<div id="recent"><div class="section-label"><h2>Letzte Ergebnisse</h2><button id="all-history" class="text-button">Verlauf öffnen →</button></div><div id="recent-list"></div></div></section>
<section id="page-history" hidden><header><div><div class="eyebrow">AUFTRÄGE</div><h1>Verlauf</h1></div><button id="clear-history">Verlauf löschen</button></header><p class="muted">Die letzten 50 Aufträge. Ergebnisdateien bleiben beim Löschen des Verlaufs erhalten.</p><div id="history-list"></div></section>
<section id="page-settings" hidden><header><div><div class="eyebrow">FILEBOW</div><h1>Einstellungen</h1></div></header><div class="settings-list">
<label class="setting"><span><strong>Darstellung</strong><small>Farbschema der App</small></span><select id="theme"><option value="dark">Dunkel</option><option value="light">Hell</option><option value="system">System</option></select></label>
<label class="setting"><span><strong>Mit Windows starten</strong><small>FileBow im Infobereich starten</small></span><input type="checkbox" data-setting="autoStart"></label>
<label class="setting"><span><strong>Tastenkürzel</strong><small>Strg + Leertaste und Alt + Leertaste</small></span><input type="checkbox" data-setting="shortcuts"></label>
<label class="setting"><span><strong>Radialmenü beim Ziehen</strong><small>Bei Dateiauswahl im Explorer öffnen; Alt für Werkzeuge</small></span><input type="checkbox" data-setting="dragWheel"></label>
<label class="setting"><span><strong>Im Hintergrund weiterlaufen</strong><small>Beim Schließen im Infobereich verfügbar bleiben</small></span><input type="checkbox" data-setting="closeToTray"></label>
<label class="setting"><span><strong>Verlauf speichern</strong><small>Dateinamen und Ergebnispfade lokal speichern</small></span><input type="checkbox" data-setting="rememberHistory"></label>
<label class="setting"><span><strong>Hardwarebeschleunigung</strong><small>Für die Oberfläche; Änderung nach Neustart aktiv</small></span><input type="checkbox" data-setting="hardwareAcceleration"></label>
<nav aria-label="Navigation"><button class="nav active" data-page="files"><span>▤</span>Files</button><button class="nav" data-page="history"><span>◷</span>History</button><button class="nav" data-page="settings"><span>⚙</span>Settings</button><button class="nav" data-page="about"><span>ⓘ</span>About FileBow</button></nav>
<div class="sidebar-bottom"><span class="status-dot"></span>Local processing<p id="version"></p><button id="support" class="text-button">Support on Ko-fi ↗</button></div></aside>
<main><section id="page-files"><header><div><div class="eyebrow">FILE TOOLS</div><h1>Convert and edit</h1></div><button id="pick" class="primary">Choose files</button></header>
<div class="dropzone" id="dropzone"><div class="drop-icon">↓</div><h2>Drop files here</h2><p>Images, video, audio and documents</p><button id="drop-pick">Choose files</button><div class="drop-hint">Or select files in File Explorer and press <kbd>Ctrl + Space</kbd>.</div></div>
<div id="selection" hidden><div class="section-label"><h2>Selection <span id="count"></span></h2><button id="clear" class="text-button">Clear selection</button></div><div id="file-list"></div>
<div class="toolbar"><div class="tabs" role="tablist"><button id="tab-quick" role="tab" aria-selected="true">Convert</button><button id="tab-tools" role="tab" aria-selected="false">Tools</button></div><button id="wheel-open">Open radial menu ↗</button></div>
<div id="actions" class="actions"></div><p class="output-note">New files are saved beside the originals. Existing files are never overwritten.</p></div>
<div class="shortcuts"><div><kbd>Ctrl + Space</kbd><span>Convert</span></div><div><kbd>Alt + Space</kbd><span>Tools</span></div><div><kbd>Esc</kbd><span>Close radial menu</span></div></div>
<div id="recent"><div class="section-label"><h2>Recent results</h2><button id="all-history" class="text-button">View history →</button></div><div id="recent-list"></div></div></section>
<section id="page-history" hidden><header><div><div class="eyebrow">JOBS</div><h1>History</h1></div><button id="clear-history">Clear history</button></header><p class="muted">Your last 50 jobs. Clearing history does not delete output files.</p><div id="history-list"></div></section>
<section id="page-settings" hidden><header><div><div class="eyebrow">FILEBOW</div><h1>Settings</h1></div></header><div class="settings-list">
<label class="setting"><span><strong>Appearance</strong><small>App color scheme</small></span><select id="theme"><option value="dark">Dark</option><option value="light">Light</option><option value="system">System</option></select></label>
<label class="setting"><span><strong>Start with Windows</strong><small>Start FileBow in the system tray</small></span><input type="checkbox" data-setting="autoStart"></label>
<label class="setting"><span><strong>Keyboard shortcuts</strong><small>Ctrl + Space and Alt + Space</small></span><input type="checkbox" data-setting="shortcuts"></label>
<label class="setting"><span><strong>Radial menu while dragging</strong><small>Show for selected Explorer files; hold Alt for tools</small></span><input type="checkbox" data-setting="dragWheel"></label>
<label class="setting"><span><strong>Keep running in the background</strong><small>Keep FileBow in the system tray when the window closes</small></span><input type="checkbox" data-setting="closeToTray"></label>
<label class="setting"><span><strong>Save history</strong><small>Save filenames and output paths locally</small></span><input type="checkbox" data-setting="rememberHistory"></label>
<label class="setting"><span><strong>Hardware acceleration</strong><small>Applies to the interface; takes effect after restarting</small></span><input type="checkbox" data-setting="hardwareAcceleration"></label>
</div><p id="integration-status" class="muted"></p></section>
<section id="page-about" hidden><header><div><div class="eyebrow">DATEIWERKZEUGE FÜR WINDOWS</div><h1>FileBow</h1></div><img class="about-icon" src="../../../assets/icon.png" alt="FileBow"></header><p>Konvertieren, komprimieren und bearbeiten. Direkt über das Radialmenü oder die Dateiauswahl.</p><div class="about-block"><h2>Datenschutz</h2><p>FileBow verarbeitet Dateien auf diesem Gerät. Die App benötigt kein Konto und überträgt keine Dateien oder Nutzungsdaten. Der Verlauf lässt sich in den Einstellungen abschalten.</p></div><div class="about-block"><h2>Unterstützte Formate</h2><p>Bilder: JPEG, PNG, WebP, AVIF, TIFF, BMP, GIF, HEIC/HEIF und ICO.<br>Video: MP4, MOV, MKV, AVI, WebM und weitere FFmpeg-Formate.<br>Audio: MP3, WAV, FLAC, AAC/M4A, OGG und Opus.<br>Dokumente: PDF, TXT, Markdown, DOCX, XLS/XLSX, PPTX, RTF und EPUB.</p><p class="muted">Dokumentkonvertierungen übernehmen den Textinhalt. Gescannte PDFs benötigen eine vorhandene Textebene. Alte DOC- und PPT-Dateien bitte zuerst als DOCX bzw. PPTX speichern.</p></div><div class="about-block"><h2>Open-Source-Komponenten</h2><p>FileBow verwendet Electron, .NET, Python, Pillow, pypdf und FFmpeg sowie weitere Bibliotheken.</p><button id="licenses">Lizenzhinweise öffnen</button></div><p><button id="support" class="text-button">Auf Ko-fi unterstützen ↗</button></p></section>
</main><div id="job" hidden role="status"><div><strong id="job-label"></strong><p id="job-detail"></p></div><progress id="job-progress" max="100"></progress><button id="cancel-job">Abbrechen</button></div><div id="toast" role="status" hidden></div><script src="index.js"></script></body></html>
<section id="page-about" hidden><header><div><div class="eyebrow">FILE TOOLS FOR WINDOWS</div><h1>FileBow</h1></div><img class="about-icon" src="../../../assets/icon.png" alt="FileBow"></header><p>Convert, compress and edit files from the radial menu or the app window.</p><div class="about-block"><h2>Privacy</h2><p>FileBow processes files on this device. No account is required, and no files or usage data are uploaded. You can turn off history in Settings.</p></div><div class="about-block"><h2>Supported formats</h2><p>Images: JPEG, PNG, WebP, AVIF, TIFF, BMP, GIF, HEIC/HEIF and ICO.<br>Video: MP4, MOV, MKV, AVI, WebM and other FFmpeg formats.<br>Audio: MP3, WAV, FLAC, AAC/M4A, OGG and Opus.<br>Documents: PDF, TXT, Markdown, DOCX, XLS/XLSX, PPTX, RTF and EPUB.</p><p class="muted">Document conversions extract text without preserving the original layout. Scanned PDFs need an existing text layer. Save legacy DOC and PPT files as DOCX or PPTX first.</p></div><div class="about-block"><h2>Third-party components</h2><p>FileBow uses Electron, .NET, Python, Pillow, pypdf, FFmpeg and other libraries.</p><button id="licenses">View licenses</button></div><p class="muted">Missing a feature or found a bug? <button id="issues" class="text-button">Report an issue ↗</button></p></section>
</main><div id="job" hidden role="status"><div><strong id="job-label"></strong><p id="job-detail"></p></div><progress id="job-progress" max="100"></progress><button id="cancel-job">Cancel</button></div><div id="toast" role="status" hidden></div><script src="index.js"></script></body></html>
+8 -7
View File
@@ -4,27 +4,28 @@ const sizes=bytes=>bytes<1024?`${bytes} B`:bytes<1048576?`${(bytes/1024).toFixed
function toast(message,error=false){$('#toast').textContent=message;$('#toast').classList.toggle('error-toast',error);$('#toast').hidden=false;clearTimeout(toastTimer);toastTimer=setTimeout(()=>$('#toast').hidden=true,error?12000:6500);}
async function invoke(fn){try{return await fn();}catch(error){toast(error.message.replace(/^Error invoking remote method '[^']+': Error: /,''),true);}}
function navigate(value){page=value;for(const section of document.querySelectorAll('main>section'))section.hidden=section.id!==`page-${page}`;for(const button of document.querySelectorAll('[data-page]')){button.classList.toggle('active',button.dataset.page===page);button.setAttribute('aria-current',button.dataset.page===page?'page':'false');}}
function renderHistory(selector,entries){const parent=$(selector);parent.replaceChildren();if(!entries.length){const empty=document.createElement('div');empty.className='empty';empty.textContent='Noch keine Aufträge.';parent.append(empty);return;}
for(const entry of entries){const row=document.createElement('article');row.className='history-row';const symbol=document.createElement('div');symbol.className='history-symbol';symbol.textContent=entry.status==='success'?'✓':entry.status==='partial'?'!':'×';const body=document.createElement('div');body.className='history-body';const title=document.createElement('strong');title.textContent=entry.label;const info=document.createElement('p');info.textContent=`${entry.count} Ergebnisdatei(en)${entry.status==='error'?' · Fehlgeschlagen':entry.status==='partial'?' · Teilweise abgeschlossen':''}`;body.append(title,info);
function renderHistory(selector,entries){const parent=$(selector);parent.replaceChildren();if(!entries.length){const empty=document.createElement('div');empty.className='empty';empty.textContent='No jobs yet.';parent.append(empty);return;}
for(const entry of entries){const row=document.createElement('article');row.className='history-row';const symbol=document.createElement('div');symbol.className='history-symbol';symbol.textContent=entry.status==='success'?'✓':entry.status==='partial'?'!':'×';const body=document.createElement('div');body.className='history-body';const title=document.createElement('strong');title.textContent=entry.label;const info=document.createElement('p');info.textContent=`${entry.count} output ${entry.count===1?'file':'files'}${entry.status==='error'?' · Failed':entry.status==='partial'?' · Partially completed':''}`;body.append(title,info);
if(entry.errors?.length){const error=document.createElement('p');error.textContent=entry.errors.map(x=>`${x.file?x.file+': ':''}${x.message}`).join('\n');body.append(error);}
const outputs=document.createElement('div');outputs.className='outputs';for(const file of entry.outputs||[]){const button=document.createElement('button');button.textContent=file.split(/[\\/]/).pop()+' ↗';button.title=file;button.onclick=()=>invoke(()=>api.reveal(file));outputs.append(button);}body.append(outputs);const date=document.createElement('time');date.dateTime=entry.date;date.textContent=new Date(entry.date).toLocaleString('de-DE',{day:'2-digit',month:'2-digit',hour:'2-digit',minute:'2-digit'});row.append(symbol,body,date);parent.append(row);}
const outputs=document.createElement('div');outputs.className='outputs';for(const file of entry.outputs||[]){const button=document.createElement('button');button.textContent=file.split(/[\\/]/).pop()+' ↗';button.title=file;button.onclick=()=>invoke(()=>api.reveal(file));outputs.append(button);}body.append(outputs);const date=document.createElement('time');date.dateTime=entry.date;date.textContent=new Date(entry.date).toLocaleString('en-US',{day:'2-digit',month:'2-digit',hour:'2-digit',minute:'2-digit'});row.append(symbol,body,date);parent.append(row);}
}
function render(next){state=next;document.documentElement.dataset.theme=state.theme;$('#version').textContent=`Version ${state.version}`;$('#selection').hidden=!state.files.length;$('#dropzone').hidden=!!state.files.length;$('#count').textContent=`(${state.files.length})`;const list=$('#file-list');list.replaceChildren();
for(const file of state.files){const row=document.createElement('div');row.className='file-item';const badge=document.createElement('span');badge.className='file-badge';badge.textContent=file.name.split('.').pop().toUpperCase().slice(0,5);const name=document.createElement('span');name.className='filename';name.textContent=file.name;name.title=file.path;const size=document.createElement('span');size.className='file-size';size.textContent=sizes(file.size);const remove=document.createElement('button');remove.className='icon';remove.textContent='×';remove.setAttribute('aria-label',`${file.name} aus Auswahl entfernen`);remove.onclick=()=>invoke(()=>api.selectFiles(state.files.filter(x=>x.path!==file.path).map(x=>x.path)));row.append(badge,name,size,remove);list.append(row);}
for(const file of state.files){const row=document.createElement('div');row.className='file-item';const badge=document.createElement('span');badge.className='file-badge';badge.textContent=file.name.split('.').pop().toUpperCase().slice(0,5);const name=document.createElement('span');name.className='filename';name.textContent=file.name;name.title=file.path;const size=document.createElement('span');size.className='file-size';size.textContent=sizes(file.size);const remove=document.createElement('button');remove.className='icon';remove.textContent='×';remove.setAttribute('aria-label',`Remove ${file.name} from selection`);remove.onclick=()=>invoke(()=>api.selectFiles(state.files.filter(x=>x.path!==file.path).map(x=>x.path)));row.append(badge,name,size,remove);list.append(row);}
const actions=$('#actions');actions.replaceChildren();for(const option of state[mode]){const button=document.createElement('button');button.textContent=option.label;button.dataset.action=option.id;button.disabled=!!state.activeJob;button.onclick=()=>invoke(()=>api.choose(option.id));actions.append(button);}
$('#tab-quick').setAttribute('aria-selected',mode==='quick');$('#tab-tools').setAttribute('aria-selected',mode==='tools');
$('#theme').value=state.settings.theme;for(const input of document.querySelectorAll('[data-setting]'))input.checked=state.settings[input.dataset.setting];
const failures=Object.entries(state.shortcuts).filter(([,active])=>!active).map(([key])=>key==='quick'?'Strg + Leertaste':'Alt + Leertaste');
$('#integration-status').textContent=!state.native.available?`Explorer-Anbindung nicht verfügbar: ${state.native.error}`:failures.length?`Tastenkürzel bereits belegt: ${failures.join(', ')}.`:state.packageIdentity.packaged?'Als MSIX installiert.':'Explorer-Anbindung verfügbar.';
const failures=Object.entries(state.shortcuts).filter(([,active])=>!active).map(([key])=>key==='quick'?'Ctrl + Space':'Alt + Space');
$('#integration-status').textContent=!state.native.available?`File Explorer integration unavailable: ${state.native.error}`:failures.length?`Shortcuts already in use: ${failures.join(', ')}.`:state.packageIdentity.packaged?'Installed as an MSIX package.':'File Explorer integration available.';
renderHistory('#recent-list',state.history.slice(0,2));renderHistory('#history-list',state.history);
$('#clear-history').disabled=!state.history.length;$('#job').hidden=!state.activeJob;
if(state.activeJob){$('#job-label').textContent=state.activeJob.label;$('#job-detail').textContent=state.activeJob.phase==='preparing'?'Einstellungen wählen':`${state.activeJob.done} von ${state.activeJob.total} Dateien`;$('#cancel-job').disabled=state.activeJob.phase!=='running';if(state.activeJob.phase==='running')$('#job-progress').value=state.activeJob.done/state.activeJob.total*100;else $('#job-progress').removeAttribute('value');}
if(state.activeJob){$('#job-label').textContent=state.activeJob.label;$('#job-detail').textContent=state.activeJob.phase==='preparing'?'Choose settings':`${state.activeJob.done} of ${state.activeJob.total} files`;$('#cancel-job').disabled=state.activeJob.phase!=='running';if(state.activeJob.phase==='running')$('#job-progress').value=state.activeJob.done/state.activeJob.total*100;else $('#job-progress').removeAttribute('value');}
}
for(const button of document.querySelectorAll('[data-page]'))button.onclick=()=>navigate(button.dataset.page);
$('#pick').onclick=$('#drop-pick').onclick=()=>invoke(()=>api.pickFiles());$('#clear').onclick=()=>invoke(()=>api.selectFiles([]));
$('#tab-quick').onclick=()=>{mode='quick';render(state);};$('#tab-tools').onclick=()=>{mode='tools';render(state);};$('#wheel-open').onclick=()=>invoke(()=>api.wheel(mode));$('#all-history').onclick=()=>navigate('history');$('#clear-history').onclick=()=>invoke(()=>api.clearHistory());$('#cancel-job').onclick=()=>invoke(()=>api.cancel());
$('#theme').onchange=e=>invoke(()=>api.settings({theme:e.target.value}));for(const input of document.querySelectorAll('[data-setting]'))input.onchange=()=>invoke(()=>api.settings({[input.dataset.setting]:input.checked}));
$('#support').onclick=()=>invoke(()=>api.support());
$('#issues').onclick=()=>invoke(()=>api.issues());
$('#licenses').onclick=()=>invoke(()=>api.licenses());
document.addEventListener('dragover',event=>{event.preventDefault();$('#dropzone').classList.add('dragover');});document.addEventListener('dragleave',()=>$('#dropzone').classList.remove('dragover'));document.addEventListener('drop',event=>{event.preventDefault();$('#dropzone').classList.remove('dragover');const paths=api.pathsForFiles(event.dataTransfer.files);if(paths.length){navigate('files');invoke(()=>api.selectFiles(paths));}});
api.onState(render);api.onNotice(({message,error})=>toast(message,error));invoke(async()=>render(await api.state()));
+2
View File
@@ -1 +1,3 @@
body{display:grid;grid-template-columns:204px 1fr;min-height:100vh}aside{position:fixed;top:0;bottom:0;left:0;width:204px;border-right:1px solid var(--line);padding:28px 18px;display:flex;flex-direction:column;background:var(--panel)}.brand{display:flex;align-items:center;gap:11px;padding:0 8px 35px;font-size:21px;letter-spacing:-.5px}.brand img{width:34px;height:34px}nav{display:flex;flex-direction:column;gap:6px}.nav{display:flex;align-items:center;gap:11px;text-align:left;border:0;background:transparent;color:var(--muted);padding:12px}.nav span{width:19px;font-size:18px}.nav:hover{background:var(--raised)}.nav.active{background:var(--raised);color:var(--text)}.nav.active:before{content:'';width:3px;height:18px;background:var(--accent);position:absolute;left:18px;border-radius:2px}.sidebar-bottom{margin-top:auto;padding:20px 8px 0;font-size:11px;color:var(--muted)}.sidebar-bottom p{margin:10px 0 0 12px}.status-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#a1b994;margin-right:7px}main{grid-column:2;padding:38px 44px 110px;max-width:1250px;width:100%;margin:0 auto}header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}header h1{font-size:28px;margin:8px 0 0}header .eyebrow{font-size:10px}.dropzone{border:1px dashed #57545c;border-radius:14px;min-height:270px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 5%,var(--bg)),var(--bg));padding:25px}.dropzone.dragover{border:2px solid var(--accent);background:var(--raised)}.drop-icon{font-size:27px;color:var(--accent);height:42px;width:42px;border:1px solid var(--line);border-radius:10px;line-height:36px}.dropzone h2{margin:16px 0 0;font-size:18px}.dropzone p{margin:6px 0 17px;color:var(--muted);font-size:13px}.drop-hint{color:var(--muted);font-size:11px;margin-top:23px}.drop-hint kbd{font-size:11px}.shortcuts{display:flex;gap:26px;justify-content:space-between;border-bottom:1px solid var(--line);padding:24px 0;margin-bottom:24px}.shortcuts div{display:flex;flex-direction:column;gap:8px;align-items:flex-start}.shortcuts span{font-size:11px;color:var(--muted)}.section-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section-label h2{font-size:15px;margin:0}.text-button{border:0;background:transparent;color:var(--muted);padding:6px 0;font-size:12px}.text-button:hover{color:var(--accent)}.empty{padding:23px 0;color:var(--muted);font-size:13px}.history-row{display:flex;gap:14px;align-items:flex-start;border-bottom:1px solid var(--line);padding:16px 0}.history-symbol{width:32px;height:32px;line-height:30px;text-align:center;background:var(--raised);border-radius:9px;color:var(--accent);flex-shrink:0}.history-body{flex:1;min-width:0}.history-body strong{font-size:13px;font-weight:550}.history-body p{font-size:11px;color:var(--muted);margin:5px 0 0;white-space:pre-wrap}.history-row time{color:var(--muted);font-size:11px;white-space:nowrap}.outputs{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.outputs button{font-size:11px;padding:5px 9px;max-width:290px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-item{display:flex;align-items:center;gap:13px;padding:12px 15px;background:var(--panel);border:1px solid var(--line);border-radius:8px;margin:6px 0}.file-badge{font-size:10px;letter-spacing:.5px;color:var(--accent);width:34px}.file-item .filename{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.file-size{color:var(--muted);font-size:11px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 16px}.toolbar>button{font-size:12px;padding:8px 10px}.tabs{display:flex;gap:3px;background:var(--panel);padding:4px;border-radius:8px;border:1px solid var(--line)}.tabs button{border:0;background:transparent;color:var(--muted);font-size:12px;padding:8px 12px}.tabs button[aria-selected=true]{background:var(--raised);color:var(--text)}.actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:9px}.actions button{min-height:60px;background:var(--panel);text-align:left;font-size:12px;padding:12px 14px}.actions button:hover{border-color:var(--accent);color:var(--accent)}.output-note{font-size:11px;color:var(--muted);margin:16px 0}.settings-list{border-top:1px solid var(--line)}.setting{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:21px 0;border-bottom:1px solid var(--line)}.setting span{display:flex;flex-direction:column;gap:6px}.setting strong{font-size:13px;font-weight:550}.setting small{font-size:12px;color:var(--muted)}.setting input[type=checkbox]{width:19px;height:19px}.about-icon{width:78px;height:78px}.about-block{padding:18px 0;border-top:1px solid var(--line)}.about-block p{font-size:13px;color:var(--muted)}#integration-status{font-size:12px}#job{position:fixed;left:228px;right:24px;bottom:20px;backgroundLine truncated
.sidebar-bottom #support{display:block;margin-top:14px;font-size:11px;text-align:left}
+1 -1
View File
@@ -1 +1 @@
<!doctype html><html lang="de"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self';"><title>FileBow Radialmenü</title><link rel="stylesheet" href="style.css"></head><body><div id="wheel" role="menu" aria-label="Dateiaktionen"><svg id="segments" viewBox="0 0 500 500" aria-hidden="true"></svg><div id="buttons"></div><div class="center"><span id="mode"></span><strong id="filename"></strong><small id="hint"></small><button id="close" aria-label="Radialmenü schließen">×</button></div></div><script src="index.js"></script></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self';"><title>FileBow Radial menu</title><link rel="stylesheet" href="style.css"></head><body><div id="wheel" role="menu" aria-label="File actions"><svg id="segments" viewBox="0 0 500 500" aria-hidden="true"></svg><div id="buttons"></div><div class="center"><span id="mode"></span><strong id="filename"></strong><small id="hint"></small><button id="close" aria-label="Close radial menu">×</button></div></div><script src="index.js"></script></body></html>
+1 -1
View File
@@ -1,6 +1,6 @@
const api=window.filebowWheel,$=s=>document.querySelector(s);let current;
const position=(r,angle)=>{const radians=(angle-90)*Math.PI/180;return[250+r*Math.cos(radians),250+r*Math.sin(radians)];};
function render(data){current=data;document.body.classList.add('visible');$('#wheel').style.left=`${data.center.x-250}px`;$('#wheel').style.top=`${data.center.y-250}px`;$('#filename').textContent=data.title;$('#mode').textContent=data.mode==='tools'?'WERKZEUGE':'KONVERTIEREN';$('#hint').textContent='Aktion wählen oder Datei ablegen';$('#segments').replaceChildren();$('#buttons').replaceChildren();const n=data.options.length,step=360/n;
function render(data){current=data;document.body.classList.add('visible');$('#wheel').style.left=`${data.center.x-250}px`;$('#wheel').style.top=`${data.center.y-250}px`;$('#filename').textContent=data.title;$('#mode').textContent=data.mode==='tools'?'TOOLS':'CONVERT';$('#hint').textContent='Choose an action or drop a file';$('#segments').replaceChildren();$('#buttons').replaceChildren();const n=data.options.length,step=360/n;
data.options.forEach((option,index)=>{const start=index*step-step/2+1,end=index*step+step/2-1;const a=position(245,start),b=position(245,end),c=position(109,end),d=position(109,start);const sector=document.createElementNS('http://www.w3.org/2000/svg','path');sector.classList.add('sector');sector.setAttribute('d',`M ${a} A 245 245 0 ${step>180?1:0} 1 ${b} L ${c} A 109 109 0 ${step>180?1:0} 0 ${d} Z`);$('#segments').append(sector);const button=document.createElement('button');button.className='action';button.setAttribute('role','menuitem');button.dataset.id=option.id;const p=position(177,index*step);button.style.left=`${p[0]}px`;button.style.top=`${p[1]}px`;const number=document.createElement('small');number.textContent=String(index+1).padStart(2,'0');button.append(number,document.createTextNode(option.label));button.onclick=()=>api.choose(option.id);button.onmouseenter=button.onfocus=()=>sector.classList.add('active');button.onmouseleave=button.onblur=()=>sector.classList.remove('active');button.ondragover=e=>{e.preventDefault();sector.classList.add('active');};button.ondragleave=()=>sector.classList.remove('active');button.ondrop=e=>{e.preventDefault();e.stopPropagation();api.drop(e.dataTransfer.files,option.id);};$('#buttons').append(button);});
}
api.onState(render);$('#close').onclick=()=>api.cancel();document.addEventListener('keydown',e=>{if(e.key==='Escape')api.cancel();const index=Number(e.key)-1;if(index>=0&&index<current.options.length)api.choose(current.options[index].id);});document.addEventListener('mousedown',e=>{if(e.target===document.body)api.cancel();});document.addEventListener('dragover',e=>e.preventDefault());document.addEventListener('drop',e=>e.preventDefault());
+31 -28
View File
@@ -1,17 +1,20 @@
# Microsoft Store: FileBow
# Microsoft Store release
## Stand
FileBow has a Windows x64 portable build and separate Store and development MSIX packages. Package validation and local app tests do not establish Microsoft Store certification.
Die Windows-x64-Anwendung, das Store-MSIX mit der bestätigten Produktidentität und ein mit Entwicklungszertifikat signiertes MSIX sind gebaut. MakeAppx hat das Manifest und den Paketinhalt geprüft. Die portable App und der gebündelte Konverter wurden ausgeführt und getestet. Das ist keine Microsoft-Store-Zertifizierung.
## Product identity
## Noch vom Herausgeber einzutragen
The confirmed Partner Center values are in `identity.store.json`. Store ID: `9N3MJ7558CNZ`. Package family: `Nordik.dev.FileBow_01yfjzms33s0w`. Package SID and account credentials are not needed to build the package.
Die bestätigte Partner-Center-Identität ist in `identity.store.json` eingetragen. Store-ID: `9N3MJ7558CNZ`, Paketfamilie: `Nordik.dev.FileBow_01yfjzms33s0w`. Package SID und Kontozugangsdaten werden für den Paketbau nicht benötigt.
The app and manifest use English (`en-US`). Store copy is in `listing.en-US.json`; screenshots are in `screenshots`.
1. In `listing.de-DE.json` Support- und Datenschutz-URL, gegebenenfalls Website und Copyright-Angabe ergänzen. `privacy-policy.de-DE.md` enthält den technischen Datenschutztext; Anbieter und Kontakt müssen ergänzt werden.
2. Altersfreigabe, Kategorie, Preis, Länder und Verfügbarkeit in Partner Center wählen.
## Publisher details to complete
## Paket bauen und einreichen
- Publish the privacy notice and add its URL to `listing.en-US.json`. Complete the provider and contact fields in `privacy-policy.en-US.md` first.
- Confirm the support URL, website and copyright notice. The public issue tracker is configured as the support URL.
- Select age rating, category, price, markets and availability in Partner Center.
## Build and submit
```powershell
pnpm build:windows
@@ -20,34 +23,34 @@ pnpm build
pnpm build:store
```
Das Ergebnis heißt `out/msix/FileBow_1.0.0.0_x64_Store.msix`. Es wird nicht mit dem lokalen Entwicklungszertifikat signiert. Die Store-Einreichung verwendet die reservierte Paketidentität; Microsoft signiert die ausgelieferte App. Die vierteilige Version muss bei Updates steigen, die letzte Stelle bleibt für Store-Einreichungen `0`.
Upload `out/msix/FileBow_1.0.0.0_x64_Store.msix` to Partner Center. This package uses the reserved identity and is not signed with the local development certificate. Microsoft signs the distributed Store app. Increase the four-part package version for updates and keep its final component at `0` for Store submissions.
Die Dateien `identity.dev.json` und `FileBow-Development.cer` gehören nicht in die Store-Einreichung. Der private Entwicklungsschlüssel liegt ausschließlich im persönlichen Windows-Zertifikatspeicher und wird nicht exportiert.
Do not submit `identity.dev.json` or `FileBow-Development.cer`. The private development key stays in the local Windows certificate store and is not exported.
## Vor der öffentlichen Freigabe
## Before public release
- MSIX auf einer sauberen Windows-Installation installieren, starten, aktualisieren und deinstallieren. Das Paket wurde auf diesem Rechner noch nicht installiert; es wurde kein Zertifikat in den systemweiten Vertrauensspeicher importiert.
- Windows App Certification Kit (WACK) über das finale Paket ausführen. Das Kit ist auf diesem Rechner nicht vorhanden.
- MSIX-Autostart aktivieren/deaktivieren, Abmeldung/Anmeldung und den Zustand „durch Benutzer deaktiviert“ prüfen. Die WinRT-Schnittstelle ist implementiert; ein tatsächlicher Anmeldezyklus mit installiertem Paket ist noch offen.
- Explorer-Ziehbedienung mit echter Maus, mehreren Displays und 100/150/200 % Skalierung prüfen. Auswahl und Tastenkürzel wurden live geprüft; der automatisierte Zieh-Test lieferte kein belastbares Ergebnis.
- Eine vollständige Liste der mitgelieferten Open-Source-Komponenten und ihrer Quellcodepflichten abschließend prüfen. Die FFmpeg-Hauptquelle und Buildskripte sowie Lizenztexte sind enthalten; die vollständige Quellcodebereitstellung aller darin eingebauten Drittbibliotheken ist noch nicht nachgewiesen. Dasselbe gilt für die nativen Codecs in Python-Wheels. Dies vor öffentlicher Verteilung abschließen; die vorhandenen Archive nicht als vollständiges Compliance-Paket bezeichnen.
- Store-Screenshots aus `screenshots` prüfen und zusammen mit den Texten hochladen.
- Install, launch, update and uninstall the MSIX on a clean Windows test installation. Package installation has not yet been validated.
- Run Windows App Certification Kit (WACK) on the final package. WACK and Store certification remain outstanding.
- Verify MSIX startup after sign-out/sign-in, including disabled-by-user and disabled-by-policy states. The StartupTask integration is implemented, but an installed-package sign-in cycle is not yet confirmed.
- Validate Explorer dragging with a real mouse, multiple tabs, multiple displays and 100/150/200% scaling. Selection and keyboard shortcuts have been checked live; automated dragging did not provide a reliable result. Desktop selection is not implemented.
- Complete the corresponding-source review for all bundled native third-party components. FFmpeg source and build-script archives and license notices are included, but complete source coverage of bundled FFmpeg dependencies and native codecs in Python wheels has not been established. Do not describe the existing archives as a complete compliance package.
- Review the English screenshots and listing text before uploading them.
## Erläuterung der eingeschränkten Berechtigung
## Restricted capability explanation
`runFullTrust` wird für die paketierte Win32-App, das Lesen der vom Benutzer gewählten Explorer-Dateien, globale Tastenkürzel und die lokal ausgeführten Konvertierungsprozesse benötigt. Keine Administratorrechte, Dienste, Treiber, Kamera, Mikrofon, Ortung oder Netzwerkfähigkeit werden im Manifest angefordert. Der Hintergrundbetrieb kann in den App-Einstellungen deaktiviert werden. Autostart ist standardmäßig aus und respektiert Windows-Einstellungen.
`runFullTrust` is used for the packaged Win32 application, selected Explorer files, global shortcuts and local conversion processes. The manifest does not request administrator privileges, services, drivers, camera, microphone or location. Background operation can be disabled in Settings. Startup is off by default and respects Windows settings.
## Hinweise für die Zertifizierung
## Reviewer notes
Unter „Über FileBow“ gibt es einen freiwilligen Ko-fi-Link. Er öffnet ausschließlich die angegebene HTTPS-Seite im Standardbrowser. Es werden keine Funktionen freigeschaltet, keine Auftragsgrenzen aufgehoben und keine Zahlungsdaten durch FileBow verarbeitet. Die externe Zahlungsabwicklung bei der Einreichung in Partner Center angeben; siehe [Store-Richtlinie 10.8](https://learn.microsoft.com/en-us/windows/apps/publish/store-policies#108-financial-transactions).
No test account or purchase is required. Select a PNG or JPEG and convert it to another image format. A new output is saved beside the original. Select a text file in File Explorer, press Ctrl + Space and choose PDF. Alt + Space opens tools. Shortcuts and background operation can be disabled in Settings. Choose Quit from the tray menu to exit completely.
Kein Testkonto und kein Kauf erforderlich. App öffnen, eine PNG/JPEG-Datei auswählen und auf PNG/WebP/JPEG klicken. Ergebnis wird als neue Datei daneben gespeichert. Im Explorer eine Textdatei markieren, Strg+Leertaste drücken und PDF wählen. Alt+Leertaste zeigt Werkzeuge. Unter Einstellungen lassen sich Tastenkürzel und Hintergrundbetrieb abschalten. Zum vollständigen Beenden im Infobereich „Beenden“ wählen.
The sidebar includes an optional Ko-fi link; About FileBow links to the public issue tracker. They open fixed HTTPS destinations in the default browser. Ko-fi support does not unlock features or remove limits. FileBow does not process payment details. Declare the third-party payment flow during submission; see [Store policy 10.8](https://learn.microsoft.com/en-us/windows/apps/publish/store-policies#108-financial-transactions).
## Primärquellen
## References
- [Paketkomponenten und Identität](https://learn.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-manual-conversion)
- [Package components and identity](https://learn.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-manual-conversion)
- [StartupTask](https://learn.microsoft.com/en-us/uwp/api/windows.applicationmodel.startuptask)
- [Manifestparameter für Desktop-Erweiterungen](https://learn.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/element-desktop-extension)
- [MSIX-Paketanforderungen](https://learn.microsoft.com/en-us/windows/apps/publish/publish-your-app/app-package-requirements?pivots=store-installer-msix)
- [Entwicklungszertifikate](https://learn.microsoft.com/en-us/windows/msix/package/create-certificate-package-signing)
- [FFmpeg-Lizenz- und Quellcodehinweise](https://ffmpeg.org/legal.html)
- [Desktop extension manifest](https://learn.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/element-desktop-extension)
- [MSIX package requirements](https://learn.microsoft.com/en-us/windows/apps/publish/publish-your-app/app-package-requirements?pivots=store-installer-msix)
- [Development certificates](https://learn.microsoft.com/en-us/windows/msix/package/create-certificate-package-signing)
- [FFmpeg licensing and source requirements](https://ffmpeg.org/legal.html)
-19
View File
@@ -1,19 +0,0 @@
{
"name": "FileBow",
"shortDescription": "Dateien konvertieren, komprimieren und bearbeiten – lokal auf deinem PC.",
"description": "FileBow konvertiert und bearbeitet Bilder, Videos, Audio und Dokumente. Markiere Dateien im Explorer und öffne das Radialmenü mit Strg+Leertaste. Alt+Leertaste zeigt die verfügbaren Werkzeuge. Alternativ kannst du Dateien direkt im App-Fenster auswählen.\n\nBilder zuschneiden, drehen, spiegeln und skalieren. Videos konvertieren, Einzelbilder speichern und Audio extrahieren. PDFs zusammenfügen, optimieren und mit einem Passwort schützen. Dateien komprimieren, Metadaten entfernen und ZIP-Archive erstellen.\n\nDie Verarbeitung erfolgt auf deinem Gerät. FileBow benötigt kein Konto und lädt keine Dateien hoch. Ergebnisse werden als neue Dateien neben den Originalen gespeichert.\n\nDokumentkonvertierungen übernehmen den Textinhalt. Gescannte PDFs benötigen eine vorhandene Textebene. Alte DOC- und PPT-Dateien werden nicht unterstützt.",
"features": [
"Radialmenü für Explorer-Dateiauswahl",
"Bild-, Video-, Audio- und Dokumentkonvertierung",
"Zuschneiden, Größenänderung, Drehen und Spiegeln",
"PDF-Zusammenführung und Passwortschutz",
"Komprimierung, Metadatenentfernung und ZIP",
"Lokale Verarbeitung ohne Konto",
"Dunkle und helle Darstellung"
],
"keywords": ["Dateikonverter", "PDF", "Bilder", "Komprimieren", "Video", "Audio", "Radialmenü"],
"supportUrl": "",
"privacyPolicyUrl": "",
"websiteUrl": "",
"copyright": ""
}
+19
View File
@@ -0,0 +1,19 @@
{
"name": "FileBow",
"shortDescription": "Convert, compress and edit files locally on your PC.",
"description": "FileBow brings image, video, audio and document tools into one Windows app. Select files in File Explorer and press Ctrl + Space to open the radial menu. Alt + Space opens editing tools. You can also drop files into the app window.\n\nCrop, resize, rotate and flip images. Convert videos, save frames and extract audio. Combine PDFs, optimize them and add password protection. Compress files, remove metadata and create ZIP archives.\n\nFiles are processed on your device. No account is required and no files are uploaded. Results are saved as new files beside the originals.\n\nDocument conversions extract text without preserving the original layout. Scanned PDFs need an existing text layer. Legacy DOC and PPT files are not supported.",
"features": [
"Radial menu for files selected in File Explorer",
"Image, video, audio and document conversion",
"Crop, resize, rotate and flip images",
"PDF merging and password protection",
"Compression estimates, metadata removal and ZIP archives",
"Local processing without an account",
"Dark, light and system themes"
],
"keywords": ["file converter", "PDF", "images", "compression", "video", "audio", "radial menu"],
"supportUrl": "https://git.nordik.dev/nordik/FileBow/issues",
"privacyPolicyUrl": "",
"websiteUrl": "https://git.nordik.dev/nordik/FileBow",
"copyright": ""
}
+7 -4
View File
@@ -1,6 +1,6 @@
{
"package": "FileBow_1.0.0.0_x64_Store.msix",
"payloads": 459,
"payloads": 460,
"blockHashesValid": true,
"signaturePresent": false,
"identity": {
@@ -9,7 +9,10 @@
"Version": "1.0.0.0",
"ProcessorArchitecture": "x64"
},
"sha256": "73a80172dd778cca9f594b53066862e016310dc4c608a39be1196a423c103988",
"sizeBytes": 360673544,
"storeId": "9N3MJ7558CNZ"
"sha256": "d8c543c831b8e6770db3d749e58f9829ed4b0906eee25b4d1ffd86ed90533fc5",
"sizeBytes": 360673101,
"storeId": "9N3MJ7558CNZ",
"languages": [
"en-us"
]
}
-16
View File
@@ -1,16 +0,0 @@
# Datenschutzhinweise für FileBow
Anbieter: **[vor Veröffentlichung ergänzen]**
Kontakt: **[vor Veröffentlichung ergänzen]**
FileBow konvertiert und bearbeitet ausgewählte Dateien auf dem Gerät. Die App überträgt weder Dateiinhalt noch Dateinamen, Passwörter oder Nutzungsstatistiken an den Anbieter. Es gibt kein Benutzerkonto, keine Werbung und keine Analyse- oder Trackingdienste.
Die App speichert Einstellungen und optional einen Verlauf der letzten 50 Aufträge im lokalen Windows-Benutzerprofil. Der Verlauf enthält Datum, Aktion, Eingabe- und Ergebnispfade sowie Fehlermeldungen. Er kann in der App gelöscht oder für zukünftige Sitzungen deaktiviert werden. Die Ergebnisdateien bleiben davon unberührt.
Für die Verarbeitung werden vorübergehend Auftragsdaten und Zwischendateien angelegt. Dazu kann bei PDF-Passwortfunktionen das für diesen Auftrag eingegebene Passwort gehören. Die App entfernt diese temporären Daten nach Abschluss oder Abbruch. Bei einem vollständigen Systemabsturz können temporäre Reste bestehen bleiben. Passwörter werden nicht im Verlauf gespeichert.
Wenn Explorer-Integration und Tastenkürzel aktiv sind, liest FileBow die vom Benutzer markierten Dateien. Die optionale Zieh-Erkennung beobachtet Mausbewegungen lokal, um das Radialmenü zu öffnen. Diese Daten werden nicht protokolliert oder übertragen. Tastenkürzel und Zieh-Erkennung lassen sich in den Einstellungen abschalten.
Microsoft Store und Windows verarbeiten für Installation, Updates und Systemdiagnose gegebenenfalls eigene Daten nach ihren jeweiligen Datenschutzhinweisen. Diese Verarbeitung erfolgt außerhalb von FileBow.
Unter „Über FileBow“ führt ein freiwilliger Unterstützungslink zu Ko-fi. Erst beim Anklicken öffnet sich die externe Website im Standardbrowser. Dabei gelten die Datenschutzhinweise von Ko-fi; die App übermittelt keine ausgewählten Dateien oder Auftragsdaten.
+17
View File
@@ -0,0 +1,17 @@
# FileBow privacy notice
Provider: **[complete before publication]**
Contact: **[complete before publication]**
FileBow converts and edits selected files on your device. It does not send file contents, filenames, passwords or usage statistics to the provider. There is no user account, advertising, analytics or tracking service.
The app stores settings and, optionally, a history of the last 50 jobs in your local Windows user profile. History includes dates, actions, input and output paths, and error messages. You can clear it in the app or disable it for future sessions. This does not delete output files.
Processing creates temporary job data and intermediate files. For PDF password operations, this can include the password entered for that job. The app removes temporary data after completion or cancellation. A system crash may leave temporary files behind. Passwords are not stored in history.
When Explorer integration and keyboard shortcuts are enabled, FileBow reads the files you select. Optional drag detection observes mouse movement locally to open the radial menu. This data is not logged or uploaded. Both shortcuts and drag detection can be disabled in Settings.
The optional support link in the sidebar and issue link under About FileBow open Ko-fi or the public issue tracker in your default browser only when clicked. The websites process visits and any information you submit under their own privacy notices. FileBow does not send selected files or job data to these websites and does not process payment details. Information you choose to post in the public issue tracker is public.
Microsoft Store and Windows may process their own installation, update and diagnostic data under their respective privacy notices. That processing is outside FileBow.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

+13 -4
View File
@@ -16,11 +16,13 @@ const root=path.resolve(__dirname,'..'),out=path.join(root,'test-results');
try{
const page=await app.firstWindow();await page.waitForSelector('#pick');
await page.screenshot({path:path.join(out,'01-home.png')});
assert.equal(await page.locator('html').getAttribute('lang'),'en');
assert.equal(await app.evaluate(({app})=>app.getLocale()),'en-US');
const state=await page.evaluate(()=>window.orbit.state());assert.equal(state.name,'FileBow');assert.ok(state.native.available,state.native.error);
const textFile=path.join(out,'Beispiel.txt');await fs.writeFile(textFile,'FileBow\nGrüße aus Köln.\nLokale Dateikonvertierung.');
await page.evaluate(file=>window.orbit.selectFiles([file]),textFile);
await page.locator('[data-action="convert-pdf"]').click();
await page.waitForFunction(()=>document.querySelector('#recent-list').textContent.includes('Ergebnisdatei(en)'),{timeout:30000});
await page.waitForFunction(()=>document.querySelector('#recent-list').textContent.includes('output file'),{timeout:30000});
let updated=await page.evaluate(()=>window.orbit.state());assert.equal(updated.history[0].status,'success',JSON.stringify(updated.history[0]));
await fs.access(updated.history[0].outputs[0]);
const pdf=updated.history[0].outputs[0];await page.evaluate(file=>window.orbit.selectFiles([file]),pdf);
@@ -40,7 +42,7 @@ const root=path.resolve(__dirname,'..'),out=path.join(root,'test-results');
await edit.waitForSelector('#width',{timeout:30000});await edit.locator('#width').fill('96');await edit.screenshot({path:path.join(out,'02-resize.png')});
await saveDialog(edit);await page.waitForFunction(()=>!document.querySelector('#job:not([hidden])'));
updated=await page.evaluate(()=>window.orbit.state());assert.equal(updated.history[0].status,'success');
const compressPromise=app.waitForEvent('window');await page.locator('[data-action="compress"]').click();const compress=await compressPromise;await compress.locator('#quality').fill('65');await compress.waitForFunction(()=>document.querySelector('#estimate').textContent.includes('Voraussichtliche Größe'),null,{timeout:30000});await compress.screenshot({path:path.join(out,'06-compression.png')});await saveDialog(compress);
const compressPromise=app.waitForEvent('window');await page.locator('[data-action="compress"]').click();const compress=await compressPromise;await compress.locator('#quality').fill('65');await compress.waitForFunction(()=>document.querySelector('#estimate').textContent.includes('Expected size'),null,{timeout:30000});await compress.screenshot({path:path.join(out,'06-compression.png')});await saveDialog(compress);
await page.waitForFunction(()=>!document.querySelector('#job:not([hidden])'));updated=await page.evaluate(()=>window.orbit.state());assert.equal(updated.history[0].status,'success');
assert.ok(updated.history[0].outputs[0].endsWith('.png'));
await page.locator('#tab-quick').click();
@@ -55,9 +57,16 @@ const root=path.resolve(__dirname,'..'),out=path.join(root,'test-results');
await page.locator('#theme').selectOption('dark');await page.locator('[data-page="history"]').click();await page.screenshot({path:path.join(out,'05-history.png')});
await page.locator('[data-page="about"]').click();
await app.evaluate(({shell})=>{global.__supportUrls=[];shell.openExternal=async url=>{global.__supportUrls.push(url);};});
await page.locator('#support').click();
assert.deepEqual(await app.evaluate(()=>global.__supportUrls),['https://ko-fi.com/E0Z827VO8I']);
assert.equal(await page.locator('aside #support').count(),1);
await page.locator('aside #support').click();
await page.locator('#issues').click();
assert.deepEqual(await app.evaluate(()=>global.__supportUrls),['https://ko-fi.com/E0Z827VO8I','https://git.nordik.dev/nordik/FileBow/issues']);
await page.screenshot({path:path.join(out,'07-about.png')});
const hiddenInTray=await app.evaluate(({BrowserWindow})=>{
const main=BrowserWindow.getAllWindows().find(window=>window.getTitle()==='FileBow');
main.close();return !main.isDestroyed()&&!main.isVisible();
});
assert.equal(hiddenInTray,true,'Closing the main window should keep the app running in the tray');
assert.deepEqual(errors,[]);await fs.writeFile(path.join(out,'ui-result.json'),JSON.stringify({passed:true,native:state.native,history:updated.history.map(x=>({label:x.label,status:x.status})),errors},null,2));
console.log('UI smoke passed: startup, native bridge, conversion, PDF passwords, combining, compression, editor, radial menu, themes, history.');
}finally{await app.close();}