Skip to content

armgit / ente

Public Imported from GitHub
0

💚 End-to-end encrypted cloud for everything.

Revert "[mob] Fix exif time parsing (#4985)"

Neeraj Gupta7621041ce0a7
diff --git a/.github/workflows/mobile-internal-release.yml b/.github/workflows/mobile-internal-release.yml
index 6752fb1308..ae5535f655 100644
--- a/.github/workflows/mobile-internal-release.yml
+++ b/.github/workflows/mobile-internal-release.yml
@@ -40,7 +40,7 @@ jobs:
- name: Build PlayStore AAB
run: |
- flutter build appbundle --release --flavor playstore
+ flutter build appbundle --dart-define=cronetHttpNoPlay=true --release --flavor playstore
env:
SIGNING_KEY_PATH: "/home/runner/work/_temp/keystore/ente_photos_key.jks"
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS_PHOTOS }}
diff --git a/.github/workflows/mobile-release.yml b/.github/workflows/mobile-release.yml
index ecf2c6d769..8997f0afbc 100644
--- a/.github/workflows/mobile-release.yml
+++ b/.github/workflows/mobile-release.yml
@@ -45,7 +45,7 @@ jobs:
- name: Build independent APK
run: |
- flutter build apk --release --flavor independent
+ flutter build apk --dart-define=cronetHttpNoPlay=true --release --flavor independent
mv build/app/outputs/flutter-apk/app-independent-release.apk build/app/outputs/flutter-apk/ente-${{ github.ref_name }}.apk
env:
SIGNING_KEY_PATH: "/home/runner/work/_temp/keystore/ente_photos_key.jks"
diff --git a/auth/assets/custom-icons/_data/custom-icons.json b/auth/assets/custom-icons/_data/custom-icons.json
index 684399cf4a..702c0dcd9e 100644
--- a/auth/assets/custom-icons/_data/custom-icons.json
+++ b/auth/assets/custom-icons/_data/custom-icons.json
@@ -21,6 +21,11 @@
"title": "airtm",
"hex": "000000"
},
+ {
+ "title": "AJ Bell",
+ "slug": "aj_bell",
+ "hex": "c41230"
+ },
{
"title": "aliyun",
"altNames": [
diff --git a/auth/assets/custom-icons/icons/aj_bell.svg b/auth/assets/custom-icons/icons/aj_bell.svg
new file mode 100644
index 0000000000..f8787b5b24
--- /dev/null
+++ b/auth/assets/custom-icons/icons/aj_bell.svg
@@ -0,0 +1,7 @@
+<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1507 1556" width="1507" height="1556">
+ <title>logo_grey-svg</title>
+ <style>
+ .s0 { fill: #c41230 }
+ </style>
+ <path id="Layer" class="s0" d="m759.6 651c10.6 63.6 7.5 126.3-6.8 185.3-0.6-3.5-0.8-7-1.5-10.6-51.7-311.8-346.3-522.7-657.7-470.8-32.4 5.3-63.6 13.5-93.6 23.9 62.4-54.7 140.3-93.4 228.3-108.1 251.6-41.9 489.5 128.4 531.3 380.3zm84.2 340c-48.7 59.8-107.3 106.4-171.5 140 2.8-3.3 5.7-6.4 8.4-9.7 238.7-292.4 195.6-723.2-96.4-962.3-30.4-24.8-62.2-46.4-95.3-65.2 98.4 12.9 194.5 52.4 276.9 119.9 236 193.2 270.9 541.2 77.9 777.3zm409.3-532.7c66.8 402.8-204.2 783.4-605.6 852.1 313.4-230.6 489-625.2 420.9-1035.7-16.2-97.3-45.1-189.3-84.7-274.7 138.4 110.2 238.1 269.9 269.4 458.3zm241.5 84.5c78.6 473.9-241.4 921.9-714.8 1000.6-195.5 32.6-386.6-3.2-549.2-89.5 98.5 11.2 200.2 9.2 302.8-7.9 537.8-89.4 917.1-559.8 908.4-1089.5 23.9 58.8 41.9 121 52.8 186.3z"/>
+</svg>
\ No newline at end of file
diff --git a/auth/lib/l10n/arb/app_ar.arb b/auth/lib/l10n/arb/app_ar.arb
index ea45ddd788..d2a3985d20 100644
--- a/auth/lib/l10n/arb/app_ar.arb
+++ b/auth/lib/l10n/arb/app_ar.arb
@@ -48,6 +48,7 @@
"nextTotpTitle": "التالي",
"deleteCodeTitle": "حذف الرمز؟",
"deleteCodeMessage": "هل أنت متأكد من أنك تريد حذف هذه الشيفرة؟ هذا الإجراء لا رجعة فيه.",
+ "trash": "سلة المهملات",
"viewLogsAction": "عرض السجلات",
"sendLogsDescription": "سوف يُرسل هذا السجلات لنا لمساعدتنا على تصحيح مشكلتك. بينما نتخذ الاحتياطات لضمان عدم تسجيل المعلومات الحساسة، نشجعك على رؤية هذه السجلات قبل مشاركتها.",
"preparingLogsTitle": "جارٍ إعداد السجلات...",
@@ -197,6 +198,8 @@
"enterDetailsManually": "أدخل التفاصيل يدوياً",
"edit": "تعديل",
"share": "مشاركة",
+ "shareCodes": "شارك الرموز",
+ "restore": "استعادة",
"copiedToClipboard": "تم النسخ إلى الحافظة",
"copiedNextToClipboard": "تم نسخ الرموز التالية إلى الحافظة",
"error": "خطأ",
@@ -248,6 +251,10 @@
"areYouSureYouWantToLogout": "هل أنت متأكد من أنك تريد تسجيل الخروج؟",
"yesLogout": "نعم، تسجيل الخروج",
"exit": "خروج",
+ "theme": "السمة",
+ "lightTheme": "فاتح",
+ "darkTheme": "داكن",
+ "systemTheme": "النظام",
"verifyingRecoveryKey": "التحقق من مفتاح الاسترداد...",
"recoveryKeyVerified": "تم التحقق من مفتاح الاسترداد",
"recoveryKeySuccessBody": "رائع! مفتاح الاسترداد الخاص بك صالح. شكرا لك على التحقق.\n\nيرجى تذكر الاحتفاظ بنسخة احتياطية من مفتاح الاسترداد بشكل آمن.",
@@ -318,6 +325,9 @@
}
}
},
+ "manualSort": "مخصّص",
+ "mostFrequentlyUsed": "مستخدم بكثرة",
+ "mostRecentlyUsed": "مستخدمة مؤخراً",
"activeSessions": "الجلسات النشطة",
"somethingWentWrongPleaseTryAgain": "حدث خطأ ما، يرجى المحاولة مرة أخرى",
"thisWillLogYouOutOfThisDevice": "سيؤدي هذا إلى تسجيل خروجك من هذا الجهاز!",
@@ -350,6 +360,7 @@
"sigInBackupReminder": "يرجى تصدير الرموز الخاصة بك للتأكد من أن لديك نسخة احتياطية يمكنك استعادتها منها.",
"offlineModeWarning": "لقد اخترت المضي قدما بدون نسخ احتياطية. يرجى أخذ نسخ احتياطية يدوية للتأكد من سلامة الرموز الخاصة بك.",
"showLargeIcons": "إظهار أيقونات كبيرة",
+ "compactMode": "الوضع المضغوط",
"shouldHideCode": "إخفاء الرموز",
"doubleTapToViewHiddenCode": "يمكنك النقر مرتين على أي عنصر لعرض الرمز",
"focusOnSearchBar": "التركيز على البحث عند بدء التطبيق",
@@ -468,5 +479,11 @@
"pinLock": "قفل رقم التعريف الشخصي",
"enterPin": "أدخل رقم التعريف الشخصي",
"setNewPin": "عين رقم تعريف شخصي جديد",
- "importFailureDescNew": "تعذر إعراب الملف المنتقى."
+ "importFailureDescNew": "تعذر إعراب الملف المنتقى.",
+ "duplicateCodes": "رموز مكررة",
+ "noDuplicates": "✨ لا تكرارات",
+ "youveNoDuplicateCodesThatCanBeCleared": "ليس لديك رموز مكررة يمكن مسحها",
+ "deselectAll": "ألغِ تحديد الكل",
+ "selectAll": "حدد الكل",
+ "deleteDuplicates": "احذف التكرار"
}
\ No newline at end of file
diff --git a/auth/lib/l10n/arb/app_hi.arb b/auth/lib/l10n/arb/app_hi.arb
index 7f393a2ca1..6f311b95d5 100644
--- a/auth/lib/l10n/arb/app_hi.arb
+++ b/auth/lib/l10n/arb/app_hi.arb
@@ -8,13 +8,13 @@
},
"onBoardingGetStarted": "प्रारंभ करें",
"setupFirstAccount": "अपना पहला अकाउंट सेटअप करें",
- "importScanQrCode": "QR कोड स्कैन करें",
+ "importScanQrCode": "एक QR कोड स्कैन करें",
"qrCode": "QR कोड",
"importEnterSetupKey": "",
"importAccountPageTitle": "अकाउंट विवरण डालें",
"incorrectDetails": "ग़लत विवरण",
"pleaseVerifyDetails": "कृपया विवरण सत्यापित करें और पुनः प्रयास करें",
- "codeIssuerHint": "जारीकर्ता",
+ "codeIssuerHint": "ज़ारीकर्ता",
"codeSecretKeyHint": "सीक्रेट कुंजी",
"secret": "सीक्रेट",
"all": "सभी",
@@ -39,6 +39,10 @@
"pleaseLoginAgain": "कृपया फिर से लॉगिन करें",
"loggingOut": "लॉग आउट हो रहा है...",
"saveAction": "सेव करें",
+ "deleteCodeMessage": "क्या आप वाकई इस कोड को हटाना चाहते हैं? इस क्रिया को वापस नहीं किया जा सकता",
+ "trashCode": "?",
+ "trashCodeMessage": "क्या आप वाकई {account} के लिए कोड नष्ट करना चाहते हैं?",
+ "trash": "नष्ट करें",
"viewLogsAction": "लॉग देखें",
"preparingLogsTitle": "लॉग तैयार किये जा रहे हैं...",
"emailLogsTitle": "लॉग ईमेल करें",
@@ -50,6 +54,7 @@
}
}
},
+ "copyEmailAction": "ईमेल कॉपी करें",
"exportLogsAction": "लॉग एक्सपोर्ट करें",
"reportABug": "बग रिपोर्ट करें",
"reportBug": "बग रिपोर्ट करें",
@@ -79,5 +84,24 @@
"cancel": "रद्द करें",
"yes": "हाँ",
"no": "नहीं",
- "settings": "सेटिंग"
+ "settings": "सेटिंग",
+ "pleaseTryAgain": "कृपया पुन: प्रयास करें",
+ "newUser": "एंटे में नए उपयोगकर्ता",
+ "delete": "हटाएं",
+ "enterYourPasswordHint": "अपना पासवर्ड दर्ज करें",
+ "forgotPassword": "पासवर्ड भूल गए",
+ "oops": "ओह",
+ "suggestFeatures": "विशेषताएं सुझाएं",
+ "faq": "अक्सर किये गए सवाल",
+ "somethingWentWrongMessage": "कुछ गड़बड़ हुई है, कृपया दोबारा प्रयास करें",
+ "leaveFamily": "परिवार छोड़ें",
+ "leaveFamilyMessage": "क्या आप सच में परिवार प्लान छोड़ना चाहते हैं?",
+ "inFamilyPlanMessage": "आप परिवार प्लान पर हैं!",
+ "hintForMobile": "कोड को संपादित करने या हटाने के लिए उसे लंबी देर तक दबाए।",
+ "hintForDesktop": "कोड को संपादित करने या हटाने के लिए उस पर राइट क्लिक करें।",
+ "scan": "स्कैन करें",
+ "scanACode": "कोड स्कैन करें",
+ "verify": "सत्यापित करें",
+ "verifyEmail": "ईमेल सत्यापित करें",
+ "twoFactorAuthTitle": "दो-चरणीय प्रमाणीकरण |"
}
\ No newline at end of file
diff --git a/auth/lib/l10n/arb/app_tr.arb b/auth/lib/l10n/arb/app_tr.arb
index 6be05c7d77..965689a53d 100644
--- a/auth/lib/l10n/arb/app_tr.arb
+++ b/auth/lib/l10n/arb/app_tr.arb
@@ -88,6 +88,8 @@
"useRecoveryKey": "Kurtarma anahtarını kullan",
"incorrectPasswordTitle": "Yanlış şifre",
"welcomeBack": "Tekrar hoş geldiniz!",
+ "emailAlreadyRegistered": "E-posta zaten kayıtlı.",
+ "emailNotRegistered": "E-posta kayıtlı değil.",
"madeWithLoveAtPrefix": "❤️ ile şurada yapılmıştır ",
"supportDevs": "Bu projeyi desteklemek için <bold-green>ente</bold-green> kanalına abone olun",
"supportDiscount": "İlk yılda %10 indirim için \"AUTH\" kupon kodunu kullanın",
@@ -333,6 +335,7 @@
}
},
"manualSort": "Özel",
+ "editOrder": "Sıralamayı düzenle",
"mostFrequentlyUsed": "Sık kullanılan",
"mostRecentlyUsed": "Son kullanılan",
"activeSessions": "Aktif oturumlar",
@@ -501,5 +504,6 @@
"deselectAll": "Tümünün seçimini kaldır",
"selectAll": "Tümünü seç",
"deleteDuplicates": "Yinelenenleri sil",
- "plainHTML": "Sade HTML"
+ "plainHTML": "Sade HTML",
+ "supportEnte": "<bold-Green>Ente</bold-Green>'yi destekle"
}
\ No newline at end of file
diff --git a/desktop/CHANGELOG.md b/desktop/CHANGELOG.md
index aa647dd8e6..4d7450cec9 100644
--- a/desktop/CHANGELOG.md
+++ b/desktop/CHANGELOG.md
@@ -1,11 +1,14 @@
# CHANGELOG
-## v1.7.9 (Unreleased)
+## v1.7.10 (Unreleased)
+
+- .
+
+## v1.7.9
- Light mode.
- Faster and more stable thumbnail generation.
- Support `.supplemental-metadata` JSON files in Google Takeout.
-- .
## v1.7.8
diff --git a/desktop/package.json b/desktop/package.json
index e4f5104f31..ccf8eff772 100644
--- a/desktop/package.json
+++ b/desktop/package.json
@@ -1,6 +1,6 @@
{
"name": "ente",
- "version": "1.7.9-beta",
+ "version": "1.7.10-beta",
"private": true,
"description": "Desktop client for Ente Photos",
"repository": "github:ente-io/photos-desktop",
@@ -49,7 +49,7 @@
"ajv": "^8.17.1",
"concurrently": "^9.1.2",
"cross-env": "^7.0.3",
- "electron": "^34.0.2",
+ "electron": "^34.1.1",
"electron-builder": "^26.0.0",
"eslint": "^9",
"prettier": "3.4.2",
diff --git a/desktop/src/main.ts b/desktop/src/main.ts
index 3ea105ef8b..8aa32169b1 100644
--- a/desktop/src/main.ts
+++ b/desktop/src/main.ts
@@ -152,7 +152,7 @@ const main = () => {
void mainWindow.loadURL(rendererURL);
// Continue on with the rest of the startup sequence.
- Menu.setApplicationMenu(await createApplicationMenu(mainWindow));
+ Menu.setApplicationMenu(createApplicationMenu(mainWindow));
setupTrayItem(mainWindow);
setupAutoUpdater(mainWindow);
@@ -326,8 +326,6 @@ const attachProcessHandlers = () => {
*/
const waitForRendererDevServer = () => wait(1000);
-const wipDesktopCustomTitlebar = process.env.ENTE_WIP_TITLEBAR == "1";
-
/**
* Create an return the {@link BrowserWindow} that will form our app's UI.
*
@@ -364,12 +362,8 @@ const createMainWindow = () => {
// do it (Step 2) unconditionally (i.e., on macOS too).
//
// https://www.electronjs.org/docs/latest/tutorial/custom-title-bar#create-a-custom-title-bar
- ...(wipDesktopCustomTitlebar
- ? {
- titleBarStyle: "hidden",
- titleBarOverlay: true,
- }
- : {}),
+ titleBarStyle: "hidden",
+ titleBarOverlay: true,
// The color to show in the window until the web content gets loaded.
// https://www.electronjs.org/docs/latest/api/browser-window#setting-the-backgroundcolor-property
//
diff --git a/desktop/src/main/ipc.ts b/desktop/src/main/ipc.ts
index cca4f0a0ff..ff98e2ec88 100644
--- a/desktop/src/main/ipc.ts
+++ b/desktop/src/main/ipc.ts
@@ -24,6 +24,7 @@ import {
updateAndRestart,
updateOnNextRestart,
} from "./services/app-update";
+import autoLauncher from "./services/auto-launcher";
import {
openDirectory,
openLogDirectory,
@@ -117,6 +118,10 @@ export const attachIPCHandlers = () => {
setLastShownChangelogVersion(version),
);
+ ipcMain.handle("isAutoLaunchEnabled", () => autoLauncher.isEnabled());
+
+ ipcMain.handle("toggleAutoLaunch", () => autoLauncher.toggleAutoLaunch());
+
// - App update
ipcMain.on("updateAndRestart", () => updateAndRestart());
diff --git a/desktop/src/main/menu.ts b/desktop/src/main/menu.ts
index 188b195f82..d402da1516 100644
--- a/desktop/src/main/menu.ts
+++ b/desktop/src/main/menu.ts
@@ -7,17 +7,14 @@ import {
} from "electron";
import { allowWindowClose } from "../main";
import { forceCheckForAppUpdates } from "./services/app-update";
-import autoLauncher from "./services/auto-launcher";
-import { openLogDirectory } from "./services/dir";
import { userPreferences } from "./stores/user-preferences";
/** Create and return the entries in the app's main menu bar */
-export const createApplicationMenu = async (mainWindow: BrowserWindow) => {
+export const createApplicationMenu = (mainWindow: BrowserWindow) => {
// The state of checkboxes
//
// Whenever the menu is redrawn the current value of these variables is used
// to set the checked state for the various settings checkboxes.
- let isAutoLaunchEnabled = await autoLauncher.isEnabled();
let shouldHideDockIcon = !!userPreferences.get("hideDockIcon");
const macOSOnly = (options: MenuItemConstructorOptions[]) =>
@@ -25,16 +22,6 @@ export const createApplicationMenu = async (mainWindow: BrowserWindow) => {
const handleCheckForUpdates = () => forceCheckForAppUpdates(mainWindow);
- const handleViewChangelog = () =>
- void shell.openExternal(
- "https://github.com/ente-io/ente/blob/main/desktop/CHANGELOG.md",
- );
-
- const toggleAutoLaunch = () => {
- void autoLauncher.toggleAutoLaunch();
- isAutoLaunchEnabled = !isAutoLaunchEnabled;
- };
-
const toggleHideDockIcon = () => {
// Persist
userPreferences.set("hideDockIcon", !shouldHideDockIcon);
@@ -45,13 +32,6 @@ export const createApplicationMenu = async (mainWindow: BrowserWindow) => {
const handleHelp = () =>
void shell.openExternal("https://help.ente.io/photos/");
- const handleSupport = () =>
- void shell.openExternal("mailto:[email protected]");
-
- const handleBlog = () => void shell.openExternal("https://ente.io/blog/");
-
- const handleViewLogs = () => void openLogDirectory();
-
return Menu.buildFromTemplate([
{
label: "Ente Photos",
@@ -67,31 +47,21 @@ export const createApplicationMenu = async (mainWindow: BrowserWindow) => {
label: "Check for Updates...",
click: handleCheckForUpdates,
},
- {
- label: "View Changelog",
- click: handleViewChangelog,
- },
{ type: "separator" },
- {
- label: "Preferences",
- submenu: [
- {
- label: "Open Ente on Startup",
- type: "checkbox",
- checked: isAutoLaunchEnabled,
- click: toggleAutoLaunch,
- },
- ...macOSOnly([
+ ...macOSOnly([
+ {
+ label: "Preferences",
+ submenu: [
{
label: "Hide Dock Icon",
type: "checkbox",
checked: shouldHideDockIcon,
click: toggleHideDockIcon,
},
- ]),
- ],
- },
+ ],
+ },
+ ]),
{ type: "separator" },
...macOSOnly([
@@ -169,20 +139,6 @@ export const createApplicationMenu = async (mainWindow: BrowserWindow) => {
label: "Ente Help",
click: handleHelp,
},
- { type: "separator" },
- {
- label: "Support",
- click: handleSupport,
- },
- {
- label: "Product Updates",
- click: handleBlog,
- },
- { type: "separator" },
- {
- label: "View Logs",
- click: handleViewLogs,
- },
],
},
]);
@@ -194,7 +150,6 @@ export const createApplicationMenu = async (mainWindow: BrowserWindow) => {
*/
export const createTrayContextMenu = (mainWindow: BrowserWindow) => {
const handleOpen = () => {
- mainWindow.maximize();
mainWindow.show();
};
diff --git a/desktop/src/preload.ts b/desktop/src/preload.ts
index 131ea0b574..cb9d594511 100644
--- a/desktop/src/preload.ts
+++ b/desktop/src/preload.ts
@@ -122,6 +122,10 @@ const lastShownChangelogVersion = () =>
const setLastShownChangelogVersion = (version: number) =>
ipcRenderer.invoke("setLastShownChangelogVersion", version);
+const isAutoLaunchEnabled = () => ipcRenderer.invoke("isAutoLaunchEnabled");
+
+const toggleAutoLaunch = () => ipcRenderer.invoke("toggleAutoLaunch");
+
const onMainWindowFocus = (cb: (() => void) | undefined) => {
ipcRenderer.removeAllListeners("mainWindowFocus");
if (cb) ipcRenderer.on("mainWindowFocus", cb);
@@ -347,6 +351,8 @@ contextBridge.exposeInMainWorld("electron", {
saveMasterKeyB64,
lastShownChangelogVersion,
setLastShownChangelogVersion,
+ isAutoLaunchEnabled,
+ toggleAutoLaunch,
onMainWindowFocus,
onOpenEnteURL,
diff --git a/desktop/yarn.lock b/desktop/yarn.lock
index b5b9a62e63..491fa2261e 100644
--- a/desktop/yarn.lock
+++ b/desktop/yarn.lock
@@ -1289,10 +1289,10 @@ electron-updater@^6.4.0:
semver "^7.6.3"
tiny-typed-emitter "^2.1.0"
-electron@^34.0.2:
- version "34.0.2"
- resolved "https://registry.yarnpkg.com/electron/-/electron-34.0.2.tgz#84432ab1efa165e260ce943c472879228b620573"
- integrity sha512-u3F+DSUlg9NaGS+9qnYmSRN8VjAnc3LJDDk1ye1uISJnh4gjG76y3681qLowsPMx4obvCP2eBINnmbLo0yT5WA==
+electron@^34.1.1:
+ version "34.1.1"
+ resolved "https://registry.yarnpkg.com/electron/-/electron-34.1.1.tgz#1fc766e406401834fedb9747c4ca58671d9a1e46"
+ integrity sha512-1aDYk9Gsv1/fFeClMrxWGoVMl7uCUgl1pe26BiTnLXmAoqEXCa3f3sCKFWV+cuDzUjQGAZcpkWhGYTgWUSQrLA==
dependencies:
"@electron/get" "^2.0.0"
"@types/node" "^20.9.0"
diff --git a/docs/docs/photos/troubleshooting/sharing-logs.md b/docs/docs/photos/troubleshooting/sharing-logs.md
index cd9417fac3..0de78748a4 100644
--- a/docs/docs/photos/troubleshooting/sharing-logs.md
+++ b/docs/docs/photos/troubleshooting/sharing-logs.md
@@ -20,21 +20,14 @@ the logs just make the process a bit faster and easier.
- Select for the option to _Report a Bug_.
- Tap on _Report a bug_.
-## Desktop
+## Desktop and Web
-- Click on _Help_ menu at the top of your screen, and select the _View logs_
- option.
- Open settings (click on the three horizontal lines button located at the top
left corner of the screen).
-- Click on _Support_. This will open your email client where you can attach the
- logs in the email and describe the issue.
-
-## Web
-
-- Open settings (click on the three horizontal lines button located at the top
- left corner of the screen).
-- Click on _Debug Logs_ towards the bottom of settings.
-- Click on _Download logs_
+- Click on the _Help_ option towards the bottom of settings.
+- Click on _View logs_. This will show you the location of the logs on your
+ system (desktop), or download them from the browser onto your computer (web).
+- Go back to settings.
- Click on _Support_. This will open your email client where you can attach the
logs in the email and describe the issue.
diff --git a/infra/staff/src/components/UpdateSubscription.tsx b/infra/staff/src/components/UpdateSubscription.tsx
index 9a640646be..b1bf7dfea1 100644
--- a/infra/staff/src/components/UpdateSubscription.tsx
+++ b/infra/staff/src/components/UpdateSubscription.tsx
@@ -22,6 +22,10 @@ interface Subscription {
originalTransactionID: string;
expiryTime: number;
userID: string;
+ attributes: {
+ customerID: string;
+ stripeAccountCountry: string;
+ };
}
interface UserDataResponse {
@@ -40,6 +44,10 @@ interface FormValues {
transactionId: string;
expiryTime: string | Date | null;
userId: string;
+ attributes: {
+ customerID: string;
+ stripeAccountCountry: string;
+ };
}
const UpdateSubscription: React.FC<UpdateSubscriptionProps> = ({
@@ -53,6 +61,10 @@ const UpdateSubscription: React.FC<UpdateSubscriptionProps> = ({
transactionId: "",
expiryTime: "",
userId: "",
+ attributes: {
+ "customerID": "",
+ "stripeAccountCountry": ""
+ },
});
const [isDatePickerOpen, setIsDatePickerOpen] = useState(false);
@@ -95,6 +107,10 @@ const UpdateSubscription: React.FC<UpdateSubscriptionProps> = ({
"",
expiryTime: expiryTime,
userId: userDataResponse.subscription.userID || "",
+ attributes: {
+ customerID: userDataResponse.subscription.attributes.customerID || "",
+ stripeAccountCountry: userDataResponse.subscription.attributes.stripeAccountCountry || ""
+ }
});
} catch (error) {
console.error("Error fetching data:", error);
@@ -156,6 +172,10 @@ const UpdateSubscription: React.FC<UpdateSubscriptionProps> = ({
productId: values.productId,
paymentProvider: values.provider,
transactionId: values.transactionId,
+ attributes: {
+ customerID: values.attributes.customerID,
+ stripeAccountCountry: values.attributes.stripeAccountCountry
+ }
};
try {
diff --git a/mobile/android/app/proguard-rules.pro b/mobile/android/app/proguard-rules.pro
index f35c179f30..066c0d1874 100644
--- a/mobile/android/app/proguard-rules.pro
+++ b/mobile/android/app/proguard-rules.pro
@@ -2,3 +2,5 @@
# To ensure that stack traces is unambiguous
# https://developer.android.com/studio/build/shrink-code#decode-stack-trace
-keepattributes LineNumberTable,SourceFile
+
+-keep class org.chromium.net.** { *; }
diff --git a/mobile/ios/Podfile.lock b/mobile/ios/Podfile.lock
index 87a17625ce..6769a1fcc8 100644
--- a/mobile/ios/Podfile.lock
+++ b/mobile/ios/Podfile.lock
@@ -6,6 +6,9 @@ PODS:
- connectivity_plus (0.0.1):
- Flutter
- FlutterMacOS
+ - cupertino_http (0.0.1):
+ - Flutter
+ - FlutterMacOS
- dart_ui_isolate (0.0.1):
- Flutter
- device_info_plus (0.0.1):
@@ -19,31 +22,31 @@ PODS:
- Flutter
- file_saver (0.0.1):
- Flutter
- - Firebase/CoreOnly (11.6.0):
- - FirebaseCore (~> 11.6.0)
- - Firebase/Messaging (11.6.0):
+ - Firebase/CoreOnly (11.2.0):
+ - FirebaseCore (= 11.2.0)
+ - Firebase/Messaging (11.2.0):
- Firebase/CoreOnly
- - FirebaseMessaging (~> 11.6.0)
- - firebase_core (3.10.0):
- - Firebase/CoreOnly (= 11.6.0)
+ - FirebaseMessaging (~> 11.2.0)
+ - firebase_core (3.6.0):
+ - Firebase/CoreOnly (= 11.2.0)
- Flutter
- - firebase_messaging (15.2.0):
- - Firebase/Messaging (= 11.6.0)
+ - firebase_messaging (15.1.3):
+ - Firebase/Messaging (= 11.2.0)
- firebase_core
- Flutter
- - FirebaseCore (11.6.0):
- - FirebaseCoreInternal (~> 11.6.0)
+ - FirebaseCore (11.2.0):
+ - FirebaseCoreInternal (~> 11.0)
- GoogleUtilities/Environment (~> 8.0)
- GoogleUtilities/Logger (~> 8.0)
- FirebaseCoreInternal (11.6.0):
- "GoogleUtilities/NSData+zlib (~> 8.0)"
- - FirebaseInstallations (11.6.0):
- - FirebaseCore (~> 11.6.0)
+ - FirebaseInstallations (11.4.0):
+ - FirebaseCore (~> 11.0)
- GoogleUtilities/Environment (~> 8.0)
- GoogleUtilities/UserDefaults (~> 8.0)
- PromisesObjC (~> 2.4)
- - FirebaseMessaging (11.6.0):
- - FirebaseCore (~> 11.6.0)
+ - FirebaseMessaging (11.2.0):
+ - FirebaseCore (~> 11.0)
- FirebaseInstallations (~> 11.0)
- GoogleDataTransport (~> 10.0)
- GoogleUtilities/AppDelegateSwizzler (~> 8.0)
@@ -68,7 +71,7 @@ PODS:
- OrderedSet (~> 6.0.3)
- flutter_local_notifications (0.0.1):
- Flutter
- - flutter_native_splash (2.4.3):
+ - flutter_native_splash (0.0.1):
- Flutter
- flutter_secure_storage (6.0.0):
- Flutter
@@ -158,6 +161,8 @@ PODS:
- nanopb/encode (3.30910.0)
- native_video_player (1.0.0):
- Flutter
+ - objective_c (0.0.1):
+ - Flutter
- onnxruntime (0.0.1):
- Flutter
- onnxruntime-objc (= 1.18.0)
@@ -182,7 +187,7 @@ PODS:
- privacy_screen (0.0.1):
- Flutter
- PromisesObjC (2.4.0)
- - receive_sharing_intent (1.8.1):
+ - receive_sharing_intent (1.8.0):
- Flutter
- screen_brightness_ios (0.1.0):
- Flutter
@@ -192,11 +197,11 @@ PODS:
- SDWebImageWebPCoder (0.14.6):
- libwebp (~> 1.0)
- SDWebImage/Core (~> 5.17)
- - Sentry/HybridSDK (8.42.0)
- - sentry_flutter (8.12.0):
+ - Sentry/HybridSDK (8.36.0)
+ - sentry_flutter (8.9.0):
- Flutter
- FlutterMacOS
- - Sentry/HybridSDK (= 8.42.0)
+ - Sentry/HybridSDK (= 8.36.0)
- share_plus (0.0.1):
- Flutter
- shared_preferences_foundation (0.0.1):
@@ -205,21 +210,20 @@ PODS:
- sqflite_darwin (0.0.4):
- Flutter
- FlutterMacOS
- - sqlite3 (3.47.2):
- - sqlite3/common (= 3.47.2)
- - sqlite3/common (3.47.2)
- - sqlite3/dbstatvtab (3.47.2):
+ - "sqlite3 (3.46.1+1)":
+ - "sqlite3/common (= 3.46.1+1)"
+ - "sqlite3/common (3.46.1+1)"
+ - "sqlite3/dbstatvtab (3.46.1+1)":
- sqlite3/common
- - sqlite3/fts5 (3.47.2):
+ - "sqlite3/fts5 (3.46.1+1)":
- sqlite3/common
- - sqlite3/perf-threadsafe (3.47.2):
+ - "sqlite3/perf-threadsafe (3.46.1+1)":
- sqlite3/common
- - sqlite3/rtree (3.47.2):
+ - "sqlite3/rtree (3.46.1+1)":
- sqlite3/common
- sqlite3_flutter_libs (0.0.1):
- Flutter
- - FlutterMacOS
- - sqlite3 (~> 3.47.2)
+ - "sqlite3 (~> 3.46.0+1)"
- sqlite3/dbstatvtab
- sqlite3/fts5
- sqlite3/perf-threadsafe
@@ -227,7 +231,7 @@ PODS:
- system_info_plus (0.0.1):
- Flutter
- Toast (4.1.1)
- - ua_client_hints (1.4.1):
+ - ua_client_hints (1.4.0):
- Flutter
- uni_links (0.0.1):
- Flutter
@@ -248,6 +252,7 @@ DEPENDENCIES:
- background_fetch (from `.symlinks/plugins/background_fetch/ios`)
- battery_info (from `.symlinks/plugins/battery_info/ios`)
- connectivity_plus (from `.symlinks/plugins/connectivity_plus/darwin`)
+ - cupertino_http (from `.symlinks/plugins/cupertino_http/darwin`)
- dart_ui_isolate (from `.symlinks/plugins/dart_ui_isolate/ios`)
- device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)
- ffmpeg_kit_flutter_full_gpl (from `.symlinks/plugins/ffmpeg_kit_flutter_full_gpl/ios`)
@@ -279,6 +284,7 @@ DEPENDENCIES:
- motionphoto (from `.symlinks/plugins/motionphoto/ios`)
- move_to_background (from `.symlinks/plugins/move_to_background/ios`)
- native_video_player (from `.symlinks/plugins/native_video_player/ios`)
+ - objective_c (from `.symlinks/plugins/objective_c/ios`)
- onnxruntime (from `.symlinks/plugins/onnxruntime/ios`)
- open_mail_app (from `.symlinks/plugins/open_mail_app/ios`)
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
@@ -292,7 +298,7 @@ DEPENDENCIES:
- share_plus (from `.symlinks/plugins/share_plus/ios`)
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
- sqflite_darwin (from `.symlinks/plugins/sqflite_darwin/darwin`)
- - sqlite3_flutter_libs (from `.symlinks/plugins/sqlite3_flutter_libs/darwin`)
+ - sqlite3_flutter_libs (from `.symlinks/plugins/sqlite3_flutter_libs/ios`)
- system_info_plus (from `.symlinks/plugins/system_info_plus/ios`)
- ua_client_hints (from `.symlinks/plugins/ua_client_hints/ios`)
- uni_links (from `.symlinks/plugins/uni_links/ios`)
@@ -332,6 +338,8 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/battery_info/ios"
connectivity_plus:
:path: ".symlinks/plugins/connectivity_plus/darwin"
+ cupertino_http:
+ :path: ".symlinks/plugins/cupertino_http/darwin"
dart_ui_isolate:
:path: ".symlinks/plugins/dart_ui_isolate/ios"
device_info_plus:
@@ -394,6 +402,8 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/move_to_background/ios"
native_video_player:
:path: ".symlinks/plugins/native_video_player/ios"
+ objective_c:
+ :path: ".symlinks/plugins/objective_c/ios"
onnxruntime:
:path: ".symlinks/plugins/onnxruntime/ios"
open_mail_app:
@@ -421,7 +431,7 @@ EXTERNAL SOURCES:
sqflite_darwin:
:path: ".symlinks/plugins/sqflite_darwin/darwin"
sqlite3_flutter_libs:
- :path: ".symlinks/plugins/sqlite3_flutter_libs/darwin"
+ :path: ".symlinks/plugins/sqlite3_flutter_libs/ios"
system_info_plus:
:path: ".symlinks/plugins/system_info_plus/ios"
ua_client_hints:
@@ -442,25 +452,26 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
background_fetch: 39f11371c0dce04b001c4bfd5e782bcccb0a85e2
battery_info: 09f5c9ee65394f2291c8c6227bedff345b8a730c
- connectivity_plus: 18382e7311ba19efcaee94442b23b32507b20695
+ connectivity_plus: ddd7f30999e1faaef5967c23d5b6d503d10434db
+ cupertino_http: 947a233f40cfea55167a49f2facc18434ea117ba
dart_ui_isolate: d5bcda83ca4b04f129d70eb90110b7a567aece14
device_info_plus: c6fb39579d0f423935b0c9ce7ee2f44b71b9fce6
ffmpeg-kit-ios-full-gpl: 80adc341962e55ef709e36baa8ed9a70cf4ea62b
ffmpeg_kit_flutter_full_gpl: 8d15c14c0c3aba616fac04fe44b3d27d02e3c330
file_saver: 503e386464dbe118f630e17b4c2e1190fa0cf808
- Firebase: 374a441a91ead896215703a674d58cdb3e9d772b
- firebase_core: feb37e79f775c2bd08dd35e02d83678291317e10
- firebase_messaging: e2f0ba891b1509668c07f5099761518a5af8fe3c
- FirebaseCore: 48b0dd707581cf9c1a1220da68223fb0a562afaa
+ Firebase: 98e6bf5278170668a7983e12971a66b2cd57fc8c
+ firebase_core: 2bedc3136ec7c7b8561c6123ed0239387b53f2af
+ firebase_messaging: 15d114e1a41fc31e4fbabcd48d765a19eec94a38
+ FirebaseCore: a282032ae9295c795714ded2ec9c522fc237f8da
FirebaseCoreInternal: d98ab91e2d80a56d7b246856a8885443b302c0c2
- FirebaseInstallations: efc0946fc756e4d22d8113f7c761948120322e8c
- FirebaseMessaging: e1aca1fcc23e8b9eddb0e33f375ff90944623021
+ FirebaseInstallations: 6ef4a1c7eb2a61ee1f74727d7f6ce2e72acf1414
+ FirebaseMessaging: c9ec7b90c399c7a6100297e9d16f8a27fc7f7152
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
flutter_email_sender: 02d7443217d8c41483223627972bfdc09f74276b
flutter_image_compress: 5a5e9aee05b6553048b8df1c3bc456d0afaac433
flutter_inappwebview_ios: 6f63631e2c62a7c350263b13fa5427aedefe81d4
flutter_local_notifications: 4cde75091f6327eb8517fa068a0a5950212d2086
- flutter_native_splash: f71420956eb811e6d310720fee915f1d42852e7a
+ flutter_native_splash: edf599c81f74d093a4daf8e17bd7a018854bc778
flutter_secure_storage: 23fc622d89d073675f2eaa109381aefbcf5a49be
flutter_sodium: c84426b4de738514b5b66cfdeb8a06634e72fe0b
fluttertoast: e9a18c7be5413da53898f660530c56f35edfba9c
@@ -485,6 +496,7 @@ SPEC CHECKSUMS:
move_to_background: 39a5b79b26d577b0372cbe8a8c55e7aa9fcd3a2d
nanopb: fad817b59e0457d11a5dfbde799381cd727c1275
native_video_player: d12af78a1a4a8cf09775a5177d5b392def6fd23c
+ objective_c: 77e887b5ba1827970907e10e832eec1683f3431d
onnxruntime: e7c2ae44385191eaad5ae64c935a72debaddc997
onnxruntime-c: a909204639a1f035f575127ac406f781ac797c9c
onnxruntime-objc: b6fab0f1787aa6f7190c2013f03037df4718bd8b
@@ -496,20 +508,20 @@ SPEC CHECKSUMS:
photo_manager: ff695c7a1dd5bc379974953a2b5c0a293f7c4c8a
privacy_screen: 1a131c052ceb3c3659934b003b0d397c2381a24e
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
- receive_sharing_intent: 79c848f5b045674ad60b9fea3bafea59962ad2c1
+ receive_sharing_intent: df9c334dc9feadcbd3266e5cb49c8443405e1c9f
screen_brightness_ios: 715ca807df953bf676d339f11464e438143ee625
SDWebImage: 73c6079366fea25fa4bb9640d5fb58f0893facd8
SDWebImageWebPCoder: e38c0a70396191361d60c092933e22c20d5b1380
- Sentry: 38ed8bf38eab5812787274bf591e528074c19e02
- sentry_flutter: 7d1f1df30f3768c411603ed449519bbb90a7d87b
- share_plus: 8b6f8b3447e494cca5317c8c3073de39b3600d1f
+ Sentry: f8374b5415bc38dfb5645941b3ae31230fbeae57
+ sentry_flutter: 0eb93e5279eb41e2392212afe1ccd2fecb4f8cbe
+ share_plus: 8875f4f2500512ea181eef553c3e27dba5135aad
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
- sqflite_darwin: 5a7236e3b501866c1c9befc6771dfd73ffb8702d
- sqlite3: 7559e33dae4c78538df563795af3a86fc887ee71
- sqlite3_flutter_libs: 58ae36c0dd086395d066b4fe4de9cdca83e717b3
+ sqflite_darwin: a553b1fd6fe66f53bbb0fe5b4f5bab93f08d7a13
+ sqlite3: 0bb0e6389d824e40296f531b858a2a0b71c0d2fb
+ sqlite3_flutter_libs: c00457ebd31e59fa6bb830380ddba24d44fbcd3b
system_info_plus: 5393c8da281d899950d751713575fbf91c7709aa
Toast: 1f5ea13423a1e6674c4abdac5be53587ae481c4e
- ua_client_hints: aeabd123262c087f0ce151ef96fa3ab77bfc8b38
+ ua_client_hints: 46bb5817a868f9e397c0ba7e3f2f5c5d90c35156
uni_links: d97da20c7701486ba192624d99bffaaffcfc298a
url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe
video_player_avfoundation: 7c6c11d8470e1675df7397027218274b6d2360b3
diff --git a/mobile/ios/Runner.xcodeproj/project.pbxproj b/mobile/ios/Runner.xcodeproj/project.pbxproj
index 65b1ae54d5..de19bf899f 100644
--- a/mobile/ios/Runner.xcodeproj/project.pbxproj
+++ b/mobile/ios/Runner.xcodeproj/project.pbxproj
@@ -292,6 +292,7 @@
"${BUILT_PRODUCTS_DIR}/background_fetch/background_fetch.framework",
"${BUILT_PRODUCTS_DIR}/battery_info/battery_info.framework",
"${BUILT_PRODUCTS_DIR}/connectivity_plus/connectivity_plus.framework",
+ "${BUILT_PRODUCTS_DIR}/cupertino_http/cupertino_http.framework",
"${BUILT_PRODUCTS_DIR}/dart_ui_isolate/dart_ui_isolate.framework",
"${BUILT_PRODUCTS_DIR}/device_info_plus/device_info_plus.framework",
"${BUILT_PRODUCTS_DIR}/file_saver/file_saver.framework",
@@ -321,6 +322,7 @@
"${BUILT_PRODUCTS_DIR}/move_to_background/move_to_background.framework",
"${BUILT_PRODUCTS_DIR}/nanopb/nanopb.framework",
"${BUILT_PRODUCTS_DIR}/native_video_player/native_video_player.framework",
+ "${BUILT_PRODUCTS_DIR}/objective_c/objective_c.framework",
"${BUILT_PRODUCTS_DIR}/open_mail_app/open_mail_app.framework",
"${BUILT_PRODUCTS_DIR}/package_info_plus/package_info_plus.framework",
"${BUILT_PRODUCTS_DIR}/path_provider_foundation/path_provider_foundation.framework",
@@ -387,6 +389,7 @@
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/background_fetch.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/battery_info.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/connectivity_plus.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/cupertino_http.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/dart_ui_isolate.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/device_info_plus.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/file_saver.framework",
@@ -416,6 +419,7 @@
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/move_to_background.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/nanopb.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/native_video_player.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/objective_c.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/open_mail_app.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/package_info_plus.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/path_provider_foundation.framework",
diff --git a/mobile/lib/core/error-reporting/super_logging.dart b/mobile/lib/core/error-reporting/super_logging.dart
index 7c0bef58be..55e93c5947 100644
--- a/mobile/lib/core/error-reporting/super_logging.dart
+++ b/mobile/lib/core/error-reporting/super_logging.dart
@@ -236,7 +236,7 @@ class SuperLogging {
}
static _shouldSkipSentry(Object error) {
- if (error is DioError) {
+ if (error is DioException) {
return true;
}
final bool result = error is StorageLimitExceededError ||
diff --git a/mobile/lib/core/network/network.dart b/mobile/lib/core/network/network.dart
index a55a1a807e..ba2540b401 100644
--- a/mobile/lib/core/network/network.dart
+++ b/mobile/lib/core/network/network.dart
@@ -1,6 +1,7 @@
import 'dart:io';
import 'package:dio/dio.dart';
+import 'package:native_dio_adapter/native_dio_adapter.dart';
import 'package:package_info_plus/package_info_plus.dart';
import "package:photos/core/configuration.dart";
import "package:photos/core/event_bus.dart";
@@ -8,18 +9,17 @@ import 'package:photos/core/network/ente_interceptor.dart';
import "package:photos/events/endpoint_updated_event.dart";
import "package:ua_client_hints/ua_client_hints.dart";
-int kConnectTimeout = 15000;
-
class NetworkClient {
late Dio _dio;
late Dio _enteDio;
+ static const kConnectTimeout = 15;
Future<void> init(PackageInfo packageInfo) async {
final String ua = await userAgent();
final endpoint = Configuration.instance.getHttpEndpoint();
_dio = Dio(
BaseOptions(
- connectTimeout: kConnectTimeout,
+ connectTimeout: const Duration(seconds: kConnectTimeout),
headers: {
HttpHeaders.userAgentHeader: ua,
'X-Client-Version': packageInfo.version,
@@ -30,7 +30,7 @@ class NetworkClient {
_enteDio = Dio(
BaseOptions(
baseUrl: endpoint,
- connectTimeout: kConnectTimeout,
+ connectTimeout: const Duration(seconds: kConnectTimeout),
headers: {
HttpHeaders.userAgentHeader: ua,
'X-Client-Version': packageInfo.version,
@@ -38,6 +38,10 @@ class NetworkClient {
},
),
);
+
+ _dio.httpClientAdapter = NativeAdapter();
+ _enteDio.httpClientAdapter = NativeAdapter();
+
_setupInterceptors(endpoint);
Bus.instance.on<EndpointUpdatedEvent>().listen((event) {
diff --git a/mobile/lib/db/files_db.dart b/mobile/lib/db/files_db.dart
index 3baaa06e17..4452f12097 100644
--- a/mobile/lib/db/files_db.dart
+++ b/mobile/lib/db/files_db.dart
@@ -1737,7 +1737,11 @@ class FilesDB {
final db = await instance.sqliteAsyncDB;
final results = await db.getAll(
'''
- SELECT * FROM $filesTable WHERE $columnFileType = ? AND $columnCreationTime > ? AND $columnUploadedFileID != -1
+ SELECT * FROM $filesTable
+ WHERE $columnFileType = ?
+ AND $columnCreationTime > ?
+ AND $columnUploadedFileID != -1
+ ORDER BY $columnCreationTime DESC
''',
[getInt(fileType), beginDate.microsecondsSinceEpoch],
);
diff --git a/mobile/lib/gateways/cast_gw.dart b/mobile/lib/gateways/cast_gw.dart
index bc8af897ab..3db3894ad4 100644
--- a/mobile/lib/gateways/cast_gw.dart
+++ b/mobile/lib/gateways/cast_gw.dart
@@ -12,7 +12,7 @@ class CastGateway {
);
return response.data["publicKey"];
} catch (e) {
- if (e is DioError && e.response != null) {
+ if (e is DioException && e.response != null) {
if (e.response!.statusCode == 404) {
return null;
} else if (e.response!.statusCode == 403) {
diff --git a/mobile/lib/gateways/entity_gw.dart b/mobile/lib/gateways/entity_gw.dart
index a88d31eeb9..0e4b8bb2bc 100644
--- a/mobile/lib/gateways/entity_gw.dart
+++ b/mobile/lib/gateways/entity_gw.dart
@@ -32,7 +32,7 @@ class EntityGateway {
},
);
return EntityKey.fromMap(response.data);
- } on DioError catch (e) {
+ } on DioException catch (e) {
if (e.response != null && (e.response!.statusCode ?? 0) == 404) {
throw EntityKeyNotFound();
} else {
diff --git a/mobile/lib/generated/intl/messages_en.dart b/mobile/lib/generated/intl/messages_en.dart
index a737afaa2d..16f84068f9 100644
--- a/mobile/lib/generated/intl/messages_en.dart
+++ b/mobile/lib/generated/intl/messages_en.dart
@@ -894,6 +894,7 @@ class MessageLookup extends MessageLookupByLibrary {
"faceRecognition":
MessageLookupByLibrary.simpleMessage("Face recognition"),
"faces": MessageLookupByLibrary.simpleMessage("Faces"),
+ "failed": MessageLookupByLibrary.simpleMessage("Failed"),
"failedToApplyCode":
MessageLookupByLibrary.simpleMessage("Failed to apply code"),
"failedToCancel":
@@ -1030,6 +1031,7 @@ class MessageLookup extends MessageLookupByLibrary {
"indexedItems": MessageLookupByLibrary.simpleMessage("Indexed items"),
"indexingIsPaused": MessageLookupByLibrary.simpleMessage(
"Indexing is paused. It will automatically resume when device is ready."),
+ "ineligible": MessageLookupByLibrary.simpleMessage("Ineligible"),
"info": MessageLookupByLibrary.simpleMessage("Info"),
"insecureDevice":
MessageLookupByLibrary.simpleMessage("Insecure device"),
@@ -1363,7 +1365,9 @@ class MessageLookup extends MessageLookupByLibrary {
"pinAlbum": MessageLookupByLibrary.simpleMessage("Pin album"),
"pinLock": MessageLookupByLibrary.simpleMessage("PIN lock"),
"playOnTv": MessageLookupByLibrary.simpleMessage("Play album on TV"),
+ "playOriginal": MessageLookupByLibrary.simpleMessage("Play original"),
"playStoreFreeTrialValidTill": m52,
+ "playStream": MessageLookupByLibrary.simpleMessage("Play stream"),
"playstoreSubscription":
MessageLookupByLibrary.simpleMessage("PlayStore subscription"),
"pleaseCheckYourInternetConnectionAndTryAgain":
@@ -1410,13 +1414,15 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("Private sharing"),
"proceed": MessageLookupByLibrary.simpleMessage("Proceed"),
"processed": MessageLookupByLibrary.simpleMessage("Processed"),
+ "processing": MessageLookupByLibrary.simpleMessage("Processing"),
"processingImport": m55,
"processingVideos":
- MessageLookupByLibrary.simpleMessage("Processing Videos"),
+ MessageLookupByLibrary.simpleMessage("Processing videos"),
"publicLinkCreated":
MessageLookupByLibrary.simpleMessage("Public link created"),
"publicLinkEnabled":
MessageLookupByLibrary.simpleMessage("Public link enabled"),
+ "queued": MessageLookupByLibrary.simpleMessage("Queued"),
"quickLinks": MessageLookupByLibrary.simpleMessage("Quick links"),
"radius": MessageLookupByLibrary.simpleMessage("Radius"),
"raiseTicket": MessageLookupByLibrary.simpleMessage("Raise ticket"),
@@ -1932,7 +1938,7 @@ class MessageLookup extends MessageLookupByLibrary {
"videoInfo": MessageLookupByLibrary.simpleMessage("Video Info"),
"videoSmallCase": MessageLookupByLibrary.simpleMessage("video"),
"videoStreaming":
- MessageLookupByLibrary.simpleMessage("Video Streaming"),
+ MessageLookupByLibrary.simpleMessage("Video streaming"),
"videos": MessageLookupByLibrary.simpleMessage("Videos"),
"viewActiveSessions":
MessageLookupByLibrary.simpleMessage("View active sessions"),
diff --git a/mobile/lib/generated/l10n.dart b/mobile/lib/generated/l10n.dart
index 0856be15a4..7096abda62 100644
--- a/mobile/lib/generated/l10n.dart
+++ b/mobile/lib/generated/l10n.dart
@@ -11131,20 +11131,20 @@ class S {
);
}
- /// `Video Streaming`
+ /// `Video streaming`
String get videoStreaming {
return Intl.message(
- 'Video Streaming',
+ 'Video streaming',
name: 'videoStreaming',
desc: '',
args: [],
);
}
- /// `Processing Videos`
+ /// `Processing videos`
String get processingVideos {
return Intl.message(
- 'Processing Videos',
+ 'Processing videos',
name: 'processingVideos',
desc: '',
args: [],
@@ -11160,6 +11160,66 @@ class S {
args: [],
);
}
+
+ /// `Processing`
+ String get processing {
+ return Intl.message(
+ 'Processing',
+ name: 'processing',
+ desc: '',
+ args: [],
+ );
+ }
+
+ /// `Queued`
+ String get queued {
+ return Intl.message(
+ 'Queued',
+ name: 'queued',
+ desc: '',
+ args: [],
+ );
+ }
+
+ /// `Ineligible`
+ String get ineligible {
+ return Intl.message(
+ 'Ineligible',
+ name: 'ineligible',
+ desc: '',
+ args: [],
+ );
+ }
+
+ /// `Failed`
+ String get failed {
+ return Intl.message(
+ 'Failed',
+ name: 'failed',
+ desc: '',
+ args: [],
+ );
+ }
+
+ /// `Play stream`
+ String get playStream {
+ return Intl.message(
+ 'Play stream',
+ name: 'playStream',
+ desc: '',
+ args: [],
+ );
+ }
+
+ /// `Play original`
+ String get playOriginal {
+ return Intl.message(
+ 'Play original',
+ name: 'playOriginal',
+ desc: '',
+ args: [],
+ );
+ }
}
class AppLocalizationDelegate extends LocalizationsDelegate<S> {
diff --git a/mobile/lib/l10n/intl_en.arb b/mobile/lib/l10n/intl_en.arb
index 17d7364cf1..46b814c91e 100644
--- a/mobile/lib/l10n/intl_en.arb
+++ b/mobile/lib/l10n/intl_en.arb
@@ -1665,7 +1665,13 @@
"@linkPersonCaption": {
"description": "Caption for the 'Link person' title. It should be a continuation of the 'Link person' title. Just like how 'Link person' + 'for better sharing experience' forms a proper sentence in English, the combination of these two strings should also be a proper sentence in other languages."
},
- "videoStreaming": "Video Streaming",
- "processingVideos": "Processing Videos",
- "streamDetails": "Stream details"
+ "videoStreaming": "Video streaming",
+ "processingVideos": "Processing videos",
+ "streamDetails": "Stream details",
+ "processing": "Processing",
+ "queued": "Queued",
+ "ineligible": "Ineligible",
+ "failed": "Failed",
+ "playStream": "Play stream",
+ "playOriginal": "Play original"
}
\ No newline at end of file
diff --git a/mobile/lib/models/file/file.dart b/mobile/lib/models/file/file.dart
index 705d740e82..937bee0cb1 100644
--- a/mobile/lib/models/file/file.dart
+++ b/mobile/lib/models/file/file.dart
@@ -160,7 +160,6 @@ class EnteFile {
Future<Map<String, dynamic>> getMetadataForUpload(
MediaUploadData mediaUploadData,
- ParsedExifDateTime? exifTime,
) async {
final asset = await getAsset;
// asset can be null for files shared to app
@@ -171,24 +170,36 @@ class EnteFile {
}
}
bool hasExifTime = false;
- if (exifTime != null && exifTime.time != null) {
- hasExifTime = true;
- creationTime = exifTime.time!.microsecondsSinceEpoch;
- }
- if (mediaUploadData.exifData != null) {
- mediaUploadData.isPanorama =
- checkPanoramaFromEXIF(null, mediaUploadData.exifData);
- }
- if (mediaUploadData.isPanorama != true &&
- fileType == FileType.image &&
+ if ((fileType == FileType.image || fileType == FileType.video) &&
mediaUploadData.sourceFile != null) {
- try {
- final xmpData = await getXmp(mediaUploadData.sourceFile!);
- mediaUploadData.isPanorama = checkPanoramaFromXMP(xmpData);
- } catch (_) {}
- mediaUploadData.isPanorama ??= false;
+ final exifData = await getExifFromSourceFile(mediaUploadData.sourceFile!);
+ if (exifData != null) {
+ if (fileType == FileType.image) {
+ final exifTime = await getCreationTimeFromEXIF(null, exifData);
+ if (exifTime != null) {
+ hasExifTime = true;
+ creationTime = exifTime.microsecondsSinceEpoch;
+ }
+ mediaUploadData.isPanorama = checkPanoramaFromEXIF(null, exifData);
+
+ if (mediaUploadData.isPanorama != true) {
+ try {
+ final xmpData = await getXmp(mediaUploadData.sourceFile!);
+ mediaUploadData.isPanorama = checkPanoramaFromXMP(xmpData);
+ } catch (_) {}
+
+ mediaUploadData.isPanorama ??= false;
+ }
+ }
+ if (Platform.isAndroid) {
+ //Fix for missing location data in lower android versions.
+ final Location? exifLocation = locationFromExif(exifData);
+ if (Location.isValidLocation(exifLocation)) {
+ location = exifLocation;
+ }
+ }
+ }
}
-
// Try to get the timestamp from fileName. In case of iOS, file names are
// generic IMG_XXXX, so only parse it on Android devices
if (!hasExifTime && Platform.isAndroid && title != null) {
diff --git a/mobile/lib/models/metadata/file_magic.dart b/mobile/lib/models/metadata/file_magic.dart
index 02f6188a9d..7599b7c82f 100644
--- a/mobile/lib/models/metadata/file_magic.dart
+++ b/mobile/lib/models/metadata/file_magic.dart
@@ -14,8 +14,6 @@ const latKey = "lat";
const longKey = "long";
const motionVideoIndexKey = "mvi";
const noThumbKey = "noThumb";
-const dateTimeKey = 'dateTime';
-const offsetTimeKey = 'offsetTime';
class MagicMetadata {
// 0 -> visible
@@ -48,11 +46,6 @@ class PubMagicMetadata {
double? lat;
double? long;
- // ISO 8601 datetime without timezone. This contains the date and time of the photo in the original tz
- // where the photo was taken.
- String? dateTime;
- String? offsetTime;
-
// Motion Video Index. Positive value (>0) indicates that the file is a motion
// photo
int? mvi;
@@ -81,8 +74,6 @@ class PubMagicMetadata {
this.mvi,
this.noThumb,
this.mediaType,
- this.dateTime,
- this.offsetTime,
});
factory PubMagicMetadata.fromEncodedJson(String encodedJson) =>
@@ -105,8 +96,6 @@ class PubMagicMetadata {
mvi: map[motionVideoIndexKey],
noThumb: map[noThumbKey],
mediaType: map[mediaTypeKey],
- dateTime: map[dateTimeKey],
- offsetTime: map[offsetTimeKey],
);
}
diff --git a/mobile/lib/module/upload/service/multipart.dart b/mobile/lib/module/upload/service/multipart.dart
index 163f055845..762d26301e 100644
--- a/mobile/lib/module/upload/service/multipart.dart
+++ b/mobile/lib/module/upload/service/multipart.dart
@@ -132,7 +132,7 @@ class MultiPartUploader {
// upload individual parts and get their etags
try {
etags = await _uploadParts(multipartInfo, encryptedFile);
- } on DioError catch (e) {
+ } on DioException catch (e) {
if (e.response?.statusCode == 404) {
_logger.severe(
"Multipart upload not found for key ${multipartInfo.urls.objectKey}",
@@ -157,7 +157,7 @@ class MultiPartUploader {
etags,
multipartInfo.urls.completeURL,
);
- } on DioError catch (e) {
+ } on DioException catch (e) {
if (e.response?.statusCode == 404) {
_logger.severe(
"Multipart upload not found for key ${multipartInfo.urls.objectKey}",
diff --git a/mobile/lib/services/billing_service.dart b/mobile/lib/services/billing_service.dart
index b26d4507a3..130a26241d 100644
--- a/mobile/lib/services/billing_service.dart
+++ b/mobile/lib/services/billing_service.dart
@@ -92,7 +92,7 @@ class BillingService {
},
);
return Subscription.fromMap(response.data["subscription"]);
- } on DioError catch (e) {
+ } on DioException catch (e) {
if (e.response != null && e.response!.statusCode == 409) {
throw SubscriptionAlreadyClaimedError();
} else {
@@ -109,7 +109,7 @@ class BillingService {
final response = await _enteDio.get("/billing/subscription");
final subscription = Subscription.fromMap(response.data["subscription"]);
return subscription;
- } on DioError catch (e, s) {
+ } on DioException catch (e, s) {
_logger.severe(e, s);
rethrow;
}
@@ -121,7 +121,7 @@ class BillingService {
await _enteDio.post("/billing/stripe/cancel-subscription");
final subscription = Subscription.fromMap(response.data["subscription"]);
return subscription;
- } on DioError catch (e, s) {
+ } on DioException catch (e, s) {
_logger.severe(e, s);
rethrow;
}
@@ -133,7 +133,7 @@ class BillingService {
await _enteDio.post("/billing/stripe/activate-subscription");
final subscription = Subscription.fromMap(response.data["subscription"]);
return subscription;
- } on DioError catch (e, s) {
+ } on DioException catch (e, s) {
_logger.severe(e, s);
rethrow;
}
@@ -150,7 +150,7 @@ class BillingService {
},
);
return response.data["url"];
- } on DioError catch (e, s) {
+ } on DioException catch (e, s) {
_logger.severe(e, s);
rethrow;
}
diff --git a/mobile/lib/services/collections_service.dart b/mobile/lib/services/collections_service.dart
index 7c5de3985b..3bac9fe978 100644
--- a/mobile/lib/services/collections_service.dart
+++ b/mobile/lib/services/collections_service.dart
@@ -553,7 +553,7 @@ class CollectionsService {
unawaited(_db.insert([_collectionIDToCollections[collectionID]!]));
RemoteSyncService.instance.sync(silently: true).ignore();
return sharees;
- } on DioError catch (e) {
+ } on DioException catch (e) {
if (e.response?.statusCode == 402) {
throw SharingNotPermittedForFreeAccountsError();
}
@@ -641,7 +641,7 @@ class CollectionsService {
} else {
await _handleCollectionDeletion(collection);
}
- } on DioError catch (e) {
+ } on DioException catch (e) {
if (e.response != null) {
debugPrint("Error " + e.response!.toString());
}
@@ -808,7 +808,7 @@ class CollectionsService {
// trigger sync to fetch the latest collection state from server
sync().ignore();
- } on DioError catch (e) {
+ } on DioException catch (e) {
if (e.response != null && e.response?.statusCode == 409) {
_logger.severe('collection magic data out of sync');
sync().ignore();
@@ -867,7 +867,7 @@ class CollectionsService {
_cacheLocalPathAndCollection(collection);
// trigger sync to fetch the latest collection state from server
sync().ignore();
- } on DioError catch (e) {
+ } on DioException catch (e) {
if (e.response != null && e.response?.statusCode == 409) {
_logger.severe('collection magic data out of sync');
sync().ignore();
@@ -927,7 +927,7 @@ class CollectionsService {
_cacheLocalPathAndCollection(collection);
// trigger sync to fetch the latest collection state from server
sync().ignore();
- } on DioError catch (e) {
+ } on DioException catch (e) {
if (e.response != null && e.response?.statusCode == 409) {
_logger.severe('collection magic data out of sync');
sync().ignore();
@@ -958,7 +958,7 @@ class CollectionsService {
Bus.instance.fire(
CollectionUpdatedEvent(collection.id, <EnteFile>[], "shareUrL"),
);
- } on DioError catch (e) {
+ } on DioException catch (e) {
if (e.response?.statusCode == 402) {
throw SharingNotPermittedForFreeAccountsError();
}
@@ -987,7 +987,7 @@ class CollectionsService {
Bus.instance.fire(
CollectionUpdatedEvent(collection.id, <EnteFile>[], "updateUrl"),
);
- } on DioError catch (e) {
+ } on DioException catch (e) {
if (e.response?.statusCode == 402) {
throw SharingNotPermittedForFreeAccountsError();
}
@@ -1013,7 +1013,7 @@ class CollectionsService {
"disableShareUrl",
),
);
- } on DioError catch (e) {
+ } on DioException catch (e) {
_logger.info(e);
rethrow;
}
@@ -1038,7 +1038,7 @@ class CollectionsService {
return collections;
} catch (e, s) {
_logger.warning(e, s);
- if (e is DioError && e.response?.statusCode == 401) {
+ if (e is DioException && e.response?.statusCode == 401) {
throw UnauthorizedError();
}
rethrow;
@@ -1091,7 +1091,7 @@ class CollectionsService {
} catch (e, s) {
_logger.warning(e, s);
_logger.severe("Failed to fetch public collection");
- if (e is DioError && e.response?.statusCode == 410) {
+ if (e is DioException && e.response?.statusCode == 410) {
await showInfoDialog(
context,
title: S.of(context).linkExpired,
@@ -1100,7 +1100,7 @@ class CollectionsService {
throw UnauthorizedError();
}
await showGenericErrorDialog(context: context, error: e);
- if (e is DioError && e.response?.statusCode == 401) {
+ if (e is DioException && e.response?.statusCode == 401) {
throw UnauthorizedError();
}
rethrow;
@@ -1300,7 +1300,7 @@ class CollectionsService {
_cacheLocalPathAndCollection(collection);
return collection;
} catch (e) {
- if (e is DioError && e.response?.statusCode == 401) {
+ if (e is DioException && e.response?.statusCode == 401) {
throw UnauthorizedError();
}
_logger.severe('failed to fetch collection: $collectionID', e);
diff --git a/mobile/lib/services/file_magic_service.dart b/mobile/lib/services/file_magic_service.dart
index 9fbbfb9760..30e74d9c73 100644
--- a/mobile/lib/services/file_magic_service.dart
+++ b/mobile/lib/services/file_magic_service.dart
@@ -117,7 +117,7 @@ class FileMagicService {
// should be eventually synced after remote sync has completed
await _filesDB.insertMultiple(files);
RemoteSyncService.instance.sync(silently: true).ignore();
- } on DioError catch (e) {
+ } on DioException catch (e) {
if (e.response != null && e.response!.statusCode == 409) {
RemoteSyncService.instance.sync(silently: true).ignore();
}
@@ -185,7 +185,7 @@ class FileMagicService {
// update the state of the selected file. Same file in other collection
// should be eventually synced after remote sync has completed
RemoteSyncService.instance.sync(silently: true).ignore();
- } on DioError catch (e) {
+ } on DioException catch (e) {
if (e.response != null && e.response!.statusCode == 409) {
RemoteSyncService.instance.sync(silently: true).ignore();
}
diff --git a/mobile/lib/services/preview_video_store.dart b/mobile/lib/services/preview_video_store.dart
index e231e14d18..37baf778d6 100644
--- a/mobile/lib/services/preview_video_store.dart
+++ b/mobile/lib/services/preview_video_store.dart
@@ -82,7 +82,7 @@ class PreviewVideoStore {
Bus.instance.fire(VideoStreamingChanged());
if (isVideoStreamingEnabled) {
- await putFilesForPreviewCreation();
+ putFilesForPreviewCreation().ignore();
} else {
clearQueue();
}
@@ -202,7 +202,10 @@ class PreviewVideoStore {
);
FFmpegSession? session;
+ final colorSpace = videoData["color_space"]?.toString().toLowerCase();
+ final isColorGood = colorSpace == "bt709";
final codecIsH264 = codec?.contains("h264") ?? false;
+
if (bitrate != null && bitrate <= 4000 * 1000 && codecIsH264) {
// create playlist without compression, as is
session = await FFmpegKit.execute(
@@ -233,6 +236,18 @@ class PreviewVideoStore {
);
}
+ if (colorSpace != null && isColorGood) {
+ session ??= await FFmpegKit.execute(
+ '-i "${file.path}" '
+ '-metadata:s:v:0 rotate=0 '
+ '-vf "scale=-2:720,fps=30" '
+ '-c:v libx264 -b:v 2000k -preset medium '
+ '-c:a aac -b:a 128k -f hls -hls_time 10 -hls_flags single_file '
+ '-hls_list_size 0 -hls_key_info_file ${keyinfo.path} '
+ '$prefix/output.m3u8',
+ );
+ }
+
session ??= await FFmpegKit.execute(
'-i "${file.path}" '
'-metadata:s:v:0 rotate=0 '
@@ -316,6 +331,7 @@ class PreviewVideoStore {
}
if (error == null) {
+ FileDataService.instance.syncFDStatus().ignore();
_items[enteFile.uploadedFileID!] = PreviewItem(
status: PreviewItemStatus.uploaded,
file: enteFile,
@@ -372,6 +388,7 @@ class PreviewVideoStore {
'type': 'hls_video',
'width': width,
'height': height,
+ 'size': objectSize,
},
encryptionKey,
);
@@ -479,7 +496,7 @@ class PreviewVideoStore {
width = playlistData["width"];
height = playlistData["height"];
- size = response.data["data"]["objectSize"];
+ size = playlistData["size"];
if (objectKey != null) {
unawaited(
diff --git a/mobile/lib/services/sync_service.dart b/mobile/lib/services/sync_service.dart
index 2eaafe2545..f015c9a82c 100644
--- a/mobile/lib/services/sync_service.dart
+++ b/mobile/lib/services/sync_service.dart
@@ -133,11 +133,11 @@ class SyncService {
),
);
} catch (e) {
- if (e is DioError) {
- if (e.type == DioErrorType.connectTimeout ||
- e.type == DioErrorType.sendTimeout ||
- e.type == DioErrorType.receiveTimeout ||
- e.type == DioErrorType.other) {
+ if (e is DioException) {
+ if (e.type == DioExceptionType.connectionTimeout ||
+ e.type == DioExceptionType.sendTimeout ||
+ e.type == DioExceptionType.receiveTimeout ||
+ e.type == DioExceptionType.unknown) {
Bus.instance.fire(
SyncStatusUpdate(
SyncStatus.paused,
diff --git a/mobile/lib/services/user_service.dart b/mobile/lib/services/user_service.dart
index 60b2ad04f0..1098005f45 100644
--- a/mobile/lib/services/user_service.dart
+++ b/mobile/lib/services/user_service.dart
@@ -124,7 +124,7 @@ class UserService {
} else {
throw Exception("send-ott action failed, non-200");
}
- } on DioError catch (e) {
+ } on DioException catch (e) {
await dialog.hide();
_logger.info(e);
final String? enteErrCode = e.response?.data["code"];
@@ -185,7 +185,7 @@ class UserService {
);
final publicKey = response.data["publicKey"];
return publicKey;
- } on DioError catch (e) {
+ } on DioException catch (e) {
if (e.response != null && e.response?.statusCode == 404) {
return null;
}
@@ -221,7 +221,7 @@ class UserService {
}
}
return userDetails;
- } on DioError catch (e) {
+ } on DioException catch (e) {
_logger.info(e);
rethrow;
}
@@ -231,7 +231,7 @@ class UserService {
try {
final response = await _enteDio.get("/users/sessions");
return Sessions.fromMap(response.data);
- } on DioError catch (e) {
+ } on DioException catch (e) {
_logger.info(e);
rethrow;
}
@@ -245,7 +245,7 @@ class UserService {
"token": token,
},
);
- } on DioError catch (e) {
+ } on DioException catch (e) {
_logger.info(e);
rethrow;
}
@@ -254,7 +254,7 @@ class UserService {
Future<void> leaveFamilyPlan() async {
try {
await _enteDio.delete("/family/leave");
- } on DioError catch (e) {
+ } on DioException catch (e) {
_logger.warning('failed to leave family plan', e);
rethrow;
}
@@ -271,7 +271,7 @@ class UserService {
}
} catch (e) {
// check if token is already invalid
- if (e is DioError && e.response?.statusCode == 401) {
+ if (e is DioException && e.response?.statusCode == 401) {
await Configuration.instance.logout();
Navigator.of(context).popUntil((route) => route.isFirst);
return;
@@ -342,7 +342,7 @@ class UserService {
},
);
return response.data;
- } on DioError catch (e) {
+ } on DioException catch (e) {
if (e.response != null) {
if (e.response!.statusCode == 404 || e.response!.statusCode == 410) {
throw PassKeySessionExpiredError();
@@ -460,7 +460,7 @@ class UserService {
// should never reach here
throw Exception("unexpected response during email verification");
}
- } on DioError catch (e) {
+ } on DioException catch (e) {
_logger.info(e);
await dialog.hide();
if (e.response != null && e.response!.statusCode == 410) {
@@ -532,7 +532,7 @@ class UserService {
S.of(context).oops,
S.of(context).verificationFailedPleaseTryAgain,
);
- } on DioError catch (e) {
+ } on DioException catch (e) {
await dialog.hide();
if (e.response != null && e.response!.statusCode == 403) {
// ignore: unawaited_futures
@@ -592,7 +592,7 @@ class UserService {
} else {
throw Exception("get-srp-attributes action failed");
}
- } on DioError catch (e) {
+ } on DioException catch (e) {
if (e.response != null && e.response!.statusCode == 404) {
throw SrpSetupNotCompleteError();
}
@@ -865,7 +865,7 @@ class UserService {
(route) => route.isFirst,
);
}
- } on DioError catch (e) {
+ } on DioException catch (e) {
await dialog.hide();
_logger.severe(e);
if (e.response != null && e.response!.statusCode == 404) {
@@ -932,7 +932,7 @@ class UserService {
(route) => route.isFirst,
);
}
- } on DioError catch (e) {
+ } on DioException catch (e) {
await dialog.hide();
_logger.severe('error while recovery 2fa', e);
if (e.response != null && e.response!.statusCode == 404) {
@@ -1031,7 +1031,7 @@ class UserService {
(route) => route.isFirst,
);
}
- } on DioError catch (e) {
+ } on DioException catch (e) {
await dialog.hide();
_logger.severe("error during recovery", e);
if (e.response != null && e.response!.statusCode == 404) {
@@ -1126,7 +1126,7 @@ class UserService {
} catch (e, s) {
await dialog.hide();
_logger.severe(e, s);
- if (e is DioError) {
+ if (e is DioException) {
if (e.response != null && e.response!.statusCode == 401) {
// ignore: unawaited_futures
showErrorDialog(
diff --git a/mobile/lib/states/all_sections_examples_state.dart b/mobile/lib/states/all_sections_examples_state.dart
index 9feb3d96bd..abb0077ef3 100644
--- a/mobile/lib/states/all_sections_examples_state.dart
+++ b/mobile/lib/states/all_sections_examples_state.dart
@@ -36,11 +36,13 @@ class _AllSectionsExamplesProviderState
late StreamSubscription<TabChangedEvent> _tabChangeEvent;
bool hasPendingUpdate = false;
bool isOnSearchTab = false;
+ bool _firstLoadInProgressOrComplete = false;
final _logger = Logger("AllSectionsExamplesProvider");
final _debouncer = Debouncer(
const Duration(seconds: 3),
executionInterval: const Duration(seconds: 12),
+ leading: true,
);
@override
@@ -66,7 +68,12 @@ class _AllSectionsExamplesProviderState
isOnSearchTab = false;
}
});
- reloadAllSections();
+
+ Future.delayed(const Duration(seconds: 3), () {
+ if (!_firstLoadInProgressOrComplete) {
+ reloadAllSections();
+ }
+ });
}
void onDataUpdate() {
@@ -82,6 +89,7 @@ class _AllSectionsExamplesProviderState
}
void reloadAllSections() {
+ _firstLoadInProgressOrComplete = true;
_logger.info('queue reload all sections');
_debouncer.run(() async {
setState(() {
diff --git a/mobile/lib/ui/account/login_pwd_verification_page.dart b/mobile/lib/ui/account/login_pwd_verification_page.dart
index ac974c20da..2d5e9237ce 100644
--- a/mobile/lib/ui/account/login_pwd_verification_page.dart
+++ b/mobile/lib/ui/account/login_pwd_verification_page.dart
@@ -113,7 +113,7 @@ class _LoginPasswordVerificationPageState
password,
dialog,
);
- } on DioError catch (e, s) {
+ } on DioException catch (e, s) {
await dialog.hide();
if (e.response != null && e.response!.statusCode == 401) {
_logger.severe('server reject, failed verify SRP login', e, s);
@@ -123,8 +123,10 @@ class _LoginPasswordVerificationPageState
S.of(context).pleaseTryAgain,
);
} else {
- _logger.severe('API failure during SRP login', e, s);
- if (e.type == DioErrorType.other) {
+ _logger.severe('API failure during SRP login ${e.type}', e, s);
+ if (e.type == DioExceptionType.connectionTimeout ||
+ e.type == DioExceptionType.receiveTimeout ||
+ e.type == DioExceptionType.sendTimeout) {
await _showContactSupportDialog(
context,
S.of(context).noInternetConnection,
diff --git a/mobile/lib/ui/account/verify_recovery_page.dart b/mobile/lib/ui/account/verify_recovery_page.dart
index 54c8595977..46585a734d 100644
--- a/mobile/lib/ui/account/verify_recovery_page.dart
+++ b/mobile/lib/ui/account/verify_recovery_page.dart
@@ -43,7 +43,7 @@ class _VerifyRecoveryPageState extends State<VerifyRecoveryPage> {
await userRemoteFlagService.markRecoveryVerificationAsDone();
} catch (e) {
await dialog.hide();
- if (e is DioError && e.type == DioErrorType.other) {
+ if (e is DioException && e.type == DioExceptionType.connectionError) {
await showErrorDialog(
context,
S.of(context).noInternetConnection,
diff --git a/mobile/lib/ui/collections/device/device_folders_grid_view.dart b/mobile/lib/ui/collections/device/device_folders_grid_view.dart
index b9c2588613..6f4ac30f0f 100644
--- a/mobile/lib/ui/collections/device/device_folders_grid_view.dart
+++ b/mobile/lib/ui/collections/device/device_folders_grid_view.dart
@@ -16,8 +16,8 @@ import "package:photos/utils/debouncer.dart";
class DeviceFoldersGridView extends StatefulWidget {
const DeviceFoldersGridView({
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
State<DeviceFoldersGridView> createState() => _DeviceFoldersGridViewState();
@@ -31,10 +31,12 @@ class _DeviceFoldersGridViewState extends State<DeviceFoldersGridView> {
final _debouncer = Debouncer(
const Duration(seconds: 2),
executionInterval: const Duration(seconds: 5),
+ leading: true,
);
@override
void initState() {
+ super.initState();
_backupFoldersUpdatedEvent =
Bus.instance.on<BackupFoldersUpdatedEvent>().listen((event) {
_loadReason = event.reason;
@@ -51,8 +53,6 @@ class _DeviceFoldersGridViewState extends State<DeviceFoldersGridView> {
}
});
});
-
- super.initState();
}
@override
diff --git a/mobile/lib/ui/collections/device/device_folders_vertical_grid_view.dart b/mobile/lib/ui/collections/device/device_folders_vertical_grid_view.dart
index f465878ff5..d5ac85e0ea 100644
--- a/mobile/lib/ui/collections/device/device_folders_vertical_grid_view.dart
+++ b/mobile/lib/ui/collections/device/device_folders_vertical_grid_view.dart
@@ -74,6 +74,7 @@ class _DeviceFolderVerticalGridViewBodyState
@override
void initState() {
+ super.initState();
_backupFoldersUpdatedEvent =
Bus.instance.on<BackupFoldersUpdatedEvent>().listen((event) {
_loadReason = event.reason;
@@ -90,7 +91,6 @@ class _DeviceFolderVerticalGridViewBodyState
}
});
});
- super.initState();
}
@override
diff --git a/mobile/lib/ui/growth/referral_code_widget.dart b/mobile/lib/ui/growth/referral_code_widget.dart
index cb139c7263..7620aff22d 100644
--- a/mobile/lib/ui/growth/referral_code_widget.dart
+++ b/mobile/lib/ui/growth/referral_code_widget.dart
@@ -108,7 +108,7 @@ class ReferralCodeWidget extends StatelessWidget {
notifyParent?.call();
} catch (e, s) {
Logger("ReferralCodeWidget").severe("Failed to update code", e, s);
- if (e is DioError) {
+ if (e is DioException) {
if (e.response?.statusCode == 400) {
await showInfoDialog(
context,
diff --git a/mobile/lib/ui/home/status_bar_widget.dart b/mobile/lib/ui/home/status_bar_widget.dart
index 1705cece1e..e967d7b0b5 100644
--- a/mobile/lib/ui/home/status_bar_widget.dart
+++ b/mobile/lib/ui/home/status_bar_widget.dart
@@ -144,7 +144,9 @@ class _StatusBarWidgetState extends State<StatusBarWidget> {
forceCustomPageRoute: true,
).ignore();
},
- child: Text(S.of(context).processingVideos),
+ child: RefreshIndicatorWidget(
+ S.of(context).processingVideos,
+ ),
)
: const Text("ente", style: brandStyleMedium),
),
@@ -249,7 +251,50 @@ class _SyncStatusWidgetState extends State<SyncStatusWidget> {
if (_event!.status == SyncStatus.completedBackup) {
return const SyncStatusCompletedWidget();
}
- return RefreshIndicatorWidget(_event);
+ return RefreshIndicatorWidget(_getRefreshingText(context));
+ }
+
+ String _getRefreshingText(BuildContext context) {
+ if (_event == null) {
+ return S.of(context).loadingGallery;
+ }
+ if (_event!.status == SyncStatus.startedFirstGalleryImport ||
+ _event!.status == SyncStatus.completedFirstGalleryImport) {
+ return S.of(context).loadingGallery;
+ }
+ if (_event!.status == SyncStatus.applyingRemoteDiff) {
+ return S.of(context).syncing;
+ }
+ if (_event!.status == SyncStatus.preparingForUpload) {
+ if (_event!.total == null || _event!.total! <= 0) {
+ return S.of(context).encryptingBackup;
+ } else if (_event!.total == 1) {
+ return S.of(context).uploadingSingleMemory;
+ } else {
+ return S
+ .of(context)
+ .uploadingMultipleMemories(NumberFormat().format(_event!.total!));
+ }
+ }
+ if (_event!.status == SyncStatus.inProgress) {
+ final format = NumberFormat();
+ return S.of(context).syncProgress(
+ format.format(_event!.completed!),
+ format.format(_event!.total!),
+ );
+ }
+ if (_event!.status == SyncStatus.paused) {
+ return _event!.reason;
+ }
+ if (_event!.status == SyncStatus.error) {
+ return _event!.reason;
+ }
+ if (_event!.status == SyncStatus.completedBackup) {
+ if (_event!.wasStopped) {
+ return S.of(context).syncStopped;
+ }
+ }
+ return S.of(context).allMemoriesPreserved;
}
}
@@ -259,9 +304,9 @@ class RefreshIndicatorWidget extends StatelessWidget {
valueColor: AlwaysStoppedAnimation<Color>(Color.fromRGBO(45, 194, 98, 1.0)),
);
- final SyncStatusUpdate? event;
+ final String text;
- const RefreshIndicatorWidget(this.event, {super.key});
+ const RefreshIndicatorWidget(this.text, {super.key});
@override
Widget build(BuildContext context) {
@@ -286,7 +331,7 @@ class RefreshIndicatorWidget extends StatelessWidget {
),
Padding(
padding: const EdgeInsets.fromLTRB(12, 4, 0, 0),
- child: Text(_getRefreshingText(context)),
+ child: Text(text),
),
],
),
@@ -295,49 +340,6 @@ class RefreshIndicatorWidget extends StatelessWidget {
),
);
}
-
- String _getRefreshingText(BuildContext context) {
- if (event == null) {
- return S.of(context).loadingGallery;
- }
- if (event!.status == SyncStatus.startedFirstGalleryImport ||
- event!.status == SyncStatus.completedFirstGalleryImport) {
- return S.of(context).loadingGallery;
- }
- if (event!.status == SyncStatus.applyingRemoteDiff) {
- return S.of(context).syncing;
- }
- if (event!.status == SyncStatus.preparingForUpload) {
- if (event!.total == null || event!.total! <= 0) {
- return S.of(context).encryptingBackup;
- } else if (event!.total == 1) {
- return S.of(context).uploadingSingleMemory;
- } else {
- return S
- .of(context)
- .uploadingMultipleMemories(NumberFormat().format(event!.total!));
- }
- }
- if (event!.status == SyncStatus.inProgress) {
- final format = NumberFormat();
- return S.of(context).syncProgress(
- format.format(event!.completed!),
- format.format(event!.total!),
- );
- }
- if (event!.status == SyncStatus.paused) {
- return event!.reason;
- }
- if (event!.status == SyncStatus.error) {
- return event!.reason;
- }
- if (event!.status == SyncStatus.completedBackup) {
- if (event!.wasStopped) {
- return S.of(context).syncStopped;
- }
- }
- return S.of(context).allMemoriesPreserved;
- }
}
class SyncStatusCompletedWidget extends StatelessWidget {
diff --git a/mobile/lib/ui/map/map_view.dart b/mobile/lib/ui/map/map_view.dart
index 8804774223..3629da7e96 100644
--- a/mobile/lib/ui/map/map_view.dart
+++ b/mobile/lib/ui/map/map_view.dart
@@ -28,7 +28,7 @@ class MapView extends StatefulWidget {
static const defaultMarkerSize = Size(75, 75);
const MapView({
- Key? key,
+ super.key,
required this.updateVisibleImages,
required this.imageMarkers,
required this.controller,
@@ -42,7 +42,7 @@ class MapView extends StatefulWidget {
this.onTap,
this.interactiveFlags = InteractiveFlag.all,
this.showControls = true,
- }) : super(key: key);
+ });
@override
State<StatefulWidget> createState() => _MapViewState();
diff --git a/mobile/lib/ui/settings/backup/backup_item_card.dart b/mobile/lib/ui/settings/backup/backup_item_card.dart
index a17cdcfd40..da00498ca3 100644
--- a/mobile/lib/ui/settings/backup/backup_item_card.dart
+++ b/mobile/lib/ui/settings/backup/backup_item_card.dart
@@ -7,9 +7,11 @@ import "package:photos/models/preview/preview_item.dart";
import "package:photos/models/preview/preview_item_status.dart";
import "package:photos/services/preview_video_store.dart";
import 'package:photos/theme/ente_theme.dart';
+import "package:photos/ui/viewer/file/detail_page.dart";
import "package:photos/ui/viewer/file/thumbnail_widget.dart";
import "package:photos/utils/dialog_util.dart";
import "package:photos/utils/file_uploader.dart";
+import "package:photos/utils/navigation_util.dart";
class BackupItemCard extends StatefulWidget {
const BackupItemCard({
@@ -55,199 +57,214 @@ class _BackupItemCardState extends State<BackupItemCard> {
final hasError = widget.item.error != null ||
widget.preview?.status == PreviewItemStatus.failed;
- return Container(
- height: 60,
- margin: const EdgeInsets.symmetric(vertical: 10),
- decoration: BoxDecoration(
- borderRadius: BorderRadius.circular(4),
- border: Border.all(
- color: colorScheme.fillFaint.withOpacity(0.08),
- width: 1,
- ),
- ),
- child: Row(
- children: [
- SizedBox(
- width: 60,
- height: 60,
- child: ClipRRect(
- borderRadius: BorderRadius.circular(4),
- child: showThumbnail
- ? ThumbnailWidget(
- widget.item.file,
- shouldShowSyncStatus: false,
- )
- : Container(
- color: colorScheme.fillFaint, // Placeholder color
- ),
+ return GestureDetector(
+ onTap: () {
+ routeToPage(
+ context,
+ DetailPage(
+ DetailPageConfiguration(
+ List.unmodifiable([widget.item.file]),
+ 0,
+ "collection",
),
),
- const SizedBox(width: 12),
- Expanded(
- child: Column(
- mainAxisSize: MainAxisSize.min,
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text(
- widget.item.file.displayName,
- maxLines: 1,
- overflow: TextOverflow.ellipsis,
- style: TextStyle(
- fontSize: 16,
- height: 20 / 16,
- color: Theme.of(context).brightness == Brightness.light
- ? const Color(0xFF000000)
- : const Color(0xFFFFFFFF),
+ forceCustomPageRoute: true,
+ );
+ },
+ child: Container(
+ height: 60,
+ margin: const EdgeInsets.symmetric(vertical: 10),
+ decoration: BoxDecoration(
+ borderRadius: BorderRadius.circular(4),
+ border: Border.all(
+ color: colorScheme.fillFaint.withOpacity(0.08),
+ width: 1,
+ ),
+ ),
+ child: Row(
+ children: [
+ SizedBox(
+ width: 60,
+ height: 60,
+ child: ClipRRect(
+ borderRadius: BorderRadius.circular(4),
+ child: showThumbnail
+ ? ThumbnailWidget(
+ widget.item.file,
+ shouldShowSyncStatus: false,
+ )
+ : Container(
+ color: colorScheme.fillFaint, // Placeholder color
+ ),
+ ),
+ ),
+ const SizedBox(width: 12),
+ Expanded(
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ widget.item.file.displayName,
+ maxLines: 1,
+ overflow: TextOverflow.ellipsis,
+ style: TextStyle(
+ fontSize: 16,
+ height: 20 / 16,
+ color: Theme.of(context).brightness == Brightness.light
+ ? const Color(0xFF000000)
+ : const Color(0xFFFFFFFF),
+ ),
),
- ),
- const SizedBox(height: 4),
- Text(
- folderName ?? "",
- maxLines: 1,
- overflow: TextOverflow.ellipsis,
- style: TextStyle(
- fontSize: 14,
- height: 17 / 14,
- color: Theme.of(context).brightness == Brightness.light
- ? const Color.fromRGBO(0, 0, 0, 0.7)
- : const Color.fromRGBO(255, 255, 255, 0.7),
+ const SizedBox(height: 4),
+ Text(
+ folderName ?? "",
+ maxLines: 1,
+ overflow: TextOverflow.ellipsis,
+ style: TextStyle(
+ fontSize: 14,
+ height: 17 / 14,
+ color: Theme.of(context).brightness == Brightness.light
+ ? const Color.fromRGBO(0, 0, 0, 0.7)
+ : const Color.fromRGBO(255, 255, 255, 0.7),
+ ),
),
- ),
- ],
+ ],
+ ),
),
- ),
- if (hasError) const SizedBox(width: 12),
- if (hasError)
+ if (hasError) const SizedBox(width: 12),
+ if (hasError)
+ SizedBox(
+ height: 48,
+ width: 48,
+ child: IconButton(
+ icon: Icon(
+ Icons.error_outline,
+ color: getEnteColorScheme(context).fillBase,
+ ),
+ onPressed: () {
+ String errorMessage = "";
+ if (widget.item.error is Exception) {
+ final Exception ex = widget.item.error as Exception;
+ errorMessage = "Error: " +
+ ex.runtimeType.toString() +
+ " - " +
+ ex.toString();
+ } else if (widget.item.error != null) {
+ errorMessage = widget.item.error.toString();
+ } else if (widget.preview?.error != null) {
+ errorMessage = widget.preview!.error!.toString();
+ }
+ showErrorDialog(
+ context,
+ 'Upload failed',
+ errorMessage,
+ );
+ },
+ ),
+ ),
+ if (hasError) const SizedBox(width: 12),
SizedBox(
height: 48,
width: 48,
- child: IconButton(
- icon: Icon(
- Icons.error_outline,
- color: getEnteColorScheme(context).fillBase,
- ),
- onPressed: () {
- String errorMessage = "";
- if (widget.item.error is Exception) {
- final Exception ex = widget.item.error as Exception;
- errorMessage = "Error: " +
- ex.runtimeType.toString() +
- " - " +
- ex.toString();
- } else if (widget.item.error != null) {
- errorMessage = widget.item.error.toString();
- } else if (widget.preview?.error != null) {
- errorMessage = widget.preview!.error!.toString();
- }
- showErrorDialog(
- context,
- 'Upload failed',
- errorMessage,
- );
- },
- ),
- ),
- if (hasError) const SizedBox(width: 12),
- SizedBox(
- height: 48,
- width: 48,
- child: Center(
- child: switch (widget.item.status) {
- BackupItemStatus.uploading => SizedBox(
- width: 16,
- height: 16,
- child: CircularProgressIndicator(
- strokeWidth: 2.0,
- color: colorScheme.primary700,
+ child: Center(
+ child: switch (widget.item.status) {
+ BackupItemStatus.uploading => SizedBox(
+ width: 16,
+ height: 16,
+ child: CircularProgressIndicator(
+ strokeWidth: 2.0,
+ color: colorScheme.primary700,
+ ),
),
- ),
- BackupItemStatus.uploaded => widget.preview != null
- ? switch (widget.preview!.status) {
- PreviewItemStatus.uploading ||
- PreviewItemStatus.compressing =>
- SizedBox(
- width: 24,
- height: 24,
- child: Image.asset(
- "assets/processing-video.png",
+ BackupItemStatus.uploaded => widget.preview != null
+ ? switch (widget.preview!.status) {
+ PreviewItemStatus.uploading ||
+ PreviewItemStatus.compressing =>
+ SizedBox(
+ width: 24,
+ height: 24,
+ child: Image.asset(
+ "assets/processing-video.png",
+ ),
),
- ),
- PreviewItemStatus.failed => GestureDetector(
- onTap: () =>
- PreviewVideoStore.instance.chunkAndUploadVideo(
- context,
- widget.item.file,
- true,
+ PreviewItemStatus.failed => GestureDetector(
+ onTap: () => PreviewVideoStore.instance
+ .chunkAndUploadVideo(
+ context,
+ widget.item.file,
+ true,
+ ),
+ child: SizedBox(
+ width: 24,
+ height: 24,
+ child: Image.asset(
+ "assets/processing-video-failed.png",
+ ),
+ ),
),
- child: SizedBox(
+ PreviewItemStatus.retry ||
+ PreviewItemStatus.inQueue =>
+ SizedBox(
width: 24,
height: 24,
child: Image.asset(
- "assets/processing-video-failed.png",
+ "assets/video-processing-queued.png",
),
),
- ),
- PreviewItemStatus.retry ||
- PreviewItemStatus.inQueue =>
- SizedBox(
- width: 24,
- height: 24,
- child: Image.asset(
- "assets/video-processing-queued.png",
- ),
- ),
- PreviewItemStatus.uploaded => SizedBox(
- width: 24,
- height: 24,
- child: Image.asset(
- "assets/processing-video-success.png",
+ PreviewItemStatus.uploaded => SizedBox(
+ width: 24,
+ height: 24,
+ child: Image.asset(
+ "assets/processing-video-success.png",
+ ),
),
+ }
+ : const SizedBox(
+ width: 24,
+ height: 24,
+ child: Icon(
+ Icons.check,
+ color: Color(0xFF00B33C),
),
- }
- : const SizedBox(
- width: 24,
- height: 24,
- child: Icon(
- Icons.check,
- color: Color(0xFF00B33C),
),
+ BackupItemStatus.inQueue => SizedBox(
+ width: 24,
+ height: 24,
+ child: Icon(
+ Icons.history,
+ color: Theme.of(context).brightness == Brightness.light
+ ? const Color.fromRGBO(0, 0, 0, .6)
+ : const Color.fromRGBO(255, 255, 255, .6),
),
- BackupItemStatus.inQueue => SizedBox(
- width: 24,
- height: 24,
- child: Icon(
- Icons.history,
- color: Theme.of(context).brightness == Brightness.light
- ? const Color.fromRGBO(0, 0, 0, .6)
- : const Color.fromRGBO(255, 255, 255, .6),
),
- ),
- BackupItemStatus.retry => IconButton(
- icon: const Icon(
- Icons.sync,
- color: Color(0xFFFDB816),
+ BackupItemStatus.retry => IconButton(
+ icon: const Icon(
+ Icons.sync,
+ color: Color(0xFFFDB816),
+ ),
+ onPressed: () async {
+ await FileUploader.instance.upload(
+ widget.item.file,
+ widget.item.collectionID,
+ );
+ },
),
- onPressed: () async {
- await FileUploader.instance.upload(
- widget.item.file,
- widget.item.collectionID,
- );
- },
- ),
- BackupItemStatus.inBackground => SizedBox(
- width: 16,
- height: 16,
- child: CircularProgressIndicator(
- strokeWidth: 2.0,
- color: Theme.of(context).brightness == Brightness.light
- ? const Color.fromRGBO(0, 0, 0, .6)
- : const Color.fromRGBO(255, 255, 255, .6),
+ BackupItemStatus.inBackground => SizedBox(
+ width: 16,
+ height: 16,
+ child: CircularProgressIndicator(
+ strokeWidth: 2.0,
+ color: Theme.of(context).brightness == Brightness.light
+ ? const Color.fromRGBO(0, 0, 0, .6)
+ : const Color.fromRGBO(255, 255, 255, .6),
+ ),
),
- ),
- },
+ },
+ ),
),
- ),
- ],
+ ],
+ ),
),
);
}
diff --git a/mobile/lib/ui/sharing/user_avator_widget.dart b/mobile/lib/ui/sharing/user_avator_widget.dart
index 8b06f09ede..a69430a953 100644
--- a/mobile/lib/ui/sharing/user_avator_widget.dart
+++ b/mobile/lib/ui/sharing/user_avator_widget.dart
@@ -45,6 +45,7 @@ class _UserAvatarWidgetState extends State<UserAvatarWidget> {
final _debouncer = Debouncer(
const Duration(milliseconds: 250),
executionInterval: const Duration(seconds: 20),
+ leading: true,
);
@override
diff --git a/mobile/lib/ui/tabs/shared_collections_tab.dart b/mobile/lib/ui/tabs/shared_collections_tab.dart
index 7e93abca39..a6e7f3c679 100644
--- a/mobile/lib/ui/tabs/shared_collections_tab.dart
+++ b/mobile/lib/ui/tabs/shared_collections_tab.dart
@@ -40,6 +40,7 @@ class _SharedCollectionsTabState extends State<SharedCollectionsTab>
final _debouncer = Debouncer(
const Duration(seconds: 2),
executionInterval: const Duration(seconds: 5),
+ leading: true,
);
static const heroTagPrefix = "outgoing_collection";
diff --git a/mobile/lib/ui/tabs/user_collections_tab.dart b/mobile/lib/ui/tabs/user_collections_tab.dart
index b7b1b74829..5e8431a5a9 100644
--- a/mobile/lib/ui/tabs/user_collections_tab.dart
+++ b/mobile/lib/ui/tabs/user_collections_tab.dart
@@ -54,6 +54,7 @@ class _UserCollectionsTabState extends State<UserCollectionsTab>
final _debouncer = Debouncer(
const Duration(seconds: 2),
executionInterval: const Duration(seconds: 5),
+ leading: true,
);
static const int _kOnEnteItemLimitCount = 10;
diff --git a/mobile/lib/ui/viewer/file/file_app_bar.dart b/mobile/lib/ui/viewer/file/file_app_bar.dart
index 220c47c0bd..46adbad5d4 100644
--- a/mobile/lib/ui/viewer/file/file_app_bar.dart
+++ b/mobile/lib/ui/viewer/file/file_app_bar.dart
@@ -296,26 +296,7 @@ class FileAppBarState extends State<FileAppBar> {
);
}
}
- if (flagService.internalUser &&
- PreviewVideoStore.instance.isVideoStreamingEnabled) {
- items.add(
- PopupMenuItem(
- value: 99,
- child: Row(
- children: [
- Icon(
- Icons.video_collection,
- color: Theme.of(context).iconTheme.color,
- ),
- const Padding(
- padding: EdgeInsets.all(8),
- ),
- const Text("Cache Preview"),
- ],
- ),
- ),
- );
- }
+
items.add(
PopupMenuItem(
value: 6,
diff --git a/mobile/lib/ui/viewer/file/file_widget.dart b/mobile/lib/ui/viewer/file/file_widget.dart
index 4926b76b36..a38f576c37 100644
--- a/mobile/lib/ui/viewer/file/file_widget.dart
+++ b/mobile/lib/ui/viewer/file/file_widget.dart
@@ -7,7 +7,7 @@ import "package:photos/ui/viewer/file/zoomable_live_image_new.dart";
class FileWidget extends StatelessWidget {
final EnteFile file;
- final String? tagPrefix;
+ final String tagPrefix;
final Function(bool)? shouldDisableScroll;
final Function(bool)? playbackCallback;
final BoxDecoration? backgroundDecoration;
@@ -18,7 +18,7 @@ class FileWidget extends StatelessWidget {
this.autoPlay,
this.shouldDisableScroll,
this.playbackCallback,
- this.tagPrefix,
+ required this.tagPrefix,
this.backgroundDecoration,
super.key,
});
diff --git a/mobile/lib/ui/viewer/file/preview_status_widget.dart b/mobile/lib/ui/viewer/file/preview_status_widget.dart
index d5a4bf53ee..375790a6b4 100644
--- a/mobile/lib/ui/viewer/file/preview_status_widget.dart
+++ b/mobile/lib/ui/viewer/file/preview_status_widget.dart
@@ -3,12 +3,14 @@ import "dart:async";
import "package:flutter/material.dart";
import "package:photos/core/event_bus.dart";
import "package:photos/events/preview_updated_event.dart";
+import "package:photos/generated/l10n.dart";
import "package:photos/models/file/file.dart";
import "package:photos/models/preview/preview_item.dart";
import "package:photos/models/preview/preview_item_status.dart";
import "package:photos/services/filedata/filedata_service.dart";
import "package:photos/services/preview_video_store.dart";
import "package:photos/theme/colors.dart";
+import "package:photos/ui/settings/backup/backup_status_screen.dart";
class PreviewStatusWidget extends StatefulWidget {
const PreviewStatusWidget({
@@ -108,7 +110,14 @@ class _PreviewStatusWidgetState extends State<PreviewStatusWidget> {
onTap:
preview == null || preview!.status == PreviewItemStatus.uploaded
? widget.onStreamChange
- : null,
+ : () {
+ Navigator.pushReplacement(
+ context,
+ MaterialPageRoute(
+ builder: (_) => const BackupStatusScreen(),
+ ),
+ );
+ },
child: Container(
padding: const EdgeInsets.symmetric(
horizontal: 8,
@@ -157,16 +166,16 @@ class _PreviewStatusWidgetState extends State<PreviewStatusWidget> {
),
Text(
isInProgress
- ? "Processing"
+ ? S.of(context).processing
: isInQueue
- ? "Queued"
+ ? S.of(context).queued
: isBeforeCutoffDate
- ? "Ineligible"
+ ? S.of(context).ineligible
: isFailed
- ? "Failed"
+ ? S.of(context).failed
: widget.isPreviewPlayer
- ? "Play original"
- : "Play stream",
+ ? S.of(context).playOriginal
+ : S.of(context).playStream,
style: const TextStyle(
fontSize: 12,
fontWeight: FontWeight.w600,
diff --git a/mobile/lib/ui/viewer/file/video_control.dart b/mobile/lib/ui/viewer/file/video_control.dart
index e89e583dd9..d662819003 100644
--- a/mobile/lib/ui/viewer/file/video_control.dart
+++ b/mobile/lib/ui/viewer/file/video_control.dart
@@ -33,6 +33,8 @@ class _VideoControlsState extends State<VideoControls> {
Timer? _showAfterExpandCollapseTimer;
bool _dragging = false;
bool _displayTapped = false;
+ Timer? _bufferingDisplayTimer;
+ bool _displayBufferingIndicator = false;
final barHeight = 120.0;
final marginSize = 5.0;
@@ -40,6 +42,13 @@ class _VideoControlsState extends State<VideoControls> {
late VideoPlayerController controller;
ChewieController? chewieController;
+ void _bufferingTimerTimeout() {
+ _displayBufferingIndicator = true;
+ if (mounted) {
+ setState(() {});
+ }
+ }
+
@override
Widget build(BuildContext context) {
if (_latestValue!.hasError) {
@@ -68,8 +77,9 @@ class _VideoControlsState extends State<VideoControls> {
child: Stack(
children: <Widget>[
if (_latestValue != null &&
- !_latestValue!.isPlaying &&
- _latestValue!.isBuffering)
+ !_latestValue!.isPlaying &&
+ _latestValue!.isBuffering ||
+ _displayBufferingIndicator)
const Align(
alignment: Alignment.center,
child: Center(
@@ -253,6 +263,21 @@ class _VideoControlsState extends State<VideoControls> {
}
void _updateState() {
+ // display the progress bar indicator only after the buffering delay if it has been set
+ if (chewieController?.progressIndicatorDelay != null) {
+ if (controller.value.isBuffering) {
+ _bufferingDisplayTimer ??= Timer(
+ chewieController!.progressIndicatorDelay!,
+ _bufferingTimerTimeout,
+ );
+ } else {
+ _bufferingDisplayTimer?.cancel();
+ _bufferingDisplayTimer = null;
+ _displayBufferingIndicator = false;
+ }
+ } else {
+ _displayBufferingIndicator = controller.value.isBuffering;
+ }
setState(() {
_latestValue = controller.value;
});
diff --git a/mobile/lib/ui/viewer/file_details/creation_time_item_widget.dart b/mobile/lib/ui/viewer/file_details/creation_time_item_widget.dart
index 13c8800fa8..90b6ab9d58 100644
--- a/mobile/lib/ui/viewer/file_details/creation_time_item_widget.dart
+++ b/mobile/lib/ui/viewer/file_details/creation_time_item_widget.dart
@@ -21,15 +21,15 @@ class CreationTimeItem extends StatefulWidget {
class _CreationTimeItemState extends State<CreationTimeItem> {
@override
Widget build(BuildContext context) {
- final dateTime = DateTime.fromMicrosecondsSinceEpoch(
- widget.file.creationTime!,
- isUtc: true,
- ).toLocal();
+ final dateTime =
+ DateTime.fromMicrosecondsSinceEpoch(widget.file.creationTime!);
return InfoItemWidget(
key: const ValueKey("Creation time"),
leadingIcon: Icons.calendar_today_outlined,
title: DateFormat.yMMMEd(Localizations.localeOf(context).languageCode)
- .format(dateTime),
+ .format(
+ DateTime.fromMicrosecondsSinceEpoch(widget.file.creationTime!),
+ ),
subtitleSection: Future.value([
Text(
getTimeIn12hrFormat(dateTime) + " " + dateTime.timeZoneName,
diff --git a/mobile/lib/ui/viewer/file_details/preview_properties_item_widget.dart b/mobile/lib/ui/viewer/file_details/preview_properties_item_widget.dart
index cf3e05fe11..aec1b9fa3d 100644
--- a/mobile/lib/ui/viewer/file_details/preview_properties_item_widget.dart
+++ b/mobile/lib/ui/viewer/file_details/preview_properties_item_widget.dart
@@ -32,7 +32,7 @@ class _PreviewPropertiesItemWidgetState
@override
void initState() {
super.initState();
- _getSection();
+ Future.microtask(() => _getSection());
}
@override
diff --git a/mobile/lib/ui/viewer/gallery/gallery.dart b/mobile/lib/ui/viewer/gallery/gallery.dart
index 1788866697..970992a91e 100644
--- a/mobile/lib/ui/viewer/gallery/gallery.dart
+++ b/mobile/lib/ui/viewer/gallery/gallery.dart
@@ -18,6 +18,7 @@ import 'package:photos/ui/viewer/gallery/empty_state.dart';
import "package:photos/ui/viewer/gallery/state/gallery_context_state.dart";
import "package:photos/ui/viewer/gallery/state/gallery_files_inherited_widget.dart";
import "package:photos/ui/viewer/gallery/state/inherited_search_filter_data.dart";
+import "package:photos/utils/date_time_util.dart";
import "package:photos/utils/debouncer.dart";
import "package:photos/utils/hierarchical_search_util.dart";
import 'package:scrollable_positioned_list/scrollable_positioned_list.dart';
@@ -125,24 +126,63 @@ class GalleryState extends State<Gallery> {
_debouncer = Debouncer(
widget.reloadDebounceTime,
executionInterval: widget.reloadDebounceExecutionInterval,
+ leading: true,
);
_sortOrderAsc = widget.sortAsyncFn != null ? widget.sortAsyncFn!() : false;
_itemScroller = ItemScrollController();
if (widget.reloadEvent != null) {
_reloadEventSubscription = widget.reloadEvent!.listen((event) async {
+ bool shouldReloadFromDB = true;
+ if (event.source == 'uploadCompleted') {
+ final Map<int, EnteFile> genIDToUploadedFiles = {};
+ for (int i = 0; i < event.updatedFiles.length; i++) {
+ if (event.updatedFiles[i].generatedID == null) {
+ shouldReloadFromDB = true;
+ break;
+ }
+ genIDToUploadedFiles[event.updatedFiles[i].generatedID!] =
+ event.updatedFiles[i];
+ }
+ for (int i = 0; i < _allGalleryFiles.length; i++) {
+ final file = _allGalleryFiles[i];
+ if (file.generatedID == null) {
+ continue;
+ }
+ final updateFile = genIDToUploadedFiles[file.generatedID!];
+ if (updateFile != null &&
+ updateFile.localID == file.localID &&
+ areFromSameDay(
+ updateFile.creationTime ?? 0,
+ file.creationTime ?? 0,
+ )) {
+ _allGalleryFiles[i] = updateFile;
+ genIDToUploadedFiles.remove(file.generatedID!);
+ }
+ }
+ shouldReloadFromDB = genIDToUploadedFiles.isNotEmpty;
+ }
+ if (!shouldReloadFromDB) {
+ final bool hasCalledSetState = _onFilesLoaded(_allGalleryFiles);
+ _logger.info(
+ 'Skip softRefresh from DB, processed updated in memory with setStateReload $hasCalledSetState',
+ );
+ return;
+ }
+
_debouncer.run(() async {
// In soft refresh, setState is called for entire gallery only when
// number of child change
_logger.finest("Soft refresh all files on ${event.reason} ");
final result = await _loadFiles();
- final bool hasReloaded = _onFilesLoaded(result.files);
- if (hasReloaded && kDebugMode) {
+ final bool hasTriggeredSetState = _onFilesLoaded(result.files);
+ if (hasTriggeredSetState && kDebugMode) {
_logger.finest(
"Reloaded gallery on soft refresh all files on ${event.reason}",
);
}
-
- setState(() {});
+ if (!hasTriggeredSetState && mounted) {
+ setState(() {});
+ }
});
});
}
@@ -207,8 +247,9 @@ class GalleryState extends State<Gallery> {
_hasLoadedFiles = true;
currentGroupedFiles = updatedGroupedFiles;
});
+ return true;
}
- return true;
+ return false;
} else {
currentGroupedFiles = updatedGroupedFiles;
return false;
diff --git a/mobile/lib/utils/debouncer.dart b/mobile/lib/utils/debouncer.dart
index 31e9709521..07097440f0 100644
--- a/mobile/lib/utils/debouncer.dart
+++ b/mobile/lib/utils/debouncer.dart
@@ -15,12 +15,24 @@ class Debouncer {
/// This is useful for example when you want to execute a callback every 5 seconds
final Duration? executionInterval;
Timer? _debounceTimer;
+ final bool leading;
- Debouncer(this._duration, {this.executionInterval});
+ Debouncer(this._duration, {this.executionInterval, this.leading = false});
final Stopwatch _stopwatch = Stopwatch();
void run(FutureVoidCallback fn) {
+ if (leading && !isActive()) {
+ _stopwatch.stop();
+ _stopwatch.reset();
+ fn();
+ _debounceTimer = Timer(_duration, () {
+ _debounceActiveNotifier.value = false;
+ });
+ _debounceActiveNotifier.value = true;
+ return;
+ }
+
bool shouldRunImmediately = false;
if (executionInterval != null) {
// ensure the stop watch is running
diff --git a/mobile/lib/utils/dialog_util.dart b/mobile/lib/utils/dialog_util.dart
index 8d3f65e438..9fcadb2763 100644
--- a/mobile/lib/utils/dialog_util.dart
+++ b/mobile/lib/utils/dialog_util.dart
@@ -76,7 +76,7 @@ Future<ButtonResult?> showErrorDialogForException({
}) async {
String errorMessage =
message ?? S.of(context).tempErrorContactSupportIfPersists;
- if (exception is DioError &&
+ if (exception is DioException &&
exception.response != null &&
exception.response!.data["code"] != null) {
errorMessage =
@@ -107,9 +107,12 @@ String parseErrorForUI(
if (error == null) {
return genericError;
}
- if (error is DioError) {
- final DioError dioError = error;
- if (dioError.type == DioErrorType.other) {
+ if (error is DioException) {
+ final DioException dioError = error;
+ if (dioError.type == DioExceptionType.receiveTimeout ||
+ dioError.type == DioExceptionType.connectionError ||
+ dioError.type == DioExceptionType.sendTimeout ||
+ dioError.type == DioExceptionType.cancel) {
if (dioError.error.toString().contains('Failed host lookup')) {
return S.of(context).networkHostLookUpErr;
} else if (dioError.error.toString().contains('SocketException')) {
@@ -122,15 +125,15 @@ String parseErrorForUI(
return genericError;
}
String errorInfo = "";
- if (error is DioError) {
- final DioError dioError = error;
- if (dioError.type == DioErrorType.response) {
+ if (error is DioException) {
+ final DioException dioError = error;
+ if (dioError.type == DioExceptionType.badResponse) {
if (dioError.response?.data["code"] != null) {
errorInfo = "Reason: " + dioError.response!.data["code"];
} else {
errorInfo = "Reason: " + dioError.response!.data.toString();
}
- } else if (dioError.type == DioErrorType.other) {
+ } else if (dioError.type == DioExceptionType.badCertificate) {
errorInfo = "Reason: " + dioError.error.toString();
} else {
errorInfo = "Reason: " + dioError.type.toString();
diff --git a/mobile/lib/utils/exif_util.dart b/mobile/lib/utils/exif_util.dart
index a94e02bece..652336ebee 100644
--- a/mobile/lib/utils/exif_util.dart
+++ b/mobile/lib/utils/exif_util.dart
@@ -47,7 +47,7 @@ Future<Map<String, IfdTag>> getExif(EnteFile file) async {
}
}
-Future<Map<String, IfdTag>?> tryExifFromFile(File originFile) async {
+Future<Map<String, IfdTag>?> getExifFromSourceFile(File originFile) async {
try {
final exif = await readExifAsync(originFile);
return exif;
@@ -125,25 +125,7 @@ bool? checkPanoramaFromEXIF(File? file, Map<String, IfdTag>? exifData) {
return element?.printable == "6";
}
-class ParsedExifDateTime {
- late final DateTime? time;
- late final String? dateTime;
- late final String? offsetTime;
- ParsedExifDateTime(DateTime this.time, String? dateTime, this.offsetTime) {
- if (dateTime != null && dateTime.endsWith('Z')) {
- this.dateTime = dateTime.substring(0, dateTime.length - 1);
- } else {
- this.dateTime = dateTime;
- }
- }
-
- @override
- String toString() {
- return "ParsedExifDateTime{time: $time, dateTime: $dateTime, offsetTime: $offsetTime}";
- }
-}
-
-Future<ParsedExifDateTime?> tryParseExifDateTime(
+Future<DateTime?> getCreationTimeFromEXIF(
File? file,
Map<String, IfdTag>? exifData,
) async {
@@ -155,55 +137,46 @@ Future<ParsedExifDateTime?> tryParseExifDateTime(
: exif.containsKey(kImageDateTime)
? exif[kImageDateTime]!.printable
: null;
- if (exifTime == null || exifTime == kEmptyExifDateTime) {
- return null;
- }
- String? exifOffsetTime;
- for (final key in kExifOffSetKeys) {
- if (exif.containsKey(key)) {
- exifOffsetTime = exif[key]!.printable;
- break;
+ if (exifTime != null && exifTime != kEmptyExifDateTime) {
+ String? exifOffsetTime;
+ for (final key in kExifOffSetKeys) {
+ if (exif.containsKey(key)) {
+ exifOffsetTime = exif[key]!.printable;
+ break;
+ }
}
+ return getDateTimeInDeviceTimezone(exifTime, exifOffsetTime);
}
- return getDateTimeInDeviceTimezone(exifTime, exifOffsetTime);
} catch (e) {
_logger.severe("failed to getCreationTimeFromEXIF", e);
}
return null;
}
-ParsedExifDateTime getDateTimeInDeviceTimezone(
- String exifTime,
- String? offsetString,
-) {
- final hasOffset = (offsetString ?? '') != '';
- final DateTime result =
- DateFormat(kExifDateTimePattern).parse(exifTime, hasOffset);
- if (hasOffset && offsetString!.toUpperCase() != "Z") {
- try {
- final List<String> splitHHMM = offsetString.split(":");
- final int offsetHours = int.parse(splitHHMM[0]);
- final int offsetMinutes =
- int.parse(splitHHMM[1]) * (offsetHours.isNegative ? -1 : 1);
- // Adjust the date for the offset to get the photo's correct UTC time
- final photoUtcDate =
- result.add(Duration(hours: -offsetHours, minutes: -offsetMinutes));
- // Convert the UTC time to the device's local time
- final deviceLocalTime = photoUtcDate.toLocal();
- return ParsedExifDateTime(
- deviceLocalTime,
- result.toIso8601String(),
- offsetString,
- );
- } catch (e, s) {
- _logger.severe("offset parsing failed $exifTime && $offsetString", e, s);
- }
+DateTime getDateTimeInDeviceTimezone(String exifTime, String? offsetString) {
+ final DateTime result = DateFormat(kExifDateTimePattern).parse(exifTime);
+ if (offsetString == null) {
+ return result;
}
- return ParsedExifDateTime(
- result,
- result.toIso8601String(),
- (offsetString ?? '').toUpperCase() == 'Z' ? 'Z' : null,
- );
+ try {
+ final List<String> splitHHMM = offsetString.split(":");
+ // Parse the offset from the photo's time zone
+ final int offsetHours = int.parse(splitHHMM[0]);
+ final int offsetMinutes =
+ int.parse(splitHHMM[1]) * (offsetHours.isNegative ? -1 : 1);
+ // Adjust the date for the offset to get the photo's correct UTC time
+ final photoUtcDate =
+ result.add(Duration(hours: -offsetHours, minutes: -offsetMinutes));
+ // Getting the current device's time zone offset from UTC
+ final now = DateTime.now();
+ final localOffset = now.timeZoneOffset;
+ // Adjusting the photo's UTC time to the device's local time
+ final deviceLocalTime = photoUtcDate.add(localOffset);
+ return deviceLocalTime;
+ } catch (e, s) {
+ _logger.severe("tz offset adjust failed $offsetString", e, s);
+ }
+ return result;
}
Location? locationFromExif(Map<String, IfdTag> exif) {
diff --git a/mobile/lib/utils/file_uploader.dart b/mobile/lib/utils/file_uploader.dart
index 1d21e51c72..9290772910 100644
--- a/mobile/lib/utils/file_uploader.dart
+++ b/mobile/lib/utils/file_uploader.dart
@@ -41,7 +41,6 @@ import 'package:photos/services/sync_service.dart';
import "package:photos/services/user_service.dart";
import 'package:photos/utils/crypto_util.dart';
import 'package:photos/utils/data_util.dart';
-import "package:photos/utils/exif_util.dart";
import "package:photos/utils/file_key.dart";
import 'package:photos/utils/file_uploader_util.dart';
import "package:photos/utils/file_util.dart";
@@ -83,7 +82,6 @@ class FileUploader {
int _uploadCounter = 0;
int _videoUploadCounter = 0;
late ProcessType _processType;
- late bool _isBackground;
late SharedPreferences _prefs;
// _hasInitiatedForceUpload is used to track if user attempted force upload
@@ -105,7 +103,6 @@ class FileUploader {
Future<void> init(SharedPreferences preferences, bool isBackground) async {
_prefs = preferences;
- _isBackground = isBackground;
_processType =
isBackground ? ProcessType.background : ProcessType.foreground;
final currentTime = DateTime.now().microsecondsSinceEpoch;
@@ -539,7 +536,7 @@ class FileUploader {
MediaUploadData? mediaUploadData;
try {
- mediaUploadData = await getUploadDataFromEnteFile(file, parseExif: true);
+ mediaUploadData = await getUploadDataFromEnteFile(file);
} catch (e) {
// This additional try catch block is added because for resumable upload,
// we need to compute the hash before the next step. Previously, this
@@ -731,13 +728,8 @@ class FileUploader {
encThumbSize,
);
}
- final ParsedExifDateTime? exifTime = await tryParseExifDateTime(
- null,
- mediaUploadData.exifData,
- );
- final metadata =
- await file.getMetadataForUpload(mediaUploadData, exifTime);
+ final metadata = await file.getMetadataForUpload(mediaUploadData);
final encryptedMetadataResult = await CryptoUtil.encryptChaCha(
utf8.encode(jsonEncode(metadata)),
fileAttributes.key!,
@@ -779,9 +771,22 @@ class FileUploader {
CryptoUtil.bin2base64(encryptedFileKeyData.encryptedData!);
final keyDecryptionNonce =
CryptoUtil.bin2base64(encryptedFileKeyData.nonce!);
- final Map<String, dynamic> pubMetadata =
- _buildPublicMagicData(mediaUploadData, exifTime);
+ final Map<String, dynamic> pubMetadata = {};
MetadataRequest? pubMetadataRequest;
+ if ((mediaUploadData.height ?? 0) != 0 &&
+ (mediaUploadData.width ?? 0) != 0) {
+ pubMetadata[heightKey] = mediaUploadData.height;
+ pubMetadata[widthKey] = mediaUploadData.width;
+ pubMetadata[mediaTypeKey] =
+ mediaUploadData.isPanorama == true ? 1 : 0;
+ }
+ if (mediaUploadData.motionPhotoStartIndex != null) {
+ pubMetadata[motionVideoIndexKey] =
+ mediaUploadData.motionPhotoStartIndex;
+ }
+ if (mediaUploadData.thumbnail == null) {
+ pubMetadata[noThumbKey] = true;
+ }
if (pubMetadata.isNotEmpty) {
pubMetadataRequest = await getPubMetadataRequest(
file,
@@ -816,14 +821,12 @@ class FileUploader {
}
await UploadLocksDB.instance.deleteMultipartTrack(lockKey);
- if (!_isBackground) {
- Bus.instance.fire(
- LocalPhotosUpdatedEvent(
- [remoteFile],
- source: "downloadComplete",
- ),
- );
- }
+ Bus.instance.fire(
+ LocalPhotosUpdatedEvent(
+ [remoteFile],
+ source: "uploadCompleted",
+ ),
+ );
_logger.info("File upload complete for " + remoteFile.toString());
uploadCompleted = true;
Bus.instance.fire(FileUploadedEvent(remoteFile));
@@ -865,36 +868,8 @@ class FileUploader {
}
}
- Map<String, dynamic> _buildPublicMagicData(
- MediaUploadData mediaUploadData,
- ParsedExifDateTime? exifTime,
- ) {
- final Map<String, dynamic> pubMetadata = {};
- if ((mediaUploadData.height ?? 0) != 0 &&
- (mediaUploadData.width ?? 0) != 0) {
- pubMetadata[heightKey] = mediaUploadData.height;
- pubMetadata[widthKey] = mediaUploadData.width;
- pubMetadata[mediaTypeKey] = mediaUploadData.isPanorama == true ? 1 : 0;
- }
- if (mediaUploadData.motionPhotoStartIndex != null) {
- pubMetadata[motionVideoIndexKey] = mediaUploadData.motionPhotoStartIndex;
- }
- if (mediaUploadData.thumbnail == null) {
- pubMetadata[noThumbKey] = true;
- }
- if (exifTime != null) {
- if (exifTime.dateTime != null) {
- pubMetadata[dateTimeKey] = exifTime.dateTime;
- }
- if (exifTime.offsetTime != null) {
- pubMetadata[offsetTimeKey] = exifTime.offsetTime;
- }
- }
- return pubMetadata;
- }
-
bool isPutOrUpdateFileError(Object e) {
- if (e is DioError) {
+ if (e is DioException) {
return e.requestOptions.path.contains("/files") ||
e.requestOptions.path.contains("/files/update");
}
@@ -1189,7 +1164,7 @@ class FileUploader {
file.thumbnailDecryptionHeader = thumbnailDecryptionHeader;
file.metadataDecryptionHeader = metadataDecryptionHeader;
return file;
- } on DioError catch (e) {
+ } on DioException catch (e) {
if (e.response?.statusCode == 413) {
throw FileTooLargeForPlanError();
} else if (e.response?.statusCode == 426) {
@@ -1257,7 +1232,7 @@ class FileUploader {
file.thumbnailDecryptionHeader = thumbnailDecryptionHeader;
file.metadataDecryptionHeader = metadataDecryptionHeader;
return file;
- } on DioError catch (e) {
+ } on DioException catch (e) {
if (e.response?.statusCode == 426) {
_onStorageLimitExceeded();
} else if (attempt < kMaximumUploadAttempts) {
@@ -1313,7 +1288,7 @@ class FileUploader {
.map((e) => UploadURL.fromMap(e))
.toList();
_uploadURLs.addAll(urls);
- } on DioError catch (e, s) {
+ } on DioException catch (e, s) {
if (e.response != null) {
if (e.response!.statusCode == 402) {
final error = NoActiveSubscriptionError();
@@ -1363,8 +1338,8 @@ class FileUploader {
);
return uploadURL.objectKey;
- } on DioError catch (e) {
- if (e.message.startsWith("HttpException: Content size")) {
+ } on DioException catch (e) {
+ if (e.message?.startsWith("HttpException: Content size") ?? false) {
rethrow;
} else if (attempt < kMaximumUploadAttempts) {
_logger.info("Upload failed for $fileName, retrying");
diff --git a/mobile/lib/utils/file_uploader_util.dart b/mobile/lib/utils/file_uploader_util.dart
index 6f37236b8e..6ad6622f5f 100644
--- a/mobile/lib/utils/file_uploader_util.dart
+++ b/mobile/lib/utils/file_uploader_util.dart
@@ -6,7 +6,6 @@ import 'dart:ui' as ui;
import "package:archive/archive_io.dart";
import "package:computer/computer.dart";
-import "package:exif/exif.dart";
import 'package:logging/logging.dart';
import "package:motion_photos/motion_photos.dart";
import 'package:motionphoto/motionphoto.dart';
@@ -45,8 +44,6 @@ class MediaUploadData {
// For iOS, this value will be always null.
final int? motionPhotoStartIndex;
- final Map<String, IfdTag>? exifData;
-
bool? isPanorama;
MediaUploadData(
@@ -58,7 +55,6 @@ class MediaUploadData {
this.width,
this.motionPhotoStartIndex,
this.isPanorama,
- this.exifData,
});
}
@@ -73,27 +69,20 @@ class FileHashData {
FileHashData(this.fileHash, {this.zipHash});
}
-Future<MediaUploadData> getUploadDataFromEnteFile(
- EnteFile file, {
- bool parseExif = false,
-}) async {
+Future<MediaUploadData> getUploadDataFromEnteFile(EnteFile file) async {
if (file.isSharedMediaToAppSandbox) {
- return await _getMediaUploadDataFromAppCache(file, parseExif);
+ return await _getMediaUploadDataFromAppCache(file);
} else {
- return await _getMediaUploadDataFromAssetFile(file, parseExif);
+ return await _getMediaUploadDataFromAssetFile(file);
}
}
-Future<MediaUploadData> _getMediaUploadDataFromAssetFile(
- EnteFile file,
- bool parseExif,
-) async {
+Future<MediaUploadData> _getMediaUploadDataFromAssetFile(EnteFile file) async {
File? sourceFile;
Uint8List? thumbnailData;
bool isDeleted;
String? zipHash;
String fileHash;
- Map<String, IfdTag>? exifData;
// The timeouts are to safeguard against https://github.com/CaiJingLong/flutter_photo_manager/issues/467
final asset = await file.getAsset
@@ -126,11 +115,8 @@ Future<MediaUploadData> _getMediaUploadDataFromAssetFile(
InvalidReason.sourceFileMissing,
);
}
- if (parseExif) {
- exifData = await tryExifFromFile(sourceFile);
- }
// h4ck to fetch location data if missing (thank you Android Q+) lazily only during uploads
- await _decorateEnteFileData(file, asset, sourceFile, exifData);
+ await _decorateEnteFileData(file, asset, sourceFile);
fileHash = CryptoUtil.bin2base64(await CryptoUtil.getHash(sourceFile));
if (file.fileType == FileType.livePhoto && Platform.isIOS) {
@@ -191,7 +177,6 @@ Future<MediaUploadData> _getMediaUploadDataFromAssetFile(
height: h,
width: w,
motionPhotoStartIndex: motionPhotoStartingIndex,
- exifData: exifData,
);
}
@@ -299,7 +284,6 @@ Future<void> _decorateEnteFileData(
EnteFile file,
AssetEntity asset,
File sourceFile,
- Map<String, IfdTag>? exifData,
) async {
// h4ck to fetch location data if missing (thank you Android Q+) lazily only during uploads
if (file.location == null ||
@@ -314,13 +298,6 @@ Future<void> _decorateEnteFileData(
file.location = props.location;
}
}
- if (Platform.isAndroid && exifData != null) {
- //Fix for missing location data in lower android versions.
- final Location? exifLocation = locationFromExif(exifData);
- if (Location.isValidLocation(exifLocation)) {
- file.location = exifLocation;
- }
- }
if (file.title == null || file.title!.isEmpty) {
_logger.warning("Title was missing ${file.tag}");
file.title = await asset.titleAsync;
@@ -353,13 +330,9 @@ Future<MetadataRequest> getPubMetadataRequest(
);
}
-Future<MediaUploadData> _getMediaUploadDataFromAppCache(
- EnteFile file,
- bool parseExif,
-) async {
+Future<MediaUploadData> _getMediaUploadDataFromAppCache(EnteFile file) async {
File sourceFile;
Uint8List? thumbnailData;
- Map<String, IfdTag>? exifData;
const bool isDeleted = false;
final localPath = getSharedMediaFilePath(file);
sourceFile = File(localPath);
@@ -377,7 +350,6 @@ Future<MediaUploadData> _getMediaUploadDataFromAppCache(
Map<String, int>? dimensions;
if (file.fileType == FileType.image) {
dimensions = await getImageHeightAndWith(imagePath: localPath);
- exifData = await tryExifFromFile(sourceFile);
} else if (thumbnailData != null) {
// the thumbnail null check is to ensure that we are able to generate thum
// for video, we need to use the thumbnail data with any max width/height
@@ -396,7 +368,6 @@ Future<MediaUploadData> _getMediaUploadDataFromAppCache(
FileHashData(fileHash),
height: dimensions?['height'],
width: dimensions?['width'],
- exifData: exifData,
);
} catch (e, s) {
_logger.warning("failed to generate thumbnail", e, s);
diff --git a/mobile/lib/utils/share_util.dart b/mobile/lib/utils/share_util.dart
index 3ec147798d..c39d1733b9 100644
--- a/mobile/lib/utils/share_util.dart
+++ b/mobile/lib/utils/share_util.dart
@@ -165,9 +165,9 @@ Future<List<EnteFile>> convertIncomingSharedMediaToFile(
enteFile.fileType =
media.type == SharedMediaType.image ? FileType.image : FileType.video;
if (enteFile.fileType == FileType.image) {
- final dateResult = await tryParseExifDateTime(ioFile, null);
- if (dateResult != null && dateResult.time != null) {
- enteFile.creationTime = dateResult.time!.microsecondsSinceEpoch;
+ final exifTime = await getCreationTimeFromEXIF(ioFile, null);
+ if (exifTime != null) {
+ enteFile.creationTime = exifTime.microsecondsSinceEpoch;
}
} else if (enteFile.fileType == FileType.video) {
enteFile.duration = (media.duration ?? 0) ~/ 1000;
diff --git a/mobile/lib/utils/thumbnail_util.dart b/mobile/lib/utils/thumbnail_util.dart
index c8db830735..7769976888 100644
--- a/mobile/lib/utils/thumbnail_util.dart
+++ b/mobile/lib/utils/thumbnail_util.dart
@@ -192,7 +192,7 @@ Future<void> _downloadAndDecryptThumbnail(FileDownloadItem item) async {
.data;
}
} catch (e) {
- if (e is DioError && CancelToken.isCancel(e)) {
+ if (e is DioException && CancelToken.isCancel(e)) {
return;
}
rethrow;
diff --git a/mobile/plugins/ente_cast/pubspec.lock b/mobile/plugins/ente_cast/pubspec.lock
index 6cd4bf68b4..8de07d1e38 100644
--- a/mobile/plugins/ente_cast/pubspec.lock
+++ b/mobile/plugins/ente_cast/pubspec.lock
@@ -79,18 +79,18 @@ packages:
dependency: transitive
description:
name: material_color_utilities
- sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
+ sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
url: "https://pub.dev"
source: hosted
- version: "0.8.0"
+ version: "0.11.1"
meta:
dependency: transitive
description:
name: meta
- sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"
+ sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
url: "https://pub.dev"
source: hosted
- version: "1.12.0"
+ version: "1.15.0"
path:
dependency: transitive
description:
diff --git a/mobile/plugins/ente_cast/pubspec.yaml b/mobile/plugins/ente_cast/pubspec.yaml
index 967e147e91..6cc08a0849 100644
--- a/mobile/plugins/ente_cast/pubspec.yaml
+++ b/mobile/plugins/ente_cast/pubspec.yaml
@@ -7,7 +7,7 @@ environment:
dependencies:
collection:
- dio: ^4.0.6
+ dio: ^5.8.0+1
flutter:
sdk: flutter
shared_preferences: ^2.0.5
diff --git a/mobile/plugins/ente_cast_none/pubspec.lock b/mobile/plugins/ente_cast_none/pubspec.lock
index 57a80587b0..ee83b2bd96 100644
--- a/mobile/plugins/ente_cast_none/pubspec.lock
+++ b/mobile/plugins/ente_cast_none/pubspec.lock
@@ -86,18 +86,18 @@ packages:
dependency: transitive
description:
name: material_color_utilities
- sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
+ sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
url: "https://pub.dev"
source: hosted
- version: "0.8.0"
+ version: "0.11.1"
meta:
dependency: transitive
description:
name: meta
- sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"
+ sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
url: "https://pub.dev"
source: hosted
- version: "1.12.0"
+ version: "1.15.0"
path:
dependency: transitive
description:
diff --git a/mobile/plugins/ente_cast_normal/pubspec.lock b/mobile/plugins/ente_cast_normal/pubspec.lock
index b65fe49c94..2d37f86c87 100644
--- a/mobile/plugins/ente_cast_normal/pubspec.lock
+++ b/mobile/plugins/ente_cast_normal/pubspec.lock
@@ -119,18 +119,18 @@ packages:
dependency: transitive
description:
name: material_color_utilities
- sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
+ sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
url: "https://pub.dev"
source: hosted
- version: "0.8.0"
+ version: "0.11.1"
meta:
dependency: transitive
description:
name: meta
- sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"
+ sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
url: "https://pub.dev"
source: hosted
- version: "1.12.0"
+ version: "1.15.0"
multicast_dns:
dependency: transitive
description:
diff --git a/mobile/plugins/ente_feature_flag/pubspec.lock b/mobile/plugins/ente_feature_flag/pubspec.lock
index 4f2db8cd08..e58ff1231c 100644
--- a/mobile/plugins/ente_feature_flag/pubspec.lock
+++ b/mobile/plugins/ente_feature_flag/pubspec.lock
@@ -1,6 +1,14 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
+ async:
+ dependency: transitive
+ description:
+ name: async
+ sha256: d2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.12.0"
characters:
dependency: transitive
description:
@@ -21,10 +29,18 @@ packages:
dependency: "direct main"
description:
name: dio
- sha256: "7d328c4d898a61efc3cd93655a0955858e29a0aa647f0f9e02d59b3bb275e2e8"
+ sha256: "253a18bbd4851fecba42f7343a1df3a9a4c1d31a2c1b37e221086b4fa8c8dbc9"
+ url: "https://pub.dev"
+ source: hosted
+ version: "5.8.0+1"
+ dio_web_adapter:
+ dependency: transitive
+ description:
+ name: dio_web_adapter
+ sha256: e485c7a39ff2b384fa1d7e09b4e25f755804de8384358049124830b04fc4f93a
url: "https://pub.dev"
source: hosted
- version: "4.0.6"
+ version: "2.1.0"
ffi:
dependency: transitive
description:
@@ -273,5 +289,5 @@ packages:
source: hosted
version: "1.0.4"
sdks:
- dart: ">=3.3.0 <4.0.0"
+ dart: ">=3.4.0 <4.0.0"
flutter: ">=3.19.0"
diff --git a/mobile/plugins/ente_feature_flag/pubspec.yaml b/mobile/plugins/ente_feature_flag/pubspec.yaml
index 7507d61f1c..6ad2c7626d 100644
--- a/mobile/plugins/ente_feature_flag/pubspec.yaml
+++ b/mobile/plugins/ente_feature_flag/pubspec.yaml
@@ -7,7 +7,7 @@ environment:
dependencies:
collection:
- dio: ^4.0.6
+ dio: ^5.8.0+1
flutter:
sdk: flutter
shared_preferences: ^2.0.5
diff --git a/mobile/plugins/onnx_dart/pubspec.lock b/mobile/plugins/onnx_dart/pubspec.lock
index c14d3ed876..72000bb8f1 100644
--- a/mobile/plugins/onnx_dart/pubspec.lock
+++ b/mobile/plugins/onnx_dart/pubspec.lock
@@ -71,18 +71,18 @@ packages:
dependency: transitive
description:
name: leak_tracker
- sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a"
+ sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
url: "https://pub.dev"
source: hosted
- version: "10.0.4"
+ version: "10.0.5"
leak_tracker_flutter_testing:
dependency: transitive
description:
name: leak_tracker_flutter_testing
- sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8"
+ sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
url: "https://pub.dev"
source: hosted
- version: "3.0.3"
+ version: "3.0.5"
leak_tracker_testing:
dependency: transitive
description:
@@ -111,18 +111,18 @@ packages:
dependency: transitive
description:
name: material_color_utilities
- sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
+ sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
url: "https://pub.dev"
source: hosted
- version: "0.8.0"
+ version: "0.11.1"
meta:
dependency: transitive
description:
name: meta
- sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"
+ sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
url: "https://pub.dev"
source: hosted
- version: "1.12.0"
+ version: "1.15.0"
path:
dependency: transitive
description:
@@ -188,10 +188,10 @@ packages:
dependency: transitive
description:
name: test_api
- sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f"
+ sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
url: "https://pub.dev"
source: hosted
- version: "0.7.0"
+ version: "0.7.2"
vector_math:
dependency: transitive
description:
@@ -204,10 +204,10 @@ packages:
dependency: transitive
description:
name: vm_service
- sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec"
+ sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
url: "https://pub.dev"
source: hosted
- version: "14.2.1"
+ version: "14.2.5"
sdks:
dart: ">=3.4.3 <4.0.0"
flutter: ">=3.18.0-18.0.pre.54"
diff --git a/mobile/pubspec.lock b/mobile/pubspec.lock
index cc25b6a214..ab9c4cd2a4 100644
--- a/mobile/pubspec.lock
+++ b/mobile/pubspec.lock
@@ -13,10 +13,10 @@ packages:
dependency: transitive
description:
name: _flutterfire_internals
- sha256: "27899c95f9e7ec06c8310e6e0eac967707714b9f1450c4a58fa00ca011a4a8ae"
+ sha256: "5534e701a2c505fed1f0799e652dd6ae23bd4d2c4cf797220e5ced5764a7c1c2"
url: "https://pub.dev"
source: hosted
- version: "1.3.49"
+ version: "1.3.44"
_macros:
dependency: transitive
description: dart
@@ -42,10 +42,10 @@ packages:
dependency: "direct main"
description:
name: android_intent_plus
- sha256: "53136214d506d3128c9f4e5bfce3d026abe7e8038958629811a8d3223b1757c1"
+ sha256: "38921ec22ebb3b9a7eb678792cf6fab0b6f458b61b9d327688573449c9b47db3"
url: "https://pub.dev"
source: hosted
- version: "5.2.1"
+ version: "5.2.0"
animate_do:
dependency: "direct main"
description:
@@ -90,10 +90,10 @@ packages:
dependency: transitive
description:
name: args
- sha256: bf9f5caeea8d8fe6721a9c358dd8a5c1947b27f1cfaa18b39c301273594919e6
+ sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a"
url: "https://pub.dev"
source: hosted
- version: "2.6.0"
+ version: "2.5.0"
asn1lib:
dependency: transitive
description:
@@ -202,10 +202,10 @@ packages:
dependency: transitive
description:
name: built_value
- sha256: "28a712df2576b63c6c005c465989a348604960c0958d28be5303ba9baa841ac2"
+ sha256: c7913a9737ee4007efedaffc968c049fd0f3d0e49109e778edc10de9426005cb
url: "https://pub.dev"
source: hosted
- version: "8.9.3"
+ version: "8.9.2"
cached_network_image:
dependency: "direct main"
description:
@@ -268,10 +268,10 @@ packages:
dependency: transitive
description:
name: cli_util
- sha256: ff6785f7e9e3c38ac98b2fb035701789de90154024a75b6cb926445e83197d1c
+ sha256: c05b7406fdabc7a49a3929d4af76bcaccbbffcbcdcf185b082e1ae07da323d19
url: "https://pub.dev"
source: hosted
- version: "0.4.2"
+ version: "0.4.1"
clock:
dependency: transitive
description:
@@ -284,10 +284,10 @@ packages:
dependency: transitive
description:
name: code_builder
- sha256: "0ec10bf4a89e4c613960bf1e8b42c64127021740fb21640c29c909826a5eea3e"
+ sha256: f692079e25e7869c14132d39f223f8eec9830eb76131925143b2129c4bb01b37
url: "https://pub.dev"
source: hosted
- version: "4.10.1"
+ version: "4.10.0"
collection:
dependency: "direct main"
description:
@@ -309,10 +309,10 @@ packages:
dependency: "direct main"
description:
name: connectivity_plus
- sha256: e0817759ec6d2d8e57eb234e6e57d2173931367a865850c7acea40d4b4f9c27d
+ sha256: "2056db5241f96cdc0126bd94459fc4cdc13876753768fc7a31c425e50a7177d0"
url: "https://pub.dev"
source: hosted
- version: "6.1.1"
+ version: "6.0.5"
connectivity_plus_platform_interface:
dependency: transitive
description:
@@ -325,18 +325,26 @@ packages:
dependency: transitive
description:
name: convert
- sha256: b30acd5944035672bc15c6b7a8b47d773e41e2f17de064350988c5d02adb1c68
+ sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592"
url: "https://pub.dev"
source: hosted
- version: "3.1.2"
+ version: "3.1.1"
coverage:
dependency: transitive
description:
name: coverage
- sha256: e3493833ea012784c740e341952298f1cc77f1f01b1bbc3eb4eecf6984fb7f43
+ sha256: c1fb2dce3c0085f39dc72668e85f8e0210ec7de05345821ff58530567df345a5
url: "https://pub.dev"
source: hosted
- version: "1.11.1"
+ version: "1.9.2"
+ cronet_http:
+ dependency: transitive
+ description:
+ name: cronet_http
+ sha256: "3af9c4d57bf07ef4b307e77b22be4ad61bea19ee6ff65e62184863f3a09f1415"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.3.2"
cross_file:
dependency: "direct main"
description:
@@ -349,18 +357,26 @@ packages:
dependency: "direct main"
description:
name: crypto
- sha256: "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855"
+ sha256: ec30d999af904f33454ba22ed9a86162b35e52b44ac4807d1d93c288041d7d27
url: "https://pub.dev"
source: hosted
- version: "3.0.6"
+ version: "3.0.5"
csslib:
dependency: transitive
description:
name: csslib
- sha256: "09bad715f418841f976c77db72d5398dc1253c21fb9c0c7f0b0b985860b2d58e"
+ sha256: "706b5707578e0c1b4b7550f64078f0a0f19dec3f50a178ffae7006b0a9ca58fb"
url: "https://pub.dev"
source: hosted
- version: "1.0.2"
+ version: "1.0.0"
+ cupertino_http:
+ dependency: transitive
+ description:
+ name: cupertino_http
+ sha256: "6fcf79586ad872ddcd6004d55c8c2aab3cdf0337436e8f99837b1b6c30665d0c"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.0.2"
cupertino_icons:
dependency: "direct main"
description:
@@ -413,18 +429,26 @@ packages:
dependency: transitive
description:
name: device_info_plus_platform_interface
- sha256: "0b04e02b30791224b31969eb1b50d723498f402971bff3630bca2ba839bd1ed2"
+ sha256: "282d3cf731045a2feb66abfe61bbc40870ae50a3ed10a4d3d217556c35c8c2ba"
url: "https://pub.dev"
source: hosted
- version: "7.0.2"
+ version: "7.0.1"
dio:
dependency: "direct main"
description:
name: dio
- sha256: "7d328c4d898a61efc3cd93655a0955858e29a0aa647f0f9e02d59b3bb275e2e8"
+ sha256: "253a18bbd4851fecba42f7343a1df3a9a4c1d31a2c1b37e221086b4fa8c8dbc9"
+ url: "https://pub.dev"
+ source: hosted
+ version: "5.8.0+1"
+ dio_web_adapter:
+ dependency: transitive
+ description:
+ name: dio_web_adapter
+ sha256: e485c7a39ff2b384fa1d7e09b4e25f755804de8384358049124830b04fc4f93a
url: "https://pub.dev"
source: hosted
- version: "4.0.6"
+ version: "2.1.0"
dots_indicator:
dependency: "direct main"
description:
@@ -498,10 +522,10 @@ packages:
dependency: "direct main"
description:
name: equatable
- sha256: "567c64b3cb4cf82397aac55f4f0cbd3ca20d77c6c03bedbc4ceaddc08904aef7"
+ sha256: c2b87cb7756efdf69892005af546c56c0b5037f54d2a88269b4f347a505e3ca2
url: "https://pub.dev"
source: hosted
- version: "2.0.7"
+ version: "2.0.5"
event_bus:
dependency: "direct main"
description:
@@ -627,10 +651,10 @@ packages:
dependency: transitive
description:
name: file_selector_linux
- sha256: "54cbbd957e1156d29548c7d9b9ec0c0ebb6de0a90452198683a7d23aed617a33"
+ sha256: "712ce7fab537ba532c8febdb1a8f167b32441e74acd68c3ccb2e36dcb52c4ab2"
url: "https://pub.dev"
source: hosted
- version: "0.9.3+2"
+ version: "0.9.3"
file_selector_macos:
dependency: transitive
description:
@@ -659,58 +683,58 @@ packages:
dependency: "direct main"
description:
name: firebase_core
- sha256: "0307c1fde82e2b8b97e0be2dab93612aff9a72f31ebe9bfac66ed8b37ef7c568"
+ sha256: "51dfe2fbf3a984787a2e7b8592f2f05c986bfedd6fdacea3f9e0a7beb334de96"
url: "https://pub.dev"
source: hosted
- version: "3.10.0"
+ version: "3.6.0"
firebase_core_platform_interface:
dependency: transitive
description:
name: firebase_core_platform_interface
- sha256: d7253d255ff10f85cfd2adaba9ac17bae878fa3ba577462451163bd9f1d1f0bf
+ sha256: e30da58198a6d4b49d5bce4e852f985c32cb10db329ebef9473db2b9f09ce810
url: "https://pub.dev"
source: hosted
- version: "5.4.0"
+ version: "5.3.0"
firebase_core_web:
dependency: transitive
description:
name: firebase_core_web
- sha256: fbc008cf390d909b823763064b63afefe9f02d8afdb13eb3f485b871afee956b
+ sha256: f967a7138f5d2ffb1ce15950e2a382924239eaa521150a8f144af34e68b3b3e5
url: "https://pub.dev"
source: hosted
- version: "2.19.0"
+ version: "2.18.1"
firebase_messaging:
dependency: "direct main"
description:
name: firebase_messaging
- sha256: "48a8a59197c1c5174060ba9aa1e0036e9b5a0d28a0cc22d19c1fcabc67fafe3c"
+ sha256: eb6e28a3a35deda61fe8634967c84215efc19133ba58d8e0fc6c9a2af2cba05e
url: "https://pub.dev"
source: hosted
- version: "15.2.0"
+ version: "15.1.3"
firebase_messaging_platform_interface:
dependency: transitive
description:
name: firebase_messaging_platform_interface
- sha256: "9770a8e91f54296829dcaa61ce9b7c2f9ae9abbf99976dd3103a60470d5264dd"
+ sha256: b316c4ee10d93d32c033644207afc282d9b2b4372f3cf9c6022f3558b3873d2d
url: "https://pub.dev"
source: hosted
- version: "4.6.0"
+ version: "4.5.46"
firebase_messaging_web:
dependency: transitive
description:
name: firebase_messaging_web
- sha256: "329ca4ef45ec616abe6f1d5e58feed0934a50840a65aa327052354ad3c64ed77"
+ sha256: d7f0147a1a9fe4313168e20154a01fd5cf332898de1527d3930ff77b8c7f5387
url: "https://pub.dev"
source: hosted
- version: "3.10.0"
+ version: "3.9.2"
fixnum:
dependency: transitive
description:
name: fixnum
- sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be
+ sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1"
url: "https://pub.dev"
source: hosted
- version: "1.1.1"
+ version: "1.1.0"
flutter:
dependency: "direct main"
description: flutter
@@ -720,10 +744,10 @@ packages:
dependency: "direct main"
description:
name: flutter_animate
- sha256: "7befe2d3252728afb77aecaaea1dec88a89d35b9b1d2eea6d04479e8af9117b5"
+ sha256: "7c8a6594a9252dad30cc2ef16e33270b6248c4dedc3b3d06c86c4f3f4dc05ae5"
url: "https://pub.dev"
source: hosted
- version: "4.5.2"
+ version: "4.5.0"
flutter_cache_manager:
dependency: "direct main"
description:
@@ -789,10 +813,10 @@ packages:
dependency: "direct main"
description:
name: flutter_inappwebview
- sha256: "80092d13d3e29b6227e25b67973c67c7210bd5e35c4b747ca908e31eb71a46d5"
+ sha256: "93cfcca02bdda4b26cd700cf70d9ddba09d8348e3e8f2857638c23ed23a4fcb4"
url: "https://pub.dev"
source: hosted
- version: "6.1.5"
+ version: "6.1.4"
flutter_inappwebview_android:
dependency: transitive
description:
@@ -805,10 +829,10 @@ packages:
dependency: transitive
description:
name: flutter_inappwebview_internal_annotations
- sha256: "787171d43f8af67864740b6f04166c13190aa74a1468a1f1f1e9ee5b90c359cd"
+ sha256: "5f80fd30e208ddded7dbbcd0d569e7995f9f63d45ea3f548d8dd4c0b473fb4c8"
url: "https://pub.dev"
source: hosted
- version: "1.2.0"
+ version: "1.1.1"
flutter_inappwebview_ios:
dependency: transitive
description:
@@ -845,10 +869,10 @@ packages:
dependency: transitive
description:
name: flutter_inappwebview_windows
- sha256: "8b4d3a46078a2cdc636c4a3d10d10f2a16882f6be607962dbfff8874d1642055"
+ sha256: "95ebc65aecfa63b2084c822aec6ba0545f0a0afaa3899f2c752ec96c09108db5"
url: "https://pub.dev"
source: hosted
- version: "0.6.0"
+ version: "0.5.0+2"
flutter_launcher_icons:
dependency: "direct main"
description:
@@ -869,10 +893,10 @@ packages:
dependency: "direct main"
description:
name: flutter_local_notifications
- sha256: "674173fd3c9eda9d4c8528da2ce0ea69f161577495a9cc835a2a4ecd7eadeb35"
+ sha256: "49eeef364fddb71515bc78d5a8c51435a68bccd6e4d68e25a942c5e47761ae71"
url: "https://pub.dev"
source: hosted
- version: "17.2.4"
+ version: "17.2.3"
flutter_local_notifications_linux:
dependency: transitive
description:
@@ -922,10 +946,10 @@ packages:
dependency: "direct main"
description:
name: flutter_native_splash
- sha256: "7062602e0dbd29141fb8eb19220b5871ca650be5197ab9c1f193a28b17537bc7"
+ sha256: aa06fec78de2190f3db4319dd60fdc8d12b2626e93ef9828633928c2dcaea840
url: "https://pub.dev"
source: hosted
- version: "2.4.4"
+ version: "2.4.1"
flutter_password_strength:
dependency: "direct main"
description:
@@ -938,10 +962,10 @@ packages:
dependency: transitive
description:
name: flutter_plugin_android_lifecycle
- sha256: "615a505aef59b151b46bbeef55b36ce2b6ed299d160c51d84281946f0aa0ce0e"
+ sha256: "9b78450b89f059e96c9ebb355fa6b3df1d6b330436e0b885fb49594c41721398"
url: "https://pub.dev"
source: hosted
- version: "2.0.24"
+ version: "2.0.23"
flutter_secure_storage:
dependency: "direct main"
description:
@@ -954,18 +978,18 @@ packages:
dependency: transitive
description:
name: flutter_secure_storage_linux
- sha256: bf7404619d7ab5c0a1151d7c4e802edad8f33535abfbeff2f9e1fe1274e2d705
+ sha256: "4d91bfc23047422cbcd73ac684bc169859ee766482517c22172c86596bf1464b"
url: "https://pub.dev"
source: hosted
- version: "1.2.2"
+ version: "1.2.1"
flutter_secure_storage_macos:
dependency: transitive
description:
name: flutter_secure_storage_macos
- sha256: "6c0a2795a2d1de26ae202a0d78527d163f4acbb11cde4c75c670f3a0fc064247"
+ sha256: "1693ab11121a5f925bbea0be725abfcfbbcf36c1e29e571f84a0c0f436147a81"
url: "https://pub.dev"
source: hosted
- version: "3.1.3"
+ version: "3.1.2"
flutter_secure_storage_platform_interface:
dependency: transitive
description:
@@ -1026,10 +1050,10 @@ packages:
dependency: "direct main"
description:
name: flutter_svg
- sha256: "54900a1a1243f3c4a5506d853a2b5c2dbc38d5f27e52a52618a8054401431123"
+ sha256: "7b4ca6cf3304575fe9c8ec64813c8d02ee41d2afe60bcfe0678bcb5375d596a2"
url: "https://pub.dev"
source: hosted
- version: "2.0.16"
+ version: "2.0.10+1"
flutter_test:
dependency: "direct dev"
description: flutter
@@ -1044,10 +1068,10 @@ packages:
dependency: "direct main"
description:
name: fluttertoast
- sha256: "24467dc20bbe49fd63e57d8e190798c4d22cbbdac30e54209d153a15273721d1"
+ sha256: "95f349437aeebe524ef7d6c9bde3e6b4772717cf46a0eb6a3ceaddc740b297cc"
url: "https://pub.dev"
source: hosted
- version: "8.2.10"
+ version: "8.2.8"
fraction:
dependency: "direct main"
description:
@@ -1097,10 +1121,10 @@ packages:
dependency: "direct main"
description:
name: google_nav_bar
- sha256: bb12dd21514ee1b041ab3127673e2fd85e693337df308f7f2b75cd1e8e92eaf4
+ sha256: "1c8e3882fa66ee7b74c24320668276ca23affbd58f0b14a24c1e5590f4d07ab0"
url: "https://pub.dev"
source: hosted
- version: "5.0.7"
+ version: "5.0.6"
graphs:
dependency: transitive
description:
@@ -1129,10 +1153,10 @@ packages:
dependency: transitive
description:
name: html
- sha256: "1fc58edeaec4307368c60d59b7e15b9d658b57d7f3125098b6294153c75337ec"
+ sha256: "3a7812d5bcd2894edf53dfaf8cd640876cf6cef50a8f238745c8b8120ea74d3a"
url: "https://pub.dev"
source: hosted
- version: "0.15.5"
+ version: "0.15.4"
html_unescape:
dependency: "direct main"
description:
@@ -1161,10 +1185,10 @@ packages:
dependency: transitive
description:
name: http_multi_server
- sha256: aa6199f908078bb1c5efb8d8638d4ae191aac11b311132c3ef48ce352fb52ef8
+ sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b"
url: "https://pub.dev"
source: hosted
- version: "3.2.2"
+ version: "3.2.1"
http_parser:
dependency: transitive
description:
@@ -1173,14 +1197,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.0.2"
+ http_profile:
+ dependency: transitive
+ description:
+ name: http_profile
+ sha256: "7e679e355b09aaee2ab5010915c932cce3f2d1c11c3b2dc177891687014ffa78"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.1.0"
image:
dependency: "direct main"
description:
name: image
- sha256: f31d52537dc417fdcde36088fdf11d191026fd5e4fae742491ebd40e5a8bea7d
+ sha256: "2237616a36c0d69aef7549ab439b833fb7f9fb9fc861af2cc9ac3eedddd69ca8"
url: "https://pub.dev"
source: hosted
- version: "4.3.0"
+ version: "4.2.0"
image_editor:
dependency: "direct main"
description:
@@ -1225,26 +1257,26 @@ packages:
dependency: transitive
description:
name: image_picker_android
- sha256: aa6f1280b670861ac45220cc95adc59bb6ae130259d36f980ccb62220dc5e59f
+ sha256: d3e5e00fdfeca8fd4ffb3227001264d449cc8950414c2ff70b0e06b9c628e643
url: "https://pub.dev"
source: hosted
- version: "0.8.12+19"
+ version: "0.8.12+15"
image_picker_for_web:
dependency: transitive
description:
name: image_picker_for_web
- sha256: "717eb042ab08c40767684327be06a5d8dbb341fe791d514e4b92c7bbe1b7bb83"
+ sha256: "65d94623e15372c5c51bebbcb820848d7bcb323836e12dfdba60b5d3a8b39e50"
url: "https://pub.dev"
source: hosted
- version: "3.0.6"
+ version: "3.0.5"
image_picker_ios:
dependency: transitive
description:
name: image_picker_ios
- sha256: "05da758e67bc7839e886b3959848aa6b44ff123ab4b28f67891008afe8ef9100"
+ sha256: "6703696ad49f5c3c8356d576d7ace84d1faf459afb07accbb0fae780753ff447"
url: "https://pub.dev"
source: hosted
- version: "0.8.12+2"
+ version: "0.8.12"
image_picker_linux:
dependency: transitive
description:
@@ -1265,10 +1297,10 @@ packages:
dependency: transitive
description:
name: image_picker_platform_interface
- sha256: "886d57f0be73c4b140004e78b9f28a8914a09e50c2d816bdd0520051a71236a0"
+ sha256: "9ec26d410ff46f483c5519c29c02ef0e02e13a543f882b152d4bfd2f06802f80"
url: "https://pub.dev"
source: hosted
- version: "2.10.1"
+ version: "2.10.0"
image_picker_windows:
dependency: transitive
description:
@@ -1289,10 +1321,10 @@ packages:
dependency: transitive
description:
name: in_app_purchase_android
- sha256: fa1befc0e25374d16ca532154546503f25a865ed6e7ea5641f4f2b75b092d669
+ sha256: bee60266e443d4ae0e4809bae7f9cd4d6be75ab5ec6bb3d2ca737774a274a3bd
url: "https://pub.dev"
source: hosted
- version: "0.3.6+12"
+ version: "0.3.6+9"
in_app_purchase_platform_interface:
dependency: transitive
description:
@@ -1305,10 +1337,10 @@ packages:
dependency: transitive
description:
name: in_app_purchase_storekit
- sha256: d3187532f20ae4aca3bb65e3adaf09f9a870294b1709d2971bb8485f1825d472
+ sha256: e9a408da11d055f9af9849859e1251b2b0a2f84f256fa3bf1285c5614a397079
url: "https://pub.dev"
source: hosted
- version: "0.3.20+3"
+ version: "0.3.18+1"
integration_test:
dependency: "direct dev"
description: flutter
@@ -1334,10 +1366,18 @@ packages:
dependency: transitive
description:
name: io
- sha256: dfd5a80599cf0165756e3181807ed3e77daf6dd4137caaad72d0b7931597650b
+ sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e"
url: "https://pub.dev"
source: hosted
- version: "1.0.5"
+ version: "1.0.4"
+ jni:
+ dependency: transitive
+ description:
+ name: jni
+ sha256: f377c585ea9c08d48b427dc2e03780af2889d1bb094440da853c6883c1acba4b
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.10.1"
js:
dependency: transitive
description:
@@ -1358,10 +1398,10 @@ packages:
dependency: "direct dev"
description:
name: json_serializable
- sha256: c2fcb3920cf2b6ae6845954186420fca40bc0a8abcc84903b7801f17d7050d7c
+ sha256: ea1432d167339ea9b5bb153f0571d0039607a873d6e04e0117af043f14a1fd4b
url: "https://pub.dev"
source: hosted
- version: "6.9.0"
+ version: "6.8.0"
latlong2:
dependency: "direct main"
description:
@@ -1446,10 +1486,10 @@ packages:
dependency: transitive
description:
name: local_auth_darwin
- sha256: "5c5127061107278ab4cafa1ac51b3b6760282bf1a2abf011270908a429d1634b"
+ sha256: "6d2950da311d26d492a89aeb247c72b4653ddc93601ea36a84924a396806d49c"
url: "https://pub.dev"
source: hosted
- version: "1.4.2"
+ version: "1.4.1"
local_auth_ios:
dependency: "direct main"
description:
@@ -1478,18 +1518,18 @@ packages:
dependency: transitive
description:
name: logger
- sha256: be4b23575aac7ebf01f225a241eb7f6b5641eeaf43c6a8613510fc2f8cf187d1
+ sha256: "697d067c60c20999686a0add96cf6aba723b3aa1f83ecf806a8097231529ec32"
url: "https://pub.dev"
source: hosted
- version: "2.5.0"
+ version: "2.4.0"
logging:
dependency: "direct main"
description:
name: logging
- sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61
+ sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340"
url: "https://pub.dev"
source: hosted
- version: "1.3.0"
+ version: "1.2.0"
lottie:
dependency: "direct main"
description:
@@ -1631,10 +1671,10 @@ packages:
dependency: transitive
description:
name: mime
- sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6"
+ sha256: "801fd0b26f14a4a58ccb09d5892c3fbdeff209594300a542492cf13fba9d247a"
url: "https://pub.dev"
source: hosted
- version: "2.0.0"
+ version: "1.0.6"
ml_linalg:
dependency: "direct main"
description:
@@ -1702,6 +1742,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.0.0"
+ native_dio_adapter:
+ dependency: "direct main"
+ description:
+ name: native_dio_adapter
+ sha256: "7420bc9517b2abe09810199a19924617b45690a44ecfb0616ac9babc11875c03"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.4.0"
native_video_player:
dependency: "direct main"
description:
@@ -1735,6 +1783,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.0.2"
+ objective_c:
+ dependency: transitive
+ description:
+ name: objective_c
+ sha256: "62e79ab8c3ed6f6a340ea50dd48d65898f5d70425d404f0d99411f6e56e04584"
+ url: "https://pub.dev"
+ source: hosted
+ version: "4.1.0"
octo_image:
dependency: transitive
description:
@@ -1771,10 +1827,10 @@ packages:
dependency: transitive
description:
name: package_config
- sha256: "92d4488434b520a62570293fbd33bb556c7d49230791c1b4bbd973baf6d2dc67"
+ sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd"
url: "https://pub.dev"
source: hosted
- version: "2.1.1"
+ version: "2.1.0"
package_info_plus:
dependency: "direct main"
description:
@@ -1795,10 +1851,10 @@ packages:
dependency: "direct main"
description:
name: page_transition
- sha256: "9d2a780d7d68b53ae82fbcc43e06a16195e6775e9aae40e55dc0cbb593460f9d"
+ sha256: dee976b1f23de9bbef5cd512fe567e9f6278caee11f5eaca9a2115c19dc49ef6
url: "https://pub.dev"
source: hosted
- version: "2.2.1"
+ version: "2.1.0"
panorama:
dependency: "direct main"
description:
@@ -1836,34 +1892,34 @@ packages:
dependency: transitive
description:
name: path_parsing
- sha256: "883402936929eac138ee0a45da5b0f2c80f89913e6dc3bf77eb65b84b409c6ca"
+ sha256: e3e67b1629e6f7e8100b367d3db6ba6af4b1f0bb80f64db18ef1fbabd2fa9ccf
url: "https://pub.dev"
source: hosted
- version: "1.1.0"
+ version: "1.0.1"
path_provider:
dependency: "direct main"
description:
name: path_provider
- sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd"
+ sha256: fec0d61223fba3154d87759e3cc27fe2c8dc498f6386c6d6fc80d1afdd1bf378
url: "https://pub.dev"
source: hosted
- version: "2.1.5"
+ version: "2.1.4"
path_provider_android:
dependency: transitive
description:
name: path_provider_android
- sha256: "4adf4fd5423ec60a29506c76581bc05854c55e3a0b72d35bb28d661c9686edf2"
+ sha256: c464428172cb986b758c6d1724c603097febb8fb855aa265aeecc9280c294d4a
url: "https://pub.dev"
source: hosted
- version: "2.2.15"
+ version: "2.2.12"
path_provider_foundation:
dependency: transitive
description:
name: path_provider_foundation
- sha256: "4843174df4d288f5e29185bd6e72a6fbdf5a4a4602717eed565497429f179942"
+ sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16
url: "https://pub.dev"
source: hosted
- version: "2.4.1"
+ version: "2.4.0"
path_provider_linux:
dependency: transitive
description:
@@ -1908,10 +1964,10 @@ packages:
dependency: transitive
description:
name: permission_handler_android
- sha256: "71bbecfee799e65aff7c744761a57e817e73b738fedf62ab7afd5593da21f9f1"
+ sha256: "76e4ab092c1b240d31177bb64d2b0bea43f43d0e23541ec866151b9f7b2490fa"
url: "https://pub.dev"
source: hosted
- version: "12.0.13"
+ version: "12.0.12"
permission_handler_apple:
dependency: transitive
description:
@@ -1924,10 +1980,10 @@ packages:
dependency: transitive
description:
name: permission_handler_html
- sha256: "38f000e83355abb3392140f6bc3030660cfaef189e1f87824facb76300b4ff24"
+ sha256: af26edbbb1f2674af65a8f4b56e1a6f526156bc273d0e65dd8075fab51c78851
url: "https://pub.dev"
source: hosted
- version: "0.1.3+5"
+ version: "0.1.3+2"
permission_handler_platform_interface:
dependency: transitive
description:
@@ -1956,10 +2012,10 @@ packages:
dependency: "direct main"
description:
name: photo_manager
- sha256: dc26184676b26d722d656073ca8fe29203d7631ec613aed1a9679de3aa1f52c2
+ sha256: "0bc7548fd3111eb93a3b0abf1c57364e40aeda32512c100085a48dade60e574f"
url: "https://pub.dev"
source: hosted
- version: "3.6.3"
+ version: "3.6.4"
photo_manager_image_provider:
dependency: transitive
description:
@@ -2068,18 +2124,18 @@ packages:
dependency: transitive
description:
name: pub_semver
- sha256: "7b3cfbf654f3edd0c6298ecd5be782ce997ddf0e00531b9464b55245185bbbbd"
+ sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c"
url: "https://pub.dev"
source: hosted
- version: "2.1.5"
+ version: "2.1.4"
pubspec_parse:
dependency: transitive
description:
name: pubspec_parse
- sha256: "81876843eb50dc2e1e5b151792c9a985c5ed2536914115ed04e9c8528f6647b0"
+ sha256: c799b721d79eb6ee6fa56f00c04b472dcd44a30d258fac2174a6ec57302678f8
url: "https://pub.dev"
source: hosted
- version: "1.4.0"
+ version: "1.3.0"
quiver:
dependency: "direct main"
description:
@@ -2092,10 +2148,10 @@ packages:
dependency: "direct main"
description:
name: receive_sharing_intent
- sha256: ec76056e4d258ad708e76d85591d933678625318e411564dcb9059048ca3a593
+ sha256: f127989f8662ea15e193bd1e10605e5a0ab6bb92dffd51f3ce002feb0ce24c93
url: "https://pub.dev"
source: hosted
- version: "1.8.1"
+ version: "1.8.0"
rxdart:
dependency: transitive
description:
@@ -2180,58 +2236,58 @@ packages:
dependency: "direct main"
description:
name: sentry
- sha256: "576ad83415102ba2060142a6701611abc6e67a55af1d7ab339cedd3ba1b0f84c"
+ sha256: "033287044a6644a93498969449d57c37907e56f5cedb17b88a3ff20a882261dd"
url: "https://pub.dev"
source: hosted
- version: "8.12.0"
+ version: "8.9.0"
sentry_flutter:
dependency: "direct main"
description:
name: sentry_flutter
- sha256: dc3761e8659839cc67a18432d9f12e5531affb7ff68e196dbb56846909b5dfdc
+ sha256: "3780b5a0bb6afd476857cfbc6c7444d969c29a4d9bd1aa5b6960aa76c65b737a"
url: "https://pub.dev"
source: hosted
- version: "8.12.0"
+ version: "8.9.0"
share_plus:
dependency: "direct main"
description:
name: share_plus
- sha256: "6327c3f233729374d0abaafd61f6846115b2a481b4feddd8534211dc10659400"
+ sha256: "468c43f285207c84bcabf5737f33b914ceb8eb38398b91e5e3ad1698d1b72a52"
url: "https://pub.dev"
source: hosted
- version: "10.1.3"
+ version: "10.0.2"
share_plus_platform_interface:
dependency: transitive
description:
name: share_plus_platform_interface
- sha256: cc012a23fc2d479854e6c80150696c4a5f5bb62cb89af4de1c505cf78d0a5d0b
+ sha256: "6ababf341050edff57da8b6990f11f4e99eaba837865e2e6defe16d039619db5"
url: "https://pub.dev"
source: hosted
- version: "5.0.2"
+ version: "5.0.0"
shared_preferences:
dependency: "direct main"
description:
name: shared_preferences
- sha256: a752ce92ea7540fc35a0d19722816e04d0e72828a4200e83a98cf1a1eb524c9a
+ sha256: "746e5369a43170c25816cc472ee016d3a66bc13fcf430c0bc41ad7b4b2922051"
url: "https://pub.dev"
source: hosted
- version: "2.3.5"
+ version: "2.3.2"
shared_preferences_android:
dependency: transitive
description:
name: shared_preferences_android
- sha256: "02a7d8a9ef346c9af715811b01fbd8e27845ad2c41148eefd31321471b41863d"
+ sha256: "3b9febd815c9ca29c9e3520d50ec32f49157711e143b7a4ca039eb87e8ade5ab"
url: "https://pub.dev"
source: hosted
- version: "2.4.0"
+ version: "2.3.3"
shared_preferences_foundation:
dependency: transitive
description:
name: shared_preferences_foundation
- sha256: "6a52cfcdaeac77cad8c97b539ff688ccfc458c007b4db12be584fbe5c0e49e03"
+ sha256: "07e050c7cd39bad516f8d64c455f04508d09df104be326d8c02551590a0d513d"
url: "https://pub.dev"
source: hosted
- version: "2.5.4"
+ version: "2.5.3"
shared_preferences_linux:
dependency: transitive
description:
@@ -2292,10 +2348,10 @@ packages:
dependency: transitive
description:
name: shelf_web_socket
- sha256: cc36c297b52866d203dbf9332263c94becc2fe0ceaa9681d07b6ef9807023b67
+ sha256: "073c147238594ecd0d193f3456a5fe91c4b0abbcc68bf5cd95b36c4e194ac611"
url: "https://pub.dev"
source: hosted
- version: "2.0.1"
+ version: "2.0.0"
simple_cluster:
dependency: "direct main"
description:
@@ -2321,10 +2377,10 @@ packages:
dependency: transitive
description:
name: source_helper
- sha256: "86d247119aedce8e63f4751bd9626fc9613255935558447569ad42f9f5b48b3c"
+ sha256: "6adebc0006c37dd63fe05bca0a929b99f06402fc95aa35bf36d67f5c06de01fd"
url: "https://pub.dev"
source: hosted
- version: "1.3.5"
+ version: "1.3.4"
source_map_stack_trace:
dependency: transitive
description:
@@ -2337,10 +2393,10 @@ packages:
dependency: transitive
description:
name: source_maps
- sha256: "190222579a448b03896e0ca6eca5998fa810fda630c1d65e2f78b3f638f54812"
+ sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703"
url: "https://pub.dev"
source: hosted
- version: "0.10.13"
+ version: "0.10.12"
source_span:
dependency: transitive
description:
@@ -2361,10 +2417,10 @@ packages:
dependency: "direct main"
description:
name: sqflite
- sha256: "2d7299468485dca85efeeadf5d38986909c5eb0cd71fd3db2c2f000e6c9454bb"
+ sha256: "79a297dc3cc137e758c6a4baf83342b039e5a6d2436fcdf3f96a00adaaf2ad62"
url: "https://pub.dev"
source: hosted
- version: "2.4.1"
+ version: "2.4.0"
sqflite_android:
dependency: transitive
description:
@@ -2377,18 +2433,18 @@ packages:
dependency: transitive
description:
name: sqflite_common
- sha256: "761b9740ecbd4d3e66b8916d784e581861fd3c3553eda85e167bc49fdb68f709"
+ sha256: "4468b24876d673418a7b7147e5a08a715b4998a7ae69227acafaab762e0e5490"
url: "https://pub.dev"
source: hosted
- version: "2.5.4+6"
+ version: "2.5.4+5"
sqflite_darwin:
dependency: transitive
description:
name: sqflite_darwin
- sha256: "22adfd9a2c7d634041e96d6241e6e1c8138ca6817018afc5d443fef91dcefa9c"
+ sha256: "769733dddf94622d5541c73e4ddc6aa7b252d865285914b6fcd54a63c4b4f027"
url: "https://pub.dev"
source: hosted
- version: "2.4.1+1"
+ version: "2.4.1-1"
sqflite_migration:
dependency: "direct main"
description:
@@ -2409,18 +2465,18 @@ packages:
dependency: transitive
description:
name: sqlite3
- sha256: cb7f4e9dc1b52b1fa350f7b3d41c662e75fc3d399555fa4e5efcf267e9a4fbb5
+ sha256: "45f168ae2213201b54e09429ed0c593dc2c88c924a1488d6f9c523a255d567cb"
url: "https://pub.dev"
source: hosted
- version: "2.5.0"
+ version: "2.4.6"
sqlite3_flutter_libs:
dependency: "direct main"
description:
name: sqlite3_flutter_libs
- sha256: "73016db8419f019e807b7a5e5fbf2a7bd45c165fed403b8e7681230f3a102785"
+ sha256: "62bbb4073edbcdf53f40c80775f33eea01d301b7b81417e5b3fb7395416258c1"
url: "https://pub.dev"
source: hosted
- version: "0.5.28"
+ version: "0.5.24"
sqlite_async:
dependency: "direct main"
description:
@@ -2457,10 +2513,10 @@ packages:
dependency: transitive
description:
name: stream_transform
- sha256: ad47125e588cfd37a9a7f86c7d6356dde8dfe89d071d293f80ca9e9273a33871
+ sha256: "14a00e794c7c11aa145a170587321aedce29769c08d7f58b1d141da75e3b1c6f"
url: "https://pub.dev"
source: hosted
- version: "2.1.1"
+ version: "2.1.0"
string_scanner:
dependency: transitive
description:
@@ -2561,10 +2617,10 @@ packages:
dependency: transitive
description:
name: timing
- sha256: "62ee18aca144e4a9f29d212f5a4c6a053be252b895ab14b5821996cff4ed90fe"
+ sha256: "70a3b636575d4163c477e6de42f247a23b315ae20e86442bebe32d3cabf61c32"
url: "https://pub.dev"
source: hosted
- version: "1.0.2"
+ version: "1.0.1"
transparent_image:
dependency: transitive
description:
@@ -2585,18 +2641,18 @@ packages:
dependency: transitive
description:
name: typed_data
- sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006
+ sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c
url: "https://pub.dev"
source: hosted
- version: "1.4.0"
+ version: "1.3.2"
ua_client_hints:
dependency: "direct main"
description:
name: ua_client_hints
- sha256: "1b8759a46bfeab355252881df27f2604c01bded86aa2b578869fb1b638b23118"
+ sha256: dfea54a1b4d259c057d0f33f198094cf4e09e1a21d347baadbe6dbd3d820c0d4
url: "https://pub.dev"
source: hosted
- version: "1.4.1"
+ version: "1.4.0"
uni_links:
dependency: "direct main"
description:
@@ -2657,42 +2713,42 @@ packages:
dependency: "direct main"
description:
name: url_launcher
- sha256: "9d06212b1362abc2f0f0d78e6f09f726608c74e3b9462e8368bb03314aa8d603"
+ sha256: "21b704ce5fa560ea9f3b525b43601c678728ba46725bab9b01187b4831377ed3"
url: "https://pub.dev"
source: hosted
- version: "6.3.1"
+ version: "6.3.0"
url_launcher_android:
dependency: transitive
description:
name: url_launcher_android
- sha256: "6fc2f56536ee873eeb867ad176ae15f304ccccc357848b351f6f0d8d4a40d193"
+ sha256: "8fc3bae0b68c02c47c5c86fa8bfa74471d42687b0eded01b78de87872db745e2"
url: "https://pub.dev"
source: hosted
- version: "6.3.14"
+ version: "6.3.12"
url_launcher_ios:
dependency: transitive
description:
name: url_launcher_ios
- sha256: "16a513b6c12bb419304e72ea0ae2ab4fed569920d1c7cb850263fe3acc824626"
+ sha256: e43b677296fadce447e987a2f519dcf5f6d1e527dc35d01ffab4fff5b8a7063e
url: "https://pub.dev"
source: hosted
- version: "6.3.2"
+ version: "6.3.1"
url_launcher_linux:
dependency: transitive
description:
name: url_launcher_linux
- sha256: "4e9ba368772369e3e08f231d2301b4ef72b9ff87c31192ef471b380ef29a4935"
+ sha256: e2b9622b4007f97f504cd64c0128309dfb978ae66adbe944125ed9e1750f06af
url: "https://pub.dev"
source: hosted
- version: "3.2.1"
+ version: "3.2.0"
url_launcher_macos:
dependency: transitive
description:
name: url_launcher_macos
- sha256: "17ba2000b847f334f16626a574c702b196723af2a289e7a93ffcb79acff855c2"
+ sha256: "769549c999acdb42b8bcfa7c43d72bf79a382ca7441ab18a808e101149daf672"
url: "https://pub.dev"
source: hosted
- version: "3.2.2"
+ version: "3.2.1"
url_launcher_platform_interface:
dependency: transitive
description:
@@ -2713,10 +2769,10 @@ packages:
dependency: transitive
description:
name: url_launcher_windows
- sha256: "44cf3aabcedde30f2dba119a9dea3b0f2672fbe6fa96e85536251d678216b3c4"
+ sha256: "49c10f879746271804767cb45551ec5592cdab00ee105c06dddde1a98f73b185"
url: "https://pub.dev"
source: hosted
- version: "3.1.3"
+ version: "3.1.2"
utility:
dependency: transitive
description:
@@ -2737,26 +2793,26 @@ packages:
dependency: transitive
description:
name: vector_graphics
- sha256: "27d5fefe86fb9aace4a9f8375b56b3c292b64d8c04510df230f849850d912cb7"
+ sha256: "32c3c684e02f9bc0afb0ae0aa653337a2fe022e8ab064bcd7ffda27a74e288e3"
url: "https://pub.dev"
source: hosted
- version: "1.1.15"
+ version: "1.1.11+1"
vector_graphics_codec:
dependency: transitive
description:
name: vector_graphics_codec
- sha256: "99fd9fbd34d9f9a32efd7b6a6aae14125d8237b10403b422a6a6dfeac2806146"
+ sha256: c86987475f162fadff579e7320c7ddda04cd2fdeffbe1129227a85d9ac9e03da
url: "https://pub.dev"
source: hosted
- version: "1.1.13"
+ version: "1.1.11+1"
vector_graphics_compiler:
dependency: transitive
description:
name: vector_graphics_compiler
- sha256: "1b4b9e706a10294258727674a340ae0d6e64a7231980f9f9a3d12e4b42407aad"
+ sha256: "12faff3f73b1741a36ca7e31b292ddeb629af819ca9efe9953b70bd63fc8cd81"
url: "https://pub.dev"
source: hosted
- version: "1.1.16"
+ version: "1.1.11+1"
vector_math:
dependency: transitive
description:
@@ -2787,18 +2843,18 @@ packages:
dependency: transitive
description:
name: video_player_android
- sha256: "391e092ba4abe2f93b3e625bd6b6a6ec7d7414279462c1c0ee42b5ab8d0a0898"
+ sha256: ae5287ca367e206eb74d7b3dc1ce0b8912ab9a3fc0597b6a101a0a5239f229d3
url: "https://pub.dev"
source: hosted
- version: "2.7.16"
+ version: "2.7.9"
video_player_avfoundation:
dependency: transitive
description:
name: video_player_avfoundation
- sha256: "33224c19775fd244be2d6e3dbd8e1826ab162877bd61123bf71890772119a2b7"
+ sha256: cd5ab8a8bc0eab65ab0cea40304097edc46da574c8c1ecdee96f28cd8ef3792f
url: "https://pub.dev"
source: hosted
- version: "2.6.5"
+ version: "2.6.2"
video_player_media_kit:
dependency: "direct main"
description:
@@ -2819,10 +2875,10 @@ packages:
dependency: transitive
description:
name: video_player_web
- sha256: "881b375a934d8ebf868c7fb1423b2bfaa393a0a265fa3f733079a86536064a10"
+ sha256: "6dcdd298136523eaf7dfc31abaf0dfba9aa8a8dbc96670e87e9d42b6f2caf774"
url: "https://pub.dev"
source: hosted
- version: "2.3.3"
+ version: "2.3.2"
video_thumbnail:
dependency: "direct main"
description:
@@ -2867,10 +2923,10 @@ packages:
dependency: transitive
description:
name: wakelock_plus_platform_interface
- sha256: "70e780bc99796e1db82fe764b1e7dcb89a86f1e5b3afb1db354de50f2e41eb7a"
+ sha256: "422d1cdbb448079a8a62a5a770b69baa489f8f7ca21aef47800c726d404f9d16"
url: "https://pub.dev"
source: hosted
- version: "1.2.2"
+ version: "1.2.1"
wallpaper_manager_flutter:
dependency: "direct main"
description:
@@ -2883,10 +2939,10 @@ packages:
dependency: "direct overridden"
description:
name: watcher
- sha256: "69da27e49efa56a15f8afe8f4438c4ec02eff0a117df1b22ea4aad194fe1c104"
+ sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8"
url: "https://pub.dev"
source: hosted
- version: "1.1.1"
+ version: "1.1.0"
web:
dependency: transitive
description:
@@ -2947,10 +3003,10 @@ packages:
dependency: "direct overridden"
description:
name: win32
- sha256: "154360849a56b7b67331c21f09a386562d88903f90a1099c5987afc1912e1f29"
+ sha256: "4d45dc9069dba4619dc0ebd93c7cec5e66d8482cb625a370ac806dcc8165f2ec"
url: "https://pub.dev"
source: hosted
- version: "5.10.0"
+ version: "5.5.5"
win32_registry:
dependency: transitive
description:
@@ -3003,10 +3059,10 @@ packages:
dependency: transitive
description:
name: yaml
- sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce
+ sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5"
url: "https://pub.dev"
source: hosted
- version: "3.1.3"
+ version: "3.1.2"
sdks:
dart: ">=3.5.0 <4.0.0"
flutter: ">=3.24.0"
diff --git a/mobile/pubspec.yaml b/mobile/pubspec.yaml
index a838e76747..cd577e5099 100644
--- a/mobile/pubspec.yaml
+++ b/mobile/pubspec.yaml
@@ -12,7 +12,7 @@ description: ente photos application
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
-version: 0.9.94+994
+version: 0.9.95+995
publish_to: none
environment:
@@ -42,7 +42,7 @@ dependencies:
dart_ui_isolate: ^1.1.1
defer_pointer: ^0.0.2
device_info_plus: ^9.0.3
- dio: ^4.0.6
+ dio: ^5.8.0+1
dots_indicator: ^2.0.0
dotted_border: ^2.1.0
dropdown_button2: ^2.0.0
@@ -130,6 +130,7 @@ dependencies:
git: "https://github.com/ente-io/motionphoto.git"
move_to_background: ^1.0.2
nanoid: ^1.0.0
+ native_dio_adapter: ^1.4.0
native_video_player:
git:
url: https://github.com/ashilkn/native_video_player.git
diff --git a/server/cmd/museum/main.go b/server/cmd/museum/main.go
index e1a3622011..9ddb958596 100644
--- a/server/cmd/museum/main.go
+++ b/server/cmd/museum/main.go
@@ -943,7 +943,7 @@ func setupAndStartCrons(userAuthRepo *repo.UserAuthRepository, publicCollectionR
}
})
- schedule(c, "@every 10m", func() {
+ schedule(c, "@every 8m", func() {
fileController.CleanupDeletedFiles()
})
schedule(c, "@every 101s", func() {
diff --git a/server/pkg/controller/file.go b/server/pkg/controller/file.go
index 7f871cc098..be9a553756 100644
--- a/server/pkg/controller/file.go
+++ b/server/pkg/controller/file.go
@@ -6,11 +6,13 @@ import (
"encoding/json"
"errors"
"fmt"
- "github.com/ente-io/museum/pkg/controller/discord"
- "github.com/ente-io/museum/pkg/utils/network"
"runtime/debug"
"strconv"
"strings"
+ "sync"
+
+ "github.com/ente-io/museum/pkg/controller/discord"
+ "github.com/ente-io/museum/pkg/utils/network"
"github.com/ente-io/museum/pkg/controller/email"
"github.com/ente-io/museum/pkg/controller/lock"
@@ -695,14 +697,38 @@ func (c *FileController) CleanupDeletedFiles() {
defer func() {
c.LockController.ReleaseLock(DeletedObjectQueueLock)
}()
- items, err := c.QueueRepo.GetItemsReadyForDeletion(repo.DeleteObjectQueue, 1500)
+ items, err := c.QueueRepo.GetItemsReadyForDeletion(repo.DeleteObjectQueue, 5000)
if err != nil {
log.WithError(err).Error("Failed to fetch items from queue")
return
}
- for _, i := range items {
- c.cleanupDeletedFile(i)
+ var wg sync.WaitGroup
+ itemChan := make(chan repo.QueueItem, len(items))
+
+ // Start worker goroutines
+ for w := 0; w < 4; w++ {
+ wg.Add(1)
+ go func() {
+ defer wg.Done()
+ for item := range itemChan {
+ func(item repo.QueueItem) {
+ defer func() {
+ if r := recover(); r != nil {
+ log.WithField("item", item.Item).Errorf("Recovered from panic: %v", r)
+ }
+ }()
+ c.cleanupDeletedFile(item)
+ }(item)
+ }
+ }()
+ }
+ // Send items to the channel
+ for _, item := range items {
+ itemChan <- item
}
+ close(itemChan)
+ // Wait for all workers to finish
+ wg.Wait()
}
func (c *FileController) GetTotalFileCount() (int64, error) {
diff --git a/web/.gitignore b/web/.gitignore
index 68554d3aef..c84e88f833 100644
--- a/web/.gitignore
+++ b/web/.gitignore
@@ -18,5 +18,6 @@ dist
# Next.js
.next/
+.next-desktop/
out/
next-env.d.ts
diff --git a/web/apps/accounts/src/pages/_app.tsx b/web/apps/accounts/src/pages/_app.tsx
index 4d099c0c67..e510a5d75d 100644
--- a/web/apps/accounts/src/pages/_app.tsx
+++ b/web/apps/accounts/src/pages/_app.tsx
@@ -1,6 +1,6 @@
import { staticAppTitle } from "@/base/app";
import { CustomHead } from "@/base/components/Head";
-import { LoadingOverlay } from "@/base/components/loaders";
+import { LoadingIndicator } from "@/base/components/loaders";
import { AttributedMiniDialog } from "@/base/components/MiniDialog";
import { useAttributedMiniDialog } from "@/base/components/utils/dialog";
import { useSetupI18n, useSetupLogs } from "@/base/components/utils/hooks-app";
@@ -32,7 +32,7 @@ const App: React.FC<AppProps> = ({ Component, pageProps }) => {
<AttributedMiniDialog {...miniDialogProps} />
<AppContext.Provider value={appContext}>
- {!isI18nReady && <LoadingOverlay />}
+ {!isI18nReady && <LoadingIndicator />}
{isI18nReady && <Component {...pageProps} />}
</AppContext.Provider>
</ThemeProvider>
diff --git a/web/apps/accounts/src/pages/passkeys/index.tsx b/web/apps/accounts/src/pages/passkeys/index.tsx
index d5927f30cd..597c319527 100644
--- a/web/apps/accounts/src/pages/passkeys/index.tsx
+++ b/web/apps/accounts/src/pages/passkeys/index.tsx
@@ -1,5 +1,6 @@
+import { EnteLogo } from "@/base/components/EnteLogo";
import { SidebarDrawer } from "@/base/components/mui/SidebarDrawer";
-import { AppNavbarNormalFlow } from "@/base/components/Navbar";
+import { NavbarBase } from "@/base/components/Navbar";
import {
RowButton,
RowButtonDivider,
@@ -116,7 +117,9 @@ const Page: React.FC = () => {
return (
<Stack sx={{ minHeight: "100svh" }}>
- <AppNavbarNormalFlow />
+ <NavbarBase>
+ <EnteLogo />
+ </NavbarBase>
<Stack
sx={{ alignSelf: "center", m: 3, maxWidth: "375px", gap: 3 }}
>
diff --git a/web/apps/auth/src/pages/_app.tsx b/web/apps/auth/src/pages/_app.tsx
index a090d47d79..e3c92a117a 100644
--- a/web/apps/auth/src/pages/_app.tsx
+++ b/web/apps/auth/src/pages/_app.tsx
@@ -2,7 +2,7 @@ import { accountLogout } from "@/accounts/services/logout";
import { clientPackageName, staticAppTitle } from "@/base/app";
import { CustomHead } from "@/base/components/Head";
import {
- LoadingOverlay,
+ LoadingIndicator,
TranslucentLoadingOverlay,
} from "@/base/components/loaders";
import { AttributedMiniDialog } from "@/base/components/MiniDialog";
@@ -68,7 +68,7 @@ const App: React.FC<AppProps> = ({ Component, pageProps }) => {
<AppContext.Provider value={appContext}>
{!isI18nReady ? (
- <LoadingOverlay />
+ <LoadingIndicator />
) : (
<>
{isChangingRoute && <TranslucentLoadingOverlay />}
diff --git a/web/apps/auth/src/pages/auth.tsx b/web/apps/auth/src/pages/auth.tsx
index 1562bae3e8..cdf2195439 100644
--- a/web/apps/auth/src/pages/auth.tsx
+++ b/web/apps/auth/src/pages/auth.tsx
@@ -134,11 +134,19 @@ const AuthNavbar: React.FC = () => {
const { logout } = useAppContext();
return (
- <NavbarBase>
- <Stack direction="row" sx={{ flex: 1, justifyContent: "center" }}>
- <EnteLogo />
- </Stack>
- <Stack direction="row" sx={{ position: "absolute", right: "24px" }}>
+ <NavbarBase
+ sx={{
+ position: "sticky",
+ top: 0,
+ left: 0,
+ mb: 2,
+ zIndex: 1,
+ backgroundColor: "backdrop.muted",
+ backdropFilter: "blur(7px)",
+ }}
+ >
+ <EnteLogo />
+ <Box sx={{ position: "absolute", right: "24px" }}>
<OverflowMenu ariaID="auth-options">
<OverflowMenuOption
color="critical"
@@ -148,7 +156,7 @@ const AuthNavbar: React.FC = () => {
{t("logout")}
</OverflowMenuOption>
</OverflowMenu>
- </Stack>
+ </Box>
</NavbarBase>
);
};
diff --git a/web/apps/auth/src/pages/share.tsx b/web/apps/auth/src/pages/share.tsx
index 5f542394ce..e2bba39bfd 100644
--- a/web/apps/auth/src/pages/share.tsx
+++ b/web/apps/auth/src/pages/share.tsx
@@ -147,7 +147,7 @@ const Page: React.FC = () => {
backgroundColor: "#1c1c1e",
}),
borderRadius: "10px",
- paddingBottom: "20px",
+ pb: "20px",
position: "relative",
})}
>
diff --git a/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx b/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx
index 4f74d5699d..6618280209 100644
--- a/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx
+++ b/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx
@@ -4,7 +4,7 @@ import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";
import log from "@/base/log";
import type { Collection } from "@/media/collection";
import { useSettingsSnapshot } from "@/new/photos/components/utils/use-snapshot";
-import { aboveGalleryContentZ } from "@/new/photos/components/utils/z-index";
+import { aboveFileViewerContentZ } from "@/new/photos/components/utils/z-index";
import {
publishCastPayload,
revokeAllCastTokens,
@@ -134,7 +134,7 @@ export const AlbumCastDialog: React.FC<AlbumCastDialogProps> = ({
open={open}
onClose={onClose}
title={t("cast_album_to_tv")}
- sx={{ zIndex: aboveGalleryContentZ }}
+ sx={{ zIndex: aboveFileViewerContentZ }}
>
{view == "choose" && (
<Stack sx={{ py: 1, gap: 4 }}>
diff --git a/web/apps/photos/src/components/Collections/CollectionHeader.tsx b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
index 0b2bc87a06..86f3c61070 100644
--- a/web/apps/photos/src/components/Collections/CollectionHeader.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
@@ -1,5 +1,5 @@
import { assertionFailed } from "@/base/assert";
-import { SpaceBetweenFlex } from "@/base/components/containers";
+import { SpacedRow } from "@/base/components/containers";
import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";
import {
OverflowMenu,
@@ -103,14 +103,14 @@ export const CollectionHeader: React.FC<CollectionHeaderProps> = (props) => {
return (
<GalleryItemsHeaderAdapter>
- <SpaceBetweenFlex>
+ <SpacedRow>
<GalleryItemsSummary
name={name}
fileCount={fileCount}
endIcon={<EndIcon type={type} />}
/>
{shouldShowOptions(type) && <CollectionOptions {...props} />}
- </SpaceBetweenFlex>
+ </SpacedRow>
</GalleryItemsHeaderAdapter>
);
};
diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsx
index 75bff3a74e..69c0518212 100644
--- a/web/apps/photos/src/components/Collections/CollectionShare.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx
@@ -287,7 +287,7 @@ const EnablePublicShareOptions: React.FC<EnablePublicShareOptionsProps> = ({
startIcon={<LinkIcon />}
onClick={createSharableURLHelper}
/>
- <RowButtonDivider hasIcon />
+ <RowButtonDivider />
<RowButton
label={t("collect_photos")}
startIcon={<DownloadSharpIcon />}
@@ -382,7 +382,7 @@ const EmailShare: React.FC<EmailShareProps> = ({ collection, onRootClose }) => {
endIcon={<ChevronRightIcon />}
onClick={openManageEmailShare}
/>
- <RowButtonDivider hasIcon />
+ <RowButtonDivider />
</>
) : null}
<RowButton
@@ -390,7 +390,7 @@ const EmailShare: React.FC<EmailShareProps> = ({ collection, onRootClose }) => {
onClick={openAddViewer}
label={t("add_viewers")}
/>
- <RowButtonDivider hasIcon />
+ <RowButtonDivider />
<RowButton
startIcon={<AddIcon />}
onClick={openAddCollab}
@@ -923,7 +923,7 @@ const ManageEmailShare: React.FC<ManageEmailShareProps> = ({
startIcon={<Avatar email={item} />}
endIcon={<ChevronRightIcon />}
/>
- <RowButtonDivider hasIcon />
+ <RowButtonDivider />
</React.Fragment>
))}
@@ -954,7 +954,7 @@ const ManageEmailShare: React.FC<ManageEmailShareProps> = ({
startIcon={<Avatar email={item} />}
endIcon={<ChevronRightIcon />}
/>
- <RowButtonDivider hasIcon />
+ <RowButtonDivider />
</React.Fragment>
))}
<RowButton
@@ -1124,7 +1124,7 @@ const ManageParticipant: React.FC<ManageParticipantProps> = ({
"COLLABORATOR" && <DoneIcon />
}
/>
- <RowButtonDivider hasIcon />
+ <RowButtonDivider />
<RowButton
fontWeight="regular"
@@ -1281,8 +1281,7 @@ const ManagePublicShare: React.FC<ManagePublicShareProps> = ({
label={t("copy_link")}
/>
)}
-
- <RowButtonDivider hasIcon={true} />
+ <RowButtonDivider />
<RowButton
startIcon={<LinkIcon />}
endIcon={<ChevronRightIcon />}
diff --git a/web/apps/photos/src/components/FilesDownloadProgress.tsx b/web/apps/photos/src/components/FilesDownloadProgress.tsx
index ae53eee4f8..568741c8bc 100644
--- a/web/apps/photos/src/components/FilesDownloadProgress.tsx
+++ b/web/apps/photos/src/components/FilesDownloadProgress.tsx
@@ -1,5 +1,5 @@
import { Notification } from "@/new/photos/components/Notification";
-import { aboveGalleryContentZ } from "@/new/photos/components/utils/z-index";
+import { aboveFileViewerContentZ } from "@/new/photos/components/utils/z-index";
import { useAppContext } from "@/new/photos/types/context";
import { t } from "i18next";
import { GalleryContext } from "pages/gallery";
@@ -120,7 +120,7 @@ export const FilesDownloadProgress: React.FC<FilesDownloadProgressProps> = ({
horizontal="left"
sx={{
"&&": { bottom: `${index * 80 + 20}px` },
- zIndex: aboveGalleryContentZ,
+ zIndex: aboveFileViewerContentZ,
}}
open={isFilesDownloadStarted(attributes)}
onClose={handleClose(attributes)}
diff --git a/web/apps/photos/src/components/FixCreationTime.tsx b/web/apps/photos/src/components/FixCreationTime.tsx
index dde6106276..878a9d1c60 100644
--- a/web/apps/photos/src/components/FixCreationTime.tsx
+++ b/web/apps/photos/src/components/FixCreationTime.tsx
@@ -82,11 +82,11 @@ export const FixCreationTime: React.FC<FixCreationTimeProps> = ({
onClose();
}}
>
- <DialogTitle sx={{ marginBlockStart: "4px" }}>{title}</DialogTitle>
+ <DialogTitle sx={{ mt: "4px" }}>{title}</DialogTitle>
<DialogContent
- style={{
+ sx={{
minWidth: "310px",
- paddingBlockStart: "6px",
+ pt: "6px",
display: "flex",
flexDirection: "column",
...(step == "running" ? { alignItems: "center" } : {}),
@@ -181,7 +181,7 @@ const OptionsForm: React.FC<OptionsFormProps> = ({
name={"option"}
value={values.option}
onChange={handleChange}
- sx={{ paddingBlockStart: 1 }}
+ sx={{ pt: 1 }}
>
<FormControlLabel
value={"date-time-original"}
diff --git a/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx b/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx
index eed436d312..d79f55eec1 100644
--- a/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx
+++ b/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx
@@ -1,4 +1,3 @@
-import { CopyButton } from "@/base/components/CopyButton";
import { LinkButtonUndecorated } from "@/base/components/LinkButton";
import { TitledMiniDialog } from "@/base/components/MiniDialog";
import { type ButtonishProps } from "@/base/components/mui";
@@ -20,6 +19,7 @@ import {
type ParsedMetadataDate,
} from "@/media/file-metadata";
import { FileType } from "@/media/file-type";
+import { CopyButton } from "@/new/photos/components/FileInfo";
import { ChipButton } from "@/new/photos/components/mui/ChipButton";
import { FilePeopleList } from "@/new/photos/components/PeopleList";
import { PhotoDateTimePicker } from "@/new/photos/components/PhotoDateTimePicker";
@@ -29,7 +29,7 @@ import {
} from "@/new/photos/components/utils/dialog";
import { useSettingsSnapshot } from "@/new/photos/components/utils/use-snapshot";
import {
- aboveGalleryContentZ,
+ aboveFileViewerContentZ,
fileInfoDrawerZ,
} from "@/new/photos/components/utils/z-index";
import { tagNumericValue, type RawExifTags } from "@/new/photos/services/exif";
@@ -259,9 +259,8 @@ export const FileInfo: React.FC<FileInfoProps> = ({
}
trailingButton={
<CopyButton
- code={openStreetMapLink(location)}
- color="secondary"
size="medium"
+ text={openStreetMapLink(location)}
/>
}
/>
@@ -816,7 +815,7 @@ const FileNameEditDialog = ({
};
return (
<TitledMiniDialog
- sx={{ zIndex: aboveGalleryContentZ }}
+ sx={{ zIndex: aboveFileViewerContentZ }}
open={isInEditMode}
onClose={closeEditMode}
title={t("rename_file")}
@@ -976,7 +975,7 @@ const RawExif: React.FC<RawExifProps> = ({
caption={fileName}
onRootClose={handleRootClose}
actionButton={
- <CopyButton code={JSON.stringify(tags)} color="secondary" />
+ <CopyButton size="small" text={JSON.stringify(tags)} />
}
/>
<Stack sx={{ gap: 2, py: 3, px: 1 }}>
diff --git a/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx b/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx
index 656eb9a7ac..4ee4ab91f2 100644
--- a/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx
+++ b/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx
@@ -12,7 +12,7 @@ import log from "@/base/log";
import { downloadAndRevokeObjectURL } from "@/base/utils/web";
import { downloadManager } from "@/gallery/services/download";
import { EnteFile } from "@/media/file";
-import { aboveGalleryContentZ } from "@/new/photos/components/utils/z-index";
+import { aboveFileViewerContentZ } from "@/new/photos/components/utils/z-index";
import { getLocalCollections } from "@/new/photos/services/collections";
import { AppContext } from "@/new/photos/types/context";
import { CenteredFlex } from "@ente/shared/components/Container";
@@ -525,7 +525,7 @@ export const ImageEditorOverlay: React.FC<ImageEditorOverlayProps> = (
<Backdrop
sx={{
backgroundColor: "background.default" /* Opaque */,
- zIndex: aboveGalleryContentZ,
+ zIndex: aboveFileViewerContentZ,
width: "100%",
}}
open
@@ -990,7 +990,6 @@ const FreehandCropRegion = forwardRef(
gridTemplateColumns: "1fr 1fr 1fr",
gridTemplateRows: "1fr 1fr 1fr",
gap: "0px",
- zIndex: 30, // make sure the crop box is above the overlays
}}
ref={ref}
>
diff --git a/web/apps/photos/src/components/PhotoViewer/index.tsx b/web/apps/photos/src/components/PhotoViewer/index.tsx
index 5a95b8337e..16d04eb195 100644
--- a/web/apps/photos/src/components/PhotoViewer/index.tsx
+++ b/web/apps/photos/src/components/PhotoViewer/index.tsx
@@ -13,11 +13,10 @@ import { downloadManager } from "@/gallery/services/download";
import { fileLogID, type EnteFile } from "@/media/file";
import { FileType } from "@/media/file-type";
import { isHEICExtension, needsJPEGConversion } from "@/media/formats";
-import { ConfirmDeleteFileDialog } from "@/new/photos/components/PhotoViewer";
+import { ConfirmDeleteFileDialog } from "@/new/photos/components/FileViewer";
import { moveToTrash } from "@/new/photos/services/collection";
import { extractRawExif, parseExif } from "@/new/photos/services/exif";
import { AppContext } from "@/new/photos/types/context";
-import { FlexWrapper } from "@ente/shared/components/Container";
import AlbumOutlinedIcon from "@mui/icons-material/AlbumOutlined";
import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";
import ChevronRightIcon from "@mui/icons-material/ChevronRight";
@@ -39,6 +38,7 @@ import {
CircularProgress,
Paper,
Snackbar,
+ Stack,
styled,
Typography,
type ButtonProps,
@@ -744,16 +744,26 @@ export const PhotoViewer: React.FC<PhotoViewerProps> = ({
{livePhotoBtnOptions.visible && (
<LivePhotoBtnContainer>
<Button
- color="secondary"
+ variant="text"
onClick={livePhotoBtnOptions.click}
onMouseEnter={livePhotoBtnOptions.show}
onMouseLeave={livePhotoBtnOptions.hide}
disabled={livePhotoBtnOptions.loading}
+ sx={{
+ color: "white",
+ "&.Mui-disabled": {
+ color: "white",
+ opacity: 0.4,
+ },
+ }}
>
- <FlexWrapper gap={"4px"}>
- {<AlbumOutlinedIcon />}{" "}
+ <Stack
+ direction="row"
+ sx={{ alignItems: "center", gap: "6px" }}
+ >
+ <AlbumOutlinedIcon />
{t("live_photo_indicator")}
- </FlexWrapper>
+ </Stack>
</Button>
</LivePhotoBtnContainer>
)}
@@ -772,7 +782,8 @@ export const PhotoViewer: React.FC<PhotoViewerProps> = ({
position: "absolute",
top: "10vh",
right: "2vh",
- zIndex: 10,
+ // Position atop the viewer contents
+ zIndex: 1,
}}
>
{fileDownloadProgress.has(
@@ -794,7 +805,17 @@ export const PhotoViewer: React.FC<PhotoViewerProps> = ({
<div className="pswp__item" />
</div>
<div className="pswp__ui pswp__ui--hidden">
- <div className="pswp__top-bar">
+ <div
+ className="pswp__top-bar"
+ style={
+ isDesktop
+ ? ({
+ "--ente-pswp-top-bar-top":
+ "env(titlebar-area-height, 30px)",
+ } as React.CSSProperties)
+ : {}
+ }
+ >
<div className="pswp__counter" />
<button
@@ -1063,12 +1084,14 @@ const ConversionFailedNotification: React.FC<
);
};
-const LivePhotoBtnContainer = styled(Paper)`
+const LivePhotoBtnContainer = styled("div")`
border-radius: 4px;
position: absolute;
bottom: 10vh;
right: 6vh;
- z-index: 10;
+ background-color: rgba(255 255 255 / 0.15);
+ backdrop-filter: blur(3px);
+ z-index: 1;
`;
export async function playVideo(livePhotoVideo, livePhotoImage) {
diff --git a/web/apps/photos/src/components/Sidebar.tsx b/web/apps/photos/src/components/Sidebar.tsx
new file mode 100644
index 0000000000..583a9b1443
--- /dev/null
+++ b/web/apps/photos/src/components/Sidebar.tsx
@@ -0,0 +1,1137 @@
+import { RecoveryKey } from "@/accounts/components/RecoveryKey";
+import { openAccountsManagePasskeysPage } from "@/accounts/services/passkey";
+import { isDesktop } from "@/base/app";
+import { EnteLogo } from "@/base/components/EnteLogo";
+import { LinkButton } from "@/base/components/LinkButton";
+import {
+ RowButton,
+ RowButtonDivider,
+ RowButtonGroup,
+ RowButtonGroupHint,
+ RowSwitch,
+} from "@/base/components/RowButton";
+import { SpacedRow } from "@/base/components/containers";
+import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";
+import {
+ NestedSidebarDrawer,
+ SidebarDrawer,
+ SidebarDrawerTitlebar,
+ type NestedSidebarDrawerVisibilityProps,
+} from "@/base/components/mui/SidebarDrawer";
+import { useIsSmallWidth } from "@/base/components/utils/hooks";
+import { useModalVisibility } from "@/base/components/utils/modal";
+import { isDevBuild } from "@/base/env";
+import {
+ getLocaleInUse,
+ setLocaleInUse,
+ supportedLocales,
+ ut,
+ type SupportedLocale,
+} from "@/base/i18n";
+import log from "@/base/log";
+import { savedLogs } from "@/base/log-web";
+import { customAPIHost } from "@/base/origins";
+import { downloadString } from "@/base/utils/web";
+import { DropdownInput } from "@/new/photos/components/DropdownInput";
+import { DialogCloseIconButton } from "@/new/photos/components/mui/Dialog";
+import { MLSettings } from "@/new/photos/components/sidebar/MLSettings";
+import { TwoFactorSettings } from "@/new/photos/components/sidebar/TwoFactorSettings";
+import {
+ confirmDisableMapsDialogAttributes,
+ confirmEnableMapsDialogAttributes,
+} from "@/new/photos/components/utils/dialog";
+import { downloadAppDialogAttributes } from "@/new/photos/components/utils/download";
+import {
+ useSettingsSnapshot,
+ useUserDetailsSnapshot,
+} from "@/new/photos/components/utils/use-snapshot";
+import {
+ ARCHIVE_SECTION,
+ DUMMY_UNCATEGORIZED_COLLECTION,
+ TRASH_SECTION,
+} from "@/new/photos/services/collection";
+import type { CollectionSummaries } from "@/new/photos/services/collection/ui";
+import { isMLSupported } from "@/new/photos/services/ml";
+import {
+ isInternalUser,
+ syncSettings,
+ updateCFProxyDisabledPreference,
+ updateMapEnabled,
+} from "@/new/photos/services/settings";
+import {
+ familyAdminEmail,
+ hasExceededStorageQuota,
+ isFamilyAdmin,
+ isPartOfFamily,
+ isSubscriptionActive,
+ isSubscriptionActivePaid,
+ isSubscriptionCancelled,
+ isSubscriptionFree,
+ isSubscriptionPastDue,
+ isSubscriptionStripe,
+ leaveFamily,
+ redirectToCustomerPortal,
+ syncUserDetails,
+ userDetailsAddOnBonuses,
+ type UserDetails,
+} from "@/new/photos/services/user-details";
+import { AppContext, useAppContext } from "@/new/photos/types/context";
+import { initiateEmail, openURL } from "@/new/photos/utils/web";
+import {
+ FlexWrapper,
+ VerticallyCentered,
+} from "@ente/shared/components/Container";
+import ArchiveOutlinedIcon from "@mui/icons-material/ArchiveOutlined";
+import CategoryIcon from "@mui/icons-material/Category";
+import ChevronRightIcon from "@mui/icons-material/ChevronRight";
+import CloseIcon from "@mui/icons-material/Close";
+import DeleteOutlineIcon from "@mui/icons-material/DeleteOutline";
+import HealthAndSafetyIcon from "@mui/icons-material/HealthAndSafety";
+import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined";
+import LockOutlinedIcon from "@mui/icons-material/LockOutlined";
+import NorthEastIcon from "@mui/icons-material/NorthEast";
+import VisibilityOffIcon from "@mui/icons-material/VisibilityOff";
+import {
+ Box,
+ Button,
+ Dialog,
+ DialogContent,
+ Divider,
+ IconButton,
+ Skeleton,
+ Stack,
+ styled,
+ Tooltip,
+ useColorScheme,
+} from "@mui/material";
+import Typography from "@mui/material/Typography";
+import DeleteAccountModal from "components/DeleteAccountModal";
+import { WatchFolder } from "components/WatchFolder";
+import { t } from "i18next";
+import { useRouter } from "next/router";
+import { GalleryContext } from "pages/gallery";
+import React, {
+ MouseEventHandler,
+ useCallback,
+ useContext,
+ useEffect,
+ useMemo,
+ useState,
+} from "react";
+import { Trans } from "react-i18next";
+import { getUncategorizedCollection } from "services/collectionService";
+import exportService from "services/export";
+import { testUpload } from "../../tests/upload.test";
+import { SubscriptionCard } from "./SubscriptionCard";
+
+interface SidebarProps {
+ collectionSummaries: CollectionSummaries;
+ sidebarView: boolean;
+ closeSidebar: () => void;
+}
+
+export const Sidebar: React.FC<SidebarProps> = ({
+ collectionSummaries,
+ sidebarView,
+ closeSidebar,
+}) => (
+ <RootSidebarDrawer open={sidebarView} onClose={closeSidebar}>
+ <HeaderSection closeSidebar={closeSidebar} />
+ <UserDetailsSection sidebarView={sidebarView} />
+ <Stack sx={{ gap: 0.5, mb: 3 }}>
+ <ShortcutSection
+ closeSidebar={closeSidebar}
+ collectionSummaries={collectionSummaries}
+ />
+ <UtilitySection closeSidebar={closeSidebar} />
+ <HelpSection closeSidebar={closeSidebar} />
+ <Divider sx={{ my: "2px" }} />
+ <ExitSection />
+ <InfoSection />
+ </Stack>
+ </RootSidebarDrawer>
+);
+
+const RootSidebarDrawer = styled(SidebarDrawer)(({ theme }) => ({
+ "& .MuiPaper-root": {
+ padding: theme.spacing(1.5),
+ },
+}));
+
+interface HeaderSectionProps {
+ closeSidebar: () => void;
+}
+
+const HeaderSection: React.FC<HeaderSectionProps> = ({ closeSidebar }) => {
+ return (
+ <SpacedRow sx={{ my: "4px 4px", pl: "12px" }}>
+ <EnteLogo />
+ <IconButton
+ aria-label={t("close")}
+ onClick={closeSidebar}
+ color="secondary"
+ >
+ <CloseIcon fontSize="small" />
+ </IconButton>
+ </SpacedRow>
+ );
+};
+
+interface UserDetailsSectionProps {
+ sidebarView: boolean;
+}
+
+const UserDetailsSection: React.FC<UserDetailsSectionProps> = ({
+ sidebarView,
+}) => {
+ const galleryContext = useContext(GalleryContext);
+ const userDetails = useUserDetailsSnapshot();
+ const [memberSubscriptionManageView, setMemberSubscriptionManageView] =
+ useState(false);
+
+ const openMemberSubscriptionManage = () =>
+ setMemberSubscriptionManageView(true);
+ const closeMemberSubscriptionManage = () =>
+ setMemberSubscriptionManageView(false);
+
+ useEffect(() => {
+ if (sidebarView) void syncUserDetails();
+ }, [sidebarView]);
+
+ const isNonAdminFamilyMember = useMemo(
+ () =>
+ userDetails &&
+ isPartOfFamily(userDetails) &&
+ !isFamilyAdmin(userDetails),
+ [userDetails],
+ );
+
+ const handleSubscriptionCardClick = () => {
+ if (isNonAdminFamilyMember) {
+ openMemberSubscriptionManage();
+ } else {
+ if (
+ userDetails &&
+ isSubscriptionStripe(userDetails.subscription) &&
+ isSubscriptionPastDue(userDetails.subscription)
+ ) {
+ redirectToCustomerPortal();
+ } else {
+ galleryContext.showPlanSelectorModal();
+ }
+ }
+ };
+
+ return (
+ <>
+ <Box sx={{ px: 0.5, mt: 2, pb: 1.5, mb: 1 }}>
+ <Typography sx={{ px: 1, pb: 1, color: "text.muted" }}>
+ {userDetails ? (
+ userDetails.email
+ ) : (
+ <Skeleton animation="wave" />
+ )}
+ </Typography>
+
+ <SubscriptionCard
+ userDetails={userDetails}
+ onClick={handleSubscriptionCardClick}
+ />
+ {userDetails && (
+ <SubscriptionStatus userDetails={userDetails} />
+ )}
+ </Box>
+ {isNonAdminFamilyMember && (
+ <MemberSubscriptionManage
+ userDetails={userDetails}
+ open={memberSubscriptionManageView}
+ onClose={closeMemberSubscriptionManage}
+ />
+ )}
+ </>
+ );
+};
+
+interface SubscriptionStatusProps {
+ userDetails: UserDetails;
+}
+
+const SubscriptionStatus: React.FC<SubscriptionStatusProps> = ({
+ userDetails,
+}) => {
+ const { showPlanSelectorModal } = useContext(GalleryContext);
+
+ const hasAMessage = useMemo(() => {
+ if (isPartOfFamily(userDetails) && !isFamilyAdmin(userDetails)) {
+ return false;
+ }
+ if (
+ isSubscriptionActivePaid(userDetails.subscription) &&
+ !isSubscriptionCancelled(userDetails.subscription)
+ ) {
+ return false;
+ }
+ return true;
+ }, [userDetails]);
+
+ const handleClick = useMemo(() => {
+ const eventHandler: MouseEventHandler<HTMLSpanElement> = (e) => {
+ e.stopPropagation();
+
+ if (isSubscriptionActive(userDetails.subscription)) {
+ if (hasExceededStorageQuota(userDetails)) {
+ showPlanSelectorModal();
+ }
+ } else {
+ if (
+ isSubscriptionStripe(userDetails.subscription) &&
+ isSubscriptionPastDue(userDetails.subscription)
+ ) {
+ redirectToCustomerPortal();
+ } else {
+ showPlanSelectorModal();
+ }
+ }
+ };
+ return eventHandler;
+ }, [userDetails]);
+
+ if (!hasAMessage) {
+ return <></>;
+ }
+
+ const hasAddOnBonus = userDetailsAddOnBonuses(userDetails).length > 0;
+
+ let message: React.ReactNode;
+ if (!hasAddOnBonus) {
+ if (isSubscriptionActive(userDetails.subscription)) {
+ if (isSubscriptionFree(userDetails.subscription)) {
+ message = t("subscription_info_free");
+ } else if (isSubscriptionCancelled(userDetails.subscription)) {
+ message = t("subscription_info_renewal_cancelled", {
+ date: userDetails.subscription?.expiryTime,
+ });
+ }
+ } else {
+ message = (
+ <Trans
+ i18nKey={"subscription_info_expired"}
+ components={{
+ a: <LinkButton onClick={handleClick} />,
+ }}
+ />
+ );
+ }
+ }
+
+ if (!message && hasExceededStorageQuota(userDetails)) {
+ message = (
+ <Trans
+ i18nKey={"subscription_info_storage_quota_exceeded"}
+ components={{
+ a: <LinkButton onClick={handleClick} />,
+ }}
+ />
+ );
+ }
+
+ if (!message) return <></>;
+
+ return (
+ <Box sx={{ px: 1, pt: 0.5 }}>
+ <Typography
+ variant="small"
+ onClick={handleClick && handleClick}
+ sx={{
+ color: "text.muted",
+ cursor: handleClick && "pointer",
+ }}
+ >
+ {message}
+ </Typography>
+ </Box>
+ );
+};
+
+function MemberSubscriptionManage({ open, userDetails, onClose }) {
+ const { showMiniDialog } = useAppContext();
+ const fullScreen = useIsSmallWidth();
+
+ const confirmLeaveFamily = () =>
+ showMiniDialog({
+ title: t("leave_family_plan"),
+ message: t("leave_family_plan_confirm"),
+ continue: {
+ text: t("leave"),
+ color: "critical",
+ action: leaveFamily,
+ },
+ });
+
+ if (!userDetails) {
+ return <></>;
+ }
+
+ return (
+ <Dialog {...{ open, onClose, fullScreen }} maxWidth="xs" fullWidth>
+ <SpacedRow sx={{ p: "20px 8px 12px 16px" }}>
+ <Stack>
+ <Typography variant="h3">{t("subscription")}</Typography>
+ <Typography sx={{ color: "text.muted" }}>
+ {t("family_plan")}
+ </Typography>
+ </Stack>
+ <DialogCloseIconButton {...{ onClose }} />
+ </SpacedRow>
+ <DialogContent>
+ <VerticallyCentered>
+ <Box sx={{ mb: 4 }}>
+ <Typography sx={{ color: "text.muted" }}>
+ {t("subscription_info_family")}
+ </Typography>
+ <Typography>
+ {familyAdminEmail(userDetails) ?? ""}
+ </Typography>
+ </Box>
+
+ <img
+ height={256}
+ src="/images/family-plan/1x.png"
+ srcSet="/images/family-plan/2x.png 2x, /images/family-plan/3x.png 3x"
+ />
+ <FlexWrapper px={2}>
+ <Button
+ fullWidth
+ variant="outlined"
+ color="critical"
+ onClick={confirmLeaveFamily}
+ >
+ {t("leave_family_plan")}
+ </Button>
+ </FlexWrapper>
+ </VerticallyCentered>
+ </DialogContent>
+ </Dialog>
+ );
+}
+
+interface ShortcutSectionProps {
+ closeSidebar: () => void;
+ collectionSummaries: CollectionSummaries;
+}
+
+const ShortcutSection: React.FC<ShortcutSectionProps> = ({
+ closeSidebar,
+ collectionSummaries,
+}) => {
+ const galleryContext = useContext(GalleryContext);
+ const [uncategorizedCollectionId, setUncategorizedCollectionID] =
+ useState<number>();
+
+ useEffect(() => {
+ const main = async () => {
+ const unCategorizedCollection = await getUncategorizedCollection();
+ if (unCategorizedCollection) {
+ setUncategorizedCollectionID(unCategorizedCollection.id);
+ } else {
+ setUncategorizedCollectionID(DUMMY_UNCATEGORIZED_COLLECTION);
+ }
+ };
+ main();
+ }, []);
+
+ const openUncategorizedSection = () => {
+ galleryContext.setActiveCollectionID(uncategorizedCollectionId);
+ closeSidebar();
+ };
+
+ const openTrashSection = () => {
+ galleryContext.setActiveCollectionID(TRASH_SECTION);
+ closeSidebar();
+ };
+
+ const openArchiveSection = () => {
+ galleryContext.setActiveCollectionID(ARCHIVE_SECTION);
+ closeSidebar();
+ };
+
+ const openHiddenSection = () => {
+ galleryContext.openHiddenSection(() => {
+ closeSidebar();
+ });
+ };
+
+ return (
+ <>
+ <RowButton
+ startIcon={<CategoryIcon />}
+ label={t("section_uncategorized")}
+ caption={collectionSummaries
+ .get(uncategorizedCollectionId)
+ ?.fileCount.toString()}
+ onClick={openUncategorizedSection}
+ />
+ <RowButton
+ startIcon={<ArchiveOutlinedIcon />}
+ label={t("section_archive")}
+ caption={collectionSummaries
+ .get(ARCHIVE_SECTION)
+ ?.fileCount.toString()}
+ onClick={openArchiveSection}
+ />
+ <RowButton
+ startIcon={<VisibilityOffIcon />}
+ label={t("section_hidden")}
+ caption={
+ <LockOutlinedIcon
+ sx={{
+ verticalAlign: "middle",
+ fontSize: "19px !important",
+ }}
+ />
+ }
+ onClick={openHiddenSection}
+ />
+ <RowButton
+ startIcon={<DeleteOutlineIcon />}
+ label={t("section_trash")}
+ caption={collectionSummaries
+ .get(TRASH_SECTION)
+ ?.fileCount.toString()}
+ onClick={openTrashSection}
+ />
+ </>
+ );
+};
+
+const UtilitySection: React.FC<Pick<SidebarProps, "closeSidebar">> = ({
+ closeSidebar,
+}) => {
+ const router = useRouter();
+ const { watchFolderView, setWatchFolderView } = useAppContext();
+
+ const { show: showAccount, props: accountVisibilityProps } =
+ useModalVisibility();
+ const { show: showPreferences, props: preferencesVisibilityProps } =
+ useModalVisibility();
+
+ const showWatchFolder = () => setWatchFolderView(true);
+ const handleCloseWatchFolder = () => setWatchFolderView(false);
+
+ const handleDeduplicate = () => router.push("/duplicates");
+
+ return (
+ <>
+ <RowButton
+ variant="secondary"
+ label={t("account")}
+ onClick={showAccount}
+ />
+ {isDesktop && (
+ <RowButton
+ variant="secondary"
+ label={t("watch_folders")}
+ onClick={showWatchFolder}
+ />
+ )}
+ <RowButton
+ variant="secondary"
+ label={t("deduplicate_files")}
+ onClick={handleDeduplicate}
+ />
+ <RowButton
+ variant="secondary"
+ label={t("preferences")}
+ onClick={showPreferences}
+ />
+ {isDesktop && (
+ <WatchFolder
+ open={watchFolderView}
+ onClose={handleCloseWatchFolder}
+ />
+ )}
+ <Account {...accountVisibilityProps} onRootClose={closeSidebar} />
+ <Preferences
+ {...preferencesVisibilityProps}
+ onRootClose={closeSidebar}
+ />
+ </>
+ );
+};
+
+const HelpSection: React.FC<Pick<SidebarProps, "closeSidebar">> = ({
+ closeSidebar,
+}) => {
+ const { showMiniDialog } = useContext(AppContext);
+ const { openExportModal } = useContext(GalleryContext);
+
+ const { show: showHelp, props: helpVisibilityProps } = useModalVisibility();
+
+ const handleExport = () =>
+ isDesktop
+ ? openExportModal()
+ : showMiniDialog(downloadAppDialogAttributes());
+
+ return (
+ <>
+ <RowButton
+ variant="secondary"
+ label={t("Help")}
+ onClick={showHelp}
+ />
+ <RowButton
+ variant="secondary"
+ label={t("export_data")}
+ endIcon={
+ exportService.isExportInProgress() && (
+ <ActivityIndicator size="20px" />
+ )
+ }
+ onClick={handleExport}
+ />
+ <Help {...helpVisibilityProps} onRootClose={closeSidebar} />
+ </>
+ );
+};
+
+const ExitSection: React.FC = () => {
+ const { showMiniDialog, logout } = useContext(AppContext);
+
+ const handleLogout = () =>
+ showMiniDialog({
+ message: t("logout_message"),
+ continue: { text: t("logout"), color: "critical", action: logout },
+ buttonDirection: "row",
+ });
+
+ return (
+ <>
+ <RowButton
+ variant="secondary"
+ color="critical"
+ label={t("logout")}
+ onClick={handleLogout}
+ />
+ </>
+ );
+};
+
+const InfoSection: React.FC = () => {
+ const [appVersion, setAppVersion] = useState<string | undefined>();
+ const [host, setHost] = useState<string | undefined>();
+
+ useEffect(() => {
+ void globalThis.electron?.appVersion().then(setAppVersion);
+ void customAPIHost().then(setHost);
+ });
+
+ return (
+ <>
+ <Stack
+ sx={{
+ p: "24px 18px 16px 18px",
+ gap: "24px",
+ color: "text.muted",
+ }}
+ >
+ {appVersion && (
+ <Typography variant="mini">{appVersion}</Typography>
+ )}
+ {host && <Typography variant="mini">{host}</Typography>}
+ </Stack>
+ </>
+ );
+};
+
+const Account: React.FC<NestedSidebarDrawerVisibilityProps> = ({
+ open,
+ onClose,
+ onRootClose,
+}) => {
+ const { showMiniDialog } = useAppContext();
+
+ const router = useRouter();
+
+ const { show: showRecoveryKey, props: recoveryKeyVisibilityProps } =
+ useModalVisibility();
+ const { show: showTwoFactor, props: twoFactorVisibilityProps } =
+ useModalVisibility();
+ const { show: showDeleteAccount, props: deleteAccountVisibilityProps } =
+ useModalVisibility();
+
+ const handleRootClose = () => {
+ onClose();
+ onRootClose();
+ };
+
+ const handleChangePassword = () => router.push("/change-password");
+ const handleChangeEmail = () => router.push("/change-email");
+
+ const handlePasskeys = async () => {
+ onRootClose();
+ await openAccountsManagePasskeysPage();
+ };
+
+ return (
+ <NestedSidebarDrawer {...{ open, onClose }} onRootClose={onRootClose}>
+ <Stack sx={{ gap: "4px", py: "12px" }}>
+ <SidebarDrawerTitlebar
+ onClose={onClose}
+ title={t("account")}
+ onRootClose={handleRootClose}
+ />
+ <Stack sx={{ px: "16px", py: "8px", gap: "24px" }}>
+ <RowButtonGroup>
+ <RowButton
+ endIcon={
+ <HealthAndSafetyIcon
+ sx={{ color: "accent.main" }}
+ />
+ }
+ label={t("recovery_key")}
+ onClick={showRecoveryKey}
+ />
+ </RowButtonGroup>
+ <RowButtonGroup>
+ <RowButton
+ label={t("two_factor")}
+ onClick={showTwoFactor}
+ />
+ <RowButtonDivider />
+ <RowButton
+ label={t("passkeys")}
+ onClick={handlePasskeys}
+ />
+ </RowButtonGroup>
+ <RowButtonGroup>
+ <RowButton
+ label={t("change_password")}
+ onClick={handleChangePassword}
+ />
+ <RowButtonDivider />
+ <RowButton
+ label={t("change_email")}
+ onClick={handleChangeEmail}
+ />
+ </RowButtonGroup>
+ <RowButtonGroup>
+ <RowButton
+ color="critical"
+ label={t("delete_account")}
+ onClick={showDeleteAccount}
+ />
+ </RowButtonGroup>
+ </Stack>
+ </Stack>
+ <RecoveryKey
+ {...recoveryKeyVisibilityProps}
+ {...{ showMiniDialog }}
+ />
+ <TwoFactorSettings
+ {...twoFactorVisibilityProps}
+ onRootClose={onRootClose}
+ />
+ <DeleteAccountModal {...deleteAccountVisibilityProps} />
+ </NestedSidebarDrawer>
+ );
+};
+
+const Preferences: React.FC<NestedSidebarDrawerVisibilityProps> = ({
+ open,
+ onClose,
+ onRootClose,
+}) => {
+ const { show: showMapSettings, props: mapSettingsVisibilityProps } =
+ useModalVisibility();
+ const {
+ show: showAdvancedSettings,
+ props: advancedSettingsVisibilityProps,
+ } = useModalVisibility();
+ const { show: showMLSettings, props: mlSettingsVisibilityProps } =
+ useModalVisibility();
+
+ useEffect(() => {
+ if (open) void syncSettings();
+ }, [open]);
+
+ const handleRootClose = () => {
+ onClose();
+ onRootClose();
+ };
+
+ return (
+ <NestedSidebarDrawer {...{ open, onClose }} onRootClose={onRootClose}>
+ <Stack sx={{ gap: "4px", py: "12px" }}>
+ <SidebarDrawerTitlebar
+ onClose={onClose}
+ title={t("preferences")}
+ onRootClose={handleRootClose}
+ />
+ <Stack sx={{ px: "16px", py: "8px", gap: "24px" }}>
+ <LanguageSelector />
+ <ThemeSelector />
+ <Divider sx={{ my: "2px", opacity: 0.1 }} />
+ {isMLSupported && (
+ <RowButtonGroup>
+ <RowButton
+ endIcon={<ChevronRightIcon />}
+ label={t("ml_search")}
+ onClick={showMLSettings}
+ />
+ </RowButtonGroup>
+ )}
+ <RowButton
+ endIcon={<ChevronRightIcon />}
+ label={t("map")}
+ onClick={showMapSettings}
+ />
+ <RowButton
+ endIcon={<ChevronRightIcon />}
+ label={t("advanced")}
+ onClick={showAdvancedSettings}
+ />
+ </Stack>
+ </Stack>
+ <MapSettings
+ {...mapSettingsVisibilityProps}
+ onRootClose={onRootClose}
+ />
+ <AdvancedSettings
+ {...advancedSettingsVisibilityProps}
+ onRootClose={onRootClose}
+ />
+ <MLSettings
+ {...mlSettingsVisibilityProps}
+ onRootClose={handleRootClose}
+ />
+ </NestedSidebarDrawer>
+ );
+};
+
+const LanguageSelector = () => {
+ const locale = getLocaleInUse();
+
+ const updateCurrentLocale = (newLocale: SupportedLocale) => {
+ setLocaleInUse(newLocale);
+ // [Note: Changing locale causes a full reload]
+ //
+ // A full reload is needed because we use the global `t` instance
+ // instead of the useTranslation hook.
+ //
+ // We also rely on this behaviour by caching various formatters in
+ // module static variables that not get updated if the i18n.language
+ // changes unless there is a full reload.
+ window.location.reload();
+ };
+
+ const options = supportedLocales.map((locale) => ({
+ label: localeName(locale),
+ value: locale,
+ }));
+
+ return (
+ <Stack sx={{ gap: 1 }}>
+ <Typography variant="small" sx={{ px: 1, color: "text.muted" }}>
+ {t("language")}
+ </Typography>
+ <DropdownInput
+ options={options}
+ selected={locale}
+ onSelect={updateCurrentLocale}
+ />
+ </Stack>
+ );
+};
+
+/**
+ * Human readable name for each supported locale.
+ */
+const localeName = (locale: SupportedLocale) => {
+ switch (locale) {
+ case "en-US":
+ return "English";
+ case "fr-FR":
+ return "Français";
+ case "de-DE":
+ return "Deutsch";
+ case "zh-CN":
+ return "中文";
+ case "nl-NL":
+ return "Nederlands";
+ case "es-ES":
+ return "Español";
+ case "pt-PT":
+ return "Português";
+ case "pt-BR":
+ return "Português Brasileiro";
+ case "ru-RU":
+ return "Русский";
+ case "pl-PL":
+ return "Polski";
+ case "it-IT":
+ return "Italiano";
+ case "lt-LT":
+ return "Lietuvių kalba";
+ case "uk-UA":
+ return "Українська";
+ case "vi-VN":
+ return "Tiếng Việt";
+ }
+};
+
+const ThemeSelector = () => {
+ const { mode, setMode } = useColorScheme();
+
+ // During SSR, mode is always undefined.
+ if (!mode) return null;
+
+ return (
+ <Stack sx={{ gap: 1 }}>
+ <Typography variant="small" sx={{ px: 1, color: "text.muted" }}>
+ {t("theme")}
+ </Typography>
+ <DropdownInput
+ options={[
+ { label: t("system"), value: "system" },
+ { label: t("light"), value: "light" },
+ { label: t("dark"), value: "dark" },
+ ]}
+ selected={mode}
+ onSelect={setMode}
+ />
+ </Stack>
+ );
+};
+
+const MapSettings: React.FC<NestedSidebarDrawerVisibilityProps> = ({
+ open,
+ onClose,
+ onRootClose,
+}) => {
+ const { showMiniDialog } = useAppContext();
+
+ const { mapEnabled } = useSettingsSnapshot();
+
+ const confirmToggle = useCallback(
+ () =>
+ showMiniDialog(
+ mapEnabled
+ ? confirmDisableMapsDialogAttributes(() =>
+ updateMapEnabled(false),
+ )
+ : confirmEnableMapsDialogAttributes(() =>
+ updateMapEnabled(true),
+ ),
+ ),
+ [showMiniDialog, mapEnabled],
+ );
+
+ const handleRootClose = () => {
+ onClose();
+ onRootClose();
+ };
+
+ return (
+ <NestedSidebarDrawer
+ {...{ open, onClose }}
+ onRootClose={handleRootClose}
+ >
+ <Stack sx={{ gap: "4px", py: "12px" }}>
+ <SidebarDrawerTitlebar
+ onClose={onClose}
+ onRootClose={handleRootClose}
+ title={t("map")}
+ />
+
+ <Stack sx={{ px: "16px", py: "20px" }}>
+ <RowButtonGroup>
+ <RowSwitch
+ label={t("enabled")}
+ checked={mapEnabled}
+ onClick={confirmToggle}
+ />
+ </RowButtonGroup>
+ </Stack>
+ </Stack>
+ </NestedSidebarDrawer>
+ );
+};
+
+const AdvancedSettings: React.FC<NestedSidebarDrawerVisibilityProps> = ({
+ open,
+ onClose,
+ onRootClose,
+}) => {
+ const { cfUploadProxyDisabled } = useSettingsSnapshot();
+ const [isAutoLaunchEnabled, setIsAutoLaunchEnabled] = useState(false);
+
+ const electron = globalThis.electron;
+
+ const refreshAutoLaunchEnabled = useCallback(async () => {
+ return electron
+ ?.isAutoLaunchEnabled()
+ .then((enabled) => setIsAutoLaunchEnabled(enabled));
+ }, [electron]);
+
+ useEffect(
+ () => void refreshAutoLaunchEnabled(),
+ [refreshAutoLaunchEnabled],
+ );
+
+ const handleRootClose = () => {
+ onClose();
+ onRootClose();
+ };
+
+ const toggleProxy = () =>
+ void updateCFProxyDisabledPreference(!cfUploadProxyDisabled);
+
+ const toggleAutoLaunch = () =>
+ void electron?.toggleAutoLaunch().then(refreshAutoLaunchEnabled);
+
+ return (
+ <NestedSidebarDrawer
+ {...{ open, onClose }}
+ onRootClose={handleRootClose}
+ >
+ <Stack sx={{ gap: "4px", py: "12px" }}>
+ <SidebarDrawerTitlebar
+ onClose={onClose}
+ onRootClose={handleRootClose}
+ title={t("advanced")}
+ />
+ <Stack sx={{ px: "16px", py: "20px", gap: "24px" }}>
+ <Stack>
+ <RowButtonGroup>
+ <RowSwitch
+ label={t("faster_upload")}
+ checked={!cfUploadProxyDisabled}
+ onClick={toggleProxy}
+ />
+ </RowButtonGroup>
+ <RowButtonGroupHint>
+ {t("faster_upload_description")}
+ </RowButtonGroupHint>
+ </Stack>
+ {electron && (
+ <RowButtonGroup>
+ <RowSwitch
+ label={t("open_ente_on_startup")}
+ checked={isAutoLaunchEnabled}
+ onClick={toggleAutoLaunch}
+ />
+ </RowButtonGroup>
+ )}
+ </Stack>
+ </Stack>
+ </NestedSidebarDrawer>
+ );
+};
+
+const Help: React.FC<NestedSidebarDrawerVisibilityProps> = ({
+ open,
+ onClose,
+ onRootClose,
+}) => {
+ const { showMiniDialog } = useAppContext();
+
+ const handleRootClose = () => {
+ onClose();
+ onRootClose();
+ };
+
+ const handleHelp = () => openURL("https://help.ente.io/photos/");
+
+ const handleBlog = () => openURL("https://ente.io/blog/");
+
+ const handleRequestFeature = () =>
+ openURL("https://github.com/ente-io/ente/discussions");
+
+ const handleSupport = () => initiateEmail("[email protected]");
+
+ const confirmViewLogs = () =>
+ showMiniDialog({
+ title: t("view_logs"),
+ message: <Trans i18nKey={"view_logs_message"} />,
+ continue: {
+ text: t("view_logs"),
+ action: viewLogs,
+ },
+ });
+
+ const viewLogs = () => {
+ log.info("Viewing logs");
+ const electron = globalThis.electron;
+ if (electron) electron.openLogDirectory();
+ else downloadString(savedLogs(), `ente-web-logs-${Date.now()}.txt`);
+ };
+
+ return (
+ <NestedSidebarDrawer {...{ open, onClose }} onRootClose={onRootClose}>
+ <Stack sx={{ gap: "4px", py: "12px" }}>
+ <SidebarDrawerTitlebar
+ onClose={onClose}
+ title={t("help")}
+ onRootClose={handleRootClose}
+ />
+ <Stack sx={{ px: "16px", py: "8px", gap: "24px" }}>
+ <RowButtonGroup>
+ <RowButton
+ endIcon={<InfoOutlinedIcon />}
+ label={t("ente_help")}
+ onClick={handleHelp}
+ />
+ </RowButtonGroup>
+ <RowButtonGroup>
+ <RowButton
+ endIcon={<NorthEastIcon />}
+ label={t("blog")}
+ onClick={handleBlog}
+ />
+ <RowButtonDivider />
+ <RowButton
+ endIcon={<NorthEastIcon />}
+ label={t("request_feature")}
+ onClick={handleRequestFeature}
+ />
+ </RowButtonGroup>
+ <RowButtonGroup>
+ <RowButton
+ endIcon={<ChevronRightIcon />}
+ label={
+ <Tooltip title="[email protected]">
+ <Typography sx={{ fontWeight: "medium" }}>
+ {t("support")}
+ </Typography>
+ </Tooltip>
+ }
+ onClick={handleSupport}
+ />
+ </RowButtonGroup>
+ </Stack>
+ <Stack sx={{ px: "16px" }}>
+ <RowButton
+ variant="secondary"
+ label={
+ <Typography variant="mini" color="text.muted">
+ {t("view_logs")}
+ </Typography>
+ }
+ onClick={confirmViewLogs}
+ />
+ {isInternalUser() && isDevBuild && (
+ <RowButton
+ variant="secondary"
+ label={
+ <Typography variant="mini" color="text.muted">
+ {ut("Test upload")}
+ </Typography>
+ }
+ onClick={testUpload}
+ />
+ )}
+ </Stack>
+ </Stack>
+ </NestedSidebarDrawer>
+ );
+};
diff --git a/web/apps/photos/src/components/Sidebar/Preferences.tsx b/web/apps/photos/src/components/Sidebar/Preferences.tsx
deleted file mode 100644
index 282a4aa873..0000000000
--- a/web/apps/photos/src/components/Sidebar/Preferences.tsx
+++ /dev/null
@@ -1,303 +0,0 @@
-import {
- RowButton,
- RowButtonGroup,
- RowButtonGroupHint,
- RowSwitch,
-} from "@/base/components/RowButton";
-import {
- NestedSidebarDrawer,
- SidebarDrawerTitlebar,
- type NestedSidebarDrawerVisibilityProps,
-} from "@/base/components/mui/SidebarDrawer";
-import { useModalVisibility } from "@/base/components/utils/modal";
-import {
- getLocaleInUse,
- setLocaleInUse,
- supportedLocales,
- type SupportedLocale,
-} from "@/base/i18n";
-import { DropdownInput } from "@/new/photos/components/DropdownInput";
-import { MLSettings } from "@/new/photos/components/sidebar/MLSettings";
-import {
- confirmDisableMapsDialogAttributes,
- confirmEnableMapsDialogAttributes,
-} from "@/new/photos/components/utils/dialog";
-import { useSettingsSnapshot } from "@/new/photos/components/utils/use-snapshot";
-import { isMLSupported } from "@/new/photos/services/ml";
-import {
- syncSettings,
- updateCFProxyDisabledPreference,
- updateMapEnabled,
-} from "@/new/photos/services/settings";
-import { useAppContext } from "@/new/photos/types/context";
-import ChevronRightIcon from "@mui/icons-material/ChevronRight";
-import { Divider, Stack, Typography, useColorScheme } from "@mui/material";
-import { t } from "i18next";
-import React, { useCallback, useEffect } from "react";
-
-export const Preferences: React.FC<NestedSidebarDrawerVisibilityProps> = ({
- open,
- onClose,
- onRootClose,
-}) => {
- const { show: showMapSettings, props: mapSettingsVisibilityProps } =
- useModalVisibility();
- const {
- show: showAdvancedSettings,
- props: advancedSettingsVisibilityProps,
- } = useModalVisibility();
- const { show: showMLSettings, props: mlSettingsVisibilityProps } =
- useModalVisibility();
-
- useEffect(() => {
- if (open) void syncSettings();
- }, [open]);
-
- const handleRootClose = () => {
- onClose();
- onRootClose();
- };
-
- return (
- <NestedSidebarDrawer {...{ open, onClose }} onRootClose={onRootClose}>
- <Stack sx={{ gap: "4px", py: "12px" }}>
- <SidebarDrawerTitlebar
- onClose={onClose}
- title={t("preferences")}
- onRootClose={handleRootClose}
- />
- <Stack sx={{ px: "16px", py: "8px", gap: "24px" }}>
- <LanguageSelector />
- <ThemeSelector />
- <Divider sx={{ my: "2px", opacity: 0.1 }} />
- {isMLSupported && (
- <RowButtonGroup>
- <RowButton
- endIcon={<ChevronRightIcon />}
- label={t("ml_search")}
- onClick={showMLSettings}
- />
- </RowButtonGroup>
- )}
- <RowButton
- endIcon={<ChevronRightIcon />}
- label={t("map")}
- onClick={showMapSettings}
- />
- <RowButton
- endIcon={<ChevronRightIcon />}
- label={t("advanced")}
- onClick={showAdvancedSettings}
- />
- </Stack>
- </Stack>
- <MapSettings
- {...mapSettingsVisibilityProps}
- onRootClose={onRootClose}
- />
- <AdvancedSettings
- {...advancedSettingsVisibilityProps}
- onRootClose={onRootClose}
- />
- <MLSettings
- {...mlSettingsVisibilityProps}
- onRootClose={handleRootClose}
- />
- </NestedSidebarDrawer>
- );
-};
-
-const LanguageSelector = () => {
- const locale = getLocaleInUse();
-
- const updateCurrentLocale = (newLocale: SupportedLocale) => {
- setLocaleInUse(newLocale);
- // [Note: Changing locale causes a full reload]
- //
- // A full reload is needed because we use the global `t` instance
- // instead of the useTranslation hook.
- //
- // We also rely on this behaviour by caching various formatters in
- // module static variables that not get updated if the i18n.language
- // changes unless there is a full reload.
- window.location.reload();
- };
-
- const options = supportedLocales.map((locale) => ({
- label: localeName(locale),
- value: locale,
- }));
-
- return (
- <Stack sx={{ gap: 1 }}>
- <Typography variant="small" sx={{ px: 1, color: "text.muted" }}>
- {t("language")}
- </Typography>
- <DropdownInput
- options={options}
- selected={locale}
- onSelect={updateCurrentLocale}
- />
- </Stack>
- );
-};
-
-/**
- * Human readable name for each supported locale.
- */
-const localeName = (locale: SupportedLocale) => {
- switch (locale) {
- case "en-US":
- return "English";
- case "fr-FR":
- return "Français";
- case "de-DE":
- return "Deutsch";
- case "zh-CN":
- return "中文";
- case "nl-NL":
- return "Nederlands";
- case "es-ES":
- return "Español";
- case "pt-PT":
- return "Português";
- case "pt-BR":
- return "Português Brasileiro";
- case "ru-RU":
- return "Русский";
- case "pl-PL":
- return "Polski";
- case "it-IT":
- return "Italiano";
- case "lt-LT":
- return "Lietuvių kalba";
- case "uk-UA":
- return "Українська";
- case "vi-VN":
- return "Tiếng Việt";
- }
-};
-
-const ThemeSelector = () => {
- const { mode, setMode } = useColorScheme();
-
- // During SSR, mode is always undefined.
- if (!mode) return null;
-
- return (
- <Stack sx={{ gap: 1 }}>
- <Typography variant="small" sx={{ px: 1, color: "text.muted" }}>
- {t("theme")}
- </Typography>
- <DropdownInput
- options={[
- { label: t("system"), value: "system" },
- { label: t("light"), value: "light" },
- { label: t("dark"), value: "dark" },
- ]}
- selected={mode}
- onSelect={setMode}
- />
- </Stack>
- );
-};
-
-export const MapSettings: React.FC<NestedSidebarDrawerVisibilityProps> = ({
- open,
- onClose,
- onRootClose,
-}) => {
- const { showMiniDialog } = useAppContext();
-
- const { mapEnabled } = useSettingsSnapshot();
-
- const confirmToggle = useCallback(
- () =>
- showMiniDialog(
- mapEnabled
- ? confirmDisableMapsDialogAttributes(() =>
- updateMapEnabled(false),
- )
- : confirmEnableMapsDialogAttributes(() =>
- updateMapEnabled(true),
- ),
- ),
- [showMiniDialog, mapEnabled],
- );
-
- const handleRootClose = () => {
- onClose();
- onRootClose();
- };
-
- return (
- <NestedSidebarDrawer
- {...{ open, onClose }}
- onRootClose={handleRootClose}
- >
- <Stack sx={{ gap: "4px", py: "12px" }}>
- <SidebarDrawerTitlebar
- onClose={onClose}
- onRootClose={handleRootClose}
- title={t("map")}
- />
-
- <Stack sx={{ px: "16px", py: "20px" }}>
- <RowButtonGroup>
- <RowSwitch
- label={t("enabled")}
- checked={mapEnabled}
- onClick={confirmToggle}
- />
- </RowButtonGroup>
- </Stack>
- </Stack>
- </NestedSidebarDrawer>
- );
-};
-
-export const AdvancedSettings: React.FC<NestedSidebarDrawerVisibilityProps> = ({
- open,
- onClose,
- onRootClose,
-}) => {
- const { cfUploadProxyDisabled } = useSettingsSnapshot();
-
- const handleRootClose = () => {
- onClose();
- onRootClose();
- };
-
- const toggle = () =>
- void updateCFProxyDisabledPreference(!cfUploadProxyDisabled);
-
- return (
- <NestedSidebarDrawer
- {...{ open, onClose }}
- onRootClose={handleRootClose}
- >
- <Stack sx={{ gap: "4px", py: "12px" }}>
- <SidebarDrawerTitlebar
- onClose={onClose}
- onRootClose={handleRootClose}
- title={t("advanced")}
- />
-
- <Stack sx={{ px: "16px", py: "20px" }}>
- <Stack sx={{ gap: "4px" }}>
- <RowButtonGroup>
- <RowSwitch
- label={t("faster_upload")}
- checked={!cfUploadProxyDisabled}
- onClick={toggle}
- />
- </RowButtonGroup>
- <RowButtonGroupHint>
- {t("faster_upload_description")}
- </RowButtonGroupHint>
- </Stack>
- </Stack>
- </Stack>
- </NestedSidebarDrawer>
- );
-};
diff --git a/web/apps/photos/src/components/Sidebar/index.tsx b/web/apps/photos/src/components/Sidebar/index.tsx
deleted file mode 100644
index c47507d2b3..0000000000
--- a/web/apps/photos/src/components/Sidebar/index.tsx
+++ /dev/null
@@ -1,717 +0,0 @@
-import { RecoveryKey } from "@/accounts/components/RecoveryKey";
-import { openAccountsManagePasskeysPage } from "@/accounts/services/passkey";
-import { isDesktop } from "@/base/app";
-import { EnteLogo } from "@/base/components/EnteLogo";
-import { LinkButton } from "@/base/components/LinkButton";
-import { RowButton } from "@/base/components/RowButton";
-import { SpaceBetweenFlex } from "@/base/components/containers";
-import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";
-import { SidebarDrawer } from "@/base/components/mui/SidebarDrawer";
-import { useIsSmallWidth } from "@/base/components/utils/hooks";
-import { useModalVisibility } from "@/base/components/utils/modal";
-import { isDevBuild } from "@/base/env";
-import { ut } from "@/base/i18n";
-import log from "@/base/log";
-import { savedLogs } from "@/base/log-web";
-import { customAPIHost } from "@/base/origins";
-import { downloadString } from "@/base/utils/web";
-import { DialogCloseIconButton } from "@/new/photos/components/mui/Dialog";
-import { TwoFactorSettings } from "@/new/photos/components/sidebar/TwoFactorSettings";
-import { downloadAppDialogAttributes } from "@/new/photos/components/utils/download";
-import { useUserDetailsSnapshot } from "@/new/photos/components/utils/use-snapshot";
-import {
- ARCHIVE_SECTION,
- DUMMY_UNCATEGORIZED_COLLECTION,
- TRASH_SECTION,
-} from "@/new/photos/services/collection";
-import type { CollectionSummaries } from "@/new/photos/services/collection/ui";
-import { isInternalUser } from "@/new/photos/services/settings";
-import {
- familyAdminEmail,
- hasExceededStorageQuota,
- isFamilyAdmin,
- isPartOfFamily,
- isSubscriptionActive,
- isSubscriptionActivePaid,
- isSubscriptionCancelled,
- isSubscriptionFree,
- isSubscriptionPastDue,
- isSubscriptionStripe,
- leaveFamily,
- redirectToCustomerPortal,
- syncUserDetails,
- userDetailsAddOnBonuses,
- type UserDetails,
-} from "@/new/photos/services/user-details";
-import { AppContext, useAppContext } from "@/new/photos/types/context";
-import { initiateEmail, openURL } from "@/new/photos/utils/web";
-import {
- FlexWrapper,
- VerticallyCentered,
-} from "@ente/shared/components/Container";
-import { PHOTOS_PAGES as PAGES } from "@ente/shared/constants/pages";
-import ArchiveOutlinedIcon from "@mui/icons-material/ArchiveOutlined";
-import CategoryIcon from "@mui/icons-material/Category";
-import CloseIcon from "@mui/icons-material/Close";
-import DeleteOutlineIcon from "@mui/icons-material/DeleteOutline";
-import LockOutlinedIcon from "@mui/icons-material/LockOutlined";
-import VisibilityOffIcon from "@mui/icons-material/VisibilityOff";
-import {
- Box,
- Button,
- Dialog,
- DialogContent,
- Divider,
- IconButton,
- Skeleton,
- Stack,
- styled,
- Tooltip,
-} from "@mui/material";
-import Typography from "@mui/material/Typography";
-import DeleteAccountModal from "components/DeleteAccountModal";
-import { WatchFolder } from "components/WatchFolder";
-import { t } from "i18next";
-import { useRouter } from "next/router";
-import { GalleryContext } from "pages/gallery";
-import React, {
- MouseEventHandler,
- useContext,
- useEffect,
- useMemo,
- useState,
-} from "react";
-import { Trans } from "react-i18next";
-import { getUncategorizedCollection } from "services/collectionService";
-import exportService from "services/export";
-import { testUpload } from "../../../tests/upload.test";
-import { Preferences } from "./Preferences";
-import { SubscriptionCard } from "./SubscriptionCard";
-
-interface Iprops {
- collectionSummaries: CollectionSummaries;
- sidebarView: boolean;
- closeSidebar: () => void;
-}
-
-export default function Sidebar({
- collectionSummaries,
- sidebarView,
- closeSidebar,
-}: Iprops) {
- return (
- <RootSidebarDrawer open={sidebarView} onClose={closeSidebar}>
- <HeaderSection closeSidebar={closeSidebar} />
- <Divider />
- <UserDetailsSection sidebarView={sidebarView} />
- <Stack sx={{ gap: 0.5, mb: 3 }}>
- <ShortcutSection
- closeSidebar={closeSidebar}
- collectionSummaries={collectionSummaries}
- />
- <UtilitySection closeSidebar={closeSidebar} />
- <Divider />
- <HelpSection />
- <Divider />
- <ExitSection />
- <Divider />
- <DebugSection />
- </Stack>
- </RootSidebarDrawer>
- );
-}
-
-const RootSidebarDrawer = styled(SidebarDrawer)(({ theme }) => ({
- "& .MuiPaper-root": {
- padding: theme.spacing(1.5),
- },
-}));
-
-interface HeaderSectionProps {
- closeSidebar: () => void;
-}
-
-const HeaderSection: React.FC<HeaderSectionProps> = ({ closeSidebar }) => {
- return (
- <SpaceBetweenFlex
- sx={{ marginBlock: "4px 4px", paddingInlineStart: "12px" }}
- >
- <EnteLogo />
- <IconButton
- aria-label={t("close")}
- onClick={closeSidebar}
- color="secondary"
- >
- <CloseIcon fontSize="small" />
- </IconButton>
- </SpaceBetweenFlex>
- );
-};
-
-interface UserDetailsSectionProps {
- sidebarView: boolean;
-}
-
-const UserDetailsSection: React.FC<UserDetailsSectionProps> = ({
- sidebarView,
-}) => {
- const galleryContext = useContext(GalleryContext);
- const userDetails = useUserDetailsSnapshot();
- const [memberSubscriptionManageView, setMemberSubscriptionManageView] =
- useState(false);
-
- const openMemberSubscriptionManage = () =>
- setMemberSubscriptionManageView(true);
- const closeMemberSubscriptionManage = () =>
- setMemberSubscriptionManageView(false);
-
- useEffect(() => {
- if (sidebarView) void syncUserDetails();
- }, [sidebarView]);
-
- const isNonAdminFamilyMember = useMemo(
- () =>
- userDetails &&
- isPartOfFamily(userDetails) &&
- !isFamilyAdmin(userDetails),
- [userDetails],
- );
-
- const handleSubscriptionCardClick = () => {
- if (isNonAdminFamilyMember) {
- openMemberSubscriptionManage();
- } else {
- if (
- userDetails &&
- isSubscriptionStripe(userDetails.subscription) &&
- isSubscriptionPastDue(userDetails.subscription)
- ) {
- redirectToCustomerPortal();
- } else {
- galleryContext.showPlanSelectorModal();
- }
- }
- };
-
- return (
- <>
- <Box sx={{ px: 0.5, mt: 2, pb: 1.5, mb: 1 }}>
- <Typography sx={{ px: 1, pb: 1, color: "text.muted" }}>
- {userDetails ? (
- userDetails.email
- ) : (
- <Skeleton animation="wave" />
- )}
- </Typography>
-
- <SubscriptionCard
- userDetails={userDetails}
- onClick={handleSubscriptionCardClick}
- />
- {userDetails && (
- <SubscriptionStatus userDetails={userDetails} />
- )}
- </Box>
- {isNonAdminFamilyMember && (
- <MemberSubscriptionManage
- userDetails={userDetails}
- open={memberSubscriptionManageView}
- onClose={closeMemberSubscriptionManage}
- />
- )}
- </>
- );
-};
-
-interface SubscriptionStatusProps {
- userDetails: UserDetails;
-}
-
-const SubscriptionStatus: React.FC<SubscriptionStatusProps> = ({
- userDetails,
-}) => {
- const { showPlanSelectorModal } = useContext(GalleryContext);
-
- const hasAMessage = useMemo(() => {
- if (isPartOfFamily(userDetails) && !isFamilyAdmin(userDetails)) {
- return false;
- }
- if (
- isSubscriptionActivePaid(userDetails.subscription) &&
- !isSubscriptionCancelled(userDetails.subscription)
- ) {
- return false;
- }
- return true;
- }, [userDetails]);
-
- const handleClick = useMemo(() => {
- const eventHandler: MouseEventHandler<HTMLSpanElement> = (e) => {
- e.stopPropagation();
-
- if (isSubscriptionActive(userDetails.subscription)) {
- if (hasExceededStorageQuota(userDetails)) {
- showPlanSelectorModal();
- }
- } else {
- if (
- isSubscriptionStripe(userDetails.subscription) &&
- isSubscriptionPastDue(userDetails.subscription)
- ) {
- redirectToCustomerPortal();
- } else {
- showPlanSelectorModal();
- }
- }
- };
- return eventHandler;
- }, [userDetails]);
-
- if (!hasAMessage) {
- return <></>;
- }
-
- const hasAddOnBonus = userDetailsAddOnBonuses(userDetails).length > 0;
-
- let message: React.ReactNode;
- if (!hasAddOnBonus) {
- if (isSubscriptionActive(userDetails.subscription)) {
- if (isSubscriptionFree(userDetails.subscription)) {
- message = t("subscription_info_free");
- } else if (isSubscriptionCancelled(userDetails.subscription)) {
- message = t("subscription_info_renewal_cancelled", {
- date: userDetails.subscription?.expiryTime,
- });
- }
- } else {
- message = (
- <Trans
- i18nKey={"subscription_info_expired"}
- components={{
- a: <LinkButton onClick={handleClick} />,
- }}
- />
- );
- }
- }
-
- if (!message && hasExceededStorageQuota(userDetails)) {
- message = (
- <Trans
- i18nKey={"subscription_info_storage_quota_exceeded"}
- components={{
- a: <LinkButton onClick={handleClick} />,
- }}
- />
- );
- }
-
- if (!message) return <></>;
-
- return (
- <Box sx={{ px: 1, pt: 0.5 }}>
- <Typography
- variant="small"
- onClick={handleClick && handleClick}
- sx={{
- color: "text.muted",
- cursor: handleClick && "pointer",
- }}
- >
- {message}
- </Typography>
- </Box>
- );
-};
-
-function MemberSubscriptionManage({ open, userDetails, onClose }) {
- const { showMiniDialog } = useAppContext();
- const fullScreen = useIsSmallWidth();
-
- const confirmLeaveFamily = () =>
- showMiniDialog({
- title: t("leave_family_plan"),
- message: t("leave_family_plan_confirm"),
- continue: {
- text: t("leave"),
- color: "critical",
- action: leaveFamily,
- },
- });
-
- if (!userDetails) {
- return <></>;
- }
-
- return (
- <Dialog {...{ open, onClose, fullScreen }} maxWidth="xs" fullWidth>
- <SpaceBetweenFlex sx={{ p: "20px 8px 12px 16px" }}>
- <Stack>
- <Typography variant="h3">{t("subscription")}</Typography>
- <Typography sx={{ color: "text.muted" }}>
- {t("family_plan")}
- </Typography>
- </Stack>
- <DialogCloseIconButton {...{ onClose }} />
- </SpaceBetweenFlex>
- <DialogContent>
- <VerticallyCentered>
- <Box sx={{ mb: 4 }}>
- <Typography sx={{ color: "text.muted" }}>
- {t("subscription_info_family")}
- </Typography>
- <Typography>
- {familyAdminEmail(userDetails) ?? ""}
- </Typography>
- </Box>
-
- <img
- height={256}
- src="/images/family-plan/1x.png"
- srcSet="/images/family-plan/2x.png 2x, /images/family-plan/3x.png 3x"
- />
- <FlexWrapper px={2}>
- <Button
- fullWidth
- variant="outlined"
- color="critical"
- onClick={confirmLeaveFamily}
- >
- {t("leave_family_plan")}
- </Button>
- </FlexWrapper>
- </VerticallyCentered>
- </DialogContent>
- </Dialog>
- );
-}
-
-interface ShortcutSectionProps {
- closeSidebar: () => void;
- collectionSummaries: CollectionSummaries;
-}
-
-const ShortcutSection: React.FC<ShortcutSectionProps> = ({
- closeSidebar,
- collectionSummaries,
-}) => {
- const galleryContext = useContext(GalleryContext);
- const [uncategorizedCollectionId, setUncategorizedCollectionID] =
- useState<number>();
-
- useEffect(() => {
- const main = async () => {
- const unCategorizedCollection = await getUncategorizedCollection();
- if (unCategorizedCollection) {
- setUncategorizedCollectionID(unCategorizedCollection.id);
- } else {
- setUncategorizedCollectionID(DUMMY_UNCATEGORIZED_COLLECTION);
- }
- };
- main();
- }, []);
-
- const openUncategorizedSection = () => {
- galleryContext.setActiveCollectionID(uncategorizedCollectionId);
- closeSidebar();
- };
-
- const openTrashSection = () => {
- galleryContext.setActiveCollectionID(TRASH_SECTION);
- closeSidebar();
- };
-
- const openArchiveSection = () => {
- galleryContext.setActiveCollectionID(ARCHIVE_SECTION);
- closeSidebar();
- };
-
- const openHiddenSection = () => {
- galleryContext.openHiddenSection(() => {
- closeSidebar();
- });
- };
-
- return (
- <>
- <RowButton
- startIcon={<CategoryIcon />}
- label={t("section_uncategorized")}
- caption={collectionSummaries
- .get(uncategorizedCollectionId)
- ?.fileCount.toString()}
- onClick={openUncategorizedSection}
- />
- <RowButton
- startIcon={<ArchiveOutlinedIcon />}
- label={t("section_archive")}
- caption={collectionSummaries
- .get(ARCHIVE_SECTION)
- ?.fileCount.toString()}
- onClick={openArchiveSection}
- />
- <RowButton
- startIcon={<VisibilityOffIcon />}
- label={t("section_hidden")}
- caption={
- <LockOutlinedIcon
- sx={{
- verticalAlign: "middle",
- fontSize: "19px !important",
- }}
- />
- }
- onClick={openHiddenSection}
- />
- <RowButton
- startIcon={<DeleteOutlineIcon />}
- label={t("section_trash")}
- caption={collectionSummaries
- .get(TRASH_SECTION)
- ?.fileCount.toString()}
- onClick={openTrashSection}
- />
- </>
- );
-};
-
-interface UtilitySectionProps {
- closeSidebar: () => void;
-}
-
-const UtilitySection: React.FC<UtilitySectionProps> = ({ closeSidebar }) => {
- const router = useRouter();
- const { watchFolderView, setWatchFolderView, showMiniDialog } =
- useAppContext();
-
- const { show: showRecoveryKey, props: recoveryKeyVisibilityProps } =
- useModalVisibility();
- const { show: showTwoFactor, props: twoFactorVisibilityProps } =
- useModalVisibility();
- const { show: showPreferences, props: preferencesVisibilityProps } =
- useModalVisibility();
-
- const showWatchFolder = () => setWatchFolderView(true);
- const handleCloseWatchFolder = () => setWatchFolderView(false);
-
- const redirectToChangePasswordPage = () => {
- closeSidebar();
- router.push(PAGES.CHANGE_PASSWORD);
- };
-
- const handleChangeEmail = () => router.push("/change-email");
-
- const redirectToAccountsPage = async () => {
- closeSidebar();
- await openAccountsManagePasskeysPage();
- };
-
- const handleDeduplicate = () => router.push("/duplicates");
-
- return (
- <>
- {isDesktop && (
- <RowButton
- variant="secondary"
- label={t("watch_folders")}
- onClick={showWatchFolder}
- />
- )}
- <RowButton
- variant="secondary"
- label={t("recovery_key")}
- onClick={showRecoveryKey}
- />
- <RowButton
- variant="secondary"
- label={t("two_factor")}
- onClick={showTwoFactor}
- />
- <RowButton
- variant="secondary"
- label={t("passkeys")}
- onClick={redirectToAccountsPage}
- />
- <RowButton
- variant="secondary"
- label={t("change_password")}
- onClick={redirectToChangePasswordPage}
- />
- <RowButton
- variant="secondary"
- label={t("change_email")}
- onClick={handleChangeEmail}
- />
- <RowButton
- variant="secondary"
- label={t("deduplicate_files")}
- onClick={handleDeduplicate}
- />
- <RowButton
- variant="secondary"
- label={t("preferences")}
- onClick={showPreferences}
- />
-
- <RecoveryKey
- {...recoveryKeyVisibilityProps}
- {...{ showMiniDialog }}
- />
- <TwoFactorSettings
- {...twoFactorVisibilityProps}
- onRootClose={closeSidebar}
- />
- {isDesktop && (
- <WatchFolder
- open={watchFolderView}
- onClose={handleCloseWatchFolder}
- />
- )}
- <Preferences
- {...preferencesVisibilityProps}
- onRootClose={closeSidebar}
- />
- </>
- );
-};
-
-const HelpSection: React.FC = () => {
- const { showMiniDialog } = useContext(AppContext);
- const { openExportModal } = useContext(GalleryContext);
-
- const requestFeature = () =>
- openURL("https://github.com/ente-io/ente/discussions");
-
- const contactSupport = () => initiateEmail("[email protected]");
-
- const handleExport = () =>
- isDesktop
- ? openExportModal()
- : showMiniDialog(downloadAppDialogAttributes());
-
- return (
- <>
- <RowButton
- variant="secondary"
- label={t("request_feature")}
- onClick={requestFeature}
- />
- <RowButton
- variant="secondary"
- label={
- <Tooltip title="[email protected]">
- <Typography sx={{ fontWeight: "medium" }}>
- {t("support")}
- </Typography>
- </Tooltip>
- }
- onClick={contactSupport}
- />
- <RowButton
- variant="secondary"
- label={t("export_data")}
- endIcon={
- exportService.isExportInProgress() && (
- <ActivityIndicator size="20px" />
- )
- }
- onClick={handleExport}
- />
- </>
- );
-};
-
-const ExitSection: React.FC = () => {
- const { showMiniDialog, logout } = useContext(AppContext);
-
- const { show: showDeleteAccount, props: deleteAccountVisibilityProps } =
- useModalVisibility();
-
- const handleLogout = () =>
- showMiniDialog({
- message: t("logout_message"),
- continue: { text: t("logout"), color: "critical", action: logout },
- buttonDirection: "row",
- });
-
- return (
- <>
- <RowButton
- variant="secondary"
- color="critical"
- label={t("logout")}
- onClick={handleLogout}
- />
- <RowButton
- variant="secondary"
- color="critical"
- onClick={showDeleteAccount}
- label={t("delete_account")}
- />
- <DeleteAccountModal {...deleteAccountVisibilityProps} />
- </>
- );
-};
-
-const DebugSection: React.FC = () => {
- const { showMiniDialog } = useAppContext();
- const [appVersion, setAppVersion] = useState<string | undefined>();
- const [host, setHost] = useState<string | undefined>();
-
- const electron = globalThis.electron;
-
- useEffect(() => {
- void electron?.appVersion().then(setAppVersion);
- void customAPIHost().then(setHost);
- });
-
- const confirmLogDownload = () =>
- showMiniDialog({
- title: t("download_logs"),
- message: <Trans i18nKey={"download_logs_message"} />,
- continue: {
- text: t("download"),
- action: downloadLogs,
- },
- });
-
- const downloadLogs = () => {
- log.info("Downloading logs");
- if (electron) electron.openLogDirectory();
- else downloadString(savedLogs(), `debug_logs_${Date.now()}.txt`);
- };
-
- return (
- <>
- {isInternalUser() && isDevBuild && (
- <RowButton
- variant="secondary"
- label={ut("Test Upload")}
- onClick={testUpload}
- />
- )}
- <RowButton
- variant="secondary"
- label={
- <Typography variant="mini" color="text.muted">
- {t("debug_logs")}
- </Typography>
- }
- onClick={confirmLogDownload}
- />
- <Stack
- sx={{
- py: "14px",
- px: "16px",
- gap: "24px",
- color: "text.muted",
- }}
- >
- {appVersion && (
- <Typography variant="mini">{appVersion}</Typography>
- )}
- {host && <Typography variant="mini">{host}</Typography>}
- </Stack>
- </>
- );
-};
diff --git a/web/apps/photos/src/components/Sidebar/SubscriptionCard.tsx b/web/apps/photos/src/components/SubscriptionCard.tsx
similarity index 100%
rename from web/apps/photos/src/components/Sidebar/SubscriptionCard.tsx
rename to web/apps/photos/src/components/SubscriptionCard.tsx
diff --git a/web/apps/photos/src/components/Upload/UploadTypeSelector.tsx b/web/apps/photos/src/components/Upload/UploadTypeSelector.tsx
index ec27a27ad5..065cea33b0 100644
--- a/web/apps/photos/src/components/Upload/UploadTypeSelector.tsx
+++ b/web/apps/photos/src/components/Upload/UploadTypeSelector.tsx
@@ -1,4 +1,4 @@
-import { SpaceBetweenFlex } from "@/base/components/containers";
+import { SpacedRow } from "@/base/components/containers";
import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";
import { RowButton } from "@/base/components/RowButton";
import { useIsTouchscreen } from "@/base/components/utils/hooks";
@@ -165,7 +165,7 @@ const DefaultOptions: React.FC<OptionsProps> = ({
}) => {
return (
<>
- <SpaceBetweenFlex>
+ <SpacedRow>
<DialogTitle variant="h5">
{intent == "collect"
? t("select_photos")
@@ -174,7 +174,7 @@ const DefaultOptions: React.FC<OptionsProps> = ({
: t("upload")}
</DialogTitle>
<DialogCloseIconButton {...{ onClose }} />
- </SpaceBetweenFlex>
+ </SpacedRow>
<Box sx={{ p: "12px", pt: "16px" }}>
<Stack sx={{ gap: 0.5 }}>
{intent != "import" && (
@@ -221,10 +221,10 @@ const TakeoutOptions: React.FC<Omit<OptionsProps, "intent">> = ({
}) => {
return (
<>
- <SpaceBetweenFlex>
+ <SpacedRow>
<DialogTitle variant="h5">{t("google_takeout")}</DialogTitle>
<DialogCloseIconButton {...{ onClose }} />
- </SpaceBetweenFlex>
+ </SpacedRow>
<Stack sx={{ padding: "18px 12px 20px 12px", gap: "16px" }}>
<Stack sx={{ gap: "8px" }}>
<FocusVisibleButton
diff --git a/web/apps/photos/src/components/WatchFolder.tsx b/web/apps/photos/src/components/WatchFolder.tsx
index 1ab106082a..985cf61224 100644
--- a/web/apps/photos/src/components/WatchFolder.tsx
+++ b/web/apps/photos/src/components/WatchFolder.tsx
@@ -1,4 +1,4 @@
-import { CenteredFlex, SpaceBetweenFlex } from "@/base/components/containers";
+import { CenteredFill, SpacedRow } from "@/base/components/containers";
import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";
import {
OverflowMenu,
@@ -122,12 +122,12 @@ export const WatchFolder: React.FC<ModalVisibilityProps> = ({
paper: { sx: { height: "448px", maxWidth: "444px" } },
}}
>
- <SpaceBetweenFlex sx={{ p: "16px 8px 0px 8px" }}>
+ <SpacedRow sx={{ p: "16px 8px 0px 8px" }}>
<DialogTitle variant="h3">
{t("watched_folders")}
</DialogTitle>
<DialogCloseIconButton {...{ onClose }} />
- </SpaceBetweenFlex>
+ </SpacedRow>
<DialogContent sx={{ flex: 1 }}>
<Stack sx={{ gap: 1, p: 1.5, height: "100%" }}>
<WatchList {...{ watches, removeWatch }} />
@@ -170,30 +170,28 @@ const WatchList: React.FC<WatchList> = ({ watches, removeWatch }) =>
</Stack>
);
-const NoWatches: React.FC = () => {
- return (
- <CenteredFlex sx={{ flex: 1, mb: 4 }}>
- <Stack sx={{ gap: 1.5 }}>
- <Typography variant="h6">{t("no_folders_added")}</Typography>
- <Typography variant="small" sx={{ py: 1, color: "text.muted" }}>
- {t("watch_folders_hint_1")}
- </Typography>
- <Typography variant="small" sx={{ color: "text.muted" }}>
- <Stack direction="row" sx={{ gap: 1 }}>
- <Check />
- {t("watch_folders_hint_2")}
- </Stack>
- </Typography>
- <Typography variant="small" sx={{ color: "text.muted" }}>
- <Stack direction="row" sx={{ gap: 1 }}>
- <Check />
- {t("watch_folders_hint_3")}
- </Stack>
- </Typography>
- </Stack>
- </CenteredFlex>
- );
-};
+const NoWatches: React.FC = () => (
+ <CenteredFill sx={{ mb: 4 }}>
+ <Stack sx={{ gap: 1.5 }}>
+ <Typography variant="h6">{t("no_folders_added")}</Typography>
+ <Typography variant="small" sx={{ py: 1, color: "text.muted" }}>
+ {t("watch_folders_hint_1")}
+ </Typography>
+ <Typography variant="small" sx={{ color: "text.muted" }}>
+ <Stack direction="row" sx={{ gap: 1 }}>
+ <Check />
+ {t("watch_folders_hint_2")}
+ </Stack>
+ </Typography>
+ <Typography variant="small" sx={{ color: "text.muted" }}>
+ <Stack direction="row" sx={{ gap: 1 }}>
+ <Check />
+ {t("watch_folders_hint_3")}
+ </Stack>
+ </Typography>
+ </Stack>
+ </CenteredFill>
+);
const Check: React.FC = () => (
<CheckIcon
@@ -222,7 +220,7 @@ const WatchEntry: React.FC<WatchEntryProps> = ({ watch, removeWatch }) => {
};
return (
- <SpaceBetweenFlex sx={{ overflow: "hidden", flexShrink: 0 }}>
+ <SpacedRow sx={{ overflow: "hidden", flexShrink: 0 }}>
<Stack direction="row" sx={{ overflow: "hidden", gap: 1.5 }}>
{watch.collectionMapping === "root" ? (
<Tooltip title={t("uploaded_to_single_collection")}>
@@ -239,7 +237,7 @@ const WatchEntry: React.FC<WatchEntryProps> = ({ watch, removeWatch }) => {
</Stack>
</Stack>
<EntryOptions {...{ confirmStopWatching }} />
- </SpaceBetweenFlex>
+ </SpacedRow>
);
};
diff --git a/web/apps/photos/src/components/pages/gallery/PreviewCard.tsx b/web/apps/photos/src/components/pages/gallery/PreviewCard.tsx
index a1b2c0a758..79ca1d167a 100644
--- a/web/apps/photos/src/components/pages/gallery/PreviewCard.tsx
+++ b/web/apps/photos/src/components/pages/gallery/PreviewCard.tsx
@@ -43,7 +43,8 @@ const Check = styled("input")<{ $active: boolean }>(
({ theme, $active }) => `
appearance: none;
position: absolute;
- z-index: 10;
+ /* Increase z-index in stacking order to capture clicks */
+ z-index: 1;
left: 0;
outline: none;
cursor: pointer;
@@ -162,7 +163,6 @@ const InSelectRangeOverlay = styled(Overlay)(
const SelectedOverlay = styled(Overlay)(
({ theme }) => `
- z-index: 5;
border: 2px solid ${theme.vars.palette.accent.main};
border-radius: 4px;
`,
diff --git a/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx b/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx
index 12fbd1cbf3..35f97b7387 100644
--- a/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx
+++ b/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx
@@ -1,4 +1,4 @@
-import { SelectionBar } from "@/base/components/Navbar";
+import { SpacedRow } from "@/base/components/containers";
import type { Collection } from "@/media/collection";
import type { CollectionSelectorAttributes } from "@/new/photos/components/CollectionSelector";
import type { GalleryBarMode } from "@/new/photos/components/gallery/reducer";
@@ -8,7 +8,6 @@ import {
TRASH_SECTION,
} from "@/new/photos/services/collection";
import { useAppContext } from "@/new/photos/types/context";
-import { FluidContainer } from "@ente/shared/components/Container";
import ClockIcon from "@mui/icons-material/AccessTime";
import AddIcon from "@mui/icons-material/Add";
import ArchiveIcon from "@mui/icons-material/ArchiveOutlined";
@@ -22,7 +21,7 @@ import RestoreIcon from "@mui/icons-material/Restore";
import UnArchiveIcon from "@mui/icons-material/Unarchive";
import VisibilityOffOutlinedIcon from "@mui/icons-material/VisibilityOffOutlined";
import VisibilityOutlinedIcon from "@mui/icons-material/VisibilityOutlined";
-import { Box, IconButton, Stack, Tooltip } from "@mui/material";
+import { IconButton, Tooltip, Typography } from "@mui/material";
import { t } from "i18next";
import { COLLECTION_OPS_TYPE } from "utils/collection";
import { FILE_OPS_TYPE } from "utils/file";
@@ -174,130 +173,136 @@ const SelectedFileOptions = ({
};
return (
- <SelectionBar>
- <FluidContainer>
- <IconButton onClick={clearSelection}>
- <CloseIcon />
- </IconButton>
- <Box sx={{ ml: 1.5 }}>
- {ownCount === count
- ? t("selected_count", { selected: count })
- : t("selected_and_yours_count", {
- selected: count,
- yours: ownCount,
- })}
- </Box>
- </FluidContainer>
- <Stack direction="row" sx={{ gap: 2, mr: 2 }}>
- {isInSearchMode ? (
- <>
- <Tooltip title={t("fix_creation_time")}>
- <IconButton
- onClick={handleFileOps(FILE_OPS_TYPE.FIX_TIME)}
- >
- <ClockIcon />
- </IconButton>
- </Tooltip>
- <Tooltip title={t("download")}>
- <IconButton
- onClick={handleFileOps(FILE_OPS_TYPE.DOWNLOAD)}
- >
- <DownloadIcon />
- </IconButton>
- </Tooltip>
- <Tooltip title={t("add")}>
- <IconButton onClick={addToCollection}>
- <AddIcon />
- </IconButton>
- </Tooltip>
- <Tooltip title={t("archive")}>
- <IconButton
- onClick={handleFileOps(FILE_OPS_TYPE.ARCHIVE)}
- >
- <ArchiveIcon />
- </IconButton>
- </Tooltip>
- <Tooltip title={t("hide")}>
- <IconButton
- onClick={handleFileOps(FILE_OPS_TYPE.HIDE)}
- >
- <VisibilityOffOutlinedIcon />
- </IconButton>
- </Tooltip>
- <Tooltip title={t("delete")}>
- <IconButton onClick={trashHandler}>
- <DeleteIcon />
- </IconButton>
- </Tooltip>
- </>
- ) : peopleMode ? (
- <>
- <Tooltip title={t("download")}>
- <IconButton
- onClick={handleFileOps(FILE_OPS_TYPE.DOWNLOAD)}
- >
- <DownloadIcon />
- </IconButton>
- </Tooltip>
- <Tooltip title={t("add")}>
- <IconButton onClick={addToCollection}>
- <AddIcon />
- </IconButton>
- </Tooltip>
- <Tooltip title={t("archive")}>
- <IconButton
- onClick={handleFileOps(FILE_OPS_TYPE.ARCHIVE)}
- >
- <ArchiveIcon />
- </IconButton>
- </Tooltip>
- <Tooltip title={t("hide")}>
- <IconButton
- onClick={handleFileOps(FILE_OPS_TYPE.HIDE)}
- >
- <VisibilityOffOutlinedIcon />
- </IconButton>
- </Tooltip>
- <Tooltip title={t("delete")}>
- <IconButton onClick={trashHandler}>
- <DeleteIcon />
- </IconButton>
- </Tooltip>
- </>
- ) : activeCollectionID === TRASH_SECTION ? (
- <>
- <Tooltip title={t("restore")}>
- <IconButton onClick={restoreHandler}>
- <RestoreIcon />
- </IconButton>
- </Tooltip>
- <Tooltip title={t("delete_permanently")}>
- <IconButton onClick={permanentlyDeleteHandler}>
- <DeleteIcon />
- </IconButton>
- </Tooltip>
- </>
- ) : isUncategorizedCollection ? (
- <>
- <Tooltip title={t("download")}>
- <IconButton
- onClick={handleFileOps(FILE_OPS_TYPE.DOWNLOAD)}
- >
- <DownloadIcon />
- </IconButton>
- </Tooltip>
- <Tooltip title={t("move")}>
- <IconButton onClick={moveToCollection}>
- <MoveIcon />
- </IconButton>
- </Tooltip>
- <Tooltip title={t("delete")}>
- <IconButton onClick={trashHandler}>
- <DeleteIcon />
- </IconButton>
- </Tooltip>
- </>
- ) : isIncomingSharedCollection ? (
+ <SpacedRow sx={{ flex: 1, gap: 1, flexWrap: "wrap" }}>
+ <IconButton onClick={clearSelection}>
+ <CloseIcon />
+ </IconButton>
+ <Typography sx={{ mr: "auto" }}>
+ {ownCount === count
+ ? t("selected_count", { selected: count })
+ : t("selected_and_yours_count", {
+ selected: count,
+ yours: ownCount,
+ })}
+ </Typography>
+
+ {isInSearchMode ? (
+ <>
+ <Tooltip title={t("fix_creation_time")}>
+ <IconButton
+ onClick={handleFileOps(FILE_OPS_TYPE.FIX_TIME)}
+ >
+ <ClockIcon />
+ </IconButton>
+ </Tooltip>
+ <Tooltip title={t("download")}>
+ <IconButton
+ onClick={handleFileOps(FILE_OPS_TYPE.DOWNLOAD)}
+ >
+ <DownloadIcon />
+ </IconButton>
+ </Tooltip>
+ <Tooltip title={t("add")}>
+ <IconButton onClick={addToCollection}>
+ <AddIcon />
+ </IconButton>
+ </Tooltip>
+ <Tooltip title={t("archive")}>
+ <IconButton
+ onClick={handleFileOps(FILE_OPS_TYPE.ARCHIVE)}
+ >
+ <ArchiveIcon />
+ </IconButton>
+ </Tooltip>
+ <Tooltip title={t("hide")}>
+ <IconButton onClick={handleFileOps(FILE_OPS_TYPE.HIDE)}>
+ <VisibilityOffOutlinedIcon />
+ </IconButton>
+ </Tooltip>
+ <Tooltip title={t("delete")}>
+ <IconButton onClick={trashHandler}>
+ <DeleteIcon />
+ </IconButton>
+ </Tooltip>
+ </>
+ ) : peopleMode ? (
+ <>
+ <Tooltip title={t("download")}>
+ <IconButton
+ onClick={handleFileOps(FILE_OPS_TYPE.DOWNLOAD)}
+ >
+ <DownloadIcon />
+ </IconButton>
+ </Tooltip>
+ <Tooltip title={t("add")}>
+ <IconButton onClick={addToCollection}>
+ <AddIcon />
+ </IconButton>
+ </Tooltip>
+ <Tooltip title={t("archive")}>
+ <IconButton
+ onClick={handleFileOps(FILE_OPS_TYPE.ARCHIVE)}
+ >
+ <ArchiveIcon />
+ </IconButton>
+ </Tooltip>
+ <Tooltip title={t("hide")}>
+ <IconButton onClick={handleFileOps(FILE_OPS_TYPE.HIDE)}>
+ <VisibilityOffOutlinedIcon />
+ </IconButton>
+ </Tooltip>
+ <Tooltip title={t("delete")}>
+ <IconButton onClick={trashHandler}>
+ <DeleteIcon />
+ </IconButton>
+ </Tooltip>
+ </>
+ ) : activeCollectionID === TRASH_SECTION ? (
+ <>
+ <Tooltip title={t("restore")}>
+ <IconButton onClick={restoreHandler}>
+ <RestoreIcon />
+ </IconButton>
+ </Tooltip>
+ <Tooltip title={t("delete_permanently")}>
+ <IconButton onClick={permanentlyDeleteHandler}>
+ <DeleteIcon />
+ </IconButton>
+ </Tooltip>
+ </>
+ ) : isUncategorizedCollection ? (
+ <>
+ <Tooltip title={t("download")}>
+ <IconButton
+ onClick={handleFileOps(FILE_OPS_TYPE.DOWNLOAD)}
+ >
+ <DownloadIcon />
+ </IconButton>
+ </Tooltip>
+ <Tooltip title={t("move")}>
+ <IconButton onClick={moveToCollection}>
+ <MoveIcon />
+ </IconButton>
+ </Tooltip>
+ <Tooltip title={t("delete")}>
+ <IconButton onClick={trashHandler}>
+ <DeleteIcon />
+ </IconButton>
+ </Tooltip>
+ </>
+ ) : isIncomingSharedCollection ? (
+ <Tooltip title={t("download")}>
+ <IconButton onClick={handleFileOps(FILE_OPS_TYPE.DOWNLOAD)}>
+ <DownloadIcon />
+ </IconButton>
+ </Tooltip>
+ ) : isInHiddenSection ? (
+ <>
+ <Tooltip title={t("unhide")}>
+ <IconButton onClick={unhideToCollection}>
+ <VisibilityOutlinedIcon />
+ </IconButton>
+ </Tooltip>
<Tooltip title={t("download")}>
<IconButton
onClick={handleFileOps(FILE_OPS_TYPE.DOWNLOAD)}
@@ -305,119 +310,96 @@ const SelectedFileOptions = ({
<DownloadIcon />
</IconButton>
</Tooltip>
- ) : isInHiddenSection ? (
- <>
- <Tooltip title={t("unhide")}>
- <IconButton onClick={unhideToCollection}>
- <VisibilityOutlinedIcon />
- </IconButton>
- </Tooltip>
- <Tooltip title={t("download")}>
- <IconButton
- onClick={handleFileOps(FILE_OPS_TYPE.DOWNLOAD)}
- >
- <DownloadIcon />
- </IconButton>
- </Tooltip>
- <Tooltip title={t("delete")}>
- <IconButton onClick={trashHandler}>
- <DeleteIcon />
- </IconButton>
- </Tooltip>
- </>
- ) : (
- <>
- <Tooltip title={t("fix_creation_time")}>
- <IconButton
- onClick={handleFileOps(FILE_OPS_TYPE.FIX_TIME)}
- >
- <ClockIcon />
- </IconButton>
- </Tooltip>
- {!isFavoriteCollection &&
- activeCollectionID != ARCHIVE_SECTION && (
- <Tooltip title={t("favorite")}>
- <IconButton
- onClick={handleFileOps(
- FILE_OPS_TYPE.SET_FAVORITE,
- )}
- >
- <FavoriteBorderIcon />
- </IconButton>
- </Tooltip>
- )}
- <Tooltip title={t("download")}>
- <IconButton
- onClick={handleFileOps(FILE_OPS_TYPE.DOWNLOAD)}
- >
- <DownloadIcon />
- </IconButton>
- </Tooltip>
- <Tooltip title={t("add")}>
- <IconButton onClick={addToCollection}>
- <AddIcon />
- </IconButton>
- </Tooltip>
- {activeCollectionID === ARCHIVE_SECTION && (
- <Tooltip title={t("unarchive")}>
- <IconButton
- onClick={handleFileOps(
- FILE_OPS_TYPE.UNARCHIVE,
- )}
- >
- <UnArchiveIcon />
- </IconButton>
- </Tooltip>
- )}
- {activeCollectionID === ALL_SECTION && (
- <Tooltip title={t("archive")}>
+ <Tooltip title={t("delete")}>
+ <IconButton onClick={trashHandler}>
+ <DeleteIcon />
+ </IconButton>
+ </Tooltip>
+ </>
+ ) : (
+ <>
+ <Tooltip title={t("fix_creation_time")}>
+ <IconButton
+ onClick={handleFileOps(FILE_OPS_TYPE.FIX_TIME)}
+ >
+ <ClockIcon />
+ </IconButton>
+ </Tooltip>
+ {!isFavoriteCollection &&
+ activeCollectionID != ARCHIVE_SECTION && (
+ <Tooltip title={t("favorite")}>
<IconButton
onClick={handleFileOps(
- FILE_OPS_TYPE.ARCHIVE,
+ FILE_OPS_TYPE.SET_FAVORITE,
)}
>
- <ArchiveIcon />
+ <FavoriteBorderIcon />
</IconButton>
</Tooltip>
)}
- {activeCollectionID !== ALL_SECTION &&
- activeCollectionID !== ARCHIVE_SECTION &&
- !isFavoriteCollection && (
- <>
- <Tooltip title={t("move")}>
- <IconButton onClick={moveToCollection}>
- <MoveIcon />
- </IconButton>
- </Tooltip>
-
- <Tooltip title={t("remove")}>
- <IconButton
- onClick={
- removeFromCollectionHandler
- }
- >
- <RemoveIcon />
- </IconButton>
- </Tooltip>
- </>
- )}
- <Tooltip title={t("hide")}>
+ <Tooltip title={t("download")}>
+ <IconButton
+ onClick={handleFileOps(FILE_OPS_TYPE.DOWNLOAD)}
+ >
+ <DownloadIcon />
+ </IconButton>
+ </Tooltip>
+ <Tooltip title={t("add")}>
+ <IconButton onClick={addToCollection}>
+ <AddIcon />
+ </IconButton>
+ </Tooltip>
+ {activeCollectionID === ARCHIVE_SECTION && (
+ <Tooltip title={t("unarchive")}>
<IconButton
- onClick={handleFileOps(FILE_OPS_TYPE.HIDE)}
+ onClick={handleFileOps(FILE_OPS_TYPE.UNARCHIVE)}
>
- <VisibilityOffOutlinedIcon />
+ <UnArchiveIcon />
</IconButton>
</Tooltip>
- <Tooltip title={t("delete")}>
- <IconButton onClick={trashHandler}>
- <DeleteIcon />
+ )}
+ {activeCollectionID === ALL_SECTION && (
+ <Tooltip title={t("archive")}>
+ <IconButton
+ onClick={handleFileOps(FILE_OPS_TYPE.ARCHIVE)}
+ >
+ <ArchiveIcon />
</IconButton>
</Tooltip>
- </>
- )}
- </Stack>
- </SelectionBar>
+ )}
+ {activeCollectionID !== ALL_SECTION &&
+ activeCollectionID !== ARCHIVE_SECTION &&
+ !isFavoriteCollection && (
+ <>
+ <Tooltip title={t("move")}>
+ <IconButton onClick={moveToCollection}>
+ <MoveIcon />
+ </IconButton>
+ </Tooltip>
+
+ <Tooltip title={t("remove")}>
+ <IconButton
+ onClick={removeFromCollectionHandler}
+ >
+ <RemoveIcon />
+ </IconButton>
+ </Tooltip>
+ </>
+ )}
+ <Tooltip title={t("hide")}>
+ <IconButton onClick={handleFileOps(FILE_OPS_TYPE.HIDE)}>
+ <VisibilityOffOutlinedIcon />
+ </IconButton>
+ </Tooltip>
+ <Tooltip title={t("delete")}>
+ <IconButton onClick={trashHandler}>
+ <DeleteIcon />
+ </IconButton>
+ </Tooltip>
+ </>
+ )}
+ </SpacedRow>
);
};
diff --git a/web/apps/photos/src/pages/_app.tsx b/web/apps/photos/src/pages/_app.tsx
index f2345ebdfe..d551c03017 100644
--- a/web/apps/photos/src/pages/_app.tsx
+++ b/web/apps/photos/src/pages/_app.tsx
@@ -1,13 +1,8 @@
-import {
- clientPackageName,
- isDesktop,
- staticAppTitle,
- wipDesktopCustomTitlebar,
-} from "@/base/app";
-import { CenteredFlex } from "@/base/components/containers";
+import { clientPackageName, isDesktop, staticAppTitle } from "@/base/app";
+import { CenteredRow } from "@/base/components/containers";
import { CustomHead } from "@/base/components/Head";
import {
- LoadingOverlay,
+ LoadingIndicator,
TranslucentLoadingOverlay,
} from "@/base/components/loaders";
import { AttributedMiniDialog } from "@/base/components/MiniDialog";
@@ -31,7 +26,7 @@ import {
updateReadyToInstallDialogAttributes,
} from "@/new/photos/components/utils/download";
import { useLoadingBar } from "@/new/photos/components/utils/use-loading-bar";
-import { aboveGalleryContentZ } from "@/new/photos/components/utils/z-index";
+import { aboveFileViewerContentZ } from "@/new/photos/components/utils/z-index";
import { runMigrations } from "@/new/photos/services/migration";
import { initML, isMLSupported } from "@/new/photos/services/ml";
import { getFamilyPortalRedirectURL } from "@/new/photos/services/user-details";
@@ -189,18 +184,16 @@ const App: React.FC<AppProps> = ({ Component, pageProps }) => {
<ThemedLoadingBar ref={loadingBarRef} />
<AttributedMiniDialog
- sx={{ zIndex: aboveGalleryContentZ }}
+ sx={{ zIndex: aboveFileViewerContentZ }}
{...miniDialogProps}
/>
<Notification {...notificationProps} />
- {wipDesktopCustomTitlebar && (
- <WindowTitlebar>{title}</WindowTitlebar>
- )}
+ {isDesktop && <WindowTitlebar>{title}</WindowTitlebar>}
<AppContext.Provider value={appContext}>
{!isI18nReady ? (
- <LoadingOverlay />
+ <LoadingIndicator />
) : (
<>
{isChangingRoute && <TranslucentLoadingOverlay />}
@@ -229,10 +222,11 @@ const WindowTitlebar: React.FC<React.PropsWithChildren> = ({ children }) => (
);
// See: [Note: Customize the desktop title bar]
-const WindowTitlebarArea = styled(CenteredFlex)`
+const WindowTitlebarArea = styled(CenteredRow)`
width: 100%;
height: env(titlebar-area-height, 30px /* fallback */);
- display: flex;
- /* Allow using the titlebar to drag the window */
+ /* LoadingIndicator is 100vh, so resist shrinking when shown with it. */
+ flex-shrink: 0;
+ /* Allow using the titlebar to drag the window. */
app-region: drag;
`;
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index 8463813a1a..4aaf841a5f 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -1,7 +1,8 @@
import { sessionExpiredDialogAttributes } from "@/accounts/components/utils/dialog";
import { stashRedirect } from "@/accounts/services/redirect";
import type { MiniDialogAttributes } from "@/base/components/MiniDialog";
-import { NavbarBaseNormalFlow } from "@/base/components/Navbar";
+import { NavbarBase } from "@/base/components/Navbar";
+import { CenteredRow } from "@/base/components/containers";
import { TranslucentLoadingOverlay } from "@/base/components/loaders";
import type { ButtonishProps } from "@/base/components/mui";
import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";
@@ -66,7 +67,7 @@ import {
} from "@/new/photos/services/user-details";
import { useAppContext } from "@/new/photos/types/context";
import { splitByPredicate } from "@/utils/array";
-import { CenteredFlex, FlexWrapper } from "@ente/shared/components/Container";
+import { FlexWrapper } from "@ente/shared/components/Container";
import { PHOTOS_PAGES as PAGES } from "@ente/shared/constants/pages";
import { getRecoveryKey } from "@ente/shared/crypto/helpers";
import { CustomError } from "@ente/shared/error";
@@ -101,7 +102,7 @@ import { FixCreationTime } from "components/FixCreationTime";
import GalleryEmptyState from "components/GalleryEmptyState";
import PhotoFrame from "components/PhotoFrame";
import { ITEM_TYPE, TimeStampListItem } from "components/PhotoList";
-import Sidebar from "components/Sidebar";
+import { Sidebar } from "components/Sidebar";
import { type UploadTypeSelectorIntent } from "components/Upload/UploadTypeSelector";
import Uploader from "components/Upload/Uploader";
import { UploadSelectorInputs } from "components/UploadSelectorInputs";
@@ -854,6 +855,9 @@ const Page: React.FC = () => {
[],
);
+ const showSelectionBar =
+ selected.count > 0 && selected.collectionID === activeCollectionID;
+
if (!user) {
// Don't render until we dispatch "mount" with the logged in user.
return <div></div>;
@@ -901,16 +905,6 @@ const Page: React.FC = () => {
}}
/>
{blockingLoad && <TranslucentLoadingOverlay />}
- {isFirstLoad && (
- <CenteredFlex>
- <Typography
- variant="small"
- sx={{ color: "text.muted" }}
- >
- {t("initial_load_delay_warning")}
- </Typography>
- </CenteredFlex>
- )}
<PlanSelector
{...planSelectorVisibilityProps}
setLoading={(v) => setBlockingLoad(v)}
@@ -940,15 +934,53 @@ const Page: React.FC = () => {
{...fixCreationTimeVisibilityProps}
files={fixCreationTimeFiles}
/>
-
- <NavbarBaseNormalFlow
- sx={{
- mb: "12px",
- px: "24px",
- "@media (width < 720px)": { px: "4px" },
- }}
+ <NavbarBase
+ sx={[
+ {
+ mb: "12px",
+ px: "24px",
+ "@media (width < 720px)": { px: "4px" },
+ },
+ showSelectionBar && { borderColor: "accent.main" },
+ ]}
>
- {barMode == "hidden-albums" ? (
+ {showSelectionBar ? (
+ <SelectedFileOptions
+ handleCollectionOps={collectionOpsHelper}
+ handleFileOps={fileOpsHelper}
+ showCreateCollectionModal={
+ showCreateCollectionModal
+ }
+ onOpenCollectionSelector={
+ handleOpenCollectionSelector
+ }
+ count={selected.count}
+ ownCount={selected.ownCount}
+ clearSelection={clearSelection}
+ barMode={barMode}
+ activeCollectionID={activeCollectionID}
+ selectedCollection={getSelectedCollection(
+ selected.collectionID,
+ collections,
+ )}
+ isFavoriteCollection={
+ collectionSummaries.get(activeCollectionID)
+ ?.type == "favorites"
+ }
+ isUncategorizedCollection={
+ collectionSummaries.get(activeCollectionID)
+ ?.type == "uncategorized"
+ }
+ isIncomingSharedCollection={
+ collectionSummaries.get(activeCollectionID)
+ ?.type == "incomingShareCollaborator" ||
+ collectionSummaries.get(activeCollectionID)
+ ?.type == "incomingShareViewer"
+ }
+ isInSearchMode={isInSearchMode}
+ isInHiddenSection={barMode == "hidden-albums"}
+ />
+ ) : barMode == "hidden-albums" ? (
<HiddenSectionNavbarContents
onBack={() => dispatch({ type: "showAlbums" })}
/>
@@ -964,11 +996,15 @@ const Page: React.FC = () => {
onSelectPeople: () =>
dispatch({ type: "showPeople" }),
onSelectPerson: (personID) =>
- dispatch({ type: "showPerson", personID }),
+ dispatch({
+ type: "showPerson",
+ personID,
+ }),
}}
/>
)}
- </NavbarBaseNormalFlow>
+ </NavbarBase>
+ {isFirstLoad && <FirstLoadMessage />}
{isOffline && <OfflineMessage />}
<GalleryBarAndListHeader
@@ -1085,44 +1121,6 @@ const Page: React.FC = () => {
}}
/>
)}
- {selected.count > 0 &&
- selected.collectionID === activeCollectionID && (
- <SelectedFileOptions
- handleCollectionOps={collectionOpsHelper}
- handleFileOps={fileOpsHelper}
- showCreateCollectionModal={
- showCreateCollectionModal
- }
- onOpenCollectionSelector={
- handleOpenCollectionSelector
- }
- count={selected.count}
- ownCount={selected.ownCount}
- clearSelection={clearSelection}
- barMode={barMode}
- activeCollectionID={activeCollectionID}
- selectedCollection={getSelectedCollection(
- selected.collectionID,
- collections,
- )}
- isFavoriteCollection={
- collectionSummaries.get(activeCollectionID)
- ?.type == "favorites"
- }
- isUncategorizedCollection={
- collectionSummaries.get(activeCollectionID)
- ?.type == "uncategorized"
- }
- isIncomingSharedCollection={
- collectionSummaries.get(activeCollectionID)
- ?.type == "incomingShareCollaborator" ||
- collectionSummaries.get(activeCollectionID)
- ?.type == "incomingShareViewer"
- }
- isInSearchMode={isInSearchMode}
- isInHiddenSection={barMode == "hidden-albums"}
- />
- )}
<Export
{...exportVisibilityProps}
collectionNameMap={state.allCollectionNameByID}
@@ -1139,6 +1137,14 @@ const Page: React.FC = () => {
export default Page;
+const FirstLoadMessage: React.FC = () => (
+ <CenteredRow>
+ <Typography variant="small" sx={{ color: "text.muted" }}>
+ {t("initial_load_delay_warning")}
+ </Typography>
+ </CenteredRow>
+);
+
const OfflineMessage: React.FC = () => (
<Typography
variant="small"
diff --git a/web/apps/photos/src/pages/index.tsx b/web/apps/photos/src/pages/index.tsx
index 5888827b9e..695fdec9d6 100644
--- a/web/apps/photos/src/pages/index.tsx
+++ b/web/apps/photos/src/pages/index.tsx
@@ -1,6 +1,6 @@
import { LoginContents } from "@/accounts/components/LoginContents";
import { SignUpContents } from "@/accounts/components/SignUpContents";
-import { CenteredFill, CenteredFlex } from "@/base/components/containers";
+import { CenteredFill, CenteredRow } from "@/base/components/containers";
import { EnteLogo } from "@/base/components/EnteLogo";
import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";
import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";
@@ -300,7 +300,7 @@ const MobileBoxFooter: React.FC<MobileBoxFooterProps> = ({ host }) => {
);
};
-const DesktopBox = styled(CenteredFlex)`
+const DesktopBox = styled(CenteredRow)`
flex-shrink: 0;
flex-grow: 2;
flex-basis: auto;
diff --git a/web/apps/photos/src/pages/shared-albums.tsx b/web/apps/photos/src/pages/shared-albums.tsx
index 84db7a957a..8923448ce8 100644
--- a/web/apps/photos/src/pages/shared-albums.tsx
+++ b/web/apps/photos/src/pages/shared-albums.tsx
@@ -2,10 +2,7 @@ import {
AccountsPageContents,
AccountsPageTitle,
} from "@/accounts/components/layouts/centered-paper";
-import {
- SpaceBetweenFlex,
- Stack100vhCenter,
-} from "@/base/components/containers";
+import { SpacedRow, Stack100vhCenter } from "@/base/components/containers";
import { EnteLogo } from "@/base/components/EnteLogo";
import {
LoadingIndicator,
@@ -13,7 +10,7 @@ import {
} from "@/base/components/loaders";
import type { ButtonishProps } from "@/base/components/mui";
import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";
-import { NavbarBase, SelectionBar } from "@/base/components/Navbar";
+import { NavbarBase } from "@/base/components/Navbar";
import {
OverflowMenu,
OverflowMenuOption,
@@ -42,10 +39,7 @@ import {
} from "@/new/photos/services/collection";
import { sortFiles } from "@/new/photos/services/files";
import { useAppContext } from "@/new/photos/types/context";
-import {
- CenteredFlex,
- FluidContainer,
-} from "@ente/shared/components/Container";
+import { CenteredFlex } from "@ente/shared/components/Container";
import SingleInputForm, {
type SingleInputFormProps,
} from "@ente/shared/components/SingleInputForm";
@@ -518,7 +512,33 @@ export default function PublicCollectionGallery() {
getFolderSelectorInputProps,
}}
/>
- <SharedAlbumNavbar onAddPhotos={onAddPhotos} />
+ <NavbarBase
+ sx={{
+ mb: "16px",
+ px: "24px",
+ "@media (width < 720px)": { px: "4px" },
+ }}
+ >
+ {selected.count > 0 ? (
+ <SelectedFileOptions
+ downloadFilesHelper={downloadFilesHelper}
+ clearSelection={clearSelection}
+ count={selected.count}
+ />
+ ) : (
+ <SpacedRow sx={{ flex: 1 }}>
+ <EnteLogoLink href="https://ente.io">
+ <EnteLogo height={15} />
+ </EnteLogoLink>
+ {onAddPhotos ? (
+ <AddPhotosButton onClick={onAddPhotos} />
+ ) : (
+ <GoToEnte />
+ )}
+ </SpacedRow>
+ )}
+ </NavbarBase>
+
<PhotoFrame
files={publicFiles}
syncWithRemote={syncWithRemote}
@@ -558,39 +578,11 @@ export default function PublicCollectionGallery() {
attributesList={filesDownloadProgressAttributesList}
setAttributesList={setFilesDownloadProgressAttributesList}
/>
- {selected.count > 0 && (
- <SelectedFileOptions
- downloadFilesHelper={downloadFilesHelper}
- clearSelection={clearSelection}
- count={selected.count}
- />
- )}
</FullScreenDropZone>
</PublicCollectionGalleryContext.Provider>
);
}
-interface SharedAlbumNavbarProps {
- /**
- * If provided, then an "Add Photos" button will be shown in the navbar, and
- * this function will be called when it is clicked.
- */
- onAddPhotos: (() => void) | undefined;
-}
-
-const SharedAlbumNavbar: React.FC<SharedAlbumNavbarProps> = ({
- onAddPhotos,
-}) => (
- <NavbarBase>
- <FluidContainer>
- <EnteLogoLink href="https://ente.io">
- <EnteLogo height={15} />
- </EnteLogoLink>
- </FluidContainer>
- {onAddPhotos ? <AddPhotosButton onClick={onAddPhotos} /> : <GoToEnte />}
- </NavbarBase>
-);
-
const EnteLogoLink = styled("a")(({ theme }) => ({
// Remove the excess space at the top.
svg: { verticalAlign: "middle" },
@@ -662,27 +654,24 @@ const SelectedFileOptions: React.FC<SelectedFileOptionsProps> = ({
downloadFilesHelper,
count,
clearSelection,
-}) => {
- return (
- <SelectionBar>
- <FluidContainer>
- <IconButton onClick={clearSelection}>
- <CloseIcon />
- </IconButton>
- <Box sx={{ ml: 1.5 }}>
- {t("selected_count", { selected: count })}
- </Box>
- </FluidContainer>
- <Stack direction="row" sx={{ gap: 2, mr: 2 }}>
- <Tooltip title={t("download")}>
- <IconButton onClick={downloadFilesHelper}>
- <DownloadIcon />
- </IconButton>
- </Tooltip>
- </Stack>
- </SelectionBar>
- );
-};
+}) => (
+ <Stack
+ direction="row"
+ sx={{ flex: 1, gap: 2, alignItems: "center", mr: 1 }}
+ >
+ <IconButton onClick={clearSelection}>
+ <CloseIcon />
+ </IconButton>
+ <Typography sx={{ mr: "auto" }}>
+ {t("selected_count", { selected: count })}
+ </Typography>
+ <Tooltip title={t("download")}>
+ <IconButton onClick={downloadFilesHelper}>
+ <DownloadIcon />
+ </IconButton>
+ </Tooltip>
+ </Stack>
+);
interface ListHeaderProps {
publicCollection: Collection;
@@ -714,7 +703,7 @@ const ListHeader: React.FC<ListHeaderProps> = ({
return (
<GalleryItemsHeaderAdapter>
- <SpaceBetweenFlex>
+ <SpacedRow>
<GalleryItemsSummary
name={publicCollection.name}
fileCount={publicFiles.length}
@@ -729,7 +718,7 @@ const ListHeader: React.FC<ListHeaderProps> = ({
</OverflowMenuOption>
</OverflowMenu>
)}
- </SpaceBetweenFlex>
+ </SpacedRow>
</GalleryItemsHeaderAdapter>
);
};
diff --git a/web/apps/photos/src/services/export/index.ts b/web/apps/photos/src/services/export/index.ts
index ee9c15941b..bd5394c792 100644
--- a/web/apps/photos/src/services/export/index.ts
+++ b/web/apps/photos/src/services/export/index.ts
@@ -5,11 +5,7 @@ import { downloadManager } from "@/gallery/services/download";
import { writeStream } from "@/gallery/utils/native-stream";
import type { Collection } from "@/media/collection";
import { mergeMetadata, type EnteFile } from "@/media/file";
-import {
- fileCreationPhotoDate,
- fileLocation,
- type Metadata,
-} from "@/media/file-metadata";
+import { fileLocation, type Metadata } from "@/media/file-metadata";
import { FileType } from "@/media/file-type";
import { decodeLivePhoto } from "@/media/live-photo";
import {
@@ -1392,7 +1388,10 @@ const getGoogleLikeMetadataFile = (
dateTimeFormatter: Intl.DateTimeFormat,
) => {
const metadata: Metadata = file.metadata;
- const creationTime = Math.floor(metadata.creationTime / 1e6);
+ const publicMagicMetadata = file.pubMagicMetadata?.data;
+ const creationTime = Math.floor(
+ (publicMagicMetadata?.editedTime ?? metadata.creationTime) / 1e6,
+ );
const modificationTime = Math.floor(
(metadata.modificationTime ?? metadata.creationTime) / 1e6,
);
@@ -1400,9 +1399,7 @@ const getGoogleLikeMetadataFile = (
title: fileExportName,
creationTime: {
timestamp: creationTime,
- formatted: dateTimeFormatter.format(
- fileCreationPhotoDate(file, file.pubMagicMetadata?.data),
- ),
+ formatted: dateTimeFormatter.format(creationTime * 1000),
},
modificationTime: {
timestamp: modificationTime,
diff --git a/web/apps/photos/src/styles/global.css b/web/apps/photos/src/styles/global.css
index 9c4f6354fc..d480d0dc6b 100644
--- a/web/apps/photos/src/styles/global.css
+++ b/web/apps/photos/src/styles/global.css
@@ -35,6 +35,25 @@ body {
object-fit: contain;
}
+/* Need this in CSS instead of as an inline style to increase specificity. */
+.pswp__top-bar.pswp__top-bar {
+ top: var(--ente-pswp-top-bar-top, 0px);
+}
+
+/* Shift the top bar by --ente-pswp-top-bar-top, and add a before pseudo element
+ with the same color to fill in the custom app title bar.
+
+ See: [Note: Customize the desktop title bar] */
+.pswp__top-bar::before {
+ content: "";
+ position: absolute;
+ top: calc(-1 * var(--ente-pswp-top-bar-top, 0px));
+ left: 0;
+ height: var(--ente-pswp-top-bar-top, 0px);
+ width: 100%;
+ background-color: rgba(0 0 0 / 0.3);
+}
+
.pswp-item-container > * {
position: absolute;
transition: opacity 1s ease;
diff --git a/web/packages/accounts/components/CodeBlock.tsx b/web/packages/accounts/components/CodeBlock.tsx
index 291503d073..955312b964 100644
--- a/web/packages/accounts/components/CodeBlock.tsx
+++ b/web/packages/accounts/components/CodeBlock.tsx
@@ -1,8 +1,10 @@
-import { CenteredFlex } from "@/base/components/containers";
-import { CopyButton } from "@/base/components/CopyButton";
+import { CenteredRow } from "@/base/components/containers";
import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";
-import { Box, Typography } from "@mui/material";
-import React from "react";
+import ContentCopyIcon from "@mui/icons-material/ContentCopy";
+import DoneIcon from "@mui/icons-material/Done";
+import { Box, IconButton, Tooltip, Typography } from "@mui/material";
+import { t } from "i18next";
+import React, { useState } from "react";
interface CodeBlockProps {
/**
@@ -20,9 +22,9 @@ interface CodeBlockProps {
export const CodeBlock: React.FC<CodeBlockProps> = ({ code }) => {
if (!code) {
return (
- <CenteredFlex sx={{ minHeight: "80px" }}>
+ <CenteredRow sx={{ minHeight: "80px" }}>
<ActivityIndicator />
- </CenteredFlex>
+ </CenteredRow>
);
}
@@ -46,8 +48,35 @@ export const CodeBlock: React.FC<CodeBlockProps> = ({ code }) => {
{code}
</Typography>
<Box sx={{ position: "absolute", top: 0, right: 0, mt: 1 }}>
- <CopyButton color="accentContrastText" code={code} />
+ <CopyButton code={code} />
</Box>
</Box>
);
};
+
+interface CopyButtonProps {
+ /**
+ * The code to copy when the button is clicked.
+ */
+ code: string;
+}
+
+export const CopyButton: React.FC<CopyButtonProps> = ({ code }) => {
+ const [copied, setCopied] = useState(false);
+
+ const handleClick = () =>
+ void navigator.clipboard.writeText(code).then(() => {
+ setCopied(true);
+ setTimeout(() => setCopied(false), 1000);
+ });
+
+ const Icon = copied ? DoneIcon : ContentCopyIcon;
+
+ return (
+ <Tooltip arrow open={copied} title={t("copied")}>
+ <IconButton onClick={handleClick}>
+ <Icon sx={{ color: "accent.contrastText" }} fontSize="small" />
+ </IconButton>
+ </Tooltip>
+ );
+};
diff --git a/web/packages/accounts/components/RecoveryKey.tsx b/web/packages/accounts/components/RecoveryKey.tsx
index 82d441d3cc..67f69f1675 100644
--- a/web/packages/accounts/components/RecoveryKey.tsx
+++ b/web/packages/accounts/components/RecoveryKey.tsx
@@ -1,5 +1,5 @@
import { type MiniDialogAttributes } from "@/base/components/MiniDialog";
-import { SpaceBetweenFlex } from "@/base/components/containers";
+import { SpacedRow } from "@/base/components/containers";
import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";
import { errorDialogAttributes } from "@/base/components/utils/dialog";
import { useIsSmallWidth } from "@/base/components/utils/hooks";
@@ -74,10 +74,10 @@ export const RecoveryKey: React.FC<RecoveryKeyProps> = ({
maxWidth="xs"
fullWidth
>
- <SpaceBetweenFlex sx={{ p: "8px 4px 8px 0" }}>
+ <SpacedRow sx={{ p: "8px 4px 8px 0" }}>
<DialogTitle variant="h3">{t("recovery_key")}</DialogTitle>
<DialogCloseIconButton {...{ onClose }} />
- </SpaceBetweenFlex>
+ </SpacedRow>
<DialogContent>
<Typography sx={{ mb: 3 }}>
{t("recovery_key_description")}
diff --git a/web/packages/accounts/components/layouts/centered-paper.tsx b/web/packages/accounts/components/layouts/centered-paper.tsx
index b61143098e..434c553143 100644
--- a/web/packages/accounts/components/layouts/centered-paper.tsx
+++ b/web/packages/accounts/components/layouts/centered-paper.tsx
@@ -1,6 +1,6 @@
import { CenteredFill } from "@/base/components/containers";
import { EnteLogo } from "@/base/components/EnteLogo";
-import { NavbarBaseNormalFlow } from "@/base/components/Navbar";
+import { NavbarBase } from "@/base/components/Navbar";
import { Paper, Stack, styled, Typography } from "@mui/material";
/**
@@ -20,7 +20,7 @@ export const AccountsPageContents: React.FC<React.PropsWithChildren> = ({
children,
}) => (
<Stack sx={{ minHeight: "100svh" }}>
- <NavbarBaseNormalFlow
+ <NavbarBase
sx={[
(theme) =>
theme.applyStyles("light", {
@@ -29,7 +29,7 @@ export const AccountsPageContents: React.FC<React.PropsWithChildren> = ({
]}
>
<EnteLogo />
- </NavbarBaseNormalFlow>
+ </NavbarBase>
<CenteredFill
sx={[
{ bgcolor: "accent.main" },
diff --git a/web/packages/base/app.ts b/web/packages/base/app.ts
index 9dd56c1f35..74b891a9c0 100644
--- a/web/packages/base/app.ts
+++ b/web/packages/base/app.ts
@@ -40,9 +40,6 @@ export const appName: AppName = process.env.appName as AppName;
*/
export const isDesktop = process.env.isDesktop == "1";
-export const wipDesktopCustomTitlebar =
- isDesktop && process.env.NEXT_PUBLIC_ENTE_WIP_TITLEBAR == "1";
-
/**
* Version of the desktop app.
*
diff --git a/web/packages/base/components/CopyButton.tsx b/web/packages/base/components/CopyButton.tsx
deleted file mode 100644
index a86fb79273..0000000000
--- a/web/packages/base/components/CopyButton.tsx
+++ /dev/null
@@ -1,65 +0,0 @@
-import ContentCopyIcon from "@mui/icons-material/ContentCopy";
-import DoneIcon from "@mui/icons-material/Done";
-import { IconButton, Tooltip, type SvgIconProps } from "@mui/material";
-import { t } from "i18next";
-import { useCallback, useState } from "react";
-
-interface CopyButtonProps {
- /**
- * The code to copy when the button is clicked.
- */
- code: string;
- /**
- * The button color.
- *
- * - "secondary" maps to the normal "secondary" for icon buttons.
- * - "accentContrastText" is for use over an accented background.
- */
- color: "secondary" | "accentContrastText";
- /**
- * The size of the icon.
- *
- * Default: "small"
- */
- size?: SvgIconProps["fontSize"];
-}
-
-export const CopyButton: React.FC<CopyButtonProps> = ({
- code,
- color,
- size = "small",
-}) => {
- const [copied, setCopied] = useState(false);
-
- const handleClick = useCallback(() => {
- void navigator.clipboard.writeText(code).then(() => {
- setCopied(true);
- setTimeout(() => setCopied(false), 1000);
- });
- }, [code]);
-
- const Icon = copied ? DoneIcon : ContentCopyIcon;
-
- return (
- <Tooltip
- arrow
- open={copied}
- title={t("copied")}
- slotProps={{ popper: { sx: { zIndex: 2000 } } }}
- >
- <IconButton
- onClick={handleClick}
- {...(color == "secondary" ? { color } : {})}
- >
- <Icon
- sx={[
- color == "accentContrastText" && {
- color: "accent.contrastText",
- },
- ]}
- fontSize={size}
- />
- </IconButton>
- </Tooltip>
- );
-};
diff --git a/web/packages/base/components/MiniDialog.tsx b/web/packages/base/components/MiniDialog.tsx
index b2df458311..c9ffd04692 100644
--- a/web/packages/base/components/MiniDialog.tsx
+++ b/web/packages/base/components/MiniDialog.tsx
@@ -316,7 +316,7 @@ export const AttributedMiniDialog: React.FC<
)}
{children}
<Stack
- sx={{ paddingBlockStart: "24px", gap: "8px" }}
+ sx={{ pt: 3, gap: 1 }}
direction={attributes.buttonDirection ?? "column"}
>
{phase == "failed" && <InlineErrorIndicator />}
diff --git a/web/packages/base/components/Navbar.tsx b/web/packages/base/components/Navbar.tsx
index b1ba7c5710..75edd810d5 100644
--- a/web/packages/base/components/Navbar.tsx
+++ b/web/packages/base/components/Navbar.tsx
@@ -1,34 +1,6 @@
-import { EnteLogo } from "@/base/components/EnteLogo";
-import { FlexWrapper } from "@ente/shared/components/Container";
import { styled } from "@mui/material";
-import React from "react";
-/**
- * The "bar" at the top of the screen.
- *
- * Usually this area contains the App's main navigation bar ({@link AppNavbar}),
- * but depending on the context it can also show the {@link SelectionBar}.
- *
- * TODO: Deprecated. Use NavbarBaseNormalFlow instead.
- */
-export const NavbarBase = styled(FlexWrapper)(
- ({ theme }) => `
- min-height: 64px;
- position: sticky;
- top: 0;
- left: 0;
- z-index: 10;
- border-bottom: 1px solid ${theme.vars.palette.divider};
- background-color: ${theme.vars.palette.background.default};
- margin-bottom: 16px;
- padding: 0 24px;
- @media (max-width: 720px) {
- padding: 0 4px;
- }
-`,
-);
-
-export const NavbarBaseNormalFlow = styled("div")(
+export const NavbarBase = styled("div")(
({ theme }) => `
flex: 0 0 64px;
display: flex;
@@ -37,18 +9,3 @@ export const NavbarBaseNormalFlow = styled("div")(
border-bottom: 1px solid ${theme.vars.palette.divider};
`,
);
-
-/**
- * A variant of AppNavbar that places itself normally in the document flow
- * instead of using a fixed positioning.
- */
-export const AppNavbarNormalFlow: React.FC = () => (
- <NavbarBaseNormalFlow>
- <EnteLogo />
- </NavbarBaseNormalFlow>
-);
-
-export const SelectionBar = styled(NavbarBase)`
- position: fixed;
- z-index: 12;
-`;
diff --git a/web/packages/base/components/OverflowMenu.tsx b/web/packages/base/components/OverflowMenu.tsx
index 0fceb02240..99b7692b1f 100644
--- a/web/packages/base/components/OverflowMenu.tsx
+++ b/web/packages/base/components/OverflowMenu.tsx
@@ -144,7 +144,7 @@ export const OverflowMenuOption: React.FC<
// Fill our container.
width: "100%",
// MUI has responsive padding, use a static value instead.
- paddingBlock: 1,
+ py: 1,
}}
>
{startIcon}
diff --git a/web/packages/base/components/RowButton.tsx b/web/packages/base/components/RowButton.tsx
index 08e822c6ad..d596058efc 100644
--- a/web/packages/base/components/RowButton.tsx
+++ b/web/packages/base/components/RowButton.tsx
@@ -51,29 +51,17 @@ export const RowButtonGroupHint: React.FC<React.PropsWithChildren> = ({
}) => (
<Typography
variant="small"
- sx={{ color: "text.muted", px: "8px", py: "6px" }}
+ sx={{ color: "text.faint", px: "16px", py: "6px" }}
>
{children}
</Typography>
);
-interface RowButtonDividerProps {
- /**
- * If true, then the divider leaves the leading edge hanging which visually
- * looks better when used to separate buttons which have leading icons.
- */
- hasIcon?: boolean;
-}
-
/**
* A divider for buttons in a {@link RowButtonGroup}.
*/
-export const RowButtonDivider: React.FC<RowButtonDividerProps> = ({
- hasIcon,
-}) => (
- <Divider
- sx={[{ "&&&": { my: 0 } }, hasIcon ? { ml: "48px" } : { ml: "16px" }]}
- />
+export const RowButtonDivider = () => (
+ <Divider sx={{ "&&&": { mttty: 0 }, opacity: 0.4 }} />
);
/**
diff --git a/web/packages/base/components/SingleInputDialog.tsx b/web/packages/base/components/SingleInputDialog.tsx
index d769d3427c..aa45ab65ad 100644
--- a/web/packages/base/components/SingleInputDialog.tsx
+++ b/web/packages/base/components/SingleInputDialog.tsx
@@ -36,10 +36,10 @@ export const SingleInputDialog: React.FC<SingleInputDialogProps> = ({
onClose={onClose}
maxWidth="xs"
fullWidth
- slotProps={{ paper: { sx: { padding: "8px 4px 4px 4px" } } }}
+ slotProps={{ paper: { sx: { p: "8px 4px 4px 4px" } } }}
>
<DialogTitle>{title}</DialogTitle>
- <DialogContent sx={{ "&&&": { paddingBlockStart: 0 } }}>
+ <DialogContent sx={{ "&&&": { pt: 0 } }}>
<SingleInputForm
onCancel={onClose}
onSubmit={handleSubmit}
diff --git a/web/packages/base/components/containers.tsx b/web/packages/base/components/containers.tsx
index d3aaa0558c..d2ae57d3ad 100644
--- a/web/packages/base/components/containers.tsx
+++ b/web/packages/base/components/containers.tsx
@@ -11,32 +11,33 @@ export const Stack100vhCenter = styled(Stack)`
`;
/**
- * A flexbox with justify content set to space-between and center alignment.
+ * A flexbox with justify content set to space-between and item alignment set to
+ * center.
*
* There is also another SpaceBetweenFlex in the old shared package, but that
* one also sets width: 100%. As such, that one should be considered deprecated
* and its uses moved to this one when possible (so that we can then see where
* the width: 100% is essential).
*/
-export const SpaceBetweenFlex = styled("div")`
+export const SpacedRow = styled("div")`
display: flex;
justify-content: space-between;
align-items: center;
`;
/**
- * A flex child that shows its children after centering them both vertically and
+ * A flexbox that shows its children after centering them both vertically and
* horizontally.
*/
-export const CenteredFlex = styled("div")`
+export const CenteredRow = styled("div")`
display: flex;
justify-content: center;
align-items: center;
`;
/**
- * A flex child that fills the entire flex direction, and shows its children
- * after centering them both vertically and horizontally.
+ * A flexbox that fills the entire flex direction, and shows its children after
+ * centering them both vertically and horizontally.
*/
export const CenteredFill = styled("div")`
flex: 1;
diff --git a/web/packages/base/components/loaders.tsx b/web/packages/base/components/loaders.tsx
index ef657bd0fc..64584009d9 100644
--- a/web/packages/base/components/loaders.tsx
+++ b/web/packages/base/components/loaders.tsx
@@ -1,4 +1,4 @@
-import { Overlay, Stack100vhCenter } from "@/base/components/containers";
+import { Stack100vhCenter } from "@/base/components/containers";
import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";
import { Backdrop } from "@mui/material";
import React from "react";
@@ -15,32 +15,12 @@ export const LoadingIndicator: React.FC = () => (
</Stack100vhCenter>
);
-/**
- * An opaque overlay that covers the entire viewport and shows an activity
- * indicator in its center.
- *
- * Useful as a top level "blocking" overscreen while the app is being loaded.
- */
-export const LoadingOverlay: React.FC = () => (
- <Overlay
- sx={{
- display: "flex",
- justifyContent: "center",
- alignItems: "center",
- zIndex: 2000,
- backgroundColor: "background.default",
- }}
- >
- <ActivityIndicator />
- </Overlay>
-);
-
/**
* An translucent overlay that covers the entire viewport and shows an activity
* indicator in its center.
*
- * Used as a overscreen during blocking actions. The use of this component is
- * not recommended for new code.
+ * Used as a overlay during blocking actions. The use of this component is not
+ * recommended for new code.
*/
export const TranslucentLoadingOverlay: React.FC = () => (
<Backdrop
@@ -52,8 +32,10 @@ export const TranslucentLoadingOverlay: React.FC = () => (
sx={{
backgroundColor: "var(--mui-palette-backdrop-muted)",
backdropFilter: "blur(30px) opacity(95%)",
- // TODO: Why is this zIndex override required? + use a constant.
- zIndex: 9000,
+ // This is `aboveFileViewerContentZ + delta`. Cannot use a constant
+ // here since this is used outside photos too. Eventually just get
+ // rid of this component, merging it to specific uses.
+ zIndex: 2000 /* aboveFileViewerContentZ + delta */,
}}
>
<ActivityIndicator />
diff --git a/web/packages/base/components/mui/SidebarDrawer.tsx b/web/packages/base/components/mui/SidebarDrawer.tsx
index fdbb609fbf..6c96b47859 100644
--- a/web/packages/base/components/mui/SidebarDrawer.tsx
+++ b/web/packages/base/components/mui/SidebarDrawer.tsx
@@ -1,3 +1,5 @@
+import { isDesktop } from "@/base/app";
+import type { ModalVisibilityProps } from "@/base/components/utils/modal";
import ArrowBackIcon from "@mui/icons-material/ArrowBack";
import CloseIcon from "@mui/icons-material/Close";
import {
@@ -10,8 +12,6 @@ import {
type DrawerProps,
} from "@mui/material";
import React from "react";
-import { wipDesktopCustomTitlebar } from "../../app";
-import type { ModalVisibilityProps } from "../utils/modal";
/**
* A MUI {@link Drawer} with a standard set of styling that we use for our left
@@ -36,7 +36,7 @@ export const SidebarDrawer: React.FC<DrawerProps> = ({ children, ...rest }) => (
},
}}
>
- {wipDesktopCustomTitlebar && <AppTitlebarBackdrop />}
+ {isDesktop && <AppTitlebarBackdrop />}
<Box sx={{ p: 1 }}>{children}</Box>
</Drawer>
);
@@ -56,9 +56,9 @@ const AppTitlebarBackdrop = styled("div")(({ theme }) => ({
left: 0,
width: "100%",
minHeight: "env(titlebar-area-height, 30px)",
- bgcolor: theme.vars.palette.backdrop.muted,
- backdropFilter: "blur(3px)",
- zIndex: 10000,
+ zIndex: 1,
+ backgroundColor: theme.vars.palette.backdrop.muted,
+ backdropFilter: "blur(12px)",
}));
/**
diff --git a/web/packages/base/locales/ar-SA/translation.json b/web/packages/base/locales/ar-SA/translation.json
index 957dd62f93..89b4e7dcd1 100644
--- a/web/packages/base/locales/ar-SA/translation.json
+++ b/web/packages/base/locales/ar-SA/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "تم تغيير كلمة المرور في مكان آخر",
"password_changed_elsewhere_message": "يرجى تسجيل الدخول مرة أخرى على هذا الجهاز لاستخدام كلمة المرور الجديدة للمصادقة.",
"go_back": "رجوع",
+ "account": "",
"recovery_key": "مفتاح الاستعادة",
"do_this_later": "قم بهذا لاحقا",
"save_key": "حفظ المفتاح",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "بسبب طبيعة نظام التشفير التام بين الطرفين، لا يمكن فك تشفير بياناتك دون كلمة المرور أو مفتاح الاسترداد الخاص بك",
"no_two_factor_recovery_key_message": "",
"contact_support": "الاتصال بالدعم",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "طلب ميزة",
"support": "الدعم",
"cancel": "إلغاء",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/be-BY/translation.json b/web/packages/base/locales/be-BY/translation.json
index 3c43a66236..933199338a 100644
--- a/web/packages/base/locales/be-BY/translation.json
+++ b/web/packages/base/locales/be-BY/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "",
"go_back": "",
+ "account": "",
"recovery_key": "",
"do_this_later": "",
"save_key": "",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "",
"contact_support": "",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "",
"support": "",
"cancel": "",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/bg-BG/translation.json b/web/packages/base/locales/bg-BG/translation.json
index e45dee6afc..b484e2c955 100644
--- a/web/packages/base/locales/bg-BG/translation.json
+++ b/web/packages/base/locales/bg-BG/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "",
"go_back": "",
+ "account": "",
"recovery_key": "",
"do_this_later": "",
"save_key": "",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "",
"contact_support": "",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "",
"support": "",
"cancel": "",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/ca-ES/translation.json b/web/packages/base/locales/ca-ES/translation.json
index b58cc7f07d..e6f4c65fd6 100644
--- a/web/packages/base/locales/ca-ES/translation.json
+++ b/web/packages/base/locales/ca-ES/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "",
"go_back": "",
+ "account": "",
"recovery_key": "",
"do_this_later": "",
"save_key": "",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "",
"contact_support": "",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "",
"support": "",
"cancel": "",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/da-DK/translation.json b/web/packages/base/locales/da-DK/translation.json
index 994ce10d5a..aaf64f342b 100644
--- a/web/packages/base/locales/da-DK/translation.json
+++ b/web/packages/base/locales/da-DK/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "",
"go_back": "",
+ "account": "",
"recovery_key": "",
"do_this_later": "",
"save_key": "",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "",
"contact_support": "",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "",
"support": "",
"cancel": "",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/de-DE/translation.json b/web/packages/base/locales/de-DE/translation.json
index 73c5075f7c..c57b16b41e 100644
--- a/web/packages/base/locales/de-DE/translation.json
+++ b/web/packages/base/locales/de-DE/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "Passwort anderswo geändert",
"password_changed_elsewhere_message": "Bitte melde dich erneut auf diesem Gerät an, um dein neues Passwort zur Authentifizierung zu verwenden.",
"go_back": "Zurück",
+ "account": "",
"recovery_key": "Wiederherstellungsschlüssel",
"do_this_later": "Auf später verschieben",
"save_key": "Schlüssel speichern",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "Aufgrund unseres Ende-zu-Ende-Verschlüsselungsprotokolls können Ihre Daten nicht ohne Ihr Passwort oder Ihren Wiederherstellungsschlüssel entschlüsselt werden",
"no_two_factor_recovery_key_message": "Bitte sende eine E-Mail an <a>{{emailID}}</a> von deiner registrierten E-Mail-Adresse",
"contact_support": "Support kontaktieren",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "Feature anfragen",
"support": "Support",
"cancel": "Abbrechen",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "Deine bestehenden Dateien werden nicht gelöscht, aber das verknüpfte Ente-Album wird bei Änderungen in diesem Ordner nicht mehr aktualisiert.",
"yes_stop": "Ja, Stopp",
"change_folder": "Ordner ändern",
- "debug_logs": "Debug-Logs",
- "download_logs": "Logs herunterladen",
- "download_logs_message": "<p>Hier kannst du Debug-Logs herunterladen, die du uns zur Fehleranalyse zusenden kannst.</p><p>Beachte bitte, dass die Logs Dateinamen enthalten, um Probleme mit bestimmten Dateien nachvollziehen zu können.</p>",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "Dein Browser ist nicht leistungsstark genug, um deine Bilder zu verschlüsseln. Versuche, dich an einem Computer bei Ente anzumelden, oder lade dir die Ente-App für dein Gerät (Handy oder Desktop) herunter.",
"drag_and_drop_hint": "Oder ziehe Dateien per Drag-and-Drop in das Ente-Fenster",
"authenticate": "Authentifizieren",
@@ -602,6 +605,7 @@
"reset": "Zurücksetzen",
"faster_upload": "Schnelleres Hochladen",
"faster_upload_description": "Uploads über nahegelegene Server leiten",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "Album auf Fernseher wiedergeben",
"enter_cast_pin_code": "Gib den Code auf dem Fernseher unten ein, um dieses Gerät zu koppeln.",
"code": "",
diff --git a/web/packages/base/locales/el-GR/translation.json b/web/packages/base/locales/el-GR/translation.json
index 1ae6dbbfd0..85f3ac1af4 100644
--- a/web/packages/base/locales/el-GR/translation.json
+++ b/web/packages/base/locales/el-GR/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "Παρακαλώ συνδεθείτε ξανά σε αυτήν τη συσκευή για να χρησιμοποιήσετε το νέο σας κωδικό πρόσβασης για αυθεντικοποίηση.",
"go_back": "Επιστροφή",
+ "account": "",
"recovery_key": "Κλειδί ανάκτησης",
"do_this_later": "Κάντε το αργότερα",
"save_key": "Αποθήκευση Κλειδιού",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "Παρακαλώ αφήστε ένα μήνυμα ηλ. ταχυδρομείου στο <a>{{emailID}}</a> από την καταχωρημένη διεύθυνση σας",
"contact_support": "Επικοινωνήστε με την υποστήριξη",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "Αίτηση λειτουργίας",
"support": "Υποστήριξη",
"cancel": "Ακύρωση",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "Επαναφορά",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "Αναπαραγωγή άλμπουμ στην τηλεόραση",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/en-US/translation.json b/web/packages/base/locales/en-US/translation.json
index 7ec3dabeef..5def46e704 100644
--- a/web/packages/base/locales/en-US/translation.json
+++ b/web/packages/base/locales/en-US/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "Password changed elsewhere",
"password_changed_elsewhere_message": "Please login again on this device to use your new password to authenticate.",
"go_back": "Go back",
+ "account": "Account",
"recovery_key": "Recovery key",
"do_this_later": "Do this later",
"save_key": "Save Key",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "Due to the nature of our end-to-end encryption protocol, your data cannot be decrypted without your password or recovery key",
"no_two_factor_recovery_key_message": "Please drop an email to <a>{{emailID}}</a> from your registered email address",
"contact_support": "Contact support",
+ "help": "Help",
+ "ente_help": "Ente Help",
+ "blog": "Blog",
"request_feature": "Request feature",
"support": "Support",
"cancel": "Cancel",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "Your existing files will not be deleted, but Ente will stop automatically updating the linked Ente album on changes in this folder.",
"yes_stop": "Yes, stop",
"change_folder": "Change Folder",
- "debug_logs": "Debug logs",
- "download_logs": "Download logs",
- "download_logs_message": "<p>This will download debug logs, which you can email to us to help debug your issue.</p><p>Please note that file names will be included to help track issues with specific files.</p>",
+ "view_logs": "View logs",
+ "view_logs_message": "<p>This will show debug logs, which you can email to us to help debug your issue.</p><p>Note that file names will be included to help track issues with specific files.</p>",
"weak_device_hint": "The web browser you're using is not powerful enough to encrypt your photos. Please try to log in to Ente on your computer, or download the Ente mobile/desktop app.",
"drag_and_drop_hint": "Or drag and drop into the Ente window",
"authenticate": "Authenticate",
@@ -602,6 +605,7 @@
"reset": "Reset",
"faster_upload": "Faster uploads",
"faster_upload_description": "Route uploads through nearby servers",
+ "open_ente_on_startup": "Open Ente on startup",
"cast_album_to_tv": "Play album on TV",
"enter_cast_pin_code": "Enter the code you see on the TV below to pair this device.",
"code": "Code",
diff --git a/web/packages/base/locales/es-ES/translation.json b/web/packages/base/locales/es-ES/translation.json
index 5c51eb15bf..625e2d4883 100644
--- a/web/packages/base/locales/es-ES/translation.json
+++ b/web/packages/base/locales/es-ES/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "Contraseña cambiada en otro sitio",
"password_changed_elsewhere_message": "Por favor, inicia sesión de nuevo en este dispositivo para usar tu nueva contraseña.",
"go_back": "Retroceder",
+ "account": "",
"recovery_key": "Clave de recuperación",
"do_this_later": "Hacer más tarde",
"save_key": "Guardar Clave",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "Debido a la naturaleza de nuestro protocolo de cifrado de extremo a extremo, sus datos no pueden ser descifrados sin su contraseña o clave de recuperación",
"no_two_factor_recovery_key_message": "Por favor, envíe un correo electrónico a <a>{{emailID}}</a> desde la dirección de correo electrónico que usó para registrarse",
"contact_support": "Contacta con soporte",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "Solicitar una función",
"support": "Soporte",
"cancel": "Cancelar",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "Tus archivos existentes no serán eliminados, pero ente dejará de actualizar automáticamente el álbum enlazado en caso de cambios en esta carpeta.",
"yes_stop": "Sí, detener",
"change_folder": "Cambiar carpeta",
- "debug_logs": "Logs de depuración",
- "download_logs": "Descargar logs",
- "download_logs_message": "<p>Esto descargará los registros de depuración, que puede enviarnos por correo electrónico para ayudarnos a depurar su problema.</p><p>Tenga en cuenta que los nombres de los archivos se incluirán para ayudar al seguimiento de problemas con archivos específicos.</p>",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "El navegador web que está utilizando no es lo suficientemente poderoso para cifrar sus fotos. Por favor, intente iniciar sesión en ente en su computadora, o descargue la aplicación ente para móvil/escritorio.",
"drag_and_drop_hint": "O arrastre y suelte en la ventana ente",
"authenticate": "Autenticado",
@@ -602,6 +605,7 @@
"reset": "Restablecer",
"faster_upload": "Subidas más rápidas",
"faster_upload_description": "Enrutar subidas a través de servidores cercanos",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "Reproducir álbum en TV",
"enter_cast_pin_code": "Introduce el código que ves en el televisor para emparejar este dispositivo.",
"code": "Código",
diff --git a/web/packages/base/locales/et-EE/translation.json b/web/packages/base/locales/et-EE/translation.json
index b58cc7f07d..e6f4c65fd6 100644
--- a/web/packages/base/locales/et-EE/translation.json
+++ b/web/packages/base/locales/et-EE/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "",
"go_back": "",
+ "account": "",
"recovery_key": "",
"do_this_later": "",
"save_key": "",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "",
"contact_support": "",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "",
"support": "",
"cancel": "",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/fa-IR/translation.json b/web/packages/base/locales/fa-IR/translation.json
index 913e3edb7a..9fa96168e8 100644
--- a/web/packages/base/locales/fa-IR/translation.json
+++ b/web/packages/base/locales/fa-IR/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "",
"go_back": "",
+ "account": "",
"recovery_key": "",
"do_this_later": "",
"save_key": "",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "",
"contact_support": "",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "",
"support": "",
"cancel": "",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/fi-FI/translation.json b/web/packages/base/locales/fi-FI/translation.json
index 5a55de6fd6..31688b3bf6 100644
--- a/web/packages/base/locales/fi-FI/translation.json
+++ b/web/packages/base/locales/fi-FI/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "Salasana vaihdettu muualla",
"password_changed_elsewhere_message": "Ole hyvä ja kirjaudu uudelleen tähän laitteeseen käyttääksesi uutta salasanaasi tunnistautumiseen.",
"go_back": "Palaa",
+ "account": "",
"recovery_key": "Palautusavain",
"do_this_later": "Tee tämä myöhemmin",
"save_key": "Tallenna avain",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "Päästä päähän -salausprotokollamme vuoksi tietojasi ei voida purkaa ilman salasanaa tai palautusavainta",
"no_two_factor_recovery_key_message": "Ole hyvä ja lähetä sähköpostia osoitteeseen <a>{{emailID}}</a> omasta rekisteröidystä sähköpostiosoitteestasi",
"contact_support": "Ota yhteyttä tukeen",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "Pyydä ominaisuutta",
"support": "Tuki",
"cancel": "Peruuta",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/fr-FR/translation.json b/web/packages/base/locales/fr-FR/translation.json
index 9941678803..4f49c9e60c 100644
--- a/web/packages/base/locales/fr-FR/translation.json
+++ b/web/packages/base/locales/fr-FR/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "Mot de passe modifié ailleurs",
"password_changed_elsewhere_message": "Veuillez vous reconnecter sur cet appareil pour utiliser votre nouveau mot de passe pour vous authentifier.",
"go_back": "Retour",
+ "account": "Compte",
"recovery_key": "Clé de récupération",
"do_this_later": "Plus tard",
"save_key": "Sauvegarder la clé",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "En raison de notre protocole de chiffrement de bout en bout, vos données ne peuvent être décryptées sans votre mot de passe ou clé de récupération",
"no_two_factor_recovery_key_message": "Veuillez envoyer un e-mail à <a>{{emailID}}</a> depuis votre adresse enregistrée",
"contact_support": "Contacter le support",
+ "help": "Aide",
+ "ente_help": "Aide Ente",
+ "blog": "Blog",
"request_feature": "Soumettre une idée",
"support": "Support",
"cancel": "Annuler",
@@ -430,7 +434,7 @@
"deduplicate_files": "Déduplication de fichiers",
"remove_duplicates": "Supprimer les doublons",
"total_size": "Poids total",
- "count": "",
+ "count": "Total",
"deselect_all": "Tout déselectionner",
"no_duplicates": "Aucun doublon",
"duplicate_group_description": "{{count}} éléments, {{itemSize}} chacun",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "Vos fichiers existants ne seront pas supprimés, mais Ente arrêtera automatiquement de mettre à jour le lien de l'album à chaque changement sur ce dossier.",
"yes_stop": "Oui, arrêter",
"change_folder": "Modifier le dossier",
- "debug_logs": "Journaux de débugs",
- "download_logs": "Télécharger les logs",
- "download_logs_message": "<p>Cela va télécharger les journaux de débug, que vous pourrez nosu envoyer par e-mail pour nous aider à résoudre votre problàme .</p><p>Veuillez noter que les noms de fichiers seront inclus .</p>",
+ "view_logs": "Afficher les journaux",
+ "view_logs_message": "<p>Cela va afficher les journaux de débug, que vous pourrez ensuite nous envoyer par e-mail afin de nous aider à résoudre votre problème .</p><p>Veuillez noter que les noms de fichiers seront inclus à notre gestion de tickets.</p>",
"weak_device_hint": "Le navigateur que vous utilisez n'est pas assez puissant pour chiffrer vos photos. Veuillez essayer de vous connecter à Ente sur votre ordinateur, ou télécharger l'appli Ente mobile/ordinateur.",
"drag_and_drop_hint": "Sinon glissez déposez dans la fenêtre Ente",
"authenticate": "Authentification",
@@ -602,6 +605,7 @@
"reset": "Réinitialiser",
"faster_upload": "Chargements plus rapides",
"faster_upload_description": "Router les chargements vers les serveurs à proximité",
+ "open_ente_on_startup": "Ouvrir Ente au démarrage",
"cast_album_to_tv": "Jouer l'album sur la TV",
"enter_cast_pin_code": "Entrez le code que vous voyez sur la TV ci-dessous pour appairer cet appareil.",
"code": "Code",
@@ -650,8 +654,8 @@
"server_endpoint": "Point de terminaison serveur",
"more_information": "Plus d'informations",
"save": "Sauvegarder",
- "theme": "",
- "system": "",
- "light": "",
- "dark": ""
+ "theme": "Thème",
+ "system": "Système",
+ "light": "Clair",
+ "dark": "Sombre"
}
diff --git a/web/packages/base/locales/gu-IN/translation.json b/web/packages/base/locales/gu-IN/translation.json
index b58cc7f07d..e6f4c65fd6 100644
--- a/web/packages/base/locales/gu-IN/translation.json
+++ b/web/packages/base/locales/gu-IN/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "",
"go_back": "",
+ "account": "",
"recovery_key": "",
"do_this_later": "",
"save_key": "",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "",
"contact_support": "",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "",
"support": "",
"cancel": "",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/hi-IN/translation.json b/web/packages/base/locales/hi-IN/translation.json
index b58cc7f07d..e6f4c65fd6 100644
--- a/web/packages/base/locales/hi-IN/translation.json
+++ b/web/packages/base/locales/hi-IN/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "",
"go_back": "",
+ "account": "",
"recovery_key": "",
"do_this_later": "",
"save_key": "",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "",
"contact_support": "",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "",
"support": "",
"cancel": "",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/hu-HU/translation.json b/web/packages/base/locales/hu-HU/translation.json
index b58cc7f07d..e6f4c65fd6 100644
--- a/web/packages/base/locales/hu-HU/translation.json
+++ b/web/packages/base/locales/hu-HU/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "",
"go_back": "",
+ "account": "",
"recovery_key": "",
"do_this_later": "",
"save_key": "",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "",
"contact_support": "",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "",
"support": "",
"cancel": "",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/id-ID/translation.json b/web/packages/base/locales/id-ID/translation.json
index c6c8127351..e05baf1b6b 100644
--- a/web/packages/base/locales/id-ID/translation.json
+++ b/web/packages/base/locales/id-ID/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "",
"go_back": "Kembali",
+ "account": "",
"recovery_key": "Kunci pemulihan",
"do_this_later": "Lakukan lain kali",
"save_key": "Simpan Kunci",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "Karena sifat protokol enkripsi ujung ke ujung kami, data kamu tidak dapat didekripsi tanpa sandi atau kunci pemulihan kamu",
"no_two_factor_recovery_key_message": "Silakan kirimkan email ke <a>{{emailID}}</a> dari alamat email terdaftar kamu",
"contact_support": "Hubungi dukungan",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "Minta fitur",
"support": "Dukungan",
"cancel": "Batal",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "Ubah Folder",
- "debug_logs": "Log debug",
- "download_logs": "Unduh log",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "Browser yang saat ini kamu gunakan tidak cukup kuat untuk mengenkripsi fotomu. Silakan coba gunakan Ente di komputer lain, atau unduh app seluler/desktop Ente.",
"drag_and_drop_hint": "Atau seret ke jendela Ente",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "Pengunggahan lebih cepat",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "Putar album di TV",
"enter_cast_pin_code": "Masukkan kode yang ditampilkan TV di bawah untuk menautkan perangkat ini.",
"code": "",
diff --git a/web/packages/base/locales/is-IS/translation.json b/web/packages/base/locales/is-IS/translation.json
index 54ae33b7cb..b914a48c6d 100644
--- a/web/packages/base/locales/is-IS/translation.json
+++ b/web/packages/base/locales/is-IS/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "",
"go_back": "Fara til baka",
+ "account": "",
"recovery_key": "",
"do_this_later": "Gera þetta seinna",
"save_key": "Vista Lykil",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "",
"contact_support": "",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "",
"support": "",
"cancel": "Hætta við",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/it-IT/translation.json b/web/packages/base/locales/it-IT/translation.json
index 341379d345..f951e472b5 100644
--- a/web/packages/base/locales/it-IT/translation.json
+++ b/web/packages/base/locales/it-IT/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "Password cambiata altrove",
"password_changed_elsewhere_message": "Effettua nuovamente il login su questo dispositivo per utilizzare la nuova password per autenticarti.",
"go_back": "Torna indietro",
+ "account": "",
"recovery_key": "Chiave di recupero",
"do_this_later": "Fallo più tardi",
"save_key": "Salva Chiave",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "A causa della natura del nostro protocollo di crittografia end-to-end, i tuoi dati non possono essere decifrati senza la tua password o chiave di ripristino",
"no_two_factor_recovery_key_message": "Per favore invia un'email a <a>{{emailID}}</a> dal tuo indirizzo email registrato",
"contact_support": "Contatta il supporto",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "Richiedi una funzionalità",
"support": "Supporto",
"cancel": "Annulla",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "I tuoi file esistenti non verranno eliminati, ma Ente smetterà di aggiornare automaticamente l'album Ente collegato a questa cartella.",
"yes_stop": "Sì, interrompi",
"change_folder": "Cambia Cartella",
- "debug_logs": "Log di debug",
- "download_logs": "Scarica i log",
- "download_logs_message": "<p>Questo scaricherà il log di debug che puoi inviare via email a noi per aiutare a capire il tuo problema.</p><p>Nota che i nomi dei file saranno inclusi per aiutare a tenere traccia dei problemi con i file specifici.</p>",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "Il browser web che stai usando non è abbastanza potente per crittografare le foto. Prova ad accedere a Ente sul tuo computer o scarica l'app mobile/desktop Ente.",
"drag_and_drop_hint": "Oppure trascina nella finestra di Ente",
"authenticate": "Autenticati",
@@ -602,6 +605,7 @@
"reset": "Reimposta",
"faster_upload": "Upload più veloci",
"faster_upload_description": "Effettua l'upload attraverso i server vicini",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "Riproduci album sulla TV",
"enter_cast_pin_code": "Inserisci il codice che vedi sulla TV qui sotto per associare questo dispositivo.",
"code": "",
diff --git a/web/packages/base/locales/ja-JP/translation.json b/web/packages/base/locales/ja-JP/translation.json
index 7e581a5841..2be62cb46b 100644
--- a/web/packages/base/locales/ja-JP/translation.json
+++ b/web/packages/base/locales/ja-JP/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "パスワードが他の場所で変更されました",
"password_changed_elsewhere_message": "",
"go_back": "戻る",
+ "account": "",
"recovery_key": "リカバリーキー",
"do_this_later": "あとで行う",
"save_key": "キーを保存",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "",
"contact_support": "お問い合わせ",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "機能をリクエスト",
"support": "サポート",
"cancel": "キャンセル",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "はい、停止します",
"change_folder": "フォルダを変更",
- "debug_logs": "デバッグログ",
- "download_logs": "ログをダウンロード",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "認証",
@@ -602,6 +605,7 @@
"reset": "リセット",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "コード",
diff --git a/web/packages/base/locales/km-KH/translation.json b/web/packages/base/locales/km-KH/translation.json
index b58cc7f07d..e6f4c65fd6 100644
--- a/web/packages/base/locales/km-KH/translation.json
+++ b/web/packages/base/locales/km-KH/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "",
"go_back": "",
+ "account": "",
"recovery_key": "",
"do_this_later": "",
"save_key": "",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "",
"contact_support": "",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "",
"support": "",
"cancel": "",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/ko-KR/translation.json b/web/packages/base/locales/ko-KR/translation.json
index 505bcb9c54..62a75eba4a 100644
--- a/web/packages/base/locales/ko-KR/translation.json
+++ b/web/packages/base/locales/ko-KR/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "",
"go_back": "뒤로 가기",
+ "account": "",
"recovery_key": "키 복구하기",
"do_this_later": "나중에 저장하기",
"save_key": "키 저장하기",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "",
"contact_support": "",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "",
"support": "",
"cancel": "취소",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/lt-LT/translation.json b/web/packages/base/locales/lt-LT/translation.json
index cd69539d45..06a2e30217 100644
--- a/web/packages/base/locales/lt-LT/translation.json
+++ b/web/packages/base/locales/lt-LT/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "Slaptažodis pakeistas kitur",
"password_changed_elsewhere_message": "Prisijunkite iš naujo šiame įrenginyje, kad naudotumėte naują slaptažodį tapatybės nustatymui.",
"go_back": "Eiti atgal",
+ "account": "",
"recovery_key": "Atkūrimo raktas",
"do_this_later": "Daryti tai vėliau",
"save_key": "Išsaugoti raktą",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "Dėl mūsų visapusio šifravimo protokolo pobūdžio jūsų duomenų negalima iššifruoti be slaptažodžio arba atkūrimo rakto",
"no_two_factor_recovery_key_message": "Iš savo registruoto el. pašto adreso parašykite el. laišką adresu <a>{{{emailID}}</a>",
"contact_support": "Susisiekti su palaikymo komanda",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "Prašyti funkcijos",
"support": "Palaikymas",
"cancel": "Atšaukti",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "Jūsų esami failai nebus ištrinti, bet „Ente“ nebeatnaujins automatiškai susieto „Ente“ albumo, kai šiame aplanke bus atliekami pakeitimai.",
"yes_stop": "Taip, stabdyti",
"change_folder": "Keisti aplanką",
- "debug_logs": "Derinimo žurnalai",
- "download_logs": "Atsisiųsti žurnalus",
- "download_logs_message": "<p>Tai atsisiųs derinimo žurnalus, kuriuos galėsite išsiųsti mums el. laišku, kad padėtume išspręsti problemą.</p><p>Atkreipkite dėmesį, kad failų pavadinimai bus įtraukti, kad būtų lengviau atsekti problemas su konkrečiais failais.</p>",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "Interneto naršyklė, kurią naudojate, nėra pakankamai galinga, kad užšifruotų nuotraukas. Bandykite prisijungti prie „Ente“ kompiuteryje arba atsisiųskite „Ente“ mobiliąją / darbalaukio programą.",
"drag_and_drop_hint": "Arba nutempkite į „Ente“ langą",
"authenticate": "Nustatyti tapatybę",
@@ -602,6 +605,7 @@
"reset": "Atkurti",
"faster_upload": "Spartesni įkėlimai",
"faster_upload_description": "Nukreipkite įkėlimus per netoliese esančius serverius",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "Paleisti albumą televizoriuje",
"enter_cast_pin_code": "Įveskite žemiau esančiame televizoriuje matomą kodą, kad susietumėte šį įrenginį.",
"code": "Kodas",
@@ -650,8 +654,8 @@
"server_endpoint": "Serverio galutinis taškas",
"more_information": "Daugiau informacijos",
"save": "Išsaugoti",
- "theme": "",
- "system": "",
- "light": "",
- "dark": ""
+ "theme": "Tema",
+ "system": "Sistemos",
+ "light": "Šviesi",
+ "dark": "Tamsi"
}
diff --git a/web/packages/base/locales/ml-IN/translation.json b/web/packages/base/locales/ml-IN/translation.json
index b58cc7f07d..e6f4c65fd6 100644
--- a/web/packages/base/locales/ml-IN/translation.json
+++ b/web/packages/base/locales/ml-IN/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "",
"go_back": "",
+ "account": "",
"recovery_key": "",
"do_this_later": "",
"save_key": "",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "",
"contact_support": "",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "",
"support": "",
"cancel": "",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/nl-NL/translation.json b/web/packages/base/locales/nl-NL/translation.json
index 58d381319f..4bbe05b76d 100644
--- a/web/packages/base/locales/nl-NL/translation.json
+++ b/web/packages/base/locales/nl-NL/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "Wachtwoord elders gewijzigd",
"password_changed_elsewhere_message": "Log opnieuw in op dit apparaat om uw nieuwe wachtwoord te gebruiken om te verifiëren.",
"go_back": "Ga terug",
+ "account": "",
"recovery_key": "Herstelsleutel",
"do_this_later": "Doe dit later",
"save_key": "Sleutel opslaan",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "Door de aard van ons end-to-end encryptieprotocol kunnen je gegevens niet worden ontsleuteld zonder je wachtwoord of herstelsleutel",
"no_two_factor_recovery_key_message": "Stuur een e-mail naar <a>{{emailID}}</a> vanaf het door jou geregistreerde e-mailadres",
"contact_support": "Klantenservice",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "Vraag nieuwe functie aan",
"support": "Ondersteuning",
"cancel": "Annuleren",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "Uw bestaande bestanden zullen niet worden verwijderd, maar Ente stopt met het automatisch bijwerken van het gekoppelde Ente album bij wijzigingen in deze map.",
"yes_stop": "Ja, stop",
"change_folder": "Map wijzigen",
- "debug_logs": "Logboeken voor foutmeldingen",
- "download_logs": "Logboek downloaden",
- "download_logs_message": "<p>Dit zal logboeken downloaden, die u ons kunt e-mailen om te helpen bij het debuggen van uw probleem.</p><p>Houd er rekening mee dat bestandsnamen worden opgenomen om problemen met specifieke bestanden bij te houden.</p>",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "De webbrowser die u gebruikt is niet krachtig genoeg om uw foto's te versleutelen. Probeer in te loggen op uw computer, of download de Ente mobiel/desktop app.",
"drag_and_drop_hint": "Of sleep en plaats in het Ente venster",
"authenticate": "Verifiëren",
@@ -602,6 +605,7 @@
"reset": "Herstellen",
"faster_upload": "Snellere uploads",
"faster_upload_description": "Uploaden door nabije servers",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "Album afspelen op TV",
"enter_cast_pin_code": "Voer de code in die u op de TV ziet om dit apparaat te koppelen.",
"code": "Code",
diff --git a/web/packages/base/locales/pl-PL/translation.json b/web/packages/base/locales/pl-PL/translation.json
index bb0025ef72..7c4e388db7 100644
--- a/web/packages/base/locales/pl-PL/translation.json
+++ b/web/packages/base/locales/pl-PL/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "Hasło zostało zmienione gdzie indziej",
"password_changed_elsewhere_message": "Zaloguj się ponownie na tym urządzeniu, aby użyć nowego hasła, aby się uwierzytelnić.",
"go_back": "Cofnij się",
+ "account": "",
"recovery_key": "Klucz odzyskiwania",
"do_this_later": "Zrób to później",
"save_key": "Zapisz Klucz",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "Ze względu na charakter naszego protokołu szyfrowania end-to-end, Twoje dane nie mogą być odszyfrowane bez hasła lub klucza odzyskiwania",
"no_two_factor_recovery_key_message": "Wyślij wiadomość e-mail na <a>{{emailID}}</a> z zarejestrowanego adresu e-mail",
"contact_support": "Skontaktuj się z pomocą techniczną",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "Zaproponuj funkcję",
"support": "Wsparcie Techniczne",
"cancel": "Anuluj",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "Twoje istniejące pliki nie zostaną usunięte, ale Ente przestanie automatycznie aktualizować połączony album Ente przy zmianach w tym folderze.",
"yes_stop": "Tak, zatrzymaj",
"change_folder": "Zmień Folder",
- "debug_logs": "Logi debugowania",
- "download_logs": "Pobierz logi",
- "download_logs_message": "<p>Spowoduje to pobranie logów debugowania, które możesz wysłać do nas na e-maila, aby pomóc w debugowaniu Twojego problemu.</p><p>Należy pamiętać, że nazwy plików będą dołączone, aby pomóc w śledzeniu problemów z konkretnymi plikami.</p>",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "Przeglądarka, której używasz nie jest wystarczająco silna, aby zaszyfrować Twoje zdjęcia. Prosimy zalogować się do Ente na Twoim komputerze lub pobierz aplikacje mobilną/komputerową Ente.",
"drag_and_drop_hint": "Lub przeciągnij i upuść do okna Ente",
"authenticate": "Uwierzytelnij się",
@@ -602,6 +605,7 @@
"reset": "Zresetuj",
"faster_upload": "Szybsze przesłania",
"faster_upload_description": "Kieruj przesłania przez pobliskie serwery",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "Odtwórz album na telewizorze",
"enter_cast_pin_code": "Wprowadź kod, który widzisz na telewizorze poniżej, aby sparować to urządzenie.",
"code": "Kod",
diff --git a/web/packages/base/locales/pt-BR/translation.json b/web/packages/base/locales/pt-BR/translation.json
index 4a0afd2695..62bd0e65e5 100644
--- a/web/packages/base/locales/pt-BR/translation.json
+++ b/web/packages/base/locales/pt-BR/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "Senha alterada em outro lugar",
"password_changed_elsewhere_message": "Registre-se novamente neste dispositivo e use sua nova senha para autenticar.",
"go_back": "Voltar",
+ "account": "Conta",
"recovery_key": "Chave de recuperação",
"do_this_later": "Mais tarde",
"save_key": "Salvar chave",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "Devido à natureza de nosso protocolo de criptografia ponta a ponta, seus dados não podem ser descriptografados sem sua senha ou chave de recuperação",
"no_two_factor_recovery_key_message": "Envie um e-mail a <a>{{emailID}}</a> do endereço de e-mail registrado",
"contact_support": "Entrar em contato conosco",
+ "help": "Ajuda",
+ "ente_help": "Ajuda Ente",
+ "blog": "Blog",
"request_feature": "Solicitar recurso",
"support": "Suporte",
"cancel": "Cancelar",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "Seus arquivos existentes não serão excluídos, porém, Ente irá parar de atualizar o álbum sincronizado nesta página.",
"yes_stop": "Sim, parar",
"change_folder": "Alterar pasta",
- "debug_logs": "Logs de depuração",
- "download_logs": "Baixar logs",
- "download_logs_message": "<p>Isto irá baixar os logs de depuração, que você pode enviar para nós para ajudar a depurar seu problema.</p><p>Por favor, note que os nomes de arquivos serão incluídos para ajudar a rastrear problemas com arquivos específicos.</p>",
+ "view_logs": "Ver registros",
+ "view_logs_message": "<p>Isso exibirá registros de depuração, que você pode contatar-nos para ajudar a resolver sue problema.</p><p>Saiba que nomes de arquivo serão incluídos para rastrear problemas com certos arquivos.</p>",
"weak_device_hint": "O navegador web que você está usando não é poderoso o suficiente para criptografar suas fotos. Tente registrar no Ente no computador, ou baixe o aplicativo móvel do Ente, ou do desktop.",
"drag_and_drop_hint": "Ou arraste e solte na janela ente",
"authenticate": "Autenticar",
@@ -602,6 +605,7 @@
"reset": "Redefinir",
"faster_upload": "Envios mais rápidos",
"faster_upload_description": "Rotas enviam em servidores próximos",
+ "open_ente_on_startup": "Abrir Ente no Início",
"cast_album_to_tv": "Reproduzir álbum na TV",
"enter_cast_pin_code": "Digite o código que você vê na TV abaixo para parear este dispositivo.",
"code": "Código",
@@ -650,8 +654,8 @@
"server_endpoint": "Endpoint do servidor",
"more_information": "Mais informações",
"save": "Salvar",
- "theme": "",
- "system": "",
- "light": "",
- "dark": ""
+ "theme": "Tema",
+ "system": "Automático",
+ "light": "Claro",
+ "dark": "Escuro"
}
diff --git a/web/packages/base/locales/pt-PT/translation.json b/web/packages/base/locales/pt-PT/translation.json
index 0f673cde22..9de71e0551 100644
--- a/web/packages/base/locales/pt-PT/translation.json
+++ b/web/packages/base/locales/pt-PT/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "Palavra-passe alterada noutro lugar",
"password_changed_elsewhere_message": "Inicie sessão novamente neste dispositivo para utilizar a sua nova palavra-passe para autenticação.",
"go_back": "Voltar",
+ "account": "",
"recovery_key": "Chave de recuperação",
"do_this_later": "Fazer isso mais tarde",
"save_key": "Guardar chave",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "Devido à natureza do nosso protocolo de encriptação de ponta a ponta, os seus dados não podem ser desencriptados sem a sua palavra-passe ou chave de recuperação",
"no_two_factor_recovery_key_message": "Envie uma mensagem de correio eletrónico para <a>{{emailID}}</a> a partir do seu endereço de correio eletrónico registado",
"contact_support": "Contactar o suporte",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "Solicitar recurso",
"support": "Suporte",
"cancel": "Cancelar",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "Os seus ficheiros existentes não serão eliminados, mas o Ente deixará de atualizar automaticamente o álbum Ente associado às alterações nesta pasta.",
"yes_stop": "Sim, parar",
"change_folder": "Alterar pasta",
- "debug_logs": "Logs de depuração",
- "download_logs": "Descarregar logs",
- "download_logs_message": "<p>Isto irá descarregar registos de depuração, que pode enviar-nos por correio eletrónico para ajudar a depurar o seu problema.</p><p>Por favor, note que os nomes dos ficheiros serão incluídos para ajudar a localizar problemas com ficheiros específicos.</p>",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "O navegador Web que está a utilizar não é suficientemente potente para encriptar as suas fotografias. Tente iniciar sessão no Ente no seu computador ou descarregue a aplicação móvel/desktop do Ente.",
"drag_and_drop_hint": "Ou arrastar e largar na janela Ente",
"authenticate": "Autenticar",
@@ -602,6 +605,7 @@
"reset": "Restaurar",
"faster_upload": "Upload mais rápido",
"faster_upload_description": "Rotas enviam em servidores próximos",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "Reproduzir álbum na TV",
"enter_cast_pin_code": "Introduza o código que vê na TV abaixo para emparelhar este dispositivo.",
"code": "",
diff --git a/web/packages/base/locales/ro-RO/translation.json b/web/packages/base/locales/ro-RO/translation.json
index b58cc7f07d..e6f4c65fd6 100644
--- a/web/packages/base/locales/ro-RO/translation.json
+++ b/web/packages/base/locales/ro-RO/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "",
"go_back": "",
+ "account": "",
"recovery_key": "",
"do_this_later": "",
"save_key": "",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "",
"contact_support": "",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "",
"support": "",
"cancel": "",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/ru-RU/translation.json b/web/packages/base/locales/ru-RU/translation.json
index 5be80337eb..32ea0ccd82 100644
--- a/web/packages/base/locales/ru-RU/translation.json
+++ b/web/packages/base/locales/ru-RU/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "Пароль изменен в другом месте",
"password_changed_elsewhere_message": "Пожалуйста, войдите снова на этом устройстве, чтобы использовать новый пароль для аутентификации.",
"go_back": "Вернуться назад",
+ "account": "",
"recovery_key": "Ключ восстановления",
"do_this_later": "Сделать позже",
"save_key": "Сохранить ключ",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "Из-за природы нашего сквозного протокола шифрования ваши данные не могут быть расшифрованы без вашего пароля или ключа восстановления",
"no_two_factor_recovery_key_message": "Пожалуйста, отправьте электронное письмо на адрес <a>{{emailID}}</a> с вашего зарегистрированного адреса электронной почты",
"contact_support": "Связаться с поддержкой",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "Запросить функцию",
"support": "Поддержка",
"cancel": "Отменить",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "Ваши существующие файлы не будут удалены, но Ente прекратит автоматическое обновление связанного альбома Ente при внесении изменений в эту папку.",
"yes_stop": "Да, остановись",
"change_folder": "Изменить папку",
- "debug_logs": "Журналы отладки",
- "download_logs": "Загрузка журналов",
- "download_logs_message": "<p>При этом будут загружены журналы отладки, которые вы можете отправить нам по электронной почте, чтобы помочь в устранении вашей проблемы.</p><p>Пожалуйста, обратите внимание, что будут указаны имена файлов, которые помогут отслеживать проблемы с конкретными файлами.</p>",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "Используемый вами веб-браузер недостаточно мощный, чтобы зашифровать ваши фотографии. Пожалуйста, попробуйте войти в Ente на своем компьютере или загрузить мобильное/настольное приложение Ente.",
"drag_and_drop_hint": "Или перетащите в основное окно",
"authenticate": "Проверка подлинности",
@@ -602,6 +605,7 @@
"reset": "Сбросить",
"faster_upload": "Более быстрая загрузка данных",
"faster_upload_description": "Загрузка маршрута через близлежащие серверы",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "Воспроизвести альбом на ТВ",
"enter_cast_pin_code": "Введите код, который вы видите на экране телевизора ниже, чтобы выполнить сопряжение с этим устройством.",
"code": "Код",
diff --git a/web/packages/base/locales/sl-SI/translation.json b/web/packages/base/locales/sl-SI/translation.json
index b58cc7f07d..e6f4c65fd6 100644
--- a/web/packages/base/locales/sl-SI/translation.json
+++ b/web/packages/base/locales/sl-SI/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "",
"go_back": "",
+ "account": "",
"recovery_key": "",
"do_this_later": "",
"save_key": "",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "",
"contact_support": "",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "",
"support": "",
"cancel": "",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/sv-SE/translation.json b/web/packages/base/locales/sv-SE/translation.json
index de0a5a2ab1..cd4e2a4ef6 100644
--- a/web/packages/base/locales/sv-SE/translation.json
+++ b/web/packages/base/locales/sv-SE/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "",
"go_back": "Gå tillbaka",
+ "account": "",
"recovery_key": "Återställningsnyckel",
"do_this_later": "Gör detta senare",
"save_key": "Spara nyckel",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "Skicka ett mail till <a>{{emailID}}</a> från din registrerade e-postadress",
"contact_support": "Kontakta support",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "",
"support": "Support",
"cancel": "Avbryt",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "Ändra mapp",
- "debug_logs": "",
- "download_logs": "Ladda ner loggar",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "Återställ",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "Spela album på TV",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/ta-IN/translation.json b/web/packages/base/locales/ta-IN/translation.json
index b58cc7f07d..e6f4c65fd6 100644
--- a/web/packages/base/locales/ta-IN/translation.json
+++ b/web/packages/base/locales/ta-IN/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "",
"go_back": "",
+ "account": "",
"recovery_key": "",
"do_this_later": "",
"save_key": "",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "",
"contact_support": "",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "",
"support": "",
"cancel": "",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/te-IN/translation.json b/web/packages/base/locales/te-IN/translation.json
index b58cc7f07d..e6f4c65fd6 100644
--- a/web/packages/base/locales/te-IN/translation.json
+++ b/web/packages/base/locales/te-IN/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "",
"go_back": "",
+ "account": "",
"recovery_key": "",
"do_this_later": "",
"save_key": "",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "",
"contact_support": "",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "",
"support": "",
"cancel": "",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/th-TH/translation.json b/web/packages/base/locales/th-TH/translation.json
index b58cc7f07d..e6f4c65fd6 100644
--- a/web/packages/base/locales/th-TH/translation.json
+++ b/web/packages/base/locales/th-TH/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "",
"go_back": "",
+ "account": "",
"recovery_key": "",
"do_this_later": "",
"save_key": "",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "",
"contact_support": "",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "",
"support": "",
"cancel": "",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/ti-ER/translation.json b/web/packages/base/locales/ti-ER/translation.json
index b58cc7f07d..e6f4c65fd6 100644
--- a/web/packages/base/locales/ti-ER/translation.json
+++ b/web/packages/base/locales/ti-ER/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "",
"go_back": "",
+ "account": "",
"recovery_key": "",
"do_this_later": "",
"save_key": "",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "",
"contact_support": "",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "",
"support": "",
"cancel": "",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/tr-TR/translation.json b/web/packages/base/locales/tr-TR/translation.json
index 005f37d8fc..30926580d7 100644
--- a/web/packages/base/locales/tr-TR/translation.json
+++ b/web/packages/base/locales/tr-TR/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "Parola başka bir yerde değiştirildi",
"password_changed_elsewhere_message": "Lütfen yeni parolanı kullanarak kimlik doğrulaması yapmak için bu cihazda tekrar oturum aç.",
"go_back": "Geri dön",
+ "account": "",
"recovery_key": "Kurtarma anahtarı",
"do_this_later": "Sonra yap",
"save_key": "Anahtarı kaydet",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "Uçtan uca şifreleme protokolümüzün doğası gereği, verilerin parolan veya kurtarma anahtarın olmadan çözülemez",
"no_two_factor_recovery_key_message": "Lütfen kaydolduğun e-posta adresinden <a>{{emailID}}</a> adresine bir e-posta bırak",
"contact_support": "Destek ile iletişime geç",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "Özellik İste",
"support": "Destek",
"cancel": "İptal",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/locales/uk-UA/translation.json b/web/packages/base/locales/uk-UA/translation.json
index f2a952d846..4c40eeab63 100644
--- a/web/packages/base/locales/uk-UA/translation.json
+++ b/web/packages/base/locales/uk-UA/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "Пароль змінено в іншому місці",
"password_changed_elsewhere_message": "Увійдіть ще раз на цьому пристрої, щоби використати новий пароль для автентифікації.",
"go_back": "Повернутися",
+ "account": "",
"recovery_key": "Ключ відновлення",
"do_this_later": "Зробити це пізніше",
"save_key": "Зберегти ключ",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "Через природу нашого кінцевого протоколу шифрування, ваші дані не можуть бути розшифровані без вашого пароля або ключа відновлення",
"no_two_factor_recovery_key_message": "Надішліть листа на <a>{{emailID}}</a> з вашої зареєстрованої поштової адреси",
"contact_support": "Звернутися до служби підтримки",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "Запропонувати функцію",
"support": "Підтримка",
"cancel": "Скасувати",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "Ваші наявні файли не будуть видалені, але Ente перестане автоматично оновлювати пов'язаний альбом Ente після змін в цій теці.",
"yes_stop": "Так, зупинити",
"change_folder": "Змінити теку",
- "debug_logs": "Налагоджувальні журнали",
- "download_logs": "Завантажити журнали",
- "download_logs_message": "<p>Це призведе до завантаження журналів налагодження, які ви можете надіслати нам, щоб допомогти виправити вашу проблему.</p><p>Зверніть увагу, що імена файлів будуть включені, щоб допомогти відстежувати проблеми з конкретними файлами.</p>",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "Веббраузер, який ви використовуєте, недостатньо потужний для шифрування ваших фотографій. Спробуйте ввійти до Ente на комп'ютері або завантажте мобільний / настільний застосунок Ente.",
"drag_and_drop_hint": "Або перетягніть у вікно Ente",
"authenticate": "Підтвердити",
@@ -602,6 +605,7 @@
"reset": "Скинути",
"faster_upload": "Швидші завантаження",
"faster_upload_description": "Завантаження маршрутів через найближчі сервери",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "Відтворення альбому на ТБ",
"enter_cast_pin_code": "Введіть код, який ви бачите на телевізорі нижче, щоб з'єднатися з цим пристроєм.",
"code": "Код",
diff --git a/web/packages/base/locales/vi-VN/translation.json b/web/packages/base/locales/vi-VN/translation.json
index 4d261dc128..e69dd0fc9f 100644
--- a/web/packages/base/locales/vi-VN/translation.json
+++ b/web/packages/base/locales/vi-VN/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "Mật khẩu đã được thay đổi ở nơi khác",
"password_changed_elsewhere_message": "Vui lòng đăng nhập lại trên thiết bị này để sử dụng mật khẩu mới của bạn để xác thực.",
"go_back": "Quay lại",
+ "account": "",
"recovery_key": "Khóa khôi phục",
"do_this_later": "Làm điều này sau",
"save_key": "Lưu khóa",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "Do tính chất của giao thức mã hóa đầu cuối của chúng tôi, dữ liệu của bạn không thể được giải mã mà không có mật khẩu hoặc khóa khôi phục của bạn",
"no_two_factor_recovery_key_message": "Vui lòng gửi email đến <a>{{emailID}}</a> từ địa chỉ email đã đăng ký của bạn",
"contact_support": "Liên hệ hỗ trợ",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "Yêu cầu tính năng",
"support": "Hỗ trợ",
"cancel": "Hủy",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "Các tệp hiện có của bạn sẽ không bị xóa, nhưng Ente sẽ ngừng tự động cập nhật album Ente liên kết khi có thay đổi trong thư mục này.",
"yes_stop": "Có, dừng lại",
"change_folder": "Thay đổi Thư mục",
- "debug_logs": "Nhật ký gỡ lỗi",
- "download_logs": "Tải xuống nhật ký",
- "download_logs_message": "<p>Điều này sẽ tải xuống nhật ký gỡ lỗi, mà bạn có thể gửi qua email cho chúng tôi để giúp gỡ lỗi vấn đề của bạn.</p><p>Xin lưu ý rằng tên tệp sẽ được bao gồm để giúp theo dõi các vấn đề với các tệp cụ thể.</p>",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "Trình duyệt web bạn đang sử dụng không đủ mạnh để mã hóa ảnh của bạn. Vui lòng thử đăng nhập vào Ente trên máy tính của bạn, hoặc tải xuống ứng dụng di động/desktop của Ente.",
"drag_and_drop_hint": "Hoặc kéo và thả vào cửa sổ Ente",
"authenticate": "Xác thực",
@@ -602,6 +605,7 @@
"reset": "Đặt lại",
"faster_upload": "Tải lên nhanh hơn",
"faster_upload_description": "Định tuyến tải lên qua các máy chủ gần đó",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "Phát album trên TV",
"enter_cast_pin_code": "Nhập mã bạn thấy trên TV bên dưới để ghép nối thiết bị này.",
"code": "Mã",
diff --git a/web/packages/base/locales/zh-CN/translation.json b/web/packages/base/locales/zh-CN/translation.json
index 0c5c89b814..4d23a25fe3 100644
--- a/web/packages/base/locales/zh-CN/translation.json
+++ b/web/packages/base/locales/zh-CN/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "密码已在别处更改",
"password_changed_elsewhere_message": "请在此设备上再次登录以使用您的新密码进行身份验证。",
"go_back": "返回",
+ "account": "",
"recovery_key": "恢复密钥",
"do_this_later": "稍后再做",
"save_key": "保存密钥",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "由于我们端到端加密协议的性质,如果没有您的密码或恢复密钥,您的数据将无法解密",
"no_two_factor_recovery_key_message": "请用您注册Ente账户的电子邮箱发一封邮件给 <a>{{emailID}}</a>",
"contact_support": "联系支持",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "功能建议",
"support": "支持",
"cancel": "取消",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "您现有的文件不会被删除,但 Ente 将停止自动更新链接的 Ente 相册在此文件夹中的更改。",
"yes_stop": "是的,停止",
"change_folder": "更改文件夹",
- "debug_logs": "调试日志",
- "download_logs": "下载日志",
- "download_logs_message": "<p>这将下载调试日志,您可以发送电子邮件给我们来帮助调试您的问题。</p><p>请注意文件名将被包含,以帮助跟踪特定文件中的问题。</p>",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "您使用的网络浏览器功能不够强大,无法加密您的照片。 请尝试在电脑上登录Ente,或下载Ente移动/桌面应用程序。",
"drag_and_drop_hint": "或者拖动并拖动到 Ente 窗口",
"authenticate": "身份认证",
@@ -602,6 +605,7 @@
"reset": "重设",
"faster_upload": "更快上传",
"faster_upload_description": "通过附近的服务器路由上传",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "在电视上播放相册",
"enter_cast_pin_code": "输入您在下面的电视上看到的代码来配对此设备。",
"code": "代码",
diff --git a/web/packages/base/locales/zh-HK/translation.json b/web/packages/base/locales/zh-HK/translation.json
index b58cc7f07d..e6f4c65fd6 100644
--- a/web/packages/base/locales/zh-HK/translation.json
+++ b/web/packages/base/locales/zh-HK/translation.json
@@ -112,6 +112,7 @@
"password_changed_elsewhere": "",
"password_changed_elsewhere_message": "",
"go_back": "",
+ "account": "",
"recovery_key": "",
"do_this_later": "",
"save_key": "",
@@ -127,6 +128,9 @@
"no_recovery_key_message": "",
"no_two_factor_recovery_key_message": "",
"contact_support": "",
+ "help": "",
+ "ente_help": "",
+ "blog": "",
"request_feature": "",
"support": "",
"cancel": "",
@@ -471,9 +475,8 @@
"stop_watching_folder_message": "",
"yes_stop": "",
"change_folder": "",
- "debug_logs": "",
- "download_logs": "",
- "download_logs_message": "",
+ "view_logs": "",
+ "view_logs_message": "",
"weak_device_hint": "",
"drag_and_drop_hint": "",
"authenticate": "",
@@ -602,6 +605,7 @@
"reset": "",
"faster_upload": "",
"faster_upload_description": "",
+ "open_ente_on_startup": "",
"cast_album_to_tv": "",
"enter_cast_pin_code": "",
"code": "",
diff --git a/web/packages/base/next.config.base.js b/web/packages/base/next.config.base.js
index 909c9d8217..2c8155bf7a 100644
--- a/web/packages/base/next.config.base.js
+++ b/web/packages/base/next.config.base.js
@@ -119,6 +119,13 @@ const nextConfig = {
desktopAppVersion,
},
+ // Ask Next to use a separate dist directory for the desktop during
+ // development. This allows us run dev servers simulataneously for both web
+ // and desktop code without them stepping on each others toes.
+ ...(process.env.NODE_ENV != "production" && isDesktop
+ ? { distDir: ".next-desktop" }
+ : {}),
+
// Customize the webpack configuration used by Next.js.
webpack: (config, { isServer }) => {
// https://dev.to/marcinwosinek/how-to-add-resolve-fallback-to-webpack-5-in-nextjs-10-i6j
diff --git a/web/packages/base/types/ipc.ts b/web/packages/base/types/ipc.ts
index 810a244020..5a1e39bddb 100644
--- a/web/packages/base/types/ipc.ts
+++ b/web/packages/base/types/ipc.ts
@@ -129,6 +129,35 @@ export interface Electron {
*/
onOpenEnteURL: (cb: ((url: string) => void) | undefined) => void;
+ /**
+ * Get the persisted version for the last shown changelog.
+ *
+ * See: [Note: Conditions for showing "What's new"]
+ */
+ lastShownChangelogVersion: () => Promise<number | undefined>;
+
+ /**
+ * Save the given {@link version} to disk as the version of the last shown
+ * changelog.
+ *
+ * The value is saved to a store which is not cleared during logout.
+ *
+ * @see {@link lastShownChangelogVersion}
+ */
+ setLastShownChangelogVersion: (version: number) => Promise<void>;
+
+ /**
+ * Return true if the auto launch on system startup is enabled.
+ */
+ isAutoLaunchEnabled: () => Promise<boolean>;
+
+ /**
+ * Toggle the auto launch on system startup behaviour.
+ *
+ * @see {@link isAutoLaunchEnabled}
+ */
+ toggleAutoLaunch: () => Promise<void>;
+
// - App update
/**
@@ -166,23 +195,6 @@ export interface Electron {
*/
skipAppUpdate: (version: string) => void;
- /**
- * Get the persisted version for the last shown changelog.
- *
- * See: [Note: Conditions for showing "What's new"]
- */
- lastShownChangelogVersion: () => Promise<number | undefined>;
-
- /**
- * Save the given {@link version} to disk as the version of the last shown
- * changelog.
- *
- * The value is saved to a store which is not cleared during logout.
- *
- * @see {@link lastShownChangelogVersion}
- */
- setLastShownChangelogVersion: (version: number) => Promise<void>;
-
// - FS
/**
diff --git a/web/packages/gallery/components/FullScreenDropZone.tsx b/web/packages/gallery/components/FullScreenDropZone.tsx
index e6cab2479c..e66409181b 100644
--- a/web/packages/gallery/components/FullScreenDropZone.tsx
+++ b/web/packages/gallery/components/FullScreenDropZone.tsx
@@ -80,7 +80,7 @@ const DropZoneOverlay = styled(Stack)(
border-style: solid;
border-color: ${theme.vars.palette.accent.light};
background-color: ${theme.vars.palette.backdrop.base};
- z-index: 3000;
+ z-index: 2000; /* aboveFileViewerContentZ + delta */
`,
);
diff --git a/web/packages/new/photos/components/CollectionMappingChoice.tsx b/web/packages/new/photos/components/CollectionMappingChoice.tsx
index c18c8e1f75..fdcda398c1 100644
--- a/web/packages/new/photos/components/CollectionMappingChoice.tsx
+++ b/web/packages/new/photos/components/CollectionMappingChoice.tsx
@@ -1,4 +1,4 @@
-import { SpaceBetweenFlex } from "@/base/components/containers";
+import { SpacedRow } from "@/base/components/containers";
import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";
import type { ModalVisibilityProps } from "@/base/components/utils/modal";
import type { CollectionMapping } from "@/base/types/ipc";
@@ -36,10 +36,10 @@ export const CollectionMappingChoice: React.FC<
fullWidth
slotProps={{ paper: { sx: { maxWidth: "360px", padding: "12px" } } }}
>
- <SpaceBetweenFlex sx={{ paddingInlineEnd: "4px" }}>
+ <SpacedRow sx={{ pr: "4px" }}>
<DialogTitle>{t("multi_folder_upload")}</DialogTitle>
<DialogCloseIconButton {...{ onClose }} />
- </SpaceBetweenFlex>
+ </SpacedRow>
<DialogContent
sx={{
diff --git a/web/packages/new/photos/components/CollectionSelector.tsx b/web/packages/new/photos/components/CollectionSelector.tsx
index ed0eb489a0..af8b0b13fd 100644
--- a/web/packages/new/photos/components/CollectionSelector.tsx
+++ b/web/packages/new/photos/components/CollectionSelector.tsx
@@ -1,4 +1,4 @@
-import { SpaceBetweenFlex } from "@/base/components/containers";
+import { SpacedRow } from "@/base/components/containers";
import type { ModalVisibilityProps } from "@/base/components/utils/modal";
import type { Collection } from "@/media/collection";
import {
@@ -166,10 +166,10 @@ export const CollectionSelector: React.FC<CollectionSelectorProps> = ({
fullScreen={isFullScreen}
slotProps={{ paper: { sx: { maxWidth: "490px" } } }}
>
- <SpaceBetweenFlex sx={{ padding: "10px 8px 6px 0" }}>
+ <SpacedRow sx={{ padding: "10px 8px 6px 0" }}>
<DialogTitle variant="h3">{titleForAction(action)}</DialogTitle>
<DialogCloseIconButton onClose={handleClose} />
- </SpaceBetweenFlex>
+ </SpacedRow>
<DialogContent_>
<LargeTileCreateNewButton onClick={onCreateCollection}>
diff --git a/web/packages/new/photos/components/FileInfo.tsx b/web/packages/new/photos/components/FileInfo.tsx
new file mode 100644
index 0000000000..57a9277cea
--- /dev/null
+++ b/web/packages/new/photos/components/FileInfo.tsx
@@ -0,0 +1,42 @@
+import ContentCopyIcon from "@mui/icons-material/ContentCopy";
+import DoneIcon from "@mui/icons-material/Done";
+import { IconButton, Tooltip, type SvgIconProps } from "@mui/material";
+import { t } from "i18next";
+import { useState } from "react";
+import { aboveFileViewerContentZ } from "./utils/z-index";
+
+interface CopyButtonProps {
+ /**
+ * The text to copy when the button is clicked.
+ */
+ text: string;
+ /**
+ * The size of the icon.
+ */
+ size?: SvgIconProps["fontSize"];
+}
+
+export const CopyButton: React.FC<CopyButtonProps> = ({ text, size }) => {
+ const [copied, setCopied] = useState(false);
+
+ const handleClick = () =>
+ void navigator.clipboard.writeText(text).then(() => {
+ setCopied(true);
+ setTimeout(() => setCopied(false), 1000);
+ });
+
+ const Icon = copied ? DoneIcon : ContentCopyIcon;
+
+ return (
+ <Tooltip
+ arrow
+ open={copied}
+ title={t("copied")}
+ slotProps={{ popper: { sx: { zIndex: aboveFileViewerContentZ } } }}
+ >
+ <IconButton onClick={handleClick} color="secondary">
+ <Icon fontSize={size} />
+ </IconButton>
+ </Tooltip>
+ );
+};
diff --git a/web/packages/new/photos/components/PhotoViewer.tsx b/web/packages/new/photos/components/FileViewer.tsx
similarity index 95%
rename from web/packages/new/photos/components/PhotoViewer.tsx
rename to web/packages/new/photos/components/FileViewer.tsx
index 5777d2c507..3835fae56a 100644
--- a/web/packages/new/photos/components/PhotoViewer.tsx
+++ b/web/packages/new/photos/components/FileViewer.tsx
@@ -7,7 +7,7 @@ import log from "@/base/log";
import { Stack, Typography, type ModalProps } from "@mui/material";
import { t } from "i18next";
import { useState } from "react";
-import { aboveGalleryContentZ } from "./utils/z-index";
+import { aboveFileViewerContentZ } from "./utils/z-index";
// TODO(PS)
import dynamic from "next/dynamic";
@@ -59,6 +59,7 @@ export const ConfirmDeleteFileDialog: React.FC<
setPhase("failed");
}
};
+
const handleClose: ModalProps["onClose"] = (_, reason) => {
// Ignore backdrop clicks when we're processing the user request.
if (reason == "backdropClick" && phase == "loading") return;
@@ -71,7 +72,7 @@ export const ConfirmDeleteFileDialog: React.FC<
onClose={handleClose}
title={t("trash_file_title")}
sx={(theme) => ({
- zIndex: aboveGalleryContentZ,
+ zIndex: aboveFileViewerContentZ,
// See: [Note: Lighter backdrop for overlays on photo viewer]
...theme.applyStyles("light", {
".MuiBackdrop-root": {
@@ -83,7 +84,7 @@ export const ConfirmDeleteFileDialog: React.FC<
<Typography sx={{ color: "text.muted" }}>
{t("trash_file_message")}
</Typography>
- <Stack sx={{ paddingBlockStart: "24px", gap: "8px" }}>
+ <Stack sx={{ pt: 3, gap: 1 }}>
{phase == "failed" && <InlineErrorIndicator />}
<LoadingButton
loading={phase == "loading"}
diff --git a/web/packages/new/photos/components/PhotoDateTimePicker.tsx b/web/packages/new/photos/components/PhotoDateTimePicker.tsx
index a2dabd4cae..e035ba11c4 100644
--- a/web/packages/new/photos/components/PhotoDateTimePicker.tsx
+++ b/web/packages/new/photos/components/PhotoDateTimePicker.tsx
@@ -6,7 +6,7 @@ import {
import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
import dayjs, { Dayjs } from "dayjs";
import React, { useState } from "react";
-import { fileInfoDrawerZ } from "./utils/z-index";
+import { aboveFileViewerContentZ } from "./utils/z-index";
interface PhotoDateTimePickerProps {
/**
@@ -100,14 +100,11 @@ export const PhotoDateTimePicker: React.FC<PhotoDateTimePickerProps> = ({
},
},
},
+
/* We also get opened from the info drawer in the photo
viewer, so give our dialog a higher z-index than both the
photo viewer and the info drawer */
- dialog: {
- sx: {
- zIndex: fileInfoDrawerZ + 1,
- },
- },
+ dialog: { sx: { zIndex: aboveFileViewerContentZ } },
}}
/>
</LocalizationProvider>
diff --git a/web/packages/new/photos/components/PlanSelector.tsx b/web/packages/new/photos/components/PlanSelector.tsx
index e8342bd6c7..de5224e883 100644
--- a/web/packages/new/photos/components/PlanSelector.tsx
+++ b/web/packages/new/photos/components/PlanSelector.tsx
@@ -1,4 +1,4 @@
-import { SpaceBetweenFlex } from "@/base/components/containers";
+import { SpacedRow } from "@/base/components/containers";
import type { ButtonishProps } from "@/base/components/mui";
import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";
import {
@@ -641,7 +641,7 @@ const FreePlanRow: React.FC<FreePlanRowProps> = ({ onClose, storage }) => (
</FreePlanRow_>
);
-const FreePlanRow_ = styled(SpaceBetweenFlex)(({ theme }) => ({
+const FreePlanRow_ = styled(SpacedRow)(({ theme }) => ({
gap: theme.spacing(1.5),
padding: theme.spacing(1.5, 1),
cursor: "pointer",
diff --git a/web/packages/new/photos/components/gallery/PeopleHeader.tsx b/web/packages/new/photos/components/gallery/PeopleHeader.tsx
index 8e4e19fda8..40e24cd74f 100644
--- a/web/packages/new/photos/components/gallery/PeopleHeader.tsx
+++ b/web/packages/new/photos/components/gallery/PeopleHeader.tsx
@@ -1,4 +1,4 @@
-import { CenteredFill, SpaceBetweenFlex } from "@/base/components/containers";
+import { CenteredFill, SpacedRow } from "@/base/components/containers";
import { ActivityErrorIndicator } from "@/base/components/ErrorIndicator";
import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";
import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";
@@ -85,7 +85,7 @@ export const PeopleHeader: React.FC<PeopleHeaderProps> = ({
}) => {
return (
<GalleryItemsHeaderAdapter>
- <SpaceBetweenFlex>
+ <SpacedRow>
{person.type == "cgroup" ? (
person.isHidden ? (
<IgnoredPersonHeader person={person} />
@@ -98,7 +98,7 @@ export const PeopleHeader: React.FC<PeopleHeaderProps> = ({
{...{ people, onSelectPerson }}
/>
)}
- </SpaceBetweenFlex>
+ </SpacedRow>
</GalleryItemsHeaderAdapter>
);
};
@@ -351,10 +351,10 @@ const AddPersonDialog: React.FC<AddPersonDialogProps> = ({
fullScreen={isFullScreen}
slotProps={{ paper: { sx: { maxWidth: "490px" } } }}
>
- <SpaceBetweenFlex sx={{ padding: "10px 8px 6px 0" }}>
+ <SpacedRow sx={{ padding: "10px 8px 6px 0" }}>
<DialogTitle variant="h3">{t("add_name")}</DialogTitle>
<DialogCloseIconButton {...{ onClose }} />
- </SpaceBetweenFlex>
+ </SpacedRow>
<DialogContent_>
<LargeTileCreateNewButton onClick={handleAddPerson}>
{t("new_person")}
@@ -626,7 +626,7 @@ const SuggestionsDialog: React.FC<SuggestionsDialogProps> = ({
fullScreen={isSmallWidth}
slotProps={{ paper: { sx: { minHeight: "80svh" } } }}
>
- <SpaceBetweenFlex
+ <SpacedRow
sx={[
{ padding: "20px 16px 16px 16px" },
state.showChoices
@@ -662,7 +662,7 @@ const SuggestionsDialog: React.FC<SuggestionsDialogProps> = ({
<RestoreIcon />
</IconButton>
)}
- </SpaceBetweenFlex>
+ </SpacedRow>
<DialogContent
/* Reset scroll position on switching view */
key={`${state.showChoices}`}
@@ -744,11 +744,7 @@ const SuggestionOrChoiceList: React.FC<SuggestionOrChoiceListProps> = ({
{items.map((item) => (
<ListItem
key={item.id}
- sx={{
- paddingInline: 0,
- paddingBlockEnd: "24px",
- justifyContent: "space-between",
- }}
+ sx={{ px: 0, pb: "24px", justifyContent: "space-between" }}
>
<Stack sx={{ gap: "10px" }}>
<Typography variant="small" sx={{ color: "text.muted" }}>
diff --git a/web/packages/new/photos/components/utils/z-index.tsx b/web/packages/new/photos/components/utils/z-index.tsx
index bf6190824c..e96154e5c0 100644
--- a/web/packages/new/photos/components/utils/z-index.tsx
+++ b/web/packages/new/photos/components/utils/z-index.tsx
@@ -33,7 +33,7 @@ export const fileInfoDrawerZ = photoSwipeZ + 1;
/**
* Dialogs (not necessarily always) need to be higher still so to ensure they
- * are visible above the drawer in case they are shown in response to some
- * action taken in the file info drawer.
+ * are visible above the file info drawer in case they are shown in response to
+ * some action taken in the file info drawer.
*/
-export const aboveGalleryContentZ = fileInfoDrawerZ + 1;
+export const aboveFileViewerContentZ = fileInfoDrawerZ + 1;
diff --git a/web/packages/new/photos/pages/duplicates.tsx b/web/packages/new/photos/pages/duplicates.tsx
index c939dcfdef..29c2067367 100644
--- a/web/packages/new/photos/pages/duplicates.tsx
+++ b/web/packages/new/photos/pages/duplicates.tsx
@@ -1,5 +1,5 @@
import { useRedirectIfNeedsCredentials } from "@/accounts/components/utils/use-redirect";
-import { CenteredFill } from "@/base/components/containers";
+import { CenteredFill, SpacedRow } from "@/base/components/containers";
import { ActivityErrorIndicator } from "@/base/components/ErrorIndicator";
import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";
import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";
@@ -570,12 +570,9 @@ const ListItem: React.FC<ListChildComponentProps<DuplicatesListItemData>> =
checked ? { opacity: 1 } : { opacity: 0.8 },
]}
>
- <Stack
- direction="row"
+ <SpacedRow
sx={{
- justifyContent: "space-between",
- alignItems: "center",
- marginInline: 1,
+ mx: 1,
paddingInline: "var(--et-padding-inline)",
paddingBlock: "24px 0px",
}}
@@ -585,7 +582,7 @@ const ListItem: React.FC<ListChildComponentProps<DuplicatesListItemData>> =
</Typography>
{/* The size of this Checkbox is 42px. */}
<Checkbox {...{ checked, onChange }} />
- </Stack>
+ </SpacedRow>
<Divider
variant="middle"
sx={[
diff --git a/web/packages/shared/components/Container.tsx b/web/packages/shared/components/Container.tsx
index a8cf054ac2..7d84d9e7d5 100644
--- a/web/packages/shared/components/Container.tsx
+++ b/web/packages/shared/components/Container.tsx
@@ -16,12 +16,16 @@ export const FlexWrapper = styled(Box)`
align-items: center;
`;
+/**
+ * Deprecated, use {@link SpacedRow} from @/base/components/mui/container
+ * instead
+ */
export const SpaceBetweenFlex = styled(FlexWrapper)`
justify-content: space-between;
`;
/**
- * Deprecated, use {@link CenteredFlex} from @/base/components/mui/container
+ * Deprecated, use {@link CenteredRow} from @/base/components/mui/container
* instead
*/
export const CenteredFlex = styled(FlexWrapper)`