diff --git a/README.md b/README.md index e69de29..e32d377 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,8 @@ +# LabLinks + +Retro-Launcher (Chrome, Manifest V3) für deine HomeLab-WebUIs. + +- Installation: `chrome://extensions` → Entwicklermodus → „Entpackte Erweiterung laden“ → Ordner mit `manifest.json`. +- Shortcut: frei wählbar unter `chrome://extensions/shortcuts` (Vorschlag: Alt+Shift+L). +- Sync: `[⚙]` im Popup → WebDAV-/Nextcloud-Ordner, Benutzer und App-Passwort eintragen. + Die Links liegen dann als `lablinks.json` im Ordner; Änderungen werden pro Eintrag nach Zeitstempel zusammengeführt. diff --git a/manifest.json b/manifest.json index 90cab34..829d252 100644 --- a/manifest.json +++ b/manifest.json @@ -1,9 +1,11 @@ { "manifest_version": 3, "name": "LabLinks", - "version": "1.0.0", + "version": "1.1.0", "description": "Retro-Launcher für deine HomeLab WebUIs.", "permissions": ["storage"], + "optional_host_permissions": ["https://*/*", "http://*/*"], + "options_ui": { "page": "options.html", "open_in_tab": true }, "action": { "default_popup": "popup.html", "default_title": "LabLinks", diff --git a/options.css b/options.css new file mode 100644 index 0000000..5b573ee --- /dev/null +++ b/options.css @@ -0,0 +1,23 @@ +body { width: auto; max-width: 560px; margin: 28px auto; padding: 0 12px; } +.crt { padding: 22px; } +h1 { margin-bottom: 12px; } +h1 small { font-size: 13px; letter-spacing: 1px; color: var(--fg-dim); text-shadow: none; } +.hint { color: var(--fg-dim); margin-bottom: 16px; text-shadow: none; } +.hint.small { font-size: 12px; margin: 14px 0 0; } +code, em { color: var(--fg); font-style: normal; } + +label { display: block; font-size: 12px; letter-spacing: 1px; margin-bottom: 12px; } +label input { display: block; margin: 5px 0 0; } +input[type="password"] { + width: 100%; font: inherit; color: var(--green); background: var(--bg); + border: 2px solid var(--line); padding: 6px 8px; outline: none; +} +input[type="password"]:focus { border-color: var(--fg); } + +.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; } +.btns button { font-size: 13px; } +#off { color: #ff4b3e; } + +#status { min-height: 1.4em; margin-top: 14px; } +#status.ok { color: var(--green); } +#status.err { color: #ff4b3e; } diff --git a/options.html b/options.html new file mode 100644 index 0000000..f1bc924 --- /dev/null +++ b/options.html @@ -0,0 +1,44 @@ + + +
+ +
+ Synchronisiert deine Links als lablinks.json per WebDAV – z. B. mit Nextcloud.
+ Nextcloud: Einstellungen → Sicherheit → App-Passwort erstellen und nutze dieses statt deines Passworts.
+
+ Der Ordner wird bei Bedarf angelegt. Zugangsdaten bleiben lokal in diesem Browser + (nicht über das Google-Konto synchronisiert, aber unverschlüsselt gespeichert). + Konflikte löst der jeweils neuere Eintrag. +
+