Compare commits
172 Commits
discover_e
...
java_test
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
907d1d2bb8 | ||
|
|
8218283463 | ||
|
|
bd43385949 | ||
|
|
2e6a9acaf9 | ||
|
|
a02dcace7d | ||
|
|
cf4285de6d | ||
|
|
f831491e4a | ||
|
|
af154d82de | ||
|
|
ff2f75ea74 | ||
|
|
97e3ef819a | ||
|
|
3685cd2154 | ||
|
|
c64fff8ca4 | ||
|
|
33d1242c6d | ||
|
|
b8ee9fafd1 | ||
|
|
1a7275a101 | ||
|
|
fa7ccbd180 | ||
|
|
79e26d6993 | ||
|
|
023135afb5 | ||
|
|
04aaa3a5e4 | ||
|
|
848857f409 | ||
|
|
137033be67 | ||
|
|
04b6f4a765 | ||
|
|
2645ba0949 | ||
|
|
5958647fa8 | ||
|
|
b7b91631f6 | ||
|
|
67d7f586b2 | ||
|
|
7c22a8bb25 | ||
|
|
ff3864a09a | ||
|
|
4484b9e4ad | ||
|
|
e9554ffbcb | ||
|
|
ad3901d484 | ||
|
|
ecca4c3dc8 | ||
|
|
d05521f884 | ||
|
|
ff37c4bf81 | ||
|
|
446df755fa | ||
|
|
a7805784b7 | ||
|
|
84a5ad0b86 | ||
|
|
44ad11343a | ||
|
|
07e50e3cfe | ||
|
|
df8bbdb788 | ||
|
|
1ed381fe52 | ||
|
|
55090436ce | ||
|
|
ddd1d5ac86 | ||
|
|
26845a502e | ||
|
|
21aac29020 | ||
|
|
c1ff02df14 | ||
|
|
e4927c4022 | ||
|
|
4fd797338b | ||
|
|
eca0e5943d | ||
|
|
56cc7309a5 | ||
|
|
b740d1af05 | ||
|
|
6d21b73367 | ||
|
|
a5704eef25 | ||
|
|
7e83682686 | ||
|
|
18d5aa61b0 | ||
|
|
7c2a719ba8 | ||
|
|
47313a74ff | ||
|
|
65a7a16298 | ||
|
|
9251e4f5b6 | ||
|
|
c4bc6abf83 | ||
|
|
3165289483 | ||
|
|
01aab41c25 | ||
|
|
1826258161 | ||
|
|
df5917060b | ||
|
|
b5aa05cc1b | ||
|
|
cd865992f2 | ||
|
|
370c0ab54a | ||
|
|
923f2484fb | ||
|
|
37928cd2c6 | ||
|
|
fc32ba97c1 | ||
|
|
e49084867e | ||
|
|
a046748ded | ||
|
|
047d708ef1 | ||
|
|
5b5f563d47 | ||
|
|
2b60ad3748 | ||
|
|
1f70043c83 | ||
|
|
7ce6f6a346 | ||
|
|
03814bff0c | ||
|
|
4c63a0ff13 | ||
|
|
93552fb872 | ||
|
|
1b61becdcf | ||
|
|
0499cad3c9 | ||
|
|
79752ef4b8 | ||
|
|
c1bd6d3fdb | ||
|
|
621423d9a4 | ||
|
|
edb11c89ba | ||
|
|
adb71fe09c | ||
|
|
c20cee2406 | ||
|
|
dcfad86c47 | ||
|
|
0a2bff67bf | ||
|
|
7aaa689cfb | ||
|
|
ad2a0ce897 | ||
|
|
d99615b24f | ||
|
|
09cc48ae55 | ||
|
|
6ab2223a80 | ||
|
|
6fd86162e0 | ||
|
|
707e8dbfcf | ||
|
|
5869bec781 | ||
|
|
e311a8bb32 | ||
|
|
547ccfceca | ||
|
|
3a1917949b | ||
|
|
3a1ce3258e | ||
|
|
13b2542bea | ||
|
|
6db3741a3b | ||
|
|
ce17eccd68 | ||
|
|
95dc683088 | ||
|
|
cf9d5f72f7 | ||
|
|
3096e1550a | ||
|
|
1b39435735 | ||
|
|
8f3d8505bb | ||
|
|
47e8aafe25 | ||
|
|
edf32d065e | ||
|
|
1fa6a0c3b9 | ||
|
|
2388989dd0 | ||
|
|
9e392277b1 | ||
|
|
4609c375db | ||
|
|
839c62ea72 | ||
|
|
dceef49f33 | ||
|
|
acbdc3111a | ||
|
|
98b91a6935 | ||
|
|
e1640e67d4 | ||
|
|
e875758419 | ||
|
|
214b120472 | ||
|
|
f139e0a098 | ||
|
|
e3c9a61887 | ||
|
|
0da3dc5084 | ||
|
|
a856a82249 | ||
|
|
fbdec00a62 | ||
|
|
6a7f980a0d | ||
|
|
10a855fe27 | ||
|
|
b4f8a2b27c | ||
|
|
89489b4d7c | ||
|
|
50296f8dfa | ||
|
|
f69cec864b | ||
|
|
73d5d33fc5 | ||
|
|
4d8ea12ddd | ||
|
|
7beb267ba7 | ||
|
|
7e13ef3537 | ||
|
|
47edca5bf5 | ||
|
|
925ba10b15 | ||
|
|
db2d0bb7e9 | ||
|
|
f3a2b2af0c | ||
|
|
967e88f88d | ||
|
|
b44734a493 | ||
|
|
6478b08a19 | ||
|
|
314e81565b | ||
|
|
f95e20d00f | ||
|
|
35a04d6e7e | ||
|
|
403264d2c9 | ||
|
|
6b06a4c388 | ||
|
|
678bce89b2 | ||
|
|
8b708228be | ||
|
|
42d31a73a3 | ||
|
|
946d2ae522 | ||
|
|
8e9eb50783 | ||
|
|
af3bc7757f | ||
|
|
eda1d05216 | ||
|
|
b58e0f8331 | ||
|
|
6dcf53650d | ||
|
|
bff53d9081 | ||
|
|
f3306e14c7 | ||
|
|
b5c075bac4 | ||
|
|
241d21c2aa | ||
|
|
789d77747c | ||
|
|
35050aa32f | ||
|
|
40e6bd9fae | ||
|
|
b317df2000 | ||
|
|
2e706228ee | ||
|
|
fe40185889 | ||
|
|
6bb4428a8a | ||
|
|
0881685915 | ||
|
|
3e13932d03 |
5
.github/workflows/mobile-daily-internal.yml
vendored
@@ -39,11 +39,6 @@ jobs:
|
||||
flutter-version: ${{ env.FLUTTER_VERSION }}
|
||||
cache: true
|
||||
|
||||
- name: Install Rust ${{ env.RUST_VERSION }}
|
||||
uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: ${{ env.RUST_VERSION }}
|
||||
|
||||
- name: Install Flutter Rust Bridge
|
||||
run: cargo install flutter_rust_bridge_codegen
|
||||
|
||||
|
||||
77
.github/workflows/mobile-internal-release.yml
vendored
@@ -1,77 +0,0 @@
|
||||
name: "Old Internal release (photos)"
|
||||
|
||||
on:
|
||||
workflow_dispatch: # Allow manually running the action
|
||||
|
||||
env:
|
||||
FLUTTER_VERSION: "3.32.8"
|
||||
RUST_VERSION: "1.85.1"
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: mobile/apps/photos
|
||||
|
||||
steps:
|
||||
- name: Checkout code and submodules
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Setup JDK 17
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 17
|
||||
|
||||
- name: Install Flutter ${{ env.FLUTTER_VERSION }}
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: "stable"
|
||||
flutter-version: ${{ env.FLUTTER_VERSION }}
|
||||
cache: true
|
||||
|
||||
- name: Install Rust ${{ env.RUST_VERSION }}
|
||||
uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: ${{ env.RUST_VERSION }}
|
||||
|
||||
- name: Install Flutter Rust Bridge
|
||||
run: cargo install flutter_rust_bridge_codegen
|
||||
|
||||
- name: Setup keys
|
||||
uses: timheuer/base64-to-file@v1
|
||||
with:
|
||||
fileName: "keystore/ente_photos_key.jks"
|
||||
encodedString: ${{ secrets.SIGNING_KEY_PHOTOS }}
|
||||
|
||||
- name: Build PlayStore AAB
|
||||
run: |
|
||||
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 }}
|
||||
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD_PHOTOS }}
|
||||
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD_PHOTOS }}
|
||||
|
||||
- name: Upload AAB to PlayStore
|
||||
uses: r0adkll/upload-google-play@v1
|
||||
with:
|
||||
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
|
||||
packageName: io.ente.photos
|
||||
releaseFiles: mobile/apps/photos/build/app/outputs/bundle/playstoreRelease/app-playstore-release.aab
|
||||
track: internal
|
||||
|
||||
- name: Notify Discord
|
||||
uses: sarisia/actions-status-discord@v1
|
||||
with:
|
||||
webhook: ${{ secrets.DISCORD_INTERNAL_RELEASE_WEBHOOK }}
|
||||
nodetail: true
|
||||
title: "🏆 Internal release Photos (Branch: ${{ github.ref_name }})"
|
||||
description: "[Download](https://play.google.com/store/apps/details?id=io.ente.photos)"
|
||||
color: 0x00ff00
|
||||
14
.github/workflows/mobile-lint.yml
vendored
@@ -9,6 +9,7 @@ on:
|
||||
|
||||
env:
|
||||
FLUTTER_VERSION: "3.32.8"
|
||||
RUST_VERSION: "1.86.0"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -31,7 +32,18 @@ jobs:
|
||||
channel: "stable"
|
||||
flutter-version: ${{ env.FLUTTER_VERSION }}
|
||||
cache: true
|
||||
|
||||
|
||||
- run: flutter pub get
|
||||
|
||||
- name: Install Rust ${{ env.RUST_VERSION }}
|
||||
uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: ${{ env.RUST_VERSION }}
|
||||
|
||||
- name: Install Flutter Rust Bridge
|
||||
run: cargo install flutter_rust_bridge_codegen
|
||||
|
||||
- name: Generate Rust bindings
|
||||
run: flutter_rust_bridge_codegen generate
|
||||
|
||||
- run: flutter analyze --no-fatal-infos
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
## v1.7.15 (Unreleased)
|
||||
|
||||
- Custom domains.
|
||||
- Support Czech translations.
|
||||
- .
|
||||
|
||||
## v1.7.14
|
||||
|
||||
@@ -8,6 +8,12 @@ description: Guide to configuring Ente CLI for Self Hosted Instance
|
||||
If you are self-hosting, you can configure Ente CLI to export data & perform
|
||||
basic administrative actions.
|
||||
|
||||
::: tip Installing Ente CLI
|
||||
|
||||
For instructions on installing the Ente CLI, see the [README available on Github](https://github.com/ente-io/ente/tree/main/cli/README.md).
|
||||
|
||||
:::
|
||||
|
||||
## Step 1: Configure endpoint
|
||||
|
||||
To do this, first configure the CLI to use your server's endpoint.
|
||||
|
||||
@@ -22,8 +22,7 @@ can achieve this the following steps:
|
||||
# Change the DB name and DB user name if you use different
|
||||
# values.
|
||||
# If using Docker
|
||||
|
||||
docker exec -it <postgres-ente-container-name>
|
||||
docker exec -it <postgres-ente-container-name> sh
|
||||
psql -U pguser -d ente_db
|
||||
|
||||
# Or when using psql directly
|
||||
|
||||
@@ -46,7 +46,7 @@ If running Museum without Docker, the code should be visible in the terminal
|
||||
# Change the DB name and DB user name if you use different
|
||||
# values.
|
||||
|
||||
# If using Docker docker exec -it <postgres-ente-container-name>
|
||||
# If using Docker docker exec -it <postgres-ente-container-name> sh
|
||||
psql -U pguser -d ente_db
|
||||
|
||||
# Or when using psql directly
|
||||
|
||||
@@ -111,6 +111,7 @@
|
||||
"importAegisGuide": "Použijte možnost \"Export the vault\" v nastavení aplikace Aegis.",
|
||||
"import2FasGuide": "Použijte možnost \"Settings->Backup -Export\" v 2FA.\n\nPokud je Vaše záloha šifrovaná, budete muset zadat heslo pro její odemčení",
|
||||
"importLastpassGuide": "V nastavení aplikace Lastpass Authenticator vyberte možnost \"Transfer accounts\" a poté \"Export accounts to file\". Vygenerovaný soubor JSON následně nahrajte sem.",
|
||||
"importProtonAuthGuide": "K exportu kódů použijte možnost „Exportovat“ v nastavení aplikace Proton Authenticator.",
|
||||
"exportCodes": "Exportovat kódy",
|
||||
"importLabel": "Importovat",
|
||||
"importInstruction": "Vyberte, prosím, soubor obsahující seznam Vašich kódů v následujícím formátu",
|
||||
@@ -124,6 +125,7 @@
|
||||
"authToChangeYourEmail": "Pro změnu svého e-mailu se, prosím, ověřte",
|
||||
"authToChangeYourPassword": "Pro změnu svého hesla se, prosím, ověřte",
|
||||
"authToViewSecrets": "Pro zobrazení svých tajných údajů se musíte ověřit",
|
||||
"authToInitiateSignIn": "Proveďte ověření a přihlaste se k zálohování.",
|
||||
"ok": "Ok",
|
||||
"cancel": "Zrušit",
|
||||
"yes": "Ano",
|
||||
@@ -171,6 +173,7 @@
|
||||
"invalidQRCode": "Neplatný QR kód",
|
||||
"noRecoveryKeyTitle": "Nemáte obnovovací klíč?",
|
||||
"enterEmailHint": "Zadejte svou e-mailovou adresu",
|
||||
"enterNewEmailHint": "Zadejte svou novou e-mailovou adresu",
|
||||
"invalidEmailTitle": "Neplatná e-mailová adresa",
|
||||
"invalidEmailMessage": "Prosím, zadejte platnou e-mailovou adresu.",
|
||||
"deleteAccount": "Odstranit účet",
|
||||
@@ -509,6 +512,19 @@
|
||||
"supportEnte": "Podpořte <bold-green>ente</bold-green>",
|
||||
"giveUsAStarOnGithub": "Dejte nám hvězdu na Githubu",
|
||||
"free5GB": "5GB zdarma na <bold-green>ente</bold-green> Fotky",
|
||||
"loginWithAuthAccount": "Přihlaste se pomocí svého účtu Auth",
|
||||
"freeStorageOffer": "10% sleva na <bold-green>ente</bold-green> fotky",
|
||||
"freeStorageOfferDescription": "Použijte kód \"AUTH\" pro získání 10% slevy na první rok"
|
||||
"freeStorageOfferDescription": "Použijte kód \"AUTH\" pro získání 10% slevy na první rok",
|
||||
"advanced": "Pokročilé",
|
||||
"algorithm": "Algoritmus",
|
||||
"type": "Typ",
|
||||
"period": "Období",
|
||||
"digits": "Digitální",
|
||||
"importFromGallery": "Importovat z galerie",
|
||||
"errorCouldNotReadImage": "Nelze přečíst vybraný obrazový soubor.",
|
||||
"errorInvalidQRCode": "Neplatný QR kód",
|
||||
"errorInvalidQRCodeBody": "Naskenovaný QR kód není platným účtem 2FA.",
|
||||
"errorNoQRCode": "Nenalezen žádný QR kód",
|
||||
"errorGenericTitle": "Došlo k chybě",
|
||||
"errorGenericBody": "Při importu došlo k neočekávané chybě."
|
||||
}
|
||||
@@ -111,6 +111,7 @@
|
||||
"importAegisGuide": "Verwenden Sie die Option \"Tresor exportieren\" in den Einstellungen von Aegis.\n\nFalls Ihr Tresor verschlüsselt ist, müssen Sie das Passwort für den Tresor eingeben, um ihn zu entschlüsseln.",
|
||||
"import2FasGuide": "Verwenden Sie unter \"Einstellungen → Backup\" die Option \"Exportieren\" in 2FAS.\n\nFalls Ihr Backup verschlüsselt ist, müssen Sie das Passwort eingeben, um das Backup zu entschlüsseln.",
|
||||
"importLastpassGuide": "Verwenden Sie die Option \"Konten übertragen → Konten in Datei exportieren\" in den Lastpass Authenticator Einstellungen. \nImportieren Sie anschließend die heruntergeladene JSON-Datei.",
|
||||
"importProtonAuthGuide": "Verwenden Sie die Option \"Exportieren\" in den Proton Authenticator Settings um Ihre Codes zu exportieren.",
|
||||
"exportCodes": "Codes exportieren",
|
||||
"importLabel": "Importieren",
|
||||
"importInstruction": "Bitte wählen Sie eine Datei die Codes in folgendem Format beinhaltet",
|
||||
@@ -519,5 +520,12 @@
|
||||
"algorithm": "Algorithmus",
|
||||
"type": "Typ",
|
||||
"period": "Periode",
|
||||
"digits": "Ziffern"
|
||||
"digits": "Ziffern",
|
||||
"importFromGallery": "Aus Galerie importieren",
|
||||
"errorCouldNotReadImage": "Die ausgewählte Bild-Datei konnte nicht verarbeitet werden.",
|
||||
"errorInvalidQRCode": "Ungültiger QR-Code",
|
||||
"errorInvalidQRCodeBody": "Der gescannte QR-Code ist kein gültiges 2FA-Konto.",
|
||||
"errorNoQRCode": "Kein QR-Code gefunden",
|
||||
"errorGenericTitle": "Ein Fehler ist aufgetreten",
|
||||
"errorGenericBody": "Beim Importieren ist ein unerwarteter Fehler aufgetreten."
|
||||
}
|
||||
@@ -111,6 +111,7 @@
|
||||
"importAegisGuide": "Utilisez l'option \"Exporter le coffre-fort\" dans les paramètres d'Aegis.\n\nSi votre coffre-fort est crypté, vous devrez saisir le mot de passe du coffre-fort pour déchiffrer le coffre-fort.",
|
||||
"import2FasGuide": "Utilisez l'option \"Paramètres->Sauvegarde -Export\" dans 2FAS.\n\nSi votre sauvegarde est chiffrée, vous devrez entrer le mot de passe pour déchiffrer la sauvegarde",
|
||||
"importLastpassGuide": "Utilisez l'option \"Transférer des comptes\" dans les paramètres de l'authentificateur Lastpass et appuyez sur \"Exporter des comptes vers un fichier\". Importez le JSON téléchargé.",
|
||||
"importProtonAuthGuide": "Utilisez l'option \"Export\" dans les paramètres de Proton Authenticator pour exporter vos codes.",
|
||||
"exportCodes": "Exporter les codes",
|
||||
"importLabel": "Importer",
|
||||
"importInstruction": "Veuillez sélectionner un fichier qui contient une liste de vos codes dans le format suivant",
|
||||
@@ -519,5 +520,12 @@
|
||||
"algorithm": "Algorithme",
|
||||
"type": "Type",
|
||||
"period": "Période",
|
||||
"digits": "Chiffres"
|
||||
"digits": "Chiffres",
|
||||
"importFromGallery": "Importer depuis la galerie",
|
||||
"errorCouldNotReadImage": "Impossible de lire le fichier sélectionné.",
|
||||
"errorInvalidQRCode": "QR Code invalide",
|
||||
"errorInvalidQRCodeBody": "Le code QR scanné n'est pas un compte 2FA valide.",
|
||||
"errorNoQRCode": "Aucun code QR trouvé",
|
||||
"errorGenericTitle": "Une erreur s'est produite",
|
||||
"errorGenericBody": "Une erreur inattendue est survenue lors de l'importation."
|
||||
}
|
||||
@@ -111,6 +111,7 @@
|
||||
"importAegisGuide": "Naudokite „Aegis“ nustatymuose esančią parinktį Eksportuoti slėptuvę.\n\nJei jūsų saugykla užšifruota, turėsite įvesti saugyklos slaptažodį, kad iššifruotumėte saugyklą.",
|
||||
"import2FasGuide": "Naudokite programoje 2FAS esančią parinktį „Settings->2FAS Backup->Export to file“.\n\nJei atsarginė kopija užšifruota, turėsite įvesti slaptažodį, kad iššifruotumėte atsarginę kopiją.",
|
||||
"importLastpassGuide": "Naudokite „Lastpass Authenticator“ nustatymuose esančią parinktį „Transfer accounts“ (perkelti paskyras) ir paspauskite „Export accounts to file“ (eksportuoti paskyras į failą). Importuokite atsisiųstą JSON failą.",
|
||||
"importProtonAuthGuide": "Naudokite „Proton Authenticator“ nustatymuose esančią parinktį „Export“ (eksportuoti), kad eksportuotumėte savo kodus.",
|
||||
"exportCodes": "Eksportuoti kodus",
|
||||
"importLabel": "Importuoti",
|
||||
"importInstruction": "Pasirinkite failą, kuriame yra tokio formato jūsų kodų sąrašas",
|
||||
@@ -519,5 +520,12 @@
|
||||
"algorithm": "Algoritmas",
|
||||
"type": "Tipas",
|
||||
"period": "Laikotarpis",
|
||||
"digits": "Skaitmenys"
|
||||
"digits": "Skaitmenys",
|
||||
"importFromGallery": "Importuoti iš galerijos",
|
||||
"errorCouldNotReadImage": "Nepavyko perskaityti pasirinkto vaizdo failo.",
|
||||
"errorInvalidQRCode": "Netinkamas QR kodas",
|
||||
"errorInvalidQRCodeBody": "Nuskenuotas QR kodas nėra tinkama 2FA paskyra.",
|
||||
"errorNoQRCode": "QR kodas nerastas.",
|
||||
"errorGenericTitle": "Įvyko klaida",
|
||||
"errorGenericBody": "Importuojant įvyko netikėta klaida."
|
||||
}
|
||||
@@ -111,6 +111,7 @@
|
||||
"importAegisGuide": "Użyj opcji \"Eksportuj sejf\" w ustawieniach Aegis.\n\nJeśli twój sejf jest zaszyfrowany, musisz wprowadzić hasło sejfu, aby odszyfrować sejf.",
|
||||
"import2FasGuide": "Użyj opcji \"Ustawienia->Kopia Zapasowa-Eksport\" w 2FAS.\n\nJeśli twoja kopia zapasowa jest zaszyfrowana, musisz wprowadzić hasło, aby odszyfrować kopię zapasową",
|
||||
"importLastpassGuide": "Użyj opcji \"Przenieś konta\" w Ustawieniach Lastpass Authenticator i naciśnij \"Eksportuj konta do pliku\". Zaimportuj pobrany plik JSON.",
|
||||
"importProtonAuthGuide": "Użyj opcji „Eksportuj” w ustawieniach Proton Authenticator, aby wyeksportować kody.",
|
||||
"exportCodes": "Eksportuj kody",
|
||||
"importLabel": "Importuj",
|
||||
"importInstruction": "Wybierz plik, który zawiera listę twoich kodów w następującym formacie",
|
||||
@@ -519,5 +520,12 @@
|
||||
"algorithm": "Algorytm",
|
||||
"type": "Rodzaj",
|
||||
"period": "Okres",
|
||||
"digits": "Cyfry"
|
||||
"digits": "Cyfry",
|
||||
"importFromGallery": "Importuj z galerii",
|
||||
"errorCouldNotReadImage": "Nie można odczytać wybranego pliku obrazu.",
|
||||
"errorInvalidQRCode": "Nieprawidłowy kod QR",
|
||||
"errorInvalidQRCodeBody": "Zeskanowany kod QR nie wskazuje na prawidłowe konto 2FA.",
|
||||
"errorNoQRCode": "Nie znaleziono kodu QR",
|
||||
"errorGenericTitle": "Wystąpił błąd",
|
||||
"errorGenericBody": "Podczas importowania wystąpił nieoczekiwany błąd."
|
||||
}
|
||||
@@ -18,7 +18,7 @@
|
||||
"incorrectDetails": "Felaktiga uppgifter",
|
||||
"pleaseVerifyDetails": "Kontrollera dina detaljer och försök igen",
|
||||
"codeIssuerHint": "Utfärdare",
|
||||
"codeSecretKeyHint": "Secret Key",
|
||||
"codeSecretKeyHint": "Hemlig nyckel",
|
||||
"secret": "Säkerhetsnyckel",
|
||||
"all": "Alla",
|
||||
"notes": "Anteckningar",
|
||||
@@ -33,7 +33,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"codeAccountHint": "Konto (du@domän.com)",
|
||||
"codeAccountHint": "Konto (du@domain.com)",
|
||||
"codeTagHint": "Tagg",
|
||||
"accountKeyType": "Typ av nyckel",
|
||||
"sessionExpired": "Sessionen har gått ut",
|
||||
@@ -68,7 +68,7 @@
|
||||
"reportABug": "Rapportera en bugg",
|
||||
"crashAndErrorReporting": "Krasch och felrapportering",
|
||||
"reportBug": "Rapportera bugg",
|
||||
"emailUsMessage": "Skicka e-mail till {email}",
|
||||
"emailUsMessage": "Skicka e-post till {email}",
|
||||
"@emailUsMessage": {
|
||||
"placeholders": {
|
||||
"email": {
|
||||
@@ -79,7 +79,7 @@
|
||||
"contactSupport": "Kontakta support",
|
||||
"rateUsOnStore": "Betygsätt på {storeName}",
|
||||
"blog": "Blogg",
|
||||
"merchandise": "Merchandise",
|
||||
"merchandise": "Produkter",
|
||||
"verifyPassword": "Bekräfta lösenord",
|
||||
"pleaseWait": "Vänligen vänta...",
|
||||
"generatingEncryptionKeysTitle": "Skapar krypteringsnycklar...",
|
||||
@@ -104,13 +104,14 @@
|
||||
"importFromApp": "Importera koder från {appName}",
|
||||
"importGoogleAuthGuide": "Exportera dina konton från Google Authenticator till en QR-kod med alternativet \"Överföra konton\". Använd sedan en annan enhet och skanna QR-koden.\n\nTips: Du kan använda din bärbara dators webbkamera för att ta en bild av QR-koden.",
|
||||
"importSelectJsonFile": "Välj JSON-fil",
|
||||
"importSelectAppExport": "Välj {appName} exportfil",
|
||||
"importSelectAppExport": "Välj {appName} exporteringsfil",
|
||||
"importEnteEncGuide": "Välj den krypterade JSON-filen som exporteras från Ente",
|
||||
"importRaivoGuide": "Använd alternativet \"Exportera OTPs till zip-arkiv\" i Raivos inställningar.\n\nExtrahera zip-filen och importera JSON-filen.",
|
||||
"importBitwardenGuide": "Använd alternativet \"Exportera valv\" inom Bitwarden Tools och importera den okrypterade JSON-filen.",
|
||||
"importAegisGuide": "Använd alternativet \"Exportera valvet\" i Aegis inställningar.\n\nOm ditt valv är krypterat måste du ange valvlösenordet för att dekryptera valvet.",
|
||||
"import2FasGuide": "Använd alternativet \"Inställningar->Säkerhetskopiera -Exportera\" i 2FAS.\n\nOm din säkerhetskopia är krypterad måste du ange lösenordet för att dekryptera säkerhetskopian.",
|
||||
"importLastpassGuide": "Använd alternativet \"Överför konton\" i LastPass Authenticators inställningar och tryck på \"Exportera konton till fil\". Importera JSON-filen som laddas ner.",
|
||||
"importProtonAuthGuide": "Använd alternativet \"Exportera\" i Proton Authenticator-inställningarna för att exportera koder.",
|
||||
"exportCodes": "Exportera koder",
|
||||
"importLabel": "Importera",
|
||||
"importInstruction": "Vänligen välj en fil som innehåller en lista över dina koder i följande format",
|
||||
@@ -119,11 +120,11 @@
|
||||
"emailVerificationToggle": "E-postverifiering",
|
||||
"emailVerificationEnableWarning": "För att undvika att bli låst från ditt konto, se till att spara en kopia av din e-post 2FA utanför Ente Auth innan du aktiverar e-postverifiering.",
|
||||
"authToChangeEmailVerificationSetting": "Autentisera för att ändra din e-postadress",
|
||||
"authenticateGeneric": "Var god autentisera",
|
||||
"authenticateGeneric": "Vänligen autentisera",
|
||||
"authToViewYourRecoveryKey": "Autentisera för att visa din återställningsnyckel",
|
||||
"authToChangeYourEmail": "Autentisera för att ändra din e-postadress",
|
||||
"authToChangeYourPassword": "Autentisera för att ändra ditt lösenord",
|
||||
"authToViewSecrets": "Autentisera för att visa din återställningsnyckel",
|
||||
"authToViewSecrets": "Vänligen autentisera för att visa din återställningsnyckel",
|
||||
"authToInitiateSignIn": "Vänligen autentisera för att initiera inloggning för säkerhetskopiering.",
|
||||
"ok": "OK",
|
||||
"cancel": "Avbryt",
|
||||
@@ -147,7 +148,7 @@
|
||||
"leaveFamily": "Lämna familjen",
|
||||
"leaveFamilyMessage": "Är du säker på att du vill lämna familjeplanen?",
|
||||
"inFamilyPlanMessage": "Du är på en familjeplan!",
|
||||
"hintForMobile": "Håll i på en kod för att redigera eller ta bort.",
|
||||
"hintForMobile": "Tryck länge på en kod för att redigera eller ta bort.",
|
||||
"hintForDesktop": "Högerklicka på en kod för att redigera eller ta bort.",
|
||||
"scan": "Skanna",
|
||||
"scanACode": "Skanna kod",
|
||||
@@ -191,7 +192,7 @@
|
||||
"oopsSomethingWentWrong": "Hoppsan! Något gick fel.",
|
||||
"selectLanguage": "Välj språk",
|
||||
"language": "Språk",
|
||||
"social": "Social",
|
||||
"social": "Socialt",
|
||||
"security": "Säkerhet",
|
||||
"lockscreen": "Låsskärm",
|
||||
"authToChangeLockscreenSetting": "Vänligen autentisera för att ändra låsskärms inställningar",
|
||||
@@ -200,7 +201,7 @@
|
||||
"authToViewYourActiveSessions": "Autentisera för att visa dina aktiva sessioner",
|
||||
"searchHint": "Sök...",
|
||||
"search": "Sök",
|
||||
"sorryUnableToGenCode": "Tyvärr, det gick inte att generera en kod för {issuerName}",
|
||||
"sorryUnableToGenCode": "Tyvärr, kunde inte generera en kod för {issuerName}",
|
||||
"noResult": "Inga resultat",
|
||||
"addCode": "Lägg till kod",
|
||||
"scanAQrCode": "Skanna en QR-kod",
|
||||
@@ -215,7 +216,7 @@
|
||||
"error": "Fel",
|
||||
"recoveryKeyCopiedToClipboard": "Återställningsnyckel kopierad till urklipp",
|
||||
"recoveryKeyOnForgotPassword": "Om du glömmer ditt lösenord är det enda sättet du kan återställa dina data med denna nyckel.",
|
||||
"recoveryKeySaveDescription": "Vi lagrar inte och har därför inte åtkomst till denna nyckel, vänligen spara denna 24 ords nyckel på en säker plats.",
|
||||
"recoveryKeySaveDescription": "Vi lagrar inte och har därför inte åtkomst till denna nyckel, vänligen spara denna 24 ordsnyckeln på en säker plats.",
|
||||
"doThisLater": "Gör detta senare",
|
||||
"saveKey": "Spara nyckel",
|
||||
"save": "Spara",
|
||||
@@ -254,7 +255,7 @@
|
||||
"insecureDevice": "Osäker enhet",
|
||||
"sorryWeCouldNotGenerateSecureKeysOnThisDevicennplease": "Tyvärr, kunde vi inte generera säkra nycklar på den här enheten.\n\nvänligen registrera dig från en annan enhet.",
|
||||
"howItWorks": "Så här fungerar det",
|
||||
"ackPasswordLostWarning": "Jag förstår att om jag förlorar mitt lösenord kan jag förlora mina data eftersom min data är <underline>end-to-end-krypterad</underline>.",
|
||||
"ackPasswordLostWarning": "Jag förstår att om jag förlorar mitt lösenord kan jag förlora mina data eftersom min data är <underline>totalsträckskrypterad</underline>.",
|
||||
"loginTerms": "Jag samtycker till <u-terms>användarvillkoren</u-terms> och <u-policy>integritetspolicyn</u-policy>",
|
||||
"logInLabel": "Logga in",
|
||||
"logout": "Logga ut",
|
||||
@@ -278,7 +279,7 @@
|
||||
"recoveryKeyVerifyReason": "Din återställningsnyckel är det enda sättet att återställa dina foton om du glömmer ditt lösenord. Du hittar din återställningsnyckel i Inställningar > Säkerhet.\n\nAnge din återställningsnyckel här för att verifiera att du har sparat den ordentligt.",
|
||||
"confirmYourRecoveryKey": "Bekräfta din återställningsnyckel",
|
||||
"confirm": "Bekräfta",
|
||||
"emailYourLogs": "Maila dina loggar",
|
||||
"emailYourLogs": "E-posta dina loggar",
|
||||
"pleaseSendTheLogsTo": "Vänligen skicka loggarna till \n{toEmail}",
|
||||
"copyEmailAddress": "Kopiera e-postadress",
|
||||
"exportLogs": "Exportera loggar",
|
||||
@@ -297,7 +298,7 @@
|
||||
"criticalUpdateAvailable": "Kritisk uppdatering tillgänglig",
|
||||
"updateAvailable": "Uppdatering tillgänglig",
|
||||
"update": "Uppdatera",
|
||||
"checking": "Kontrollerar ...",
|
||||
"checking": "Kontrollerar...",
|
||||
"youAreOnTheLatestVersion": "Du är på den senaste versionen",
|
||||
"warning": "Varning",
|
||||
"exportWarningDesc": "Den exporterade filen innehåller känslig information. Förvara den på ett säkert sätt.",
|
||||
@@ -306,7 +307,7 @@
|
||||
"description": "Text for the button to confirm the user understands the warning"
|
||||
},
|
||||
"authToExportCodes": "Autentisera för att exportera dina koder",
|
||||
"importSuccessTitle": "Jippi!",
|
||||
"importSuccessTitle": "Hurra!",
|
||||
"importSuccessDesc": "Du har importerat {count} koder!",
|
||||
"@importSuccessDesc": {
|
||||
"placeholders": {
|
||||
@@ -324,7 +325,7 @@
|
||||
"checkInboxAndSpamFolder": "Vänligen kontrollera din inkorg (och skräppost) för att slutföra verifieringen",
|
||||
"tapToEnterCode": "Tryck för att ange kod",
|
||||
"resendEmail": "Skicka e-post igen",
|
||||
"weHaveSendEmailTo": "Vi har skickat ett mail till <green>{email}</green>",
|
||||
"weHaveSendEmailTo": "Vi har skickat ett e-postmeddelande till <green>{email}</green>",
|
||||
"@weHaveSendEmailTo": {
|
||||
"description": "Text to indicate that we have sent a mail to the user",
|
||||
"placeholders": {
|
||||
@@ -362,7 +363,7 @@
|
||||
"selectExportFormat": "Välj exportformat",
|
||||
"exportDialogDesc": "Krypterad export skyddas av ett lösenord som du väljer.",
|
||||
"encrypted": "Krypterad",
|
||||
"plainText": "Enkel text",
|
||||
"plainText": "Oformaterad text",
|
||||
"passwordToEncryptExport": "Lösenord för att kryptera export",
|
||||
"export": "Exportera",
|
||||
"useOffline": "Använd utan säkerhetskopior",
|
||||
@@ -374,14 +375,14 @@
|
||||
"compactMode": "Kompakt läge",
|
||||
"shouldHideCode": "Dölj koder",
|
||||
"doubleTapToViewHiddenCode": "Du kan dubbeltrycka på en post för att visa koden",
|
||||
"focusOnSearchBar": "Fokusera på sök vid appstart",
|
||||
"focusOnSearchBar": "Fokusera på sök vid uppstart av app",
|
||||
"confirmUpdatingkey": "Är du säker på att du vill uppdatera den hemliga nyckeln?",
|
||||
"minimizeAppOnCopy": "Minimera appen vid kopiering",
|
||||
"editCodeAuthMessage": "Autentisera för att redigera kod",
|
||||
"deleteCodeAuthMessage": "Autentisera för att radera kod",
|
||||
"showQRAuthMessage": "Autentisera för att visa QR-kod",
|
||||
"confirmAccountDeleteTitle": "Bekräfta radering av kontot",
|
||||
"confirmAccountDeleteMessage": "Detta konto är kopplat till andra Ente apps, om du använder någon.\n\nDina uppladdade data, över alla Ente appar, kommer att schemaläggas för radering och ditt konto kommer att raderas permanent.",
|
||||
"confirmAccountDeleteMessage": "Detta konto är kopplat till andra Ente applikationer, om du använder någon.\n\nDina uppladdade data, över alla Ente applikationer, kommer att schemaläggas för radering och ditt konto kommer att raderas permanent.",
|
||||
"androidBiometricHint": "Verifiera identitet",
|
||||
"@androidBiometricHint": {
|
||||
"description": "Hint message advising the user how to authenticate with biometrics. It is used on Android side. Maximum 60 characters."
|
||||
@@ -390,7 +391,7 @@
|
||||
"@androidBiometricNotRecognized": {
|
||||
"description": "Message to let the user know that authentication was failed. It is used on Android side. Maximum 60 characters."
|
||||
},
|
||||
"androidBiometricSuccess": "Slutförd",
|
||||
"androidBiometricSuccess": "Lyckades",
|
||||
"@androidBiometricSuccess": {
|
||||
"description": "Message to let the user know that authentication was successful. It is used on Android side. Maximum 60 characters."
|
||||
},
|
||||
@@ -441,7 +442,7 @@
|
||||
"signOutOtherDevices": "Logga ut andra enheter",
|
||||
"doNotSignOut": "Logga inte ut",
|
||||
"hearUsWhereTitle": "Hur hörde du talas om Ente? (valfritt)",
|
||||
"hearUsExplanation": "Vi spårar inte appinstallationer, Det skulle hjälpa oss om du berättade var du hittade oss!",
|
||||
"hearUsExplanation": "Vi spårar inte installationer. Det skulle hjälpa oss om du berättade hur du hittade oss!",
|
||||
"recoveryKeySaved": "Återställningsnyckel sparad i nedladdningsmappen!",
|
||||
"waitingForBrowserRequest": "Väntar på webbläsarbegäran...",
|
||||
"waitingForVerification": "Väntar på verifiering...",
|
||||
@@ -488,6 +489,8 @@
|
||||
"hideContent": "Dölj innehåll",
|
||||
"hideContentDescriptionAndroid": "Döljer appinnehåll i app-växlaren och inaktiverar skärmdumpar",
|
||||
"hideContentDescriptioniOS": "Döljer appinnehåll i app-växlaren",
|
||||
"autoLockFeatureDescription": "Tid efter vilken appen låses efter att ha satts i bakgrunden",
|
||||
"appLockDescription": "Välj mellan enhetens förvalda låsskärm och en anpassad låsskärm med en PIN-kod eller lösenord.",
|
||||
"pinLock": "Pinkodslås",
|
||||
"enterPin": "Ange PIN-kod",
|
||||
"setNewPin": "Ställ in ny PIN-kod",
|
||||
@@ -498,9 +501,31 @@
|
||||
"appLockOfflineModeWarning": "Du har valt att fortsätta utan säkerhetskopior. Om du glömmer ditt applås, kommer du att bli utelåst från att komma åt dina data.",
|
||||
"duplicateCodes": "Dubblettkoder",
|
||||
"noDuplicates": "✨ Inga dubbletter",
|
||||
"youveNoDuplicateCodesThatCanBeCleared": "Du har inga dubbla koder som kan rensas",
|
||||
"deduplicateCodes": "Deduplicera koder",
|
||||
"deselectAll": "Avmarkera alla",
|
||||
"selectAll": "Markera alla",
|
||||
"deleteDuplicates": "Radera dubbletter",
|
||||
"plainHTML": "Ren HTML"
|
||||
"plainHTML": "Ren HTML",
|
||||
"tellUsWhatYouThink": "Berätta vad du tycker",
|
||||
"dropReviewiOS": "Skriv en recension på App Store",
|
||||
"dropReviewAndroid": "Skriv en recension på Play Store",
|
||||
"supportEnte": "Stöd <bold-green>ente</bold-green>",
|
||||
"giveUsAStarOnGithub": "Ge oss en stjärna på Github",
|
||||
"free5GB": "5 GB gratis på <bold-green>ente</bold-green> Foton",
|
||||
"loginWithAuthAccount": "Logga in med ditt Auth-konto",
|
||||
"freeStorageOffer": "10% rabatt på <bold-green>ente</bold-green> foton",
|
||||
"freeStorageOfferDescription": "Använd koden \"AUTH\" för att få 10% rabatt första året",
|
||||
"advanced": "Avancerad",
|
||||
"algorithm": "Algoritm",
|
||||
"type": "Typ",
|
||||
"period": "Tidsperiod",
|
||||
"digits": "Siffror",
|
||||
"importFromGallery": "Importera från galleri",
|
||||
"errorCouldNotReadImage": "Kunde inte läsa den valda bildfilen.",
|
||||
"errorInvalidQRCode": "Ogiltig QR-kod",
|
||||
"errorInvalidQRCodeBody": "Den skannade QR-koden är inte ett giltigt 2FA konto.",
|
||||
"errorNoQRCode": "Ingen QR-kod hittades",
|
||||
"errorGenericTitle": "Ett fel inträffade",
|
||||
"errorGenericBody": "Ett oväntat fel inträffade vid import."
|
||||
}
|
||||
@@ -6,7 +6,7 @@
|
||||
"@counterAppBarTitle": {
|
||||
"description": "Text shown in the AppBar of the Counter Page"
|
||||
},
|
||||
"onBoardingBody": "妥善保管您的两步验证码",
|
||||
"onBoardingBody": "妥善保管您的双重认证代码",
|
||||
"onBoardingGetStarted": "开始",
|
||||
"setupFirstAccount": "设置您的第一个账户",
|
||||
"importScanQrCode": "扫描二维码",
|
||||
@@ -111,13 +111,14 @@
|
||||
"importAegisGuide": "使用 Aegis 设置中的“导出密码库”选项。\n\n如果您的密码库已加密,则需要输入密码库密码才能解密密码库。",
|
||||
"import2FasGuide": "使用 2FAS 中的“设置 -> 备份 -> 导出”选项。\n\n如果您的备份已加密,则需要输入密码来解密备份",
|
||||
"importLastpassGuide": "使用 Lastpass Authenticator 设置中的“转移账户”选项,然后按“将账户导出到文件”。导入下载的 JSON。",
|
||||
"importProtonAuthGuide": "使用 Proton Authenticator 设置中的“导出”选项导出您的代码。",
|
||||
"exportCodes": "导出代码",
|
||||
"importLabel": "导入",
|
||||
"importInstruction": "请选择一个包含以下格式的代码列表的文件",
|
||||
"importCodeDelimiterInfo": "代码可以用逗号或换行符分隔",
|
||||
"selectFile": "选择文件",
|
||||
"emailVerificationToggle": "电子邮件验证",
|
||||
"emailVerificationEnableWarning": "为避免被锁在您的账户之外,请在启用电子邮件验证之前确保在 Ente Auth 之外存储电子邮件两步验证的副本。",
|
||||
"emailVerificationEnableWarning": "为避免被锁在您的账户之外,请在启用电子邮件验证之前确保在 Ente Auth 之外存储电子邮件双重认证的副本。",
|
||||
"authToChangeEmailVerificationSetting": "请进行身份验证以更改电子邮件验证",
|
||||
"authenticateGeneric": "请验证",
|
||||
"authToViewYourRecoveryKey": "请验证以查看您的恢复密钥",
|
||||
@@ -155,7 +156,7 @@
|
||||
"verifyEmail": "验证电子邮件",
|
||||
"enterCodeHint": "从你的身份验证器应用中\n输入6位数字代码",
|
||||
"lostDeviceTitle": "丢失了设备吗?",
|
||||
"twoFactorAuthTitle": "两步验证",
|
||||
"twoFactorAuthTitle": "双重认证",
|
||||
"passkeyAuthTitle": "通行密钥验证",
|
||||
"verifyPasskey": "验证通行密钥",
|
||||
"loginWithTOTP": "使用 TOTP 登录",
|
||||
@@ -519,5 +520,12 @@
|
||||
"algorithm": "算法",
|
||||
"type": "类型",
|
||||
"period": "周期",
|
||||
"digits": "数字"
|
||||
"digits": "数字",
|
||||
"importFromGallery": "从图库导入",
|
||||
"errorCouldNotReadImage": "无法读取所选图片文件。",
|
||||
"errorInvalidQRCode": "二维码无效",
|
||||
"errorInvalidQRCodeBody": "扫描的二维码不是有效的双重认证账户。",
|
||||
"errorNoQRCode": "未找到二维码",
|
||||
"errorGenericTitle": "出错了",
|
||||
"errorGenericBody": "导入时发生意外错误。"
|
||||
}
|
||||
1
mobile/apps/photos/.gitignore
vendored
@@ -52,3 +52,4 @@ lib/generated/intl/app_localizations*.dart
|
||||
# Generated rust bindings
|
||||
lib/src/rust/*
|
||||
rust/src/frb_generated*
|
||||
test/**/*.mocks.dart
|
||||
|
||||
@@ -75,3 +75,4 @@ analyzer:
|
||||
- rust_builder/**
|
||||
- lib/src/rust/**
|
||||
- rust/src/**
|
||||
- test/**
|
||||
|
||||
@@ -135,6 +135,17 @@
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
</intent-filter>
|
||||
</activity-alias>
|
||||
<activity-alias
|
||||
android:name="${applicationId}.IconDuckyHuggingE"
|
||||
android:icon="@mipmap/icon_ducky_hugging_e"
|
||||
android:enabled="false"
|
||||
android:exported="true"
|
||||
android:targetActivity=".MainActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
</intent-filter>
|
||||
</activity-alias>
|
||||
|
||||
<!-- Don't delete the meta-data below.
|
||||
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
|
||||
|
||||
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 47 KiB |
|
After Width: | Height: | Size: 42 KiB |
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/ic_launcher_background"/>
|
||||
<foreground android:drawable="@drawable/ic_ducky_hugging_e_launcher_foreground"/>
|
||||
</adaptive-icon>
|
||||
BIN
mobile/apps/photos/assets/2.0x/enable-streaming-static.png
Normal file
|
After Width: | Height: | Size: 175 KiB |
BIN
mobile/apps/photos/assets/3.0x/enable-streaming-static.png
Normal file
|
After Width: | Height: | Size: 396 KiB |
BIN
mobile/apps/photos/assets/ducky_analyze_files.riv
Normal file
52
mobile/apps/photos/assets/ducky_cleaning_static.svg
Normal file
@@ -0,0 +1,52 @@
|
||||
<svg width="198" height="150" viewBox="0 0 198 150" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path opacity="0.2" d="M103.208 1.51891C70.0589 1.51891 17.0832 -6.28475 9.02179 30.1961C0.957739 66.6797 0.325369 122.498 30.8944 124.356C61.4634 126.213 136.678 126.856 160.318 124.356C183.957 121.855 185.312 83.2462 185.312 57.3881C185.312 31.53 174.179 -0.973365 123.125 0.817466C107.034 1.38341 103.21 1.51891 103.21 1.51891H103.208Z" fill="white"/>
|
||||
<path d="M141.928 142.014C168.856 142.014 190.684 139.1 190.684 135.504C190.684 131.909 168.856 128.995 141.928 128.995C115.001 128.995 93.1719 131.909 93.1719 135.504C93.1719 139.1 115.001 142.014 141.928 142.014Z" fill="#343434"/>
|
||||
<path d="M67.2538 149.392C104.397 149.392 134.508 145.779 134.508 141.321C134.508 136.864 104.397 133.251 67.2538 133.251C30.1105 133.251 0 136.864 0 141.321C0 145.779 30.1105 149.392 67.2538 149.392Z" fill="#343434"/>
|
||||
<path d="M111.039 120.086C101.394 128.801 101.925 135.497 113.988 136.559C126.051 137.622 134.713 135.151 131.923 127.605C129.159 120.086 111.039 120.086 111.039 120.086Z" fill="#FF814A"/>
|
||||
<path d="M118.989 137.665C117.408 137.665 115.71 137.585 113.909 137.428C108.141 136.921 104.71 135.165 103.722 132.21C102.595 128.852 104.923 124.436 110.452 119.438C110.612 119.294 110.822 119.212 111.037 119.212C111.802 119.212 129.801 119.305 132.739 127.303C133.675 129.829 133.483 131.982 132.173 133.698C130.186 136.299 125.584 137.662 118.989 137.662V137.665ZM111.369 120.963C106.642 125.299 104.514 129.088 105.375 131.657C106.113 133.86 109.118 135.258 114.063 135.691C122.635 136.445 128.733 135.335 130.789 132.643C131.727 131.416 131.828 129.869 131.105 127.908C128.778 121.574 113.803 121.011 111.372 120.963H111.369Z" fill="#1C1C1C"/>
|
||||
<path d="M157.878 120.086C167.523 128.801 166.992 135.497 154.929 136.559C142.866 137.622 134.204 135.151 136.994 127.605C139.757 120.086 157.878 120.086 157.878 120.086Z" fill="#FF814A"/>
|
||||
<path d="M149.927 137.665C143.332 137.665 138.73 136.302 136.743 133.701C135.433 131.984 135.241 129.832 136.177 127.303C139.115 119.305 157.114 119.215 157.879 119.215C158.094 119.215 158.304 119.295 158.464 119.441C163.993 124.436 166.321 128.852 165.194 132.213C164.203 135.168 160.775 136.921 155.007 137.431C153.205 137.591 151.508 137.668 149.927 137.668V137.665ZM157.547 120.963C155.116 121.011 140.141 121.574 137.813 127.906C137.088 129.867 137.192 131.416 138.13 132.641C140.186 135.332 146.281 136.446 154.855 135.688C159.8 135.253 162.803 133.858 163.544 131.655C164.405 129.088 162.277 125.297 157.55 120.961L157.547 120.963Z" fill="#1C1C1C"/>
|
||||
<path d="M100.616 46.8054C80.2899 35.6035 65.3176 38.7095 71.7396 52.8316L100.616 46.8054Z" fill="#F4D93B"/>
|
||||
<path d="M71.743 53.7029C71.4108 53.7029 71.0946 53.5142 70.9485 53.1927C68.0231 46.7628 69.6599 43.3299 71.5463 41.5842C76.3981 37.0912 87.9747 38.8422 101.039 46.0427C101.462 46.2739 101.616 46.8053 101.382 47.2277C101.148 47.6502 100.619 47.8016 100.197 47.5705C86.1015 39.8014 76.2466 39.6101 72.7314 42.8649C70.077 45.3227 71.1611 49.4463 72.5374 52.4727C72.7367 52.9111 72.5427 53.4292 72.1043 53.6285C71.9874 53.6816 71.8652 53.7082 71.743 53.7082V53.7029Z" fill="#232323"/>
|
||||
<path d="M174.283 115.362C168.265 123.375 156.484 129.659 133.976 129.659C131.848 129.659 129.815 129.604 127.876 129.495C123.46 129.247 119.517 128.729 116.001 127.985C101.956 125.015 94.7002 118.444 91.084 111.161C86.2907 101.506 87.8929 90.6011 88.5518 85.1861C89.6146 76.4552 90.7253 70.2882 91.7456 64.4747C92.0059 62.9814 92.261 61.5147 92.5081 60.0321C93.1299 56.3043 93.903 52.8635 94.8117 49.6883C101.154 27.4916 114.091 18.3488 127.926 16.3932C129.93 16.1089 131.952 15.9761 133.976 15.9761C138.254 15.9761 142.59 16.5022 146.775 17.7696C160.206 21.8375 172.086 33.5469 175.444 60.0321C176.372 67.3389 178.069 74.2153 179.403 85.1861C180.161 91.4062 182.161 104.867 174.283 115.362Z" fill="#F4D93B"/>
|
||||
<path d="M129.171 17.7694C129.171 17.7694 107.25 19.5257 97.8895 49.7174L95.2936 51.1947L94.8047 49.6882C101.147 27.4914 114.084 18.3486 127.919 16.3931L129.171 17.7694Z" fill="white"/>
|
||||
<path d="M174.284 115.362C175.424 110.515 177.432 104.298 176.872 97.9079C174.932 75.8546 175.277 30.1539 144.047 18.8191L146.776 17.7695C160.207 21.8374 172.086 33.5469 175.445 60.0321C176.372 67.3389 178.07 74.2152 179.404 85.1861C180.161 91.4062 182.162 104.867 174.284 115.362Z" fill="white"/>
|
||||
<path d="M121.074 101.628C120.253 107.898 118.297 117.926 116.001 127.986C101.956 125.015 94.7002 118.444 91.084 111.161C86.2907 101.506 87.8929 90.6013 88.5518 85.1863C89.6146 76.4553 90.7253 70.2884 91.7456 64.4748L94.368 54.9733C137.813 54.333 124.794 73.1978 121.074 101.628Z" fill="#E2B639"/>
|
||||
<path d="M133.974 130.53C115.279 130.53 101.954 126.178 94.3657 117.596C84.9758 106.973 86.7453 92.6493 87.5956 85.7676L87.6806 85.0795C88.685 76.8215 89.7132 70.9734 90.707 65.3166C91.0338 63.454 91.342 61.6951 91.6449 59.8883C94.2674 44.1561 99.7674 32.343 107.996 24.7784C114.979 18.3564 123.72 15.1016 133.974 15.1016C144.227 15.1016 153.445 18.205 160.382 24.3214C168.906 31.8381 174.265 43.816 176.306 59.9228C176.707 63.0953 177.267 66.2518 177.863 69.5944C178.636 73.9492 179.513 78.8833 180.264 85.0795L180.349 85.7676C181.2 92.652 182.972 106.973 173.579 117.596C165.994 126.178 152.666 130.53 133.971 130.53H133.974ZM133.974 16.8472C124.172 16.8472 115.829 19.948 109.176 26.0644C101.242 33.3606 95.9227 44.8363 93.364 60.1779C93.0611 61.9926 92.7529 63.7542 92.4234 65.6195C91.4323 71.2523 90.4094 77.0792 89.4103 85.292L89.3253 85.9855C88.5069 92.6148 86.8011 106.41 95.6703 116.446C102.911 124.637 115.797 128.79 133.971 128.79C152.145 128.79 165.032 124.637 172.272 116.446C181.141 106.41 179.438 92.6148 178.617 85.9855L178.532 85.2947C177.785 79.1437 176.914 74.2335 176.143 69.9026C175.546 66.5388 174.982 63.361 174.573 60.146C170.035 24.3613 149.988 16.8499 133.971 16.8499L133.974 16.8472Z" fill="#1C1C1C"/>
|
||||
<path d="M135.676 20.3044L126.961 19.5631C127.338 17.4136 127.864 15.5564 128.483 13.994C131.411 6.59157 136.401 5.82901 137.307 12.1208C137.307 12.1208 140.036 6.16113 147.21 7.88022C149.187 8.35583 150.143 9.60198 150.228 11.1324C150.454 15.1312 144.726 21.0776 135.676 20.3044Z" fill="#F4D93B"/>
|
||||
<path d="M150.229 11.1324C147.761 9.91816 140.659 9.25922 138.754 11.2706C136.508 13.6406 137.282 12.0863 136.928 11.244C136.575 10.3991 130.108 11.0235 127.969 18.3914L128.484 13.994C131.412 6.59157 136.402 5.82901 137.308 12.1208C137.308 12.1208 140.037 6.16113 147.211 7.88022C149.188 8.35583 150.144 9.60198 150.229 11.1324Z" fill="white"/>
|
||||
<path d="M126.453 19.475C126.299 15.4656 128.345 9.79818 131.853 7.54768C133.524 6.48222 135.604 6.64961 136.824 8.29697C137.621 9.36243 137.95 10.768 138.043 12.0115L136.619 11.8069C136.725 11.581 136.816 11.4216 136.922 11.2409C138.968 7.76025 142.871 6.13681 146.796 6.95251C152.516 7.97281 151.823 13.4516 148.488 16.7782C146.277 19.0287 143.31 20.4236 140.225 20.8966C138.692 21.1251 137.129 21.1011 135.623 20.8514C135.32 20.8009 135.115 20.5166 135.166 20.2137C135.211 19.9427 135.445 19.7514 135.71 19.7487C137.156 19.7434 138.58 19.6371 139.967 19.3714C142.704 18.8586 145.371 17.6523 147.308 15.641C148.873 14.0547 150.592 10.8185 148.26 9.20301C147.771 8.86557 147.075 8.67958 146.487 8.56533C145.812 8.43779 145.13 8.37136 144.457 8.38996C141.747 8.40591 139.242 10.0665 137.982 12.4286C137.663 13.0769 136.678 12.9255 136.558 12.224C136.21 10.6936 135.341 8.16146 133.375 9.0861C129.985 11.0231 128.956 16.2149 127.45 19.6478C127.253 20.1606 126.461 20.025 126.451 19.4724L126.453 19.475Z" fill="#1C1C1C"/>
|
||||
<path d="M121.04 44.7142C127.356 40.8907 130.499 40.6516 136.932 44.8629C138.415 45.8407 137.939 47.3233 136.634 47.8574C133.52 49.1036 124.715 49.1912 121.216 48.0062C119.614 47.4429 119.319 45.7823 121.038 44.7142H121.04Z" fill="#FF814A"/>
|
||||
<path d="M120.694 44.1455C122.944 42.8516 125.41 41.5815 128.054 41.2759C130.761 40.9624 133.434 42.0545 135.708 43.3405C136.096 43.545 136.466 43.7762 136.838 43.9994C137.263 44.2545 137.698 44.4989 138.031 44.9054C139.064 46.048 138.522 47.7644 137.22 48.4313C136.078 48.984 134.784 49.2045 133.546 49.3905C129.626 49.8581 125.622 49.9166 121.764 48.976C121.345 48.8352 120.744 48.6917 120.367 48.4286C118.541 47.2941 118.956 45.11 120.694 44.1455ZM121.39 45.2827C120.51 45.8274 120.205 46.8052 121.334 47.233C123.162 47.7963 125.115 47.8574 127.068 47.9504C129.967 48.0035 132.908 47.9902 135.738 47.3286C135.868 47.2808 136.378 47.1453 136.495 47.0736C137.446 46.5714 137.202 45.7982 136.365 45.3173C135.929 45.033 135.491 44.7248 135.044 44.4644C132.937 43.1731 130.636 42.1288 128.16 42.3706C125.67 42.6576 123.502 43.9675 121.387 45.2827H121.39Z" fill="#232323"/>
|
||||
<path d="M111.373 54.4653L109.935 65.7577L100.806 137.407C100.806 142.152 83.2321 146 61.5535 146C60.5518 146 59.5607 145.992 58.5776 145.976C44.0969 145.737 31.8108 143.781 25.9601 141.036C23.6112 139.934 22.3013 138.703 22.3013 137.407L11.7344 54.4653H111.373Z" fill="#9F9DA8"/>
|
||||
<path d="M109.936 65.7583L100.806 137.408C100.806 142.153 83.2326 146 61.554 146C60.5523 146 59.5612 145.992 58.5781 145.976C58.703 88.4253 69.0175 62.1793 109.936 65.7583Z" fill="#8A8899"/>
|
||||
<path d="M25.9601 141.036C23.6112 139.934 22.3013 138.703 22.3013 137.407L11.7344 54.4653H12.5766L15.5126 57.4545L25.9601 141.036Z" fill="white"/>
|
||||
<path d="M61.5596 146.871C51.0139 146.871 41.0899 145.97 33.6183 144.334C25.5915 142.577 21.4944 140.266 21.4359 137.468L10.8743 54.5742C10.8424 54.3244 10.9194 54.0747 11.0842 53.8887C11.2489 53.7027 11.488 53.5938 11.7378 53.5938H111.376C111.626 53.5938 111.865 53.7027 112.03 53.8887C112.194 54.0747 112.271 54.3271 112.24 54.5742L101.678 137.468C101.619 140.268 97.5223 142.577 89.4955 144.334C82.0213 145.97 72.1 146.871 61.5542 146.871H61.5596ZM12.7315 55.3368L23.1736 137.298C23.1789 137.335 23.1816 137.372 23.1816 137.407C23.1816 137.885 23.7023 140.377 33.993 142.63C41.3476 144.241 51.1387 145.125 61.5622 145.125C71.9857 145.125 81.7768 144.238 89.1314 142.63C99.4221 140.377 99.9429 137.885 99.9429 137.407C99.9429 137.37 99.9429 137.332 99.9508 137.298L110.393 55.3368H12.7342H12.7315Z" fill="#1C1C1C"/>
|
||||
<path d="M111.373 54.4654C111.373 57.6273 101.868 60.3986 87.6135 61.9396C80.0331 62.7606 71.1081 63.2336 61.5535 63.2336C47.0169 63.2336 33.9364 62.1389 24.8282 60.3906C16.6977 58.8283 11.7344 56.7505 11.7344 54.4654C11.7344 51.2451 21.5919 48.4313 36.2826 46.9062C43.6903 46.1383 52.3283 45.6973 61.5535 45.6973C69.3014 45.6973 76.6374 46.0081 83.1763 46.5634C99.8597 47.9796 111.373 50.9847 111.373 54.4654Z" fill="#232323"/>
|
||||
<path d="M61.5578 64.1055C47.5792 64.1055 34.1321 63.064 24.6677 61.2466C15.509 59.4876 10.8672 57.2052 10.8672 54.4658C10.8672 52.4306 13.2824 50.7141 18.2511 49.2156C22.5979 47.9057 28.8021 46.8057 36.1966 46.0404C43.8567 45.246 52.6249 44.8262 61.5578 44.8262C69.1622 44.8262 76.461 45.1184 83.255 45.695C91.6273 46.4071 98.7215 47.5151 103.767 48.8994C109.475 50.467 112.251 52.2871 112.251 54.4658C112.251 56.4692 109.913 58.1618 105.101 59.6444C100.903 60.9383 94.8901 62.0304 87.7135 62.8062C79.8673 63.6565 70.8228 64.1055 61.5605 64.1055H61.5578ZM61.5578 46.5692C52.686 46.5692 43.979 46.9863 36.3772 47.7728C17.5788 49.7257 12.6102 53.0045 12.6102 54.4658C12.6102 55.7067 15.8544 57.7791 24.9972 59.5354C34.3579 61.3316 47.6829 62.3625 61.5578 62.3625C70.7591 62.3625 79.7371 61.9161 87.5249 61.0738C105.704 59.1077 110.505 55.8927 110.505 54.4658C110.505 52.574 103.209 49.1385 83.1062 47.4327C76.3627 46.8588 69.1117 46.5692 61.5578 46.5692Z" fill="#232323"/>
|
||||
<path d="M65.278 73.9174C50.4545 73.9174 32.1025 71.7679 12.7567 64.3973C12.483 64.2937 12.3449 63.9855 12.4485 63.7118C12.5521 63.4381 12.8603 63.3 13.134 63.4036C39.8503 73.5826 64.6696 73.7288 80.7844 72.0575C98.257 70.2454 109.555 65.9676 109.666 65.9251C109.94 65.8188 110.248 65.957 110.352 66.2306C110.458 66.5043 110.32 66.8125 110.046 66.9162C109.932 66.9587 98.5333 71.279 80.9305 73.1097C76.3578 73.5853 71.0836 73.9147 65.2727 73.9147L65.278 73.9174Z" fill="#1C1C1C"/>
|
||||
<path d="M59.9036 138.648C48.4173 138.648 34.9515 137.13 21.3981 132.231C21.1217 132.13 20.9782 131.827 21.0792 131.551C21.1802 131.274 21.4831 131.131 21.7594 131.232C42.2317 138.632 62.5234 138.241 75.9413 136.61C90.4965 134.84 100.33 131.269 100.428 131.232C100.705 131.131 101.01 131.272 101.111 131.548C101.212 131.824 101.071 132.13 100.795 132.231C100.697 132.268 90.7702 135.874 76.1008 137.662C71.4351 138.23 65.943 138.65 59.9036 138.65V138.648Z" fill="#1C1C1C"/>
|
||||
<path d="M28.3625 125.363C27.1482 125.363 26.1093 124.443 25.9844 123.208L21.34 76.6222C21.2098 75.3069 22.1689 74.1352 23.4815 74.005C24.7941 73.8748 25.9658 74.834 26.0987 76.1466L30.7432 122.732C30.8733 124.047 29.9142 125.219 28.6016 125.349C28.5219 125.357 28.4422 125.363 28.3625 125.363Z" fill="#232323"/>
|
||||
<path d="M43.4128 127.828C42.1215 127.828 41.056 126.797 41.0242 125.498L39.8524 80.3419C39.8179 79.0214 40.8594 77.924 42.1799 77.8895C43.4952 77.855 44.5978 78.8965 44.6324 80.2171L45.8041 125.373C45.8387 126.694 44.7971 127.791 43.4766 127.826C43.4553 127.826 43.4341 127.826 43.4128 127.826V127.828Z" fill="#232323"/>
|
||||
<path d="M60.6807 128.995C60.6807 128.995 60.6568 128.995 60.6435 128.995C59.323 128.976 58.2681 127.89 58.2894 126.569L58.9643 81.4077C58.9829 80.0872 60.0749 79.0297 61.3901 79.0536C62.7107 79.0722 63.7655 80.1589 63.7442 81.4795L63.0694 126.641C63.0508 127.948 61.9826 128.998 60.678 128.998L60.6807 128.995Z" fill="#232323"/>
|
||||
<path d="M93.2992 125.362C93.2195 125.362 93.1398 125.36 93.0601 125.349C91.7449 125.219 90.7857 124.047 90.9185 122.732L95.563 76.1465C95.6932 74.8313 96.8676 73.8721 98.1802 74.005C99.4954 74.1352 100.455 75.3069 100.322 76.6221L95.6773 123.208C95.5551 124.441 94.5135 125.362 93.2992 125.362Z" fill="#232323"/>
|
||||
<path d="M78.2515 127.828C78.2303 127.828 78.209 127.828 78.1877 127.828C76.8672 127.794 75.8257 126.696 75.8602 125.376L77.0319 80.2199C77.0665 78.9206 78.1293 77.8896 79.4206 77.8896C79.4419 77.8896 79.4631 77.8896 79.4844 77.8896C80.8049 77.9242 81.8465 79.0215 81.8119 80.3421L80.6402 125.498C80.6056 126.797 79.5428 127.828 78.2515 127.828Z" fill="#232323"/>
|
||||
<path d="M92.3543 60.3824L87.6115 61.9394C80.031 62.7605 71.1061 63.2334 61.5514 63.2334C49.0342 63.2334 37.5984 62.423 28.8462 61.0786C27.4353 60.8633 26.0908 60.6322 24.8261 60.3904L24.7969 60.3824C24.7969 60.3824 24.7995 60.3718 24.7995 60.3665C25.7587 55.1507 30.815 50.5116 36.2805 46.906C40.9622 43.8186 45.9414 41.4963 48.8987 40.2316C50.5381 39.5301 51.5584 39.1528 51.5584 39.1528L74.5708 41.313C78.0409 42.7265 80.8733 44.5731 83.1743 46.5633C90.3801 52.7833 92.3543 60.3824 92.3543 60.3824Z" fill="#20D34F"/>
|
||||
<path d="M50.7588 41.2815C50.7588 41.2815 31.785 53.0202 28.8411 61.0789C28.6816 61.52 28.5674 61.9478 28.5089 62.3623L24.6562 61.2463L24.821 60.3907L24.7944 60.3668C25.7536 55.1511 30.8099 50.5119 36.2754 46.9064C40.9571 43.8189 45.9363 41.4967 48.8936 40.2319L50.7588 41.2815Z" fill="white"/>
|
||||
<path d="M61.5571 64.1048C47.5785 64.1048 34.1313 63.0633 24.667 61.2459C24.6457 61.2406 24.6245 61.2379 24.6032 61.2326L24.574 61.2246C24.1356 61.1077 23.8619 60.672 23.9443 60.2256C24.7999 55.5306 28.7907 50.8038 35.8052 46.1779C43.0828 41.3794 51.1814 38.3636 51.2611 38.3344C51.3833 38.2892 51.5135 38.2733 51.6437 38.2839L74.6562 40.4441C74.7412 40.4521 74.8236 40.4733 74.9033 40.5052C78.1687 41.8364 81.1446 43.6511 83.7485 45.9043C91.0765 52.228 93.1198 59.843 93.2022 60.1645C93.3191 60.6109 93.0667 61.0679 92.6309 61.2113L87.8881 62.7684C87.8297 62.787 87.7712 62.8002 87.7101 62.8056C79.8639 63.6558 70.8194 64.1048 61.5571 64.1048ZM25.8547 59.6942C35.1622 61.392 48.1019 62.3618 61.5597 62.3618C70.7264 62.3618 79.67 61.9208 87.4338 61.0838L91.2705 59.8244C90.5584 57.7705 88.191 52.0393 82.6113 47.2248C80.1828 45.1231 77.4088 43.4253 74.3665 42.1711L51.6836 40.0429C50.456 40.5132 43.2715 43.3482 36.7671 47.6366C30.6054 51.7019 26.9388 55.7538 25.8547 59.6968V59.6942Z" fill="#232323"/>
|
||||
<path d="M73.0661 37.8245L52.6549 36.9291C52.2006 36.201 51.8684 35.5527 51.6399 34.9762C49.8704 30.4938 54.2491 30.2865 54.2491 30.2865C55.676 24.7387 60.1185 25.8094 63.469 27.5764C65.7354 28.772 67.5023 30.2865 67.5023 30.2865C79.2251 24.4411 73.0661 37.8245 73.0661 37.8245Z" fill="#20D34F"/>
|
||||
<path d="M65.7886 29.5904C65.5229 29.5319 56.7547 27.5631 55.5272 31.9764C55.5272 31.9764 53.0535 32.545 53.9834 36.6209L51.6399 34.9762C49.8704 30.4938 54.2491 30.2865 54.2491 30.2865C55.676 24.7387 60.1185 25.8094 63.469 27.5764L65.7886 29.5904Z" fill="white"/>
|
||||
<path d="M73.0599 38.696C73.0599 38.696 73.0334 38.696 73.0227 38.696L52.6115 37.8006C52.3245 37.7873 52.0615 37.6358 51.91 37.3914C50.353 34.8991 49.9545 32.8877 50.725 31.4158C51.3972 30.1298 52.755 29.6701 53.5601 29.5054C54.227 27.3904 55.4093 26.0539 57.0833 25.5251C60.9253 24.3135 66.0746 28.0413 67.6183 29.2583C70.9768 27.672 73.2459 27.5152 74.5479 28.7747C75.6479 29.8428 75.8418 31.7957 75.1218 34.5829C74.6302 36.4907 73.8836 38.1194 73.8517 38.1885C73.7082 38.4994 73.4 38.696 73.0599 38.696ZM53.1535 36.0788L72.5019 36.9264C73.5249 34.4899 74.3751 31.0358 73.3336 30.0261C72.6082 29.322 70.6234 29.702 67.8867 31.065C67.5732 31.2218 67.1959 31.174 66.9302 30.9481C65.336 29.5851 60.5533 26.2558 57.604 27.1884C56.3845 27.5737 55.5608 28.6578 55.0852 30.5044C54.9895 30.8737 54.6654 31.1394 54.2828 31.158C54.2721 31.158 52.7683 31.2563 52.2634 32.2315C51.8489 33.0312 52.1651 34.389 53.1509 36.0788H53.1535Z" fill="#232323"/>
|
||||
<path d="M74.6803 37.9618L51.0823 36.4317C49.9841 36.3605 49.036 37.1931 48.9648 38.2913C48.8936 39.3896 49.7262 40.3376 50.8244 40.4089L74.4224 41.939C75.5206 42.0102 76.4687 41.1776 76.5399 40.0794C76.6111 38.9811 75.7785 38.033 74.6803 37.9618Z" fill="#9F9DA8"/>
|
||||
<path d="M74.5503 42.8173C74.4866 42.8173 74.4254 42.8173 74.3617 42.812L50.7647 41.2816C50.0021 41.2311 49.3033 40.8883 48.7985 40.3144C48.2937 39.7405 48.0439 39.0019 48.0917 38.2393C48.1422 37.4767 48.485 36.7779 49.0589 36.2731C49.6355 35.7683 50.3715 35.5185 51.134 35.5663L74.731 37.0968C75.4936 37.1473 76.1924 37.49 76.6972 38.0639C77.202 38.6378 77.4518 39.3765 77.404 40.1391C77.3535 40.9016 77.0107 41.6004 76.4368 42.1053C75.9107 42.5676 75.2465 42.8173 74.5503 42.8173ZM74.4733 41.0717C74.7735 41.0903 75.0605 40.992 75.2863 40.7953C75.5122 40.5987 75.645 40.3251 75.6663 40.0248C75.6849 39.7246 75.5866 39.4376 75.3899 39.2118C75.1933 38.9859 74.9197 38.8531 74.6194 38.8318L51.0224 37.3014C50.7222 37.2828 50.4352 37.3811 50.2094 37.5777C49.9835 37.7743 49.8507 38.048 49.8294 38.3482C49.8108 38.6485 49.9091 38.9354 50.1057 39.1613C50.3024 39.3871 50.576 39.52 50.8763 39.5412L74.4733 41.0717Z" fill="#232323"/>
|
||||
<path d="M111.235 40.3833C111.062 40.3833 110.889 40.3541 110.719 40.2877C109.964 40.0034 109.582 39.1584 109.869 38.4038C111.349 34.4874 114.266 33.3449 116.506 33.5813C119.158 33.863 121.299 35.9673 121.714 38.7014C121.836 39.4985 121.286 40.2452 120.489 40.3647C119.692 40.4843 118.945 39.9369 118.826 39.1398C118.61 37.7183 117.532 36.6289 116.201 36.4881C114.705 36.3287 113.36 37.4314 112.606 39.4374C112.385 40.022 111.83 40.3833 111.237 40.3833H111.235Z" fill="#1C1C1C"/>
|
||||
<path d="M147.634 40.3833C147.044 40.3833 146.489 40.022 146.266 39.4374C145.509 37.434 144.164 36.3314 142.671 36.4881C141.34 36.6289 140.261 37.7183 140.046 39.1398C139.924 39.9369 139.18 40.4869 138.383 40.3647C137.585 40.2425 137.035 39.4985 137.158 38.7014C137.572 35.9673 139.714 33.863 142.365 33.5813C144.603 33.3449 147.523 34.4874 149.003 38.4038C149.287 39.1584 148.907 40.0034 148.152 40.2877C147.982 40.3514 147.807 40.3833 147.637 40.3833H147.634Z" fill="#1C1C1C"/>
|
||||
<path d="M193.199 114.384C187.58 108.953 173.386 102.09 156.054 96.898C138.723 91.7061 123.094 89.6337 115.415 91.0791L111.839 90.0083L110.51 93.9938C108.879 99.4381 126.625 109.561 150.148 116.61C173.67 123.657 194.06 124.959 195.692 119.515L197.02 115.529L193.197 114.384H193.199Z" fill="#B7B6BF"/>
|
||||
<path d="M184.999 123.75C183.675 123.75 182.344 123.699 181.072 123.617C172.404 123.064 161.333 120.872 149.897 117.445C138.458 114.017 128.006 109.761 120.462 105.456C114.891 102.278 108.498 97.6658 109.672 93.7414C109.672 93.7334 109.677 93.7255 109.68 93.7148L111.009 89.7293C111.157 89.2829 111.633 89.0332 112.085 89.1687L115.459 90.181C123.571 88.7462 139.55 91.0419 156.3 96.061C173.047 101.077 187.658 107.948 193.645 113.605L197.266 114.689C197.492 114.756 197.681 114.913 197.79 115.122C197.898 115.332 197.917 115.577 197.843 115.8L196.517 119.775C195.563 122.908 190.326 123.744 184.993 123.744L184.999 123.75ZM111.341 94.2569C110.605 96.7784 116.014 100.913 121.328 103.944C128.76 108.185 139.083 112.386 150.399 115.776C161.715 119.166 172.646 121.332 181.186 121.877C187.3 122.267 194.102 121.786 194.859 119.265C194.859 119.257 194.864 119.249 194.867 119.238L195.911 116.106L192.951 115.218C192.818 115.178 192.696 115.106 192.595 115.011C186.893 109.503 172.455 102.722 155.806 97.7323C139.157 92.745 123.369 90.468 115.579 91.9346C115.443 91.9612 115.302 91.9532 115.167 91.9134L112.401 91.0844L111.343 94.2542L111.341 94.2569Z" fill="#232323"/>
|
||||
<path d="M197.02 115.529C195.981 119.004 187.295 119.73 175.033 117.968C168.085 116.972 159.984 115.173 151.476 112.625C127.956 105.578 110.207 95.4524 111.838 90.0082C113.47 84.5639 133.86 85.8659 157.382 92.9123C164.179 94.9502 170.492 97.2432 175.997 99.6053C189.543 105.422 198.181 111.66 197.02 115.529Z" fill="#9F9DA8"/>
|
||||
<path d="M197.017 115.529C195.979 119.004 187.293 119.73 175.031 117.968C175.326 117.979 175.636 117.995 175.961 118.011C200.565 119.249 197.589 109.599 173.492 99.4966L175.995 99.6055C189.541 105.422 198.179 111.66 197.017 115.529Z" fill="white"/>
|
||||
<path d="M186.335 119.764C185.011 119.764 183.68 119.714 182.408 119.631C173.74 119.078 162.668 116.886 151.233 113.459C139.794 110.031 129.342 105.775 121.798 101.47C116.226 98.2926 109.834 93.68 111.008 89.7556C112.182 85.8338 120.063 85.4964 126.461 85.9029C135.128 86.4556 146.2 88.6476 157.636 92.0752C178.688 98.383 199.939 108.833 197.858 115.776C196.917 118.919 191.67 119.761 186.332 119.761L186.335 119.764ZM122.696 87.5264C117.783 87.5264 113.282 88.2358 112.677 90.2578C111.922 92.7793 117.34 96.9216 122.659 99.9559C130.091 104.197 140.413 108.397 151.73 111.788C163.043 115.178 173.977 117.343 182.516 117.888C188.63 118.279 195.432 117.798 196.189 115.276C196.944 112.755 191.526 108.612 186.207 105.578C178.775 101.338 168.453 97.1368 157.137 93.7465C145.82 90.3561 134.887 88.1906 126.35 87.6459C125.141 87.5689 123.905 87.5264 122.696 87.5264Z" fill="#232323"/>
|
||||
<path d="M164.6 106.976C164.412 106.976 164.22 106.949 164.029 106.894C162.974 106.58 162.374 105.469 162.69 104.415C163.928 100.264 161.157 98.4788 154.99 95.6544C154.06 95.2293 153.098 94.7882 152.203 94.3339C149.086 92.7503 146.803 92.2773 145.228 92.8964C143.897 93.4172 142.791 94.8467 141.941 97.1423C141.558 98.1732 140.413 98.702 139.38 98.3194C138.349 97.9368 137.82 96.7916 138.203 95.758C139.465 92.3491 141.341 90.1358 143.777 89.1846C147.369 87.779 151.339 89.4237 154.009 90.7814C154.833 91.1986 155.715 91.6051 156.65 92.0329C161.808 94.395 168.87 97.6312 166.508 105.554C166.25 106.418 165.458 106.979 164.6 106.979V106.976Z" fill="#232323"/>
|
||||
<path d="M153.389 70.5537C139.259 91.3847 144.509 114.857 171.688 90.1492L153.389 70.5537Z" fill="#F4D93B"/>
|
||||
<path d="M152.855 101.628C150.517 101.628 148.944 100.804 147.929 99.922C145.285 97.629 144.331 93.2529 145.243 87.6014C146.144 82.0243 148.779 75.7962 152.667 70.0624C152.938 69.6638 153.48 69.5602 153.878 69.8312C154.277 70.1022 154.38 70.6443 154.109 71.0428C150.36 76.5694 147.823 82.5477 146.962 87.8804C146.162 92.841 146.93 96.7495 149.069 98.6067C150.918 100.212 156.766 102.534 171.098 89.5065C171.454 89.1823 172.007 89.2089 172.328 89.5649C172.653 89.921 172.626 90.4736 172.27 90.7978C162.957 99.263 156.811 101.63 152.852 101.63L152.855 101.628Z" fill="#232323"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 23 KiB |
BIN
mobile/apps/photos/assets/enable-streaming-static.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 43 KiB |
BIN
mobile/apps/photos/assets/launcher_icon/icon-ducky-hugging-e.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
@@ -1,36 +1,36 @@
|
||||
ente is a simple app to backup and share your photos and videos.
|
||||
ente je jednoduchá aplikace pro automatické zálohování a organizaci vašich fotek a videí.
|
||||
|
||||
If you've been looking for a privacy-friendly alternative to Google Photos, you've come to the right place. With ente, they are stored end-to-end encrypted (e2ee). This means that only you can view them.
|
||||
Pokud hledáte alternativu ke službě Google Photos, která respektuje vaše soukromí, jste na správném místě. S Ente jsou uloženy s koncovým "end-to-end" šifrováním (e2ee). To znamená, že je můžete vidět pouze vy.
|
||||
|
||||
We have open-source apps across Android, iOS, web and desktop, and your photos will seamlessly sync between all of them in an end-to-end encrypted (e2ee) manner.
|
||||
Máme aplikace napříč všemi platformami a vaše fotky se budou bezproblémově synchronizovat mezi všemi vašimi zařízeními tak, aby byly koncově šifrovány mezi jednotlivými zařízeními (e2ee).
|
||||
|
||||
ente also makes it simple to share your albums with your loved ones, even if they aren't on ente. You can share publicly viewable links, where they can view your album and collaborate by adding photos to it, even without an account or app.
|
||||
ente také usnadňuje sdílení vašich alb s vašimi blízkými, i když nejsou na ente. Můžete sdílet veřejně přístupné odkazy, kde si mohou prohlížet vaše album a spolupracovat přidáváním fotografií, a to i bez účtu nebo aplikace.
|
||||
|
||||
Your encrypted data is replicated to 3 different locations, including a fall-out shelter in Paris. We take posterity seriously and make it easy to ensure that your memories outlive you.
|
||||
Vaše šifrovaná data jsou uložena na 3 místech, včetně protiatomového krytu v Paříži. Bereme budoucnost vážně a usnadňujeme vám zajistit, aby vaše vzpomínky přežily vás samotné.
|
||||
|
||||
We are here to make the safest photos app ever, come join our journey!
|
||||
Jsme tu, abychom vytvořili nejbezpečnější aplikaci pro fotografie, jaká kdy byla. Přidejte se k nám!
|
||||
|
||||
FEATURES
|
||||
- Original quality backups, because every pixel is important
|
||||
- Family plans, so you can share storage with your family
|
||||
- Collaborative albums, so you can pool together photos after a trip
|
||||
- Shared folders, in case you want your partner to enjoy your "Camera" clicks
|
||||
- Album links, that can be protected with a password
|
||||
- Ability to free up space, by removing files that have been safely backed up
|
||||
- Human support, because you're worth it
|
||||
- Descriptions, so you can caption your memories and find them easily
|
||||
- Image editor, to add finishing touches
|
||||
- Favorite, hide and relive your memories, for they are precious
|
||||
- One-click import from Google, Apple, your hard drive and more
|
||||
- Dark theme, because your photos look good in it
|
||||
- 2FA, 3FA, biometric auth
|
||||
- and a LOT more!
|
||||
VLASTNOSTI
|
||||
- Zálohování v původní kvalitě, protože každý pixel je důležitý
|
||||
- Rodinné plány, takže můžete sdílet úložiště s rodinou
|
||||
- Společná alba, do kterých můžete po cestě shromažďovat fotografie
|
||||
- Sdílené složky, aby i váš partner mohl obdivovat vaše fotografie
|
||||
- Odkazy na alba, které lze chránit heslem a nastavit jejich platnost
|
||||
- Možnost uvolnit místo odstraněním souborů, které byly bezpečně zálohovány
|
||||
- Lidská podpora, protože si to zasloužíte
|
||||
- Popisy, abyste mohli své vzpomínky opatřit popisky a snadno je najít
|
||||
- Editor obrázků pro doladění detailů
|
||||
- Označte si své oblíbené fotografie, skryjte je a nebo je prožijte znovu pomocí vzpomínek
|
||||
- Import jedním kliknutím z Google, Apple, pevného disku a dalších zdrojů
|
||||
- Tmavý motiv, protože vaše fotografie v něm vypadají dobře
|
||||
- 2FA, 3FA, biometrické ověření
|
||||
- a ještě MNOHEM víc!
|
||||
|
||||
OPRÁVNĚNÍ
|
||||
ente requests for certain permissions to serve the purpose of a photo storage provider, which can be reviewed here: https://github.com/ente-io/ente/blob/f-droid/mobile/android/permissions.md
|
||||
ente žádá o určitá oprávnění, aby mohla plnit funkci poskytovatele úložiště fotografií. Tyto oprávnění si můžete prohlédnout zde: https://github.com/ente-io/ente/blob/f-droid/mobile/android/permissions.md
|
||||
|
||||
PRICING
|
||||
We don't offer forever free plans, because it is important to us that we remain sustainable and withstand the test of time. Instead we offer affordable plans that you can freely share with your family. You can find more information at ente.io.
|
||||
CENY
|
||||
Nenabízíme doživotní tarify, protože je pro nás důležité zůstat udržitelnými a obstát ve zkoušce času. Místo toho nabízíme cenově dostupné plány, které můžete svobodně sdílet se svou rodinou. Více informací najdete na ente.io.
|
||||
|
||||
PODPORA
|
||||
We take pride in offering human support. If you are our paid customer, you can reach out to team@ente.io and expect a response from our team within 24 hours.
|
||||
Jsme hrdí na to, že poskytujeme lidskou podporu. Pokud máte placený tarif, můžete se obrátit na team@ente.io a do 24 hodin od našeho týmu očekávat odpověď.
|
||||
|
||||
@@ -1 +1 @@
|
||||
ente is an end-to-end encrypted photo storage app
|
||||
ente je aplikace pro ukládání fotografií a videí s koncovým šifrováním
|
||||
@@ -1 +1 @@
|
||||
ente - encrypted photo storage
|
||||
ente – šifrované úložiště fotografií
|
||||
@@ -1,33 +1,33 @@
|
||||
Ente is a simple app to automatically backup and organize your photos and videos.
|
||||
Ente je jednoduchá aplikace pro automatické zálohování a organizaci vašich fotek a videí.
|
||||
|
||||
If you've been looking for a privacy-friendly alternative to preserve your memories, you've come to the right place. With Ente, they are stored end-to-end encrypted (e2ee). This means that only you can view them.
|
||||
Pokud hledáte alternativu, která respektuje vaše soukromí a umožní vám uchovat vaše vzpomínky, jste na správném místě. S Ente jsou uloženy s koncovým "end-to-end" šifrováním (e2ee). To znamená, že je můžete vidět pouze vy.
|
||||
|
||||
We have apps across all platforms, and your photos will seamlessly sync between all your devices in an end-to-end encrypted (e2ee) manner.
|
||||
Máme aplikace napříč všemi platformami a vaše fotky se budou bezproblémově synchronizovat mezi všemi vašimi zařízeními tak, aby byly koncově šifrovány mezi jednotlivými zařízeními (e2ee).
|
||||
|
||||
Ente also makes it simple to share your albums with your loved ones. You can either share them directly with other Ente users, end-to-end encrypted; or with publicly viewable links.
|
||||
Ente také zjednodušuje sdílení alb s vašimi blízkými. Můžete je buď sdílet přímo s ostatními uživateli Ente, koncově šifrované; nebo s pomocí veřejně přístupných odkazů.
|
||||
|
||||
Your encrypted data is stored across multiple locations, including a fall-out shelter in Paris. We take posterity seriously and make it easy to ensure that your memories outlive you.
|
||||
Vaše šifrovaná data jsou uložena na několika místech, včetně protiatomového krytu v Paříži. Bereme budoucnost vážně a usnadňujeme vám zajistit, aby vaše vzpomínky přežily vás samotné.
|
||||
|
||||
We are here to make the safest photos app ever, come join our journey!
|
||||
Jsme tu, abychom vytvořili nejbezpečnější aplikaci pro fotografie, jaká kdy byla. Přidejte se k nám!
|
||||
|
||||
FEATURES
|
||||
- Original quality backups, because every pixel is important
|
||||
- Family plans, so you can share storage with your family
|
||||
- Shared folders, in case you want your partner to enjoy your "Camera" clicks
|
||||
- Album links, that can be protected with a password and set to expire
|
||||
- Ability to free up space, by removing files that have been safely backed up
|
||||
- Image editor, to add finishing touches
|
||||
- Favorite, hide and relive your memories, for they are precious
|
||||
- One-click import from all major storage providers
|
||||
- Dark theme, because your photos look good in it
|
||||
- 2FA, 3FA, biometric auth
|
||||
- and a LOT more!
|
||||
VLASTNOSTI
|
||||
- Zálohování v původní kvalitě, protože každý pixel je důležitý
|
||||
- Rodinné plány, takže můžete sdílet úložiště s rodinou
|
||||
- Sdílené složky, aby i váš partner mohl obdivovat vaše fotografie
|
||||
- Odkazy na alba, které lze chránit heslem a nastavit jejich platnost
|
||||
- Možnost uvolnit místo odstraněním souborů, které byly bezpečně zálohovány
|
||||
- Editor obrázků, pro finální doladění detailů
|
||||
- Označte si své oblíbené fotografie, skryjte je a nebo je prožijte znovu pomocí vzpomínek
|
||||
- Import jedním kliknutím ze všech velkých poskytovatelů úložišť
|
||||
- Tmavý motiv, protože vaše fotografie v něm vypadají dobře
|
||||
- 2FA, 3FA, biometrické ověření
|
||||
- a ještě MNOHEM víc!
|
||||
|
||||
PRICING
|
||||
We don't offer forever free plans, because it is important to us that we remain sustainable and withstand the test of time. Instead we offer affordable plans that you can freely share with your family. You can find more information at ente.io.
|
||||
CENY
|
||||
Nenabízíme doživotní tarify, protože je pro nás důležité zůstat udržitelnými a obstát ve zkoušce času. Místo toho nabízíme cenově dostupné plány, které můžete svobodně sdílet se svou rodinou. Více informací najdete na ente.io.
|
||||
|
||||
SUPPORT
|
||||
We take pride in offering human support. If you are our paid customer, you can reach out to team@ente.io and expect a response from our team within 24 hours.
|
||||
PODPORA
|
||||
Jsme hrdí na to, že poskytujeme lidskou podporu. Pokud máte placený tarif, můžete se obrátit na team@ente.io a do 24 hodin od našeho týmu očekávat odpověď.
|
||||
|
||||
TERMS
|
||||
PODMÍNKY
|
||||
https://ente.io/terms
|
||||
|
||||
@@ -1 +1 @@
|
||||
photos,photography,family,privacy,cloud,backup,videos,photo,encryption,storage,album,alternative
|
||||
fotky,fotografie,rodina,soukromí,cloud,zálohování,videa,fotka,šifrování,úložiště,album,alternativa
|
||||
|
||||
@@ -1 +1 @@
|
||||
Ente Photos
|
||||
Ente Fotky
|
||||
|
||||
@@ -1 +1 @@
|
||||
Encrypted photo storage
|
||||
Šifrované úložiště fotografií
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
Ente is a simple app to automatically backup and organize your photos and videos.
|
||||
Ente je jednoduchá aplikace pro automatické zálohování a organizaci vašich fotek a videí.
|
||||
|
||||
If you've been looking for a privacy-friendly alternative to preserve your memories, you've come to the right place. With Ente, they are stored end-to-end encrypted (e2ee). This means that only you can view them.
|
||||
Pokud hledáte alternativu, která respektuje vaše soukromí a umožní vám uchovat vaše vzpomínky, jste na správném místě. S Ente jsou uloženy s koncovým "end-to-end" šifrováním (e2ee). To znamená, že je můžete vidět pouze vy.
|
||||
|
||||
We have apps across Android, iOS, web and Desktop, and your photos will seamlessly sync between all your devices in an end-to-end encrypted (e2ee) manner.
|
||||
Máme aplikace napříč všemi platformami a vaše fotky se budou bezproblémově synchronizovat mezi všemi vašimi zařízeními tak, aby byly koncově šifrovány mezi jednotlivými zařízeními (e2ee).
|
||||
|
||||
Ente also makes it simple to share your albums with your loved ones. You can either share them directly with other Ente users, end-to-end encrypted; or with publicly viewable links.
|
||||
Ente také zjednodušuje sdílení alb s vašimi blízkými. Můžete je buď sdílet přímo s ostatními uživateli Ente, koncově šifrované; nebo s pomocí veřejně přístupných odkazů.
|
||||
|
||||
Your encrypted data is stored across multiple locations, including a fall-out shelter in Paris. We take posterity seriously and make it easy to ensure that your memories outlive you.
|
||||
Vaše šifrovaná data jsou uložena na několika místech, včetně protiatomového krytu v Paříži. Bereme budoucnost vážně a usnadňujeme vám zajistit, aby vaše vzpomínky přežily vás samotné.
|
||||
|
||||
We are here to make the safest photos app ever, come join our journey!
|
||||
Jsme tu, abychom vytvořili nejbezpečnější aplikaci pro fotografie, jaká kdy byla. Přidejte se k nám!
|
||||
|
||||
✨ FEATURES
|
||||
- Original quality backups, because every pixel is important
|
||||
- Family plans, so you can share storage with your family
|
||||
- Shared folders, in case you want your partner to enjoy your "Camera" clicks
|
||||
- Album links, that can be protected with a password and set to expire
|
||||
- Ability to free up space, by removing files that have been safely backed up
|
||||
- Image editor, to add finishing touches
|
||||
- Favorite, hide and relive your memories, for they are precious
|
||||
- One-click import from Google, Apple, your hard drive and more
|
||||
- Dark theme, because your photos look good in it
|
||||
- 2FA, 3FA, biometric auth
|
||||
- and a LOT more!
|
||||
✨ VLASTNOSTI
|
||||
- Zálohování v původní kvalitě, protože každý pixel je důležitý
|
||||
- Rodinné plány, takže můžete sdílet úložiště s rodinou
|
||||
- Sdílené složky, aby i váš partner mohl obdivovat vaše fotografie
|
||||
- Odkazy na alba, které lze chránit heslem a nastavit jejich platnost
|
||||
- Možnost uvolnit místo odstraněním souborů, které byly bezpečně zálohovány
|
||||
- Editor obrázků, pro finální doladění detailů
|
||||
- Označte si své oblíbené fotografie, skryjte je a nebo je prožijte znovu pomocí vzpomínek
|
||||
- Import jedním kliknutím ze všech velkých poskytovatelů úložišť
|
||||
- Tmavý motiv, protože vaše fotografie v něm vypadají dobře
|
||||
- 2FA, 3FA, biometrické ověření
|
||||
- a ještě MNOHEM víc!
|
||||
|
||||
💲 PRICING
|
||||
We don't offer forever free plans, because it is important to us that we remain sustainable and withstand the test of time. Instead we offer affordable plans that you can freely share with your family. You can find more information at ente.io.
|
||||
💲 CENY
|
||||
Nenabízíme doživotní tarify, protože je pro nás důležité zůstat udržitelnými a obstát ve zkoušce času. Místo toho nabízíme cenově dostupné plány, které můžete svobodně sdílet se svou rodinou. Více informací najdete na ente.io.
|
||||
|
||||
🙋 SUPPORT
|
||||
We take pride in offering human support. If you are our paid customer, you can reach out to team@ente.io and expect a response from our team within 24 hours.
|
||||
🙋 PODPORA
|
||||
Jsme hrdí na to, že poskytujeme lidskou podporu. Pokud máte placený tarif, můžete se obrátit na team@ente.io a do 24 hodin od našeho týmu očekávat odpověď.
|
||||
@@ -1 +1 @@
|
||||
Encrypted photo storage - backup, organize and share your photos and videos
|
||||
Šifrované úložiště fotografií – zálohujte, organizujte a sdílejte své fotografie a videa
|
||||
@@ -1 +1 @@
|
||||
Ente Photos
|
||||
Ente Fotky
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "IconDuckyHuggingEAny.png",
|
||||
"idiom" : "universal",
|
||||
"platform" : "ios",
|
||||
"size" : "1024x1024"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"filename" : "IconDuckyHuggingEDark.png",
|
||||
"idiom" : "universal",
|
||||
"platform" : "ios",
|
||||
"size" : "1024x1024"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "tinted"
|
||||
}
|
||||
],
|
||||
"filename" : "IconDuckyHuggingETinted.png",
|
||||
"idiom" : "universal",
|
||||
"platform" : "ios",
|
||||
"size" : "1024x1024"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 50 KiB |
|
After Width: | Height: | Size: 52 KiB |
|
After Width: | Height: | Size: 104 KiB |
@@ -981,7 +981,8 @@ class FilesDB with SqlDbBase {
|
||||
|
||||
// remove references for local files which are either already uploaded
|
||||
// or queued for upload but not yet uploaded
|
||||
Future<int> removeQueuedLocalFiles(Set<String> localIDs) async {
|
||||
// Remove queued local files that have duplicate uploaded entries with same localID
|
||||
Future<int> removeQueuedLocalFiles(Set<String> localIDs, int ownerID) async {
|
||||
if (localIDs.isEmpty) {
|
||||
_logger.finest("No local IDs provided for removal");
|
||||
return 0;
|
||||
@@ -990,54 +991,63 @@ class FilesDB with SqlDbBase {
|
||||
final db = await instance.sqliteAsyncDB;
|
||||
const batchSize = 10000;
|
||||
int totalRemoved = 0;
|
||||
|
||||
final localIDsList = localIDs.toList();
|
||||
|
||||
for (int i = 0; i < localIDsList.length; i += batchSize) {
|
||||
final endIndex = (i + batchSize > localIDsList.length)
|
||||
? localIDsList.length
|
||||
: i + batchSize;
|
||||
|
||||
final batch = localIDsList.sublist(i, endIndex);
|
||||
final placeholders = List.filled(batch.length, '?').join(',');
|
||||
final List<String> alreadyUploaded = [];
|
||||
// find localIDs that are already uploaded
|
||||
final result = await db.execute('''
|
||||
|
||||
// Find localIDs that already have uploaded entries
|
||||
final result = await db.execute(
|
||||
'''
|
||||
SELECT DISTINCT $columnLocalID
|
||||
FROM $filesTable
|
||||
WHERE $columnLocalID IN ($placeholders)
|
||||
WHERE
|
||||
$columnOwnerID = $ownerID
|
||||
AND $columnLocalID IN ($placeholders)
|
||||
AND ($columnUploadedFileID IS NOT NULL AND $columnUploadedFileID != -1)
|
||||
''');
|
||||
|
||||
for (final row in result) {
|
||||
alreadyUploaded.add(row[columnLocalID] as String);
|
||||
}
|
||||
final uploadedPlaceholders =
|
||||
alreadyUploaded.map((id) => "'$id'").join(',');
|
||||
final r = await db.execute(
|
||||
'''
|
||||
DELETE FROM $filesTable
|
||||
WHERE $columnLocalID IN ($uploadedPlaceholders)
|
||||
AND ($columnUploadedFileID IS NULL OR $columnUploadedFileID = -1)
|
||||
''',
|
||||
''',
|
||||
batch,
|
||||
);
|
||||
|
||||
if (r.isNotEmpty) {
|
||||
_logger.warning(
|
||||
"Batch ${(i ~/ batchSize) + 1}: Removed duplicate ${r.length} files",
|
||||
if (result.isNotEmpty) {
|
||||
final alreadyUploadedLocalIDs =
|
||||
result.map((row) => row[columnLocalID] as String).toList();
|
||||
final localIdPlaceholder =
|
||||
List.filled(alreadyUploadedLocalIDs.length, '?').join(',');
|
||||
|
||||
// Delete queued entries for localIDs that already have uploaded versions
|
||||
final deleteResult = await db.execute(
|
||||
'''
|
||||
DELETE FROM $filesTable
|
||||
WHERE $columnLocalID IN ($localIdPlaceholder)
|
||||
AND ($columnUploadedFileID IS NULL OR $columnUploadedFileID = -1)
|
||||
''',
|
||||
alreadyUploadedLocalIDs,
|
||||
);
|
||||
totalRemoved += r.length;
|
||||
|
||||
final removedCount =
|
||||
deleteResult.length; // or however your DB returns affected rows
|
||||
if (removedCount > 0) {
|
||||
_logger.warning(
|
||||
"Batch ${(i ~/ batchSize) + 1}: Removed $removedCount queued duplicates",
|
||||
);
|
||||
totalRemoved += removedCount;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (totalRemoved > 0) {
|
||||
_logger.warning(
|
||||
"Removed $totalRemoved potential dups for already queued local files",
|
||||
"Removed $totalRemoved queued files that had uploaded duplicates",
|
||||
);
|
||||
} else {
|
||||
_logger.finest("No duplicate id found for queued/uploaded files");
|
||||
_logger.finest("No queued duplicates found for uploaded files");
|
||||
}
|
||||
|
||||
return totalRemoved;
|
||||
}
|
||||
|
||||
@@ -1677,26 +1687,36 @@ class FilesDB with SqlDbBase {
|
||||
);
|
||||
}
|
||||
|
||||
Future<List<EnteFile>> getAllFilesAfterDate({
|
||||
required FileType fileType,
|
||||
required DateTime beginDate,
|
||||
Future<List<EnteFile>> getStreamingEligibleVideoFiles({
|
||||
DateTime? beginDate,
|
||||
required int userID,
|
||||
bool onlyFilesWithLocalId = false,
|
||||
}) async {
|
||||
final db = await instance.sqliteAsyncDB;
|
||||
final results = await db.getAll(
|
||||
'''
|
||||
|
||||
String query = '''
|
||||
SELECT * FROM $filesTable
|
||||
WHERE $columnFileType = ?
|
||||
AND $columnCreationTime > ?
|
||||
AND $columnUploadedFileID != -1
|
||||
AND $columnOwnerID = $userID
|
||||
AND $columnLocalID IS NOT NULL
|
||||
AND ($columnUploadedFileID IS NOT NULL AND $columnUploadedFileID != -1)
|
||||
AND $columnOwnerID = ?
|
||||
AND ($columnFileSize IS NOT NULL AND $columnFileSize <= 524288000)
|
||||
AND ($columnDuration IS NOT NULL AND ($columnDuration <= 60 AND $columnDuration > 0))
|
||||
ORDER BY $columnCreationTime DESC
|
||||
''',
|
||||
[getInt(fileType), beginDate.microsecondsSinceEpoch],
|
||||
);
|
||||
''';
|
||||
|
||||
final List<Object> queryArgs = [getInt(FileType.video), userID];
|
||||
|
||||
if (beginDate != null) {
|
||||
query += ' AND $columnCreationTime > ?';
|
||||
queryArgs.add(beginDate.microsecondsSinceEpoch);
|
||||
}
|
||||
|
||||
if (onlyFilesWithLocalId) {
|
||||
query += ' AND $columnLocalID IS NOT NULL';
|
||||
}
|
||||
|
||||
query += ' ORDER BY $columnCreationTime DESC';
|
||||
|
||||
final results = await db.getAll(query, queryArgs);
|
||||
return convertToFiles(results);
|
||||
}
|
||||
|
||||
|
||||
@@ -8,11 +8,13 @@ import "package:path_provider/path_provider.dart";
|
||||
import "package:photos/models/ml/vector.dart";
|
||||
import "package:photos/services/machine_learning/semantic_search/query_result.dart";
|
||||
import "package:photos/src/rust/api/usearch_api.dart";
|
||||
import "package:shared_preferences/shared_preferences.dart";
|
||||
|
||||
class ClipVectorDB {
|
||||
static final Logger _logger = Logger("ClipVectorDB");
|
||||
|
||||
static const _databaseName = "ente.ml.vectordb.clip";
|
||||
static const _databaseName = "ente.ml.vectordb.clip.usearch";
|
||||
static const _kMigrationKey = "clip_vectordb_migration";
|
||||
|
||||
static final BigInt _embeddingDimension = BigInt.from(512);
|
||||
|
||||
@@ -35,11 +37,10 @@ class ClipVectorDB {
|
||||
|
||||
Future<VectorDb> _initVectorDB() async {
|
||||
final documentsDirectory = await getApplicationDocumentsDirectory();
|
||||
final String databaseDirectory =
|
||||
join(documentsDirectory.path, _databaseName);
|
||||
_logger.info("Opening vectorDB access: DB path " + databaseDirectory);
|
||||
final String dbPath = join(documentsDirectory.path, _databaseName);
|
||||
_logger.info("Opening vectorDB access: DB path " + dbPath);
|
||||
final vectorDB = VectorDb(
|
||||
filePath: databaseDirectory,
|
||||
filePath: dbPath,
|
||||
dimensions: _embeddingDimension,
|
||||
);
|
||||
final stats = await getIndexStats(vectorDB);
|
||||
@@ -51,10 +52,9 @@ class ClipVectorDB {
|
||||
Future<bool> checkIfMigrationDone() async {
|
||||
if (_migrationDone != null) return _migrationDone!;
|
||||
_logger.info("Checking if ClipVectorDB migration has run");
|
||||
final documentsDirectory = await getApplicationDocumentsDirectory();
|
||||
final migrationFlagFile =
|
||||
File(join(documentsDirectory.path, 'clip_vector_migration_done'));
|
||||
if (await migrationFlagFile.exists()) {
|
||||
final prefs = await SharedPreferences.getInstance();
|
||||
final migrationDone = prefs.getBool(_kMigrationKey) ?? false;
|
||||
if (migrationDone) {
|
||||
_logger.info("ClipVectorDB migration already done");
|
||||
_migrationDone = true;
|
||||
return _migrationDone!;
|
||||
@@ -67,10 +67,8 @@ class ClipVectorDB {
|
||||
|
||||
Future<void> setMigrationDone() async {
|
||||
_logger.info("Setting ClipVectorDB migration done");
|
||||
final documentsDirectory = await getApplicationDocumentsDirectory();
|
||||
final migrationFlagFile =
|
||||
File(join(documentsDirectory.path, 'clip_vector_migration_done'));
|
||||
await migrationFlagFile.create(recursive: true);
|
||||
final prefs = await SharedPreferences.getInstance();
|
||||
await prefs.setBool(_kMigrationKey, true);
|
||||
_migrationDone = true;
|
||||
}
|
||||
|
||||
@@ -143,17 +141,6 @@ class ClipVectorDB {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> deleteIndex() async {
|
||||
final db = await _vectorDB;
|
||||
try {
|
||||
await db.deleteIndex();
|
||||
_vectorDbFuture = null;
|
||||
} catch (e, s) {
|
||||
_logger.severe("Error deleting index", e, s);
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
Future<VectorDbStats> getIndexStats([VectorDb? db]) async {
|
||||
db ??= await _vectorDB;
|
||||
try {
|
||||
@@ -280,6 +267,34 @@ class ClipVectorDB {
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> deleteIndex() async {
|
||||
final db = await _vectorDB;
|
||||
try {
|
||||
await db.deleteIndex();
|
||||
_vectorDbFuture = null;
|
||||
} catch (e, s) {
|
||||
_logger.severe("Error deleting index", e, s);
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> deleteIndexFile() async {
|
||||
try {
|
||||
final documentsDirectory = await getApplicationDocumentsDirectory();
|
||||
final String dbPath =
|
||||
join(documentsDirectory.path, _databaseName);
|
||||
_logger.info("Delete index file: DB path " + dbPath);
|
||||
final file = File(dbPath);
|
||||
if (await file.exists()) {
|
||||
await file.delete();
|
||||
}
|
||||
_logger.info("Deleted index file on disk");
|
||||
} catch (e, s) {
|
||||
_logger.severe("Error deleting index file on disk", e, s);
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class VectorDbStats {
|
||||
|
||||
@@ -260,6 +260,9 @@ class MLDataDB with SqlDbBase implements IMLDataDB<int> {
|
||||
await db.execute(deleteNotPersonFeedbackTable);
|
||||
await db.execute(deleteClipEmbeddingsTable);
|
||||
await db.execute(deleteFileDataTable);
|
||||
if (await ClipVectorDB.instance.checkIfMigrationDone()) {
|
||||
await ClipVectorDB.instance.deleteIndexFile();
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
@@ -53,6 +53,13 @@ class UploadLocksDB {
|
||||
columnCreatedAt: "created_at",
|
||||
);
|
||||
|
||||
static const _streamQueueTable = (
|
||||
table: "stream_queue",
|
||||
columnUploadedFileID: "uploaded_file_id",
|
||||
columnQueueType: "queue_type", // 'create' or 'recreate'
|
||||
columnCreatedAt: "created_at",
|
||||
);
|
||||
|
||||
static final initializationScript = [
|
||||
..._createUploadLocksTable(),
|
||||
];
|
||||
@@ -134,18 +141,26 @@ class UploadLocksDB {
|
||||
${_streamUploadErrorTable.columnCreatedAt} INTEGER DEFAULT CURRENT_TIMESTAMP NOT NULL
|
||||
)
|
||||
''',
|
||||
'''
|
||||
CREATE TABLE IF NOT EXISTS ${_streamQueueTable.table} (
|
||||
${_streamQueueTable.columnUploadedFileID} INTEGER PRIMARY KEY,
|
||||
${_streamQueueTable.columnQueueType} TEXT NOT NULL,
|
||||
${_streamQueueTable.columnCreatedAt} INTEGER DEFAULT CURRENT_TIMESTAMP NOT NULL
|
||||
)
|
||||
''',
|
||||
];
|
||||
}
|
||||
|
||||
Future<void> clearTable() async {
|
||||
final db = await instance.database;
|
||||
final db = await database;
|
||||
await db.delete(_uploadLocksTable.table);
|
||||
await db.delete(_trackUploadTable.table);
|
||||
await db.delete(_partsTable.table);
|
||||
await db.delete(_streamQueueTable.table);
|
||||
}
|
||||
|
||||
Future<void> acquireLock(String id, String owner, int time) async {
|
||||
final db = await instance.database;
|
||||
final db = await database;
|
||||
final row = <String, dynamic>{};
|
||||
row[_uploadLocksTable.columnID] = id;
|
||||
row[_uploadLocksTable.columnOwner] = owner;
|
||||
@@ -158,7 +173,7 @@ class UploadLocksDB {
|
||||
}
|
||||
|
||||
Future<String> getLockData(String id) async {
|
||||
final db = await instance.database;
|
||||
final db = await database;
|
||||
final rows = await db.query(
|
||||
_uploadLocksTable.table,
|
||||
where: '${_uploadLocksTable.columnID} = ?',
|
||||
@@ -175,7 +190,7 @@ class UploadLocksDB {
|
||||
}
|
||||
|
||||
Future<bool> isLocked(String id, String owner) async {
|
||||
final db = await instance.database;
|
||||
final db = await database;
|
||||
final rows = await db.query(
|
||||
_uploadLocksTable.table,
|
||||
where:
|
||||
@@ -186,7 +201,7 @@ class UploadLocksDB {
|
||||
}
|
||||
|
||||
Future<int> releaseLock(String id, String owner) async {
|
||||
final db = await instance.database;
|
||||
final db = await database;
|
||||
return db.delete(
|
||||
_uploadLocksTable.table,
|
||||
where:
|
||||
@@ -196,7 +211,7 @@ class UploadLocksDB {
|
||||
}
|
||||
|
||||
Future<int> releaseLocksAcquiredByOwnerBefore(String owner, int time) async {
|
||||
final db = await instance.database;
|
||||
final db = await database;
|
||||
return db.delete(
|
||||
_uploadLocksTable.table,
|
||||
where:
|
||||
@@ -206,7 +221,7 @@ class UploadLocksDB {
|
||||
}
|
||||
|
||||
Future<int> releaseAllLocksAcquiredBefore(int time) async {
|
||||
final db = await instance.database;
|
||||
final db = await database;
|
||||
return db.delete(
|
||||
_uploadLocksTable.table,
|
||||
where: '${_uploadLocksTable.columnTime} < ?',
|
||||
@@ -220,7 +235,7 @@ class UploadLocksDB {
|
||||
String fileHash,
|
||||
int collectionID,
|
||||
) async {
|
||||
final db = await instance.database;
|
||||
final db = await database;
|
||||
|
||||
final rows = await db.query(
|
||||
_trackUploadTable.table,
|
||||
@@ -247,7 +262,7 @@ class UploadLocksDB {
|
||||
String fileHash,
|
||||
int collectionID,
|
||||
) async {
|
||||
final db = await instance.database;
|
||||
final db = await database;
|
||||
await db.update(
|
||||
_trackUploadTable.table,
|
||||
{
|
||||
@@ -270,7 +285,7 @@ class UploadLocksDB {
|
||||
String fileHash,
|
||||
int collectionID,
|
||||
) async {
|
||||
final db = await instance.database;
|
||||
final db = await database;
|
||||
final rows = await db.query(
|
||||
_trackUploadTable.table,
|
||||
where: '${_trackUploadTable.columnLocalID} = ?'
|
||||
@@ -328,7 +343,7 @@ class UploadLocksDB {
|
||||
int uploadedFileID,
|
||||
String errorMessage,
|
||||
) async {
|
||||
final db = await UploadLocksDB.instance.database;
|
||||
final db = await database;
|
||||
|
||||
await db.insert(
|
||||
_streamUploadErrorTable.table,
|
||||
@@ -346,7 +361,7 @@ class UploadLocksDB {
|
||||
int uploadedFileID,
|
||||
String errorMessage,
|
||||
) async {
|
||||
final db = await instance.database;
|
||||
final db = await database;
|
||||
await db.update(
|
||||
_streamUploadErrorTable.table,
|
||||
{
|
||||
@@ -360,7 +375,7 @@ class UploadLocksDB {
|
||||
}
|
||||
|
||||
Future<int> deleteStreamUploadErrorEntry(int uploadedFileID) async {
|
||||
final db = await instance.database;
|
||||
final db = await database;
|
||||
return await db.delete(
|
||||
_streamUploadErrorTable.table,
|
||||
where: '${_streamUploadErrorTable.columnUploadedFileID} = ?',
|
||||
@@ -369,7 +384,7 @@ class UploadLocksDB {
|
||||
}
|
||||
|
||||
Future<Map<int, String>> getStreamUploadError() {
|
||||
return instance.database.then((db) async {
|
||||
return database.then((db) async {
|
||||
final rows = await db.query(
|
||||
_streamUploadErrorTable.table,
|
||||
columns: [
|
||||
@@ -398,7 +413,7 @@ class UploadLocksDB {
|
||||
String keyNonce, {
|
||||
required int partSize,
|
||||
}) async {
|
||||
final db = await UploadLocksDB.instance.database;
|
||||
final db = await database;
|
||||
final objectKey = urls.objectKey;
|
||||
|
||||
await db.insert(
|
||||
@@ -441,7 +456,7 @@ class UploadLocksDB {
|
||||
int partNumber,
|
||||
String etag,
|
||||
) async {
|
||||
final db = await instance.database;
|
||||
final db = await database;
|
||||
await db.update(
|
||||
_partsTable.table,
|
||||
{
|
||||
@@ -458,7 +473,7 @@ class UploadLocksDB {
|
||||
String objectKey,
|
||||
MultipartStatus status,
|
||||
) async {
|
||||
final db = await instance.database;
|
||||
final db = await database;
|
||||
await db.update(
|
||||
_trackUploadTable.table,
|
||||
{
|
||||
@@ -472,7 +487,7 @@ class UploadLocksDB {
|
||||
Future<int> deleteMultipartTrack(
|
||||
String localId,
|
||||
) async {
|
||||
final db = await instance.database;
|
||||
final db = await database;
|
||||
return await db.delete(
|
||||
_trackUploadTable.table,
|
||||
where: '${_trackUploadTable.columnLocalID} = ?',
|
||||
@@ -482,7 +497,7 @@ class UploadLocksDB {
|
||||
|
||||
// getFileNameToLastAttemptedAtMap returns a map of encrypted file name to last attempted at time
|
||||
Future<Map<String, int>> getFileNameToLastAttemptedAtMap() {
|
||||
return instance.database.then((db) async {
|
||||
return database.then((db) async {
|
||||
final rows = await db.query(
|
||||
_trackUploadTable.table,
|
||||
columns: [
|
||||
@@ -504,7 +519,7 @@ class UploadLocksDB {
|
||||
String fileHash,
|
||||
int collectionID,
|
||||
) {
|
||||
return instance.database.then((db) async {
|
||||
return database.then((db) async {
|
||||
final rows = await db.query(
|
||||
_trackUploadTable.table,
|
||||
where: '${_trackUploadTable.columnLocalID} = ?'
|
||||
@@ -519,4 +534,56 @@ class UploadLocksDB {
|
||||
return row[_trackUploadTable.columnEncryptedFileName] as String;
|
||||
});
|
||||
}
|
||||
|
||||
// Stream Queue Management Methods
|
||||
Future<void> addToStreamQueue(
|
||||
int uploadedFileID,
|
||||
String queueType, // 'create' or 'recreate'
|
||||
) async {
|
||||
final db = await database;
|
||||
await db.insert(
|
||||
_streamQueueTable.table,
|
||||
{
|
||||
_streamQueueTable.columnUploadedFileID: uploadedFileID,
|
||||
_streamQueueTable.columnQueueType: queueType,
|
||||
},
|
||||
conflictAlgorithm: ConflictAlgorithm.replace,
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> removeFromStreamQueue(int uploadedFileID) async {
|
||||
final db = await database;
|
||||
await db.delete(
|
||||
_streamQueueTable.table,
|
||||
where: '${_streamQueueTable.columnUploadedFileID} = ?',
|
||||
whereArgs: [uploadedFileID],
|
||||
);
|
||||
}
|
||||
|
||||
Future<Map<int, String>> getStreamQueue() async {
|
||||
final db = await database;
|
||||
final rows = await db.query(
|
||||
_streamQueueTable.table,
|
||||
columns: [
|
||||
_streamQueueTable.columnUploadedFileID,
|
||||
_streamQueueTable.columnQueueType,
|
||||
],
|
||||
);
|
||||
final map = <int, String>{};
|
||||
for (final row in rows) {
|
||||
map[row[_streamQueueTable.columnUploadedFileID] as int] =
|
||||
row[_streamQueueTable.columnQueueType] as String;
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
Future<bool> isInStreamQueue(int uploadedFileID) async {
|
||||
final db = await database;
|
||||
final rows = await db.query(
|
||||
_streamQueueTable.table,
|
||||
where: '${_streamQueueTable.columnUploadedFileID} = ?',
|
||||
whereArgs: [uploadedFileID],
|
||||
);
|
||||
return rows.isNotEmpty;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
import "package:photos/events/event.dart";
|
||||
import "package:photos/models/preview/preview_item_status.dart";
|
||||
|
||||
class VideoPreviewStateChangedEvent extends Event {
|
||||
final int fileId;
|
||||
final PreviewItemStatus status;
|
||||
|
||||
VideoPreviewStateChangedEvent(this.fileId, this.status);
|
||||
|
||||
@override
|
||||
String get reason => '$runtimeType: fileId=$fileId, status=$status';
|
||||
}
|
||||
@@ -1827,5 +1827,124 @@
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"videosProcessed": "Videos processed",
|
||||
"totalVideos": "Total videos",
|
||||
"skippedVideos": "Skipped videos",
|
||||
"videoStreamingDescriptionLine1": "Play videos instantly on any device.",
|
||||
"videoStreamingDescriptionLine2": "Enable to process video streams on this device.",
|
||||
"videoStreamingNote": "Only videos from last 60 days and under 1 minute are processed on this device. For older/longer videos, enable streaming in the desktop app.",
|
||||
"createStream": "Create stream",
|
||||
"recreateStream": "Recreate stream",
|
||||
"addedToStreamCreationQueue": "Added to stream creation queue",
|
||||
"addedToStreamRecreationQueue": "Added to stream recreation queue",
|
||||
"videoPreviewAlreadyExists": "Video preview already exists",
|
||||
"videoAlreadyInQueue": "Video file already present in the queue",
|
||||
"addedToQueue": "Added to queue",
|
||||
"creatingStream": "Creating stream",
|
||||
"similarImages": "Similar images",
|
||||
"deletingProgress": "Deleting... {progress}",
|
||||
"@deletingProgress": {
|
||||
"placeholders": {
|
||||
"progress": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"findSimilarImages": "Find similar images",
|
||||
"noSimilarImagesFound": "No similar images found",
|
||||
"yourPhotosLookUnique": "Your photos look unique",
|
||||
"similarGroupsFound": "{count, plural, =1{{count} group found} other{{count} groups found}}",
|
||||
"@similarGroupsFound": {
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"reviewAndRemoveSimilarImages": "Review and remove similar images",
|
||||
"deletePhotosWithSize": "Delete {count} photos ({size})",
|
||||
"@deletePhotosWithSize": {
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "String"
|
||||
},
|
||||
"size": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"selectionOptions": "Selection options",
|
||||
"selectExactWithCount": "Exactly similar ({count})",
|
||||
"@selectExactWithCount": {
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"selectExact": "Select exact",
|
||||
"selectSimilarWithCount": "Mostly similar ({count})",
|
||||
"@selectSimilarWithCount": {
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"selectSimilar": "Select similar",
|
||||
"selectAllWithCount": "All similarities ({count})",
|
||||
"@selectAllWithCount": {
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"selectSimilarImagesTitle": "Select similar images",
|
||||
"chooseSimilarImagesToSelect": "Select images based on their visual similarity",
|
||||
"clearSelection": "Clear selection",
|
||||
"similarImagesCount": "{count} similar images",
|
||||
"@similarImagesCount": {
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"deleteWithCount": "Delete ({count})",
|
||||
"@deleteWithCount": {
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"deleteFiles": "Delete files",
|
||||
"areYouSureDeleteFiles": "Are you sure you want to delete these files?",
|
||||
"greatJob": "Great job!",
|
||||
"cleanedUpSimilarImages": "You freed up {size} of space",
|
||||
"@cleanedUpSimilarImages": {
|
||||
"placeholders": {
|
||||
"size": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"size": "Size",
|
||||
"similarity": "Similarity",
|
||||
"analyzingPhotosLocally": "Analyzing your photos locally",
|
||||
"lookingForVisualSimilarities": "Looking for visual similarities",
|
||||
"comparingImageDetails": "Comparing image details",
|
||||
"findingSimilarImages": "Finding similar images",
|
||||
"almostDone": "Almost done",
|
||||
"processingLocally": "Processing locally",
|
||||
"useMLToFindSimilarImages": "Review and remove images that look similar to each other.",
|
||||
"all": "All",
|
||||
"similar": "Similar",
|
||||
"identical": "Identical",
|
||||
"nothingHereTryAnotherFilter": "Nothing here, try another filter! 👀",
|
||||
"related": "Related",
|
||||
"hoorayyyy": "Hoorayyyy!",
|
||||
"nothingToTidyUpHere": "Nothing to tidy up here"
|
||||
}
|
||||
|
||||
@@ -1776,5 +1776,56 @@
|
||||
"same": "Igual",
|
||||
"different": "Diferente",
|
||||
"sameperson": "la misma persona?",
|
||||
"indexingPausedStatusDescription": "La indexación está pausada. Se reanudará automáticamente cuando el dispositivo esté listo. El dispositivo se considera listo cuando su nivel de batería, la salud de la batería y temperatura están en un rango saludable."
|
||||
"cLTitle1": "Editor avanzado de imágenes",
|
||||
"cLDesc1": "Estamos lanzando un nuevo y avanzado editor de imágenes que añade más marcos de recorte, preajustes de filtros para edición rápida, opciones de ajuste finas incluyendo saturación, contraste, brillo, temperatura y mucho más. El nuevo editor también incluye la capacidad de dibujar en tus fotos y añadir emojis como pegatinas.",
|
||||
"cLTitle2": "Álbumes Inteligentes",
|
||||
"cLDesc2": "Ahora puedes añadir automáticamente fotos de personas seleccionadas a cualquier álbum. Solo tienes que ir al álbum, y seleccionar \"Agregar personas automáticamente\" del menú desbordante. Si se utiliza junto con el álbum compartido, puedes compartir fotos con cero clics.",
|
||||
"cLTitle3": "Galería mejorada",
|
||||
"cLDesc3": "Hemos añadido la capacidad de agrupar tu galería por semanas, meses y años. Ahora puedes personalizar tu galería exactamente como quieras con estas nuevas opciones de agrupación, junto con rejillas personalizadas",
|
||||
"cLTitle4": "Desplazamiento más rápido",
|
||||
"cLDesc4": "Junto con un montón de mejoras bajo el capó para mejorar la experiencia del desplazamiento de la galería también hemos rediseñado la barra de desplazamiento para mostrar los marcadores, permitiéndote saltar rápidamente a través de la línea de tiempo.",
|
||||
"indexingPausedStatusDescription": "La indexación está pausada. Se reanudará automáticamente cuando el dispositivo esté listo. El dispositivo se considera listo cuando su nivel de batería, la salud de la batería y temperatura están en un rango saludable.",
|
||||
"thisWeek": "Esta semana",
|
||||
"lastWeek": "Semana pasada",
|
||||
"thisMonth": "Este mes",
|
||||
"thisYear": "Este año",
|
||||
"groupBy": "Agrupar por",
|
||||
"faceThumbnailGenerationFailed": "No se pueden generar las miniaturas de cara",
|
||||
"fileAnalysisFailed": "No se puede analizar el archivo",
|
||||
"editAutoAddPeople": "Editar agregar personas automáticamente",
|
||||
"autoAddPeople": "Agregar personas automáticamente",
|
||||
"autoAddToAlbum": "Añadir al álbum automáticamente",
|
||||
"shouldRemoveFilesSmartAlbumsDesc": "¿Deben eliminarse los archivos relacionados con la persona previamente seleccionada en los álbumes inteligentes?",
|
||||
"addingPhotos": "Añadiendo fotos",
|
||||
"gettingReady": "Preparándose",
|
||||
"addSomePhotosDesc1": "Añadir algunas fotos o elegir ",
|
||||
"addSomePhotosDesc2": "caras familiares",
|
||||
"addSomePhotosDesc3": "\npara comenzar con",
|
||||
"ignorePerson": "Ignorar persona",
|
||||
"mixedGrouping": "¿Grupo mixto?",
|
||||
"analysis": "Análisis",
|
||||
"doesGroupContainMultiplePeople": "¿Esta agrupación contiene varias personas?",
|
||||
"automaticallyAnalyzeAndSplitGrouping": "Analizaremos automáticamente la agrupación para determinar si hay varias personas presentes, y separarlas de nuevo. Esto puede tardar unos segundos.",
|
||||
"layout": "Disposición",
|
||||
"day": "Día",
|
||||
"peopleAutoAddDesc": "Selecciona las personas que quieres añadir automáticamente al álbum",
|
||||
"undo": "Deshacer",
|
||||
"redo": "Rehacer",
|
||||
"filter": "Filtro",
|
||||
"adjust": "Ajustar",
|
||||
"draw": "Dibujar",
|
||||
"sticker": "Pegatina",
|
||||
"brushColor": "Color del pincel",
|
||||
"font": "Fuente",
|
||||
"background": "Fondo",
|
||||
"align": "Alinear",
|
||||
"addedToAlbums": "{count, plural, one {}=1{Añadido con éxito a 1 álbum} other{Añadido con éxito a {count} álbumes}}",
|
||||
"@addedToAlbums": {
|
||||
"description": "Message shown when items are added to albums",
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -347,9 +347,11 @@
|
||||
"deletePhotos": "Radera foton",
|
||||
"inviteToEnte": "Bjud in till Ente",
|
||||
"removePublicLink": "Ta bort publik länk",
|
||||
"disableLinkMessage": "Detta kommer att ta bort den publika länken för att komma åt \"{albumName}\".",
|
||||
"sharing": "Delar...",
|
||||
"youCannotShareWithYourself": "Du kan inte dela med dig själv",
|
||||
"archive": "Arkiv",
|
||||
"createAlbumActionHint": "Långtryck för att välja foton och klicka på + för att skapa ett album",
|
||||
"importing": "Importerar....",
|
||||
"failedToLoadAlbums": "Det gick inte att läsa in album",
|
||||
"hidden": "Dold",
|
||||
@@ -360,16 +362,96 @@
|
||||
"videoSmallCase": "video",
|
||||
"photoSmallCase": "foto",
|
||||
"singleFileDeleteHighlight": "Det kommer att tas bort från alla album.",
|
||||
"singleFileInBothLocalAndRemote": "Denna {fileType} finns i både Ente och din enhet.",
|
||||
"singleFileInRemoteOnly": "Denna {fileType} kommer att raderas från Ente.",
|
||||
"singleFileDeleteFromDevice": "Denna {fileType} kommer att raderas från din enhet.",
|
||||
"deleteFromEnte": "Radera från ente",
|
||||
"yesDelete": "Ja, radera",
|
||||
"movedToTrash": "Flyttad till papperskorgen",
|
||||
"deleteFromDevice": "Radera från enhet",
|
||||
"deleteFromBoth": "",
|
||||
"newAlbum": "Nytt album",
|
||||
"albums": "Album",
|
||||
"memoryCount": "{count, plural, =0{inga minnen} one{{formattedCount} minne} other{{formattedCount} minnen}}",
|
||||
"@memoryCount": {
|
||||
"description": "The text to display the number of memories",
|
||||
"type": "text",
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"example": "1",
|
||||
"type": "int"
|
||||
},
|
||||
"formattedCount": {
|
||||
"type": "String",
|
||||
"example": "11.513, 11,511"
|
||||
}
|
||||
}
|
||||
},
|
||||
"selectedPhotos": "{count} markerade",
|
||||
"@selectedPhotos": {
|
||||
"description": "Display the number of selected photos",
|
||||
"type": "text",
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"example": "5",
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"selectedPhotosWithYours": "{count} markerade ({yourCount} din)",
|
||||
"@selectedPhotosWithYours": {
|
||||
"description": "Display the number of selected photos, including the number of selected photos owned by the user",
|
||||
"type": "text",
|
||||
"placeholders": {
|
||||
"count": {
|
||||
"example": "12",
|
||||
"type": "int"
|
||||
},
|
||||
"yourCount": {
|
||||
"example": "2",
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"advancedSettings": "Avancerad",
|
||||
"@advancedSettings": {
|
||||
"description": "The text to display in the advanced settings section"
|
||||
},
|
||||
"photoGridSize": "Storlek på bildrutnät",
|
||||
"manageDeviceStorage": "Hantera enhetscache",
|
||||
"manageDeviceStorageDesc": "Granska och rensa lokal cachelagring.",
|
||||
"machineLearning": "Maskininlärning",
|
||||
"mlConsent": "Aktivera maskininlärning",
|
||||
"mlConsentTitle": "Aktivera maskininlärning?",
|
||||
"mlConsentDescription": "Om du aktiverar maskininlärning, kommer Ente extrahera information som ansiktsgeometri från filer, inklusive de som delas med dig.\n\nDetta kommer att hända på din enhet, och all genererad biometrisk information kommer att helsträckskrypteras.",
|
||||
"mlConsentPrivacy": "Klicka här för mer information om denna funktion i vår integritetspolicy",
|
||||
"mlConsentConfirmation": "Jag förstår och vill aktivera maskininlärning",
|
||||
"magicSearch": "Magisk sökning",
|
||||
"discover": "Upptäck",
|
||||
"@discover": {
|
||||
"description": "The text to display for the discover section under which we show receipts, screenshots, sunsets, greenery, etc."
|
||||
},
|
||||
"discover_identity": "Identitet",
|
||||
"discover_screenshots": "Skärmdumpar",
|
||||
"discover_receipts": "Kvitton",
|
||||
"discover_notes": "Anteckningar",
|
||||
"discover_memes": "Memes",
|
||||
"discover_visiting_cards": "Besökskort",
|
||||
"discover_babies": "Barn",
|
||||
"discover_pets": "Husdjur",
|
||||
"discover_selfies": "Selfies",
|
||||
"discover_wallpapers": "Bakgrundsbilder",
|
||||
"discover_food": "Mat",
|
||||
"discover_celebrations": "Firanden",
|
||||
"discover_sunset": "Solnedgång",
|
||||
"discover_hills": "Berg",
|
||||
"discover_greenery": "Grönt landskap",
|
||||
"mlIndexingDescription": "Observera att maskininlärning kommer att resultera i en högre bandbredd och batterianvändning tills alla objekt är indexerade. Överväg att använda skrivbordsappen för snabbare indexering, alla resultat kommer att synkroniseras automatiskt.",
|
||||
"loadingModel": "Laddar ner modeller...",
|
||||
"waitingForWifi": "Väntar på WiFi...",
|
||||
"status": "Status",
|
||||
"indexedItems": "Indexerade objekt",
|
||||
"pendingItems": "Väntande objekt",
|
||||
"clearIndexes": "Rensa index",
|
||||
"selectFoldersForBackup": "Välj mappar för säkerhetskopiering",
|
||||
"selectedFoldersWillBeEncryptedAndBackedUp": "Valda mappar kommer att krypteras och säkerhetskopieras",
|
||||
@@ -398,19 +480,47 @@
|
||||
"yearsAgo": "{count, plural, one{{count} år sedan} other{{count} år sedan}}",
|
||||
"backupSettings": "Säkerhetskopieringsinställningar",
|
||||
"backupStatus": "Säkerhetskopieringsstatus",
|
||||
"backupStatusDescription": "Objekt som har säkerhetskopierats kommer att visas här",
|
||||
"backupOverMobileData": "Säkerhetskopiera via mobildata",
|
||||
"backupVideos": "Säkerhetskopiera videor",
|
||||
"disableAutoLock": "Inaktivera automatisk låsning",
|
||||
"deviceLockExplanation": "Inaktivera enhetens skärmlås när Ente är i förgrunden och säkerhetskopiering pågår. Detta är normalt inte nödvändigt, men kan hjälpa stora uppladdningar och initial import av stora bibliotek slutföra snabbare.",
|
||||
"about": "Om",
|
||||
"weAreOpenSource": "Vi har öppen källkod!",
|
||||
"privacy": "Sekretess",
|
||||
"terms": "Villkor",
|
||||
"checkForUpdates": "Sök efter uppdateringar",
|
||||
"checkStatus": "Kontrollera status",
|
||||
"checking": "Kontrollerar...",
|
||||
"youAreOnTheLatestVersion": "Du är på den senaste versionen",
|
||||
"account": "Konto",
|
||||
"manageSubscription": "Hantera prenumeration",
|
||||
"authToChangeYourEmail": "Autentisera för att ändra din e-postadress",
|
||||
"changePassword": "Ändra lösenord",
|
||||
"authToChangeYourPassword": "Autentisera för att ändra ditt lösenord",
|
||||
"emailVerificationToggle": "E-postverifiering",
|
||||
"exportYourData": "Exportera din data",
|
||||
"logout": "Logga ut",
|
||||
"authToInitiateAccountDeletion": "Vänligen autentisera för att initiera borttagning av konto",
|
||||
"areYouSureYouWantToLogout": "Är du säker på att du vill logga ut?",
|
||||
"yesLogout": "Ja, logga ut",
|
||||
"aNewVersionOfEnteIsAvailable": "En ny version av Ente är tillgänglig.",
|
||||
"update": "Uppdatera",
|
||||
"installManually": "Installera manuellt",
|
||||
"criticalUpdateAvailable": "Kritisk uppdatering tillgänglig",
|
||||
"updateAvailable": "Uppdatering tillgänglig",
|
||||
"ignoreUpdate": "Ignorera",
|
||||
"downloading": "Laddar ner...",
|
||||
"cannotDeleteSharedFiles": "Kan inte ta bort delade filer",
|
||||
"theDownloadCouldNotBeCompleted": "Nedladdningen kunde inte slutföras",
|
||||
"retry": "Försök igen",
|
||||
"backedUpFolders": "Säkerhetskopiera mappar",
|
||||
"backup": "Säkerhetskopiera",
|
||||
"freeUpDeviceSpace": "Frigör enhetens lagringsutrymme",
|
||||
"freeUpDeviceSpaceDesc": "Spara utrymme på din enhet genom att rensa filer som redan har säkerhetskopierats.",
|
||||
"allClear": "✨ Allt klart",
|
||||
"noDeviceThatCanBeDeleted": "Du har inga filer på denna enhet som kan tas bort",
|
||||
"removeDuplicates": "Ta bort dubbletter",
|
||||
"viewActiveSessions": "Visa aktiva sessioner",
|
||||
"no": "Nej",
|
||||
"yes": "Ja",
|
||||
|
||||
@@ -280,7 +280,6 @@ Future<void> _init(bool isBackground, {String via = ''}) async {
|
||||
}).ignore();
|
||||
}
|
||||
_logger.info("PushService/HomeWidget done $tlog");
|
||||
VideoPreviewService.instance.init(preferences);
|
||||
unawaited(SemanticSearchService.instance.init());
|
||||
unawaited(MLService.instance.init());
|
||||
await PersonService.init(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// https://discover.ente.io/v1.json
|
||||
class Prompt {
|
||||
final String id;
|
||||
final int position;
|
||||
@@ -8,17 +9,6 @@ class Prompt {
|
||||
final bool showVideo;
|
||||
final bool recentFirst;
|
||||
|
||||
Prompt({
|
||||
String? id,
|
||||
this.position = 0,
|
||||
required this.query,
|
||||
required this.minScore,
|
||||
required this.minSize,
|
||||
required this.title,
|
||||
this.showVideo = true,
|
||||
this.recentFirst = false,
|
||||
}) : id = id ?? title;
|
||||
|
||||
// fromJson
|
||||
Prompt.fromJson(Map<String, dynamic> json)
|
||||
: id = json['id'] ?? json['title'],
|
||||
|
||||
@@ -15,7 +15,6 @@ class SimilarFiles {
|
||||
|
||||
int get totalSize => files.fold(0, (sum, file) => sum + (file.fileSize ?? 0));
|
||||
|
||||
// TODO: lau: check if we're not using this wrong
|
||||
bool get isEmpty => files.isEmpty;
|
||||
|
||||
int get length => files.length;
|
||||
|
||||
@@ -6,6 +6,7 @@ import "package:package_info_plus/package_info_plus.dart";
|
||||
import "package:photos/gateways/entity_gw.dart";
|
||||
import "package:photos/module/download/manager.dart";
|
||||
import "package:photos/services/account/billing_service.dart";
|
||||
import "package:photos/services/collections_service.dart";
|
||||
import "package:photos/services/entity_service.dart";
|
||||
import "package:photos/services/filedata/filedata_service.dart";
|
||||
import "package:photos/services/location_service.dart";
|
||||
@@ -183,3 +184,9 @@ SmartAlbumsService get smartAlbumsService {
|
||||
_smartAlbumsService ??= SmartAlbumsService();
|
||||
return _smartAlbumsService!;
|
||||
}
|
||||
|
||||
CollectionsService? _collectionsService;
|
||||
CollectionsService get collectionsService {
|
||||
_collectionsService ??= CollectionsService.instance;
|
||||
return _collectionsService!;
|
||||
}
|
||||
|
||||
@@ -7,12 +7,17 @@ import "package:flutter/services.dart";
|
||||
import "package:photos/utils/ffprobe_util.dart";
|
||||
|
||||
class IsolatedFfmpegService {
|
||||
static Future<Map> runFfmpeg(String command) async {
|
||||
IsolatedFfmpegService._privateConstructor();
|
||||
|
||||
static final IsolatedFfmpegService instance =
|
||||
IsolatedFfmpegService._privateConstructor();
|
||||
|
||||
Future<Map> runFfmpeg(String command) async {
|
||||
final rootIsolateToken = RootIsolateToken.instance!;
|
||||
return await Isolate.run<Map>(() => _ffmpegRun(command, rootIsolateToken));
|
||||
}
|
||||
|
||||
static Future<Map> getVideoInfo(String file) async {
|
||||
Future<Map> getVideoInfo(String file) async {
|
||||
final rootIsolateToken = RootIsolateToken.instance!;
|
||||
return await Isolate.run<Map>(() => _getVideoProps(file, rootIsolateToken));
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ import "package:photos/core/event_bus.dart";
|
||||
import "package:photos/events/compute_control_event.dart";
|
||||
import "package:thermal/thermal.dart";
|
||||
|
||||
enum _ComputeRunState {
|
||||
enum ComputeRunState {
|
||||
idle,
|
||||
runningML,
|
||||
generatingStream,
|
||||
@@ -35,7 +35,7 @@ class ComputeController {
|
||||
bool interactionOverride = false;
|
||||
late Timer _userInteractionTimer;
|
||||
|
||||
_ComputeRunState _currentRunState = _ComputeRunState.idle;
|
||||
ComputeRunState _currentRunState = ComputeRunState.idle;
|
||||
bool _waitingToRunML = false;
|
||||
|
||||
bool get isDeviceHealthy => _isDeviceHealthy;
|
||||
@@ -70,28 +70,44 @@ class ComputeController {
|
||||
_logger.info('init done ');
|
||||
}
|
||||
|
||||
bool requestCompute({bool ml = false, bool stream = false}) {
|
||||
_logger.info("Requesting compute: ml: $ml, stream: $stream");
|
||||
if (!_isDeviceHealthy || !_canRunGivenUserInteraction()) {
|
||||
_logger.info("Device not healthy or user interacting, denying request.");
|
||||
bool requestCompute({
|
||||
bool ml = false,
|
||||
bool stream = false,
|
||||
bool bypassInteractionCheck = false,
|
||||
}) {
|
||||
_logger.info(
|
||||
"Requesting compute: ml: $ml, stream: $stream, bypassInteraction: $bypassInteractionCheck",
|
||||
);
|
||||
if (!_isDeviceHealthy) {
|
||||
_logger.info("Device not healthy, denying request.");
|
||||
return false;
|
||||
}
|
||||
if (ml) {
|
||||
return _requestML();
|
||||
} else if (stream) {
|
||||
return _requestStream();
|
||||
if (!bypassInteractionCheck && !_canRunGivenUserInteraction()) {
|
||||
_logger.info("User interacting, denying request.");
|
||||
return false;
|
||||
}
|
||||
_logger.severe("No compute request specified, denying request.");
|
||||
return false;
|
||||
bool result = false;
|
||||
if (ml) {
|
||||
result = _requestML();
|
||||
} else if (stream) {
|
||||
result = _requestStream();
|
||||
} else {
|
||||
_logger.severe("No compute request specified, denying request.");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
ComputeRunState get computeState {
|
||||
return _currentRunState;
|
||||
}
|
||||
|
||||
bool _requestML() {
|
||||
if (_currentRunState == _ComputeRunState.idle) {
|
||||
_currentRunState = _ComputeRunState.runningML;
|
||||
if (_currentRunState == ComputeRunState.idle) {
|
||||
_currentRunState = ComputeRunState.runningML;
|
||||
_waitingToRunML = false;
|
||||
_logger.info("ML request granted");
|
||||
return true;
|
||||
} else if (_currentRunState == _ComputeRunState.runningML) {
|
||||
} else if (_currentRunState == ComputeRunState.runningML) {
|
||||
return true;
|
||||
}
|
||||
_logger.info(
|
||||
@@ -102,12 +118,9 @@ class ComputeController {
|
||||
}
|
||||
|
||||
bool _requestStream() {
|
||||
if (_currentRunState == _ComputeRunState.idle && !_waitingToRunML) {
|
||||
if (_currentRunState == ComputeRunState.idle && !_waitingToRunML) {
|
||||
_logger.info("Stream request granted");
|
||||
_currentRunState = _ComputeRunState.generatingStream;
|
||||
return true;
|
||||
} else if (_currentRunState == _ComputeRunState.generatingStream &&
|
||||
!_waitingToRunML) {
|
||||
_currentRunState = ComputeRunState.generatingStream;
|
||||
return true;
|
||||
}
|
||||
_logger.info(
|
||||
@@ -122,13 +135,13 @@ class ComputeController {
|
||||
);
|
||||
|
||||
if (ml) {
|
||||
if (_currentRunState == _ComputeRunState.runningML) {
|
||||
_currentRunState = _ComputeRunState.idle;
|
||||
if (_currentRunState == ComputeRunState.runningML) {
|
||||
_currentRunState = ComputeRunState.idle;
|
||||
}
|
||||
_waitingToRunML = false;
|
||||
} else if (stream) {
|
||||
if (_currentRunState == _ComputeRunState.generatingStream) {
|
||||
_currentRunState = _ComputeRunState.idle;
|
||||
if (_currentRunState == ComputeRunState.generatingStream) {
|
||||
_currentRunState = ComputeRunState.idle;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,6 +71,9 @@ class MLService {
|
||||
// Listen on ComputeController
|
||||
Bus.instance.on<ComputeControlEvent>().listen((event) {
|
||||
if (!flagService.hasGrantedMLConsent) {
|
||||
if (event.shouldRun) {
|
||||
VideoPreviewService.instance.queueFiles(duration: Duration.zero);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -193,13 +193,22 @@ class SemanticSearchService {
|
||||
return results;
|
||||
}
|
||||
|
||||
Future<Map<String, List<int>>> getMatchingFileIDsWithEmbeddings(
|
||||
Map<String, List<double>> queryToEmbedding,
|
||||
Future<Map<String, List<int>>> getMatchingFileIDs(
|
||||
Map<String, double> queryToScore,
|
||||
) async {
|
||||
final textEmbeddings = <String, List<double>>{};
|
||||
final minimumSimilarityMap = <String, double>{};
|
||||
for (final entry in queryToScore.entries) {
|
||||
final query = entry.key;
|
||||
final score = entry.value;
|
||||
final textEmbedding = await _getTextEmbedding(query);
|
||||
textEmbeddings[query] = textEmbedding;
|
||||
minimumSimilarityMap[query] = score;
|
||||
}
|
||||
|
||||
final queryResults = await _getSimilarities(
|
||||
queryToEmbedding,
|
||||
minimumSimilarityMap: queryToScore,
|
||||
textEmbeddings,
|
||||
minimumSimilarityMap: minimumSimilarityMap,
|
||||
);
|
||||
final result = <String, List<int>>{};
|
||||
for (final entry in queryResults.entries) {
|
||||
|
||||
@@ -2,6 +2,7 @@ import "dart:async";
|
||||
import "dart:convert";
|
||||
import "dart:io";
|
||||
|
||||
import "package:computer/computer.dart";
|
||||
import "package:flutter/foundation.dart";
|
||||
import "package:flutter/widgets.dart";
|
||||
import "package:logging/logging.dart";
|
||||
@@ -20,12 +21,12 @@ import "package:photos/models/search/hierarchical/magic_filter.dart";
|
||||
import "package:photos/models/search/search_types.dart";
|
||||
import "package:photos/service_locator.dart";
|
||||
import "package:photos/services/machine_learning/semantic_search/semantic_search_service.dart";
|
||||
import "package:photos/services/remote_assets_service.dart";
|
||||
import "package:photos/services/search_service.dart";
|
||||
import "package:photos/ui/viewer/search/result/magic_result_screen.dart";
|
||||
import "package:photos/utils/cache_util.dart";
|
||||
import "package:photos/utils/file_util.dart";
|
||||
import "package:photos/utils/navigation_util.dart";
|
||||
import "package:photos/utils/text_embeddings_util.dart";
|
||||
import "package:shared_preferences/shared_preferences.dart";
|
||||
|
||||
class MagicCache {
|
||||
@@ -118,13 +119,8 @@ GenericSearchResult? toGenericSearchResult(
|
||||
}
|
||||
if (!prompt.recentFirst) {
|
||||
enteFilesInMagicCache.sort((a, b) {
|
||||
final aID = a.uploadedFileID;
|
||||
final bID = b.uploadedFileID;
|
||||
if (aID == null || bID == null) return 0;
|
||||
final aPos = fileIdToPositionMap[aID];
|
||||
final bPos = fileIdToPositionMap[bID];
|
||||
if (aPos == null || bPos == null) return 0;
|
||||
return aPos.compareTo(bPos);
|
||||
return fileIdToPositionMap[a.uploadedFileID!]!
|
||||
.compareTo(fileIdToPositionMap[b.uploadedFileID!]!);
|
||||
});
|
||||
}
|
||||
final String title = getLocalizedTitle(context, prompt.title);
|
||||
@@ -172,6 +168,7 @@ GenericSearchResult? toGenericSearchResult(
|
||||
|
||||
class MagicCacheService {
|
||||
static const _lastMagicCacheUpdateTime = "last_magic_cache_update_time";
|
||||
static const _kMagicPromptsDataUrl = "https://discover.ente.io/v2.json";
|
||||
|
||||
/// Delay is for cache update to be done not during app init, during which a
|
||||
/// lot of other things are happening.
|
||||
@@ -181,6 +178,7 @@ class MagicCacheService {
|
||||
late final Logger _logger = Logger((MagicCacheService).toString());
|
||||
|
||||
Future<List<MagicCache>>? _magicCacheFuture;
|
||||
Future<List<Prompt>>? _promptFuture;
|
||||
final Set<String> _pendingUpdateReason = {};
|
||||
bool _isUpdateInProgress = false;
|
||||
|
||||
@@ -215,7 +213,11 @@ class MagicCacheService {
|
||||
if (!enableDiscover) {
|
||||
return;
|
||||
}
|
||||
if (lastMagicCacheUpdateTime <
|
||||
final updatedJSONFile = await RemoteAssetsService.instance
|
||||
.getAssetIfUpdated(_kMagicPromptsDataUrl);
|
||||
if (updatedJSONFile != null) {
|
||||
queueUpdate("Prompts data updated");
|
||||
} else if (lastMagicCacheUpdateTime <
|
||||
DateTime.now()
|
||||
.subtract(const Duration(hours: 12))
|
||||
.millisecondsSinceEpoch) {
|
||||
@@ -245,7 +247,10 @@ class MagicCacheService {
|
||||
_isUpdateInProgress = true;
|
||||
final EnteWatch? w = kDebugMode ? EnteWatch("magicCacheWatch") : null;
|
||||
w?.start();
|
||||
final List<MagicCache> magicCaches = await _nonEmptyMagicResults();
|
||||
final magicPromptsData = await getPrompts();
|
||||
w?.log("loadedPrompts");
|
||||
final List<MagicCache> magicCaches =
|
||||
await _nonEmptyMagicResults(magicPromptsData);
|
||||
w?.log("resultComputed");
|
||||
_magicCacheFuture = Future.value(magicCaches);
|
||||
await writeToJsonFile<List<MagicCache>>(
|
||||
@@ -257,6 +262,7 @@ class MagicCacheService {
|
||||
await _resetLastMagicCacheUpdateTime();
|
||||
w?.logAndReset('done');
|
||||
_pendingUpdateReason.clear();
|
||||
Bus.instance.fire(MagicCacheUpdatedEvent());
|
||||
} catch (e, s) {
|
||||
_logger.info("Error updating magic cache", e, s);
|
||||
} finally {
|
||||
@@ -265,6 +271,14 @@ class MagicCacheService {
|
||||
}
|
||||
}
|
||||
|
||||
Future<List<Prompt>> getPrompts() async {
|
||||
if (_promptFuture != null) {
|
||||
return _promptFuture!;
|
||||
}
|
||||
_promptFuture = _readPromptFromDiskOrNetwork();
|
||||
return _promptFuture!;
|
||||
}
|
||||
|
||||
Future<List<MagicCache>> getMagicCache() async {
|
||||
if (_magicCacheFuture != null) {
|
||||
return _magicCacheFuture!;
|
||||
@@ -273,6 +287,17 @@ class MagicCacheService {
|
||||
return _magicCacheFuture!;
|
||||
}
|
||||
|
||||
Future<List<Prompt>> _readPromptFromDiskOrNetwork() async {
|
||||
final String path =
|
||||
await RemoteAssetsService.instance.getAssetPath(_kMagicPromptsDataUrl);
|
||||
return Computer.shared().compute(
|
||||
_loadMagicPrompts,
|
||||
param: <String, dynamic>{
|
||||
"path": path,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Future<List<MagicCache>> _readResultFromDisk() async {
|
||||
_logger.info("Reading magic cache result from disk");
|
||||
final cache = await decodeJsonFile<List<MagicCache>>(
|
||||
@@ -287,7 +312,6 @@ class MagicCacheService {
|
||||
if (file.existsSync()) {
|
||||
await file.delete();
|
||||
}
|
||||
_magicCacheFuture = null;
|
||||
}
|
||||
|
||||
Future<List<GenericSearchResult>> getMagicGenericSearchResult(
|
||||
@@ -298,30 +322,7 @@ class MagicCacheService {
|
||||
kDebugMode ? EnteWatch("magicGenericSearchResult") : null;
|
||||
w?.start();
|
||||
final magicCaches = await getMagicCache();
|
||||
|
||||
// Load discover embeddings to get prompts
|
||||
final discoverEmbeddings = await loadDiscoverEmbeddings();
|
||||
if (discoverEmbeddings == null) {
|
||||
_logger.severe("No discover embeddings available in assets");
|
||||
throw Exception("No discover embeddings available in assets");
|
||||
}
|
||||
|
||||
final prompts = <Prompt>[];
|
||||
for (final entry in discoverEmbeddings.queryToPromptData.entries) {
|
||||
final query = entry.key;
|
||||
final promptData = entry.value;
|
||||
prompts.add(
|
||||
Prompt(
|
||||
query: query,
|
||||
title: promptData.title,
|
||||
minScore: promptData.minScore,
|
||||
minSize: promptData.minSize,
|
||||
showVideo: promptData.showVideo ?? true,
|
||||
recentFirst: promptData.recentFirst ?? false,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
final List<Prompt> prompts = await getPrompts();
|
||||
if (magicCaches.isEmpty) {
|
||||
w?.log("No magic cache found");
|
||||
return [];
|
||||
@@ -374,53 +375,35 @@ class MagicCacheService {
|
||||
}
|
||||
}
|
||||
|
||||
Future<List<MagicCache>> _nonEmptyMagicResults() async {
|
||||
static Future<List<Prompt>> _loadMagicPrompts(
|
||||
Map<String, dynamic> args,
|
||||
) async {
|
||||
final String path = args["path"] as String;
|
||||
final File file = File(path);
|
||||
final String contents = await file.readAsString();
|
||||
final Map<String, dynamic> promptsJson = jsonDecode(contents);
|
||||
final List<dynamic> promptData = promptsJson['prompts'];
|
||||
return promptData
|
||||
.map<Prompt>((jsonItem) => Prompt.fromJson(jsonItem))
|
||||
.toList();
|
||||
}
|
||||
|
||||
///Returns non-empty magic results from magicPromptsData
|
||||
///Length is number of prompts, can be less if there are not enough non-empty
|
||||
///results
|
||||
Future<List<MagicCache>> _nonEmptyMagicResults(
|
||||
List<Prompt> magicPromptsData,
|
||||
) async {
|
||||
final TimeLogger t = TimeLogger();
|
||||
final results = <MagicCache>[];
|
||||
final List<int> matchCount = [];
|
||||
|
||||
// Uncomment this code to generate embeddings and save them to a JSON file
|
||||
// await generateAndSaveDiscoverEmbeddings();
|
||||
// (from package:photos/utils/text_embeddings_util.dart)
|
||||
|
||||
// Load pre-computed discover embeddings from assets
|
||||
final discoverEmbeddings = await loadDiscoverEmbeddings();
|
||||
if (discoverEmbeddings == null) {
|
||||
_logger.severe('Failed to load discover embeddings');
|
||||
throw Exception('Failed to load discover embeddings');
|
||||
}
|
||||
|
||||
// Build the embeddings and score maps
|
||||
final Map<String, List<double>> queryToEmbedding = {};
|
||||
final Map<String, double> queryToScore = {};
|
||||
final List<Prompt> prompts = [];
|
||||
|
||||
for (final entry in discoverEmbeddings.queryToPromptData.entries) {
|
||||
final query = entry.key;
|
||||
final promptData = entry.value;
|
||||
final vector = discoverEmbeddings.queryToVector[query];
|
||||
|
||||
if (vector != null) {
|
||||
queryToEmbedding[query] = vector.toList();
|
||||
queryToScore[query] = promptData.minScore;
|
||||
prompts.add(
|
||||
Prompt(
|
||||
query: query,
|
||||
title: promptData.title,
|
||||
minScore: promptData.minScore,
|
||||
minSize: promptData.minSize,
|
||||
showVideo: promptData.showVideo ?? true,
|
||||
recentFirst: promptData.recentFirst ?? false,
|
||||
),
|
||||
);
|
||||
}
|
||||
for (Prompt prompt in magicPromptsData) {
|
||||
queryToScore[prompt.query] = prompt.minScore;
|
||||
}
|
||||
|
||||
_logger.info('Using pre-computed discover embeddings from assets');
|
||||
final clipResults = await SemanticSearchService.instance
|
||||
.getMatchingFileIDsWithEmbeddings(queryToEmbedding, queryToScore);
|
||||
|
||||
for (final prompt in prompts) {
|
||||
final clipResults =
|
||||
await SemanticSearchService.instance.getMatchingFileIDs(queryToScore);
|
||||
for (Prompt prompt in magicPromptsData) {
|
||||
final List<int> fileUploadedIDs = clipResults[prompt.query] ?? [];
|
||||
if (fileUploadedIDs.isNotEmpty) {
|
||||
results.add(
|
||||
|
||||
@@ -104,7 +104,7 @@ class SmartMemoriesService {
|
||||
);
|
||||
|
||||
// Load pre-computed text embeddings from assets
|
||||
final textEmbeddings = await loadMemoriesEmbeddings();
|
||||
final textEmbeddings = await loadTextEmbeddingsFromAssets();
|
||||
if (textEmbeddings == null) {
|
||||
_logger.severe('Failed to load pre-computed text embeddings');
|
||||
throw Exception(
|
||||
|
||||
@@ -17,6 +17,7 @@ import 'package:photos/events/files_updated_event.dart';
|
||||
import 'package:photos/events/force_reload_home_gallery_event.dart';
|
||||
import 'package:photos/events/local_photos_updated_event.dart';
|
||||
import 'package:photos/events/sync_status_update_event.dart';
|
||||
import "package:photos/main.dart" show isProcessBg;
|
||||
import 'package:photos/models/device_collection.dart';
|
||||
import "package:photos/models/file/extensions/file_props.dart";
|
||||
import 'package:photos/models/file/file.dart';
|
||||
@@ -31,7 +32,6 @@ import 'package:photos/services/local_file_update_service.dart';
|
||||
import "package:photos/services/notification_service.dart";
|
||||
import 'package:photos/services/sync/diff_fetcher.dart';
|
||||
import 'package:photos/services/sync/sync_service.dart';
|
||||
import "package:photos/services/video_preview_service.dart";
|
||||
import 'package:photos/utils/file_uploader.dart';
|
||||
import 'package:photos/utils/file_util.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
@@ -132,13 +132,9 @@ class RemoteSyncService {
|
||||
}
|
||||
|
||||
if (
|
||||
// Only Uploading Previews in fg to prevent heating issues
|
||||
AppLifecycleService.instance.isForeground &&
|
||||
// if ML is enabled the MLService will queue when ML is done
|
||||
!flagService.hasGrantedMLConsent) {
|
||||
fileDataService.syncFDStatus().then((_) {
|
||||
VideoPreviewService.instance.queueFiles();
|
||||
}).ignore();
|
||||
// We don't need syncFDStatus here if in background
|
||||
!isProcessBg) {
|
||||
fileDataService.syncFDStatus().ignore();
|
||||
}
|
||||
|
||||
final filesToBeUploaded = await _getFilesToBeUploaded();
|
||||
@@ -377,7 +373,7 @@ class RemoteSyncService {
|
||||
localIDsToSync.removeAll(alreadyClaimedLocalIDs);
|
||||
if (alreadyClaimedLocalIDs.isNotEmpty && !_hasCleanupStaleEntry) {
|
||||
try {
|
||||
await _db.removeQueuedLocalFiles(alreadyClaimedLocalIDs);
|
||||
await _db.removeQueuedLocalFiles(alreadyClaimedLocalIDs, ownerID);
|
||||
} catch (e, s) {
|
||||
_logger.severe("removeQueuedLocalFiles failed", e, s);
|
||||
}
|
||||
|
||||
@@ -15,28 +15,30 @@ import "package:path_provider/path_provider.dart";
|
||||
import "package:photos/core/cache/video_cache_manager.dart";
|
||||
import "package:photos/core/configuration.dart";
|
||||
import "package:photos/core/event_bus.dart";
|
||||
import "package:photos/core/network/network.dart";
|
||||
import 'package:photos/db/files_db.dart';
|
||||
import "package:photos/db/upload_locks_db.dart";
|
||||
import "package:photos/events/video_preview_state_changed_event.dart";
|
||||
import "package:photos/events/video_streaming_changed.dart";
|
||||
import 'package:photos/generated/intl/app_localizations.dart';
|
||||
import "package:photos/models/base/id.dart";
|
||||
import "package:photos/models/ffmpeg/ffprobe_props.dart";
|
||||
import "package:photos/models/file/file.dart";
|
||||
import "package:photos/models/file/file_type.dart";
|
||||
import "package:photos/models/metadata/file_magic.dart";
|
||||
import "package:photos/models/preview/playlist_data.dart";
|
||||
import "package:photos/models/preview/preview_item.dart";
|
||||
import "package:photos/models/preview/preview_item_status.dart";
|
||||
import "package:photos/service_locator.dart";
|
||||
import "package:photos/services/collections_service.dart";
|
||||
import "package:photos/services/file_magic_service.dart";
|
||||
import "package:photos/services/filedata/model/file_data.dart";
|
||||
import "package:photos/services/isolated_ffmpeg_service.dart";
|
||||
import "package:photos/services/machine_learning/compute_controller.dart";
|
||||
import "package:photos/ui/notification/toast.dart";
|
||||
import "package:photos/utils/exif_util.dart";
|
||||
import "package:photos/utils/file_key.dart";
|
||||
import "package:photos/utils/file_util.dart";
|
||||
import "package:photos/utils/gzip.dart";
|
||||
import "package:photos/utils/network_util.dart";
|
||||
import "package:shared_preferences/shared_preferences.dart";
|
||||
|
||||
const _maxRetryCount = 3;
|
||||
|
||||
@@ -47,39 +49,54 @@ class VideoPreviewService {
|
||||
final int _maxPreviewSizeLimitForCache = 50 * 1024 * 1024; // 50 MB
|
||||
Set<int>? _failureFiles;
|
||||
|
||||
bool _hasQueuedFile = false;
|
||||
bool get _hasQueuedFile => fileQueue.isNotEmpty;
|
||||
|
||||
VideoPreviewService._privateConstructor();
|
||||
VideoPreviewService._privateConstructor()
|
||||
: serviceLocator = ServiceLocator.instance,
|
||||
filesDB = FilesDB.instance,
|
||||
uploadLocksDB = UploadLocksDB.instance,
|
||||
ffmpegService = IsolatedFfmpegService.instance,
|
||||
fileMagicService = FileMagicService.instance,
|
||||
cacheManager = DefaultCacheManager(),
|
||||
videoCacheManager = VideoCacheManager.instance,
|
||||
config = Configuration.instance;
|
||||
|
||||
VideoPreviewService(
|
||||
this.config,
|
||||
this.serviceLocator,
|
||||
this.filesDB,
|
||||
this.uploadLocksDB,
|
||||
this.fileMagicService,
|
||||
this.ffmpegService,
|
||||
this.cacheManager,
|
||||
this.videoCacheManager,
|
||||
);
|
||||
|
||||
static final VideoPreviewService instance =
|
||||
VideoPreviewService._privateConstructor();
|
||||
|
||||
final cacheManager = DefaultCacheManager();
|
||||
final videoCacheManager = VideoCacheManager.instance;
|
||||
|
||||
int uploadingFileId = -1;
|
||||
|
||||
final _enteDio = NetworkClient.instance.enteDio;
|
||||
final _nonEnteDio = NetworkClient.instance.getDio();
|
||||
final CollectionsService collectionsService = CollectionsService.instance;
|
||||
final Configuration config;
|
||||
final ServiceLocator serviceLocator;
|
||||
final FilesDB filesDB;
|
||||
final UploadLocksDB uploadLocksDB;
|
||||
final FileMagicService fileMagicService;
|
||||
final IsolatedFfmpegService ffmpegService;
|
||||
final DefaultCacheManager cacheManager;
|
||||
final CacheManager videoCacheManager;
|
||||
|
||||
void init(SharedPreferences prefs) {
|
||||
_prefs = prefs;
|
||||
}
|
||||
|
||||
late final SharedPreferences _prefs;
|
||||
static const String _videoStreamingEnabled = "videoStreamingEnabled";
|
||||
|
||||
bool get isVideoStreamingEnabled {
|
||||
return _prefs.getBool(_videoStreamingEnabled) ?? false;
|
||||
return serviceLocator.prefs.getBool(_videoStreamingEnabled) ?? false;
|
||||
}
|
||||
|
||||
Future<void> setIsVideoStreamingEnabled(bool value) async {
|
||||
_prefs.setBool(_videoStreamingEnabled, value).ignore();
|
||||
serviceLocator.prefs.setBool(_videoStreamingEnabled, value).ignore();
|
||||
Bus.instance.fire(VideoStreamingChanged());
|
||||
|
||||
if (isVideoStreamingEnabled) {
|
||||
await fileDataService.syncFDStatus();
|
||||
queueFiles(duration: Duration.zero);
|
||||
} else {
|
||||
clearQueue();
|
||||
@@ -87,13 +104,82 @@ class VideoPreviewService {
|
||||
}
|
||||
|
||||
void clearQueue() {
|
||||
// Fire events for all items being cleared
|
||||
for (final entry in _items.entries) {
|
||||
_fireVideoPreviewStateChange(entry.key, PreviewItemStatus.uploaded);
|
||||
}
|
||||
fileQueue.clear();
|
||||
_items.clear();
|
||||
_hasQueuedFile = false;
|
||||
}
|
||||
|
||||
void _fireVideoPreviewStateChange(int fileId, PreviewItemStatus status) {
|
||||
Bus.instance.fire(VideoPreviewStateChangedEvent(fileId, status));
|
||||
}
|
||||
|
||||
// Return value indicates file was successfully added to queue or not
|
||||
Future<bool> addToManualQueue(EnteFile file, String queueType) async {
|
||||
if (file.uploadedFileID == null) return false;
|
||||
|
||||
// Check if already in queue
|
||||
final bool alreadyInQueue = await uploadLocksDB.isInStreamQueue(
|
||||
file.uploadedFileID!,
|
||||
);
|
||||
if (alreadyInQueue) {
|
||||
return false; // Indicates file was already in queue
|
||||
}
|
||||
|
||||
// Add to persistent database queue
|
||||
await uploadLocksDB.addToStreamQueue(file.uploadedFileID!, queueType);
|
||||
|
||||
// Start processing if not already processing
|
||||
if (uploadingFileId < 0) {
|
||||
queueFiles(duration: Duration.zero, isManual: true);
|
||||
} else {
|
||||
_items[file.uploadedFileID!] = PreviewItem(
|
||||
status: PreviewItemStatus.inQueue,
|
||||
file: file,
|
||||
retryCount: 0,
|
||||
collectionID: file.collectionID ?? 0,
|
||||
);
|
||||
_fireVideoPreviewStateChange(
|
||||
file.uploadedFileID!,
|
||||
PreviewItemStatus.inQueue,
|
||||
);
|
||||
fileQueue[file.uploadedFileID!] = file;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool isCurrentlyProcessing(int? uploadedFileID) {
|
||||
if (uploadedFileID == null) return false;
|
||||
return uploadingFileId == uploadedFileID;
|
||||
}
|
||||
|
||||
Future<bool> _isRecreateOperation(EnteFile file) async {
|
||||
if (file.uploadedFileID == null) return false;
|
||||
|
||||
try {
|
||||
// Check database directly instead of relying on in-memory _manualQueueFiles
|
||||
// which might not be populated yet
|
||||
final manualQueueFiles = await uploadLocksDB.getStreamQueue();
|
||||
final queueType = manualQueueFiles[file.uploadedFileID!];
|
||||
return queueType == 'recreate';
|
||||
} catch (_) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _ensurePreviewIdsInitialized() async {
|
||||
// Ensure fileDataService previewIds is initialized before using it
|
||||
if (fileDataService.previewIds.isEmpty) {
|
||||
await fileDataService.syncFDStatus();
|
||||
}
|
||||
}
|
||||
|
||||
Future<bool> isSharedFileStreamble(EnteFile file) async {
|
||||
try {
|
||||
await _ensurePreviewIdsInitialized();
|
||||
if (fileDataService.previewIds.containsKey(file.uploadedFileID)) {
|
||||
return true;
|
||||
}
|
||||
@@ -104,14 +190,76 @@ class VideoPreviewService {
|
||||
}
|
||||
}
|
||||
|
||||
Future<List<EnteFile>> _getFiles({
|
||||
DateTime? beginDate,
|
||||
bool onlyFilesWithLocalId = true,
|
||||
}) async {
|
||||
return await filesDB.getStreamingEligibleVideoFiles(
|
||||
beginDate: beginDate,
|
||||
userID: config.getUserID()!,
|
||||
onlyFilesWithLocalId: onlyFilesWithLocalId,
|
||||
);
|
||||
}
|
||||
|
||||
Future<double> calcStatus(
|
||||
List<EnteFile> files,
|
||||
Map<int, PreviewInfo> previewIds,
|
||||
) async {
|
||||
// This is the total video files that have streams
|
||||
final Set<int> processed = previewIds.keys.toSet();
|
||||
// Total: Total Remote video files owned - skipped video files
|
||||
// + processed videos (any platform)
|
||||
final Set<int> total = {...processed};
|
||||
|
||||
for (final file in files) {
|
||||
// skipped -> don't add
|
||||
if (file.pubMagicMetadata?.sv == 1) {
|
||||
continue;
|
||||
}
|
||||
// Include the file to total set
|
||||
total.add(file.uploadedFileID!);
|
||||
}
|
||||
|
||||
// If total is empty then mark all as processed else compute the ratio
|
||||
// of processed files and total remote video files
|
||||
// netProcessedItems = processed / total
|
||||
final double netProcessedItems =
|
||||
total.isEmpty ? 1 : (processed.length / total.length).clamp(0, 1);
|
||||
|
||||
// Store the data and return it
|
||||
final status = netProcessedItems;
|
||||
return status;
|
||||
}
|
||||
|
||||
Future<double> getStatus() async {
|
||||
try {
|
||||
await _ensurePreviewIdsInitialized();
|
||||
|
||||
// This will get us all the video files that are present on remote
|
||||
// and also that could be / have been skipped due to device
|
||||
// limitations
|
||||
final files = await _getFiles(
|
||||
beginDate: null,
|
||||
onlyFilesWithLocalId: false,
|
||||
);
|
||||
|
||||
return calcStatus(files, fileDataService.previewIds);
|
||||
} catch (e, s) {
|
||||
_logger.severe('Error getting Streaming status', e, s);
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> chunkAndUploadVideo(
|
||||
BuildContext? ctx,
|
||||
EnteFile enteFile, [
|
||||
bool forceUpload = false,
|
||||
bool isManual = false,
|
||||
]) async {
|
||||
if (!_allowStream()) {
|
||||
final canStream = _isPermissionGranted();
|
||||
if (!canStream) {
|
||||
_logger.info(
|
||||
"Pause preview due to disabledSteaming($isVideoStreamingEnabled) or computeController permission)",
|
||||
"Pause preview due to disabledSteaming($isVideoStreamingEnabled) or computeController permission) - isManual: $isManual",
|
||||
);
|
||||
if (isVideoStreamingEnabled) _logger.info("No permission to run compute");
|
||||
clearQueue();
|
||||
@@ -126,10 +274,14 @@ class VideoPreviewService {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
// check if playlist already exist
|
||||
if (await getPlaylist(enteFile) != null) {
|
||||
// check if playlist already exist, but skip this check for 'recreate' operations
|
||||
final isRecreateOperation = await _isRecreateOperation(enteFile);
|
||||
if (!isRecreateOperation && await getPlaylist(enteFile) != null) {
|
||||
if (ctx != null && ctx.mounted) {
|
||||
showShortToast(ctx, 'Video preview already exists');
|
||||
showShortToast(
|
||||
ctx,
|
||||
AppLocalizations.of(ctx).videoPreviewAlreadyExists,
|
||||
);
|
||||
}
|
||||
removeFile = true;
|
||||
return;
|
||||
@@ -143,8 +295,12 @@ class VideoPreviewService {
|
||||
return;
|
||||
}
|
||||
}
|
||||
_logger.info(
|
||||
"Starting video preview generation for ${enteFile.displayName}",
|
||||
);
|
||||
// elimination case for <=10 MB with H.264
|
||||
var (props, result, file) = await _checkFileForPreviewCreation(enteFile);
|
||||
var (props, result, file) =
|
||||
await _checkFileForPreviewCreation(enteFile, isManual);
|
||||
if (result) {
|
||||
removeFile = true;
|
||||
return;
|
||||
@@ -162,6 +318,10 @@ class VideoPreviewService {
|
||||
: _items[enteFile.uploadedFileID!]?.retryCount ?? 0,
|
||||
collectionID: enteFile.collectionID ?? 0,
|
||||
);
|
||||
_fireVideoPreviewStateChange(
|
||||
enteFile.uploadedFileID!,
|
||||
PreviewItemStatus.inQueue,
|
||||
);
|
||||
fileQueue[enteFile.uploadedFileID!] = enteFile;
|
||||
return;
|
||||
}
|
||||
@@ -175,6 +335,10 @@ class VideoPreviewService {
|
||||
forceUpload ? 0 : _items[enteFile.uploadedFileID!]?.retryCount ?? 0,
|
||||
collectionID: enteFile.collectionID ?? 0,
|
||||
);
|
||||
_fireVideoPreviewStateChange(
|
||||
enteFile.uploadedFileID!,
|
||||
PreviewItemStatus.compressing,
|
||||
);
|
||||
|
||||
// get file
|
||||
file ??= await getFile(enteFile, isOrigin: true);
|
||||
@@ -187,8 +351,9 @@ class VideoPreviewService {
|
||||
props ??= await getVideoPropsAsync(file);
|
||||
final fileSize = enteFile.fileSize ?? file.lengthSync();
|
||||
|
||||
final videoData = List.from(props?.propData?["streams"] ?? [])
|
||||
.firstWhereOrNull((e) => e["type"] == "video");
|
||||
final videoData = List.from(
|
||||
props?.propData?["streams"] ?? [],
|
||||
).firstWhereOrNull((e) => e["type"] == "video");
|
||||
|
||||
final codec = videoData["codec_name"]?.toString().toLowerCase();
|
||||
final isH264 = codec?.contains("h264") ?? false;
|
||||
@@ -203,7 +368,7 @@ class VideoPreviewService {
|
||||
(colorTransfer == "smpte2084" || colorTransfer == "arib-std-b67");
|
||||
|
||||
// create temp file & directory for preview generation
|
||||
final String tempDir = Configuration.instance.getTempDirectory();
|
||||
final String tempDir = config.getTempDirectory();
|
||||
final String prefix =
|
||||
"${tempDir}_${enteFile.uploadedFileID}_${newID("pv")}";
|
||||
Directory(prefix).createSync();
|
||||
@@ -214,8 +379,10 @@ class VideoPreviewService {
|
||||
keyfile.writeAsBytesSync(key.bytes);
|
||||
|
||||
final keyinfo = File('$prefix/mykey.keyinfo');
|
||||
keyinfo.writeAsStringSync("data:text/plain;base64,${key.base64}\n"
|
||||
"${keyfile.path}\n");
|
||||
keyinfo.writeAsStringSync(
|
||||
"data:text/plain;base64,${key.base64}\n"
|
||||
"${keyfile.path}\n",
|
||||
);
|
||||
|
||||
_logger.info(
|
||||
'Generating HLS Playlist ${enteFile.displayName} at $prefix/output.m3u8',
|
||||
@@ -267,19 +434,19 @@ class VideoPreviewService {
|
||||
|
||||
_logger.info(command);
|
||||
|
||||
final playlistGenResult = await IsolatedFfmpegService.runFfmpeg(
|
||||
final playlistGenResult = await ffmpegService
|
||||
.runFfmpeg(
|
||||
// input file path
|
||||
'-i "${file.path}" ' +
|
||||
// main params for streaming
|
||||
command +
|
||||
// output file path
|
||||
'$prefix/output.m3u8',
|
||||
).onError(
|
||||
(error, stackTrace) {
|
||||
_logger.warning("FFmpeg command failed", error, stackTrace);
|
||||
return {};
|
||||
},
|
||||
);
|
||||
)
|
||||
.onError((error, stackTrace) {
|
||||
_logger.warning("FFmpeg command failed", error, stackTrace);
|
||||
return {};
|
||||
});
|
||||
|
||||
final playlistGenReturnCode = playlistGenResult["returnCode"] as int?;
|
||||
|
||||
@@ -294,6 +461,10 @@ class VideoPreviewService {
|
||||
collectionID: enteFile.collectionID ?? 0,
|
||||
retryCount: _items[enteFile.uploadedFileID!]?.retryCount ?? 0,
|
||||
);
|
||||
_fireVideoPreviewStateChange(
|
||||
enteFile.uploadedFileID!,
|
||||
PreviewItemStatus.uploading,
|
||||
);
|
||||
|
||||
_logger.info('Playlist Generated ${enteFile.displayName}');
|
||||
|
||||
@@ -305,18 +476,18 @@ class VideoPreviewService {
|
||||
objectSize = result.$2;
|
||||
|
||||
// Fetch resolution of generated stream by decrypting a single frame
|
||||
final playlistFrameResult = await IsolatedFfmpegService.runFfmpeg(
|
||||
final playlistFrameResult = await ffmpegService
|
||||
.runFfmpeg(
|
||||
'-allowed_extensions ALL -i "$prefix/output.m3u8" -frames:v 1 -c copy "$prefix/frame.ts"',
|
||||
).onError(
|
||||
(error, stackTrace) {
|
||||
_logger.warning(
|
||||
"FFmpeg command failed for frame",
|
||||
error,
|
||||
stackTrace,
|
||||
);
|
||||
return {};
|
||||
},
|
||||
);
|
||||
)
|
||||
.onError((error, stackTrace) {
|
||||
_logger.warning(
|
||||
"FFmpeg command failed for frame",
|
||||
error,
|
||||
stackTrace,
|
||||
);
|
||||
return {};
|
||||
});
|
||||
final playlistFrameReturnCode =
|
||||
playlistFrameResult["returnCode"] as int?;
|
||||
int? width, height;
|
||||
@@ -373,11 +544,14 @@ class VideoPreviewService {
|
||||
retryCount: _items[enteFile.uploadedFileID!]!.retryCount,
|
||||
collectionID: enteFile.collectionID ?? 0,
|
||||
);
|
||||
_fireVideoPreviewStateChange(
|
||||
enteFile.uploadedFileID!,
|
||||
PreviewItemStatus.uploaded,
|
||||
);
|
||||
_removeFromLocks(enteFile).ignore();
|
||||
Directory(prefix).delete(recursive: true).ignore();
|
||||
}
|
||||
} finally {
|
||||
computeController.releaseCompute(stream: true);
|
||||
if (error != null) {
|
||||
_retryFile(enteFile, error);
|
||||
} else if (removeFile) {
|
||||
@@ -397,6 +571,8 @@ class VideoPreviewService {
|
||||
final file = entry.value;
|
||||
fileQueue.remove(entry.key);
|
||||
await chunkAndUploadVideo(ctx, file);
|
||||
} else {
|
||||
computeController.releaseCompute(stream: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -404,16 +580,28 @@ class VideoPreviewService {
|
||||
Future<void> _removeFromLocks(EnteFile enteFile) async {
|
||||
final bool isFailurePresent =
|
||||
_failureFiles?.contains(enteFile.uploadedFileID!) ?? false;
|
||||
final bool isInManualQueue = await uploadLocksDB.isInStreamQueue(
|
||||
enteFile.uploadedFileID!,
|
||||
);
|
||||
|
||||
if (isFailurePresent) {
|
||||
await UploadLocksDB.instance
|
||||
.deleteStreamUploadErrorEntry(enteFile.uploadedFileID!);
|
||||
await uploadLocksDB.deleteStreamUploadErrorEntry(
|
||||
enteFile.uploadedFileID!,
|
||||
);
|
||||
_failureFiles?.remove(enteFile.uploadedFileID!);
|
||||
}
|
||||
|
||||
if (isInManualQueue) {
|
||||
await uploadLocksDB.removeFromStreamQueue(enteFile.uploadedFileID!);
|
||||
}
|
||||
}
|
||||
|
||||
void _removeFile(EnteFile enteFile) {
|
||||
_items.remove(enteFile.uploadedFileID!);
|
||||
final fileId = enteFile.uploadedFileID!;
|
||||
_items.remove(fileId);
|
||||
// Note: Using 'uploaded' status as there's no 'removed' status in PreviewItemStatus
|
||||
// This indicates the item has been successfully processed and removed from queue
|
||||
_fireVideoPreviewStateChange(fileId, PreviewItemStatus.uploaded);
|
||||
}
|
||||
|
||||
void _retryFile(EnteFile enteFile, Object error) {
|
||||
@@ -424,6 +612,10 @@ class VideoPreviewService {
|
||||
retryCount: _items[enteFile.uploadedFileID!]!.retryCount + 1,
|
||||
collectionID: enteFile.collectionID ?? 0,
|
||||
);
|
||||
_fireVideoPreviewStateChange(
|
||||
enteFile.uploadedFileID!,
|
||||
PreviewItemStatus.retry,
|
||||
);
|
||||
fileQueue[enteFile.uploadedFileID!] = enteFile;
|
||||
} else {
|
||||
_items[enteFile.uploadedFileID!] = PreviewItem(
|
||||
@@ -433,17 +625,21 @@ class VideoPreviewService {
|
||||
collectionID: enteFile.collectionID ?? 0,
|
||||
error: error,
|
||||
);
|
||||
_fireVideoPreviewStateChange(
|
||||
enteFile.uploadedFileID!,
|
||||
PreviewItemStatus.failed,
|
||||
);
|
||||
|
||||
final bool isFailurePresent =
|
||||
_failureFiles?.contains(enteFile.uploadedFileID!) ?? false;
|
||||
|
||||
if (isFailurePresent) {
|
||||
UploadLocksDB.instance.appendStreamEntry(
|
||||
uploadLocksDB.appendStreamEntry(
|
||||
enteFile.uploadedFileID!,
|
||||
error.toString(),
|
||||
);
|
||||
} else {
|
||||
UploadLocksDB.instance.appendStreamEntry(
|
||||
uploadLocksDB.appendStreamEntry(
|
||||
enteFile.uploadedFileID!,
|
||||
error.toString(),
|
||||
);
|
||||
@@ -474,7 +670,7 @@ class VideoPreviewService {
|
||||
},
|
||||
encryptionKey,
|
||||
);
|
||||
final _ = await _enteDio.put(
|
||||
final _ = await serviceLocator.enteDio.put(
|
||||
"/files/video-data",
|
||||
data: {
|
||||
"fileID": file.uploadedFileID!,
|
||||
@@ -493,7 +689,7 @@ class VideoPreviewService {
|
||||
Future<(String, int)> _uploadPreviewVideo(EnteFile file, File preview) async {
|
||||
_logger.info("Pushing preview for $file");
|
||||
try {
|
||||
final response = await _enteDio.get(
|
||||
final response = await serviceLocator.enteDio.get(
|
||||
"/files/data/preview-upload-url",
|
||||
queryParameters: {
|
||||
"fileID": file.uploadedFileID!,
|
||||
@@ -503,14 +699,10 @@ class VideoPreviewService {
|
||||
final uploadURL = response.data["url"];
|
||||
final String objectID = response.data["objectID"];
|
||||
final objectSize = preview.lengthSync();
|
||||
final _ = await _enteDio.put(
|
||||
final _ = await serviceLocator.enteDio.put(
|
||||
uploadURL,
|
||||
data: preview.openRead(),
|
||||
options: Options(
|
||||
headers: {
|
||||
Headers.contentLengthHeader: objectSize,
|
||||
},
|
||||
),
|
||||
options: Options(headers: {Headers.contentLengthHeader: objectSize}),
|
||||
);
|
||||
return (objectID, objectSize);
|
||||
} catch (e) {
|
||||
@@ -538,6 +730,7 @@ class VideoPreviewService {
|
||||
Future<PlaylistData?> _getPlaylist(EnteFile file) async {
|
||||
_logger.info("Getting playlist for $file");
|
||||
int? width, height, size;
|
||||
|
||||
try {
|
||||
late final String objectID;
|
||||
final PreviewInfo? previewInfo =
|
||||
@@ -553,8 +746,9 @@ class VideoPreviewService {
|
||||
objectID = previewInfo.objectId;
|
||||
}
|
||||
|
||||
final FileInfo? playlistCache =
|
||||
await cacheManager.getFileFromCache(_getCacheKey(objectID));
|
||||
final FileInfo? playlistCache = await cacheManager.getFileFromCache(
|
||||
_getCacheKey(objectID),
|
||||
);
|
||||
final detailsCache = await cacheManager.getFileFromCache(
|
||||
_getDetailsCacheKey(objectID),
|
||||
);
|
||||
@@ -576,9 +770,7 @@ class VideoPreviewService {
|
||||
unawaited(
|
||||
cacheManager.putFile(
|
||||
_getCacheKey(objectID),
|
||||
Uint8List.fromList(
|
||||
(playlistData["playlist"] as String).codeUnits,
|
||||
),
|
||||
Uint8List.fromList((playlistData["playlist"] as String).codeUnits),
|
||||
),
|
||||
);
|
||||
unawaited(
|
||||
@@ -594,8 +786,9 @@ class VideoPreviewService {
|
||||
),
|
||||
);
|
||||
}
|
||||
final videoFile = (await videoCacheManager
|
||||
.getFileFromCache(_getVideoPreviewKey(objectID)))
|
||||
final videoFile = (await videoCacheManager.getFileFromCache(
|
||||
_getVideoPreviewKey(objectID),
|
||||
))
|
||||
?.file;
|
||||
if (videoFile == null) {
|
||||
previewURLResult = previewURLResult ?? await _getPreviewUrl(file);
|
||||
@@ -607,21 +800,26 @@ class VideoPreviewService {
|
||||
),
|
||||
);
|
||||
}
|
||||
finalPlaylist =
|
||||
finalPlaylist.replaceAll('\noutput.ts', '\n${previewURLResult.$1}');
|
||||
finalPlaylist = finalPlaylist.replaceAll(
|
||||
'\noutput.ts',
|
||||
'\n${previewURLResult.$1}',
|
||||
);
|
||||
} else {
|
||||
finalPlaylist =
|
||||
finalPlaylist.replaceAll('\noutput.ts', '\n${videoFile.path}');
|
||||
finalPlaylist = finalPlaylist.replaceAll(
|
||||
'\noutput.ts',
|
||||
'\n${videoFile.path}',
|
||||
);
|
||||
}
|
||||
final tempDir = await getTemporaryDirectory();
|
||||
final playlistFile = File("${tempDir.path}/${file.uploadedFileID}.m3u8");
|
||||
await playlistFile.writeAsString(finalPlaylist);
|
||||
final String log = (StringBuffer()
|
||||
..write("[CACHE-STATUS] ")
|
||||
..write("Video: ${videoFile != null ? '✓' : '✗'} | ")
|
||||
..write("Details: ${detailsCache != null ? '✓' : '✗'} | ")
|
||||
..write("Playlist: ${playlistCache != null ? '✓' : '✗'}"))
|
||||
.toString();
|
||||
final String log = (
|
||||
StringBuffer()
|
||||
..write("[CACHE-STATUS] ")
|
||||
..write("Video: ${videoFile != null ? '✓' : '✗'} | ")
|
||||
..write("Details: ${detailsCache != null ? '✓' : '✗'} | ")
|
||||
..write("Playlist: ${playlistCache != null ? '✓' : '✗'}"),
|
||||
).toString();
|
||||
_logger.info("Mapped playlist to ${playlistFile.path}, $log");
|
||||
final data = PlaylistData(
|
||||
preview: playlistFile,
|
||||
@@ -631,11 +829,7 @@ class VideoPreviewService {
|
||||
durationInSeconds: parseDurationFromHLS(finalPlaylist),
|
||||
);
|
||||
if (shouldAppendPreview) {
|
||||
fileDataService.appendPreview(
|
||||
file.uploadedFileID!,
|
||||
objectID,
|
||||
size!,
|
||||
);
|
||||
fileDataService.appendPreview(file.uploadedFileID!, objectID, size!);
|
||||
}
|
||||
return data;
|
||||
} catch (_) {
|
||||
@@ -646,24 +840,19 @@ class VideoPreviewService {
|
||||
Future<Map<String, dynamic>> _getPlaylistData(EnteFile file) async {
|
||||
late Response<dynamic> response;
|
||||
if (collectionsService.isSharedPublicLink(file.collectionID!)) {
|
||||
response = await _nonEnteDio.get(
|
||||
"${Configuration.instance.getHttpEndpoint()}/public-collection/files/data/fetch/",
|
||||
queryParameters: {
|
||||
"fileID": file.uploadedFileID,
|
||||
"type": "vid_preview",
|
||||
},
|
||||
response = await serviceLocator.nonEnteDio.get(
|
||||
"${config.getHttpEndpoint()}/public-collection/files/data/fetch/",
|
||||
queryParameters: {"fileID": file.uploadedFileID, "type": "vid_preview"},
|
||||
options: Options(
|
||||
headers:
|
||||
collectionsService.publicCollectionHeaders(file.collectionID!),
|
||||
headers: collectionsService.publicCollectionHeaders(
|
||||
file.collectionID!,
|
||||
),
|
||||
),
|
||||
);
|
||||
} else {
|
||||
response = await _enteDio.get(
|
||||
response = await serviceLocator.enteDio.get(
|
||||
"/files/data/fetch/",
|
||||
queryParameters: {
|
||||
"fileID": file.uploadedFileID,
|
||||
"type": "vid_preview",
|
||||
},
|
||||
queryParameters: {"fileID": file.uploadedFileID, "type": "vid_preview"},
|
||||
);
|
||||
}
|
||||
final encryptedData = response.data["data"]["encryptedData"];
|
||||
@@ -683,10 +872,7 @@ class VideoPreviewService {
|
||||
for (final line in lines) {
|
||||
if (line.startsWith("#EXTINF:")) {
|
||||
// Extract duration value (e.g., "#EXTINF:2.400000," → "2.400000")
|
||||
final durationStr = line.substring(
|
||||
8,
|
||||
line.length - 1,
|
||||
);
|
||||
final durationStr = line.substring(8, line.length - 1);
|
||||
final duration = double.tryParse(durationStr);
|
||||
if (duration != null) {
|
||||
totalDuration += duration;
|
||||
@@ -700,21 +886,22 @@ class VideoPreviewService {
|
||||
try {
|
||||
late String url;
|
||||
if (collectionsService.isSharedPublicLink(file.collectionID!)) {
|
||||
final response = await _nonEnteDio.get(
|
||||
"${Configuration.instance.getHttpEndpoint()}/public-collection/files/data/preview",
|
||||
final response = await serviceLocator.nonEnteDio.get(
|
||||
"${config.getHttpEndpoint()}/public-collection/files/data/preview",
|
||||
queryParameters: {
|
||||
"fileID": file.uploadedFileID,
|
||||
"type":
|
||||
file.fileType == FileType.video ? "vid_preview" : "img_preview",
|
||||
},
|
||||
options: Options(
|
||||
headers:
|
||||
collectionsService.publicCollectionHeaders(file.collectionID!),
|
||||
headers: collectionsService.publicCollectionHeaders(
|
||||
file.collectionID!,
|
||||
),
|
||||
),
|
||||
);
|
||||
url = (response.data["url"] as String);
|
||||
} else {
|
||||
final response = await _enteDio.get(
|
||||
final response = await serviceLocator.enteDio.get(
|
||||
"/files/data/preview",
|
||||
queryParameters: {
|
||||
"fileID": file.uploadedFileID,
|
||||
@@ -736,39 +923,44 @@ class VideoPreviewService {
|
||||
}
|
||||
|
||||
Future<(FFProbeProps?, bool, File?)> _checkFileForPreviewCreation(
|
||||
EnteFile enteFile,
|
||||
) async {
|
||||
EnteFile enteFile, [
|
||||
bool isManual = false,
|
||||
]) async {
|
||||
if ((enteFile.pubMagicMetadata?.sv ?? 0) == 1) {
|
||||
_logger.info(
|
||||
"Skip Preview due to sv=1 for ${enteFile.displayName}",
|
||||
);
|
||||
_logger.info("Skip Preview due to sv=1 for ${enteFile.displayName}");
|
||||
return (null, true, null);
|
||||
}
|
||||
if (enteFile.fileSize == null || enteFile.duration == null) {
|
||||
_logger.warning(
|
||||
"Skip Preview due to misisng size/duration for ${enteFile.displayName}",
|
||||
);
|
||||
return (null, true, null);
|
||||
}
|
||||
final int size = enteFile.fileSize!;
|
||||
final int duration = enteFile.duration!;
|
||||
if (size >= 500 * 1024 * 1024 || duration > 60) {
|
||||
_logger.info(
|
||||
"Skip Preview due to size: $size or duration: $duration",
|
||||
);
|
||||
return (null, true, null);
|
||||
if (!isManual) {
|
||||
if (enteFile.fileSize == null || enteFile.duration == null) {
|
||||
_logger.warning(
|
||||
"Skip Preview due to misisng size/duration for ${enteFile.displayName}",
|
||||
);
|
||||
return (null, true, null);
|
||||
}
|
||||
final int size = enteFile.fileSize!;
|
||||
final int duration = enteFile.duration!;
|
||||
if (size >= 500 * 1024 * 1024 || duration > 60) {
|
||||
_logger.info("Skip Preview due to size: $size or duration: $duration");
|
||||
return (null, true, null);
|
||||
}
|
||||
}
|
||||
FFProbeProps? props;
|
||||
File? file;
|
||||
bool skipFile = false;
|
||||
if (enteFile.fileSize == null && isManual) {
|
||||
return (props, skipFile, file);
|
||||
}
|
||||
|
||||
final size = enteFile.fileSize ?? 0;
|
||||
try {
|
||||
final isFileUnder10MB = size <= 10 * 1024 * 1024;
|
||||
if (isFileUnder10MB) {
|
||||
file = await getFile(enteFile, isOrigin: true);
|
||||
if (file != null) {
|
||||
props = await getVideoPropsAsync(file);
|
||||
final videoData = List.from(props?.propData?["streams"] ?? [])
|
||||
.firstWhereOrNull((e) => e["type"] == "video");
|
||||
final videoData = List.from(
|
||||
props?.propData?["streams"] ?? [],
|
||||
).firstWhereOrNull((e) => e["type"] == "video");
|
||||
final codec = videoData["codec_name"]?.toString().toLowerCase();
|
||||
skipFile = codec?.contains("h264") ?? false;
|
||||
|
||||
@@ -776,6 +968,10 @@ class VideoPreviewService {
|
||||
_logger.info(
|
||||
"[init] Ignoring file ${enteFile.displayName} for preview due to codec",
|
||||
);
|
||||
await fileMagicService.updatePublicMagicMetadata(
|
||||
[enteFile],
|
||||
{streamVersionKey: 1},
|
||||
);
|
||||
return (props, skipFile, file);
|
||||
}
|
||||
}
|
||||
@@ -787,35 +983,97 @@ class VideoPreviewService {
|
||||
}
|
||||
|
||||
// generate stream for all files after cutoff date
|
||||
Future<void> _putFilesForPreviewCreation([bool updateInit = false]) async {
|
||||
Future<void> _putFilesForPreviewCreation() async {
|
||||
if (!isVideoStreamingEnabled || !await canUseHighBandwidth()) return;
|
||||
|
||||
if (updateInit) _hasQueuedFile = true;
|
||||
|
||||
Map<int, String> failureFiles = {};
|
||||
Map<int, String> manualQueueFiles = {};
|
||||
try {
|
||||
failureFiles = await UploadLocksDB.instance.getStreamUploadError();
|
||||
failureFiles = await uploadLocksDB.getStreamUploadError();
|
||||
_failureFiles = {...failureFiles.keys};
|
||||
|
||||
manualQueueFiles = await uploadLocksDB.getStreamQueue();
|
||||
|
||||
// handle case when failures are already previewed
|
||||
for (final failure in _failureFiles!) {
|
||||
if (_items.containsKey(failure)) {
|
||||
UploadLocksDB.instance.deleteStreamUploadErrorEntry(failure).ignore();
|
||||
uploadLocksDB.deleteStreamUploadErrorEntry(failure).ignore();
|
||||
}
|
||||
}
|
||||
|
||||
// handle case when manual queue items are already previewed (for 'create' type only)
|
||||
for (final queueItem in manualQueueFiles.keys) {
|
||||
final queueType = manualQueueFiles[queueItem];
|
||||
final hasPreview = fileDataService.previewIds[queueItem] != null;
|
||||
if (hasPreview && queueType == 'create') {
|
||||
// Remove from queue only if it's a 'create' type and preview exists
|
||||
await uploadLocksDB.removeFromStreamQueue(queueItem);
|
||||
}
|
||||
}
|
||||
|
||||
// Refresh manual queue after cleanup
|
||||
manualQueueFiles = await uploadLocksDB.getStreamQueue();
|
||||
} catch (_) {}
|
||||
|
||||
final files = await FilesDB.instance.getAllFilesAfterDate(
|
||||
fileType: FileType.video,
|
||||
beginDate: DateTime.now().subtract(
|
||||
const Duration(days: 30),
|
||||
),
|
||||
userID: Configuration.instance.getUserID()!,
|
||||
final files = await _getFiles(
|
||||
beginDate: DateTime.now().subtract(const Duration(days: 60)),
|
||||
onlyFilesWithLocalId: true,
|
||||
);
|
||||
final previewIds = fileDataService.previewIds;
|
||||
|
||||
_logger.info(
|
||||
"[init] Found ${files.length} files in last 60 days, ${manualQueueFiles.length} manual queue files: ${manualQueueFiles.keys.toList()}",
|
||||
);
|
||||
|
||||
final previewIds = fileDataService.previewIds;
|
||||
final allFiles =
|
||||
files.where((file) => previewIds[file.uploadedFileID] == null).toList();
|
||||
// Add manual queue files first (they have priority)
|
||||
for (final queueFileId in manualQueueFiles.keys) {
|
||||
final queueType = manualQueueFiles[queueFileId] ?? 'create';
|
||||
final hasPreview = previewIds[queueFileId] != null;
|
||||
|
||||
// For create, only add if no preview exists
|
||||
if (queueType == 'create' && hasPreview) {
|
||||
_logger.info(
|
||||
"[manual-queue] Skipping file $queueFileId (type=$queueType, hasPreview=$hasPreview)",
|
||||
);
|
||||
continue;
|
||||
}
|
||||
|
||||
// First try to find the file in the 60-day list
|
||||
var queueFile = files.firstWhereOrNull(
|
||||
(f) => f.uploadedFileID == queueFileId,
|
||||
);
|
||||
|
||||
// If not found in 60-day list, fetch it individually
|
||||
queueFile ??=
|
||||
await filesDB.getAnyUploadedFile(queueFileId).catchError((e) => null);
|
||||
|
||||
if (queueFile == null) {
|
||||
await uploadLocksDB
|
||||
.removeFromStreamQueue(queueFileId)
|
||||
.catchError((e) {});
|
||||
continue;
|
||||
}
|
||||
|
||||
_items[queueFile.uploadedFileID!] = PreviewItem(
|
||||
status: PreviewItemStatus.inQueue,
|
||||
file: queueFile,
|
||||
collectionID: queueFile.collectionID ?? 0,
|
||||
);
|
||||
_fireVideoPreviewStateChange(
|
||||
queueFile.uploadedFileID!,
|
||||
PreviewItemStatus.inQueue,
|
||||
);
|
||||
fileQueue[queueFile.uploadedFileID!] = queueFile;
|
||||
}
|
||||
|
||||
// Then add regular files that need processing
|
||||
final allFiles = files
|
||||
.where(
|
||||
(file) =>
|
||||
previewIds[file.uploadedFileID] == null &&
|
||||
!manualQueueFiles.containsKey(file.uploadedFileID),
|
||||
)
|
||||
.toList();
|
||||
|
||||
// set all video status to in queue
|
||||
var n = allFiles.length, i = 0;
|
||||
@@ -831,6 +1089,10 @@ class VideoPreviewService {
|
||||
retryCount: _maxRetryCount,
|
||||
error: failureFiles[enteFile.uploadedFileID!],
|
||||
);
|
||||
_fireVideoPreviewStateChange(
|
||||
enteFile.uploadedFileID!,
|
||||
PreviewItemStatus.failed,
|
||||
);
|
||||
}
|
||||
if (isFailure) {
|
||||
_logger.info(
|
||||
@@ -846,25 +1108,29 @@ class VideoPreviewService {
|
||||
file: enteFile,
|
||||
collectionID: enteFile.collectionID ?? 0,
|
||||
);
|
||||
_fireVideoPreviewStateChange(
|
||||
enteFile.uploadedFileID!,
|
||||
PreviewItemStatus.inQueue,
|
||||
);
|
||||
fileQueue[enteFile.uploadedFileID!] = enteFile;
|
||||
|
||||
i++;
|
||||
}
|
||||
|
||||
if (allFiles.isEmpty) {
|
||||
final totalFiles = fileQueue.length;
|
||||
if (totalFiles == 0) {
|
||||
_logger.info("[init] No preview to cache");
|
||||
return;
|
||||
}
|
||||
|
||||
_logger.info("[init] Processing ${allFiles.length} items for streaming");
|
||||
_logger.info(
|
||||
"[init] Processing $totalFiles items for streaming (${manualQueueFiles.length} manual requested, ${fileQueue.length} queued, ${allFiles.length} regular)",
|
||||
);
|
||||
|
||||
// take first file and put it for stream generation
|
||||
final file = allFiles.removeAt(0);
|
||||
for (final enteFile in allFiles) {
|
||||
if (_items.containsKey(enteFile.uploadedFileID!)) {
|
||||
continue;
|
||||
}
|
||||
fileQueue[enteFile.uploadedFileID!] = enteFile;
|
||||
}
|
||||
final entry = fileQueue.entries.first;
|
||||
final file = entry.value;
|
||||
fileQueue.remove(entry.key);
|
||||
chunkAndUploadVideo(null, file).ignore();
|
||||
}
|
||||
|
||||
@@ -873,13 +1139,31 @@ class VideoPreviewService {
|
||||
computeController.requestCompute(stream: true);
|
||||
}
|
||||
|
||||
void queueFiles({Duration duration = const Duration(seconds: 5)}) {
|
||||
Future.delayed(duration, () {
|
||||
if (!_hasQueuedFile && _allowStream()) {
|
||||
_putFilesForPreviewCreation(true).catchError((_) {
|
||||
_hasQueuedFile = false;
|
||||
});
|
||||
}
|
||||
bool _allowManualStream() {
|
||||
return isVideoStreamingEnabled &&
|
||||
computeController.requestCompute(
|
||||
stream: true,
|
||||
bypassInteractionCheck: true,
|
||||
);
|
||||
}
|
||||
|
||||
bool _isPermissionGranted() {
|
||||
return isVideoStreamingEnabled &&
|
||||
computeController.computeState == ComputeRunState.generatingStream;
|
||||
}
|
||||
|
||||
void queueFiles({
|
||||
Duration duration = const Duration(seconds: 5),
|
||||
bool isManual = false,
|
||||
}) {
|
||||
Future.delayed(duration, () async {
|
||||
if (_hasQueuedFile) return;
|
||||
|
||||
final isStreamAllowed = isManual ? _allowManualStream() : _allowStream();
|
||||
if (!isStreamAllowed) return;
|
||||
|
||||
await _ensurePreviewIdsInitialized();
|
||||
await _putFilesForPreviewCreation();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -412,6 +412,7 @@ class _ButtonChildWidgetState extends State<ButtonChildWidget> {
|
||||
if (widget.onTap != null) {
|
||||
_debouncer.run(
|
||||
() => Future(() {
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
executionState = ExecutionState.inProgress;
|
||||
});
|
||||
@@ -432,6 +433,7 @@ class _ButtonChildWidgetState extends State<ButtonChildWidget> {
|
||||
: null;
|
||||
_debouncer.cancelDebounceTimer();
|
||||
if (executionState == ExecutionState.successful) {
|
||||
if (!mounted) return;
|
||||
setState(() {});
|
||||
}
|
||||
|
||||
@@ -470,6 +472,7 @@ class _ButtonChildWidgetState extends State<ButtonChildWidget> {
|
||||
}
|
||||
}
|
||||
if (executionState == ExecutionState.error) {
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
executionState = ExecutionState.idle;
|
||||
widget.isInAlert
|
||||
@@ -512,6 +515,7 @@ class _ButtonChildWidgetState extends State<ButtonChildWidget> {
|
||||
}
|
||||
|
||||
void _onTapDown(details) {
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
buttonColor = widget.buttonStyle.pressedButtonColor ??
|
||||
widget.buttonStyle.defaultButtonColor;
|
||||
@@ -527,13 +531,17 @@ class _ButtonChildWidgetState extends State<ButtonChildWidget> {
|
||||
void _onTapUp(details) {
|
||||
Future.delayed(
|
||||
const Duration(milliseconds: 84),
|
||||
() => setState(() {
|
||||
setAllStylesToDefault();
|
||||
}),
|
||||
() {
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
setAllStylesToDefault();
|
||||
});
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
void _onTapCancel() {
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
setAllStylesToDefault();
|
||||
});
|
||||
|
||||
@@ -35,6 +35,8 @@ class MenuItemWidget extends StatefulWidget {
|
||||
final Color? menuItemColor;
|
||||
final bool alignCaptionedTextToLeft;
|
||||
|
||||
final EdgeInsets? padding;
|
||||
|
||||
// singleBorderRadius is applied to the border when it's a standalone menu item.
|
||||
// Widget will apply singleBorderRadius if value of both isTopBorderRadiusRemoved
|
||||
// and isBottomBorderRadiusRemoved is false. Otherwise, multipleBorderRadius will
|
||||
@@ -88,6 +90,7 @@ class MenuItemWidget extends StatefulWidget {
|
||||
this.showOnlyLoadingState = false,
|
||||
this.surfaceExecutionStates = true,
|
||||
this.alwaysShowSuccessState = false,
|
||||
this.padding,
|
||||
super.key,
|
||||
});
|
||||
|
||||
@@ -97,8 +100,9 @@ class MenuItemWidget extends StatefulWidget {
|
||||
|
||||
class _MenuItemWidgetState extends State<MenuItemWidget> {
|
||||
final _debouncer = Debouncer(const Duration(milliseconds: 300));
|
||||
ValueNotifier<ExecutionState> executionStateNotifier =
|
||||
ValueNotifier(ExecutionState.idle);
|
||||
ValueNotifier<ExecutionState> executionStateNotifier = ValueNotifier(
|
||||
ExecutionState.idle,
|
||||
);
|
||||
|
||||
Color? menuItemColor;
|
||||
late double borderRadius;
|
||||
@@ -167,7 +171,7 @@ class _MenuItemWidgetState extends State<MenuItemWidget> {
|
||||
return AnimatedContainer(
|
||||
duration: const Duration(milliseconds: 20),
|
||||
width: double.infinity,
|
||||
padding: const EdgeInsets.only(left: 16, right: 12),
|
||||
padding: widget.padding ?? const EdgeInsets.only(left: 16, right: 12),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.only(
|
||||
topLeft: topBorderRadius,
|
||||
@@ -180,14 +184,13 @@ class _MenuItemWidgetState extends State<MenuItemWidget> {
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
widget.alignCaptionedTextToLeft && widget.leadingIcon == null
|
||||
? const SizedBox.shrink()
|
||||
: LeadingWidget(
|
||||
leadingIconSize: widget.leadingIconSize,
|
||||
leadingIcon: widget.leadingIcon,
|
||||
leadingIconColor: widget.leadingIconColor,
|
||||
leadingIconWidget: widget.leadingIconWidget,
|
||||
),
|
||||
if (!widget.alignCaptionedTextToLeft || widget.leadingIcon != null)
|
||||
LeadingWidget(
|
||||
leadingIconSize: widget.leadingIconSize,
|
||||
leadingIcon: widget.leadingIcon,
|
||||
leadingIconColor: widget.leadingIconColor,
|
||||
leadingIconWidget: widget.leadingIconWidget,
|
||||
),
|
||||
widget.captionedTextWidget,
|
||||
if (widget.expandableController != null)
|
||||
ExpansionTrailingIcon(
|
||||
@@ -217,11 +220,9 @@ class _MenuItemWidgetState extends State<MenuItemWidget> {
|
||||
return;
|
||||
}
|
||||
_debouncer.run(
|
||||
() => Future(
|
||||
() {
|
||||
executionStateNotifier.value = ExecutionState.inProgress;
|
||||
},
|
||||
),
|
||||
() => Future(() {
|
||||
executionStateNotifier.value = ExecutionState.inProgress;
|
||||
}),
|
||||
);
|
||||
await widget.onTap?.call().then(
|
||||
(value) {
|
||||
|
||||
@@ -15,6 +15,7 @@ class TitleBarWidget extends StatelessWidget {
|
||||
final Color? backgroundColor;
|
||||
final bool isSliver;
|
||||
final double? expandedHeight;
|
||||
final double reducedExpandedHeight;
|
||||
|
||||
const TitleBarWidget({
|
||||
this.leading,
|
||||
@@ -29,6 +30,7 @@ class TitleBarWidget extends StatelessWidget {
|
||||
this.backgroundColor,
|
||||
this.isSliver = true,
|
||||
this.expandedHeight,
|
||||
this.reducedExpandedHeight = 0,
|
||||
super.key,
|
||||
});
|
||||
|
||||
@@ -43,8 +45,9 @@ class TitleBarWidget extends StatelessWidget {
|
||||
leadingWidth: 48,
|
||||
automaticallyImplyLeading: false,
|
||||
pinned: true,
|
||||
expandedHeight:
|
||||
expandedHeight ?? (isFlexibleSpaceDisabled ? toolbarHeight : 102),
|
||||
expandedHeight: expandedHeight ??
|
||||
(isFlexibleSpaceDisabled ? toolbarHeight : 102) -
|
||||
reducedExpandedHeight,
|
||||
centerTitle: false,
|
||||
titleSpacing: 4,
|
||||
title: TitleWidget(
|
||||
|
||||
@@ -106,12 +106,14 @@ class _ToggleSwitchWidgetState extends State<ToggleSwitchWidget> {
|
||||
}
|
||||
|
||||
Future<void> _onChanged(bool negationOfToggleValue) async {
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
toggleValue = negationOfToggleValue;
|
||||
//start showing inProgress statu icons if toggle takes more than debounce time
|
||||
_debouncer.run(
|
||||
() => Future(
|
||||
() {
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
executionState = ExecutionState.inProgress;
|
||||
});
|
||||
@@ -129,16 +131,16 @@ class _ToggleSwitchWidgetState extends State<ToggleSwitchWidget> {
|
||||
_debouncer.cancelDebounceTimer();
|
||||
|
||||
final newValue = widget.value.call();
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
if (toggleValue == newValue) {
|
||||
if (executionState == ExecutionState.inProgress) {
|
||||
executionState = ExecutionState.successful;
|
||||
Future.delayed(const Duration(seconds: 2), () {
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
executionState = ExecutionState.idle;
|
||||
});
|
||||
}
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
executionState = ExecutionState.idle;
|
||||
});
|
||||
});
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -2,7 +2,6 @@ import 'package:flutter/material.dart';
|
||||
import "package:photos/core/error-reporting/super_logging.dart";
|
||||
import "package:photos/generated/l10n.dart";
|
||||
import "package:photos/service_locator.dart";
|
||||
import "package:photos/services/video_preview_service.dart";
|
||||
import 'package:photos/theme/ente_theme.dart';
|
||||
import 'package:photos/ui/components/buttons/icon_button_widget.dart';
|
||||
import 'package:photos/ui/components/captioned_text_widget.dart';
|
||||
@@ -12,6 +11,7 @@ import 'package:photos/ui/components/title_bar_widget.dart';
|
||||
import "package:photos/ui/components/toggle_switch_widget.dart";
|
||||
import "package:photos/ui/settings/app_icon_selection_screen.dart";
|
||||
import "package:photos/ui/settings/ml/machine_learning_settings_page.dart";
|
||||
import "package:photos/ui/settings/streaming/video_streaming_settings_page.dart";
|
||||
import 'package:photos/utils/navigation_util.dart';
|
||||
|
||||
class AdvancedSettingsScreen extends StatelessWidget {
|
||||
@@ -113,23 +113,21 @@ class AdvancedSettingsScreen extends StatelessWidget {
|
||||
title: AppLocalizations.of(context).videoStreaming,
|
||||
),
|
||||
menuItemColor: colorScheme.fillFaint,
|
||||
trailingWidget: Icon(
|
||||
Icons.chevron_right_outlined,
|
||||
color: colorScheme.strokeBase,
|
||||
),
|
||||
singleBorderRadius: 8,
|
||||
alignCaptionedTextToLeft: true,
|
||||
trailingWidget: ToggleSwitchWidget(
|
||||
value: () => VideoPreviewService
|
||||
.instance.isVideoStreamingEnabled,
|
||||
onChanged: () async {
|
||||
final isEnabled = VideoPreviewService
|
||||
.instance.isVideoStreamingEnabled;
|
||||
|
||||
await VideoPreviewService.instance
|
||||
.setIsVideoStreamingEnabled(!isEnabled);
|
||||
},
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 24,
|
||||
onTap: () async {
|
||||
// ignore: unawaited_futures
|
||||
routeToPage(
|
||||
context,
|
||||
const VideoStreamingSettingsPage(),
|
||||
);
|
||||
},
|
||||
),
|
||||
const SizedBox(height: 24),
|
||||
MenuItemWidget(
|
||||
captionedTextWidget: CaptionedTextWidget(
|
||||
title: AppLocalizations.of(context).crashReporting,
|
||||
|
||||
@@ -13,7 +13,12 @@ enum AppIcon {
|
||||
iconGreen("Default", "IconGreen", "assets/launcher_icon/icon-green.png"),
|
||||
iconLight("Light", "IconLight", "assets/launcher_icon/icon-light.png"),
|
||||
iconDark("Dark", "IconDark", "assets/launcher_icon/icon-dark.png"),
|
||||
iconOG("OG", "IconOG", "assets/launcher_icon/icon-og.png");
|
||||
iconOG("OG", "IconOG", "assets/launcher_icon/icon-og.png"),
|
||||
iconDuckyHuggingE(
|
||||
"Ducky",
|
||||
"IconDuckyHuggingE",
|
||||
"assets/launcher_icon/icon-ducky-hugging-e.png",
|
||||
);
|
||||
|
||||
final String name;
|
||||
final String id;
|
||||
|
||||
@@ -196,10 +196,9 @@ class _FreeUpSpaceOptionsScreenState extends State<FreeUpSpaceOptionsScreen> {
|
||||
),
|
||||
if (flagService.enableVectorDb)
|
||||
MenuItemWidget(
|
||||
captionedTextWidget:
|
||||
const CaptionedTextWidget(
|
||||
title:
|
||||
"Similar images", // TODO: lau: extract string
|
||||
captionedTextWidget: CaptionedTextWidget(
|
||||
title: AppLocalizations.of(context)
|
||||
.similarImages,
|
||||
),
|
||||
menuItemColor: colorScheme.fillFaint,
|
||||
trailingWidget: Icon(
|
||||
@@ -220,11 +219,11 @@ class _FreeUpSpaceOptionsScreenState extends State<FreeUpSpaceOptionsScreen> {
|
||||
},
|
||||
),
|
||||
if (flagService.enableVectorDb)
|
||||
const Align(
|
||||
Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: MenuSectionDescriptionWidget(
|
||||
content:
|
||||
"Use AI to find images that look similar to each other.", // TODO: lau: extract string
|
||||
content: AppLocalizations.of(context)
|
||||
.useMLToFindSimilarImages,
|
||||
),
|
||||
),
|
||||
if (flagService.enableVectorDb)
|
||||
|
||||
@@ -0,0 +1,314 @@
|
||||
import "dart:async";
|
||||
|
||||
import "package:flutter/gestures.dart";
|
||||
import "package:flutter/material.dart";
|
||||
import "package:photos/core/event_bus.dart";
|
||||
import "package:photos/events/video_preview_state_changed_event.dart";
|
||||
import "package:photos/generated/l10n.dart";
|
||||
import "package:photos/l10n/l10n.dart";
|
||||
import "package:photos/models/preview/preview_item_status.dart";
|
||||
import "package:photos/services/video_preview_service.dart";
|
||||
import "package:photos/theme/ente_theme.dart";
|
||||
import "package:photos/ui/common/loading_widget.dart";
|
||||
import "package:photos/ui/common/web_page.dart";
|
||||
import "package:photos/ui/components/buttons/button_widget.dart";
|
||||
import "package:photos/ui/components/captioned_text_widget.dart";
|
||||
import "package:photos/ui/components/menu_item_widget/menu_item_widget.dart";
|
||||
import "package:photos/ui/components/models/button_type.dart";
|
||||
import "package:photos/ui/components/title_bar_title_widget.dart";
|
||||
import "package:photos/ui/components/title_bar_widget.dart";
|
||||
import "package:photos/ui/components/toggle_switch_widget.dart";
|
||||
|
||||
const helpUrl = "https://help.ente.io/photos/faq/video-streaming";
|
||||
|
||||
class VideoStreamingSettingsPage extends StatefulWidget {
|
||||
const VideoStreamingSettingsPage({super.key});
|
||||
|
||||
@override
|
||||
State<VideoStreamingSettingsPage> createState() =>
|
||||
_VideoStreamingSettingsPageState();
|
||||
}
|
||||
|
||||
class _VideoStreamingSettingsPageState
|
||||
extends State<VideoStreamingSettingsPage> {
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final hasEnabled = VideoPreviewService.instance.isVideoStreamingEnabled;
|
||||
return Scaffold(
|
||||
bottomNavigationBar: !hasEnabled
|
||||
? SafeArea(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16)
|
||||
.copyWith(bottom: 20),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
const SizedBox(height: 12),
|
||||
ButtonWidget(
|
||||
buttonType: ButtonType.primary,
|
||||
labelText: context.l10n.enable,
|
||||
onTap: () async {
|
||||
await toggleVideoStreaming();
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
)
|
||||
: null,
|
||||
appBar: hasEnabled
|
||||
? null
|
||||
: PreferredSize(
|
||||
preferredSize: const Size.fromHeight(154),
|
||||
child: TitleBarWidget(
|
||||
reducedExpandedHeight: 16,
|
||||
flexibleSpaceTitle: TitleBarTitleWidget(
|
||||
title: AppLocalizations.of(context).videoStreaming,
|
||||
),
|
||||
actionIcons: const [],
|
||||
isSliver: false,
|
||||
),
|
||||
),
|
||||
body: hasEnabled
|
||||
? CustomScrollView(
|
||||
primary: false,
|
||||
slivers: <Widget>[
|
||||
TitleBarWidget(
|
||||
reducedExpandedHeight: 16,
|
||||
flexibleSpaceTitle: TitleBarTitleWidget(
|
||||
title: AppLocalizations.of(context).videoStreaming,
|
||||
),
|
||||
actionIcons: const [],
|
||||
),
|
||||
SliverToBoxAdapter(
|
||||
child: Container(
|
||||
padding: const EdgeInsets.only(left: 16, right: 16),
|
||||
child: Column(
|
||||
children: [
|
||||
Text.rich(
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)
|
||||
.videoStreamingDescriptionLine1,
|
||||
),
|
||||
const TextSpan(text: " "),
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)
|
||||
.videoStreamingDescriptionLine2,
|
||||
),
|
||||
const TextSpan(text: " "),
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context).moreDetails,
|
||||
style: TextStyle(
|
||||
color: getEnteColorScheme(context).primary500,
|
||||
),
|
||||
recognizer: TapGestureRecognizer()
|
||||
..onTap = openHelp,
|
||||
),
|
||||
],
|
||||
),
|
||||
style: getEnteTextTheme(context).mini.copyWith(
|
||||
color: getEnteColorScheme(context).textMuted,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
SliverToBoxAdapter(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 10,
|
||||
).copyWith(top: 30),
|
||||
child: _getStreamingSettings(context),
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
: Center(
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
children: [
|
||||
Image.asset(
|
||||
"assets/enable-streaming-static.png",
|
||||
height: 160,
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||
child: Text.rich(
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)
|
||||
.videoStreamingDescriptionLine1,
|
||||
),
|
||||
const TextSpan(text: "\n"),
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context)
|
||||
.videoStreamingDescriptionLine2,
|
||||
),
|
||||
const TextSpan(text: "\n"),
|
||||
TextSpan(
|
||||
text: AppLocalizations.of(context).moreDetails,
|
||||
style: TextStyle(
|
||||
color: getEnteColorScheme(context).primary500,
|
||||
),
|
||||
recognizer: TapGestureRecognizer()
|
||||
..onTap = openHelp,
|
||||
),
|
||||
],
|
||||
),
|
||||
style: getEnteTextTheme(context).smallMuted,
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 140),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> openHelp() async {
|
||||
Navigator.of(context).push(
|
||||
MaterialPageRoute(
|
||||
builder: (BuildContext context) {
|
||||
return WebPage(AppLocalizations.of(context).help, helpUrl);
|
||||
},
|
||||
),
|
||||
).ignore();
|
||||
}
|
||||
|
||||
Future<void> toggleVideoStreaming() async {
|
||||
final isEnabled = VideoPreviewService.instance.isVideoStreamingEnabled;
|
||||
|
||||
await VideoPreviewService.instance.setIsVideoStreamingEnabled(!isEnabled);
|
||||
if (!mounted) return;
|
||||
setState(() {});
|
||||
}
|
||||
|
||||
Widget _getStreamingSettings(BuildContext context) {
|
||||
final hasEnabled = VideoPreviewService.instance.isVideoStreamingEnabled;
|
||||
final colorScheme = getEnteColorScheme(context);
|
||||
|
||||
return Column(
|
||||
children: [
|
||||
MenuItemWidget(
|
||||
captionedTextWidget: CaptionedTextWidget(
|
||||
title: AppLocalizations.of(context).enabled,
|
||||
),
|
||||
trailingWidget: ToggleSwitchWidget(
|
||||
value: () => hasEnabled,
|
||||
onChanged: () async {
|
||||
await toggleVideoStreaming();
|
||||
},
|
||||
),
|
||||
singleBorderRadius: 8,
|
||||
alignCaptionedTextToLeft: true,
|
||||
menuItemColor: colorScheme.fillFaint,
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
const VideoStreamingStatusWidget(),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class VideoStreamingStatusWidget extends StatefulWidget {
|
||||
const VideoStreamingStatusWidget({super.key});
|
||||
|
||||
@override
|
||||
State<VideoStreamingStatusWidget> createState() =>
|
||||
VideoStreamingStatusWidgetState();
|
||||
}
|
||||
|
||||
class VideoStreamingStatusWidgetState
|
||||
extends State<VideoStreamingStatusWidget> {
|
||||
double? _netProcessed;
|
||||
StreamSubscription? _subscription;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
init();
|
||||
_subscription =
|
||||
Bus.instance.on<VideoPreviewStateChangedEvent>().listen((event) {
|
||||
final status = event.status;
|
||||
|
||||
// Handle different states
|
||||
switch (status) {
|
||||
case PreviewItemStatus.uploaded:
|
||||
init();
|
||||
break;
|
||||
default:
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Future<void> init() async {
|
||||
_netProcessed = await VideoPreviewService.instance.getStatus();
|
||||
setState(() {});
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_subscription?.cancel();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final colorScheme = getEnteColorScheme(context);
|
||||
return Column(
|
||||
children: [
|
||||
if (_netProcessed != null)
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
MenuItemWidget(
|
||||
captionedTextWidget: CaptionedTextWidget(
|
||||
title: AppLocalizations.of(context).processed,
|
||||
),
|
||||
trailingWidget: Text(
|
||||
_netProcessed == 0
|
||||
? '0%'
|
||||
: '${(_netProcessed! * 100.0).toStringAsFixed(2)}%',
|
||||
style: Theme.of(context).textTheme.bodySmall,
|
||||
),
|
||||
singleBorderRadius: 8,
|
||||
alignCaptionedTextToLeft: true,
|
||||
isGestureDetectorDisabled: true,
|
||||
key: ValueKey("processed_items_" + _netProcessed.toString()),
|
||||
menuItemColor: colorScheme.fillFaint,
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
||||
child: Text(
|
||||
AppLocalizations.of(context).videoStreamingNote,
|
||||
style: getEnteTextTheme(context).mini.copyWith(
|
||||
color: getEnteColorScheme(context).textMuted,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
else
|
||||
const EnteLoadingWidget(),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -250,7 +250,7 @@ class _DeduplicatePageState extends State<DeduplicatePage> {
|
||||
SizedBox(
|
||||
width: double.infinity,
|
||||
child: ButtonWidget(
|
||||
labelText: "Unselect all", // TODO: lau: extract string
|
||||
labelText: AppLocalizations.of(context).unselectAll,
|
||||
buttonType: ButtonType.secondary,
|
||||
onTap: () async {
|
||||
setState(() {
|
||||
|
||||
@@ -6,6 +6,7 @@ import "package:flutter_svg/flutter_svg.dart";
|
||||
import "package:local_auth/local_auth.dart";
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:media_extension/media_extension.dart';
|
||||
import "package:photos/core/configuration.dart";
|
||||
import "package:photos/core/event_bus.dart";
|
||||
import "package:photos/events/guest_view_event.dart";
|
||||
import "package:photos/generated/l10n.dart";
|
||||
@@ -23,6 +24,7 @@ import "package:photos/services/local_authentication_service.dart";
|
||||
import "package:photos/services/video_preview_service.dart";
|
||||
import "package:photos/theme/ente_theme.dart";
|
||||
import 'package:photos/ui/collections/collection_action_sheet.dart';
|
||||
import "package:photos/ui/common/popup_item.dart";
|
||||
import 'package:photos/ui/notification/toast.dart';
|
||||
import "package:photos/ui/viewer/file_details/favorite_widget.dart";
|
||||
import "package:photos/ui/viewer/file_details/upload_icon_widget.dart";
|
||||
@@ -193,22 +195,13 @@ class FileAppBarState extends State<FileAppBar> {
|
||||
final List<PopupMenuItem> items = [];
|
||||
if (widget.file.isRemoteFile) {
|
||||
items.add(
|
||||
PopupMenuItem(
|
||||
EntePopupMenuItem(
|
||||
AppLocalizations.of(context).download,
|
||||
value: 1,
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(
|
||||
Platform.isAndroid
|
||||
? Icons.download
|
||||
: Icons.cloud_download_outlined,
|
||||
color: Theme.of(context).iconTheme.color,
|
||||
),
|
||||
const Padding(
|
||||
padding: EdgeInsets.all(8),
|
||||
),
|
||||
Text(AppLocalizations.of(context).download),
|
||||
],
|
||||
),
|
||||
icon: Platform.isAndroid
|
||||
? Icons.download
|
||||
: Icons.cloud_download_outlined,
|
||||
iconColor: Theme.of(context).iconTheme.color,
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -217,24 +210,13 @@ class FileAppBarState extends State<FileAppBar> {
|
||||
final bool isArchived =
|
||||
widget.file.magicMetadata.visibility == archiveVisibility;
|
||||
items.add(
|
||||
PopupMenuItem(
|
||||
EntePopupMenuItem(
|
||||
isArchived
|
||||
? AppLocalizations.of(context).unarchive
|
||||
: AppLocalizations.of(context).archive,
|
||||
value: 2,
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(
|
||||
isArchived ? Icons.unarchive : Icons.archive_outlined,
|
||||
color: Theme.of(context).iconTheme.color,
|
||||
),
|
||||
const Padding(
|
||||
padding: EdgeInsets.all(8),
|
||||
),
|
||||
Text(
|
||||
isArchived
|
||||
? AppLocalizations.of(context).unarchive
|
||||
: AppLocalizations.of(context).archive,
|
||||
),
|
||||
],
|
||||
),
|
||||
icon: isArchived ? Icons.unarchive : Icons.archive_outlined,
|
||||
iconColor: Theme.of(context).iconTheme.color,
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -242,118 +224,100 @@ class FileAppBarState extends State<FileAppBar> {
|
||||
widget.file.fileType == FileType.livePhoto) &&
|
||||
Platform.isAndroid) {
|
||||
items.add(
|
||||
PopupMenuItem(
|
||||
EntePopupMenuItem(
|
||||
AppLocalizations.of(context).setAs,
|
||||
value: 3,
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(
|
||||
Icons.wallpaper_outlined,
|
||||
color: Theme.of(context).iconTheme.color,
|
||||
),
|
||||
const Padding(
|
||||
padding: EdgeInsets.all(8),
|
||||
),
|
||||
Text(AppLocalizations.of(context).setAs),
|
||||
],
|
||||
),
|
||||
icon: Icons.wallpaper_outlined,
|
||||
iconColor: Theme.of(context).iconTheme.color,
|
||||
),
|
||||
);
|
||||
}
|
||||
if (isOwnedByUser && widget.file.isUploaded) {
|
||||
if (!isFileHidden) {
|
||||
items.add(
|
||||
PopupMenuItem(
|
||||
EntePopupMenuItem(
|
||||
AppLocalizations.of(context).hide,
|
||||
value: 4,
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(
|
||||
Icons.visibility_off,
|
||||
color: Theme.of(context).iconTheme.color,
|
||||
),
|
||||
const Padding(
|
||||
padding: EdgeInsets.all(8),
|
||||
),
|
||||
Text(AppLocalizations.of(context).hide),
|
||||
],
|
||||
),
|
||||
icon: Icons.visibility_off,
|
||||
iconColor: Theme.of(context).iconTheme.color,
|
||||
),
|
||||
);
|
||||
} else {
|
||||
items.add(
|
||||
PopupMenuItem(
|
||||
EntePopupMenuItem(
|
||||
AppLocalizations.of(context).unhide,
|
||||
value: 5,
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(
|
||||
Icons.visibility,
|
||||
color: Theme.of(context).iconTheme.color,
|
||||
),
|
||||
const Padding(
|
||||
padding: EdgeInsets.all(8),
|
||||
),
|
||||
Text(AppLocalizations.of(context).unhide),
|
||||
],
|
||||
),
|
||||
icon: Icons.visibility,
|
||||
iconColor: Theme.of(context).iconTheme.color,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
items.add(
|
||||
PopupMenuItem(
|
||||
EntePopupMenuItem(
|
||||
AppLocalizations.of(context).guestView,
|
||||
value: 6,
|
||||
child: Row(
|
||||
children: [
|
||||
SvgPicture.asset(
|
||||
"assets/icons/guest_view_icon.svg",
|
||||
colorFilter: ColorFilter.mode(
|
||||
getEnteColorScheme(context).textBase,
|
||||
BlendMode.srcIn,
|
||||
),
|
||||
),
|
||||
const Padding(
|
||||
padding: EdgeInsets.all(8),
|
||||
),
|
||||
Text(AppLocalizations.of(context).guestView),
|
||||
],
|
||||
iconWidget: SvgPicture.asset(
|
||||
"assets/icons/guest_view_icon.svg",
|
||||
colorFilter: ColorFilter.mode(
|
||||
getEnteColorScheme(context).textBase,
|
||||
BlendMode.srcIn,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
if (widget.file.isVideo) {
|
||||
// Video streaming options
|
||||
if (_shouldShowCreateStreamOption()) {
|
||||
items.add(
|
||||
EntePopupMenuItem(
|
||||
AppLocalizations.of(context).createStream,
|
||||
value: 8,
|
||||
icon: Icons.video_settings_outlined,
|
||||
iconColor: Theme.of(context).iconTheme.color,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
if (_shouldShowRecreateStreamOption()) {
|
||||
items.add(
|
||||
EntePopupMenuItem(
|
||||
AppLocalizations.of(context).recreateStream,
|
||||
value: 9,
|
||||
icon: Icons.refresh_outlined,
|
||||
iconColor: Theme.of(context).iconTheme.color,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
items.add(
|
||||
PopupMenuItem(
|
||||
EntePopupMenuItem(
|
||||
shouldLoopVideo
|
||||
? AppLocalizations.of(context).loopVideoOn
|
||||
: AppLocalizations.of(context).loopVideoOff,
|
||||
value: 7,
|
||||
child: Row(
|
||||
iconWidget: Stack(
|
||||
alignment: Alignment.center,
|
||||
children: [
|
||||
Stack(
|
||||
alignment: Alignment.center,
|
||||
children: [
|
||||
Icon(
|
||||
Icons.loop_rounded,
|
||||
color: Theme.of(context).iconTheme.color,
|
||||
),
|
||||
shouldLoopVideo
|
||||
? const SizedBox.shrink()
|
||||
: Transform.rotate(
|
||||
angle: 3.14 / 4,
|
||||
child: Container(
|
||||
width: 2,
|
||||
height: 24,
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).iconTheme.color,
|
||||
borderRadius: BorderRadius.circular(1),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
const Padding(
|
||||
padding: EdgeInsets.all(8),
|
||||
Icon(
|
||||
Icons.loop_rounded,
|
||||
color: Theme.of(context).iconTheme.color,
|
||||
),
|
||||
shouldLoopVideo
|
||||
? Text(AppLocalizations.of(context).loopVideoOn)
|
||||
: Text(AppLocalizations.of(context).loopVideoOff),
|
||||
? const SizedBox.shrink()
|
||||
: Transform.rotate(
|
||||
angle: 3.14 / 4,
|
||||
child: Container(
|
||||
width: 2,
|
||||
height: 24,
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).iconTheme.color,
|
||||
borderRadius: BorderRadius.circular(1),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -392,6 +356,10 @@ class FileAppBarState extends State<FileAppBar> {
|
||||
}
|
||||
} else if (value == 7) {
|
||||
_onToggleLoopVideo();
|
||||
} else if (value == 8) {
|
||||
await _handleVideoStream('create');
|
||||
} else if (value == 9) {
|
||||
await _handleVideoStream('recreate');
|
||||
}
|
||||
},
|
||||
),
|
||||
@@ -511,4 +479,53 @@ class FileAppBarState extends State<FileAppBar> {
|
||||
await localSettings.setOnGuestView(false);
|
||||
}
|
||||
}
|
||||
|
||||
bool _shouldShowCreateStreamOption() {
|
||||
// Show "Create Stream" option for uploaded video files without streams
|
||||
return _ensureBasicRequirements() &&
|
||||
!fileDataService.previewIds.containsKey(widget.file.uploadedFileID!);
|
||||
}
|
||||
|
||||
bool _shouldShowRecreateStreamOption() {
|
||||
// Show "Recreate Stream" option for uploaded video files with existing streams
|
||||
return _ensureBasicRequirements() &&
|
||||
fileDataService.previewIds.containsKey(widget.file.uploadedFileID!);
|
||||
}
|
||||
|
||||
bool _ensureBasicRequirements() {
|
||||
// Skip if sv=1 (server indicates streaming not needed)
|
||||
final userId = Configuration.instance.getUserID();
|
||||
return widget.file.fileType == FileType.video &&
|
||||
widget.file.isUploaded &&
|
||||
widget.file.fileSize != null &&
|
||||
(widget.file.pubMagicMetadata?.sv ?? 0) != 1 &&
|
||||
widget.file.ownerID == userId;
|
||||
}
|
||||
|
||||
Future<void> _handleVideoStream(String streamType) async {
|
||||
try {
|
||||
final bool wasAdded = await VideoPreviewService.instance
|
||||
.addToManualQueue(widget.file, streamType);
|
||||
|
||||
if (!wasAdded) {
|
||||
// File was already in queue
|
||||
showToast(
|
||||
context,
|
||||
AppLocalizations.of(context).videoAlreadyInQueue,
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
showToast(context, AppLocalizations.of(context).addedToQueue);
|
||||
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
_reloadActions = true;
|
||||
});
|
||||
}
|
||||
} catch (e, s) {
|
||||
_logger.severe("Failed to $streamType video stream", e, s);
|
||||
await showGenericErrorDialog(context: context, error: e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -245,22 +245,22 @@ class _ThumbnailWidgetState extends State<ThumbnailWidget> {
|
||||
final cachedSmallThumbnail =
|
||||
ThumbnailInMemoryLruCache.get(widget.file, thumbnailSmallSize);
|
||||
if (cachedSmallThumbnail != null) {
|
||||
_imageProvider = Image.memory(
|
||||
final imageProvider = Image.memory(
|
||||
cachedSmallThumbnail,
|
||||
cacheHeight: optimizedImageHeight,
|
||||
cacheWidth: optimizedImageWidth,
|
||||
).image;
|
||||
_hasLoadedThumbnail = true;
|
||||
_cacheAndRender(imageProvider);
|
||||
return;
|
||||
}
|
||||
if (widget.diskLoadDeferDuration != null) {
|
||||
Future.delayed(widget.diskLoadDeferDuration!, () {
|
||||
if (mounted) {
|
||||
_getThumbnailFromDisk();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
if (widget.diskLoadDeferDuration != null) {
|
||||
Future.delayed(widget.diskLoadDeferDuration!, () {
|
||||
if (mounted) {
|
||||
_getThumbnailFromDisk();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
_getThumbnailFromDisk();
|
||||
}
|
||||
_getThumbnailFromDisk();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -383,12 +383,12 @@ class _ThumbnailWidgetState extends State<ThumbnailWidget> {
|
||||
_isLoadingRemoteThumbnail = true;
|
||||
final cachedThumbnail = ThumbnailInMemoryLruCache.get(widget.file);
|
||||
if (cachedThumbnail != null) {
|
||||
_imageProvider = Image.memory(
|
||||
final imageProvider = Image.memory(
|
||||
cachedThumbnail,
|
||||
cacheHeight: optimizedImageHeight,
|
||||
cacheWidth: optimizedImageWidth,
|
||||
).image;
|
||||
_hasLoadedThumbnail = true;
|
||||
_cacheAndRender(imageProvider);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -432,19 +432,14 @@ class _ThumbnailWidgetState extends State<ThumbnailWidget> {
|
||||
}
|
||||
|
||||
void _cacheAndRender(ImageProvider<Object> imageProvider) {
|
||||
if (imageCache.currentSizeBytes > 256 * 1024 * 1024) {
|
||||
_logger.info("Clearing image cache");
|
||||
imageCache.clear();
|
||||
imageCache.clearLiveImages();
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
_imageProvider = imageProvider;
|
||||
_hasLoadedThumbnail = true;
|
||||
});
|
||||
}
|
||||
precacheImage(imageProvider, context).then((value) {
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
_imageProvider = imageProvider;
|
||||
_hasLoadedThumbnail = true;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
precacheImage(imageProvider, context);
|
||||
}
|
||||
|
||||
void _reset() {
|
||||
|
||||
@@ -1,8 +1,15 @@
|
||||
import "dart:async";
|
||||
|
||||
import "package:flutter/material.dart";
|
||||
import "package:photos/core/event_bus.dart";
|
||||
import "package:photos/events/video_preview_state_changed_event.dart";
|
||||
import "package:photos/generated/l10n.dart";
|
||||
import "package:photos/models/file/file.dart";
|
||||
import "package:photos/models/preview/preview_item_status.dart";
|
||||
import "package:photos/service_locator.dart";
|
||||
import "package:photos/services/video_preview_service.dart";
|
||||
import "package:photos/theme/colors.dart";
|
||||
import "package:photos/theme/ente_theme.dart" show getEnteColorScheme;
|
||||
|
||||
class VideoStreamChangeWidget extends StatefulWidget {
|
||||
const VideoStreamChangeWidget({
|
||||
@@ -24,13 +31,35 @@ class VideoStreamChangeWidget extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _VideoStreamChangeWidgetState extends State<VideoStreamChangeWidget> {
|
||||
StreamSubscription<VideoPreviewStateChangedEvent>? _subscription;
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
|
||||
_subscription =
|
||||
Bus.instance.on<VideoPreviewStateChangedEvent>().listen((event) {
|
||||
final fileId = event.fileId;
|
||||
if (widget.file.uploadedFileID != fileId) {
|
||||
return; // Not for this file
|
||||
}
|
||||
|
||||
final status = event.status;
|
||||
|
||||
// Handle different states
|
||||
switch (status) {
|
||||
case PreviewItemStatus.inQueue:
|
||||
case PreviewItemStatus.uploaded:
|
||||
case PreviewItemStatus.failed:
|
||||
setState(() {});
|
||||
break;
|
||||
default:
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_subscription?.cancel();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@@ -38,9 +67,19 @@ class _VideoStreamChangeWidgetState extends State<VideoStreamChangeWidget> {
|
||||
Widget build(BuildContext context) {
|
||||
final bool isPreviewAvailable = widget.file.uploadedFileID != null &&
|
||||
(fileDataService.previewIds.containsKey(widget.file.uploadedFileID));
|
||||
if (!isPreviewAvailable) {
|
||||
|
||||
// Check if this file is currently being processed for streaming
|
||||
final bool isCurrentlyProcessing = VideoPreviewService.instance
|
||||
.isCurrentlyProcessing(widget.file.uploadedFileID);
|
||||
|
||||
final colorScheme = getEnteColorScheme(context);
|
||||
|
||||
if (!isPreviewAvailable && !isCurrentlyProcessing) {
|
||||
return const SizedBox();
|
||||
}
|
||||
|
||||
// If currently processing, show "Creating Stream" with spinner (not clickable)
|
||||
|
||||
return Align(
|
||||
alignment: Alignment.centerRight,
|
||||
child: AnimatedOpacity(
|
||||
@@ -54,42 +93,89 @@ class _VideoStreamChangeWidgetState extends State<VideoStreamChangeWidget> {
|
||||
right: 10,
|
||||
bottom: 4,
|
||||
),
|
||||
child: GestureDetector(
|
||||
onTap: widget.onStreamChange,
|
||||
child: Container(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 8,
|
||||
vertical: 4,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.green,
|
||||
borderRadius: const BorderRadius.all(
|
||||
Radius.circular(200),
|
||||
),
|
||||
border: Border.all(
|
||||
color: strokeFaintDark,
|
||||
width: 1,
|
||||
),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
const Icon(Icons.play_arrow, size: 16),
|
||||
const SizedBox(width: 2),
|
||||
Text(
|
||||
widget.isPreviewPlayer
|
||||
? AppLocalizations.of(context).playOriginal
|
||||
: AppLocalizations.of(context).playStream,
|
||||
style: const TextStyle(
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w600,
|
||||
child: isCurrentlyProcessing
|
||||
? Container(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 8,
|
||||
vertical: 4,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: colorScheme.backdropBase,
|
||||
borderRadius: const BorderRadius.all(
|
||||
Radius.circular(200),
|
||||
),
|
||||
border: Border.all(
|
||||
color: strokeFaintDark,
|
||||
width: 1,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
SizedBox(
|
||||
width: 12,
|
||||
height: 12,
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 2,
|
||||
valueColor: AlwaysStoppedAnimation<Color>(
|
||||
colorScheme.fillBase,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Text(
|
||||
AppLocalizations.of(context).creatingStream,
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: colorScheme.fillBase,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
)
|
||||
: GestureDetector(
|
||||
onTap: widget.onStreamChange,
|
||||
child: Container(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 8,
|
||||
vertical: 4,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.green,
|
||||
borderRadius: const BorderRadius.all(
|
||||
Radius.circular(200),
|
||||
),
|
||||
border: Border.all(
|
||||
color: strokeFaintDark,
|
||||
width: 1,
|
||||
),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
const Icon(
|
||||
Icons.play_arrow,
|
||||
size: 16,
|
||||
color: Colors.white,
|
||||
),
|
||||
const SizedBox(width: 2),
|
||||
Text(
|
||||
widget.isPreviewPlayer
|
||||
? AppLocalizations.of(context).playOriginal
|
||||
: AppLocalizations.of(context).playStream,
|
||||
style: const TextStyle(
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -6,7 +6,6 @@ import "package:permission_handler/permission_handler.dart";
|
||||
import "package:photos/db/upload_locks_db.dart";
|
||||
import "package:photos/extensions/stop_watch.dart";
|
||||
import "package:photos/main.dart";
|
||||
import "package:photos/service_locator.dart";
|
||||
import "package:photos/utils/file_uploader.dart";
|
||||
import "package:shared_preferences/shared_preferences.dart";
|
||||
import "package:workmanager/workmanager.dart" as workmanager;
|
||||
@@ -81,7 +80,7 @@ class BgTaskUtils {
|
||||
try {
|
||||
await workmanager.Workmanager().initialize(
|
||||
callbackDispatcher,
|
||||
isInDebugMode: Platform.isIOS && flagService.internalUser,
|
||||
isInDebugMode: false,
|
||||
);
|
||||
await workmanager.Workmanager().registerPeriodicTask(
|
||||
backgroundTaskIdentifier,
|
||||
|
||||
@@ -71,7 +71,7 @@ Future<FFProbeProps?> getVideoPropsAsync(File originalFile) async {
|
||||
final stopwatch = Stopwatch()..start();
|
||||
|
||||
final mediaInfo =
|
||||
await IsolatedFfmpegService.getVideoInfo(originalFile.path);
|
||||
await IsolatedFfmpegService.instance.getVideoInfo(originalFile.path);
|
||||
if (mediaInfo.isEmpty) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -9,14 +9,13 @@ import "package:path_provider/path_provider.dart"
|
||||
show getExternalStorageDirectory;
|
||||
import 'package:photos/models/memories/clip_memory.dart';
|
||||
import 'package:photos/models/memories/people_memory.dart';
|
||||
import 'package:photos/models/ml/discover/prompt.dart';
|
||||
import "package:photos/services/machine_learning/ml_computer.dart"
|
||||
show MLComputer;
|
||||
|
||||
final _logger = Logger('TextEmbeddingsUtil');
|
||||
|
||||
/// Loads pre-computed memories text embeddings from assets
|
||||
Future<MemoriesEmbeddings?> loadMemoriesEmbeddings() async {
|
||||
/// Loads pre-computed text embeddings from assets
|
||||
Future<TextEmbeddings?> loadTextEmbeddingsFromAssets() async {
|
||||
try {
|
||||
_logger.info('Loading text embeddings from assets');
|
||||
final jsonString =
|
||||
@@ -82,7 +81,7 @@ Future<MemoriesEmbeddings?> loadMemoriesEmbeddings() async {
|
||||
}
|
||||
|
||||
_logger.info('Text embeddings loaded successfully from JSON assets');
|
||||
return MemoriesEmbeddings(
|
||||
return TextEmbeddings(
|
||||
clipPositiveVector: clipPositiveVector,
|
||||
peopleActivityVectors: peopleActivityVectors,
|
||||
clipMemoryTypeVectors: clipMemoryTypeVectors,
|
||||
@@ -93,94 +92,18 @@ Future<MemoriesEmbeddings?> loadMemoriesEmbeddings() async {
|
||||
}
|
||||
}
|
||||
|
||||
/// Container for all memories text embeddings
|
||||
class MemoriesEmbeddings {
|
||||
class TextEmbeddings {
|
||||
final Vector clipPositiveVector;
|
||||
final Map<PeopleActivity, Vector> peopleActivityVectors;
|
||||
final Map<ClipMemoryType, Vector> clipMemoryTypeVectors;
|
||||
|
||||
const MemoriesEmbeddings({
|
||||
const TextEmbeddings({
|
||||
required this.clipPositiveVector,
|
||||
required this.peopleActivityVectors,
|
||||
required this.clipMemoryTypeVectors,
|
||||
});
|
||||
}
|
||||
|
||||
/// Loads pre-computed discover text embeddings from assets
|
||||
Future<DiscoverEmbeddings?> loadDiscoverEmbeddings() async {
|
||||
try {
|
||||
_logger.info('Loading discover embeddings from assets');
|
||||
final jsonString =
|
||||
await rootBundle.loadString('assets/ml/discover_embeddings.json');
|
||||
final data = json.decode(jsonString) as Map<String, dynamic>;
|
||||
|
||||
final promptsList = data['prompts'] as List;
|
||||
final Map<String, Vector> queryToVector = {};
|
||||
final Map<String, PromptData> queryToPromptData = {};
|
||||
|
||||
// Parse all discover embeddings
|
||||
for (final promptJson in promptsList) {
|
||||
final query = promptJson['query'] as String;
|
||||
final vector = (promptJson['vector'] as List).cast<double>();
|
||||
if (vector.isNotEmpty) {
|
||||
queryToVector[query] = Vector.fromList(vector);
|
||||
queryToPromptData[query] = PromptData(
|
||||
title: promptJson['title'] as String,
|
||||
minScore: (promptJson['minScore'] as num).toDouble(),
|
||||
minSize: (promptJson['minSize'] as num).toDouble(),
|
||||
showVideo: promptJson['showVideo'] as bool?,
|
||||
recentFirst: promptJson['recentFirst'] as bool?,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Check if we have all embeddings
|
||||
if (queryToVector.isEmpty) {
|
||||
_logger.warning('No discover embeddings found');
|
||||
return null;
|
||||
}
|
||||
|
||||
_logger.info(
|
||||
'Discover embeddings loaded successfully with ${queryToVector.length} queries',
|
||||
);
|
||||
return DiscoverEmbeddings(
|
||||
queryToVector: queryToVector,
|
||||
queryToPromptData: queryToPromptData,
|
||||
);
|
||||
} catch (e, stackTrace) {
|
||||
_logger.severe('Failed to load discover embeddings', e, stackTrace);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// Container for discover/magic embeddings
|
||||
class DiscoverEmbeddings {
|
||||
final Map<String, Vector> queryToVector;
|
||||
final Map<String, PromptData> queryToPromptData;
|
||||
|
||||
const DiscoverEmbeddings({
|
||||
required this.queryToVector,
|
||||
required this.queryToPromptData,
|
||||
});
|
||||
}
|
||||
|
||||
/// Container for prompt metadata
|
||||
class PromptData {
|
||||
final String title;
|
||||
final double minScore;
|
||||
final double minSize;
|
||||
final bool? showVideo;
|
||||
final bool? recentFirst;
|
||||
|
||||
const PromptData({
|
||||
required this.title,
|
||||
required this.minScore,
|
||||
required this.minSize,
|
||||
this.showVideo,
|
||||
this.recentFirst,
|
||||
});
|
||||
}
|
||||
|
||||
/// Helper function to generate text embeddings and save them to a JSON file
|
||||
/// Run this once to generate the embeddings, then copy the output
|
||||
/// to assets/ml/text_embeddings.json
|
||||
@@ -247,161 +170,3 @@ Future<void> generateAndSaveTextEmbeddings() async {
|
||||
'_generateAndSaveTextEmbeddings: Text embeddings generation complete! Copy the JSON output above to assets/ml/text_embeddings.json',
|
||||
);
|
||||
}
|
||||
|
||||
/// Helper function to generate discover text embeddings and save them to a JSON file
|
||||
/// Run this once to generate the embeddings, then copy the output
|
||||
/// to assets/ml/discover_embeddings.json
|
||||
Future<void> generateAndSaveDiscoverEmbeddings() async {
|
||||
// Hardcoded prompts from v2.json
|
||||
final magicPromptsData = [
|
||||
Prompt(
|
||||
query: "identity documents and cards",
|
||||
title: "Identity",
|
||||
minScore: 0.20,
|
||||
minSize: 0.0,
|
||||
showVideo: false,
|
||||
),
|
||||
Prompt(
|
||||
query: "screenshots",
|
||||
title: "Screenshots",
|
||||
minScore: 0.18,
|
||||
minSize: 0.0,
|
||||
recentFirst: true,
|
||||
showVideo: false,
|
||||
),
|
||||
Prompt(
|
||||
query: "receipts, bills and invoices",
|
||||
title: "Receipts",
|
||||
minScore: 0.20,
|
||||
minSize: 0.0,
|
||||
recentFirst: true,
|
||||
),
|
||||
Prompt(
|
||||
query: "screenshots of digital notes, photos of notebook and whiteboards",
|
||||
title: "Notes",
|
||||
minScore: 0.20,
|
||||
minSize: 0.0,
|
||||
recentFirst: true,
|
||||
),
|
||||
Prompt(
|
||||
query: "memes",
|
||||
title: "Memes",
|
||||
minScore: 0.18,
|
||||
minSize: 0.0,
|
||||
recentFirst: true,
|
||||
),
|
||||
Prompt(
|
||||
query: "business card",
|
||||
title: "Visiting Cards",
|
||||
minScore: 0.20,
|
||||
minSize: 0.0,
|
||||
recentFirst: true,
|
||||
showVideo: false,
|
||||
),
|
||||
Prompt(
|
||||
query: "photo of toddler",
|
||||
title: "Babies",
|
||||
minScore: 0.20,
|
||||
minSize: 0.0,
|
||||
recentFirst: true,
|
||||
),
|
||||
Prompt(
|
||||
query: "photos of pets",
|
||||
title: "Pets",
|
||||
minScore: 0.20,
|
||||
minSize: 0.0,
|
||||
recentFirst: true,
|
||||
),
|
||||
Prompt(
|
||||
query: "selfie",
|
||||
title: "Selfies",
|
||||
minScore: 0.18,
|
||||
minSize: 0.0,
|
||||
recentFirst: true,
|
||||
),
|
||||
Prompt(
|
||||
query: "high resolution hd wallpaper",
|
||||
title: "Wallpapers",
|
||||
minScore: 0.18,
|
||||
minSize: 0.0,
|
||||
showVideo: false,
|
||||
),
|
||||
Prompt(
|
||||
query: "photo of food",
|
||||
title: "Food",
|
||||
minScore: 0.20,
|
||||
minSize: 0.0,
|
||||
recentFirst: true,
|
||||
),
|
||||
Prompt(
|
||||
query: "celebration with friends",
|
||||
title: "Celebrations",
|
||||
minScore: 0.20,
|
||||
minSize: 0.0,
|
||||
recentFirst: true,
|
||||
),
|
||||
Prompt(
|
||||
query: "photo of setting sun",
|
||||
title: "Sunset",
|
||||
minScore: 0.20,
|
||||
minSize: 0.0,
|
||||
),
|
||||
Prompt(
|
||||
query: "photo of mountains or hills",
|
||||
title: "Hills",
|
||||
minScore: 0.20,
|
||||
minSize: 0.0,
|
||||
),
|
||||
Prompt(
|
||||
query: "outdoor photo of trees, leaves, flowers",
|
||||
title: "Greenery",
|
||||
minScore: 0.20,
|
||||
minSize: 0.0,
|
||||
),
|
||||
];
|
||||
|
||||
final Map<String, dynamic> embeddingsData = {
|
||||
'version': '1.0.0',
|
||||
'prompts': [],
|
||||
};
|
||||
|
||||
final prompts = <Map<String, dynamic>>[];
|
||||
|
||||
for (final prompt in magicPromptsData) {
|
||||
_logger.info('Generating embedding for discover prompt: ${prompt.title}');
|
||||
final vector = await MLComputer.instance.runClipText(prompt.query);
|
||||
|
||||
final promptData = {
|
||||
'query': prompt.query,
|
||||
'title': prompt.title,
|
||||
'minScore': prompt.minScore,
|
||||
'minSize': prompt.minSize,
|
||||
'vector': vector,
|
||||
};
|
||||
|
||||
// Add optional fields
|
||||
promptData['showVideo'] = prompt.showVideo;
|
||||
promptData['recentFirst'] = prompt.recentFirst;
|
||||
|
||||
prompts.add(promptData);
|
||||
}
|
||||
|
||||
embeddingsData['prompts'] = prompts;
|
||||
|
||||
// Convert to JSON and log it
|
||||
final jsonString = const JsonEncoder.withIndent(' ').convert(embeddingsData);
|
||||
dev.log(
|
||||
'_generateAndSaveDiscoverEmbeddings: Generated discover embeddings JSON',
|
||||
);
|
||||
|
||||
final tempDir = await getExternalStorageDirectory();
|
||||
final file = File('${tempDir!.path}/discover_embeddings.json');
|
||||
await file.writeAsString(jsonString);
|
||||
dev.log(
|
||||
'_generateAndSaveDiscoverEmbeddings: Saved discover embeddings to ${file.path}',
|
||||
);
|
||||
|
||||
dev.log(
|
||||
'_generateAndSaveDiscoverEmbeddings: Discover embeddings generation complete! Copy the JSON output above to assets/ml/discover_embeddings.json',
|
||||
);
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ class FlagService {
|
||||
|
||||
bool get enableMobMultiPart => flags.enableMobMultiPart || internalUser;
|
||||
|
||||
bool get enableVectorDb => flags.internalUser;
|
||||
bool get enableVectorDb => hasGrantedMLConsent;
|
||||
|
||||
String get castUrl => flags.castUrl;
|
||||
|
||||
|
||||
@@ -29,10 +29,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: analyzer
|
||||
sha256: "01949bf52ad33f0e0f74f881fbaac4f348c556531951d92c8d16f1262aa19ff8"
|
||||
sha256: "974859dc0ff5f37bc4313244b3218c791810d03ab3470a579580279ba971a48d"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "7.5.4"
|
||||
version: "7.7.1"
|
||||
android_intent_plus:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
@@ -166,10 +166,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: build
|
||||
sha256: "51dc711996cbf609b90cbe5b335bbce83143875a9d58e4b5c6d3c4f684d3dda7"
|
||||
sha256: "7d95cbbb1526ab5ae977df9b4cc660963b9b27f6d1075c0b34653868911385e4"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.5.4"
|
||||
version: "3.0.0"
|
||||
build_cli_annotations:
|
||||
dependency: transitive
|
||||
description:
|
||||
@@ -198,26 +198,26 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: build_resolvers
|
||||
sha256: ee4257b3f20c0c90e72ed2b57ad637f694ccba48839a821e87db762548c22a62
|
||||
sha256: "38c9c339333a09b090a638849a4c56e70a404c6bdd3b511493addfbc113b60c2"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.5.4"
|
||||
version: "3.0.0"
|
||||
build_runner:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
name: build_runner
|
||||
sha256: "382a4d649addbfb7ba71a3631df0ec6a45d5ab9b098638144faf27f02778eb53"
|
||||
sha256: b971d4a1c789eba7be3e6fe6ce5e5b50fd3719e3cb485b3fad6d04358304351d
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.5.4"
|
||||
version: "2.6.0"
|
||||
build_runner_core:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: build_runner_core
|
||||
sha256: "85fbbb1036d576d966332a3f5ce83f2ce66a40bea1a94ad2d5fc29a19a0d3792"
|
||||
sha256: c04e612ca801cd0928ccdb891c263a2b1391cb27940a5ea5afcf9ba894de5d62
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "9.1.2"
|
||||
version: "9.2.0"
|
||||
built_collection:
|
||||
dependency: transitive
|
||||
description:
|
||||
@@ -1170,10 +1170,10 @@ packages:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
name: freezed
|
||||
sha256: "2d399f823b8849663744d2a9ddcce01c49268fb4170d0442a655bf6a2f47be22"
|
||||
sha256: da32f8ba8cfcd4ec71d9decc8cbf28bd2c31b5283d9887eb51eb4a0659d8110c
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.1.0"
|
||||
version: "3.2.0"
|
||||
freezed_annotation:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
@@ -1396,10 +1396,10 @@ packages:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
name: json_serializable
|
||||
sha256: c50ef5fc083d5b5e12eef489503ba3bf5ccc899e487d691584699b4bdefeea8c
|
||||
sha256: ce2cf974ccdee13be2a510832d7fba0b94b364e0b0395dee42abaa51b855be27
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "6.9.5"
|
||||
version: "6.10.0"
|
||||
latlong2:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
@@ -1669,6 +1669,14 @@ packages:
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "13.12.6"
|
||||
mockito:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
name: mockito
|
||||
sha256: "2314cbe9165bcd16106513df9cf3c3224713087f09723b128928dc11a4379f99"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "5.5.0"
|
||||
modal_bottom_sheet:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
@@ -2157,6 +2165,22 @@ packages:
|
||||
url: "https://github.com/KasemJaffer/receive_sharing_intent.git"
|
||||
source: git
|
||||
version: "1.8.1"
|
||||
rive:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: rive
|
||||
sha256: "2551a44fa766a7ed3f52aa2b94feda6d18d00edc25dee5f66e72e9b365bb6d6c"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.13.20"
|
||||
rive_common:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: rive_common
|
||||
sha256: "2ba42f80d37a4efd0696fb715787c4785f8a13361e8aea9227c50f1e78cf763a"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.4.15"
|
||||
rust_lib_photos:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
@@ -2341,18 +2365,18 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: source_gen
|
||||
sha256: "35c8150ece9e8c8d263337a265153c3329667640850b9304861faea59fc98f6b"
|
||||
sha256: "7b19d6ba131c6eb98bfcbf8d56c1a7002eba438af2e7ae6f8398b2b0f4f381e3"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.0.0"
|
||||
version: "3.1.0"
|
||||
source_helper:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: source_helper
|
||||
sha256: "86d247119aedce8e63f4751bd9626fc9613255935558447569ad42f9f5b48b3c"
|
||||
sha256: a447acb083d3a5ef17f983dd36201aeea33fedadb3228fa831f2f0c92f0f3aca
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.3.5"
|
||||
version: "1.3.7"
|
||||
source_map_stack_trace:
|
||||
dependency: transitive
|
||||
description:
|
||||
@@ -3028,5 +3052,5 @@ packages:
|
||||
source: hosted
|
||||
version: "3.1.3"
|
||||
sdks:
|
||||
dart: ">=3.7.2 <4.0.0"
|
||||
dart: ">=3.8.0 <4.0.0"
|
||||
flutter: ">=3.29.0"
|
||||
|
||||
@@ -179,6 +179,7 @@ dependencies:
|
||||
git:
|
||||
url: https://github.com/KasemJaffer/receive_sharing_intent.git
|
||||
ref: 2cea396
|
||||
rive: ^0.13.20
|
||||
rust_lib_photos:
|
||||
path: rust_builder
|
||||
screenshot: ^3.0.0
|
||||
@@ -269,6 +270,7 @@ dev_dependencies:
|
||||
intl_utils: ^2.8.7
|
||||
json_annotation: ^4.8.0
|
||||
json_serializable: ^6.6.1
|
||||
mockito: ^5.5.0
|
||||
test: ^1.22.0
|
||||
|
||||
# ------------------------------
|
||||
|
||||
@@ -32,7 +32,7 @@ impl VectorDB {
|
||||
|
||||
if file_exists {
|
||||
println!("Loading index from disk.");
|
||||
// Creates a view of the index from a file without loading it into memory. https://docs.rs/usearch/latest/usearch/struct.Index.html#method.view
|
||||
// Use view to not load the index into memory. https://docs.rs/usearch/latest/usearch/struct.Index.html#method.view
|
||||
db.index.view(file_path).expect("Failed to load index");
|
||||
} else {
|
||||
println!("Creating new index.");
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
- Similar images design changes. Also changed the vectorDB index file name, so internal users will have another migration (long loading time).
|
||||
- Ashil: New ducky icon in icon switcher
|
||||
- Prateek: Enable immediate manual video stream processing by bypassing user interaction timer
|
||||
- Prateek: Fix multiple concurrent streaming processes bug in ComputeController
|
||||
- Prateek: Fix video streaming description text display spacing in advanced settings
|
||||
- Ashil: Render cached thumbnails faster (noticeable in gallery scrolling)
|
||||
- Similar images UI changes
|
||||
- Neeraj: Fix for double enteries for local file
|
||||
- (prtk) Fix widget initial launch on iOS
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
- Video streaming improvements
|
||||
- Added support for custom domain links
|
||||
- Image editor fixes:
|
||||
- Fixed bottom navigation bar color in light theme
|
||||
|
||||
356
mobile/apps/photos/test/services/video_preview_service_test.dart
Normal file
@@ -0,0 +1,356 @@
|
||||
import "package:dio/dio.dart";
|
||||
import "package:flutter_cache_manager/flutter_cache_manager.dart";
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import "package:mockito/annotations.dart";
|
||||
import "package:photos/core/configuration.dart";
|
||||
import "package:photos/db/files_db.dart";
|
||||
import "package:photos/db/upload_locks_db.dart";
|
||||
import 'package:photos/models/file/file.dart';
|
||||
import 'package:photos/models/file/file_type.dart';
|
||||
import 'package:photos/models/metadata/file_magic.dart';
|
||||
import "package:photos/service_locator.dart";
|
||||
import "package:photos/services/file_magic_service.dart";
|
||||
import 'package:photos/services/filedata/model/file_data.dart';
|
||||
import "package:photos/services/isolated_ffmpeg_service.dart";
|
||||
import 'package:photos/services/video_preview_service.dart';
|
||||
|
||||
import "video_preview_service_test.mocks.dart";
|
||||
|
||||
@GenerateMocks([
|
||||
ServiceLocator,
|
||||
Configuration,
|
||||
FilesDB,
|
||||
UploadLocksDB,
|
||||
FileMagicService,
|
||||
IsolatedFfmpegService,
|
||||
Dio,
|
||||
DefaultCacheManager,
|
||||
CacheManager,
|
||||
])
|
||||
void main() {
|
||||
late VideoPreviewService videoPreviewService;
|
||||
late MockServiceLocator mockServiceLocator;
|
||||
late MockConfiguration mockConfiguration;
|
||||
late MockFilesDB mockFilesDB;
|
||||
late MockUploadLocksDB mockUploadLocksDB;
|
||||
late MockFileMagicService mockFileMagicService;
|
||||
late MockIsolatedFfmpegService mockFfmpegService;
|
||||
late MockDefaultCacheManager mockCacheManager;
|
||||
late MockCacheManager mockVideoCacheManager;
|
||||
|
||||
setUp(() {
|
||||
mockServiceLocator = MockServiceLocator();
|
||||
mockConfiguration = MockConfiguration();
|
||||
mockFilesDB = MockFilesDB();
|
||||
mockUploadLocksDB = MockUploadLocksDB();
|
||||
mockFileMagicService = MockFileMagicService();
|
||||
mockFfmpegService = MockIsolatedFfmpegService();
|
||||
mockCacheManager = MockDefaultCacheManager();
|
||||
mockVideoCacheManager = MockCacheManager();
|
||||
|
||||
videoPreviewService = VideoPreviewService(
|
||||
mockConfiguration,
|
||||
mockServiceLocator,
|
||||
mockFilesDB,
|
||||
mockUploadLocksDB,
|
||||
mockFileMagicService,
|
||||
mockFfmpegService,
|
||||
mockCacheManager,
|
||||
mockVideoCacheManager,
|
||||
);
|
||||
});
|
||||
|
||||
group('calcStatus Logic Tests', () {
|
||||
test('should handle mixed processed and unprocessed files', () async {
|
||||
// Arrange
|
||||
final files = [
|
||||
EnteFile()
|
||||
..uploadedFileID = 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
EnteFile()
|
||||
..uploadedFileID = 2
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
EnteFile()
|
||||
..uploadedFileID = 3
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
];
|
||||
|
||||
final previewIds = <int, PreviewInfo>{
|
||||
2: PreviewInfo(
|
||||
objectId: 'obj2',
|
||||
objectSize: 1000,
|
||||
), // Only file 2 is processed
|
||||
};
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
|
||||
// Assert
|
||||
expect(status, closeTo(0.33, 0.01)); // 1/3 ≈ 0.33
|
||||
});
|
||||
|
||||
test('should handle all files processed', () async {
|
||||
// Arrange
|
||||
final files = [
|
||||
EnteFile()
|
||||
..uploadedFileID = 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
EnteFile()
|
||||
..uploadedFileID = 2
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
];
|
||||
|
||||
final previewIds = <int, PreviewInfo>{
|
||||
1: PreviewInfo(objectId: 'obj1', objectSize: 1000),
|
||||
2: PreviewInfo(objectId: 'obj2', objectSize: 1000),
|
||||
};
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
|
||||
// Assert
|
||||
expect(status, equals(1.0)); // 100% processed
|
||||
});
|
||||
|
||||
test('should handle no files processed', () async {
|
||||
// Arrange
|
||||
final files = [
|
||||
EnteFile()
|
||||
..uploadedFileID = 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
EnteFile()
|
||||
..uploadedFileID = 2
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
];
|
||||
|
||||
final previewIds = <int, PreviewInfo>{}; // No files processed
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
|
||||
// Assert
|
||||
expect(status, equals(0.0)); // 0% processed
|
||||
});
|
||||
|
||||
test('should skip files with sv=1 from total count', () async {
|
||||
// Arrange
|
||||
final files = [
|
||||
EnteFile()
|
||||
..uploadedFileID = 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
EnteFile()
|
||||
..uploadedFileID = 2
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(sv: 1), // Should be skipped
|
||||
EnteFile()
|
||||
..uploadedFileID = 3
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
];
|
||||
|
||||
final previewIds = <int, PreviewInfo>{}; // No files processed
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
|
||||
// Assert
|
||||
expect(status, equals(0.0)); // 0% processed
|
||||
});
|
||||
|
||||
test('should handle processed files with sv=1', () async {
|
||||
// Arrange
|
||||
final files = [
|
||||
EnteFile()
|
||||
..uploadedFileID = 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
EnteFile()
|
||||
..uploadedFileID = 2
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata =
|
||||
PubMagicMetadata(sv: 1), // Processed but with sv=1
|
||||
EnteFile()
|
||||
..uploadedFileID = 3
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
];
|
||||
|
||||
final previewIds = <int, PreviewInfo>{
|
||||
2: PreviewInfo(
|
||||
objectId: 'obj2',
|
||||
objectSize: 1000,
|
||||
), // File 2 is processed
|
||||
};
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
|
||||
// Assert
|
||||
// Logic:
|
||||
// file 2 is processed -> goes to processed set (processed = {2})
|
||||
// All files except sv=1 go to total: file 1 -> total, file 2 -> total, file 3 -> total
|
||||
// So: processed = {2}, total = {1,2,3}
|
||||
// netProcessedItems = processed.length / total.length = 1/3 ≈ 0.33
|
||||
expect(status, closeTo(0.33, 0.01));
|
||||
});
|
||||
|
||||
test('should handle empty file list', () async {
|
||||
// Arrange
|
||||
final files = <EnteFile>[];
|
||||
final previewIds = <int, PreviewInfo>{};
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
|
||||
// Assert
|
||||
expect(status, equals(1.0)); // Empty = 100% complete
|
||||
});
|
||||
|
||||
test('should handle complex scenario', () async {
|
||||
// Arrange
|
||||
final files = [
|
||||
EnteFile()
|
||||
..uploadedFileID = 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(), // Regular file
|
||||
EnteFile()
|
||||
..uploadedFileID = 2
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata =
|
||||
PubMagicMetadata(sv: 1), // Skip from total (sv=1)
|
||||
EnteFile()
|
||||
..uploadedFileID = 3
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(), // Regular file
|
||||
EnteFile()
|
||||
..uploadedFileID = 4
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(), // Regular file
|
||||
EnteFile()
|
||||
..uploadedFileID = 5
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata =
|
||||
PubMagicMetadata(sv: 1), // Skip from total (sv=1)
|
||||
];
|
||||
|
||||
final previewIds = <int, PreviewInfo>{
|
||||
1: PreviewInfo(objectId: 'obj1', objectSize: 1000), // File 1 processed
|
||||
3: PreviewInfo(objectId: 'obj3', objectSize: 1000), // File 3 processed
|
||||
5: PreviewInfo(
|
||||
objectId: 'obj5',
|
||||
objectSize: 1000,
|
||||
), // File 5 processed (but has sv=1)
|
||||
};
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
|
||||
// Assert
|
||||
// File 1: processed -> add to processed {1}, then add to total {1}
|
||||
// File 2: not processed, sv=1 -> skip (continue)
|
||||
// File 3: processed -> add to processed {1,3}, then add to total {1,3}
|
||||
// File 4: not processed, sv!=1 -> add to total {1,3,4}
|
||||
// File 5: processed -> add to processed {1,3,5}, then add to total {1,3,4,5}
|
||||
//
|
||||
// Result: processed = {1,3,5}, total = {1,3,4,5}
|
||||
// netProcessedItems = 3/4 = 0.75
|
||||
expect(status, equals(0.75));
|
||||
});
|
||||
|
||||
test('should handle null pubMagicMetadata', () async {
|
||||
// Arrange
|
||||
final files = [
|
||||
EnteFile()
|
||||
..uploadedFileID = 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = null, // null metadata
|
||||
EnteFile()
|
||||
..uploadedFileID = 2
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
];
|
||||
|
||||
final previewIds = <int, PreviewInfo>{
|
||||
1: PreviewInfo(objectId: 'obj1', objectSize: 1000),
|
||||
};
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
|
||||
// Assert
|
||||
expect(status, equals(0.5)); // 1/2 = 0.5
|
||||
});
|
||||
|
||||
test('should handle large numbers correctly', () async {
|
||||
// Arrange - Create 1000 files, 750 processed
|
||||
final files = List.generate(
|
||||
1000,
|
||||
(index) => EnteFile()
|
||||
..uploadedFileID = index + 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
);
|
||||
|
||||
final previewIds = <int, PreviewInfo>{};
|
||||
// Make first 750 files processed
|
||||
for (int i = 1; i <= 750; i++) {
|
||||
previewIds[i] = PreviewInfo(objectId: 'obj$i', objectSize: 1000);
|
||||
}
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
|
||||
// Assert
|
||||
expect(status, equals(0.75)); // 750/1000 = 0.75
|
||||
});
|
||||
|
||||
test('should handle edge case - all files have sv=1', () async {
|
||||
// Arrange
|
||||
final files = [
|
||||
EnteFile()
|
||||
..uploadedFileID = 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(sv: 1),
|
||||
EnteFile()
|
||||
..uploadedFileID = 2
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(sv: 1),
|
||||
];
|
||||
|
||||
final previewIds = <int, PreviewInfo>{
|
||||
1: PreviewInfo(objectId: 'obj1', objectSize: 1000),
|
||||
2: PreviewInfo(objectId: 'obj2', objectSize: 1000),
|
||||
};
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
|
||||
// Assert
|
||||
// All files have sv=1, so total set is empty, netProcessedItems should be 1.0
|
||||
expect(
|
||||
status,
|
||||
equals(1.0),
|
||||
); // Empty total = 100% complete
|
||||
});
|
||||
|
||||
test('should handle percentage calculation precision', () async {
|
||||
// Arrange - Test precise percentage calculations
|
||||
final files = List.generate(
|
||||
7,
|
||||
(index) => EnteFile()
|
||||
..uploadedFileID = index + 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
);
|
||||
|
||||
final previewIds = <int, PreviewInfo>{
|
||||
1: PreviewInfo(objectId: 'obj1', objectSize: 1000),
|
||||
2: PreviewInfo(objectId: 'obj2', objectSize: 1000),
|
||||
};
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
|
||||
// Assert
|
||||
// 2 out of 7 files processed = 2/7 ≈ 0.2857
|
||||
expect(status, closeTo(0.2857, 0.0001));
|
||||
});
|
||||
});
|
||||
}
|
||||
545
mobile/apps/photos/test/services/video_preview_status_test.dart
Normal file
@@ -0,0 +1,545 @@
|
||||
import 'package:dio/dio.dart';
|
||||
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:mockito/annotations.dart';
|
||||
import 'package:mockito/mockito.dart';
|
||||
import 'package:photos/core/configuration.dart';
|
||||
import 'package:photos/db/files_db.dart';
|
||||
import 'package:photos/db/upload_locks_db.dart';
|
||||
import 'package:photos/models/file/file.dart';
|
||||
import 'package:photos/models/file/file_type.dart';
|
||||
import 'package:photos/models/metadata/file_magic.dart';
|
||||
import 'package:photos/service_locator.dart';
|
||||
import 'package:photos/services/file_magic_service.dart';
|
||||
import 'package:photos/services/filedata/model/file_data.dart';
|
||||
import 'package:photos/services/isolated_ffmpeg_service.dart';
|
||||
import 'package:photos/services/video_preview_service.dart';
|
||||
|
||||
import 'video_preview_status_test.mocks.dart';
|
||||
|
||||
@GenerateMocks([
|
||||
ServiceLocator,
|
||||
Configuration,
|
||||
FilesDB,
|
||||
UploadLocksDB,
|
||||
FileMagicService,
|
||||
IsolatedFfmpegService,
|
||||
Dio,
|
||||
DefaultCacheManager,
|
||||
CacheManager,
|
||||
])
|
||||
void main() {
|
||||
late VideoPreviewService videoPreviewService;
|
||||
late MockServiceLocator mockServiceLocator;
|
||||
late MockConfiguration mockConfiguration;
|
||||
late MockFilesDB mockFilesDB;
|
||||
late MockUploadLocksDB mockUploadLocksDB;
|
||||
late MockFileMagicService mockFileMagicService;
|
||||
late MockIsolatedFfmpegService mockFfmpegService;
|
||||
late MockDefaultCacheManager mockCacheManager;
|
||||
late MockCacheManager mockVideoCacheManager;
|
||||
|
||||
setUp(() {
|
||||
mockServiceLocator = MockServiceLocator();
|
||||
mockConfiguration = MockConfiguration();
|
||||
mockFilesDB = MockFilesDB();
|
||||
mockUploadLocksDB = MockUploadLocksDB();
|
||||
mockFileMagicService = MockFileMagicService();
|
||||
mockFfmpegService = MockIsolatedFfmpegService();
|
||||
mockCacheManager = MockDefaultCacheManager();
|
||||
mockVideoCacheManager = MockCacheManager();
|
||||
|
||||
videoPreviewService = VideoPreviewService(
|
||||
mockConfiguration,
|
||||
mockServiceLocator,
|
||||
mockFilesDB,
|
||||
mockUploadLocksDB,
|
||||
mockFileMagicService,
|
||||
mockFfmpegService,
|
||||
mockCacheManager,
|
||||
mockVideoCacheManager,
|
||||
);
|
||||
});
|
||||
|
||||
group('VideoPreviewService Queue Management', () {
|
||||
test('should add file to manual queue successfully', () async {
|
||||
// Arrange
|
||||
final file = EnteFile()
|
||||
..uploadedFileID = 123
|
||||
..title = 'test_video.mp4'
|
||||
..collectionID = 1;
|
||||
|
||||
when(mockUploadLocksDB.isInStreamQueue(123))
|
||||
.thenAnswer((_) async => false);
|
||||
when(mockUploadLocksDB.addToStreamQueue(123, any))
|
||||
.thenAnswer((_) async => {});
|
||||
|
||||
final result = await videoPreviewService.addToManualQueue(file, 'create');
|
||||
|
||||
// Assert
|
||||
expect(result, isTrue);
|
||||
verify(mockUploadLocksDB.addToStreamQueue(123, 'create')).called(1);
|
||||
});
|
||||
|
||||
test('should not add file already in queue', () async {
|
||||
// Arrange
|
||||
final file = EnteFile()
|
||||
..uploadedFileID = 123
|
||||
..title = 'test_video.mp4';
|
||||
|
||||
when(mockUploadLocksDB.isInStreamQueue(123))
|
||||
.thenAnswer((_) async => true);
|
||||
|
||||
final result = await videoPreviewService.addToManualQueue(file, 'create');
|
||||
|
||||
// Assert
|
||||
expect(result, isFalse);
|
||||
verifyNever(mockUploadLocksDB.addToStreamQueue(any, any));
|
||||
});
|
||||
|
||||
test('should return false for file without uploadedFileID', () async {
|
||||
// Arrange
|
||||
final file = EnteFile()
|
||||
..title = 'test_video.mp4'
|
||||
..uploadedFileID = null;
|
||||
|
||||
final result = await videoPreviewService.addToManualQueue(file, 'create');
|
||||
|
||||
// Assert
|
||||
expect(result, isFalse);
|
||||
verifyZeroInteractions(mockUploadLocksDB);
|
||||
});
|
||||
|
||||
test('should clear queue properly', () {
|
||||
// Arrange
|
||||
videoPreviewService.fileQueue[123] = EnteFile()..uploadedFileID = 123;
|
||||
videoPreviewService.fileQueue[456] = EnteFile()..uploadedFileID = 456;
|
||||
|
||||
videoPreviewService.clearQueue();
|
||||
|
||||
// Assert
|
||||
expect(videoPreviewService.fileQueue.isEmpty, isTrue);
|
||||
});
|
||||
|
||||
test('should identify currently processing file', () {
|
||||
// Arrange
|
||||
videoPreviewService.uploadingFileId = 123;
|
||||
|
||||
expect(videoPreviewService.isCurrentlyProcessing(123), isTrue);
|
||||
expect(videoPreviewService.isCurrentlyProcessing(456), isFalse);
|
||||
expect(videoPreviewService.isCurrentlyProcessing(null), isFalse);
|
||||
});
|
||||
});
|
||||
|
||||
group('VideoPreviewService Status Calculation Edge Cases', () {
|
||||
test('should handle video files only (no mixed types in calcStatus)',
|
||||
() async {
|
||||
// Note: calcStatus expects to receive only video files from the DB query
|
||||
// Arrange
|
||||
final files = [
|
||||
EnteFile()
|
||||
..uploadedFileID = 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
EnteFile()
|
||||
..uploadedFileID = 3
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
];
|
||||
|
||||
final previewIds = <int, PreviewInfo>{
|
||||
1: PreviewInfo(objectId: 'obj1', objectSize: 1000),
|
||||
};
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
|
||||
// Assert
|
||||
// Logic: file 1 -> processed, add to both processed {1} and total {1}
|
||||
// file 3 -> not processed, add to total {1,3}
|
||||
// Status = 1/2 = 0.5
|
||||
expect(status, equals(0.5));
|
||||
});
|
||||
|
||||
test('should handle files with zero uploadedFileID', () async {
|
||||
// Arrange
|
||||
final files = [
|
||||
EnteFile()
|
||||
..uploadedFileID = 0
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
EnteFile()
|
||||
..uploadedFileID = 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
];
|
||||
|
||||
final previewIds = <int, PreviewInfo>{
|
||||
0: PreviewInfo(objectId: 'obj0', objectSize: 1000),
|
||||
};
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
|
||||
// Assert
|
||||
expect(status, equals(0.5)); // 1/2 = 0.5
|
||||
});
|
||||
|
||||
test('should handle very large preview counts', () async {
|
||||
// Arrange - Create 10,000 files scenario
|
||||
final files = List.generate(
|
||||
10000,
|
||||
(index) => EnteFile()
|
||||
..uploadedFileID = index + 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
);
|
||||
|
||||
final previewIds = <int, PreviewInfo>{};
|
||||
// Process every 3rd file
|
||||
for (int i = 3; i <= 10000; i += 3) {
|
||||
previewIds[i] = PreviewInfo(objectId: 'obj$i', objectSize: 1000);
|
||||
}
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
|
||||
// Assert
|
||||
// Every 3rd file is processed: 3333 files out of 10000
|
||||
expect(status, closeTo(0.3333, 0.0001));
|
||||
});
|
||||
|
||||
test('should handle inconsistent preview data', () async {
|
||||
// Arrange
|
||||
final files = [
|
||||
EnteFile()
|
||||
..uploadedFileID = 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
];
|
||||
|
||||
final previewIds = <int, PreviewInfo>{
|
||||
999: PreviewInfo(
|
||||
objectId: 'obj999',
|
||||
objectSize: 1000,
|
||||
), // Non-existent file
|
||||
};
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
|
||||
// Assert
|
||||
expect(status, equals(0.0)); // No matching processed files
|
||||
});
|
||||
});
|
||||
|
||||
group('VideoPreviewService File Filtering', () {
|
||||
test('should handle files with different sv values', () async {
|
||||
// Arrange
|
||||
final files = [
|
||||
EnteFile()
|
||||
..uploadedFileID = 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(sv: 0), // sv=0 (included)
|
||||
EnteFile()
|
||||
..uploadedFileID = 2
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(sv: 1), // sv=1 (skipped)
|
||||
EnteFile()
|
||||
..uploadedFileID = 3
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(sv: 2), // sv=2 (included)
|
||||
EnteFile()
|
||||
..uploadedFileID = 4
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(), // sv=null (included)
|
||||
];
|
||||
|
||||
final previewIds = <int, PreviewInfo>{
|
||||
1: PreviewInfo(objectId: 'obj1', objectSize: 1000),
|
||||
3: PreviewInfo(objectId: 'obj3', objectSize: 1000),
|
||||
};
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
|
||||
// Assert
|
||||
// Files 1, 3, 4 are included (sv != 1), file 2 is skipped
|
||||
// Files 1, 3 are processed out of 3 total eligible files
|
||||
// Status = 2/3 ≈ 0.6667
|
||||
expect(status, closeTo(0.6667, 0.0001));
|
||||
});
|
||||
|
||||
test('should handle boundary conditions for processing', () async {
|
||||
// Arrange - Test with exactly one file
|
||||
final files = [
|
||||
EnteFile()
|
||||
..uploadedFileID = 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
];
|
||||
|
||||
final previewIds = <int, PreviewInfo>{
|
||||
1: PreviewInfo(objectId: 'obj1', objectSize: 1000),
|
||||
};
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
|
||||
// Assert
|
||||
expect(status, equals(1.0)); // 1/1 = 100%
|
||||
});
|
||||
});
|
||||
|
||||
group('VideoPreviewService Concurrency Tests', () {
|
||||
test('should handle concurrent status calculations', () async {
|
||||
// Arrange
|
||||
final files = List.generate(
|
||||
100,
|
||||
(index) => EnteFile()
|
||||
..uploadedFileID = index + 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
);
|
||||
|
||||
final previewIds = <int, PreviewInfo>{};
|
||||
for (int i = 1; i <= 50; i++) {
|
||||
previewIds[i] = PreviewInfo(objectId: 'obj$i', objectSize: 1000);
|
||||
}
|
||||
|
||||
final futures = List.generate(
|
||||
5,
|
||||
(_) => videoPreviewService.calcStatus(files, previewIds),
|
||||
);
|
||||
final results = await Future.wait(futures);
|
||||
|
||||
// Assert - All results should be consistent
|
||||
for (final result in results) {
|
||||
expect(result, equals(0.5)); // 50/100 = 0.5
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
group('VideoPreviewService Data Integrity', () {
|
||||
test('should handle corrupted preview data gracefully', () async {
|
||||
// Arrange
|
||||
final files = [
|
||||
EnteFile()
|
||||
..uploadedFileID = 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
EnteFile()
|
||||
..uploadedFileID = 2
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
];
|
||||
|
||||
// Simulate corrupted preview data with negative IDs
|
||||
final previewIds = <int, PreviewInfo>{
|
||||
-1: PreviewInfo(objectId: 'corrupt', objectSize: -100),
|
||||
1: PreviewInfo(objectId: 'obj1', objectSize: 1000),
|
||||
};
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
|
||||
// Assert
|
||||
expect(status, equals(0.5)); // Only file 1 matches and is processed
|
||||
});
|
||||
|
||||
test('should maintain precision with floating point calculations',
|
||||
() async {
|
||||
// Arrange - Test edge case numbers that might cause floating point issues
|
||||
final files = List.generate(
|
||||
3,
|
||||
(index) => EnteFile()
|
||||
..uploadedFileID = index + 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
);
|
||||
|
||||
final previewIds = <int, PreviewInfo>{
|
||||
1: PreviewInfo(objectId: 'obj1', objectSize: 1000),
|
||||
};
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
|
||||
// Assert
|
||||
// 1/3 should be exactly represented or very close
|
||||
expect(status, closeTo(1.0 / 3.0, 0.0000001));
|
||||
});
|
||||
});
|
||||
|
||||
group('VideoPreviewService Complex Scenarios', () {
|
||||
test('should handle real-world mixed scenario', () async {
|
||||
// Arrange - Simulate real photo library scenario (only video files)
|
||||
final files = [
|
||||
// Regular videos
|
||||
...List.generate(
|
||||
50,
|
||||
(index) => EnteFile()
|
||||
..uploadedFileID = index + 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
),
|
||||
|
||||
// Videos with sv=1 (should be skipped)
|
||||
...List.generate(
|
||||
10,
|
||||
(index) => EnteFile()
|
||||
..uploadedFileID = index + 51
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(sv: 1),
|
||||
),
|
||||
|
||||
// Videos with null metadata
|
||||
...List.generate(
|
||||
5,
|
||||
(index) => EnteFile()
|
||||
..uploadedFileID = index + 61
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = null,
|
||||
),
|
||||
];
|
||||
|
||||
// Process 30 regular videos and 2 null-metadata videos
|
||||
final previewIds = <int, PreviewInfo>{};
|
||||
for (int i = 1; i <= 30; i++) {
|
||||
previewIds[i] = PreviewInfo(objectId: 'obj$i', objectSize: 1000);
|
||||
}
|
||||
previewIds[62] = PreviewInfo(objectId: 'obj62', objectSize: 1000);
|
||||
previewIds[64] = PreviewInfo(objectId: 'obj64', objectSize: 1000);
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
|
||||
// Assert
|
||||
// Total eligible: 50 regular + 5 null-metadata = 55 videos (sv=1 files are skipped)
|
||||
// Processed: 30 regular + 2 null-metadata = 32 videos
|
||||
// Logic: processed files go to both processed and total sets
|
||||
// unprocessed files (except sv=1) go to total set only
|
||||
// So: processed = {1..30, 62, 64}, total = {1..50, 61..65}
|
||||
// Status = 32/55 ≈ 0.5818
|
||||
expect(status, closeTo(32.0 / 55.0, 0.0001));
|
||||
});
|
||||
|
||||
test('should handle progressive processing simulation', () async {
|
||||
// Arrange
|
||||
final files = List.generate(
|
||||
10,
|
||||
(index) => EnteFile()
|
||||
..uploadedFileID = index + 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
);
|
||||
|
||||
for (int processed = 0; processed <= 10; processed++) {
|
||||
final previewIds = <int, PreviewInfo>{};
|
||||
for (int i = 1; i <= processed; i++) {
|
||||
previewIds[i] = PreviewInfo(objectId: 'obj$i', objectSize: 1000);
|
||||
}
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
final expectedStatus = processed / 10.0;
|
||||
|
||||
expect(
|
||||
status,
|
||||
equals(expectedStatus),
|
||||
reason: 'Failed at $processed processed files',
|
||||
);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
group('VideoPreviewService Performance Edge Cases', () {
|
||||
test('should handle empty preview IDs efficiently', () async {
|
||||
// Arrange
|
||||
final files = List.generate(
|
||||
1000,
|
||||
(index) => EnteFile()
|
||||
..uploadedFileID = index + 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
);
|
||||
|
||||
final emptyPreviewIds = <int, PreviewInfo>{};
|
||||
|
||||
final stopwatch = Stopwatch()..start();
|
||||
final status =
|
||||
await videoPreviewService.calcStatus(files, emptyPreviewIds);
|
||||
stopwatch.stop();
|
||||
|
||||
// Assert
|
||||
expect(status, equals(0.0));
|
||||
// Should complete quickly even with 1000 files
|
||||
expect(stopwatch.elapsedMilliseconds, lessThan(100));
|
||||
});
|
||||
|
||||
test('should handle all-processed scenario efficiently', () async {
|
||||
// Arrange
|
||||
final files = List.generate(
|
||||
1000,
|
||||
(index) => EnteFile()
|
||||
..uploadedFileID = index + 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
);
|
||||
|
||||
final allProcessedIds = <int, PreviewInfo>{};
|
||||
for (int i = 1; i <= 1000; i++) {
|
||||
allProcessedIds[i] = PreviewInfo(objectId: 'obj$i', objectSize: 1000);
|
||||
}
|
||||
|
||||
final stopwatch = Stopwatch()..start();
|
||||
final status =
|
||||
await videoPreviewService.calcStatus(files, allProcessedIds);
|
||||
stopwatch.stop();
|
||||
|
||||
// Assert
|
||||
expect(status, equals(1.0));
|
||||
// Should complete quickly even with all files processed
|
||||
expect(stopwatch.elapsedMilliseconds, lessThan(100));
|
||||
});
|
||||
});
|
||||
|
||||
group('VideoPreviewService Status Boundary Conditions', () {
|
||||
test('should clamp status between 0 and 1', () async {
|
||||
// This test verifies that the clamp function works as expected
|
||||
// even though we don't expect values outside [0,1] in normal cases
|
||||
|
||||
// Arrange - Normal case that should result in valid percentage
|
||||
final files = [
|
||||
EnteFile()
|
||||
..uploadedFileID = 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
];
|
||||
|
||||
final previewIds = <int, PreviewInfo>{
|
||||
1: PreviewInfo(objectId: 'obj1', objectSize: 1000),
|
||||
};
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
|
||||
// Assert
|
||||
expect(status, greaterThanOrEqualTo(0.0));
|
||||
expect(status, lessThanOrEqualTo(1.0));
|
||||
});
|
||||
|
||||
test('should handle duplicate uploadedFileIDs consistently', () async {
|
||||
// Arrange - This shouldn't happen in practice, but test robustness
|
||||
final files = [
|
||||
EnteFile()
|
||||
..uploadedFileID = 1
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
EnteFile()
|
||||
..uploadedFileID = 1 // Duplicate ID
|
||||
..fileType = FileType.video
|
||||
..pubMagicMetadata = PubMagicMetadata(),
|
||||
];
|
||||
|
||||
final previewIds = <int, PreviewInfo>{
|
||||
1: PreviewInfo(objectId: 'obj1', objectSize: 1000),
|
||||
};
|
||||
|
||||
final status = await videoPreviewService.calcStatus(files, previewIds);
|
||||
|
||||
// Assert
|
||||
// Sets should handle duplicates naturally
|
||||
expect(status, equals(1.0)); // 1/1 = 100%
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -4,11 +4,11 @@ import 'dart:convert';
|
||||
import 'dart:io' as io;
|
||||
|
||||
import 'package:bip39/bip39.dart' as bip39;
|
||||
import 'package:ente_configuration/constants.dart';
|
||||
import 'package:ente_base/models/database.dart';
|
||||
import 'package:ente_base/models/key_attributes.dart';
|
||||
import 'package:ente_base/models/key_gen_result.dart';
|
||||
import 'package:ente_base/models/private_key_attributes.dart';
|
||||
import 'package:ente_configuration/constants.dart';
|
||||
import 'package:ente_crypto_dart/ente_crypto_dart.dart';
|
||||
import 'package:ente_events/event_bus.dart';
|
||||
import 'package:ente_events/models/endpoint_updated_event.dart';
|
||||
@@ -35,6 +35,7 @@ class BaseConfiguration {
|
||||
static const userIDKey = "user_id";
|
||||
static const endPointKey = "endpoint";
|
||||
static const lastTempFolderClearTimeKey = "last_temp_folder_clear_time";
|
||||
static const offlineAuthSecretKey = "offline_auth_secret_key";
|
||||
|
||||
final kTempFolderDeletionTimeBuffer = const Duration(days: 1).inMicroseconds;
|
||||
|
||||
@@ -52,6 +53,11 @@ class BaseConfiguration {
|
||||
|
||||
String? _volatilePassword;
|
||||
|
||||
// Keys that should not be deleted during logout
|
||||
// These keys are necessary for functionality that needs to work even when users
|
||||
// aren't signed in, such as using Auth without backup
|
||||
List<String> preservedKeys = [offlineAuthSecretKey];
|
||||
|
||||
Future<void> init(List<EnteBaseDatabase> dbs) async {
|
||||
_databases = dbs;
|
||||
_documentsDirectory = (await getApplicationDocumentsDirectory()).path;
|
||||
@@ -62,13 +68,13 @@ class BaseConfiguration {
|
||||
accessibility: KeychainAccessibility.first_unlock_this_device,
|
||||
),
|
||||
);
|
||||
_setupKeys();
|
||||
_setupFolders();
|
||||
await _setupKeys();
|
||||
await _setupFolders();
|
||||
}
|
||||
|
||||
Future<void> logout({bool autoLogout = false}) async {
|
||||
await _preferences.clear();
|
||||
_secureStorage.deleteAll();
|
||||
await resetSecureStorage();
|
||||
for (final db in _databases) {
|
||||
await db.clearTable();
|
||||
}
|
||||
@@ -78,6 +84,16 @@ class BaseConfiguration {
|
||||
Bus.instance.fire(SignedOutEvent());
|
||||
}
|
||||
|
||||
Future<void> resetSecureStorage() async {
|
||||
// Delete all keys except preserved ones
|
||||
final allKeys = await _secureStorage.readAll();
|
||||
for (final key in allKeys.keys) {
|
||||
if (!preservedKeys.contains(key)) {
|
||||
await _secureStorage.delete(key: key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Future<KeyGenResult> generateKey(String password) async {
|
||||
// Create a master key
|
||||
final masterKey = CryptoUtil.generateKey();
|
||||
@@ -217,7 +233,7 @@ class BaseConfiguration {
|
||||
if (split.length != mnemonicKeyWordCount) {
|
||||
String wordThatIsFollowedByEmptySpaceInSplit = '';
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
String word = split[i];
|
||||
final String word = split[i];
|
||||
if (word.isEmpty) {
|
||||
wordThatIsFollowedByEmptySpaceInSplit =
|
||||
'\n\nExtra space after word at position $i';
|
||||
@@ -382,7 +398,7 @@ class BaseConfiguration {
|
||||
Future<void> _setupKeys() async {
|
||||
try {
|
||||
if (!_preferences.containsKey(tokenKey)) {
|
||||
await _secureStorage.deleteAll();
|
||||
await resetSecureStorage();
|
||||
return;
|
||||
}
|
||||
_key = await _secureStorage.read(key: keyKey);
|
||||
|
||||
@@ -976,6 +976,8 @@ const localeName = (locale: SupportedLocale) => {
|
||||
return "اَلْعَرَبِيَّةُ";
|
||||
case "tr-TR":
|
||||
return "Türkçe";
|
||||
case "cs-CZ":
|
||||
return "čeština";
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@ export const supportedLocales = [
|
||||
"ja-JP" /* Japanese */,
|
||||
"ar-SA" /* Arabic */,
|
||||
"tr-TR" /* Turkish */,
|
||||
"cs-CZ" /* Czech */,
|
||||
] as const;
|
||||
|
||||
/** The type of {@link supportedLocales}. */
|
||||
@@ -201,6 +202,8 @@ const closestSupportedLocale = (
|
||||
return "ar-SA";
|
||||
} else if (ls.startsWith("tr")) {
|
||||
return "tr-TR";
|
||||
} else if (ls.startsWith("cs")) {
|
||||
return "cs-CZ";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"intro_slide_1_title": "Soukromé zálohy<br/>pro vaše vzpomínky",
|
||||
"intro_slide_1": "End-to-end šifrováno ve výchozím nastavení",
|
||||
"intro_slide_2_title": "Bezpečně skladovaný<br/>v úkryt",
|
||||
"intro_slide_1": "Koncově šifrováno ve výchozím nastavení",
|
||||
"intro_slide_2_title": "Bezpečně uloženo<br/>v protiatomovém krytu",
|
||||
"intro_slide_2": "Navržen pro prežití",
|
||||
"intro_slide_3_title": "Dostupné<br/>všude",
|
||||
"intro_slide_3": "Android, iOS, Web, počítač",
|
||||
"intro_slide_3": "Android, iOS, Web, Počítač",
|
||||
"login": "Přihlášení",
|
||||
"sign_up": "Registrace",
|
||||
"new_to_ente": "Nový uživatel Ente",
|
||||
@@ -32,17 +32,17 @@
|
||||
"set_password": "Nastavit heslo",
|
||||
"sign_in": "Přihlásit se",
|
||||
"incorrect_password": "Nesprávné heslo",
|
||||
"incorrect_password_or_no_account": "",
|
||||
"incorrect_password_or_no_account": "Nesprávné heslo nebo e-mail není zaregistrován",
|
||||
"pick_password_hint": "Zadejte heslo, kterým můžeme zašifrovat Vaše data",
|
||||
"pick_password_caution": "Vaše heslo neukládáme, takže pokud ho zapomenete, <strong>nebudeme moci pomoci </strong>obnovit vaše data bez obnovovacího klíče.",
|
||||
"pick_password_caution": "Vaše heslo neukládáme, takže pokud ho zapomenete, <strong>nebudeme vám moci pomoci </strong>obnovit vaše data bez obnovovacího klíče.",
|
||||
"key_generation_in_progress": "Generování šifrovacích klíčů...",
|
||||
"confirm_password": "Potvrďte heslo",
|
||||
"referral_source_hint": "Jak jste se dozvěděli o Ente? (volitelné)",
|
||||
"referral_source_info": "Ne sledujeme instalace aplikace. Pomůže nám, když nám sdělíte, kde jste nás našli!",
|
||||
"referral_source_info": "Nesledujeme instalace aplikace. Pomůže nám, když nám sdělíte, kde jste nás našli!",
|
||||
"password_mismatch_error": "Hesla se neshodují",
|
||||
"show_or_hide_password": "",
|
||||
"show_or_hide_password": "Zobrazit nebo skrýt heslo",
|
||||
"welcome_to_ente_title": "Vítejte v <a/>",
|
||||
"welcome_to_ente_subtitle": "End to end šifrované úložiště fotek a sdílení",
|
||||
"welcome_to_ente_subtitle": "Ukládání a sdílení fotografií s koncovým šifrováním",
|
||||
"new_album": "Nové album",
|
||||
"create_albums": "Vytvořit alba",
|
||||
"album_name": "Název alba",
|
||||
@@ -55,7 +55,7 @@
|
||||
"add_photos": "Přidat fotky",
|
||||
"add_more_photos": "Přidat další fotky",
|
||||
"add_photos_count_one": "Přidat 1 položku",
|
||||
"add_photos_count": "Přidat {{count, number}} předměty",
|
||||
"add_photos_count": "Přidat {{count, number}} položek",
|
||||
"select_photos": "Vybrat fotky",
|
||||
"file_upload": "Nahrát soubor",
|
||||
"preparing": "Příprava",
|
||||
@@ -64,9 +64,9 @@
|
||||
"upload_cancelling": "Ruší se zbývající nahrávání",
|
||||
"upload_done": "{{count, number}} nahráno",
|
||||
"upload_skipped": "{{count, number}} přeskočeno",
|
||||
"initial_load_delay_warning": "První načitení může chvíli trvat",
|
||||
"no_account": "Nemáte účet",
|
||||
"existing_account": "Již máte účet",
|
||||
"initial_load_delay_warning": "První načítání může chvíli trvat",
|
||||
"no_account": "Nemám účet",
|
||||
"existing_account": "Již mám účet",
|
||||
"create": "Vytvořit",
|
||||
"files_count": "{{count, number}} souborů",
|
||||
"download": "Stáhnout",
|
||||
@@ -78,10 +78,10 @@
|
||||
"more": "Víc",
|
||||
"mouse_scroll": "Posunutí myší",
|
||||
"pan": "Posouvat",
|
||||
"pinch": "",
|
||||
"pinch": "Přiblížit",
|
||||
"drag": "Přetáhnout",
|
||||
"tap_inside_image": "Klepněte na obrázek",
|
||||
"tap_outside_image": "Klepněte mimo obrázku",
|
||||
"tap_outside_image": "Klepněte mimo obrázek",
|
||||
"shortcuts": "Zkratky",
|
||||
"show_shortcuts": "Zobrazit zkratky",
|
||||
"zoom_preset": "Nastaveni zoomu",
|
||||
@@ -116,17 +116,17 @@
|
||||
"trash_file_title": "Smazat soubor?",
|
||||
"delete_files_title": "Odstranit okamžitě?",
|
||||
"delete_files_message": "Vybrané soubory budou trvale odstraněny z vašeho účtu Ente.",
|
||||
"selected_count": "{{selected, number}} vybráno",
|
||||
"selected_and_yours_count": "{{selected, number}} vybral {{yours, number}} tvůj",
|
||||
"selected_count": "Vybráno: {{selected, number}}",
|
||||
"selected_and_yours_count": "{{selected, number}} vybráno, {{yours, number}} tvých",
|
||||
"delete": "Smazat",
|
||||
"favorite": "Oblíbené",
|
||||
"convert": "Konverze",
|
||||
"convert": "Převést",
|
||||
"multi_folder_upload": "Bylo nalezeno více složek",
|
||||
"upload_to_choice": "Chcete je nahrát do",
|
||||
"upload_to_single_album": "Jednoho alba",
|
||||
"upload_to_album_per_folder": "Oddělená alba",
|
||||
"upload_to_album_per_folder": "Oddělených alb",
|
||||
"session_expired": "Relace vypršela",
|
||||
"session_expired_message": "Vaše relace vypršela. Přihlaste se, prosím, znovu.",
|
||||
"session_expired_message": "Vaše relace vypršela, prosím přihlaste se znovu, abyste mohli pokračovat",
|
||||
"password_generation_failed": "Váš prohlížeč nemohl vygenerovat silný klíč, který splňuje normy Ente pro šifrování, zkuste to prosím pomocí mobilní aplikace nebo jiného prohlížeče",
|
||||
"change_password": "Změnit heslo",
|
||||
"password_changed_elsewhere": "Heslo bylo změněno jinde",
|
||||
@@ -137,7 +137,7 @@
|
||||
"do_this_later": "Udělat později",
|
||||
"save_key": "Uložit klíč",
|
||||
"recovery_key_description": "Tento klíč je jedinou cestou pro obnovení Vašich dat, pokud zapomenete heslo.",
|
||||
"key_not_stored_note": "Tento místný klíč neuchováváme, uschovejte si ho, prosím, na bezpečném místě",
|
||||
"key_not_stored_note": "Tento klíč neuchováváme, uschovejte si ho, prosím, na bezpečném místě",
|
||||
"recovery_key_generation_failed": "Obnovovací kód nelze vygenerovat, zkuste to prosím znovu",
|
||||
"forgot_password": "Zapomenuté heslo",
|
||||
"recover_account": "Obnovit účet",
|
||||
@@ -145,11 +145,11 @@
|
||||
"no_recovery_key_title": "Nemáte obnovovací klíč?",
|
||||
"incorrect_recovery_key": "Nesprávný obnovovací klíč",
|
||||
"sorry": "Omlouváme se",
|
||||
"no_recovery_key_message": "Vzhledem k povaze našeho end-to-end šifrovacího protokolu nelze vaše data dešifrovat bez vašeho hesla nebo obnovovacího klíče",
|
||||
"no_recovery_key_message": "Vzhledem k povaze našeho koncového šifrovacího protokolu nelze vaše data dešifrovat bez vašeho hesla nebo obnovovacího klíče",
|
||||
"no_two_factor_recovery_key_message": "Prosím zašlete e-mail na <a>{{emailID}}</a> z vaší registrované e-mailové adresy",
|
||||
"contact_support": "Kontaktovat podporu",
|
||||
"help": "Pomoc",
|
||||
"ente_help": "Ente pomoc",
|
||||
"ente_help": "Ente Nápověda",
|
||||
"blog": "Blog",
|
||||
"request_feature": "Žádost o funkci",
|
||||
"support": "Podpora",
|
||||
@@ -157,33 +157,33 @@
|
||||
"logout": "Odhlásit se",
|
||||
"logout_message": "Opravdu se chcete odhlásit?",
|
||||
"delete_account": "Odstranit účet",
|
||||
"delete_account_manually_message": "<p>Pošlete prosím e-mail na <a>{{emailID}}</a> z vaší registrované e-mailové adresy.</p><p>Vaše požadavka bude zpracována do 72 hodin.</p>",
|
||||
"delete_account_manually_message": "<p>Pošlete prosím e-mail na <a>{{emailID}}</a> z vaší registrované e-mailové adresy.</p><p>Váš požadavek bude zpracován do 72 hodin.</p>",
|
||||
"change_email": "Změnit e-mail",
|
||||
"ok": "OK",
|
||||
"success": "Úspěch",
|
||||
"error": "Chyba",
|
||||
"note": "",
|
||||
"note": "Poznámka",
|
||||
"offline_message": "Jste offline, soubory se zobrazují z mezipaměti",
|
||||
"install": "Instalovat",
|
||||
"install_mobile_app": "Nainstalujte naši aplikaci <a>Android</a> nebo <b>iOS</b> pro automatické zálohování všech vašich fotografií",
|
||||
"download_app": "Stáhnout Pc aplikaci",
|
||||
"install_mobile_app": "Nainstalujte naši <a>Android</a> nebo <b>iOS</b> aplikaci pro automatické zálohování všech vašich fotografií",
|
||||
"download_app": "Stáhnout aplikaci na počítač",
|
||||
"download_app_message": "Omlouváme se, tato operace je v současné době podporována pouze v naší desktopové aplikaci",
|
||||
"subscription": "Předplatné",
|
||||
"manage_payment_method": "Spravovat způsob platby",
|
||||
"manage_family": "Správa rodiny",
|
||||
"family_plan": "Plán rodiny",
|
||||
"leave_family_plan": "Opustit rodinný plán",
|
||||
"leave": "Odejít",
|
||||
"leave_family_plan_confirm": "Jste si jisti, že chcete opustit rodinný plán?",
|
||||
"choose_plan": "Vyberte si svůj plán",
|
||||
"family_plan": "Rodinný tarif",
|
||||
"leave_family_plan": "Opustit rodinný tarif",
|
||||
"leave": "Pustit",
|
||||
"leave_family_plan_confirm": "Jste si jisti, že chcete opustit rodinný tarif?",
|
||||
"choose_plan": "Vyberte si svůj tarif",
|
||||
"manage_plan": "Spravovat své předplatné",
|
||||
"current_usage": "Aktuální využití je <strong>{{usage}}</strong>",
|
||||
"two_months_free": "Získejte 2 měsíce zdarma při ročních plánech",
|
||||
"free_plan_option": "Pokračovat s bezplatným plánem",
|
||||
"two_months_free": "Získejte 2 měsíce zdarma při ročních tarifech",
|
||||
"free_plan_option": "Pokračovat s bezplatným tarifem",
|
||||
"free_plan_description": "{{storage}} zdarma navždy",
|
||||
"active": "Aktivní",
|
||||
"subscription_info_free": "Jste na bezplatném plánu",
|
||||
"subscription_info_family": "Jste na plánu rodiny řízeném",
|
||||
"subscription_info_free": "Jste na bezplatném tarifu",
|
||||
"subscription_info_family": "Jste v rodinném tarifu spravovaném",
|
||||
"subscription_info_expired": "Vaše předplatné vypršelo, prosím <a>obnovte</a>",
|
||||
"subscription_info_renewal_cancelled": "Tvé předplatné bude zrušeno dne {{date, date}}",
|
||||
"subscription_info_storage_quota_exceeded": "Překročili jste Vaši kvótu na úložiště, prosím <a>upgradujte</a>",
|
||||
@@ -196,33 +196,33 @@
|
||||
"subscription_purchase_cancelled": "Váš nákup byl zrušen, zkuste to prosím znovu, pokud chcete předplatné",
|
||||
"subscription_purchase_failed": "Nákup předplatného se nezdařil, zkuste to znovu",
|
||||
"subscription_verification_error": "Ověření předplatného selhalo",
|
||||
"update_payment_method_message": "Omlouváme se, platba se nezdařila, když jsme se pokusili účtovat Vaši kartu, prosím aktualizujte Vaši platební metodu a zkuste to znovu",
|
||||
"update_payment_method_message": "Omlouváme se, platba se nezdařila, když jsme se pokusili strhnout částku z vaší karty. Aktualizujte prosím způsob platby a zkuste to znovu",
|
||||
"payment_method_authentication_failed": "Nelze ověřit způsob platby. Zvolte prosím jiný způsob platby a zkuste to znovu",
|
||||
"update_payment_method": "Aktualizovat způsob platby",
|
||||
"monthly": "Měsíčně",
|
||||
"yearly": "Ročně",
|
||||
"month_short": "měs",
|
||||
"year": "rok",
|
||||
"update_subscription": "Změna plánu",
|
||||
"update_subscription_title": "Potvrdit změnu plánu",
|
||||
"update_subscription_message": "Jste si jisti, že chcete změnit svůj plán?",
|
||||
"update_subscription": "Změnit tarif",
|
||||
"update_subscription_title": "Potvrdit změnu tarifu",
|
||||
"update_subscription_message": "Jste si jisti, že chcete změnit svůj tarif?",
|
||||
"cancel_subscription": "Zrušit předplatné",
|
||||
"cancel_subscription_message": "<p>Všechna vaše data budou smazána z našich serverů na konci tohoto fakturačního období.</p><p>Jste si jisti, že chcete zrušit své předplatné?</p>",
|
||||
"cancel_subscription_with_addon_message": "<p>Opravdu chcete zrušit své předplatné?</p>",
|
||||
"subscription_cancel_success": "Předplatné úspěšně zrušeno",
|
||||
"reactivate_subscription": "Znovu aktivovat předplatné",
|
||||
"reactivate_subscription_message": "Po reaktivaci budete účtován {{date, date}}",
|
||||
"reactivate_subscription_message": "Po opětovné aktivaci Vám bude účtována částka dne {date, date}",
|
||||
"subscription_activate_success": "Předplatné úspěšně aktivováno ",
|
||||
"thank_you": "Děkujeme",
|
||||
"cancel_subscription_on_mobile": "Zrušit předplatné mobilu",
|
||||
"cancel_subscription_on_mobile": "Zrušit mobilní předplatné",
|
||||
"cancel_subscription_on_mobile_message": "Zrušte prosím předplatné z mobilní aplikace pro aktivaci předplatného zde",
|
||||
"mail_to_manage_subscription": "Kontaktujte nás prosím na <a>{{emailID}}</a> pro správu předplatného",
|
||||
"rename": "Přejmenovat",
|
||||
"rename_file": "Přejmenovat soubor",
|
||||
"rename_album": "Přejmenovat album",
|
||||
"delete_album": "Vymazat Album",
|
||||
"delete_album_title": "Vymazat Album?",
|
||||
"delete_album_message": "Odstranit také fotky (a videa) přítomné v tomto albu z <a>všech</a> dalších alb, kterých jsou součástí?",
|
||||
"delete_album": "Vymazat album",
|
||||
"delete_album_title": "Vymazat album?",
|
||||
"delete_album_message": "Odstranit také fotky (a videa) přítomné v tomto albu ze <a>všech</a> dalších alb, kterých jsou součástí?",
|
||||
"delete_photos": "Odstranit fotografie",
|
||||
"keep_photos": "Ponechat fotky",
|
||||
"share_album": "Sdílet album",
|
||||
@@ -250,11 +250,11 @@
|
||||
"indexing_fetching": "Synchronizace indexů...",
|
||||
"indexing_people": "Synchronizace lidí...",
|
||||
"syncing_wait": "Synchronizování...",
|
||||
"people_empty_too_few": "Lidé se zobrazí zde, pokud jsou k dispozici dostatečné fotografie osoby",
|
||||
"people_empty_too_few": "Lidé se zde zobrazí, pokud je k dispozici dostatečné množství fotografií dané osoby",
|
||||
"unnamed_person": "Nepojmenovaná osoba",
|
||||
"add_a_name": "Přidat název",
|
||||
"add_a_name": "Přidat jméno",
|
||||
"new_person": "Nová osoba",
|
||||
"add_name": "Přidat název",
|
||||
"add_name": "Přidat jméno",
|
||||
"rename_person": "Přejmenovat osobu",
|
||||
"reset_person_confirm": "Resetovat osobu?",
|
||||
"reset_person_confirm_message": "Název, skupiny obličeje a návrhy pro tuto osobu budou resetovány",
|
||||
@@ -266,10 +266,10 @@
|
||||
"review_suggestions": "Zkontrolovat návrhy",
|
||||
"saved_choices": "Uložené volby",
|
||||
"discard_changes": "Zahodit změny",
|
||||
"discard_changes_confirm_message": "Máte neuložené změny. Tyto změny budou ztraceny, pokud zavřete bez uložení",
|
||||
"discard_changes_confirm_message": "Máte neuložené změny. Pokud zavřete bez uložení, budou ztraceny",
|
||||
"people_suggestions_finding": "Hledání podobných obličejů...",
|
||||
"people_suggestions_empty": "Zatím žádné další návrhy",
|
||||
"info": "Info",
|
||||
"info": "Informace",
|
||||
"file_name": "Název souboru",
|
||||
"caption_placeholder": "Přidat popis",
|
||||
"location": "Poloha",
|
||||
@@ -277,7 +277,7 @@
|
||||
"map": "Mapa",
|
||||
"enable_map": "Povolit mapu",
|
||||
"enable_maps_confirm": "Povolit mapu?",
|
||||
"enable_maps_confirm_message": "<p>Zobrazí vaše fotky na mapě světa.</p><p>Mapa je hostována <a>OpenStreetMap</a>a přesná umístění vašich fotografií nejsou nikdy sdílena.</p><p>Tuto funkci můžete kdykoliv zakázat v Nastavení.</p>",
|
||||
"enable_maps_confirm_message": "<p>Zobrazí vaše fotografie na mapě světa.</p><p>Mapa je hostována službou <a>OpenStreetMap</a> a přesné umístění vašich fotografií není nikdy sdíleno.</p><p>Tuto funkci můžete kdykoli deaktivovat v nastavení.</p>",
|
||||
"disable_map": "Zakázat mapu",
|
||||
"disable_maps_confirm": "Zakázat mapy?",
|
||||
"disable_maps_confirm_message": "<p>Toto zakáže zobrazení vašich fotografií na mapě světa.</p><p>Tuto funkci můžete kdykoli zapnout v nastavení.</p>",
|
||||
@@ -285,60 +285,60 @@
|
||||
"view_exif": "Zobrazit všechna Exif data",
|
||||
"no_exif": "Žádná Exif data",
|
||||
"exif": "Exif",
|
||||
"two_factor": "Dvoufaktorové",
|
||||
"two_factor_authentication": "Dvoufaktorové ověření",
|
||||
"two_factor": "Dvoufázové",
|
||||
"two_factor_authentication": "Dvoufázové ověření",
|
||||
"two_factor_qr_help": "Naskenujte QR kód pomocí vaší oblíbené autentizační aplikace",
|
||||
"two_factor_manual_entry_title": "Zadejte kód ručně",
|
||||
"two_factor_manual_entry_message": "Prosím, zadejte tento kód do vaší oblíbené autentizační aplikace",
|
||||
"scan_qr_title": "Namísto toho skenovat QR kód",
|
||||
"enable_two_factor": "",
|
||||
"enable_two_factor": "Zapnout dvoufázové ověřování",
|
||||
"enable": "Povolit",
|
||||
"enabled": "Povoleno",
|
||||
"lost_2fa_device": "",
|
||||
"lost_2fa_device": "Ztracené zařízení pro dvoufázové ověření",
|
||||
"incorrect_code": "Nesprávný kód",
|
||||
"two_factor_info": "",
|
||||
"two_factor_info": "Přidejte další vrstvu zabezpečení tím, že pro přihlášení k účtu budete vyžadovat více než jen e-mail a heslo",
|
||||
"disable": "Zakázat",
|
||||
"reconfigure": "Znovu nastavit",
|
||||
"reconfigure_two_factor_hint": "",
|
||||
"update_two_factor": "",
|
||||
"update_two_factor_message": "",
|
||||
"reconfigure_two_factor_hint": "Aktualizujte své ověřovací zařízení",
|
||||
"update_two_factor": "Aktualizace dvoufázového ověřování",
|
||||
"update_two_factor_message": "Pokračováním v procesu dojde ke zrušení všech dříve nakonfigurovaných ověřovacích prostředků",
|
||||
"update": "Aktualizovat",
|
||||
"disable_two_factor": "",
|
||||
"disable_two_factor_message": "",
|
||||
"disable_two_factor": "Vypnout dvoufázové ověřování",
|
||||
"disable_two_factor_message": "Opravdu chcete deaktivovat dvoufázové ověřování",
|
||||
"export_data": "Exportovat data",
|
||||
"select_folder": "Vyberte složku",
|
||||
"select_zips": "",
|
||||
"select_zips": "Vybrat soubory .zip",
|
||||
"faq": "Často kladené dotazy",
|
||||
"takeout_hint": "",
|
||||
"takeout_hint": "Rozbalte všechny soubory .zip do stejné složky a nahrajte ji. Nebo nahrajte soubory .zip přímo. Podrobnosti najdete v sekci Časté dotazy.",
|
||||
"destination": "Cíl",
|
||||
"start": "Spustit",
|
||||
"last_export_time": "Čas posledního exportu",
|
||||
"export_again": "",
|
||||
"local_storage_not_accessible": "",
|
||||
"email_already_taken": "E-mail je již obsazen",
|
||||
"live_photos_detected": "",
|
||||
"ignored_uploads": "",
|
||||
"ignored_uploads_hint": "",
|
||||
"export_again": "Znovu exportovat",
|
||||
"local_storage_not_accessible": "Váš prohlížeč nebo doplněk blokuje Ente v ukládání dat do lokálního úložiště",
|
||||
"email_already_taken": "Účet s tímto e-mailem již existuje",
|
||||
"live_photos_detected": "Fotografie a videa z vašich živých fotografií byly sloučeny do jednoho souboru",
|
||||
"ignored_uploads": "Ignorované nahrané soubory",
|
||||
"ignored_uploads_hint": "Tyto byly přeskočeny, protože ve stejném albu jsou soubory se stejným názvem a obsahem",
|
||||
"file_not_uploaded_list": "Následující soubory nebyly nahrány",
|
||||
"failed_uploads": "",
|
||||
"failed_uploads_hint": "",
|
||||
"retry_failed_uploads": "",
|
||||
"thumbnail_generation_failed": "",
|
||||
"thumbnail_generation_failed_hint": "Tyto soubory byly nahrány, ale bohužel jsme pro ně nemohli vygenerovat titulky.",
|
||||
"failed_uploads": "Nepodařilo se nahrát",
|
||||
"failed_uploads_hint": "Po dokončení nahrávání bude k dispozici možnost tyto soubory zkusit nahrát znovu",
|
||||
"retry_failed_uploads": "Opakujte neúspěšné nahrávání",
|
||||
"thumbnail_generation_failed": "Vytvoření miniatury se nezdařilo",
|
||||
"thumbnail_generation_failed_hint": "Tyto soubory byly nahrány, ale bohužel jsme pro ně nemohli vygenerovat miniatury.",
|
||||
"unsupported_files": "Nepodporované soubory",
|
||||
"unsupported_files_hint": "Ente zatím nepodporuje tyto formáty souborů",
|
||||
"blocked_uploads": "",
|
||||
"blocked_uploads_hint": "",
|
||||
"blocked_uploads": "Zablokované nahrávání",
|
||||
"blocked_uploads_hint": "Váš prohlížeč nebo doplněk brání Ente v používání <code>eTags</code> k nahrávání velkých souborů.",
|
||||
"large_files": "Velké soubory",
|
||||
"large_files_hint": "",
|
||||
"insufficient_storage": "",
|
||||
"insufficient_storage_hint": "",
|
||||
"uploads_in_progress": "Probíhá nahrávání",
|
||||
"large_files_hint": "Tyto soubory nebyly nahrány, protože překračují náš maximální limit velikosti souboru",
|
||||
"insufficient_storage": "Nedostatečné úložiště",
|
||||
"insufficient_storage_hint": "Tyto soubory nebyly nahrány, protože překračují maximální velikostní limit vašeho úložného tarifu",
|
||||
"uploads_in_progress": "Probíhající nahrávání",
|
||||
"successful_uploads": "Úspěšně nahrané",
|
||||
"upload_to_album": "Nahrát do alba",
|
||||
"add_to_album": "Přidat do alba",
|
||||
"move_to_album": "Přesunout do alba",
|
||||
"unhide_to_album": "Odkrýt album",
|
||||
"unhide_to_album": "Odkrýt do alba",
|
||||
"restore_to_album": "Obnovit do alba",
|
||||
"section_all": "Vše",
|
||||
"section_uncategorized": "Nezařazené",
|
||||
@@ -359,7 +359,7 @@
|
||||
"remove_from_album": "Odstranit z alba",
|
||||
"move_to_trash": "Přesunout do koše",
|
||||
"trash_files_message": "Vybrané soubory budou odstraněny ze všech alb a přesunuty do koše.",
|
||||
"trash_file_message": "Vybrané soubory budou odstraněny ze všech alb a přesunuty do koše.",
|
||||
"trash_file_message": "Soubor bude odstraněn ze všech alb a přesunut do koše.",
|
||||
"delete_permanently": "Trvale odstranit",
|
||||
"restore": "Obnovit",
|
||||
"empty_trash": "Vyprázdnit koš",
|
||||
@@ -367,9 +367,9 @@
|
||||
"empty_trash_message": "Vybrané soubory budou trvale odstraněny z vašeho účtu Ente.",
|
||||
"leave_album": "Opustit album",
|
||||
"leave_shared_album_title": "Opustit sdílené album?",
|
||||
"leave_shared_album_message": "Opustíte album a přestanete ho vidět.",
|
||||
"leave_shared_album": "Ano, odejít",
|
||||
"confirm_remove_message": "Vybrané položky budou odstraněny z tohoto alba. Položky, které jsou pouze v tomto albu budou přesunuty do nekategorizované.",
|
||||
"leave_shared_album_message": "Opustíte album a přestane být pro vás viditelné.",
|
||||
"leave_shared_album": "Ano, opustit",
|
||||
"confirm_remove_message": "Vybrané položky budou odstraněny z tohoto alba. Položky, které jsou pouze v tomto albu budou přesunuty do Nezařazené.",
|
||||
"confirm_remove_incl_others_message": "Některé položky, které odstraňujete, byly přidány jinými lidmi a k nim ztratíte přístup.",
|
||||
"oldest": "Nejstarší",
|
||||
"last_updated": "Naposledy aktualizováno",
|
||||
@@ -396,33 +396,33 @@
|
||||
"participants_count_one": "1 účastník",
|
||||
"participants_count": "{{count, number}} účastníků",
|
||||
"add_viewers": "Přidat prohlížející",
|
||||
"change_permission_to_viewer": "",
|
||||
"change_permission_to_collaborator": "",
|
||||
"change_permission_to_viewer": "<p>{{selectedEmail}} nebude moci přidávat další fotografie do alba</p><p>Stále však bude moci odstraňovat fotografie, které sám přidal</p>",
|
||||
"change_permission_to_collaborator": "{{selectedEmail}} bude moci přidávat fotografie do alba",
|
||||
"change_permission_title": "Změnit oprávnění?",
|
||||
"confirm_convert_to_viewer": "",
|
||||
"confirm_convert_to_viewer": "Ano, převést na prohlížejícího",
|
||||
"confirm_convert_to_collaborator": "Ano, převést na spolupracovníka",
|
||||
"manage": "Spravovat",
|
||||
"added_as": "",
|
||||
"collaborator_hint": "",
|
||||
"remove_participant": "",
|
||||
"remove_participant_title": "Odstranit?",
|
||||
"remove_participant_message": "",
|
||||
"added_as": "Přidán jako",
|
||||
"collaborator_hint": "Spolupracovníci mohou přidávat fotografie a videa do sdíleného alba",
|
||||
"remove_participant": "Odebrat účastníka",
|
||||
"remove_participant_title": "Odebrat?",
|
||||
"remove_participant_message": "<p>{{selectedEmail}} bude odstraněn z alba</p><p>Všechny fotografie, které přidali, budou také odstraněny</p>",
|
||||
"confirm_remove": "Ano, odstranit",
|
||||
"owner": "Vlastník",
|
||||
"collaborators": "Spolupracovníci",
|
||||
"viewers": "Prohlížející",
|
||||
"add_more": "Přidat další",
|
||||
"or_add_existing": "",
|
||||
"or_add_existing": "Nebo vyberte existující",
|
||||
"not_found": "404 - Nenalezeno",
|
||||
"link_expired": "Platnost odkazu vypršela",
|
||||
"link_expired_message": "",
|
||||
"manage_link": "",
|
||||
"link_request_limit_exceeded": "",
|
||||
"link_expired_message": "Tento odkaz vypršel nebo byl deaktivován",
|
||||
"manage_link": "Spravovat odkaz",
|
||||
"link_request_limit_exceeded": "Toto album bylo zobrazeno na příliš mnoha zařízeních",
|
||||
"allow_downloads": "Povolit stahování",
|
||||
"allow_adding_photos": "Povolit přidávání fotek",
|
||||
"allow_adding_photos_hint": "",
|
||||
"allow_adding_photos_hint": "Umožněte lidem s odkazem přidávat také fotografie do sdíleného alba.",
|
||||
"device_limit": "Limit zařízení",
|
||||
"none": "",
|
||||
"none": "Žádný",
|
||||
"link_expiry": "Platnost odkazu",
|
||||
"never": "Nikdy",
|
||||
"after_time": {
|
||||
@@ -438,15 +438,15 @@
|
||||
"remove_link": "Odstranit odkaz",
|
||||
"create_public_link": "Vytvořit veřejný odkaz",
|
||||
"public_link_created": "Veřejný odkaz vytvořen",
|
||||
"public_link_enabled": "",
|
||||
"collect_photos": "",
|
||||
"disable_file_download": "",
|
||||
"disable_file_download_message": "",
|
||||
"shared_using": "",
|
||||
"public_link_enabled": "Veřejný odkaz povolen",
|
||||
"collect_photos": "Sbírat fotky",
|
||||
"disable_file_download": "Zakázat stahování",
|
||||
"disable_file_download_message": "<p>Opravdu chcete deaktivovat tlačítko pro stahování souborů?</p><p>Uživatelé mohou i nadále pořizovat snímky obrazovky nebo ukládat kopie vašich fotografií pomocí externích nástrojů.</p>",
|
||||
"shared_using": "Sdíleno pomocí <a>{{url}}</a>",
|
||||
"sharing_referral_code": "Použij kód <strong>{{referralCode}}</strong> pro získání 10 GB zdarma",
|
||||
"disable_password": "Zakázat zamknuti heslem",
|
||||
"disable_password_message": "Jste si jisti, že chcete zakázat zamknuti heslem?",
|
||||
"password_lock": "Zamok heslem",
|
||||
"password_lock": "Zámek heslem",
|
||||
"lock": "Uzamknout",
|
||||
"file": "Soubor",
|
||||
"folder": "Složka",
|
||||
@@ -457,17 +457,17 @@
|
||||
"count": "Počet",
|
||||
"deselect_all": "Zrušte výběr všech",
|
||||
"no_duplicates": "Žádné duplikáty",
|
||||
"duplicate_group_description": "{{count}} položek, {{itemSize}} každý",
|
||||
"duplicate_group_description": "{{count}} položek, {{itemSize}} každá",
|
||||
"remove_duplicates_button_count": "Odstranit {{count, number}} položek",
|
||||
"stop_uploads_title": "Zastavit nahrávání?",
|
||||
"stop_uploads_message": "Jste si jisti, že chcete zastavit všechny probíhající nahrávání?",
|
||||
"stop_uploads_message": "Opravdu chcete zastavit všechny probíhající nahrávání?",
|
||||
"yes_stop_uploads": "Ano, zastavit nahrávání",
|
||||
"stop_downloads_title": "Zastavit nahrávání?",
|
||||
"stop_downloads_message": "Jste si jisti, že chcete zastavit všechny probíhající nahrávání?",
|
||||
"yes_stop_downloads": "Ano, zastavit nahrávání",
|
||||
"stop_downloads_message": "Opravdu chcete zastavit všechny probíhající stahování?",
|
||||
"yes_stop_downloads": "Ano, zastavit stahování",
|
||||
"albums": "Alba",
|
||||
"albums_count_one": "1 Album",
|
||||
"albums_count": "{{count, number}} alba",
|
||||
"albums_count": "{{count, number}} Alb",
|
||||
"all_albums": "Všechna alba",
|
||||
"all_hidden_albums": "Všechna skrytá alba",
|
||||
"hidden_albums": "Skrytá alba",
|
||||
@@ -486,63 +486,63 @@
|
||||
"watch_folders": "Sledovat složky",
|
||||
"watched_folders": "Sledované složky",
|
||||
"no_folders_added": "Zatím nebyly přidány žádné složky",
|
||||
"watch_folders_hint_1": "Složky, které sem přidáte, budou automaticky sledovány",
|
||||
"watch_folders_hint_1": "Složky, které sem přidáte, budou automaticky monitorovány",
|
||||
"watch_folders_hint_2": "Nahrát nové soubory na Ente",
|
||||
"watch_folders_hint_3": "Odstranit smazané soubory z Ente",
|
||||
"add_folder": "Přidat složku",
|
||||
"stop_watching": "Zastavit sledování",
|
||||
"stop_watching_folder_title": "Zastavit sledování složky?",
|
||||
"stop_watching_folder_message": "Vaše existující soubory nebudou smazány, ale Ente přestane automaticky aktualizovat připojené album Ente při změnách v této složce.",
|
||||
"stop_watching_folder_message": "Vaše stávající soubory nebudou smazány, ale Ente přestane automaticky aktualizovat propojené album Ente při změnách v této složce.",
|
||||
"yes_stop": "Ano, zastavit",
|
||||
"change_folder": "Změnit složku",
|
||||
"view_logs": "Zobrazit logy",
|
||||
"view_logs_message": "",
|
||||
"weak_device_hint": "",
|
||||
"drag_and_drop_hint": "",
|
||||
"view_logs_message": "<p>Zobrazí se ladicí protokoly, které nám můžete zaslat e-mailem, abychom vám pomohli vyřešit váš problém.</p><p>Upozorňujeme, že budou zahrnuty názvy souborů, které pomohou sledovat problémy s konkrétními soubory.</p>",
|
||||
"weak_device_hint": "Webový prohlížeč, který používáte, není dostatečně výkonný pro šifrování vašich fotografií. Zkuste se přihlásit do Ente na svém počítači nebo si stáhněte mobilní/desktopovou aplikaci Ente.",
|
||||
"drag_and_drop_hint": "Nebo přetáhněte do okna Ente",
|
||||
"authenticate": "Ověřit",
|
||||
"uploaded_to_single_collection": "",
|
||||
"uploaded_to_separate_collections": "",
|
||||
"uploaded_to_single_collection": "Nahráno do jedné sbírky",
|
||||
"uploaded_to_separate_collections": "Nahráno do samostatných sbírek",
|
||||
"nevermind": "Nevadí",
|
||||
"update_available": "Je k dispozici aktualizace",
|
||||
"update_installable_message": "",
|
||||
"update_installable_message": "Nová verze Ente je připravena k instalaci.",
|
||||
"install_now": "Nainstalovat nyní",
|
||||
"install_on_next_launch": "Instalovat při dalším spuštění",
|
||||
"update_available_message": "",
|
||||
"update_available_message": "Byla vydána nová verze programu Ente, ale nelze ji automaticky stáhnout a nainstalovat.",
|
||||
"download_and_install": "Stáhnout a nainstalovat",
|
||||
"ignore_this_version": "Ignorovat tuto verzi",
|
||||
"today": "Dnes",
|
||||
"yesterday": "Včera",
|
||||
"enter_name": "Zadejte jméno",
|
||||
"uploader_name_hint": "",
|
||||
"uploader_name_hint": "Přidejte jméno, aby vaši přátelé věděli, komu za tyto skvělé fotky poděkovat!",
|
||||
"name_placeholder": "Název...",
|
||||
"more_details": "Další podrobnosti",
|
||||
"ml_search": "Strojové učení",
|
||||
"ml_search_description": "",
|
||||
"ml_search_footnote": "",
|
||||
"ml_search_description": "Ente podporuje strojové učení na zařízení pro rozpoznávání obličejů, magické vyhledávání a další pokročilé vyhledávací funkce",
|
||||
"ml_search_footnote": "Magické vyhledávání umožňuje vyhledávat fotografie podle jejich obsahu, např. „auto“, „červené auto“, „Ferrari“",
|
||||
"indexing": "Indexování",
|
||||
"processed": "Zpracováno",
|
||||
"indexing_status_running": "",
|
||||
"indexing_status_fetching": "",
|
||||
"indexing_status_scheduled": "",
|
||||
"indexing_status_running": "Probíhá",
|
||||
"indexing_status_fetching": "Načítání",
|
||||
"indexing_status_scheduled": "Naplánováno",
|
||||
"indexing_status_done": "Hotovo",
|
||||
"ml_search_disable": "Zakázat strojové učení",
|
||||
"ml_search_disable_confirm": "",
|
||||
"ml_search_disable_confirm": "Chcete zakázat strojové učení na všech svých zařízeních?",
|
||||
"ml_consent": "Povolit strojové učení",
|
||||
"ml_consent_title": "",
|
||||
"ml_consent_description": "",
|
||||
"ml_consent_confirmation": "",
|
||||
"ml_consent_title": "Povolit strojové učení?",
|
||||
"ml_consent_description": "<p>Pokud povolíte strojové učení, Ente bude extrahovat informace, jako je geometrie obličeje, ze souborů, včetně těch, které s vámi byly sdíleny.</p><p>Toto se bude dít na vašem zařízení a veškeré generované biometrické informace budou koncově šifrovány.</p><p><a>Klikněte sem pro více informací o této funkci v našich zásadách ochrany osobních údajů</a></p>",
|
||||
"ml_consent_confirmation": "Rozumím a chci povolit strojové učení",
|
||||
"labs": "Experimentální",
|
||||
"password_strength_weak": "Síla hesla: Slabá",
|
||||
"password_strength_moderate": "",
|
||||
"password_strength_moderate": "Síla hesla: Střední",
|
||||
"password_strength_strong": "Síla hesla: Silná",
|
||||
"preferences": "Předvolby",
|
||||
"language": "Jazyk",
|
||||
"advanced": "Pokročilé",
|
||||
"export_directory_does_not_exist": "",
|
||||
"export_directory_does_not_exist_message": "",
|
||||
"export_directory_does_not_exist": "Neplatný adresář pro export",
|
||||
"export_directory_does_not_exist_message": "<p>Zvolený adresář pro export neexistuje.</p><p>Zvolte platný adresář.</p>",
|
||||
"storage_unit": {
|
||||
"b": "B",
|
||||
"kb": "kB",
|
||||
"kb": "KB",
|
||||
"mb": "MB",
|
||||
"gb": "GB",
|
||||
"tb": "TB"
|
||||
@@ -554,27 +554,27 @@
|
||||
"export_renaming_album_folders": "Přejmenování složek alba...",
|
||||
"export_trashing_deleted_files": "Mazání odstraněných souborů...",
|
||||
"export_trashing_deleted_albums": "Mazání odstraněných alb...",
|
||||
"export_progress": "<a>{{progress.success, number}} / {{progress.total, number}}</a> položky synchronizovány",
|
||||
"export_progress": "<a>{{progress.success, number}} / {{progress.total, number}}</a> položek synchronizováno",
|
||||
"pending_items": "Čekající položky",
|
||||
"delete_account_reason_label": "Jaký je váš hlavní důvod, proč mažete svůj účet?",
|
||||
"delete_account_reason_placeholder": "Vybrat důvod",
|
||||
"delete_reason": {
|
||||
"missing_feature": "Chybí klíčová funkce, kterou potřebuji",
|
||||
"behaviour": "Aplikace nebo určitá funkce se nechová tak, jak si myslím, že by měla",
|
||||
"found_another_service": "Našel jsem další službu, která se mi líbí víc",
|
||||
"found_another_service": "Našel jsem jinou službu, která se mi líbí víc",
|
||||
"not_listed": "Můj důvod není uveden"
|
||||
},
|
||||
"delete_account_feedback_label": "Je nám líto, že odcházíte. Vysvětlete prosim, proč odcházíte, abyste nám pomohli zlepšit.",
|
||||
"delete_account_feedback_label": "Je nám líto, že odcházíte. Prosím, vysvětlete nám důvod svého odchodu, abychom se mohli zlepšit.",
|
||||
"delete_account_feedback_placeholder": "Zpětná vazba",
|
||||
"delete_account_confirm_checkbox_label": "Ano, chci trvale odstranit tento účet a všechny jeho údaje",
|
||||
"delete_account_confirm": "Potvrdit odstranění účtu",
|
||||
"delete_account_confirm_message": "<p>Tento účet je propojen s ostatními Ente aplikacemi, pokud jej používáte.</p><p>Vaše nahraná data napříč všemi Ente aplikacemi budou naplánována na smazání a váš účet bude trvale smazán.</p>",
|
||||
"feedback_required": "Pomozte nám s těmito informacemi",
|
||||
"feedback_required_found_another_service": "Co ostatni služba dela lépe?",
|
||||
"recover_two_factor": "Obnovit dvoufaktorové",
|
||||
"delete_account_confirm_message": "<p>Tento účet je propojen s dalšími aplikacemi Ente, pokud je používáte.</p><p>Vaše nahraná data ve všech aplikacích Ente budou naplánována k odstranění a váš účet bude trvale smazán.</p>",
|
||||
"feedback_required": "Prosíme, pomozte nám s těmito informacemi",
|
||||
"feedback_required_found_another_service": "V čem je ta druhá služba lepší?",
|
||||
"recover_two_factor": "Obnovit dvoufázové ověření",
|
||||
"at": "na",
|
||||
"auth_next": "další",
|
||||
"auth_download_mobile_app": "Stáhněte si naši mobilní aplikaci pro správu vašich tajemství",
|
||||
"auth_download_mobile_app": "Stáhněte si naši mobilní aplikaci a spravujte svá tajemství",
|
||||
"no_codes_added_yet": "Zatím nebyly přidány žádné kódy",
|
||||
"hide": "Skrýt",
|
||||
"unhide": "Zobrazit",
|
||||
@@ -591,15 +591,15 @@
|
||||
"christmas": "Vánoce",
|
||||
"christmas_eve": "Vánoční večer",
|
||||
"new_year": "Nový rok",
|
||||
"new_year_eve": "Nový rok",
|
||||
"new_year_eve": "Silvestr",
|
||||
"image": "Obrázek",
|
||||
"video": "Video",
|
||||
"live_photo": "Živá fotografie",
|
||||
"live": "",
|
||||
"edit_image": "",
|
||||
"photo_editor": "",
|
||||
"confirm_editor_close": "",
|
||||
"confirm_editor_close_message": "",
|
||||
"live": "Živé",
|
||||
"edit_image": "Upravit obrázek",
|
||||
"photo_editor": "Editor obrázků",
|
||||
"confirm_editor_close": "Opravdu chcete editor zavřít?",
|
||||
"confirm_editor_close_message": "Stáhněte si upravený obrázek nebo uložte kopii do Ente, aby se změny trvale uložily.",
|
||||
"brightness": "Jas",
|
||||
"contrast": "Kontrast",
|
||||
"saturation": "Sytost",
|
||||
@@ -609,93 +609,93 @@
|
||||
"aspect_ratio": "Poměr stran",
|
||||
"square": "Čtverec",
|
||||
"freehand": "Volný",
|
||||
"apply_crop": "",
|
||||
"apply_crop": "Použít ořez",
|
||||
"rotation": "Otočení",
|
||||
"rotate_left": "Otočit doleva",
|
||||
"rotate_right": "Otočit doprava",
|
||||
"flip": "Překlopit",
|
||||
"flip_vertically": "Překlopit svisle",
|
||||
"flip_horizontally": "Překlopit vodorovně",
|
||||
"download_edited": "",
|
||||
"download_edited": "Stáhnout upravené",
|
||||
"save_a_copy_to_ente": "Uložit kopii na Ente",
|
||||
"restore_original": "Obnovit původní",
|
||||
"photo_edit_required_to_save": "",
|
||||
"restore_original": "Obnovit originál",
|
||||
"photo_edit_required_to_save": "Před uložením je nutné provést alespoň jednu transformaci nebo úpravu barev.",
|
||||
"colors": "Barvy",
|
||||
"invert_colors": "Invertovat barvy",
|
||||
"reset": "Obnovit",
|
||||
"faster_upload": "Rychlejší nahrávání",
|
||||
"faster_upload_description": "",
|
||||
"open_ente_on_startup": "",
|
||||
"faster_upload_description": "Provést nahrávání skrz servery v blízkosti",
|
||||
"open_ente_on_startup": "Otevřít Ente při spuštění",
|
||||
"cast_album_to_tv": "Přehrát album v televizi",
|
||||
"cast_to_tv": "",
|
||||
"enter_cast_pin_code": "",
|
||||
"cast_to_tv": "Přehrát v televizi",
|
||||
"enter_cast_pin_code": "Zadejte kód, který vidíte na televizoru, abyste spárovali toto zařízení.",
|
||||
"code": "Kód",
|
||||
"pair_device_to_tv": "Párovat zařízení",
|
||||
"tv_not_found": "",
|
||||
"cast_auto_pair": "",
|
||||
"cast_auto_pair_description": "",
|
||||
"choose_device_from_browser": "",
|
||||
"cast_auto_pair_failed": "",
|
||||
"tv_not_found": "Televizor nebyl nalezen. Zadali jste správně PIN kód?",
|
||||
"cast_auto_pair": "Automatické párování",
|
||||
"cast_auto_pair_description": "Funkce automatického párování funguje pouze se zařízeními, která podporují Chromecast.",
|
||||
"choose_device_from_browser": "Vyberte zařízení kompatibilní s Chromecast z vyskakovacího okna prohlížeče.",
|
||||
"cast_auto_pair_failed": "Párování Chromecastu se nezdařilo. Zkuste to znovu.",
|
||||
"pair_with_pin": "Párovat s PINem",
|
||||
"pair_with_pin_description": "",
|
||||
"visit_cast_url": "",
|
||||
"passkeys": "",
|
||||
"passkey_fetch_failed": "",
|
||||
"manage_passkey": "",
|
||||
"delete_passkey": "",
|
||||
"delete_passkey_confirmation": "",
|
||||
"rename_passkey": "",
|
||||
"add_passkey": "",
|
||||
"enter_passkey_name": "Zadejte název přístupového hesla",
|
||||
"passkeys_description": "Passkeys je moderní a bezpečný druhý faktor pro váš účet Ente. Používají biometrické ověření na zařízení pro pohodlí a bezpečnost.",
|
||||
"pair_with_pin_description": "Funkce \"Párovat s PINem\" funguje s jakoukoli obrazovkou, na které si chcete prohlížet své album.",
|
||||
"visit_cast_url": "Navštivte <a>{{url}}</a> na zařízení, které chcete spárovat.",
|
||||
"passkeys": "Přístupové klíče",
|
||||
"passkey_fetch_failed": "Nelze získat vaše přístupové klíče.",
|
||||
"manage_passkey": "Spravovat přístupové klíče",
|
||||
"delete_passkey": "Smazat přístupový klíč",
|
||||
"delete_passkey_confirmation": "Opravdu chcete tento přístupový klíč smazat? Tato akce je nevratná.",
|
||||
"rename_passkey": "Přejmenovat přístupový klíč",
|
||||
"add_passkey": "Přidat přístupový klíč",
|
||||
"enter_passkey_name": "Zadejte název přístupového klíče",
|
||||
"passkeys_description": "Přístupového klíče jsou moderní a bezpečné dvoufázové ověření pro váš účet Ente. Využívají biometrické ověření na zařízení pro větší pohodlí a bezpečnost.",
|
||||
"created_at": "Vytvořeno dne",
|
||||
"passkey_add_failed": "Nelze přidat passkey",
|
||||
"passkey_login_failed": "Přihlášení pomocí passkey selhalo",
|
||||
"passkey_add_failed": "Nelze přidat přístupový klíč",
|
||||
"passkey_login_failed": "Přihlášení pomocí přístupového klíče selhalo",
|
||||
"passkey_login_invalid_url": "Přihlašovací URL je neplatná.",
|
||||
"passkey_login_already_claimed_session": "Tato relace již byla ověřena.",
|
||||
"passkey_login_generic_error": "Došlo k chybě při přihlášení s passkey.",
|
||||
"passkey_login_credential_hint": "Pokud je vaše passkey na jiném zařízení, můžete tuto stránku otevřít na tomto zařízení a ověřit.",
|
||||
"passkeys_not_supported": "Passkeys nejsou v tomto prohlížeči podporovány",
|
||||
"passkey_login_generic_error": "Došlo k chybě při přihlášení pomocí přístupového klíče.",
|
||||
"passkey_login_credential_hint": "Pokud jsou vaše přístupové klíče na jiném zařízení, můžete tuto stránku otevřít na daném zařízení a ověřit je.",
|
||||
"passkeys_not_supported": "Tento prohlížeč nepodporuje přístupové klíče",
|
||||
"try_again": "Zkusit znovu",
|
||||
"check_status": "Zkontrolovat stav",
|
||||
"passkey_login_instructions": "Postupujte podle kroků vašeho prohlížeče a pokračujte v přihlašování.",
|
||||
"passkey_login": "Přihlásit se pomocí passkey",
|
||||
"passkey_login": "Přihlášení pomocí přístupového klíče",
|
||||
"totp_login": "Přihlášení s TOTP",
|
||||
"passkey": "Passkey",
|
||||
"passkey_verify_description": "Ověřte své passkey pro přihlášení do vašeho účtu.",
|
||||
"passkey": "Přístupový klíč",
|
||||
"passkey_verify_description": "Ověřte svůj přístupový klíč pro přihlášení do svého účtu.",
|
||||
"waiting_for_verification": "Čekám na ověření...",
|
||||
"verification_still_pending": "Ověřování stále probíhá",
|
||||
"passkey_verified": "Passkey ověřen",
|
||||
"passkey_verified": "Přístupový klíč ověřen",
|
||||
"redirecting_back_to_app": "Přesměrování zpět do aplikace...",
|
||||
"redirect_close_instructions": "Toto okno můžete zavřít po otevření aplikace.",
|
||||
"redirect_again": "Přesměrovat znovu",
|
||||
"autogenerated_first_album_name": "Moje první alba",
|
||||
"autogenerated_default_album_name": "Nový album",
|
||||
"developer_settings": "Vývojářská nastavení",
|
||||
"autogenerated_first_album_name": "Moje první album",
|
||||
"autogenerated_default_album_name": "Nové album",
|
||||
"developer_settings": "Nastavení pro vývojáře",
|
||||
"server_endpoint": "Koncový bod serveru",
|
||||
"more_information": "Více informací",
|
||||
"save": "Uložit",
|
||||
"theme": "Téma",
|
||||
"theme": "Motiv",
|
||||
"system": "Systém",
|
||||
"light": "Světlý",
|
||||
"dark": "Tmavý",
|
||||
"streamable_videos": "",
|
||||
"processing_videos_status": "",
|
||||
"share_favorites": "",
|
||||
"person_favorites": "",
|
||||
"shared_favorites": "",
|
||||
"added_by_name": "",
|
||||
"unowned_files_not_processed": "",
|
||||
"custom_domains": "",
|
||||
"custom_domains_desc": "",
|
||||
"link_your_domain": "",
|
||||
"domain": "",
|
||||
"domain_help": "",
|
||||
"invalid_domain": "",
|
||||
"already_linked_domain": "",
|
||||
"add_dns_entry": "",
|
||||
"add_dns_entry_hint": "",
|
||||
"custom_domains_help": "",
|
||||
"num_1": "",
|
||||
"num_2": ""
|
||||
"streamable_videos": "Videa pro streamování",
|
||||
"processing_videos_status": "Zpracování videí...",
|
||||
"share_favorites": "Sdílet oblíbené",
|
||||
"person_favorites": "Oblíbené položky uživatele {{name}}",
|
||||
"shared_favorites": "Sdílené oblíbené položky",
|
||||
"added_by_name": "Přidáno uživatelem {{name}}",
|
||||
"unowned_files_not_processed": "Soubory přidané jinými uživateli nebyly zpracovány",
|
||||
"custom_domains": "Vlastní domény",
|
||||
"custom_domains_desc": "Při sdílení používejte vlastní doménu",
|
||||
"link_your_domain": "Propojte svou doménu",
|
||||
"domain": "Doména",
|
||||
"domain_help": "Jakákoli doména nebo subdoména, kterou vlastníte",
|
||||
"invalid_domain": "Neplatná doména",
|
||||
"already_linked_domain": "Doména již propojena uživatelem",
|
||||
"add_dns_entry": "Přidat záznam DNS",
|
||||
"add_dns_entry_hint": "U svého poskytovatele DNS přidejte CNAME ze své domény na <b>{{host}}</b>",
|
||||
"custom_domains_help": "Další informace naleznete v <a>nápovědě</a>",
|
||||
"num_1": "1",
|
||||
"num_2": "2"
|
||||
}
|
||||
|
||||
@@ -686,16 +686,16 @@
|
||||
"shared_favorites": "Geteilte Favoriten",
|
||||
"added_by_name": "Von {{name}} hinzugefügt",
|
||||
"unowned_files_not_processed": "Von anderen Benutzern hinzugefügte Dateien wurden nicht verarbeitet",
|
||||
"custom_domains": "",
|
||||
"custom_domains_desc": "",
|
||||
"link_your_domain": "",
|
||||
"domain": "",
|
||||
"domain_help": "",
|
||||
"invalid_domain": "",
|
||||
"already_linked_domain": "",
|
||||
"add_dns_entry": "",
|
||||
"add_dns_entry_hint": "",
|
||||
"custom_domains_help": "",
|
||||
"num_1": "",
|
||||
"num_2": ""
|
||||
"custom_domains": "Benutzerdefinierte Domain",
|
||||
"custom_domains_desc": "Verwenden Sie Ihre eigene Domain beim Teilen",
|
||||
"link_your_domain": "Domain verknüpfen",
|
||||
"domain": "Domain",
|
||||
"domain_help": "Eine beliebige Domain oder Subdomain die Sie besitzen",
|
||||
"invalid_domain": "Ungültige Domain",
|
||||
"already_linked_domain": "Domain wurde von einem Benutzer bereits verknüpft",
|
||||
"add_dns_entry": "DNS-Eintrag hinzufügen",
|
||||
"add_dns_entry_hint": "Fügen Sie bei Ihrem DNS-Provider einen CNAME von Ihrer Domain zu <b>{{host}}</b> hinzu",
|
||||
"custom_domains_help": "Weitere Informationen finden Sie unter <a>Hilfe</a>",
|
||||
"num_1": "1",
|
||||
"num_2": "2"
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@
|
||||
"ok": "OK",
|
||||
"success": "Sukces",
|
||||
"error": "Błąd",
|
||||
"note": "",
|
||||
"note": "Notatka",
|
||||
"offline_message": "Jesteś offline, wyświetlane są wspomnienia z pamięci podręcznej",
|
||||
"install": "Zainstaluj",
|
||||
"install_mobile_app": "Zainstaluj naszą aplikację na system <a>Android</a> lub <b>iOS</b>, aby automatycznie wykonać kopię zapasową wszystkich zdjęć",
|
||||
@@ -686,16 +686,16 @@
|
||||
"shared_favorites": "Udostępnione ulubione",
|
||||
"added_by_name": "Dodane przez {{name}}",
|
||||
"unowned_files_not_processed": "Pliki dodane przez innych użytkowników nie były przetwarzane",
|
||||
"custom_domains": "",
|
||||
"custom_domains_desc": "",
|
||||
"link_your_domain": "",
|
||||
"domain": "",
|
||||
"domain_help": "",
|
||||
"invalid_domain": "",
|
||||
"already_linked_domain": "",
|
||||
"add_dns_entry": "",
|
||||
"add_dns_entry_hint": "",
|
||||
"custom_domains_help": "",
|
||||
"custom_domains": "Domeny własne",
|
||||
"custom_domains_desc": "Podczas udostępniania użyj własnej domeny",
|
||||
"link_your_domain": "Połącz swoją domenę",
|
||||
"domain": "Domena",
|
||||
"domain_help": "Dowolna domena lub subdomena, którą posiadasz",
|
||||
"invalid_domain": "Domena nieprawidłowa",
|
||||
"already_linked_domain": "Domena jest już połączona przez użytkownika",
|
||||
"add_dns_entry": "Dodaj wpis DNS",
|
||||
"add_dns_entry_hint": "Na swoim dostawcy DNS, dodaj CNAME ze swojej domeny do <b>{{host}}</b>",
|
||||
"custom_domains_help": "Aby uzyskać więcej informacji, zobacz <a>pomoc</a>",
|
||||
"num_1": "",
|
||||
"num_2": ""
|
||||
}
|
||||
|
||||