End to end encryption description (#731)

* End to end encryption description

This PR updates the url upload description to mention that it is end to end encrypted. I used a very similar message as whatsapp so that it is familar to people.

I also removed the automatic copying and turned the alert into prompt. This should be less awkward than the current implementation.

* capitalize excalidraw

Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
Christopher Chedeau 2020-02-08 01:43:59 -08:00 committed by GitHub
parent f359a1ea1b
commit e6d03aeeea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 9 additions and 24 deletions

View File

@ -2,7 +2,6 @@
"alerts": {
"cannotExportEmptyCanvas": "Leere Zeichenfläche kann nicht exportiert werden.",
"clearReset": "Dies wird die ganze Zeichenfläche löschen. Bist du dir sicher?",
"copiedToClipboard": "In Zwischenablage kopiert: {{url}}",
"couldNotCopyToClipboard": "Konnte nicht in die Zwischenablage kopieren. Versuch es mit dem Chrome Browser.",
"couldNotCreateShareableLink": "Konnte keinen teilbaren Link erstellen.",
"importBackendFailed": "Import vom Server ist fehlgeschlagen."

View File

@ -61,7 +61,7 @@
"importBackendFailed": "Importing from backend failed.",
"cannotExportEmptyCanvas": "Cannot export empty canvas.",
"couldNotCopyToClipboard": "Couldn't copy to clipboard. Try using Chrome browser.",
"copiedToClipboard": "Copied to clipboard: {{url}}"
"uploadedSecurly": "The upload has been secured with end-to-end encryption, which means that Excalidraw server and third parties can't read the content."
},
"toolBar": {
"selection": "Selection",

View File

@ -60,8 +60,7 @@
"couldNotCreateShareableLink": "No se pudo crear un enlace para compartir.",
"importBackendFailed": "La importación falló.",
"cannotExportEmptyCanvas": "No se puede exportar un lienzo vació",
"couldNotCopyToClipboard": "No se ha podido copiar al portapapeles, intente usar Chrome como navegador.",
"copiedToClipboard": "Copiado en el portapapeles: {{url}}"
"couldNotCopyToClipboard": "No se ha podido copiar al portapapeles, intente usar Chrome como navegador."
},
"toolBar": {
"selection": "Selección",

View File

@ -54,8 +54,7 @@
"couldNotCreateShareableLink": "Impossible de créer un lien de partage.",
"importBackendFailed": "L'import depuis le backend a échoué.",
"cannotExportEmptyCanvas": "Impossible d'exporter un canvas vide.",
"couldNotCopyToClipboard": "Impossible de copier dans le presse-papier. Essayez d'utiliser le navigateur Chrome.",
"copiedToClipboard": "Copié dans le presse-papier: {{url}}"
"couldNotCopyToClipboard": "Impossible de copier dans le presse-papier. Essayez d'utiliser le navigateur Chrome."
},
"toolBar": {
"selection": "Sélection",

View File

@ -60,8 +60,7 @@
"couldNotCreateShareableLink": "Kunne ikke lage delbar lenke.",
"importBackendFailed": "Importering av backend feilet.",
"cannotExportEmptyCanvas": "Kan ikke eksportere et tomt lerret.",
"couldNotCopyToClipboard": "Kunne ikke kopiere til utklippstavlen. Prøv med nettleseren Chrome.",
"copiedToClipboard": "Kopierte til utklippstavlen: {{url}}"
"couldNotCopyToClipboard": "Kunne ikke kopiere til utklippstavlen. Prøv med nettleseren Chrome."
},
"toolBar": {
"selection": "Velg",

View File

@ -60,8 +60,7 @@
"couldNotCreateShareableLink": "Wystąpił błąd przy generowaniu linka do udostępniania.",
"importBackendFailed": "Wystąpił błąd podczas importowania pliku.",
"cannotExportEmptyCanvas": "Najpierw musisz coś narysować, aby zapisać dokument.",
"couldNotCopyToClipboard": "Błąd podczas kopiowania. Spróbuj użyć Google Chrome.",
"copiedToClipboard": "Skopiowano link: {{url}}"
"couldNotCopyToClipboard": "Błąd podczas kopiowania. Spróbuj użyć Google Chrome."
},
"toolBar": {
"selection": "Zaznaczenie",

View File

@ -54,8 +54,7 @@
"couldNotCreateShareableLink": "Não foi possível criar um link de partilha.",
"importBackendFailed": "O carregamento no servidor falhou.",
"cannotExportEmptyCanvas": "Não é possível exportar um canvas vazío.",
"couldNotCopyToClipboard": "Não foi possível copiar no clipboard. Experimente no navegador Chrome.",
"copiedToClipboard": "Copiado no clipboard: {{url}}"
"couldNotCopyToClipboard": "Não foi possível copiar no clipboard. Experimente no navegador Chrome."
},
"toolBar": {
"selection": "Seleção",

View File

@ -59,8 +59,7 @@
"couldNotCreateShareableLink": "Не удалось создать общедоступную ссылку.",
"importBackendFailed": "Не удалось импортировать из бэкэнда.",
"cannotExportEmptyCanvas": "Не может экспортировать пустой холст.",
"couldNotCopyToClipboard": "Не удалось скопировать в буфер обмена. Попробуйте использовать веб-браузер Chrome.",
"copiedToClipboard": "Скопировано в буфер обмена: {{url}}"
"couldNotCopyToClipboard": "Не удалось скопировать в буфер обмена. Попробуйте использовать веб-браузер Chrome."
},
"toolBar": {
"selection": "Выделение области",

View File

@ -15,10 +15,7 @@ import { getCommonBounds, normalizeDimensions } from "../element";
import { Point } from "roughjs/bin/geometry";
import { t } from "../i18n";
import {
copyTextToSystemClipboard,
copyCanvasToClipboardAsPng,
} from "../clipboard";
import { copyCanvasToClipboardAsPng } from "../clipboard";
const LOCAL_STORAGE_KEY = "excalidraw";
const LOCAL_STORAGE_SCENE_PREVIOUS_KEY = "excalidraw-previos-scenes";
@ -191,12 +188,7 @@ export async function exportToBackend(
url.hash = `json=${json.id},${exportedKey.k!}`;
const urlString = url.toString();
try {
await copyTextToSystemClipboard(urlString);
window.alert(t("alerts.copiedToClipboard", { url: urlString }));
} catch (err) {
// TODO: link will be displayed for user to copy manually in later PR
}
window.prompt(t("alerts.uploadedSecurly"), urlString);
} else {
window.alert(t("alerts.couldNotCreateShareableLink"));
}