feat: add snjs package

This commit is contained in:
Karol Sójko
2022-07-06 14:04:18 +02:00
parent 321a055bae
commit 0e40469e2f
296 changed files with 46109 additions and 187 deletions

View File

@@ -0,0 +1,18 @@
import { ProtocolExpirationDates, ProtocolVersion } from '@standardnotes/common'
export const ConfirmStrings = {
ProtocolVersionExpired(version: ProtocolVersion) {
return {
Message:
'The encryption version for your account is outdated and requires upgrade. ' +
'You may proceed with login, but are advised to perform a security update using the web or desktop application.\n\n' +
`If your account was created after ${ProtocolExpirationDates[
version
]?.toLocaleString()}, it may not be safe to continue signing in. ` +
'In that case, please discontinue your sign in request and contact support.\n\n' +
'For more information, visit standardnotes.com/help/security.',
Title: 'Update Recommended',
ConfirmButton: 'Sign In',
}
},
}

View File

@@ -0,0 +1,7 @@
export const InfoStrings = {
AccountDeleted: 'Your account has been successfully deleted.',
UnsupportedBackupFileVersion:
'This backup file was created using a newer version of the application and cannot be imported here. Please update your application and try again.',
BackupFileMoreRecentThanAccount:
"This backup file was created using a newer encryption version than your account's. Please run the available encryption upgrade and try again.",
}

View File

@@ -0,0 +1,3 @@
export const InputStrings = {
FileAccountPassword: 'File account password',
}

View File

@@ -0,0 +1,9 @@
export const NetworkStrings = {
Files: {
FailedStartUploadSession: 'Failed to start an upload session.',
FailedCloseUploadSession: 'Failed to close an upload session.',
FailedUploadFileChunk: 'Failed to upload file chunk.',
FailedDownloadFileChunk: 'Failed to download file chunk.',
FailedDeleteFile: 'Failed to delete file.',
},
}

View File

@@ -0,0 +1,11 @@
import { ConfirmStrings } from './Confirm'
import { InfoStrings } from './Info'
import { InputStrings } from './Input'
import { NetworkStrings } from './Network'
export const Strings = {
Info: InfoStrings,
Network: NetworkStrings,
Confirm: ConfirmStrings,
Input: InputStrings,
}