selfstore 1.8.4 → 1.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/widgets.js CHANGED
@@ -537,7 +537,7 @@ var EN = {
537
537
  "connect.webdav.signup": "Create an account",
538
538
  "connect.webdav.help.more": "How?",
539
539
  "connect.done": "Connected. Your data is saved.",
540
- "connect.done.manual": "Download mode: save the file after each change.",
540
+ "connect.done.manual": "Download mode: this browser cannot keep the file open.",
541
541
  "error.generic": "That did not work. Check the connection and try again.",
542
542
  "error.targetUnavailable": "The destination did not answer. Try again in a moment.",
543
543
  "error.authExpired": "Access expired: reconnect to continue.",
@@ -584,7 +584,7 @@ var FR = {
584
584
  "connect.password.forgot.warn": "Sans le mot de passe, cette sauvegarde ne peut pas \xEAtre ouverte. Vous pouvez repartir d'une sauvegarde vide : l'ancienne sera perdue d\xE9finitivement.",
585
585
  "connect.password.forgot.confirm": "Remplacer la sauvegarde",
586
586
  "connect.password.forgot.back": "Retour",
587
- "connect.conflict.title": "Cette destination contient d\xE9j\xE0 une sauvegarde",
587
+ "connect.conflict.title": "Une sauvegarde existe d\xE9j\xE0 ici",
588
588
  "connect.conflict.merge": "Tout garder",
589
589
  "connect.conflict.merge.sub": "R\xE9unir la sauvegarde et les donn\xE9es de cet appareil",
590
590
  "connect.conflict.resume": "Utiliser la sauvegarde",
@@ -598,9 +598,9 @@ var FR = {
598
598
  "connect.webdav.signup": "Cr\xE9er un compte",
599
599
  "connect.webdav.help.more": "Comment faire ?",
600
600
  "connect.done": "Connect\xE9. Vos donn\xE9es sont enregistr\xE9es.",
601
- "connect.done.manual": "Mode fichier : exportez apr\xE8s chaque changement.",
601
+ "connect.done.manual": "Mode export : ce navigateur ne peut pas garder le fichier ouvert.",
602
602
  "error.generic": "Cela n'a pas fonctionn\xE9. V\xE9rifiez la connexion et r\xE9essayez.",
603
- "error.targetUnavailable": "La destination ne r\xE9pond pas. R\xE9essayez dans un instant.",
603
+ "error.targetUnavailable": "La sauvegarde ne r\xE9pond pas. R\xE9essayez dans un instant.",
604
604
  "error.authExpired": "Acc\xE8s expir\xE9 : reconnectez-vous pour continuer.",
605
605
  "error.decryptFailed": "Cette sauvegarde n'a pas pu \xEAtre ouverte avec ce mot de passe.",
606
606
  "error.badFormat": "Ce fichier ne ressemble pas \xE0 une sauvegarde lisible.",
@@ -1660,7 +1660,7 @@ var EN3 = {
1660
1660
  };
1661
1661
  var FR3 = {
1662
1662
  "join.previewing": "Lecture de l'invitation...",
1663
- "join.title": "Vous \xEAtes invit\xE9",
1663
+ "join.title": "Vous avez re\xE7u une invitation",
1664
1664
  "join.from": "Partag\xE9 par {from}",
1665
1665
  "join.level.read": "Vous pourrez consulter.",
1666
1666
  "join.level.write": "Vous pourrez consulter et modifier.",
@@ -3531,7 +3531,7 @@ var EN7 = {
3531
3531
  "destination.export": "Export a copy",
3532
3532
  "destination.exported": "The copy is written.",
3533
3533
  "destination.exportCancelled": "Nothing was written.",
3534
- "destination.restore": "Load a copy",
3534
+ "destination.restore": "Restore a copy",
3535
3535
  "destination.change": "Change destination",
3536
3536
  "destination.detach": "Stop saving here",
3537
3537
  "destination.detached": "Stopped. Your data stays on this device.",
@@ -3548,8 +3548,11 @@ var FR7 = {
3548
3548
  "destination.export": "Exporter une copie",
3549
3549
  "destination.exported": "La copie est \xE9crite.",
3550
3550
  "destination.exportCancelled": "Rien n'a \xE9t\xE9 \xE9crit.",
3551
- "destination.restore": "Charger une copie",
3552
- "destination.change": "Changer de destination",
3551
+ // "Restaurer", pas "charger" : le premier dit qu'on REVIENT a un etat, le
3552
+ // second pourrait ajouter. Face a "Exporter une copie", la paire se lit
3553
+ // comme l'aller-retour qu'elle est.
3554
+ "destination.restore": "Restaurer une copie",
3555
+ "destination.change": "Changer de sauvegarde",
3553
3556
  "destination.detach": "Ne plus enregistrer ici",
3554
3557
  "destination.detached": "Arr\xEAt\xE9. Vos donn\xE9es restent sur cet appareil.",
3555
3558
  "destination.back": "Retour",
@@ -3732,11 +3735,15 @@ var SelfstoreDestinationElement = class extends FlowWidget {
3732
3735
  status.labels = this.labels;
3733
3736
  status.icons = this.#icons;
3734
3737
  status.store = this.#store;
3735
- const act = (key, onclick) => h(
3736
- "button",
3737
- { part: "button", type: "button", disabled: this.#busy ? "" : null, onclick },
3738
- this.t(key)
3739
- );
3738
+ const act = (key, part, onclick) => {
3739
+ const label2 = this.t(key);
3740
+ if (!label2) return null;
3741
+ return h(
3742
+ "button",
3743
+ { part: `button ${part}`, type: "button", disabled: this.#busy ? "" : null, onclick },
3744
+ label2
3745
+ );
3746
+ };
3740
3747
  put(
3741
3748
  into,
3742
3749
  this.heading("destination-heading", "destination.heading"),
@@ -3756,18 +3763,19 @@ var SelfstoreDestinationElement = class extends FlowWidget {
3756
3763
  h(
3757
3764
  "div",
3758
3765
  { part: "destination-actions" },
3759
- act("destination.export", () => void this.exportCopy()),
3766
+ act("destination.export", "destination-export", () => void this.exportCopy()),
3760
3767
  // The library holds no records, so loading a copy back is the host's
3761
3768
  // own gesture - see the note at the top of this file.
3762
3769
  act(
3763
3770
  "destination.restore",
3771
+ "destination-restore",
3764
3772
  () => this.emit("selfstore-destination-action", { action: "restore" })
3765
3773
  ),
3766
- this.#targets ? act("destination.change", () => {
3774
+ this.#targets ? act("destination.change", "destination-change", () => {
3767
3775
  this.#changing = true;
3768
3776
  this.rerender();
3769
3777
  }) : null,
3770
- act("destination.detach", () => void this.detach(label))
3778
+ act("destination.detach", "destination-detach", () => void this.detach(label))
3771
3779
  ),
3772
3780
  this.#message ? h("div", { part: "sub destination-message", role: "status" }, this.#message) : null
3773
3781
  );