Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f08d5d7563 | |||
| b55bb7ac34 | |||
| 37e45a2041 |
@@ -1,4 +0,0 @@
|
||||
# Hellion NewTab — Code Owners
|
||||
# Alle Änderungen müssen von @JonKazama-Hellion approved werden
|
||||
|
||||
* @JonKazama-Hellion
|
||||
@@ -1,7 +0,0 @@
|
||||
# Hellion NewTab — Support & Funding
|
||||
# All tools are free and open-source. Donations are voluntary and go toward server costs.
|
||||
|
||||
ko_fi: hellionmedia
|
||||
|
||||
custom:
|
||||
- "https://hellion-media.de"
|
||||
@@ -1,4 +1,4 @@
|
||||
# Release — creates ZIP packages for Chrome, Firefox and Opera on new tag
|
||||
# Release — erstellt ZIP-Pakete für Chrome, Firefox und Opera bei neuem Tag
|
||||
name: Release
|
||||
|
||||
on:
|
||||
@@ -17,18 +17,18 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Extract version from tag
|
||||
- name: Version aus Tag extrahieren
|
||||
id: version
|
||||
run: echo "tag=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Create Chrome/Edge ZIP (Manifest V3)
|
||||
- name: Chrome/Edge ZIP erstellen (Manifest V3)
|
||||
run: |
|
||||
mkdir -p dist
|
||||
zip -r "dist/hellion-newtab-${{ steps.version.outputs.tag }}-chrome.zip" \
|
||||
manifest.json newtab.html src/js/*.js src/css/ assets/ \
|
||||
-x "*.git*" "dist/*" ".github/*" "src/js/opera/*"
|
||||
|
||||
- name: Create Firefox ZIP (Manifest V3)
|
||||
- name: Firefox ZIP erstellen (Manifest V3)
|
||||
run: |
|
||||
cp manifest.json manifest.chrome-backup.json
|
||||
cp manifest.firefox.json manifest.json
|
||||
@@ -37,7 +37,7 @@ jobs:
|
||||
-x "*.git*" "dist/*" ".github/*" "manifest.chrome-backup.json" "manifest.firefox.json" "src/js/opera/*"
|
||||
mv manifest.chrome-backup.json manifest.json
|
||||
|
||||
- name: Create Opera/Opera GX ZIP (Manifest V3 + workaround)
|
||||
- name: Opera/Opera GX ZIP erstellen (Manifest V3 + Workaround)
|
||||
run: |
|
||||
cp manifest.json manifest.chrome-backup.json
|
||||
cp manifest.opera.json manifest.json
|
||||
@@ -46,13 +46,13 @@ jobs:
|
||||
-x "*.git*" "dist/*" ".github/*" "manifest.chrome-backup.json" "manifest.opera.json"
|
||||
mv manifest.chrome-backup.json manifest.json
|
||||
|
||||
- name: Generate SHA256 checksums
|
||||
- name: SHA256 Checksummen erstellen
|
||||
run: |
|
||||
cd dist
|
||||
sha256sum *.zip > checksums-sha256.txt
|
||||
cat checksums-sha256.txt
|
||||
|
||||
- name: Create GitHub Release
|
||||
- name: GitHub Release erstellen
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
name: "Hellion NewTab ${{ steps.version.outputs.tag }}"
|
||||
@@ -64,10 +64,10 @@ jobs:
|
||||
- **Firefox:** `hellion-newtab-${{ steps.version.outputs.tag }}-firefox.zip`
|
||||
- **Opera / Opera GX:** `hellion-newtab-${{ steps.version.outputs.tag }}-opera.zip`
|
||||
|
||||
See [README](README.md) for the full installation instructions.
|
||||
Siehe [README](README.md) für die vollständige Installationsanleitung.
|
||||
|
||||
### Checksums
|
||||
See `checksums-sha256.txt` to verify file integrity.
|
||||
### Checksummen
|
||||
Siehe `checksums-sha256.txt` zur Integritätsprüfung.
|
||||
files: |
|
||||
dist/hellion-newtab-${{ steps.version.outputs.tag }}-chrome.zip
|
||||
dist/hellion-newtab-${{ steps.version.outputs.tag }}-firefox.zip
|
||||
|
||||
@@ -16,10 +16,6 @@ dist/
|
||||
node_modules/
|
||||
/xpi/
|
||||
v2-planning.md
|
||||
themes-v2.md
|
||||
|
||||
# Firefox Update-Manifest (wird auf hellion-media.de gehostet)
|
||||
updates.json
|
||||
|
||||
# Persönliche Backup-Dateien (nicht ins Repo)
|
||||
favorites_*.html
|
||||
|
||||
@@ -1,172 +1,91 @@
|
||||
# ⬡ Hellion Dashboard — Changelog
|
||||
|
||||
All notable changes per version. Format based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
|
||||
> Changelog entries can be written in English or German. English preferred for consistency.
|
||||
|
||||
---
|
||||
|
||||
### v1.10.0 — 22.03.2026
|
||||
|
||||
#### Themes
|
||||
|
||||
- **3 new themes** — Satisfactory (Industrial Desert), Avorion (Deep Void) and Hellion Stealth (Tactical Recon)
|
||||
- Now **11 themes** total, each with its own accent colors, overlays and font styles
|
||||
- Satisfactory has increased board alpha (0.65) and stronger blur (12px), a deliberate choice for better readability on a visually busy background
|
||||
- Avorion uses a radial gradient overlay so the ship in the center of the image stays visible
|
||||
- Hellion Stealth is the only theme with a `border-left` hover effect in tactical scanner style
|
||||
|
||||
---
|
||||
|
||||
### v1.9.0 — 22.03.2026
|
||||
|
||||
#### New Features
|
||||
|
||||
- **Onboarding reworked** — 7 slides instead of 6, new slide explains the widget toolbar with all widgets
|
||||
- **Gaming Starter Board** — Opt-in during onboarding: pre-filled board with links to Satisfactory, Factorio, Avorion, Minecraft and Star Citizen
|
||||
- **Settings redesign** — Settings panel slimmed down to 3 sections (Widgets, Data & Help, Danger Zone)
|
||||
- **Appearance modal** — Theme picker and all display settings combined in one modal instead of spread across the panel
|
||||
- **Fixed about footer** — Developer info, license and links are now permanently visible at the bottom of the settings panel
|
||||
- **Project documentation** — `docs/architecture.md`, `docs/widget-schema.md` and `docs/patterns.md` for anyone who wants to fork or contribute
|
||||
|
||||
#### Improvements
|
||||
|
||||
- All labels and descriptions unified in German, no more language mix
|
||||
- Dropdown options use theme colors instead of white browser default
|
||||
- Firefox update URL for store publishing added to `manifest.firefox.json`
|
||||
|
||||
---
|
||||
|
||||
### v1.8.0 — 21.03.2026
|
||||
|
||||
#### New Features
|
||||
|
||||
- **Image Reference Widget** — Drop images as floating reference widgets (max. 3 at once)
|
||||
- Canvas API WebP conversion for smaller file sizes, all local in the browser
|
||||
- Two-layer storage: metadata persistent, image data session-only (sessionStorage)
|
||||
- Load images via drag & drop or file dialog
|
||||
- Labels editable with debounced save
|
||||
- Feature is off by default, enable via Settings → Widgets
|
||||
|
||||
---
|
||||
|
||||
### v1.7.1 — 21.03.2026
|
||||
|
||||
#### Improvements
|
||||
|
||||
- **Timer mute toggle** — Alarm can be muted via icon button without restarting the timer
|
||||
- Alarm volume reduced to 7%, 30% was a bit much
|
||||
- Mute state is saved and persists on next open
|
||||
|
||||
---
|
||||
|
||||
### v1.7.0 — 21.03.2026
|
||||
|
||||
#### New Features
|
||||
|
||||
- **Calculator widget** — Shunting-yard parser (no `eval()`), history of last calculations, keyboard input
|
||||
- **Timer/countdown widget** — Saveable presets, Web Audio API alarm, tab title blinks when timer completes
|
||||
- **Widget z-index fix** — Widgets now correctly render above the search bar (z-index 100+)
|
||||
|
||||
---
|
||||
|
||||
### v1.6.0 — 21.03.2026
|
||||
|
||||
#### New Features
|
||||
|
||||
- **Widget system** — Draggable, resizable floating panels managed by WidgetManager
|
||||
- **Notes & checklists** — Multi-instance widgets (max. 5) with text and checklist template, Markdown support, export as `.md`
|
||||
- **Notebook sidebar** — All notes at a glance, quick access via toolbar
|
||||
- **Widget toolbar** — Floating buttons on the side for quick access to all widgets, position (left/right) configurable in Settings
|
||||
- **Sticky note migration** — Old sticky notes are automatically migrated to the new widget system on first launch
|
||||
|
||||
#### Improvements
|
||||
|
||||
- Ko-fi support link added to the about section and `FUNDING.yml`
|
||||
Alle relevanten Änderungen pro Version. Format basiert auf [Keep a Changelog](https://keepachangelog.com/de/1.0.0/).
|
||||
|
||||
---
|
||||
|
||||
### v1.5.2 — 21.03.2026
|
||||
|
||||
#### New Features
|
||||
#### Neue Features
|
||||
|
||||
- **Custom dialog system** — Native `confirm()` and `alert()` replaced with frosted glass dialogs (`dialog.js`)
|
||||
- **Onboarding** — 6-step welcome flow on first launch with explanations for boards, themes, features and a backup reminder
|
||||
- **Backup reminder** — Reminds every 7 days to run a JSON export and warns about data loss on browser reset
|
||||
- **Theme modal** — Theme picker moved to its own modal with its own header button
|
||||
- **Accordion settings** — All settings sections collapsible (About and Danger Zone closed by default)
|
||||
- **Custom Dialog-System** — Native `confirm()` und `alert()` durch Frosted-Glass-Dialoge ersetzt (`dialog.js`)
|
||||
- **Onboarding** — 6-stufiger Willkommens-Flow beim ersten Start mit Boards, Themes, Features und Backup-Hinweis
|
||||
- **Backup-Reminder** — Erinnert alle 7 Tage an JSON-Export, warnt vor Datenverlust bei Browser-Reset
|
||||
- **Theme-Modal** — Theme-Picker als eigenes Modal aus Settings ausgelagert, eigener Header-Button
|
||||
- **Accordion-Settings** — Alle Settings-Sektionen einklappbar mit Chevron (About/Danger Zone standardmäßig zu)
|
||||
|
||||
#### Improvements
|
||||
#### Verbesserungen
|
||||
|
||||
- Fonts migrated from Google Fonts API to local WOFF2 files (GDPR, ~388 KB saved)
|
||||
- `innerHTML` fully replaced with `createElement` and `createElementNS` (XSS protection)
|
||||
- SVG icons now via `createElementNS` instead of inline HTML
|
||||
- Drag & drop uses CSS classes instead of inline styles (`.drag-ghost`, `.drag-over`, `.dragging-source`)
|
||||
- Search bar toggle moved from DATA to BEHAVIOR section
|
||||
- Unimplemented "Quick Save" UI element removed
|
||||
- Onboarding repeatable via Settings → Help
|
||||
- Fonts von Google Fonts API auf lokale WOFF2-Dateien umgestellt (DSGVO)
|
||||
- Ungenutzte Font-Dateien entfernt (~388 KB gespart)
|
||||
- `innerHTML` komplett durch `createElement`/`createElementNS` ersetzt (XSS-Schutz)
|
||||
- SVG-Icons via `createElementNS` statt Inline-HTML
|
||||
- Drag & Drop: Inline-Styles durch CSS-Klassen ersetzt (`.drag-ghost`, `.drag-over`, `.dragging-source`)
|
||||
- Suchleisten-Toggle von DATA nach BEHAVIOR verschoben
|
||||
- Nicht implementiertes "Quick Save" UI-Element entfernt
|
||||
- Onboarding wiederholbar über Settings → Help
|
||||
|
||||
#### Opera / Opera GX
|
||||
|
||||
- `manifest.opera.json` added (MV3 with workaround scripts)
|
||||
- `src/js/opera/background.js` monitors tabs and redirects away from Opera Speed Dial
|
||||
- `src/js/opera/redirect.js` fires as content script at `document_start`
|
||||
- `manifest.opera.json` hinzugefügt (MV3 mit Workaround-Skripten)
|
||||
- `src/js/opera/background.js` — Tab-Management gegen Opera Speed Dial
|
||||
- `src/js/opera/redirect.js` — Content Script Redirect bei `document_start`
|
||||
|
||||
#### Firefox
|
||||
|
||||
- `manifest.firefox.json` migrated to Manifest V3
|
||||
- `browser_specific_settings` with Gecko ID and `data_collection_permissions` added
|
||||
- `manifest.firefox.json` auf Manifest V3 migriert
|
||||
- `browser_specific_settings` mit Gecko-ID und `data_collection_permissions`
|
||||
|
||||
#### Build & CI
|
||||
|
||||
- GitHub Actions release now builds 3 ZIP packages (Chrome, Firefox, Opera)
|
||||
- Quality check validates all 3 manifests and the Opera folder
|
||||
- GitHub Actions: Release erstellt jetzt 3 ZIP-Pakete (Chrome, Firefox, Opera)
|
||||
- Quality-Check prüft alle 3 Manifests und Opera-Ordner
|
||||
|
||||
---
|
||||
|
||||
### v1.2.0 — 20.03.2026
|
||||
|
||||
- Project structure split into `src/js/`, `src/css/` and `assets/`
|
||||
- JS split into 10 modules (storage, state, themes, boards, drag, settings, search, sticky, data, app)
|
||||
- Firefox compatibility (`manifest.firefox.json`, Manifest V3)
|
||||
- Vivaldi confirmed compatible
|
||||
- Theme image paths fixed (settings preview)
|
||||
- URL validation on bookmark creation
|
||||
- JSON import validates board and bookmark structure
|
||||
- XSS protection: `createElement` instead of `innerHTML` for bookmarks
|
||||
- Storage quota check with warning at 8 MB+
|
||||
- Event delegation for bookmark clicks (performance)
|
||||
- Responsive design (tablet 768px, smartphone 480px)
|
||||
- Sticky note header collision fixed
|
||||
- FileReader error handling for background image upload
|
||||
- GitHub Actions: security scan, code quality, release automation
|
||||
- 3 themes replaced: Astronaut → Nebula, Cosmic Clock → Crescent, Void Mage → Event Horizon
|
||||
- All theme images checked and documented for license compliance
|
||||
- LICENSE (CC BY-NC-SA 4.0), SECURITY.md and DISCLAIMER.md added
|
||||
- Projektstruktur in `src/js/`, `src/css/`, `assets/` aufgeteilt
|
||||
- JS in 10 Module aufgeteilt (storage, state, themes, boards, drag, settings, search, sticky, data, app)
|
||||
- Firefox-Kompatibilität (`manifest.firefox.json`, Manifest V3)
|
||||
- Vivaldi bestätigt kompatibel
|
||||
- Theme-Bildpfade korrigiert (Settings Preview)
|
||||
- URL-Validierung bei Bookmark-Erstellung
|
||||
- JSON-Import mit Board- und Bookmark-Struktur-Validierung
|
||||
- XSS-Schutz: `createElement` statt `innerHTML` für Bookmarks
|
||||
- Storage-Quota-Prüfung mit Warnung bei 8 MB+
|
||||
- Event Delegation für Bookmark-Klicks (Performance)
|
||||
- Responsive Design (Tablet 768px, Smartphone 480px)
|
||||
- Sticky Note Header-Kollision behoben
|
||||
- FileReader-Fehlerbehandlung für Hintergrundbild-Upload
|
||||
- GitHub Actions: Security Scan, Code Quality, Release Automation
|
||||
- 3 Themes ersetzt: Astronaut → Nebula, Cosmic Clock → Crescent, Void Mage → Event Horizon
|
||||
- Alle Theme-Bilder lizenzrechtlich geprüft und dokumentiert
|
||||
- LICENSE (CC BY-NC-SA 4.0), SECURITY.md und DISCLAIMER.md hinzugefügt
|
||||
|
||||
---
|
||||
|
||||
### v1.1.0 — 20.03.2026
|
||||
|
||||
- 5 new themes (Merchantman, Julia & Jin, SC Sunset, Hellion HUD, Hellion Energy)
|
||||
- Search bar (Google, DuckDuckGo, Bing)
|
||||
- Sticky note widget
|
||||
- JSON export & import
|
||||
- Date next to the clock
|
||||
- About / imprint in settings
|
||||
- Board blur function (privacy mode)
|
||||
- Drag & drop migrated to Pointer Events API
|
||||
- Opera / Opera GX compatibility
|
||||
- 5 neue Themes (Merchantman, Julia & Jin, SC Sunset, Hellion HUD, Hellion Energy)
|
||||
- Suchleiste (Google / DuckDuckGo / Bing)
|
||||
- Sticky Note Widget
|
||||
- JSON Export & Import
|
||||
- Datum neben der Uhr
|
||||
- About / Impressum in Settings
|
||||
- Board Blur-Funktion (Privat-Modus)
|
||||
- Drag & Drop auf Pointer Events umgestellt
|
||||
- Opera / Opera GX Kompatibilität
|
||||
|
||||
---
|
||||
|
||||
### v1.0.0 — 20.03.2026
|
||||
|
||||
- Initial release
|
||||
- Boards & bookmarks with drag & drop
|
||||
- 3 themes (Nebula, Crescent, Event Horizon)
|
||||
- HTML import (browser bookmarks)
|
||||
- Settings panel
|
||||
- Initiales Release
|
||||
- Boards & Bookmarks mit Drag & Drop
|
||||
- 3 Themes (Nebula, Crescent, Event Horizon)
|
||||
- HTML-Import (Browser-Lesezeichen)
|
||||
- Settings Panel
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -1,81 +1,47 @@
|
||||
# Disclaimer — Hellion NewTab
|
||||
# Haftungsausschluss — Hellion NewTab
|
||||
|
||||
## Use at Your Own Risk
|
||||
## Nutzung auf eigenes Risiko
|
||||
|
||||
This browser extension is provided "as is", without warranty of any kind, express
|
||||
or implied, including but not limited to the warranties of merchantability, fitness
|
||||
for a particular purpose and non-infringement.
|
||||
Diese Browser-Extension wird "wie besehen" (as-is) zur Verfügung gestellt, ohne jegliche ausdrückliche oder stillschweigende Gewährleistung, einschließlich, aber nicht beschränkt auf die Gewährleistung der Marktgängigkeit, der Eignung für einen bestimmten Zweck und der Nichtverletzung von Rechten Dritter.
|
||||
|
||||
## No Guarantee
|
||||
## Keine Garantie
|
||||
|
||||
The developer assumes no liability for:
|
||||
Der Entwickler übernimmt keine Haftung für:
|
||||
|
||||
- Data loss caused by storage errors, browser updates or extension uninstallation
|
||||
- Incompatibilities with specific browser versions or operating systems
|
||||
- Damages arising from the use or inability to use this extension
|
||||
- Availability or accuracy of third-party services (Google Favicons API)
|
||||
- Datenverlust durch fehlerhafte Speicherung, Browser-Updates oder Extension-Deinstallation
|
||||
- Inkompatibilitäten mit bestimmten Browser-Versionen oder Betriebssystemen
|
||||
- Schäden, die durch die Nutzung oder Nichtnutzung dieser Extension entstehen
|
||||
- Verfügbarkeit oder Korrektheit von Drittanbieter-Diensten (Google Favicons API)
|
||||
|
||||
## Data Storage
|
||||
## Datenspeicherung
|
||||
|
||||
All data is stored exclusively in the local browser (`chrome.storage.local`).
|
||||
No data is transmitted to external servers. The developer has no access to stored
|
||||
bookmarks, settings, notes or any other user data.
|
||||
Alle Daten werden ausschließlich lokal im Browser gespeichert (`chrome.storage.local`). Es erfolgt keine Übertragung an externe Server. Der Entwickler hat keinen Zugriff auf gespeicherte Bookmarks, Einstellungen oder Notizen.
|
||||
|
||||
**Recommendation:** Create regular JSON backups using the export function in Settings.
|
||||
**Empfehlung:** Regelmäßig JSON-Backups über die Export-Funktion erstellen.
|
||||
|
||||
## No Guaranteed Updates
|
||||
## Drittanbieter-Dienste
|
||||
|
||||
This extension is maintained by a single developer in their spare time.
|
||||
Continued development and updates are not guaranteed. Features may change,
|
||||
projects may pause, and support is provided on a best-effort basis, not as an obligation.
|
||||
Diese Extension nutzt folgende externe Dienste:
|
||||
|
||||
## Third-Party Services
|
||||
|
||||
| Service | Purpose | Privacy |
|
||||
| Dienst | Zweck | Datenschutz |
|
||||
| --- | --- | --- |
|
||||
| Google Favicons API | Load bookmark icons | Only the domain is transmitted, not the full URL |
|
||||
| Google Favicons API | Bookmark-Icons laden | Es wird nur die Domain übermittelt, keine vollständige URL |
|
||||
| Google Fonts | Schriftarten (Rajdhani, Inter, Cinzel) | Standardmäßige Google-Fonts-Nutzungsbedingungen |
|
||||
|
||||
## Trademark
|
||||
## Änderungen
|
||||
|
||||
The name "Hellion Online Media", the associated logo and all related graphics are
|
||||
the property of Florian Wathling / Hellion Online Media and may not be used without
|
||||
explicit permission. The CC BY-NC-SA 4.0 license applies to the source code and
|
||||
content of this project, not to trademarks or brand assets.
|
||||
Der Entwickler behält sich das Recht vor, diese Extension jederzeit zu ändern, zu aktualisieren oder einzustellen, ohne vorherige Ankündigung.
|
||||
|
||||
Forks and derivative works must remove or replace all Hellion Online Media branding.
|
||||
|
||||
## Legal
|
||||
|
||||
This extension is developed and maintained by Florian Wathling / Hellion Online Media,
|
||||
based in Bad Harzburg, Germany. All matters are handled in accordance with German
|
||||
and EU law, including the General Data Protection Regulation (GDPR / DSGVO).
|
||||
|
||||
For legal inquiries: [hellion-media.de/impressum](https://hellion-media.de/impressum)
|
||||
|
||||
## Use of AI
|
||||
|
||||
**Claude:** Code analysis, bug fixing, documentation and proofreading.
|
||||
**Me:** Architecture, features and logic are planned, thought through and written by me.
|
||||
|
||||
Who looks for "AI patterns" in the code: clean indentation is the linter,
|
||||
okayish variable names are the developer, and the semicolon hiding somewhere
|
||||
is what Claude finds. That's how it works.
|
||||
|
||||
I have ADHD and mild dyslexia. Claude helps me stay focused and makes sure
|
||||
others can follow the code too. That's exactly what open source is for.
|
||||
|
||||
Source code is open, every decision is traceable.
|
||||
|
||||
---
|
||||
## Kontakt
|
||||
|
||||
| | |
|
||||
| --- | --- |
|
||||
| **Developer** | Florian Wathling |
|
||||
| **Company** | Hellion Online Media |
|
||||
| **Entwickler** | Florian Wathling |
|
||||
| **Unternehmen** | Hellion Online Media |
|
||||
| **Web** | [hellion-media.de](https://hellion-media.de) |
|
||||
| **Imprint** | [hellion-media.de/impressum](https://hellion-media.de/impressum) |
|
||||
| **Contact** | [kontakt@hellion-media.de](mailto:kontakt@hellion-media.de) |
|
||||
| **E-Mail** | [kontakt@hellion-media.de](mailto:kontakt@hellion-media.de) |
|
||||
| **Impressum** | [hellion-media.de/impressum](https://hellion-media.de/impressum) |
|
||||
|
||||
---
|
||||
|
||||
**Hellion NewTab** — [Hellion Online Media — Florian Wathling](https://hellion-media.de) — JonKazama-Hellion
|
||||
**Hellion NewTab** — [Hellion Online Media - Florian Wathing](https://hellion-media.de) — JonKazama-Hellion
|
||||
|
||||
@@ -1,34 +1,34 @@
|
||||
# ⬡ Hellion Dashboard v1.9.0
|
||||
# ⬡ Hellion Dashboard v1.5.2
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
[](https://ko-fi.com/hellionmedia)
|
||||
|
||||
**No account. No subscription. No cloud. All data stays 100% local.**
|
||||
**Kein Account. Kein Abo. Keine Cloud. Alle Daten bleiben 100% lokal.**
|
||||
|
||||
A personal bookmark dashboard as a browser extension.
|
||||
Boards, drag & drop, 11 themes, search bar, widget system with notes, calculator, timer and more. All in the browser, all offline.
|
||||
No external data transmission, no trackers, no analytics, no ads.
|
||||
Ein persönlicher Bookmark-Dashboard als Browser-Extension.
|
||||
Boards, Drag & Drop, 8 Themes, Suchleiste, Sticky Notes — alles im Browser, alles offline.
|
||||
Keine externe Datenübertragung, keine Tracker, keine Analytics, keine Werbung.
|
||||
|
||||
Developed by **[Hellion Online Media — Florian Wathling](https://hellion-media.de)** — JonKazama-Hellion.
|
||||
Entwickelt von **[Hellion Online Media — Florian Wathling](https://hellion-media.de)** — JonKazama-Hellion.
|
||||
|
||||
---
|
||||
|
||||
## What this extension is NOT
|
||||
## Was diese Extension NICHT ist
|
||||
|
||||
- No cloud sync and no account system
|
||||
- No data collection or telemetry
|
||||
- No third-party dependencies or build tools
|
||||
- No network traffic except favicon fetching (Google Favicons API)
|
||||
- Kein Cloud-Sync und kein Account-System
|
||||
- Keine Datenerfassung oder Telemetrie
|
||||
- Keine Drittanbieter-Abhängigkeiten oder Build-Tools
|
||||
- Kein Netzwerkverkehr außer Favicon-Abruf (Google Favicons API)
|
||||
|
||||
## What this extension IS
|
||||
## Was diese Extension IST
|
||||
|
||||
A local, private NewTab replacement for all major browsers.
|
||||
Bookmarks are stored in `chrome.storage.local`, nothing leaves the browser.
|
||||
What you see is what's saved. No magic.
|
||||
Ein lokaler, privater NewTab-Ersatz für alle gängigen Browser.
|
||||
Bookmarks werden in `chrome.storage.local` gespeichert — nichts verlässt den Browser.
|
||||
Was angezeigt wird, ist was gespeichert ist. Keine Magie.
|
||||
|
||||
---
|
||||
|
||||
@@ -36,30 +36,25 @@ What you see is what's saved. No magic.
|
||||
|
||||
### Boards & Bookmarks
|
||||
|
||||
- Boards as groups for links, sortable via drag & drop
|
||||
- Bookmarks with favicon, title and optional description
|
||||
- Hide boards with the blur button (privacy mode)
|
||||
- HTML import from browser bookmarks (Chrome, Edge, Firefox)
|
||||
- JSON export & import (backup & restore)
|
||||
- Boards als Gruppen für Links — per Drag & Drop umsortierbar
|
||||
- Bookmarks mit Favicon, Titel, optionaler Beschreibung
|
||||
- Boards per Blur-Button verstecken (Privat-Modus)
|
||||
- HTML-Import von Browser-Lesezeichen (Chrome, Edge, Firefox)
|
||||
- JSON Export & Import (Backup & Restore)
|
||||
|
||||
### Search Bar
|
||||
### Suchleiste
|
||||
|
||||
- Google, DuckDuckGo or Bing, switchable with a click
|
||||
- Toggleable via Settings
|
||||
- Google, DuckDuckGo oder Bing — per Klick wechselbar
|
||||
- Ein/ausblendbar über Settings
|
||||
|
||||
### Widget System
|
||||
### Sticky Note
|
||||
|
||||
- **Notes & Checklists** — Floating note widgets with text or checklist template (max. 5)
|
||||
- **Calculator** — Shunting-yard parser (no `eval()`), history, keyboard input
|
||||
- **Timer / Countdown** — Saveable presets, Web Audio API alarm, mute toggle, tab title blinks on completion
|
||||
- **Image Reference** — Images as floating reference widgets, Canvas API WebP conversion (max. 3, enable in Settings)
|
||||
- **Notebook Sidebar** — All notes at a glance
|
||||
- **Widget Toolbar** — Floating buttons for quick access, position (left/right) configurable in Settings
|
||||
- All widgets: draggable, resizable, z-index stacking on click
|
||||
- Schwebendes Notiz-Widget, frei positionierbar
|
||||
- Text und Position werden persistent gespeichert
|
||||
|
||||
### 11 Themes
|
||||
### 8 Themes
|
||||
|
||||
| Theme | Accent | Style |
|
||||
| Theme | Akzent | Stil |
|
||||
|---|---|---|
|
||||
| Nebula | `#b359ff` Magenta | Cosmic Nebula |
|
||||
| Crescent | `#d4bd8a` Gold | Minimalist Night |
|
||||
@@ -69,58 +64,60 @@ What you see is what's saved. No magic.
|
||||
| SC Sunset | `#ff8c3d` Amber | Planet-Side |
|
||||
| Hellion HUD | `#32ff6a` Neon Green | Circuit Board |
|
||||
| Hellion Energy | `#1eff8e` Acid Green | Tactical |
|
||||
| Satisfactory | `#00b4d8` Cyan | Industrial Desert |
|
||||
| Avorion | `#2ec4a0` Turquoise | Deep Void |
|
||||
| Hellion Stealth | `#5ec2ff` Tech Blue | Tactical Recon |
|
||||
|
||||
### Image Credits
|
||||
### Bild-Credits
|
||||
|
||||
| Theme | Source | License |
|
||||
| Theme | Quelle | Lizenz |
|
||||
|---|---|---|
|
||||
| Nebula | [Temel / mrwashingt0n](https://pixabay.com/de/users/mrwashingt0n-15745216/) on Pixabay | Pixabay License (free) |
|
||||
| Crescent | [Daniil Silantev](https://unsplash.com) on Unsplash | Unsplash License (free) |
|
||||
| Event Horizon | Own work, still frame from [hellion-initiative.online](https://hellion-initiative.online) | Hellion Online Media |
|
||||
| Merchantman | [Roberts Space Industries](https://robertsspaceindustries.com), made by the community | RSI Community Content |
|
||||
| SC Sunset | Screenshot from Star Citizen by Cloud Imperium Games | Fan Content |
|
||||
| Julia & Jin | Own work, Final Fantasy XIV screenshot, edited in Photoshop | Hellion Online Media |
|
||||
| Hellion HUD | Own work, AI-generated and post-processed for hellion-media.de | Hellion Online Media |
|
||||
| Hellion Energy | Own work, AI-generated for hellion-media.de | Hellion Online Media |
|
||||
| Satisfactory | Screenshot from Satisfactory by Coffee Stain Studios | Fan Content |
|
||||
| Avorion | Own work, screenshot from Avorion, Hellion Initiative ship | Hellion Online Media |
|
||||
| Hellion Stealth | Screenshot from Star Citizen by Cloud Imperium Games | Fan Content |
|
||||
| Nebula | [Temel / mrwashingt0n](https://pixabay.com/de/users/mrwashingt0n-15745216/) auf Pixabay | Pixabay License (frei) |
|
||||
| Crescent | [Daniil Silantev](https://unsplash.com) auf Unsplash | Unsplash License (frei) |
|
||||
| Event Horizon | Eigenes Werk — Stillframe von [hellion-initiative.online](https://hellion-initiative.online) | Hellion Online Media |
|
||||
| Merchantman | [Roberts Space Industries](https://robertsspaceindustries.com) — Made by the community | RSI Community Content |
|
||||
| SC Sunset | Screenshot aus Star Citizen von Cloud Imperium Games | Fan Content |
|
||||
| Julia & Jin | Eigenes Werk — Final Fantasy XIV Screenshot, bearbeitet in Photoshop | Hellion Online Media |
|
||||
| Hellion HUD | Eigenes Werk — AI-generiert und nachbearbeitet für hellion-media.de | Hellion Online Media |
|
||||
| Hellion Energy | Eigenes Werk — AI-generiert für hellion-media.de | Hellion Online Media |
|
||||
|
||||
### Onboarding & Dialogs
|
||||
### Onboarding & Dialoge
|
||||
|
||||
- 7-step welcome flow on first launch with widget explanation and optional gaming starter board
|
||||
- Custom frosted glass dialogs instead of native browser popups
|
||||
- Backup reminder every 7 days (warns about data loss on browser reset)
|
||||
- 6-stufiger Willkommens-Flow beim ersten Start
|
||||
- Custom Frosted-Glass-Dialoge statt nativer Browser-Popups
|
||||
- Backup-Reminder alle 7 Tage (warnt vor Datenverlust bei Browser-Reset)
|
||||
|
||||
### Appearance & Settings
|
||||
### Settings (Accordion)
|
||||
|
||||
- **Appearance modal** (header button), theme picker, background image and all display options in one modal
|
||||
- **Settings panel** (header button), widgets, data & help, danger zone
|
||||
- **About footer**, developer info, license and support links permanently visible
|
||||
- Compact mode, shorten titles, search bar toggle, open links in new tab, descriptions, hide extra bookmarks
|
||||
- JSON export & import (backup & restore)
|
||||
- Onboarding repeatable
|
||||
- All UI labels in German (English coming in v2.1)
|
||||
- Einklappbare Sektionen mit Chevron — About/Danger Zone standardmäßig geschlossen
|
||||
- Compact Mode — reduziert Abstände für mehr Bookmarks
|
||||
- Shorten Titles — kürzt lange Titel auf eine Zeile
|
||||
- Open in New Tab — Bookmarks in neuem Tab öffnen
|
||||
- Show Descriptions — Beschreibungen unter Bookmarks anzeigen
|
||||
- Hide Extra Bookmarks — Boards ab 5/10/20 Bookmarks einklappen
|
||||
- Suchleiste ein/ausblenden
|
||||
- JSON Export / Import
|
||||
- Onboarding wiederholbar
|
||||
- Danger Zone — Reset aller Daten
|
||||
|
||||
### Theme-Picker (eigener Header-Button)
|
||||
|
||||
- 8 Themes als zentriertes Modal
|
||||
- Hintergrundbild per URL oder lokaler Upload
|
||||
|
||||
---
|
||||
|
||||
## Browser Compatibility
|
||||
## Browser-Kompatibilität
|
||||
|
||||
| Browser | Status | Manifest |
|
||||
|---|---|---|
|
||||
| Chrome | ✅ Compatible | V3 (`manifest.json`) |
|
||||
| Edge | ✅ Compatible | V3 (`manifest.json`) |
|
||||
| Brave | ✅ Compatible | V3 (`manifest.json`) |
|
||||
| Opera | ✅ Compatible | V3 (`manifest.opera.json`) |
|
||||
| Opera GX | ✅ Compatible | V3 (`manifest.opera.json`) |
|
||||
| Vivaldi | ✅ Compatible | V3 (`manifest.json`) |
|
||||
| Firefox | ✅ Compatible | V3 (`manifest.firefox.json`) |
|
||||
| Chrome | ✅ Kompatibel | V3 (`manifest.json`) |
|
||||
| Edge | ✅ Kompatibel | V3 (`manifest.json`) |
|
||||
| Brave | ✅ Kompatibel | V3 (`manifest.json`) |
|
||||
| Opera | ✅ Kompatibel | V3 (`manifest.opera.json`) |
|
||||
| Opera GX | ✅ Kompatibel | V3 (`manifest.opera.json`) |
|
||||
| Vivaldi | ✅ Kompatibel | V3 (`manifest.json`) |
|
||||
| Firefox | ✅ Kompatibel | V3 (`manifest.firefox.json`) |
|
||||
|
||||
> **Firefox note:** From v1.2.0 onwards the extension runs on Manifest V3, identical to Chrome/Edge.
|
||||
> `manifest.firefox.json` remains a separate file for Firefox-specific adjustments.
|
||||
> **Firefox-Hinweis:** Ab v1.2.0 läuft die Extension auf Manifest V3 — identisch zu Chrome/Edge.
|
||||
> `manifest.firefox.json` bleibt als separate Datei erhalten für Firefox-spezifische Anpassungen.
|
||||
|
||||
---
|
||||
|
||||
@@ -129,154 +126,144 @@ What you see is what's saved. No magic.
|
||||
### Chrome / Edge / Brave / Vivaldi
|
||||
|
||||
```text
|
||||
1. Download the repository as ZIP or git clone
|
||||
2. Open chrome://extensions (or edge:// / brave://)
|
||||
3. Enable developer mode
|
||||
4. Click "Load unpacked" and select the folder containing manifest.json
|
||||
5. Open a new tab
|
||||
1. Repository als ZIP herunterladen oder git clone
|
||||
2. chrome://extensions öffnen (bzw. edge:// / brave://)
|
||||
3. Entwicklermodus aktivieren
|
||||
4. "Entpackte Erweiterung laden" → Ordner auswählen in dem manifest.json liegt
|
||||
5. Neuen Tab öffnen
|
||||
```
|
||||
|
||||
### Opera / Opera GX
|
||||
|
||||
```bash
|
||||
# Use manifest.opera.json as manifest.json:
|
||||
# manifest.opera.json als manifest.json verwenden:
|
||||
copy manifest.opera.json manifest.json # Windows
|
||||
cp manifest.opera.json manifest.json # Linux/Mac
|
||||
```
|
||||
|
||||
```text
|
||||
1. Open opera://extensions
|
||||
2. Enable developer mode
|
||||
3. Click "Load unpacked" and select the folder
|
||||
4. Open a new tab
|
||||
1. opera://extensions öffnen
|
||||
2. Entwicklermodus aktivieren
|
||||
3. "Entpackte Erweiterung laden" → Ordner auswählen
|
||||
4. Neuen Tab öffnen
|
||||
```
|
||||
|
||||
> **Opera note:** Opera GX prioritizes Speed Dial, the included workaround
|
||||
> takes over the new tab page reliably. Details: [src/js/opera/README.md](src/js/opera/README.md)
|
||||
> **Opera-Hinweis:** Opera GX priorisiert Speed Dial — der enthaltene Workaround
|
||||
> übernimmt die New-Tab-Seite zuverlässig. Details: [src/js/opera/README.md](src/js/opera/README.md)
|
||||
|
||||
### Firefox
|
||||
|
||||
```bash
|
||||
# Use manifest.firefox.json as manifest.json:
|
||||
# manifest.firefox.json als manifest.json verwenden:
|
||||
copy manifest.firefox.json manifest.json # Windows
|
||||
cp manifest.firefox.json manifest.json # Linux/Mac
|
||||
```
|
||||
|
||||
```text
|
||||
1. Open about:debugging#/runtime/this-firefox
|
||||
2. Click "Load Temporary Add-on"
|
||||
3. Select the manifest.json from the project folder
|
||||
1. about:debugging#/runtime/this-firefox öffnen
|
||||
2. "Temporäres Add-on laden"
|
||||
3. Die manifest.json aus dem Projektordner auswählen
|
||||
```
|
||||
|
||||
> **Note:** Temporary add-ons are removed on browser restart.
|
||||
> For permanent installation a signed `.xpi` file is required.
|
||||
> **Hinweis:** Temporäre Add-ons werden beim Browser-Neustart entfernt.
|
||||
> Für dauerhafte Installation ist eine signierte `.xpi`-Datei nötig.
|
||||
|
||||
---
|
||||
|
||||
## Importing Browser Bookmarks
|
||||
## Browser-Bookmarks exportieren & importieren
|
||||
|
||||
| Browser | Export path |
|
||||
| Browser | Export-Pfad |
|
||||
|---|---|
|
||||
| Chrome / Edge | Settings → Bookmarks → Export bookmarks |
|
||||
| Firefox | Bookmarks → All Bookmarks → Import and Backup → Export Bookmarks to HTML |
|
||||
| Chrome / Edge | Einstellungen → Lesezeichen → Exportieren |
|
||||
| Firefox | Lesezeichen → Alle Lesezeichen → Importieren und Sichern → Als HTML exportieren |
|
||||
|
||||
Load the exported `.html` file via the **Import** button in the extension.
|
||||
Die exportierte `.html`-Datei über den **Import**-Button in der Extension laden.
|
||||
|
||||
---
|
||||
|
||||
## Privacy
|
||||
## Datenschutz
|
||||
|
||||
- No external data transmission (except Google Favicons API for icons)
|
||||
- Storage in `chrome.storage.local` (Chromium) or `browser.storage.local` (Firefox)
|
||||
- No trackers, no analytics, no ads
|
||||
- No cookies, no session data
|
||||
- Storage quota check warns at 8 MB+ (limit: 10 MB)
|
||||
- Permissions: `storage`, `bookmarks` (all browsers) + `tabs` (Opera / Opera GX only)
|
||||
- Keine externe Datenübertragung (außer Google Favicons API für Icons)
|
||||
- Speicherung in `chrome.storage.local` (Chromium) bzw. `browser.storage.local` (Firefox)
|
||||
- Keine Tracker, keine Analytics, keine Werbung
|
||||
- Keine Cookies, keine Session-Daten
|
||||
- Storage-Quota-Prüfung warnt bei 8 MB+ (Limit: 10 MB)
|
||||
- Permissions: `storage`, `bookmarks`
|
||||
|
||||
---
|
||||
|
||||
## Tech Stack
|
||||
## Tech-Stack
|
||||
|
||||
| Component | Details |
|
||||
| Komponente | Details |
|
||||
|---|---|
|
||||
| Language | JavaScript (Vanilla ES2020, no frameworks) |
|
||||
| Styling | CSS Custom Properties (theme system) |
|
||||
| Fonts | Local fonts (Rajdhani, Inter, Cinzel) |
|
||||
| Storage | `chrome.storage.local` / `localStorage` fallback |
|
||||
| Sprache | JavaScript (Vanilla ES2020, keine Frameworks) |
|
||||
| Styling | CSS Custom Properties (Theme-System) |
|
||||
| Fonts | Lokale Fonts (Rajdhani, Inter, Cinzel) |
|
||||
| Storage | `chrome.storage.local` / `localStorage` Fallback |
|
||||
| Favicons | Google Favicons API (`/s2/favicons`) |
|
||||
| Drag & Drop | Pointer Events API (native) |
|
||||
| Build | No build step, runs directly |
|
||||
| CI/CD | GitHub Actions (security, quality, release) |
|
||||
| Drag & Drop | Pointer Events API (nativ) |
|
||||
| Build | Kein Build-Schritt — direkt lauffähig |
|
||||
| CI/CD | GitHub Actions (Security, Quality, Release) |
|
||||
|
||||
---
|
||||
|
||||
## Architecture
|
||||
## Architektur
|
||||
|
||||
```text
|
||||
hellion-newtab/
|
||||
├── manifest.json # Chrome, Edge, Brave, Vivaldi (MV3)
|
||||
├── manifest.firefox.json # Firefox (MV3)
|
||||
├── manifest.opera.json # Opera / Opera GX (MV3 + workaround)
|
||||
├── newtab.html # Main HTML (UI structure, modals, settings panel)
|
||||
├── manifest.opera.json # Opera / Opera GX (MV3 + Workaround)
|
||||
├── newtab.html # Haupt-HTML (UI-Struktur, Modals, Settings Panel)
|
||||
├── LICENSE # CC BY-NC-SA 4.0
|
||||
├── CHANGELOG.md # Version history
|
||||
├── SECURITY.md # Security policy and reporting
|
||||
├── DISCLAIMER.md # Disclaimer and legal
|
||||
├── CHANGELOG.md # Versionshistorie
|
||||
├── SECURITY.md # Sicherheitsrichtlinie und Meldeprozess
|
||||
├── DISCLAIMER.md # Haftungsausschluss
|
||||
│
|
||||
├── src/
|
||||
│ ├── js/
|
||||
│ │ ├── storage.js # Storage abstraction + quota check
|
||||
│ │ ├── state.js # Global state, defaults, helpers
|
||||
│ │ ├── dialog.js # Custom dialog system (HellionDialog.alert/confirm)
|
||||
│ │ ├── themes.js # Theme definitions & application (11 themes)
|
||||
│ │ ├── boards.js # Board/bookmark rendering, event delegation, modals
|
||||
│ │ ├── drag.js # Drag & drop (Pointer Events, board + bookmark)
|
||||
│ │ ├── settings.js # Settings panel, appearance modal, accordion
|
||||
│ │ ├── search.js # Search bar (Google, DuckDuckGo, Bing)
|
||||
│ │ ├── widgets.js # Widget manager (registry, drag, resize, z-index)
|
||||
│ │ ├── notes.js # Notes & checklists (multi-instance, max. 5)
|
||||
│ │ ├── calculator.js # Calculator (shunting-yard, history)
|
||||
│ │ ├── timer.js # Timer/countdown (presets, Web Audio alarm)
|
||||
│ │ ├── image-ref.js # Image reference widget (Canvas API, sessionStorage)
|
||||
│ │ ├── data.js # JSON export / import with validation
|
||||
│ │ ├── onboarding.js # 7-step welcome flow + gaming board
|
||||
│ │ ├── app.js # Init, clock, global events (entry point)
|
||||
│ │ └── opera/ # Opera GX workaround scripts
|
||||
│ │ ├── background.js # Tab management against Speed Dial
|
||||
│ │ └── redirect.js # Content script redirect
|
||||
│ │ ├── storage.js # Storage Abstraction + Quota-Prüfung
|
||||
│ │ ├── state.js # Globaler State, Defaults, Hilfsfunktionen
|
||||
│ │ ├── dialog.js # Custom Dialog-System (HellionDialog.alert/confirm)
|
||||
│ │ ├── themes.js # Theme-Definitionen & Anwendungslogik
|
||||
│ │ ├── boards.js # Board/Bookmark Rendering, Event Delegation, Modals
|
||||
│ │ ├── drag.js # Drag & Drop (Pointer Events, Board + Bookmark)
|
||||
│ │ ├── settings.js # Settings Panel, Theme-Modal, Accordion
|
||||
│ │ ├── search.js # Suchleiste (Google, DuckDuckGo, Bing)
|
||||
│ │ ├── sticky.js # Sticky Note Widget (Drag, Persist, Toggle)
|
||||
│ │ ├── data.js # JSON Export / Import mit Validierung
|
||||
│ │ ├── onboarding.js # Mehrstufiger Willkommens-Flow
|
||||
│ │ ├── app.js # Init, Clock, globale Events (Einstiegspunkt)
|
||||
│ │ └── opera/ # Opera GX Workaround-Skripte
|
||||
│ │ ├── background.js # Tab-Management gegen Speed Dial
|
||||
│ │ └── redirect.js # Content Script Redirect
|
||||
│ └── css/
|
||||
│ └── main.css # Styles + 11 themes + responsive breakpoints
|
||||
│ └── main.css # Styles + Theme-System + Responsive Breakpoints
|
||||
│
|
||||
├── assets/
|
||||
│ ├── fonts/ # Local fonts (Rajdhani, Inter, Cinzel)
|
||||
│ ├── themes/ # 11 theme background images (WebP only)
|
||||
│ ├── fonts/ # Lokale Fonts (Rajdhani, Inter, Cinzel)
|
||||
│ ├── themes/ # 8 Theme-Hintergrundbilder
|
||||
│ └── icons/
|
||||
│ ├── icon16.png
|
||||
│ ├── icon48.png
|
||||
│ └── icon128.png
|
||||
│
|
||||
├── docs/
|
||||
│ ├── architecture.md # Project architecture and init sequence
|
||||
│ ├── widget-schema.md # Widget system API and schema reference
|
||||
│ ├── patterns.md # Code patterns and conventions
|
||||
│ └── style-guide.md # Design system and theme documentation
|
||||
│
|
||||
└── .github/
|
||||
└── workflows/
|
||||
├── security.yml # CodeQL analysis + dependency review
|
||||
├── quality.yml # Structure, manifest, syntax, version consistency
|
||||
└── release.yml # ZIP packages (Chrome + Firefox + Opera) + SHA256
|
||||
├── security.yml # CodeQL-Analyse + Dependency Review
|
||||
├── quality.yml # Struktur, Manifest, Syntax, Versions-Konsistenz
|
||||
└── release.yml # ZIP-Pakete (Chrome + Firefox + Opera) + SHA256
|
||||
```
|
||||
|
||||
### Design Principles
|
||||
### Design-Prinzipien
|
||||
|
||||
- **Zero Dependencies** — No npm, no build, no framework. Runs directly
|
||||
- **Privacy First** — All data local, no server contact
|
||||
- **Modular** — 15 JS files with clear responsibilities
|
||||
- **Responsive** — Tablet (768px) and smartphone (480px) breakpoints
|
||||
- **Secure** — `createElement` instead of `innerHTML`, URL validation, storage error handling
|
||||
- **Event Delegation** — One listener per board list instead of per bookmark (performance)
|
||||
- **Theme System** — CSS Custom Properties, 11 themes, custom background support
|
||||
- **Zero Dependencies** — Kein npm, kein Build, kein Framework. Direkt lauffähig
|
||||
- **Privacy First** — Alle Daten lokal, kein Server-Kontakt
|
||||
- **Modular** — 12 JS-Dateien mit klarer Zuständigkeit
|
||||
- **Responsive** — Tablet (768px) und Smartphone (480px) Breakpoints
|
||||
- **Secure** — `createElement` statt `innerHTML`, URL-Validierung, Storage-Fehlerbehandlung
|
||||
- **Event Delegation** — Ein Listener pro Board-Liste statt pro Bookmark (Performance)
|
||||
- **Theme-System** — CSS Custom Properties, 8 Themes, Custom-Background-Support
|
||||
|
||||
---
|
||||
|
||||
@@ -284,88 +271,85 @@ hellion-newtab/
|
||||
|
||||
### Security Scan (`security.yml`)
|
||||
|
||||
- **CodeQL analysis** — Static security analysis for JavaScript
|
||||
- **Dependency review** — Checks pull requests for known vulnerabilities
|
||||
- **Schedule** — Automatically weekly (Monday 06:00 UTC) + on push/PR
|
||||
- **CodeQL-Analyse** — Statische Sicherheitsanalyse für JavaScript
|
||||
- **Dependency Review** — Prüft Pull Requests auf bekannte Schwachstellen
|
||||
- **Zeitplan** — Automatisch wöchentlich (Montag 06:00 UTC) + bei Push/PR
|
||||
|
||||
### Code Quality (`quality.yml`)
|
||||
|
||||
- **Project structure** — All required files and folders present
|
||||
- **Manifest validation** — JSON syntax, version, permissions
|
||||
- **JavaScript syntax check** — `node --check` for all JS files
|
||||
- **Version consistency** — manifest.json, manifest.firefox.json and newtab.html must match
|
||||
- **Icon check** — All extension icons present
|
||||
- **Projektstruktur** — Alle Pflichtdateien und -ordner vorhanden
|
||||
- **Manifest-Validierung** — JSON-Syntax, Version, Permissions
|
||||
- **JavaScript Syntax-Check** — `node --check` für alle JS-Dateien
|
||||
- **Versions-Konsistenz** — manifest.json, manifest.firefox.json und newtab.html müssen übereinstimmen
|
||||
- **Icon-Prüfung** — Alle Extension-Icons vorhanden
|
||||
|
||||
### Release (`release.yml`)
|
||||
|
||||
- **Trigger** — On Git tag (`v*`)
|
||||
- **Packages** — Chrome ZIP + Firefox ZIP + Opera ZIP (all MV3)
|
||||
- **Checksums** — SHA256 for all artifacts
|
||||
- **GitHub Release** — Automatic with installation instructions
|
||||
- **Trigger** — Bei Git-Tag (`v*`)
|
||||
- **Pakete** — Chrome-ZIP + Firefox-ZIP + Opera-ZIP (alle MV3)
|
||||
- **Checksummen** — SHA256 für alle Artefakte
|
||||
- **GitHub Release** — Automatisch mit Installationsanleitung
|
||||
|
||||
```bash
|
||||
# Create a release:
|
||||
git tag v1.10.0
|
||||
git push origin v1.10.0
|
||||
# → GitHub Action automatically creates release with ZIP files
|
||||
# Release erstellen:
|
||||
git tag v1.5.2
|
||||
git push origin v1.5.2
|
||||
# → GitHub Action erstellt automatisch Release mit ZIP-Dateien
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Development
|
||||
## Entwicklung
|
||||
|
||||
```bash
|
||||
# Clone the repository
|
||||
# Repository klonen
|
||||
git clone https://github.com/JonKazama-Hellion/Hellion-NewTab.git
|
||||
|
||||
# Load the extension in your browser (see Installation)
|
||||
# Extension im Browser laden (siehe Installation)
|
||||
|
||||
# After changes: reload the extension
|
||||
chrome://extensions → Hellion NewTab → Reload
|
||||
# Nach Änderungen: Extension neu laden
|
||||
chrome://extensions → Hellion NewTab → Neu laden
|
||||
```
|
||||
|
||||
No build step needed. Change files, reload extension, done.
|
||||
Kein Build-Schritt nötig. Dateien ändern, Extension neu laden, fertig.
|
||||
|
||||
---
|
||||
|
||||
## Security
|
||||
## Sicherheit
|
||||
|
||||
Please do **not** report security vulnerabilities through public GitHub issues.
|
||||
Details on reporting, response times and security architecture: [SECURITY.md](SECURITY.md)
|
||||
Sicherheitslücken bitte **nicht** über öffentliche Issues melden.
|
||||
Details zur Meldung, Reaktionszeiten und Sicherheitsarchitektur: [SECURITY.md](SECURITY.md)
|
||||
|
||||
---
|
||||
|
||||
## License & Legal
|
||||
## Lizenz & Impressum
|
||||
|
||||
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
|
||||
|
||||
- Free for private use
|
||||
- Sharing and modification allowed with attribution
|
||||
- Commercial use without permission prohibited
|
||||
- Kostenlos für private Nutzung
|
||||
- Teilen und Modifikation erlaubt mit Namensnennung
|
||||
- Kommerzielle Nutzung ohne Erlaubnis verboten
|
||||
|
||||
Full license: [LICENSE](LICENSE) | [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)
|
||||
Vollständige Lizenz: [LICENSE](LICENSE) | [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)
|
||||
|
||||
| | |
|
||||
|---|---|
|
||||
| **Developer** | Florian Wathling |
|
||||
| **Company** | Hellion Online Media |
|
||||
| **Entwickler** | Florian Wathling |
|
||||
| **Unternehmen** | Hellion Online Media |
|
||||
| **Web** | [hellion-media.de](https://hellion-media.de) |
|
||||
| **Imprint** | [hellion-media.de/impressum](https://hellion-media.de/impressum) |
|
||||
| **Impressum** | [hellion-media.de/impressum](https://hellion-media.de/impressum) |
|
||||
| **Bug Reports** | [kontakt@hellion-media.de](mailto:kontakt@hellion-media.de?subject=Hellion%20NewTab%20%E2%80%93%20Bug%20Report) |
|
||||
| **Security** | [SECURITY.md](SECURITY.md) |
|
||||
| **Support** | [Ko-fi](https://ko-fi.com/hellionmedia) |
|
||||
|
||||
---
|
||||
|
||||
### Use of AI
|
||||
### Einsatz von AI
|
||||
|
||||
**Claude:** Code analysis, bug fixing, documentation and proofreading.
|
||||
**Me:** Architecture, features and logic are planned, thought through and written by me.
|
||||
|
||||
Details: [DISCLAIMER.md](DISCLAIMER.md)
|
||||
AI (Claude Code, Opus 4.6 von Anthropic) wurde als Hilfsmittel eingesetzt — für Fehleridentifikation, Code-Review und Qualitätssicherung. Architektur, Features und alle Entscheidungen sind Eigenleistung.
|
||||
|
||||
---
|
||||
|
||||
> Full version history: [CHANGELOG.md](CHANGELOG.md)
|
||||
> Vollständige Versionshistorie: [CHANGELOG.md](CHANGELOG.md)
|
||||
|
||||
**Hellion NewTab** — [Hellion Online Media](https://hellion-media.de) — JonKazama-Hellion
|
||||
@@ -1,92 +1,76 @@
|
||||
# Security Policy — Hellion NewTab
|
||||
# Sicherheitsrichtlinie — Hellion NewTab
|
||||
|
||||
## Supported Versions
|
||||
## Unterstützte Versionen
|
||||
|
||||
| Version | Status |
|
||||
| --- | --- |
|
||||
| 1.9.x | Actively supported |
|
||||
| < 1.9.0 | Not supported |
|
||||
| 1.2.x | Aktiv unterstützt |
|
||||
| < 1.2.0 | Nicht unterstützt |
|
||||
|
||||
## Reporting a Vulnerability
|
||||
## Sicherheitslücke melden
|
||||
|
||||
If you find a security vulnerability in Hellion NewTab, please **do not** open a public GitHub issue.
|
||||
Wenn du eine Sicherheitslücke in Hellion NewTab findest, melde sie bitte **nicht** über ein öffentliches GitHub Issue.
|
||||
|
||||
### Contact
|
||||
### Kontakt
|
||||
|
||||
**Email:** [kontakt@hellion-media.de](mailto:kontakt@hellion-media.de?subject=Hellion%20NewTab%20%E2%80%93%20Security%20Report)
|
||||
**E-Mail:** [kontakt@hellion-media.de](mailto:kontakt@hellion-media.de?subject=Hellion%20NewTab%20%E2%80%93%20Security%20Report)
|
||||
|
||||
Please include the following information:
|
||||
Bitte folgende Informationen angeben:
|
||||
|
||||
- Description of the vulnerability
|
||||
- Steps to reproduce
|
||||
- Affected version(s)
|
||||
- Potential impact (data loss, XSS, etc.)
|
||||
- Beschreibung der Schwachstelle
|
||||
- Schritte zur Reproduktion
|
||||
- Betroffene Version(en)
|
||||
- Mögliche Auswirkungen (Datenverlust, XSS, etc.)
|
||||
|
||||
### Response Times
|
||||
### Reaktionszeit
|
||||
|
||||
- **Acknowledgement:** Within 48 hours
|
||||
- **Initial assessment:** Within 7 days
|
||||
- **Fix:** Depends on severity, target within 14 days
|
||||
- **Bestätigung:** Innerhalb von 48 Stunden
|
||||
- **Ersteinschätzung:** Innerhalb von 7 Tagen
|
||||
- **Fix:** Abhängig von Schweregrad, Ziel innerhalb von 14 Tagen
|
||||
|
||||
### Severity Levels
|
||||
### Schweregrad-Einstufung
|
||||
|
||||
| Level | Description | Example |
|
||||
| Stufe | Beschreibung | Beispiel |
|
||||
| --- | --- | --- |
|
||||
| Critical | Data loss or remote code execution | Storage manipulation by third parties |
|
||||
| High | XSS or unintended data transmission | Script injection via bookmark import |
|
||||
| Medium | UI protection bypass | Blur bypass, settings manipulation |
|
||||
| Low | Cosmetic or theoretical | Edge cases without practical impact |
|
||||
| Kritisch | Datenverlust oder Remote Code Execution | Storage-Manipulation durch Dritte |
|
||||
| Hoch | XSS oder ungewollte Datenübertragung | Script-Injection via Bookmark-Import |
|
||||
| Mittel | Umgehung von UI-Schutzmechanismen | Blur-Bypass, Settings-Manipulation |
|
||||
| Niedrig | Kosmetisch oder theoretisch | Edge-Cases ohne praktische Auswirkung |
|
||||
|
||||
---
|
||||
## Sicherheitsarchitektur
|
||||
|
||||
## Security Architecture
|
||||
### Datenverarbeitung
|
||||
|
||||
### Data Handling
|
||||
- **Keine externe Datenübertragung** — Alle Daten bleiben in `chrome.storage.local`
|
||||
- **Kein Server-Kontakt** — Außer Google Favicons API für Bookmark-Icons
|
||||
- **Keine Cookies, Sessions oder Tokens**
|
||||
- **Kein Netzwerkzugriff** außer Favicon-Abruf
|
||||
|
||||
- **No external data transmission** — all data stays in `chrome.storage.local`
|
||||
- **No server contact** — except Google Favicons API for bookmark icons
|
||||
- **No cookies, sessions or tokens**
|
||||
- **No network access** beyond favicon fetching
|
||||
### Eingabe-Validierung
|
||||
|
||||
### Input Validation
|
||||
|
||||
- URL validation on bookmark creation (`new URL()`)
|
||||
- JSON import validates board and bookmark structure before applying
|
||||
- HTML sanitization via `escHtml()` and `createElement` — no `innerHTML` for user data
|
||||
- Storage quota check with warning at 8 MB+
|
||||
- URL-Validierung bei Bookmark-Erstellung (`new URL()`)
|
||||
- JSON-Import: Board- und Bookmark-Struktur wird validiert
|
||||
- HTML-Sanitierung via `escHtml()` und `createElement` (kein `innerHTML` für User-Daten)
|
||||
- Storage-Quota-Prüfung mit Warnung bei 8 MB+
|
||||
|
||||
### Permissions
|
||||
|
||||
This extension requests the following browser permissions:
|
||||
Diese Extension benötigt nur zwei Browser-Permissions:
|
||||
|
||||
| Permission | Browsers | Reason |
|
||||
|---|---|---|
|
||||
| `storage` | All | Store boards, settings and widget states locally |
|
||||
| `bookmarks` | All | Read browser bookmarks for direct import |
|
||||
| `tabs` | Opera / Opera GX only | Required for the Speed Dial workaround — `background.js` monitors tab URLs and redirects via `chrome.tabs.update` |
|
||||
| Permission | Grund |
|
||||
| --- | --- |
|
||||
| `storage` | Boards, Settings und Sticky Note lokal speichern |
|
||||
| `bookmarks` | Browser-Lesezeichen für HTML-Import lesen |
|
||||
|
||||
No permissions requested for: history, web requests, downloads, clipboard or host access.
|
||||
Keine Permissions für: Tabs, History, Web Requests, Downloads, Clipboard oder Host-Zugriff.
|
||||
|
||||
### CI/CD Security
|
||||
### CI/CD-Sicherheit
|
||||
|
||||
- **CodeQL** — Automatic static analysis on every push and PR
|
||||
- **Dependency Review** — Checks for known vulnerabilities in PRs
|
||||
- **Weekly scan** — Automated CodeQL run every Monday at 06:00 UTC
|
||||
- **SHA256 checksums** — All release artifacts are checksummed
|
||||
- **CodeQL** — Automatische statische Analyse bei Push und PR
|
||||
- **Dependency Review** — Prüft auf bekannte Schwachstellen in PRs
|
||||
- **Wöchentlicher Scan** — Automatischer CodeQL-Lauf jeden Montag
|
||||
- **SHA256-Checksummen** — Alle Release-Artefakte werden signiert
|
||||
|
||||
---
|
||||
|
||||
## Legal
|
||||
|
||||
Hellion NewTab is developed and maintained by **Florian Wathling / Hellion Online Media**,
|
||||
based in Bad Harzburg, Germany.
|
||||
|
||||
All security matters are handled in accordance with **German and EU law**, including
|
||||
the General Data Protection Regulation (GDPR / DSGVO). Users in the European Union
|
||||
are covered by the same legal framework.
|
||||
|
||||
For legal inquiries: [hellion-media.de/impressum](https://hellion-media.de/impressum)
|
||||
|
||||
---
|
||||
|
||||
**Hellion Dashboard** — [Hellion Online Media — Florian Wathling](https://hellion-media.de) — JonKazama-Hellion
|
||||
**Hellion Dashboard** — [Hellion Online Media - Florian Wathling](https://hellion-media.de) — JonKazama-Hellion
|
||||
|
||||
|
Before Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 102 KiB |
|
Before Width: | Height: | Size: 49 KiB |
|
After Width: | Height: | Size: 344 KiB |
|
Before Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 224 KiB |
|
Before Width: | Height: | Size: 90 KiB |
|
After Width: | Height: | Size: 366 KiB |
|
Before Width: | Height: | Size: 202 KiB |
|
After Width: | Height: | Size: 157 KiB |
|
Before Width: | Height: | Size: 82 KiB |
|
Before Width: | Height: | Size: 164 KiB |
|
After Width: | Height: | Size: 247 KiB |
|
Before Width: | Height: | Size: 108 KiB |
|
Before Width: | Height: | Size: 76 KiB |
@@ -1,316 +0,0 @@
|
||||
# Hellion Dashboard — Design & Theme System
|
||||
|
||||
> This document is intentionally written in English. Full German/English i18n support
|
||||
> is planned for v2.0 — until then, English keeps the docs accessible to anyone
|
||||
> who wants to contribute or fork the project.
|
||||
|
||||
---
|
||||
|
||||
## Design Pillars
|
||||
|
||||
| Pillar | Description |
|
||||
|---|---|
|
||||
| **Immersion** | The interface feels like a HUD floating over the scene, not a foreign object sitting on top of it |
|
||||
| **Visual Clarity** | Deliberate use of `blur` separates UI from background and reduces visual noise and cognitive load |
|
||||
| **Harmony** | Every theme pulls its colors from the dominant light sources in its background image |
|
||||
|
||||
---
|
||||
|
||||
## Background Images — WebP Only
|
||||
|
||||
**All background images must be in WebP format.** This is an intentional architectural
|
||||
decision to keep storage quota usage predictable and leave room for future features
|
||||
(widgets, image references, etc.) that also compete for the 10 MB `chrome.storage` limit.
|
||||
|
||||
JPG, PNG and other formats are not accepted, so convert before adding a theme.
|
||||
|
||||
### Recommended Settings
|
||||
|
||||
| Quality | When to use |
|
||||
|---|---|
|
||||
| 85 | Default, good balance of size and sharpness |
|
||||
| 80 | For images over 500 KB |
|
||||
| 90 | For images with fine details (stars, in-game UI text) |
|
||||
|
||||
### Conversion Tools
|
||||
|
||||
**Squoosh** (squoosh.app) — browser-based, no install, nothing gets uploaded to external servers.
|
||||
Drag in the image, pick WebP, set quality to 85, download. Done.
|
||||
|
||||
**cwebp** (command line):
|
||||
```bash
|
||||
cwebp -q 85 input.jpg -o output.webp
|
||||
```
|
||||
|
||||
### Current Theme Images
|
||||
|
||||
| File | Status |
|
||||
|---|---|
|
||||
| `bg-nebula.webp` | ✅ WebP |
|
||||
| `bg-crescent.webp` | ✅ WebP |
|
||||
| `bg-event-horizon.webp` | ✅ WebP |
|
||||
| `bg-merchantman.webp` | ✅ WebP |
|
||||
| `bg-julia-jin.webp` | ✅ WebP |
|
||||
| `bg-sc-sunset.webp` | ✅ WebP |
|
||||
| `bg-hellion-hud.webp` | ✅ WebP |
|
||||
| `bg-hellion-energy.webp` | ✅ WebP |
|
||||
| `bg-satisfactory.webp` | ✅ WebP |
|
||||
| `bg-avorion.webp` | ✅ WebP |
|
||||
| `bg-scPolaris.webp` | ✅ WebP |
|
||||
|
||||
---
|
||||
|
||||
## Anatomy of a Theme
|
||||
|
||||
Every theme lives in `main.css` as a `[data-theme="name"]` block. Copy this template
|
||||
to add a new one:
|
||||
|
||||
```css
|
||||
[data-theme="your-theme-name"] {
|
||||
/* 1. ACCENTS — The light source */
|
||||
--accent: #HEXCODE; /* Main color (neon/light) */
|
||||
--accent-dim: rgba(R, G, B, 0.12); /* Subtle background tint */
|
||||
--accent-glow: rgba(R, G, B, 0.08); /* Glow for logo & clock */
|
||||
--border-accent: rgba(R, G, B, 0.25); /* Focus ring */
|
||||
|
||||
/* 2. BASE — The foundation */
|
||||
--bg-primary: #HEXCODE; /* Darkest point in the image */
|
||||
--bg-board: rgba(R, G, B, 0.55); /* Glass effect on boards */
|
||||
--border: rgba(R, G, B, 0.12); /* Default border */
|
||||
|
||||
/* 3. TEXT — Contrast */
|
||||
--text-primary: #FFFFFF; /* Readable, slightly tinted */
|
||||
--text-secondary: #A0A0A0; /* Desaturated, less visual weight */
|
||||
--text-muted: #606060; /* Barely visible, for hints */
|
||||
|
||||
/* 4. OVERLAY — Vignette */
|
||||
--overlay-bg: radial-gradient(
|
||||
circle at center,
|
||||
transparent 0%,
|
||||
var(--bg-primary) 100%
|
||||
);
|
||||
|
||||
/* 5. COMPONENT COLORS */
|
||||
--header-bg: rgba(R, G, B, 0.94);
|
||||
--board-hover-border: rgba(R, G, B, 0.22);
|
||||
--toggle-on-bg: rgba(R, G, B, 0.20);
|
||||
--logo-shadow: rgba(R, G, B, 0.50);
|
||||
|
||||
/* 6. FONTS */
|
||||
--font-display: 'Rajdhani', sans-serif;
|
||||
--font-body: 'Inter', sans-serif;
|
||||
}
|
||||
|
||||
/* Theme-specific overrides */
|
||||
[data-theme="your-theme-name"] .logo { letter-spacing: 4px; }
|
||||
[data-theme="your-theme-name"] .clock { color: var(--accent); }
|
||||
[data-theme="your-theme-name"] .board-title { text-transform: uppercase; }
|
||||
[data-theme="your-theme-name"] .board { backdrop-filter: blur(8px); }
|
||||
[data-theme="your-theme-name"] .bm-item:hover { background: var(--accent-dim); }
|
||||
```
|
||||
|
||||
After adding the CSS block, register the theme in `src/js/themes.js` and add a preview entry in the theme picker.
|
||||
|
||||
---
|
||||
|
||||
## UI Patterns
|
||||
|
||||
### Frosted Glass
|
||||
|
||||
Hardware-accelerated blur for readability on complex backgrounds:
|
||||
|
||||
```css
|
||||
backdrop-filter: blur(8px);
|
||||
```
|
||||
|
||||
Creates depth and visual calm behind text and UI elements. Standard value is `8px`. Only increase it when the background image has a lot of fine detail that competes with the UI.
|
||||
|
||||
### Clock Color
|
||||
|
||||
All themes set `color: var(--accent)` on the clock element. This is a consistent
|
||||
detail across the entire theme system. Don't skip it for new themes.
|
||||
|
||||
```css
|
||||
[data-theme="your-theme"] .clock { color: var(--accent); }
|
||||
```
|
||||
|
||||
### Typography Hierarchy
|
||||
|
||||
| Font | Usage |
|
||||
|---|---|
|
||||
| **Rajdhani** | Display: clock, logo, titles. Anything that should feel like a system readout |
|
||||
| **Inter** | Body: bookmark titles, lists, interactive elements |
|
||||
| **Cinzel** | Fantasy: reserved for themes with a majestic or ancient aesthetic (Crescent, Julia & Jin) |
|
||||
|
||||
### Overlay Strategy
|
||||
|
||||
The overlay gradient determines what stays visible in the background image.
|
||||
|
||||
**Radial (default)** draws attention to the center and darkens edges:
|
||||
```css
|
||||
--overlay-bg: radial-gradient(circle at center, transparent 0%, var(--bg-primary) 100%);
|
||||
```
|
||||
|
||||
**Linear** darkens top and bottom and leaves the middle open. Use when the subject
|
||||
is horizontally centered and should stay visible (Satisfactory factory floor, SC Sunset horizon):
|
||||
```css
|
||||
--overlay-bg: linear-gradient(180deg, rgba(R,G,B,0.85) 0%, rgba(R,G,B,0.15) 50%, rgba(R,G,B,0.90) 100%);
|
||||
```
|
||||
|
||||
Choose based on where the most important part of the image is, not by habit.
|
||||
|
||||
---
|
||||
|
||||
## Focus & Accessibility
|
||||
|
||||
For backgrounds with a lot of detail (many small elements, high contrast, busy textures),
|
||||
increase board alpha and blur to reduce visual noise. This makes boards easier to scan,
|
||||
especially for users with ADHD or attention sensitivities.
|
||||
|
||||
```css
|
||||
--bg-board: rgba(R, G, B, 0.65); /* Up from default 0.55 */
|
||||
backdrop-filter: blur(12px); /* Up from default 8px */
|
||||
```
|
||||
|
||||
This was applied intentionally to the Satisfactory theme, because the factory floor screenshot
|
||||
has a lot going on and needed more visual separation between background and UI.
|
||||
|
||||
---
|
||||
|
||||
## All 11 Themes
|
||||
|
||||
| Theme | File | Accent | Mood | Overlay |
|
||||
|---|---|---|---|---|
|
||||
| Nebula | `bg-nebula.webp` | `#b359ff` Magenta | Chill, Cosmic | Radial |
|
||||
| Crescent | `bg-crescent.webp` | `#d4bd8a` Gold | Luxury, Night | Radial |
|
||||
| Event Horizon | `bg-event-horizon.webp` | `#9d5cff` Purple | Deep Space, Void | Radial |
|
||||
| Merchantman | `bg-merchantman.webp` | `#2eb8b8` Emerald | Industrial, Alien | Radial |
|
||||
| Julia & Jin | `bg-julia-jin.webp` | `#7db3ff` Aetherial Blue | FFXIV Night | Linear |
|
||||
| SC Sunset | `bg-sc-sunset.webp` | `#ff8c3d` Amber | Emotional, Horizon | Linear |
|
||||
| Hellion HUD | `bg-hellion-hud.webp` | `#32ff6a` Neon Green | Tactical, Admin | Radial |
|
||||
| Hellion Energy | `bg-hellion-energy.webp` | `#1eff8e` Acid Green | Overdrive, Power | Radial |
|
||||
| Satisfactory | `bg-satisfactory.webp` | `#00b4d8` Cyan | Industrial Desert | Linear |
|
||||
| Avorion | `bg-avorion.webp` | `#2ec4a0` Turquoise | Deep Void | Radial |
|
||||
| Hellion Stealth | `bg-scPolaris.webp` | `#5ec2ff` Tech Blue | Tactical Recon | Radial |
|
||||
|
||||
### Theme Quirks Worth Knowing
|
||||
|
||||
**Julia & Jin** uses `Cinzel` as display font and a linear gradient. The subjects in
|
||||
the screenshot are positioned left of center, so radial would soften them.
|
||||
|
||||
**Satisfactory** has increased board alpha (0.65) and stronger blur (12px), an intentional
|
||||
ADHD optimization for a visually busy background.
|
||||
|
||||
**Avorion** uses `letter-spacing: 6px` on the logo for maximum HUD feel.
|
||||
|
||||
**Hellion Stealth** is the only theme with `border-left: 2px solid var(--accent)` on
|
||||
`.bm-item:hover`. Every other theme uses background tinting only. This is intentional
|
||||
and gives Stealth its tactical scanner character. Don't apply it to other themes.
|
||||
|
||||
---
|
||||
|
||||
## Registering a Theme in themes.js
|
||||
|
||||
The `THEMES` object in `src/js/themes.js` is the single source of truth for which
|
||||
themes exist and which background image they use. CSS handles all the visual variables —
|
||||
`themes.js` only needs the image path.
|
||||
|
||||
```javascript
|
||||
const THEMES = {
|
||||
'nebula': { bg: 'assets/themes/bg-nebula.webp' },
|
||||
'crescent': { bg: 'assets/themes/bg-crescent.webp' },
|
||||
'event-horizon': { bg: 'assets/themes/bg-event-horizon.webp' },
|
||||
'merchantman': { bg: 'assets/themes/bg-merchantman.webp' },
|
||||
'julia-jin': { bg: 'assets/themes/bg-julia-jin.webp' },
|
||||
'sc-sunset': { bg: 'assets/themes/bg-sc-sunset.webp' },
|
||||
'hellion-hud': { bg: 'assets/themes/bg-hellion-hud.webp' },
|
||||
'hellion-energy': { bg: 'assets/themes/bg-hellion-energy.webp' },
|
||||
'satisfactory': { bg: 'assets/themes/bg-satisfactory.webp' },
|
||||
'avorion': { bg: 'assets/themes/bg-avorion.webp' },
|
||||
'hellion-stealth': { bg: 'assets/themes/bg-scPolaris.webp' }
|
||||
};
|
||||
```
|
||||
|
||||
To add a new theme, add one line. The key must exactly match the `data-theme`
|
||||
attribute in the CSS block. If they don't match, `applyTheme()` will silently
|
||||
do nothing and no one will know why.
|
||||
|
||||
```javascript
|
||||
// New theme: key must match [data-theme="your-theme-name"] in main.css
|
||||
'your-theme-name': { bg: 'assets/themes/bg-your-theme.webp' }
|
||||
```
|
||||
|
||||
### How applyTheme() works
|
||||
|
||||
```javascript
|
||||
function applyTheme(themeName, skipBgOverride) {
|
||||
const theme = THEMES[themeName];
|
||||
if (!theme) return;
|
||||
|
||||
// Sets data-theme on <html> — activates the matching CSS variable block
|
||||
document.documentElement.setAttribute('data-theme', themeName);
|
||||
|
||||
// Applies the background image unless a custom background is active
|
||||
if (!skipBgOverride) {
|
||||
document.getElementById('bgLayer').style.backgroundImage = `url('${theme.bg}')`;
|
||||
}
|
||||
|
||||
// Updates the active state in the theme picker UI
|
||||
document.querySelectorAll('.theme-card').forEach(card => {
|
||||
card.classList.toggle('active', card.dataset.value === themeName);
|
||||
});
|
||||
}
|
||||
```
|
||||
|
||||
The `skipBgOverride` flag exists for one specific case: when a user has set a custom
|
||||
background image, switching themes should still update the CSS variables and the picker
|
||||
UI, but not wipe their custom image. Pass `true` to skip the background update.
|
||||
|
||||
---
|
||||
|
||||
## Adding a Theme Card to newtab.html
|
||||
|
||||
The theme picker modal lives in `newtab.html` as `#themeOverlay`. Every theme
|
||||
needs a card in the `.theme-grid` — without it the theme exists in CSS and JS
|
||||
but never shows up in the UI.
|
||||
|
||||
Copy this block and add it inside `.theme-grid`, after the last existing card:
|
||||
|
||||
```html
|
||||
<div class="theme-card" data-value="your-theme-name">
|
||||
<img class="theme-card-img" src="assets/themes/bg-your-theme.webp" alt="Your Theme" />
|
||||
<span class="theme-card-label">Your Theme</span>
|
||||
<span class="theme-card-check">✓</span>
|
||||
</div>
|
||||
```
|
||||
|
||||
Three things that must match exactly:
|
||||
|
||||
- `data-value` must match the key in `THEMES` in `themes.js`
|
||||
- `data-value` must match the `[data-theme="..."]` attribute in `main.css`
|
||||
- `src` must point to the correct WebP file in `assets/themes/`
|
||||
|
||||
The label shown in the picker can be shorter than the full theme name — "HUD" and
|
||||
"Energy" are good examples of that. Keep it short enough to fit the card.
|
||||
|
||||
The `active` class is toggled by `applyTheme()` automatically, so don't add it
|
||||
manually unless you want that theme to be the default on first load (Nebula currently
|
||||
has it as fallback).
|
||||
|
||||
---
|
||||
|
||||
## Adding a New Theme — Checklist
|
||||
|
||||
- [ ] Background image converted to WebP (quality 85)
|
||||
- [ ] Image added to `assets/themes/`
|
||||
- [ ] CSS block added to `src/css/main.css`
|
||||
- [ ] Theme registered in `src/js/themes.js` (one line, key + bg path)
|
||||
- [ ] Theme card added to `.theme-grid` in `newtab.html` (data-value, img src, label)
|
||||
- [ ] Theme added to theme table in `README.md`
|
||||
- [ ] Theme added to theme table in this document
|
||||
- [ ] Image credit added to Bild-Credits table in `README.md`
|
||||
- [ ] `CHANGELOG.md` entry added
|
||||
|
||||
---
|
||||
|
||||
Developed by **[Hellion Online Media — Florian Wathling](https://hellion-media.de)** — JonKazama-Hellion
|
||||
@@ -1,169 +0,0 @@
|
||||
# Hellion Dashboard — Architecture
|
||||
|
||||
> This document is intentionally written in English. Full German/English i18n support
|
||||
> is planned for v2.0 — until then, English keeps the docs accessible to anyone
|
||||
> who wants to contribute or fork the project.
|
||||
|
||||
---
|
||||
|
||||
## Overview
|
||||
|
||||
Hellion Dashboard is a browser extension (NewTab replacement) built with **Vanilla JavaScript ES2020**, **CSS Custom Properties**, and **zero dependencies**. No build step, no framework, no bundler — files are loaded directly via `<script>` tags.
|
||||
|
||||
**Storage:** `chrome.storage.local` with `localStorage` fallback.
|
||||
**Manifest:** V3 across all supported browsers (separate files for Firefox and Opera GX).
|
||||
|
||||
---
|
||||
|
||||
## File Structure
|
||||
|
||||
```
|
||||
HOM_NewTab_Project/
|
||||
├── newtab.html # Single HTML entry point
|
||||
├── manifest.json # Chrome, Edge, Brave, Vivaldi (MV3)
|
||||
├── manifest.firefox.json # Firefox (MV3)
|
||||
├── manifest.opera.json # Opera, Opera GX (MV3 + workarounds)
|
||||
├── src/
|
||||
│ ├── css/
|
||||
│ │ └── main.css # All styles, 11 themes, responsive breakpoints
|
||||
│ └── js/
|
||||
│ ├── dialog.js # Custom dialog system (alert, confirm)
|
||||
│ ├── storage.js # Storage abstraction layer
|
||||
│ ├── state.js # Global state, defaults, helpers
|
||||
│ ├── themes.js # Theme definitions & application (11 themes)
|
||||
│ ├── boards.js # Board/bookmark rendering & events
|
||||
│ ├── drag.js # Drag & drop (Pointer Events API)
|
||||
│ ├── settings.js # Settings panel, toggles, theme picker
|
||||
│ ├── search.js # Search bar (Google, DuckDuckGo, Bing)
|
||||
│ ├── onboarding.js # First-run onboarding flow
|
||||
│ ├── widgets.js # Widget manager (registry, drag, resize)
|
||||
│ ├── notes.js # Notes/checklists (multi-instance widgets)
|
||||
│ ├── calculator.js # Calculator widget (single-instance)
|
||||
│ ├── timer.js # Timer/countdown widget (single-instance)
|
||||
│ ├── image-ref.js # Image reference widget (multi-instance)
|
||||
│ ├── data.js # JSON export/import (backup & restore)
|
||||
│ └── app.js # Init, clock, global events (entry point)
|
||||
├── assets/
|
||||
│ ├── fonts/ # Local fonts (Rajdhani, Inter, Cinzel)
|
||||
│ ├── icons/ # Extension icons (16-512px)
|
||||
│ └── themes/ # 11 theme background images
|
||||
└── docs/ # You are here
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Module Responsibilities
|
||||
|
||||
Each module has exactly one responsibility. Communication happens through global references — no import/export, because this is a browser extension without a bundler.
|
||||
|
||||
| Module | Responsibility |
|
||||
|---|---|
|
||||
| `dialog.js` | `HellionDialog.alert()` and `HellionDialog.confirm()` — custom styled dialogs that replace native browser popups. Loaded first so every other module can use it. |
|
||||
| `storage.js` | The **only** place that touches `chrome.storage` / `localStorage`. Everything else goes through `Store.get()` / `Store.set()`. |
|
||||
| `state.js` | Global `boards` and `settings` arrays, default values, `uid()`, `escHtml()`, `getFaviconUrl()`. |
|
||||
| `themes.js` | Applies theme CSS variables. 11 themes, each with its own `[data-theme]` block in `main.css`. |
|
||||
| `boards.js` | Renders boards and bookmarks. Event delegation on board containers. |
|
||||
| `drag.js` | Board and bookmark reordering via Pointer Events API. |
|
||||
| `settings.js` | Settings panel UI, toggle handlers, appearance modal, background upload. |
|
||||
| `search.js` | Search bar with engine switching (Google, DuckDuckGo, Bing). |
|
||||
| `onboarding.js` | Multi-slide first-run flow including the gaming starter board opt-in. |
|
||||
| `widgets.js` | Widget manager — creates DOM, handles drag/resize/z-index, provides registry. See [widget-schema.md](widget-schema.md). |
|
||||
| `notes.js` | Notes and checklists as widgets. Multi-instance (max 5). Notebook sidebar. Also handles widget toolbar events. |
|
||||
| `calculator.js` | Calculator widget. Single-instance. Shunting-yard expression parser — no `eval()`. |
|
||||
| `timer.js` | Timer/countdown widget. Single-instance. Presets, Web Audio API alarm, tab-title blink on completion. |
|
||||
| `image-ref.js` | Image reference widget. Multi-instance (max 3). Canvas API WebP conversion, sessionStorage for image data — cleared on browser close. |
|
||||
| `data.js` | JSON export/import with validation. Covers boards, notes, calculator history and timer presets. |
|
||||
| `app.js` | Entry point. Calls `init()` on DOMContentLoaded. Clock, global event binding. |
|
||||
|
||||
---
|
||||
|
||||
## Init Sequence
|
||||
|
||||
```
|
||||
DOMContentLoaded
|
||||
→ init()
|
||||
→ Store.get('boards') # Load saved boards
|
||||
→ Store.get('settings') # Load saved settings
|
||||
→ applySettings() # Apply theme, toggles, etc.
|
||||
→ renderBoards() # Render all boards
|
||||
→ startClock() # Start clock/date display
|
||||
→ bindGlobalEvents() # Header buttons, modals
|
||||
→ bindSettingsEvents() # Settings toggles, theme picker
|
||||
→ initSearch() # Search bar
|
||||
→ migrateSticky() # Legacy sticky note migration (v1.5.x → v1.6+)
|
||||
→ Notes.init() # Notes + widget toolbar
|
||||
→ Calculator.init() # Calculator widget
|
||||
→ Timer.init() # Timer widget
|
||||
→ ImageRef.init() # Image reference widget
|
||||
→ initDataButtons() # Export/import buttons
|
||||
→ Onboarding check # First-run onboarding
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Script Load Order
|
||||
|
||||
Scripts are loaded in `newtab.html` in dependency order. A module may only reference modules loaded before it — there is no bundler to handle this automatically.
|
||||
|
||||
```html
|
||||
<script src="src/js/dialog.js"></script>
|
||||
<script src="src/js/storage.js"></script>
|
||||
<script src="src/js/state.js"></script>
|
||||
<script src="src/js/themes.js"></script>
|
||||
<script src="src/js/boards.js"></script>
|
||||
<script src="src/js/drag.js"></script>
|
||||
<script src="src/js/settings.js"></script>
|
||||
<script src="src/js/search.js"></script>
|
||||
<script src="src/js/onboarding.js"></script>
|
||||
<script src="src/js/widgets.js"></script>
|
||||
<script src="src/js/notes.js"></script>
|
||||
<script src="src/js/calculator.js"></script>
|
||||
<script src="src/js/timer.js"></script>
|
||||
<script src="src/js/image-ref.js"></script>
|
||||
<script src="src/js/data.js"></script>
|
||||
<script src="src/js/app.js"></script>
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Z-Index Hierarchy
|
||||
|
||||
| Layer | z-index | Elements |
|
||||
|---|---|---|
|
||||
| Background | 0-2 | `#bgLayer`, boards |
|
||||
| Search bar | 90 | `.search-bar-wrapper` |
|
||||
| Widgets + Toolbar | 100+ | `.widget`, `.widget-toolbar` |
|
||||
| Header | 100 | `#header` |
|
||||
| Settings panel | 200 | `#settingsPanel` |
|
||||
| Dialogs / Modals | 300 | `.hellion-dialog-overlay`, modals |
|
||||
| Onboarding | 400 | `#onboardingOverlay` |
|
||||
|
||||
Widgets use an incrementing z-index (`WidgetManager._topZ++`) so the last clicked widget always sits on top.
|
||||
|
||||
---
|
||||
|
||||
## Storage Keys
|
||||
|
||||
| Key | Type | Content |
|
||||
|---|---|---|
|
||||
| `boards` | Array | Board objects with bookmarks |
|
||||
| `settings` | Object | User preferences (theme, toggles, etc.) |
|
||||
| `widgetStates` | Object | All widget data — see [widget-schema.md](widget-schema.md) |
|
||||
| `onboardingDone` | Boolean | Whether the first-run onboarding has been completed |
|
||||
| `lastBackupReminder` | Number | Timestamp of the last backup reminder |
|
||||
|
||||
---
|
||||
|
||||
## Browser Compatibility
|
||||
|
||||
| Browser | Engine | Manifest |
|
||||
|---|---|---|
|
||||
| Chrome | Chromium MV3 | `manifest.json` |
|
||||
| Edge | Chromium MV3 | `manifest.json` |
|
||||
| Brave | Chromium MV3 | `manifest.json` |
|
||||
| Vivaldi | Chromium MV3 | `manifest.json` |
|
||||
| Opera / GX | Chromium MV3 | `manifest.opera.json` |
|
||||
| Firefox | Gecko MV3 | `manifest.firefox.json` |
|
||||
|
||||
Any change that touches manifest fields — version numbers, permissions, content scripts —
|
||||
needs to be applied to all three files. The CI quality check will catch it if they drift out of sync.
|
||||
@@ -1,308 +0,0 @@
|
||||
# Hellion Dashboard — Code Patterns & Conventions
|
||||
|
||||
> This document is intentionally written in English. Full German/English i18n support
|
||||
> is planned for v2.0 — until then, English keeps the docs accessible to anyone
|
||||
> who wants to contribute or fork the project.
|
||||
|
||||
---
|
||||
|
||||
## Core Principles
|
||||
|
||||
- **Vanilla JS ES2020** — No frameworks, no TypeScript, no build step
|
||||
- **Zero dependencies** — Everything is built from scratch
|
||||
- **`createElement` only** — Never use `innerHTML` (XSS prevention)
|
||||
- **CSS Custom Properties** — No hardcoded colors, everything through `var(--name)`
|
||||
- **Event delegation** — One listener per container, not per element
|
||||
- **Storage abstraction** — All storage access through `Store.get()` / `Store.set()`
|
||||
|
||||
---
|
||||
|
||||
## Pattern: Storage Abstraction
|
||||
|
||||
**File:** `src/js/storage.js`
|
||||
|
||||
All persistent data goes through the `Store` object. Never access `chrome.storage` or `localStorage` directly — `Store` handles the fallback between the two transparently and provides unified error handling when storage is full.
|
||||
|
||||
```javascript
|
||||
// Reading
|
||||
const boards = await Store.get('boards'); // Returns null if not found
|
||||
const settings = await Store.get('settings');
|
||||
|
||||
// Writing
|
||||
await Store.set('boards', boards);
|
||||
await Store.set('settings', settings);
|
||||
|
||||
// Quota check (chrome.storage only, 10 MB limit)
|
||||
await Store.checkQuota();
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Pattern: Event Delegation
|
||||
|
||||
One listener on the container, `closest()` to find the target. Much cleaner than attaching a listener to every single element, and it works automatically for dynamically added content.
|
||||
|
||||
```javascript
|
||||
// GOOD — one listener, handles all bookmarks
|
||||
container.addEventListener('click', (e) => {
|
||||
const bmItem = e.target.closest('.bm-item');
|
||||
if (!bmItem) return;
|
||||
const id = bmItem.dataset.id;
|
||||
// Handle click
|
||||
});
|
||||
|
||||
// BAD — listener per element
|
||||
bookmarks.forEach(bm => {
|
||||
bm.addEventListener('click', handler); // Don't do this!
|
||||
});
|
||||
```
|
||||
|
||||
Used in `boards.js` (board/bookmark events), `notes.js` (toolbar) and `calculator.js` (button grid).
|
||||
|
||||
---
|
||||
|
||||
## Pattern: createElement over innerHTML
|
||||
|
||||
Always build DOM with `document.createElement()`. This is the project's #1 security rule — `innerHTML` with user-provided content is an XSS risk, full stop.
|
||||
|
||||
```javascript
|
||||
// GOOD
|
||||
const link = document.createElement('a');
|
||||
link.href = bookmark.url;
|
||||
link.textContent = bookmark.title;
|
||||
container.appendChild(link);
|
||||
|
||||
// BAD — XSS risk!
|
||||
container.innerHTML = `<a href="${url}">${title}</a>`;
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Pattern: Shared Storage Key
|
||||
|
||||
All widget modules share the `widgetStates` storage key. Every module that writes to it must read first and preserve what's already there — otherwise modules silently overwrite each other's data.
|
||||
|
||||
```javascript
|
||||
async save() {
|
||||
const data = await Store.get('widgetStates') || {};
|
||||
|
||||
// Write your own data
|
||||
data.yourKey = { /* ... */ };
|
||||
|
||||
// Don't replace the whole object — other modules live here too
|
||||
await Store.set('widgetStates', data);
|
||||
}
|
||||
```
|
||||
|
||||
See [widget-schema.md](widget-schema.md) for the full `widgetStates` structure.
|
||||
|
||||
---
|
||||
|
||||
## Pattern: Widget Lifecycle Hooks
|
||||
|
||||
Single-instance widgets (Calculator, Timer) need to react when they're closed, minimized, or reopened. They do this by wrapping `WidgetManager` methods in their `init()`.
|
||||
|
||||
```javascript
|
||||
async init() {
|
||||
const prevClose = WidgetManager.close;
|
||||
const self = this;
|
||||
|
||||
WidgetManager.close = function(id) {
|
||||
prevClose.call(WidgetManager, id);
|
||||
if (id === self.WIDGET_ID) {
|
||||
self.onClose();
|
||||
}
|
||||
};
|
||||
|
||||
const prevMinimize = WidgetManager.minimize;
|
||||
WidgetManager.minimize = async function(id) {
|
||||
await prevMinimize.call(WidgetManager, id);
|
||||
if (id === self.WIDGET_ID) {
|
||||
self._isOpen = false;
|
||||
await self.save();
|
||||
}
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
Multiple widgets chain these wraps — Calculator wraps first, Timer wraps Calculator's already-wrapped version, and so on. Always call the previous method (`prevClose.call(...)`) or the chain breaks and other widgets stop responding.
|
||||
|
||||
---
|
||||
|
||||
## Pattern: Debounced Save
|
||||
|
||||
For frequent updates like typing in notes or dragging widgets, debouncing avoids hammering storage with a write on every keystroke.
|
||||
|
||||
```javascript
|
||||
_saveTimer: null,
|
||||
|
||||
_debouncedSave() {
|
||||
clearTimeout(this._saveTimer);
|
||||
this._saveTimer = setTimeout(() => this.save(), 500);
|
||||
}
|
||||
|
||||
// Use _debouncedSave() instead of save() for frequent events
|
||||
textarea.addEventListener('input', () => {
|
||||
noteData.content = textarea.value;
|
||||
this._debouncedSave();
|
||||
});
|
||||
```
|
||||
|
||||
Used in `notes.js` (text editing) and `image-ref.js` (label editing).
|
||||
|
||||
---
|
||||
|
||||
## Pattern: Theme System
|
||||
|
||||
All themes use CSS Custom Properties in `[data-theme="name"]` blocks in `main.css`. There are currently 11 themes.
|
||||
|
||||
```css
|
||||
[data-theme="nebula"] {
|
||||
--bg-primary: #0a0e17;
|
||||
--bg-board: rgba(15, 20, 35, 0.65);
|
||||
--text-primary: #e0e6f0;
|
||||
--accent: #7db3ff;
|
||||
--border: rgba(125, 179, 255, 0.12);
|
||||
/* ... more variables */
|
||||
}
|
||||
```
|
||||
|
||||
Never hardcode colors in JS. Let CSS handle it.
|
||||
|
||||
```javascript
|
||||
// GOOD
|
||||
element.classList.add('active');
|
||||
|
||||
// BAD — breaks every theme that isn't Nebula
|
||||
element.style.color = '#7db3ff';
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Pattern: Onboarding Slides
|
||||
|
||||
The onboarding system in `onboarding.js` is data-driven. Each slide is a plain object — add a new slide by adding an object to the `slides` array, the `_render()` method handles the rest.
|
||||
|
||||
```javascript
|
||||
{
|
||||
hero: '🎮', // Large emoji/icon
|
||||
title: 'Slide Title',
|
||||
text: 'Optional description',
|
||||
features: ['Item 1', ...], // Optional bullet list
|
||||
showThemes: true, // Optional theme grid
|
||||
interactive: 'gaming-board' // Optional custom buttons
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Pattern: Dialog System
|
||||
|
||||
Custom dialogs replace native `alert()` and `confirm()` everywhere in the project.
|
||||
|
||||
```javascript
|
||||
// Informational
|
||||
await HellionDialog.alert('Message text', {
|
||||
type: 'info', // 'info', 'success', 'warning', 'danger'
|
||||
title: 'Title'
|
||||
});
|
||||
|
||||
// Yes/no
|
||||
const ok = await HellionDialog.confirm('Are you sure?', {
|
||||
type: 'danger',
|
||||
title: 'Delete',
|
||||
confirmText: 'Delete',
|
||||
cancelText: 'Cancel'
|
||||
});
|
||||
if (ok) { /* user confirmed */ }
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Pattern: Pointer Events for Drag
|
||||
|
||||
Widget dragging and board reordering use the Pointer Events API instead of mouse events. The reason: Pointer Events work with both mouse and touch, and `setPointerCapture` keeps the events flowing even if the cursor leaves the element mid-drag.
|
||||
|
||||
```javascript
|
||||
element.addEventListener('pointerdown', (e) => {
|
||||
element.setPointerCapture(e.pointerId);
|
||||
|
||||
function onMove(ev) {
|
||||
// Update position
|
||||
}
|
||||
|
||||
function onUp() {
|
||||
element.releasePointerCapture(e.pointerId);
|
||||
element.removeEventListener('pointermove', onMove);
|
||||
element.removeEventListener('pointerup', onUp);
|
||||
}
|
||||
|
||||
element.addEventListener('pointermove', onMove);
|
||||
element.addEventListener('pointerup', onUp);
|
||||
});
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Pattern: Canvas API Image Processing
|
||||
|
||||
The image reference widget converts uploaded images to WebP locally in the browser — no external service, no upload, nothing leaves the device.
|
||||
|
||||
```javascript
|
||||
_processFile(file) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const objectUrl = URL.createObjectURL(file);
|
||||
const img = new Image();
|
||||
|
||||
img.onload = () => {
|
||||
const canvas = document.createElement('canvas');
|
||||
canvas.width = img.width;
|
||||
canvas.height = img.height;
|
||||
const ctx = canvas.getContext('2d');
|
||||
ctx.drawImage(img, 0, 0);
|
||||
const webpUrl = canvas.toDataURL('image/webp', 0.85);
|
||||
URL.revokeObjectURL(objectUrl); // Always free the object URL
|
||||
resolve(webpUrl);
|
||||
};
|
||||
|
||||
img.onerror = () => {
|
||||
URL.revokeObjectURL(objectUrl);
|
||||
reject(new Error('Image could not be loaded'));
|
||||
};
|
||||
|
||||
img.src = objectUrl;
|
||||
});
|
||||
}
|
||||
```
|
||||
|
||||
Always call `URL.revokeObjectURL()` after the image has loaded — skipping it leaks memory.
|
||||
|
||||
---
|
||||
|
||||
## Coding Rules Summary
|
||||
|
||||
| Rule | Rationale |
|
||||
|---|---|
|
||||
| `createElement` only, never `innerHTML` | XSS prevention |
|
||||
| All storage through `Store` | Browser compatibility + unified error handling |
|
||||
| CSS variables, no hardcoded colors | Theme support across all 11 themes |
|
||||
| Event delegation | Performance, works with dynamic content |
|
||||
| `const`/`let`, never `var` | Block scoping |
|
||||
| No external dependencies | Extension simplicity |
|
||||
| No build step | Direct development, no toolchain to break |
|
||||
| JSDoc comments on public functions | Documentation for contributors |
|
||||
| URL validation before `href` | Security |
|
||||
| Error handling on storage operations | Graceful failure |
|
||||
| `URL.revokeObjectURL()` after Canvas ops | Memory management |
|
||||
|
||||
---
|
||||
|
||||
## Manifest Synchronization
|
||||
|
||||
Three manifest files must always stay in sync:
|
||||
|
||||
- `manifest.json` — Chrome, Edge, Brave, Vivaldi
|
||||
- `manifest.firefox.json` — Firefox
|
||||
- `manifest.opera.json` — Opera, Opera GX
|
||||
|
||||
Version numbers, permissions and content script entries need to be updated in all three. The CI quality check will catch drift, but it's cleaner not to let it get there in the first place.
|
||||
@@ -1,327 +0,0 @@
|
||||
# Hellion Dashboard — Widget Schema
|
||||
|
||||
> This document is intentionally written in English. Full German/English i18n support
|
||||
> is planned for v2.0 — until then, English keeps the docs accessible to anyone
|
||||
> who wants to contribute or fork the project.
|
||||
|
||||
---
|
||||
|
||||
## Overview
|
||||
|
||||
The widget system provides draggable, resizable floating panels managed by `WidgetManager` (`src/js/widgets.js`). Each widget type has its own module that handles content rendering and state management — `WidgetManager` only knows about DOM and position, never about content.
|
||||
|
||||
---
|
||||
|
||||
## Widget Types
|
||||
|
||||
| Type | Module | Instance | Max | Storage |
|
||||
|---|---|---|---|---|
|
||||
| `note` | `notes.js` | Multi | 5 | Persistent (`widgetStates.notes`) |
|
||||
| `calculator` | `calculator.js` | Single | 1 | Persistent (`widgetStates.calculator`) |
|
||||
| `timer` | `timer.js` | Single | 1 | Persistent (`widgetStates.timer`) |
|
||||
| `image` | `image-ref.js` | Multi | 3 | Meta: persistent, Image data: sessionStorage |
|
||||
|
||||
---
|
||||
|
||||
## WidgetManager API
|
||||
|
||||
### `create(type, config) → string`
|
||||
|
||||
Creates a widget and appends it to the DOM. Returns the widget ID.
|
||||
|
||||
```javascript
|
||||
const id = WidgetManager.create('note', {
|
||||
id: 'note_abc123', // Optional, auto-generated if omitted
|
||||
title: 'My Note', // Default: 'Note'
|
||||
x: 120, // Left position in px
|
||||
y: 80, // Top position in px
|
||||
width: 280, // Width in px (min: 200)
|
||||
height: 220, // Height in px (min: 150)
|
||||
open: true // Visible state (default: true)
|
||||
});
|
||||
```
|
||||
|
||||
### `getBody(id) → HTMLElement | null`
|
||||
|
||||
Returns the `.widget-body` element. This is where your module renders its content.
|
||||
|
||||
```javascript
|
||||
const body = WidgetManager.getBody('widget_calculator');
|
||||
if (body) Calculator.renderBody(body);
|
||||
```
|
||||
|
||||
### `getState(id) → Object | null`
|
||||
|
||||
Returns the current widget state — position, size, open status.
|
||||
|
||||
```javascript
|
||||
const state = WidgetManager.getState('widget_timer');
|
||||
// → { id, type, title, x, y, width, height, open }
|
||||
```
|
||||
|
||||
### `close(id)`
|
||||
|
||||
Permanently removes a widget from the DOM and registry. No undo.
|
||||
|
||||
### `minimize(id)`
|
||||
|
||||
Hides a widget with animation. The widget stays in the registry with `open: false` so it can be restored.
|
||||
|
||||
### `openWidget(id)`
|
||||
|
||||
Restores a minimized widget with animation.
|
||||
|
||||
### `bringToFront(id)`
|
||||
|
||||
Increments z-index so the widget sits above everything else. Called automatically on `pointerdown`.
|
||||
|
||||
### `save() → Array`
|
||||
|
||||
Returns an array of all `type: 'note'` widget states. Used by `Notes.save()` to merge position/size data with note content.
|
||||
|
||||
### `restore(renderCallback)`
|
||||
|
||||
Loads widget states from storage and recreates all note widgets. Single-instance widgets (Calculator, Timer) restore themselves in their own `init()` — `restore()` only handles notes.
|
||||
|
||||
---
|
||||
|
||||
## Shared Storage Key: `widgetStates`
|
||||
|
||||
All widget modules share a single storage key. Every module's `save()` must read first and preserve whatever it doesn't own — otherwise modules silently wipe each other's data on every save.
|
||||
|
||||
```javascript
|
||||
// Full widgetStates structure
|
||||
{
|
||||
notes: [
|
||||
{
|
||||
id: 'note_abc123',
|
||||
title: 'My Note',
|
||||
content: 'Hello world',
|
||||
template: 'text', // 'text' or 'checklist'
|
||||
x: 120, y: 80,
|
||||
width: 280, height: 220,
|
||||
open: true,
|
||||
checklistItems: [], // Only used by checklist template
|
||||
checkedItems: [] // Checked item IDs
|
||||
}
|
||||
],
|
||||
calculator: {
|
||||
x: 400, y: 120,
|
||||
width: 280, height: 400,
|
||||
open: false,
|
||||
history: [
|
||||
{ expr: '2 + 3', result: '5' }
|
||||
]
|
||||
},
|
||||
timer: {
|
||||
x: 600, y: 80,
|
||||
width: 260, height: 360,
|
||||
open: false,
|
||||
muted: false,
|
||||
presets: [
|
||||
{ name: 'Forschung', seconds: 2700 }
|
||||
]
|
||||
},
|
||||
imageRef: {
|
||||
images: [
|
||||
{
|
||||
id: 'image_0',
|
||||
label: 'Bauplan',
|
||||
x: 200, y: 120,
|
||||
width: 320, height: 280,
|
||||
open: true
|
||||
// Image data is NOT stored here — sessionStorage only
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### The Save Pattern
|
||||
|
||||
Every module that touches `widgetStates` must follow this pattern:
|
||||
|
||||
```javascript
|
||||
// From notes.js — same pattern applies to every widget module
|
||||
async save() {
|
||||
const existing = await Store.get(this.STORAGE_KEY);
|
||||
const saveData = { notes: mergedNotes };
|
||||
|
||||
// Preserve everything we don't own
|
||||
if (existing && existing.calculator) saveData.calculator = existing.calculator;
|
||||
if (existing && existing.timer) saveData.timer = existing.timer;
|
||||
if (existing && existing.imageRef) saveData.imageRef = existing.imageRef;
|
||||
|
||||
await Store.set(this.STORAGE_KEY, saveData);
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Creating a New Widget Type
|
||||
|
||||
### Step 1: Single or Multi-Instance?
|
||||
|
||||
**Single-instance** (Calculator, Timer style): one widget, fixed ID, `toggle()` opens and closes it.
|
||||
**Multi-instance** (Notes, ImageRef style): multiple widgets, dynamic IDs, `create()` adds new ones.
|
||||
|
||||
### Step 2: Create the Module
|
||||
|
||||
Here's a minimal single-instance widget template. Follow the same structure — the lifecycle hooks especially are easy to get wrong.
|
||||
|
||||
```javascript
|
||||
const YourWidget = {
|
||||
WIDGET_ID: 'widget_yourwidget',
|
||||
STORAGE_KEY: 'widgetStates',
|
||||
_isOpen: false,
|
||||
|
||||
async load() {
|
||||
const data = await Store.get(this.STORAGE_KEY);
|
||||
if (data && data.yourWidget) {
|
||||
// Restore your state
|
||||
}
|
||||
},
|
||||
|
||||
async save() {
|
||||
const data = await Store.get(this.STORAGE_KEY) || {};
|
||||
if (data.notes === undefined) data.notes = [];
|
||||
|
||||
const widgetState = WidgetManager.getState(this.WIDGET_ID);
|
||||
data.yourWidget = {
|
||||
x: widgetState ? widgetState.x : 400,
|
||||
y: widgetState ? widgetState.y : 120,
|
||||
width: widgetState ? widgetState.width : 280,
|
||||
height: widgetState ? widgetState.height : 300,
|
||||
open: this._isOpen,
|
||||
// ... your custom data
|
||||
};
|
||||
|
||||
await Store.set(this.STORAGE_KEY, data);
|
||||
},
|
||||
|
||||
async open() {
|
||||
if (this._isOpen) {
|
||||
WidgetManager.bringToFront(this.WIDGET_ID);
|
||||
return;
|
||||
}
|
||||
|
||||
const data = await Store.get(this.STORAGE_KEY);
|
||||
const saved = (data && data.yourWidget) ? data.yourWidget : {};
|
||||
|
||||
WidgetManager.create('yourwidget', {
|
||||
id: this.WIDGET_ID,
|
||||
title: 'Your Widget',
|
||||
x: saved.x || 400,
|
||||
y: saved.y || 120,
|
||||
width: saved.width || 280,
|
||||
height: saved.height || 300,
|
||||
open: true
|
||||
});
|
||||
|
||||
const body = WidgetManager.getBody(this.WIDGET_ID);
|
||||
if (body) this.renderBody(body);
|
||||
|
||||
this._isOpen = true;
|
||||
await this.save();
|
||||
},
|
||||
|
||||
async toggle() {
|
||||
if (this._isOpen) {
|
||||
const entry = WidgetManager._widgets.get(this.WIDGET_ID);
|
||||
if (entry && entry.state.open) {
|
||||
await WidgetManager.minimize(this.WIDGET_ID);
|
||||
this._isOpen = false;
|
||||
await this.save();
|
||||
} else if (entry) {
|
||||
await WidgetManager.openWidget(this.WIDGET_ID);
|
||||
this._isOpen = true;
|
||||
await this.save();
|
||||
}
|
||||
} else {
|
||||
await this.open();
|
||||
}
|
||||
},
|
||||
|
||||
renderBody(bodyEl) {
|
||||
bodyEl.textContent = '';
|
||||
// Build your UI with createElement — never innerHTML!
|
||||
},
|
||||
|
||||
async init() {
|
||||
await this.load();
|
||||
|
||||
const data = await Store.get(this.STORAGE_KEY);
|
||||
if (data && data.yourWidget && data.yourWidget.open) {
|
||||
await this.open();
|
||||
}
|
||||
|
||||
// Lifecycle hooks — always call the previous method first
|
||||
// or you'll break every widget that wrapped before yours
|
||||
const self = this;
|
||||
|
||||
const prevClose = WidgetManager.close;
|
||||
WidgetManager.close = function(id) {
|
||||
prevClose.call(WidgetManager, id);
|
||||
if (id === self.WIDGET_ID) {
|
||||
self._isOpen = false;
|
||||
self.save();
|
||||
}
|
||||
};
|
||||
|
||||
const prevMinimize = WidgetManager.minimize;
|
||||
WidgetManager.minimize = async function(id) {
|
||||
await prevMinimize.call(WidgetManager, id);
|
||||
if (id === self.WIDGET_ID) {
|
||||
self._isOpen = false;
|
||||
await self.save();
|
||||
}
|
||||
};
|
||||
|
||||
const prevOpen = WidgetManager.openWidget;
|
||||
WidgetManager.openWidget = async function(id) {
|
||||
await prevOpen.call(WidgetManager, id);
|
||||
if (id === self.WIDGET_ID) {
|
||||
self._isOpen = true;
|
||||
const body = WidgetManager.getBody(self.WIDGET_ID);
|
||||
if (body && body.children.length === 0) {
|
||||
self.renderBody(body);
|
||||
}
|
||||
await self.save();
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
```
|
||||
|
||||
### Step 3: Integration Checklist
|
||||
|
||||
1. `newtab.html` — Add `<script>` tag after `widgets.js` and before `data.js`
|
||||
2. `newtab.html` — Add toolbar button: `<button class="widget-toolbar-btn" data-action="your-action">`
|
||||
3. `notes.js` — Add handler in `initToolbar()`: `else if (action === 'your-action') { YourWidget.toggle(); }`
|
||||
4. `notes.js` — Preserve your key in `save()`: `if (existing && existing.yourWidget) saveData.yourWidget = existing.yourWidget;`
|
||||
5. `app.js` — Add `await YourWidget.init();` to the init sequence
|
||||
6. `main.css` — Add widget-specific styles
|
||||
7. `data.js` — Add export/import logic if your data should survive a JSON backup
|
||||
|
||||
---
|
||||
|
||||
## Widget DOM Structure
|
||||
|
||||
Every widget created by `WidgetManager.create()` has this structure. Your module renders into `.widget-body` via `renderBody()` — never touch the header or resize handle.
|
||||
|
||||
```html
|
||||
<div class="widget" data-widget-id="widget_abc123"
|
||||
style="left: 120px; top: 80px; width: 280px; height: 220px;">
|
||||
<div class="widget-header"> <!-- Drag handle -->
|
||||
<span class="widget-title">Title</span> <!-- Double-click to edit, max 20 chars -->
|
||||
<div class="widget-actions">
|
||||
<button class="widget-btn widget-minimize">─</button>
|
||||
<button class="widget-btn widget-close">✕</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-body">
|
||||
<!-- Your content goes here via renderBody() -->
|
||||
</div>
|
||||
<div class="widget-resize-handle"></div> <!-- Bottom-right, visible on hover -->
|
||||
</div>
|
||||
```
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 3,
|
||||
"name": "Hellion NewTab",
|
||||
"version": "1.11.1",
|
||||
"version": "1.5.2",
|
||||
"description": "Personal bookmark dashboard — local, private, no account needed. By Hellion Online Media.",
|
||||
"author": "Hellion Online Media - Florian Wathling",
|
||||
"homepage_url": "https://hellion-media.de",
|
||||
@@ -18,7 +18,6 @@
|
||||
"browser_specific_settings": {
|
||||
"gecko": {
|
||||
"id": "hellion-newtab@hellion-media.de",
|
||||
"update_url": "https://hellion-media.de/extensions/firefox/updates.json",
|
||||
"strict_min_version": "142.0",
|
||||
"data_collection_permissions": {
|
||||
"required": [
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 3,
|
||||
"name": "Hellion NewTab",
|
||||
"version": "1.11.1",
|
||||
"version": "1.5.2",
|
||||
"description": "Personal bookmark dashboard — local, private, no account needed. By Hellion Online Media.",
|
||||
"author": "Hellion Online Media - Florian Wathling",
|
||||
"homepage_url": "https://hellion-media.de",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 3,
|
||||
"name": "Hellion Dashboard (GX Native)",
|
||||
"version": "1.11.1",
|
||||
"version": "1.5.2",
|
||||
"description": "Ersetzt die Opera GX Startseite durch dein persönliches, leistungsoptimiertes Hellion Dashboard. Schnell, sauber und werbefrei.",
|
||||
"author": "Hellion Online Media - Florian Wathling",
|
||||
"homepage_url": "https://hellion-media.de",
|
||||
|
||||
@@ -35,9 +35,9 @@
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 20h9"/><path d="M16.5 3.5a2.121 2.121 0 013 3L7 19l-4 1 1-4L16.5 3.5z"/></svg>
|
||||
Note
|
||||
</button>
|
||||
<button class="btn-icon" id="btnTheme" title="Darstellung & Theme">
|
||||
<button class="btn-icon" id="btnTheme" title="Theme wählen">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2a10 10 0 100 20 4 4 0 01-1-7.9 1 1 0 011-.1h1a2 2 0 002-2V7a5 5 0 00-3-4.5"/><circle cx="7" cy="10" r="1.5"/><circle cx="13" cy="6" r="1.5"/><circle cx="17" cy="10" r="1.5"/><circle cx="9" cy="17" r="1.5"/></svg>
|
||||
Darstellung
|
||||
Theme
|
||||
</button>
|
||||
<button class="btn-icon" id="btnSettings" title="Einstellungen">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 00.33 1.82l.06.06a2 2 0 010 2.83 2 2 0 01-2.83 0l-.06-.06a1.65 1.65 0 00-1.82-.33 1.65 1.65 0 00-1 1.51V21a2 2 0 01-4 0v-.09A1.65 1.65 0 009 19.4a1.65 1.65 0 00-1.82.33l-.06.06a2 2 0 01-2.83-2.83l.06-.06A1.65 1.65 0 004.68 15a1.65 1.65 0 00-1.51-1H3a2 2 0 010-4h.09A1.65 1.65 0 004.6 9a1.65 1.65 0 00-.33-1.82l-.06-.06a2 2 0 012.83-2.83l.06.06A1.65 1.65 0 009 4.68a1.65 1.65 0 001-1.51V3a2 2 0 014 0v.09a1.65 1.65 0 001 1.51 1.65 1.65 0 001.82-.33l.06-.06a2 2 0 012.83 2.83l-.06.06A1.65 1.65 0 0019.4 9a1.65 1.65 0 001.51 1H21a2 2 0 010 4h-.09a1.65 1.65 0 00-1.51 1z"/></svg>
|
||||
@@ -105,11 +105,84 @@
|
||||
<div class="panel-overlay" id="settingsOverlay"></div>
|
||||
<aside class="settings-panel" id="settingsPanel">
|
||||
<div class="panel-header">
|
||||
<span>Einstellungen</span>
|
||||
<span>Settings</span>
|
||||
<button class="btn-close" id="btnCloseSettings">✕</button>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
|
||||
<!-- APPEARANCE -->
|
||||
<section class="settings-section" data-section="appearance">
|
||||
<button class="settings-section-title" type="button">
|
||||
<span class="section-chevron">▸</span>
|
||||
APPEARANCE
|
||||
</button>
|
||||
<div class="section-content">
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Compact mode</span>
|
||||
<span class="setting-desc">Reduce spacing to show more bookmarks</span>
|
||||
</div>
|
||||
<label class="toggle"><input type="checkbox" id="settingCompact" /><span class="slider"></span></label>
|
||||
</div>
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Shorten long titles</span>
|
||||
<span class="setting-desc">Shorten title to one line with "…"</span>
|
||||
</div>
|
||||
<label class="toggle"><input type="checkbox" id="settingShorten" /><span class="slider"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- BEHAVIOR -->
|
||||
<section class="settings-section" data-section="behavior">
|
||||
<button class="settings-section-title" type="button">
|
||||
<span class="section-chevron">▸</span>
|
||||
BEHAVIOR
|
||||
</button>
|
||||
<div class="section-content">
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Open links in new tab</span>
|
||||
<span class="setting-desc">Open bookmarks in a new browser tab</span>
|
||||
</div>
|
||||
<label class="toggle"><input type="checkbox" id="settingNewTab" checked /><span class="slider"></span></label>
|
||||
</div>
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Show bookmark descriptions</span>
|
||||
<span class="setting-desc">Display saved descriptions below bookmark titles</span>
|
||||
</div>
|
||||
<label class="toggle"><input type="checkbox" id="settingShowDesc" /><span class="slider"></span></label>
|
||||
</div>
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Hide extra bookmarks in long boards</span>
|
||||
<span class="setting-desc">Automatically hides extra bookmarks in long boards</span>
|
||||
</div>
|
||||
<label class="toggle"><input type="checkbox" id="settingHideExtra" /><span class="slider"></span></label>
|
||||
</div>
|
||||
<div class="setting-row" id="visibleCountRow">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Visible bookmarks before hide</span>
|
||||
<span class="setting-desc">Choose how many bookmarks are shown</span>
|
||||
</div>
|
||||
<select class="select-input" id="settingVisibleCount">
|
||||
<option value="5">5</option>
|
||||
<option value="10" selected>10</option>
|
||||
<option value="20">20</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Suchleiste anzeigen</span>
|
||||
<span class="setting-desc">Suchleiste unter dem Header ein/aus</span>
|
||||
</div>
|
||||
<label class="toggle"><input type="checkbox" id="settingShowSearch" checked /><span class="slider"></span></label>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- WIDGETS -->
|
||||
<section class="settings-section" data-section="widgets">
|
||||
<button class="settings-section-title" type="button">
|
||||
@@ -120,7 +193,7 @@
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Toolbar-Position</span>
|
||||
<span class="setting-desc">Widget-Toolbar links oder rechts anzeigen</span>
|
||||
<span class="setting-desc">Widget-Toolbar links oder rechts</span>
|
||||
</div>
|
||||
<select class="select-input" id="settingToolbarPos">
|
||||
<option value="right" selected>Rechts</option>
|
||||
@@ -140,35 +213,38 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- DATEN & HILFE -->
|
||||
<!-- DATA -->
|
||||
<section class="settings-section" data-section="data">
|
||||
<button class="settings-section-title" type="button">
|
||||
<span class="section-chevron">▸</span>
|
||||
DATEN & HILFE
|
||||
DATA
|
||||
</button>
|
||||
<div class="section-content">
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Backup exportieren</span>
|
||||
<span class="setting-desc">Alle Boards, Notes und Einstellungen als JSON sichern</span>
|
||||
<span class="setting-label">Export Boards</span>
|
||||
<span class="setting-desc">Alle Boards als JSON sichern</span>
|
||||
</div>
|
||||
<button class="btn-small" id="btnExportJSON">Export</button>
|
||||
</div>
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Backup importieren</span>
|
||||
<span class="setting-label">Import Boards</span>
|
||||
<span class="setting-desc">JSON-Backup wiederherstellen</span>
|
||||
</div>
|
||||
<button class="btn-small" id="btnImportJSON">Import</button>
|
||||
<input type="file" id="jsonImportInput" accept=".json" class="hidden" />
|
||||
</div>
|
||||
<div class="setting-row" id="browserImportRow">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Browser-Lesezeichen</span>
|
||||
<span class="setting-desc">Lesezeichen direkt aus dem Browser importieren</span>
|
||||
</div>
|
||||
<button class="btn-small" id="btnBrowserImport">Import</button>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- HELP -->
|
||||
<section class="settings-section" data-section="help">
|
||||
<button class="settings-section-title" type="button">
|
||||
<span class="section-chevron">▸</span>
|
||||
HELP
|
||||
</button>
|
||||
<div class="section-content">
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Onboarding wiederholen</span>
|
||||
@@ -179,30 +255,16 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- DANGER ZONE -->
|
||||
<section class="settings-section" data-section="danger">
|
||||
<button class="settings-section-title danger" type="button">
|
||||
<!-- ABOUT / IMPRESSUM -->
|
||||
<section class="settings-section" data-section="about">
|
||||
<button class="settings-section-title" type="button">
|
||||
<span class="section-chevron">▸</span>
|
||||
DANGER ZONE
|
||||
ABOUT
|
||||
</button>
|
||||
<div class="section-content">
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Alles zurücksetzen</span>
|
||||
<span class="setting-desc">Löscht alle Boards, Notes und Einstellungen</span>
|
||||
</div>
|
||||
<button class="btn-danger" id="btnResetAll">Reset</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- ABOUT — fixiert am unteren Rand -->
|
||||
<div class="panel-footer">
|
||||
<div class="about-block">
|
||||
<div class="about-logo">⬡ HELLION NEWTAB</div>
|
||||
<div class="about-version">Version 1.11.1 · by Hellion Online Media</div>
|
||||
<div class="about-version">Version 1.5.2 · by Hellion Online Media</div>
|
||||
|
||||
<div class="about-links">
|
||||
<a href="https://hellion-media.de/impressum" target="_blank" class="about-link">
|
||||
@@ -266,28 +328,48 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- DANGER ZONE -->
|
||||
<section class="settings-section" data-section="danger">
|
||||
<button class="settings-section-title danger" type="button">
|
||||
<span class="section-chevron">▸</span>
|
||||
DANGER ZONE
|
||||
</button>
|
||||
<div class="section-content">
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Reset all data</span>
|
||||
<span class="setting-desc">Deletes all boards and bookmarks</span>
|
||||
</div>
|
||||
<button class="btn-danger" id="btnResetAll">Reset</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<!-- THEME PICKER MODAL -->
|
||||
<div class="modal-overlay" id="themeOverlay">
|
||||
<div class="theme-modal" id="themeModal">
|
||||
<div class="modal-header">
|
||||
<span>Darstellung</span>
|
||||
<span>Theme wählen</span>
|
||||
<button class="btn-close" id="btnCloseTheme">✕</button>
|
||||
</div>
|
||||
<div class="theme-grid">
|
||||
<div class="theme-card active" data-value="nebula">
|
||||
<img class="theme-card-img" src="assets/themes/bg-nebula.webp" alt="Nebula" />
|
||||
<img class="theme-card-img" src="assets/themes/bg-nebula.jpg" alt="Nebula" />
|
||||
<span class="theme-card-label">Nebula</span>
|
||||
<span class="theme-card-check">✓</span>
|
||||
</div>
|
||||
<div class="theme-card" data-value="crescent">
|
||||
<img class="theme-card-img" src="assets/themes/bg-crescent.webp" alt="Crescent" />
|
||||
<img class="theme-card-img" src="assets/themes/bg-crescent.jpg" alt="Crescent" />
|
||||
<span class="theme-card-label">Crescent</span>
|
||||
<span class="theme-card-check">✓</span>
|
||||
</div>
|
||||
<div class="theme-card" data-value="event-horizon">
|
||||
<img class="theme-card-img" src="assets/themes/bg-event-horizon.webp" alt="Event Horizon" />
|
||||
<img class="theme-card-img" src="assets/themes/bg-event-horizon.jpg" alt="Event Horizon" />
|
||||
<span class="theme-card-label">Event Horizon</span>
|
||||
<span class="theme-card-check">✓</span>
|
||||
</div>
|
||||
@@ -297,119 +379,48 @@
|
||||
<span class="theme-card-check">✓</span>
|
||||
</div>
|
||||
<div class="theme-card" data-value="julia-jin">
|
||||
<img class="theme-card-img" src="assets/themes/bg-julia-jin.webp" alt="Julia & Jin" />
|
||||
<img class="theme-card-img" src="assets/themes/bg-julia-jin.png" alt="Julia & Jin" />
|
||||
<span class="theme-card-label">Julia & Jin</span>
|
||||
<span class="theme-card-check">✓</span>
|
||||
</div>
|
||||
<div class="theme-card" data-value="sc-sunset">
|
||||
<img class="theme-card-img" src="assets/themes/bg-sc-sunset.webp" alt="SC Sunset" />
|
||||
<img class="theme-card-img" src="assets/themes/bg-sc-sunset.jpg" alt="SC Sunset" />
|
||||
<span class="theme-card-label">SC Sunset</span>
|
||||
<span class="theme-card-check">✓</span>
|
||||
</div>
|
||||
<div class="theme-card" data-value="hellion-hud">
|
||||
<img class="theme-card-img" src="assets/themes/bg-hellion-hud.webp" alt="Hellion HUD" />
|
||||
<img class="theme-card-img" src="assets/themes/bg-hellion-hud.png" alt="Hellion HUD" />
|
||||
<span class="theme-card-label">HUD</span>
|
||||
<span class="theme-card-check">✓</span>
|
||||
</div>
|
||||
<div class="theme-card" data-value="hellion-energy">
|
||||
<img class="theme-card-img" src="assets/themes/bg-hellion-energy.webp" alt="Hellion Energy" />
|
||||
<img class="theme-card-img" src="assets/themes/bg-hellion-energy.jpg" alt="Hellion Energy" />
|
||||
<span class="theme-card-label">Energy</span>
|
||||
<span class="theme-card-check">✓</span>
|
||||
</div>
|
||||
<div class="theme-card" data-value="satisfactory">
|
||||
<img class="theme-card-img" src="assets/themes/bg-satisfactory.webp" alt="Satisfactory" />
|
||||
<span class="theme-card-label">Satisfactory</span>
|
||||
<span class="theme-card-check">✓</span>
|
||||
</div>
|
||||
<div class="theme-card" data-value="avorion">
|
||||
<img class="theme-card-img" src="assets/themes/bg-avorion.webp" alt="Avorion" />
|
||||
<span class="theme-card-label">Avorion</span>
|
||||
<span class="theme-card-check">✓</span>
|
||||
</div>
|
||||
<div class="theme-card" data-value="hellion-stealth">
|
||||
<img class="theme-card-img" src="assets/themes/bg-scPolaris.webp" alt="Hellion Stealth" />
|
||||
<span class="theme-card-label">Stealth</span>
|
||||
<span class="theme-card-check">✓</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="theme-modal-section">
|
||||
<h3 class="settings-section-title">HINTERGRUND</h3>
|
||||
<h3 class="settings-section-title">BACKGROUND</h3>
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Bild-URL</span>
|
||||
<span class="setting-desc">Eigenes Hintergrundbild per URL</span>
|
||||
<span class="setting-label">Background image URL</span>
|
||||
<span class="setting-desc">Custom wallpaper URL</span>
|
||||
</div>
|
||||
<button class="btn-small" id="btnChangeBg">Ändern</button>
|
||||
<button class="btn-small" id="btnChangeBg">Change</button>
|
||||
</div>
|
||||
<div class="setting-row hidden" id="bgInputRow">
|
||||
<input type="text" class="text-input full-width" id="bgUrlInput" placeholder="https://... oder leer für Standard" />
|
||||
<button class="btn-small" id="btnApplyBg">Übernehmen</button>
|
||||
<input type="text" class="text-input full-width" id="bgUrlInput" placeholder="https://... or leave empty for default" />
|
||||
<button class="btn-small" id="btnApplyBg">Apply</button>
|
||||
</div>
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Datei hochladen</span>
|
||||
<span class="setting-desc">Lokales Bild als Hintergrund verwenden</span>
|
||||
<span class="setting-label">Background file upload</span>
|
||||
<span class="setting-desc">Use a local image as background</span>
|
||||
</div>
|
||||
<button class="btn-small" id="btnBgFile">Upload</button>
|
||||
<input type="file" id="bgFileInput" accept="image/*" class="hidden" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="theme-modal-section">
|
||||
<h3 class="settings-section-title">DARSTELLUNG</h3>
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Kompaktmodus</span>
|
||||
<span class="setting-desc">Weniger Abstand für mehr Bookmarks</span>
|
||||
</div>
|
||||
<label class="toggle"><input type="checkbox" id="settingCompact" /><span class="slider"></span></label>
|
||||
</div>
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Lange Titel kürzen</span>
|
||||
<span class="setting-desc">Titel auf eine Zeile mit „…" kürzen</span>
|
||||
</div>
|
||||
<label class="toggle"><input type="checkbox" id="settingShorten" /><span class="slider"></span></label>
|
||||
</div>
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Suchleiste anzeigen</span>
|
||||
<span class="setting-desc">Suchleiste unter dem Header ein/aus</span>
|
||||
</div>
|
||||
<label class="toggle"><input type="checkbox" id="settingShowSearch" checked /><span class="slider"></span></label>
|
||||
</div>
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Links in neuem Tab</span>
|
||||
<span class="setting-desc">Bookmarks in neuem Browser-Tab öffnen</span>
|
||||
</div>
|
||||
<label class="toggle"><input type="checkbox" id="settingNewTab" checked /><span class="slider"></span></label>
|
||||
</div>
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Beschreibungen anzeigen</span>
|
||||
<span class="setting-desc">Gespeicherte Beschreibung unter Bookmarks</span>
|
||||
</div>
|
||||
<label class="toggle"><input type="checkbox" id="settingShowDesc" /><span class="slider"></span></label>
|
||||
</div>
|
||||
<div class="setting-row">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Bookmarks ausblenden</span>
|
||||
<span class="setting-desc">Überzählige Bookmarks in langen Boards verstecken</span>
|
||||
</div>
|
||||
<label class="toggle"><input type="checkbox" id="settingHideExtra" /><span class="slider"></span></label>
|
||||
</div>
|
||||
<div class="setting-row" id="visibleCountRow">
|
||||
<div class="setting-info">
|
||||
<span class="setting-label">Sichtbare Bookmarks</span>
|
||||
<span class="setting-desc">Anzahl vor dem Ausblenden</span>
|
||||
</div>
|
||||
<select class="select-input" id="settingVisibleCount">
|
||||
<option value="5">5</option>
|
||||
<option value="10" selected>10</option>
|
||||
<option value="20">20</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -486,7 +497,6 @@
|
||||
<script src="src/js/calculator.js"></script>
|
||||
<script src="src/js/timer.js"></script>
|
||||
<script src="src/js/image-ref.js"></script>
|
||||
<script src="src/js/bookmark-import.js"></script>
|
||||
<script src="src/js/data.js"></script>
|
||||
<!-- Onboarding -->
|
||||
<script src="src/js/onboarding.js"></script>
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
# ⬡ Hellion Dashboard — Design & Theme-System
|
||||
|
||||
Leitfaden für das visuelle Design des Hellion Dashboards. Definiert wie Themes aufgebaut
|
||||
sind und welche Patterns konsistent eingehalten werden — für eine immersive, fokussierte
|
||||
Nutzererfahrung.
|
||||
|
||||
---
|
||||
|
||||
## Design-Säulen
|
||||
|
||||
| Säule | Beschreibung |
|
||||
|---|---|
|
||||
| **Immersion** | Das Interface wirkt wie ein HUD das über der Szenerie schwebt — kein Fremdkörper |
|
||||
| **Visual Clarity** | Gezielter `blur`-Einsatz trennt UI und Hintergrundbild — reduziert Reizüberflutung |
|
||||
| **Harmonie** | Jedes Theme zieht seine Farben aus den dominanten Lichtquellen des Hintergrundbildes |
|
||||
|
||||
---
|
||||
|
||||
## Anatomie eines Themes
|
||||
|
||||
Jedes Theme folgt dieser Variablen-Struktur in `main.css`.
|
||||
Für ein neues Theme diesen Block kopieren und anpassen:
|
||||
|
||||
```css
|
||||
[data-theme="dein-theme-name"] {
|
||||
/* 1. AKZENTE — Die Lichtquelle */
|
||||
--accent: #HEXCODE; /* Hauptfarbe (Neon/Licht) */
|
||||
--accent-dim: rgba(R, G, B, 0.12); /* Subtiler Hintergrund */
|
||||
--accent-glow: rgba(R, G, B, 0.08); /* Glow für Logo & Uhr */
|
||||
--border-accent: rgba(R, G, B, 0.25); /* Fokus-Rahmen */
|
||||
|
||||
/* 2. BASIS — Das Fundament */
|
||||
--bg-primary: #HEXCODE; /* Dunkelster Punkt im Bild */
|
||||
--bg-board: rgba(R, G, B, 0.55); /* Glas-Effekt der Boards */
|
||||
|
||||
/* 3. TEXT — Kontrast */
|
||||
--text-primary: #FFFFFF; /* Klar lesbar, leicht getönt */
|
||||
--text-secondary: #A0A0A0; /* Entsättigt für weniger Rauschen */
|
||||
|
||||
/* 4. OVERLAY — Vignette */
|
||||
--overlay-bg: radial-gradient(
|
||||
circle at center,
|
||||
transparent 0%,
|
||||
var(--bg-primary) 100%
|
||||
);
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## UI-Patterns
|
||||
|
||||
### Frosted Glass
|
||||
|
||||
Hardware-beschleunigter Blur für Lesbarkeit auf komplexen Hintergründen:
|
||||
|
||||
```css
|
||||
backdrop-filter: blur(8px);
|
||||
```
|
||||
|
||||
Erzeugt Tiefe und visuelle Ruhe hinter Text und UI-Elementen.
|
||||
|
||||
### Typografie-Hierarchie
|
||||
|
||||
| Font | Einsatz |
|
||||
|---|---|
|
||||
| **Rajdhani** | Display — Uhr, Titel, Logo. Alles was nach "System" aussieht |
|
||||
| **Inter** | Body — Bookmark-Titel, Listen, interaktive Elemente |
|
||||
| **Cinzel** | Fantasy — Exklusiv für Themes mit majestätischem oder antikem Vibe (Crescent, Julia & Jin) |
|
||||
|
||||
---
|
||||
|
||||
## Theme-Übersicht
|
||||
|
||||
| Theme | Akzentfarbe | Stimmung |
|
||||
|---|---|---|
|
||||
| Nebula | `#b359ff` Magenta | Chill, Cosmic |
|
||||
| Crescent | `#d4bd8a` Gold | Luxury, Night |
|
||||
| Event Horizon | `#9d5cff` Purple | Deep Space, Void |
|
||||
| Merchantman | `#2eb8b8` Emerald | Industrial, Alien |
|
||||
| Julia & Jin | `#7db3ff` Aetherial Blue | FFXIV Night |
|
||||
| SC Sunset | `#ff8c3d` Amber | Emotional, Horizon |
|
||||
| Hellion HUD | `#32ff6a` Neon Green | Tactical, Admin |
|
||||
| Hellion Energy | `#1eff8e` Acid Green | Overdrive, Power |
|
||||
|
||||
---
|
||||
|
||||
## ADHS-Optimierung
|
||||
|
||||
Bei Hintergrundbildern mit vielen Details (z.B. Julia & Jin) den Board-Alpha erhöhen
|
||||
und den Blur verstärken — das dimmt das Hintergrundrauschen und lässt das Gehirn
|
||||
schneller die relevanten Informationen erfassen:
|
||||
|
||||
```css
|
||||
--bg-board: rgba(R, G, B, 0.65);
|
||||
backdrop-filter: blur(12px);
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Entwickelt von **[Hellion Online Media — Florian Wathling](https://hellion-media.de)** — JonKazama-Hellion
|
||||
@@ -298,97 +298,6 @@
|
||||
box-shadow: inset 0 0 10px rgba(30, 255, 142, 0.05);
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
THEME: SATISFACTORY (Industrial Desert)
|
||||
============================================ */
|
||||
[data-theme="satisfactory"] {
|
||||
--accent: #00b4d8;
|
||||
--accent-dim: rgba(0, 180, 216, 0.12);
|
||||
--accent-glow: rgba(0, 180, 216, 0.08);
|
||||
--border-accent: rgba(0, 180, 216, 0.35);
|
||||
--bg-primary: #1a0f08;
|
||||
--bg-board: rgba(26, 15, 8, 0.65);
|
||||
--border: rgba(0, 180, 216, 0.15);
|
||||
--text-primary: #f0faff;
|
||||
--text-secondary: #a89f98;
|
||||
--text-muted: #635a54;
|
||||
--font-display: 'Rajdhani', sans-serif;
|
||||
--font-body: 'Inter', sans-serif;
|
||||
--overlay-bg: linear-gradient(180deg,
|
||||
rgba(26,15,8,0.85) 0%,
|
||||
rgba(26,15,8,0.15) 50%,
|
||||
rgba(26,15,8,0.90) 100%);
|
||||
--header-bg: rgba(26,15,8,0.95);
|
||||
--board-hover-border: rgba(0, 180, 216, 0.25);
|
||||
--toggle-on-bg: rgba(0, 180, 216, 0.20);
|
||||
--logo-shadow: rgba(0, 180, 216, 0.40);
|
||||
}
|
||||
[data-theme="satisfactory"] .logo { font-family: 'Rajdhani', sans-serif; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
|
||||
[data-theme="satisfactory"] .clock { font-family: 'Rajdhani', sans-serif; font-weight: 600; color: var(--accent); }
|
||||
[data-theme="satisfactory"] .board-title { font-family: 'Rajdhani', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
|
||||
[data-theme="satisfactory"] .board { border-color: rgba(0, 180, 216, 0.20); backdrop-filter: blur(12px); }
|
||||
[data-theme="satisfactory"] .bm-item:hover { background: rgba(0, 180, 216, 0.10); }
|
||||
|
||||
/* ============================================
|
||||
THEME: AVORION (Deep Void)
|
||||
============================================ */
|
||||
[data-theme="avorion"] {
|
||||
--accent: #2ec4a0;
|
||||
--accent-dim: rgba(46, 196, 160, 0.12);
|
||||
--accent-glow: rgba(46, 196, 160, 0.08);
|
||||
--border-accent: rgba(46, 196, 160, 0.30);
|
||||
--bg-primary: #020d0c;
|
||||
--bg-board: rgba(2, 13, 12, 0.60);
|
||||
--border: rgba(46, 196, 160, 0.12);
|
||||
--text-primary: #e6fffa;
|
||||
--text-secondary: #8abdb3;
|
||||
--text-muted: #40615a;
|
||||
--font-display: 'Rajdhani', sans-serif;
|
||||
--font-body: 'Inter', sans-serif;
|
||||
--overlay-bg: radial-gradient(circle at center,
|
||||
transparent 0%,
|
||||
rgba(2, 13, 12, 0.95) 100%);
|
||||
--header-bg: rgba(2, 13, 12, 0.94);
|
||||
--board-hover-border: rgba(46, 196, 160, 0.22);
|
||||
--toggle-on-bg: rgba(46, 196, 160, 0.18);
|
||||
--logo-shadow: rgba(46, 196, 160, 0.50);
|
||||
}
|
||||
[data-theme="avorion"] .logo { font-family: 'Rajdhani', sans-serif; font-weight: 500; letter-spacing: 6px; text-transform: uppercase; }
|
||||
[data-theme="avorion"] .clock { font-family: 'Rajdhani', sans-serif; font-weight: 400; color: var(--accent); }
|
||||
[data-theme="avorion"] .board-title { font-family: 'Rajdhani', sans-serif; font-weight: 500; text-transform: uppercase; }
|
||||
[data-theme="avorion"] .board { border-color: rgba(46, 196, 160, 0.15); backdrop-filter: blur(8px); }
|
||||
[data-theme="avorion"] .bm-item:hover { background: rgba(46, 196, 160, 0.08); }
|
||||
|
||||
/* ============================================
|
||||
THEME: HELLION STEALTH (Tactical Recon)
|
||||
============================================ */
|
||||
[data-theme="hellion-stealth"] {
|
||||
--accent: #5ec2ff;
|
||||
--accent-dim: rgba(94, 194, 255, 0.12);
|
||||
--accent-glow: rgba(94, 194, 255, 0.08);
|
||||
--border-accent: rgba(94, 194, 255, 0.35);
|
||||
--bg-primary: #0d0f12;
|
||||
--bg-board: rgba(13, 15, 18, 0.70);
|
||||
--border: rgba(94, 194, 255, 0.15);
|
||||
--text-primary: #e0f4ff;
|
||||
--text-secondary: #8a9499;
|
||||
--text-muted: #4a5257;
|
||||
--font-display: 'Rajdhani', sans-serif;
|
||||
--font-body: 'Inter', sans-serif;
|
||||
--overlay-bg: radial-gradient(circle at center,
|
||||
transparent 0%,
|
||||
rgba(13, 15, 18, 0.90) 100%);
|
||||
--header-bg: rgba(13, 15, 18, 0.96);
|
||||
--board-hover-border: rgba(94, 194, 255, 0.25);
|
||||
--toggle-on-bg: rgba(94, 194, 255, 0.20);
|
||||
--logo-shadow: rgba(94, 194, 255, 0.45);
|
||||
}
|
||||
[data-theme="hellion-stealth"] .logo { font-family: 'Rajdhani', sans-serif; font-weight: 700; letter-spacing: 4px; }
|
||||
[data-theme="hellion-stealth"] .clock { font-family: 'Rajdhani', sans-serif; font-weight: 600; color: var(--accent); }
|
||||
[data-theme="hellion-stealth"] .board-title { text-transform: uppercase; font-size: 0.85rem; letter-spacing: 2px; }
|
||||
[data-theme="hellion-stealth"] .board { border-color: rgba(94, 194, 255, 0.15); backdrop-filter: blur(10px); }
|
||||
[data-theme="hellion-stealth"] .bm-item:hover { background: rgba(94, 194, 255, 0.10); border-left: 2px solid var(--accent); }
|
||||
|
||||
/* ============================================
|
||||
BASE STYLES
|
||||
============================================ */
|
||||
@@ -628,13 +537,7 @@ body.show-desc .bm-desc { display: block; }
|
||||
font-family: var(--font-display); font-size: 15px; font-weight: 600;
|
||||
letter-spacing: 2px; color: var(--accent); text-transform: uppercase;
|
||||
}
|
||||
.panel-body { flex: 1; overflow-y: auto; padding: 12px 0; scrollbar-width: thin; scrollbar-color: var(--border) transparent; min-height: 0; }
|
||||
.panel-footer {
|
||||
flex-shrink: 0; border-top: 1px solid var(--border);
|
||||
max-height: 45vh; overflow-y: auto;
|
||||
scrollbar-width: thin; scrollbar-color: var(--border) transparent;
|
||||
}
|
||||
.panel-footer .about-block { padding: 12px 18px 16px; }
|
||||
.panel-body { flex: 1; overflow-y: auto; padding: 12px 0; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
|
||||
|
||||
.settings-section { margin-bottom: 4px; }
|
||||
.settings-section-title {
|
||||
@@ -703,9 +606,6 @@ body.show-desc .bm-desc { display: block; }
|
||||
.theme-card[data-value="sc-sunset"] .theme-card-label { color: #ff8c3d; } /* Amber Sunset */
|
||||
.theme-card[data-value="hellion-hud"] .theme-card-label { color: #32ff6a; } /* Neon Green */
|
||||
.theme-card[data-value="hellion-energy"] .theme-card-label { color: #1eff8e; } /* Acid Green */
|
||||
.theme-card[data-value="satisfactory"] .theme-card-label { color: #00b4d8; } /* Cyan LED */
|
||||
.theme-card[data-value="avorion"] .theme-card-label { color: #2ec4a0; } /* Turquoise */
|
||||
.theme-card[data-value="hellion-stealth"] .theme-card-label { color: #5ec2ff; } /* Tech Blue */
|
||||
.theme-card:hover .theme-card-label {
|
||||
text-shadow: 0 0 8px currentColor;
|
||||
transition: text-shadow 0.2s ease;
|
||||
@@ -739,12 +639,11 @@ body.show-desc .bm-desc { display: block; }
|
||||
|
||||
/* INPUTS */
|
||||
.select-input {
|
||||
padding: 5px 8px; background: var(--bg-board, rgba(255,255,255,0.06));
|
||||
padding: 5px 8px; background: rgba(255,255,255,0.06);
|
||||
border: 1px solid var(--border); border-radius: var(--radius-sm);
|
||||
color: var(--text-primary); font-family: var(--font-body); font-size: 12px;
|
||||
cursor: pointer; min-width: 70px;
|
||||
}
|
||||
.select-input option { background: var(--bg-primary, #0a0e17); color: var(--text-primary); }
|
||||
.select-input:focus { outline: none; border-color: var(--border-accent); }
|
||||
|
||||
.text-input {
|
||||
@@ -1895,90 +1794,6 @@ body.show-desc .bm-desc { display: block; }
|
||||
display: flex; gap: 8px;
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
BROWSER BOOKMARK IMPORT MODAL
|
||||
============================================ */
|
||||
.bm-import-overlay {
|
||||
position: fixed; inset: 0; z-index: 9999;
|
||||
background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
opacity: 0; pointer-events: none;
|
||||
transition: opacity 0.25s ease;
|
||||
}
|
||||
.bm-import-overlay.active { opacity: 1; pointer-events: all; }
|
||||
|
||||
.bm-import-modal {
|
||||
background: rgba(8,8,16,0.96);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
backdrop-filter: blur(28px);
|
||||
max-width: 480px; width: 90%;
|
||||
max-height: 75vh;
|
||||
display: flex; flex-direction: column;
|
||||
transform: translateY(12px) scale(0.97);
|
||||
transition: transform 0.25s ease;
|
||||
}
|
||||
.bm-import-overlay.active .bm-import-modal {
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
|
||||
.bm-import-header {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 14px 18px; border-bottom: 1px solid var(--border);
|
||||
font-size: 14px; font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
.bm-import-close {
|
||||
background: none; border: none; color: var(--text-muted);
|
||||
font-size: 20px; cursor: pointer; padding: 0 4px;
|
||||
transition: color 0.15s;
|
||||
}
|
||||
.bm-import-close:hover { color: var(--text-primary); }
|
||||
|
||||
.bm-import-info {
|
||||
padding: 10px 18px;
|
||||
font-size: 12px; color: var(--text-secondary);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.bm-import-list {
|
||||
flex: 1; overflow-y: auto; padding: 4px 0;
|
||||
scrollbar-width: thin; scrollbar-color: var(--border) transparent;
|
||||
max-height: 45vh;
|
||||
}
|
||||
|
||||
.bm-import-folder {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
padding: 8px 12px; cursor: pointer;
|
||||
transition: background 0.15s;
|
||||
font-size: 13px; color: var(--text-primary);
|
||||
}
|
||||
.bm-import-folder:hover {
|
||||
background: rgba(255,255,255,0.04);
|
||||
}
|
||||
|
||||
.bm-import-checkbox {
|
||||
accent-color: var(--accent);
|
||||
width: 16px; height: 16px;
|
||||
cursor: pointer; flex-shrink: 0;
|
||||
}
|
||||
|
||||
.bm-import-folder-name {
|
||||
flex: 1; overflow: hidden;
|
||||
text-overflow: ellipsis; white-space: nowrap;
|
||||
}
|
||||
|
||||
.bm-import-folder-meta {
|
||||
font-size: 11px; color: var(--text-muted);
|
||||
white-space: nowrap; flex-shrink: 0;
|
||||
}
|
||||
|
||||
.bm-import-footer {
|
||||
display: flex; justify-content: space-between; align-items: center;
|
||||
padding: 12px 18px; border-top: 1px solid var(--border);
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
THEME PICKER MODAL
|
||||
============================================ */
|
||||
|
||||
@@ -21,7 +21,6 @@ async function init() {
|
||||
await Calculator.init();
|
||||
await Timer.init();
|
||||
await ImageRef.init();
|
||||
BrowserBookmarkImport.init();
|
||||
initDataButtons();
|
||||
Store.checkQuota();
|
||||
|
||||
@@ -104,7 +103,7 @@ async function checkBackupReminder() {
|
||||
const notesData = (widgetData && Array.isArray(widgetData.notes)) ? widgetData.notes : [];
|
||||
const calcHistory = (widgetData && widgetData.calculator) ? widgetData.calculator.history || [] : [];
|
||||
const timerPresets = (widgetData && widgetData.timer) ? widgetData.timer.presets || [] : [];
|
||||
const data = { version: '1.11.1', exported: new Date().toISOString(), boards, settings, notes: notesData, calculator: calcHistory, timerPresets };
|
||||
const data = { version: '1.7.0', exported: new Date().toISOString(), boards, settings, notes: notesData, calculator: calcHistory, timerPresets };
|
||||
const blob = new Blob([JSON.stringify(data, null, 2)], { type: 'application/json' });
|
||||
const url = URL.createObjectURL(blob);
|
||||
const a = document.createElement('a');
|
||||
|
||||
@@ -1,303 +0,0 @@
|
||||
/* =============================================
|
||||
HELLION NEWTAB — bookmark-import.js
|
||||
Direkt-Import von Browser-Lesezeichen
|
||||
via chrome.bookmarks.getTree() / browser.bookmarks.getTree()
|
||||
============================================= */
|
||||
|
||||
const BrowserBookmarkImport = {
|
||||
|
||||
/** Initialisiert den Import-Button */
|
||||
init() {
|
||||
const btn = document.getElementById('btnBrowserImport');
|
||||
const row = document.getElementById('browserImportRow');
|
||||
if (!btn || !row) return;
|
||||
|
||||
// API-Verfuegbarkeit pruefen (nicht vorhanden im normalen Browser-Tab)
|
||||
const api = this._getApi();
|
||||
if (!api) {
|
||||
row.style.display = 'none';
|
||||
return;
|
||||
}
|
||||
|
||||
btn.addEventListener('click', () => this._openFolderModal());
|
||||
},
|
||||
|
||||
/**
|
||||
* Gibt die Bookmarks-API zurueck (Chrome oder Firefox)
|
||||
* @returns {object|null}
|
||||
*/
|
||||
_getApi() {
|
||||
if (typeof chrome !== 'undefined' && chrome.bookmarks) return chrome.bookmarks;
|
||||
if (typeof browser !== 'undefined' && browser.bookmarks) return browser.bookmarks;
|
||||
return null;
|
||||
},
|
||||
|
||||
/** Oeffnet das Ordner-Auswahl Modal */
|
||||
async _openFolderModal() {
|
||||
const api = this._getApi();
|
||||
if (!api) return;
|
||||
|
||||
let tree;
|
||||
try {
|
||||
tree = await api.getTree();
|
||||
} catch (err) {
|
||||
await HellionDialog.alert(
|
||||
'Zugriff auf Browser-Lesezeichen nicht möglich. Stelle sicher, dass die Extension die nötigen Berechtigungen hat.',
|
||||
{ type: 'warning', title: 'Lesezeichen-Import' }
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
const folders = this._extractFolders(tree[0]);
|
||||
if (folders.length === 0) {
|
||||
await HellionDialog.alert(
|
||||
'Keine Lesezeichen-Ordner gefunden.',
|
||||
{ type: 'warning', title: 'Lesezeichen-Import' }
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
this._renderModal(folders);
|
||||
},
|
||||
|
||||
/**
|
||||
* Extrahiert alle Ordner rekursiv aus dem Bookmark-Baum
|
||||
* @param {object} node - Bookmark-Tree Node
|
||||
* @param {number} depth - Einrueckungstiefe
|
||||
* @returns {Array}
|
||||
*/
|
||||
_extractFolders(node, depth) {
|
||||
if (depth === undefined) depth = 0;
|
||||
const result = [];
|
||||
|
||||
if (!node.children) return result;
|
||||
|
||||
for (const child of node.children) {
|
||||
if (child.children) {
|
||||
const bookmarkCount = child.children.filter(function(c) { return c.url; }).length;
|
||||
const subfolderCount = child.children.filter(function(c) { return c.children; }).length;
|
||||
|
||||
result.push({
|
||||
id: child.id,
|
||||
title: child.title || 'Unbenannt',
|
||||
depth: depth,
|
||||
bookmarkCount: bookmarkCount,
|
||||
subfolderCount: subfolderCount,
|
||||
node: child
|
||||
});
|
||||
|
||||
const subFolders = this._extractFolders(child, depth + 1);
|
||||
for (const sf of subFolders) {
|
||||
result.push(sf);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
},
|
||||
|
||||
/**
|
||||
* Rendert das Ordner-Auswahl Modal
|
||||
* @param {Array} folders - Liste der Ordner
|
||||
*/
|
||||
_renderModal(folders) {
|
||||
// Overlay
|
||||
const overlay = document.createElement('div');
|
||||
overlay.className = 'bm-import-overlay';
|
||||
overlay.id = 'bmImportOverlay';
|
||||
|
||||
const modal = document.createElement('div');
|
||||
modal.className = 'bm-import-modal';
|
||||
|
||||
// Header
|
||||
const header = document.createElement('div');
|
||||
header.className = 'bm-import-header';
|
||||
|
||||
const title = document.createElement('span');
|
||||
title.textContent = 'Browser-Lesezeichen importieren';
|
||||
header.appendChild(title);
|
||||
|
||||
const closeBtn = document.createElement('button');
|
||||
closeBtn.className = 'bm-import-close';
|
||||
closeBtn.textContent = '\u00D7';
|
||||
closeBtn.addEventListener('click', () => this._closeModal());
|
||||
header.appendChild(closeBtn);
|
||||
|
||||
modal.appendChild(header);
|
||||
|
||||
// Info
|
||||
const info = document.createElement('div');
|
||||
info.className = 'bm-import-info';
|
||||
info.textContent = 'Wähle die Ordner aus, die als Boards importiert werden sollen. Jeder Ordner wird ein eigenes Board.';
|
||||
modal.appendChild(info);
|
||||
|
||||
// Ordner-Liste
|
||||
const list = document.createElement('div');
|
||||
list.className = 'bm-import-list';
|
||||
|
||||
for (const folder of folders) {
|
||||
const row = document.createElement('label');
|
||||
row.className = 'bm-import-folder';
|
||||
row.style.paddingLeft = (12 + folder.depth * 20) + 'px';
|
||||
|
||||
const checkbox = document.createElement('input');
|
||||
checkbox.type = 'checkbox';
|
||||
checkbox.className = 'bm-import-checkbox';
|
||||
checkbox.dataset.folderId = folder.id;
|
||||
row.appendChild(checkbox);
|
||||
|
||||
const label = document.createElement('span');
|
||||
label.className = 'bm-import-folder-name';
|
||||
label.textContent = folder.title;
|
||||
row.appendChild(label);
|
||||
|
||||
const meta = document.createElement('span');
|
||||
meta.className = 'bm-import-folder-meta';
|
||||
const parts = [];
|
||||
if (folder.bookmarkCount > 0) {
|
||||
parts.push(folder.bookmarkCount + ' Link' + (folder.bookmarkCount !== 1 ? 's' : ''));
|
||||
}
|
||||
if (folder.subfolderCount > 0) {
|
||||
parts.push(folder.subfolderCount + ' Ordner');
|
||||
}
|
||||
if (parts.length === 0) {
|
||||
parts.push('leer');
|
||||
}
|
||||
meta.textContent = parts.join(', ');
|
||||
row.appendChild(meta);
|
||||
|
||||
list.appendChild(row);
|
||||
}
|
||||
|
||||
modal.appendChild(list);
|
||||
|
||||
// Footer
|
||||
const footer = document.createElement('div');
|
||||
footer.className = 'bm-import-footer';
|
||||
|
||||
const selectAll = document.createElement('button');
|
||||
selectAll.className = 'btn-secondary';
|
||||
selectAll.textContent = 'Alle auswählen';
|
||||
selectAll.addEventListener('click', () => {
|
||||
const boxes = list.querySelectorAll('.bm-import-checkbox');
|
||||
const allChecked = Array.from(boxes).every(function(cb) { return cb.checked; });
|
||||
boxes.forEach(function(cb) { cb.checked = !allChecked; });
|
||||
selectAll.textContent = allChecked ? 'Alle auswählen' : 'Alle abwählen';
|
||||
});
|
||||
footer.appendChild(selectAll);
|
||||
|
||||
const importBtn = document.createElement('button');
|
||||
importBtn.className = 'btn-primary';
|
||||
importBtn.textContent = 'Importieren';
|
||||
importBtn.addEventListener('click', () => this._importSelected(folders));
|
||||
footer.appendChild(importBtn);
|
||||
|
||||
modal.appendChild(footer);
|
||||
overlay.appendChild(modal);
|
||||
document.body.appendChild(overlay);
|
||||
|
||||
// Animation
|
||||
requestAnimationFrame(() => overlay.classList.add('active'));
|
||||
},
|
||||
|
||||
/** Schliesst das Modal */
|
||||
_closeModal() {
|
||||
const overlay = document.getElementById('bmImportOverlay');
|
||||
if (!overlay) return;
|
||||
overlay.classList.remove('active');
|
||||
setTimeout(() => overlay.remove(), 250);
|
||||
},
|
||||
|
||||
/**
|
||||
* Importiert die ausgewaehlten Ordner als Boards
|
||||
* @param {Array} folders - Alle Ordner
|
||||
*/
|
||||
async _importSelected(folders) {
|
||||
const checkboxes = document.querySelectorAll('.bm-import-checkbox:checked');
|
||||
if (checkboxes.length === 0) {
|
||||
await HellionDialog.alert(
|
||||
'Bitte wähle mindestens einen Ordner aus.',
|
||||
{ type: 'warning', title: 'Lesezeichen-Import' }
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
// Bestehende URLs sammeln fuer Duplikat-Erkennung
|
||||
const existingUrls = new Set();
|
||||
for (const board of boards) {
|
||||
for (const bm of board.bookmarks) {
|
||||
existingUrls.add(bm.url);
|
||||
}
|
||||
}
|
||||
|
||||
const selectedIds = new Set();
|
||||
checkboxes.forEach(function(cb) { selectedIds.add(cb.dataset.folderId); });
|
||||
|
||||
let totalImported = 0;
|
||||
let totalSkipped = 0;
|
||||
let boardsCreated = 0;
|
||||
|
||||
for (const folder of folders) {
|
||||
if (!selectedIds.has(folder.id)) continue;
|
||||
|
||||
const bookmarks = [];
|
||||
for (const child of folder.node.children) {
|
||||
if (!child.url) continue;
|
||||
|
||||
// Nur http/https URLs
|
||||
try {
|
||||
const parsed = new URL(child.url);
|
||||
if (parsed.protocol !== 'http:' && parsed.protocol !== 'https:') continue;
|
||||
} catch (e) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Duplikat-Check
|
||||
if (existingUrls.has(child.url)) {
|
||||
totalSkipped++;
|
||||
continue;
|
||||
}
|
||||
|
||||
bookmarks.push({
|
||||
id: uid(),
|
||||
title: child.title || child.url,
|
||||
url: child.url,
|
||||
desc: ''
|
||||
});
|
||||
|
||||
existingUrls.add(child.url);
|
||||
totalImported++;
|
||||
}
|
||||
|
||||
if (bookmarks.length === 0) continue;
|
||||
|
||||
boards.push({
|
||||
id: uid(),
|
||||
title: folder.title,
|
||||
bookmarks: bookmarks,
|
||||
blurred: false
|
||||
});
|
||||
boardsCreated++;
|
||||
}
|
||||
|
||||
if (boardsCreated > 0) {
|
||||
await saveBoards();
|
||||
renderBoards();
|
||||
}
|
||||
|
||||
this._closeModal();
|
||||
|
||||
// Ergebnis-Dialog
|
||||
const lines = [];
|
||||
lines.push(boardsCreated + ' Board' + (boardsCreated !== 1 ? 's' : '') + ' erstellt');
|
||||
lines.push(totalImported + ' Lesezeichen importiert');
|
||||
if (totalSkipped > 0) {
|
||||
lines.push(totalSkipped + ' Duplikat' + (totalSkipped !== 1 ? 'e' : '') + ' übersprungen');
|
||||
}
|
||||
|
||||
await HellionDialog.alert(
|
||||
lines.join('\n'),
|
||||
{ type: 'success', title: 'Import abgeschlossen' }
|
||||
);
|
||||
}
|
||||
};
|
||||
@@ -13,7 +13,7 @@ function initDataButtons() {
|
||||
btnExport.addEventListener('click', async () => {
|
||||
const widgetData = await Store.get('widgetStates');
|
||||
const data = {
|
||||
version: '1.11.1',
|
||||
version: '1.7.0',
|
||||
exported: new Date().toISOString(),
|
||||
boards,
|
||||
settings,
|
||||
|
||||
@@ -24,20 +24,18 @@ const Onboarding = {
|
||||
},
|
||||
{
|
||||
hero: '\uD83C\uDFA8',
|
||||
title: '11 handgefertigte Themes',
|
||||
text: 'Klicke auf den \u201ETheme\u201C Button im Header um dein Theme zu w\u00E4hlen. Jedes hat seinen eigenen Stil und Farbpalette.',
|
||||
title: '8 handgefertigte Themes',
|
||||
text: 'Klicke auf den „Theme" Button im Header um dein Theme zu wählen. Jedes hat seinen eigenen Stil und Farbpalette.',
|
||||
showThemes: true
|
||||
},
|
||||
{
|
||||
hero: '\uD83E\uDDF0',
|
||||
title: 'Widget-Toolbar',
|
||||
hero: '\u26A1',
|
||||
title: 'Weitere Features',
|
||||
features: [
|
||||
'Die schwebenden Buttons rechts \u00F6ffnen Widgets',
|
||||
'Notes und Checklisten f\u00FCr schnelle Notizen',
|
||||
'Taschenrechner mit History',
|
||||
'Timer/Countdown mit speicherbaren Presets',
|
||||
'Bild-Referenz Widgets (aktivierbar in Settings)',
|
||||
'Notebook-Sidebar zeigt alle Notes auf einen Blick'
|
||||
'Suchleiste mit Google, DuckDuckGo oder Bing',
|
||||
'Widget-Toolbar rechts \u2014 Notes und Checklisten erstellen',
|
||||
'Notebook-Sidebar \u00FCber den \u201ENote\u201C Button oder die Toolbar',
|
||||
'Funktioniert komplett offline \u2014 alles lokal gespeichert'
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -45,16 +43,10 @@ const Onboarding = {
|
||||
title: 'Backups nicht vergessen!',
|
||||
text: 'Deine Daten sind lokal im Browser gespeichert. Wenn du Browserdaten l\u00F6schst, gehen sie verloren! Sichere regelm\u00E4\u00DFig \u00FCber Settings \u2192 Data \u2192 Export. Wir erinnern dich alle 7 Tage daran.'
|
||||
},
|
||||
{
|
||||
hero: '\uD83C\uDFAE',
|
||||
title: 'Gaming Starter Board',
|
||||
text: 'Spielst du Games wie Satisfactory, Factorio oder Star Citizen? Ich kann ein Board mit n\u00FCtzlichen Community-Links anlegen.',
|
||||
interactive: 'gaming-board'
|
||||
},
|
||||
{
|
||||
hero: '\uD83D\uDE80',
|
||||
title: 'Bereit!',
|
||||
text: 'Erstelle dein erstes Board mit \u201E+ Board\u201C oder importiere deine Browser-Lesezeichen \u00FCber den Import-Button im Header. Viel Spa\u00DF!'
|
||||
text: 'Klicke auf \u201E+ Board\u201C um dein erstes Board zu erstellen, oder nutze den \u201EImport\u201C Button im Header um deine Browser-Lesezeichen zu importieren.'
|
||||
}
|
||||
],
|
||||
|
||||
@@ -127,7 +119,7 @@ const Onboarding = {
|
||||
if (slide.showThemes) {
|
||||
const grid = document.createElement('div');
|
||||
grid.className = 'onboarding-theme-grid';
|
||||
const themeNames = ['Nebula', 'Crescent', 'Event Horizon', 'Merchantman', 'Julia & Jin', 'SC Sunset', 'Hellion HUD', 'Hellion Energy', 'Satisfactory', 'Avorion', 'Hellion Stealth'];
|
||||
const themeNames = ['Nebula', 'Crescent', 'Event Horizon', 'Merchantman', 'Julia & Jin', 'SC Sunset', 'Hellion HUD', 'Hellion Energy'];
|
||||
themeNames.forEach(name => {
|
||||
const chip = document.createElement('div');
|
||||
chip.className = 'onboarding-theme-chip';
|
||||
@@ -168,27 +160,7 @@ const Onboarding = {
|
||||
nav.appendChild(backBtn);
|
||||
}
|
||||
|
||||
if (slide.interactive === 'gaming-board') {
|
||||
// Interaktive Slide: Zwei Buttons statt "Weiter"
|
||||
const noBtn = document.createElement('button');
|
||||
noBtn.className = 'btn-secondary';
|
||||
noBtn.textContent = 'Nein danke';
|
||||
noBtn.addEventListener('click', () => {
|
||||
this.currentSlide++;
|
||||
this._render();
|
||||
});
|
||||
|
||||
const yesBtn = document.createElement('button');
|
||||
yesBtn.className = 'btn-primary';
|
||||
yesBtn.textContent = 'Ja, gerne';
|
||||
yesBtn.addEventListener('click', async () => {
|
||||
await this._createGamingBoard();
|
||||
this.currentSlide++;
|
||||
this._render();
|
||||
});
|
||||
|
||||
nav.append(noBtn, yesBtn);
|
||||
} else if (isLast) {
|
||||
if (isLast) {
|
||||
const startBtn = document.createElement('button');
|
||||
startBtn.className = 'btn-primary';
|
||||
startBtn.textContent = 'Los geht\u2019s!';
|
||||
@@ -209,34 +181,6 @@ const Onboarding = {
|
||||
modal.appendChild(footer);
|
||||
},
|
||||
|
||||
/**
|
||||
* Gaming Starter Board erstellen
|
||||
* Vorbefuelltes Board mit Community-Links fuer Factory/Space Games
|
||||
*/
|
||||
async _createGamingBoard() {
|
||||
const gamingBoard = {
|
||||
id: uid(),
|
||||
title: '\uD83C\uDFAE Gaming',
|
||||
bookmarks: [
|
||||
{ id: uid(), title: 'Satisfactory Wiki', url: 'https://satisfactory.wiki.gg', desc: '' },
|
||||
{ id: uid(), title: 'Satisfactory Calculator', url: 'https://satisfactorytools.com', desc: '' },
|
||||
{ id: uid(), title: 'Factorio Wiki', url: 'https://wiki.factorio.com', desc: '' },
|
||||
{ id: uid(), title: 'Factorio Cheatsheet', url: 'https://factoriocheatsheet.com', desc: '' },
|
||||
{ id: uid(), title: 'Avorion Wiki', url: 'https://wiki.avorion.net', desc: '' },
|
||||
{ id: uid(), title: 'Minecraft Wiki', url: 'https://minecraft.wiki', desc: '' },
|
||||
{ id: uid(), title: 'Modrinth (Mods)', url: 'https://modrinth.com', desc: '' },
|
||||
{ id: uid(), title: 'Star Citizen Wiki', url: 'https://starcitizen.tools', desc: '' },
|
||||
{ id: uid(), title: 'UEX Corp (Trading)', url: 'https://uexcorp.space', desc: '' },
|
||||
{ id: uid(), title: 'Hellion TradeCenter', url: 'https://hellion-initiative.online/tradecenter', desc: 'Trade Center f\u00FCr Star Citizen' }
|
||||
],
|
||||
blurred: false
|
||||
};
|
||||
|
||||
boards.push(gamingBoard);
|
||||
await saveBoards();
|
||||
renderBoards();
|
||||
},
|
||||
|
||||
/** Keyboard-Navigation */
|
||||
_bindKeyboard() {
|
||||
this._keyHandler = (e) => {
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
# ⬡ Opera GX — New-Tab Workaround
|
||||
|
||||
Opera GX ist der einzige Browser in diesem Projekt der sich aktiv dagegen wehrt,
|
||||
eine eigene New-Tab-Seite zu nutzen. Während Chrome, Edge, Firefox und selbst Vivaldi
|
||||
einfach `chrome_url_overrides` respektieren, priorisiert Opera GX seine eigene
|
||||
Speed Dial Seite und ignoriert den Standard-Override für entpackte Erweiterungen.
|
||||
|
||||
Das Ergebnis: vier Stunden Debugging, zwei Workaround-Skripte und ein Reddit-Thread
|
||||
der tatsächlich geholfen hat. Hier ist was dabei rausgekommen ist.
|
||||
Opera GX priorisiert die eigene Speed Dial Seite und ignoriert `chrome_url_overrides`
|
||||
für entpackte Erweiterungen. Um das Hellion Dashboard trotzdem als New-Tab-Seite
|
||||
zu etablieren, kommen zwei zusätzliche Skripte zum Einsatz.
|
||||
|
||||
---
|
||||
|
||||
@@ -15,8 +11,8 @@ der tatsächlich geholfen hat. Hier ist was dabei rausgekommen ist.
|
||||
| Browser | New-Tab Override | Zusatzaufwand |
|
||||
|---|---|---|
|
||||
| Chrome / Edge / Brave / Vivaldi | `chrome_url_overrides` | Keiner |
|
||||
| Firefox | `chrome_url_overrides` (MV3) | Eigenes Manifest |
|
||||
| Opera / Opera GX | Blockiert durch Speed Dial | Dieser Ordner hier |
|
||||
| Firefox | `chrome_url_overrides` (MV2) | Eigenes Manifest |
|
||||
| Opera / Opera GX | Blockiert durch Speed Dial | Workaround nötig |
|
||||
|
||||
---
|
||||
|
||||
@@ -24,36 +20,25 @@ der tatsächlich geholfen hat. Hier ist was dabei rausgekommen ist.
|
||||
|
||||
### `background.js` — Tab-Management
|
||||
|
||||
Überwacht Tab-Aktivitäten im Hintergrund und greift ein bevor Opera seine Startseite laden kann.
|
||||
Überwacht Tab-Aktivitäten im Hintergrund und greift ein bevor Opera seine Startseite lädt.
|
||||
|
||||
- Erkennt `opera://startpage/` und `chrome://startpage/`
|
||||
- Leitet per `chrome.tabs.update` auf `newtab.html` um
|
||||
- Prüft zusätzlich bei `onActivated`, weil Opera manche Tabs im Hintergrund lädt
|
||||
und der erste Redirect dann nicht greift
|
||||
- Prüft zusätzlich bei `onActivated` — auch im Hintergrund geladene Tabs werden sofort aktualisiert
|
||||
|
||||
### `redirect.js` — In-Page Redirect
|
||||
|
||||
Manche Opera-Systemprozesse sind so weit isoliert dass ein externer Eingriff
|
||||
nicht zuverlässig ankommt. Also nochmal von innen.
|
||||
Einige Opera-Systemprozesse sind so isoliert dass ein externer Eingriff nicht zuverlässig greift.
|
||||
|
||||
- Wird als Content Script direkt in Opera-Startseiten-Bereiche injiziert
|
||||
- Löst den Redirect bei `document_start` aus, bevor die Speed Dial Seite
|
||||
überhaupt anfangen kann sich aufzubauen
|
||||
|
||||
Ja, es braucht wirklich beide Skripte. Opera GX hat das so entschieden.
|
||||
|
||||
Das Gute daran: die GitHub Actions kümmern sich darum dass jeder Browser nur bekommt
|
||||
was er braucht. Das Opera-ZIP enthält die Workaround-Skripte, das Chrome-ZIP nicht.
|
||||
Wer sich das manuell zusammensuchen müsste wäre vermutlich genauso genervt wie ich
|
||||
beim Debuggen war.
|
||||
- Wird als Content Script in Opera-Startseiten-Bereiche injiziert
|
||||
- Löst den Redirect bei `document_start` aus — minimale Verzögerung, kein Flackern
|
||||
|
||||
---
|
||||
|
||||
## Datenschutz
|
||||
|
||||
Kein Tracking, keine Speicherung, keine externen Requests.
|
||||
Nur Standard-Browser-APIs, `chrome.tabs`, um zurückzubekommen was eigentlich
|
||||
standardmäßig funktionieren sollte.
|
||||
Ausschließlich Standard-Browser-APIs — `chrome.tabs` — um die Kontrolle über den New Tab zurückzugewinnen.
|
||||
|
||||
**100% lokal. 0% Analytics. Wie im gesamten Hellion NewTab Projekt.**
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ function closeThemeModal() {
|
||||
|
||||
// ---- ACCORDION ----
|
||||
function initAccordion() {
|
||||
const defaultOpen = new Set(['widgets']);
|
||||
const defaultOpen = new Set(['appearance', 'behavior', 'widgets', 'data', 'help']);
|
||||
const sections = document.querySelectorAll('.settings-section[data-section]');
|
||||
|
||||
sections.forEach(section => {
|
||||
|
||||
@@ -4,17 +4,14 @@
|
||||
============================================= */
|
||||
|
||||
const THEMES = {
|
||||
'nebula': { bg: 'assets/themes/bg-nebula.webp' },
|
||||
'crescent': { bg: 'assets/themes/bg-crescent.webp' },
|
||||
'event-horizon': { bg: 'assets/themes/bg-event-horizon.webp' },
|
||||
'nebula': { bg: 'assets/themes/bg-nebula.jpg' },
|
||||
'crescent': { bg: 'assets/themes/bg-crescent.jpg' },
|
||||
'event-horizon': { bg: 'assets/themes/bg-event-horizon.jpg' },
|
||||
'merchantman': { bg: 'assets/themes/bg-merchantman.webp' },
|
||||
'julia-jin': { bg: 'assets/themes/bg-julia-jin.webp' },
|
||||
'sc-sunset': { bg: 'assets/themes/bg-sc-sunset.webp' },
|
||||
'hellion-hud': { bg: 'assets/themes/bg-hellion-hud.webp' },
|
||||
'hellion-energy': { bg: 'assets/themes/bg-hellion-energy.webp' },
|
||||
'satisfactory': { bg: 'assets/themes/bg-satisfactory.webp' },
|
||||
'avorion': { bg: 'assets/themes/bg-avorion.webp' },
|
||||
'hellion-stealth': { bg: 'assets/themes/bg-scPolaris.webp' }
|
||||
'julia-jin': { bg: 'assets/themes/bg-julia-jin.png' },
|
||||
'sc-sunset': { bg: 'assets/themes/bg-sc-sunset.jpg' },
|
||||
'hellion-hud': { bg: 'assets/themes/bg-hellion-hud.png' },
|
||||
'hellion-energy': { bg: 'assets/themes/bg-hellion-energy.jpg' }
|
||||
};
|
||||
|
||||
function applyTheme(themeName, skipBgOverride) {
|
||||
|
||||