π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Merge remote-tracking branch 'origin/main' into wall_2_rust
Neeraj Gupta9133526314c5
diff --cc rust/Cargo.lockindex 2895bd214a,b2dca1f764..0fb8be5637--- a/rust/Cargo.lock+++ b/rust/Cargo.lock@@@ -8162,11 -8130,12 +8163,12 @@@ dependencies =[[package]]name = "srp"- version = "0.7.0-rc.2"- source = "git+https://github.com/RustCrypto/PAKEs?rev=5b3bd1f3a9d51121a698ffe5d6ecc33cafcd6413#5b3bd1f3a9d51121a698ffe5d6ecc33cafcd6413"+ version = "0.7.0-rc.3"+ source = "registry+https://github.com/rust-lang/crates.io-index"+ checksum = "4b5f622c2d21b826b3501f4c620ccc4696e4a09a6b51727fcb21036dec87c101"dependencies = ["crypto-bigint",- "crypto-common 0.2.1",+ "crypto-common 0.2.2","digest 0.11.3","subtle",]diff --cc rust/Cargo.tomlindex 72b2da973e,13c8f997a3..ec089fa912--- a/rust/Cargo.toml+++ b/rust/Cargo.toml@@@ -29,6 -28,7 +29,8 @@@ ente-core = { path = "crates/core"ente-image = { path = "crates/image" }ente-photos = { path = "crates/photos" }ente-rs = { path = "apps/cli" }+ente-space = { path = "space" }ente-test-support = { path = "crates/test-support" }+ thiserror = "2.0.18"+ uniffi = { version = "0.31.0" }wasm-bindgen = "0.2.125"diff --cc server/cmd/museum/main.goindex 41dd52ee01,c2f91fcd30..f24753b645--- a/server/cmd/museum/main.go+++ b/server/cmd/museum/main.go@@@ -974,23 -974,13 +978,23 @@@ func main()userEntityController := &userEntityCtrl.Controller{Repo: userEntityRepo}userEntityHandler := &api.UserEntityHandler{Controller: userEntityController}+ spaceRepos := spacerepo.NewModule(db, s3Config)+ userController.SpaceAccessResetter = spaceRepos+ spaceModule := spacecontroller.NewModule(spaceRepos, userAuthRepo, &spacecontroller.SpaceEmailSender{UserRepo: userRepo})+ spaceModule.UserTokens = userController+ spaceHandlers := spaceapi.NewHandlers(spaceModule)+ spacePrivateAPI := server.Group("/")+ spacePrivateAPI.Use(rateLimiter.GlobalRateLimiter(), spaceHandlers.RequireSpaceBrowserSession(), rateLimiter.APIRateLimitForUserMiddleware(urlSanitizer))- privateAPI.POST("/user-entity/key", userEntityHandler.CreateKey)- privateAPI.POST("/user-entity/key/ensure", userEntityHandler.EnsureKey)- privateAPI.GET("/user-entity/key", userEntityHandler.GetKey)- privateAPI.POST("/user-entity/entity", userEntityHandler.CreateEntity)- privateAPI.PUT("/user-entity/entity", userEntityHandler.UpdateEntity)- privateAPI.DELETE("/user-entity/entity", userEntityHandler.DeleteEntity)- privateAPI.GET("/user-entity/entity/diff", userEntityHandler.GetDiff)+ storageAPI.POST("/user-entity/key", userEntityHandler.CreateKey)++ storageAPI.POST("/user-entity/key/ensure", userEntityHandler.EnsureKey)+ storageAPI.GET("/user-entity/key", userEntityHandler.GetKey)+ storageAPI.POST("/user-entity/entity", userEntityHandler.CreateEntity)+ storageAPI.PUT("/user-entity/entity", userEntityHandler.UpdateEntity)+ storageAPI.DELETE("/user-entity/entity", userEntityHandler.DeleteEntity)+ storageAPI.GET("/user-entity/entity/diff", userEntityHandler.GetDiff)+ spaceapi.RegisterTokenSessionRoutes(privateAPI, spaceHandlers)+ spaceapi.Register(spacePrivateAPI, publicAPI, spaceHandlers)contactController := contactCtrl.New(contactRepository, objectCleanupController, s3Config)contactHandler := &api.ContactHandler{Controller: contactController}diff --cc web/apps/albums/src/public-album/viewer/components/CommentsSidebar.tsxindex 2d4217fb9e,790d6017f2..909269ea1e--- a/web/apps/albums/src/public-album/viewer/components/CommentsSidebar.tsx+++ b/web/apps/albums/src/public-album/viewer/components/CommentsSidebar.tsx@@@ -25,12 -24,12 +24,13 @@@ importTextField,Typography,} from "@mui/material";- import { type ModalVisibilityProps } from "ente-base/components/utils/modal";+ import type { ModalVisibilityProps } from "ente-base/components/utils/modal";+import { formatTimeAgo } from "ente-base/date";import type { PublicAlbumsCredentials } from "ente-base/http";import log from "ente-base/log";+ import { getAvatarColor } from "ente-gallery/utils/avatar-colors";import type { EnteFile } from "ente-media/file";-import i18n, { t } from "i18next";+import { t } from "i18next";import React, {useCallback,useEffect,diff --cc web/package-lock.jsonindex bba6a60662,1caf2de5fe..a995cd6761--- a/web/package-lock.json+++ b/web/package-lock.json@@@ -659,10 -632,33 +661,11 @@@"url": "https://github.com/sponsors/Borewit"}},- "node_modules/@emnapi/core": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.11.1.tgz",- "integrity": "sha512-RSvbQmHzdKzNsLYa/wHrbc3KN4sYLKAdPZxqiM2HATqv/SBk2/ENSHpvXGaLOMcsAyz0poEGqkmmKYG3OWiJEQ==",- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "@emnapi/wasi-threads": "1.2.2",- "tslib": "^2.4.0"- }- },-- "node_modules/@emnapi/runtime": {- "version": "1.10.0",- "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz",- "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==",- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.1.tgz",- "integrity": "sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw==",- "license": "MIT",- "optional": true,- "dependencies": {- "tslib": "^2.4.0"- }- },+ "node_modules/@emnapi/wasi-threads": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.2.tgz",+ "integrity": "sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA==",+ "dev": true,"license": "MIT","optional": true,"dependencies": {@@@ -3042,30 -2644,22 +2584,19 @@@"optional": true,"os": ["linux"- ]- },- "node_modules/@rollup/rollup-linux-loong64-gnu": {- "version": "4.61.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.61.0.tgz",- "integrity": "sha512-DePa5cqOxDP/Zp0VOXpeWaGew5iIv5DXp9NYbzkX5PFQyWVX9184WCTh3hvr/7lhXo8ZVlbFLkz8+o/q1dU6gA==",- "cpu": [- "loong64"],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }},- "node_modules/@rollup/rollup-linux-loong64-musl": {- "version": "4.61.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.61.0.tgz",- "integrity": "sha512-LV8aWMB8UChglMCEzs7RkN0GsH29RJaLLqwm9fCIjlqwxQTiWAqNcc7wjBkH31hV0PU/yVxGYvrYsgfea2qw6g==",+ "node_modules/@rolldown/binding-linux-arm64-musl": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.1.3.tgz",+ "integrity": "sha512-BO9+oPL8K9poZJBfYPsXNtYjPE5uM3qeehT3aFcW4LITOl+iSqhp0abzjR2nWBUNjIZeKXjAEWBZ64WjNoHd6w==","cpu": [- "loong64"+ "arm64"],"dev": true,- "libc": [- "musl"- ],"license": "MIT","optional": true,"os": [@@@ -7215,6 -6749,279 +6681,267 @@@"immediate": "~3.0.5"}},+ "node_modules/lightningcss": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz",+ "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==",+ "dev": true,+ "license": "MPL-2.0",+ "dependencies": {+ "detect-libc": "^2.0.3"+ },+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ },+ "optionalDependencies": {+ "lightningcss-android-arm64": "1.32.0",+ "lightningcss-darwin-arm64": "1.32.0",+ "lightningcss-darwin-x64": "1.32.0",+ "lightningcss-freebsd-x64": "1.32.0",+ "lightningcss-linux-arm-gnueabihf": "1.32.0",+ "lightningcss-linux-arm64-gnu": "1.32.0",+ "lightningcss-linux-arm64-musl": "1.32.0",+ "lightningcss-linux-x64-gnu": "1.32.0",+ "lightningcss-linux-x64-musl": "1.32.0",+ "lightningcss-win32-arm64-msvc": "1.32.0",+ "lightningcss-win32-x64-msvc": "1.32.0"+ }+ },+ "node_modules/lightningcss-android-arm64": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz",+ "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-darwin-arm64": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz",+ "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-darwin-x64": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz",+ "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-freebsd-x64": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz",+ "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-arm-gnueabihf": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz",+ "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-arm64-gnu": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz",+ "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,- "libc": [- "glibc"- ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-arm64-musl": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz",+ "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,- "libc": [- "musl"- ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-x64-gnu": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz",+ "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==",+ "cpu": [+ "x64"+ ],+ "dev": true,- "libc": [- "glibc"- ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-x64-musl": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz",+ "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==",+ "cpu": [+ "x64"+ ],+ "dev": true,- "libc": [- "musl"- ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-win32-arm64-msvc": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz",+ "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-win32-x64-msvc": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz",+ "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },"node_modules/lines-and-columns": {"version": "1.2.4","resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",@@@ -10806,19 -10581,17 +10529,18 @@@}},"node_modules/vite": {- "version": "7.3.5",- "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.5.tgz",- "integrity": "sha512-KuOaNhcnGFN2zIPGA7wRmzF+lJA1sea7rHq17aiJ++9lzY1WWG6Jpwqwe1KNbRVPIqHmr8GLYx7jbrQcN/7/ww==",+ "version": "8.1.0",+ "resolved": "https://registry.npmjs.org/vite/-/vite-8.1.0.tgz",+ "integrity": "sha512-BuJcQK/56NQTWDGn4ABea3q4SSBdNPWwNZKTkkUpcMPnLoquSYH8llRtSUIgoL1KSCpHt5eghLShn50mH36y7Q==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {- "esbuild": "^0.27.0",- "fdir": "^6.5.0",- "picomatch": "^4.0.3",- "postcss": "^8.5.6",- "rollup": "^4.43.0",- "tinyglobby": "^0.2.15"+ "lightningcss": "^1.32.0",+ "picomatch": "^4.0.4",+ "postcss": "^8.5.15",+ "rolldown": "~1.1.2",+ "tinyglobby": "^0.2.17"},"bin": {"vite": "bin/vite.js"