π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Update the docs too
Manav Rathic3a7952c4239
diff --git a/web/docs/dependencies.md b/web/docs/dependencies.mdindex b62faa38d5..236338a65b 100644--- a/web/docs/dependencies.md+++ b/web/docs/dependencies.md@@ -11,8 +11,8 @@ baseline for how our code be in all the workspaces in this (yarn) monorepo.- [typescript](https://www.typescriptlang.org/) - Type checker-They also need some support packages, which come from the leaf `@/build-config`-package:+They also need some support packages, which come from the leaf+`ente-build-config` package:- [@eslint/js](https://eslint.org/) provides JavaScript ESLint functionality,and provides the configuration recommended the by ESLint team.@@ -91,7 +91,8 @@ DOM.>> We need to repeat the dependency on react and its siblings in multiple> package.jsons to avoid the unmet peer dependency warnings printed by yarn.-> Ideally, the react dependencies can be specified just in the _@/base_ package.+> Ideally, the react dependencies can be specified just in the _ente-base_+> package.### MUI and Material Icons@@ -114,9 +115,9 @@ which provides Material icons exported as React components (a `SvgIcon`).> For a similar reason as with react,>> - the `@mui/material` dependency is also repeated at more places - the one in-> _@/base_ is the canonical one.-> - we need to add an explicit dependency to `mui/system` in _@/new_ even though-> we don't directly depend on it.+> _ente-base_ is the canonical one.+> - we need to add an explicit dependency to `mui/system` in _ente-new_ even+> though we don't directly depend on it.### Date pickersdiff --git a/web/docs/dev.md b/web/docs/dev.mdindex 7ab1ef22c0..807440573a 100644--- a/web/docs/dev.md+++ b/web/docs/dev.md@@ -70,7 +70,7 @@ To add a local package as a dependency, use `<package-name>@*`. The "\*" heredenotes any version.```sh-yarn workspace photos add '@/utils@*'+yarn workspace photos add 'ente-utils@*'```> Note: The yarn (classic) command above causes harmless but noisy diffs indiff --git a/web/packages/accounts/README.md b/web/packages/accounts/README.mdindex 0125d558e3..b3a027fa0d 100644--- a/web/packages/accounts/README.md+++ b/web/packages/accounts/README.md@@ -1,4 +1,4 @@-## @/accounts+## ente-accountsA package for sharing the pages involved in the signup/login flow.diff --git a/web/packages/base/README.md b/web/packages/base/README.mdindex 81e93fee25..723b8a7b48 100644--- a/web/packages/base/README.md+++ b/web/packages/base/README.md@@ -1,8 +1,8 @@-## @/base+## ente-baseA base (+ UI layer) package for sharing code between our production apps.-This is a higher layer package than `@/utils` (which is framework agnostic).+This is a higher layer package than `ente-utils` (which is framework agnostic).This package is meant for sharing code between our Next.js apps that use Reactand MUI. Both the photos and auth apps use it.diff --git a/web/packages/base/crypto/index.ts b/web/packages/base/crypto/index.tsindex cf02e8ce66..214f4d119e 100644--- a/web/packages/base/crypto/index.ts+++ b/web/packages/base/crypto/index.ts@@ -8,9 +8,9 @@** [Note: Crypto code hierarchy]*- * 1. @/base/crypto (Crypto API for our code)- * 2. @/base/crypto/libsodium (Lower level wrappers over libsodium)- * 3. libsodium-wrappers (JavaScript bindings to libsodium)+ * 1. ente-base/crypto (Crypto API for our code)+ * 2. ente-base/crypto/libsodium (Lower level wrappers over libsodium)+ * 3. libsodium-wrappers (JavaScript bindings to libsodium)** Our cryptography primitives are provided by libsodium, specifically, its* JavaScript bindings ("libsodium-wrappers"). This is the lowest layer. Notediff --git a/web/packages/base/crypto/worker.ts b/web/packages/base/crypto/worker.tsindex 7746195ca8..8e67927ecd 100644--- a/web/packages/base/crypto/worker.ts+++ b/web/packages/base/crypto/worker.ts@@ -6,8 +6,8 @@ import * as libsodium from "./libsodium";/*** A web worker that exposes some of the functions defined in either the Ente- * specific layer (@/base/crypto) or the libsodium layer- * (@/base/crypto/libsodium.ts).+ * specific layer (ente-base/crypto) or the libsodium layer+ * (ente-base/crypto/libsodium.ts).** See: [Note: Crypto code hierarchy].*diff --git a/web/packages/build-config/README.md b/web/packages/build-config/README.mdindex 249bf69159..024409d352 100644--- a/web/packages/build-config/README.md+++ b/web/packages/build-config/README.md@@ -1,4 +1,4 @@-## @/build-config+## ente-build-configBuild time configuration files. This can be thought of as a `devDependency` thatexports various config files that our packages use at build time.@@ -10,11 +10,11 @@ transpiled, it just exports static files that can be included verbatim.### Debugging-Too see what tsc is seeing (say when it is trying to type-check `@/utils`), use-`yarn workspace @/utils tsc --showConfig`.+Too see what tsc is seeing (e.g. when it is trying to type-check `ente-utils`),+use `yarn workspace ente-utils tsc --showConfig`.Similarly, to verify what ESLint is trying to do, use-`yarn workspace @/utils eslint --debug .`+`yarn workspace ente-utils eslint --debug .`If the issue is in VSCode, open the output window of the corresponding plugin,it might be telling us what's going wrong there. In particular, when changingdiff --git a/web/packages/gallery/README.md b/web/packages/gallery/README.mdindex 49cddae88d..04c7ef64ab 100644--- a/web/packages/gallery/README.md+++ b/web/packages/gallery/README.md@@ -1,4 +1,4 @@-## @/gallery+## ente-galleryA package for sharing code between our apps that show media (photos, videos) ina gallery like view.diff --git a/web/packages/gallery/components/FileInfo.tsx b/web/packages/gallery/components/FileInfo.tsxindex 469e624b6d..e6e1bf63a5 100644--- a/web/packages/gallery/components/FileInfo.tsx+++ b/web/packages/gallery/components/FileInfo.tsx@@ -1,5 +1,5 @@/* eslint-disable @typescript-eslint/ban-ts-comment */-/* TODO: Split this file to deal with the @/new/photos imports.+/* TODO: Split this file to deal with the ente-new/photos imports.1. Move common components into FileInfoComponents.tsx2. Move the rest out to files in the apps themeselves:- albums/SharedFileInfodiff --git a/web/packages/media/README.md b/web/packages/media/README.mdindex 2c45825481..f48a79e1af 100644--- a/web/packages/media/README.md+++ b/web/packages/media/README.md@@ -1,4 +1,4 @@-## @/media+## ente-mediaA package for sharing code between our apps that show media (photos, videos).diff --git a/web/packages/new/README.md b/web/packages/new/README.mdindex 3367005b49..5e375b7597 100644--- a/web/packages/new/README.md+++ b/web/packages/new/README.md@@ -1,4 +1,4 @@-## @/new+## ente-newThis package only exists so that we can write code that works with TypeScriptstrict mode. This provides a gradual way of migrating the existing apps code todiff --git a/web/packages/new/photos/services/sync.ts b/web/packages/new/photos/services/sync.tsindex 01325586bf..93b1b3bb0e 100644--- a/web/packages/new/photos/services/sync.ts+++ b/web/packages/new/photos/services/sync.ts@@ -145,7 +145,7 @@ export const syncCollectionAndFiles = async (// TODO: Ok for now since its is only commented for the deduper (gallery// does this on the return value), but still needs fixing instead of a// hidden gotcha. Fix is simple, just uncomment, but that can be done- // once the exportService can be imported here in the @/new.+ // once the exportService can be imported here in the ente-new package.//// exportService.onLocalFilesUpdated();resetFileViewerDataSourceOnClose();diff --git a/web/packages/shared/README.md b/web/packages/shared/README.mdindex e319cf54ec..9d4649dfef 100644--- a/web/packages/shared/README.md+++ b/web/packages/shared/README.md@@ -1,3 +1,3 @@-Deprecated in favor of [@/utils](../utils/README.md) and-[@/base](../base/README.md). Don't add new code here - we'll slowly be migrating-existing code from here to those two packages.+Deprecated in favor of [ente-utils](../utils/README.md) and+[ente-base](../base/README.md). Don't add new code here - we'll slowly be+migrating existing code from here to those two packages.diff --git a/web/packages/shared/components/Container.tsx b/web/packages/shared/components/Container.tsxindex 7d84d9e7d5..ba72457080 100644--- a/web/packages/shared/components/Container.tsx+++ b/web/packages/shared/components/Container.tsx@@ -17,7 +17,7 @@ export const FlexWrapper = styled(Box)``;/**- * Deprecated, use {@link SpacedRow} from @/base/components/mui/container+ * Deprecated, use {@link SpacedRow} from ente-base/components/mui/container* instead*/export const SpaceBetweenFlex = styled(FlexWrapper)`@@ -25,7 +25,7 @@ export const SpaceBetweenFlex = styled(FlexWrapper)``;/**- * Deprecated, use {@link CenteredRow} from @/base/components/mui/container+ * Deprecated, use {@link CenteredRow} from ente-base/components/mui/container* instead*/export const CenteredFlex = styled(FlexWrapper)`diff --git a/web/packages/shared/components/SingleInputForm.tsx b/web/packages/shared/components/SingleInputForm.tsxindex 3dd332114e..b0ebb3aa40 100644--- a/web/packages/shared/components/SingleInputForm.tsx+++ b/web/packages/shared/components/SingleInputForm.tsx@@ -55,7 +55,7 @@ export interface SingleInputFormProps {}/**- * Deprecated version, gradually migrate to use the one from @/base.+ * Deprecated version, gradually migrate to use the one from ente-base.*/export default function SingleInputForm(props: SingleInputFormProps) {const { submitButtonProps } = props;diff --git a/web/packages/shared/storage/localStorage/index.ts b/web/packages/shared/storage/localStorage/index.tsindex 821804800e..5519ebb61a 100644--- a/web/packages/shared/storage/localStorage/index.ts+++ b/web/packages/shared/storage/localStorage/index.ts@@ -12,7 +12,7 @@ export type LocalStorageKey =// LOGS = "logs",// Migrated to (and only used by) useCollectionsSortByLocalState.| "collectionSortBy"- // Moved to the new wrapper @/base/local-storage+ // Moved to the new wrapper ente-base/local-storage// LOCALE = 'locale',| "srpSetupAttributes"| "srpAttributes"diff --git a/web/packages/utils/README.md b/web/packages/utils/README.mdindex 1bba4c1c93..68cf0d0b27 100644--- a/web/packages/utils/README.md+++ b/web/packages/utils/README.md@@ -1,4 +1,4 @@-## @/utils+## ente-utilsUtility functions, types and assortments.