;
};
diff --git a/src/utils/common/apiUtil.ts b/src/utils/common/apiUtil.ts
index 8288e6d30..fc59793c0 100644
--- a/src/utils/common/apiUtil.ts
+++ b/src/utils/common/apiUtil.ts
@@ -4,7 +4,7 @@ export const getEndpoint = () => {
return endPoint;
};
-export const getFileUrl = (id: number) => {
+export const getFileURL = (id: number) => {
if (process.env.NEXT_PUBLIC_ENTE_ENDPOINT !== undefined) {
return (
`${process.env.NEXT_PUBLIC_ENTE_ENDPOINT}/files/download/${id}` ??
@@ -14,7 +14,7 @@ export const getFileUrl = (id: number) => {
return `https://files.ente.io/?fileID=${id}`;
};
-export const getThumbnailUrl = (id: number) => {
+export const getThumbnailURL = (id: number) => {
if (process.env.NEXT_PUBLIC_ENTE_ENDPOINT !== undefined) {
return (
`${process.env.NEXT_PUBLIC_ENTE_ENDPOINT}/files/preview/${id}` ??
@@ -24,11 +24,11 @@ export const getThumbnailUrl = (id: number) => {
return `https://thumbnails.ente.io/?fileID=${id}`;
};
-export const getSentryTunnelUrl = () => {
+export const getSentryTunnelURL = () => {
return `https://sentry-reporter.ente.io`;
};
-export const getPaymentsUrl = () => {
+export const getPaymentsURL = () => {
if (process.env.NEXT_PUBLIC_ENTE_ENDPOINT !== undefined) {
return process.env.NEXT_PUBLIC_ENTE_PAYMENT_ENDPOINT;
}
diff --git a/src/utils/crypto/index.ts b/src/utils/crypto/index.ts
index 9e1e39bd5..3b0604393 100644
--- a/src/utils/crypto/index.ts
+++ b/src/utils/crypto/index.ts
@@ -106,7 +106,7 @@ export const SaveKeyInSessionStore = async (
};
export const getRecoveryKey = async () => {
- let recoveryKey = null;
+ let recoveryKey: string = null;
try {
const cryptoWorker = await new CryptoWorker();
@@ -129,6 +129,7 @@ export const getRecoveryKey = async () => {
return recoveryKey;
} catch (e) {
logError(e, 'getRecoveryKey failed');
+ throw e;
}
};
@@ -138,7 +139,7 @@ async function createNewRecoveryKey() {
const cryptoWorker = await new CryptoWorker();
- const recoveryKey = await cryptoWorker.generateEncryptionKey();
+ const recoveryKey: string = await cryptoWorker.generateEncryptionKey();
const encryptedMasterKey: B64EncryptionResult =
await cryptoWorker.encryptToB64(masterKey, recoveryKey);
const encryptedRecoveryKey: B64EncryptionResult =
diff --git a/src/utils/storage/localForage.ts b/src/utils/storage/localForage.ts
index aa27dd08e..b807318a6 100644
--- a/src/utils/storage/localForage.ts
+++ b/src/utils/storage/localForage.ts
@@ -4,7 +4,6 @@ import localForage from 'localforage';
if (runningInBrowser()) {
localForage.config({
- driver: localForage.INDEXEDDB,
name: 'ente-files',
version: 1.0,
storeName: 'files',
diff --git a/src/utils/strings/englishConstants.tsx b/src/utils/strings/englishConstants.tsx
index 7ada30d45..271c704f9 100644
--- a/src/utils/strings/englishConstants.tsx
+++ b/src/utils/strings/englishConstants.tsx
@@ -109,26 +109,6 @@ const englishConstants = {
},
UPLOADING_FILES: 'file upload',
FILE_NOT_UPLOADED_LIST: 'the following files were not uploaded',
- FILE_UPLOAD_PROGRESS: (name: string, progress: number) => (
-
- {name}
- {' - '}
-
- {(() => {
- switch (progress) {
- case -1:
- return 'failed';
- case -2:
- return 'already uploaded, skipping...';
- case -3:
- return 'unsupported file format, skipping....';
- default:
- return `${progress}%`;
- }
- })()}
-
-
- ),
SUBSCRIPTION_EXPIRED: (action) => (
<>
your subscription has expired, please a{' '}
@@ -546,8 +526,11 @@ const englishConstants = {
BLOCKED_UPLOADS: 'blocked uploads',
INPROGRESS_UPLOADS: 'uploads in progress',
TOO_LARGE_UPLOADS: 'large files',
- TOO_LARGE_INFO:
+ LARGER_THAN_AVAILABLE_STORAGE_UPLOADS: 'insufficient storage',
+ LARGER_THAN_AVAILABLE_STORAGE_INFO:
'these files were not uploaded as they exceed the maximum size limit for your storage plan',
+ TOO_LARGE_INFO:
+ 'these files were not uploaded as they exceed our maximum file size limit',
UPLOAD_TO_COLLECTION: 'upload to album',
ARCHIVE: 'archive',
ALL: 'all',
@@ -621,6 +604,9 @@ const englishConstants = {
DATE_TIME_ORIGINAL: 'EXIF:DateTimeOriginal',
DATE_TIME_DIGITIZED: 'EXIF:DateTimeDigitized',
CUSTOM_TIME: 'custom time',
+ REOPEN_PLAN_SELECTOR_MODAL: 're-open plans',
+ OPEN_PLAN_SELECTOR_MODAL_FAILED: 'failed to open plans',
+ NOT_FOUND: '404 not found',
};
export default englishConstants;
diff --git a/yarn.lock b/yarn.lock
index fcb0daec0..a19a5143e 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4592,9 +4592,9 @@ ms@2.1.2, ms@^2.1.1:
integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
nanoid@^3.1.23:
- version "3.1.25"
- resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.1.25.tgz"
- integrity sha512-rdwtIXaXCLFAQbnfqDRnI6jaRHp9fTcYBjtFKE8eezcZ7LuLjhUaQGNeMXf1HmRoCH32CLz6XwX0TtxEOS/A3Q==
+ version "3.2.0"
+ resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.2.0.tgz#62667522da6673971cca916a6d3eff3f415ff80c"
+ integrity sha512-fmsZYa9lpn69Ad5eDn7FMcnnSR+8R34W9qJEijxYhTbfOWzr22n1QxCMzXLK+ODyW2973V3Fux959iQoUxzUIA==
native-url@0.3.4:
version "0.3.4"