refactor: rename auto-backup to fast connect

This commit is contained in:
2025-10-02 13:58:01 +02:00
parent 2a872bafac
commit c6e2f59b05
3 changed files with 18 additions and 19 deletions

View File

@@ -18,9 +18,9 @@ const de = {
}, },
backup: { backup: {
TITLE: "Backup", TITLE: "Backup",
AUTO_BACKUP: "Auto-backup", AUTO_BACKUP: "Beschleunigtes Verbinden",
DISCLAIMER: DISCLAIMER:
"Das Backup in diesem Browser gespeichert und bleibt nur auf diesem Computer.", "<b>Nicht auf öffentlichen oder geteilten Computern einschalten.</b> Gerätedaten werden für schnelleren Zugriff lokal zwischengespeichert.",
DOWNLOAD: "Komplettes Profil", DOWNLOAD: "Komplettes Profil",
RESTORE: "Wiederherstellen", RESTORE: "Wiederherstellen",
}, },

View File

@@ -14,9 +14,9 @@ const en = {
}, },
backup: { backup: {
TITLE: "Backup", TITLE: "Backup",
AUTO_BACKUP: "Auto-backup", AUTO_BACKUP: "Fast Connect",
DISCLAIMER: DISCLAIMER:
"Whenever you connect this device to browser, a backup is made locally and kept only on your computer.", "<b>Turn off if using a shared or public computer.</b> Caches your device's data locally for quick access next time you connect.",
DOWNLOAD: "Full profile", DOWNLOAD: "Full profile",
RESTORE: "Restore", RESTORE: "Restore",
}, },

View File

@@ -41,6 +41,7 @@
<section> <section>
<nav> <nav>
<a href="#connection">Connection</a>
{#if $deviceMeta} {#if $deviceMeta}
{#each $deviceMeta?.settings as category} {#each $deviceMeta?.settings as category}
<a href={`#${category.name}`}>{titlecase(category.name)}</a> <a href={`#${category.name}`}>{titlecase(category.name)}</a>
@@ -49,12 +50,19 @@
<a href="#backup">Backup</a> <a href="#backup">Backup</a>
</nav> </nav>
<div class="content"> <div class="content">
<label <fieldset id="connection">
>{$LL.deviceManager.AUTO_CONNECT()}<input <legend>Connection</legend>
type="checkbox" <label
use:preference={"autoConnect"} ><input type="checkbox" use:preference={"autoConnect"} />
/></label <div class="title">{$LL.deviceManager.AUTO_CONNECT()}</div>
> </label>
<label
><input type="checkbox" use:preference={"backup"} />
<div class="title">{@html $LL.backup.AUTO_BACKUP()}</div>
<div class="description">{@html $LL.backup.DISCLAIMER()}</div>
</label>
</fieldset>
{#if $deviceMeta} {#if $deviceMeta}
{#each $deviceMeta.settings as category} {#each $deviceMeta.settings as category}
<fieldset id={category.name}> <fieldset id={category.name}>
@@ -115,15 +123,6 @@
<fieldset id="backup"> <fieldset id="backup">
<legend>{$LL.backup.TITLE()}</legend> <legend>{$LL.backup.TITLE()}</legend>
<label
><input
type="checkbox"
use:preference={"backup"}
/>{$LL.backup.AUTO_BACKUP()}</label
>
<p class="disclaimer">
{$LL.backup.DISCLAIMER()}
</p>
<div class="row" style="margin-top: auto"> <div class="row" style="margin-top: auto">
<button onclick={() => downloadFile(createChordBackup())}> <button onclick={() => downloadFile(createChordBackup())}>
<span class="icon">piano</span> <span class="icon">piano</span>