Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"string-template": "^1.0.0",
"url": "^0.11.3",
"util": "^0.12.5",
"uuid": "^8.3.2",
"uuid": "^11.0.3",
"web-vitals": "^0.2.4",
"xlsx-preview": "^1.0.4"
},
Expand Down
20 changes: 20 additions & 0 deletions src/app/auth/components/SignUp/useSignUp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,16 @@ export function useSignUp(
privateKeyEncrypted: encPrivateKey,
publicKey: publicKeyArmored,
revocationCertificate: revocationCertificate,
keys: {
ecc: {
privateKeyEncrypted: encPrivateKey,
publicKey: publicKeyArmored,
},
kyber: {
privateKeyEncrypted: '',
publicKey: '',
},
},
};
const registerDetails: RegisterDetails = {
name: 'My',
Expand Down Expand Up @@ -171,6 +181,16 @@ export function useSignUp(
privateKeyEncrypted: encPrivateKey,
publicKey: publicKeyArmored,
revocationCertificate: revocationCertificate,
keys: {
ecc: {
privateKeyEncrypted: encPrivateKey,
publicKey: publicKeyArmored,
},
kyber: {
privateKeyEncrypted: '',
publicKey: '',
},
},
};
const registerDetails: RegisterDetails = {
name: 'My',
Expand Down
11 changes: 11 additions & 0 deletions src/app/auth/services/auth.service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@ const mockUser: UserSettings = {
createdAt: new Date(),
avatar: null,
emailVerified: false,
keys: {
ecc: {
privateKey: '',
revocationKey: '',
publicKey: '',
},
kyber: {
privateKyberKey: '',
publicKyberKey: '',
},
},
};
const mockSignUpFunction = jest.fn();

Expand Down
12 changes: 11 additions & 1 deletion src/app/auth/services/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const doLogin = async (
tfaCode: twoFactorCode,
};
const cryptoProvider: CryptoProvider = {
encryptPasswordHash(password: Password, encryptedSalt: string): string {
async encryptPasswordHash(password: Password, encryptedSalt: string): Promise<string> {
const salt = decryptText(encryptedSalt);
const hashObj = passToHash({ password, salt });
return encryptText(hashObj.hash);
Expand All @@ -150,6 +150,16 @@ export const doLogin = async (
privateKeyEncrypted: privateKeyArmoredEncrypted,
publicKey: publicKeyArmored,
revocationCertificate: revocationCertificate,
keys: {
ecc: {
privateKeyEncrypted: privateKeyArmoredEncrypted,
publicKey: publicKeyArmored,
},
kyber: {
privateKeyEncrypted: '',
publicKey: '',
},
},
};
return keys;
},
Expand Down
17 changes: 15 additions & 2 deletions src/app/i18n/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -1241,6 +1241,7 @@
"linkUpdated": "Link aktualisiert",
"itemsMovedToTrash": "{{item}} in den Papierkorb verschoben",
"storageModified": "Speicher erfolgreich geändert",
"membersUpdatedSuccessfully": "Mitglieder erfolgreich aktualisiert",
"errorModifyingStorage": "Der neue Speicherplatz ist für dieses Mitglied ungültig.",
"generalErrorWhileModifyingStorage": "Beim Ändern des Speicherplatzes ist ein Fehler aufgetreten.",
"restoreItems": "{{itemsToRecover}} verschoben nach {{destination}}",
Expand All @@ -1262,7 +1263,8 @@
"errorWhileLoadingWorkspace": "Fehler beim Laden des Arbeitsbereichs {{error}}",
"errorFetchingWorkspaceCredentials": "Fehler beim Abrufen der Anmeldeinformationen für den Arbeitsbereich {{error}}",
"invalidWorkspaceInvitationError": "Arbeitsbereich voll. Kontaktieren Sie den Eigentümer.",
"errorAcceptingWorkspaceInvitation": "Beim Annehmen der Einladung ist ein Fehler aufgetreten"
"errorAcceptingWorkspaceInvitation": "Beim Annehmen der Einladung ist ein Fehler aufgetreten",
"errorWhileUpdatingWorkspaceMembers": "Beim Aktualisieren der Mitglieder ist ein Fehler aufgetreten"
},
"actions": {
"undo": "Rückgängig machen",
Expand Down Expand Up @@ -1294,6 +1296,7 @@
"moreInfo": "Mehr Info",
"dismiss": "Zurückweisen",
"save": "Sichern",
"saveChanges": "Änderungen speichern",
"back": "Zurück",
"edit": "Bearbeite",
"submit": "Einreichen",
Expand All @@ -1311,7 +1314,9 @@
"report": "Missbrauch melden",
"yes": "Ja",
"no": "Nein",
"more": "Mehr"
"more": "Mehr",
"continue": "Fortsetzen",
"keepCurrent": "Aktuell behalten"
},
"drive": {
"usage": "Verwendung",
Expand Down Expand Up @@ -1644,6 +1649,14 @@
"nextBillingDate": "Nächstes Abrechnungsdatum",
"planLimit": "Abgerechnet für {{planLimit}} plan",
"subscription": "Abonnement",
"membersLabel": "Mitglieder",
"perUser": "pro Benutzer",
"members": {
"title": "Mitglieder",
"editMembers": "Mitglieder bearbeiten",
"numberOfMembers": "Anzahl der Mitglieder",
"expandNumber": "Die Anzahl der Mitglieder erweitern."
},
"lifetimeSubscription": {
"planType": "Lebenslang",
"text": "Keine kommenden Rechnungen"
Expand Down
35 changes: 33 additions & 2 deletions src/app/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,7 @@
"restoreItems": "{{itemsToRecover}} restored successfully",
"moveItems": "{{itemsToMove}} moved successfully",
"storageModified": "Storage modified successfully",
"membersUpdatedSuccessfully": "Members updated successfully",
"errorModifyingStorage": "The new storage is not valid for this member.",
"generalErrorWhileModifyingStorage": "Something went wrong while modifying storage",
"itemDeleted": "{{item}} deleted",
Expand All @@ -1318,7 +1319,8 @@
"errorWhileLoadingWorkspace": "Error while loading the workspace {{error}}",
"errorFetchingWorkspaceCredentials": "Error while fetching workspace credentials {{error}}",
"invalidWorkspaceInvitationError": "Workspace full. Contact the owner.",
"errorAcceptingWorkspaceInvitation": "Something went wrong while accepting the invitation"
"errorAcceptingWorkspaceInvitation": "Something went wrong while accepting the invitation",
"errorWhileUpdatingWorkspaceMembers": "Something went wrong while updating the members"
},
"actions": {
"undo": "Undo",
Expand Down Expand Up @@ -1349,6 +1351,7 @@
"moreInfo": "More info",
"dismiss": "Dismiss",
"save": "Save",
"saveChanges": "Save changes",
"saving": "Saving",
"share": "Share",
"back": "Back",
Expand All @@ -1368,7 +1371,9 @@
"report": "Report abuse",
"yes": "Yes",
"no": "No",
"more": "More"
"more": "More",
"continue": "Continue",
"keepCurrent": "Keep current"
},
"drive": {
"usage": "Usage",
Expand Down Expand Up @@ -1702,7 +1707,9 @@
"title": "Billing",
"nextBillingDate": "Next billing date",
"planLimit": "Billed for {{planLimit}} plan",
"membersLabel": "members",
"subscription": "Subscription",
"perUser": "per user",
"lifetimeSubscription": {
"planType": "Lifetime",
"text": "No upcoming billings"
Expand All @@ -1712,6 +1719,30 @@
"action": "Upgrade",
"actionDescription": "Increase your storage space and get more features"
},
"members": {
"title": "Members",
"editMembers": "Edit members",
"numberOfMembers": "Number of members",
"expandNumber": "Expand the number of members.",
"confirmUpdateModal": {
"title": "Change plan",
"confirmToProceed": {
"text1": "You are about to change your Internxt member plan from ",
"to": "to ",
"text2": ". Confirm your choice to proceed, please."
},
"current": "Current",
"new": "New",
"decreaseStorage": {
"text": "This will also decrease your total business storage from ",
"to": " to "
},
"increaseStorage": {
"text": "This will also increase your total business storage from ",
"to": " to "
}
}
},
"paymentMethod": {
"title": "Payment Method",
"editButton": "Edit payment method",
Expand Down
17 changes: 15 additions & 2 deletions src/app/i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1258,6 +1258,7 @@
"itemsMovedToTrash": "{{item}} movid{{s}} a la papelera",
"restoreItems": "{{itemsToRecover}} restaurad{{s}} con éxito",
"storageModified": "Almacenamiento modificado con éxito",
"membersUpdatedSuccessfully": "Miembros actualizados con éxito",
"errorModifyingStorage": "El nuevo almacenamiento no es válido para este miembro.",
"generalErrorWhileModifyingStorage": "Algo salió mal al modificar el almacenamiento.",
"moveItems": "{{itemsToMove}} movid{{s}} con éxito",
Expand All @@ -1282,7 +1283,8 @@
"errorWhileLoadingWorkspace": "Error al cargar el espacio de trabajo {{error}}",
"errorFetchingWorkspaceCredentials": "Error al obtener las credenciales del espacio de trabajo {{error}}",
"invalidWorkspaceInvitationError": "Espacio de trabajo lleno. Contacta al propietario.",
"errorAcceptingWorkspaceInvitation": "Ocurrió un error al aceptar la invitación"
"errorAcceptingWorkspaceInvitation": "Ocurrió un error al aceptar la invitación",
"errorWhileUpdatingWorkspaceMembers": "Ocurrió un error al actualizar los miembros"
},
"success": {
"passwordChanged": "Contraseña actualizada correctamente",
Expand Down Expand Up @@ -1328,6 +1330,7 @@
"moreInfo": "Más info",
"dismiss": "Dismiss",
"save": "Guardar",
"saveChanges": "Guardar cambios",
"saving": "Guardando",
"share": "Compartir",
"back": "Atrás",
Expand All @@ -1347,7 +1350,9 @@
"report": "Reportar abuso",
"yes": "Si",
"no": "No",
"more": "Más"
"more": "Más",
"continue": "Continuar",
"keepCurrent": "Mantener actual"
},
"drive": {
"usage": "Uso",
Expand Down Expand Up @@ -1680,6 +1685,14 @@
"nextBillingDate": "Próxima fecha de facturación",
"planLimit": "Facturado por plan de {{planLimit}}",
"subscription": "Suscripción",
"membersLabel": "miembros",
"perUser": "por usuario",
"members": {
"title": "Miembros",
"editMembers": "Editar miembros",
"numberOfMembers": "Número de miembros",
"expandNumber": "Ampliar el número de miembros."
},
"lifetimeSubscription": {
"planType": "De por vida",
"text": "Sin facturas pendientes"
Expand Down
17 changes: 15 additions & 2 deletions src/app/i18n/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,7 @@
"itemsMovedToTrash": "{{item}} déplacé vers la corbeille",
"restoreItems": "{{itemsToRecover}} restauré avec succès",
"storageModified": "Stockage modifié avec succès",
"membersUpdatedSuccessfully": "Membres mis à jour avec succès",
"errorModifyingStorage": "Le nouvel espace de stockage n'est pas valide pour ce membre.",
"generalErrorWhileModifyingStorage": "Une erreur s'est produite lors de la modification du stockage.",
"itemDeleted": "{{itemsToDelete}} supprimé",
Expand All @@ -1246,7 +1247,8 @@
"errorWhileLoadingWorkspace": "Erreur lors du chargement de l'espace de travail {{error}}",
"errorFetchingWorkspaceCredentials": "Erreur lors de la récupération des identifiants de l'espace de travail {{error}}",
"invalidWorkspaceInvitationError": "Espace de travail plein. Contactez le propriétaire.",
"errorAcceptingWorkspaceInvitation": "Une erreur s'est produite lors de l'acceptation de l'invitation"
"errorAcceptingWorkspaceInvitation": "Une erreur s'est produite lors de l'acceptation de l'invitation",
"errorWhileUpdatingWorkspaceMembers": "Une erreur s'est produite lors de la mise à jour des membres"
},
"actions": {
"undo": "Annuler",
Expand Down Expand Up @@ -1278,6 +1280,7 @@
"moreInfo": "Plus d'informations",
"dismiss": "Rejeter",
"save": "Enregistrer",
"saveChanges": "Enregistrer les modifications",
"saving": "Sauvagarde en cours",
"back": "Retourner",
"edit": "Éditer",
Expand All @@ -1296,7 +1299,9 @@
"report": "Signaler un abus",
"yes": "Oui",
"no": "Non",
"more": "Plus"
"more": "Plus",
"continue": "Continuer",
"keepCurrent": "Garder actuel"
},
"drive": {
"usage": "Usage",
Expand Down Expand Up @@ -1629,6 +1634,14 @@
"nextBillingDate": "Prochaine date de facturation",
"planLimit": "Facturé pour un forfait de {{planLimit}}",
"subscription": "Abonnement",
"membersLabel": "membres",
"perUser": "par utilisateur",
"members": {
"title": "Membres",
"editMembers": "Modifier les membres",
"numberOfMembers": "Nombre de membres",
"expandNumber": "Augmenter le nombre de membres."
},
"lifetimeSubscription": {
"planType": "Durée de vie",
"text": "Pas de facturation à venir"
Expand Down
17 changes: 15 additions & 2 deletions src/app/i18n/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -1286,6 +1286,7 @@
"itemsMovedToTrash": "{{item}} spostati nel cestino",
"restoreItems": "{{itemsToRecover}} ripristinato correttamente",
"storageModified": "Archiviazione modificata con successo",
"membersUpdatedSuccessfully": "Membri aggiornati con successo",
"errorModifyingStorage": "Il nuovo spazio di archiviazione non è valido per questo membro.",
"generalErrorWhileModifyingStorage": "Si è verificato un errore durante la modifica dello spazio di archiviazione.",
"itemDeleted": "{{item}} eliminate",
Expand All @@ -1306,7 +1307,8 @@
"errorWhileLoadingWorkspace": "Errore durante il caricamento dell'area di lavoro {{error}}",
"errorFetchingWorkspaceCredentials": "Errore durante il recupero delle credenziali dell'area di lavoro {{error}}",
"invalidWorkspaceInvitationError": "Spazio di lavoro pieno. Contatta il proprietario.",
"errorAcceptingWorkspaceInvitation": "Si è verificato un errore durante l'accettazione dell'invito"
"errorAcceptingWorkspaceInvitation": "Si è verificato un errore durante l'accettazione dell'invito",
"errorWhileUpdatingWorkspaceMembers": "Si è verificato un errore durante l'aggiornamento dei membri"
},
"actions": {
"undo": "Annulla",
Expand Down Expand Up @@ -1338,6 +1340,7 @@
"moreInfo": "Maggiori informazioni",
"dismiss": "Licenziare",
"save": "Salva",
"saveChanges": "Salva modifiche",
"saving": "Salvare",
"back": "Indietro",
"edit": "Modifica",
Expand All @@ -1356,7 +1359,9 @@
"report": "Segnala abuso",
"yes": "Sì",
"no": "No",
"more": "Di più"
"more": "Di più",
"continue": "Continua",
"keepCurrent": "Mantieni attuale"
},
"drive": {
"usage": "Utilizzo",
Expand Down Expand Up @@ -1689,6 +1694,14 @@
"nextBillingDate": "Prossima data di fatturazione",
"planLimit": "Fatturato per un piano da {{planLimit}}",
"subscription": "Abbonamento",
"membersLabel": "membri",
"perUser": "per utente",
"members": {
"title": "Membri",
"editMembers": "Modifica membri",
"numberOfMembers": "Numero di membri",
"expandNumber": "Espandi il numero di membri."
},
"lifetimeSubscription": {
"planType": "Durata della vita",
"text": "Nessuna fatturazione imminente"
Expand Down
Loading
Loading