Compare commits
11 Commits
test-concu
...
fix/fetch-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
82a4c28606 | ||
|
|
23aa661324 | ||
|
|
a10a946d1a | ||
|
|
04c9531624 | ||
|
|
d84cc450f1 | ||
|
|
4153848c68 | ||
|
|
f29230c8a6 | ||
|
|
03af60e8eb | ||
|
|
ae827e1406 | ||
|
|
7893ac25fb | ||
|
|
42a03f2556 |
@@ -26,7 +26,7 @@ services:
|
|||||||
env_file: !reset []
|
env_file: !reset []
|
||||||
init:
|
init:
|
||||||
env_file: !reset []
|
env_file: !reset []
|
||||||
command: sh -c 'find /data -maxdepth 1 ! -path "/data/postgres" -type d -exec chown ${UID:-1000}:${GID:-1000} {} + 2>/dev/null || true; for path in /usr/src/app/.pnpm-store /usr/src/app/server/node_modules /usr/src/app/server/dist /usr/src/app/.github/node_modules /usr/src/app/cli/node_modules /usr/src/app/docs/node_modules /usr/src/app/e2e/node_modules /usr/src/app/open-api/typescript-sdk/node_modules /usr/src/app/web/.svelte-kit /usr/src/app/web/coverage /usr/src/app/node_modules /usr/src/app/web/node_modules; do [ -e "$$path" ] && chown -R ${UID:-1000}:${GID:-1000} "$$path" || true; done'
|
command: sh -c 'find /data -maxdepth 1 ! -path "/data/postgres" -type d -exec chown ${UID:-0}:${GID:-0} {} + 2>/dev/null || true; for path in /usr/src/app/.pnpm-store /usr/src/app/server/node_modules /usr/src/app/server/dist /usr/src/app/.github/node_modules /usr/src/app/cli/node_modules /usr/src/app/docs/node_modules /usr/src/app/e2e/node_modules /usr/src/app/open-api/typescript-sdk/node_modules /usr/src/app/web/.svelte-kit /usr/src/app/web/coverage /usr/src/app/node_modules /usr/src/app/web/node_modules; do [ -e "$$path" ] && chown -R ${UID:-0}:${GID:-0} "$$path" || true; done'
|
||||||
immich-machine-learning:
|
immich-machine-learning:
|
||||||
env_file: !reset []
|
env_file: !reset []
|
||||||
database:
|
database:
|
||||||
|
|||||||
2
.github/workflows/close-duplicates.yml
vendored
2
.github/workflows/close-duplicates.yml
vendored
@@ -35,7 +35,7 @@ jobs:
|
|||||||
needs: [get_body, should_run]
|
needs: [get_body, should_run]
|
||||||
if: ${{ needs.should_run.outputs.should_run == 'true' }}
|
if: ${{ needs.should_run.outputs.should_run == 'true' }}
|
||||||
container:
|
container:
|
||||||
image: yshavit/mdq:0.9.0@sha256:4399483ca857fb1a7ed28a596f754c7373e358647de31ce14b79a27c91e1e35e
|
image: ghcr.io/immich-app/mdq:main@sha256:1669c75a5542333ff6b03c13d5fd259ea8d798188b84d5d99093d62e4542eb05
|
||||||
outputs:
|
outputs:
|
||||||
checked: ${{ steps.get_checkbox.outputs.checked }}
|
checked: ${{ steps.get_checkbox.outputs.checked }}
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
9
.github/workflows/merge-translations.yml
vendored
9
.github/workflows/merge-translations.yml
vendored
@@ -1,8 +1,15 @@
|
|||||||
name: Merge translations
|
name: Merge translations
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
workflow_call:
|
||||||
|
secrets:
|
||||||
|
PUSH_O_MATIC_APP_ID:
|
||||||
|
required: true
|
||||||
|
PUSH_O_MATIC_APP_KEY:
|
||||||
|
required: true
|
||||||
|
WEBLATE_TOKEN:
|
||||||
|
required: true
|
||||||
|
|
||||||
permissions: {}
|
permissions: {}
|
||||||
|
|
||||||
|
|||||||
8
Makefile
8
Makefile
@@ -70,11 +70,9 @@ VOLUME_DIRS = \
|
|||||||
|
|
||||||
# Helper function to chown, on error suggest remediation and exit
|
# Helper function to chown, on error suggest remediation and exit
|
||||||
define safe_chown
|
define safe_chown
|
||||||
if chown $(2) $(or $(UID),1000):$(or $(GID),1000) "$(1)" 2>/dev/null; then \
|
CURRENT_OWNER=$$(stat -c '%u:%g' "$(1)" 2>/dev/null || echo "none"); \
|
||||||
true; \
|
DESIRED_OWNER="$(or $(UID),0):$(or $(GID),0)"; \
|
||||||
else \
|
if [ "$$CURRENT_OWNER" != "$$DESIRED_OWNER" ] && ! chown -v $(2) $$DESIRED_OWNER "$(1)" 2>/dev/null; then \
|
||||||
STATUS=$$?; echo "Exit code: $$STATUS $(1)"; \
|
|
||||||
echo "$$STATUS $(1)"; \
|
|
||||||
echo "Permission denied when changing owner of volumes and upload location. Try running 'sudo make prepare-volumes' first."; \
|
echo "Permission denied when changing owner of volumes and upload location. Try running 'sudo make prepare-volumes' first."; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi;
|
fi;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@immich/cli",
|
"name": "@immich/cli",
|
||||||
"version": "2.2.88",
|
"version": "2.2.89",
|
||||||
"description": "Command Line Interface (CLI) for Immich",
|
"description": "Command Line Interface (CLI) for Immich",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"exports": "./dist/index.js",
|
"exports": "./dist/index.js",
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ services:
|
|||||||
# extends:
|
# extends:
|
||||||
# file: hwaccel.transcoding.yml
|
# file: hwaccel.transcoding.yml
|
||||||
# service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
|
# service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
|
||||||
user: '${UID:-1000}:${GID:-1000}'
|
user: '${UID:-0}:${GID:-0}'
|
||||||
build:
|
build:
|
||||||
context: ../
|
context: ../
|
||||||
dockerfile: server/Dockerfile
|
dockerfile: server/Dockerfile
|
||||||
@@ -82,7 +82,7 @@ services:
|
|||||||
image: immich-web-dev:latest
|
image: immich-web-dev:latest
|
||||||
# Needed for rootless docker setup, see https://github.com/moby/moby/issues/45919
|
# Needed for rootless docker setup, see https://github.com/moby/moby/issues/45919
|
||||||
# user: 0:0
|
# user: 0:0
|
||||||
user: '${UID:-1000}:${GID:-1000}'
|
user: '${UID:-0}:${GID:-0}'
|
||||||
build:
|
build:
|
||||||
context: ../
|
context: ../
|
||||||
dockerfile: server/Dockerfile
|
dockerfile: server/Dockerfile
|
||||||
@@ -189,7 +189,7 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
user: 0:0
|
user: 0:0
|
||||||
command: sh -c 'find /data -maxdepth 1 -type d -exec chown ${UID:-1000}:${GID:-1000} {} + 2>/dev/null || true; for path in /usr/src/app/.pnpm-store /usr/src/app/server/node_modules /usr/src/app/server/dist /usr/src/app/.github/node_modules /usr/src/app/cli/node_modules /usr/src/app/docs/node_modules /usr/src/app/e2e/node_modules /usr/src/app/open-api/typescript-sdk/node_modules /usr/src/app/web/.svelte-kit /usr/src/app/web/coverage /usr/src/app/node_modules /usr/src/app/web/node_modules; do [ -e "$$path" ] && chown -R ${UID:-1000}:${GID:-1000} "$$path" || true; done'
|
command: sh -c 'find /data -maxdepth 1 -type d -exec chown ${UID:-0}:${GID:-0} {} + 2>/dev/null || true; for path in /usr/src/app/.pnpm-store /usr/src/app/server/node_modules /usr/src/app/server/dist /usr/src/app/.github/node_modules /usr/src/app/cli/node_modules /usr/src/app/docs/node_modules /usr/src/app/e2e/node_modules /usr/src/app/open-api/typescript-sdk/node_modules /usr/src/app/web/.svelte-kit /usr/src/app/web/coverage /usr/src/app/node_modules /usr/src/app/web/node_modules; do [ -e "$$path" ] && chown -R ${UID:-0}:${GID:-0} "$$path" || true; done'
|
||||||
volumes:
|
volumes:
|
||||||
- pnpm-store:/usr/src/app/.pnpm-store
|
- pnpm-store:/usr/src/app/.pnpm-store
|
||||||
- server-node_modules:/usr/src/app/server/node_modules
|
- server-node_modules:/usr/src/app/server/node_modules
|
||||||
|
|||||||
4
docs/static/archived-versions.json
vendored
4
docs/static/archived-versions.json
vendored
@@ -1,4 +1,8 @@
|
|||||||
[
|
[
|
||||||
|
{
|
||||||
|
"label": "v1.142.0",
|
||||||
|
"url": "https://v1.142.0.archive.immich.app"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": "v1.141.1",
|
"label": "v1.141.1",
|
||||||
"url": "https://v1.141.1.archive.immich.app"
|
"url": "https://v1.141.1.archive.immich.app"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "immich-e2e",
|
"name": "immich-e2e",
|
||||||
"version": "1.141.1",
|
"version": "1.142.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@@ -1473,9 +1473,9 @@
|
|||||||
"permission_onboarding_permission_limited": "写真へのアクセスが制限されています。Immichが写真のバックアップと管理を行うには、システム設定から写真と動画のアクセス権限を変更してください。",
|
"permission_onboarding_permission_limited": "写真へのアクセスが制限されています。Immichが写真のバックアップと管理を行うには、システム設定から写真と動画のアクセス権限を変更してください。",
|
||||||
"permission_onboarding_request": "Immichは写真へのアクセス許可が必要です",
|
"permission_onboarding_request": "Immichは写真へのアクセス許可が必要です",
|
||||||
"person": "人物",
|
"person": "人物",
|
||||||
"person_age_months": "{months, plural, one {# ヶ月} other {# ヶ月}} 前",
|
"person_age_months": "生後 {months, plural, one {# ヶ月} other {# ヶ月}}",
|
||||||
"person_age_year_months": "1 年, {months, plural, one {# ヶ月} other {# ヶ月}} 前",
|
"person_age_year_months": "1 歳と, {months, plural, one {# ヶ月} other {# ヶ月}}",
|
||||||
"person_age_years": "{years, plural, other {# 年}}前",
|
"person_age_years": "{years, plural, other {# 歳}}",
|
||||||
"person_birthdate": "{date}生まれ",
|
"person_birthdate": "{date}生まれ",
|
||||||
"person_hidden": "{name}{hidden, select, true { (非表示)} other {}}",
|
"person_hidden": "{name}{hidden, select, true { (非表示)} other {}}",
|
||||||
"photo_shared_all_users": "写真をすべてのユーザーと共有したか、共有するユーザーがいないようです。",
|
"photo_shared_all_users": "写真をすべてのユーザーと共有したか、共有するユーザーがいないようです。",
|
||||||
@@ -2024,7 +2024,7 @@
|
|||||||
"upload_success": "アップロード成功、新しくアップロードされたアセットを見るにはページを更新してください。",
|
"upload_success": "アップロード成功、新しくアップロードされたアセットを見るにはページを更新してください。",
|
||||||
"upload_to_immich": "Immichにアップロード ({count})",
|
"upload_to_immich": "Immichにアップロード ({count})",
|
||||||
"uploading": "アップロード中",
|
"uploading": "アップロード中",
|
||||||
"uploading_media": "メディアをアップロード",
|
"uploading_media": "メディアをアップロード中",
|
||||||
"url": "URL",
|
"url": "URL",
|
||||||
"usage": "使用容量",
|
"usage": "使用容量",
|
||||||
"use_biometric": "生体認証をご利用ください",
|
"use_biometric": "生体認証をご利用ください",
|
||||||
|
|||||||
42
i18n/ru.json
42
i18n/ru.json
@@ -35,7 +35,7 @@
|
|||||||
"add_url": "Добавить URL",
|
"add_url": "Добавить URL",
|
||||||
"added_to_archive": "Добавлено в архив",
|
"added_to_archive": "Добавлено в архив",
|
||||||
"added_to_favorites": "Добавлено в избранное",
|
"added_to_favorites": "Добавлено в избранное",
|
||||||
"added_to_favorites_count": "Добавлено{count, number} в избранное",
|
"added_to_favorites_count": "{count, plural, one {# объект добавлен} many {# объектов добавлено} other {# объекта добавлено}} в избранное",
|
||||||
"admin": {
|
"admin": {
|
||||||
"add_exclusion_pattern_description": "Добавьте шаблоны исключений. Поддерживаются символы подстановки *, ** и ?. Чтобы игнорировать все файлы в любом каталоге с именем \"Raw\", укажите \"**/Raw/**\". Чтобы игнорировать все файлы, заканчивающиеся на \".tif\", используйте \"**/*.tif\". Чтобы игнорировать путь целиком, укажите \"/path/to/ignore/**\".",
|
"add_exclusion_pattern_description": "Добавьте шаблоны исключений. Поддерживаются символы подстановки *, ** и ?. Чтобы игнорировать все файлы в любом каталоге с именем \"Raw\", укажите \"**/Raw/**\". Чтобы игнорировать все файлы, заканчивающиеся на \".tif\", используйте \"**/*.tif\". Чтобы игнорировать путь целиком, укажите \"/path/to/ignore/**\".",
|
||||||
"admin_user": "Администратор",
|
"admin_user": "Администратор",
|
||||||
@@ -448,7 +448,7 @@
|
|||||||
"all_albums": "Все альбомы",
|
"all_albums": "Все альбомы",
|
||||||
"all_people": "Все люди",
|
"all_people": "Все люди",
|
||||||
"all_videos": "Все видео",
|
"all_videos": "Все видео",
|
||||||
"allow_dark_mode": "Разрешить темный режим",
|
"allow_dark_mode": "Разрешить тёмный режим",
|
||||||
"allow_edits": "Разрешить редактирование",
|
"allow_edits": "Разрешить редактирование",
|
||||||
"allow_public_user_to_download": "Разрешить скачивание",
|
"allow_public_user_to_download": "Разрешить скачивание",
|
||||||
"allow_public_user_to_upload": "Разрешить добавление файлов",
|
"allow_public_user_to_upload": "Разрешить добавление файлов",
|
||||||
@@ -1112,14 +1112,14 @@
|
|||||||
"home_page_add_to_album_conflicts": "Добавлено {added} медиа в альбом {album}. {failed} медиа уже в альбоме.",
|
"home_page_add_to_album_conflicts": "Добавлено {added} медиа в альбом {album}. {failed} медиа уже в альбоме.",
|
||||||
"home_page_add_to_album_err_local": "Пока нельзя добавлять локальные объекты в альбомы, пропуск",
|
"home_page_add_to_album_err_local": "Пока нельзя добавлять локальные объекты в альбомы, пропуск",
|
||||||
"home_page_add_to_album_success": "Добавлено {added} медиа в альбом {album}.",
|
"home_page_add_to_album_success": "Добавлено {added} медиа в альбом {album}.",
|
||||||
"home_page_album_err_partner": "Пока нельзя добавить медиа партнера в альбом, пропуск",
|
"home_page_album_err_partner": "Невозможно добавить объекты партнёра в альбом, пропуск",
|
||||||
"home_page_archive_err_local": "Пока нельзя добавить локальные файлы в архив, пропуск",
|
"home_page_archive_err_local": "Пока нельзя добавить локальные файлы в архив, пропуск",
|
||||||
"home_page_archive_err_partner": "Невозможно архивировать медиа партнера, пропуск",
|
"home_page_archive_err_partner": "Невозможно добавить объекты партнёра в архив, пропуск",
|
||||||
"home_page_building_timeline": "Построение хронологии",
|
"home_page_building_timeline": "Построение хронологии",
|
||||||
"home_page_delete_err_partner": "Невозможно удалить медиа партнера, пропуск",
|
"home_page_delete_err_partner": "Невозможно удалить объекты партнёра, пропуск",
|
||||||
"home_page_delete_remote_err_local": "Невозможно удалить локальные файлы с сервера, пропуск",
|
"home_page_delete_remote_err_local": "Невозможно удалить локальные файлы с сервера, пропуск",
|
||||||
"home_page_favorite_err_local": "Пока нельзя добавить в избранное локальные файлы, пропуск",
|
"home_page_favorite_err_local": "Пока нельзя добавить в избранное локальные файлы, пропуск",
|
||||||
"home_page_favorite_err_partner": "Пока нельзя добавить в избранное медиа партнера, пропуск",
|
"home_page_favorite_err_partner": "Невозможно добавить объекты партнёра в избранное, пропуск",
|
||||||
"home_page_first_time_notice": "Перед началом использования приложения выберите альбом с объектами для резервного копирования, чтобы они отобразились на временной шкале",
|
"home_page_first_time_notice": "Перед началом использования приложения выберите альбом с объектами для резервного копирования, чтобы они отобразились на временной шкале",
|
||||||
"home_page_locked_error_local": "Невозможно переместить локальные объекты в личную папку, пропуск",
|
"home_page_locked_error_local": "Невозможно переместить локальные объекты в личную папку, пропуск",
|
||||||
"home_page_locked_error_partner": "Невозможно переместить объекты партнёра в личную папку, пропуск",
|
"home_page_locked_error_partner": "Невозможно переместить объекты партнёра в личную папку, пропуск",
|
||||||
@@ -1154,8 +1154,8 @@
|
|||||||
"in_albums": "В {count, plural, one {# альбоме} other {# альбомах}}",
|
"in_albums": "В {count, plural, one {# альбоме} other {# альбомах}}",
|
||||||
"in_archive": "В архиве",
|
"in_archive": "В архиве",
|
||||||
"include_archived": "Отображать архив",
|
"include_archived": "Отображать архив",
|
||||||
"include_shared_albums": "Включать общие альбомы",
|
"include_shared_albums": "Включать объекты общих альбомов",
|
||||||
"include_shared_partner_assets": "Включать общие ресурсы партнера",
|
"include_shared_partner_assets": "Включать объекты партнёров",
|
||||||
"individual_share": "Индивидуальная подборка",
|
"individual_share": "Индивидуальная подборка",
|
||||||
"individual_shares": "Подборки",
|
"individual_shares": "Подборки",
|
||||||
"info": "Информация",
|
"info": "Информация",
|
||||||
@@ -1367,7 +1367,7 @@
|
|||||||
"no_duplicates_found": "Дубликатов не обнаружено.",
|
"no_duplicates_found": "Дубликатов не обнаружено.",
|
||||||
"no_exif_info_available": "Нет доступной информации exif",
|
"no_exif_info_available": "Нет доступной информации exif",
|
||||||
"no_explore_results_message": "Загружайте больше фотографий, чтобы наслаждаться вашей коллекцией.",
|
"no_explore_results_message": "Загружайте больше фотографий, чтобы наслаждаться вашей коллекцией.",
|
||||||
"no_favorites_message": "Добавляйте в избранное, чтобы быстро найти свои лучшие фотографии и видео",
|
"no_favorites_message": "Добавляйте объекты в избранное, чтобы быстрее находить свои лучшие фото и видео",
|
||||||
"no_libraries_message": "Создайте внешнюю библиотеку для просмотра в Immich сторонних фотографий и видео",
|
"no_libraries_message": "Создайте внешнюю библиотеку для просмотра в Immich сторонних фотографий и видео",
|
||||||
"no_locked_photos_message": "Фото и видео, перемещенные в личную папку, скрыты и не отображаются при просмотре библиотеки.",
|
"no_locked_photos_message": "Фото и видео, перемещенные в личную папку, скрыты и не отображаются при просмотре библиотеки.",
|
||||||
"no_name": "Нет имени",
|
"no_name": "Нет имени",
|
||||||
@@ -1422,18 +1422,18 @@
|
|||||||
"other_variables": "Другие переменные",
|
"other_variables": "Другие переменные",
|
||||||
"owned": "Мои",
|
"owned": "Мои",
|
||||||
"owner": "Владелец",
|
"owner": "Владелец",
|
||||||
"partner": "Партнер",
|
"partner": "Партнёр",
|
||||||
"partner_can_access": "{partner} имеет доступ",
|
"partner_can_access": "Пользователю {partner} доступны",
|
||||||
"partner_can_access_assets": "Все ваши фотографии и видеозаписи, кроме тех, которые находятся в Архиве и Корзине",
|
"partner_can_access_assets": "Все ваши фото и видео, кроме тех, что находятся в архиве и корзине",
|
||||||
"partner_can_access_location": "Местоположение, где были сделаны ваши фотографии",
|
"partner_can_access_location": "Места, где были сделаны ваши фото и видео",
|
||||||
"partner_list_user_photos": "Фотографии пользователя {user}",
|
"partner_list_user_photos": "Фото и видео пользователя {user}",
|
||||||
"partner_list_view_all": "Посмотреть все",
|
"partner_list_view_all": "Посмотреть все",
|
||||||
"partner_page_empty_message": "У вашего партнёра еще нет доступа к вашим фото.",
|
"partner_page_empty_message": "Вы пока никому из партнёров не предоставили доступ к своим фото и видео.",
|
||||||
"partner_page_no_more_users": "Выбраны все доступные пользователи",
|
"partner_page_no_more_users": "Выбраны все доступные пользователи",
|
||||||
"partner_page_partner_add_failed": "Не удалось добавить партнёра",
|
"partner_page_partner_add_failed": "Не удалось добавить партнёра",
|
||||||
"partner_page_select_partner": "Выбрать партнёра",
|
"partner_page_select_partner": "Выбрать партнёра",
|
||||||
"partner_page_shared_to_title": "Поделиться с...",
|
"partner_page_shared_to_title": "Поделиться с...",
|
||||||
"partner_page_stop_sharing_content": "Пользователь {partner} больше не сможет получить доступ к вашим фото.",
|
"partner_page_stop_sharing_content": "Пользователь {partner} больше не будет иметь доступ к вашим фото и видео.",
|
||||||
"partner_sharing": "Совместное использование",
|
"partner_sharing": "Совместное использование",
|
||||||
"partners": "Партнёры",
|
"partners": "Партнёры",
|
||||||
"password": "Пароль",
|
"password": "Пароль",
|
||||||
@@ -1796,7 +1796,7 @@
|
|||||||
"shared_by": "Поделился",
|
"shared_by": "Поделился",
|
||||||
"shared_by_user": "Владелец: {user}",
|
"shared_by_user": "Владелец: {user}",
|
||||||
"shared_by_you": "Вы поделились",
|
"shared_by_you": "Вы поделились",
|
||||||
"shared_from_partner": "Фото и видео пользователя {partner}",
|
"shared_from_partner": "Пользователь {partner} предоставил вам доступ",
|
||||||
"shared_intent_upload_button_progress_text": "{current} / {total} Загружено",
|
"shared_intent_upload_button_progress_text": "{current} / {total} Загружено",
|
||||||
"shared_link_app_bar_title": "Публичные ссылки",
|
"shared_link_app_bar_title": "Публичные ссылки",
|
||||||
"shared_link_clipboard_copied_massage": "Скопировано в буфер обмена",
|
"shared_link_clipboard_copied_massage": "Скопировано в буфер обмена",
|
||||||
@@ -1833,7 +1833,7 @@
|
|||||||
"shared_links_description": "Делитесь фотографиями и видео по ссылке",
|
"shared_links_description": "Делитесь фотографиями и видео по ссылке",
|
||||||
"shared_photos_and_videos_count": "{assetCount, plural, other {# фото и видео.}}",
|
"shared_photos_and_videos_count": "{assetCount, plural, other {# фото и видео.}}",
|
||||||
"shared_with_me": "Доступные мне",
|
"shared_with_me": "Доступные мне",
|
||||||
"shared_with_partner": "Совместно с {partner}",
|
"shared_with_partner": "Вы предоставили доступ пользователю {partner}",
|
||||||
"sharing": "Общие",
|
"sharing": "Общие",
|
||||||
"sharing_enter_password": "Пожалуйста, введите пароль для просмотра этой страницы.",
|
"sharing_enter_password": "Пожалуйста, введите пароль для просмотра этой страницы.",
|
||||||
"sharing_page_album": "Общие альбомы",
|
"sharing_page_album": "Общие альбомы",
|
||||||
@@ -1851,7 +1851,7 @@
|
|||||||
"show_gallery": "Показать галерею",
|
"show_gallery": "Показать галерею",
|
||||||
"show_hidden_people": "Показать скрытых людей",
|
"show_hidden_people": "Показать скрытых людей",
|
||||||
"show_in_timeline": "Показать на временной шкале",
|
"show_in_timeline": "Показать на временной шкале",
|
||||||
"show_in_timeline_setting_description": "Отображать фото и видео этого пользователя в своей ленте",
|
"show_in_timeline_setting_description": "Отображать фото и видео этого пользователя на своей временной шкале",
|
||||||
"show_keyboard_shortcuts": "Показать сочетания клавиш",
|
"show_keyboard_shortcuts": "Показать сочетания клавиш",
|
||||||
"show_metadata": "Показывать метаданные",
|
"show_metadata": "Показывать метаданные",
|
||||||
"show_or_hide_info": "Показать или скрыть информацию",
|
"show_or_hide_info": "Показать или скрыть информацию",
|
||||||
@@ -1897,9 +1897,9 @@
|
|||||||
"status": "Состояние",
|
"status": "Состояние",
|
||||||
"stop_casting": "Остановить трансляцию",
|
"stop_casting": "Остановить трансляцию",
|
||||||
"stop_motion_photo": "Покадровая анимация",
|
"stop_motion_photo": "Покадровая анимация",
|
||||||
"stop_photo_sharing": "Закрыть доступ партнёра к вашим фото?",
|
"stop_photo_sharing": "Закрыть доступ партнёру?",
|
||||||
"stop_photo_sharing_description": "Пользователь {partner} больше не имеет доступа к вашим фотографиям.",
|
"stop_photo_sharing_description": "Пользователь {partner} больше не имеет доступа к вашим фотографиям.",
|
||||||
"stop_sharing_photos_with_user": "Прекратить делиться своими фотографиями с этим пользователем",
|
"stop_sharing_photos_with_user": "Прекратить делиться своими фото и видео с этим пользователем",
|
||||||
"storage": "Хранилище",
|
"storage": "Хранилище",
|
||||||
"storage_label": "Метка хранилища",
|
"storage_label": "Метка хранилища",
|
||||||
"storage_quota": "Квота хранилища",
|
"storage_quota": "Квота хранилища",
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ platform :android do
|
|||||||
task: 'bundle',
|
task: 'bundle',
|
||||||
build_type: 'Release',
|
build_type: 'Release',
|
||||||
properties: {
|
properties: {
|
||||||
"android.injected.version.code" => 3013,
|
"android.injected.version.code" => 3014,
|
||||||
"android.injected.version.name" => "1.141.1",
|
"android.injected.version.name" => "1.142.0",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
upload_to_play_store(skip_upload_apk: true, skip_upload_images: true, skip_upload_screenshots: true, aab: '../build/app/outputs/bundle/release/app-release.aab')
|
upload_to_play_store(skip_upload_apk: true, skip_upload_images: true, skip_upload_screenshots: true, aab: '../build/app/outputs/bundle/release/app-release.aab')
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
archiveVersion = 1;
|
archiveVersion = 1;
|
||||||
classes = {
|
classes = {
|
||||||
};
|
};
|
||||||
objectVersion = 77;
|
objectVersion = 54;
|
||||||
objects = {
|
objects = {
|
||||||
|
|
||||||
/* Begin PBXBuildFile section */
|
/* Begin PBXBuildFile section */
|
||||||
@@ -133,6 +133,8 @@
|
|||||||
/* Begin PBXFileSystemSynchronizedRootGroup section */
|
/* Begin PBXFileSystemSynchronizedRootGroup section */
|
||||||
B2CF7F8C2DDE4EBB00744BF6 /* Sync */ = {
|
B2CF7F8C2DDE4EBB00744BF6 /* Sync */ = {
|
||||||
isa = PBXFileSystemSynchronizedRootGroup;
|
isa = PBXFileSystemSynchronizedRootGroup;
|
||||||
|
exceptions = (
|
||||||
|
);
|
||||||
path = Sync;
|
path = Sync;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
@@ -519,14 +521,10 @@
|
|||||||
inputFileListPaths = (
|
inputFileListPaths = (
|
||||||
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
|
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
|
||||||
);
|
);
|
||||||
inputPaths = (
|
|
||||||
);
|
|
||||||
name = "[CP] Copy Pods Resources";
|
name = "[CP] Copy Pods Resources";
|
||||||
outputFileListPaths = (
|
outputFileListPaths = (
|
||||||
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
|
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
|
||||||
);
|
);
|
||||||
outputPaths = (
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
shellPath = /bin/sh;
|
shellPath = /bin/sh;
|
||||||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
|
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
|
||||||
@@ -555,14 +553,10 @@
|
|||||||
inputFileListPaths = (
|
inputFileListPaths = (
|
||||||
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
|
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
|
||||||
);
|
);
|
||||||
inputPaths = (
|
|
||||||
);
|
|
||||||
name = "[CP] Embed Pods Frameworks";
|
name = "[CP] Embed Pods Frameworks";
|
||||||
outputFileListPaths = (
|
outputFileListPaths = (
|
||||||
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
|
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
|
||||||
);
|
);
|
||||||
outputPaths = (
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
shellPath = /bin/sh;
|
shellPath = /bin/sh;
|
||||||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
|
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
|
||||||
@@ -711,7 +705,7 @@
|
|||||||
CODE_SIGN_ENTITLEMENTS = Runner/RunnerProfile.entitlements;
|
CODE_SIGN_ENTITLEMENTS = Runner/RunnerProfile.entitlements;
|
||||||
CODE_SIGN_IDENTITY = "Apple Development";
|
CODE_SIGN_IDENTITY = "Apple Development";
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 219;
|
CURRENT_PROJECT_VERSION = 223;
|
||||||
CUSTOM_GROUP_ID = group.app.immich.share;
|
CUSTOM_GROUP_ID = group.app.immich.share;
|
||||||
DEVELOPMENT_TEAM = 2F67MQ8R79;
|
DEVELOPMENT_TEAM = 2F67MQ8R79;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
@@ -855,7 +849,7 @@
|
|||||||
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
|
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
|
||||||
CODE_SIGN_IDENTITY = "Apple Development";
|
CODE_SIGN_IDENTITY = "Apple Development";
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 219;
|
CURRENT_PROJECT_VERSION = 223;
|
||||||
CUSTOM_GROUP_ID = group.app.immich.share;
|
CUSTOM_GROUP_ID = group.app.immich.share;
|
||||||
DEVELOPMENT_TEAM = 2F67MQ8R79;
|
DEVELOPMENT_TEAM = 2F67MQ8R79;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
@@ -885,7 +879,7 @@
|
|||||||
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
|
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
|
||||||
CODE_SIGN_IDENTITY = "Apple Development";
|
CODE_SIGN_IDENTITY = "Apple Development";
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 219;
|
CURRENT_PROJECT_VERSION = 223;
|
||||||
CUSTOM_GROUP_ID = group.app.immich.share;
|
CUSTOM_GROUP_ID = group.app.immich.share;
|
||||||
DEVELOPMENT_TEAM = 2F67MQ8R79;
|
DEVELOPMENT_TEAM = 2F67MQ8R79;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
@@ -919,7 +913,7 @@
|
|||||||
CODE_SIGN_ENTITLEMENTS = WidgetExtension/WidgetExtension.entitlements;
|
CODE_SIGN_ENTITLEMENTS = WidgetExtension/WidgetExtension.entitlements;
|
||||||
CODE_SIGN_IDENTITY = "Apple Development";
|
CODE_SIGN_IDENTITY = "Apple Development";
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 219;
|
CURRENT_PROJECT_VERSION = 223;
|
||||||
DEVELOPMENT_TEAM = 2F67MQ8R79;
|
DEVELOPMENT_TEAM = 2F67MQ8R79;
|
||||||
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
||||||
GCC_C_LANGUAGE_STANDARD = gnu17;
|
GCC_C_LANGUAGE_STANDARD = gnu17;
|
||||||
@@ -962,7 +956,7 @@
|
|||||||
CODE_SIGN_ENTITLEMENTS = WidgetExtension/WidgetExtension.entitlements;
|
CODE_SIGN_ENTITLEMENTS = WidgetExtension/WidgetExtension.entitlements;
|
||||||
CODE_SIGN_IDENTITY = "Apple Development";
|
CODE_SIGN_IDENTITY = "Apple Development";
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 219;
|
CURRENT_PROJECT_VERSION = 223;
|
||||||
DEVELOPMENT_TEAM = 2F67MQ8R79;
|
DEVELOPMENT_TEAM = 2F67MQ8R79;
|
||||||
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
||||||
GCC_C_LANGUAGE_STANDARD = gnu17;
|
GCC_C_LANGUAGE_STANDARD = gnu17;
|
||||||
@@ -1002,7 +996,7 @@
|
|||||||
CODE_SIGN_ENTITLEMENTS = WidgetExtension/WidgetExtension.entitlements;
|
CODE_SIGN_ENTITLEMENTS = WidgetExtension/WidgetExtension.entitlements;
|
||||||
CODE_SIGN_IDENTITY = "Apple Development";
|
CODE_SIGN_IDENTITY = "Apple Development";
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 219;
|
CURRENT_PROJECT_VERSION = 223;
|
||||||
DEVELOPMENT_TEAM = 2F67MQ8R79;
|
DEVELOPMENT_TEAM = 2F67MQ8R79;
|
||||||
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
||||||
GCC_C_LANGUAGE_STANDARD = gnu17;
|
GCC_C_LANGUAGE_STANDARD = gnu17;
|
||||||
@@ -1041,7 +1035,7 @@
|
|||||||
CODE_SIGN_ENTITLEMENTS = ShareExtension/ShareExtension.entitlements;
|
CODE_SIGN_ENTITLEMENTS = ShareExtension/ShareExtension.entitlements;
|
||||||
CODE_SIGN_IDENTITY = "Apple Development";
|
CODE_SIGN_IDENTITY = "Apple Development";
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 219;
|
CURRENT_PROJECT_VERSION = 223;
|
||||||
CUSTOM_GROUP_ID = group.app.immich.share;
|
CUSTOM_GROUP_ID = group.app.immich.share;
|
||||||
DEVELOPMENT_TEAM = 2F67MQ8R79;
|
DEVELOPMENT_TEAM = 2F67MQ8R79;
|
||||||
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
||||||
@@ -1085,7 +1079,7 @@
|
|||||||
CODE_SIGN_ENTITLEMENTS = ShareExtension/ShareExtension.entitlements;
|
CODE_SIGN_ENTITLEMENTS = ShareExtension/ShareExtension.entitlements;
|
||||||
CODE_SIGN_IDENTITY = "Apple Development";
|
CODE_SIGN_IDENTITY = "Apple Development";
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 219;
|
CURRENT_PROJECT_VERSION = 223;
|
||||||
CUSTOM_GROUP_ID = group.app.immich.share;
|
CUSTOM_GROUP_ID = group.app.immich.share;
|
||||||
DEVELOPMENT_TEAM = 2F67MQ8R79;
|
DEVELOPMENT_TEAM = 2F67MQ8R79;
|
||||||
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
||||||
@@ -1126,7 +1120,7 @@
|
|||||||
CODE_SIGN_ENTITLEMENTS = ShareExtension/ShareExtension.entitlements;
|
CODE_SIGN_ENTITLEMENTS = ShareExtension/ShareExtension.entitlements;
|
||||||
CODE_SIGN_IDENTITY = "Apple Development";
|
CODE_SIGN_IDENTITY = "Apple Development";
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 219;
|
CURRENT_PROJECT_VERSION = 223;
|
||||||
CUSTOM_GROUP_ID = group.app.immich.share;
|
CUSTOM_GROUP_ID = group.app.immich.share;
|
||||||
DEVELOPMENT_TEAM = 2F67MQ8R79;
|
DEVELOPMENT_TEAM = 2F67MQ8R79;
|
||||||
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
||||||
|
|||||||
@@ -80,7 +80,7 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.140.0</string>
|
<string>1.142.0</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleURLTypes</key>
|
<key>CFBundleURLTypes</key>
|
||||||
@@ -107,7 +107,7 @@
|
|||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>219</string>
|
<string>223</string>
|
||||||
<key>FLTEnableImpeller</key>
|
<key>FLTEnableImpeller</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>ITSAppUsesNonExemptEncryption</key>
|
<key>ITSAppUsesNonExemptEncryption</key>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ platform :ios do
|
|||||||
path: "./Runner.xcodeproj",
|
path: "./Runner.xcodeproj",
|
||||||
)
|
)
|
||||||
increment_version_number(
|
increment_version_number(
|
||||||
version_number: "1.141.1"
|
version_number: "1.142.0"
|
||||||
)
|
)
|
||||||
increment_build_number(
|
increment_build_number(
|
||||||
build_number: latest_testflight_build_number + 1,
|
build_number: latest_testflight_build_number + 1,
|
||||||
|
|||||||
@@ -169,7 +169,10 @@ class BackgroundWorkerBgService extends BackgroundWorkerFlutterApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
final backgroundSyncManager = _ref.read(backgroundSyncProvider);
|
||||||
_isCleanedUp = true;
|
_isCleanedUp = true;
|
||||||
|
_ref.dispose();
|
||||||
|
|
||||||
_cancellationToken.cancel();
|
_cancellationToken.cancel();
|
||||||
_logger.info("Cleaning up background worker");
|
_logger.info("Cleaning up background worker");
|
||||||
final cleanupFutures = [
|
final cleanupFutures = [
|
||||||
@@ -179,14 +182,13 @@ class BackgroundWorkerBgService extends BackgroundWorkerFlutterApi {
|
|||||||
}),
|
}),
|
||||||
_drift.close(),
|
_drift.close(),
|
||||||
_driftLogger.close(),
|
_driftLogger.close(),
|
||||||
_ref.read(backgroundSyncProvider).cancel(),
|
backgroundSyncManager.cancel(),
|
||||||
_ref.read(backgroundSyncProvider).cancelLocal(),
|
backgroundSyncManager.cancelLocal(),
|
||||||
];
|
];
|
||||||
|
|
||||||
if (_isar.isOpen) {
|
if (_isar.isOpen) {
|
||||||
cleanupFutures.add(_isar.close());
|
cleanupFutures.add(_isar.close());
|
||||||
}
|
}
|
||||||
_ref.dispose();
|
|
||||||
await Future.wait(cleanupFutures);
|
await Future.wait(cleanupFutures);
|
||||||
_logger.info("Background worker resources cleaned up");
|
_logger.info("Background worker resources cleaned up");
|
||||||
} catch (error, stack) {
|
} catch (error, stack) {
|
||||||
@@ -195,35 +197,42 @@ class BackgroundWorkerBgService extends BackgroundWorkerFlutterApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _handleBackup() async {
|
Future<void> _handleBackup() async {
|
||||||
if (!_isBackupEnabled || _isCleanedUp) {
|
await runZonedGuarded(
|
||||||
_logger.info("[_handleBackup 1] Backup is disabled. Skipping backup routine");
|
() async {
|
||||||
return;
|
if (!_isBackupEnabled || _isCleanedUp) {
|
||||||
}
|
_logger.info("[_handleBackup 1] Backup is disabled. Skipping backup routine");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_logger.info("[_handleBackup 2] Enqueuing assets for backup from the background service");
|
_logger.info("[_handleBackup 2] Enqueuing assets for backup from the background service");
|
||||||
|
|
||||||
final currentUser = _ref.read(currentUserProvider);
|
final currentUser = _ref.read(currentUserProvider);
|
||||||
if (currentUser == null) {
|
if (currentUser == null) {
|
||||||
_logger.warning("[_handleBackup 3] No current user found. Skipping backup from background");
|
_logger.warning("[_handleBackup 3] No current user found. Skipping backup from background");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_logger.info("[_handleBackup 4] Resume backup from background");
|
_logger.info("[_handleBackup 4] Resume backup from background");
|
||||||
if (Platform.isIOS) {
|
if (Platform.isIOS) {
|
||||||
return _ref.read(driftBackupProvider.notifier).handleBackupResume(currentUser.id);
|
return _ref.read(driftBackupProvider.notifier).handleBackupResume(currentUser.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
final canPing = await _ref.read(serverInfoServiceProvider).ping();
|
final canPing = await _ref.read(serverInfoServiceProvider).ping();
|
||||||
if (!canPing) {
|
if (!canPing) {
|
||||||
_logger.warning("[_handleBackup 5] Server is not reachable. Skipping backup from background");
|
_logger.warning("[_handleBackup 5] Server is not reachable. Skipping backup from background");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
final networkCapabilities = await _ref.read(connectivityApiProvider).getCapabilities();
|
final networkCapabilities = await _ref.read(connectivityApiProvider).getCapabilities();
|
||||||
|
|
||||||
return _ref
|
return _ref
|
||||||
.read(uploadServiceProvider)
|
.read(uploadServiceProvider)
|
||||||
.startBackupWithHttpClient(currentUser.id, networkCapabilities.hasWifi, _cancellationToken);
|
.startBackupWithHttpClient(currentUser.id, networkCapabilities.hasWifi, _cancellationToken);
|
||||||
|
},
|
||||||
|
(error, stack) {
|
||||||
|
debugPrint("Error in backup zone $error, $stack");
|
||||||
|
},
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _syncAssets({Duration? hashTimeout}) async {
|
Future<void> _syncAssets({Duration? hashTimeout}) async {
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||||
|
import 'package:immich_mobile/domain/models/store.model.dart';
|
||||||
import 'package:immich_mobile/domain/services/sync_linked_album.service.dart';
|
import 'package:immich_mobile/domain/services/sync_linked_album.service.dart';
|
||||||
import 'package:immich_mobile/providers/user.provider.dart';
|
import 'package:immich_mobile/entities/store.entity.dart';
|
||||||
|
|
||||||
Future<void> syncLinkedAlbumsIsolated(ProviderContainer ref) {
|
Future<void> syncLinkedAlbumsIsolated(ProviderContainer ref) {
|
||||||
final user = ref.read(currentUserProvider);
|
final user = Store.tryGet(StoreKey.currentUser);
|
||||||
if (user == null) {
|
if (user == null) {
|
||||||
return Future.value();
|
return Future.value();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -595,7 +595,7 @@ extension on String {
|
|||||||
GroupAssetsBy.none => throw ArgumentError("GroupAssetsBy.none is not supported for date formatting"),
|
GroupAssetsBy.none => throw ArgumentError("GroupAssetsBy.none is not supported for date formatting"),
|
||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
return DateFormat(format).parse(this);
|
return DateFormat(format, 'en').parse(this);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw FormatException("Invalid date format: $this", e);
|
throw FormatException("Invalid date format: $this", e);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ void main() async {
|
|||||||
await Bootstrap.initDomain(isar, drift, logDb);
|
await Bootstrap.initDomain(isar, drift, logDb);
|
||||||
await initApp();
|
await initApp();
|
||||||
// Warm-up isolate pool for worker manager
|
// Warm-up isolate pool for worker manager
|
||||||
await workerManager.init(dynamicSpawning: false);
|
await workerManager.init(dynamicSpawning: true);
|
||||||
await migrateDatabaseIfNeeded(isar, drift);
|
await migrateDatabaseIfNeeded(isar, drift);
|
||||||
HttpSSLOptions.apply();
|
HttpSSLOptions.apply();
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import 'package:immich_mobile/providers/app_settings.provider.dart';
|
|||||||
import 'package:immich_mobile/providers/backup/drift_backup.provider.dart';
|
import 'package:immich_mobile/providers/backup/drift_backup.provider.dart';
|
||||||
import 'package:immich_mobile/providers/infrastructure/asset.provider.dart';
|
import 'package:immich_mobile/providers/infrastructure/asset.provider.dart';
|
||||||
import 'package:immich_mobile/providers/infrastructure/storage.provider.dart';
|
import 'package:immich_mobile/providers/infrastructure/storage.provider.dart';
|
||||||
|
import 'package:immich_mobile/repositories/asset_media.repository.dart';
|
||||||
import 'package:immich_mobile/repositories/upload.repository.dart';
|
import 'package:immich_mobile/repositories/upload.repository.dart';
|
||||||
import 'package:immich_mobile/services/api.service.dart';
|
import 'package:immich_mobile/services/api.service.dart';
|
||||||
import 'package:immich_mobile/services/app_settings.service.dart';
|
import 'package:immich_mobile/services/app_settings.service.dart';
|
||||||
@@ -30,6 +31,7 @@ final uploadServiceProvider = Provider((ref) {
|
|||||||
ref.watch(storageRepositoryProvider),
|
ref.watch(storageRepositoryProvider),
|
||||||
ref.watch(localAssetRepository),
|
ref.watch(localAssetRepository),
|
||||||
ref.watch(appSettingsServiceProvider),
|
ref.watch(appSettingsServiceProvider),
|
||||||
|
ref.watch(assetMediaRepositoryProvider),
|
||||||
);
|
);
|
||||||
|
|
||||||
ref.onDispose(service.dispose);
|
ref.onDispose(service.dispose);
|
||||||
@@ -43,6 +45,7 @@ class UploadService {
|
|||||||
this._storageRepository,
|
this._storageRepository,
|
||||||
this._localAssetRepository,
|
this._localAssetRepository,
|
||||||
this._appSettingsService,
|
this._appSettingsService,
|
||||||
|
this._assetMediaRepository,
|
||||||
) {
|
) {
|
||||||
_uploadRepository.onUploadStatus = _onUploadCallback;
|
_uploadRepository.onUploadStatus = _onUploadCallback;
|
||||||
_uploadRepository.onTaskProgress = _onTaskProgressCallback;
|
_uploadRepository.onTaskProgress = _onTaskProgressCallback;
|
||||||
@@ -53,6 +56,7 @@ class UploadService {
|
|||||||
final StorageRepository _storageRepository;
|
final StorageRepository _storageRepository;
|
||||||
final DriftLocalAssetRepository _localAssetRepository;
|
final DriftLocalAssetRepository _localAssetRepository;
|
||||||
final AppSettingsService _appSettingsService;
|
final AppSettingsService _appSettingsService;
|
||||||
|
final AssetMediaRepository _assetMediaRepository;
|
||||||
final Logger _logger = Logger('UploadService');
|
final Logger _logger = Logger('UploadService');
|
||||||
|
|
||||||
final StreamController<TaskStatusUpdate> _taskStatusController = StreamController<TaskStatusUpdate>.broadcast();
|
final StreamController<TaskStatusUpdate> _taskStatusController = StreamController<TaskStatusUpdate>.broadcast();
|
||||||
@@ -321,7 +325,8 @@ class UploadService {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
final originalFileName = entity.isLivePhoto ? p.setExtension(asset.name, p.extension(file.path)) : asset.name;
|
final fileName = await _assetMediaRepository.getOriginalFilename(asset.id) ?? asset.name;
|
||||||
|
final originalFileName = entity.isLivePhoto ? p.setExtension(fileName, p.extension(file.path)) : fileName;
|
||||||
|
|
||||||
String metadata = UploadTaskMetadata(
|
String metadata = UploadTaskMetadata(
|
||||||
localAssetId: asset.id,
|
localAssetId: asset.id,
|
||||||
@@ -359,12 +364,13 @@ class UploadService {
|
|||||||
final fields = {'livePhotoVideoId': livePhotoVideoId};
|
final fields = {'livePhotoVideoId': livePhotoVideoId};
|
||||||
|
|
||||||
final requiresWiFi = _shouldRequireWiFi(asset);
|
final requiresWiFi = _shouldRequireWiFi(asset);
|
||||||
|
final originalFileName = await _assetMediaRepository.getOriginalFilename(asset.id) ?? asset.name;
|
||||||
|
|
||||||
return buildUploadTask(
|
return buildUploadTask(
|
||||||
file,
|
file,
|
||||||
createdAt: asset.createdAt,
|
createdAt: asset.createdAt,
|
||||||
modifiedAt: asset.updatedAt,
|
modifiedAt: asset.updatedAt,
|
||||||
originalFileName: asset.name,
|
originalFileName: originalFileName,
|
||||||
deviceAssetId: asset.id,
|
deviceAssetId: asset.id,
|
||||||
fields: fields,
|
fields: fields,
|
||||||
group: kBackupLivePhotoGroup,
|
group: kBackupLivePhotoGroup,
|
||||||
|
|||||||
@@ -31,55 +31,62 @@ Cancelable<T?> runInIsolateGentle<T>({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return workerManager.executeGentle((cancelledChecker) async {
|
return workerManager.executeGentle((cancelledChecker) async {
|
||||||
BackgroundIsolateBinaryMessenger.ensureInitialized(token);
|
await runZonedGuarded(
|
||||||
DartPluginRegistrant.ensureInitialized();
|
() async {
|
||||||
|
BackgroundIsolateBinaryMessenger.ensureInitialized(token);
|
||||||
|
DartPluginRegistrant.ensureInitialized();
|
||||||
|
|
||||||
final (isar, drift, logDb) = await Bootstrap.initDB();
|
final (isar, drift, logDb) = await Bootstrap.initDB();
|
||||||
await Bootstrap.initDomain(isar, drift, logDb, shouldBufferLogs: false);
|
await Bootstrap.initDomain(isar, drift, logDb, shouldBufferLogs: false);
|
||||||
final ref = ProviderContainer(
|
final ref = ProviderContainer(
|
||||||
overrides: [
|
overrides: [
|
||||||
// TODO: Remove once isar is removed
|
// TODO: Remove once isar is removed
|
||||||
dbProvider.overrideWithValue(isar),
|
dbProvider.overrideWithValue(isar),
|
||||||
isarProvider.overrideWithValue(isar),
|
isarProvider.overrideWithValue(isar),
|
||||||
cancellationProvider.overrideWithValue(cancelledChecker),
|
cancellationProvider.overrideWithValue(cancelledChecker),
|
||||||
driftProvider.overrideWith(driftOverride(drift)),
|
driftProvider.overrideWith(driftOverride(drift)),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
Logger log = Logger("IsolateLogger");
|
Logger log = Logger("IsolateLogger");
|
||||||
|
|
||||||
try {
|
|
||||||
HttpSSLOptions.apply(applyNative: false);
|
|
||||||
return await computation(ref);
|
|
||||||
} on CanceledError {
|
|
||||||
log.warning("Computation cancelled ${debugLabel == null ? '' : ' for $debugLabel'}");
|
|
||||||
} catch (error, stack) {
|
|
||||||
log.severe("Error in runInIsolateGentle ${debugLabel == null ? '' : ' for $debugLabel'}", error, stack);
|
|
||||||
} finally {
|
|
||||||
try {
|
|
||||||
await LogService.I.dispose();
|
|
||||||
await logDb.close();
|
|
||||||
await ref.read(driftProvider).close();
|
|
||||||
|
|
||||||
// Close Isar safely
|
|
||||||
try {
|
try {
|
||||||
final isar = ref.read(isarProvider);
|
HttpSSLOptions.apply(applyNative: false);
|
||||||
if (isar.isOpen) {
|
return await computation(ref);
|
||||||
await isar.close();
|
} on CanceledError {
|
||||||
}
|
log.warning("Computation cancelled ${debugLabel == null ? '' : ' for $debugLabel'}");
|
||||||
} catch (e) {
|
} catch (error, stack) {
|
||||||
debugPrint("Error closing Isar: $e");
|
log.severe("Error in runInIsolateGentle ${debugLabel == null ? '' : ' for $debugLabel'}", error, stack);
|
||||||
}
|
} finally {
|
||||||
|
try {
|
||||||
|
ref.dispose();
|
||||||
|
|
||||||
ref.dispose();
|
await LogService.I.dispose();
|
||||||
} catch (error, stack) {
|
await logDb.close();
|
||||||
debugPrint("Error closing resources in isolate: $error, $stack");
|
await drift.close();
|
||||||
} finally {
|
|
||||||
ref.dispose();
|
// Close Isar safely
|
||||||
// Delay to ensure all resources are released
|
try {
|
||||||
await Future.delayed(const Duration(seconds: 2));
|
if (isar.isOpen) {
|
||||||
}
|
await isar.close();
|
||||||
}
|
}
|
||||||
|
} catch (e) {
|
||||||
|
debugPrint("Error closing Isar: $e");
|
||||||
|
}
|
||||||
|
} catch (error, stack) {
|
||||||
|
debugPrint("Error closing resources in isolate: $error, $stack");
|
||||||
|
} finally {
|
||||||
|
ref.dispose();
|
||||||
|
// Delay to ensure all resources are released
|
||||||
|
await Future.delayed(const Duration(seconds: 2));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
},
|
||||||
|
(error, stack) {
|
||||||
|
debugPrint("Error in isolate zone: $error, $stack");
|
||||||
|
},
|
||||||
|
);
|
||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
2
mobile/openapi/README.md
generated
2
mobile/openapi/README.md
generated
@@ -3,7 +3,7 @@ Immich API
|
|||||||
|
|
||||||
This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 1.141.1
|
- API version: 1.142.0
|
||||||
- Generator version: 7.8.0
|
- Generator version: 7.8.0
|
||||||
- Build package: org.openapitools.codegen.languages.DartClientCodegen
|
- Build package: org.openapitools.codegen.languages.DartClientCodegen
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ name: immich_mobile
|
|||||||
description: Immich - selfhosted backup media file on mobile phone
|
description: Immich - selfhosted backup media file on mobile phone
|
||||||
|
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
version: 1.141.1+3013
|
version: 1.142.0+3014
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=3.8.0 <4.0.0'
|
sdk: '>=3.8.0 <4.0.0'
|
||||||
|
|||||||
@@ -9858,7 +9858,7 @@
|
|||||||
"info": {
|
"info": {
|
||||||
"title": "Immich",
|
"title": "Immich",
|
||||||
"description": "Immich API",
|
"description": "Immich API",
|
||||||
"version": "1.141.1",
|
"version": "1.142.0",
|
||||||
"contact": {}
|
"contact": {}
|
||||||
},
|
},
|
||||||
"tags": [],
|
"tags": [],
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@immich/sdk",
|
"name": "@immich/sdk",
|
||||||
"version": "1.141.1",
|
"version": "1.142.0",
|
||||||
"description": "Auto-generated TypeScript SDK for the Immich API",
|
"description": "Auto-generated TypeScript SDK for the Immich API",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./build/index.js",
|
"main": "./build/index.js",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* Immich
|
* Immich
|
||||||
* 1.141.1
|
* 1.142.0
|
||||||
* DO NOT MODIFY - This file has been generated using oazapfts.
|
* DO NOT MODIFY - This file has been generated using oazapfts.
|
||||||
* See https://www.npmjs.com/package/oazapfts
|
* See https://www.npmjs.com/package/oazapfts
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "immich",
|
"name": "immich",
|
||||||
"version": "1.141.1",
|
"version": "1.142.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"author": "",
|
"author": "",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "immich-web",
|
"name": "immich-web",
|
||||||
"version": "1.141.1",
|
"version": "1.142.0",
|
||||||
"license": "GNU Affero General Public License version 3",
|
"license": "GNU Affero General Public License version 3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -353,7 +353,7 @@
|
|||||||
<div
|
<div
|
||||||
class="rounded-full w-[40px] h-[40px] bg-immich-primary text-white flex justify-center items-center font-mono font-bold shadow-lg hover:bg-immich-dark-primary transition-all duration-200 hover:text-immich-dark-bg opacity-90"
|
class="rounded-full w-[40px] h-[40px] bg-immich-primary text-white flex justify-center items-center font-mono font-bold shadow-lg hover:bg-immich-dark-primary transition-all duration-200 hover:text-immich-dark-bg opacity-90"
|
||||||
>
|
>
|
||||||
{feature.properties?.point_count}
|
{feature.properties?.point_count?.toLocaleString()}
|
||||||
</div>
|
</div>
|
||||||
{/snippet}
|
{/snippet}
|
||||||
</MarkerLayer>
|
</MarkerLayer>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { locale } from '$lib/stores/preferences.store';
|
import { locale } from '$lib/stores/preferences.store';
|
||||||
import { parseUtcDate } from '$lib/utils/date-time';
|
import { parseUtcDate } from '$lib/utils/date-time';
|
||||||
import { formatGroupTitle } from '$lib/utils/timeline-util';
|
import { formatGroupTitle, toISOYearMonthUTC } from '$lib/utils/timeline-util';
|
||||||
import { DateTime } from 'luxon';
|
import { DateTime } from 'luxon';
|
||||||
|
|
||||||
describe('formatGroupTitle', () => {
|
describe('formatGroupTitle', () => {
|
||||||
@@ -77,3 +77,13 @@ describe('formatGroupTitle', () => {
|
|||||||
expect(formatGroupTitle(date)).toBe('Invalid DateTime');
|
expect(formatGroupTitle(date)).toBe('Invalid DateTime');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('toISOYearMonthUTC', () => {
|
||||||
|
it('should prefix year with 0s', () => {
|
||||||
|
expect(toISOYearMonthUTC({ year: 28, month: 1 })).toBe('0028-01-01T00:00:00.000Z');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should prefix month with 0s', () => {
|
||||||
|
expect(toISOYearMonthUTC({ year: 2025, month: 1 })).toBe('2025-01-01T00:00:00.000Z');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|||||||
@@ -94,8 +94,11 @@ export const fromTimelinePlainYearMonth = (timelineYearMonth: TimelineYearMonth)
|
|||||||
{ zone: 'local', locale: get(locale) },
|
{ zone: 'local', locale: get(locale) },
|
||||||
) as DateTime<true>;
|
) as DateTime<true>;
|
||||||
|
|
||||||
export const toISOYearMonthUTC = ({ year, month }: TimelineYearMonth): string =>
|
export const toISOYearMonthUTC = ({ year, month }: TimelineYearMonth): string => {
|
||||||
`${year}-${month.toString().padStart(2, '0')}-01T00:00:00.000Z`;
|
const yearFull = `${year}`.padStart(4, '0');
|
||||||
|
const monthFull = `${month}`.padStart(2, '0');
|
||||||
|
return `${yearFull}-${monthFull}-01T00:00:00.000Z`;
|
||||||
|
};
|
||||||
|
|
||||||
export function formatMonthGroupTitle(_date: DateTime): string {
|
export function formatMonthGroupTitle(_date: DateTime): string {
|
||||||
if (!_date.isValid) {
|
if (!_date.isValid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user