Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

typos web

Manav Rathi798977e395b0
diff --git a/web/apps/accounts/src/pages/passkeys/index.tsx b/web/apps/accounts/src/pages/passkeys/index.tsx
index 989ba87e05..671ea54876 100644
--- a/web/apps/accounts/src/pages/passkeys/index.tsx
+++ b/web/apps/accounts/src/pages/passkeys/index.tsx
@@ -237,7 +237,7 @@ interface ManagePasskeyDrawerProps {
*/
passkey: Passkey | undefined;
/**
- * Callback to invoke when the passkey in the modifed or deleted.
+ * Callback to invoke when the passkey in the modified or deleted.
*
* The passkey that the drawer is showing will be out of date at this point,
* so the list of passkeys should be refreshed and the drawer closed.
diff --git a/web/apps/auth/src/services/remote.ts b/web/apps/auth/src/services/remote.ts
index 8311c5c9cb..eccf7ab402 100644
--- a/web/apps/auth/src/services/remote.ts
+++ b/web/apps/auth/src/services/remote.ts
@@ -32,7 +32,7 @@ export const getAuthCodes = async (masterKey: Uint8Array): Promise<Code[]> => {
})
.filter((f) => f !== undefined)
.filter((f) => {
- // Do not show trashed entries in the web inteface.
+ // Do not show trashed entries in the web interface.
return !f.codeDisplay?.trashed;
})
.sort((a, b) => {
diff --git a/web/apps/payments/README.md b/web/apps/payments/README.md
index e7d76a05d1..2670a761a9 100644
--- a/web/apps/payments/README.md
+++ b/web/apps/payments/README.md
@@ -60,7 +60,7 @@ yarn dev:payments
1. Install the [stripe-cli](https://docs.stripe.com/stripe-cli) and capture the
webhook signing secret.
-2. Define this secret within your `musuem.yaml`
+2. Define this secret within your `museum.yaml`
3. Update the `whitelisted-redirect-urls` so that it supports redirecting to the
locally running payments app.
diff --git a/web/apps/payments/src/services/billing.ts b/web/apps/payments/src/services/billing.ts
index 20581f5c63..b7c911fd82 100644
--- a/web/apps/payments/src/services/billing.ts
+++ b/web/apps/payments/src/services/billing.ts
@@ -212,7 +212,7 @@ interface UpdateStripeSubscriptionResponse {
}
/**
- * Make a request to museum to update an existing Stript subscription with
+ * Make a request to museum to update an existing Stripe subscription with
* {@link productID} for the user.
*/
async function updateStripeSubscription(
diff --git a/web/apps/photos/src/components/Upload.tsx b/web/apps/photos/src/components/Upload.tsx
index a9c6b42240..55236f604f 100644
--- a/web/apps/photos/src/components/Upload.tsx
+++ b/web/apps/photos/src/components/Upload.tsx
@@ -1092,7 +1092,7 @@ const setPendingUploads = async (
type UploadTypeSelectorProps = ModalVisibilityProps & {
/**
- * The particular context / scenario in which this upload is occuring.
+ * The particular context / scenario in which this upload is occurring.
*/
intent: UploadTypeSelectorIntent;
/**
@@ -1186,7 +1186,7 @@ const UploadOptions: React.FC<UploadOptionsProps> = ({
onSelect,
onClose,
}) => {
- // [Note: Dialog state remains preseved on reopening]
+ // [Note: Dialog state remains preserved on reopening]
//
// Keep dialog content specific state here, in a separate component, so that
// this state is not tied to the lifetime of the dialog.
diff --git a/web/apps/photos/src/services/upload/upload-service.ts b/web/apps/photos/src/services/upload/upload-service.ts
index 904e4bd17c..5dc3d1ff28 100644
--- a/web/apps/photos/src/services/upload/upload-service.ts
+++ b/web/apps/photos/src/services/upload/upload-service.ts
@@ -551,7 +551,7 @@ export const uploader = async (
worker: CryptoWorker,
isCFUploadProxyDisabled: boolean,
abortIfCancelled: () => void,
- makeProgessTracker: MakeProgressTracker,
+ makeProgressTracker: MakeProgressTracker,
): Promise<UploadResponse> => {
log.info(`Upload ${fileName} | start`);
try {
@@ -655,7 +655,7 @@ export const uploader = async (
const backupedFile = await uploadToBucket(
encryptedFilePieces,
- makeProgessTracker,
+ makeProgressTracker,
isCFUploadProxyDisabled,
abortIfCancelled,
);
@@ -736,7 +736,7 @@ export const uploader = async (
* also have access to the full path of this file.
*
* 3. In addition, when running in the desktop app we have the ability to
- * initate programmatic access absolute paths on the user's file system. For
+ * initiate programmatic access absolute paths on the user's file system. For
* example, if the user asks us to watch certain folders on their disk for
* changes, we'll be able to pick up new images being added, and in such
* cases, the parameter here will be a path. Another example is when resuming
@@ -1389,7 +1389,7 @@ const encryptFileStream = async (
const uploadToBucket = async (
encryptedFilePieces: EncryptedFilePieces,
- makeProgessTracker: MakeProgressTracker,
+ makeProgressTracker: MakeProgressTracker,
isCFUploadProxyDisabled: boolean,
abortIfCancelled: () => void,
): Promise<BackupedFile> => {
@@ -1410,7 +1410,7 @@ const uploadToBucket = async (
await uploadStreamUsingMultipart(
localID,
encryptedData,
- makeProgessTracker,
+ makeProgressTracker,
isCFUploadProxyDisabled,
abortIfCancelled,
));
@@ -1421,7 +1421,7 @@ const uploadToBucket = async (
: await readEntireStream(encryptedData.stream);
fileSize = data.length;
- const progressTracker = makeProgessTracker(localID);
+ const progressTracker = makeProgressTracker(localID);
const fileUploadURL = await uploadService.getUploadURL();
if (!isCFUploadProxyDisabled) {
fileObjectKey = await UploadHttpClient.putFileV2(
@@ -1487,7 +1487,7 @@ interface PartEtag {
async function uploadStreamUsingMultipart(
fileLocalID: number,
dataStream: EncryptedFileStream,
- makeProgessTracker: MakeProgressTracker,
+ makeProgressTracker: MakeProgressTracker,
isCFUploadProxyDisabled: boolean,
abortIfCancelled: () => void,
) {
@@ -1512,7 +1512,7 @@ async function uploadStreamUsingMultipart(
const uploadChunk = await combineChunksToFormUploadPart(streamReader);
fileSize += uploadChunk.length;
- const progressTracker = makeProgessTracker(
+ const progressTracker = makeProgressTracker(
fileLocalID,
percentPerPart,
index,
diff --git a/web/apps/photos/src/services/upload/uploadManager.ts b/web/apps/photos/src/services/upload/uploadManager.ts
index b36ef2a612..21c703633a 100644
--- a/web/apps/photos/src/services/upload/uploadManager.ts
+++ b/web/apps/photos/src/services/upload/uploadManager.ts
@@ -370,7 +370,7 @@ class UploadManager {
* Upload files
*
* This method waits for all the files to get uploaded (successfully or
- * unsucessfully) before returning.
+ * unsuccessfully) before returning.
*
* It is an error to call this method when there is already an in-progress
* upload.
diff --git a/web/apps/photos/src/services/watch.ts b/web/apps/photos/src/services/watch.ts
index 44428bbe12..3088158167 100644
--- a/web/apps/photos/src/services/watch.ts
+++ b/web/apps/photos/src/services/watch.ts
@@ -112,7 +112,7 @@ class FolderWatcher {
/**
* Temporarily pause syncing and cancel any running uploads.
*
- * This frees up the uploader for handling user initated uploads.
+ * This frees up the uploader for handling user initiated uploads.
*/
pauseRunningSync() {
this.isPaused = true;
diff --git a/web/apps/photos/src/styles/photoswipe.css b/web/apps/photos/src/styles/photoswipe.css
index 3a5016d21c..6d82fbc1d5 100644
--- a/web/apps/photos/src/styles/photoswipe.css
+++ b/web/apps/photos/src/styles/photoswipe.css
@@ -221,7 +221,7 @@
This is the current magic incantation that seems to get them to play without
the video's frame jittering. Note that the streaming hls-video elements work
fine without any workarounds, it is only the vanilla video elements that have
- this issue and necessiate this workaround. The downside is that clicking
+ this issue and necessitate this workaround. The downside is that clicking
"outside" the video works for hls-video, but not for vanilla videos.
*/
.pswp-ente media-controller.ente-vanilla-video {
diff --git a/web/docs/dev.md b/web/docs/dev.md
index 807440573a..06ecb9bade 100644
--- a/web/docs/dev.md
+++ b/web/docs/dev.md
@@ -57,7 +57,7 @@ full list of such aliases. The two common patterns are `dev:<app-name>` for
running a local development server, and `build:<app-name>` for creating a
production build.
-> Tip: `yarn dev` is a shorcut for `yarn dev:photos`
+> Tip: `yarn dev` is a shortcut for `yarn dev:photos`
Note that yarn does not automatically update `node_modules` if you switch to a
branch that has added or modified dependencies. So if you encounter unexpected
diff --git a/web/packages/accounts/pages/credentials.tsx b/web/packages/accounts/pages/credentials.tsx
index a42a7966b7..c0f9013394 100644
--- a/web/packages/accounts/pages/credentials.tsx
+++ b/web/packages/accounts/pages/credentials.tsx
@@ -90,7 +90,7 @@ const Page: React.FC = () => {
// Set a flag that causes new interactive key attributes to
// be generated.
setIsFirstLogin(true);
- // This should be a rare occurence, instead of building the
+ // This should be a rare occurrence, instead of building the
// scaffolding to update all the in-memory state, just
// reload everything.
window.location.reload();
diff --git a/web/packages/accounts/services/passkey.ts b/web/packages/accounts/services/passkey.ts
index f1d64c5054..3e7cd99683 100644
--- a/web/packages/accounts/services/passkey.ts
+++ b/web/packages/accounts/services/passkey.ts
@@ -197,7 +197,7 @@ const getAccountsTokenAndURL = async () => {
.object({
// The origin that serves the accounts app.
accountsUrl: z.string(),
- // A token that can be used to autheticate with the accounts app.
+ // A token that can be used to authenticate with the accounts app.
accountsToken: z.string(),
})
.parse(await res.json());
diff --git a/web/packages/base/components/EnteSwitch.tsx b/web/packages/base/components/EnteSwitch.tsx
index 191d62fc0e..b339fafecb 100644
--- a/web/packages/base/components/EnteSwitch.tsx
+++ b/web/packages/base/components/EnteSwitch.tsx
@@ -47,7 +47,7 @@ export const EnteSwitch: React.FC<SwitchProps> = styled((props) => (
outline: `2px solid ${theme.vars.palette.stroke.muted}`,
outlineOffset: "-2px",
},
- // Same for when the switch is actived.
+ // Same for when the switch is active.
".MuiSwitch-switchBase:active + .MuiSwitch-track": {
outline: `1px solid ${theme.vars.palette.stroke.faint}`,
outlineOffset: "-1px",
diff --git a/web/packages/base/components/MiniDialog.tsx b/web/packages/base/components/MiniDialog.tsx
index 734c92c7fc..21e48f17e1 100644
--- a/web/packages/base/components/MiniDialog.tsx
+++ b/web/packages/base/components/MiniDialog.tsx
@@ -91,7 +91,7 @@ export interface MiniDialogAttributes {
* be shown on the button until the promise settles.
*
* If this function is not provided, or if the function completes /
- * fullfills, then then the dialog is automatically closed.
+ * fulfills, then then the dialog is automatically closed.
*
* Otherwise (that is, if the provided function throws), the dialog
* remains open, showing a generic error.
diff --git a/web/packages/base/components/RowButton.tsx b/web/packages/base/components/RowButton.tsx
index 4852541481..cfe328f7ee 100644
--- a/web/packages/base/components/RowButton.tsx
+++ b/web/packages/base/components/RowButton.tsx
@@ -134,7 +134,7 @@ interface RowButtonProps {
* except we only support two cases for this row button component:
*
* - "primary" (default): A row button that uses "text.base" as the color of
- * the text (and an approprite background color, if needed, based on the
+ * the text (and an appropriate background color, if needed, based on the
* value of the {@link variant}).
*
* - "critical": A row button that uses "critical.main" as the color of the
diff --git a/web/packages/base/components/utils/mui-theme.d.ts b/web/packages/base/components/utils/mui-theme.d.ts
index 8c84a7c982..faeef7901c 100644
--- a/web/packages/base/components/utils/mui-theme.d.ts
+++ b/web/packages/base/components/utils/mui-theme.d.ts
@@ -82,7 +82,7 @@ declare module "@mui/material/styles" {
*/
critical: PaletteColor;
/**
- * Neutral tranparent colors for the stroke of icons and other outlines.
+ * Neutral transparent colors for the stroke of icons and other outlines.
*
* These change with the color scheme.
*
diff --git a/web/packages/base/components/utils/sx.ts b/web/packages/base/components/utils/sx.ts
index 3e0ef52a82..e3f0cf301e 100644
--- a/web/packages/base/components/utils/sx.ts
+++ b/web/packages/base/components/utils/sx.ts
@@ -6,7 +6,7 @@ import { type SystemStyleObject } from "@mui/system";
* trying to spread them.
*
* The recommended pattern to use sx props in our own component (whilst
- * forwarding them to the underyling MUI component) is to:
+ * forwarding them to the underlying MUI component) is to:
*
* ...(Array.isArray(sx) ? sx : [sx])
*
diff --git a/web/packages/base/context.ts b/web/packages/base/context.ts
index 729965ead8..ca3ee1fda6 100644
--- a/web/packages/base/context.ts
+++ b/web/packages/base/context.ts
@@ -18,7 +18,7 @@ export interface BaseContextT {
* Show a "mini dialog" with the given attributes.
*
* Mini dialogs (see {@link AttributedMiniDialog}) are meant for simple
- * confirmation or notications. Their appearance and functionality can be
+ * confirmation or notifications. Their appearance and functionality can be
* customized by providing appropriate {@link MiniDialogAttributes}.
*/
showMiniDialog: (attributes: MiniDialogAttributes) => void;
diff --git a/web/packages/base/env.ts b/web/packages/base/env.ts
index 55e4a55dd8..1164164ba6 100644
--- a/web/packages/base/env.ts
+++ b/web/packages/base/env.ts
@@ -16,7 +16,7 @@ export const isDevBuild = process.env.NODE_ENV == "development";
* of a web browser.
*
* In particular, this is `false` when we're running in a web worker,
- * irrespecitve of whether the worker is running in a Node.js context or a web
+ * irrespective of whether the worker is running in a Node.js context or a web
* browser context.
*
* > We can be running in a browser context either if the user has the page open
diff --git a/web/packages/base/i18n.ts b/web/packages/base/i18n.ts
index a2e3cd0d86..6462ff1022 100644
--- a/web/packages/base/i18n.ts
+++ b/web/packages/base/i18n.ts
@@ -49,7 +49,7 @@ const defaultLocale: SupportedLocale = "en-US";
*
* In addition to the base i18next package, we use two of its plugins:
*
- * - i18next-http-backend, for loading the JSON files containin the translations
+ * - i18next-http-backend, for loading the JSON files containing the translations
* at runtime, and
*
* - react-i18next, which adds React specific APIs
diff --git a/web/packages/base/id.ts b/web/packages/base/id.ts
index 5b9cebbbaa..025d4344e0 100644
--- a/web/packages/base/id.ts
+++ b/web/packages/base/id.ts
@@ -3,7 +3,7 @@ import { customAlphabet } from "nanoid";
/**
* Remove _ and - from the default set to have better looking IDs that can also
* be selected in the editor quickly ("-" prevents this), and which we can
- * prefix unambigously ("_" is used for that).
+ * prefix unambiguously ("_" is used for that).
*
* To compensate, increase length from the default of 21 to 22.
*
diff --git a/web/packages/base/next.config.base.js b/web/packages/base/next.config.base.js
index f9b118de1d..5bb855f792 100644
--- a/web/packages/base/next.config.base.js
+++ b/web/packages/base/next.config.base.js
@@ -114,7 +114,7 @@ const nextConfig = {
env: { gitSHA, appName, isDesktop, desktopAppVersion },
// Ask Next to use a separate dist directory for the desktop during
- // development. This allows us run dev servers simulataneously for both web
+ // development. This allows us run dev servers simultaneously for both web
// and desktop code without them stepping on each others toes.
...(process.env.NODE_ENV != "production" && isDesktop
? { distDir: ".next-desktop" }
diff --git a/web/packages/base/types/ipc.ts b/web/packages/base/types/ipc.ts
index 07f6b79db7..b27fade8dd 100644
--- a/web/packages/base/types/ipc.ts
+++ b/web/packages/base/types/ipc.ts
@@ -403,7 +403,7 @@ export interface Electron {
/**
* Return the list of folder watches, pruning non-existing directories.
*
- * The list of folder paths (and auxillary details) is persisted in the
+ * The list of folder paths (and auxiliary details) is persisted in the
* Node.js layer. The implementation of this function goes through the
* list, permanently removes any watches whose on-disk directory is no
* longer present, and returns this pruned list of watches.
diff --git a/web/packages/base/worker/comlink-worker.ts b/web/packages/base/worker/comlink-worker.ts
index dbd4b67162..44169c2e43 100644
--- a/web/packages/base/worker/comlink-worker.ts
+++ b/web/packages/base/worker/comlink-worker.ts
@@ -5,7 +5,7 @@ import log, { logToDisk } from "ente-base/log";
/**
* A minimal wrapper for a web {@link Worker}, proxying a class of type T.
*
- * `comlink` is a library that simplies working with web workers by
+ * `comlink` is a library that simplifies working with web workers by
* transparently proxying objects across the boundary instead of us needing to
* work directly with the raw postMessage interface.
*
diff --git a/web/packages/build-config/tsconfig-typecheck.json b/web/packages/build-config/tsconfig-typecheck.json
index ca5722c748..d6d6ddab5f 100644
--- a/web/packages/build-config/tsconfig-typecheck.json
+++ b/web/packages/build-config/tsconfig-typecheck.json
@@ -54,7 +54,7 @@
*/
"moduleResolution": "bundler",
- /* Allow use of `.tsx` files, but don't tranform them */
+ /* Allow use of `.tsx` files, but don't transform them */
"jsx": "preserve",
/* Ask TypeScript to warn us if we use TypeScript features that cannot
diff --git a/web/packages/gallery/components/FileInfo.tsx b/web/packages/gallery/components/FileInfo.tsx
index e6e1bf63a5..1b05aac2ed 100644
--- a/web/packages/gallery/components/FileInfo.tsx
+++ b/web/packages/gallery/components/FileInfo.tsx
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */
/* TODO: Split this file to deal with the ente-new/photos imports.
1. Move common components into FileInfoComponents.tsx
-2. Move the rest out to files in the apps themeselves:
+2. Move the rest out to files in the apps themselves:
- albums/SharedFileInfo
- photos/FileInfo
*/
diff --git a/web/packages/gallery/components/viewer/data-source.ts b/web/packages/gallery/components/viewer/data-source.ts
index 09adafcb97..8d08374cc7 100644
--- a/web/packages/gallery/components/viewer/data-source.ts
+++ b/web/packages/gallery/components/viewer/data-source.ts
@@ -300,7 +300,7 @@ export interface ItemDataOpts {
* - For images this will be the single original.
*
* - For videos this will be either the HLS playlist to a streamable variant of
- * the video (if the video has one available), or the original video itsel.
+ * the video (if the video has one available), or the original video itself.
*
* - For live photos, this will also be a two step process, first fetching the
* video component, then fetching the image component.
diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.ts
index c56f3c1275..2cbfbf17e0 100644
--- a/web/packages/gallery/components/viewer/photoswipe.ts
+++ b/web/packages/gallery/components/viewer/photoswipe.ts
@@ -495,7 +495,7 @@ export class FileViewerPhotoSwipe {
* given controller. Otherwise hide the media controls.
*/
const updateMediaControls = (itemData: ItemData) => {
- // For reasons possibily related to the 1 tick wait in the hls-video
+ // For reasons possibly related to the 1 tick wait in the hls-video
// implementation (`await Promise.resolve()`), the association
// between media-controller and media-control-bar doesn't get
// established on the first slide if we reopen the file viewer.
diff --git a/web/packages/gallery/services/exif.ts b/web/packages/gallery/services/exif.ts
index ea17385caf..3c79619936 100644
--- a/web/packages/gallery/services/exif.ts
+++ b/web/packages/gallery/services/exif.ts
@@ -365,7 +365,7 @@ const parseIPTCDate = (
* file, taking into account any orientation tags that are also present.
*/
const parseDimensions = (tags: RawExifTags) => {
- // Go through all possiblities in order, returning the first pair with both
+ // Go through all possibilities in order, returning the first pair with both
// the width and height defined, and non-zero.
const pair = (w: number | undefined, h: number | undefined) =>
@@ -513,7 +513,7 @@ export type RawExifTags = Omit<ExifReader.ExpandedTags, "Thumbnail" | "xmp"> & {
* the `includeUnknown` flag, but for our case it is useful since it acts as a
* safeguard against extracting an unbounded amounts of data (for example, there
* is an Exif tag for thumbnails. While we specifically filter out that
- * particular tag, it is not hard to imagine some other unforseen vendor
+ * particular tag, it is not hard to imagine some other unforeseen vendor
* specific tag containing a similarly large amounts of embedded data).
*
* So we keep the default behaviour of returning only the tags that the library
@@ -593,7 +593,7 @@ export const extractRawExif = async (blob: Blob): Promise<RawExifTags> => {
* Return a number from a raw Exif tag value.
*
* Some numeric Exif values are stored as arrays of two numbers [p, q]
- * represeting a rational number p/q. ExifReader usually converts this and for
+ * representing a rational number p/q. ExifReader usually converts this and for
* us, but not always.
*
* This function takes such potentially ambiguous (already converted or not)
diff --git a/web/packages/gallery/services/ffmpeg/index.ts b/web/packages/gallery/services/ffmpeg/index.ts
index d7ca129482..26dddb7f4b 100644
--- a/web/packages/gallery/services/ffmpeg/index.ts
+++ b/web/packages/gallery/services/ffmpeg/index.ts
@@ -103,7 +103,7 @@ const makeGenThumbnailCommand = (seekTime: number) => [
* of videos that the user is uploading.
*
* @param uploadItem A {@link File}, or the absolute path to a file on the
- * user's local file sytem. A path can only be provided when we're running in
+ * user's local file system. A path can only be provided when we're running in
* the context of our desktop app.
*/
export const extractVideoMetadata = async (
diff --git a/web/packages/gallery/services/video.ts b/web/packages/gallery/services/video.ts
index eedae910a3..e3ba60ed49 100644
--- a/web/packages/gallery/services/video.ts
+++ b/web/packages/gallery/services/video.ts
@@ -17,7 +17,7 @@ interface HLSPlaylistData {
}
/**
- * Return a HLS playlist that can be used to stream playback of thne given video
+ * Return a HLS playlist that can be used to stream playback of then given video
* {@link file}.
*
* @param file An {@link EnteFile} of type video.
@@ -100,13 +100,13 @@ export const hlsPlaylistDataForFile = async (
// sub-range in bytes, and if present, o is the integer indicating the
// start of the sub-range as a byte offset from the beginning of the
// resource. If o is not present, the sub-range begins at the next byte
- // following the sub-range of the preivous media segment.
+ // following the sub-range of the previous media segment.
//
// - Media segments may be encrypted, and the EXT-X-KEY tag specifies how to
// decrypt them. It applies to all subsequent media segment (until another
// EXT-X-KEY). Value is an `<attribute-list>`, consisting of the METHOD
// (AES-128 for us), URI and IV attributes. The URI attribute value is a
- // quoted string containing a URI that specfies how to obtain the key.
+ // quoted string containing a URI that specifies how to obtain the key.
const playlist = playlistTemplate.replaceAll(
"\noutput.ts",
diff --git a/web/packages/media/file-metadata.ts b/web/packages/media/file-metadata.ts
index cc2ce171c8..4fcda2e238 100644
--- a/web/packages/media/file-metadata.ts
+++ b/web/packages/media/file-metadata.ts
@@ -286,7 +286,7 @@ export interface PublicMagicMetadata {
* [Note: Use passthrough for metadata Zod schemas]
*
* It is important to (recursively) use the {@link passthrough} option when
- * definining Zod schemas for the various metadata types (the plaintext JSON
+ * defining Zod schemas for the various metadata types (the plaintext JSON
* objects) because we want to retain all the fields we get from remote. There
* might be other, newer, clients out there adding fields that the current
* client might not we aware of, and we don't want to overwrite them.
@@ -718,7 +718,7 @@ export const isArchivedFile = (item: EnteFile) =>
export const fileLocation = (file: EnteFile): Location | undefined => {
// TODO: EnteFile types. Need to verify that metadata itself, and
// metadata.lat/lng can not be null (I think they likely can, if so need to
- // update the types). Need to supress the linter meanwhile.
+ // update the types). Need to suppress the linter meanwhile.
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (!file.metadata) return undefined;
@@ -765,7 +765,7 @@ export const fileCaption = (file: EnteFile): string | undefined =>
* The disadvantage is that it increases the network payload (anything attached
* to an {@link EnteFile} comes back in the diff response), and thus latency and
* local storage costs for all clients. Thus, we need to curate what gets
- * preseved within the {@link EnteFile}'s metadatum.
+ * preserved within the {@link EnteFile}'s metadatum.
*/
export interface ParsedMetadata {
/** The width of the image, in pixels. */
@@ -796,7 +796,7 @@ export interface ParsedMetadata {
* UTC offset of their local data/time.
*
* This is beginning to change with smartphone cameras, and is even reflected in
- * the standards. e.g. Exif metadata now has auxillary "OffsetTime*" tags for
+ * the standards. e.g. Exif metadata now has auxiliary "OffsetTime*" tags for
* indicating the UTC offset of the local date/time in the existing Exif tags
* (See: [Note: Exif dates]).
*
diff --git a/web/packages/media/file.ts b/web/packages/media/file.ts
index ff6172dcd2..b42f48a6b4 100644
--- a/web/packages/media/file.ts
+++ b/web/packages/media/file.ts
@@ -122,7 +122,7 @@ export interface EncryptedEnteFile {
* the collection to which it belongs.
*
* (note: This is always present. retaining this note until we remove
- * nullability uncertainity from the types).
+ * nullability uncertainty from the types).
*/
encryptedKey: string;
/**
@@ -130,7 +130,7 @@ export interface EncryptedEnteFile {
* encryption key.
*
* (note: This is always present. retaining this note until we remove
- * nullability uncertainity from the types).
+ * nullability uncertainty from the types).
*/
keyDecryptionNonce: string;
isDeleted: boolean;
diff --git a/web/packages/new/photos/components/DevSettings.tsx b/web/packages/new/photos/components/DevSettings.tsx
index 83c601c48d..26d5a3486b 100644
--- a/web/packages/new/photos/components/DevSettings.tsx
+++ b/web/packages/new/photos/components/DevSettings.tsx
@@ -74,7 +74,7 @@ const Contents: React.FC<ContentsProps> = (props) => {
[],
);
- // Even though this is async, this should be instantanous, we're just
+ // Even though this is async, this should be instantaneous, we're just
// reading the value from the local IndexedDB.
if (initialAPIOrigin === undefined) return <></>;
diff --git a/web/packages/new/photos/services/ml/clip.ts b/web/packages/new/photos/services/ml/clip.ts
index e0f151c94a..1d5a8f0683 100644
--- a/web/packages/new/photos/services/ml/clip.ts
+++ b/web/packages/new/photos/services/ml/clip.ts
@@ -114,7 +114,7 @@ const computeEmbedding = async (
): Promise<Float32Array> => {
// The image pre-preprocessing happens within the model itself, using ONNX
// primitives. This is more performant and also saves us from having to
- // reinvent (say) the antialising wheels.
+ // reinvent (say) the antialiasing wheels.
const { height, width, data: pixelData } = imageData;
const inputShape = [height, width, 4]; // [H, W, C]
return normalized(
diff --git a/web/packages/new/photos/services/ml/cluster.ts b/web/packages/new/photos/services/ml/cluster.ts
index a941bb357b..7189c2642e 100644
--- a/web/packages/new/photos/services/ml/cluster.ts
+++ b/web/packages/new/photos/services/ml/cluster.ts
@@ -53,7 +53,7 @@ export type ClusterFace = Omit<Face, "embedding"> & {
* clustering, with a bit of lookback (and a dollop of heuristics) to get the
* clusters to merge across batches.
*
- * The same logic is used for both the inital clustering and subsequent
+ * The same logic is used for both the initial clustering and subsequent
* incremental updates, just that the incremental updates will be much faster
* since most of the files will be skipped (as they already have a cluster
* assigned to them).
diff --git a/web/packages/new/photos/services/ml/face.ts b/web/packages/new/photos/services/ml/face.ts
index a6c58798cf..e3f4c4a94b 100644
--- a/web/packages/new/photos/services/ml/face.ts
+++ b/web/packages/new/photos/services/ml/face.ts
@@ -204,7 +204,7 @@ export interface Dimensions {
export interface Box {
/** The x coordinate of the the top left (xMin). */
x: number;
- /** The y coodinate of the top left (yMin). */
+ /** The y coordinate of the top left (yMin). */
y: number;
/** The width of the box. */
width: number;
@@ -328,7 +328,7 @@ const detectFaces = async (
): Promise<YOLOFaceDetection[]> => {
// The image pre-preprocessing happens within the model itself, using ONNX
// primitives. This is more performant and also saves us from having to
- // reinvent (say) the antialising wheels.
+ // reinvent (say) the antialiasing wheels.
const {
height: imageHeight,
width: imageWidth,
@@ -492,7 +492,7 @@ interface FaceAlignment {
* The bounding box of the transformed box.
*
* The affine transformation shifts the original detection box a new,
- * transformed, box (possibily rotated). This property is the bounding box
+ * transformed, box (possibly rotated). This property is the bounding box
* of that transformed box. It is in the coordinate system of the original,
* full, image on which the detection occurred.
*/
diff --git a/web/packages/new/photos/services/ml/index.ts b/web/packages/new/photos/services/ml/index.ts
index 22f19a1263..90ba1e427c 100644
--- a/web/packages/new/photos/services/ml/index.ts
+++ b/web/packages/new/photos/services/ml/index.ts
@@ -507,7 +507,7 @@ const getMLStatus = async (): Promise<MLStatus> => {
// The worker has a clustering progress set iff it is clustering. This
// overrides other behaviours.
- const clusteringProgress = await w.clusteringProgess;
+ const clusteringProgress = await w.clusteringProgress;
if (clusteringProgress) {
return {
phase: "clustering",
diff --git a/web/packages/new/photos/services/ml/worker.ts b/web/packages/new/photos/services/ml/worker.ts
index d41e112f18..c39e5136ed 100644
--- a/web/packages/new/photos/services/ml/worker.ts
+++ b/web/packages/new/photos/services/ml/worker.ts
@@ -100,7 +100,7 @@ export class MLWorker {
/** The last known state of the worker. */
public state: WorkerState = "init";
/** If the worker is currently clustering, then its last known progress. */
- public clusteringProgess: ClusteringProgress | undefined;
+ public clusteringProgress: ClusteringProgress | undefined;
private electron: ElectronMLWorker | undefined;
private delegate: MLWorkerDelegate | undefined;
@@ -335,7 +335,7 @@ export class MLWorker {
}
private updateClusteringProgress(progress: ClusteringProgress | undefined) {
- this.clusteringProgess = progress;
+ this.clusteringProgress = progress;
this.delegate?.workerDidUpdateStatus();
}
diff --git a/web/packages/new/photos/services/search/worker.ts b/web/packages/new/photos/services/search/worker.ts
index ce7d13a819..3f8529d548 100644
--- a/web/packages/new/photos/services/search/worker.ts
+++ b/web/packages/new/photos/services/search/worker.ts
@@ -456,7 +456,7 @@ const isWithinRadius = (
*
* The area bounded by the location tag becomes more elliptical with increase in
* the magnitude of the latitude on the cartesian plane. When latitude is 0
- * degrees, the ellipse is a circle with a = b = r. When latitude incrases, the
+ * degrees, the ellipse is a circle with a = b = r. When latitude increases, the
* major axis (a) has to be scaled by the secant of the latitude.
*/
const radiusScaleFactor = (lat: number) => 1 / Math.cos(lat * (Math.PI / 180));
diff --git a/web/packages/new/photos/services/user-details.ts b/web/packages/new/photos/services/user-details.ts
index f848441c10..14716f3aed 100644
--- a/web/packages/new/photos/services/user-details.ts
+++ b/web/packages/new/photos/services/user-details.ts
@@ -175,7 +175,7 @@ export const logoutUserDetails = () => {
};
/**
- * Read in the locally persisted settings into memory, otherwise initate a
+ * Read in the locally persisted settings into memory, otherwise initiate a
* network requests to fetch the latest values (but don't wait for it to
* complete).
*
diff --git a/web/packages/new/photos/services/user-entity/index.ts b/web/packages/new/photos/services/user-entity/index.ts
index 820c0e1f0f..45331e966a 100644
--- a/web/packages/new/photos/services/user-entity/index.ts
+++ b/web/packages/new/photos/services/user-entity/index.ts
@@ -263,7 +263,7 @@ const getOrCreateEntityKeyB64 = async (
// Nada. Create a new one, put it to remote, save it locally, and return.
- // As a sanity check, genarate the key but immediately encrypt it as if it
+ // As a sanity check, generate the key but immediately encrypt it as if it
// were fetched from remote and then try to decrypt it before doing anything
// with it.
const generated = await generateEncryptedEntityKey(masterKey);
diff --git a/web/packages/utils/array.ts b/web/packages/utils/array.ts
index 248100c763..1d0387bb81 100644
--- a/web/packages/utils/array.ts
+++ b/web/packages/utils/array.ts
@@ -18,7 +18,7 @@ export const shuffled = <T>(xs: T[]): T[] =>
* Return the first non-empty string from the given list of strings.
*
* This function is needed because the `a ?? b` idiom doesn't do what you'd
- * expect when a is "". Perhaps the behaviour is wrong, perhaps the expecation
+ * expect when a is "". Perhaps the behaviour is wrong, perhaps the expectation
* is wrong; this function papers over the differences.
*
* If none of the strings are non-empty, or if there are no strings in the given
@@ -63,7 +63,7 @@ export const batch = <T>(xs: T[], batchSize: number): T[][] => {
};
/**
- * Split an array into two arrays - those that satisify the given
+ * Split an array into two arrays - those that satisfy the given
* {@link predicate}, and those that don't.
*
* @param xs The array to split.
diff --git a/web/packages/utils/promise.ts b/web/packages/utils/promise.ts
index e6670d076b..f5a39b62ee 100644
--- a/web/packages/utils/promise.ts
+++ b/web/packages/utils/promise.ts
@@ -91,7 +91,7 @@ export const throttled = (
* does not resolve within {@link timeoutMS}, then reject with a timeout error.
*
* Note that this does not abort {@link promise} itself - it will still get
- * settled, just its eventual state will be ignored if it gets fullfilled or
+ * settled, just its eventual state will be ignored if it gets fulfilled or
* rejected after we've already timed out.
*/
export const withTimeout = async <T>(