From 2c50f2e24475856b670c025d8ea6748dde857410 Mon Sep 17 00:00:00 2001 From: Snowknight26 Date: Thu, 6 Nov 2025 08:24:47 -0600 Subject: [PATCH 001/300] fix(web): add URLs to results in large files utility (#23617) fix(web): add URLs to results in large files --- .../[[assetId=id]]/+page.svelte | 38 ++++++++++++------- .../[[photos=photos]]/[[assetId=id]]/+page.ts | 6 ++- 2 files changed, 29 insertions(+), 15 deletions(-) diff --git a/web/src/routes/(user)/utilities/large-files/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/utilities/large-files/[[photos=photos]]/[[assetId=id]]/+page.svelte index 40c70c9df2..06f075feb6 100644 --- a/web/src/routes/(user)/utilities/large-files/[[photos=photos]]/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/utilities/large-files/[[photos=photos]]/[[assetId=id]]/+page.svelte @@ -8,6 +8,7 @@ import { navigate } from '$lib/utils/navigation'; import { t } from 'svelte-i18n'; import type { PageData } from './$types'; + import type { AssetResponseDto } from '@immich/sdk'; interface Props { data: PageData; @@ -16,35 +17,42 @@ let { data }: Props = $props(); let assets = $derived(data.assets); + let asset = $derived(data.asset); const { isViewing: showAssetViewer, asset: viewingAsset, setAsset } = assetViewingStore; const getAssetIndex = (id: string) => assets.findIndex((asset) => asset.id === id); - const onNext = () => { + $effect(() => { + if (asset) { + setAsset(asset); + } + }); + + const onNext = async () => { const index = getAssetIndex($viewingAsset.id) + 1; if (index >= assets.length) { - return Promise.resolve(false); + return false; } - setAsset(assets[index]); - return Promise.resolve(true); + await onViewAsset(assets[index]); + return true; }; - const onPrevious = () => { + const onPrevious = async () => { const index = getAssetIndex($viewingAsset.id) - 1; if (index < 0) { - return Promise.resolve(false); + return false; } - setAsset(assets[index]); - return Promise.resolve(true); + await onViewAsset(assets[index]); + return true; }; - const onRandom = () => { + const onRandom = async () => { if (assets.length <= 0) { - return Promise.resolve(undefined); + return undefined; } const index = Math.floor(Math.random() * assets.length); const asset = assets[index]; - setAsset(asset); - return Promise.resolve(asset); + await onViewAsset(asset); + return asset; }; const onAction = (payload: Action) => { @@ -53,13 +61,17 @@ $showAssetViewer = false; } }; + + const onViewAsset = async (asset: AssetResponseDto) => { + await navigate({ targetRoute: 'current', assetId: asset.id }); + };
{#if assets && data.assets.length > 0} {#each assets as asset (asset.id)} - setAsset(asset)} /> + {/each} {:else}

diff --git a/web/src/routes/(user)/utilities/large-files/[[photos=photos]]/[[assetId=id]]/+page.ts b/web/src/routes/(user)/utilities/large-files/[[photos=photos]]/[[assetId=id]]/+page.ts index 6780fdb023..19754bcff2 100644 --- a/web/src/routes/(user)/utilities/large-files/[[photos=photos]]/[[assetId=id]]/+page.ts +++ b/web/src/routes/(user)/utilities/large-files/[[photos=photos]]/[[assetId=id]]/+page.ts @@ -1,15 +1,17 @@ import { authenticate } from '$lib/utils/auth'; import { getFormatter } from '$lib/utils/i18n'; +import { getAssetInfoFromParam } from '$lib/utils/navigation'; import { searchLargeAssets } from '@immich/sdk'; import type { PageLoad } from './$types'; -export const load = (async ({ url }) => { +export const load = (async ({ params, url }) => { await authenticate(url); - const assets = await searchLargeAssets({ minFileSize: 0 }); + const [assets, asset] = await Promise.all([searchLargeAssets({ minFileSize: 0 }), getAssetInfoFromParam(params)]); const $t = await getFormatter(); return { assets, + asset, meta: { title: $t('large_files'), }, From a4ae86ce294683d85723b0c11a6c28d32a1be401 Mon Sep 17 00:00:00 2001 From: Mert <101130780+mertalev@users.noreply.github.com> Date: Thu, 6 Nov 2025 12:55:11 -0500 Subject: [PATCH 002/300] feat(ml): add preload and fp16 settings for ocr (#23576) --- docs/docs/install/environment-variables.md | 48 ++++++++++--------- machine-learning/immich_ml/config.py | 9 ++++ machine-learning/immich_ml/main.py | 14 ++++++ machine-learning/immich_ml/schemas.py | 5 ++ machine-learning/immich_ml/sessions/ort.py | 8 ++-- machine-learning/test_main.py | 55 ++++++++++++++++++++-- 6 files changed, 109 insertions(+), 30 deletions(-) diff --git a/docs/docs/install/environment-variables.md b/docs/docs/install/environment-variables.md index 78a5289bf4..55c226d507 100644 --- a/docs/docs/install/environment-variables.md +++ b/docs/docs/install/environment-variables.md @@ -149,29 +149,31 @@ Redis (Sentinel) URL example JSON before encoding: ## Machine Learning -| Variable | Description | Default | Containers | -| :---------------------------------------------------------- | :-------------------------------------------------------------------------------------------------- | :-----------------------------: | :--------------- | -| `MACHINE_LEARNING_MODEL_TTL` | Inactivity time (s) before a model is unloaded (disabled if \<= 0) | `300` | machine learning | -| `MACHINE_LEARNING_MODEL_TTL_POLL_S` | Interval (s) between checks for the model TTL (disabled if \<= 0) | `10` | machine learning | -| `MACHINE_LEARNING_CACHE_FOLDER` | Directory where models are downloaded | `/cache` | machine learning | -| `MACHINE_LEARNING_REQUEST_THREADS`\*1 | Thread count of the request thread pool (disabled if \<= 0) | number of CPU cores | machine learning | -| `MACHINE_LEARNING_MODEL_INTER_OP_THREADS` | Number of parallel model operations | `1` | machine learning | -| `MACHINE_LEARNING_MODEL_INTRA_OP_THREADS` | Number of threads for each model operation | `2` | machine learning | -| `MACHINE_LEARNING_WORKERS`\*2 | Number of worker processes to spawn | `1` | machine learning | -| `MACHINE_LEARNING_HTTP_KEEPALIVE_TIMEOUT_S`\*3 | HTTP Keep-alive time in seconds | `2` | machine learning | -| `MACHINE_LEARNING_WORKER_TIMEOUT` | Maximum time (s) of unresponsiveness before a worker is killed | `120` (`300` if using OpenVINO) | machine learning | -| `MACHINE_LEARNING_PRELOAD__CLIP__TEXTUAL` | Comma-separated list of (textual) CLIP model(s) to preload and cache | | machine learning | -| `MACHINE_LEARNING_PRELOAD__CLIP__VISUAL` | Comma-separated list of (visual) CLIP model(s) to preload and cache | | machine learning | -| `MACHINE_LEARNING_PRELOAD__FACIAL_RECOGNITION__RECOGNITION` | Comma-separated list of (recognition) facial recognition model(s) to preload and cache | | machine learning | -| `MACHINE_LEARNING_PRELOAD__FACIAL_RECOGNITION__DETECTION` | Comma-separated list of (detection) facial recognition model(s) to preload and cache | | machine learning | -| `MACHINE_LEARNING_ANN` | Enable ARM-NN hardware acceleration if supported | `True` | machine learning | -| `MACHINE_LEARNING_ANN_FP16_TURBO` | Execute operations in FP16 precision: increasing speed, reducing precision (applies only to ARM-NN) | `False` | machine learning | -| `MACHINE_LEARNING_ANN_TUNING_LEVEL` | ARM-NN GPU tuning level (1: rapid, 2: normal, 3: exhaustive) | `2` | machine learning | -| `MACHINE_LEARNING_DEVICE_IDS`\*4 | Device IDs to use in multi-GPU environments | `0` | machine learning | -| `MACHINE_LEARNING_MAX_BATCH_SIZE__FACIAL_RECOGNITION` | Set the maximum number of faces that will be processed at once by the facial recognition model | None (`1` if using OpenVINO) | machine learning | -| `MACHINE_LEARNING_RKNN` | Enable RKNN hardware acceleration if supported | `True` | machine learning | -| `MACHINE_LEARNING_RKNN_THREADS` | How many threads of RKNN runtime should be spinned up while inferencing. | `1` | machine learning | -| `MACHINE_LEARNING_MODEL_ARENA` | Pre-allocates CPU memory to avoid memory fragmentation | true | machine learning | +| Variable | Description | Default | Containers | +| :---------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------- | :-----------------------------: | :--------------- | +| `MACHINE_LEARNING_MODEL_TTL` | Inactivity time (s) before a model is unloaded (disabled if \<= 0) | `300` | machine learning | +| `MACHINE_LEARNING_MODEL_TTL_POLL_S` | Interval (s) between checks for the model TTL (disabled if \<= 0) | `10` | machine learning | +| `MACHINE_LEARNING_CACHE_FOLDER` | Directory where models are downloaded | `/cache` | machine learning | +| `MACHINE_LEARNING_REQUEST_THREADS`\*1 | Thread count of the request thread pool (disabled if \<= 0) | number of CPU cores | machine learning | +| `MACHINE_LEARNING_MODEL_INTER_OP_THREADS` | Number of parallel model operations | `1` | machine learning | +| `MACHINE_LEARNING_MODEL_INTRA_OP_THREADS` | Number of threads for each model operation | `2` | machine learning | +| `MACHINE_LEARNING_WORKERS`\*2 | Number of worker processes to spawn | `1` | machine learning | +| `MACHINE_LEARNING_HTTP_KEEPALIVE_TIMEOUT_S`\*3 | HTTP Keep-alive time in seconds | `2` | machine learning | +| `MACHINE_LEARNING_WORKER_TIMEOUT` | Maximum time (s) of unresponsiveness before a worker is killed | `120` (`300` if using OpenVINO) | machine learning | +| `MACHINE_LEARNING_PRELOAD__CLIP__TEXTUAL` | Comma-separated list of (textual) CLIP model(s) to preload and cache | | machine learning | +| `MACHINE_LEARNING_PRELOAD__CLIP__VISUAL` | Comma-separated list of (visual) CLIP model(s) to preload and cache | | machine learning | +| `MACHINE_LEARNING_PRELOAD__FACIAL_RECOGNITION__RECOGNITION` | Comma-separated list of (recognition) facial recognition model(s) to preload and cache | | machine learning | +| `MACHINE_LEARNING_PRELOAD__FACIAL_RECOGNITION__DETECTION` | Comma-separated list of (detection) facial recognition model(s) to preload and cache | | machine learning | +| `MACHINE_LEARNING_ANN` | Enable ARM-NN hardware acceleration if supported | `True` | machine learning | +| `MACHINE_LEARNING_ANN_FP16_TURBO` | Execute operations in FP16 precision: increasing speed, reducing precision (applies only to ARM-NN) | `False` | machine learning | +| `MACHINE_LEARNING_ANN_TUNING_LEVEL` | ARM-NN GPU tuning level (1: rapid, 2: normal, 3: exhaustive) | `2` | machine learning | +| `MACHINE_LEARNING_DEVICE_IDS`\*4 | Device IDs to use in multi-GPU environments | `0` | machine learning | +| `MACHINE_LEARNING_MAX_BATCH_SIZE__FACIAL_RECOGNITION` | Set the maximum number of faces that will be processed at once by the facial recognition model | None (`1` if using OpenVINO) | machine learning | +| `MACHINE_LEARNING_MAX_BATCH_SIZE__OCR` | Set the maximum number of boxes that will be processed at once by the OCR model | `6` | machine learning | +| `MACHINE_LEARNING_RKNN` | Enable RKNN hardware acceleration if supported | `True` | machine learning | +| `MACHINE_LEARNING_RKNN_THREADS` | How many threads of RKNN runtime should be spun up while inferencing. | `1` | machine learning | +| `MACHINE_LEARNING_MODEL_ARENA` | Pre-allocates CPU memory to avoid memory fragmentation | true | machine learning | +| `MACHINE_LEARNING_OPENVINO_PRECISION` | If set to FP16, uses half-precision floating-point operations for faster inference with reduced accuracy (one of [`FP16`, `FP32`], applies only to OpenVINO) | `FP32` | machine learning | \*1: It is recommended to begin with this parameter when changing the concurrency levels of the machine learning service and then tune the other ones. diff --git a/machine-learning/immich_ml/config.py b/machine-learning/immich_ml/config.py index 68d00625a3..19fd5300df 100644 --- a/machine-learning/immich_ml/config.py +++ b/machine-learning/immich_ml/config.py @@ -13,6 +13,8 @@ from rich.logging import RichHandler from uvicorn import Server from uvicorn.workers import UvicornWorker +from .schemas import ModelPrecision + class ClipSettings(BaseModel): textual: str | None = None @@ -24,6 +26,11 @@ class FacialRecognitionSettings(BaseModel): detection: str | None = None +class OcrSettings(BaseModel): + recognition: str | None = None + detection: str | None = None + + class PreloadModelData(BaseModel): clip_fallback: str | None = os.getenv("MACHINE_LEARNING_PRELOAD__CLIP", None) facial_recognition_fallback: str | None = os.getenv("MACHINE_LEARNING_PRELOAD__FACIAL_RECOGNITION", None) @@ -37,6 +44,7 @@ class PreloadModelData(BaseModel): del os.environ["MACHINE_LEARNING_PRELOAD__FACIAL_RECOGNITION"] clip: ClipSettings = ClipSettings() facial_recognition: FacialRecognitionSettings = FacialRecognitionSettings() + ocr: OcrSettings = OcrSettings() class MaxBatchSize(BaseModel): @@ -70,6 +78,7 @@ class Settings(BaseSettings): rknn_threads: int = 1 preload: PreloadModelData | None = None max_batch_size: MaxBatchSize | None = None + openvino_precision: ModelPrecision = ModelPrecision.FP32 @property def device_id(self) -> str: diff --git a/machine-learning/immich_ml/main.py b/machine-learning/immich_ml/main.py index 35f04d77ef..3d34d9bf9d 100644 --- a/machine-learning/immich_ml/main.py +++ b/machine-learning/immich_ml/main.py @@ -103,6 +103,20 @@ async def preload_models(preload: PreloadModelData) -> None: ModelTask.FACIAL_RECOGNITION, ) + if preload.ocr.detection is not None: + await load_models( + preload.ocr.detection, + ModelType.DETECTION, + ModelTask.OCR, + ) + + if preload.ocr.recognition is not None: + await load_models( + preload.ocr.recognition, + ModelType.RECOGNITION, + ModelTask.OCR, + ) + if preload.clip_fallback is not None: log.warning( "Deprecated env variable: 'MACHINE_LEARNING_PRELOAD__CLIP'. " diff --git a/machine-learning/immich_ml/schemas.py b/machine-learning/immich_ml/schemas.py index bfb40b9c84..41706180de 100644 --- a/machine-learning/immich_ml/schemas.py +++ b/machine-learning/immich_ml/schemas.py @@ -46,6 +46,11 @@ class ModelSource(StrEnum): PADDLE = "paddle" +class ModelPrecision(StrEnum): + FP16 = "FP16" + FP32 = "FP32" + + ModelIdentity = tuple[ModelType, ModelTask] diff --git a/machine-learning/immich_ml/sessions/ort.py b/machine-learning/immich_ml/sessions/ort.py index b6f709a323..6c52936722 100644 --- a/machine-learning/immich_ml/sessions/ort.py +++ b/machine-learning/immich_ml/sessions/ort.py @@ -93,10 +93,12 @@ class OrtSession: case "CUDAExecutionProvider" | "ROCMExecutionProvider": options = {"arena_extend_strategy": "kSameAsRequested", "device_id": settings.device_id} case "OpenVINOExecutionProvider": + openvino_dir = self.model_path.parent / "openvino" + device = f"GPU.{settings.device_id}" options = { - "device_type": f"GPU.{settings.device_id}", - "precision": "FP32", - "cache_dir": (self.model_path.parent / "openvino").as_posix(), + "device_type": device, + "precision": settings.openvino_precision.value, + "cache_dir": openvino_dir.as_posix(), } case "CoreMLExecutionProvider": options = { diff --git a/machine-learning/test_main.py b/machine-learning/test_main.py index 582a05a950..eb8706fc19 100644 --- a/machine-learning/test_main.py +++ b/machine-learning/test_main.py @@ -26,7 +26,7 @@ from immich_ml.models.clip.textual import MClipTextualEncoder, OpenClipTextualEn from immich_ml.models.clip.visual import OpenClipVisualEncoder from immich_ml.models.facial_recognition.detection import FaceDetector from immich_ml.models.facial_recognition.recognition import FaceRecognizer -from immich_ml.schemas import ModelFormat, ModelTask, ModelType +from immich_ml.schemas import ModelFormat, ModelPrecision, ModelTask, ModelType from immich_ml.sessions.ann import AnnSession from immich_ml.sessions.ort import OrtSession from immich_ml.sessions.rknn import RknnSession, run_inference @@ -240,11 +240,16 @@ class TestOrtSession: @pytest.mark.ov_device_ids(["GPU.0", "CPU"]) def test_sets_default_provider_options(self, ov_device_ids: list[str]) -> None: - model_path = "/cache/ViT-B-32__openai/model.onnx" + model_path = "/cache/ViT-B-32__openai/textual/model.onnx" + session = OrtSession(model_path, providers=["OpenVINOExecutionProvider", "CPUExecutionProvider"]) assert session.provider_options == [ - {"device_type": "GPU.0", "precision": "FP32", "cache_dir": "/cache/ViT-B-32__openai/openvino"}, + { + "device_type": "GPU.0", + "precision": "FP32", + "cache_dir": "/cache/ViT-B-32__openai/textual/openvino", + }, {"arena_extend_strategy": "kSameAsRequested"}, ] @@ -262,6 +267,21 @@ class TestOrtSession: } ] + def test_sets_openvino_to_fp16_if_enabled(self, mocker: MockerFixture) -> None: + model_path = "/cache/ViT-B-32__openai/textual/model.onnx" + os.environ["MACHINE_LEARNING_DEVICE_ID"] = "1" + mocker.patch.object(settings, "openvino_precision", ModelPrecision.FP16) + + session = OrtSession(model_path, providers=["OpenVINOExecutionProvider"]) + + assert session.provider_options == [ + { + "device_type": "GPU.1", + "precision": "FP16", + "cache_dir": "/cache/ViT-B-32__openai/textual/openvino", + } + ] + def test_sets_provider_options_for_cuda(self) -> None: os.environ["MACHINE_LEARNING_DEVICE_ID"] = "1" @@ -417,7 +437,7 @@ class TestRknnSession: session.run(None, input_feed) rknn_session.return_value.put.assert_called_once_with([input1, input2]) - np_spy.call_count == 2 + assert np_spy.call_count == 2 np_spy.assert_has_calls([mock.call(input1), mock.call(input2)]) @@ -925,11 +945,34 @@ class TestCache: any_order=True, ) + async def test_preloads_ocr_models(self, monkeypatch: MonkeyPatch, mock_get_model: mock.Mock) -> None: + os.environ["MACHINE_LEARNING_PRELOAD__OCR__DETECTION"] = "PP-OCRv5_mobile" + os.environ["MACHINE_LEARNING_PRELOAD__OCR__RECOGNITION"] = "PP-OCRv5_mobile" + + settings = Settings() + assert settings.preload is not None + assert settings.preload.ocr.detection == "PP-OCRv5_mobile" + assert settings.preload.ocr.recognition == "PP-OCRv5_mobile" + + model_cache = ModelCache() + monkeypatch.setattr("immich_ml.main.model_cache", model_cache) + + await preload_models(settings.preload) + mock_get_model.assert_has_calls( + [ + mock.call("PP-OCRv5_mobile", ModelType.DETECTION, ModelTask.OCR), + mock.call("PP-OCRv5_mobile", ModelType.RECOGNITION, ModelTask.OCR), + ], + any_order=True, + ) + async def test_preloads_all_models(self, monkeypatch: MonkeyPatch, mock_get_model: mock.Mock) -> None: os.environ["MACHINE_LEARNING_PRELOAD__CLIP__TEXTUAL"] = "ViT-B-32__openai" os.environ["MACHINE_LEARNING_PRELOAD__CLIP__VISUAL"] = "ViT-B-32__openai" os.environ["MACHINE_LEARNING_PRELOAD__FACIAL_RECOGNITION__RECOGNITION"] = "buffalo_s" os.environ["MACHINE_LEARNING_PRELOAD__FACIAL_RECOGNITION__DETECTION"] = "buffalo_s" + os.environ["MACHINE_LEARNING_PRELOAD__OCR__DETECTION"] = "PP-OCRv5_mobile" + os.environ["MACHINE_LEARNING_PRELOAD__OCR__RECOGNITION"] = "PP-OCRv5_mobile" settings = Settings() assert settings.preload is not None @@ -937,6 +980,8 @@ class TestCache: assert settings.preload.clip.textual == "ViT-B-32__openai" assert settings.preload.facial_recognition.recognition == "buffalo_s" assert settings.preload.facial_recognition.detection == "buffalo_s" + assert settings.preload.ocr.detection == "PP-OCRv5_mobile" + assert settings.preload.ocr.recognition == "PP-OCRv5_mobile" model_cache = ModelCache() monkeypatch.setattr("immich_ml.main.model_cache", model_cache) @@ -948,6 +993,8 @@ class TestCache: mock.call("ViT-B-32__openai", ModelType.VISUAL, ModelTask.SEARCH), mock.call("buffalo_s", ModelType.DETECTION, ModelTask.FACIAL_RECOGNITION), mock.call("buffalo_s", ModelType.RECOGNITION, ModelTask.FACIAL_RECOGNITION), + mock.call("PP-OCRv5_mobile", ModelType.DETECTION, ModelTask.OCR), + mock.call("PP-OCRv5_mobile", ModelType.RECOGNITION, ModelTask.OCR), ], any_order=True, ) From 6913697ad15b3fcad80fc136ecf710af19d1f5df Mon Sep 17 00:00:00 2001 From: Mert <101130780+mertalev@users.noreply.github.com> Date: Thu, 6 Nov 2025 12:58:41 -0500 Subject: [PATCH 003/300] feat(ml): multilingual ocr (#23527) * handle other languages in ml server * add variants to model selector * no need to override path * unused import --- machine-learning/immich_ml/models/constants.py | 8 ++++++++ machine-learning/immich_ml/models/ocr/detection.py | 2 +- machine-learning/immich_ml/models/ocr/recognition.py | 4 +++- machine-learning/immich_ml/models/ocr/schemas.py | 4 ++-- .../admin-settings/MachineLearningSettings.svelte | 10 ++++++++-- 5 files changed, 22 insertions(+), 6 deletions(-) diff --git a/machine-learning/immich_ml/models/constants.py b/machine-learning/immich_ml/models/constants.py index 10a4ae48a9..db9e7cfa4d 100644 --- a/machine-learning/immich_ml/models/constants.py +++ b/machine-learning/immich_ml/models/constants.py @@ -78,6 +78,14 @@ _INSIGHTFACE_MODELS = { _PADDLE_MODELS = { "PP-OCRv5_server", "PP-OCRv5_mobile", + "CH__PP-OCRv5_server", + "CH__PP-OCRv5_mobile", + "EL__PP-OCRv5_mobile", + "EN__PP-OCRv5_mobile", + "ESLAV__PP-OCRv5_mobile", + "KOREAN__PP-OCRv5_mobile", + "LATIN__PP-OCRv5_mobile", + "TH__PP-OCRv5_mobile", } SUPPORTED_PROVIDERS = [ diff --git a/machine-learning/immich_ml/models/ocr/detection.py b/machine-learning/immich_ml/models/ocr/detection.py index 0a9d09b599..07a2f3cce2 100644 --- a/machine-learning/immich_ml/models/ocr/detection.py +++ b/machine-learning/immich_ml/models/ocr/detection.py @@ -23,7 +23,7 @@ class TextDetector(InferenceModel): identity = (ModelType.DETECTION, ModelTask.OCR) def __init__(self, model_name: str, **model_kwargs: Any) -> None: - super().__init__(model_name, **model_kwargs, model_format=ModelFormat.ONNX) + super().__init__(model_name.split("__")[-1], **model_kwargs, model_format=ModelFormat.ONNX) self.max_resolution = 736 self.mean = np.array([0.5, 0.5, 0.5], dtype=np.float32) self.std_inv = np.float32(1.0) / (np.array([0.5, 0.5, 0.5], dtype=np.float32) * 255.0) diff --git a/machine-learning/immich_ml/models/ocr/recognition.py b/machine-learning/immich_ml/models/ocr/recognition.py index 0f91fc4105..af3f99dbdb 100644 --- a/machine-learning/immich_ml/models/ocr/recognition.py +++ b/machine-learning/immich_ml/models/ocr/recognition.py @@ -25,6 +25,7 @@ class TextRecognizer(InferenceModel): identity = (ModelType.RECOGNITION, ModelTask.OCR) def __init__(self, model_name: str, **model_kwargs: Any) -> None: + self.language = LangRec[model_name.split("__")[0]] if "__" in model_name else LangRec.CH self.min_score = model_kwargs.get("minScore", 0.9) self._empty: TextRecognitionOutput = { "box": np.empty(0, dtype=np.float32), @@ -41,7 +42,7 @@ class TextRecognizer(InferenceModel): engine_type=EngineType.ONNXRUNTIME, ocr_version=OCRVersion.PPOCRV5, task_type=TaskType.REC, - lang_type=LangRec.CH, + lang_type=self.language, model_type=RapidModelType.MOBILE if "mobile" in self.model_name else RapidModelType.SERVER, ) ) @@ -61,6 +62,7 @@ class TextRecognizer(InferenceModel): session=session.session, rec_batch_num=settings.max_batch_size.text_recognition if settings.max_batch_size is not None else 6, rec_img_shape=(3, 48, 320), + lang_type=self.language, ) ) return session diff --git a/machine-learning/immich_ml/models/ocr/schemas.py b/machine-learning/immich_ml/models/ocr/schemas.py index a63c8dd8e5..78e8619a0b 100644 --- a/machine-learning/immich_ml/models/ocr/schemas.py +++ b/machine-learning/immich_ml/models/ocr/schemas.py @@ -20,8 +20,8 @@ class TextRecognitionOutput(TypedDict): # RapidOCR expects `engine_type`, `lang_type`, and `font_path` to be attributes class OcrOptions(dict[str, Any]): - def __init__(self, **options: Any) -> None: + def __init__(self, lang_type: LangRec | None = None, **options: Any) -> None: super().__init__(**options) self.engine_type = EngineType.ONNXRUNTIME - self.lang_type = LangRec.CH + self.lang_type = lang_type self.font_path = None diff --git a/web/src/lib/components/admin-settings/MachineLearningSettings.svelte b/web/src/lib/components/admin-settings/MachineLearningSettings.svelte index 7649ee8d17..e05b5088a4 100644 --- a/web/src/lib/components/admin-settings/MachineLearningSettings.svelte +++ b/web/src/lib/components/admin-settings/MachineLearningSettings.svelte @@ -275,8 +275,14 @@ name="ocr-model" bind:value={config.machineLearning.ocr.modelName} options={[ - { value: 'PP-OCRv5_server', text: 'PP-OCRv5_server' }, - { value: 'PP-OCRv5_mobile', text: 'PP-OCRv5_mobile' }, + { text: 'PP-OCRv5_server (Chinese, Japanese and English)', value: 'PP-OCRv5_server' }, + { text: 'PP-OCRv5_mobile (Chinese, Japanese and English)', value: 'PP-OCRv5_mobile' }, + { text: 'PP-OCRv5_mobile (English-only)', value: 'EN__PP-OCRv5_mobile' }, + { text: 'PP-OCRv5_mobile (Greek and English)', value: 'EL__PP-OCRv5_mobile' }, + { text: 'PP-OCRv5_mobile (Korean and English)', value: 'KOREAN__PP-OCRv5_mobile' }, + { text: 'PP-OCRv5_mobile (Latin script languages)', value: 'LATIN__PP-OCRv5_mobile' }, + { text: 'PP-OCRv5_mobile (Russian, Belarusian, Ukrainian and English)', value: 'ESLAV__PP-OCRv5_mobile' }, + { text: 'PP-OCRv5_mobile (Thai and English)', value: 'TH__PP-OCRv5_mobile' }, ]} disabled={disabled || !config.machineLearning.enabled || !config.machineLearning.ocr.enabled} isEdited={config.machineLearning.ocr.modelName !== savedConfig.machineLearning.ocr.modelName} From 93ab42fa24b0458ece0cb88c8340a04145c26815 Mon Sep 17 00:00:00 2001 From: fabianbees Date: Fri, 7 Nov 2025 18:10:59 +0100 Subject: [PATCH 004/300] feat(mobile): Show lens model information in the asset viewer detail panel (#23601) * feat(mobile): add lens info to details bottom sheet * fix unrelated typo * order same like in web app: first exposure time, than iso --- .../asset_viewer/bottom_sheet.widget.dart | 41 +++++++++++++------ 1 file changed, 29 insertions(+), 12 deletions(-) diff --git a/mobile/lib/presentation/widgets/asset_viewer/bottom_sheet.widget.dart b/mobile/lib/presentation/widgets/asset_viewer/bottom_sheet.widget.dart index 9271c99ae9..d29e09a247 100644 --- a/mobile/lib/presentation/widgets/asset_viewer/bottom_sheet.widget.dart +++ b/mobile/lib/presentation/widgets/asset_viewer/bottom_sheet.widget.dart @@ -127,13 +127,18 @@ class _AssetDetailBottomSheet extends ConsumerWidget { if (exifInfo == null) { return null; } - - final fNumber = exifInfo.fNumber.isNotEmpty ? 'ƒ/${exifInfo.fNumber}' : null; final exposureTime = exifInfo.exposureTime.isNotEmpty ? exifInfo.exposureTime : null; - final focalLength = exifInfo.focalLength.isNotEmpty ? '${exifInfo.focalLength} mm' : null; final iso = exifInfo.iso != null ? 'ISO ${exifInfo.iso}' : null; + return [exposureTime, iso].where((spec) => spec != null && spec.isNotEmpty).join(_kSeparator); + } - return [fNumber, exposureTime, focalLength, iso].where((spec) => spec != null && spec.isNotEmpty).join(_kSeparator); + String? _getLensInfoSubtitle(ExifInfo? exifInfo) { + if (exifInfo == null) { + return null; + } + final fNumber = exifInfo.fNumber.isNotEmpty ? 'ƒ/${exifInfo.fNumber}' : null; + final focalLength = exifInfo.focalLength.isNotEmpty ? '${exifInfo.focalLength} mm' : null; + return [fNumber, focalLength].where((spec) => spec != null && spec.isNotEmpty).join(_kSeparator); } Future _editDateTime(BuildContext context, WidgetRef ref) async { @@ -141,20 +146,20 @@ class _AssetDetailBottomSheet extends ConsumerWidget { } Widget _buildAppearsInList(WidgetRef ref, BuildContext context) { - final aseet = ref.watch(currentAssetNotifier); - if (aseet == null) { + final asset = ref.watch(currentAssetNotifier); + if (asset == null) { return const SizedBox.shrink(); } - if (!aseet.hasRemote) { + if (!asset.hasRemote) { return const SizedBox.shrink(); } String? remoteAssetId; - if (aseet is RemoteAsset) { - remoteAssetId = aseet.id; - } else if (aseet is LocalAsset) { - remoteAssetId = aseet.remoteAssetId; + if (asset is RemoteAsset) { + remoteAssetId = asset.id; + } else if (asset is LocalAsset) { + remoteAssetId = asset.remoteAssetId; } if (remoteAssetId == null) { @@ -217,6 +222,7 @@ class _AssetDetailBottomSheet extends ConsumerWidget { final exifInfo = ref.watch(currentAssetExifProvider).valueOrNull; final cameraTitle = _getCameraInfoTitle(exifInfo); + final lensTitle = exifInfo?.lens != null && exifInfo!.lens!.isNotEmpty ? exifInfo.lens : null; final isOwner = ref.watch(currentUserProvider)?.id == (asset is RemoteAsset ? asset.ownerId : null); // Build file info tile based on asset type @@ -287,12 +293,23 @@ class _AssetDetailBottomSheet extends ConsumerWidget { _SheetTile( title: cameraTitle, titleStyle: context.textTheme.labelLarge, - leading: Icon(Icons.camera_outlined, size: 24, color: context.textTheme.labelLarge?.color), + leading: Icon(Icons.camera_alt_outlined, size: 24, color: context.textTheme.labelLarge?.color), subtitle: _getCameraInfoSubtitle(exifInfo), subtitleStyle: context.textTheme.bodyMedium?.copyWith( color: context.textTheme.bodyMedium?.color?.withAlpha(155), ), ), + // Lens info + if (lensTitle != null) + _SheetTile( + title: lensTitle, + titleStyle: context.textTheme.labelLarge, + leading: Icon(Icons.camera_outlined, size: 24, color: context.textTheme.labelLarge?.color), + subtitle: _getLensInfoSubtitle(exifInfo), + subtitleStyle: context.textTheme.bodyMedium?.copyWith( + color: context.textTheme.bodyMedium?.color?.withAlpha(155), + ), + ), // Appears in (Albums) _buildAppearsInList(ref, context), // padding at the bottom to avoid cut-off From c935ae47d0b1576c080b6f5c61d27aa73da874bf Mon Sep 17 00:00:00 2001 From: Lukas Date: Fri, 7 Nov 2025 21:22:02 +0100 Subject: [PATCH 005/300] feat: lazy load thumbnails on people and place list (#23682) perf(web): lazy load thumbnails on people and place list --- web/src/lib/components/assets/thumbnail/image-thumbnail.svelte | 3 +++ .../lib/components/faces-page/manage-people-visibility.svelte | 1 + web/src/lib/components/faces-page/people-card.svelte | 1 + web/src/lib/components/places-page/places-card-group.svelte | 1 + 4 files changed, 6 insertions(+) diff --git a/web/src/lib/components/assets/thumbnail/image-thumbnail.svelte b/web/src/lib/components/assets/thumbnail/image-thumbnail.svelte index d73e9b8218..2b55ea57b2 100644 --- a/web/src/lib/components/assets/thumbnail/image-thumbnail.svelte +++ b/web/src/lib/components/assets/thumbnail/image-thumbnail.svelte @@ -20,6 +20,7 @@ hiddenIconClass?: string; class?: ClassValue; brokenAssetClass?: ClassValue; + preload?: boolean; onComplete?: ((errored: boolean) => void) | undefined; } @@ -38,6 +39,7 @@ onComplete = undefined, class: imageClass = '', brokenAssetClass = '', + preload = true, }: Props = $props(); let loaded = $state(false); @@ -92,6 +94,7 @@ {title} class={['object-cover', optionalClasses, imageClass]} draggable="false" + loading={preload ? 'eager' : 'lazy'} /> {/if} diff --git a/web/src/lib/components/faces-page/manage-people-visibility.svelte b/web/src/lib/components/faces-page/manage-people-visibility.svelte index 8a3dcd98df..5771766f64 100644 --- a/web/src/lib/components/faces-page/manage-people-visibility.svelte +++ b/web/src/lib/components/faces-page/manage-people-visibility.svelte @@ -157,6 +157,7 @@ altText={person.name} widthStyle="100%" hiddenIconClass="text-white group-hover:text-black transition-colors" + preload={false} /> {#if person.name} diff --git a/web/src/lib/components/faces-page/people-card.svelte b/web/src/lib/components/faces-page/people-card.svelte index 3d865223ca..e18109de0d 100644 --- a/web/src/lib/components/faces-page/people-card.svelte +++ b/web/src/lib/components/faces-page/people-card.svelte @@ -52,6 +52,7 @@ title={person.name} widthStyle="100%" circle + preload={false} /> {#if person.isFavorite}

diff --git a/web/src/lib/components/places-page/places-card-group.svelte b/web/src/lib/components/places-page/places-card-group.svelte index 2e918b79ff..19e230d695 100644 --- a/web/src/lib/components/places-page/places-card-group.svelte +++ b/web/src/lib/components/places-page/places-card-group.svelte @@ -49,6 +49,7 @@ src={getAssetThumbnailUrl({ id: item.id, size: AssetMediaSize.Thumbnail })} alt={city} class="object-cover w-39 h-39" + loading="lazy" />
Date: Fri, 7 Nov 2025 15:13:43 -0800 Subject: [PATCH 006/300] fix(mobile): Add fade-in to asset viewer transition (#23692) Add fade-in animation --- mobile/lib/routing/router.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/mobile/lib/routing/router.dart b/mobile/lib/routing/router.dart index 5c0299c414..abe7ac3fa2 100644 --- a/mobile/lib/routing/router.dart +++ b/mobile/lib/routing/router.dart @@ -313,6 +313,7 @@ class AppRouter extends RootStackRouter { settings: page, pageBuilder: (_, __, ___) => child, opaque: false, + transitionsBuilder: TransitionsBuilders.fadeIn, ), ), ), From 4905bba69404098c538e5e708777f6a45753a964 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 8 Nov 2025 13:48:35 -0600 Subject: [PATCH 007/300] chore(deps): update base-image to v202511041104 (major) (#23718) chore(deps): update base-image to v202511041104 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- server/Dockerfile | 4 ++-- server/Dockerfile.dev | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/Dockerfile b/server/Dockerfile index 54077d80ce..0fc4126926 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/immich-app/base-server-dev:202510281104@sha256:e2f94c2e92cbae5982b014e610ff29731c0fbcb4bf69022c7fe27594e40c9f83 AS builder +FROM ghcr.io/immich-app/base-server-dev:202511041104@sha256:7558931a4a71989e7fd9fa3e1ba6c28da15891867310edda8c58236171839f2f AS builder ENV COREPACK_ENABLE_DOWNLOAD_PROMPT=0 \ CI=1 \ COREPACK_HOME=/tmp \ @@ -48,7 +48,7 @@ RUN --mount=type=cache,id=pnpm-cli,target=/buildcache/pnpm-store \ pnpm --filter @immich/sdk --filter @immich/cli build && \ pnpm --filter @immich/cli --prod --no-optional deploy /output/cli-pruned -FROM ghcr.io/immich-app/base-server-prod:202510281104@sha256:84f8f3eb4cfafc5e624235f7db703e1222fd60831bef1d488d8d8cad2be5023d +FROM ghcr.io/immich-app/base-server-prod:202511041104@sha256:57c0379977fd5521d83cdf661aecd1497c83a9a661ebafe0a5243a09fc1064cb WORKDIR /usr/src/app ENV NODE_ENV=production \ diff --git a/server/Dockerfile.dev b/server/Dockerfile.dev index 93a4f197ea..133b8a835d 100644 --- a/server/Dockerfile.dev +++ b/server/Dockerfile.dev @@ -1,5 +1,5 @@ # dev build -FROM ghcr.io/immich-app/base-server-dev:202510281104@sha256:e2f94c2e92cbae5982b014e610ff29731c0fbcb4bf69022c7fe27594e40c9f83 AS dev +FROM ghcr.io/immich-app/base-server-dev:202511041104@sha256:7558931a4a71989e7fd9fa3e1ba6c28da15891867310edda8c58236171839f2f AS dev ENV COREPACK_ENABLE_DOWNLOAD_PROMPT=0 \ CI=1 \ From 9cc88ed2a6df8dbd3cda2f6d38c2a03524761023 Mon Sep 17 00:00:00 2001 From: Mees Frensel <33722705+meesfrensel@users.noreply.github.com> Date: Sat, 8 Nov 2025 23:46:43 +0100 Subject: [PATCH 008/300] feat: make memories slideshow duration configurable (#22783) --- i18n/en.json | 1 + .../openapi/lib/model/memories_response.dart | 10 +++++++++- mobile/openapi/lib/model/memories_update.dart | 20 ++++++++++++++++++- open-api/immich-openapi-specs.json | 9 +++++++++ open-api/typescript-sdk/src/fetch-client.ts | 2 ++ server/src/dtos/user-preferences.dto.ts | 9 +++++++++ server/src/types.ts | 1 + server/src/utils/preferences.ts | 1 + .../memory-page/memory-viewer.svelte | 2 +- .../feature-settings.svelte | 13 +++++++++++- .../factories/preferences-factory.ts | 1 + 11 files changed, 65 insertions(+), 4 deletions(-) diff --git a/i18n/en.json b/i18n/en.json index 30c8949aef..735e942dda 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -2027,6 +2027,7 @@ "third_party_resources": "Third-Party Resources", "time": "Time", "time_based_memories": "Time-based memories", + "time_based_memories_duration": "Number of seconds to display each image.", "timeline": "Timeline", "timezone": "Timezone", "to_archive": "Archive", diff --git a/mobile/openapi/lib/model/memories_response.dart b/mobile/openapi/lib/model/memories_response.dart index b9f8b5d8b1..cb42f596a6 100644 --- a/mobile/openapi/lib/model/memories_response.dart +++ b/mobile/openapi/lib/model/memories_response.dart @@ -13,25 +13,31 @@ part of openapi.api; class MemoriesResponse { /// Returns a new [MemoriesResponse] instance. MemoriesResponse({ + this.duration = 5, this.enabled = true, }); + int duration; + bool enabled; @override bool operator ==(Object other) => identical(this, other) || other is MemoriesResponse && + other.duration == duration && other.enabled == enabled; @override int get hashCode => // ignore: unnecessary_parenthesis + (duration.hashCode) + (enabled.hashCode); @override - String toString() => 'MemoriesResponse[enabled=$enabled]'; + String toString() => 'MemoriesResponse[duration=$duration, enabled=$enabled]'; Map toJson() { final json = {}; + json[r'duration'] = this.duration; json[r'enabled'] = this.enabled; return json; } @@ -45,6 +51,7 @@ class MemoriesResponse { final json = value.cast(); return MemoriesResponse( + duration: mapValueOfType(json, r'duration')!, enabled: mapValueOfType(json, r'enabled')!, ); } @@ -93,6 +100,7 @@ class MemoriesResponse { /// The list of required keys that must be present in a JSON. static const requiredKeys = { + 'duration', 'enabled', }; } diff --git a/mobile/openapi/lib/model/memories_update.dart b/mobile/openapi/lib/model/memories_update.dart index 71efd71ae7..39c46ffd2f 100644 --- a/mobile/openapi/lib/model/memories_update.dart +++ b/mobile/openapi/lib/model/memories_update.dart @@ -13,9 +13,19 @@ part of openapi.api; class MemoriesUpdate { /// Returns a new [MemoriesUpdate] instance. MemoriesUpdate({ + this.duration, this.enabled, }); + /// Minimum value: 1 + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + int? duration; + /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default value (using the "default:" property), however, the generated @@ -26,18 +36,25 @@ class MemoriesUpdate { @override bool operator ==(Object other) => identical(this, other) || other is MemoriesUpdate && + other.duration == duration && other.enabled == enabled; @override int get hashCode => // ignore: unnecessary_parenthesis + (duration == null ? 0 : duration!.hashCode) + (enabled == null ? 0 : enabled!.hashCode); @override - String toString() => 'MemoriesUpdate[enabled=$enabled]'; + String toString() => 'MemoriesUpdate[duration=$duration, enabled=$enabled]'; Map toJson() { final json = {}; + if (this.duration != null) { + json[r'duration'] = this.duration; + } else { + // json[r'duration'] = null; + } if (this.enabled != null) { json[r'enabled'] = this.enabled; } else { @@ -55,6 +72,7 @@ class MemoriesUpdate { final json = value.cast(); return MemoriesUpdate( + duration: mapValueOfType(json, r'duration'), enabled: mapValueOfType(json, r'enabled'), ); } diff --git a/open-api/immich-openapi-specs.json b/open-api/immich-openapi-specs.json index d16e4c4e10..6076b43bfd 100644 --- a/open-api/immich-openapi-specs.json +++ b/open-api/immich-openapi-specs.json @@ -12646,18 +12646,27 @@ }, "MemoriesResponse": { "properties": { + "duration": { + "default": 5, + "type": "integer" + }, "enabled": { "default": true, "type": "boolean" } }, "required": [ + "duration", "enabled" ], "type": "object" }, "MemoriesUpdate": { "properties": { + "duration": { + "minimum": 1, + "type": "integer" + }, "enabled": { "type": "boolean" } diff --git a/open-api/typescript-sdk/src/fetch-client.ts b/open-api/typescript-sdk/src/fetch-client.ts index 435e10046a..1ed65e4f25 100644 --- a/open-api/typescript-sdk/src/fetch-client.ts +++ b/open-api/typescript-sdk/src/fetch-client.ts @@ -152,6 +152,7 @@ export type FoldersResponse = { sidebarWeb: boolean; }; export type MemoriesResponse = { + duration: number; enabled: boolean; }; export type PeopleResponse = { @@ -209,6 +210,7 @@ export type FoldersUpdate = { sidebarWeb?: boolean; }; export type MemoriesUpdate = { + duration?: number; enabled?: boolean; }; export type PeopleUpdate = { diff --git a/server/src/dtos/user-preferences.dto.ts b/server/src/dtos/user-preferences.dto.ts index b258158ae2..452384b423 100644 --- a/server/src/dtos/user-preferences.dto.ts +++ b/server/src/dtos/user-preferences.dto.ts @@ -13,6 +13,12 @@ class AvatarUpdate { class MemoriesUpdate { @ValidateBoolean({ optional: true }) enabled?: boolean; + + @Optional() + @IsInt() + @IsPositive() + @ApiProperty({ type: 'integer' }) + duration?: number; } class RatingsUpdate { @@ -166,6 +172,9 @@ class RatingsResponse { class MemoriesResponse { enabled: boolean = true; + + @ApiProperty({ type: 'integer' }) + duration: number = 5; } class FoldersResponse { diff --git a/server/src/types.ts b/server/src/types.ts index 66045521d0..0a2dd46d7f 100644 --- a/server/src/types.ts +++ b/server/src/types.ts @@ -497,6 +497,7 @@ export interface UserPreferences { }; memories: { enabled: boolean; + duration: number; }; people: { enabled: boolean; diff --git a/server/src/utils/preferences.ts b/server/src/utils/preferences.ts index 121bf2826d..b25369670a 100644 --- a/server/src/utils/preferences.ts +++ b/server/src/utils/preferences.ts @@ -16,6 +16,7 @@ const getDefaultPreferences = (): UserPreferences => { }, memories: { enabled: true, + duration: 5, }, people: { enabled: true, diff --git a/web/src/lib/components/memory-page/memory-viewer.svelte b/web/src/lib/components/memory-page/memory-viewer.svelte index fe3569f916..cfe11e1026 100644 --- a/web/src/lib/components/memory-page/memory-viewer.svelte +++ b/web/src/lib/components/memory-page/memory-viewer.svelte @@ -102,7 +102,7 @@ }); } else { progressBarController = new Tween(0, { - duration: (from: number, to: number) => (to ? 5000 * (to - from) : 0), + duration: (from: number, to: number) => (to ? $preferences.memories.duration * 1000 * (to - from) : 0), }); } }; diff --git a/web/src/lib/components/user-settings-page/feature-settings.svelte b/web/src/lib/components/user-settings-page/feature-settings.svelte index 31a29be975..82a40161b5 100644 --- a/web/src/lib/components/user-settings-page/feature-settings.svelte +++ b/web/src/lib/components/user-settings-page/feature-settings.svelte @@ -1,7 +1,9 @@ diff --git a/web/src/lib/managers/auth-manager.svelte.ts b/web/src/lib/managers/auth-manager.svelte.ts index 0128892c3f..515fde0996 100644 --- a/web/src/lib/managers/auth-manager.svelte.ts +++ b/web/src/lib/managers/auth-manager.svelte.ts @@ -30,7 +30,7 @@ class AuthManager { globalThis.location.href = redirectUri; } } finally { - eventManager.emit('auth.logout'); + eventManager.emit('AuthLogout'); } } } diff --git a/web/src/lib/managers/event-manager.svelte.ts b/web/src/lib/managers/event-manager.svelte.ts index f8e39411cf..7c7717a4d4 100644 --- a/web/src/lib/managers/event-manager.svelte.ts +++ b/web/src/lib/managers/event-manager.svelte.ts @@ -1,6 +1,15 @@ import type { ThemeSetting } from '$lib/managers/theme-manager.svelte'; import type { LoginResponseDto } from '@immich/sdk'; +export type Events = { + AppInit: []; + UserLogin: []; + AuthLogin: [LoginResponseDto]; + AuthLogout: []; + LanguageChange: [{ name: string; code: string; rtl?: boolean }]; + ThemeChange: [ThemeSetting]; +}; + type Listener, K extends keyof EventMap> = (...params: EventMap[K]) => void; class EventManager> { @@ -51,11 +60,4 @@ class EventManager> { } } -export const eventManager = new EventManager<{ - 'app.init': []; - 'user.login': []; - 'auth.login': [LoginResponseDto]; - 'auth.logout': []; - 'language.change': [{ name: string; code: string; rtl?: boolean }]; - 'theme.change': [ThemeSetting]; -}>(); +export const eventManager = new EventManager(); diff --git a/web/src/lib/managers/language-manager.svelte.ts b/web/src/lib/managers/language-manager.svelte.ts index 5acae27aa3..91d621f679 100644 --- a/web/src/lib/managers/language-manager.svelte.ts +++ b/web/src/lib/managers/language-manager.svelte.ts @@ -4,7 +4,7 @@ import { lang } from '$lib/stores/preferences.store'; class LanguageManager { constructor() { - eventManager.on('app.init', () => lang.subscribe((lang) => this.setLanguage(lang))); + eventManager.on('AppInit', () => lang.subscribe((lang) => this.setLanguage(lang))); } rtl = $state(false); @@ -19,7 +19,7 @@ class LanguageManager { document.body.setAttribute('dir', item.rtl ? 'rtl' : 'ltr'); - eventManager.emit('language.change', item); + eventManager.emit('LanguageChange', item); } } diff --git a/web/src/lib/managers/theme-manager.svelte.ts b/web/src/lib/managers/theme-manager.svelte.ts index 394c9850de..5095b5739e 100644 --- a/web/src/lib/managers/theme-manager.svelte.ts +++ b/web/src/lib/managers/theme-manager.svelte.ts @@ -36,7 +36,7 @@ class ThemeManager { isDark = $derived(this.value === Theme.DARK); constructor() { - eventManager.on('app.init', () => this.#onAppInit()); + eventManager.on('AppInit', () => this.#onAppInit()); } setSystem(system: boolean) { @@ -71,7 +71,7 @@ class ThemeManager { this.#theme.current = theme; - eventManager.emit('theme.change', theme); + eventManager.emit('ThemeChange', theme); } } diff --git a/web/src/lib/managers/upload-manager.svelte.ts b/web/src/lib/managers/upload-manager.svelte.ts index 61c6d73b53..b51756678b 100644 --- a/web/src/lib/managers/upload-manager.svelte.ts +++ b/web/src/lib/managers/upload-manager.svelte.ts @@ -6,7 +6,7 @@ class UploadManager { mediaTypes = $state({ image: [], sidecar: [], video: [] }); constructor() { - eventManager.on('app.init', () => void this.#loadExtensions()).on('auth.logout', () => void this.reset()); + eventManager.on('AppInit', () => void this.#loadExtensions()).on('AuthLogout', () => void this.reset()); } reset() { diff --git a/web/src/lib/stores/folders.svelte.ts b/web/src/lib/stores/folders.svelte.ts index f77b67bb7c..3480e95f28 100644 --- a/web/src/lib/stores/folders.svelte.ts +++ b/web/src/lib/stores/folders.svelte.ts @@ -19,7 +19,7 @@ class FoldersStore { private assets = $state({}); constructor() { - eventManager.on('auth.logout', () => this.clearCache()); + eventManager.on('AuthLogout', () => this.clearCache()); } async fetchTree(): Promise { diff --git a/web/src/lib/stores/memory.store.svelte.ts b/web/src/lib/stores/memory.store.svelte.ts index bc42053a21..05f45b3d7d 100644 --- a/web/src/lib/stores/memory.store.svelte.ts +++ b/web/src/lib/stores/memory.store.svelte.ts @@ -21,7 +21,7 @@ export type MemoryAsset = MemoryIndex & { class MemoryStoreSvelte { constructor() { - eventManager.on('auth.logout', () => this.clearCache()); + eventManager.on('AuthLogout', () => this.clearCache()); } memories = $state([]); diff --git a/web/src/lib/stores/notification-manager.svelte.ts b/web/src/lib/stores/notification-manager.svelte.ts index 3eba15deed..a0f0f6bb93 100644 --- a/web/src/lib/stores/notification-manager.svelte.ts +++ b/web/src/lib/stores/notification-manager.svelte.ts @@ -9,8 +9,8 @@ class NotificationStore { notifications = $state([]); constructor() { - eventManager.on('auth.login', () => handlePromiseError(this.refresh())); - eventManager.on('auth.logout', () => this.clear()); + eventManager.on('AuthLogin', () => handlePromiseError(this.refresh())); + eventManager.on('AuthLogout', () => this.clear()); } async refresh() { diff --git a/web/src/lib/stores/search.svelte.ts b/web/src/lib/stores/search.svelte.ts index 32f2741955..007c764fcf 100644 --- a/web/src/lib/stores/search.svelte.ts +++ b/web/src/lib/stores/search.svelte.ts @@ -5,7 +5,7 @@ class SearchStore { isSearchEnabled = $state(false); constructor() { - eventManager.on('auth.logout', () => this.clearCache()); + eventManager.on('AuthLogout', () => this.clearCache()); } clearCache() { diff --git a/web/src/lib/stores/user.store.ts b/web/src/lib/stores/user.store.ts index 0790788278..bc23917d22 100644 --- a/web/src/lib/stores/user.store.ts +++ b/web/src/lib/stores/user.store.ts @@ -16,4 +16,4 @@ export const resetSavedUser = () => { purchaseStore.setPurchaseStatus(false); }; -eventManager.on('auth.logout', () => resetSavedUser()); +eventManager.on('AuthLogout', () => resetSavedUser()); diff --git a/web/src/lib/stores/user.svelte.ts b/web/src/lib/stores/user.svelte.ts index 94d73efb9c..f9319fcfa1 100644 --- a/web/src/lib/stores/user.svelte.ts +++ b/web/src/lib/stores/user.svelte.ts @@ -26,4 +26,4 @@ const reset = () => { Object.assign(userInteraction, defaultUserInteraction); }; -eventManager.on('auth.logout', () => reset()); +eventManager.on('AuthLogout', () => reset()); diff --git a/web/src/routes/+layout.svelte b/web/src/routes/+layout.svelte index 979c7b5c42..f5d4619943 100644 --- a/web/src/routes/+layout.svelte +++ b/web/src/routes/+layout.svelte @@ -58,7 +58,7 @@ // if the browser theme changes, changes the Immich theme too }); - eventManager.emit('app.init'); + eventManager.emit('AppInit'); beforeNavigate(({ from, to }) => { if (isAssetViewerRoute(from) && isAssetViewerRoute(to)) { diff --git a/web/src/routes/auth/login/+page.svelte b/web/src/routes/auth/login/+page.svelte index 9ed89a0c63..352eaed408 100644 --- a/web/src/routes/auth/login/+page.svelte +++ b/web/src/routes/auth/login/+page.svelte @@ -27,7 +27,7 @@ const onSuccess = async (user: LoginResponseDto) => { await goto(data.continueUrl, { invalidateAll: true }); - eventManager.emit('auth.login', user); + eventManager.emit('AuthLogin', user); }; const onFirstLogin = () => goto(AppRoute.AUTH_CHANGE_PASSWORD); From a4e65a7ea822e9ce406e2a9dd0aca4e1acd92d74 Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Mon, 10 Nov 2025 11:49:59 -0500 Subject: [PATCH 017/300] refactor: albums-list (#23765) --- .../components/album-page/albums-list.svelte | 139 +++++++----------- web/src/lib/services/album.service.ts | 15 ++ web/src/lib/utils/album-utils.ts | 14 -- .../[[assetId=id]]/+page.svelte | 5 +- 4 files changed, 74 insertions(+), 99 deletions(-) diff --git a/web/src/lib/components/album-page/albums-list.svelte b/web/src/lib/components/album-page/albums-list.svelte index 5a93dd08f1..deb206ca9f 100644 --- a/web/src/lib/components/album-page/albums-list.svelte +++ b/web/src/lib/components/album-page/albums-list.svelte @@ -11,7 +11,7 @@ import AlbumShareModal from '$lib/modals/AlbumShareModal.svelte'; import QrCodeModal from '$lib/modals/QrCodeModal.svelte'; import SharedLinkCreateModal from '$lib/modals/SharedLinkCreateModal.svelte'; - import { handleDownloadAlbum } from '$lib/services/album.service'; + import { handleConfirmAlbumDelete, handleDownloadAlbum } from '$lib/services/album.service'; import { AlbumFilter, AlbumGroupBy, @@ -24,13 +24,7 @@ import { user } from '$lib/stores/user.store'; import { userInteraction } from '$lib/stores/user.svelte'; import { makeSharedLinkUrl } from '$lib/utils'; - import { - confirmAlbumDelete, - getSelectedAlbumGroupOption, - sortAlbums, - stringToSortOrder, - type AlbumGroup, - } from '$lib/utils/album-utils'; + import { getSelectedAlbumGroupOption, sortAlbums, stringToSortOrder, type AlbumGroup } from '$lib/utils/album-utils'; import type { ContextMenuPosition } from '$lib/utils/context-menu'; import { handleError } from '$lib/utils/handle-error'; import { normalizeSearchString } from '$lib/utils/string-utils'; @@ -142,10 +136,9 @@ let albumGroupOption: string = $state(AlbumGroupBy.None); let albumToShare: AlbumResponseDto | null = $state(null); - let albumToDelete: AlbumResponseDto | null = null; let contextMenuPosition: ContextMenuPosition = $state({ x: 0, y: 0 }); - let contextMenuTargetAlbum: AlbumResponseDto | undefined = $state(); + let selectedAlbum: AlbumResponseDto | undefined = $state(); let isOpen = $state(false); // Step 1: Filter between Owned and Shared albums, or both. @@ -198,9 +191,7 @@ albumGroupIds = groupedAlbums.map(({ id }) => id); }); - let showFullContextMenu = $derived( - allowEdit && contextMenuTargetAlbum && contextMenuTargetAlbum.ownerId === $user.id, - ); + let showFullContextMenu = $derived(allowEdit && selectedAlbum && selectedAlbum.ownerId === $user.id); onMount(async () => { if (allowEdit) { @@ -209,7 +200,7 @@ }); const showAlbumContextMenu = (contextMenuDetail: ContextMenuPosition, album: AlbumResponseDto) => { - contextMenuTargetAlbum = album; + selectedAlbum = album; contextMenuPosition = { x: contextMenuDetail.x, y: contextMenuDetail.y, @@ -221,13 +212,6 @@ isOpen = false; }; - const onDownloadAlbum = async () => { - if (contextMenuTargetAlbum) { - closeAlbumContextMenu(); - await handleDownloadAlbum(contextMenuTargetAlbum); - } - }; - const handleDeleteAlbum = async (albumToDelete: AlbumResponseDto) => { try { await deleteAlbum({ @@ -247,39 +231,61 @@ sharedAlbums = sharedAlbums.filter(({ id }) => id !== albumToDelete.id); }; - const setAlbumToDelete = async () => { - albumToDelete = contextMenuTargetAlbum ?? null; + const handleSelect = async (action: 'edit' | 'share' | 'download' | 'delete') => { closeAlbumContextMenu(); - await deleteSelectedAlbum(); - }; - const handleEdit = async (album: AlbumResponseDto) => { - closeAlbumContextMenu(); - const editedAlbum = await modalManager.show(AlbumEditModal, { - album, - }); - if (editedAlbum) { - successEditAlbumInfo(editedAlbum); - } - }; - - const deleteSelectedAlbum = async () => { - if (!albumToDelete) { + if (!selectedAlbum) { return; } - const isConfirmed = await confirmAlbumDelete(albumToDelete); + switch (action) { + case 'edit': { + const editedAlbum = await modalManager.show(AlbumEditModal, { album: selectedAlbum }); + if (editedAlbum) { + successEditAlbumInfo(editedAlbum); + } + break; + } - if (!isConfirmed) { - return; - } + case 'share': { + const result = await modalManager.show(AlbumShareModal, { album: selectedAlbum }); + switch (result?.action) { + case 'sharedUsers': { + await handleAddUsers(result.data); + break; + } - try { - await handleDeleteAlbum(albumToDelete); - } catch (error) { - handleError(error, $t('errors.unable_to_delete_album')); - } finally { - albumToDelete = null; + case 'sharedLink': { + const sharedLink = await modalManager.show(SharedLinkCreateModal, { albumId: selectedAlbum.id }); + if (sharedLink) { + handleSharedLinkCreated(selectedAlbum); + await modalManager.show(QrCodeModal, { title: $t('view_link'), value: makeSharedLinkUrl(sharedLink) }); + } + break; + } + } + break; + } + + case 'download': { + await handleDownloadAlbum(selectedAlbum); + break; + } + + case 'delete': { + const isConfirmed = await handleConfirmAlbumDelete(selectedAlbum); + if (!isConfirmed) { + return; + } + + try { + await handleDeleteAlbum(selectedAlbum); + } catch (error) { + handleError(error, $t('errors.unable_to_delete_album')); + } + + break; + } } }; @@ -347,33 +353,6 @@ album.hasSharedLink = true; updateAlbumInfo(album); }; - - const openShareModal = async () => { - if (!contextMenuTargetAlbum) { - return; - } - - albumToShare = contextMenuTargetAlbum; - closeAlbumContextMenu(); - const result = await modalManager.show(AlbumShareModal, { album: albumToShare }); - - switch (result?.action) { - case 'sharedUsers': { - await handleAddUsers(result.data); - return; - } - - case 'sharedLink': { - const sharedLink = await modalManager.show(SharedLinkCreateModal, { albumId: albumToShare.id }); - - if (sharedLink) { - handleSharedLinkCreated(albumToShare); - await modalManager.show(QrCodeModal, { title: $t('view_link'), value: makeSharedLinkUrl(sharedLink) }); - } - return; - } - } - }; {#if albums.length > 0} @@ -411,15 +390,11 @@ {#if showFullContextMenu} - contextMenuTargetAlbum && handleEdit(contextMenuTargetAlbum)} - /> - openShareModal()} /> + handleSelect('edit')} /> + handleSelect('share')} /> {/if} - + handleSelect('download')} /> {#if showFullContextMenu} - setAlbumToDelete()} /> + handleSelect('delete')} /> {/if} diff --git a/web/src/lib/services/album.service.ts b/web/src/lib/services/album.service.ts index cb7b55bc11..52fa09d103 100644 --- a/web/src/lib/services/album.service.ts +++ b/web/src/lib/services/album.service.ts @@ -1,6 +1,21 @@ import { downloadArchive } from '$lib/utils/asset-utils'; +import { getFormatter } from '$lib/utils/i18n'; import type { AlbumResponseDto } from '@immich/sdk'; +import { modalManager } from '@immich/ui'; export const handleDownloadAlbum = async (album: AlbumResponseDto) => { await downloadArchive(`${album.albumName}.zip`, { albumId: album.id }); }; + +export const handleConfirmAlbumDelete = async (album: AlbumResponseDto) => { + const $t = await getFormatter(); + const confirmation = + album.albumName.length > 0 + ? $t('album_delete_confirmation', { values: { album: album.albumName } }) + : $t('unnamed_album_delete_confirmation'); + + const description = $t('album_delete_confirmation_description'); + const prompt = `${confirmation} ${description}`; + + return modalManager.showDialog({ prompt }); +}; diff --git a/web/src/lib/utils/album-utils.ts b/web/src/lib/utils/album-utils.ts index 0cb8b7fc04..d4541949ca 100644 --- a/web/src/lib/utils/album-utils.ts +++ b/web/src/lib/utils/album-utils.ts @@ -12,7 +12,6 @@ import { import { handleError } from '$lib/utils/handle-error'; import type { AlbumResponseDto } from '@immich/sdk'; import * as sdk from '@immich/sdk'; -import { modalManager } from '@immich/ui'; import { orderBy } from 'lodash-es'; import { t } from 'svelte-i18n'; import { get } from 'svelte/store'; @@ -203,19 +202,6 @@ export const expandAllAlbumGroups = () => { collapseAllAlbumGroups([]); }; -export const confirmAlbumDelete = async (album: AlbumResponseDto) => { - const $t = get(t); - const confirmation = - album.albumName.length > 0 - ? $t('album_delete_confirmation', { values: { album: album.albumName } }) - : $t('unnamed_album_delete_confirmation'); - - const description = $t('album_delete_confirmation_description'); - const prompt = `${confirmation} ${description}`; - - return modalManager.showDialog({ prompt }); -}; - interface AlbumSortOption { [option: string]: (order: SortOrder, albums: AlbumResponseDto[]) => AlbumResponseDto[]; } diff --git a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte index f9453c41cf..34f3240e84 100644 --- a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte @@ -36,14 +36,13 @@ import AlbumUsersModal from '$lib/modals/AlbumUsersModal.svelte'; import QrCodeModal from '$lib/modals/QrCodeModal.svelte'; import SharedLinkCreateModal from '$lib/modals/SharedLinkCreateModal.svelte'; - import { handleDownloadAlbum } from '$lib/services/album.service'; + import { handleConfirmAlbumDelete, handleDownloadAlbum } from '$lib/services/album.service'; import { AssetInteraction } from '$lib/stores/asset-interaction.svelte'; import { assetViewingStore } from '$lib/stores/asset-viewing.store'; import { featureFlags } from '$lib/stores/server-config.store'; import { SlideshowNavigation, SlideshowState, slideshowStore } from '$lib/stores/slideshow.store'; import { preferences, user } from '$lib/stores/user.store'; import { handlePromiseError, makeSharedLinkUrl } from '$lib/utils'; - import { confirmAlbumDelete } from '$lib/utils/album-utils'; import { cancelMultiselect } from '$lib/utils/asset-utils'; import { openFileUploadDialog } from '$lib/utils/file-uploader'; import { handleError } from '$lib/utils/handle-error'; @@ -235,7 +234,7 @@ }; const handleRemoveAlbum = async () => { - const isConfirmed = await confirmAlbumDelete(album); + const isConfirmed = await handleConfirmAlbumDelete(album); if (!isConfirmed) { viewMode = AlbumPageViewMode.VIEW; From 45304f121173083587c6db99b89c62c3c6a5b5a4 Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Mon, 10 Nov 2025 12:21:26 -0500 Subject: [PATCH 018/300] refactor: view shared link (#23766) --- .../album-page/album-shared-link.svelte | 8 ++--- .../components/album-page/albums-list.svelte | 5 ++- .../asset-viewer/actions/share-action.svelte | 6 ++-- .../actions/shared-link-copy.svelte | 14 +++----- .../covers/__tests__/share-cover.spec.ts | 10 +++--- .../covers/share-cover.svelte | 16 ++++----- .../sharedlinks-page/shared-link-card.svelte | 36 +++++++++---------- .../actions/CreateSharedLinkAction.svelte | 5 ++- web/src/lib/modals/AlbumShareModal.svelte | 13 ++----- web/src/lib/services/shared-link.service.ts | 21 +++++++++++ web/src/lib/utils.ts | 6 ---- .../[[assetId=id]]/+page.svelte | 6 ++-- .../shared-links/[[id=id]]/+page.svelte | 4 +-- 13 files changed, 74 insertions(+), 76 deletions(-) create mode 100644 web/src/lib/services/shared-link.service.ts diff --git a/web/src/lib/components/album-page/album-shared-link.svelte b/web/src/lib/components/album-page/album-shared-link.svelte index e7d6503da3..935fa7837c 100644 --- a/web/src/lib/components/album-page/album-shared-link.svelte +++ b/web/src/lib/components/album-page/album-shared-link.svelte @@ -1,5 +1,6 @@ diff --git a/web/src/lib/components/sharedlinks-page/actions/shared-link-copy.svelte b/web/src/lib/components/sharedlinks-page/actions/shared-link-copy.svelte index 235048d35d..06369e7792 100644 --- a/web/src/lib/components/sharedlinks-page/actions/shared-link-copy.svelte +++ b/web/src/lib/components/sharedlinks-page/actions/shared-link-copy.svelte @@ -1,25 +1,21 @@ {#if menuItem} - + handleCopySharedLinkUrl(sharedLink)} /> {:else} handleCopySharedLinkUrl(sharedLink)} /> {/if} diff --git a/web/src/lib/components/sharedlinks-page/covers/__tests__/share-cover.spec.ts b/web/src/lib/components/sharedlinks-page/covers/__tests__/share-cover.spec.ts index 76de04ea31..3b8d90f1ba 100644 --- a/web/src/lib/components/sharedlinks-page/covers/__tests__/share-cover.spec.ts +++ b/web/src/lib/components/sharedlinks-page/covers/__tests__/share-cover.spec.ts @@ -10,7 +10,7 @@ vi.mock('$lib/utils'); describe('ShareCover component', () => { it('renders an image when the shared link is an album', () => { const component = render(ShareCover, { - link: sharedLinkFactory.build({ album: albumFactory.build({ albumName: '123' }) }), + sharedLink: sharedLinkFactory.build({ album: albumFactory.build({ albumName: '123' }) }), preload: false, class: 'text', }); @@ -23,7 +23,7 @@ describe('ShareCover component', () => { it('renders an image when the shared link is an individual share', () => { vi.mocked(getAssetThumbnailUrl).mockReturnValue('/asdf'); const component = render(ShareCover, { - link: sharedLinkFactory.build({ assets: [assetFactory.build({ id: 'someId' })] }), + sharedLink: sharedLinkFactory.build({ assets: [assetFactory.build({ id: 'someId' })] }), preload: false, class: 'text', }); @@ -37,7 +37,7 @@ describe('ShareCover component', () => { it('renders an image when the shared link has no album or assets', () => { const component = render(ShareCover, { - link: sharedLinkFactory.build(), + sharedLink: sharedLinkFactory.build(), preload: false, class: 'text', }); @@ -48,9 +48,9 @@ describe('ShareCover component', () => { }); it.skip('renders fallback image when asset is not resized', () => { - const link = sharedLinkFactory.build({ assets: [assetFactory.build()] }); + const sharedLink = sharedLinkFactory.build({ assets: [assetFactory.build()] }); render(ShareCover, { - link, + sharedLink, preload: false, }); diff --git a/web/src/lib/components/sharedlinks-page/covers/share-cover.svelte b/web/src/lib/components/sharedlinks-page/covers/share-cover.svelte index 6f15cca45f..ec3deb9943 100644 --- a/web/src/lib/components/sharedlinks-page/covers/share-cover.svelte +++ b/web/src/lib/components/sharedlinks-page/covers/share-cover.svelte @@ -1,29 +1,29 @@
- {#if link?.album} - - {:else if link.assets[0]} + {#if sharedLink?.album} + + {:else if sharedLink.assets[0]} {:else} diff --git a/web/src/lib/components/sharedlinks-page/shared-link-card.svelte b/web/src/lib/components/sharedlinks-page/shared-link-card.svelte index 33842e3f74..f811f60e77 100644 --- a/web/src/lib/components/sharedlinks-page/shared-link-card.svelte +++ b/web/src/lib/components/sharedlinks-page/shared-link-card.svelte @@ -13,14 +13,14 @@ import { t } from 'svelte-i18n'; interface Props { - link: SharedLinkResponseDto; + sharedLink: SharedLinkResponseDto; onDelete: () => void; } - let { link, onDelete }: Props = $props(); + let { sharedLink, onDelete }: Props = $props(); let now = DateTime.now(); - let expiresAt = $derived(link.expiresAt ? DateTime.fromISO(link.expiresAt) : undefined); + let expiresAt = $derived(sharedLink.expiresAt ? DateTime.fromISO(sharedLink.expiresAt) : undefined); let isExpired = $derived(expiresAt ? now > expiresAt : false); const getCountDownExpirationDate = (expiresAtDate: DateTime, now: DateTime) => { @@ -41,10 +41,10 @@ > - +
@@ -62,34 +62,34 @@

- {#if link.type === SharedLinkType.Album} - {link.album?.albumName} - {:else if link.type === SharedLinkType.Individual} + {#if sharedLink.type === SharedLinkType.Album} + {sharedLink.album?.albumName} + {:else if sharedLink.type === SharedLinkType.Individual} {$t('individual_share')} {/if}

-

{link.description ?? ''}

+

{sharedLink.description ?? ''}

- {#if link.allowUpload} + {#if sharedLink.allowUpload} {$t('upload')} {/if} - {#if link.allowDownload} + {#if sharedLink.allowDownload} {$t('download')} {/if} - {#if link.showMetadata} + {#if sharedLink.showMetadata} {$t('exif')} {/if} - {#if link.password} + {#if sharedLink.password} {$t('password')} {/if} - {#if link.slug} + {#if sharedLink.slug} {$t('custom_url')} {/if}
@@ -97,8 +97,8 @@
@@ -110,8 +110,8 @@ size="large" hideContent > - - + +
diff --git a/web/src/lib/components/timeline/actions/CreateSharedLinkAction.svelte b/web/src/lib/components/timeline/actions/CreateSharedLinkAction.svelte index 515fa64af1..06291e2188 100644 --- a/web/src/lib/components/timeline/actions/CreateSharedLinkAction.svelte +++ b/web/src/lib/components/timeline/actions/CreateSharedLinkAction.svelte @@ -1,8 +1,7 @@ diff --git a/web/src/lib/modals/AlbumShareModal.svelte b/web/src/lib/modals/AlbumShareModal.svelte index 9a60c0f710..8a4995efc4 100644 --- a/web/src/lib/modals/AlbumShareModal.svelte +++ b/web/src/lib/modals/AlbumShareModal.svelte @@ -2,8 +2,6 @@ import AlbumSharedLink from '$lib/components/album-page/album-shared-link.svelte'; import { AppRoute } from '$lib/constants'; import Dropdown from '$lib/elements/Dropdown.svelte'; - import QrCodeModal from '$lib/modals/QrCodeModal.svelte'; - import { makeSharedLinkUrl } from '$lib/utils'; import { AlbumUserRole, getAllSharedLinks, @@ -13,7 +11,7 @@ type SharedLinkResponseDto, type UserResponseDto, } from '@immich/sdk'; - import { Button, Icon, Link, Modal, ModalBody, modalManager, Stack, Text } from '@immich/ui'; + import { Button, Icon, Link, Modal, ModalBody, Stack, Text } from '@immich/ui'; import { mdiCheck, mdiEye, mdiLink, mdiPencil } from '@mdi/js'; import { onMount } from 'svelte'; import { t } from 'svelte-i18n'; @@ -29,13 +27,6 @@ let users: UserResponseDto[] = $state([]); let selectedUsers: Record = $state({}); - const handleViewQrCode = async (sharedLink: SharedLinkResponseDto) => { - await modalManager.show(QrCodeModal, { - title: $t('view_link'), - value: makeSharedLinkUrl(sharedLink), - }); - }; - const roleOptions: Array<{ title: string; value: AlbumUserRole | 'none'; icon?: string }> = [ { title: $t('role_editor'), value: AlbumUserRole.Editor, icon: mdiPencil }, { title: $t('role_viewer'), value: AlbumUserRole.Viewer, icon: mdiEye }, @@ -174,7 +165,7 @@ {#each sharedLinks as sharedLink (sharedLink.id)} - handleViewQrCode(sharedLink)} /> + {/each} {/if} diff --git a/web/src/lib/services/shared-link.service.ts b/web/src/lib/services/shared-link.service.ts new file mode 100644 index 0000000000..35bde6784f --- /dev/null +++ b/web/src/lib/services/shared-link.service.ts @@ -0,0 +1,21 @@ +import QrCodeModal from '$lib/modals/QrCodeModal.svelte'; +import { serverConfig } from '$lib/stores/server-config.store'; +import { copyToClipboard } from '$lib/utils'; +import { getFormatter } from '$lib/utils/i18n'; +import type { SharedLinkResponseDto } from '@immich/sdk'; +import { modalManager } from '@immich/ui'; +import { get } from 'svelte/store'; + +const makeSharedLinkUrl = (sharedLink: SharedLinkResponseDto) => { + const path = sharedLink.slug ? `s/${sharedLink.slug}` : `share/${sharedLink.key}`; + return new URL(path, get(serverConfig).externalDomain || globalThis.location.origin).href; +}; + +export const handleViewSharedLinkQrCode = async (sharedLink: SharedLinkResponseDto) => { + const $t = await getFormatter(); + await modalManager.show(QrCodeModal, { title: $t('view_link'), value: makeSharedLinkUrl(sharedLink) }); +}; + +export const handleCopySharedLinkUrl = async (sharedLink: SharedLinkResponseDto) => { + await copyToClipboard(makeSharedLinkUrl(sharedLink)); +}; diff --git a/web/src/lib/utils.ts b/web/src/lib/utils.ts index 3f2d945f39..65510352c1 100644 --- a/web/src/lib/utils.ts +++ b/web/src/lib/utils.ts @@ -1,7 +1,6 @@ import { defaultLang, langs, locales } from '$lib/constants'; import { authManager } from '$lib/managers/auth-manager.svelte'; import { lang } from '$lib/stores/preferences.store'; -import { serverConfig } from '$lib/stores/server-config.store'; import { handleError } from '$lib/utils/handle-error'; import { AssetJobName, @@ -269,11 +268,6 @@ export const copyToClipboard = async (secret: string) => { } }; -export const makeSharedLinkUrl = (sharedLink: SharedLinkResponseDto) => { - const path = sharedLink.slug ? `s/${sharedLink.slug}` : `share/${sharedLink.key}`; - return new URL(path, get(serverConfig).externalDomain || globalThis.location.origin).href; -}; - export const oauth = { isCallback: (location: Location) => { const search = location.search; diff --git a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte index 34f3240e84..1c8a6ccfa0 100644 --- a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte @@ -34,15 +34,15 @@ import AlbumOptionsModal from '$lib/modals/AlbumOptionsModal.svelte'; import AlbumShareModal from '$lib/modals/AlbumShareModal.svelte'; import AlbumUsersModal from '$lib/modals/AlbumUsersModal.svelte'; - import QrCodeModal from '$lib/modals/QrCodeModal.svelte'; import SharedLinkCreateModal from '$lib/modals/SharedLinkCreateModal.svelte'; import { handleConfirmAlbumDelete, handleDownloadAlbum } from '$lib/services/album.service'; + import { handleViewSharedLinkQrCode } from '$lib/services/shared-link.service'; import { AssetInteraction } from '$lib/stores/asset-interaction.svelte'; import { assetViewingStore } from '$lib/stores/asset-viewing.store'; import { featureFlags } from '$lib/stores/server-config.store'; import { SlideshowNavigation, SlideshowState, slideshowStore } from '$lib/stores/slideshow.store'; import { preferences, user } from '$lib/stores/user.store'; - import { handlePromiseError, makeSharedLinkUrl } from '$lib/utils'; + import { handlePromiseError } from '$lib/utils'; import { cancelMultiselect } from '$lib/utils/asset-utils'; import { openFileUploadDialog } from '$lib/utils/file-uploader'; import { handleError } from '$lib/utils/handle-error'; @@ -388,7 +388,7 @@ const sharedLink = await modalManager.show(SharedLinkCreateModal, { albumId: album.id }); if (sharedLink) { await refreshAlbum(); - await modalManager.show(QrCodeModal, { title: $t('view_link'), value: makeSharedLinkUrl(sharedLink) }); + await handleViewSharedLinkQrCode(sharedLink); } }; diff --git a/web/src/routes/(user)/shared-links/[[id=id]]/+page.svelte b/web/src/routes/(user)/shared-links/[[id=id]]/+page.svelte index 02f230d609..2aa24a57ba 100644 --- a/web/src/routes/(user)/shared-links/[[id=id]]/+page.svelte +++ b/web/src/routes/(user)/shared-links/[[id=id]]/+page.svelte @@ -109,8 +109,8 @@
{:else}
- {#each filteredSharedLinks as link (link.id)} - handleDeleteLink(link.id)} /> + {#each filteredSharedLinks as sharedLink (sharedLink.id)} + handleDeleteLink(sharedLink.id)} /> {/each}
{/if} From da5a72f6de894629de2c57424bae12d4428c95d0 Mon Sep 17 00:00:00 2001 From: shenlong <139912620+shenlong-tanwen@users.noreply.github.com> Date: Mon, 10 Nov 2025 23:07:45 +0530 Subject: [PATCH 019/300] chore: patch MemoriesResponse (#23764) Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> --- mobile/lib/utils/openapi_patching.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mobile/lib/utils/openapi_patching.dart b/mobile/lib/utils/openapi_patching.dart index 0a3fa7e91d..0c1f03086f 100644 --- a/mobile/lib/utils/openapi_patching.dart +++ b/mobile/lib/utils/openapi_patching.dart @@ -51,6 +51,11 @@ dynamic upgradeDto(dynamic value, String targetType) { addDefault(value, 'ocr', false); } break; + case 'MemoriesResponse': + if (value is Map) { + addDefault(value, 'duration', 5); + } + break; } } From b2cbefe41e3076d51fe94db5c321134be517d74d Mon Sep 17 00:00:00 2001 From: Viktor Mykhailiv Date: Mon, 10 Nov 2025 18:03:12 +0000 Subject: [PATCH 020/300] fix(mobile): Set dynamic height of actions row in BottomSheet (#23755) Co-authored-by: Alex --- .../widgets/bottom_sheet/base_bottom_sheet.widget.dart | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/mobile/lib/presentation/widgets/bottom_sheet/base_bottom_sheet.widget.dart b/mobile/lib/presentation/widgets/bottom_sheet/base_bottom_sheet.widget.dart index 7205dad941..2f2847543f 100644 --- a/mobile/lib/presentation/widgets/bottom_sheet/base_bottom_sheet.widget.dart +++ b/mobile/lib/presentation/widgets/bottom_sheet/base_bottom_sheet.widget.dart @@ -86,13 +86,9 @@ class _BaseDraggableScrollableSheetState extends ConsumerState SliverToBoxAdapter( child: Column( children: [ - SizedBox( - height: 115, - child: ListView( - shrinkWrap: true, - scrollDirection: Axis.horizontal, - children: widget.actions, - ), + SingleChildScrollView( + scrollDirection: Axis.horizontal, + child: Row(crossAxisAlignment: CrossAxisAlignment.start, children: widget.actions), ), const Divider(indent: 16, endIndent: 16), const SizedBox(height: 16), From d6307b262f1be23d677d4a4e87bd3a00560fcd46 Mon Sep 17 00:00:00 2001 From: Noel S Date: Mon, 10 Nov 2025 10:13:04 -0800 Subject: [PATCH 021/300] fix(mobile): Hide download button in asset viewer "immersive mode" (#23720) * Hide download FAB in asset viewer immersive mode * Remove commented out code * Remove more comments --- .../widgets/asset_viewer/asset_viewer.page.dart | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/mobile/lib/presentation/widgets/asset_viewer/asset_viewer.page.dart b/mobile/lib/presentation/widgets/asset_viewer/asset_viewer.page.dart index f8a2c37ccd..50c4347301 100644 --- a/mobile/lib/presentation/widgets/asset_viewer/asset_viewer.page.dart +++ b/mobile/lib/presentation/widgets/asset_viewer/asset_viewer.page.dart @@ -627,10 +627,10 @@ class _AssetViewerState extends ConsumerState { // Rebuild the widget when the asset viewer state changes // Using multiple selectors to avoid unnecessary rebuilds for other state changes ref.watch(assetViewerProvider.select((s) => s.showingBottomSheet)); - ref.watch(assetViewerProvider.select((s) => s.showingControls)); ref.watch(assetViewerProvider.select((s) => s.backgroundOpacity)); ref.watch(assetViewerProvider.select((s) => s.stackIndex)); ref.watch(isPlayingMotionVideoProvider); + final showingControls = ref.watch(assetViewerProvider.select((s) => s.showingControls)); // Listen for casting changes and send initial asset to the cast provider ref.listen(castProvider.select((value) => value.isCasting), (_, isCasting) async { @@ -663,7 +663,14 @@ class _AssetViewerState extends ConsumerState { appBar: const ViewerTopAppBar(), extendBody: true, extendBodyBehindAppBar: true, - floatingActionButton: const DownloadStatusFloatingButton(), + floatingActionButton: IgnorePointer( + ignoring: !showingControls, + child: AnimatedOpacity( + opacity: showingControls ? 1.0 : 0.0, + duration: Durations.short2, + child: const DownloadStatusFloatingButton(), + ), + ), body: Stack( children: [ PhotoViewGallery.builder( From d27c01ef70ec0535d613fa5ec1ed714bc02d65cf Mon Sep 17 00:00:00 2001 From: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com> Date: Mon, 10 Nov 2025 19:16:49 +0100 Subject: [PATCH 022/300] chore: migrate remaining usages of the logo to use the UI lib (#23430) --- .../components/album-page/album-viewer.svelte | 7 +- .../lib/components/layouts/ErrorLayout.svelte | 5 +- .../onboarding-page/onboarding-hello.svelte | 4 +- .../components/pages/SharedLinkPage.svelte | 7 +- .../individual-shared-viewer.svelte | 7 +- .../drag-and-drop-upload-overlay.svelte | 4 +- .../immich-logo-small-link.svelte | 8 -- .../shared-components/immich-logo.svelte | 112 ------------------ .../navigation-bar/navigation-bar.svelte | 5 +- .../side-bar/purchase-info.svelte | 10 +- .../side-bar/supporter-badge.svelte | 4 +- 11 files changed, 25 insertions(+), 148 deletions(-) delete mode 100644 web/src/lib/components/shared-components/immich-logo-small-link.svelte delete mode 100644 web/src/lib/components/shared-components/immich-logo.svelte diff --git a/web/src/lib/components/album-page/album-viewer.svelte b/web/src/lib/components/album-page/album-viewer.svelte index 460cf4e63b..d0d03eef80 100644 --- a/web/src/lib/components/album-page/album-viewer.svelte +++ b/web/src/lib/components/album-page/album-viewer.svelte @@ -16,11 +16,10 @@ import { cancelMultiselect } from '$lib/utils/asset-utils'; import { fileUploadHandler, openFileUploadDialog } from '$lib/utils/file-uploader'; import type { AlbumResponseDto, SharedLinkResponseDto, UserResponseDto } from '@immich/sdk'; - import { IconButton } from '@immich/ui'; + import { IconButton, Logo } from '@immich/ui'; import { mdiDownload, mdiFileImagePlusOutline } from '@mdi/js'; import { t } from 'svelte-i18n'; import ControlAppBar from '../shared-components/control-app-bar.svelte'; - import ImmichLogoSmallLink from '../shared-components/immich-logo-small-link.svelte'; import ThemeButton from '../shared-components/theme-button.svelte'; import AlbumSummary from './album-summary.svelte'; @@ -98,7 +97,9 @@ {:else} {#snippet leading()} - + + + {/snippet} {#snippet trailing()} diff --git a/web/src/lib/components/layouts/ErrorLayout.svelte b/web/src/lib/components/layouts/ErrorLayout.svelte index b97b1f05d5..1df1dbf422 100644 --- a/web/src/lib/components/layouts/ErrorLayout.svelte +++ b/web/src/lib/components/layouts/ErrorLayout.svelte @@ -1,7 +1,6 @@
- +

{$t('onboarding_welcome_user', { values: { user: $user.name } })}

diff --git a/web/src/lib/components/pages/SharedLinkPage.svelte b/web/src/lib/components/pages/SharedLinkPage.svelte index b9ed34c0e8..d30c3ce341 100644 --- a/web/src/lib/components/pages/SharedLinkPage.svelte +++ b/web/src/lib/components/pages/SharedLinkPage.svelte @@ -2,7 +2,6 @@ import AlbumViewer from '$lib/components/album-page/album-viewer.svelte'; import IndividualSharedViewer from '$lib/components/share-page/individual-shared-viewer.svelte'; import ControlAppBar from '$lib/components/shared-components/control-app-bar.svelte'; - import ImmichLogoSmallLink from '$lib/components/shared-components/immich-logo-small-link.svelte'; import ThemeButton from '$lib/components/shared-components/theme-button.svelte'; import { assetViewingStore } from '$lib/stores/asset-viewing.store'; import { user } from '$lib/stores/user.store'; @@ -10,7 +9,7 @@ import { handleError } from '$lib/utils/handle-error'; import { navigate } from '$lib/utils/navigation'; import { getMySharedLink, SharedLinkType, type AssetResponseDto, type SharedLinkResponseDto } from '@immich/sdk'; - import { Button, PasswordInput } from '@immich/ui'; + import { Button, Logo, PasswordInput } from '@immich/ui'; import { tick } from 'svelte'; import { t } from 'svelte-i18n'; @@ -87,7 +86,9 @@
{#snippet leading()} - + + + {/snippet} {#snippet trailing()} diff --git a/web/src/lib/components/share-page/individual-shared-viewer.svelte b/web/src/lib/components/share-page/individual-shared-viewer.svelte index f805e92de0..b7d9e548df 100644 --- a/web/src/lib/components/share-page/individual-shared-viewer.svelte +++ b/web/src/lib/components/share-page/individual-shared-viewer.svelte @@ -1,7 +1,6 @@ - - - - diff --git a/web/src/lib/components/shared-components/immich-logo.svelte b/web/src/lib/components/shared-components/immich-logo.svelte deleted file mode 100644 index a57f367964..0000000000 --- a/web/src/lib/components/shared-components/immich-logo.svelte +++ /dev/null @@ -1,112 +0,0 @@ - - - - {$t('immich_logo')} - {#if !noText} - - - - - - - - - {/if} - - - - - - - - - - diff --git a/web/src/lib/components/shared-components/navigation-bar/navigation-bar.svelte b/web/src/lib/components/shared-components/navigation-bar/navigation-bar.svelte index f73f9f3b51..03c5ca3be4 100644 --- a/web/src/lib/components/shared-components/navigation-bar/navigation-bar.svelte +++ b/web/src/lib/components/shared-components/navigation-bar/navigation-bar.svelte @@ -6,7 +6,6 @@ import { page } from '$app/state'; import { clickOutside } from '$lib/actions/click-outside'; import CastButton from '$lib/cast/cast-button.svelte'; - import ImmichLogo from '$lib/components/shared-components/immich-logo.svelte'; import NotificationPanel from '$lib/components/shared-components/navigation-bar/notification-panel.svelte'; import SearchBar from '$lib/components/shared-components/search-bar/search-bar.svelte'; import { AppRoute } from '$lib/constants'; @@ -17,7 +16,7 @@ import { featureFlags } from '$lib/stores/server-config.store'; import { sidebarStore } from '$lib/stores/sidebar.svelte'; import { user } from '$lib/stores/user.store'; - import { Button, IconButton } from '@immich/ui'; + import { Button, IconButton, Logo } from '@immich/ui'; import { mdiBellBadge, mdiBellOutline, mdiMagnify, mdiMenu, mdiTrayArrowUp } from '@mdi/js'; import { onMount } from 'svelte'; import { t } from 'svelte-i18n'; @@ -78,7 +77,7 @@ class="sidebar:hidden" /> - +
diff --git a/web/src/lib/components/shared-components/side-bar/purchase-info.svelte b/web/src/lib/components/shared-components/side-bar/purchase-info.svelte index eb4433aa2b..8c16e3ba38 100644 --- a/web/src/lib/components/shared-components/side-bar/purchase-info.svelte +++ b/web/src/lib/components/shared-components/side-bar/purchase-info.svelte @@ -1,7 +1,5 @@ {#if albums.length > 0} diff --git a/web/src/lib/components/asset-viewer/actions/share-action.svelte b/web/src/lib/components/asset-viewer/actions/share-action.svelte index a284d5e364..bfd3312f3b 100644 --- a/web/src/lib/components/asset-viewer/actions/share-action.svelte +++ b/web/src/lib/components/asset-viewer/actions/share-action.svelte @@ -1,6 +1,5 @@ diff --git a/web/src/lib/components/timeline/actions/CreateSharedLinkAction.svelte b/web/src/lib/components/timeline/actions/CreateSharedLinkAction.svelte index 06291e2188..202b87a15b 100644 --- a/web/src/lib/components/timeline/actions/CreateSharedLinkAction.svelte +++ b/web/src/lib/components/timeline/actions/CreateSharedLinkAction.svelte @@ -1,7 +1,6 @@ diff --git a/web/src/lib/managers/event-manager.svelte.ts b/web/src/lib/managers/event-manager.svelte.ts index 7c7717a4d4..44ee524658 100644 --- a/web/src/lib/managers/event-manager.svelte.ts +++ b/web/src/lib/managers/event-manager.svelte.ts @@ -1,5 +1,5 @@ import type { ThemeSetting } from '$lib/managers/theme-manager.svelte'; -import type { LoginResponseDto } from '@immich/sdk'; +import type { LoginResponseDto, SharedLinkResponseDto } from '@immich/sdk'; export type Events = { AppInit: []; @@ -8,6 +8,8 @@ export type Events = { AuthLogout: []; LanguageChange: [{ name: string; code: string; rtl?: boolean }]; ThemeChange: [ThemeSetting]; + SharedLinkCreate: [SharedLinkResponseDto]; + SharedLinkUpdate: [SharedLinkResponseDto]; }; type Listener, K extends keyof EventMap> = (...params: EventMap[K]) => void; diff --git a/web/src/lib/modals/SharedLinkCreateModal.svelte b/web/src/lib/modals/SharedLinkCreateModal.svelte index b8444705fa..5ba0402752 100644 --- a/web/src/lib/modals/SharedLinkCreateModal.svelte +++ b/web/src/lib/modals/SharedLinkCreateModal.svelte @@ -1,26 +1,15 @@ + +
diff --git a/web/src/routes/(user)/shared-links/[[id=id]]/+page.svelte b/web/src/routes/(user)/shared-links/[[id=id]]/+page.svelte index 2aa24a57ba..4b63ce71a1 100644 --- a/web/src/routes/(user)/shared-links/[[id=id]]/+page.svelte +++ b/web/src/routes/(user)/shared-links/[[id=id]]/+page.svelte @@ -2,6 +2,7 @@ import { goto } from '$app/navigation'; import { page } from '$app/state'; import UserPageLayout from '$lib/components/layouts/user-page-layout.svelte'; + import OnEvents from '$lib/components/OnEvents.svelte'; import SharedLinkCard from '$lib/components/sharedlinks-page/shared-link-card.svelte'; import { AppRoute } from '$lib/constants'; import GroupTab from '$lib/elements/GroupTab.svelte'; @@ -50,18 +51,6 @@ } }; - const handleEditDone = async (updatedLink?: SharedLinkResponseDto) => { - if (updatedLink) { - const index = sharedLinks.findIndex((link) => link.id === updatedLink.id); - if (index !== -1) { - sharedLinks[index] = updatedLink; - } - } else { - await refresh(); - } - await goto(AppRoute.SHARED_LINKS); - }; - type Filter = 'all' | 'album' | 'individual'; const filterMap: Record = { @@ -91,8 +80,17 @@ (type === SharedLinkType.Individual && selectedTab === 'individual'), ), ); + + const onSharedLinkUpdate = (sharedLink: SharedLinkResponseDto) => { + const index = sharedLinks.findIndex((link) => link.id === sharedLink.id); + if (index !== -1) { + sharedLinks[index] = sharedLink; + } + }; + + {#snippet buttons()} From cb6d81771dbb8197322b2ef2568dc9b97fd1dd0c Mon Sep 17 00:00:00 2001 From: idubnori Date: Tue, 11 Nov 2025 04:25:43 +0900 Subject: [PATCH 024/300] fix(mobile): sync album and asset activity state when add/remove asset level activity (#23484) * fix; sync album-asset state when remove activity * make build * fix: support adding case * make build * Update mobile/lib/providers/activity.provider.dart Co-authored-by: shenlong <139912620+shenlong-tanwen@users.noreply.github.com> * fix: add missing import for collection package * make build --------- Co-authored-by: shenlong <139912620+shenlong-tanwen@users.noreply.github.com> --- mobile/lib/providers/activity.provider.dart | 53 ++++++++++-- mobile/lib/providers/activity.provider.g.dart | 2 +- .../activity/activity_provider_test.dart | 86 ++++++++++++++++--- 3 files changed, 118 insertions(+), 23 deletions(-) diff --git a/mobile/lib/providers/activity.provider.dart b/mobile/lib/providers/activity.provider.dart index a867a5a281..5e0e71d85d 100644 --- a/mobile/lib/providers/activity.provider.dart +++ b/mobile/lib/providers/activity.provider.dart @@ -1,3 +1,4 @@ +import 'package:collection/collection.dart'; import 'package:immich_mobile/models/activities/activity.model.dart'; import 'package:immich_mobile/providers/activity_service.provider.dart'; import 'package:immich_mobile/providers/activity_statistics.provider.dart'; @@ -16,13 +17,20 @@ class AlbumActivity extends _$AlbumActivity { Future removeActivity(String id) async { if (await ref.watch(activityServiceProvider).removeActivity(id)) { - final activities = state.valueOrNull ?? []; - final removedActivity = activities.firstWhere((a) => a.id == id); - activities.remove(removedActivity); - state = AsyncData(activities); - // Decrement activity count only for comments + final removedActivity = _removeFromState(id); + if (removedActivity == null) { + return; + } + + if (assetId != null) { + ref.read(albumActivityProvider(albumId).notifier)._removeFromState(id); + } + if (removedActivity.type == ActivityType.comment) { ref.watch(activityStatisticsProvider(albumId, assetId).notifier).removeActivity(); + if (assetId != null) { + ref.watch(activityStatisticsProvider(albumId).notifier).removeActivity(); + } } } } @@ -30,8 +38,10 @@ class AlbumActivity extends _$AlbumActivity { Future addLike() async { final activity = await ref.watch(activityServiceProvider).addActivity(albumId, ActivityType.like, assetId: assetId); if (activity.hasValue) { - final activities = state.asData?.value ?? []; - state = AsyncData([...activities, activity.requireValue]); + _addToState(activity.requireValue); + if (assetId != null) { + ref.read(albumActivityProvider(albumId).notifier)._addToState(activity.requireValue); + } } } @@ -41,8 +51,10 @@ class AlbumActivity extends _$AlbumActivity { .addActivity(albumId, ActivityType.comment, assetId: assetId, comment: comment); if (activity.hasValue) { - final activities = state.valueOrNull ?? []; - state = AsyncData([...activities, activity.requireValue]); + _addToState(activity.requireValue); + if (assetId != null) { + ref.read(albumActivityProvider(albumId).notifier)._addToState(activity.requireValue); + } ref.watch(activityStatisticsProvider(albumId, assetId).notifier).addActivity(); // The previous addActivity call would increase the count of an asset if assetId != null // To also increase the activity count of the album, calling it once again with assetId set to null @@ -51,6 +63,29 @@ class AlbumActivity extends _$AlbumActivity { } } } + + void _addToState(Activity activity) { + final activities = state.valueOrNull ?? []; + if (activities.any((a) => a.id == activity.id)) { + return; + } + state = AsyncData([...activities, activity]); + } + + Activity? _removeFromState(String id) { + final activities = state.valueOrNull; + if (activities == null) { + return null; + } + final activity = activities.firstWhereOrNull((a) => a.id == id); + if (activity == null) { + return null; + } + + final updated = [...activities]..remove(activity); + state = AsyncData(updated); + return activity; + } } /// Mock class for testing diff --git a/mobile/lib/providers/activity.provider.g.dart b/mobile/lib/providers/activity.provider.g.dart index dc927795f8..6ca99e4f72 100644 --- a/mobile/lib/providers/activity.provider.g.dart +++ b/mobile/lib/providers/activity.provider.g.dart @@ -6,7 +6,7 @@ part of 'activity.provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$albumActivityHash() => r'3b0d7acee4d41c84b3f220784c3b904c83f836e6'; +String _$albumActivityHash() => r'154e8ae98da3efc142369eae46d4005468fd67da'; /// Copied from Dart SDK class _SystemHash { diff --git a/mobile/test/modules/activity/activity_provider_test.dart b/mobile/test/modules/activity/activity_provider_test.dart index 7964b43cad..84eba62b70 100644 --- a/mobile/test/modules/activity/activity_provider_test.dart +++ b/mobile/test/modules/activity/activity_provider_test.dart @@ -33,6 +33,7 @@ final _activities = [ void main() { late ActivityServiceMock activityMock; late ActivityStatisticsMock activityStatisticsMock; + late ActivityStatisticsMock albumActivityStatisticsMock; late ProviderContainer container; late AlbumActivityProvider provider; late ListenerMock>> listener; @@ -44,17 +45,23 @@ void main() { setUp(() async { activityMock = ActivityServiceMock(); activityStatisticsMock = ActivityStatisticsMock(); + albumActivityStatisticsMock = ActivityStatisticsMock(); + container = TestUtils.createContainer( overrides: [ activityServiceProvider.overrideWith((ref) => activityMock), activityStatisticsProvider('test-album', 'test-asset').overrideWith(() => activityStatisticsMock), + activityStatisticsProvider('test-album').overrideWith(() => albumActivityStatisticsMock), ], ); // Mock values + when(() => activityStatisticsMock.build(any(), any())).thenReturn(0); + when(() => albumActivityStatisticsMock.build(any())).thenReturn(0); when( () => activityMock.getAllActivities('test-album', assetId: 'test-asset'), ).thenAnswer((_) async => [..._activities]); + when(() => activityMock.getAllActivities('test-album')).thenAnswer((_) async => [..._activities]); // Init and wait for providers future to complete provider = albumActivityProvider('test-album', 'test-asset'); @@ -89,6 +96,10 @@ void main() { () => activityMock.addActivity('test-album', ActivityType.like, assetId: 'test-asset'), ).thenAnswer((_) async => AsyncData(like)); + final albumProvider = albumActivityProvider('test-album'); + container.read(albumProvider.notifier); + await container.read(albumProvider.future); + await container.read(provider.notifier).addLike(); verify(() => activityMock.addActivity('test-album', ActivityType.like, assetId: 'test-asset')); @@ -99,6 +110,11 @@ void main() { // Never bump activity count for new likes verifyNever(() => activityStatisticsMock.addActivity()); + verifyNever(() => albumActivityStatisticsMock.addActivity()); + + final albumActivities = container.read(albumProvider).requireValue; + expect(albumActivities, hasLength(5)); + expect(albumActivities, contains(like)); }); test('Like failed', () async { @@ -107,6 +123,10 @@ void main() { () => activityMock.addActivity('test-album', ActivityType.like, assetId: 'test-asset'), ).thenAnswer((_) async => AsyncError(Exception('Mock'), StackTrace.current)); + final albumProvider = albumActivityProvider('test-album'); + container.read(albumProvider.notifier); + await container.read(albumProvider.future); + await container.read(provider.notifier).addLike(); verify(() => activityMock.addActivity('test-album', ActivityType.like, assetId: 'test-asset')); @@ -114,6 +134,12 @@ void main() { final activities = await container.read(provider.future); expect(activities, hasLength(4)); expect(activities, isNot(contains(like))); + + verifyNever(() => albumActivityStatisticsMock.addActivity()); + + final albumActivities = container.read(albumProvider).requireValue; + expect(albumActivities, hasLength(4)); + expect(albumActivities, isNot(contains(like))); }); }); @@ -130,6 +156,7 @@ void main() { expect(activities, isNot(anyElement(predicate((Activity a) => a.id == '3')))); verifyNever(() => activityStatisticsMock.removeActivity()); + verifyNever(() => albumActivityStatisticsMock.removeActivity()); }); test('Remove Like failed', () async { @@ -140,6 +167,9 @@ void main() { final activities = await container.read(provider.future); expect(activities, hasLength(4)); expect(activities, anyElement(predicate((Activity a) => a.id == '3'))); + + verifyNever(() => activityStatisticsMock.removeActivity()); + verifyNever(() => albumActivityStatisticsMock.removeActivity()); }); test('Comment successfully removed', () async { @@ -151,23 +181,35 @@ void main() { expect(activities, isNot(anyElement(predicate((Activity a) => a.id == '1')))); verify(() => activityStatisticsMock.removeActivity()); + verify(() => albumActivityStatisticsMock.removeActivity()); + }); + + test('Removes activity from album state when asset scoped', () async { + when(() => activityMock.removeActivity('3')).thenAnswer((_) async => true); + when(() => activityMock.getAllActivities('test-album')).thenAnswer((_) async => [..._activities]); + + final albumProvider = albumActivityProvider('test-album'); + container.read(albumProvider.notifier); + await container.read(albumProvider.future); + + await container.read(provider.notifier).removeActivity('3'); + + final assetActivities = container.read(provider).requireValue; + final albumActivities = container.read(albumProvider).requireValue; + + expect(assetActivities, hasLength(3)); + expect(assetActivities, isNot(anyElement(predicate((Activity a) => a.id == '3')))); + + expect(albumActivities, hasLength(3)); + expect(albumActivities, isNot(anyElement(predicate((Activity a) => a.id == '3')))); + + verify(() => activityMock.removeActivity('3')); + verifyNever(() => activityStatisticsMock.removeActivity()); + verifyNever(() => albumActivityStatisticsMock.removeActivity()); }); }); group('addComment()', () { - late ActivityStatisticsMock albumActivityStatisticsMock; - - setUp(() { - albumActivityStatisticsMock = ActivityStatisticsMock(); - container = TestUtils.createContainer( - overrides: [ - activityServiceProvider.overrideWith((ref) => activityMock), - activityStatisticsProvider('test-album', 'test-asset').overrideWith(() => activityStatisticsMock), - activityStatisticsProvider('test-album').overrideWith(() => albumActivityStatisticsMock), - ], - ); - }); - test('Comment successfully added', () async { final comment = Activity( id: '5', @@ -178,6 +220,10 @@ void main() { assetId: 'test-asset', ); + final albumProvider = albumActivityProvider('test-album'); + container.read(albumProvider.notifier); + await container.read(albumProvider.future); + when( () => activityMock.addActivity( 'test-album', @@ -206,6 +252,10 @@ void main() { verify(() => activityStatisticsMock.addActivity()); verify(() => albumActivityStatisticsMock.addActivity()); + + final albumActivities = container.read(albumProvider).requireValue; + expect(albumActivities, hasLength(5)); + expect(albumActivities, contains(comment)); }); test('Comment successfully added without assetId', () async { @@ -225,6 +275,8 @@ void main() { when(() => activityMock.getAllActivities('test-album')).thenAnswer((_) async => [..._activities]); final albumProvider = albumActivityProvider('test-album'); + container.read(albumProvider.notifier); + await container.read(albumProvider.future); await container.read(albumProvider.notifier).addComment('Test-Comment'); verify( @@ -258,6 +310,10 @@ void main() { ), ).thenAnswer((_) async => AsyncError(Exception('Error'), StackTrace.current)); + final albumProvider = albumActivityProvider('test-album'); + container.read(albumProvider.notifier); + await container.read(albumProvider.future); + await container.read(provider.notifier).addComment('Test-Comment'); final activities = await container.read(provider.future); @@ -266,6 +322,10 @@ void main() { verifyNever(() => activityStatisticsMock.addActivity()); verifyNever(() => albumActivityStatisticsMock.addActivity()); + + final albumActivities = container.read(albumProvider).requireValue; + expect(albumActivities, hasLength(4)); + expect(albumActivities, isNot(contains(comment))); }); }); } From b0a0b7c2e1eefe8d921f64f406e3c4c74f8de646 Mon Sep 17 00:00:00 2001 From: idubnori Date: Tue, 11 Nov 2025 04:26:27 +0900 Subject: [PATCH 025/300] feat(mobile): chat-style for asset activity view (#23347) * feat(mobile): open assetviewer via album activities page * adjust ui behavior: keep current asset & disable initial forcus * init of v2... * refactoring... * refactor: remove _DismissibleWrapper * feat: initial scrolling to bottom * refactor: use feature toggle * refactor: new route page * fix: file name, dcm analyze * fix: test failure * fix: remove toggle and the exisitng style based on review feedback * refactorr: rename methods for clarity in comment bubble widget * feat: (mobile) chat-style asset activity timeline * chore: extract as a new file * chore: styling (based on 2c12bc56) * chore: clean up * fix: albumActivityProvider parameter * fix: review point * fix --- .../pages/drift_activities.page.dart | 156 +----------------- .../activities_bottom_sheet.widget.dart | 16 +- .../widgets/activities/comment_bubble.dart | 143 ++++++++++++++++ 3 files changed, 151 insertions(+), 164 deletions(-) create mode 100644 mobile/lib/widgets/activities/comment_bubble.dart diff --git a/mobile/lib/presentation/pages/drift_activities.page.dart b/mobile/lib/presentation/pages/drift_activities.page.dart index 30e7dd497a..b92d429aa1 100644 --- a/mobile/lib/presentation/pages/drift_activities.page.dart +++ b/mobile/lib/presentation/pages/drift_activities.page.dart @@ -3,21 +3,13 @@ import 'package:flutter/material.dart'; import 'package:flutter_hooks/flutter_hooks.dart' hide Store; import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:immich_mobile/domain/models/album/album.model.dart'; -import 'package:immich_mobile/domain/models/asset/base_asset.model.dart'; import 'package:immich_mobile/extensions/asyncvalue_extensions.dart'; import 'package:immich_mobile/extensions/build_context_extensions.dart'; -import 'package:immich_mobile/extensions/datetime_extensions.dart'; -import 'package:immich_mobile/models/activities/activity.model.dart'; +import 'package:immich_mobile/widgets/activities/comment_bubble.dart'; import 'package:immich_mobile/presentation/widgets/action_buttons/like_activity_action_button.widget.dart'; import 'package:immich_mobile/presentation/widgets/album/drift_activity_text_field.dart'; import 'package:immich_mobile/providers/activity.provider.dart'; -import 'package:immich_mobile/providers/activity_service.provider.dart'; -import 'package:immich_mobile/providers/image/immich_remote_thumbnail_provider.dart'; -import 'package:immich_mobile/providers/infrastructure/asset_viewer/current_asset.provider.dart'; import 'package:immich_mobile/providers/infrastructure/current_album.provider.dart'; -import 'package:immich_mobile/providers/user.provider.dart'; -import 'package:immich_mobile/widgets/activities/dismissible_activity.dart'; -import 'package:immich_mobile/widgets/common/user_circle_avatar.dart'; @RoutePage() class DriftActivitiesPage extends HookConsumerWidget { @@ -27,10 +19,8 @@ class DriftActivitiesPage extends HookConsumerWidget { @override Widget build(BuildContext context, WidgetRef ref) { - final asset = ref.read(currentAssetNotifier) as RemoteAsset?; - - final activityNotifier = ref.read(albumActivityProvider(album.id, asset?.id).notifier); - final activities = ref.watch(albumActivityProvider(album.id, asset?.id)); + final activityNotifier = ref.read(albumActivityProvider(album.id).notifier); + final activities = ref.watch(albumActivityProvider(album.id)); final listViewScrollController = useScrollController(); void scrollToBottom() { @@ -46,7 +36,7 @@ class DriftActivitiesPage extends HookConsumerWidget { overrides: [currentRemoteAlbumScopedProvider.overrideWithValue(album)], child: Scaffold( appBar: AppBar( - title: asset == null ? Text(album.name) : null, + title: Text(album.name), actions: [const LikeActivityActionButton(menuItem: true)], actionsPadding: const EdgeInsets.only(right: 8), ), @@ -57,7 +47,7 @@ class DriftActivitiesPage extends HookConsumerWidget { activityWidgets.add( Padding( padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 6), - child: _CommentBubble(activity: activity), + child: CommentBubble(activity: activity), ), ); } @@ -91,139 +81,3 @@ class DriftActivitiesPage extends HookConsumerWidget { ); } } - -class _CommentBubble extends ConsumerWidget { - final Activity activity; - - const _CommentBubble({required this.activity}); - - @override - Widget build(BuildContext context, WidgetRef ref) { - final user = ref.watch(currentUserProvider); - final album = ref.watch(currentRemoteAlbumProvider)!; - final isOwn = activity.user.id == user?.id; - final canDelete = isOwn || album.ownerId == user?.id; - final hasAsset = activity.assetId != null && activity.assetId!.isNotEmpty; - final isLike = activity.type == ActivityType.like; - final bgColor = isOwn ? context.colorScheme.primaryContainer : context.colorScheme.surfaceContainer; - - final activityNotifier = ref.read(albumActivityProvider(album.id, activity.assetId).notifier); - - Future openAssetViewer() async { - final activityService = ref.read(activityServiceProvider); - final route = await activityService.buildAssetViewerRoute(activity.assetId!, ref); - if (route != null) await context.pushRoute(route); - } - - Widget avatar() { - if (isOwn) { - return const SizedBox.shrink(); - } - - return UserCircleAvatar(user: activity.user, size: 28, radius: 14); - } - - Widget? thumbnail() { - if (!hasAsset) { - return null; - } - - return ConstrainedBox( - constraints: const BoxConstraints(maxWidth: 150, maxHeight: 150), - child: Stack( - children: [ - GestureDetector( - onTap: openAssetViewer, - child: ClipRRect( - borderRadius: const BorderRadius.all(Radius.circular(10)), - child: Image( - image: ImmichRemoteThumbnailProvider(assetId: activity.assetId!), - fit: BoxFit.cover, - ), - ), - ), - if (isLike) - Positioned( - right: 6, - bottom: 6, - child: Container( - padding: const EdgeInsets.all(4), - decoration: BoxDecoration(color: Colors.white.withValues(alpha: 0.7), shape: BoxShape.circle), - child: Icon(Icons.favorite, color: Colors.red[600], size: 18), - ), - ), - ], - ), - ); - } - - // Likes Album widget (for likes without asset) - Widget? likesToAlbum() { - if (!isLike || hasAsset) { - return null; - } - - return Container( - padding: const EdgeInsets.all(8), - decoration: BoxDecoration(color: Colors.white.withValues(alpha: 0.7), shape: BoxShape.circle), - child: Icon(Icons.favorite, color: Colors.red[600], size: 18), - ); - } - - Widget? commentBubble() { - if (activity.comment == null || activity.comment!.isEmpty) { - return null; - } - - return ConstrainedBox( - constraints: BoxConstraints(maxWidth: MediaQuery.of(context).size.width * 0.5), - child: Container( - padding: const EdgeInsets.all(10), - decoration: BoxDecoration(color: bgColor, borderRadius: const BorderRadius.all(Radius.circular(12))), - child: Text( - activity.comment ?? '', - style: context.textTheme.bodyLarge?.copyWith(color: context.colorScheme.onSurface), - ), - ), - ); - } - - // Combined content widgets - final List contentChildren = [thumbnail(), likesToAlbum(), commentBubble()].whereType().toList(); - - return DismissibleActivity( - onDismiss: canDelete ? (id) async => await activityNotifier.removeActivity(id) : null, - activity.id, - Align( - alignment: isOwn ? Alignment.centerRight : Alignment.centerLeft, - child: ConstrainedBox( - constraints: BoxConstraints(maxWidth: MediaQuery.of(context).size.width * 0.86), - child: Container( - margin: const EdgeInsets.symmetric(vertical: 6, horizontal: 10), - child: Row( - mainAxisSize: MainAxisSize.min, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - if (!isOwn) ...[avatar(), const SizedBox(width: 8)], - // Content column - Column( - crossAxisAlignment: isOwn ? CrossAxisAlignment.end : CrossAxisAlignment.start, - children: [ - ...contentChildren.map((w) => Padding(padding: const EdgeInsets.only(bottom: 8.0), child: w)), - Text( - '${activity.user.name} • ${activity.createdAt.timeAgo()}', - style: context.textTheme.labelMedium?.copyWith( - color: context.colorScheme.onSurface.withValues(alpha: 0.6), - ), - ), - ], - ), - if (isOwn) const SizedBox(width: 8), - ], - ), - ), - ), - ), - ); - } -} diff --git a/mobile/lib/presentation/widgets/asset_viewer/activities_bottom_sheet.widget.dart b/mobile/lib/presentation/widgets/asset_viewer/activities_bottom_sheet.widget.dart index 81e64bed89..63669495b9 100644 --- a/mobile/lib/presentation/widgets/asset_viewer/activities_bottom_sheet.widget.dart +++ b/mobile/lib/presentation/widgets/asset_viewer/activities_bottom_sheet.widget.dart @@ -3,14 +3,12 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:immich_mobile/domain/models/asset/base_asset.model.dart'; import 'package:immich_mobile/extensions/asyncvalue_extensions.dart'; import 'package:immich_mobile/extensions/build_context_extensions.dart'; +import 'package:immich_mobile/widgets/activities/comment_bubble.dart'; import 'package:immich_mobile/presentation/widgets/album/drift_activity_text_field.dart'; import 'package:immich_mobile/presentation/widgets/bottom_sheet/base_bottom_sheet.widget.dart'; import 'package:immich_mobile/providers/activity.provider.dart'; import 'package:immich_mobile/providers/infrastructure/asset_viewer/current_asset.provider.dart'; import 'package:immich_mobile/providers/infrastructure/current_album.provider.dart'; -import 'package:immich_mobile/providers/user.provider.dart'; -import 'package:immich_mobile/widgets/activities/activity_tile.dart'; -import 'package:immich_mobile/widgets/activities/dismissible_activity.dart'; class ActivitiesBottomSheet extends HookConsumerWidget { final DraggableScrollableController controller; @@ -28,7 +26,6 @@ class ActivitiesBottomSheet extends HookConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { final album = ref.watch(currentRemoteAlbumProvider)!; final asset = ref.watch(currentAssetNotifier) as RemoteAsset?; - final user = ref.watch(currentUserProvider); final activityNotifier = ref.read(albumActivityProvider(album.id, asset?.id).notifier); final activities = ref.watch(albumActivityProvider(album.id, asset?.id)); @@ -47,16 +44,9 @@ class ActivitiesBottomSheet extends HookConsumerWidget { return const SizedBox.shrink(); } final activity = data[data.length - 1 - index]; - final canDelete = activity.user.id == user?.id || album.ownerId == user?.id; return Padding( - padding: const EdgeInsets.symmetric(vertical: 1), - child: DismissibleActivity( - activity.id, - ActivityTile(activity, isBottomSheet: true), - onDismiss: canDelete - ? (activityId) async => await activityNotifier.removeActivity(activity.id) - : null, - ), + padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4), + child: CommentBubble(activity: activity, isAssetActivity: true), ); }, childCount: data.length + 1), ); diff --git a/mobile/lib/widgets/activities/comment_bubble.dart b/mobile/lib/widgets/activities/comment_bubble.dart new file mode 100644 index 0000000000..11d5c21cec --- /dev/null +++ b/mobile/lib/widgets/activities/comment_bubble.dart @@ -0,0 +1,143 @@ +import 'package:auto_route/auto_route.dart'; +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; +import 'package:immich_mobile/extensions/build_context_extensions.dart'; +import 'package:immich_mobile/extensions/datetime_extensions.dart'; +import 'package:immich_mobile/models/activities/activity.model.dart'; +import 'package:immich_mobile/providers/activity.provider.dart'; +import 'package:immich_mobile/providers/activity_service.provider.dart'; +import 'package:immich_mobile/providers/image/immich_remote_thumbnail_provider.dart'; +import 'package:immich_mobile/providers/infrastructure/current_album.provider.dart'; +import 'package:immich_mobile/providers/user.provider.dart'; +import 'package:immich_mobile/widgets/activities/dismissible_activity.dart'; +import 'package:immich_mobile/widgets/common/user_circle_avatar.dart'; + +class CommentBubble extends ConsumerWidget { + final Activity activity; + final bool isAssetActivity; + + const CommentBubble({super.key, required this.activity, this.isAssetActivity = false}); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final user = ref.watch(currentUserProvider); + final album = ref.watch(currentRemoteAlbumProvider)!; + final isOwn = activity.user.id == user?.id; + final canDelete = isOwn || album.ownerId == user?.id; + final showThumbnail = !isAssetActivity && activity.assetId != null && activity.assetId!.isNotEmpty; + final isLike = activity.type == ActivityType.like; + final bgColor = isOwn ? context.colorScheme.primaryContainer : context.colorScheme.surfaceContainer; + + final activityNotifier = ref.read( + albumActivityProvider(album.id, isAssetActivity ? activity.assetId : null).notifier, + ); + + Future openAssetViewer() async { + final activityService = ref.read(activityServiceProvider); + final route = await activityService.buildAssetViewerRoute(activity.assetId!, ref); + if (route != null) await context.pushRoute(route); + } + + // avatar (hidden for own messages) + Widget avatar = const SizedBox.shrink(); + if (!isOwn) { + avatar = UserCircleAvatar(user: activity.user, size: 28, radius: 14); + } + + // Thumbnail with tappable behavior and optional heart overlay + Widget? thumbnail; + if (showThumbnail) { + thumbnail = ConstrainedBox( + constraints: const BoxConstraints(maxWidth: 150, maxHeight: 150), + child: Stack( + children: [ + GestureDetector( + onTap: openAssetViewer, + child: ClipRRect( + borderRadius: const BorderRadius.all(Radius.circular(10)), + child: Image( + image: ImmichRemoteThumbnailProvider(assetId: activity.assetId!), + fit: BoxFit.cover, + ), + ), + ), + if (isLike) + Positioned( + right: 6, + bottom: 6, + child: Container( + padding: const EdgeInsets.all(4), + decoration: BoxDecoration(color: Colors.white.withValues(alpha: 0.7), shape: BoxShape.circle), + child: Icon(Icons.favorite, color: Colors.red[600], size: 18), + ), + ), + ], + ), + ); + } + + // Likes widget + Widget? likes; + if (isLike && !showThumbnail) { + likes = Container( + padding: const EdgeInsets.all(8), + decoration: BoxDecoration(color: Colors.white.withValues(alpha: 0.7), shape: BoxShape.circle), + child: Icon(Icons.favorite, color: Colors.red[600], size: 18), + ); + } + + // Comment bubble, comment-only + Widget? commentBubble; + if (activity.comment != null && activity.comment!.isNotEmpty) { + commentBubble = ConstrainedBox( + constraints: BoxConstraints(maxWidth: MediaQuery.of(context).size.width * 0.5), + child: Container( + padding: const EdgeInsets.all(10), + decoration: BoxDecoration(color: bgColor, borderRadius: const BorderRadius.all(Radius.circular(12))), + child: Text( + activity.comment ?? '', + style: context.textTheme.bodyLarge?.copyWith(color: context.colorScheme.onSurface), + ), + ), + ); + } + + // Combined content widgets + final List contentChildren = [thumbnail, likes, commentBubble].whereType().toList(); + + return DismissibleActivity( + onDismiss: canDelete ? (id) async => await activityNotifier.removeActivity(id) : null, + activity.id, + Align( + alignment: isOwn ? Alignment.centerRight : Alignment.centerLeft, + child: ConstrainedBox( + constraints: BoxConstraints(maxWidth: MediaQuery.of(context).size.width * 0.86), + child: Container( + margin: const EdgeInsets.symmetric(vertical: 6, horizontal: 10), + child: Row( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + if (!isOwn) ...[avatar, const SizedBox(width: 8)], + // Content column + Column( + crossAxisAlignment: isOwn ? CrossAxisAlignment.end : CrossAxisAlignment.start, + children: [ + ...contentChildren.map((w) => Padding(padding: const EdgeInsets.only(bottom: 8.0), child: w)), + Text( + '${activity.user.name} • ${activity.createdAt.timeAgo()}', + style: context.textTheme.labelMedium?.copyWith( + color: context.colorScheme.onSurface.withValues(alpha: 0.6), + ), + ), + ], + ), + if (isOwn) const SizedBox(width: 8), + ], + ), + ), + ), + ), + ); + } +} From 787158247f6627ba15af7b79d752538901bafbdd Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 19:50:19 +0000 Subject: [PATCH 026/300] fix(deps): update typescript-projects (#23588) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Dietzler --- mise.toml | 10 +- package.json | 2 +- pnpm-lock.yaml | 1103 +++++++++++++++++++++++----------------------- web/package.json | 4 +- 4 files changed, 568 insertions(+), 551 deletions(-) diff --git a/mise.toml b/mise.toml index 474f768137..cf3b86c6cc 100644 --- a/mise.toml +++ b/mise.toml @@ -2,7 +2,15 @@ experimental_monorepo_root = true [tools] node = "24.11.0" -pnpm = "10.19.0" +flutter = "3.35.7" +pnpm = "10.20.0" +terragrunt = "0.91.2" +opentofu = "1.10.6" + +[tools."github:CQLabs/homebrew-dcm"] +version = "1.30.0" +bin = "dcm" +postinstall = "chmod +x $MISE_TOOL_INSTALL_PATH/dcm" [settings] experimental = true diff --git a/package.json b/package.json index 4c262de2b9..d08ea46edf 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.0.1", "description": "Monorepo for Immich", "private": true, - "packageManager": "pnpm@10.19.0+sha512.c9fc7236e92adf5c8af42fd5bf1612df99c2ceb62f27047032f4720b33f8eacdde311865e91c411f2774f618d82f320808ecb51718bfa82c060c4ba7c76a32b8", + "packageManager": "pnpm@10.20.0+sha512.cf9998222162dd85864d0a8102e7892e7ba4ceadebbf5a31f9c2fce48dfce317a9c53b9f6464d1ef9042cba2e02ae02a9f7c143a2b438cd93c91840f0192b9dd", "engines": { "pnpm": ">=10.0.0" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 463c7ccb46..da1dd18d97 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -64,10 +64,10 @@ importers: version: 4.13.4 '@types/node': specifier: ^22.18.13 - version: 22.18.13 + version: 22.19.0 '@vitest/coverage-v8': specifier: ^3.0.0 - version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.18.13)(happy-dom@20.0.8)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) byte-size: specifier: ^9.0.0 version: 9.0.1 @@ -109,16 +109,16 @@ importers: version: 8.46.2(eslint@9.38.0(jiti@2.6.1))(typescript@5.9.3) vite: specifier: ^7.0.0 - version: 7.1.12(@types/node@22.18.13)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + version: 7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) vite-tsconfig-paths: specifier: ^5.0.0 - version: 5.1.4(typescript@5.9.3)(vite@7.1.12(@types/node@22.18.13)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + version: 5.1.4(typescript@5.9.3)(vite@7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) vitest: specifier: ^3.0.0 - version: 3.2.4(@types/debug@4.1.12)(@types/node@22.18.13)(happy-dom@20.0.8)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + version: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) vitest-fetch-mock: specifier: ^0.4.0 - version: 0.4.5(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.18.13)(happy-dom@20.0.8)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + version: 0.4.5(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) yaml: specifier: ^2.3.1 version: 2.8.1 @@ -212,13 +212,13 @@ importers: version: 3.7.1 '@types/node': specifier: ^22.18.13 - version: 22.18.13 + version: 22.19.0 '@types/oidc-provider': specifier: ^9.0.0 version: 9.5.0 '@types/pg': specifier: ^8.15.1 - version: 8.15.5 + version: 8.15.6 '@types/pngjs': specifier: ^6.0.4 version: 6.0.5 @@ -284,7 +284,7 @@ importers: version: 5.2.1(encoding@0.1.13) vitest: specifier: ^3.0.0 - version: 3.2.4(@types/debug@4.1.12)(@types/node@22.18.13)(happy-dom@20.0.8)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2(encoding@0.1.13)))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + version: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2(encoding@0.1.13)))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) open-api/typescript-sdk: dependencies: @@ -294,7 +294,7 @@ importers: devDependencies: '@types/node': specifier: ^22.18.13 - version: 22.18.13 + version: 22.19.0 typescript: specifier: ^5.3.3 version: 5.9.3 @@ -303,28 +303,28 @@ importers: dependencies: '@nestjs/bullmq': specifier: ^11.0.1 - version: 11.0.4(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7)(bullmq@5.61.2) + version: 11.0.4(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)(bullmq@5.62.1) '@nestjs/common': specifier: ^11.0.4 - version: 11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) + version: 11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) '@nestjs/core': specifier: ^11.0.4 - version: 11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.7)(@nestjs/websockets@11.1.7)(reflect-metadata@0.2.2)(rxjs@7.8.2) + version: 11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.8)(@nestjs/websockets@11.1.8)(reflect-metadata@0.2.2)(rxjs@7.8.2) '@nestjs/platform-express': specifier: ^11.0.4 - version: 11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7) + version: 11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8) '@nestjs/platform-socket.io': specifier: ^11.0.4 - version: 11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/websockets@11.1.7)(rxjs@7.8.2) + version: 11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/websockets@11.1.8)(rxjs@7.8.2) '@nestjs/schedule': specifier: ^6.0.0 - version: 6.0.1(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7) + version: 6.0.1(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8) '@nestjs/swagger': specifier: ^11.0.2 - version: 11.2.1(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7)(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2) + version: 11.2.1(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2) '@nestjs/websockets': specifier: ^11.0.4 - version: 11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7)(@nestjs/platform-socket.io@11.1.7)(reflect-metadata@0.2.2)(rxjs@7.8.2) + version: 11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)(@nestjs/platform-socket.io@11.1.8)(reflect-metadata@0.2.2)(rxjs@7.8.2) '@opentelemetry/api': specifier: ^1.9.0 version: 1.9.0 @@ -381,7 +381,7 @@ importers: version: 2.2.0 bullmq: specifier: ^5.51.0 - version: 5.61.2 + version: 5.62.1 chokidar: specifier: ^4.0.3 version: 4.0.3 @@ -450,16 +450,16 @@ importers: version: 2.0.2 nest-commander: specifier: ^3.16.0 - version: 3.20.1(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7)(@types/inquirer@8.2.11)(@types/node@22.18.13)(typescript@5.9.3) + version: 3.20.1(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)(@types/inquirer@8.2.11)(@types/node@22.19.0)(typescript@5.9.3) nestjs-cls: specifier: ^5.0.0 - version: 5.4.3(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7)(reflect-metadata@0.2.2)(rxjs@7.8.2) + version: 5.4.3(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)(reflect-metadata@0.2.2)(rxjs@7.8.2) nestjs-kysely: specifier: 3.1.2 - version: 3.1.2(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7)(kysely@0.28.2)(reflect-metadata@0.2.2) + version: 3.1.2(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)(kysely@0.28.2)(reflect-metadata@0.2.2) nestjs-otel: specifier: ^7.0.0 - version: 7.0.1(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7) + version: 7.0.1(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8) nodemailer: specifier: ^7.0.0 version: 7.0.10 @@ -486,7 +486,7 @@ importers: version: 19.2.0(react@19.2.0) react-email: specifier: ^4.0.0 - version: 4.3.1 + version: 4.3.2 reflect-metadata: specifier: ^0.2.0 version: 0.2.2 @@ -532,16 +532,16 @@ importers: version: 9.38.0 '@nestjs/cli': specifier: ^11.0.2 - version: 11.0.10(@swc/core@1.13.5(@swc/helpers@0.5.17))(@types/node@22.18.13) + version: 11.0.10(@swc/core@1.14.0(@swc/helpers@0.5.17))(@types/node@22.19.0) '@nestjs/schematics': specifier: ^11.0.0 version: 11.0.9(chokidar@4.0.3)(typescript@5.9.3) '@nestjs/testing': specifier: ^11.0.4 - version: 11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7)(@nestjs/platform-express@11.1.7) + version: 11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)(@nestjs/platform-express@11.1.8) '@swc/core': specifier: ^1.4.14 - version: 1.13.5(@swc/helpers@0.5.17) + version: 1.14.0(@swc/helpers@0.5.17) '@types/archiver': specifier: ^6.0.0 version: 6.0.4 @@ -583,7 +583,7 @@ importers: version: 2.0.0 '@types/node': specifier: ^22.18.13 - version: 22.18.13 + version: 22.19.0 '@types/nodemailer': specifier: ^7.0.0 version: 7.0.3 @@ -610,10 +610,10 @@ importers: version: 0.7.39 '@types/validator': specifier: ^13.15.2 - version: 13.15.3 + version: 13.15.4 '@vitest/coverage-v8': specifier: ^3.0.0 - version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.18.13)(happy-dom@20.0.8)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) eslint: specifier: ^9.14.0 version: 9.38.0(jiti@2.6.1) @@ -664,13 +664,13 @@ importers: version: 8.46.2(eslint@9.38.0(jiti@2.6.1))(typescript@5.9.3) unplugin-swc: specifier: ^1.4.5 - version: 1.5.8(@swc/core@1.13.5(@swc/helpers@0.5.17))(rollup@4.52.5) + version: 1.5.8(@swc/core@1.14.0(@swc/helpers@0.5.17))(rollup@4.52.5) vite-tsconfig-paths: specifier: ^5.0.0 - version: 5.1.4(typescript@5.9.3)(vite@7.1.12(@types/node@22.18.13)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + version: 5.1.4(typescript@5.9.3)(vite@7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) vitest: specifier: ^3.0.0 - version: 3.2.4(@types/debug@4.1.12)(@types/node@22.18.13)(happy-dom@20.0.8)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + version: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) web: dependencies: @@ -685,7 +685,7 @@ importers: version: link:../open-api/typescript-sdk '@immich/ui': specifier: ^0.40.2 - version: 0.40.2(@internationalized/date@3.8.2)(svelte@5.41.3) + version: 0.40.2(@internationalized/date@3.8.2)(svelte@5.43.0) '@mapbox/mapbox-gl-rtl-text': specifier: 0.2.3 version: 0.2.3(mapbox-gl@1.13.3) @@ -715,7 +715,7 @@ importers: version: 0.41.3 '@zoom-image/svelte': specifier: ^0.3.0 - version: 0.3.7(svelte@5.41.3) + version: 0.3.7(svelte@5.43.0) async-mutex: specifier: ^0.5.0 version: 0.5.0 @@ -736,7 +736,7 @@ importers: version: 4.7.8 happy-dom: specifier: ^20.0.0 - version: 20.0.8 + version: 20.0.10 intl-messageformat: specifier: ^10.7.11 version: 10.7.18 @@ -751,7 +751,7 @@ importers: version: 3.7.2 maplibre-gl: specifier: ^5.6.2 - version: 5.9.0 + version: 5.10.0 pmtiles: specifier: ^4.3.0 version: 4.3.0 @@ -760,7 +760,7 @@ importers: version: 1.5.4 simple-icons: specifier: ^15.15.0 - version: 15.17.0 + version: 15.18.0 socket.io-client: specifier: ~4.8.0 version: 4.8.1 @@ -769,13 +769,13 @@ importers: version: 5.2.2 svelte-i18n: specifier: ^4.0.1 - version: 4.0.1(svelte@5.41.3) + version: 4.0.1(svelte@5.43.0) svelte-maplibre: - specifier: ^1.2.0 - version: 1.2.3(svelte@5.41.3) + specifier: ^1.2.5 + version: 1.2.5(svelte@5.43.0) svelte-persisted-store: specifier: ^0.12.0 - version: 0.12.0(svelte@5.41.3) + version: 0.12.0(svelte@5.43.0) tabbable: specifier: ^6.2.0 version: 6.3.0 @@ -797,25 +797,25 @@ importers: version: 3.1.2 '@sveltejs/adapter-static': specifier: ^3.0.8 - version: 3.0.10(@sveltejs/kit@2.47.3(@opentelemetry/api@1.9.0)(@sveltejs/vite-plugin-svelte@6.2.1(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)))(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))) + version: 3.0.10(@sveltejs/kit@2.48.3(@opentelemetry/api@1.9.0)(@sveltejs/vite-plugin-svelte@6.2.1(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)))(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))) '@sveltejs/enhanced-img': specifier: ^0.8.0 - version: 0.8.4(@sveltejs/vite-plugin-svelte@6.2.1(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)))(rollup@4.52.5)(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + version: 0.8.4(@sveltejs/vite-plugin-svelte@6.2.1(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)))(rollup@4.52.5)(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) '@sveltejs/kit': specifier: ^2.27.1 - version: 2.47.3(@opentelemetry/api@1.9.0)(@sveltejs/vite-plugin-svelte@6.2.1(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)))(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + version: 2.48.3(@opentelemetry/api@1.9.0)(@sveltejs/vite-plugin-svelte@6.2.1(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)))(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) '@sveltejs/vite-plugin-svelte': specifier: 6.2.1 - version: 6.2.1(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + version: 6.2.1(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) '@tailwindcss/vite': specifier: ^4.1.7 - version: 4.1.16(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + version: 4.1.16(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) '@testing-library/jest-dom': specifier: ^6.4.2 version: 6.9.1 '@testing-library/svelte': specifier: ^5.2.8 - version: 5.2.8(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.9.2)(happy-dom@20.0.8)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + version: 5.2.8(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.10.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) '@testing-library/user-event': specifier: ^14.5.2 version: 14.6.1(@testing-library/dom@10.4.0) @@ -839,7 +839,7 @@ importers: version: 1.5.6 '@vitest/coverage-v8': specifier: ^3.0.0 - version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.9.2)(happy-dom@20.0.8)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.10.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) dotenv: specifier: ^17.0.0 version: 17.2.3 @@ -854,7 +854,7 @@ importers: version: 6.0.2(eslint@9.38.0(jiti@2.6.1)) eslint-plugin-svelte: specifier: ^3.12.4 - version: 3.12.5(eslint@9.38.0(jiti@2.6.1))(svelte@5.41.3) + version: 3.12.5(eslint@9.38.0(jiti@2.6.1))(svelte@5.43.0) eslint-plugin-unicorn: specifier: ^61.0.2 version: 61.0.2(eslint@9.38.0(jiti@2.6.1)) @@ -875,19 +875,19 @@ importers: version: 4.1.1(prettier@3.6.2) prettier-plugin-svelte: specifier: ^3.3.3 - version: 3.4.0(prettier@3.6.2)(svelte@5.41.3) + version: 3.4.0(prettier@3.6.2)(svelte@5.43.0) rollup-plugin-visualizer: specifier: ^6.0.0 version: 6.0.5(rollup@4.52.5) svelte: - specifier: 5.41.3 - version: 5.41.3 + specifier: 5.43.0 + version: 5.43.0 svelte-check: specifier: ^4.1.5 - version: 4.3.3(picomatch@4.0.3)(svelte@5.41.3)(typescript@5.9.3) + version: 4.3.3(picomatch@4.0.3)(svelte@5.43.0)(typescript@5.9.3) svelte-eslint-parser: specifier: ^1.3.3 - version: 1.4.0(svelte@5.41.3) + version: 1.4.0(svelte@5.43.0) tailwindcss: specifier: ^4.1.7 version: 4.1.16 @@ -899,10 +899,10 @@ importers: version: 8.46.2(eslint@9.38.0(jiti@2.6.1))(typescript@5.9.3) vite: specifier: ^7.1.2 - version: 7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + version: 7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) vitest: specifier: ^3.0.0 - version: 3.2.4(@types/debug@4.1.12)(@types/node@24.9.2)(happy-dom@20.0.8)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + version: 3.2.4(@types/debug@4.1.12)(@types/node@24.10.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) packages: @@ -2238,8 +2238,8 @@ packages: cpu: [ppc64] os: [aix] - '@esbuild/aix-ppc64@0.25.11': - resolution: {integrity: sha512-Xt1dOL13m8u0WE8iplx9Ibbm+hFAO0GsU2P34UNoDGvZYkY8ifSiy6Zuc1lYxfG7svWE2fzqCUmFp5HCn51gJg==} + '@esbuild/aix-ppc64@0.25.12': + resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==} engines: {node: '>=18'} cpu: [ppc64] os: [aix] @@ -2250,8 +2250,8 @@ packages: cpu: [arm64] os: [android] - '@esbuild/android-arm64@0.25.11': - resolution: {integrity: sha512-9slpyFBc4FPPz48+f6jyiXOx/Y4v34TUeDDXJpZqAWQn/08lKGeD8aDp9TMn9jDz2CiEuHwfhRmGBvpnd/PWIQ==} + '@esbuild/android-arm64@0.25.12': + resolution: {integrity: sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==} engines: {node: '>=18'} cpu: [arm64] os: [android] @@ -2262,8 +2262,8 @@ packages: cpu: [arm] os: [android] - '@esbuild/android-arm@0.25.11': - resolution: {integrity: sha512-uoa7dU+Dt3HYsethkJ1k6Z9YdcHjTrSb5NUy66ZfZaSV8hEYGD5ZHbEMXnqLFlbBflLsl89Zke7CAdDJ4JI+Gg==} + '@esbuild/android-arm@0.25.12': + resolution: {integrity: sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==} engines: {node: '>=18'} cpu: [arm] os: [android] @@ -2274,8 +2274,8 @@ packages: cpu: [x64] os: [android] - '@esbuild/android-x64@0.25.11': - resolution: {integrity: sha512-Sgiab4xBjPU1QoPEIqS3Xx+R2lezu0LKIEcYe6pftr56PqPygbB7+szVnzoShbx64MUupqoE0KyRlN7gezbl8g==} + '@esbuild/android-x64@0.25.12': + resolution: {integrity: sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==} engines: {node: '>=18'} cpu: [x64] os: [android] @@ -2286,8 +2286,8 @@ packages: cpu: [arm64] os: [darwin] - '@esbuild/darwin-arm64@0.25.11': - resolution: {integrity: sha512-VekY0PBCukppoQrycFxUqkCojnTQhdec0vevUL/EDOCnXd9LKWqD/bHwMPzigIJXPhC59Vd1WFIL57SKs2mg4w==} + '@esbuild/darwin-arm64@0.25.12': + resolution: {integrity: sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==} engines: {node: '>=18'} cpu: [arm64] os: [darwin] @@ -2298,8 +2298,8 @@ packages: cpu: [x64] os: [darwin] - '@esbuild/darwin-x64@0.25.11': - resolution: {integrity: sha512-+hfp3yfBalNEpTGp9loYgbknjR695HkqtY3d3/JjSRUyPg/xd6q+mQqIb5qdywnDxRZykIHs3axEqU6l1+oWEQ==} + '@esbuild/darwin-x64@0.25.12': + resolution: {integrity: sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==} engines: {node: '>=18'} cpu: [x64] os: [darwin] @@ -2310,8 +2310,8 @@ packages: cpu: [arm64] os: [freebsd] - '@esbuild/freebsd-arm64@0.25.11': - resolution: {integrity: sha512-CmKjrnayyTJF2eVuO//uSjl/K3KsMIeYeyN7FyDBjsR3lnSJHaXlVoAK8DZa7lXWChbuOk7NjAc7ygAwrnPBhA==} + '@esbuild/freebsd-arm64@0.25.12': + resolution: {integrity: sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==} engines: {node: '>=18'} cpu: [arm64] os: [freebsd] @@ -2322,8 +2322,8 @@ packages: cpu: [x64] os: [freebsd] - '@esbuild/freebsd-x64@0.25.11': - resolution: {integrity: sha512-Dyq+5oscTJvMaYPvW3x3FLpi2+gSZTCE/1ffdwuM6G1ARang/mb3jvjxs0mw6n3Lsw84ocfo9CrNMqc5lTfGOw==} + '@esbuild/freebsd-x64@0.25.12': + resolution: {integrity: sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==} engines: {node: '>=18'} cpu: [x64] os: [freebsd] @@ -2334,8 +2334,8 @@ packages: cpu: [arm64] os: [linux] - '@esbuild/linux-arm64@0.25.11': - resolution: {integrity: sha512-Qr8AzcplUhGvdyUF08A1kHU3Vr2O88xxP0Tm8GcdVOUm25XYcMPp2YqSVHbLuXzYQMf9Bh/iKx7YPqECs6ffLA==} + '@esbuild/linux-arm64@0.25.12': + resolution: {integrity: sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==} engines: {node: '>=18'} cpu: [arm64] os: [linux] @@ -2346,8 +2346,8 @@ packages: cpu: [arm] os: [linux] - '@esbuild/linux-arm@0.25.11': - resolution: {integrity: sha512-TBMv6B4kCfrGJ8cUPo7vd6NECZH/8hPpBHHlYI3qzoYFvWu2AdTvZNuU/7hsbKWqu/COU7NIK12dHAAqBLLXgw==} + '@esbuild/linux-arm@0.25.12': + resolution: {integrity: sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==} engines: {node: '>=18'} cpu: [arm] os: [linux] @@ -2358,8 +2358,8 @@ packages: cpu: [ia32] os: [linux] - '@esbuild/linux-ia32@0.25.11': - resolution: {integrity: sha512-TmnJg8BMGPehs5JKrCLqyWTVAvielc615jbkOirATQvWWB1NMXY77oLMzsUjRLa0+ngecEmDGqt5jiDC6bfvOw==} + '@esbuild/linux-ia32@0.25.12': + resolution: {integrity: sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==} engines: {node: '>=18'} cpu: [ia32] os: [linux] @@ -2370,8 +2370,8 @@ packages: cpu: [loong64] os: [linux] - '@esbuild/linux-loong64@0.25.11': - resolution: {integrity: sha512-DIGXL2+gvDaXlaq8xruNXUJdT5tF+SBbJQKbWy/0J7OhU8gOHOzKmGIlfTTl6nHaCOoipxQbuJi7O++ldrxgMw==} + '@esbuild/linux-loong64@0.25.12': + resolution: {integrity: sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==} engines: {node: '>=18'} cpu: [loong64] os: [linux] @@ -2382,8 +2382,8 @@ packages: cpu: [mips64el] os: [linux] - '@esbuild/linux-mips64el@0.25.11': - resolution: {integrity: sha512-Osx1nALUJu4pU43o9OyjSCXokFkFbyzjXb6VhGIJZQ5JZi8ylCQ9/LFagolPsHtgw6himDSyb5ETSfmp4rpiKQ==} + '@esbuild/linux-mips64el@0.25.12': + resolution: {integrity: sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==} engines: {node: '>=18'} cpu: [mips64el] os: [linux] @@ -2394,8 +2394,8 @@ packages: cpu: [ppc64] os: [linux] - '@esbuild/linux-ppc64@0.25.11': - resolution: {integrity: sha512-nbLFgsQQEsBa8XSgSTSlrnBSrpoWh7ioFDUmwo158gIm5NNP+17IYmNWzaIzWmgCxq56vfr34xGkOcZ7jX6CPw==} + '@esbuild/linux-ppc64@0.25.12': + resolution: {integrity: sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==} engines: {node: '>=18'} cpu: [ppc64] os: [linux] @@ -2406,8 +2406,8 @@ packages: cpu: [riscv64] os: [linux] - '@esbuild/linux-riscv64@0.25.11': - resolution: {integrity: sha512-HfyAmqZi9uBAbgKYP1yGuI7tSREXwIb438q0nqvlpxAOs3XnZ8RsisRfmVsgV486NdjD7Mw2UrFSw51lzUk1ww==} + '@esbuild/linux-riscv64@0.25.12': + resolution: {integrity: sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==} engines: {node: '>=18'} cpu: [riscv64] os: [linux] @@ -2418,8 +2418,8 @@ packages: cpu: [s390x] os: [linux] - '@esbuild/linux-s390x@0.25.11': - resolution: {integrity: sha512-HjLqVgSSYnVXRisyfmzsH6mXqyvj0SA7pG5g+9W7ESgwA70AXYNpfKBqh1KbTxmQVaYxpzA/SvlB9oclGPbApw==} + '@esbuild/linux-s390x@0.25.12': + resolution: {integrity: sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==} engines: {node: '>=18'} cpu: [s390x] os: [linux] @@ -2430,14 +2430,14 @@ packages: cpu: [x64] os: [linux] - '@esbuild/linux-x64@0.25.11': - resolution: {integrity: sha512-HSFAT4+WYjIhrHxKBwGmOOSpphjYkcswF449j6EjsjbinTZbp8PJtjsVK1XFJStdzXdy/jaddAep2FGY+wyFAQ==} + '@esbuild/linux-x64@0.25.12': + resolution: {integrity: sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==} engines: {node: '>=18'} cpu: [x64] os: [linux] - '@esbuild/netbsd-arm64@0.25.11': - resolution: {integrity: sha512-hr9Oxj1Fa4r04dNpWr3P8QKVVsjQhqrMSUzZzf+LZcYjZNqhA3IAfPQdEh1FLVUJSiu6sgAwp3OmwBfbFgG2Xg==} + '@esbuild/netbsd-arm64@0.25.12': + resolution: {integrity: sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==} engines: {node: '>=18'} cpu: [arm64] os: [netbsd] @@ -2448,14 +2448,14 @@ packages: cpu: [x64] os: [netbsd] - '@esbuild/netbsd-x64@0.25.11': - resolution: {integrity: sha512-u7tKA+qbzBydyj0vgpu+5h5AeudxOAGncb8N6C9Kh1N4n7wU1Xw1JDApsRjpShRpXRQlJLb9wY28ELpwdPcZ7A==} + '@esbuild/netbsd-x64@0.25.12': + resolution: {integrity: sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==} engines: {node: '>=18'} cpu: [x64] os: [netbsd] - '@esbuild/openbsd-arm64@0.25.11': - resolution: {integrity: sha512-Qq6YHhayieor3DxFOoYM1q0q1uMFYb7cSpLD2qzDSvK1NAvqFi8Xgivv0cFC6J+hWVw2teCYltyy9/m/14ryHg==} + '@esbuild/openbsd-arm64@0.25.12': + resolution: {integrity: sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==} engines: {node: '>=18'} cpu: [arm64] os: [openbsd] @@ -2466,14 +2466,14 @@ packages: cpu: [x64] os: [openbsd] - '@esbuild/openbsd-x64@0.25.11': - resolution: {integrity: sha512-CN+7c++kkbrckTOz5hrehxWN7uIhFFlmS/hqziSFVWpAzpWrQoAG4chH+nN3Be+Kzv/uuo7zhX716x3Sn2Jduw==} + '@esbuild/openbsd-x64@0.25.12': + resolution: {integrity: sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==} engines: {node: '>=18'} cpu: [x64] os: [openbsd] - '@esbuild/openharmony-arm64@0.25.11': - resolution: {integrity: sha512-rOREuNIQgaiR+9QuNkbkxubbp8MSO9rONmwP5nKncnWJ9v5jQ4JxFnLu4zDSRPf3x4u+2VN4pM4RdyIzDty/wQ==} + '@esbuild/openharmony-arm64@0.25.12': + resolution: {integrity: sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==} engines: {node: '>=18'} cpu: [arm64] os: [openharmony] @@ -2484,8 +2484,8 @@ packages: cpu: [x64] os: [sunos] - '@esbuild/sunos-x64@0.25.11': - resolution: {integrity: sha512-nq2xdYaWxyg9DcIyXkZhcYulC6pQ2FuCgem3LI92IwMgIZ69KHeY8T4Y88pcwoLIjbed8n36CyKoYRDygNSGhA==} + '@esbuild/sunos-x64@0.25.12': + resolution: {integrity: sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==} engines: {node: '>=18'} cpu: [x64] os: [sunos] @@ -2496,8 +2496,8 @@ packages: cpu: [arm64] os: [win32] - '@esbuild/win32-arm64@0.25.11': - resolution: {integrity: sha512-3XxECOWJq1qMZ3MN8srCJ/QfoLpL+VaxD/WfNRm1O3B4+AZ/BnLVgFbUV3eiRYDMXetciH16dwPbbHqwe1uU0Q==} + '@esbuild/win32-arm64@0.25.12': + resolution: {integrity: sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==} engines: {node: '>=18'} cpu: [arm64] os: [win32] @@ -2508,8 +2508,8 @@ packages: cpu: [ia32] os: [win32] - '@esbuild/win32-ia32@0.25.11': - resolution: {integrity: sha512-3ukss6gb9XZ8TlRyJlgLn17ecsK4NSQTmdIXRASVsiS2sQ6zPPZklNJT5GR5tE/MUarymmy8kCEf5xPCNCqVOA==} + '@esbuild/win32-ia32@0.25.12': + resolution: {integrity: sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==} engines: {node: '>=18'} cpu: [ia32] os: [win32] @@ -2520,8 +2520,8 @@ packages: cpu: [x64] os: [win32] - '@esbuild/win32-x64@0.25.11': - resolution: {integrity: sha512-D7Hpz6A2L4hzsRpPaCYkQnGOotdUpDzSGRIv9I+1ITdHROSFUWW95ZPZWQmGka1Fg7W3zFJowyn9WGwMJ0+KPA==} + '@esbuild/win32-x64@0.25.12': + resolution: {integrity: sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==} engines: {node: '>=18'} cpu: [x64] os: [win32] @@ -3088,8 +3088,8 @@ packages: resolution: {integrity: sha512-Es6WcD0nO5l+2BOQS4uLfNPYQaNDfbot3X1XUoloz+x0mPDS3eeORZJl06HXjwBG1fOGwCRnzK88LMdxKRrd6Q==} engines: {node: '>=6.0.0'} - '@maplibre/maplibre-gl-style-spec@24.3.0': - resolution: {integrity: sha512-CTJc/Nvldv+GNQuis29VnyV0TYsFTgQBY3SNagTzZ28oHDsDYJ7LwEmfick4Z30wPwI/4gXe3se8PH2IIfLx2g==} + '@maplibre/maplibre-gl-style-spec@24.3.1': + resolution: {integrity: sha512-TUM5JD40H2mgtVXl5IwWz03BuQabw8oZQLJTmPpJA0YTYF+B+oZppy5lNMO6bMvHzB+/5mxqW9VLG3wFdeqtOw==} hasBin: true '@maplibre/vt-pbf@4.0.3': @@ -3178,8 +3178,8 @@ packages: '@swc/core': optional: true - '@nestjs/common@11.1.7': - resolution: {integrity: sha512-lwlObwGgIlpXSXYOTpfzdCepUyWomz6bv9qzGzzvpgspUxkj0Uz0fUJcvD44V8Ps7QhKW3lZBoYbXrH25UZrbA==} + '@nestjs/common@11.1.8': + resolution: {integrity: sha512-bbsOqwld/GdBfiRNc4nnjyWWENDEicq4SH+R5AuYatvf++vf1x5JIsHB1i1KtfZMD3eRte0D4K9WXuAYil6XAg==} peerDependencies: class-transformer: '>=0.4.1' class-validator: '>=0.13.2' @@ -3191,8 +3191,8 @@ packages: class-validator: optional: true - '@nestjs/core@11.1.7': - resolution: {integrity: sha512-TyXFOwjhHv/goSgJ8i20K78jwTM0iSpk9GBcC2h3mf4MxNy+znI8m7nWjfoACjTkb89cTwDQetfTHtSfGLLaiA==} + '@nestjs/core@11.1.8': + resolution: {integrity: sha512-7riWfmTmMhCJHZ5ZiaG+crj4t85IPCq/wLRuOUSigBYyFT2JZj0lVHtAdf4Davp9ouNI8GINBDt9h9b5Gz9nTw==} engines: {node: '>= 20'} peerDependencies: '@nestjs/common': ^11.0.0 @@ -3222,14 +3222,14 @@ packages: class-validator: optional: true - '@nestjs/platform-express@11.1.7': - resolution: {integrity: sha512-5T+GLdvTiGPKB4/P4PM9ftKUKNHJy8ThEFhZA3vQnXVL7Vf0rDr07TfVTySVu+XTh85m1lpFVuyFM6u6wLNsRA==} + '@nestjs/platform-express@11.1.8': + resolution: {integrity: sha512-rL6pZH9BW7BnL5X2eWbJMtt86uloAKjFgyY5+L2UkizgfEp7rgAs0+Z1z0BcW2Pgu5+q8O7RKPNyHJ/9ZNz/ZQ==} peerDependencies: '@nestjs/common': ^11.0.0 '@nestjs/core': ^11.0.0 - '@nestjs/platform-socket.io@11.1.7': - resolution: {integrity: sha512-suAyy5JWWvqU0fXbRp79Ihy7a1HSfB5rKgecVRmuQQyTi28W/0lsRsJN41plsxOEiXtaZq7sqiQp5Dg4XeUc9g==} + '@nestjs/platform-socket.io@11.1.8': + resolution: {integrity: sha512-nMUvwcdztso8BjN9czRl4sm0Ewc5xrCcgLvy+QPt6VAnTdu06KcZqtA6Cl3MKxViSQsQ8NBN5foKvZehNt/tug==} peerDependencies: '@nestjs/common': ^11.0.0 '@nestjs/websockets': ^11.0.0 @@ -3263,8 +3263,8 @@ packages: class-validator: optional: true - '@nestjs/testing@11.1.7': - resolution: {integrity: sha512-QbtrgSlc3QVo6RHNxTTlyhaiobLLy8kvhOlgWHsoXRknybuRs7vZg4k5mo3ye6pITGeT3CrWIRpZjUsh5Wps5Q==} + '@nestjs/testing@11.1.8': + resolution: {integrity: sha512-E6K+0UTKztcPxJzLnQa7S34lFjZbrj3Z1r7c5y5WDrL1m5HD1H4AeyBhicHgdaFmxjLAva2bq0sYKy/S7cdeYA==} peerDependencies: '@nestjs/common': ^11.0.0 '@nestjs/core': ^11.0.0 @@ -3276,8 +3276,8 @@ packages: '@nestjs/platform-express': optional: true - '@nestjs/websockets@11.1.7': - resolution: {integrity: sha512-FWPgZPN7yQWIeonQ7JL64Rbsbw/IQovft0cVC5UX1Jbsovq+rUaTuk3rilimGrawN9VOGcoiQLGNiIbmjjiCew==} + '@nestjs/websockets@11.1.8': + resolution: {integrity: sha512-RXo2336p/vyAwJ0qPInglzNSQ//qz+JTLr2LE1vlbmN5WcyB7zV6+gY06YgNdsr3oy/cXRh7fnC3Ph/VAu1EVg==} peerDependencies: '@nestjs/common': ^11.0.0 '@nestjs/core': ^11.0.0 @@ -4091,8 +4091,8 @@ packages: svelte: ^5.0.0 vite: ^6.3.0 || >=7.0.0 - '@sveltejs/kit@2.47.3': - resolution: {integrity: sha512-zN2yzBc2dIES2BSzLhNP2weYhwB77kgM/oAktICZVmmljyEmPZrlUwr14jjdK9/eDu7WdAuf6gTdYIJLTcN3Fw==} + '@sveltejs/kit@2.48.3': + resolution: {integrity: sha512-jf8mx3yctRXE9hvixgcqqK94YI2hDnbxI/12Upkz99XFMvxnJKCMzvz0j7lmbXSyBSNEycWO5xHvi7b73y9qkQ==} engines: {node: '>=18.13'} hasBin: true peerDependencies: @@ -4197,68 +4197,68 @@ packages: resolution: {integrity: sha512-LnhVjMWyMQV9ZmeEy26maJk+8HTIbd59cH4F2MJ439k9DqejRisfFNGAPvRYlKETuh9LrImlS8aKsBgKjMA8WA==} engines: {node: '>=14'} - '@swc/core-darwin-arm64@1.13.5': - resolution: {integrity: sha512-lKNv7SujeXvKn16gvQqUQI5DdyY8v7xcoO3k06/FJbHJS90zEwZdQiMNRiqpYw/orU543tPaWgz7cIYWhbopiQ==} + '@swc/core-darwin-arm64@1.14.0': + resolution: {integrity: sha512-uHPC8rlCt04nvYNczWzKVdgnRhxCa3ndKTBBbBpResOZsRmiwRAvByIGh599j+Oo6Z5eyTPrgY+XfJzVmXnN7Q==} engines: {node: '>=10'} cpu: [arm64] os: [darwin] - '@swc/core-darwin-x64@1.13.5': - resolution: {integrity: sha512-ILd38Fg/w23vHb0yVjlWvQBoE37ZJTdlLHa8LRCFDdX4WKfnVBiblsCU9ar4QTMNdeTBEX9iUF4IrbNWhaF1Ng==} + '@swc/core-darwin-x64@1.14.0': + resolution: {integrity: sha512-2SHrlpl68vtePRknv9shvM9YKKg7B9T13tcTg9aFCwR318QTYo+FzsKGmQSv9ox/Ua0Q2/5y2BNjieffJoo4nA==} engines: {node: '>=10'} cpu: [x64] os: [darwin] - '@swc/core-linux-arm-gnueabihf@1.13.5': - resolution: {integrity: sha512-Q6eS3Pt8GLkXxqz9TAw+AUk9HpVJt8Uzm54MvPsqp2yuGmY0/sNaPPNVqctCX9fu/Nu8eaWUen0si6iEiCsazQ==} + '@swc/core-linux-arm-gnueabihf@1.14.0': + resolution: {integrity: sha512-SMH8zn01dxt809svetnxpeg/jWdpi6dqHKO3Eb11u4OzU2PK7I5uKS6gf2hx5LlTbcJMFKULZiVwjlQLe8eqtg==} engines: {node: '>=10'} cpu: [arm] os: [linux] - '@swc/core-linux-arm64-gnu@1.13.5': - resolution: {integrity: sha512-aNDfeN+9af+y+M2MYfxCzCy/VDq7Z5YIbMqRI739o8Ganz6ST+27kjQFd8Y/57JN/hcnUEa9xqdS3XY7WaVtSw==} + '@swc/core-linux-arm64-gnu@1.14.0': + resolution: {integrity: sha512-q2JRu2D8LVqGeHkmpVCljVNltG0tB4o4eYg+dElFwCS8l2Mnt9qurMCxIeo9mgoqz0ax+k7jWtIRHktnVCbjvQ==} engines: {node: '>=10'} cpu: [arm64] os: [linux] - '@swc/core-linux-arm64-musl@1.13.5': - resolution: {integrity: sha512-9+ZxFN5GJag4CnYnq6apKTnnezpfJhCumyz0504/JbHLo+Ue+ZtJnf3RhyA9W9TINtLE0bC4hKpWi8ZKoETyOQ==} + '@swc/core-linux-arm64-musl@1.14.0': + resolution: {integrity: sha512-uofpVoPCEUjYIv454ZEZ3sLgMD17nIwlz2z7bsn7rl301Kt/01umFA7MscUovFfAK2IRGck6XB+uulMu6aFhKQ==} engines: {node: '>=10'} cpu: [arm64] os: [linux] - '@swc/core-linux-x64-gnu@1.13.5': - resolution: {integrity: sha512-WD530qvHrki8Ywt/PloKUjaRKgstQqNGvmZl54g06kA+hqtSE2FTG9gngXr3UJxYu/cNAjJYiBifm7+w4nbHbA==} + '@swc/core-linux-x64-gnu@1.14.0': + resolution: {integrity: sha512-quTTx1Olm05fBfv66DEBuOsOgqdypnZ/1Bh3yGXWY7ANLFeeRpCDZpljD9BSjdsNdPOlwJmEUZXMHtGm3v1TZQ==} engines: {node: '>=10'} cpu: [x64] os: [linux] - '@swc/core-linux-x64-musl@1.13.5': - resolution: {integrity: sha512-Luj8y4OFYx4DHNQTWjdIuKTq2f5k6uSXICqx+FSabnXptaOBAbJHNbHT/06JZh6NRUouaf0mYXN0mcsqvkhd7Q==} + '@swc/core-linux-x64-musl@1.14.0': + resolution: {integrity: sha512-caaNAu+aIqT8seLtCf08i8C3/UC5ttQujUjejhMcuS1/LoCKtNiUs4VekJd2UGt+pyuuSrQ6dKl8CbCfWvWeXw==} engines: {node: '>=10'} cpu: [x64] os: [linux] - '@swc/core-win32-arm64-msvc@1.13.5': - resolution: {integrity: sha512-cZ6UpumhF9SDJvv4DA2fo9WIzlNFuKSkZpZmPG1c+4PFSEMy5DFOjBSllCvnqihCabzXzpn6ykCwBmHpy31vQw==} + '@swc/core-win32-arm64-msvc@1.14.0': + resolution: {integrity: sha512-EeW3jFlT3YNckJ6V/JnTfGcX7UHGyh6/AiCPopZ1HNaGiXVCKHPpVQZicmtyr/UpqxCXLrTgjHOvyMke7YN26A==} engines: {node: '>=10'} cpu: [arm64] os: [win32] - '@swc/core-win32-ia32-msvc@1.13.5': - resolution: {integrity: sha512-C5Yi/xIikrFUzZcyGj9L3RpKljFvKiDMtyDzPKzlsDrKIw2EYY+bF88gB6oGY5RGmv4DAX8dbnpRAqgFD0FMEw==} + '@swc/core-win32-ia32-msvc@1.14.0': + resolution: {integrity: sha512-dPai3KUIcihV5hfoO4QNQF5HAaw8+2bT7dvi8E5zLtecW2SfL3mUZipzampXq5FHll0RSCLzlrXnSx+dBRZIIQ==} engines: {node: '>=10'} cpu: [ia32] os: [win32] - '@swc/core-win32-x64-msvc@1.13.5': - resolution: {integrity: sha512-YrKdMVxbYmlfybCSbRtrilc6UA8GF5aPmGKBdPvjrarvsmf4i7ZHGCEnLtfOMd3Lwbs2WUZq3WdMbozYeLU93Q==} + '@swc/core-win32-x64-msvc@1.14.0': + resolution: {integrity: sha512-nm+JajGrTqUA6sEHdghDlHMNfH1WKSiuvljhdmBACW4ta4LC3gKurX2qZuiBARvPkephW9V/i5S8QPY1PzFEqg==} engines: {node: '>=10'} cpu: [x64] os: [win32] - '@swc/core@1.13.5': - resolution: {integrity: sha512-WezcBo8a0Dg2rnR82zhwoR6aRNxeTGfK5QCD6TQ+kg3xx/zNT02s/0o+81h/3zhvFSB24NtqEr8FTw88O5W/JQ==} + '@swc/core@1.14.0': + resolution: {integrity: sha512-oExhY90bes5pDTVrei0xlMVosTxwd/NMafIpqsC4dMbRYZ5KB981l/CX8tMnGsagTplj/RcG9BeRYmV6/J5m3w==} engines: {node: '>=10'} peerDependencies: '@swc/helpers': '>=0.5.17' @@ -4650,11 +4650,11 @@ packages: '@types/node@20.19.24': resolution: {integrity: sha512-FE5u0ezmi6y9OZEzlJfg37mqqf6ZDSF2V/NLjUyGrR9uTZ7Sb9F7bLNZ03S4XVUNRWGA7Ck4c1kK+YnuWjl+DA==} - '@types/node@22.18.13': - resolution: {integrity: sha512-Bo45YKIjnmFtv6I1TuC8AaHBbqXtIo+Om5fE4QiU1Tj8QR/qt+8O3BAtOimG5IFmwaWiPmB3Mv3jtYzBA4Us2A==} + '@types/node@22.19.0': + resolution: {integrity: sha512-xpr/lmLPQEj+TUnHmR+Ab91/glhJvsqcjB+yY0Ix9GO70H6Lb4FHH5GeqdOE5btAx7eIMwuHkp4H2MSkLcqWbA==} - '@types/node@24.9.2': - resolution: {integrity: sha512-uWN8YqxXxqFMX2RqGOrumsKeti4LlmIMIyV0lgut4jx7KQBcBiW6vkDtIBvHnHIquwNfJhk8v2OtmO8zXWHfPA==} + '@types/node@24.10.0': + resolution: {integrity: sha512-qzQZRBqkFsYyaSWXuEHc2WR9c0a0CXwiE5FWUvn7ZM+vdy1uZLfCunD38UzhuB7YN/J11ndbDBcTmOdxJo9Q7A==} '@types/nodemailer@7.0.3': resolution: {integrity: sha512-fC8w49YQ868IuPWRXqPfLf+MuTRex5Z1qxMoG8rr70riqqbOp2F5xgOKE9fODEBPzpnvjkJXFgK6IL2xgMSTnA==} @@ -4671,6 +4671,9 @@ packages: '@types/pg@8.15.5': resolution: {integrity: sha512-LF7lF6zWEKxuT3/OR8wAZGzkg4ENGXFNyiV/JeOt9z5B+0ZVwbql9McqX5c/WStFq1GaGso7H1AzP/qSzmlCKQ==} + '@types/pg@8.15.6': + resolution: {integrity: sha512-NoaMtzhxOrubeL/7UZuNTrejB4MPAJ0RpxZqXQf2qXuVlTPuG6Y8p4u9dKRaue4yjmC7ZhzVO2/Yyyn25znrPQ==} + '@types/picomatch@4.0.2': resolution: {integrity: sha512-qHHxQ+P9PysNEGbALT8f8YOSHW0KJu6l2xU8DYY0fu/EmGxXdVnuTLvFUvBgPJMSqXq29SYHveejeAha+4AYgA==} @@ -4761,8 +4764,8 @@ packages: '@types/unist@3.0.3': resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} - '@types/validator@13.15.3': - resolution: {integrity: sha512-7bcUmDyS6PN3EuD9SlGGOxM77F8WLVsrwkxyWxKnxzmXoequ6c7741QBrANq6htVRGOITJ7z72mTP6Z4XyuG+Q==} + '@types/validator@13.15.4': + resolution: {integrity: sha512-LSFfpSnJJY9wbC0LQxgvfb+ynbHftFo0tMsFOl/J4wexLnYMmDSPaj2ZyDv3TkfL1UePxPrxOWJfbiRS8mQv7A==} '@types/whatwg-mimetype@3.0.2': resolution: {integrity: sha512-c2AKvDT8ToxLIOUlN51gTiHXflsfIFisS4pO7pDPoKouJCESkhZnEy623gwP9laCy5lnLDAw1vAzu2vM2YLOrA==} @@ -5378,8 +5381,8 @@ packages: resolution: {integrity: sha512-bkXY9WsVpY7CvMhKSR6pZilZu9Ln5WDrKVBUXf2S443etkmEO4V58heTecXcUIsNsi4Rx8JUO4NfX1IcQl4deg==} engines: {node: '>=18.20'} - bullmq@5.61.2: - resolution: {integrity: sha512-b39hbiq/xXpOTT/OfmKpQYD+4VE4+XUlvdZ6GjbGl9asmRk8cSvUaQWD18jVCn1I0SzIfbrgOf+RAkqjXDUhJg==} + bullmq@5.62.1: + resolution: {integrity: sha512-FiRxqSquGTf8W8l8OMczKfEFG0BEqJ5NzChwKZ4vbSpZSPFLSmmxXAQlW4imB1rZHnlc7sYq8o+Oy4JavoIEpQ==} bundle-name@4.1.0: resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==} @@ -6410,8 +6413,8 @@ packages: engines: {node: '>=12'} hasBin: true - esbuild@0.25.11: - resolution: {integrity: sha512-KohQwyzrKTQmhXDW1PjCv3Tyspn9n5GcY2RTDqeORIdIJY8yKIF7sTSopFmn/wpMPW4rdPXI0UE5LJLuq3bx0Q==} + esbuild@0.25.12: + resolution: {integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==} engines: {node: '>=18'} hasBin: true @@ -7051,8 +7054,8 @@ packages: engines: {node: '>=0.4.7'} hasBin: true - happy-dom@20.0.8: - resolution: {integrity: sha512-TlYaNQNtzsZ97rNMBAm8U+e2cUQXNithgfCizkDgc11lgmN4j9CKMhO3FPGKWQYPwwkFcPpoXYF/CqEPLgzfOg==} + happy-dom@20.0.10: + resolution: {integrity: sha512-6umCCHcjQrhP5oXhrHQQvLB0bwb1UzHAHdsXy+FjtKoYjUhmNZsQL8NivwM1vDvNEChJabVrUYxUnp/ZdYmy2g==} engines: {node: '>=20.0.0'} has-flag@4.0.0: @@ -8018,8 +8021,8 @@ packages: resolution: {integrity: sha512-p8lJFEiqmEQlyv+DQxFAOG/XPWN0Wp7j/Psq93Zywz7qt9CcUKFYDBOoOEKzqe6gudHVJY8/Bhqw6VDpX2lSBg==} engines: {node: '>=6.4.0'} - maplibre-gl@5.9.0: - resolution: {integrity: sha512-YxW9glb/YrDXGDhqy1u+aG113+L86ttAUpTd6sCkGHyUKMXOX8qbGHJQVqxOczy+4CtRKnqcCfSura2MzB0nQA==} + maplibre-gl@5.10.0: + resolution: {integrity: sha512-eLhlX8Fnpaoo7+uGqggZmXmZld6WrbzOJUPB7G8JB8XpminlTnrQTtXilMHduR8fsNVxrzD8yRRqEoajONc8LQ==} engines: {node: '>=16.14.0', npm: '>=8.1.0'} mark.js@8.11.1: @@ -9673,8 +9676,8 @@ packages: peerDependencies: react: ^19.2.0 - react-email@4.3.1: - resolution: {integrity: sha512-GBgI7fl0fXVFVQ4zlXG+x14egDNX1WVlOrAXKMyc1h9xeTnIAt/u3g1liU4v+7Yv3yprMSkZ1mIO3YPuTKo77A==} + react-email@4.3.2: + resolution: {integrity: sha512-WaZcnv9OAIRULY236zDRdk+8r511ooJGH5UOb7FnVsV33hGPI+l5aIZ6drVjXi4QrlLTmLm8PsYvmXRSv31MPA==} engines: {node: '>=18.0.0'} hasBin: true @@ -10168,8 +10171,8 @@ packages: simple-get@3.1.1: resolution: {integrity: sha512-CQ5LTKGfCpvE1K0n2us+kuMPbk/q0EKl82s4aheV9oXjFEz6W/Y7oQFVJuU6QG77hRT4Ghb5RURteF5vnWjupA==} - simple-icons@15.17.0: - resolution: {integrity: sha512-viOcugYj+JFYVWJvDh4Ph1xHk9iTGhzt+NoPrfAQYSCADvmZFSQUWyKEbSMuqVRUsaRgvADn+Cczysemsf1N3Q==} + simple-icons@15.18.0: + resolution: {integrity: sha512-lYpvaIuZZr6N50YSdYZQzrKccSSF3dqcgcoz2vMKVQCc/fJWD8nFszJVZz2tCDTSu082rqRYfuYRUPhjdixDAA==} engines: {node: '>=0.12.18'} sirv@2.0.4: @@ -10480,8 +10483,8 @@ packages: peerDependencies: svelte: ^3 || ^4 || ^5 - svelte-maplibre@1.2.3: - resolution: {integrity: sha512-2EToGWdSlTq9Tr7MLmUlve3J86uDM9D6s5ErY/oc5LEsktd0TCTPXM1HJ1IGSaa+ElxCv/ka/igvGPb6L4BhLw==} + svelte-maplibre@1.2.5: + resolution: {integrity: sha512-Uklcbi6inW9GA0MuSusbXmFr/MQPmXrjuP8hS1+yFX3ySvCQ477tsM3I7Jo/fUDK3XAxFSIHW6hZfucnM3kXwQ==} peerDependencies: '@deck.gl/core': ^9 '@deck.gl/layers': ^9 @@ -10512,8 +10515,8 @@ packages: peerDependencies: svelte: ^5.30.2 - svelte@5.41.3: - resolution: {integrity: sha512-bkHg+whEnVVNcK3XP8Dy4NHujn5mU/+at9z09PXM5THKm+E73AwiKFoRMMTfyAzAj1yExKtudvGHq8UqOh8kMQ==} + svelte@5.43.0: + resolution: {integrity: sha512-1sRxVbgJAB+UGzwkc3GUoiBSzEOf0jqzccMaVoI2+pI+kASUe9qubslxace8+Mzhqw19k4syTA5niCIJwfXpOA==} engines: {node: '>=18'} svg-parser@2.0.4: @@ -11714,11 +11717,11 @@ snapshots: optionalDependencies: chokidar: 4.0.3 - '@angular-devkit/schematics-cli@19.2.15(@types/node@22.18.13)(chokidar@4.0.3)': + '@angular-devkit/schematics-cli@19.2.15(@types/node@22.19.0)(chokidar@4.0.3)': dependencies: '@angular-devkit/core': 19.2.15(chokidar@4.0.3) '@angular-devkit/schematics': 19.2.15(chokidar@4.0.3) - '@inquirer/prompts': 7.3.2(@types/node@22.18.13) + '@inquirer/prompts': 7.3.2(@types/node@22.19.0) ansi-colors: 4.1.3 symbol-observable: 4.0.0 yargs-parser: 21.1.1 @@ -13968,148 +13971,148 @@ snapshots: '@esbuild/aix-ppc64@0.19.12': optional: true - '@esbuild/aix-ppc64@0.25.11': + '@esbuild/aix-ppc64@0.25.12': optional: true '@esbuild/android-arm64@0.19.12': optional: true - '@esbuild/android-arm64@0.25.11': + '@esbuild/android-arm64@0.25.12': optional: true '@esbuild/android-arm@0.19.12': optional: true - '@esbuild/android-arm@0.25.11': + '@esbuild/android-arm@0.25.12': optional: true '@esbuild/android-x64@0.19.12': optional: true - '@esbuild/android-x64@0.25.11': + '@esbuild/android-x64@0.25.12': optional: true '@esbuild/darwin-arm64@0.19.12': optional: true - '@esbuild/darwin-arm64@0.25.11': + '@esbuild/darwin-arm64@0.25.12': optional: true '@esbuild/darwin-x64@0.19.12': optional: true - '@esbuild/darwin-x64@0.25.11': + '@esbuild/darwin-x64@0.25.12': optional: true '@esbuild/freebsd-arm64@0.19.12': optional: true - '@esbuild/freebsd-arm64@0.25.11': + '@esbuild/freebsd-arm64@0.25.12': optional: true '@esbuild/freebsd-x64@0.19.12': optional: true - '@esbuild/freebsd-x64@0.25.11': + '@esbuild/freebsd-x64@0.25.12': optional: true '@esbuild/linux-arm64@0.19.12': optional: true - '@esbuild/linux-arm64@0.25.11': + '@esbuild/linux-arm64@0.25.12': optional: true '@esbuild/linux-arm@0.19.12': optional: true - '@esbuild/linux-arm@0.25.11': + '@esbuild/linux-arm@0.25.12': optional: true '@esbuild/linux-ia32@0.19.12': optional: true - '@esbuild/linux-ia32@0.25.11': + '@esbuild/linux-ia32@0.25.12': optional: true '@esbuild/linux-loong64@0.19.12': optional: true - '@esbuild/linux-loong64@0.25.11': + '@esbuild/linux-loong64@0.25.12': optional: true '@esbuild/linux-mips64el@0.19.12': optional: true - '@esbuild/linux-mips64el@0.25.11': + '@esbuild/linux-mips64el@0.25.12': optional: true '@esbuild/linux-ppc64@0.19.12': optional: true - '@esbuild/linux-ppc64@0.25.11': + '@esbuild/linux-ppc64@0.25.12': optional: true '@esbuild/linux-riscv64@0.19.12': optional: true - '@esbuild/linux-riscv64@0.25.11': + '@esbuild/linux-riscv64@0.25.12': optional: true '@esbuild/linux-s390x@0.19.12': optional: true - '@esbuild/linux-s390x@0.25.11': + '@esbuild/linux-s390x@0.25.12': optional: true '@esbuild/linux-x64@0.19.12': optional: true - '@esbuild/linux-x64@0.25.11': + '@esbuild/linux-x64@0.25.12': optional: true - '@esbuild/netbsd-arm64@0.25.11': + '@esbuild/netbsd-arm64@0.25.12': optional: true '@esbuild/netbsd-x64@0.19.12': optional: true - '@esbuild/netbsd-x64@0.25.11': + '@esbuild/netbsd-x64@0.25.12': optional: true - '@esbuild/openbsd-arm64@0.25.11': + '@esbuild/openbsd-arm64@0.25.12': optional: true '@esbuild/openbsd-x64@0.19.12': optional: true - '@esbuild/openbsd-x64@0.25.11': + '@esbuild/openbsd-x64@0.25.12': optional: true - '@esbuild/openharmony-arm64@0.25.11': + '@esbuild/openharmony-arm64@0.25.12': optional: true '@esbuild/sunos-x64@0.19.12': optional: true - '@esbuild/sunos-x64@0.25.11': + '@esbuild/sunos-x64@0.25.12': optional: true '@esbuild/win32-arm64@0.19.12': optional: true - '@esbuild/win32-arm64@0.25.11': + '@esbuild/win32-arm64@0.25.12': optional: true '@esbuild/win32-ia32@0.19.12': optional: true - '@esbuild/win32-ia32@0.25.11': + '@esbuild/win32-ia32@0.25.12': optional: true '@esbuild/win32-x64@0.19.12': optional: true - '@esbuild/win32-x64@0.25.11': + '@esbuild/win32-x64@0.25.12': optional: true '@eslint-community/eslint-utils@4.9.0(eslint@9.38.0(jiti@2.6.1))': @@ -14211,10 +14214,10 @@ snapshots: dependencies: tslib: 2.8.1 - '@golevelup/nestjs-discovery@5.0.0(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7)': + '@golevelup/nestjs-discovery@5.0.0(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)': dependencies: - '@nestjs/common': 11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) - '@nestjs/core': 11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.7)(@nestjs/websockets@11.1.7)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/common': 11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/core': 11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.8)(@nestjs/websockets@11.1.8)(reflect-metadata@0.2.2)(rxjs@7.8.2) lodash: 4.17.21 '@grpc/grpc-js@1.14.0': @@ -14343,18 +14346,18 @@ snapshots: '@immich/justified-layout-wasm@0.4.3': {} - '@immich/svelte-markdown-preprocess@0.0.1(svelte@5.41.3)': + '@immich/svelte-markdown-preprocess@0.0.1(svelte@5.43.0)': dependencies: - svelte: 5.41.3 + svelte: 5.43.0 - '@immich/ui@0.40.2(@internationalized/date@3.8.2)(svelte@5.41.3)': + '@immich/ui@0.40.2(@internationalized/date@3.8.2)(svelte@5.43.0)': dependencies: - '@immich/svelte-markdown-preprocess': 0.0.1(svelte@5.41.3) + '@immich/svelte-markdown-preprocess': 0.0.1(svelte@5.43.0) '@mdi/js': 7.4.47 - bits-ui: 2.9.8(@internationalized/date@3.8.2)(svelte@5.41.3) + bits-ui: 2.9.8(@internationalized/date@3.8.2)(svelte@5.43.0) luxon: 3.7.2 - simple-icons: 15.17.0 - svelte: 5.41.3 + simple-icons: 15.18.0 + svelte: 5.43.0 svelte-highlight: 7.8.4 tailwind-merge: 3.3.1 tailwind-variants: 3.1.1(tailwind-merge@3.3.1)(tailwindcss@4.1.16) @@ -14362,27 +14365,27 @@ snapshots: transitivePeerDependencies: - '@internationalized/date' - '@inquirer/checkbox@4.2.1(@types/node@22.18.13)': + '@inquirer/checkbox@4.2.1(@types/node@22.19.0)': dependencies: - '@inquirer/core': 10.1.15(@types/node@22.18.13) + '@inquirer/core': 10.1.15(@types/node@22.19.0) '@inquirer/figures': 1.0.13 - '@inquirer/type': 3.0.8(@types/node@22.18.13) + '@inquirer/type': 3.0.8(@types/node@22.19.0) ansi-escapes: 4.3.2 yoctocolors-cjs: 2.1.2 optionalDependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 - '@inquirer/confirm@5.1.15(@types/node@22.18.13)': + '@inquirer/confirm@5.1.15(@types/node@22.19.0)': dependencies: - '@inquirer/core': 10.1.15(@types/node@22.18.13) - '@inquirer/type': 3.0.8(@types/node@22.18.13) + '@inquirer/core': 10.1.15(@types/node@22.19.0) + '@inquirer/type': 3.0.8(@types/node@22.19.0) optionalDependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 - '@inquirer/core@10.1.15(@types/node@22.18.13)': + '@inquirer/core@10.1.15(@types/node@22.19.0)': dependencies: '@inquirer/figures': 1.0.13 - '@inquirer/type': 3.0.8(@types/node@22.18.13) + '@inquirer/type': 3.0.8(@types/node@22.19.0) ansi-escapes: 4.3.2 cli-width: 4.1.0 mute-stream: 2.0.0 @@ -14390,115 +14393,115 @@ snapshots: wrap-ansi: 6.2.0 yoctocolors-cjs: 2.1.2 optionalDependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 - '@inquirer/editor@4.2.17(@types/node@22.18.13)': + '@inquirer/editor@4.2.17(@types/node@22.19.0)': dependencies: - '@inquirer/core': 10.1.15(@types/node@22.18.13) - '@inquirer/external-editor': 1.0.2(@types/node@22.18.13) - '@inquirer/type': 3.0.8(@types/node@22.18.13) + '@inquirer/core': 10.1.15(@types/node@22.19.0) + '@inquirer/external-editor': 1.0.2(@types/node@22.19.0) + '@inquirer/type': 3.0.8(@types/node@22.19.0) optionalDependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 - '@inquirer/expand@4.0.17(@types/node@22.18.13)': + '@inquirer/expand@4.0.17(@types/node@22.19.0)': dependencies: - '@inquirer/core': 10.1.15(@types/node@22.18.13) - '@inquirer/type': 3.0.8(@types/node@22.18.13) + '@inquirer/core': 10.1.15(@types/node@22.19.0) + '@inquirer/type': 3.0.8(@types/node@22.19.0) yoctocolors-cjs: 2.1.2 optionalDependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 - '@inquirer/external-editor@1.0.2(@types/node@22.18.13)': + '@inquirer/external-editor@1.0.2(@types/node@22.19.0)': dependencies: chardet: 2.1.0 iconv-lite: 0.7.0 optionalDependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@inquirer/figures@1.0.13': {} - '@inquirer/input@4.2.1(@types/node@22.18.13)': + '@inquirer/input@4.2.1(@types/node@22.19.0)': dependencies: - '@inquirer/core': 10.1.15(@types/node@22.18.13) - '@inquirer/type': 3.0.8(@types/node@22.18.13) + '@inquirer/core': 10.1.15(@types/node@22.19.0) + '@inquirer/type': 3.0.8(@types/node@22.19.0) optionalDependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 - '@inquirer/number@3.0.17(@types/node@22.18.13)': + '@inquirer/number@3.0.17(@types/node@22.19.0)': dependencies: - '@inquirer/core': 10.1.15(@types/node@22.18.13) - '@inquirer/type': 3.0.8(@types/node@22.18.13) + '@inquirer/core': 10.1.15(@types/node@22.19.0) + '@inquirer/type': 3.0.8(@types/node@22.19.0) optionalDependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 - '@inquirer/password@4.0.17(@types/node@22.18.13)': + '@inquirer/password@4.0.17(@types/node@22.19.0)': dependencies: - '@inquirer/core': 10.1.15(@types/node@22.18.13) - '@inquirer/type': 3.0.8(@types/node@22.18.13) + '@inquirer/core': 10.1.15(@types/node@22.19.0) + '@inquirer/type': 3.0.8(@types/node@22.19.0) ansi-escapes: 4.3.2 optionalDependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 - '@inquirer/prompts@7.3.2(@types/node@22.18.13)': + '@inquirer/prompts@7.3.2(@types/node@22.19.0)': dependencies: - '@inquirer/checkbox': 4.2.1(@types/node@22.18.13) - '@inquirer/confirm': 5.1.15(@types/node@22.18.13) - '@inquirer/editor': 4.2.17(@types/node@22.18.13) - '@inquirer/expand': 4.0.17(@types/node@22.18.13) - '@inquirer/input': 4.2.1(@types/node@22.18.13) - '@inquirer/number': 3.0.17(@types/node@22.18.13) - '@inquirer/password': 4.0.17(@types/node@22.18.13) - '@inquirer/rawlist': 4.1.5(@types/node@22.18.13) - '@inquirer/search': 3.1.0(@types/node@22.18.13) - '@inquirer/select': 4.3.1(@types/node@22.18.13) + '@inquirer/checkbox': 4.2.1(@types/node@22.19.0) + '@inquirer/confirm': 5.1.15(@types/node@22.19.0) + '@inquirer/editor': 4.2.17(@types/node@22.19.0) + '@inquirer/expand': 4.0.17(@types/node@22.19.0) + '@inquirer/input': 4.2.1(@types/node@22.19.0) + '@inquirer/number': 3.0.17(@types/node@22.19.0) + '@inquirer/password': 4.0.17(@types/node@22.19.0) + '@inquirer/rawlist': 4.1.5(@types/node@22.19.0) + '@inquirer/search': 3.1.0(@types/node@22.19.0) + '@inquirer/select': 4.3.1(@types/node@22.19.0) optionalDependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 - '@inquirer/prompts@7.8.0(@types/node@22.18.13)': + '@inquirer/prompts@7.8.0(@types/node@22.19.0)': dependencies: - '@inquirer/checkbox': 4.2.1(@types/node@22.18.13) - '@inquirer/confirm': 5.1.15(@types/node@22.18.13) - '@inquirer/editor': 4.2.17(@types/node@22.18.13) - '@inquirer/expand': 4.0.17(@types/node@22.18.13) - '@inquirer/input': 4.2.1(@types/node@22.18.13) - '@inquirer/number': 3.0.17(@types/node@22.18.13) - '@inquirer/password': 4.0.17(@types/node@22.18.13) - '@inquirer/rawlist': 4.1.5(@types/node@22.18.13) - '@inquirer/search': 3.1.0(@types/node@22.18.13) - '@inquirer/select': 4.3.1(@types/node@22.18.13) + '@inquirer/checkbox': 4.2.1(@types/node@22.19.0) + '@inquirer/confirm': 5.1.15(@types/node@22.19.0) + '@inquirer/editor': 4.2.17(@types/node@22.19.0) + '@inquirer/expand': 4.0.17(@types/node@22.19.0) + '@inquirer/input': 4.2.1(@types/node@22.19.0) + '@inquirer/number': 3.0.17(@types/node@22.19.0) + '@inquirer/password': 4.0.17(@types/node@22.19.0) + '@inquirer/rawlist': 4.1.5(@types/node@22.19.0) + '@inquirer/search': 3.1.0(@types/node@22.19.0) + '@inquirer/select': 4.3.1(@types/node@22.19.0) optionalDependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 - '@inquirer/rawlist@4.1.5(@types/node@22.18.13)': + '@inquirer/rawlist@4.1.5(@types/node@22.19.0)': dependencies: - '@inquirer/core': 10.1.15(@types/node@22.18.13) - '@inquirer/type': 3.0.8(@types/node@22.18.13) + '@inquirer/core': 10.1.15(@types/node@22.19.0) + '@inquirer/type': 3.0.8(@types/node@22.19.0) yoctocolors-cjs: 2.1.2 optionalDependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 - '@inquirer/search@3.1.0(@types/node@22.18.13)': + '@inquirer/search@3.1.0(@types/node@22.19.0)': dependencies: - '@inquirer/core': 10.1.15(@types/node@22.18.13) + '@inquirer/core': 10.1.15(@types/node@22.19.0) '@inquirer/figures': 1.0.13 - '@inquirer/type': 3.0.8(@types/node@22.18.13) + '@inquirer/type': 3.0.8(@types/node@22.19.0) yoctocolors-cjs: 2.1.2 optionalDependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 - '@inquirer/select@4.3.1(@types/node@22.18.13)': + '@inquirer/select@4.3.1(@types/node@22.19.0)': dependencies: - '@inquirer/core': 10.1.15(@types/node@22.18.13) + '@inquirer/core': 10.1.15(@types/node@22.19.0) '@inquirer/figures': 1.0.13 - '@inquirer/type': 3.0.8(@types/node@22.18.13) + '@inquirer/type': 3.0.8(@types/node@22.19.0) ansi-escapes: 4.3.2 yoctocolors-cjs: 2.1.2 optionalDependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 - '@inquirer/type@3.0.8(@types/node@22.18.13)': + '@inquirer/type@3.0.8(@types/node@22.19.0)': optionalDependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@internationalized/date@3.8.2': dependencies: @@ -14536,7 +14539,7 @@ snapshots: '@jest/schemas': 29.6.3 '@types/istanbul-lib-coverage': 2.0.6 '@types/istanbul-reports': 3.0.4 - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/yargs': 17.0.34 chalk: 4.1.2 @@ -14702,7 +14705,7 @@ snapshots: '@mapbox/whoots-js@3.1.0': {} - '@maplibre/maplibre-gl-style-spec@24.3.0': + '@maplibre/maplibre-gl-style-spec@24.3.1': dependencies: '@mapbox/jsonlint-lines-primitives': 2.0.2 '@mapbox/unitbezier': 0.0.1 @@ -14790,32 +14793,32 @@ snapshots: '@namnode/store@0.1.0': {} - '@nestjs/bull-shared@11.0.4(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7)': + '@nestjs/bull-shared@11.0.4(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)': dependencies: - '@nestjs/common': 11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) - '@nestjs/core': 11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.7)(@nestjs/websockets@11.1.7)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/common': 11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/core': 11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.8)(@nestjs/websockets@11.1.8)(reflect-metadata@0.2.2)(rxjs@7.8.2) tslib: 2.8.1 - '@nestjs/bullmq@11.0.4(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7)(bullmq@5.61.2)': + '@nestjs/bullmq@11.0.4(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)(bullmq@5.62.1)': dependencies: - '@nestjs/bull-shared': 11.0.4(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7) - '@nestjs/common': 11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) - '@nestjs/core': 11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.7)(@nestjs/websockets@11.1.7)(reflect-metadata@0.2.2)(rxjs@7.8.2) - bullmq: 5.61.2 + '@nestjs/bull-shared': 11.0.4(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8) + '@nestjs/common': 11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/core': 11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.8)(@nestjs/websockets@11.1.8)(reflect-metadata@0.2.2)(rxjs@7.8.2) + bullmq: 5.62.1 tslib: 2.8.1 - '@nestjs/cli@11.0.10(@swc/core@1.13.5(@swc/helpers@0.5.17))(@types/node@22.18.13)': + '@nestjs/cli@11.0.10(@swc/core@1.14.0(@swc/helpers@0.5.17))(@types/node@22.19.0)': dependencies: '@angular-devkit/core': 19.2.15(chokidar@4.0.3) '@angular-devkit/schematics': 19.2.15(chokidar@4.0.3) - '@angular-devkit/schematics-cli': 19.2.15(@types/node@22.18.13)(chokidar@4.0.3) - '@inquirer/prompts': 7.8.0(@types/node@22.18.13) + '@angular-devkit/schematics-cli': 19.2.15(@types/node@22.19.0)(chokidar@4.0.3) + '@inquirer/prompts': 7.8.0(@types/node@22.19.0) '@nestjs/schematics': 11.0.9(chokidar@4.0.3)(typescript@5.8.3) ansis: 4.1.0 chokidar: 4.0.3 cli-table3: 0.6.5 commander: 4.1.1 - fork-ts-checker-webpack-plugin: 9.1.0(typescript@5.8.3)(webpack@5.100.2(@swc/core@1.13.5(@swc/helpers@0.5.17))) + fork-ts-checker-webpack-plugin: 9.1.0(typescript@5.8.3)(webpack@5.100.2(@swc/core@1.14.0(@swc/helpers@0.5.17))) glob: 11.0.3 node-emoji: 1.11.0 ora: 5.4.1 @@ -14823,17 +14826,17 @@ snapshots: tsconfig-paths: 4.2.0 tsconfig-paths-webpack-plugin: 4.2.0 typescript: 5.8.3 - webpack: 5.100.2(@swc/core@1.13.5(@swc/helpers@0.5.17)) + webpack: 5.100.2(@swc/core@1.14.0(@swc/helpers@0.5.17)) webpack-node-externals: 3.0.0 optionalDependencies: - '@swc/core': 1.13.5(@swc/helpers@0.5.17) + '@swc/core': 1.14.0(@swc/helpers@0.5.17) transitivePeerDependencies: - '@types/node' - esbuild - uglify-js - webpack-cli - '@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2)': + '@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2)': dependencies: file-type: 21.0.0 iterare: 1.2.1 @@ -14848,9 +14851,9 @@ snapshots: transitivePeerDependencies: - supports-color - '@nestjs/core@11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.7)(@nestjs/websockets@11.1.7)(reflect-metadata@0.2.2)(rxjs@7.8.2)': + '@nestjs/core@11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.8)(@nestjs/websockets@11.1.8)(reflect-metadata@0.2.2)(rxjs@7.8.2)': dependencies: - '@nestjs/common': 11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/common': 11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) '@nuxt/opencollective': 0.4.1 fast-safe-stringify: 2.1.1 iterare: 1.2.1 @@ -14860,21 +14863,21 @@ snapshots: tslib: 2.8.1 uid: 2.0.2 optionalDependencies: - '@nestjs/platform-express': 11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7) - '@nestjs/websockets': 11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7)(@nestjs/platform-socket.io@11.1.7)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/platform-express': 11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8) + '@nestjs/websockets': 11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)(@nestjs/platform-socket.io@11.1.8)(reflect-metadata@0.2.2)(rxjs@7.8.2) - '@nestjs/mapped-types@2.1.0(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)': + '@nestjs/mapped-types@2.1.0(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)': dependencies: - '@nestjs/common': 11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/common': 11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) reflect-metadata: 0.2.2 optionalDependencies: class-transformer: 0.5.1 class-validator: 0.14.2 - '@nestjs/platform-express@11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7)': + '@nestjs/platform-express@11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)': dependencies: - '@nestjs/common': 11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) - '@nestjs/core': 11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.7)(@nestjs/websockets@11.1.7)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/common': 11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/core': 11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.8)(@nestjs/websockets@11.1.8)(reflect-metadata@0.2.2)(rxjs@7.8.2) cors: 2.8.5 express: 5.1.0 multer: 2.0.2 @@ -14883,10 +14886,10 @@ snapshots: transitivePeerDependencies: - supports-color - '@nestjs/platform-socket.io@11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/websockets@11.1.7)(rxjs@7.8.2)': + '@nestjs/platform-socket.io@11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/websockets@11.1.8)(rxjs@7.8.2)': dependencies: - '@nestjs/common': 11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) - '@nestjs/websockets': 11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7)(@nestjs/platform-socket.io@11.1.7)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/common': 11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/websockets': 11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)(@nestjs/platform-socket.io@11.1.8)(reflect-metadata@0.2.2)(rxjs@7.8.2) rxjs: 7.8.2 socket.io: 4.8.1 tslib: 2.8.1 @@ -14895,10 +14898,10 @@ snapshots: - supports-color - utf-8-validate - '@nestjs/schedule@6.0.1(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7)': + '@nestjs/schedule@6.0.1(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)': dependencies: - '@nestjs/common': 11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) - '@nestjs/core': 11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.7)(@nestjs/websockets@11.1.7)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/common': 11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/core': 11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.8)(@nestjs/websockets@11.1.8)(reflect-metadata@0.2.2)(rxjs@7.8.2) cron: 4.3.3 '@nestjs/schematics@11.0.9(chokidar@4.0.3)(typescript@5.8.3)': @@ -14923,12 +14926,12 @@ snapshots: transitivePeerDependencies: - chokidar - '@nestjs/swagger@11.2.1(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7)(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)': + '@nestjs/swagger@11.2.1(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)': dependencies: '@microsoft/tsdoc': 0.15.1 - '@nestjs/common': 11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) - '@nestjs/core': 11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.7)(@nestjs/websockets@11.1.7)(reflect-metadata@0.2.2)(rxjs@7.8.2) - '@nestjs/mapped-types': 2.1.0(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2) + '@nestjs/common': 11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/core': 11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.8)(@nestjs/websockets@11.1.8)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/mapped-types': 2.1.0(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2) js-yaml: 4.1.0 lodash: 4.17.21 path-to-regexp: 8.3.0 @@ -14938,25 +14941,25 @@ snapshots: class-transformer: 0.5.1 class-validator: 0.14.2 - '@nestjs/testing@11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7)(@nestjs/platform-express@11.1.7)': + '@nestjs/testing@11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)(@nestjs/platform-express@11.1.8)': dependencies: - '@nestjs/common': 11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) - '@nestjs/core': 11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.7)(@nestjs/websockets@11.1.7)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/common': 11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/core': 11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.8)(@nestjs/websockets@11.1.8)(reflect-metadata@0.2.2)(rxjs@7.8.2) tslib: 2.8.1 optionalDependencies: - '@nestjs/platform-express': 11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7) + '@nestjs/platform-express': 11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8) - '@nestjs/websockets@11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7)(@nestjs/platform-socket.io@11.1.7)(reflect-metadata@0.2.2)(rxjs@7.8.2)': + '@nestjs/websockets@11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)(@nestjs/platform-socket.io@11.1.8)(reflect-metadata@0.2.2)(rxjs@7.8.2)': dependencies: - '@nestjs/common': 11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) - '@nestjs/core': 11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.7)(@nestjs/websockets@11.1.7)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/common': 11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/core': 11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.8)(@nestjs/websockets@11.1.8)(reflect-metadata@0.2.2)(rxjs@7.8.2) iterare: 1.2.1 object-hash: 3.0.0 reflect-metadata: 0.2.2 rxjs: 7.8.2 tslib: 2.8.1 optionalDependencies: - '@nestjs/platform-socket.io': 11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/websockets@11.1.7)(rxjs@7.8.2) + '@nestjs/platform-socket.io': 11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/websockets@11.1.8)(rxjs@7.8.2) '@noble/hashes@1.8.0': {} @@ -15859,29 +15862,29 @@ snapshots: dependencies: acorn: 8.15.0 - '@sveltejs/adapter-static@3.0.10(@sveltejs/kit@2.47.3(@opentelemetry/api@1.9.0)(@sveltejs/vite-plugin-svelte@6.2.1(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)))(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)))': + '@sveltejs/adapter-static@3.0.10(@sveltejs/kit@2.48.3(@opentelemetry/api@1.9.0)(@sveltejs/vite-plugin-svelte@6.2.1(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)))(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)))': dependencies: - '@sveltejs/kit': 2.47.3(@opentelemetry/api@1.9.0)(@sveltejs/vite-plugin-svelte@6.2.1(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)))(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + '@sveltejs/kit': 2.48.3(@opentelemetry/api@1.9.0)(@sveltejs/vite-plugin-svelte@6.2.1(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)))(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) - '@sveltejs/enhanced-img@0.8.4(@sveltejs/vite-plugin-svelte@6.2.1(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)))(rollup@4.52.5)(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': + '@sveltejs/enhanced-img@0.8.4(@sveltejs/vite-plugin-svelte@6.2.1(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)))(rollup@4.52.5)(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': dependencies: - '@sveltejs/vite-plugin-svelte': 6.2.1(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + '@sveltejs/vite-plugin-svelte': 6.2.1(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) magic-string: 0.30.21 sharp: 0.34.4 - svelte: 5.41.3 - svelte-parse-markup: 0.1.5(svelte@5.41.3) - vite: 7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + svelte: 5.43.0 + svelte-parse-markup: 0.1.5(svelte@5.43.0) + vite: 7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) vite-imagetools: 8.0.0(rollup@4.52.5) zimmerframe: 1.1.4 transitivePeerDependencies: - rollup - supports-color - '@sveltejs/kit@2.47.3(@opentelemetry/api@1.9.0)(@sveltejs/vite-plugin-svelte@6.2.1(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)))(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': + '@sveltejs/kit@2.48.3(@opentelemetry/api@1.9.0)(@sveltejs/vite-plugin-svelte@6.2.1(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)))(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': dependencies: '@standard-schema/spec': 1.0.0 '@sveltejs/acorn-typescript': 1.0.6(acorn@8.15.0) - '@sveltejs/vite-plugin-svelte': 6.2.1(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + '@sveltejs/vite-plugin-svelte': 6.2.1(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) '@types/cookie': 0.6.0 acorn: 8.15.0 cookie: 0.6.0 @@ -15893,29 +15896,29 @@ snapshots: sade: 1.8.1 set-cookie-parser: 2.7.2 sirv: 3.0.2 - svelte: 5.41.3 - vite: 7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + svelte: 5.43.0 + vite: 7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) optionalDependencies: '@opentelemetry/api': 1.9.0 - '@sveltejs/vite-plugin-svelte-inspector@5.0.0(@sveltejs/vite-plugin-svelte@6.2.1(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)))(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': + '@sveltejs/vite-plugin-svelte-inspector@5.0.0(@sveltejs/vite-plugin-svelte@6.2.1(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)))(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': dependencies: - '@sveltejs/vite-plugin-svelte': 6.2.1(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + '@sveltejs/vite-plugin-svelte': 6.2.1(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) debug: 4.4.3 - svelte: 5.41.3 - vite: 7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + svelte: 5.43.0 + vite: 7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte@6.2.1(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': + '@sveltejs/vite-plugin-svelte@6.2.1(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': dependencies: - '@sveltejs/vite-plugin-svelte-inspector': 5.0.0(@sveltejs/vite-plugin-svelte@6.2.1(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)))(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + '@sveltejs/vite-plugin-svelte-inspector': 5.0.0(@sveltejs/vite-plugin-svelte@6.2.1(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)))(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) debug: 4.4.3 deepmerge: 4.3.1 magic-string: 0.30.21 - svelte: 5.41.3 - vite: 7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) - vitefu: 1.1.1(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + svelte: 5.43.0 + vite: 7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vitefu: 1.1.1(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) transitivePeerDependencies: - supports-color @@ -16012,51 +16015,51 @@ snapshots: - supports-color - typescript - '@swc/core-darwin-arm64@1.13.5': + '@swc/core-darwin-arm64@1.14.0': optional: true - '@swc/core-darwin-x64@1.13.5': + '@swc/core-darwin-x64@1.14.0': optional: true - '@swc/core-linux-arm-gnueabihf@1.13.5': + '@swc/core-linux-arm-gnueabihf@1.14.0': optional: true - '@swc/core-linux-arm64-gnu@1.13.5': + '@swc/core-linux-arm64-gnu@1.14.0': optional: true - '@swc/core-linux-arm64-musl@1.13.5': + '@swc/core-linux-arm64-musl@1.14.0': optional: true - '@swc/core-linux-x64-gnu@1.13.5': + '@swc/core-linux-x64-gnu@1.14.0': optional: true - '@swc/core-linux-x64-musl@1.13.5': + '@swc/core-linux-x64-musl@1.14.0': optional: true - '@swc/core-win32-arm64-msvc@1.13.5': + '@swc/core-win32-arm64-msvc@1.14.0': optional: true - '@swc/core-win32-ia32-msvc@1.13.5': + '@swc/core-win32-ia32-msvc@1.14.0': optional: true - '@swc/core-win32-x64-msvc@1.13.5': + '@swc/core-win32-x64-msvc@1.14.0': optional: true - '@swc/core@1.13.5(@swc/helpers@0.5.17)': + '@swc/core@1.14.0(@swc/helpers@0.5.17)': dependencies: '@swc/counter': 0.1.3 '@swc/types': 0.1.25 optionalDependencies: - '@swc/core-darwin-arm64': 1.13.5 - '@swc/core-darwin-x64': 1.13.5 - '@swc/core-linux-arm-gnueabihf': 1.13.5 - '@swc/core-linux-arm64-gnu': 1.13.5 - '@swc/core-linux-arm64-musl': 1.13.5 - '@swc/core-linux-x64-gnu': 1.13.5 - '@swc/core-linux-x64-musl': 1.13.5 - '@swc/core-win32-arm64-msvc': 1.13.5 - '@swc/core-win32-ia32-msvc': 1.13.5 - '@swc/core-win32-x64-msvc': 1.13.5 + '@swc/core-darwin-arm64': 1.14.0 + '@swc/core-darwin-x64': 1.14.0 + '@swc/core-linux-arm-gnueabihf': 1.14.0 + '@swc/core-linux-arm64-gnu': 1.14.0 + '@swc/core-linux-arm64-musl': 1.14.0 + '@swc/core-linux-x64-gnu': 1.14.0 + '@swc/core-linux-x64-musl': 1.14.0 + '@swc/core-win32-arm64-msvc': 1.14.0 + '@swc/core-win32-ia32-msvc': 1.14.0 + '@swc/core-win32-x64-msvc': 1.14.0 '@swc/helpers': 0.5.17 '@swc/counter@0.1.3': {} @@ -16134,12 +16137,12 @@ snapshots: '@tailwindcss/oxide-win32-arm64-msvc': 4.1.16 '@tailwindcss/oxide-win32-x64-msvc': 4.1.16 - '@tailwindcss/vite@4.1.16(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': + '@tailwindcss/vite@4.1.16(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': dependencies: '@tailwindcss/node': 4.1.16 '@tailwindcss/oxide': 4.1.16 tailwindcss: 4.1.16 - vite: 7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vite: 7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) '@testing-library/dom@10.4.0': dependencies: @@ -16161,13 +16164,13 @@ snapshots: picocolors: 1.1.1 redent: 3.0.0 - '@testing-library/svelte@5.2.8(svelte@5.41.3)(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.9.2)(happy-dom@20.0.8)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': + '@testing-library/svelte@5.2.8(svelte@5.43.0)(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.10.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': dependencies: '@testing-library/dom': 10.4.0 - svelte: 5.41.3 + svelte: 5.43.0 optionalDependencies: - vite: 7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) - vitest: 3.2.4(@types/debug@4.1.12)(@types/node@24.9.2)(happy-dom@20.0.8)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vite: 7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vitest: 3.2.4(@types/debug@4.1.12)(@types/node@24.10.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) '@testing-library/user-event@14.6.1(@testing-library/dom@10.4.0)': dependencies: @@ -16209,7 +16212,7 @@ snapshots: '@types/accepts@1.3.7': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/archiver@6.0.4': dependencies: @@ -16221,16 +16224,16 @@ snapshots: '@types/bcrypt@6.0.0': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/body-parser@1.19.6': dependencies: '@types/connect': 3.4.38 - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/bonjour@3.5.13': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/braces@3.0.5': {} @@ -16251,21 +16254,21 @@ snapshots: '@types/cli-progress@3.11.6': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/compression@1.8.1': dependencies: '@types/express': 5.0.5 - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/connect-history-api-fallback@1.5.4': dependencies: '@types/express-serve-static-core': 5.1.0 - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/connect@3.4.38': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/content-disposition@0.5.9': {} @@ -16282,11 +16285,11 @@ snapshots: '@types/connect': 3.4.38 '@types/express': 5.0.5 '@types/keygrip': 1.0.6 - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/cors@2.8.19': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/debug@4.1.12': dependencies: @@ -16296,13 +16299,13 @@ snapshots: '@types/docker-modem@3.0.6': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/ssh2': 1.15.5 '@types/dockerode@3.3.45': dependencies: '@types/docker-modem': 3.0.6 - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/ssh2': 1.15.5 '@types/dom-to-image@2.6.7': {} @@ -16325,14 +16328,14 @@ snapshots: '@types/express-serve-static-core@4.19.7': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/qs': 6.14.0 '@types/range-parser': 1.2.7 '@types/send': 1.2.1 '@types/express-serve-static-core@5.1.0': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/qs': 6.14.0 '@types/range-parser': 1.2.7 '@types/send': 1.2.1 @@ -16358,7 +16361,7 @@ snapshots: '@types/fluent-ffmpeg@2.1.28': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/geojson-vt@3.2.5': dependencies: @@ -16390,7 +16393,7 @@ snapshots: '@types/http-proxy@1.17.17': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/inquirer@8.2.11': dependencies: @@ -16428,7 +16431,7 @@ snapshots: '@types/http-errors': 2.0.5 '@types/keygrip': 1.0.6 '@types/koa-compose': 3.2.8 - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/leaflet@1.9.21': dependencies: @@ -16458,7 +16461,7 @@ snapshots: '@types/mock-fs@4.13.4': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/ms@2.1.0': {} @@ -16468,7 +16471,7 @@ snapshots: '@types/node-forge@1.3.14': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/node@17.0.45': {} @@ -16480,11 +16483,11 @@ snapshots: dependencies: undici-types: 6.21.0 - '@types/node@22.18.13': + '@types/node@22.19.0': dependencies: undici-types: 6.21.0 - '@types/node@24.9.2': + '@types/node@24.10.0': dependencies: undici-types: 7.16.0 optional: true @@ -16492,7 +16495,7 @@ snapshots: '@types/nodemailer@7.0.3': dependencies: '@aws-sdk/client-sesv2': 3.919.0 - '@types/node': 22.18.13 + '@types/node': 22.19.0 transitivePeerDependencies: - aws-crt @@ -16500,17 +16503,23 @@ snapshots: dependencies: '@types/keygrip': 1.0.6 '@types/koa': 3.0.0 - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/parse5@5.0.3': {} '@types/pg-pool@2.0.6': dependencies: - '@types/pg': 8.15.5 + '@types/pg': 8.15.6 '@types/pg@8.15.5': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 + pg-protocol: 1.10.3 + pg-types: 2.2.0 + + '@types/pg@8.15.6': + dependencies: + '@types/node': 22.19.0 pg-protocol: 1.10.3 pg-types: 2.2.0 @@ -16518,13 +16527,13 @@ snapshots: '@types/pngjs@6.0.5': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/prismjs@1.26.5': {} '@types/qrcode@1.5.6': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/qs@6.14.0': {} @@ -16553,7 +16562,7 @@ snapshots: '@types/readdir-glob@1.1.5': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/retry@0.12.2': {} @@ -16563,18 +16572,18 @@ snapshots: '@types/sax@1.2.7': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/semver@7.7.1': {} '@types/send@0.17.6': dependencies: '@types/mime': 1.3.5 - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/send@1.2.1': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/serve-index@1.9.4': dependencies: @@ -16583,20 +16592,20 @@ snapshots: '@types/serve-static@1.15.10': dependencies: '@types/http-errors': 2.0.5 - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/send': 0.17.6 '@types/sockjs@0.3.36': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/ssh2-streams@0.1.13': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/ssh2@0.5.52': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/ssh2-streams': 0.1.13 '@types/ssh2@1.15.5': @@ -16607,7 +16616,7 @@ snapshots: dependencies: '@types/cookiejar': 2.1.5 '@types/methods': 1.1.4 - '@types/node': 22.18.13 + '@types/node': 22.19.0 form-data: 4.0.4 '@types/supercluster@7.1.3': @@ -16621,7 +16630,7 @@ snapshots: '@types/through@0.0.33': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/ua-parser-js@0.7.39': {} @@ -16629,13 +16638,13 @@ snapshots: '@types/unist@3.0.3': {} - '@types/validator@13.15.3': {} + '@types/validator@13.15.4': {} '@types/whatwg-mimetype@3.0.2': {} '@types/ws@8.18.1': dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 '@types/yargs-parser@21.0.3': {} @@ -16740,7 +16749,7 @@ snapshots: '@vercel/oidc@3.0.3': {} - '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.18.13)(happy-dom@20.0.8)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': + '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 1.0.2 @@ -16755,11 +16764,11 @@ snapshots: std-env: 3.10.0 test-exclude: 7.0.1 tinyrainbow: 2.0.0 - vitest: 3.2.4(@types/debug@4.1.12)(@types/node@22.18.13)(happy-dom@20.0.8)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vitest: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) transitivePeerDependencies: - supports-color - '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.9.2)(happy-dom@20.0.8)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': + '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.10.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 1.0.2 @@ -16774,7 +16783,7 @@ snapshots: std-env: 3.10.0 test-exclude: 7.0.1 tinyrainbow: 2.0.0 - vitest: 3.2.4(@types/debug@4.1.12)(@types/node@24.9.2)(happy-dom@20.0.8)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vitest: 3.2.4(@types/debug@4.1.12)(@types/node@24.10.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) transitivePeerDependencies: - supports-color @@ -16786,21 +16795,21 @@ snapshots: chai: 5.2.0 tinyrainbow: 2.0.0 - '@vitest/mocker@3.2.4(vite@7.1.12(@types/node@22.18.13)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': + '@vitest/mocker@3.2.4(vite@7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': dependencies: '@vitest/spy': 3.2.4 estree-walker: 3.0.3 magic-string: 0.30.21 optionalDependencies: - vite: 7.1.12(@types/node@22.18.13)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vite: 7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) - '@vitest/mocker@3.2.4(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': + '@vitest/mocker@3.2.4(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': dependencies: '@vitest/spy': 3.2.4 estree-walker: 3.0.3 magic-string: 0.30.21 optionalDependencies: - vite: 7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vite: 7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) '@vitest/pretty-format@3.2.4': dependencies: @@ -16912,10 +16921,10 @@ snapshots: dependencies: '@namnode/store': 0.1.0 - '@zoom-image/svelte@0.3.7(svelte@5.41.3)': + '@zoom-image/svelte@0.3.7(svelte@5.43.0)': dependencies: '@zoom-image/core': 0.41.3 - svelte: 5.41.3 + svelte: 5.43.0 abab@2.0.6: optional: true @@ -17275,15 +17284,15 @@ snapshots: binary-extensions@2.3.0: {} - bits-ui@2.9.8(@internationalized/date@3.8.2)(svelte@5.41.3): + bits-ui@2.9.8(@internationalized/date@3.8.2)(svelte@5.43.0): dependencies: '@floating-ui/core': 1.7.3 '@floating-ui/dom': 1.7.4 '@internationalized/date': 3.8.2 esm-env: 1.2.2 - runed: 0.29.2(svelte@5.41.3) - svelte: 5.41.3 - svelte-toolbelt: 0.9.3(svelte@5.41.3) + runed: 0.29.2(svelte@5.43.0) + svelte: 5.43.0 + svelte-toolbelt: 0.9.3(svelte@5.43.0) tabbable: 6.3.0 bl@4.1.0: @@ -17394,7 +17403,7 @@ snapshots: builtin-modules@5.0.0: {} - bullmq@5.61.2: + bullmq@5.62.1: dependencies: cron-parser: 4.9.0 ioredis: 5.8.2 @@ -17602,7 +17611,7 @@ snapshots: class-validator@0.14.2: dependencies: - '@types/validator': 13.15.3 + '@types/validator': 13.15.4 libphonenumber-js: 1.12.9 validator: 13.15.15 @@ -18375,7 +18384,7 @@ snapshots: engine.io@6.6.4: dependencies: '@types/cors': 2.8.19 - '@types/node': 22.18.13 + '@types/node': 22.19.0 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.7.2 @@ -18489,34 +18498,34 @@ snapshots: '@esbuild/win32-ia32': 0.19.12 '@esbuild/win32-x64': 0.19.12 - esbuild@0.25.11: + esbuild@0.25.12: optionalDependencies: - '@esbuild/aix-ppc64': 0.25.11 - '@esbuild/android-arm': 0.25.11 - '@esbuild/android-arm64': 0.25.11 - '@esbuild/android-x64': 0.25.11 - '@esbuild/darwin-arm64': 0.25.11 - '@esbuild/darwin-x64': 0.25.11 - '@esbuild/freebsd-arm64': 0.25.11 - '@esbuild/freebsd-x64': 0.25.11 - '@esbuild/linux-arm': 0.25.11 - '@esbuild/linux-arm64': 0.25.11 - '@esbuild/linux-ia32': 0.25.11 - '@esbuild/linux-loong64': 0.25.11 - '@esbuild/linux-mips64el': 0.25.11 - '@esbuild/linux-ppc64': 0.25.11 - '@esbuild/linux-riscv64': 0.25.11 - '@esbuild/linux-s390x': 0.25.11 - '@esbuild/linux-x64': 0.25.11 - '@esbuild/netbsd-arm64': 0.25.11 - '@esbuild/netbsd-x64': 0.25.11 - '@esbuild/openbsd-arm64': 0.25.11 - '@esbuild/openbsd-x64': 0.25.11 - '@esbuild/openharmony-arm64': 0.25.11 - '@esbuild/sunos-x64': 0.25.11 - '@esbuild/win32-arm64': 0.25.11 - '@esbuild/win32-ia32': 0.25.11 - '@esbuild/win32-x64': 0.25.11 + '@esbuild/aix-ppc64': 0.25.12 + '@esbuild/android-arm': 0.25.12 + '@esbuild/android-arm64': 0.25.12 + '@esbuild/android-x64': 0.25.12 + '@esbuild/darwin-arm64': 0.25.12 + '@esbuild/darwin-x64': 0.25.12 + '@esbuild/freebsd-arm64': 0.25.12 + '@esbuild/freebsd-x64': 0.25.12 + '@esbuild/linux-arm': 0.25.12 + '@esbuild/linux-arm64': 0.25.12 + '@esbuild/linux-ia32': 0.25.12 + '@esbuild/linux-loong64': 0.25.12 + '@esbuild/linux-mips64el': 0.25.12 + '@esbuild/linux-ppc64': 0.25.12 + '@esbuild/linux-riscv64': 0.25.12 + '@esbuild/linux-s390x': 0.25.12 + '@esbuild/linux-x64': 0.25.12 + '@esbuild/netbsd-arm64': 0.25.12 + '@esbuild/netbsd-x64': 0.25.12 + '@esbuild/openbsd-arm64': 0.25.12 + '@esbuild/openbsd-x64': 0.25.12 + '@esbuild/openharmony-arm64': 0.25.12 + '@esbuild/sunos-x64': 0.25.12 + '@esbuild/win32-arm64': 0.25.12 + '@esbuild/win32-ia32': 0.25.12 + '@esbuild/win32-x64': 0.25.12 escalade@3.2.0: {} @@ -18565,7 +18574,7 @@ snapshots: '@types/eslint': 9.6.1 eslint-config-prettier: 10.1.8(eslint@9.38.0(jiti@2.6.1)) - eslint-plugin-svelte@3.12.5(eslint@9.38.0(jiti@2.6.1))(svelte@5.41.3): + eslint-plugin-svelte@3.12.5(eslint@9.38.0(jiti@2.6.1))(svelte@5.43.0): dependencies: '@eslint-community/eslint-utils': 4.9.0(eslint@9.38.0(jiti@2.6.1)) '@jridgewell/sourcemap-codec': 1.5.5 @@ -18577,9 +18586,9 @@ snapshots: postcss-load-config: 3.1.4(postcss@8.5.6) postcss-safe-parser: 7.0.1(postcss@8.5.6) semver: 7.7.3 - svelte-eslint-parser: 1.4.0(svelte@5.41.3) + svelte-eslint-parser: 1.4.0(svelte@5.43.0) optionalDependencies: - svelte: 5.41.3 + svelte: 5.43.0 transitivePeerDependencies: - ts-node @@ -18764,7 +18773,7 @@ snapshots: eval@0.1.8: dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 require-like: 0.1.2 event-emitter@0.3.5: @@ -19060,7 +19069,7 @@ snapshots: cross-spawn: 7.0.6 signal-exit: 4.1.0 - fork-ts-checker-webpack-plugin@9.1.0(typescript@5.8.3)(webpack@5.100.2(@swc/core@1.13.5(@swc/helpers@0.5.17))): + fork-ts-checker-webpack-plugin@9.1.0(typescript@5.8.3)(webpack@5.100.2(@swc/core@1.14.0(@swc/helpers@0.5.17))): dependencies: '@babel/code-frame': 7.27.1 chalk: 4.1.2 @@ -19075,7 +19084,7 @@ snapshots: semver: 7.7.3 tapable: 2.3.0 typescript: 5.8.3 - webpack: 5.100.2(@swc/core@1.13.5(@swc/helpers@0.5.17)) + webpack: 5.100.2(@swc/core@1.14.0(@swc/helpers@0.5.17)) form-data-encoder@2.1.4: {} @@ -19324,7 +19333,7 @@ snapshots: optionalDependencies: uglify-js: 3.19.3 - happy-dom@20.0.8: + happy-dom@20.0.10: dependencies: '@types/node': 20.19.24 '@types/whatwg-mimetype': 3.0.2 @@ -19753,9 +19762,9 @@ snapshots: inline-style-parser@0.2.4: {} - inquirer@8.2.7(@types/node@22.18.13): + inquirer@8.2.7(@types/node@22.19.0): dependencies: - '@inquirer/external-editor': 1.0.2(@types/node@22.18.13) + '@inquirer/external-editor': 1.0.2(@types/node@22.19.0) ansi-escapes: 4.3.2 chalk: 4.1.2 cli-cursor: 3.1.0 @@ -19969,7 +19978,7 @@ snapshots: jest-util@29.7.0: dependencies: '@jest/types': 29.6.3 - '@types/node': 22.18.13 + '@types/node': 22.19.0 chalk: 4.1.2 ci-info: 3.9.0 graceful-fs: 4.2.11 @@ -19977,13 +19986,13 @@ snapshots: jest-worker@27.5.1: dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 merge-stream: 2.0.0 supports-color: 8.1.1 jest-worker@29.7.0: dependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 jest-util: 29.7.0 merge-stream: 2.0.0 supports-color: 8.1.1 @@ -20435,7 +20444,7 @@ snapshots: tinyqueue: 2.0.3 vt-pbf: 3.1.3 - maplibre-gl@5.9.0: + maplibre-gl@5.10.0: dependencies: '@mapbox/geojson-rewind': 0.5.2 '@mapbox/jsonlint-lines-primitives': 2.0.2 @@ -20444,7 +20453,7 @@ snapshots: '@mapbox/unitbezier': 0.0.1 '@mapbox/vector-tile': 2.0.4 '@mapbox/whoots-js': 3.1.0 - '@maplibre/maplibre-gl-style-spec': 24.3.0 + '@maplibre/maplibre-gl-style-spec': 24.3.1 '@maplibre/vt-pbf': 4.0.3 '@types/geojson': 7946.0.16 '@types/geojson-vt': 3.2.5 @@ -21203,39 +21212,39 @@ snapshots: neo-async@2.6.2: {} - nest-commander@3.20.1(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7)(@types/inquirer@8.2.11)(@types/node@22.18.13)(typescript@5.9.3): + nest-commander@3.20.1(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)(@types/inquirer@8.2.11)(@types/node@22.19.0)(typescript@5.9.3): dependencies: '@fig/complete-commander': 3.2.0(commander@11.1.0) - '@golevelup/nestjs-discovery': 5.0.0(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7) - '@nestjs/common': 11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) - '@nestjs/core': 11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.7)(@nestjs/websockets@11.1.7)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@golevelup/nestjs-discovery': 5.0.0(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8) + '@nestjs/common': 11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/core': 11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.8)(@nestjs/websockets@11.1.8)(reflect-metadata@0.2.2)(rxjs@7.8.2) '@types/inquirer': 8.2.11 commander: 11.1.0 cosmiconfig: 8.3.6(typescript@5.9.3) - inquirer: 8.2.7(@types/node@22.18.13) + inquirer: 8.2.7(@types/node@22.19.0) transitivePeerDependencies: - '@types/node' - typescript - nestjs-cls@5.4.3(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7)(reflect-metadata@0.2.2)(rxjs@7.8.2): + nestjs-cls@5.4.3(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)(reflect-metadata@0.2.2)(rxjs@7.8.2): dependencies: - '@nestjs/common': 11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) - '@nestjs/core': 11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.7)(@nestjs/websockets@11.1.7)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/common': 11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/core': 11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.8)(@nestjs/websockets@11.1.8)(reflect-metadata@0.2.2)(rxjs@7.8.2) reflect-metadata: 0.2.2 rxjs: 7.8.2 - nestjs-kysely@3.1.2(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7)(kysely@0.28.2)(reflect-metadata@0.2.2): + nestjs-kysely@3.1.2(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)(kysely@0.28.2)(reflect-metadata@0.2.2): dependencies: - '@nestjs/common': 11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) - '@nestjs/core': 11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.7)(@nestjs/websockets@11.1.7)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/common': 11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/core': 11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.8)(@nestjs/websockets@11.1.8)(reflect-metadata@0.2.2)(rxjs@7.8.2) kysely: 0.28.2 reflect-metadata: 0.2.2 tslib: 2.8.1 - nestjs-otel@7.0.1(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.7): + nestjs-otel@7.0.1(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8): dependencies: - '@nestjs/common': 11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) - '@nestjs/core': 11.1.7(@nestjs/common@11.1.7(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.7)(@nestjs/websockets@11.1.7)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/common': 11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/core': 11.1.8(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@11.1.8)(@nestjs/websockets@11.1.8)(reflect-metadata@0.2.2)(rxjs@7.8.2) '@opentelemetry/api': 1.9.0 '@opentelemetry/host-metrics': 0.36.0(@opentelemetry/api@1.9.0) response-time: 2.3.4 @@ -22228,10 +22237,10 @@ snapshots: dependencies: prettier: 3.6.2 - prettier-plugin-svelte@3.4.0(prettier@3.6.2)(svelte@5.41.3): + prettier-plugin-svelte@3.4.0(prettier@3.6.2)(svelte@5.43.0): dependencies: prettier: 3.6.2 - svelte: 5.41.3 + svelte: 5.43.0 prettier@3.6.2: {} @@ -22310,7 +22319,7 @@ snapshots: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 22.18.13 + '@types/node': 22.19.0 long: 5.3.2 protocol-buffers-schema@3.6.0: {} @@ -22418,14 +22427,14 @@ snapshots: react: 19.2.0 scheduler: 0.27.0 - react-email@4.3.1: + react-email@4.3.2: dependencies: '@babel/parser': 7.28.5 '@babel/traverse': 7.28.5 chokidar: 4.0.3 commander: 13.1.0 debounce: 2.2.0 - esbuild: 0.25.11 + esbuild: 0.25.12 glob: 11.0.3 jiti: 2.4.2 log-symbols: 7.0.1 @@ -22841,10 +22850,10 @@ snapshots: dependencies: queue-microtask: 1.2.3 - runed@0.29.2(svelte@5.41.3): + runed@0.29.2(svelte@5.43.0): dependencies: esm-env: 1.2.2 - svelte: 5.41.3 + svelte: 5.43.0 rw@1.3.3: {} @@ -23128,7 +23137,7 @@ snapshots: simple-concat: 1.0.1 optional: true - simple-icons@15.17.0: {} + simple-icons@15.18.0: {} sirv@2.0.4: dependencies: @@ -23460,19 +23469,19 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} - svelte-check@4.3.3(picomatch@4.0.3)(svelte@5.41.3)(typescript@5.9.3): + svelte-check@4.3.3(picomatch@4.0.3)(svelte@5.43.0)(typescript@5.9.3): dependencies: '@jridgewell/trace-mapping': 0.3.31 chokidar: 4.0.3 fdir: 6.5.0(picomatch@4.0.3) picocolors: 1.1.1 sade: 1.8.1 - svelte: 5.41.3 + svelte: 5.43.0 typescript: 5.9.3 transitivePeerDependencies: - picomatch - svelte-eslint-parser@1.4.0(svelte@5.41.3): + svelte-eslint-parser@1.4.0(svelte@5.43.0): dependencies: eslint-scope: 8.4.0 eslint-visitor-keys: 4.2.1 @@ -23481,7 +23490,7 @@ snapshots: postcss-scss: 4.0.9(postcss@8.5.6) postcss-selector-parser: 7.1.0 optionalDependencies: - svelte: 5.41.3 + svelte: 5.43.0 svelte-gestures@5.2.2: {} @@ -23489,7 +23498,7 @@ snapshots: dependencies: highlight.js: 11.11.1 - svelte-i18n@4.0.1(svelte@5.41.3): + svelte-i18n@4.0.1(svelte@5.43.0): dependencies: cli-color: 2.0.4 deepmerge: 4.3.1 @@ -23497,34 +23506,34 @@ snapshots: estree-walker: 2.0.2 intl-messageformat: 10.7.18 sade: 1.8.1 - svelte: 5.41.3 + svelte: 5.43.0 tiny-glob: 0.2.9 - svelte-maplibre@1.2.3(svelte@5.41.3): + svelte-maplibre@1.2.5(svelte@5.43.0): dependencies: d3-geo: 3.1.1 dequal: 2.0.3 just-compare: 2.3.0 - maplibre-gl: 5.9.0 + maplibre-gl: 5.10.0 pmtiles: 3.2.1 - svelte: 5.41.3 + svelte: 5.43.0 - svelte-parse-markup@0.1.5(svelte@5.41.3): + svelte-parse-markup@0.1.5(svelte@5.43.0): dependencies: - svelte: 5.41.3 + svelte: 5.43.0 - svelte-persisted-store@0.12.0(svelte@5.41.3): + svelte-persisted-store@0.12.0(svelte@5.43.0): dependencies: - svelte: 5.41.3 + svelte: 5.43.0 - svelte-toolbelt@0.9.3(svelte@5.41.3): + svelte-toolbelt@0.9.3(svelte@5.43.0): dependencies: clsx: 2.1.1 - runed: 0.29.2(svelte@5.41.3) + runed: 0.29.2(svelte@5.43.0) style-to-object: 1.0.11 - svelte: 5.41.3 + svelte: 5.43.0 - svelte@5.41.3: + svelte@5.43.0: dependencies: '@jridgewell/remapping': 2.3.5 '@jridgewell/sourcemap-codec': 1.5.5 @@ -23681,16 +23690,16 @@ snapshots: minizlib: 3.1.0 yallist: 5.0.0 - terser-webpack-plugin@5.3.14(@swc/core@1.13.5(@swc/helpers@0.5.17))(webpack@5.100.2(@swc/core@1.13.5(@swc/helpers@0.5.17))): + terser-webpack-plugin@5.3.14(@swc/core@1.14.0(@swc/helpers@0.5.17))(webpack@5.100.2(@swc/core@1.14.0(@swc/helpers@0.5.17))): dependencies: '@jridgewell/trace-mapping': 0.3.31 jest-worker: 27.5.1 schema-utils: 4.3.3 serialize-javascript: 6.0.2 terser: 5.44.0 - webpack: 5.100.2(@swc/core@1.13.5(@swc/helpers@0.5.17)) + webpack: 5.100.2(@swc/core@1.14.0(@swc/helpers@0.5.17)) optionalDependencies: - '@swc/core': 1.13.5(@swc/helpers@0.5.17) + '@swc/core': 1.14.0(@swc/helpers@0.5.17) terser-webpack-plugin@5.3.14(webpack@5.102.1): dependencies: @@ -24070,10 +24079,10 @@ snapshots: unpipe@1.0.0: {} - unplugin-swc@1.5.8(@swc/core@1.13.5(@swc/helpers@0.5.17))(rollup@4.52.5): + unplugin-swc@1.5.8(@swc/core@1.14.0(@swc/helpers@0.5.17))(rollup@4.52.5): dependencies: '@rollup/pluginutils': 5.3.0(rollup@4.52.5) - '@swc/core': 1.13.5(@swc/helpers@0.5.17) + '@swc/core': 1.14.0(@swc/helpers@0.5.17) load-tsconfig: 0.2.5 unplugin: 2.3.10 transitivePeerDependencies: @@ -24205,13 +24214,13 @@ snapshots: - rollup - supports-color - vite-node@3.2.4(@types/node@22.18.13)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1): + vite-node@3.2.4(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1): dependencies: cac: 6.7.14 debug: 4.4.3 es-module-lexer: 1.7.0 pathe: 2.0.3 - vite: 7.1.12(@types/node@22.18.13)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vite: 7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) transitivePeerDependencies: - '@types/node' - jiti @@ -24226,13 +24235,13 @@ snapshots: - tsx - yaml - vite-node@3.2.4(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1): + vite-node@3.2.4(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1): dependencies: cac: 6.7.14 debug: 4.4.3 es-module-lexer: 1.7.0 pathe: 2.0.3 - vite: 7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vite: 7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) transitivePeerDependencies: - '@types/node' - jiti @@ -24247,62 +24256,62 @@ snapshots: - tsx - yaml - vite-tsconfig-paths@5.1.4(typescript@5.9.3)(vite@7.1.12(@types/node@22.18.13)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)): + vite-tsconfig-paths@5.1.4(typescript@5.9.3)(vite@7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)): dependencies: debug: 4.4.3 globrex: 0.1.2 tsconfck: 3.1.6(typescript@5.9.3) optionalDependencies: - vite: 7.1.12(@types/node@22.18.13)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vite: 7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) transitivePeerDependencies: - supports-color - typescript - vite@7.1.12(@types/node@22.18.13)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1): + vite@7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1): dependencies: - esbuild: 0.25.11 + esbuild: 0.25.12 fdir: 6.5.0(picomatch@4.0.3) picomatch: 4.0.3 postcss: 8.5.6 rollup: 4.52.5 tinyglobby: 0.2.15 optionalDependencies: - '@types/node': 22.18.13 + '@types/node': 22.19.0 fsevents: 2.3.3 jiti: 2.6.1 lightningcss: 1.30.2 terser: 5.44.0 yaml: 2.8.1 - vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1): + vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1): dependencies: - esbuild: 0.25.11 + esbuild: 0.25.12 fdir: 6.5.0(picomatch@4.0.3) picomatch: 4.0.3 postcss: 8.5.6 rollup: 4.52.5 tinyglobby: 0.2.15 optionalDependencies: - '@types/node': 24.9.2 + '@types/node': 24.10.0 fsevents: 2.3.3 jiti: 2.6.1 lightningcss: 1.30.2 terser: 5.44.0 yaml: 2.8.1 - vitefu@1.1.1(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)): + vitefu@1.1.1(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)): optionalDependencies: - vite: 7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vite: 7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) - vitest-fetch-mock@0.4.5(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.18.13)(happy-dom@20.0.8)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)): + vitest-fetch-mock@0.4.5(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)): dependencies: - vitest: 3.2.4(@types/debug@4.1.12)(@types/node@22.18.13)(happy-dom@20.0.8)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vitest: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) - vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.18.13)(happy-dom@20.0.8)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2(encoding@0.1.13)))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1): + vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2(encoding@0.1.13)))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1): dependencies: '@types/chai': 5.2.2 '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(vite@7.1.12(@types/node@22.18.13)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + '@vitest/mocker': 3.2.4(vite@7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) '@vitest/pretty-format': 3.2.4 '@vitest/runner': 3.2.4 '@vitest/snapshot': 3.2.4 @@ -24320,13 +24329,13 @@ snapshots: tinyglobby: 0.2.15 tinypool: 1.1.1 tinyrainbow: 2.0.0 - vite: 7.1.12(@types/node@22.18.13)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) - vite-node: 3.2.4(@types/node@22.18.13)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vite: 7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vite-node: 3.2.4(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) why-is-node-running: 2.3.0 optionalDependencies: '@types/debug': 4.1.12 - '@types/node': 22.18.13 - happy-dom: 20.0.8 + '@types/node': 22.19.0 + happy-dom: 20.0.10 jsdom: 26.1.0(canvas@2.11.2(encoding@0.1.13)) transitivePeerDependencies: - jiti @@ -24342,11 +24351,11 @@ snapshots: - tsx - yaml - vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.18.13)(happy-dom@20.0.8)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1): + vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1): dependencies: '@types/chai': 5.2.2 '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(vite@7.1.12(@types/node@22.18.13)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + '@vitest/mocker': 3.2.4(vite@7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) '@vitest/pretty-format': 3.2.4 '@vitest/runner': 3.2.4 '@vitest/snapshot': 3.2.4 @@ -24364,13 +24373,13 @@ snapshots: tinyglobby: 0.2.15 tinypool: 1.1.1 tinyrainbow: 2.0.0 - vite: 7.1.12(@types/node@22.18.13)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) - vite-node: 3.2.4(@types/node@22.18.13)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vite: 7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vite-node: 3.2.4(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) why-is-node-running: 2.3.0 optionalDependencies: '@types/debug': 4.1.12 - '@types/node': 22.18.13 - happy-dom: 20.0.8 + '@types/node': 22.19.0 + happy-dom: 20.0.10 jsdom: 26.1.0(canvas@2.11.2) transitivePeerDependencies: - jiti @@ -24386,11 +24395,11 @@ snapshots: - tsx - yaml - vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.9.2)(happy-dom@20.0.8)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1): + vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.10.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1): dependencies: '@types/chai': 5.2.2 '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(vite@7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + '@vitest/mocker': 3.2.4(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) '@vitest/pretty-format': 3.2.4 '@vitest/runner': 3.2.4 '@vitest/snapshot': 3.2.4 @@ -24408,13 +24417,13 @@ snapshots: tinyglobby: 0.2.15 tinypool: 1.1.1 tinyrainbow: 2.0.0 - vite: 7.1.12(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) - vite-node: 3.2.4(@types/node@24.9.2)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vite: 7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vite-node: 3.2.4(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) why-is-node-running: 2.3.0 optionalDependencies: '@types/debug': 4.1.12 - '@types/node': 24.9.2 - happy-dom: 20.0.8 + '@types/node': 24.10.0 + happy-dom: 20.0.10 jsdom: 26.1.0(canvas@2.11.2) transitivePeerDependencies: - jiti @@ -24553,7 +24562,7 @@ snapshots: webpack-virtual-modules@0.6.2: {} - webpack@5.100.2(@swc/core@1.13.5(@swc/helpers@0.5.17)): + webpack@5.100.2(@swc/core@1.14.0(@swc/helpers@0.5.17)): dependencies: '@types/eslint-scope': 3.7.7 '@types/estree': 1.0.8 @@ -24577,7 +24586,7 @@ snapshots: neo-async: 2.6.2 schema-utils: 4.3.3 tapable: 2.3.0 - terser-webpack-plugin: 5.3.14(@swc/core@1.13.5(@swc/helpers@0.5.17))(webpack@5.100.2(@swc/core@1.13.5(@swc/helpers@0.5.17))) + terser-webpack-plugin: 5.3.14(@swc/core@1.14.0(@swc/helpers@0.5.17))(webpack@5.100.2(@swc/core@1.14.0(@swc/helpers@0.5.17))) watchpack: 2.4.4 webpack-sources: 3.3.3 transitivePeerDependencies: diff --git a/web/package.json b/web/package.json index 24d489a7d8..b9ec394b5d 100644 --- a/web/package.json +++ b/web/package.json @@ -57,7 +57,7 @@ "socket.io-client": "~4.8.0", "svelte-gestures": "^5.2.2", "svelte-i18n": "^4.0.1", - "svelte-maplibre": "^1.2.0", + "svelte-maplibre": "^1.2.5", "svelte-persisted-store": "^0.12.0", "tabbable": "^6.2.0", "thumbhash": "^0.1.1" @@ -96,7 +96,7 @@ "prettier-plugin-sort-json": "^4.1.1", "prettier-plugin-svelte": "^3.3.3", "rollup-plugin-visualizer": "^6.0.0", - "svelte": "5.41.3", + "svelte": "5.43.0", "svelte-check": "^4.1.5", "svelte-eslint-parser": "^1.3.3", "tailwindcss": "^4.1.7", From 7a2c8e0662648b2a5a6d98fed9bb6e4944138991 Mon Sep 17 00:00:00 2001 From: exelix <13405476+exelix11@users.noreply.github.com> Date: Mon, 10 Nov 2025 20:55:09 +0100 Subject: [PATCH 027/300] feat(mobile): Quick date picker in the search page (#22653) * Quick date picker * Include current year in quick date picker * Quick date picker: localization, fix datetime overflows * Properly localized 'last_months' * Move quick_date_picker.dart to lib/presentation/widgets/search * Wrap the quick date picker state into its own class, improve the interaction patterns * Fix last9Months value * Improve method naming * Subtitle for "custom range" in quick date picker * Fix style warnings * Fix lint warning * fix: mobile unawaited_futures lint (#21661) * chore: add unawaited_futures lint as warning * remove unused dcm lints They will be added back later on a case by case basis * fix warning * auto gen file * review changes * conflict resolution --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> * Quick date picker * Wrap the quick date picker state into its own class, improve the interaction patterns * chore: delete file from rebase --------- Co-authored-by: shenlong <139912620+shenlong-tanwen@users.noreply.github.com> Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: bwees --- i18n/en.json | 5 + .../pages/search/drift_search.page.dart | 101 ++++++--- .../widgets/search/quick_date_picker.dart | 208 ++++++++++++++++++ .../filter_bottom_sheet_scaffold.dart | 23 +- 4 files changed, 290 insertions(+), 47 deletions(-) create mode 100644 mobile/lib/presentation/widgets/search/quick_date_picker.dart diff --git a/i18n/en.json b/i18n/en.json index 644b74e715..6117e30106 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -1197,6 +1197,8 @@ "import_path": "Import path", "in_albums": "In {count, plural, one {# album} other {# albums}}", "in_archive": "In archive", + "in_year": "In {year}", + "in_year_selector": "In", "include_archived": "Include archived", "include_shared_albums": "Include shared albums", "include_shared_partner_assets": "Include shared partner assets", @@ -1233,6 +1235,7 @@ "language_setting_description": "Select your preferred language", "large_files": "Large Files", "last": "Last", + "last_months": "{count, plural, one {Last month} other {Last # months}}", "last_seen": "Last seen", "latest_version": "Latest Version", "latitude": "Latitude", @@ -1554,6 +1557,8 @@ "photos_count": "{count, plural, one {{count, number} Photo} other {{count, number} Photos}}", "photos_from_previous_years": "Photos from previous years", "pick_a_location": "Pick a location", + "pick_custom_range": "Custom range", + "pick_date_range": "Select a date range", "pin_code_changed_successfully": "Successfully changed PIN code", "pin_code_reset_successfully": "Successfully reset PIN code", "pin_code_setup_successfully": "Successfully setup a PIN code", diff --git a/mobile/lib/presentation/pages/search/drift_search.page.dart b/mobile/lib/presentation/pages/search/drift_search.page.dart index 5ded685e21..58ca892f5f 100644 --- a/mobile/lib/presentation/pages/search/drift_search.page.dart +++ b/mobile/lib/presentation/pages/search/drift_search.page.dart @@ -15,6 +15,7 @@ import 'package:immich_mobile/extensions/translate_extensions.dart'; import 'package:immich_mobile/models/search/search_filter.model.dart'; import 'package:immich_mobile/presentation/pages/search/paginated_search.provider.dart'; import 'package:immich_mobile/presentation/widgets/bottom_sheet/general_bottom_sheet.widget.dart'; +import 'package:immich_mobile/presentation/widgets/search/quick_date_picker.dart'; import 'package:immich_mobile/presentation/widgets/timeline/timeline.widget.dart'; import 'package:immich_mobile/providers/infrastructure/timeline.provider.dart'; import 'package:immich_mobile/providers/search/search_input_focus.provider.dart'; @@ -54,6 +55,7 @@ class DriftSearchPage extends HookConsumerWidget { ); final previousFilter = useState(null); + final dateInputFilter = useState(null); final peopleCurrentFilterWidget = useState(null); final dateRangeCurrentFilterWidget = useState(null); @@ -245,19 +247,54 @@ class DriftSearchPage extends HookConsumerWidget { ); } + datePicked(DateFilterInputModel? selectedDate) { + dateInputFilter.value = selectedDate; + if (selectedDate == null) { + filter.value = filter.value.copyWith(date: SearchDateFilter()); + + dateRangeCurrentFilterWidget.value = null; + unawaited(search()); + return; + } + + final date = selectedDate.asDateTimeRange(); + + filter.value = filter.value.copyWith( + date: SearchDateFilter( + takenAfter: date.start, + takenBefore: date.end.add(const Duration(hours: 23, minutes: 59, seconds: 59)), + ), + ); + + dateRangeCurrentFilterWidget.value = Text( + selectedDate.asHumanReadable(context), + style: context.textTheme.labelLarge, + ); + + unawaited(search()); + } + showDatePicker() async { final firstDate = DateTime(1900); final lastDate = DateTime.now(); + var dateRange = DateTimeRange( + start: filter.value.date.takenAfter ?? lastDate, + end: filter.value.date.takenBefore ?? lastDate, + ); + + // datePicked() may increase the date, this will make the date picker fail an assertion + // Fixup the end date to be at most now. + if (dateRange.end.isAfter(lastDate)) { + dateRange = DateTimeRange(start: dateRange.start, end: lastDate); + } + final date = await showDateRangePicker( context: context, firstDate: firstDate, lastDate: lastDate, currentDate: DateTime.now(), - initialDateRange: DateTimeRange( - start: filter.value.date.takenAfter ?? lastDate, - end: filter.value.date.takenBefore ?? lastDate, - ), + initialDateRange: dateRange, helpText: 'search_filter_date_title'.t(context: context), cancelText: 'cancel'.t(context: context), confirmText: 'select'.t(context: context), @@ -271,40 +308,32 @@ class DriftSearchPage extends HookConsumerWidget { ); if (date == null) { - filter.value = filter.value.copyWith(date: SearchDateFilter()); - - dateRangeCurrentFilterWidget.value = null; - unawaited(search()); - return; - } - - filter.value = filter.value.copyWith( - date: SearchDateFilter( - takenAfter: date.start, - takenBefore: date.end.add(const Duration(hours: 23, minutes: 59, seconds: 59)), - ), - ); - - // If date range is less than 24 hours, set the end date to the end of the day - if (date.end.difference(date.start).inHours < 24) { - dateRangeCurrentFilterWidget.value = Text( - DateFormat.yMMMd().format(date.start.toLocal()), - style: context.textTheme.labelLarge, - ); + datePicked(null); } else { - dateRangeCurrentFilterWidget.value = Text( - 'search_filter_date_interval'.t( - context: context, - args: { - "start": DateFormat.yMMMd().format(date.start.toLocal()), - "end": DateFormat.yMMMd().format(date.end.toLocal()), + datePicked(CustomDateFilter.fromRange(date)); + } + } + + showQuickDatePicker() { + showFilterBottomSheet( + context: context, + child: FilterBottomSheetScaffold( + title: "pick_date_range".tr(), + expanded: true, + onClear: () => datePicked(null), + child: QuickDatePicker( + currentInput: dateInputFilter.value, + onRequestPicker: () { + context.pop(); + showDatePicker(); + }, + onSelect: (date) { + context.pop(); + datePicked(date); }, ), - style: context.textTheme.labelLarge, - ); - } - - unawaited(search()); + ), + ); } // MEDIA PICKER @@ -589,7 +618,7 @@ class DriftSearchPage extends HookConsumerWidget { ), SearchFilterChip( icon: Icons.date_range_outlined, - onTap: showDatePicker, + onTap: showQuickDatePicker, label: 'search_filter_date'.t(context: context), currentFilter: dateRangeCurrentFilterWidget.value, ), diff --git a/mobile/lib/presentation/widgets/search/quick_date_picker.dart b/mobile/lib/presentation/widgets/search/quick_date_picker.dart new file mode 100644 index 0000000000..09b1cee700 --- /dev/null +++ b/mobile/lib/presentation/widgets/search/quick_date_picker.dart @@ -0,0 +1,208 @@ +import 'package:easy_localization/easy_localization.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_hooks/flutter_hooks.dart'; +import 'package:immich_mobile/extensions/translate_extensions.dart'; + +sealed class DateFilterInputModel { + DateTimeRange asDateTimeRange(); + + String asHumanReadable(BuildContext context) { + // General implementation for arbitrary date and time ranges + // If date range is less than 24 hours, set the end date to the end of the day + final date = asDateTimeRange(); + if (date.end.difference(date.start).inHours < 24) { + return DateFormat.yMMMd().format(date.start.toLocal()); + } else { + return 'search_filter_date_interval'.t( + context: context, + args: { + "start": DateFormat.yMMMd().format(date.start.toLocal()), + "end": DateFormat.yMMMd().format(date.end.toLocal()), + }, + ); + } + } +} + +class RecentMonthRangeFilter extends DateFilterInputModel { + final int monthDelta; + RecentMonthRangeFilter(this.monthDelta); + + @override + DateTimeRange asDateTimeRange() { + final now = DateTime.now(); + // Note that DateTime's constructor properly handles month overflow. + final from = DateTime(now.year, now.month - monthDelta, 1); + return DateTimeRange(start: from, end: now); + } + + @override + String asHumanReadable(BuildContext context) { + return 'last_months'.t(context: context, args: {"count": monthDelta.toString()}); + } +} + +class YearFilter extends DateFilterInputModel { + final int year; + YearFilter(this.year); + + @override + DateTimeRange asDateTimeRange() { + final now = DateTime.now(); + final from = DateTime(year, 1, 1); + + if (now.year == year) { + // To not go beyond today if the user picks the current year + return DateTimeRange(start: from, end: now); + } + + final to = DateTime(year, 12, 31, 23, 59, 59); + return DateTimeRange(start: from, end: to); + } + + @override + String asHumanReadable(BuildContext context) { + return 'in_year'.tr(namedArgs: {"year": year.toString()}); + } +} + +class CustomDateFilter extends DateFilterInputModel { + final DateTime start; + final DateTime end; + + CustomDateFilter(this.start, this.end); + + factory CustomDateFilter.fromRange(DateTimeRange range) { + return CustomDateFilter(range.start, range.end); + } + + @override + DateTimeRange asDateTimeRange() { + return DateTimeRange(start: start, end: end); + } +} + +enum _QuickPickerType { last1Month, last3Months, last9Months, year, custom } + +class QuickDatePicker extends HookWidget { + QuickDatePicker({super.key, required this.currentInput, required this.onSelect, required this.onRequestPicker}) + : _selection = _selectionFromModel(currentInput), + _initialYear = _initialYearFromModel(currentInput); + + final Function() onRequestPicker; + final Function(DateFilterInputModel range) onSelect; + + final DateFilterInputModel? currentInput; + final _QuickPickerType? _selection; + final int _initialYear; + + // Generate a list of recent years from 2000 to the current year (including the current one) + final List _recentYears = List.generate(1 + DateTime.now().year - 2000, (index) { + return index + 2000; + }); + + static int _initialYearFromModel(DateFilterInputModel? model) { + return model?.asDateTimeRange().start.year ?? DateTime.now().year; + } + + static _QuickPickerType? _selectionFromModel(DateFilterInputModel? model) { + if (model is RecentMonthRangeFilter) { + return switch (model.monthDelta) { + 1 => _QuickPickerType.last1Month, + 3 => _QuickPickerType.last3Months, + 9 => _QuickPickerType.last9Months, + _ => _QuickPickerType.custom, + }; + } else if (model is YearFilter) { + return _QuickPickerType.year; + } else if (model is CustomDateFilter) { + return _QuickPickerType.custom; + } + return null; + } + + Text _monthLabel(BuildContext context, int monthsFromNow) => + const Text('last_months').t(context: context, args: {"count": monthsFromNow.toString()}); + + Widget _yearPicker(BuildContext context) { + final size = MediaQuery.of(context).size; + return Row( + children: [ + const Text("in_year_selector").tr(), + const SizedBox(width: 15), + Expanded( + child: DropdownMenu( + initialSelection: _initialYear, + menuStyle: MenuStyle(maximumSize: WidgetStateProperty.all(Size(size.width, size.height * 0.5))), + dropdownMenuEntries: _recentYears.map((e) => DropdownMenuEntry(value: e, label: e.toString())).toList(), + onSelected: (year) { + if (year == null) return; + onSelect(YearFilter(year)); + }, + ), + ), + ], + ); + } + + // We want the exact date picker to always be selectable. + // Even if it's already toggled it should always open the full date picker, RadioListTiles don't do that by default + // so we wrap it in a InkWell + Widget _exactPicker(BuildContext context) { + final hasPreviousInput = currentInput != null && currentInput is CustomDateFilter; + + return InkWell( + onTap: onRequestPicker, + child: IgnorePointer( + ignoring: true, + child: RadioListTile( + title: const Text('pick_custom_range').tr(), + subtitle: hasPreviousInput ? Text(currentInput!.asHumanReadable(context)) : null, + secondary: hasPreviousInput ? const Icon(Icons.edit) : null, + value: _QuickPickerType.custom, + toggleable: true, + ), + ), + ); + } + + @override + Widget build(BuildContext context) { + return Padding( + padding: EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom), + child: Scrollbar( + // Depending on the screen size the last option might get cut off + // Add a clear visual cue that there are more options when scrolling + // When the screen size is large enough the scrollbar is hidden automatically + trackVisibility: true, + thumbVisibility: true, + child: SingleChildScrollView( + child: RadioGroup( + onChanged: (value) { + if (value == null) return; + final _ = switch (value) { + _QuickPickerType.custom => onRequestPicker(), + _QuickPickerType.last1Month => onSelect(RecentMonthRangeFilter(1)), + _QuickPickerType.last3Months => onSelect(RecentMonthRangeFilter(3)), + _QuickPickerType.last9Months => onSelect(RecentMonthRangeFilter(9)), + // When a year is selected the combobox triggers onSelect() on its own. + // Here we handle the radio button being selected which can only ever be the initial year + _QuickPickerType.year => onSelect(YearFilter(_initialYear)), + }; + }, + groupValue: _selection, + child: Column( + children: [ + RadioListTile(title: _monthLabel(context, 1), value: _QuickPickerType.last1Month, toggleable: true), + RadioListTile(title: _monthLabel(context, 3), value: _QuickPickerType.last3Months, toggleable: true), + RadioListTile(title: _monthLabel(context, 9), value: _QuickPickerType.last9Months, toggleable: true), + RadioListTile(title: _yearPicker(context), value: _QuickPickerType.year, toggleable: true), + _exactPicker(context), + ], + ), + ), + ), + ), + ); + } +} diff --git a/mobile/lib/widgets/search/search_filter/filter_bottom_sheet_scaffold.dart b/mobile/lib/widgets/search/search_filter/filter_bottom_sheet_scaffold.dart index e8226b5b3a..dee42ec5a0 100644 --- a/mobile/lib/widgets/search/search_filter/filter_bottom_sheet_scaffold.dart +++ b/mobile/lib/widgets/search/search_filter/filter_bottom_sheet_scaffold.dart @@ -6,7 +6,7 @@ class FilterBottomSheetScaffold extends StatelessWidget { const FilterBottomSheetScaffold({ super.key, required this.child, - required this.onSearch, + this.onSearch, required this.onClear, required this.title, this.expanded, @@ -15,7 +15,7 @@ class FilterBottomSheetScaffold extends StatelessWidget { final bool? expanded; final String title; final Widget child; - final Function() onSearch; + final Function()? onSearch; final Function() onClear; @override @@ -48,15 +48,16 @@ class FilterBottomSheetScaffold extends StatelessWidget { }, child: const Text('clear').tr(), ), - const SizedBox(width: 8), - ElevatedButton( - key: const Key('search_filter_apply'), - onPressed: () { - onSearch(); - context.pop(); - }, - child: const Text('search_filter_apply').tr(), - ), + if (onSearch != null) const SizedBox(width: 8), + if (onSearch != null) + ElevatedButton( + key: const Key('search_filter_apply'), + onPressed: () { + onSearch!(); + context.pop(); + }, + child: const Text('search_filter_apply').tr(), + ), ], ), ), From 6922a92b69e8cccb06a5300f4976213371eac13a Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 10 Nov 2025 14:19:27 -0600 Subject: [PATCH 028/300] feat: show update version info (#23698) * feat: show update version info * Apply suggestions from code review Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com> --------- Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com> --- i18n/en.json | 1 + .../side-bar/server-status.svelte | 48 +++++++++++++++++-- web/src/lib/utils.ts | 2 + web/src/routes/+layout.svelte | 4 +- 4 files changed, 48 insertions(+), 7 deletions(-) diff --git a/i18n/en.json b/i18n/en.json index 6117e30106..f0b10d2ac1 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -1414,6 +1414,7 @@ "new_pin_code": "New PIN code", "new_pin_code_subtitle": "This is your first time accessing the locked folder. Create a PIN code to securely access this page", "new_timeline": "New Timeline", + "new_update": "New update", "new_user_created": "New user created", "new_version_available": "NEW VERSION AVAILABLE", "newest_first": "Newest first", diff --git a/web/src/lib/components/shared-components/side-bar/server-status.svelte b/web/src/lib/components/shared-components/side-bar/server-status.svelte index 5c70955f60..b678bc5507 100644 --- a/web/src/lib/components/shared-components/side-bar/server-status.svelte +++ b/web/src/lib/components/shared-components/side-bar/server-status.svelte @@ -1,7 +1,9 @@
info && modalManager.show(ServerAboutModal, { versions, info })} - class="dark:text-immich-gray flex gap-1" + class="dark:text-immich-gray flex gap-1 place-items-center place-content-center" > {#if isMain} {info?.sourceRef} @@ -69,3 +86,26 @@ {/if}
+ +{#if releaseInfo} + +
+
+ + + {releaseInfo.availableVersion} + +
+ + {$t('new_update')}! + +
+
+{/if} diff --git a/web/src/lib/utils.ts b/web/src/lib/utils.ts index 65510352c1..6e0a216477 100644 --- a/web/src/lib/utils.ts +++ b/web/src/lib/utils.ts @@ -400,3 +400,5 @@ export const getReleaseType = ( return 'none'; }; + +export const semverToName = ({ major, minor, patch }: ServerVersionResponseDto) => `v${major}.${minor}.${patch}`; diff --git a/web/src/routes/+layout.svelte b/web/src/routes/+layout.svelte index f5d4619943..bd0029735c 100644 --- a/web/src/routes/+layout.svelte +++ b/web/src/routes/+layout.svelte @@ -17,9 +17,8 @@ websocketStore, type ReleaseEvent, } from '$lib/stores/websocket'; - import { copyToClipboard, getReleaseType } from '$lib/utils'; + import { copyToClipboard, getReleaseType, semverToName } from '$lib/utils'; import { isAssetViewerRoute } from '$lib/utils/navigation'; - import type { ServerVersionResponseDto } from '@immich/sdk'; import { modalManager, setTranslations } from '@immich/ui'; import { onMount, type Snippet } from 'svelte'; import { t } from 'svelte-i18n'; @@ -78,7 +77,6 @@ } }); - const semverToName = ({ major, minor, patch }: ServerVersionResponseDto) => `v${major}.${minor}.${patch}`; const { release } = websocketStore; const handleRelease = async (release?: ReleaseEvent) => { From 9e2208b8dd4c327e5fca7c8d77f89f6904f2ec0e Mon Sep 17 00:00:00 2001 From: Mert <101130780+mertalev@users.noreply.github.com> Date: Mon, 10 Nov 2025 15:21:08 -0500 Subject: [PATCH 029/300] chore(mobile): add table schemas to swift (#23749) * add schemas * handle json, improve type safety * formatting * sync variants * formatting --- mobile/ios/Runner.xcodeproj/project.pbxproj | 66 ++++- .../xcshareddata/swiftpm/Package.resolved | 150 +++++++++++ mobile/ios/Runner/Schemas/Constants.swift | 177 +++++++++++++ mobile/ios/Runner/Schemas/Store.swift | 146 +++++++++++ mobile/ios/Runner/Schemas/Tables.swift | 237 ++++++++++++++++++ 5 files changed, 772 insertions(+), 4 deletions(-) create mode 100644 mobile/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved create mode 100644 mobile/ios/Runner/Schemas/Constants.swift create mode 100644 mobile/ios/Runner/Schemas/Store.swift create mode 100644 mobile/ios/Runner/Schemas/Tables.swift diff --git a/mobile/ios/Runner.xcodeproj/project.pbxproj b/mobile/ios/Runner.xcodeproj/project.pbxproj index 15130702bc..d2d9e8f0b7 100644 --- a/mobile/ios/Runner.xcodeproj/project.pbxproj +++ b/mobile/ios/Runner.xcodeproj/project.pbxproj @@ -32,6 +32,9 @@ FEAFA8732E4D42F4001E47FE /* Thumbhash.swift in Sources */ = {isa = PBXBuildFile; fileRef = FEAFA8722E4D42F4001E47FE /* Thumbhash.swift */; }; FED3B1962E253E9B0030FD97 /* ThumbnailsImpl.swift in Sources */ = {isa = PBXBuildFile; fileRef = FED3B1942E253E9B0030FD97 /* ThumbnailsImpl.swift */; }; FED3B1972E253E9B0030FD97 /* Thumbnails.g.swift in Sources */ = {isa = PBXBuildFile; fileRef = FED3B1932E253E9B0030FD97 /* Thumbnails.g.swift */; }; + FEE084F82EC172460045228E /* SQLiteData in Frameworks */ = {isa = PBXBuildFile; productRef = FEE084F72EC172460045228E /* SQLiteData */; }; + FEE084FB2EC1725A0045228E /* RawStructuredFieldValues in Frameworks */ = {isa = PBXBuildFile; productRef = FEE084FA2EC1725A0045228E /* RawStructuredFieldValues */; }; + FEE084FD2EC1725A0045228E /* StructuredFieldValues in Frameworks */ = {isa = PBXBuildFile; productRef = FEE084FC2EC1725A0045228E /* StructuredFieldValues */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -133,15 +136,11 @@ /* Begin PBXFileSystemSynchronizedRootGroup section */ B231F52D2E93A44A00BC45D1 /* Core */ = { isa = PBXFileSystemSynchronizedRootGroup; - exceptions = ( - ); path = Core; sourceTree = ""; }; B2CF7F8C2DDE4EBB00744BF6 /* Sync */ = { isa = PBXFileSystemSynchronizedRootGroup; - exceptions = ( - ); path = Sync; sourceTree = ""; }; @@ -153,6 +152,11 @@ path = WidgetExtension; sourceTree = ""; }; + FEE084F22EC172080045228E /* Schemas */ = { + isa = PBXFileSystemSynchronizedRootGroup; + path = Schemas; + sourceTree = ""; + }; /* End PBXFileSystemSynchronizedRootGroup section */ /* Begin PBXFrameworksBuildPhase section */ @@ -160,6 +164,9 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + FEE084F82EC172460045228E /* SQLiteData in Frameworks */, + FEE084FB2EC1725A0045228E /* RawStructuredFieldValues in Frameworks */, + FEE084FD2EC1725A0045228E /* StructuredFieldValues in Frameworks */, D218389C4A4C4693F141F7D1 /* Pods_Runner.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -254,6 +261,7 @@ 97C146F01CF9000F007C117D /* Runner */ = { isa = PBXGroup; children = ( + FEE084F22EC172080045228E /* Schemas */, B231F52D2E93A44A00BC45D1 /* Core */, B25D37792E72CA15008B6CA7 /* Connectivity */, B21E34A62E5AF9760031FDB9 /* Background */, @@ -341,6 +349,7 @@ fileSystemSynchronizedGroups = ( B231F52D2E93A44A00BC45D1 /* Core */, B2CF7F8C2DDE4EBB00744BF6 /* Sync */, + FEE084F22EC172080045228E /* Schemas */, ); name = Runner; productName = Runner; @@ -419,6 +428,10 @@ Base, ); mainGroup = 97C146E51CF9000F007C117D; + packageReferences = ( + FEE084F62EC172460045228E /* XCRemoteSwiftPackageReference "sqlite-data" */, + FEE084F92EC1725A0045228E /* XCRemoteSwiftPackageReference "swift-http-structured-headers" */, + ); preferredProjectObjectVersion = 77; productRefGroup = 97C146EF1CF9000F007C117D /* Products */; projectDirPath = ""; @@ -530,10 +543,14 @@ inputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist", ); + inputPaths = ( + ); name = "[CP] Copy Pods Resources"; outputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist", ); + outputPaths = ( + ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n"; @@ -562,10 +579,14 @@ inputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); + inputPaths = ( + ); name = "[CP] Embed Pods Frameworks"; outputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); + outputPaths = ( + ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; @@ -1201,6 +1222,43 @@ defaultConfigurationName = Release; }; /* End XCConfigurationList section */ + +/* Begin XCRemoteSwiftPackageReference section */ + FEE084F62EC172460045228E /* XCRemoteSwiftPackageReference "sqlite-data" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/pointfreeco/sqlite-data"; + requirement = { + kind = upToNextMajorVersion; + minimumVersion = 1.3.0; + }; + }; + FEE084F92EC1725A0045228E /* XCRemoteSwiftPackageReference "swift-http-structured-headers" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/apple/swift-http-structured-headers.git"; + requirement = { + kind = upToNextMajorVersion; + minimumVersion = 1.5.0; + }; + }; +/* End XCRemoteSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + FEE084F72EC172460045228E /* SQLiteData */ = { + isa = XCSwiftPackageProductDependency; + package = FEE084F62EC172460045228E /* XCRemoteSwiftPackageReference "sqlite-data" */; + productName = SQLiteData; + }; + FEE084FA2EC1725A0045228E /* RawStructuredFieldValues */ = { + isa = XCSwiftPackageProductDependency; + package = FEE084F92EC1725A0045228E /* XCRemoteSwiftPackageReference "swift-http-structured-headers" */; + productName = RawStructuredFieldValues; + }; + FEE084FC2EC1725A0045228E /* StructuredFieldValues */ = { + isa = XCSwiftPackageProductDependency; + package = FEE084F92EC1725A0045228E /* XCRemoteSwiftPackageReference "swift-http-structured-headers" */; + productName = StructuredFieldValues; + }; +/* End XCSwiftPackageProductDependency section */ }; rootObject = 97C146E61CF9000F007C117D /* Project object */; } diff --git a/mobile/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved b/mobile/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved new file mode 100644 index 0000000000..af8b19fa89 --- /dev/null +++ b/mobile/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -0,0 +1,150 @@ +{ + "originHash" : "9be33bfaa68721646604aefff3cabbdaf9a193da192aae024c265065671f6c49", + "pins" : [ + { + "identity" : "combine-schedulers", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pointfreeco/combine-schedulers", + "state" : { + "revision" : "5928286acce13def418ec36d05a001a9641086f2", + "version" : "1.0.3" + } + }, + { + "identity" : "grdb.swift", + "kind" : "remoteSourceControl", + "location" : "https://github.com/groue/GRDB.swift", + "state" : { + "revision" : "18497b68fdbb3a09528d260a0a0e1e7e61c8c53d", + "version" : "7.8.0" + } + }, + { + "identity" : "sqlite-data", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pointfreeco/sqlite-data", + "state" : { + "revision" : "b66b894b9a5710f1072c8eb6448a7edfc2d743d9", + "version" : "1.3.0" + } + }, + { + "identity" : "swift-clocks", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pointfreeco/swift-clocks", + "state" : { + "revision" : "cc46202b53476d64e824e0b6612da09d84ffde8e", + "version" : "1.0.6" + } + }, + { + "identity" : "swift-collections", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-collections", + "state" : { + "revision" : "7b847a3b7008b2dc2f47ca3110d8c782fb2e5c7e", + "version" : "1.3.0" + } + }, + { + "identity" : "swift-concurrency-extras", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pointfreeco/swift-concurrency-extras", + "state" : { + "revision" : "5a3825302b1a0d744183200915a47b508c828e6f", + "version" : "1.3.2" + } + }, + { + "identity" : "swift-custom-dump", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pointfreeco/swift-custom-dump", + "state" : { + "revision" : "82645ec760917961cfa08c9c0c7104a57a0fa4b1", + "version" : "1.3.3" + } + }, + { + "identity" : "swift-dependencies", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pointfreeco/swift-dependencies", + "state" : { + "revision" : "a10f9feeb214bc72b5337b6ef6d5a029360db4cc", + "version" : "1.10.0" + } + }, + { + "identity" : "swift-http-structured-headers", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-http-structured-headers.git", + "state" : { + "revision" : "a9f3c352f4d46afd155e00b3c6e85decae6bcbeb", + "version" : "1.5.0" + } + }, + { + "identity" : "swift-identified-collections", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pointfreeco/swift-identified-collections", + "state" : { + "revision" : "322d9ffeeba85c9f7c4984b39422ec7cc3c56597", + "version" : "1.1.1" + } + }, + { + "identity" : "swift-perception", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pointfreeco/swift-perception", + "state" : { + "revision" : "4f47ebafed5f0b0172cf5c661454fa8e28fb2ac4", + "version" : "2.0.9" + } + }, + { + "identity" : "swift-sharing", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pointfreeco/swift-sharing", + "state" : { + "revision" : "3bfc408cc2d0bee2287c174da6b1c76768377818", + "version" : "2.7.4" + } + }, + { + "identity" : "swift-snapshot-testing", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pointfreeco/swift-snapshot-testing", + "state" : { + "revision" : "a8b7c5e0ed33d8ab8887d1654d9b59f2cbad529b", + "version" : "1.18.7" + } + }, + { + "identity" : "swift-structured-queries", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pointfreeco/swift-structured-queries", + "state" : { + "revision" : "1447ea20550f6f02c4b48cc80931c3ed40a9c756", + "version" : "0.25.0" + } + }, + { + "identity" : "swift-syntax", + "kind" : "remoteSourceControl", + "location" : "https://github.com/swiftlang/swift-syntax", + "state" : { + "revision" : "4799286537280063c85a32f09884cfbca301b1a1", + "version" : "602.0.0" + } + }, + { + "identity" : "xctest-dynamic-overlay", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pointfreeco/xctest-dynamic-overlay", + "state" : { + "revision" : "4c27acf5394b645b70d8ba19dc249c0472d5f618", + "version" : "1.7.0" + } + } + ], + "version" : 3 +} diff --git a/mobile/ios/Runner/Schemas/Constants.swift b/mobile/ios/Runner/Schemas/Constants.swift new file mode 100644 index 0000000000..a4b0f701a1 --- /dev/null +++ b/mobile/ios/Runner/Schemas/Constants.swift @@ -0,0 +1,177 @@ +import SQLiteData + +struct Endpoint: Codable { + let url: URL + let status: Status + + enum Status: String, Codable { + case loading, valid, error, unknown + } +} + +enum StoreKey: Int, CaseIterable, QueryBindable { + // MARK: - Int + case _version = 0 + static let version = Typed(rawValue: ._version) + case _deviceIdHash = 3 + static let deviceIdHash = Typed(rawValue: ._deviceIdHash) + case _backupTriggerDelay = 8 + static let backupTriggerDelay = Typed(rawValue: ._backupTriggerDelay) + case _tilesPerRow = 103 + static let tilesPerRow = Typed(rawValue: ._tilesPerRow) + case _groupAssetsBy = 105 + static let groupAssetsBy = Typed(rawValue: ._groupAssetsBy) + case _uploadErrorNotificationGracePeriod = 106 + static let uploadErrorNotificationGracePeriod = Typed(rawValue: ._uploadErrorNotificationGracePeriod) + case _thumbnailCacheSize = 110 + static let thumbnailCacheSize = Typed(rawValue: ._thumbnailCacheSize) + case _imageCacheSize = 111 + static let imageCacheSize = Typed(rawValue: ._imageCacheSize) + case _albumThumbnailCacheSize = 112 + static let albumThumbnailCacheSize = Typed(rawValue: ._albumThumbnailCacheSize) + case _selectedAlbumSortOrder = 113 + static let selectedAlbumSortOrder = Typed(rawValue: ._selectedAlbumSortOrder) + case _logLevel = 115 + static let logLevel = Typed(rawValue: ._logLevel) + case _mapRelativeDate = 119 + static let mapRelativeDate = Typed(rawValue: ._mapRelativeDate) + case _mapThemeMode = 124 + static let mapThemeMode = Typed(rawValue: ._mapThemeMode) + + // MARK: - String + case _assetETag = 1 + static let assetETag = Typed(rawValue: ._assetETag) + case _currentUser = 2 + static let currentUser = Typed(rawValue: ._currentUser) + case _deviceId = 4 + static let deviceId = Typed(rawValue: ._deviceId) + case _accessToken = 11 + static let accessToken = Typed(rawValue: ._accessToken) + case _serverEndpoint = 12 + static let serverEndpoint = Typed(rawValue: ._serverEndpoint) + case _sslClientCertData = 15 + static let sslClientCertData = Typed(rawValue: ._sslClientCertData) + case _sslClientPasswd = 16 + static let sslClientPasswd = Typed(rawValue: ._sslClientPasswd) + case _themeMode = 102 + static let themeMode = Typed(rawValue: ._themeMode) + case _customHeaders = 127 + static let customHeaders = Typed<[String: String]>(rawValue: ._customHeaders) + case _primaryColor = 128 + static let primaryColor = Typed(rawValue: ._primaryColor) + case _preferredWifiName = 133 + static let preferredWifiName = Typed(rawValue: ._preferredWifiName) + + // MARK: - Endpoint + case _externalEndpointList = 135 + static let externalEndpointList = Typed<[Endpoint]>(rawValue: ._externalEndpointList) + + // MARK: - URL + case _localEndpoint = 134 + static let localEndpoint = Typed(rawValue: ._localEndpoint) + case _serverUrl = 10 + static let serverUrl = Typed(rawValue: ._serverUrl) + + // MARK: - Date + case _backupFailedSince = 5 + static let backupFailedSince = Typed(rawValue: ._backupFailedSince) + + // MARK: - Bool + case _backupRequireWifi = 6 + static let backupRequireWifi = Typed(rawValue: ._backupRequireWifi) + case _backupRequireCharging = 7 + static let backupRequireCharging = Typed(rawValue: ._backupRequireCharging) + case _autoBackup = 13 + static let autoBackup = Typed(rawValue: ._autoBackup) + case _backgroundBackup = 14 + static let backgroundBackup = Typed(rawValue: ._backgroundBackup) + case _loadPreview = 100 + static let loadPreview = Typed(rawValue: ._loadPreview) + case _loadOriginal = 101 + static let loadOriginal = Typed(rawValue: ._loadOriginal) + case _dynamicLayout = 104 + static let dynamicLayout = Typed(rawValue: ._dynamicLayout) + case _backgroundBackupTotalProgress = 107 + static let backgroundBackupTotalProgress = Typed(rawValue: ._backgroundBackupTotalProgress) + case _backgroundBackupSingleProgress = 108 + static let backgroundBackupSingleProgress = Typed(rawValue: ._backgroundBackupSingleProgress) + case _storageIndicator = 109 + static let storageIndicator = Typed(rawValue: ._storageIndicator) + case _advancedTroubleshooting = 114 + static let advancedTroubleshooting = Typed(rawValue: ._advancedTroubleshooting) + case _preferRemoteImage = 116 + static let preferRemoteImage = Typed(rawValue: ._preferRemoteImage) + case _loopVideo = 117 + static let loopVideo = Typed(rawValue: ._loopVideo) + case _mapShowFavoriteOnly = 118 + static let mapShowFavoriteOnly = Typed(rawValue: ._mapShowFavoriteOnly) + case _selfSignedCert = 120 + static let selfSignedCert = Typed(rawValue: ._selfSignedCert) + case _mapIncludeArchived = 121 + static let mapIncludeArchived = Typed(rawValue: ._mapIncludeArchived) + case _ignoreIcloudAssets = 122 + static let ignoreIcloudAssets = Typed(rawValue: ._ignoreIcloudAssets) + case _selectedAlbumSortReverse = 123 + static let selectedAlbumSortReverse = Typed(rawValue: ._selectedAlbumSortReverse) + case _mapwithPartners = 125 + static let mapwithPartners = Typed(rawValue: ._mapwithPartners) + case _enableHapticFeedback = 126 + static let enableHapticFeedback = Typed(rawValue: ._enableHapticFeedback) + case _dynamicTheme = 129 + static let dynamicTheme = Typed(rawValue: ._dynamicTheme) + case _colorfulInterface = 130 + static let colorfulInterface = Typed(rawValue: ._colorfulInterface) + case _syncAlbums = 131 + static let syncAlbums = Typed(rawValue: ._syncAlbums) + case _autoEndpointSwitching = 132 + static let autoEndpointSwitching = Typed(rawValue: ._autoEndpointSwitching) + case _loadOriginalVideo = 136 + static let loadOriginalVideo = Typed(rawValue: ._loadOriginalVideo) + case _manageLocalMediaAndroid = 137 + static let manageLocalMediaAndroid = Typed(rawValue: ._manageLocalMediaAndroid) + case _readonlyModeEnabled = 138 + static let readonlyModeEnabled = Typed(rawValue: ._readonlyModeEnabled) + case _autoPlayVideo = 139 + static let autoPlayVideo = Typed(rawValue: ._autoPlayVideo) + case _photoManagerCustomFilter = 1000 + static let photoManagerCustomFilter = Typed(rawValue: ._photoManagerCustomFilter) + case _betaPromptShown = 1001 + static let betaPromptShown = Typed(rawValue: ._betaPromptShown) + case _betaTimeline = 1002 + static let betaTimeline = Typed(rawValue: ._betaTimeline) + case _enableBackup = 1003 + static let enableBackup = Typed(rawValue: ._enableBackup) + case _useWifiForUploadVideos = 1004 + static let useWifiForUploadVideos = Typed(rawValue: ._useWifiForUploadVideos) + case _useWifiForUploadPhotos = 1005 + static let useWifiForUploadPhotos = Typed(rawValue: ._useWifiForUploadPhotos) + case _needBetaMigration = 1006 + static let needBetaMigration = Typed(rawValue: ._needBetaMigration) + case _shouldResetSync = 1007 + static let shouldResetSync = Typed(rawValue: ._shouldResetSync) + + struct Typed: RawRepresentable { + let rawValue: StoreKey + + @_transparent + init(rawValue value: StoreKey) { + self.rawValue = value + } + } +} + +enum BackupSelection: Int, QueryBindable { + case selected, none, excluded +} + +enum AvatarColor: Int, QueryBindable { + case primary, pink, red, yellow, blue, green, purple, orange, gray, amber +} + +enum AlbumUserRole: Int, QueryBindable { + case editor, viewer +} + +enum MemoryType: Int, QueryBindable { + case onThisDay +} diff --git a/mobile/ios/Runner/Schemas/Store.swift b/mobile/ios/Runner/Schemas/Store.swift new file mode 100644 index 0000000000..ee5280b6c0 --- /dev/null +++ b/mobile/ios/Runner/Schemas/Store.swift @@ -0,0 +1,146 @@ +import SQLiteData + +enum StoreError: Error { + case invalidJSON(String) + case invalidURL(String) + case encodingFailed +} + +protocol StoreConvertible { + associatedtype StorageType + static func fromValue(_ value: StorageType) throws(StoreError) -> Self + static func toValue(_ value: Self) throws(StoreError) -> StorageType +} + +extension Int: StoreConvertible { + static func fromValue(_ value: Int) -> Int { value } + static func toValue(_ value: Int) -> Int { value } +} + +extension Bool: StoreConvertible { + static func fromValue(_ value: Int) -> Bool { value == 1 } + static func toValue(_ value: Bool) -> Int { value ? 1 : 0 } +} + +extension Date: StoreConvertible { + static func fromValue(_ value: Int) -> Date { Date(timeIntervalSince1970: TimeInterval(value) / 1000) } + static func toValue(_ value: Date) -> Int { Int(value.timeIntervalSince1970 * 1000) } +} + +extension String: StoreConvertible { + static func fromValue(_ value: String) -> String { value } + static func toValue(_ value: String) -> String { value } +} + +extension URL: StoreConvertible { + static func fromValue(_ value: String) throws(StoreError) -> URL { + guard let url = URL(string: value) else { + throw StoreError.invalidURL(value) + } + return url + } + static func toValue(_ value: URL) -> String { value.absoluteString } +} + +extension StoreConvertible where Self: Codable, StorageType == String { + static var jsonDecoder: JSONDecoder { JSONDecoder() } + static var jsonEncoder: JSONEncoder { JSONEncoder() } + + static func fromValue(_ value: String) throws(StoreError) -> Self { + do { + return try jsonDecoder.decode(Self.self, from: Data(value.utf8)) + } catch { + throw StoreError.invalidJSON(value) + } + } + + static func toValue(_ value: Self) throws(StoreError) -> String { + let encoded: Data + do { + encoded = try jsonEncoder.encode(value) + } catch { + throw StoreError.encodingFailed + } + + guard let string = String(data: encoded, encoding: .utf8) else { + throw StoreError.encodingFailed + } + return string + } +} + +extension Array: StoreConvertible where Element: Codable { + typealias StorageType = String +} + +extension Dictionary: StoreConvertible where Key == String, Value: Codable { + typealias StorageType = String +} + +class StoreRepository { + private let db: DatabasePool + + init(db: DatabasePool) { + self.db = db + } + + func get(_ key: StoreKey.Typed) throws -> T? where T.StorageType == Int { + let query = Store.select(\.intValue).where { $0.id.eq(key.rawValue) } + if let value = try db.read({ conn in try query.fetchOne(conn) }) ?? nil { + return try T.fromValue(value) + } + return nil + } + + func get(_ key: StoreKey.Typed) throws -> T? where T.StorageType == String { + let query = Store.select(\.stringValue).where { $0.id.eq(key.rawValue) } + if let value = try db.read({ conn in try query.fetchOne(conn) }) ?? nil { + return try T.fromValue(value) + } + return nil + } + + func get(_ key: StoreKey.Typed) async throws -> T? where T.StorageType == Int { + let query = Store.select(\.intValue).where { $0.id.eq(key.rawValue) } + if let value = try await db.read({ conn in try query.fetchOne(conn) }) ?? nil { + return try T.fromValue(value) + } + return nil + } + + func get(_ key: StoreKey.Typed) async throws -> T? where T.StorageType == String { + let query = Store.select(\.stringValue).where { $0.id.eq(key.rawValue) } + if let value = try await db.read({ conn in try query.fetchOne(conn) }) ?? nil { + return try T.fromValue(value) + } + return nil + } + + func set(_ key: StoreKey.Typed, value: T) throws where T.StorageType == Int { + let value = try T.toValue(value) + try db.write { conn in + try Store.upsert { Store(id: key.rawValue, stringValue: nil, intValue: value) }.execute(conn) + } + } + + func set(_ key: StoreKey.Typed, value: T) throws where T.StorageType == String { + let value = try T.toValue(value) + try db.write { conn in + try Store.upsert { Store(id: key.rawValue, stringValue: value, intValue: nil) }.execute(conn) + } + } + + func set(_ key: StoreKey.Typed, value: T) async throws where T.StorageType == Int { + let value = try T.toValue(value) + try await db.write { conn in + try Store.upsert { Store(id: key.rawValue, stringValue: nil, intValue: value) }.execute(conn) + } + } + + func set(_ key: StoreKey.Typed, value: T) async throws where T.StorageType == String { + let value = try T.toValue(value) + try await db.write { conn in + try Store.upsert { Store(id: key.rawValue, stringValue: value, intValue: nil) }.execute(conn) + } + } +} diff --git a/mobile/ios/Runner/Schemas/Tables.swift b/mobile/ios/Runner/Schemas/Tables.swift new file mode 100644 index 0000000000..c256b0d0ed --- /dev/null +++ b/mobile/ios/Runner/Schemas/Tables.swift @@ -0,0 +1,237 @@ +import GRDB +import SQLiteData + +@Table("asset_face_entity") +struct AssetFace { + let id: String + let assetId: String + let personId: String? + let imageWidth: Int + let imageHeight: Int + let boundingBoxX1: Int + let boundingBoxY1: Int + let boundingBoxX2: Int + let boundingBoxY2: Int + let sourceType: String +} + +@Table("auth_user_entity") +struct AuthUser { + let id: String + let name: String + let email: String + let isAdmin: Bool + let hasProfileImage: Bool + let profileChangedAt: Date + let avatarColor: AvatarColor + let quotaSizeInBytes: Int + let quotaUsageInBytes: Int + let pinCode: String? +} + +@Table("local_album_entity") +struct LocalAlbum { + let id: String + let backupSelection: BackupSelection + let linkedRemoteAlbumId: String? + let marker_: Bool? + let name: String + let isIosSharedAlbum: Bool + let updatedAt: Date +} + +@Table("local_album_asset_entity") +struct LocalAlbumAsset { + let id: ID + let marker_: String? + + @Selection + struct ID { + let assetId: String + let albumId: String + } +} + +@Table("local_asset_entity") +struct LocalAsset { + let id: String + let checksum: String? + let createdAt: Date + let durationInSeconds: Int? + let height: Int? + let isFavorite: Bool + let name: String + let orientation: String + let type: Int + let updatedAt: Date + let width: Int? +} + +@Table("memory_asset_entity") +struct MemoryAsset { + let id: ID + + @Selection + struct ID { + let assetId: String + let albumId: String + } +} + +@Table("memory_entity") +struct Memory { + let id: String + let createdAt: Date + let updatedAt: Date + let deletedAt: Date? + let ownerId: String + let type: MemoryType + let data: String + let isSaved: Bool + let memoryAt: Date + let seenAt: Date? + let showAt: Date? + let hideAt: Date? +} + +@Table("partner_entity") +struct Partner { + let id: ID + let inTimeline: Bool + + @Selection + struct ID { + let sharedById: String + let sharedWithId: String + } +} + +@Table("person_entity") +struct Person { + let id: String + let createdAt: Date + let updatedAt: Date + let ownerId: String + let name: String + let faceAssetId: String? + let isFavorite: Bool + let isHidden: Bool + let color: String? + let birthDate: Date? +} + +@Table("remote_album_entity") +struct RemoteAlbum { + let id: String + let createdAt: Date + let description: String? + let isActivityEnabled: Bool + let name: String + let order: Int + let ownerId: String + let thumbnailAssetId: String? + let updatedAt: Date +} + +@Table("remote_album_asset_entity") +struct RemoteAlbumAsset { + let id: ID + + @Selection + struct ID { + let assetId: String + let albumId: String + } +} + +@Table("remote_album_user_entity") +struct RemoteAlbumUser { + let id: ID + let role: AlbumUserRole + + @Selection + struct ID { + let albumId: String + let userId: String + } +} + +@Table("remote_asset_entity") +struct RemoteAsset { + let id: String + let checksum: String? + let deletedAt: Date? + let isFavorite: Int + let libraryId: String? + let livePhotoVideoId: String? + let localDateTime: Date? + let orientation: String + let ownerId: String + let stackId: String? + let visibility: Int +} + +@Table("remote_exif_entity") +struct RemoteExif { + @Column(primaryKey: true) + let assetId: String + let city: String? + let state: String? + let country: String? + let dateTimeOriginal: Date? + let description: String? + let height: Int? + let width: Int? + let exposureTime: String? + let fNumber: Double? + let fileSize: Int? + let focalLength: Double? + let latitude: Double? + let longitude: Double? + let iso: Int? + let make: String? + let model: String? + let lens: String? + let orientation: String? + let timeZone: String? + let rating: Int? + let projectionType: String? +} + +@Table("stack_entity") +struct Stack { + let id: String + let createdAt: Date + let updatedAt: Date + let ownerId: String + let primaryAssetId: String +} + +@Table("store_entity") +struct Store { + let id: StoreKey + let stringValue: String? + let intValue: Int? +} + +@Table("user_entity") +struct User { + let id: String + let name: String + let email: String + let hasProfileImage: Bool + let profileChangedAt: Date + let avatarColor: AvatarColor +} + +@Table("user_metadata_entity") +struct UserMetadata { + let id: ID + let value: Data + + @Selection + struct ID { + let userId: String + let key: Date + } +} From dea95ac2e6ee3e41441886ca59376200978c1b55 Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Mon, 10 Nov 2025 15:49:02 -0500 Subject: [PATCH 030/300] refactor: shared-link service (#23770) --- pnpm-lock.yaml | 18 ++--- web/package.json | 2 +- web/src/lib/components/ActionButton.svelte | 19 +++++ .../album-page/album-shared-link.svelte | 20 ++--- .../search-bar/search-bar.svelte | 2 +- .../actions/shared-link-copy.svelte | 28 ------- .../actions/shared-link-delete.svelte | 26 ------ .../actions/shared-link-edit.svelte | 33 -------- .../sharedlinks-page/shared-link-card.svelte | 30 +++---- web/src/lib/managers/event-manager.svelte.ts | 1 + web/src/lib/services/shared-link.service.ts | 80 +++++++++++++++++-- .../shared-links/[[id=id]]/+page.svelte | 32 ++------ 12 files changed, 128 insertions(+), 163 deletions(-) create mode 100644 web/src/lib/components/ActionButton.svelte delete mode 100644 web/src/lib/components/sharedlinks-page/actions/shared-link-copy.svelte delete mode 100644 web/src/lib/components/sharedlinks-page/actions/shared-link-delete.svelte delete mode 100644 web/src/lib/components/sharedlinks-page/actions/shared-link-edit.svelte diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index da1dd18d97..00087e91e0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -684,8 +684,8 @@ importers: specifier: file:../open-api/typescript-sdk version: link:../open-api/typescript-sdk '@immich/ui': - specifier: ^0.40.2 - version: 0.40.2(@internationalized/date@3.8.2)(svelte@5.43.0) + specifier: ^0.43.0 + version: 0.43.0(@internationalized/date@3.8.2)(svelte@5.43.0) '@mapbox/mapbox-gl-rtl-text': specifier: 0.2.3 version: 0.2.3(mapbox-gl@1.13.3) @@ -2776,13 +2776,13 @@ packages: '@immich/justified-layout-wasm@0.4.3': resolution: {integrity: sha512-fpcQ7zPhP3Cp1bEXhONVYSUeIANa2uzaQFGKufUZQo5FO7aFT77szTVChhlCy4XaVy5R4ZvgSkA/1TJmeORz7Q==} - '@immich/svelte-markdown-preprocess@0.0.1': - resolution: {integrity: sha512-1vWoT4LO6fEyxrKwLKiNFECEkRVbuvpYPDvA7LavObTt2ijnonPYBDgfTwCPTofjxcocIGYUayv3CzgOzFiMOA==} + '@immich/svelte-markdown-preprocess@0.1.0': + resolution: {integrity: sha512-jgSOJEGLPKEXQCNRI4r4YUayeM2b0ZYLdzgKGl891jZBhOQIetlY7rU44kPpV1AA3/8wGDwNFKduIQZZ/qJYzg==} peerDependencies: svelte: ^5.0.0 - '@immich/ui@0.40.2': - resolution: {integrity: sha512-6NS4yVx0VoyH+AaM7TISDaoIzZe3RuDOi6xMkK2LrOPQbKwTuheD2iagxsRYzUtJ9IPrmCPrwRBc9Jq5BkvmBQ==} + '@immich/ui@0.43.0': + resolution: {integrity: sha512-dwWIURsGghsbeFnqxCqUyWslyRU2vQjih7uewNr0nsW68bJ5/esl+V/Kiw2opiNiwI4Q3HEcuTRY57k4Hq+X3Q==} peerDependencies: svelte: ^5.0.0 @@ -14346,13 +14346,13 @@ snapshots: '@immich/justified-layout-wasm@0.4.3': {} - '@immich/svelte-markdown-preprocess@0.0.1(svelte@5.43.0)': + '@immich/svelte-markdown-preprocess@0.1.0(svelte@5.43.0)': dependencies: svelte: 5.43.0 - '@immich/ui@0.40.2(@internationalized/date@3.8.2)(svelte@5.43.0)': + '@immich/ui@0.43.0(@internationalized/date@3.8.2)(svelte@5.43.0)': dependencies: - '@immich/svelte-markdown-preprocess': 0.0.1(svelte@5.43.0) + '@immich/svelte-markdown-preprocess': 0.1.0(svelte@5.43.0) '@mdi/js': 7.4.47 bits-ui: 2.9.8(@internationalized/date@3.8.2)(svelte@5.43.0) luxon: 3.7.2 diff --git a/web/package.json b/web/package.json index b9ec394b5d..2a93230c24 100644 --- a/web/package.json +++ b/web/package.json @@ -28,7 +28,7 @@ "@formatjs/icu-messageformat-parser": "^2.9.8", "@immich/justified-layout-wasm": "^0.4.3", "@immich/sdk": "file:../open-api/typescript-sdk", - "@immich/ui": "^0.40.2", + "@immich/ui": "^0.43.0", "@mapbox/mapbox-gl-rtl-text": "0.2.3", "@mdi/js": "^7.4.47", "@photo-sphere-viewer/core": "^5.11.5", diff --git a/web/src/lib/components/ActionButton.svelte b/web/src/lib/components/ActionButton.svelte new file mode 100644 index 0000000000..1bbbf642e0 --- /dev/null +++ b/web/src/lib/components/ActionButton.svelte @@ -0,0 +1,19 @@ + + + onSelect?.({ event, item: action })} +/> diff --git a/web/src/lib/components/album-page/album-shared-link.svelte b/web/src/lib/components/album-page/album-shared-link.svelte index 580a865ae6..1b6db6ff69 100644 --- a/web/src/lib/components/album-page/album-shared-link.svelte +++ b/web/src/lib/components/album-page/album-shared-link.svelte @@ -1,10 +1,9 @@
@@ -40,14 +41,7 @@ {getShareProperties()}
- handleShowSharedLinkQrCode(sharedLink)} - /> - + +
diff --git a/web/src/lib/components/shared-components/search-bar/search-bar.svelte b/web/src/lib/components/shared-components/search-bar/search-bar.svelte index 8c1d2c5d08..ea1147fe06 100644 --- a/web/src/lib/components/shared-components/search-bar/search-bar.svelte +++ b/web/src/lib/components/shared-components/search-bar/search-bar.svelte @@ -92,7 +92,7 @@ } const result = modalManager.open(SearchFilterModal, { searchQuery }); - close = () => result.close(undefined); + close = () => result.close(); closeDropdown(); const searchResult = await result.onClose; diff --git a/web/src/lib/components/sharedlinks-page/actions/shared-link-copy.svelte b/web/src/lib/components/sharedlinks-page/actions/shared-link-copy.svelte deleted file mode 100644 index 06369e7792..0000000000 --- a/web/src/lib/components/sharedlinks-page/actions/shared-link-copy.svelte +++ /dev/null @@ -1,28 +0,0 @@ - - -{#if menuItem} - handleCopySharedLinkUrl(sharedLink)} /> -{:else} - handleCopySharedLinkUrl(sharedLink)} - /> -{/if} diff --git a/web/src/lib/components/sharedlinks-page/actions/shared-link-delete.svelte b/web/src/lib/components/sharedlinks-page/actions/shared-link-delete.svelte deleted file mode 100644 index f844d8483e..0000000000 --- a/web/src/lib/components/sharedlinks-page/actions/shared-link-delete.svelte +++ /dev/null @@ -1,26 +0,0 @@ - - -{#if menuItem} - -{:else} - -{/if} diff --git a/web/src/lib/components/sharedlinks-page/actions/shared-link-edit.svelte b/web/src/lib/components/sharedlinks-page/actions/shared-link-edit.svelte deleted file mode 100644 index 7482c1b6eb..0000000000 --- a/web/src/lib/components/sharedlinks-page/actions/shared-link-edit.svelte +++ /dev/null @@ -1,33 +0,0 @@ - - -{#if menuItem} - -{:else} - -{/if} diff --git a/web/src/lib/components/sharedlinks-page/shared-link-card.svelte b/web/src/lib/components/sharedlinks-page/shared-link-card.svelte index f811f60e77..b2c6cf296d 100644 --- a/web/src/lib/components/sharedlinks-page/shared-link-card.svelte +++ b/web/src/lib/components/sharedlinks-page/shared-link-card.svelte @@ -1,23 +1,19 @@
- - - - - +
diff --git a/web/src/lib/managers/event-manager.svelte.ts b/web/src/lib/managers/event-manager.svelte.ts index 44ee524658..e7d50f026d 100644 --- a/web/src/lib/managers/event-manager.svelte.ts +++ b/web/src/lib/managers/event-manager.svelte.ts @@ -10,6 +10,7 @@ export type Events = { ThemeChange: [ThemeSetting]; SharedLinkCreate: [SharedLinkResponseDto]; SharedLinkUpdate: [SharedLinkResponseDto]; + SharedLinkDelete: [SharedLinkResponseDto]; }; type Listener, K extends keyof EventMap> = (...params: EventMap[K]) => void; diff --git a/web/src/lib/services/shared-link.service.ts b/web/src/lib/services/shared-link.service.ts index 529b6b23b4..a48f0b5965 100644 --- a/web/src/lib/services/shared-link.service.ts +++ b/web/src/lib/services/shared-link.service.ts @@ -1,3 +1,5 @@ +import { goto } from '$app/navigation'; +import { AppRoute } from '$lib/constants'; import { eventManager } from '$lib/managers/event-manager.svelte'; import QrCodeModal from '$lib/modals/QrCodeModal.svelte'; import { serverConfig } from '$lib/stores/server-config.store'; @@ -6,15 +8,58 @@ import { handleError } from '$lib/utils/handle-error'; import { getFormatter } from '$lib/utils/i18n'; import { createSharedLink, + removeSharedLink, updateSharedLink, type SharedLinkCreateDto, type SharedLinkEditDto, type SharedLinkResponseDto, } from '@immich/sdk'; -import { modalManager, toastManager } from '@immich/ui'; +import { MenuItemType, menuManager, modalManager, toastManager, type MenuItem } from '@immich/ui'; +import { mdiCircleEditOutline, mdiContentCopy, mdiDelete, mdiDotsVertical, mdiQrcode } from '@mdi/js'; +import type { MessageFormatter } from 'svelte-i18n'; import { get } from 'svelte/store'; -const makeSharedLinkUrl = (sharedLink: SharedLinkResponseDto) => { +export const getSharedLinkActions = ($t: MessageFormatter, sharedLink: SharedLinkResponseDto) => { + const Edit: MenuItem = { + title: $t('edit_link'), + icon: mdiCircleEditOutline, + onSelect: () => void goto(`${AppRoute.SHARED_LINKS}/${sharedLink.id}`), + }; + + const Delete: MenuItem = { + title: $t('delete_link'), + icon: mdiDelete, + color: 'danger', + onSelect: () => void handleDeleteSharedLink(sharedLink), + }; + + const Copy: MenuItem = { + title: $t('copy_link'), + icon: mdiContentCopy, + onSelect: () => void copyToClipboard(asUrl(sharedLink)), + }; + + const ViewQrCode: MenuItem = { + title: $t('view_qr_code'), + icon: mdiQrcode, + onSelect: () => void handleShowSharedLinkQrCode(sharedLink), + }; + + const ContextMenu: MenuItem = { + title: $t('shared_link_options'), + icon: mdiDotsVertical, + onSelect: ({ event }) => + void menuManager.show({ + target: event.currentTarget as HTMLElement, + position: 'top-right', + items: [Edit, Copy, MenuItemType.Divider, Delete], + }), + }; + + return { Edit, Delete, Copy, ViewQrCode, ContextMenu }; +}; + +const asUrl = (sharedLink: SharedLinkResponseDto) => { const path = sharedLink.slug ? `s/${sharedLink.slug}` : `share/${sharedLink.key}`; return new URL(path, get(serverConfig).externalDomain || globalThis.location.origin).href; }; @@ -54,11 +99,34 @@ export const handleUpdateSharedLink = async (sharedLink: SharedLinkResponseDto, } }; -export const handleShowSharedLinkQrCode = async (sharedLink: SharedLinkResponseDto) => { +export const handleDeleteSharedLink = async (sharedLink: SharedLinkResponseDto): Promise => { const $t = await getFormatter(); - await modalManager.show(QrCodeModal, { title: $t('view_link'), value: makeSharedLinkUrl(sharedLink) }); + + const success = await modalManager.showDialog({ + title: $t('delete_shared_link'), + prompt: $t('confirm_delete_shared_link'), + confirmText: $t('delete'), + }); + + if (!success) { + return false; + } + + try { + await removeSharedLink({ id: sharedLink.id }); + + eventManager.emit('SharedLinkDelete', sharedLink); + + toastManager.success($t('deleted_shared_link')); + + return true; + } catch (error) { + handleError(error, $t('errors.unable_to_delete_shared_link')); + return false; + } }; -export const handleCopySharedLinkUrl = async (sharedLink: SharedLinkResponseDto) => { - await copyToClipboard(makeSharedLinkUrl(sharedLink)); +const handleShowSharedLinkQrCode = async (sharedLink: SharedLinkResponseDto) => { + const $t = await getFormatter(); + await modalManager.show(QrCodeModal, { title: $t('view_link'), value: asUrl(sharedLink) }); }; diff --git a/web/src/routes/(user)/shared-links/[[id=id]]/+page.svelte b/web/src/routes/(user)/shared-links/[[id=id]]/+page.svelte index 4b63ce71a1..e0239a2a43 100644 --- a/web/src/routes/(user)/shared-links/[[id=id]]/+page.svelte +++ b/web/src/routes/(user)/shared-links/[[id=id]]/+page.svelte @@ -7,9 +7,7 @@ import { AppRoute } from '$lib/constants'; import GroupTab from '$lib/elements/GroupTab.svelte'; import SharedLinkCreateModal from '$lib/modals/SharedLinkCreateModal.svelte'; - import { handleError } from '$lib/utils/handle-error'; - import { getAllSharedLinks, removeSharedLink, SharedLinkType, type SharedLinkResponseDto } from '@immich/sdk'; - import { modalManager, toastManager } from '@immich/ui'; + import { getAllSharedLinks, SharedLinkType, type SharedLinkResponseDto } from '@immich/sdk'; import { onMount } from 'svelte'; import { t } from 'svelte-i18n'; import type { PageData } from './$types'; @@ -31,26 +29,6 @@ await refresh(); }); - const handleDeleteLink = async (id: string) => { - const isConfirmed = await modalManager.showDialog({ - title: $t('delete_shared_link'), - prompt: $t('confirm_delete_shared_link'), - confirmText: $t('delete'), - }); - - if (!isConfirmed) { - return; - } - - try { - await removeSharedLink({ id }); - toastManager.success($t('deleted_shared_link')); - await refresh(); - } catch (error) { - handleError(error, $t('errors.unable_to_delete_shared_link')); - } - }; - type Filter = 'all' | 'album' | 'individual'; const filterMap: Record = { @@ -87,9 +65,13 @@ sharedLinks[index] = sharedLink; } }; + + const onSharedLinkDelete = (sharedLink: SharedLinkResponseDto) => { + sharedLinks = sharedLinks.filter(({ id }) => id !== sharedLink.id); + }; - + {#snippet buttons()} @@ -108,7 +90,7 @@ {:else}
{#each filteredSharedLinks as sharedLink (sharedLink.id)} - handleDeleteLink(sharedLink.id)} /> + {/each}
{/if} From d5c5bdffcb2710dae78a5a4de59d4d0982d50bbd Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Mon, 10 Nov 2025 16:10:29 -0500 Subject: [PATCH 031/300] refactor: album delete (#23773) --- .../components/album-page/albums-list.svelte | 45 +++++-------------- web/src/lib/managers/event-manager.svelte.ts | 5 ++- web/src/lib/services/album.service.ts | 39 +++++++++++++++- .../[[assetId=id]]/+page.svelte | 39 +++++++--------- 4 files changed, 69 insertions(+), 59 deletions(-) diff --git a/web/src/lib/components/album-page/albums-list.svelte b/web/src/lib/components/album-page/albums-list.svelte index fb8d044b1a..bb826110b7 100644 --- a/web/src/lib/components/album-page/albums-list.svelte +++ b/web/src/lib/components/album-page/albums-list.svelte @@ -3,6 +3,7 @@ import { resolve } from '$app/paths'; import AlbumCardGroup from '$lib/components/album-page/album-card-group.svelte'; import AlbumsTable from '$lib/components/album-page/albums-table.svelte'; + import OnEvents from '$lib/components/OnEvents.svelte'; import MenuOption from '$lib/components/shared-components/context-menu/menu-option.svelte'; import RightClickContextMenu from '$lib/components/shared-components/context-menu/right-click-context-menu.svelte'; import ToastAction from '$lib/components/ToastAction.svelte'; @@ -10,7 +11,7 @@ import AlbumEditModal from '$lib/modals/AlbumEditModal.svelte'; import AlbumShareModal from '$lib/modals/AlbumShareModal.svelte'; import SharedLinkCreateModal from '$lib/modals/SharedLinkCreateModal.svelte'; - import { handleConfirmAlbumDelete, handleDownloadAlbum } from '$lib/services/album.service'; + import { handleDeleteAlbum, handleDownloadAlbum } from '$lib/services/album.service'; import { AlbumFilter, AlbumGroupBy, @@ -26,7 +27,7 @@ import type { ContextMenuPosition } from '$lib/utils/context-menu'; import { handleError } from '$lib/utils/handle-error'; import { normalizeSearchString } from '$lib/utils/string-utils'; - import { addUsersToAlbum, deleteAlbum, isHttpError, type AlbumResponseDto, type AlbumUserAddDto } from '@immich/sdk'; + import { addUsersToAlbum, type AlbumResponseDto, type AlbumUserAddDto } from '@immich/sdk'; import { modalManager, toastManager } from '@immich/ui'; import { mdiDeleteOutline, mdiDownload, mdiRenameOutline, mdiShareVariantOutline } from '@mdi/js'; import { groupBy } from 'lodash-es'; @@ -210,25 +211,6 @@ isOpen = false; }; - const handleDeleteAlbum = async (albumToDelete: AlbumResponseDto) => { - try { - await deleteAlbum({ - id: albumToDelete.id, - }); - } catch (error) { - // In rare cases deleting an album completes after the list of albums has been requested, - // leading to a bad request error. - // Since the album is already deleted, the error is ignored. - const isBadRequest = isHttpError(error) && error.status === 400; - if (!isBadRequest) { - throw error; - } - } - - ownedAlbums = ownedAlbums.filter(({ id }) => id !== albumToDelete.id); - sharedAlbums = sharedAlbums.filter(({ id }) => id !== albumToDelete.id); - }; - const handleSelect = async (action: 'edit' | 'share' | 'download' | 'delete') => { closeAlbumContextMenu(); @@ -272,17 +254,7 @@ } case 'delete': { - const isConfirmed = await handleConfirmAlbumDelete(selectedAlbum); - if (!isConfirmed) { - return; - } - - try { - await handleDeleteAlbum(selectedAlbum); - } catch (error) { - handleError(error, $t('errors.unable_to_delete_album')); - } - + await handleDeleteAlbum(selectedAlbum); break; } } @@ -290,7 +262,7 @@ const removeAlbumsIfEmpty = async () => { const albumsToRemove = ownedAlbums.filter((album) => album.assetCount === 0 && !album.albumName); - await Promise.allSettled(albumsToRemove.map((album) => handleDeleteAlbum(album))); + await Promise.allSettled(albumsToRemove.map((album) => handleDeleteAlbum(album, { prompt: false, notify: false }))); }; const updateAlbumInfo = (album: AlbumResponseDto) => { @@ -346,8 +318,15 @@ albumToShare = null; } }; + + const onAlbumDelete = (album: AlbumResponseDto) => { + ownedAlbums = ownedAlbums.filter(({ id }) => id !== album.id); + sharedAlbums = sharedAlbums.filter(({ id }) => id !== album.id); + }; + + {#if albums.length > 0} {#if userSettings.view === AlbumViewMode.Cover} diff --git a/web/src/lib/managers/event-manager.svelte.ts b/web/src/lib/managers/event-manager.svelte.ts index e7d50f026d..1bd437b4cc 100644 --- a/web/src/lib/managers/event-manager.svelte.ts +++ b/web/src/lib/managers/event-manager.svelte.ts @@ -1,5 +1,5 @@ import type { ThemeSetting } from '$lib/managers/theme-manager.svelte'; -import type { LoginResponseDto, SharedLinkResponseDto } from '@immich/sdk'; +import type { AlbumResponseDto, LoginResponseDto, SharedLinkResponseDto } from '@immich/sdk'; export type Events = { AppInit: []; @@ -8,6 +8,9 @@ export type Events = { AuthLogout: []; LanguageChange: [{ name: string; code: string; rtl?: boolean }]; ThemeChange: [ThemeSetting]; + + AlbumDelete: [AlbumResponseDto]; + SharedLinkCreate: [SharedLinkResponseDto]; SharedLinkUpdate: [SharedLinkResponseDto]; SharedLinkDelete: [SharedLinkResponseDto]; diff --git a/web/src/lib/services/album.service.ts b/web/src/lib/services/album.service.ts index 52fa09d103..6e5583495f 100644 --- a/web/src/lib/services/album.service.ts +++ b/web/src/lib/services/album.service.ts @@ -1,7 +1,42 @@ +import { eventManager } from '$lib/managers/event-manager.svelte'; import { downloadArchive } from '$lib/utils/asset-utils'; +import { handleError } from '$lib/utils/handle-error'; import { getFormatter } from '$lib/utils/i18n'; -import type { AlbumResponseDto } from '@immich/sdk'; -import { modalManager } from '@immich/ui'; +import { deleteAlbum, type AlbumResponseDto } from '@immich/sdk'; +import { modalManager, toastManager } from '@immich/ui'; + +export const handleDeleteAlbum = async (album: AlbumResponseDto, options?: { prompt?: boolean; notify?: boolean }) => { + const $t = await getFormatter(); + const { prompt = true, notify = true } = options ?? {}; + + if (prompt) { + const confirmation = + album.albumName.length > 0 + ? $t('album_delete_confirmation', { values: { album: album.albumName } }) + : $t('unnamed_album_delete_confirmation'); + const description = $t('album_delete_confirmation_description'); + + const success = await modalManager.showDialog({ prompt: `${confirmation} ${description}` }); + if (!success) { + return false; + } + } + + try { + await deleteAlbum({ id: album.id }); + + eventManager.emit('AlbumDelete', album); + + if (notify) { + toastManager.success(); + } + + return true; + } catch (error) { + handleError(error, $t('errors.unable_to_delete_album')); + return false; + } +}; export const handleDownloadAlbum = async (album: AlbumResponseDto) => { await downloadArchive(`${album.albumName}.zip`, { albumId: album.id }); diff --git a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte index 6b543e1ecf..9af2b611f2 100644 --- a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte @@ -36,7 +36,7 @@ import AlbumShareModal from '$lib/modals/AlbumShareModal.svelte'; import AlbumUsersModal from '$lib/modals/AlbumUsersModal.svelte'; import SharedLinkCreateModal from '$lib/modals/SharedLinkCreateModal.svelte'; - import { handleConfirmAlbumDelete, handleDownloadAlbum } from '$lib/services/album.service'; + import { handleDeleteAlbum, handleDownloadAlbum } from '$lib/services/album.service'; import { AssetInteraction } from '$lib/stores/asset-interaction.svelte'; import { assetViewingStore } from '$lib/stores/asset-viewing.store'; import { featureFlags } from '$lib/stores/server-config.store'; @@ -59,9 +59,9 @@ AssetVisibility, addAssetsToAlbum, addUsersToAlbum, - deleteAlbum, getAlbumInfo, updateAlbumInfo, + type AlbumResponseDto, type AlbumUserAddDto, } from '@immich/sdk'; import { Button, Icon, IconButton, modalManager, toastManager } from '@immich/ui'; @@ -233,24 +233,6 @@ } }; - const handleRemoveAlbum = async () => { - const isConfirmed = await handleConfirmAlbumDelete(album); - - if (!isConfirmed) { - viewMode = AlbumPageViewMode.VIEW; - return; - } - - try { - await deleteAlbum({ id: album.id }); - await goto(backUrl); - } catch (error) { - handleError(error, $t('errors.unable_to_delete_album')); - } finally { - viewMode = AlbumPageViewMode.VIEW; - } - }; - const handleSetVisibility = (assetIds: string[]) => { timelineManager.removeAssets(assetIds); assetInteraction.clearMultiselect(); @@ -301,7 +283,7 @@ onNavigate(async ({ to }) => { if (!isAlbumsRoute(to?.route.id) && album.assetCount === 0 && !album.albumName) { - await deleteAlbum(album); + await handleDeleteAlbum(album, { notify: false, prompt: false }); } }); @@ -388,6 +370,13 @@ await refreshAlbum(); }; + const onAlbumDelete = async ({ id }: AlbumResponseDto) => { + if (id === album.id) { + await goto(backUrl); + viewMode = AlbumPageViewMode.VIEW; + } + }; + const handleShareLink = async () => { await modalManager.show(SharedLinkCreateModal, { albumId: album.id }); }; @@ -424,7 +413,7 @@ }; - +
@@ -672,7 +661,11 @@ {/if} - handleRemoveAlbum()} /> + handleDeleteAlbum(album)} + /> {/if} From 0b487897a4b576c3c1461a88b9bc9406a9ffcd5a Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Mon, 10 Nov 2025 16:17:18 -0500 Subject: [PATCH 032/300] refactor: shared link service (#23775) --- .../actions/RemoveFromSharedLinkAction.svelte | 45 ++++--------------- web/src/lib/services/shared-link.service.ts | 39 ++++++++++++++++ 2 files changed, 47 insertions(+), 37 deletions(-) diff --git a/web/src/lib/components/timeline/actions/RemoveFromSharedLinkAction.svelte b/web/src/lib/components/timeline/actions/RemoveFromSharedLinkAction.svelte index 973760ac45..774ce8ab45 100644 --- a/web/src/lib/components/timeline/actions/RemoveFromSharedLinkAction.svelte +++ b/web/src/lib/components/timeline/actions/RemoveFromSharedLinkAction.svelte @@ -1,9 +1,8 @@ @@ -57,6 +28,6 @@ color="secondary" variant="ghost" aria-label={$t('remove_from_shared_link')} - onclick={handleRemove} + onclick={handleSelect} icon={mdiDeleteOutline} /> diff --git a/web/src/lib/services/shared-link.service.ts b/web/src/lib/services/shared-link.service.ts index a48f0b5965..97a7f5851e 100644 --- a/web/src/lib/services/shared-link.service.ts +++ b/web/src/lib/services/shared-link.service.ts @@ -1,5 +1,6 @@ import { goto } from '$app/navigation'; import { AppRoute } from '$lib/constants'; +import { authManager } from '$lib/managers/auth-manager.svelte'; import { eventManager } from '$lib/managers/event-manager.svelte'; import QrCodeModal from '$lib/modals/QrCodeModal.svelte'; import { serverConfig } from '$lib/stores/server-config.store'; @@ -9,6 +10,7 @@ import { getFormatter } from '$lib/utils/i18n'; import { createSharedLink, removeSharedLink, + removeSharedLinkAssets, updateSharedLink, type SharedLinkCreateDto, type SharedLinkEditDto, @@ -126,6 +128,43 @@ export const handleDeleteSharedLink = async (sharedLink: SharedLinkResponseDto): } }; +export const handleRemoveSharedLinkAssets = async (sharedLink: SharedLinkResponseDto, assetIds: string[]) => { + const $t = await getFormatter(); + + const success = await modalManager.showDialog({ + title: $t('remove_assets_title'), + prompt: $t('remove_assets_shared_link_confirmation', { values: { count: assetIds.length } }), + confirmText: $t('remove'), + }); + + if (!success) { + return false; + } + + try { + const results = await removeSharedLinkAssets({ + ...authManager.params, + id: sharedLink.id, + assetIdsDto: { assetIds }, + }); + + for (const result of results) { + if (!result.success) { + continue; + } + + sharedLink.assets = sharedLink.assets.filter((asset) => asset.id !== result.assetId); + } + + const count = results.filter((item) => item.success).length; + toastManager.success($t('assets_removed_count', { values: { count } })); + return true; + } catch (error) { + handleError(error, $t('errors.unable_to_remove_assets_from_shared_link')); + return false; + } +}; + const handleShowSharedLinkQrCode = async (sharedLink: SharedLinkResponseDto) => { const $t = await getFormatter(); await modalManager.show(QrCodeModal, { title: $t('view_link'), value: asUrl(sharedLink) }); From 433a3cd3397385fc369b19cdb50ef2a847bb9ad1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 23:50:50 -0500 Subject: [PATCH 033/300] chore(deps): update dependency @types/node to ^22.19.0 (#23786) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- cli/package.json | 2 +- e2e/package.json | 2 +- open-api/typescript-sdk/package.json | 2 +- pnpm-lock.yaml | 8 ++++---- server/package.json | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cli/package.json b/cli/package.json index 83be681284..6fed806003 100644 --- a/cli/package.json +++ b/cli/package.json @@ -20,7 +20,7 @@ "@types/lodash-es": "^4.17.12", "@types/micromatch": "^4.0.9", "@types/mock-fs": "^4.13.1", - "@types/node": "^22.18.13", + "@types/node": "^22.19.0", "@vitest/coverage-v8": "^3.0.0", "byte-size": "^9.0.0", "cli-progress": "^3.12.0", diff --git a/e2e/package.json b/e2e/package.json index b94fd7f6e2..84e1823e0c 100644 --- a/e2e/package.json +++ b/e2e/package.json @@ -25,7 +25,7 @@ "@playwright/test": "^1.44.1", "@socket.io/component-emitter": "^3.1.2", "@types/luxon": "^3.4.2", - "@types/node": "^22.18.13", + "@types/node": "^22.19.0", "@types/oidc-provider": "^9.0.0", "@types/pg": "^8.15.1", "@types/pngjs": "^6.0.4", diff --git a/open-api/typescript-sdk/package.json b/open-api/typescript-sdk/package.json index a751bb7d1b..1756675ddd 100644 --- a/open-api/typescript-sdk/package.json +++ b/open-api/typescript-sdk/package.json @@ -19,7 +19,7 @@ "@oazapfts/runtime": "^1.0.2" }, "devDependencies": { - "@types/node": "^22.18.13", + "@types/node": "^22.19.0", "typescript": "^5.3.3" }, "repository": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 00087e91e0..ad09af2715 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -63,7 +63,7 @@ importers: specifier: ^4.13.1 version: 4.13.4 '@types/node': - specifier: ^22.18.13 + specifier: ^22.19.0 version: 22.19.0 '@vitest/coverage-v8': specifier: ^3.0.0 @@ -211,7 +211,7 @@ importers: specifier: ^3.4.2 version: 3.7.1 '@types/node': - specifier: ^22.18.13 + specifier: ^22.19.0 version: 22.19.0 '@types/oidc-provider': specifier: ^9.0.0 @@ -293,7 +293,7 @@ importers: version: 1.0.4 devDependencies: '@types/node': - specifier: ^22.18.13 + specifier: ^22.19.0 version: 22.19.0 typescript: specifier: ^5.3.3 @@ -582,7 +582,7 @@ importers: specifier: ^2.0.0 version: 2.0.0 '@types/node': - specifier: ^22.18.13 + specifier: ^22.19.0 version: 22.19.0 '@types/nodemailer': specifier: ^7.0.0 diff --git a/server/package.json b/server/package.json index 5b36efb2c4..0a8130163e 100644 --- a/server/package.json +++ b/server/package.json @@ -129,7 +129,7 @@ "@types/luxon": "^3.6.2", "@types/mock-fs": "^4.13.1", "@types/multer": "^2.0.0", - "@types/node": "^22.18.13", + "@types/node": "^22.19.0", "@types/nodemailer": "^7.0.0", "@types/picomatch": "^4.0.0", "@types/pngjs": "^6.0.5", From 2611e2ec2048ca69680c8c78c58a310c4321ba18 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 11 Nov 2025 13:35:36 +0100 Subject: [PATCH 034/300] chore(deps): update dependency exiftool-vendored to v31.3.0 (#23787) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- pnpm-lock.yaml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ad09af2715..d82485c5cd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -239,7 +239,7 @@ importers: version: 60.0.0(eslint@9.38.0(jiti@2.6.1)) exiftool-vendored: specifier: ^31.1.0 - version: 31.1.0 + version: 31.3.0 globals: specifier: ^16.0.0 version: 16.4.0 @@ -405,7 +405,7 @@ importers: version: 4.3.3 exiftool-vendored: specifier: ^31.1.0 - version: 31.1.0 + version: 31.3.0 express: specifier: ^5.1.0 version: 5.1.0 @@ -3550,8 +3550,8 @@ packages: peerDependencies: '@photo-sphere-viewer/core': 5.14.0 - '@photostructure/tz-lookup@11.2.1': - resolution: {integrity: sha512-ugPtvpdLwGQ8IWezSGFgUCYOpO/XXetfKLNv+UN2jjTYyfIDq9dA21GydGyzXuoQ06nN3VGBd3JxmEu+ZtXScg==} + '@photostructure/tz-lookup@11.3.0': + resolution: {integrity: sha512-rYGy7ETBHTnXrwbzm47e3LJPKJmzpY7zXnbZhdosNU0lTGWVqzxptSjK4qZkJ1G+Kwy4F6XStNR9ZqMsXAoASQ==} '@pkgjs/parseargs@0.11.0': resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} @@ -6627,17 +6627,17 @@ packages: resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} engines: {node: '>=10'} - exiftool-vendored.exe@13.38.0: - resolution: {integrity: sha512-oZx5enTAvSiIAXL+OEk7nNWrfUhEdKUpaGwDjCmz4VKwOa4HbisqyM808xPGPYj8X7XikcME/fq5hvevPeE3cw==} + exiftool-vendored.exe@13.41.0: + resolution: {integrity: sha512-7XG0PjZCm8HVsVUQAD4b/eBtvYBuGkySf2qslqHlnSR6jU1xoD1AgEprb2bCPqwhw0Jn3xzZoo/ihDo4F6fMyA==} os: [win32] - exiftool-vendored.pl@13.38.0: - resolution: {integrity: sha512-Q3xl1nnwswrsR5344z4NyqvI74fKwla+VJHY1N+32gcDgt8cs9KBsDUwcNzKHSOSa/MjEfniuCJVrQiqR05iag==} + exiftool-vendored.pl@13.41.0: + resolution: {integrity: sha512-JqqRuB8TggIOC983oTnOunB/baseGYw8XCkn7ylFGOmEv7oTQAK3uUTZV76vXE1X6c5H6IdHYt0abSgi8Kzc4g==} os: ['!win32'] hasBin: true - exiftool-vendored@31.1.0: - resolution: {integrity: sha512-q8StxLawHLDvhqv/uoBYCfVbDskn49Cr5ouNCZhh4lgryGu1aymHwK9AvO6RcW2SbPm5MSnQDJOfGp2MW5Nnrw==} + exiftool-vendored@31.3.0: + resolution: {integrity: sha512-JQeyRvh7cV81fm9eKej2btdVh2z2Ak/sx89c4OCykeQnhnI81hk9TTraBtborYA+WcLM20cwYMPmpaW/sMy5Qw==} engines: {node: '>=20.0.0'} expect-type@1.2.1: @@ -15300,7 +15300,7 @@ snapshots: '@photo-sphere-viewer/core': 5.14.0 three: 0.180.0 - '@photostructure/tz-lookup@11.2.1': {} + '@photostructure/tz-lookup@11.3.0': {} '@pkgjs/parseargs@0.11.0': optional: true @@ -18807,21 +18807,21 @@ snapshots: signal-exit: 3.0.7 strip-final-newline: 2.0.0 - exiftool-vendored.exe@13.38.0: + exiftool-vendored.exe@13.41.0: optional: true - exiftool-vendored.pl@13.38.0: {} + exiftool-vendored.pl@13.41.0: {} - exiftool-vendored@31.1.0: + exiftool-vendored@31.3.0: dependencies: - '@photostructure/tz-lookup': 11.2.1 + '@photostructure/tz-lookup': 11.3.0 '@types/luxon': 3.7.1 batch-cluster: 15.0.1 - exiftool-vendored.pl: 13.38.0 + exiftool-vendored.pl: 13.41.0 he: 1.2.0 luxon: 3.7.2 optionalDependencies: - exiftool-vendored.exe: 13.38.0 + exiftool-vendored.exe: 13.41.0 expect-type@1.2.1: {} From 2f40f5aad85c93e4ddeae7e4c3f88f96997049ae Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Tue, 11 Nov 2025 07:42:33 -0500 Subject: [PATCH 035/300] refactor: user admin service (#23785) --- e2e/src/web/specs/user-admin.e2e-spec.ts | 4 +- web/src/lib/components/ActionButton.svelte | 19 +- web/src/lib/components/HeaderButton.svelte | 18 ++ web/src/lib/components/TableButton.svelte | 16 ++ web/src/lib/managers/event-manager.svelte.ts | 7 +- web/src/lib/modals/UserCreateModal.svelte | 49 ++-- .../lib/modals/UserDeleteConfirmModal.svelte | 20 +- web/src/lib/modals/UserEditModal.svelte | 38 ++- .../lib/modals/UserRestoreConfirmModal.svelte | 54 ++-- web/src/lib/services/album.service.ts | 4 - web/src/lib/services/shared-link.service.ts | 7 - web/src/lib/services/user-admin.service.ts | 232 ++++++++++++++++++ web/src/lib/types.ts | 4 + web/src/routes/admin/users/+page.svelte | 96 ++------ web/src/routes/admin/users/[id]/+page.svelte | 160 ++---------- 15 files changed, 395 insertions(+), 333 deletions(-) create mode 100644 web/src/lib/components/HeaderButton.svelte create mode 100644 web/src/lib/components/TableButton.svelte create mode 100644 web/src/lib/services/user-admin.service.ts create mode 100644 web/src/lib/types.ts diff --git a/e2e/src/web/specs/user-admin.e2e-spec.ts b/e2e/src/web/specs/user-admin.e2e-spec.ts index 3d64e47aef..611a1b3dec 100644 --- a/e2e/src/web/specs/user-admin.e2e-spec.ts +++ b/e2e/src/web/specs/user-admin.e2e-spec.ts @@ -52,7 +52,7 @@ test.describe('User Administration', () => { await page.goto(`/admin/users/${user.userId}`); - await page.getByRole('button', { name: 'Edit user' }).click(); + await page.getByRole('button', { name: 'Edit' }).click(); await expect(page.getByLabel('Admin User')).not.toBeChecked(); await page.getByText('Admin User').click(); await expect(page.getByLabel('Admin User')).toBeChecked(); @@ -77,7 +77,7 @@ test.describe('User Administration', () => { await page.goto(`/admin/users/${user.userId}`); - await page.getByRole('button', { name: 'Edit user' }).click(); + await page.getByRole('button', { name: 'Edit' }).click(); await expect(page.getByLabel('Admin User')).toBeChecked(); await page.getByText('Admin User').click(); await expect(page.getByLabel('Admin User')).not.toBeChecked(); diff --git a/web/src/lib/components/ActionButton.svelte b/web/src/lib/components/ActionButton.svelte index 1bbbf642e0..37bc09fb73 100644 --- a/web/src/lib/components/ActionButton.svelte +++ b/web/src/lib/components/ActionButton.svelte @@ -1,19 +1,16 @@ - onSelect?.({ event, item: action })} -/> +{#if action.$if?.() ?? true} + +{/if} diff --git a/web/src/lib/components/HeaderButton.svelte b/web/src/lib/components/HeaderButton.svelte new file mode 100644 index 0000000000..9021d2d1cb --- /dev/null +++ b/web/src/lib/components/HeaderButton.svelte @@ -0,0 +1,18 @@ + + +{#if action.$if?.() ?? true} + +{/if} diff --git a/web/src/lib/components/TableButton.svelte b/web/src/lib/components/TableButton.svelte new file mode 100644 index 0000000000..4bd82e4dd9 --- /dev/null +++ b/web/src/lib/components/TableButton.svelte @@ -0,0 +1,16 @@ + + +{#if action.$if?.() ?? true} + +{/if} diff --git a/web/src/lib/managers/event-manager.svelte.ts b/web/src/lib/managers/event-manager.svelte.ts index 1bd437b4cc..733fb8bc71 100644 --- a/web/src/lib/managers/event-manager.svelte.ts +++ b/web/src/lib/managers/event-manager.svelte.ts @@ -1,5 +1,5 @@ import type { ThemeSetting } from '$lib/managers/theme-manager.svelte'; -import type { AlbumResponseDto, LoginResponseDto, SharedLinkResponseDto } from '@immich/sdk'; +import type { AlbumResponseDto, LoginResponseDto, SharedLinkResponseDto, UserAdminResponseDto } from '@immich/sdk'; export type Events = { AppInit: []; @@ -14,6 +14,11 @@ export type Events = { SharedLinkCreate: [SharedLinkResponseDto]; SharedLinkUpdate: [SharedLinkResponseDto]; SharedLinkDelete: [SharedLinkResponseDto]; + + UserAdminCreate: [UserAdminResponseDto]; + UserAdminUpdate: [UserAdminResponseDto]; + UserAdminDelete: [UserAdminResponseDto]; + UserAdminRestore: [UserAdminResponseDto]; }; type Listener, K extends keyof EventMap> = (...params: EventMap[K]) => void; diff --git a/web/src/lib/modals/UserCreateModal.svelte b/web/src/lib/modals/UserCreateModal.svelte index 1a1f46d1d5..38d6ed54b2 100644 --- a/web/src/lib/modals/UserCreateModal.svelte +++ b/web/src/lib/modals/UserCreateModal.svelte @@ -1,11 +1,9 @@
- {#if error} - - {/if} - {#if success}

{$t('new_user_created')}

{/if} diff --git a/web/src/lib/modals/UserDeleteConfirmModal.svelte b/web/src/lib/modals/UserDeleteConfirmModal.svelte index 9c9223707e..46e02d54c4 100644 --- a/web/src/lib/modals/UserDeleteConfirmModal.svelte +++ b/web/src/lib/modals/UserDeleteConfirmModal.svelte @@ -1,14 +1,15 @@ import { AppRoute } from '$lib/constants'; + import { handleUpdateUserAdmin } from '$lib/services/user-admin.service'; import { user as authUser } from '$lib/stores/user.store'; import { userInteraction } from '$lib/stores/user.svelte'; import { ByteUnit, convertFromBytes, convertToBytes } from '$lib/utils/byte-units'; - import { handleError } from '$lib/utils/handle-error'; - import { updateUserAdmin, type UserAdminResponseDto } from '@immich/sdk'; + import { type UserAdminResponseDto } from '@immich/sdk'; import { Button, Field, @@ -23,7 +23,7 @@ interface Props { user: UserAdminResponseDto; - onClose: (data?: UserAdminResponseDto) => void; + onClose: () => void; } let { user, onClose }: Props = $props(); @@ -48,28 +48,20 @@ quotaSizeBytes > userInteraction.serverInfo.diskSizeRaw, ); - const handleEditUser = async () => { - try { - const newUser = await updateUserAdmin({ - id: user.id, - userAdminUpdateDto: { - email, - name, - storageLabel, - quotaSizeInBytes: typeof quotaSize === 'number' ? convertToBytes(quotaSize, ByteUnit.GiB) : null, - isAdmin, - }, - }); - - onClose(newUser); - } catch (error) { - handleError(error, $t('errors.unable_to_update_user')); - } - }; - const onSubmit = async (event: Event) => { event.preventDefault(); - await handleEditUser(); + + const success = await handleUpdateUserAdmin(user, { + email, + name, + storageLabel, + quotaSizeInBytes: typeof quotaSize === 'number' ? convertToBytes(quotaSize, ByteUnit.GiB) : null, + isAdmin, + }); + + if (success) { + onClose(); + } }; diff --git a/web/src/lib/modals/UserRestoreConfirmModal.svelte b/web/src/lib/modals/UserRestoreConfirmModal.svelte index 03c36e27cd..0a01f846b9 100644 --- a/web/src/lib/modals/UserRestoreConfirmModal.svelte +++ b/web/src/lib/modals/UserRestoreConfirmModal.svelte @@ -1,30 +1,39 @@ - - + + {#snippet promptSnippet()}

{#snippet children({ message })} @@ -32,16 +41,5 @@ {/snippet}

-
- - - - - - - -
+ {/snippet} +
diff --git a/web/src/lib/services/album.service.ts b/web/src/lib/services/album.service.ts index 6e5583495f..702f84d6f9 100644 --- a/web/src/lib/services/album.service.ts +++ b/web/src/lib/services/album.service.ts @@ -15,7 +15,6 @@ export const handleDeleteAlbum = async (album: AlbumResponseDto, options?: { pro ? $t('album_delete_confirmation', { values: { album: album.albumName } }) : $t('unnamed_album_delete_confirmation'); const description = $t('album_delete_confirmation_description'); - const success = await modalManager.showDialog({ prompt: `${confirmation} ${description}` }); if (!success) { return false; @@ -24,13 +23,10 @@ export const handleDeleteAlbum = async (album: AlbumResponseDto, options?: { pro try { await deleteAlbum({ id: album.id }); - eventManager.emit('AlbumDelete', album); - if (notify) { toastManager.success(); } - return true; } catch (error) { handleError(error, $t('errors.unable_to_delete_album')); diff --git a/web/src/lib/services/shared-link.service.ts b/web/src/lib/services/shared-link.service.ts index 97a7f5851e..9ac1c47a94 100644 --- a/web/src/lib/services/shared-link.service.ts +++ b/web/src/lib/services/shared-link.service.ts @@ -103,24 +103,19 @@ export const handleUpdateSharedLink = async (sharedLink: SharedLinkResponseDto, export const handleDeleteSharedLink = async (sharedLink: SharedLinkResponseDto): Promise => { const $t = await getFormatter(); - const success = await modalManager.showDialog({ title: $t('delete_shared_link'), prompt: $t('confirm_delete_shared_link'), confirmText: $t('delete'), }); - if (!success) { return false; } try { await removeSharedLink({ id: sharedLink.id }); - eventManager.emit('SharedLinkDelete', sharedLink); - toastManager.success($t('deleted_shared_link')); - return true; } catch (error) { handleError(error, $t('errors.unable_to_delete_shared_link')); @@ -130,13 +125,11 @@ export const handleDeleteSharedLink = async (sharedLink: SharedLinkResponseDto): export const handleRemoveSharedLinkAssets = async (sharedLink: SharedLinkResponseDto, assetIds: string[]) => { const $t = await getFormatter(); - const success = await modalManager.showDialog({ title: $t('remove_assets_title'), prompt: $t('remove_assets_shared_link_confirmation', { values: { count: assetIds.length } }), confirmText: $t('remove'), }); - if (!success) { return false; } diff --git a/web/src/lib/services/user-admin.service.ts b/web/src/lib/services/user-admin.service.ts new file mode 100644 index 0000000000..9d3e21bc9e --- /dev/null +++ b/web/src/lib/services/user-admin.service.ts @@ -0,0 +1,232 @@ +import { goto } from '$app/navigation'; +import { eventManager } from '$lib/managers/event-manager.svelte'; +import PasswordResetSuccessModal from '$lib/modals/PasswordResetSuccessModal.svelte'; +import UserCreateModal from '$lib/modals/UserCreateModal.svelte'; +import UserDeleteConfirmModal from '$lib/modals/UserDeleteConfirmModal.svelte'; +import UserEditModal from '$lib/modals/UserEditModal.svelte'; +import UserRestoreConfirmModal from '$lib/modals/UserRestoreConfirmModal.svelte'; +import { serverConfig } from '$lib/stores/server-config.store'; +import { user as authUser } from '$lib/stores/user.store'; +import type { ActionItem } from '$lib/types'; +import { handleError } from '$lib/utils/handle-error'; +import { getFormatter } from '$lib/utils/i18n'; +import { + createUserAdmin, + deleteUserAdmin, + restoreUserAdmin, + updateUserAdmin, + UserStatus, + type UserAdminCreateDto, + type UserAdminDeleteDto, + type UserAdminResponseDto, + type UserAdminUpdateDto, +} from '@immich/sdk'; +import { MenuItemType, menuManager, modalManager, toastManager } from '@immich/ui'; +import { + mdiDeleteRestore, + mdiDotsVertical, + mdiEyeOutline, + mdiLockReset, + mdiLockSmart, + mdiPencilOutline, + mdiPlusBoxOutline, + mdiTrashCanOutline, +} from '@mdi/js'; +import { DateTime } from 'luxon'; +import type { MessageFormatter } from 'svelte-i18n'; +import { get } from 'svelte/store'; + +const getDeleteDate = (deletedAt: string): Date => + DateTime.fromISO(deletedAt) + .plus({ days: get(serverConfig).userDeleteDelay }) + .toJSDate(); + +export const getUserAdminsActions = ($t: MessageFormatter) => { + const Create: ActionItem = { + title: $t('create_user'), + icon: mdiPlusBoxOutline, + onSelect: () => void modalManager.show(UserCreateModal, {}), + }; + + return { Create }; +}; + +export const getUserAdminActions = ($t: MessageFormatter, user: UserAdminResponseDto) => { + const View: ActionItem = { + icon: mdiEyeOutline, + title: $t('view'), + onSelect: () => void goto(`/admin/users/${user.id}`), + }; + + const Update: ActionItem = { + icon: mdiPencilOutline, + title: $t('edit'), + onSelect: () => void modalManager.show(UserEditModal, { user }), + }; + + const Delete: ActionItem = { + icon: mdiTrashCanOutline, + title: $t('delete'), + color: 'danger', + $if: () => get(authUser).id !== user.id && !user.deletedAt, + onSelect: () => void modalManager.show(UserDeleteConfirmModal, { user }), + }; + + const Restore: ActionItem = { + icon: mdiDeleteRestore, + title: $t('restore'), + color: 'primary', + $if: () => !!user.deletedAt && user.status === UserStatus.Deleted, + onSelect: () => void modalManager.show(UserRestoreConfirmModal, { user }), + props: { + title: $t('admin.user_restore_scheduled_removal', { + values: { date: getDeleteDate(user.deletedAt!) }, + }), + }, + }; + + const ResetPassword: ActionItem = { + icon: mdiLockReset, + title: $t('reset_password'), + $if: () => get(authUser).id !== user.id, + onSelect: () => void handleResetPasswordUserAdmin(user), + }; + + const ResetPinCode: ActionItem = { + icon: mdiLockSmart, + title: $t('reset_pin_code'), + onSelect: () => void handleResetPinCodeUserAdmin(user), + }; + + const ContextMenu: ActionItem = { + icon: mdiDotsVertical, + title: $t('actions'), + onSelect: ({ event }) => + void menuManager.show({ + target: event.currentTarget as HTMLElement, + position: 'top-right', + items: [ + View, + Update, + ResetPassword, + ResetPinCode, + get(authUser).id === user.id ? undefined : MenuItemType.Divider, + Restore, + Delete, + ].filter(Boolean), + }), + }; + + return { View, Update, Delete, Restore, ResetPassword, ResetPinCode, ContextMenu }; +}; + +export const handleCreateUserAdmin = async (dto: UserAdminCreateDto) => { + const $t = await getFormatter(); + + try { + const response = await createUserAdmin({ userAdminCreateDto: dto }); + eventManager.emit('UserAdminCreate', response); + toastManager.success(); + return true; + } catch (error) { + handleError(error, $t('errors.unable_to_create_user')); + } +}; + +export const handleUpdateUserAdmin = async (user: UserAdminResponseDto, dto: UserAdminUpdateDto) => { + const $t = await getFormatter(); + + try { + const response = await updateUserAdmin({ id: user.id, userAdminUpdateDto: dto }); + eventManager.emit('UserAdminUpdate', response); + toastManager.success(); + return true; + } catch (error) { + handleError(error, $t('errors.unable_to_update_user')); + return false; + } +}; + +export const handleDeleteUserAdmin = async (user: UserAdminResponseDto, dto: UserAdminDeleteDto) => { + const $t = await getFormatter(); + + try { + const result = await deleteUserAdmin({ id: user.id, userAdminDeleteDto: dto }); + eventManager.emit('UserAdminDelete', result); + toastManager.success(); + return true; + } catch (error) { + handleError(error, $t('errors.unable_to_delete_user')); + } +}; + +export const handleRestoreUserAdmin = async (user: UserAdminResponseDto) => { + const $t = await getFormatter(); + + try { + const response = await restoreUserAdmin({ id: user.id }); + eventManager.emit('UserAdminRestore', response); + toastManager.success(); + return true; + } catch (error) { + handleError(error, $t('errors.unable_to_restore_user')); + return false; + } +}; + +// TODO move password reset server-side +const generatePassword = (length: number = 16) => { + let generatedPassword = ''; + + const characterSet = '0123456789' + 'abcdefghijklmnopqrstuvwxyz' + 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' + ',.-{}+!#$%/()=?'; + + for (let i = 0; i < length; i++) { + let randomNumber = crypto.getRandomValues(new Uint32Array(1))[0]; + randomNumber = randomNumber / 2 ** 32; + randomNumber = Math.floor(randomNumber * characterSet.length); + + generatedPassword += characterSet[randomNumber]; + } + + return generatedPassword; +}; + +export const handleResetPasswordUserAdmin = async (user: UserAdminResponseDto) => { + const $t = await getFormatter(); + const prompt = $t('admin.confirm_user_password_reset', { values: { user: user.name } }); + const success = await modalManager.showDialog({ prompt }); + if (!success) { + return false; + } + + try { + const dto = { password: generatePassword(), shouldChangePassword: true }; + const response = await updateUserAdmin({ id: user.id, userAdminUpdateDto: dto }); + eventManager.emit('UserAdminUpdate', response); + toastManager.success(); + await modalManager.show(PasswordResetSuccessModal, { newPassword: dto.password }); + return true; + } catch (error) { + handleError(error, $t('errors.unable_to_reset_password')); + return false; + } +}; + +export const handleResetPinCodeUserAdmin = async (user: UserAdminResponseDto) => { + const $t = await getFormatter(); + const prompt = $t('admin.confirm_user_pin_code_reset', { values: { user: user.name } }); + const success = await modalManager.showDialog({ prompt }); + if (!success) { + return false; + } + + try { + const response = await updateUserAdmin({ id: user.id, userAdminUpdateDto: { pinCode: null } }); + eventManager.emit('UserAdminUpdate', response); + toastManager.success($t('pin_code_reset_successfully')); + return true; + } catch (error) { + handleError(error, $t('errors.unable_to_reset_pin_code')); + return false; + } +}; diff --git a/web/src/lib/types.ts b/web/src/lib/types.ts new file mode 100644 index 0000000000..960158a0f7 --- /dev/null +++ b/web/src/lib/types.ts @@ -0,0 +1,4 @@ +import type { MenuItem } from '@immich/ui'; +import type { HTMLAttributes } from 'svelte/elements'; + +export type ActionItem = MenuItem & { props?: Omit, 'color'> }; diff --git a/web/src/routes/admin/users/+page.svelte b/web/src/routes/admin/users/+page.svelte index 129862a62c..c4c1012774 100644 --- a/web/src/routes/admin/users/+page.svelte +++ b/web/src/routes/admin/users/+page.svelte @@ -1,19 +1,16 @@ + + {#snippet buttons()} - + {/snippet}
@@ -93,20 +78,21 @@ {#if allUsers} - {#each allUsers as immichUser (immichUser.id)} + {#each allUsers as user (user.id)} + {@const UserAdminActions = getUserAdminActions($t, user)} - {immichUser.email} + {user.email} - {immichUser.name} + {user.name}
- {#if immichUser.quotaSizeInBytes !== null && immichUser.quotaSizeInBytes >= 0} - {getByteUnitString(immichUser.quotaSizeInBytes, $locale)} + {#if user.quotaSizeInBytes !== null && user.quotaSizeInBytes >= 0} + {getByteUnitString(user.quotaSizeInBytes, $locale)} {:else} {/if} @@ -115,38 +101,8 @@ - {#if !immichUser.deletedAt} - - {#if immichUser.id !== $user.id} - handleDelete(immichUser)} - aria-label={$t('delete_user')} - /> - {/if} - {/if} - {#if immichUser.deletedAt && immichUser.status === UserStatus.Deleted} - handleRestore(immichUser)} - aria-label={$t('admin.user_restore_scheduled_removal')} - /> - {/if} + + {/each} diff --git a/web/src/routes/admin/users/[id]/+page.svelte b/web/src/routes/admin/users/[id]/+page.svelte index 79c663af39..49cfb4715a 100644 --- a/web/src/routes/admin/users/[id]/+page.svelte +++ b/web/src/routes/admin/users/[id]/+page.svelte @@ -1,22 +1,18 @@ + + {#snippet buttons()} - {#if canResetPassword} - - {/if} - - - - {#if user.deletedAt} - - {:else} - - {/if} + + + + + {/snippet}
From 0b3633db4f2c6b050475554387e63be03bdf9a6d Mon Sep 17 00:00:00 2001 From: David Wolff Date: Tue, 11 Nov 2025 13:47:11 +0100 Subject: [PATCH 036/300] fix(server): properly handle HEAD requests to SSR paths (#23788) --- server/src/services/api.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/services/api.service.ts b/server/src/services/api.service.ts index 143b470750..ee9b0e622d 100644 --- a/server/src/services/api.service.ts +++ b/server/src/services/api.service.ts @@ -65,9 +65,10 @@ export class ApiService { } return async (request: Request, res: Response, next: NextFunction) => { + const method = request.method.toLowerCase(); if ( request.url.startsWith('/api') || - request.method.toLowerCase() !== 'get' || + (method !== 'get' && method !== 'head') || excludePaths.some((item) => request.url.startsWith(item)) ) { return next(); From 905f4375b0f402f7c65b0b26611880f86c34ee90 Mon Sep 17 00:00:00 2001 From: Mees Frensel <33722705+meesfrensel@users.noreply.github.com> Date: Tue, 11 Nov 2025 15:50:31 +0100 Subject: [PATCH 037/300] fix(web): make sliding window cover all visible space to show small number of assets (#23796) --- .../shared-components/gallery-viewer/gallery-viewer.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/lib/components/shared-components/gallery-viewer/gallery-viewer.svelte b/web/src/lib/components/shared-components/gallery-viewer/gallery-viewer.svelte index 7f87237054..82f876834a 100644 --- a/web/src/lib/components/shared-components/gallery-viewer/gallery-viewer.svelte +++ b/web/src/lib/components/shared-components/gallery-viewer/gallery-viewer.svelte @@ -99,7 +99,7 @@ let scrollTop = $state(0); let slidingWindow = $derived.by(() => { const top = (scrollTop || 0) - slidingWindowOffset; - const bottom = top + viewport.height; + const bottom = top + viewport.height + slidingWindowOffset; return { top, bottom, From f915d4cc909ab768cf79840a4e4dccc6f3d93128 Mon Sep 17 00:00:00 2001 From: bo0tzz Date: Tue, 11 Nov 2025 15:51:21 +0100 Subject: [PATCH 038/300] fix: disable ruby updates (#23794) Until https://github.com/fastlane/fastlane/issues/29183 is fixed --- renovate.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/renovate.json b/renovate.json index 3a889f4789..fbbc8976bd 100644 --- a/renovate.json +++ b/renovate.json @@ -26,6 +26,12 @@ "matchPackageNames": ["ghcr.io/immich-app/postgres"], "matchUpdateTypes": ["major"], "enabled": false + }, + { + "matchPackageNames": ["ruby"], + "groupName": "ruby", + "matchCurrentVersion": "< 3.4", + "enabled": false } ], "ignorePaths": [ From 2dc81e28fca3a0ee78f87b4593a2bc38eb45f9f7 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 11 Nov 2025 16:25:36 +0100 Subject: [PATCH 039/300] chore(deps): update github-actions (#23582) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/cli.yml | 4 ++-- .github/workflows/close-duplicates.yml | 2 +- .github/workflows/codeql-analysis.yml | 6 +++--- .github/workflows/prepare-release.yml | 2 +- .github/workflows/test.yml | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index dae8cec1fd..fc2c9f6853 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -84,7 +84,7 @@ jobs: token: ${{ steps.token.outputs.token }} - name: Set up QEMU - uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0 + uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0 - name: Set up Docker Buildx uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 @@ -105,7 +105,7 @@ jobs: - name: Generate docker image tags id: metadata - uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0 + uses: docker/metadata-action@318604b99e75e41977312d83839a89be02ca4893 # v5.9.0 with: flavor: | latest=false diff --git a/.github/workflows/close-duplicates.yml b/.github/workflows/close-duplicates.yml index ba360b50dc..b3c79f81d8 100644 --- a/.github/workflows/close-duplicates.yml +++ b/.github/workflows/close-duplicates.yml @@ -35,7 +35,7 @@ jobs: needs: [get_body, should_run] if: ${{ needs.should_run.outputs.should_run == 'true' }} container: - image: ghcr.io/immich-app/mdq:main@sha256:6b8450bfc06770af1af66bce9bf2ced7d1d9b90df1a59fc4c83a17777a9f6723 + image: ghcr.io/immich-app/mdq:main@sha256:9c905a4ff69f00c4b2f98b40b6090ab3ab18d1a15ed1379733b8691aa1fcb271 outputs: checked: ${{ steps.get_checkbox.outputs.checked }} steps: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 3f32478c0c..34228843ad 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -57,7 +57,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@16140ae1a102900babc80a33c44059580f687047 # v4.30.9 + uses: github/codeql-action/init@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -70,7 +70,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@16140ae1a102900babc80a33c44059580f687047 # v4.30.9 + uses: github/codeql-action/autobuild@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2 # ℹ️ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun @@ -83,6 +83,6 @@ jobs: # ./location_of_script_within_repo/buildscript.sh - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@16140ae1a102900babc80a33c44059580f687047 # v4.30.9 + uses: github/codeql-action/analyze@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2 with: category: '/language:${{matrix.language}}' diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 77f32ace4f..4b278d9475 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -62,7 +62,7 @@ jobs: ref: main - name: Install uv - uses: astral-sh/setup-uv@2ddd2b9cb38ad8efd50337e8ab201519a34c9f24 # v7.1.1 + uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2 - name: Setup pnpm uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0a63046c0e..44d7250f2f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -563,7 +563,7 @@ jobs: persist-credentials: false token: ${{ steps.token.outputs.token }} - name: Install uv - uses: astral-sh/setup-uv@2ddd2b9cb38ad8efd50337e8ab201519a34c9f24 # v7.1.1 + uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2 - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 # TODO: add caching when supported (https://github.com/actions/setup-python/pull/818) # with: From 337e3a8dac4e05de59d42657cc8bc59b1fc410eb Mon Sep 17 00:00:00 2001 From: idubnori Date: Wed, 12 Nov 2025 01:04:54 +0900 Subject: [PATCH 040/300] feat(mobile): album activity deep link (#23737) * feat: add activity deep link support in DeepLinkService * test: add unit tests for DeepLinkService handling of activity deep links * Revert "test: add unit tests for DeepLinkService handling of activity deep links" This reverts commit 0b1914be9ad03c545fc5a32ee3aecd0181e4dca5. --- mobile/lib/services/deep_link.service.dart | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/mobile/lib/services/deep_link.service.dart b/mobile/lib/services/deep_link.service.dart index d67362aac2..6ede7f6830 100644 --- a/mobile/lib/services/deep_link.service.dart +++ b/mobile/lib/services/deep_link.service.dart @@ -77,6 +77,7 @@ class DeepLinkService { "memory" => await _buildMemoryDeepLink(queryParams['id'] ?? ''), "asset" => await _buildAssetDeepLink(queryParams['id'] ?? '', ref), "album" => await _buildAlbumDeepLink(queryParams['id'] ?? ''), + "activity" => await _buildActivityDeepLink(queryParams['albumId'] ?? ''), _ => null, }; @@ -185,4 +186,18 @@ class DeepLinkService { return AlbumViewerRoute(albumId: album.id); } } + + Future _buildActivityDeepLink(String albumId) async { + if (Store.isBetaTimelineEnabled == false) { + return null; + } + + final album = await _betaRemoteAlbumService.get(albumId); + + if (album == null || album.isActivityEnabled == false) { + return null; + } + + return DriftActivitiesRoute(album: album); + } } From 4fd9e42ce52bd78746e75d270fca7276aac0b5ac Mon Sep 17 00:00:00 2001 From: Mees Frensel <33722705+meesfrensel@users.noreply.github.com> Date: Tue, 11 Nov 2025 17:22:53 +0100 Subject: [PATCH 041/300] feat(web): animate gifs on hover (#23198) --- .../assets/thumbnail/thumbnail.svelte | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/web/src/lib/components/assets/thumbnail/thumbnail.svelte b/web/src/lib/components/assets/thumbnail/thumbnail.svelte index 994d741605..dd13d613b2 100644 --- a/web/src/lib/components/assets/thumbnail/thumbnail.svelte +++ b/web/src/lib/components/assets/thumbnail/thumbnail.svelte @@ -1,7 +1,7 @@ + +
+ +
diff --git a/web/src/lib/modals/SharedLinkCreateModal.svelte b/web/src/lib/modals/SharedLinkCreateModal.svelte index 5ba0402752..f2fcacd17e 100644 --- a/web/src/lib/modals/SharedLinkCreateModal.svelte +++ b/web/src/lib/modals/SharedLinkCreateModal.svelte @@ -1,23 +1,20 @@ - + {#if shareType === SharedLinkType.Album} - {#if !editingLink} -
{$t('album_with_link_access')}
- {:else} -
- {$t('public_album')} | - {editingLink.album?.albumName} -
- {/if} +
{$t('album_with_link_access')}
{/if} {#if shareType === SharedLinkType.Individual} - {#if !editingLink} -
{$t('create_link_to_share_description')}
- {:else} -
- {$t('individual_share')} | - {editingLink.description || ''} -
- {/if} +
{$t('create_link_to_share_description')}
{/if}
@@ -166,15 +80,7 @@ -
- -
+ @@ -187,20 +93,13 @@ - - {#if editingLink} - - - - {/if}
- {#if editingLink} - - {:else} - - {/if} + + + +
diff --git a/web/src/lib/modals/SharedLinkUpdateModal.svelte b/web/src/lib/modals/SharedLinkUpdateModal.svelte new file mode 100644 index 0000000000..f3bdd42a89 --- /dev/null +++ b/web/src/lib/modals/SharedLinkUpdateModal.svelte @@ -0,0 +1,98 @@ + + + + + {#if shareType === SharedLinkType.Album} +
+ {$t('public_album')} | + {sharedLink.album?.albumName} +
+ {/if} + + {#if shareType === SharedLinkType.Individual} +
+ {$t('individual_share')} | + {sharedLink.description || ''} +
+ {/if} + +
+
+ + + + {#if slug} + /s/{encodeURIComponent(slug)} + {/if} +
+ + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + +
diff --git a/web/src/routes/(user)/shared-links/[[id=id]]/+page.svelte b/web/src/routes/(user)/shared-links/[[id=id]]/+page.svelte index e0239a2a43..d8b35204dc 100644 --- a/web/src/routes/(user)/shared-links/[[id=id]]/+page.svelte +++ b/web/src/routes/(user)/shared-links/[[id=id]]/+page.svelte @@ -6,7 +6,7 @@ import SharedLinkCard from '$lib/components/sharedlinks-page/shared-link-card.svelte'; import { AppRoute } from '$lib/constants'; import GroupTab from '$lib/elements/GroupTab.svelte'; - import SharedLinkCreateModal from '$lib/modals/SharedLinkCreateModal.svelte'; + import SharedLinkUpdateModal from '$lib/modals/SharedLinkUpdateModal.svelte'; import { getAllSharedLinks, SharedLinkType, type SharedLinkResponseDto } from '@immich/sdk'; import { onMount } from 'svelte'; import { t } from 'svelte-i18n'; @@ -96,7 +96,7 @@ {/if} {#if sharedLink} - goto(AppRoute.SHARED_LINKS)} /> + goto(AppRoute.SHARED_LINKS)} /> {/if}
From c958f9856def7f2afd9406681011a79b548e6022 Mon Sep 17 00:00:00 2001 From: shenlong <139912620+shenlong-tanwen@users.noreply.github.com> Date: Wed, 12 Nov 2025 20:47:44 +0530 Subject: [PATCH 046/300] chore: bump background_downloader (#23839) Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> --- mobile/pubspec.lock | 4 ++-- mobile/pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mobile/pubspec.lock b/mobile/pubspec.lock index 0b10384621..59b23f23ca 100644 --- a/mobile/pubspec.lock +++ b/mobile/pubspec.lock @@ -77,10 +77,10 @@ packages: dependency: "direct main" description: name: background_downloader - sha256: a22acfa37aa06ba5cfe6eb7b1aa700c78af64770ff450c73dd3d279d7c37d4ac + sha256: a913b37cc47a656a225e9562b69576000d516f705482f392e2663500e6ff6032 url: "https://pub.dev" source: hosted - version: "9.2.6" + version: "9.3.0" bonsoir: dependency: transitive description: diff --git a/mobile/pubspec.yaml b/mobile/pubspec.yaml index 617516b94a..3dce49e4e1 100644 --- a/mobile/pubspec.yaml +++ b/mobile/pubspec.yaml @@ -11,7 +11,7 @@ environment: dependencies: async: ^2.13.0 auto_route: ^9.2.0 - background_downloader: ^9.2.6 + background_downloader: ^9.3.0 cached_network_image: ^3.4.1 cancellation_token_http: ^2.1.0 cast: ^2.1.0 From edf21bae41f5a9c03ac146a65b292a6f19e41852 Mon Sep 17 00:00:00 2001 From: Mees Frensel <33722705+meesfrensel@users.noreply.github.com> Date: Wed, 12 Nov 2025 16:19:18 +0100 Subject: [PATCH 047/300] feat(web): disable searching by disabled features (#23798) fix(web): disable searching by disabled features --- .../search-bar/search-text-section.svelte | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/web/src/lib/components/shared-components/search-bar/search-text-section.svelte b/web/src/lib/components/shared-components/search-bar/search-text-section.svelte index 902d6d79b1..af620bde05 100644 --- a/web/src/lib/components/shared-components/search-bar/search-text-section.svelte +++ b/web/src/lib/components/shared-components/search-bar/search-text-section.svelte @@ -1,5 +1,6 @@
diff --git a/web/src/lib/components/admin-settings/FFmpegSettings.svelte b/web/src/lib/components/admin-settings/FFmpegSettings.svelte index d176839543..ff22960b49 100644 --- a/web/src/lib/components/admin-settings/FFmpegSettings.svelte +++ b/web/src/lib/components/admin-settings/FFmpegSettings.svelte @@ -1,12 +1,13 @@
-
+ event.preventDefault()}>

@@ -75,7 +63,7 @@ label={$t('admin.transcoding_transcode_policy')} {disabled} desc={$t('admin.transcoding_transcode_policy_description')} - bind:value={config.ffmpeg.transcode} + bind:value={configToEdit.ffmpeg.transcode} name="transcode" options={[ { value: TranscodePolicy.All, text: $t('all_videos') }, @@ -96,14 +84,14 @@ text: $t('admin.transcoding_disabled_description'), }, ]} - isEdited={config.ffmpeg.transcode !== savedConfig.ffmpeg.transcode} + isEdited={configToEdit.ffmpeg.transcode !== config.ffmpeg.transcode} /> @@ -121,7 +109,7 @@ label={$t('admin.transcoding_accepted_audio_codecs')} {disabled} desc={$t('admin.transcoding_accepted_audio_codecs_description')} - bind:value={config.ffmpeg.acceptedAudioCodecs} + bind:value={configToEdit.ffmpeg.acceptedAudioCodecs} name="audioCodecs" options={[ { value: AudioCodec.Aac, text: 'AAC' }, @@ -130,8 +118,8 @@ { value: AudioCodec.PcmS16Le, text: 'PCM (16 bit)' }, ]} isEdited={!isEqual( + sortBy(configToEdit.ffmpeg.acceptedAudioCodecs), sortBy(config.ffmpeg.acceptedAudioCodecs), - sortBy(savedConfig.ffmpeg.acceptedAudioCodecs), )} /> @@ -139,7 +127,7 @@ label={$t('admin.transcoding_accepted_containers')} {disabled} desc={$t('admin.transcoding_accepted_containers_description')} - bind:value={config.ffmpeg.acceptedContainers} + bind:value={configToEdit.ffmpeg.acceptedContainers} name="videoContainers" options={[ { value: VideoContainer.Mov, text: 'MOV' }, @@ -147,8 +135,8 @@ { value: VideoContainer.Webm, text: 'WebM' }, ]} isEdited={!isEqual( + sortBy(configToEdit.ffmpeg.acceptedContainers), sortBy(config.ffmpeg.acceptedContainers), - sortBy(savedConfig.ffmpeg.acceptedContainers), )} />

@@ -164,7 +152,7 @@ label={$t('admin.transcoding_video_codec')} {disabled} desc={$t('admin.transcoding_video_codec_description')} - bind:value={config.ffmpeg.targetVideoCodec} + bind:value={configToEdit.ffmpeg.targetVideoCodec} options={[ { value: VideoCodec.H264, text: 'h264' }, { value: VideoCodec.Hevc, text: 'hevc' }, @@ -172,8 +160,8 @@ { value: VideoCodec.Av1, text: 'av1' }, ]} name="vcodec" - isEdited={config.ffmpeg.targetVideoCodec !== savedConfig.ffmpeg.targetVideoCodec} - onSelect={() => (config.ffmpeg.acceptedVideoCodecs = [config.ffmpeg.targetVideoCodec])} + isEdited={configToEdit.ffmpeg.targetVideoCodec !== config.ffmpeg.targetVideoCodec} + onSelect={() => (configToEdit.ffmpeg.acceptedVideoCodecs = [configToEdit.ffmpeg.targetVideoCodec])} /> @@ -181,25 +169,25 @@ label={$t('admin.transcoding_audio_codec')} {disabled} desc={$t('admin.transcoding_audio_codec_description')} - bind:value={config.ffmpeg.targetAudioCodec} + bind:value={configToEdit.ffmpeg.targetAudioCodec} options={[ { value: AudioCodec.Aac, text: 'aac' }, { value: AudioCodec.Mp3, text: 'mp3' }, { value: AudioCodec.Libopus, text: 'opus' }, ]} name="acodec" - isEdited={config.ffmpeg.targetAudioCodec !== savedConfig.ffmpeg.targetAudioCodec} + isEdited={configToEdit.ffmpeg.targetAudioCodec !== config.ffmpeg.targetAudioCodec} onSelect={() => - config.ffmpeg.acceptedAudioCodecs.includes(config.ffmpeg.targetAudioCodec) + configToEdit.ffmpeg.acceptedAudioCodecs.includes(configToEdit.ffmpeg.targetAudioCodec) ? null - : config.ffmpeg.acceptedAudioCodecs.push(config.ffmpeg.targetAudioCodec)} + : configToEdit.ffmpeg.acceptedAudioCodecs.push(configToEdit.ffmpeg.targetAudioCodec)} />
@@ -307,7 +295,7 @@ label={$t('admin.transcoding_acceleration_api')} {disabled} desc={$t('admin.transcoding_acceleration_api_description')} - bind:value={config.ffmpeg.accel} + bind:value={configToEdit.ffmpeg.accel} name="accel" options={[ { value: TranscodeHWAccel.Nvenc, text: $t('admin.transcoding_acceleration_nvenc') }, @@ -328,27 +316,27 @@ text: $t('disabled'), }, ]} - isEdited={config.ffmpeg.accel !== savedConfig.ffmpeg.accel} + isEdited={configToEdit.ffmpeg.accel !== config.ffmpeg.accel} /> @@ -356,16 +344,16 @@ title={$t('admin.transcoding_temporal_aq')} {disabled} subtitle={$t('admin.transcoding_temporal_aq_description')} - bind:checked={config.ffmpeg.temporalAQ} - isEdited={config.ffmpeg.temporalAQ !== savedConfig.ffmpeg.temporalAQ} + bind:checked={configToEdit.ffmpeg.temporalAQ} + isEdited={configToEdit.ffmpeg.temporalAQ !== config.ffmpeg.temporalAQ} />
@@ -381,8 +369,8 @@ inputType={SettingInputFieldType.NUMBER} label={$t('admin.transcoding_max_b_frames')} description={$t('admin.transcoding_max_b_frames_description')} - bind:value={config.ffmpeg.bframes} - isEdited={config.ffmpeg.bframes !== savedConfig.ffmpeg.bframes} + bind:value={configToEdit.ffmpeg.bframes} + isEdited={configToEdit.ffmpeg.bframes !== config.ffmpeg.bframes} {disabled} /> @@ -390,8 +378,8 @@ inputType={SettingInputFieldType.NUMBER} label={$t('admin.transcoding_reference_frames')} description={$t('admin.transcoding_reference_frames_description')} - bind:value={config.ffmpeg.refs} - isEdited={config.ffmpeg.refs !== savedConfig.ffmpeg.refs} + bind:value={configToEdit.ffmpeg.refs} + isEdited={configToEdit.ffmpeg.refs !== config.ffmpeg.refs} {disabled} /> @@ -399,8 +387,8 @@ inputType={SettingInputFieldType.NUMBER} label={$t('admin.transcoding_max_keyframe_interval')} description={$t('admin.transcoding_max_keyframe_interval_description')} - bind:value={config.ffmpeg.gopSize} - isEdited={config.ffmpeg.gopSize !== savedConfig.ffmpeg.gopSize} + bind:value={configToEdit.ffmpeg.gopSize} + isEdited={configToEdit.ffmpeg.gopSize !== config.ffmpeg.gopSize} {disabled} />
@@ -408,12 +396,7 @@
- onReset({ ...options, configKeys: ['ffmpeg'] })} - onSave={() => onSave({ ffmpeg: config.ffmpeg })} - showResetToDefault={!isEqual(savedConfig.ffmpeg, defaultConfig.ffmpeg)} - {disabled} - /> +
diff --git a/web/src/lib/components/admin-settings/ImageSettings.svelte b/web/src/lib/components/admin-settings/ImageSettings.svelte index fd2ac29c6b..d63e48d372 100644 --- a/web/src/lib/components/admin-settings/ImageSettings.svelte +++ b/web/src/lib/components/admin-settings/ImageSettings.svelte @@ -1,62 +1,40 @@
-
+ event.preventDefault()}>
@@ -64,7 +42,7 @@ label={$t('admin.image_resolution')} desc={$t('admin.image_resolution_description')} number - bind:value={config.image.thumbnail.size} + bind:value={configToEdit.image.thumbnail.size} options={[ { value: 1080, text: '1080p' }, { value: 720, text: '720p' }, @@ -73,7 +51,7 @@ { value: 200, text: '200p' }, ]} name="resolution" - isEdited={config.image.thumbnail.size !== savedConfig.image.thumbnail.size} + isEdited={configToEdit.image.thumbnail.size !== config.image.thumbnail.size} {disabled} /> @@ -81,8 +59,8 @@ inputType={SettingInputFieldType.NUMBER} label={$t('admin.image_quality')} description={$t('admin.image_thumbnail_quality_description')} - bind:value={config.image.thumbnail.quality} - isEdited={config.image.thumbnail.quality !== savedConfig.image.thumbnail.quality} + bind:value={configToEdit.image.thumbnail.quality} + isEdited={configToEdit.image.thumbnail.quality !== config.image.thumbnail.quality} {disabled} /> @@ -91,18 +69,17 @@ key="preview-settings" title={$t('admin.image_preview_title')} subtitle={$t('admin.image_preview_description')} - isOpen={openByDefault} > @@ -110,7 +87,7 @@ label={$t('admin.image_resolution')} desc={$t('admin.image_resolution_description')} number - bind:value={config.image.preview.size} + bind:value={configToEdit.image.preview.size} options={[ { value: 2160, text: '4K' }, { value: 1440, text: '1440p' }, @@ -118,7 +95,7 @@ { value: 720, text: '720p' }, ]} name="resolution" - isEdited={config.image.preview.size !== savedConfig.image.preview.size} + isEdited={configToEdit.image.preview.size !== config.image.preview.size} {disabled} /> @@ -126,8 +103,8 @@ inputType={SettingInputFieldType.NUMBER} label={$t('admin.image_quality')} description={$t('admin.image_preview_quality_description')} - bind:value={config.image.preview.quality} - isEdited={config.image.preview.quality !== savedConfig.image.preview.quality} + bind:value={configToEdit.image.preview.quality} + isEdited={configToEdit.image.preview.quality !== config.image.preview.quality} {disabled} /> @@ -136,14 +113,13 @@ key="fullsize-settings" title={$t('admin.image_fullsize_title')} subtitle={$t('admin.image_fullsize_description')} - isOpen={openByDefault} > (config.image.fullsize.enabled = isChecked)} - isEdited={config.image.fullsize.enabled !== savedConfig.image.fullsize.enabled} + checked={configToEdit.image.fullsize.enabled} + onToggle={(isChecked) => (configToEdit.image.fullsize.enabled = isChecked)} + isEdited={configToEdit.image.fullsize.enabled !== config.image.fullsize.enabled} {disabled} /> @@ -152,23 +128,23 @@ @@ -176,9 +152,9 @@ (config.image.colorspace = isChecked ? Colorspace.P3 : Colorspace.Srgb)} - isEdited={config.image.colorspace !== savedConfig.image.colorspace} + checked={configToEdit.image.colorspace === Colorspace.P3} + onToggle={(isChecked) => (configToEdit.image.colorspace = isChecked ? Colorspace.P3 : Colorspace.Srgb)} + isEdited={configToEdit.image.colorspace !== config.image.colorspace} {disabled} />
@@ -187,21 +163,16 @@ (config.image.extractEmbedded = !config.image.extractEmbedded)} - isEdited={config.image.extractEmbedded !== savedConfig.image.extractEmbedded} + checked={configToEdit.image.extractEmbedded} + onToggle={() => (configToEdit.image.extractEmbedded = !configToEdit.image.extractEmbedded)} + isEdited={configToEdit.image.extractEmbedded !== config.image.extractEmbedded} {disabled} />
- onReset({ ...options, configKeys: ['image'] })} - onSave={() => onSave({ image: config.image })} - showResetToDefault={!isEqual(savedConfig.image, defaultConfig.image)} - {disabled} - /> +
diff --git a/web/src/lib/components/admin-settings/JobSettings.svelte b/web/src/lib/components/admin-settings/JobSettings.svelte index 70de73f81b..5fd7b4117f 100644 --- a/web/src/lib/components/admin-settings/JobSettings.svelte +++ b/web/src/lib/components/admin-settings/JobSettings.svelte @@ -1,24 +1,16 @@
-
+ event.preventDefault()}> {#each jobNames as jobName (jobName)}
{#if isSystemConfigJobDto(jobName)} @@ -55,9 +42,9 @@ {disabled} label={$t('admin.job_concurrency', { values: { job: $getJobName(jobName) } })} description="" - bind:value={config.job[jobName].concurrency} + bind:value={configToEdit.job[jobName].concurrency} required={true} - isEdited={!(config.job[jobName].concurrency == savedConfig.job[jobName].concurrency)} + isEdited={!(configToEdit.job[jobName].concurrency == config.job[jobName].concurrency)} /> {:else} - onReset({ ...options, configKeys: ['job'] })} - onSave={() => onSave({ job: config.job })} - showResetToDefault={!isEqual(savedConfig.job, defaultConfig.job)} - {disabled} - /> +
diff --git a/web/src/lib/components/admin-settings/LibrarySettings.svelte b/web/src/lib/components/admin-settings/LibrarySettings.svelte index 82ce13ae2c..83fc3fdbed 100644 --- a/web/src/lib/components/admin-settings/LibrarySettings.svelte +++ b/web/src/lib/components/admin-settings/LibrarySettings.svelte @@ -1,36 +1,18 @@
-
+ event.preventDefault()}>
diff --git a/web/src/lib/components/admin-settings/LoggingSettings.svelte b/web/src/lib/components/admin-settings/LoggingSettings.svelte index 90bd04d9a6..707689d502 100644 --- a/web/src/lib/components/admin-settings/LoggingSettings.svelte +++ b/web/src/lib/components/admin-settings/LoggingSettings.svelte @@ -1,42 +1,30 @@
-
+ event.preventDefault()}>
- onReset({ ...options, configKeys: ['logging'] })} - onSave={() => onSave({ logging: config.logging })} - showResetToDefault={!isEqual(savedConfig.logging, defaultConfig.logging)} - {disabled} - /> +
diff --git a/web/src/lib/components/admin-settings/MachineLearningSettings.svelte b/web/src/lib/components/admin-settings/MachineLearningSettings.svelte index e05b5088a4..773d30f05e 100644 --- a/web/src/lib/components/admin-settings/MachineLearningSettings.svelte +++ b/web/src/lib/components/admin-settings/MachineLearningSettings.svelte @@ -1,65 +1,52 @@
-
+ event.preventDefault()}>

- {#each config.machineLearning.urls as _, i (i)} + {#each configToEdit.machineLearning.urls as _, i (i)} {#snippet trailingSnippet()} - {#if config.machineLearning.urls.length > 1} + {#if configToEdit.machineLearning.urls.length > 1} config.machineLearning.urls.splice(i, 1)} + onclick={() => configToEdit.machineLearning.urls.splice(i, 1)} icon={mdiTrashCanOutline} color="danger" /> @@ -75,8 +62,8 @@ size="small" shape="round" leadingIcon={mdiPlus} - onclick={() => config.machineLearning.urls.push('')} - disabled={disabled || !config.machineLearning.enabled}>{$t('add_url')} configToEdit.machineLearning.urls.push('')} + disabled={disabled || !configToEdit.machineLearning.enabled}>{$t('add_url')}
@@ -89,8 +76,8 @@

@@ -98,21 +85,25 @@
@@ -126,8 +117,8 @@
@@ -135,10 +126,10 @@ {#snippet descriptionSnippet()}

@@ -162,8 +153,8 @@


@@ -171,14 +162,14 @@
@@ -192,8 +183,8 @@
@@ -202,54 +193,62 @@ label={$t('admin.machine_learning_facial_recognition_model')} desc={$t('admin.machine_learning_facial_recognition_model_description')} name="facial-recognition-model" - bind:value={config.machineLearning.facialRecognition.modelName} + bind:value={configToEdit.machineLearning.facialRecognition.modelName} options={[ { value: 'antelopev2', text: 'antelopev2' }, { value: 'buffalo_l', text: 'buffalo_l' }, { value: 'buffalo_m', text: 'buffalo_m' }, { value: 'buffalo_s', text: 'buffalo_s' }, ]} - disabled={disabled || !config.machineLearning.enabled || !config.machineLearning.facialRecognition.enabled} - isEdited={config.machineLearning.facialRecognition.modelName !== - savedConfig.machineLearning.facialRecognition.modelName} + disabled={disabled || + !configToEdit.machineLearning.enabled || + !configToEdit.machineLearning.facialRecognition.enabled} + isEdited={configToEdit.machineLearning.facialRecognition.modelName !== + config.machineLearning.facialRecognition.modelName} />
@@ -263,8 +262,8 @@
@@ -273,7 +272,7 @@ label={$t('admin.machine_learning_ocr_model')} desc={$t('admin.machine_learning_ocr_model_description')} name="ocr-model" - bind:value={config.machineLearning.ocr.modelName} + bind:value={configToEdit.machineLearning.ocr.modelName} options={[ { text: 'PP-OCRv5_server (Chinese, Japanese and English)', value: 'PP-OCRv5_server' }, { text: 'PP-OCRv5_mobile (Chinese, Japanese and English)', value: 'PP-OCRv5_mobile' }, @@ -284,53 +283,48 @@ { text: 'PP-OCRv5_mobile (Russian, Belarusian, Ukrainian and English)', value: 'ESLAV__PP-OCRv5_mobile' }, { text: 'PP-OCRv5_mobile (Thai and English)', value: 'TH__PP-OCRv5_mobile' }, ]} - disabled={disabled || !config.machineLearning.enabled || !config.machineLearning.ocr.enabled} - isEdited={config.machineLearning.ocr.modelName !== savedConfig.machineLearning.ocr.modelName} + disabled={disabled || !configToEdit.machineLearning.enabled || !configToEdit.machineLearning.ocr.enabled} + isEdited={configToEdit.machineLearning.ocr.modelName !== config.machineLearning.ocr.modelName} />
- onReset({ ...options, configKeys: ['machineLearning'] })} - onSave={() => onSave({ machineLearning: config.machineLearning })} - showResetToDefault={!isEqual(savedConfig.machineLearning, defaultConfig.machineLearning)} - {disabled} - /> +
diff --git a/web/src/lib/components/admin-settings/MapSettings.svelte b/web/src/lib/components/admin-settings/MapSettings.svelte index 4db210d8dc..5ecb9f5419 100644 --- a/web/src/lib/components/admin-settings/MapSettings.svelte +++ b/web/src/lib/components/admin-settings/MapSettings.svelte @@ -1,35 +1,22 @@
-
+ event.preventDefault()}>
@@ -37,7 +24,7 @@ title={$t('admin.map_enable_description')} subtitle={$t('admin.map_implications')} {disabled} - bind:checked={config.map.enabled} + bind:checked={configToEdit.map.enabled} />
@@ -46,17 +33,17 @@ inputType={SettingInputFieldType.TEXT} label={$t('admin.map_light_style')} description={$t('admin.map_style_description')} - bind:value={config.map.lightStyle} - disabled={disabled || !config.map.enabled} - isEdited={config.map.lightStyle !== savedConfig.map.lightStyle} + bind:value={configToEdit.map.lightStyle} + disabled={disabled || !configToEdit.map.enabled} + isEdited={configToEdit.map.lightStyle !== config.map.lightStyle} />
@@ -82,20 +69,12 @@
- onReset({ ...options, configKeys: ['map', 'reverseGeocoding'] })} - onSave={() => onSave({ map: config.map, reverseGeocoding: config.reverseGeocoding })} - showResetToDefault={!isEqual( - { map: savedConfig.map, reverseGeocoding: savedConfig.reverseGeocoding }, - { map: defaultConfig.map, reverseGeocoding: defaultConfig.reverseGeocoding }, - )} - {disabled} - /> +
diff --git a/web/src/lib/components/admin-settings/MetadataSettings.svelte b/web/src/lib/components/admin-settings/MetadataSettings.svelte index 04e2d010e1..607faef51c 100644 --- a/web/src/lib/components/admin-settings/MetadataSettings.svelte +++ b/web/src/lib/components/admin-settings/MetadataSettings.svelte @@ -1,46 +1,27 @@
-
+ event.preventDefault()}>
- onReset({ ...options, configKeys: ['metadata'] })} - onSave={() => onSave({ metadata: config.metadata })} - showResetToDefault={!isEqual(savedConfig.metadata.faces.import, defaultConfig.metadata.faces.import)} - {disabled} - /> +
diff --git a/web/src/lib/components/admin-settings/NewVersionCheckSettings.svelte b/web/src/lib/components/admin-settings/NewVersionCheckSettings.svelte index b713f906c0..327bf34717 100644 --- a/web/src/lib/components/admin-settings/NewVersionCheckSettings.svelte +++ b/web/src/lib/components/admin-settings/NewVersionCheckSettings.svelte @@ -1,44 +1,25 @@
-
+ event.preventDefault()}>
- onReset({ ...options, configKeys: ['newVersionCheck'] })} - onSave={() => onSave({ newVersionCheck: config.newVersionCheck })} - showResetToDefault={!isEqual(savedConfig.newVersionCheck, defaultConfig.newVersionCheck)} + bind:checked={configToEdit.newVersionCheck.enabled} {disabled} /> +
diff --git a/web/src/lib/components/admin-settings/NightlyTasksSettings.svelte b/web/src/lib/components/admin-settings/NightlyTasksSettings.svelte index 9ba4e4e3b8..688c7cb4f0 100644 --- a/web/src/lib/components/admin-settings/NightlyTasksSettings.svelte +++ b/web/src/lib/components/admin-settings/NightlyTasksSettings.svelte @@ -1,81 +1,63 @@
-
+ event.preventDefault()}>
- onReset({ ...options, configKeys: ['nightlyTasks'] })} - onSave={() => onSave({ nightlyTasks: config.nightlyTasks })} - showResetToDefault={!isEqual(savedConfig.nightlyTasks, defaultConfig.nightlyTasks)} - {disabled} - /> +
diff --git a/web/src/lib/components/admin-settings/NotificationSettings.svelte b/web/src/lib/components/admin-settings/NotificationSettings.svelte index 35f13da5a0..0e0af55c4f 100644 --- a/web/src/lib/components/admin-settings/NotificationSettings.svelte +++ b/web/src/lib/components/admin-settings/NotificationSettings.svelte @@ -1,29 +1,22 @@
-
+ event.preventDefault()}>

@@ -87,9 +76,9 @@ required label={$t('host')} description={$t('admin.notification_email_host_description')} - disabled={disabled || !config.notifications.smtp.enabled} - bind:value={config.notifications.smtp.transport.host} - isEdited={config.notifications.smtp.transport.host !== savedConfig.notifications.smtp.transport.host} + disabled={disabled || !configToEdit.notifications.smtp.enabled} + bind:value={configToEdit.notifications.smtp.transport.host} + isEdited={configToEdit.notifications.smtp.transport.host !== config.notifications.smtp.transport.host} />
@@ -143,16 +132,16 @@ required label={$t('admin.notification_email_from_address')} description={$t('admin.notification_email_from_address_description')} - disabled={disabled || !config.notifications.smtp.enabled} - bind:value={config.notifications.smtp.from} - isEdited={config.notifications.smtp.from !== savedConfig.notifications.smtp.from} + disabled={disabled || !configToEdit.notifications.smtp.enabled} + bind:value={configToEdit.notifications.smtp.from} + isEdited={configToEdit.notifications.smtp.from !== config.notifications.smtp.from} />
- + - onReset({ ...options, configKeys: ['notifications', 'templates'] })} - onSave={() => onSave({ notifications: config.notifications, templates: config.templates })} - showResetToDefault={!isEqual(savedConfig, defaultConfig)} - {disabled} - /> +
diff --git a/web/src/lib/components/admin-settings/ServerSettings.svelte b/web/src/lib/components/admin-settings/ServerSettings.svelte index d04b351eff..4a04010cf3 100644 --- a/web/src/lib/components/admin-settings/ServerSettings.svelte +++ b/web/src/lib/components/admin-settings/ServerSettings.svelte @@ -1,64 +1,46 @@
-
+ event.preventDefault()}>
- onReset({ ...options, configKeys: ['server'] })} - onSave={() => onSave({ server: config.server })} - showResetToDefault={!isEqual(savedConfig.server, defaultConfig.server)} - {disabled} - /> +
diff --git a/web/src/lib/components/admin-settings/StorageTemplateSettings.svelte b/web/src/lib/components/admin-settings/StorageTemplateSettings.svelte index a779b57f2d..c445769ae0 100644 --- a/web/src/lib/components/admin-settings/StorageTemplateSettings.svelte +++ b/web/src/lib/components/admin-settings/StorageTemplateSettings.svelte @@ -2,50 +2,34 @@ import { resolve } from '$app/paths'; import SupportedDatetimePanel from '$lib/components/admin-settings/SupportedDatetimePanel.svelte'; import SupportedVariablesPanel from '$lib/components/admin-settings/SupportedVariablesPanel.svelte'; - import SettingButtonsRow from '$lib/components/shared-components/settings/setting-buttons-row.svelte'; + import SettingButtonsRow from '$lib/components/shared-components/settings/SystemConfigButtonRow.svelte'; import SettingInputField from '$lib/components/shared-components/settings/setting-input-field.svelte'; import SettingSwitch from '$lib/components/shared-components/settings/setting-switch.svelte'; import { AppRoute, SettingInputFieldType } from '$lib/constants'; import FormatMessage from '$lib/elements/FormatMessage.svelte'; + import { handleSystemConfigSave } from '$lib/services/system-config.service'; + import { featureFlags, systemConfigManager } from '$lib/stores/system-config-manager.svelte'; import { user } from '$lib/stores/user.store'; - import { - getStorageTemplateOptions, - type SystemConfigDto, - type SystemConfigTemplateStorageOptionDto, - } from '@immich/sdk'; + import { getStorageTemplateOptions, type SystemConfigTemplateStorageOptionDto } from '@immich/sdk'; import { LoadingSpinner } from '@immich/ui'; import handlebar from 'handlebars'; - import { isEqual } from 'lodash-es'; import * as luxon from 'luxon'; - import type { Snippet } from 'svelte'; + import { onDestroy } from 'svelte'; import { t } from 'svelte-i18n'; import { createBubbler, preventDefault } from 'svelte/legacy'; import { fade } from 'svelte/transition'; - import type { SettingsResetEvent, SettingsSaveEvent } from './admin-settings'; - interface Props { - savedConfig: SystemConfigDto; - defaultConfig: SystemConfigDto; - config: SystemConfigDto; - disabled?: boolean; + type Props = { minified?: boolean; - onReset: SettingsResetEvent; - onSave: SettingsSaveEvent; duration?: number; - children?: Snippet; - } + saveOnClose?: boolean; + }; - let { - savedConfig, - defaultConfig, - config = $bindable(), - disabled = false, - minified = false, - onReset, - onSave, - duration = 500, - children, - }: Props = $props(); + const { minified = false, duration = 500, saveOnClose = false }: Props = $props(); + + const disabled = $featureFlags.configFile; + const config = $derived(systemConfigManager.value); + let configToEdit = $state(systemConfigManager.cloneValue()); const bubble = createBubbler(); let templateOptions: SystemConfigTemplateStorageOptionDto | undefined = $state(); @@ -53,7 +37,7 @@ const getTemplateOptions = async () => { templateOptions = await getStorageTemplateOptions(); - selectedPreset = savedConfig.storageTemplate.template; + selectedPreset = config.storageTemplate.template; }; const getSupportDateTimeFormat = () => getStorageTemplateOptions(); @@ -101,15 +85,21 @@ }; const handlePresetSelection = () => { - config.storageTemplate.template = selectedPreset; + configToEdit.storageTemplate.template = selectedPreset; }; let parsedTemplate = $derived(() => { try { - return renderTemplate(config.storageTemplate.template); + return renderTemplate(configToEdit.storageTemplate.template); } catch { return 'error'; } }); + + onDestroy(async () => { + if (saveOnClose) { + await handleSystemConfigSave({ storageTemplate: configToEdit.storageTemplate }); + } + });
@@ -145,8 +135,8 @@ {#if !minified} @@ -154,14 +144,14 @@ title={$t('admin.storage_template_hash_verification_enabled')} {disabled} subtitle={$t('admin.storage_template_hash_verification_enabled_description')} - bind:checked={config.storageTemplate.hashVerificationEnabled} + bind:checked={configToEdit.storageTemplate.hashVerificationEnabled} isEdited={!( - config.storageTemplate.hashVerificationEnabled === savedConfig.storageTemplate.hashVerificationEnabled + configToEdit.storageTemplate.hashVerificationEnabled === config.storageTemplate.hashVerificationEnabled )} /> {/if} - {#if config.storageTemplate.enabled} + {#if configToEdit.storageTemplate.enabled}

{$t('variables')}

@@ -220,7 +210,7 @@ + const { CopyToClipboard, Upload, Download } = $derived( + getSystemConfigActions($t, $featureFlags, systemConfigManager.value), + ); + {#snippet buttons()} @@ -256,58 +211,27 @@ - - - {#if !$featureFlags.configFile} - - {/if} + + + {/snippet} - - {#snippet children({ savedConfig, defaultConfig })} -
-
- {#if $featureFlags.configFile} - - {/if} -
- -
- - {#each filteredSettings as { component: Component, title, subtitle, key, icon } (key)} - - adminSettingElement?.handleSave(config)} - onReset={(options) => adminSettingElement?.handleReset(options)} - disabled={$featureFlags.configFile} - bind:config - {defaultConfig} - {savedConfig} - /> - - {/each} - -
-
- {/snippet} -
+
+
+ {#if $featureFlags.configFile} + + {/if} +
+ +
+ + {#each filteredSettings as { component: Component, title, subtitle, key, icon } (key)} + + + + {/each} + +
+
diff --git a/web/src/routes/admin/system-settings/+page.ts b/web/src/routes/admin/system-settings/+page.ts index 294096a4be..10dc0cf246 100644 --- a/web/src/routes/admin/system-settings/+page.ts +++ b/web/src/routes/admin/system-settings/+page.ts @@ -1,15 +1,17 @@ import { authenticate } from '$lib/utils/auth'; import { getFormatter } from '$lib/utils/i18n'; -import { getConfig } from '@immich/sdk'; +import { getConfig, getConfigDefaults } from '@immich/sdk'; import type { PageLoad } from './$types'; export const load = (async ({ url }) => { await authenticate(url, { admin: true }); - const configs = await getConfig(); + const config = await getConfig(); + const defaultConfig = await getConfigDefaults(); const $t = await getFormatter(); return { - configs, + config, + defaultConfig, meta: { title: $t('admin.system_settings'), }, diff --git a/web/src/routes/auth/login/+page.svelte b/web/src/routes/auth/login/+page.svelte index 352eaed408..2943dc1e07 100644 --- a/web/src/routes/auth/login/+page.svelte +++ b/web/src/routes/auth/login/+page.svelte @@ -3,7 +3,7 @@ import AuthPageLayout from '$lib/components/layouts/AuthPageLayout.svelte'; import { AppRoute } from '$lib/constants'; import { eventManager } from '$lib/managers/event-manager.svelte'; - import { featureFlags, serverConfig } from '$lib/stores/server-config.store'; + import { featureFlags, serverConfig } from '$lib/stores/system-config-manager.svelte'; import { oauth } from '$lib/utils'; import { getServerErrorMessage, handleError } from '$lib/utils/handle-error'; import { login, type LoginResponseDto } from '@immich/sdk'; diff --git a/web/src/routes/auth/login/+page.ts b/web/src/routes/auth/login/+page.ts index 54c5da716a..ddf5b43fb9 100644 --- a/web/src/routes/auth/login/+page.ts +++ b/web/src/routes/auth/login/+page.ts @@ -1,5 +1,5 @@ import { AppRoute } from '$lib/constants'; -import { serverConfig } from '$lib/stores/server-config.store'; +import { serverConfig } from '$lib/stores/system-config-manager.svelte'; import { getFormatter } from '$lib/utils/i18n'; import { redirect } from '@sveltejs/kit'; diff --git a/web/src/routes/auth/onboarding/+page.svelte b/web/src/routes/auth/onboarding/+page.svelte index d2e9a9f240..9275fb95c1 100644 --- a/web/src/routes/auth/onboarding/+page.svelte +++ b/web/src/routes/auth/onboarding/+page.svelte @@ -12,7 +12,7 @@ import OnboardingUserPrivacy from '$lib/components/onboarding-page/onboarding-user-privacy.svelte'; import { AppRoute, QueryParameter } from '$lib/constants'; import { OnboardingRole } from '$lib/models/onboarding-role'; - import { retrieveServerConfig, retrieveSystemConfig, serverConfig } from '$lib/stores/server-config.store'; + import { retrieveServerConfig, serverConfig, systemConfigManager } from '$lib/stores/system-config-manager.svelte'; import { user } from '$lib/stores/user.store'; import { setUserOnboarding, updateAdminOnboarding } from '@immich/sdk'; import { @@ -152,11 +152,13 @@ ); }; - onMount(async () => { - await retrieveSystemConfig(); - }); - const OnboardingStep = $derived(onboardingSteps[index].component); + + onMount(async () => { + if (userRole === OnboardingRole.SERVER) { + await systemConfigManager.init(); + } + });
diff --git a/web/src/routes/auth/register/+page.svelte b/web/src/routes/auth/register/+page.svelte index 3eb046e80f..affa5f816c 100644 --- a/web/src/routes/auth/register/+page.svelte +++ b/web/src/routes/auth/register/+page.svelte @@ -2,7 +2,7 @@ import { goto } from '$app/navigation'; import AuthPageLayout from '$lib/components/layouts/AuthPageLayout.svelte'; import { AppRoute } from '$lib/constants'; - import { retrieveServerConfig } from '$lib/stores/server-config.store'; + import { retrieveServerConfig } from '$lib/stores/system-config-manager.svelte'; import { handleError } from '$lib/utils/handle-error'; import { signUpAdmin } from '@immich/sdk'; import { Alert, Button, Field, Input, PasswordInput, Text } from '@immich/ui'; diff --git a/web/src/routes/auth/register/+page.ts b/web/src/routes/auth/register/+page.ts index 88b56caa47..30969c3167 100644 --- a/web/src/routes/auth/register/+page.ts +++ b/web/src/routes/auth/register/+page.ts @@ -1,5 +1,5 @@ import { AppRoute } from '$lib/constants'; -import { serverConfig } from '$lib/stores/server-config.store'; +import { serverConfig } from '$lib/stores/system-config-manager.svelte'; import { getFormatter } from '$lib/utils/i18n'; import { redirect } from '@sveltejs/kit'; import { get } from 'svelte/store'; From 074fdb2b961eb9e9e8430068a1b3c6deb212ccd8 Mon Sep 17 00:00:00 2001 From: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com> Date: Fri, 14 Nov 2025 12:13:09 +0100 Subject: [PATCH 068/300] fix: out of sync pnpm lockfile (#23891) --- pnpm-lock.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5cbd915fb3..81ad7fcd3c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17278,7 +17278,7 @@ snapshots: bcrypt@6.0.0: dependencies: node-addon-api: 8.5.0 - node-gyp: 11.3.0 + node-gyp: 11.5.0 node-gyp-build: 4.8.4 transitivePeerDependencies: - supports-color From f11bfb95814583458e7244cb772e6a2ea6dcaef3 Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Fri, 14 Nov 2025 11:46:32 -0500 Subject: [PATCH 069/300] fix(server): broken memories (#23896) --- server/src/controllers/memory.controller.spec.ts | 5 +++++ server/src/dtos/memory.dto.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/server/src/controllers/memory.controller.spec.ts b/server/src/controllers/memory.controller.spec.ts index ac96e54a5b..8629b6c799 100644 --- a/server/src/controllers/memory.controller.spec.ts +++ b/server/src/controllers/memory.controller.spec.ts @@ -24,6 +24,11 @@ describe(MemoryController.name, () => { await request(ctx.getHttpServer()).get('/memories'); expect(ctx.authenticate).toHaveBeenCalled(); }); + + it('should not require any parameters', async () => { + await request(ctx.getHttpServer()).get('/memories').query({}); + expect(service.search).toHaveBeenCalled(); + }); }); describe('POST /memories', () => { diff --git a/server/src/dtos/memory.dto.ts b/server/src/dtos/memory.dto.ts index 8a86e66691..8e7320f831 100644 --- a/server/src/dtos/memory.dto.ts +++ b/server/src/dtos/memory.dto.ts @@ -5,7 +5,7 @@ import { Memory } from 'src/database'; import { AssetResponseDto, mapAsset } from 'src/dtos/asset-response.dto'; import { AuthDto } from 'src/dtos/auth.dto'; import { AssetOrderWithRandom, MemoryType } from 'src/enum'; -import { ValidateBoolean, ValidateDate, ValidateEnum, ValidateUUID } from 'src/validation'; +import { Optional, ValidateBoolean, ValidateDate, ValidateEnum, ValidateUUID } from 'src/validation'; class MemoryBaseDto { @ValidateBoolean({ optional: true }) @@ -31,6 +31,7 @@ export class MemorySearchDto { @IsInt() @IsPositive() @Type(() => Number) + @Optional() @ApiProperty({ type: 'integer', description: 'Number of memories to return' }) size?: number; From 1200bfad131166a26257ba8b86178ea7457f46c3 Mon Sep 17 00:00:00 2001 From: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com> Date: Fri, 14 Nov 2025 20:10:44 +0100 Subject: [PATCH 070/300] refactor: server config and feature flags managers (#23894) --- .../admin-settings/AdminSettings.svelte | 78 ----------- .../admin-settings/AuthSettings.svelte | 5 +- .../admin-settings/BackupSettings.svelte | 5 +- .../admin-settings/FFmpegSettings.svelte | 5 +- .../admin-settings/ImageSettings.svelte | 5 +- .../admin-settings/JobSettings.svelte | 5 +- .../admin-settings/LibrarySettings.svelte | 5 +- .../admin-settings/LoggingSettings.svelte | 5 +- .../MachineLearningSettings.svelte | 7 +- .../admin-settings/MapSettings.svelte | 5 +- .../admin-settings/MetadataSettings.svelte | 5 +- .../NewVersionCheckSettings.svelte | 5 +- .../NightlyTasksSettings.svelte | 5 +- .../NotificationSettings.svelte | 5 +- .../admin-settings/ServerSettings.svelte | 5 +- .../StorageTemplateSettings.svelte | 5 +- .../admin-settings/TemplateSettings.svelte | 2 +- .../admin-settings/ThemeSettings.svelte | 5 +- .../admin-settings/TrashSettings.svelte | 5 +- .../admin-settings/UserSettings.svelte | 5 +- .../admin-settings/admin-settings.ts | 4 - .../components/album-page/album-viewer.svelte | 4 +- .../asset-viewer/actions/delete-action.svelte | 4 +- .../asset-viewer/asset-viewer-nav-bar.spec.ts | 4 + .../asset-viewer/asset-viewer-nav-bar.svelte | 4 +- .../asset-viewer/detail-panel.svelte | 4 +- web/src/lib/components/jobs/JobsPanel.svelte | 19 +-- .../onboarding-page/onboarding-hello.svelte | 6 +- .../onboarding-server-privacy.svelte | 2 +- .../gallery-viewer/gallery-viewer.svelte | 4 +- .../shared-components/map/map.svelte | 6 +- .../navigation-bar/navigation-bar.svelte | 6 +- .../search-bar/search-text-section.svelte | 6 +- .../settings/SystemConfigButtonRow.svelte | 2 +- .../side-bar/user-sidebar.svelte | 8 +- .../lib/components/timeline/Timeline.svelte | 1 - .../actions/DeleteAssetsAction.svelte | 9 +- .../actions/TimelineKeyboardActions.svelte | 4 +- .../user-settings-page/oauth-settings.svelte | 4 +- .../user-settings-list.svelte | 4 +- .../managers/feature-flags-manager.svelte.ts | 28 ++++ .../managers/server-config-manager.svelte.ts | 28 ++++ .../managers/system-config-manager.svelte.ts | 55 ++++++++ web/src/lib/modals/PinCodeResetModal.svelte | 4 +- web/src/lib/modals/UserCreateModal.svelte | 8 +- .../lib/modals/UserDeleteConfirmModal.svelte | 4 +- web/src/lib/services/shared-link.service.ts | 5 +- web/src/lib/services/system-config.service.ts | 11 +- web/src/lib/services/user-admin.service.ts | 6 +- .../stores/system-config-manager.svelte.ts | 108 --------------- web/src/lib/utils/license-utils.ts | 5 +- web/src/lib/utils/server.ts | 6 +- .../[[assetId=id]]/+page.svelte | 4 +- .../[[assetId=id]]/+page.svelte | 14 +- .../[[photos=photos]]/[[assetId=id]]/+page.ts | 8 ++ .../[[assetId=id]]/+page.svelte | 4 +- .../[[assetId=id]]/+page.svelte | 16 +-- .../[[photos=photos]]/[[assetId=id]]/+page.ts | 8 ++ .../[[assetId=id]]/+page.svelte | 14 +- web/src/routes/+layout.svelte | 12 +- web/src/routes/+page.ts | 7 +- web/src/routes/admin/+layout.ts | 2 +- .../routes/admin/system-settings/+page.svelte | 7 +- web/src/routes/auth/login/+page.svelte | 123 +++++++++--------- web/src/routes/auth/login/+page.ts | 7 +- web/src/routes/auth/onboarding/+page.svelte | 13 +- web/src/routes/auth/register/+page.svelte | 4 +- web/src/routes/auth/register/+page.ts | 6 +- 68 files changed, 378 insertions(+), 416 deletions(-) delete mode 100644 web/src/lib/components/admin-settings/AdminSettings.svelte delete mode 100644 web/src/lib/components/admin-settings/admin-settings.ts create mode 100644 web/src/lib/managers/feature-flags-manager.svelte.ts create mode 100644 web/src/lib/managers/server-config-manager.svelte.ts create mode 100644 web/src/lib/managers/system-config-manager.svelte.ts delete mode 100644 web/src/lib/stores/system-config-manager.svelte.ts diff --git a/web/src/lib/components/admin-settings/AdminSettings.svelte b/web/src/lib/components/admin-settings/AdminSettings.svelte deleted file mode 100644 index d8fde9e29b..0000000000 --- a/web/src/lib/components/admin-settings/AdminSettings.svelte +++ /dev/null @@ -1,78 +0,0 @@ - - -{#if savedConfig && defaultConfig} - {@render children({ savedConfig, defaultConfig })} -{/if} diff --git a/web/src/lib/components/admin-settings/AuthSettings.svelte b/web/src/lib/components/admin-settings/AuthSettings.svelte index f88ec18ab9..c53060706e 100644 --- a/web/src/lib/components/admin-settings/AuthSettings.svelte +++ b/web/src/lib/components/admin-settings/AuthSettings.svelte @@ -6,8 +6,9 @@ import SettingButtonsRow from '$lib/components/shared-components/settings/SystemConfigButtonRow.svelte'; import { SettingInputFieldType } from '$lib/constants'; import FormatMessage from '$lib/elements/FormatMessage.svelte'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; + import { systemConfigManager } from '$lib/managers/system-config-manager.svelte'; import AuthDisableLoginConfirmModal from '$lib/modals/AuthDisableLoginConfirmModal.svelte'; - import { featureFlags, systemConfigManager } from '$lib/stores/system-config-manager.svelte'; import { handleError } from '$lib/utils/handle-error'; import { OAuthTokenEndpointAuthMethod, unlinkAllOAuthAccountsAdmin } from '@immich/sdk'; import { Button, modalManager, Text, toastManager } from '@immich/ui'; @@ -15,7 +16,7 @@ import { t } from 'svelte-i18n'; import { fade } from 'svelte/transition'; - const disabled = $featureFlags.configFile; + const disabled = $derived(featureFlagsManager.value.configFile); const config = $derived(systemConfigManager.value); let configToEdit = $state(systemConfigManager.cloneValue()); diff --git a/web/src/lib/components/admin-settings/BackupSettings.svelte b/web/src/lib/components/admin-settings/BackupSettings.svelte index aa198f88b8..fc374ddd6f 100644 --- a/web/src/lib/components/admin-settings/BackupSettings.svelte +++ b/web/src/lib/components/admin-settings/BackupSettings.svelte @@ -5,11 +5,12 @@ import SettingSwitch from '$lib/components/shared-components/settings/setting-switch.svelte'; import { SettingInputFieldType } from '$lib/constants'; import FormatMessage from '$lib/elements/FormatMessage.svelte'; - import { featureFlags, systemConfigManager } from '$lib/stores/system-config-manager.svelte'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; + import { systemConfigManager } from '$lib/managers/system-config-manager.svelte'; import { t } from 'svelte-i18n'; import { fade } from 'svelte/transition'; - const disabled = $featureFlags.configFile; + const disabled = $derived(featureFlagsManager.value.configFile); const config = $derived(systemConfigManager.value); let configToEdit = $state(systemConfigManager.cloneValue()); diff --git a/web/src/lib/components/admin-settings/FFmpegSettings.svelte b/web/src/lib/components/admin-settings/FFmpegSettings.svelte index ff22960b49..83596069f9 100644 --- a/web/src/lib/components/admin-settings/FFmpegSettings.svelte +++ b/web/src/lib/components/admin-settings/FFmpegSettings.svelte @@ -7,7 +7,8 @@ import SettingButtonsRow from '$lib/components/shared-components/settings/SystemConfigButtonRow.svelte'; import { SettingInputFieldType } from '$lib/constants'; import FormatMessage from '$lib/elements/FormatMessage.svelte'; - import { featureFlags, systemConfigManager } from '$lib/stores/system-config-manager.svelte'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; + import { systemConfigManager } from '$lib/managers/system-config-manager.svelte'; import { AudioCodec, CQMode, @@ -23,7 +24,7 @@ import { t } from 'svelte-i18n'; import { fade } from 'svelte/transition'; - const disabled = $featureFlags.configFile; + const disabled = $derived(featureFlagsManager.value.configFile); const config = $derived(systemConfigManager.value); let configToEdit = $state(systemConfigManager.cloneValue()); diff --git a/web/src/lib/components/admin-settings/ImageSettings.svelte b/web/src/lib/components/admin-settings/ImageSettings.svelte index d63e48d372..afed6b3738 100644 --- a/web/src/lib/components/admin-settings/ImageSettings.svelte +++ b/web/src/lib/components/admin-settings/ImageSettings.svelte @@ -8,10 +8,11 @@ import SettingSwitch from '$lib/components/shared-components/settings/setting-switch.svelte'; import SettingButtonsRow from '$lib/components/shared-components/settings/SystemConfigButtonRow.svelte'; import { SettingInputFieldType } from '$lib/constants'; - import { featureFlags, systemConfigManager } from '$lib/stores/system-config-manager.svelte'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; + import { systemConfigManager } from '$lib/managers/system-config-manager.svelte'; import { t } from 'svelte-i18n'; - const disabled = $featureFlags.configFile; + const disabled = $derived(featureFlagsManager.value.configFile); const config = $derived(systemConfigManager.value); let configToEdit = $state(systemConfigManager.cloneValue()); diff --git a/web/src/lib/components/admin-settings/JobSettings.svelte b/web/src/lib/components/admin-settings/JobSettings.svelte index 5fd7b4117f..fb8a11b33b 100644 --- a/web/src/lib/components/admin-settings/JobSettings.svelte +++ b/web/src/lib/components/admin-settings/JobSettings.svelte @@ -2,13 +2,14 @@ import SettingButtonsRow from '$lib/components/shared-components/settings/SystemConfigButtonRow.svelte'; import SettingInputField from '$lib/components/shared-components/settings/setting-input-field.svelte'; import { SettingInputFieldType } from '$lib/constants'; - import { featureFlags, systemConfigManager } from '$lib/stores/system-config-manager.svelte'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; + import { systemConfigManager } from '$lib/managers/system-config-manager.svelte'; import { getJobName } from '$lib/utils'; import { JobName, type SystemConfigJobDto } from '@immich/sdk'; import { t } from 'svelte-i18n'; import { fade } from 'svelte/transition'; - const disabled = $featureFlags.configFile; + const disabled = $derived(featureFlagsManager.value.configFile); const config = $derived(systemConfigManager.value); let configToEdit = $state(systemConfigManager.cloneValue()); diff --git a/web/src/lib/components/admin-settings/LibrarySettings.svelte b/web/src/lib/components/admin-settings/LibrarySettings.svelte index 83fc3fdbed..a91a5eb97a 100644 --- a/web/src/lib/components/admin-settings/LibrarySettings.svelte +++ b/web/src/lib/components/admin-settings/LibrarySettings.svelte @@ -6,11 +6,12 @@ import SettingButtonsRow from '$lib/components/shared-components/settings/SystemConfigButtonRow.svelte'; import { SettingInputFieldType } from '$lib/constants'; import FormatMessage from '$lib/elements/FormatMessage.svelte'; - import { featureFlags, systemConfigManager } from '$lib/stores/system-config-manager.svelte'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; + import { systemConfigManager } from '$lib/managers/system-config-manager.svelte'; import { t } from 'svelte-i18n'; import { fade } from 'svelte/transition'; - const disabled = $featureFlags.configFile; + const disabled = $derived(featureFlagsManager.value.configFile); const config = $derived(systemConfigManager.value); let configToEdit = $state(systemConfigManager.cloneValue()); diff --git a/web/src/lib/components/admin-settings/LoggingSettings.svelte b/web/src/lib/components/admin-settings/LoggingSettings.svelte index 707689d502..6052b8ea9f 100644 --- a/web/src/lib/components/admin-settings/LoggingSettings.svelte +++ b/web/src/lib/components/admin-settings/LoggingSettings.svelte @@ -2,12 +2,13 @@ import SettingButtonsRow from '$lib/components/shared-components/settings/SystemConfigButtonRow.svelte'; import SettingSelect from '$lib/components/shared-components/settings/setting-select.svelte'; import SettingSwitch from '$lib/components/shared-components/settings/setting-switch.svelte'; - import { featureFlags, systemConfigManager } from '$lib/stores/system-config-manager.svelte'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; + import { systemConfigManager } from '$lib/managers/system-config-manager.svelte'; import { LogLevel } from '@immich/sdk'; import { t } from 'svelte-i18n'; import { fade } from 'svelte/transition'; - const disabled = $featureFlags.configFile; + const disabled = $derived(featureFlagsManager.value.configFile); const config = $derived(systemConfigManager.value); let configToEdit = $state(systemConfigManager.cloneValue()); diff --git a/web/src/lib/components/admin-settings/MachineLearningSettings.svelte b/web/src/lib/components/admin-settings/MachineLearningSettings.svelte index 773d30f05e..579efef916 100644 --- a/web/src/lib/components/admin-settings/MachineLearningSettings.svelte +++ b/web/src/lib/components/admin-settings/MachineLearningSettings.svelte @@ -6,14 +6,15 @@ import SettingButtonsRow from '$lib/components/shared-components/settings/SystemConfigButtonRow.svelte'; import { SettingInputFieldType } from '$lib/constants'; import FormatMessage from '$lib/elements/FormatMessage.svelte'; - import { featureFlags, systemConfigManager } from '$lib/stores/system-config-manager.svelte'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; + import { systemConfigManager } from '$lib/managers/system-config-manager.svelte'; import { Button, IconButton } from '@immich/ui'; import { mdiPlus, mdiTrashCanOutline } from '@mdi/js'; import { isEqual } from 'lodash-es'; import { t } from 'svelte-i18n'; import { fade } from 'svelte/transition'; - const disabled = $featureFlags.configFile; + const disabled = $derived(featureFlagsManager.value.configFile); const config = $derived(systemConfigManager.value); let configToEdit = $state(systemConfigManager.cloneValue()); @@ -167,7 +168,7 @@ min={0.001} max={0.1} description={$t('admin.machine_learning_max_detection_distance_description')} - disabled={disabled || !$featureFlags.duplicateDetection} + disabled={disabled || !featureFlagsManager.value.duplicateDetection} isEdited={configToEdit.machineLearning.duplicateDetection.maxDistance !== config.machineLearning.duplicateDetection.maxDistance} /> diff --git a/web/src/lib/components/admin-settings/MapSettings.svelte b/web/src/lib/components/admin-settings/MapSettings.svelte index 5ecb9f5419..692a5cfcf5 100644 --- a/web/src/lib/components/admin-settings/MapSettings.svelte +++ b/web/src/lib/components/admin-settings/MapSettings.svelte @@ -5,11 +5,12 @@ import SettingButtonsRow from '$lib/components/shared-components/settings/SystemConfigButtonRow.svelte'; import { SettingInputFieldType } from '$lib/constants'; import FormatMessage from '$lib/elements/FormatMessage.svelte'; - import { featureFlags, systemConfigManager } from '$lib/stores/system-config-manager.svelte'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; + import { systemConfigManager } from '$lib/managers/system-config-manager.svelte'; import { t } from 'svelte-i18n'; import { fade } from 'svelte/transition'; - const disabled = $featureFlags.configFile; + const disabled = $derived(featureFlagsManager.value.configFile); const config = $derived(systemConfigManager.value); let configToEdit = $state(systemConfigManager.cloneValue()); diff --git a/web/src/lib/components/admin-settings/MetadataSettings.svelte b/web/src/lib/components/admin-settings/MetadataSettings.svelte index 607faef51c..0db36e0e82 100644 --- a/web/src/lib/components/admin-settings/MetadataSettings.svelte +++ b/web/src/lib/components/admin-settings/MetadataSettings.svelte @@ -1,11 +1,12 @@ diff --git a/web/src/lib/components/admin-settings/NewVersionCheckSettings.svelte b/web/src/lib/components/admin-settings/NewVersionCheckSettings.svelte index 327bf34717..d8a79d6236 100644 --- a/web/src/lib/components/admin-settings/NewVersionCheckSettings.svelte +++ b/web/src/lib/components/admin-settings/NewVersionCheckSettings.svelte @@ -1,11 +1,12 @@ diff --git a/web/src/lib/components/admin-settings/NightlyTasksSettings.svelte b/web/src/lib/components/admin-settings/NightlyTasksSettings.svelte index 688c7cb4f0..9647f0c7c3 100644 --- a/web/src/lib/components/admin-settings/NightlyTasksSettings.svelte +++ b/web/src/lib/components/admin-settings/NightlyTasksSettings.svelte @@ -3,11 +3,12 @@ import SettingInputField from '$lib/components/shared-components/settings/setting-input-field.svelte'; import SettingSwitch from '$lib/components/shared-components/settings/setting-switch.svelte'; import { SettingInputFieldType } from '$lib/constants'; - import { featureFlags, systemConfigManager } from '$lib/stores/system-config-manager.svelte'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; + import { systemConfigManager } from '$lib/managers/system-config-manager.svelte'; import { t } from 'svelte-i18n'; import { fade } from 'svelte/transition'; - const disabled = $featureFlags.configFile; + const disabled = $derived(featureFlagsManager.value.configFile); const config = $derived(systemConfigManager.value); let configToEdit = $state(systemConfigManager.cloneValue()); diff --git a/web/src/lib/components/admin-settings/NotificationSettings.svelte b/web/src/lib/components/admin-settings/NotificationSettings.svelte index 0e0af55c4f..e97af356df 100644 --- a/web/src/lib/components/admin-settings/NotificationSettings.svelte +++ b/web/src/lib/components/admin-settings/NotificationSettings.svelte @@ -5,8 +5,9 @@ import SettingSwitch from '$lib/components/shared-components/settings/setting-switch.svelte'; import SettingButtonsRow from '$lib/components/shared-components/settings/SystemConfigButtonRow.svelte'; import { SettingInputFieldType } from '$lib/constants'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; + import { systemConfigManager } from '$lib/managers/system-config-manager.svelte'; import { handleSystemConfigSave } from '$lib/services/system-config.service'; - import { featureFlags, systemConfigManager } from '$lib/stores/system-config-manager.svelte'; import { user } from '$lib/stores/user.store'; import { handleError } from '$lib/utils/handle-error'; import { sendTestEmailAdmin } from '@immich/sdk'; @@ -14,7 +15,7 @@ import { t } from 'svelte-i18n'; import { fade } from 'svelte/transition'; - const disabled = $featureFlags.configFile; + const disabled = $derived(featureFlagsManager.value.configFile); const config = $derived(systemConfigManager.value); let configToEdit = $state(systemConfigManager.cloneValue()); diff --git a/web/src/lib/components/admin-settings/ServerSettings.svelte b/web/src/lib/components/admin-settings/ServerSettings.svelte index 4a04010cf3..936c4f406e 100644 --- a/web/src/lib/components/admin-settings/ServerSettings.svelte +++ b/web/src/lib/components/admin-settings/ServerSettings.svelte @@ -3,11 +3,12 @@ import SettingInputField from '$lib/components/shared-components/settings/setting-input-field.svelte'; import SettingSwitch from '$lib/components/shared-components/settings/setting-switch.svelte'; import { SettingInputFieldType } from '$lib/constants'; - import { featureFlags, systemConfigManager } from '$lib/stores/system-config-manager.svelte'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; + import { systemConfigManager } from '$lib/managers/system-config-manager.svelte'; import { t } from 'svelte-i18n'; import { fade } from 'svelte/transition'; - const disabled = $featureFlags.configFile; + const disabled = $derived(featureFlagsManager.value.configFile); const config = $derived(systemConfigManager.value); let configToEdit = $state(systemConfigManager.cloneValue()); diff --git a/web/src/lib/components/admin-settings/StorageTemplateSettings.svelte b/web/src/lib/components/admin-settings/StorageTemplateSettings.svelte index c445769ae0..3dbf697de1 100644 --- a/web/src/lib/components/admin-settings/StorageTemplateSettings.svelte +++ b/web/src/lib/components/admin-settings/StorageTemplateSettings.svelte @@ -7,8 +7,9 @@ import SettingSwitch from '$lib/components/shared-components/settings/setting-switch.svelte'; import { AppRoute, SettingInputFieldType } from '$lib/constants'; import FormatMessage from '$lib/elements/FormatMessage.svelte'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; + import { systemConfigManager } from '$lib/managers/system-config-manager.svelte'; import { handleSystemConfigSave } from '$lib/services/system-config.service'; - import { featureFlags, systemConfigManager } from '$lib/stores/system-config-manager.svelte'; import { user } from '$lib/stores/user.store'; import { getStorageTemplateOptions, type SystemConfigTemplateStorageOptionDto } from '@immich/sdk'; import { LoadingSpinner } from '@immich/ui'; @@ -27,7 +28,7 @@ const { minified = false, duration = 500, saveOnClose = false }: Props = $props(); - const disabled = $featureFlags.configFile; + const disabled = $derived(featureFlagsManager.value.configFile); const config = $derived(systemConfigManager.value); let configToEdit = $state(systemConfigManager.cloneValue()); diff --git a/web/src/lib/components/admin-settings/TemplateSettings.svelte b/web/src/lib/components/admin-settings/TemplateSettings.svelte index 6e64055879..7ef1bcde0d 100644 --- a/web/src/lib/components/admin-settings/TemplateSettings.svelte +++ b/web/src/lib/components/admin-settings/TemplateSettings.svelte @@ -2,8 +2,8 @@ import SettingAccordion from '$lib/components/shared-components/settings/setting-accordion.svelte'; import SettingTextarea from '$lib/components/shared-components/settings/setting-textarea.svelte'; import FormatMessage from '$lib/elements/FormatMessage.svelte'; + import { systemConfigManager } from '$lib/managers/system-config-manager.svelte'; import EmailTemplatePreviewModal from '$lib/modals/EmailTemplatePreviewModal.svelte'; - import { systemConfigManager } from '$lib/stores/system-config-manager.svelte'; import { handleError } from '$lib/utils/handle-error'; import { type SystemConfigDto, type SystemConfigTemplateEmailsDto, getNotificationTemplateAdmin } from '@immich/sdk'; import { Button, Icon, LoadingSpinner, modalManager } from '@immich/ui'; diff --git a/web/src/lib/components/admin-settings/ThemeSettings.svelte b/web/src/lib/components/admin-settings/ThemeSettings.svelte index 34c4246885..f2e9b51f11 100644 --- a/web/src/lib/components/admin-settings/ThemeSettings.svelte +++ b/web/src/lib/components/admin-settings/ThemeSettings.svelte @@ -1,11 +1,12 @@ diff --git a/web/src/lib/components/admin-settings/TrashSettings.svelte b/web/src/lib/components/admin-settings/TrashSettings.svelte index 5d811af841..9e71d0abc1 100644 --- a/web/src/lib/components/admin-settings/TrashSettings.svelte +++ b/web/src/lib/components/admin-settings/TrashSettings.svelte @@ -3,11 +3,12 @@ import SettingInputField from '$lib/components/shared-components/settings/setting-input-field.svelte'; import SettingSwitch from '$lib/components/shared-components/settings/setting-switch.svelte'; import { SettingInputFieldType } from '$lib/constants'; - import { featureFlags, systemConfigManager } from '$lib/stores/system-config-manager.svelte'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; + import { systemConfigManager } from '$lib/managers/system-config-manager.svelte'; import { t } from 'svelte-i18n'; import { fade } from 'svelte/transition'; - const disabled = $featureFlags.configFile; + const disabled = $derived(featureFlagsManager.value.configFile); const config = $derived(systemConfigManager.value); let configToEdit = $state(systemConfigManager.cloneValue()); diff --git a/web/src/lib/components/admin-settings/UserSettings.svelte b/web/src/lib/components/admin-settings/UserSettings.svelte index 3d91cff56a..23ea052b52 100644 --- a/web/src/lib/components/admin-settings/UserSettings.svelte +++ b/web/src/lib/components/admin-settings/UserSettings.svelte @@ -4,10 +4,11 @@ import SettingButtonsRow from '$lib/components/shared-components/settings/SystemConfigButtonRow.svelte'; import SettingInputField from '$lib/components/shared-components/settings/setting-input-field.svelte'; import { SettingInputFieldType } from '$lib/constants'; - import { featureFlags, systemConfigManager } from '$lib/stores/system-config-manager.svelte'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; + import { systemConfigManager } from '$lib/managers/system-config-manager.svelte'; import { t } from 'svelte-i18n'; - const disabled = $featureFlags.configFile; + const disabled = $derived(featureFlagsManager.value.configFile); const config = $derived(systemConfigManager.value); let configToEdit = $state(systemConfigManager.cloneValue()); diff --git a/web/src/lib/components/admin-settings/admin-settings.ts b/web/src/lib/components/admin-settings/admin-settings.ts deleted file mode 100644 index 6b0e70dee1..0000000000 --- a/web/src/lib/components/admin-settings/admin-settings.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { ResetOptions } from '$lib/utils/dipatch'; -import type { SystemConfigDto } from '@immich/sdk'; - -export type SettingsResetOptions = ResetOptions & { configKeys: Array }; diff --git a/web/src/lib/components/album-page/album-viewer.svelte b/web/src/lib/components/album-page/album-viewer.svelte index 7e882042cb..a7c9243e64 100644 --- a/web/src/lib/components/album-page/album-viewer.svelte +++ b/web/src/lib/components/album-page/album-viewer.svelte @@ -6,12 +6,12 @@ import SelectAllAssets from '$lib/components/timeline/actions/SelectAllAction.svelte'; import AssetSelectControlBar from '$lib/components/timeline/AssetSelectControlBar.svelte'; import Timeline from '$lib/components/timeline/Timeline.svelte'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; import { TimelineManager } from '$lib/managers/timeline-manager/timeline-manager.svelte'; import { handleDownloadAlbum } from '$lib/services/album.service'; import { AssetInteraction } from '$lib/stores/asset-interaction.svelte'; import { assetViewingStore } from '$lib/stores/asset-viewing.store'; import { dragAndDropFilesStore } from '$lib/stores/drag-and-drop-files.store'; - import { featureFlags } from '$lib/stores/system-config-manager.svelte'; import { handlePromiseError } from '$lib/utils'; import { cancelMultiselect } from '$lib/utils/asset-utils'; import { fileUploadHandler, openFileUploadDialog } from '$lib/utils/file-uploader'; @@ -126,7 +126,7 @@ icon={mdiDownload} /> {/if} - {#if sharedLink.showMetadata && $featureFlags.loaded && $featureFlags.map} + {#if sharedLink.showMetadata && featureFlagsManager.value.map} {/if} diff --git a/web/src/lib/components/asset-viewer/actions/delete-action.svelte b/web/src/lib/components/asset-viewer/actions/delete-action.svelte index 84be7f3a79..74d40c7cee 100644 --- a/web/src/lib/components/asset-viewer/actions/delete-action.svelte +++ b/web/src/lib/components/asset-viewer/actions/delete-action.svelte @@ -3,8 +3,8 @@ import DeleteAssetDialog from '$lib/components/photos-page/delete-asset-dialog.svelte'; import { AssetAction } from '$lib/constants'; import Portal from '$lib/elements/Portal.svelte'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; import { showDeleteModal } from '$lib/stores/preferences.store'; - import { featureFlags } from '$lib/stores/system-config-manager.svelte'; import { handleError } from '$lib/utils/handle-error'; import { toTimelineAsset } from '$lib/utils/timeline-util'; import { deleteAssets, type AssetResponseDto } from '@immich/sdk'; @@ -24,7 +24,7 @@ let showConfirmModal = $state(false); const trashOrDelete = async (force = false) => { - if (force || !$featureFlags.trash) { + if (force || !featureFlagsManager.value.trash) { if ($showDeleteModal) { showConfirmModal = true; return; diff --git a/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.spec.ts b/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.spec.ts index f6a46143bc..55231c11ae 100644 --- a/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.spec.ts +++ b/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.spec.ts @@ -32,6 +32,10 @@ describe('AssetViewerNavBar component', () => { 'ResizeObserver', vi.fn(() => ({ observe: vi.fn(), unobserve: vi.fn(), disconnect: vi.fn() })), ); + vi.mock(import('$lib/managers/feature-flags-manager.svelte'), () => { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + return { featureFlagsManager: { init: vi.fn(), loadFeatureFlags: vi.fn(), value: { smartSearch: true } } as any }; + }); }); afterEach(() => { diff --git a/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.svelte b/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.svelte index 6c66b47286..7daade6379 100644 --- a/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.svelte +++ b/web/src/lib/components/asset-viewer/asset-viewer-nav-bar.svelte @@ -24,8 +24,8 @@ import ButtonContextMenu from '$lib/components/shared-components/context-menu/button-context-menu.svelte'; import MenuOption from '$lib/components/shared-components/context-menu/menu-option.svelte'; import { AppRoute } from '$lib/constants'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; import { photoViewerImgElement } from '$lib/stores/assets-store.svelte'; - import { featureFlags } from '$lib/stores/system-config-manager.svelte'; import { user } from '$lib/stores/user.store'; import { photoZoomState } from '$lib/stores/zoom-image.store'; import { getAssetJobName, getSharedLink } from '$lib/utils'; @@ -108,7 +108,7 @@ let isOwner = $derived($user && asset.ownerId === $user?.id); let showDownloadButton = $derived(sharedLink ? sharedLink.allowDownload : !asset.isOffline); let isLocked = $derived(asset.visibility === AssetVisibility.Locked); - let smartSearchEnabled = $derived($featureFlags.loaded && $featureFlags.smartSearch); + let smartSearchEnabled = $derived(featureFlagsManager.value.smartSearch); // $: showEditorButton = // isOwner && diff --git a/web/src/lib/components/asset-viewer/detail-panel.svelte b/web/src/lib/components/asset-viewer/detail-panel.svelte index 51c3098356..a9c447e498 100644 --- a/web/src/lib/components/asset-viewer/detail-panel.svelte +++ b/web/src/lib/components/asset-viewer/detail-panel.svelte @@ -7,11 +7,11 @@ import DetailPanelTags from '$lib/components/asset-viewer/detail-panel-tags.svelte'; import { AppRoute, QueryParameter, timeToLoadTheMap } from '$lib/constants'; import { authManager } from '$lib/managers/auth-manager.svelte'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; import AssetChangeDateModal from '$lib/modals/AssetChangeDateModal.svelte'; import { isFaceEditMode } from '$lib/stores/face-edit.svelte'; import { boundingBoxesArray } from '$lib/stores/people.store'; import { locale } from '$lib/stores/preferences.store'; - import { featureFlags } from '$lib/stores/system-config-manager.svelte'; import { preferences, user } from '$lib/stores/user.store'; import { getAssetThumbnailUrl, getPeopleThumbnailUrl } from '$lib/utils'; import { delay, getDimensions } from '$lib/utils/asset-utils'; @@ -438,7 +438,7 @@
-{#if latlng && $featureFlags.loaded && $featureFlags.map} +{#if latlng && featureFlagsManager.value.map}
{#await import('$lib/components/shared-components/map/map.svelte')} {#await delay(timeToLoadTheMap) then} diff --git a/web/src/lib/components/jobs/JobsPanel.svelte b/web/src/lib/components/jobs/JobsPanel.svelte index f9a4e5a735..e204c76648 100644 --- a/web/src/lib/components/jobs/JobsPanel.svelte +++ b/web/src/lib/components/jobs/JobsPanel.svelte @@ -1,5 +1,5 @@
diff --git a/web/src/lib/components/onboarding-page/onboarding-server-privacy.svelte b/web/src/lib/components/onboarding-page/onboarding-server-privacy.svelte index c7e5e6a71e..c299d0bc35 100644 --- a/web/src/lib/components/onboarding-page/onboarding-server-privacy.svelte +++ b/web/src/lib/components/onboarding-page/onboarding-server-privacy.svelte @@ -1,7 +1,7 @@ -{#if $featureFlags.loaded && $featureFlags.map} +{#if featureFlagsManager.value.map}
{#await import('$lib/components/shared-components/map/map.svelte')} diff --git a/web/src/routes/(user)/map/[[photos=photos]]/[[assetId=id]]/+page.ts b/web/src/routes/(user)/map/[[photos=photos]]/[[assetId=id]]/+page.ts index add9882bcd..e797c4d8b6 100644 --- a/web/src/routes/(user)/map/[[photos=photos]]/[[assetId=id]]/+page.ts +++ b/web/src/routes/(user)/map/[[photos=photos]]/[[assetId=id]]/+page.ts @@ -1,3 +1,7 @@ +import { goto } from '$app/navigation'; +import { AppRoute } from '$lib/constants'; +import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; +import { handlePromiseError } from '$lib/utils'; import { authenticate } from '$lib/utils/auth'; import { getFormatter } from '$lib/utils/i18n'; import { getAssetInfoFromParam } from '$lib/utils/navigation'; @@ -8,6 +12,10 @@ export const load = (async ({ params, url }) => { const asset = await getAssetInfoFromParam(params); const $t = await getFormatter(); + if (!featureFlagsManager.value.map) { + handlePromiseError(goto(AppRoute.PHOTOS)); + } + return { asset, meta: { diff --git a/web/src/routes/(user)/search/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/search/[[photos=photos]]/[[assetId=id]]/+page.svelte index b1cbe51392..97964344ef 100644 --- a/web/src/routes/(user)/search/[[photos=photos]]/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/search/[[photos=photos]]/[[assetId=id]]/+page.svelte @@ -21,11 +21,11 @@ import TagAction from '$lib/components/timeline/actions/TagAction.svelte'; import AssetSelectControlBar from '$lib/components/timeline/AssetSelectControlBar.svelte'; import { AppRoute, QueryParameter } from '$lib/constants'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; import type { TimelineAsset, Viewport } from '$lib/managers/timeline-manager/types'; import { AssetInteraction } from '$lib/stores/asset-interaction.svelte'; import { assetViewingStore } from '$lib/stores/asset-viewing.store'; import { lang, locale } from '$lib/stores/preferences.store'; - import { featureFlags } from '$lib/stores/system-config-manager.svelte'; import { preferences } from '$lib/stores/user.store'; import { handlePromiseError } from '$lib/utils'; import { cancelMultiselect } from '$lib/utils/asset-utils'; @@ -67,7 +67,7 @@ type SearchTerms = MetadataSearchDto & Pick; let searchQuery = $derived(page.url.searchParams.get(QueryParameter.QUERY)); - let smartSearchEnabled = $derived($featureFlags.loaded && $featureFlags.smartSearch); + let smartSearchEnabled = $derived(featureFlagsManager.value.smartSearch); let terms = $derived(searchQuery ? JSON.parse(searchQuery) : {}); $effect(() => { diff --git a/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.svelte index 87eb4eb70c..99aad49285 100644 --- a/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.svelte @@ -1,5 +1,4 @@ -{#if $featureFlags.loaded && $featureFlags.trash} +{#if featureFlagsManager.value.trash} {#snippet buttons()} @@ -105,7 +99,9 @@

- {$t('trashed_items_will_be_permanently_deleted_after', { values: { days: $serverConfig.trashDays } })} + {$t('trashed_items_will_be_permanently_deleted_after', { + values: { days: serverConfigManager.value.trashDays }, + })}

{#snippet empty()} diff --git a/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.ts b/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.ts index 79c41892c7..eddf9aa6af 100644 --- a/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.ts +++ b/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.ts @@ -1,3 +1,7 @@ +import { goto } from '$app/navigation'; +import { AppRoute } from '$lib/constants'; +import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; +import { handlePromiseError } from '$lib/utils'; import { authenticate } from '$lib/utils/auth'; import { getFormatter } from '$lib/utils/i18n'; import { getAssetInfoFromParam } from '$lib/utils/navigation'; @@ -8,6 +12,10 @@ export const load = (async ({ params, url }) => { const asset = await getAssetInfoFromParam(params); const $t = await getFormatter(); + if (!featureFlagsManager.value.trash) { + handlePromiseError(goto(AppRoute.PHOTOS)); + } + return { asset, meta: { diff --git a/web/src/routes/(user)/utilities/duplicates/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/utilities/duplicates/[[photos=photos]]/[[assetId=id]]/+page.svelte index 8bb99895af..c6943c6491 100644 --- a/web/src/routes/(user)/utilities/duplicates/[[photos=photos]]/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/utilities/duplicates/[[photos=photos]]/[[assetId=id]]/+page.svelte @@ -5,11 +5,11 @@ import UserPageLayout from '$lib/components/layouts/user-page-layout.svelte'; import DuplicatesCompareControl from '$lib/components/utilities-page/duplicates/duplicates-compare-control.svelte'; import { AppRoute } from '$lib/constants'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; import DuplicatesInformationModal from '$lib/modals/DuplicatesInformationModal.svelte'; import ShortcutsModal from '$lib/modals/ShortcutsModal.svelte'; import { assetViewingStore } from '$lib/stores/asset-viewing.store'; import { locale } from '$lib/stores/preferences.store'; - import { featureFlags } from '$lib/stores/system-config-manager.svelte'; import { stackAssets } from '$lib/utils/asset-utils'; import { suggestDuplicate } from '$lib/utils/duplicate-utils'; import { handleError } from '$lib/utils/handle-error'; @@ -92,7 +92,7 @@ return; } - const message = $featureFlags.trash + const message = featureFlagsManager.value.trash ? $t('assets_moved_to_trash_count', { values: { count: trashedCount } }) : $t('permanently_deleted_assets_count', { values: { count: trashedCount } }); toastManager.success(message); @@ -101,7 +101,7 @@ const handleResolve = async (duplicateId: string, duplicateAssetIds: string[], trashIds: string[]) => { return withConfirmation( async () => { - await deleteAssets({ assetBulkDeleteDto: { ids: trashIds, force: !$featureFlags.trash } }); + await deleteAssets({ assetBulkDeleteDto: { ids: trashIds, force: !featureFlagsManager.value.trash } }); await updateAssets({ assetBulkUpdateDto: { ids: duplicateAssetIds, duplicateId: null } }); duplicates = duplicates.filter((duplicate) => duplicate.duplicateId !== duplicateId); @@ -109,8 +109,8 @@ deletedNotification(trashIds.length); await correctDuplicatesIndexAndGo(duplicatesIndex); }, - trashIds.length > 0 && !$featureFlags.trash ? $t('delete_duplicates_confirmation') : undefined, - trashIds.length > 0 && !$featureFlags.trash ? $t('permanently_delete') : undefined, + trashIds.length > 0 && !featureFlagsManager.value.trash ? $t('delete_duplicates_confirmation') : undefined, + trashIds.length > 0 && !featureFlagsManager.value.trash ? $t('permanently_delete') : undefined, ); }; @@ -129,7 +129,7 @@ ); let prompt, confirmText; - if ($featureFlags.trash) { + if (featureFlagsManager.value.trash) { prompt = $t('bulk_trash_duplicates_confirmation', { values: { count: idsToDelete.length } }); confirmText = $t('confirm'); } else { @@ -139,7 +139,7 @@ return withConfirmation( async () => { - await deleteAssets({ assetBulkDeleteDto: { ids: idsToDelete, force: !$featureFlags.trash } }); + await deleteAssets({ assetBulkDeleteDto: { ids: idsToDelete, force: !featureFlagsManager.value.trash } }); await updateAssets({ assetBulkUpdateDto: { ids: [...idsToDelete, ...idsToKeep.filter((id): id is string => !!id)], diff --git a/web/src/routes/+layout.svelte b/web/src/routes/+layout.svelte index a52f51210f..8b63017c19 100644 --- a/web/src/routes/+layout.svelte +++ b/web/src/routes/+layout.svelte @@ -8,8 +8,8 @@ import NavigationLoadingBar from '$lib/components/shared-components/navigation-loading-bar.svelte'; import UploadPanel from '$lib/components/shared-components/upload-panel.svelte'; import { eventManager } from '$lib/managers/event-manager.svelte'; + import { serverConfigManager } from '$lib/managers/server-config-manager.svelte'; import VersionAnnouncementModal from '$lib/modals/VersionAnnouncementModal.svelte'; - import { serverConfig } from '$lib/stores/system-config-manager.svelte'; import { user } from '$lib/stores/user.store'; import { closeWebsocketConnection, @@ -120,7 +120,10 @@ {#if page.data.meta.imageUrl} {/if} @@ -131,7 +134,10 @@ {#if page.data.meta.imageUrl} {/if} {/if} diff --git a/web/src/routes/+page.ts b/web/src/routes/+page.ts index f617c2a03e..bd6d1a62da 100644 --- a/web/src/routes/+page.ts +++ b/web/src/routes/+page.ts @@ -1,10 +1,8 @@ import { AppRoute } from '$lib/constants'; -import { serverConfig } from '$lib/stores/system-config-manager.svelte'; +import { serverConfigManager } from '$lib/managers/server-config-manager.svelte'; import { getFormatter } from '$lib/utils/i18n'; import { init } from '$lib/utils/server'; - import { redirect } from '@sveltejs/kit'; -import { get } from 'svelte/store'; import { loadUser } from '../lib/utils/auth'; import type { PageLoad } from './$types'; @@ -19,8 +17,7 @@ export const load = (async ({ fetch }) => { redirect(302, AppRoute.PHOTOS); } - const { isInitialized } = get(serverConfig); - if (isInitialized) { + if (serverConfigManager.value.isInitialized) { // Redirect to login page if there exists an admin account (i.e. server is initialized) redirect(302, AppRoute.AUTH_LOGIN); } diff --git a/web/src/routes/admin/+layout.ts b/web/src/routes/admin/+layout.ts index 885e57b05e..778e5f182f 100644 --- a/web/src/routes/admin/+layout.ts +++ b/web/src/routes/admin/+layout.ts @@ -1,4 +1,4 @@ -import { systemConfigManager } from '$lib/stores/system-config-manager.svelte'; +import { systemConfigManager } from '$lib/managers/system-config-manager.svelte'; import type { LayoutLoad } from './$types'; export const load = (async () => { diff --git a/web/src/routes/admin/system-settings/+page.svelte b/web/src/routes/admin/system-settings/+page.svelte index 179350ef6b..3f3d9a4f83 100644 --- a/web/src/routes/admin/system-settings/+page.svelte +++ b/web/src/routes/admin/system-settings/+page.svelte @@ -23,8 +23,9 @@ import SettingAccordion from '$lib/components/shared-components/settings/setting-accordion.svelte'; import { QueryParameter } from '$lib/constants'; import SearchBar from '$lib/elements/SearchBar.svelte'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; + import { systemConfigManager } from '$lib/managers/system-config-manager.svelte'; import { getSystemConfigActions } from '$lib/services/system-config.service'; - import { featureFlags, systemConfigManager } from '$lib/stores/system-config-manager.svelte'; import { Alert, HStack } from '@immich/ui'; import { mdiAccountOutline, @@ -201,7 +202,7 @@ ); const { CopyToClipboard, Upload, Download } = $derived( - getSystemConfigActions($t, $featureFlags, systemConfigManager.value), + getSystemConfigActions($t, featureFlagsManager.value, systemConfigManager.value), ); @@ -219,7 +220,7 @@
- {#if $featureFlags.configFile} + {#if featureFlagsManager.value.configFile} {/if}
diff --git a/web/src/routes/auth/login/+page.svelte b/web/src/routes/auth/login/+page.svelte index 2943dc1e07..88a557f845 100644 --- a/web/src/routes/auth/login/+page.svelte +++ b/web/src/routes/auth/login/+page.svelte @@ -3,7 +3,8 @@ import AuthPageLayout from '$lib/components/layouts/AuthPageLayout.svelte'; import { AppRoute } from '$lib/constants'; import { eventManager } from '$lib/managers/event-manager.svelte'; - import { featureFlags, serverConfig } from '$lib/stores/system-config-manager.svelte'; + import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; + import { serverConfigManager } from '$lib/managers/server-config-manager.svelte'; import { oauth } from '$lib/utils'; import { getServerErrorMessage, handleError } from '$lib/utils/handle-error'; import { login, type LoginResponseDto } from '@immich/sdk'; @@ -25,6 +26,8 @@ let loading = $state(false); let oauthLoading = $state(true); + const serverConfig = $derived(serverConfigManager.value); + const onSuccess = async (user: LoginResponseDto) => { await goto(data.continueUrl, { invalidateAll: true }); eventManager.emit('AuthLogin', user); @@ -34,7 +37,7 @@ const onOnboarding = () => goto(AppRoute.AUTH_ONBOARDING); onMount(async () => { - if (!$featureFlags.oauth) { + if (!featureFlagsManager.value.oauth) { oauthLoading = false; return; } @@ -60,7 +63,7 @@ try { if ( - ($featureFlags.oauthAutoLaunch && !oauth.isAutoLaunchDisabled(globalThis.location)) || + (featureFlagsManager.value.oauthAutoLaunch && !oauth.isAutoLaunchDisabled(globalThis.location)) || oauth.isAutoLaunchEnabled(globalThis.location) ) { await goto(`${AppRoute.AUTH_LOGIN}?autoLaunch=0`, { replaceState: true }); @@ -80,7 +83,7 @@ loading = true; const user = await login({ loginCredentialDto: { email, password } }); - if (user.isAdmin && !$serverConfig.isOnboarded) { + if (user.isAdmin && !serverConfig.isOnboarded) { await onOnboarding(); return; } @@ -123,64 +126,62 @@ }; -{#if $featureFlags.loaded} - - - {#if $serverConfig.loginPageMessage} - - - {@html $serverConfig.loginPageMessage} - - {/if} + + + {#if serverConfig.loginPageMessage} + + + {@html serverConfig.loginPageMessage} + + {/if} - {#if !oauthLoading && $featureFlags.passwordLogin} -
- {#if errorMessage} - - {/if} - - - - - - - - - - - - {/if} - - {#if $featureFlags.oauth} - {#if $featureFlags.passwordLogin} -
-
- - {$t('or')} - -
+ {#if !oauthLoading && featureFlagsManager.value.passwordLogin} +
+ {#if errorMessage} + {/if} - {#if oauthError} - - {/if} - - {/if} - {#if !$featureFlags.passwordLogin && !$featureFlags.oauth} - + + + + + + + + + + + {/if} + + {#if featureFlagsManager.value.oauth} + {#if featureFlagsManager.value.passwordLogin} +
+
+ + {$t('or')} + +
{/if} -
-
-{/if} + {#if oauthError} + + {/if} + + {/if} + + {#if !featureFlagsManager.value.passwordLogin && !featureFlagsManager.value.oauth} + + {/if} +
+
diff --git a/web/src/routes/auth/login/+page.ts b/web/src/routes/auth/login/+page.ts index ddf5b43fb9..5577ab1a7e 100644 --- a/web/src/routes/auth/login/+page.ts +++ b/web/src/routes/auth/login/+page.ts @@ -1,16 +1,13 @@ import { AppRoute } from '$lib/constants'; -import { serverConfig } from '$lib/stores/system-config-manager.svelte'; +import { serverConfigManager } from '$lib/managers/server-config-manager.svelte'; import { getFormatter } from '$lib/utils/i18n'; - import { redirect } from '@sveltejs/kit'; -import { get } from 'svelte/store'; import type { PageLoad } from './$types'; export const load = (async ({ parent, url }) => { await parent(); - const { isInitialized } = get(serverConfig); - if (!isInitialized) { + if (!serverConfigManager.value.isInitialized) { // Admin not registered redirect(302, AppRoute.AUTH_REGISTER); } diff --git a/web/src/routes/auth/onboarding/+page.svelte b/web/src/routes/auth/onboarding/+page.svelte index 9275fb95c1..44cd97637a 100644 --- a/web/src/routes/auth/onboarding/+page.svelte +++ b/web/src/routes/auth/onboarding/+page.svelte @@ -11,8 +11,9 @@ import OnboardingTheme from '$lib/components/onboarding-page/onboarding-theme.svelte'; import OnboardingUserPrivacy from '$lib/components/onboarding-page/onboarding-user-privacy.svelte'; import { AppRoute, QueryParameter } from '$lib/constants'; + import { serverConfigManager } from '$lib/managers/server-config-manager.svelte'; + import { systemConfigManager } from '$lib/managers/system-config-manager.svelte'; import { OnboardingRole } from '$lib/models/onboarding-role'; - import { retrieveServerConfig, serverConfig, systemConfigManager } from '$lib/stores/system-config-manager.svelte'; import { user } from '$lib/stores/user.store'; import { setUserOnboarding, updateAdminOnboarding } from '@immich/sdk'; import { @@ -95,7 +96,9 @@ ]); let index = $state(0); - let userRole = $derived($user.isAdmin && !$serverConfig.isOnboarded ? OnboardingRole.SERVER : OnboardingRole.USER); + let userRole = $derived( + $user.isAdmin && !serverConfigManager.value.isOnboarded ? OnboardingRole.SERVER : OnboardingRole.USER, + ); let onboardingStepCount = $derived(onboardingSteps.filter((step) => shouldRunStep(step.role, userRole)).length); let onboardingProgress = $derived( @@ -105,7 +108,9 @@ const shouldRunStep = (stepRole: OnboardingRole, userRole: OnboardingRole) => { return ( stepRole === OnboardingRole.USER || - (stepRole === OnboardingRole.SERVER && userRole === OnboardingRole.SERVER && !$serverConfig.isOnboarded) + (stepRole === OnboardingRole.SERVER && + userRole === OnboardingRole.SERVER && + !serverConfigManager.value.isOnboarded) ); }; @@ -127,7 +132,7 @@ if (nextStepIndex == -1) { if ($user.isAdmin) { await updateAdminOnboarding({ adminOnboardingUpdateDto: { isOnboarded: true } }); - await retrieveServerConfig(); + await serverConfigManager.loadServerConfig(); } await setUserOnboarding({ diff --git a/web/src/routes/auth/register/+page.svelte b/web/src/routes/auth/register/+page.svelte index affa5f816c..e78f782841 100644 --- a/web/src/routes/auth/register/+page.svelte +++ b/web/src/routes/auth/register/+page.svelte @@ -2,7 +2,7 @@ import { goto } from '$app/navigation'; import AuthPageLayout from '$lib/components/layouts/AuthPageLayout.svelte'; import { AppRoute } from '$lib/constants'; - import { retrieveServerConfig } from '$lib/stores/system-config-manager.svelte'; + import { serverConfigManager } from '$lib/managers/server-config-manager.svelte'; import { handleError } from '$lib/utils/handle-error'; import { signUpAdmin } from '@immich/sdk'; import { Alert, Button, Field, Input, PasswordInput, Text } from '@immich/ui'; @@ -37,7 +37,7 @@ try { await signUpAdmin({ signUpDto: { email, password, name } }); - await retrieveServerConfig(); + await serverConfigManager.loadServerConfig(); await goto(AppRoute.AUTH_LOGIN); } catch (error) { handleError(error, $t('errors.unable_to_create_admin_account')); diff --git a/web/src/routes/auth/register/+page.ts b/web/src/routes/auth/register/+page.ts index 30969c3167..344a37738c 100644 --- a/web/src/routes/auth/register/+page.ts +++ b/web/src/routes/auth/register/+page.ts @@ -1,14 +1,12 @@ import { AppRoute } from '$lib/constants'; -import { serverConfig } from '$lib/stores/system-config-manager.svelte'; +import { serverConfigManager } from '$lib/managers/server-config-manager.svelte'; import { getFormatter } from '$lib/utils/i18n'; import { redirect } from '@sveltejs/kit'; -import { get } from 'svelte/store'; import type { PageLoad } from './$types'; export const load = (async ({ parent }) => { await parent(); - const { isInitialized } = get(serverConfig); - if (isInitialized) { + if (serverConfigManager.value.isInitialized) { // Admin has been registered, redirect to login redirect(302, AppRoute.AUTH_LOGIN); } From d784d431d058cd3227eb6b41a5d2f0e22ad5fa03 Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Fri, 14 Nov 2025 14:42:00 -0500 Subject: [PATCH 071/300] refactor: job vs queue naming (#23902) --- e2e/src/api/specs/jobs.e2e-spec.ts | 86 ++--- e2e/src/api/specs/user-admin.e2e-spec.ts | 4 +- e2e/src/utils.ts | 20 +- mobile/openapi/README.md | 16 +- mobile/openapi/lib/api.dart | 12 +- mobile/openapi/lib/api/jobs_api.dart | 30 +- mobile/openapi/lib/api_client.dart | 24 +- mobile/openapi/lib/api_helper.dart | 12 +- mobile/openapi/lib/model/job_command.dart | 94 ----- mobile/openapi/lib/model/job_name.dart | 127 ------- mobile/openapi/lib/model/queue_command.dart | 94 +++++ ...ommand_dto.dart => queue_command_dto.dart} | 42 +-- mobile/openapi/lib/model/queue_name.dart | 127 +++++++ ...tatus_dto.dart => queue_response_dto.dart} | 42 +-- ...nts_dto.dart => queue_statistics_dto.dart} | 38 +- ...onse_dto.dart => queues_response_dto.dart} | 102 ++--- open-api/immich-openapi-specs.json | 348 +++++++++--------- open-api/typescript-sdk/src/fetch-client.ts | 64 ++-- server/src/app.module.ts | 12 +- server/src/controllers/job.controller.ts | 19 +- server/src/dtos/job.dto.ts | 96 +---- server/src/dtos/queue.dto.ts | 94 +++++ server/src/enum.ts | 2 +- server/src/services/api.service.ts | 2 - server/src/services/index.ts | 2 + server/src/services/job.service.spec.ts | 207 +---------- server/src/services/job.service.ts | 252 +------------ server/src/services/queue.service.spec.ts | 223 +++++++++++ server/src/services/queue.service.ts | 250 +++++++++++++ .../admin-settings/JobSettings.svelte | 40 +- web/src/lib/components/jobs/JobTile.svelte | 38 +- web/src/lib/components/jobs/JobsPanel.svelte | 86 +++-- web/src/lib/utils.ts | 42 +-- web/src/routes/admin/jobs-status/+page.svelte | 22 +- web/src/routes/admin/jobs-status/+page.ts | 4 +- .../admin/library-management/+page.svelte | 8 +- 36 files changed, 1356 insertions(+), 1325 deletions(-) delete mode 100644 mobile/openapi/lib/model/job_command.dart delete mode 100644 mobile/openapi/lib/model/job_name.dart create mode 100644 mobile/openapi/lib/model/queue_command.dart rename mobile/openapi/lib/model/{job_command_dto.dart => queue_command_dto.dart} (66%) create mode 100644 mobile/openapi/lib/model/queue_name.dart rename mobile/openapi/lib/model/{job_status_dto.dart => queue_response_dto.dart} (62%) rename mobile/openapi/lib/model/{job_counts_dto.dart => queue_statistics_dto.dart} (70%) rename mobile/openapi/lib/model/{all_job_status_response_dto.dart => queues_response_dto.dart} (57%) create mode 100644 server/src/dtos/queue.dto.ts create mode 100644 server/src/services/queue.service.spec.ts create mode 100644 server/src/services/queue.service.ts diff --git a/e2e/src/api/specs/jobs.e2e-spec.ts b/e2e/src/api/specs/jobs.e2e-spec.ts index a9afd8475f..be7984404b 100644 --- a/e2e/src/api/specs/jobs.e2e-spec.ts +++ b/e2e/src/api/specs/jobs.e2e-spec.ts @@ -1,4 +1,4 @@ -import { JobCommand, JobName, LoginResponseDto, updateConfig } from '@immich/sdk'; +import { LoginResponseDto, QueueCommand, QueueName, updateConfig } from '@immich/sdk'; import { cpSync, rmSync } from 'node:fs'; import { readFile } from 'node:fs/promises'; import { basename } from 'node:path'; @@ -17,28 +17,28 @@ describe('/jobs', () => { describe('PUT /jobs', () => { afterEach(async () => { - await utils.jobCommand(admin.accessToken, JobName.MetadataExtraction, { - command: JobCommand.Resume, + await utils.queueCommand(admin.accessToken, QueueName.MetadataExtraction, { + command: QueueCommand.Resume, force: false, }); - await utils.jobCommand(admin.accessToken, JobName.ThumbnailGeneration, { - command: JobCommand.Resume, + await utils.queueCommand(admin.accessToken, QueueName.ThumbnailGeneration, { + command: QueueCommand.Resume, force: false, }); - await utils.jobCommand(admin.accessToken, JobName.FaceDetection, { - command: JobCommand.Resume, + await utils.queueCommand(admin.accessToken, QueueName.FaceDetection, { + command: QueueCommand.Resume, force: false, }); - await utils.jobCommand(admin.accessToken, JobName.SmartSearch, { - command: JobCommand.Resume, + await utils.queueCommand(admin.accessToken, QueueName.SmartSearch, { + command: QueueCommand.Resume, force: false, }); - await utils.jobCommand(admin.accessToken, JobName.DuplicateDetection, { - command: JobCommand.Resume, + await utils.queueCommand(admin.accessToken, QueueName.DuplicateDetection, { + command: QueueCommand.Resume, force: false, }); @@ -59,8 +59,8 @@ describe('/jobs', () => { it('should queue metadata extraction for missing assets', async () => { const path = `${testAssetDir}/formats/raw/Nikon/D700/philadelphia.nef`; - await utils.jobCommand(admin.accessToken, JobName.MetadataExtraction, { - command: JobCommand.Pause, + await utils.queueCommand(admin.accessToken, QueueName.MetadataExtraction, { + command: QueueCommand.Pause, force: false, }); @@ -77,20 +77,20 @@ describe('/jobs', () => { expect(asset.exifInfo?.make).toBeNull(); } - await utils.jobCommand(admin.accessToken, JobName.MetadataExtraction, { - command: JobCommand.Empty, + await utils.queueCommand(admin.accessToken, QueueName.MetadataExtraction, { + command: QueueCommand.Empty, force: false, }); await utils.waitForQueueFinish(admin.accessToken, 'metadataExtraction'); - await utils.jobCommand(admin.accessToken, JobName.MetadataExtraction, { - command: JobCommand.Resume, + await utils.queueCommand(admin.accessToken, QueueName.MetadataExtraction, { + command: QueueCommand.Resume, force: false, }); - await utils.jobCommand(admin.accessToken, JobName.MetadataExtraction, { - command: JobCommand.Start, + await utils.queueCommand(admin.accessToken, QueueName.MetadataExtraction, { + command: QueueCommand.Start, force: false, }); @@ -124,8 +124,8 @@ describe('/jobs', () => { cpSync(`${testAssetDir}/formats/raw/Nikon/D80/glarus.nef`, path); - await utils.jobCommand(admin.accessToken, JobName.MetadataExtraction, { - command: JobCommand.Start, + await utils.queueCommand(admin.accessToken, QueueName.MetadataExtraction, { + command: QueueCommand.Start, force: false, }); @@ -144,8 +144,8 @@ describe('/jobs', () => { it('should queue thumbnail extraction for assets missing thumbs', async () => { const path = `${testAssetDir}/albums/nature/tanners_ridge.jpg`; - await utils.jobCommand(admin.accessToken, JobName.ThumbnailGeneration, { - command: JobCommand.Pause, + await utils.queueCommand(admin.accessToken, QueueName.ThumbnailGeneration, { + command: QueueCommand.Pause, force: false, }); @@ -153,32 +153,32 @@ describe('/jobs', () => { assetData: { bytes: await readFile(path), filename: basename(path) }, }); - await utils.waitForQueueFinish(admin.accessToken, JobName.MetadataExtraction); - await utils.waitForQueueFinish(admin.accessToken, JobName.ThumbnailGeneration); + await utils.waitForQueueFinish(admin.accessToken, QueueName.MetadataExtraction); + await utils.waitForQueueFinish(admin.accessToken, QueueName.ThumbnailGeneration); const assetBefore = await utils.getAssetInfo(admin.accessToken, id); expect(assetBefore.thumbhash).toBeNull(); - await utils.jobCommand(admin.accessToken, JobName.ThumbnailGeneration, { - command: JobCommand.Empty, + await utils.queueCommand(admin.accessToken, QueueName.ThumbnailGeneration, { + command: QueueCommand.Empty, force: false, }); - await utils.waitForQueueFinish(admin.accessToken, JobName.MetadataExtraction); - await utils.waitForQueueFinish(admin.accessToken, JobName.ThumbnailGeneration); + await utils.waitForQueueFinish(admin.accessToken, QueueName.MetadataExtraction); + await utils.waitForQueueFinish(admin.accessToken, QueueName.ThumbnailGeneration); - await utils.jobCommand(admin.accessToken, JobName.ThumbnailGeneration, { - command: JobCommand.Resume, + await utils.queueCommand(admin.accessToken, QueueName.ThumbnailGeneration, { + command: QueueCommand.Resume, force: false, }); - await utils.jobCommand(admin.accessToken, JobName.ThumbnailGeneration, { - command: JobCommand.Start, + await utils.queueCommand(admin.accessToken, QueueName.ThumbnailGeneration, { + command: QueueCommand.Start, force: false, }); - await utils.waitForQueueFinish(admin.accessToken, JobName.MetadataExtraction); - await utils.waitForQueueFinish(admin.accessToken, JobName.ThumbnailGeneration); + await utils.waitForQueueFinish(admin.accessToken, QueueName.MetadataExtraction); + await utils.waitForQueueFinish(admin.accessToken, QueueName.ThumbnailGeneration); const assetAfter = await utils.getAssetInfo(admin.accessToken, id); expect(assetAfter.thumbhash).not.toBeNull(); @@ -193,26 +193,26 @@ describe('/jobs', () => { assetData: { bytes: await readFile(path), filename: basename(path) }, }); - await utils.waitForQueueFinish(admin.accessToken, JobName.MetadataExtraction); - await utils.waitForQueueFinish(admin.accessToken, JobName.ThumbnailGeneration); + await utils.waitForQueueFinish(admin.accessToken, QueueName.MetadataExtraction); + await utils.waitForQueueFinish(admin.accessToken, QueueName.ThumbnailGeneration); const assetBefore = await utils.getAssetInfo(admin.accessToken, id); cpSync(`${testAssetDir}/albums/nature/notocactus_minimus.jpg`, path); - await utils.jobCommand(admin.accessToken, JobName.ThumbnailGeneration, { - command: JobCommand.Resume, + await utils.queueCommand(admin.accessToken, QueueName.ThumbnailGeneration, { + command: QueueCommand.Resume, force: false, }); // This runs the missing thumbnail job - await utils.jobCommand(admin.accessToken, JobName.ThumbnailGeneration, { - command: JobCommand.Start, + await utils.queueCommand(admin.accessToken, QueueName.ThumbnailGeneration, { + command: QueueCommand.Start, force: false, }); - await utils.waitForQueueFinish(admin.accessToken, JobName.MetadataExtraction); - await utils.waitForQueueFinish(admin.accessToken, JobName.ThumbnailGeneration); + await utils.waitForQueueFinish(admin.accessToken, QueueName.MetadataExtraction); + await utils.waitForQueueFinish(admin.accessToken, QueueName.ThumbnailGeneration); const assetAfter = await utils.getAssetInfo(admin.accessToken, id); diff --git a/e2e/src/api/specs/user-admin.e2e-spec.ts b/e2e/src/api/specs/user-admin.e2e-spec.ts index 2d6e08b5fb..793c508a36 100644 --- a/e2e/src/api/specs/user-admin.e2e-spec.ts +++ b/e2e/src/api/specs/user-admin.e2e-spec.ts @@ -1,6 +1,6 @@ import { - JobName, LoginResponseDto, + QueueName, createStack, deleteUserAdmin, getMyUser, @@ -328,7 +328,7 @@ describe('/admin/users', () => { { headers: asBearerAuth(user.accessToken) }, ); - await utils.waitForQueueFinish(admin.accessToken, JobName.BackgroundTask); + await utils.waitForQueueFinish(admin.accessToken, QueueName.BackgroundTask); const { status, body } = await request(app) .delete(`/admin/users/${user.userId}`) diff --git a/e2e/src/utils.ts b/e2e/src/utils.ts index b33d6cb190..8f34bbe40a 100644 --- a/e2e/src/utils.ts +++ b/e2e/src/utils.ts @@ -1,5 +1,4 @@ import { - AllJobStatusResponseDto, AssetMediaCreateDto, AssetMediaResponseDto, AssetResponseDto, @@ -7,11 +6,12 @@ import { CheckExistingAssetsDto, CreateAlbumDto, CreateLibraryDto, - JobCommandDto, - JobName, MetadataSearchDto, Permission, PersonCreateDto, + QueueCommandDto, + QueueName, + QueuesResponseDto, SharedLinkCreateDto, UpdateLibraryDto, UserAdminCreateDto, @@ -27,14 +27,14 @@ import { createStack, createUserAdmin, deleteAssets, - getAllJobsStatus, getAssetInfo, getConfig, getConfigDefaults, + getQueuesLegacy, login, + runQueueCommandLegacy, scanLibrary, searchAssets, - sendJobCommand, setBaseUrl, signUpAdmin, tagAssets, @@ -477,8 +477,8 @@ export const utils = { tagAssets: (accessToken: string, tagId: string, assetIds: string[]) => tagAssets({ id: tagId, bulkIdsDto: { ids: assetIds } }, { headers: asBearerAuth(accessToken) }), - jobCommand: async (accessToken: string, jobName: JobName, jobCommandDto: JobCommandDto) => - sendJobCommand({ id: jobName, jobCommandDto }, { headers: asBearerAuth(accessToken) }), + queueCommand: async (accessToken: string, name: QueueName, queueCommandDto: QueueCommandDto) => + runQueueCommandLegacy({ name, queueCommandDto }, { headers: asBearerAuth(accessToken) }), setAuthCookies: async (context: BrowserContext, accessToken: string, domain = '127.0.0.1') => await context.addCookies([ @@ -524,13 +524,13 @@ export const utils = { await updateConfig({ systemConfigDto: defaultConfig }, { headers: asBearerAuth(accessToken) }); }, - isQueueEmpty: async (accessToken: string, queue: keyof AllJobStatusResponseDto) => { - const queues = await getAllJobsStatus({ headers: asBearerAuth(accessToken) }); + isQueueEmpty: async (accessToken: string, queue: keyof QueuesResponseDto) => { + const queues = await getQueuesLegacy({ headers: asBearerAuth(accessToken) }); const jobCounts = queues[queue].jobCounts; return !jobCounts.active && !jobCounts.waiting; }, - waitForQueueFinish: (accessToken: string, queue: keyof AllJobStatusResponseDto, ms?: number) => { + waitForQueueFinish: (accessToken: string, queue: keyof QueuesResponseDto, ms?: number) => { // eslint-disable-next-line no-async-promise-executor return new Promise(async (resolve, reject) => { const timeout = setTimeout(() => reject(new Error('Timed out waiting for queue to empty')), ms || 10_000); diff --git a/mobile/openapi/README.md b/mobile/openapi/README.md index ff04a91def..5e93c571bd 100644 --- a/mobile/openapi/README.md +++ b/mobile/openapi/README.md @@ -149,8 +149,8 @@ Class | Method | HTTP request | Description *FacesApi* | [**getFaces**](doc//FacesApi.md#getfaces) | **GET** /faces | Retrieve faces for asset *FacesApi* | [**reassignFacesById**](doc//FacesApi.md#reassignfacesbyid) | **PUT** /faces/{id} | Re-assign a face to another person *JobsApi* | [**createJob**](doc//JobsApi.md#createjob) | **POST** /jobs | Create a manual job -*JobsApi* | [**getAllJobsStatus**](doc//JobsApi.md#getalljobsstatus) | **GET** /jobs | Retrieve queue counts and status -*JobsApi* | [**sendJobCommand**](doc//JobsApi.md#sendjobcommand) | **PUT** /jobs/{id} | Run jobs +*JobsApi* | [**getQueuesLegacy**](doc//JobsApi.md#getqueueslegacy) | **GET** /jobs | Retrieve queue counts and status +*JobsApi* | [**runQueueCommandLegacy**](doc//JobsApi.md#runqueuecommandlegacy) | **PUT** /jobs/{name} | Run jobs *LibrariesApi* | [**createLibrary**](doc//LibrariesApi.md#createlibrary) | **POST** /libraries | Create a library *LibrariesApi* | [**deleteLibrary**](doc//LibrariesApi.md#deletelibrary) | **DELETE** /libraries/{id} | Delete a library *LibrariesApi* | [**getAllLibraries**](doc//LibrariesApi.md#getalllibraries) | **GET** /libraries | Retrieve libraries @@ -318,7 +318,6 @@ Class | Method | HTTP request | Description - [AlbumsAddAssetsResponseDto](doc//AlbumsAddAssetsResponseDto.md) - [AlbumsResponse](doc//AlbumsResponse.md) - [AlbumsUpdate](doc//AlbumsUpdate.md) - - [AllJobStatusResponseDto](doc//AllJobStatusResponseDto.md) - [AssetBulkDeleteDto](doc//AssetBulkDeleteDto.md) - [AssetBulkUpdateDto](doc//AssetBulkUpdateDto.md) - [AssetBulkUploadCheckDto](doc//AssetBulkUploadCheckDto.md) @@ -387,13 +386,8 @@ Class | Method | HTTP request | Description - [FoldersResponse](doc//FoldersResponse.md) - [FoldersUpdate](doc//FoldersUpdate.md) - [ImageFormat](doc//ImageFormat.md) - - [JobCommand](doc//JobCommand.md) - - [JobCommandDto](doc//JobCommandDto.md) - - [JobCountsDto](doc//JobCountsDto.md) - [JobCreateDto](doc//JobCreateDto.md) - - [JobName](doc//JobName.md) - [JobSettingsDto](doc//JobSettingsDto.md) - - [JobStatusDto](doc//JobStatusDto.md) - [LibraryResponseDto](doc//LibraryResponseDto.md) - [LibraryStatsResponseDto](doc//LibraryStatsResponseDto.md) - [LicenseKeyDto](doc//LicenseKeyDto.md) @@ -452,7 +446,13 @@ Class | Method | HTTP request | Description - [PlacesResponseDto](doc//PlacesResponseDto.md) - [PurchaseResponse](doc//PurchaseResponse.md) - [PurchaseUpdate](doc//PurchaseUpdate.md) + - [QueueCommand](doc//QueueCommand.md) + - [QueueCommandDto](doc//QueueCommandDto.md) + - [QueueName](doc//QueueName.md) + - [QueueResponseDto](doc//QueueResponseDto.md) + - [QueueStatisticsDto](doc//QueueStatisticsDto.md) - [QueueStatusDto](doc//QueueStatusDto.md) + - [QueuesResponseDto](doc//QueuesResponseDto.md) - [RandomSearchDto](doc//RandomSearchDto.md) - [RatingsResponse](doc//RatingsResponse.md) - [RatingsUpdate](doc//RatingsUpdate.md) diff --git a/mobile/openapi/lib/api.dart b/mobile/openapi/lib/api.dart index d0ac141bae..c64295837c 100644 --- a/mobile/openapi/lib/api.dart +++ b/mobile/openapi/lib/api.dart @@ -82,7 +82,6 @@ part 'model/albums_add_assets_dto.dart'; part 'model/albums_add_assets_response_dto.dart'; part 'model/albums_response.dart'; part 'model/albums_update.dart'; -part 'model/all_job_status_response_dto.dart'; part 'model/asset_bulk_delete_dto.dart'; part 'model/asset_bulk_update_dto.dart'; part 'model/asset_bulk_upload_check_dto.dart'; @@ -151,13 +150,8 @@ part 'model/facial_recognition_config.dart'; part 'model/folders_response.dart'; part 'model/folders_update.dart'; part 'model/image_format.dart'; -part 'model/job_command.dart'; -part 'model/job_command_dto.dart'; -part 'model/job_counts_dto.dart'; part 'model/job_create_dto.dart'; -part 'model/job_name.dart'; part 'model/job_settings_dto.dart'; -part 'model/job_status_dto.dart'; part 'model/library_response_dto.dart'; part 'model/library_stats_response_dto.dart'; part 'model/license_key_dto.dart'; @@ -216,7 +210,13 @@ part 'model/pin_code_setup_dto.dart'; part 'model/places_response_dto.dart'; part 'model/purchase_response.dart'; part 'model/purchase_update.dart'; +part 'model/queue_command.dart'; +part 'model/queue_command_dto.dart'; +part 'model/queue_name.dart'; +part 'model/queue_response_dto.dart'; +part 'model/queue_statistics_dto.dart'; part 'model/queue_status_dto.dart'; +part 'model/queues_response_dto.dart'; part 'model/random_search_dto.dart'; part 'model/ratings_response.dart'; part 'model/ratings_update.dart'; diff --git a/mobile/openapi/lib/api/jobs_api.dart b/mobile/openapi/lib/api/jobs_api.dart index e783f93c7c..906dce6d37 100644 --- a/mobile/openapi/lib/api/jobs_api.dart +++ b/mobile/openapi/lib/api/jobs_api.dart @@ -69,7 +69,7 @@ class JobsApi { /// Retrieve the counts of the current queue, as well as the current status. /// /// Note: This method returns the HTTP [Response]. - Future getAllJobsStatusWithHttpInfo() async { + Future getQueuesLegacyWithHttpInfo() async { // ignore: prefer_const_declarations final apiPath = r'/jobs'; @@ -97,8 +97,8 @@ class JobsApi { /// Retrieve queue counts and status /// /// Retrieve the counts of the current queue, as well as the current status. - Future getAllJobsStatus() async { - final response = await getAllJobsStatusWithHttpInfo(); + Future getQueuesLegacy() async { + final response = await getQueuesLegacyWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -106,7 +106,7 @@ class JobsApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AllJobStatusResponseDto',) as AllJobStatusResponseDto; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'QueuesResponseDto',) as QueuesResponseDto; } return null; @@ -120,16 +120,16 @@ class JobsApi { /// /// Parameters: /// - /// * [JobName] id (required): + /// * [QueueName] name (required): /// - /// * [JobCommandDto] jobCommandDto (required): - Future sendJobCommandWithHttpInfo(JobName id, JobCommandDto jobCommandDto,) async { + /// * [QueueCommandDto] queueCommandDto (required): + Future runQueueCommandLegacyWithHttpInfo(QueueName name, QueueCommandDto queueCommandDto,) async { // ignore: prefer_const_declarations - final apiPath = r'/jobs/{id}' - .replaceAll('{id}', id.toString()); + final apiPath = r'/jobs/{name}' + .replaceAll('{name}', name.toString()); // ignore: prefer_final_locals - Object? postBody = jobCommandDto; + Object? postBody = queueCommandDto; final queryParams = []; final headerParams = {}; @@ -155,11 +155,11 @@ class JobsApi { /// /// Parameters: /// - /// * [JobName] id (required): + /// * [QueueName] name (required): /// - /// * [JobCommandDto] jobCommandDto (required): - Future sendJobCommand(JobName id, JobCommandDto jobCommandDto,) async { - final response = await sendJobCommandWithHttpInfo(id, jobCommandDto,); + /// * [QueueCommandDto] queueCommandDto (required): + Future runQueueCommandLegacy(QueueName name, QueueCommandDto queueCommandDto,) async { + final response = await runQueueCommandLegacyWithHttpInfo(name, queueCommandDto,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -167,7 +167,7 @@ class JobsApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'JobStatusDto',) as JobStatusDto; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'QueueResponseDto',) as QueueResponseDto; } return null; diff --git a/mobile/openapi/lib/api_client.dart b/mobile/openapi/lib/api_client.dart index cf6784fb83..373a4b9d8b 100644 --- a/mobile/openapi/lib/api_client.dart +++ b/mobile/openapi/lib/api_client.dart @@ -220,8 +220,6 @@ class ApiClient { return AlbumsResponse.fromJson(value); case 'AlbumsUpdate': return AlbumsUpdate.fromJson(value); - case 'AllJobStatusResponseDto': - return AllJobStatusResponseDto.fromJson(value); case 'AssetBulkDeleteDto': return AssetBulkDeleteDto.fromJson(value); case 'AssetBulkUpdateDto': @@ -358,20 +356,10 @@ class ApiClient { return FoldersUpdate.fromJson(value); case 'ImageFormat': return ImageFormatTypeTransformer().decode(value); - case 'JobCommand': - return JobCommandTypeTransformer().decode(value); - case 'JobCommandDto': - return JobCommandDto.fromJson(value); - case 'JobCountsDto': - return JobCountsDto.fromJson(value); case 'JobCreateDto': return JobCreateDto.fromJson(value); - case 'JobName': - return JobNameTypeTransformer().decode(value); case 'JobSettingsDto': return JobSettingsDto.fromJson(value); - case 'JobStatusDto': - return JobStatusDto.fromJson(value); case 'LibraryResponseDto': return LibraryResponseDto.fromJson(value); case 'LibraryStatsResponseDto': @@ -488,8 +476,20 @@ class ApiClient { return PurchaseResponse.fromJson(value); case 'PurchaseUpdate': return PurchaseUpdate.fromJson(value); + case 'QueueCommand': + return QueueCommandTypeTransformer().decode(value); + case 'QueueCommandDto': + return QueueCommandDto.fromJson(value); + case 'QueueName': + return QueueNameTypeTransformer().decode(value); + case 'QueueResponseDto': + return QueueResponseDto.fromJson(value); + case 'QueueStatisticsDto': + return QueueStatisticsDto.fromJson(value); case 'QueueStatusDto': return QueueStatusDto.fromJson(value); + case 'QueuesResponseDto': + return QueuesResponseDto.fromJson(value); case 'RandomSearchDto': return RandomSearchDto.fromJson(value); case 'RatingsResponse': diff --git a/mobile/openapi/lib/api_helper.dart b/mobile/openapi/lib/api_helper.dart index 1d197a8f91..5c21009a0b 100644 --- a/mobile/openapi/lib/api_helper.dart +++ b/mobile/openapi/lib/api_helper.dart @@ -94,12 +94,6 @@ String parameterToString(dynamic value) { if (value is ImageFormat) { return ImageFormatTypeTransformer().encode(value).toString(); } - if (value is JobCommand) { - return JobCommandTypeTransformer().encode(value).toString(); - } - if (value is JobName) { - return JobNameTypeTransformer().encode(value).toString(); - } if (value is LogLevel) { return LogLevelTypeTransformer().encode(value).toString(); } @@ -127,6 +121,12 @@ String parameterToString(dynamic value) { if (value is Permission) { return PermissionTypeTransformer().encode(value).toString(); } + if (value is QueueCommand) { + return QueueCommandTypeTransformer().encode(value).toString(); + } + if (value is QueueName) { + return QueueNameTypeTransformer().encode(value).toString(); + } if (value is ReactionLevel) { return ReactionLevelTypeTransformer().encode(value).toString(); } diff --git a/mobile/openapi/lib/model/job_command.dart b/mobile/openapi/lib/model/job_command.dart deleted file mode 100644 index 46ca7db68f..0000000000 --- a/mobile/openapi/lib/model/job_command.dart +++ /dev/null @@ -1,94 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - - -class JobCommand { - /// Instantiate a new enum with the provided [value]. - const JobCommand._(this.value); - - /// The underlying value of this enum member. - final String value; - - @override - String toString() => value; - - String toJson() => value; - - static const start = JobCommand._(r'start'); - static const pause = JobCommand._(r'pause'); - static const resume = JobCommand._(r'resume'); - static const empty = JobCommand._(r'empty'); - static const clearFailed = JobCommand._(r'clear-failed'); - - /// List of all possible values in this [enum][JobCommand]. - static const values = [ - start, - pause, - resume, - empty, - clearFailed, - ]; - - static JobCommand? fromJson(dynamic value) => JobCommandTypeTransformer().decode(value); - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = JobCommand.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } -} - -/// Transformation class that can [encode] an instance of [JobCommand] to String, -/// and [decode] dynamic data back to [JobCommand]. -class JobCommandTypeTransformer { - factory JobCommandTypeTransformer() => _instance ??= const JobCommandTypeTransformer._(); - - const JobCommandTypeTransformer._(); - - String encode(JobCommand data) => data.value; - - /// Decodes a [dynamic value][data] to a JobCommand. - /// - /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, - /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] - /// cannot be decoded successfully, then an [UnimplementedError] is thrown. - /// - /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, - /// and users are still using an old app with the old code. - JobCommand? decode(dynamic data, {bool allowNull = true}) { - if (data != null) { - switch (data) { - case r'start': return JobCommand.start; - case r'pause': return JobCommand.pause; - case r'resume': return JobCommand.resume; - case r'empty': return JobCommand.empty; - case r'clear-failed': return JobCommand.clearFailed; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } - return null; - } - - /// Singleton [JobCommandTypeTransformer] instance. - static JobCommandTypeTransformer? _instance; -} - diff --git a/mobile/openapi/lib/model/job_name.dart b/mobile/openapi/lib/model/job_name.dart deleted file mode 100644 index bbb9111105..0000000000 --- a/mobile/openapi/lib/model/job_name.dart +++ /dev/null @@ -1,127 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - - -class JobName { - /// Instantiate a new enum with the provided [value]. - const JobName._(this.value); - - /// The underlying value of this enum member. - final String value; - - @override - String toString() => value; - - String toJson() => value; - - static const thumbnailGeneration = JobName._(r'thumbnailGeneration'); - static const metadataExtraction = JobName._(r'metadataExtraction'); - static const videoConversion = JobName._(r'videoConversion'); - static const faceDetection = JobName._(r'faceDetection'); - static const facialRecognition = JobName._(r'facialRecognition'); - static const smartSearch = JobName._(r'smartSearch'); - static const duplicateDetection = JobName._(r'duplicateDetection'); - static const backgroundTask = JobName._(r'backgroundTask'); - static const storageTemplateMigration = JobName._(r'storageTemplateMigration'); - static const migration = JobName._(r'migration'); - static const search = JobName._(r'search'); - static const sidecar = JobName._(r'sidecar'); - static const library_ = JobName._(r'library'); - static const notifications = JobName._(r'notifications'); - static const backupDatabase = JobName._(r'backupDatabase'); - static const ocr = JobName._(r'ocr'); - - /// List of all possible values in this [enum][JobName]. - static const values = [ - thumbnailGeneration, - metadataExtraction, - videoConversion, - faceDetection, - facialRecognition, - smartSearch, - duplicateDetection, - backgroundTask, - storageTemplateMigration, - migration, - search, - sidecar, - library_, - notifications, - backupDatabase, - ocr, - ]; - - static JobName? fromJson(dynamic value) => JobNameTypeTransformer().decode(value); - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = JobName.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } -} - -/// Transformation class that can [encode] an instance of [JobName] to String, -/// and [decode] dynamic data back to [JobName]. -class JobNameTypeTransformer { - factory JobNameTypeTransformer() => _instance ??= const JobNameTypeTransformer._(); - - const JobNameTypeTransformer._(); - - String encode(JobName data) => data.value; - - /// Decodes a [dynamic value][data] to a JobName. - /// - /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, - /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] - /// cannot be decoded successfully, then an [UnimplementedError] is thrown. - /// - /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, - /// and users are still using an old app with the old code. - JobName? decode(dynamic data, {bool allowNull = true}) { - if (data != null) { - switch (data) { - case r'thumbnailGeneration': return JobName.thumbnailGeneration; - case r'metadataExtraction': return JobName.metadataExtraction; - case r'videoConversion': return JobName.videoConversion; - case r'faceDetection': return JobName.faceDetection; - case r'facialRecognition': return JobName.facialRecognition; - case r'smartSearch': return JobName.smartSearch; - case r'duplicateDetection': return JobName.duplicateDetection; - case r'backgroundTask': return JobName.backgroundTask; - case r'storageTemplateMigration': return JobName.storageTemplateMigration; - case r'migration': return JobName.migration; - case r'search': return JobName.search; - case r'sidecar': return JobName.sidecar; - case r'library': return JobName.library_; - case r'notifications': return JobName.notifications; - case r'backupDatabase': return JobName.backupDatabase; - case r'ocr': return JobName.ocr; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } - return null; - } - - /// Singleton [JobNameTypeTransformer] instance. - static JobNameTypeTransformer? _instance; -} - diff --git a/mobile/openapi/lib/model/queue_command.dart b/mobile/openapi/lib/model/queue_command.dart new file mode 100644 index 0000000000..f03ec6eccd --- /dev/null +++ b/mobile/openapi/lib/model/queue_command.dart @@ -0,0 +1,94 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + + +class QueueCommand { + /// Instantiate a new enum with the provided [value]. + const QueueCommand._(this.value); + + /// The underlying value of this enum member. + final String value; + + @override + String toString() => value; + + String toJson() => value; + + static const start = QueueCommand._(r'start'); + static const pause = QueueCommand._(r'pause'); + static const resume = QueueCommand._(r'resume'); + static const empty = QueueCommand._(r'empty'); + static const clearFailed = QueueCommand._(r'clear-failed'); + + /// List of all possible values in this [enum][QueueCommand]. + static const values = [ + start, + pause, + resume, + empty, + clearFailed, + ]; + + static QueueCommand? fromJson(dynamic value) => QueueCommandTypeTransformer().decode(value); + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = QueueCommand.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [QueueCommand] to String, +/// and [decode] dynamic data back to [QueueCommand]. +class QueueCommandTypeTransformer { + factory QueueCommandTypeTransformer() => _instance ??= const QueueCommandTypeTransformer._(); + + const QueueCommandTypeTransformer._(); + + String encode(QueueCommand data) => data.value; + + /// Decodes a [dynamic value][data] to a QueueCommand. + /// + /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, + /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] + /// cannot be decoded successfully, then an [UnimplementedError] is thrown. + /// + /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, + /// and users are still using an old app with the old code. + QueueCommand? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case r'start': return QueueCommand.start; + case r'pause': return QueueCommand.pause; + case r'resume': return QueueCommand.resume; + case r'empty': return QueueCommand.empty; + case r'clear-failed': return QueueCommand.clearFailed; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [QueueCommandTypeTransformer] instance. + static QueueCommandTypeTransformer? _instance; +} + diff --git a/mobile/openapi/lib/model/job_command_dto.dart b/mobile/openapi/lib/model/queue_command_dto.dart similarity index 66% rename from mobile/openapi/lib/model/job_command_dto.dart rename to mobile/openapi/lib/model/queue_command_dto.dart index 32274037f6..ded848c12f 100644 --- a/mobile/openapi/lib/model/job_command_dto.dart +++ b/mobile/openapi/lib/model/queue_command_dto.dart @@ -10,14 +10,14 @@ part of openapi.api; -class JobCommandDto { - /// Returns a new [JobCommandDto] instance. - JobCommandDto({ +class QueueCommandDto { + /// Returns a new [QueueCommandDto] instance. + QueueCommandDto({ required this.command, this.force, }); - JobCommand command; + QueueCommand command; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -28,7 +28,7 @@ class JobCommandDto { bool? force; @override - bool operator ==(Object other) => identical(this, other) || other is JobCommandDto && + bool operator ==(Object other) => identical(this, other) || other is QueueCommandDto && other.command == command && other.force == force; @@ -39,7 +39,7 @@ class JobCommandDto { (force == null ? 0 : force!.hashCode); @override - String toString() => 'JobCommandDto[command=$command, force=$force]'; + String toString() => 'QueueCommandDto[command=$command, force=$force]'; Map toJson() { final json = {}; @@ -52,27 +52,27 @@ class JobCommandDto { return json; } - /// Returns a new [JobCommandDto] instance and imports its values from + /// Returns a new [QueueCommandDto] instance and imports its values from /// [value] if it's a [Map], null otherwise. // ignore: prefer_constructors_over_static_methods - static JobCommandDto? fromJson(dynamic value) { - upgradeDto(value, "JobCommandDto"); + static QueueCommandDto? fromJson(dynamic value) { + upgradeDto(value, "QueueCommandDto"); if (value is Map) { final json = value.cast(); - return JobCommandDto( - command: JobCommand.fromJson(json[r'command'])!, + return QueueCommandDto( + command: QueueCommand.fromJson(json[r'command'])!, force: mapValueOfType(json, r'force'), ); } return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { - final value = JobCommandDto.fromJson(row); + final value = QueueCommandDto.fromJson(row); if (value != null) { result.add(value); } @@ -81,12 +81,12 @@ class JobCommandDto { return result.toList(growable: growable); } - static Map mapFromJson(dynamic json) { - final map = {}; + static Map mapFromJson(dynamic json) { + final map = {}; if (json is Map && json.isNotEmpty) { json = json.cast(); // ignore: parameter_assignments for (final entry in json.entries) { - final value = JobCommandDto.fromJson(entry.value); + final value = QueueCommandDto.fromJson(entry.value); if (value != null) { map[entry.key] = value; } @@ -95,14 +95,14 @@ class JobCommandDto { return map; } - // maps a json object with a list of JobCommandDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; + // maps a json object with a list of QueueCommandDto-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = JobCommandDto.listFromJson(entry.value, growable: growable,); + map[entry.key] = QueueCommandDto.listFromJson(entry.value, growable: growable,); } } return map; diff --git a/mobile/openapi/lib/model/queue_name.dart b/mobile/openapi/lib/model/queue_name.dart new file mode 100644 index 0000000000..7b8214e202 --- /dev/null +++ b/mobile/openapi/lib/model/queue_name.dart @@ -0,0 +1,127 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + + +class QueueName { + /// Instantiate a new enum with the provided [value]. + const QueueName._(this.value); + + /// The underlying value of this enum member. + final String value; + + @override + String toString() => value; + + String toJson() => value; + + static const thumbnailGeneration = QueueName._(r'thumbnailGeneration'); + static const metadataExtraction = QueueName._(r'metadataExtraction'); + static const videoConversion = QueueName._(r'videoConversion'); + static const faceDetection = QueueName._(r'faceDetection'); + static const facialRecognition = QueueName._(r'facialRecognition'); + static const smartSearch = QueueName._(r'smartSearch'); + static const duplicateDetection = QueueName._(r'duplicateDetection'); + static const backgroundTask = QueueName._(r'backgroundTask'); + static const storageTemplateMigration = QueueName._(r'storageTemplateMigration'); + static const migration = QueueName._(r'migration'); + static const search = QueueName._(r'search'); + static const sidecar = QueueName._(r'sidecar'); + static const library_ = QueueName._(r'library'); + static const notifications = QueueName._(r'notifications'); + static const backupDatabase = QueueName._(r'backupDatabase'); + static const ocr = QueueName._(r'ocr'); + + /// List of all possible values in this [enum][QueueName]. + static const values = [ + thumbnailGeneration, + metadataExtraction, + videoConversion, + faceDetection, + facialRecognition, + smartSearch, + duplicateDetection, + backgroundTask, + storageTemplateMigration, + migration, + search, + sidecar, + library_, + notifications, + backupDatabase, + ocr, + ]; + + static QueueName? fromJson(dynamic value) => QueueNameTypeTransformer().decode(value); + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = QueueName.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [QueueName] to String, +/// and [decode] dynamic data back to [QueueName]. +class QueueNameTypeTransformer { + factory QueueNameTypeTransformer() => _instance ??= const QueueNameTypeTransformer._(); + + const QueueNameTypeTransformer._(); + + String encode(QueueName data) => data.value; + + /// Decodes a [dynamic value][data] to a QueueName. + /// + /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, + /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] + /// cannot be decoded successfully, then an [UnimplementedError] is thrown. + /// + /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, + /// and users are still using an old app with the old code. + QueueName? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case r'thumbnailGeneration': return QueueName.thumbnailGeneration; + case r'metadataExtraction': return QueueName.metadataExtraction; + case r'videoConversion': return QueueName.videoConversion; + case r'faceDetection': return QueueName.faceDetection; + case r'facialRecognition': return QueueName.facialRecognition; + case r'smartSearch': return QueueName.smartSearch; + case r'duplicateDetection': return QueueName.duplicateDetection; + case r'backgroundTask': return QueueName.backgroundTask; + case r'storageTemplateMigration': return QueueName.storageTemplateMigration; + case r'migration': return QueueName.migration; + case r'search': return QueueName.search; + case r'sidecar': return QueueName.sidecar; + case r'library': return QueueName.library_; + case r'notifications': return QueueName.notifications; + case r'backupDatabase': return QueueName.backupDatabase; + case r'ocr': return QueueName.ocr; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [QueueNameTypeTransformer] instance. + static QueueNameTypeTransformer? _instance; +} + diff --git a/mobile/openapi/lib/model/job_status_dto.dart b/mobile/openapi/lib/model/queue_response_dto.dart similarity index 62% rename from mobile/openapi/lib/model/job_status_dto.dart rename to mobile/openapi/lib/model/queue_response_dto.dart index 18fab8dfb3..b20449f721 100644 --- a/mobile/openapi/lib/model/job_status_dto.dart +++ b/mobile/openapi/lib/model/queue_response_dto.dart @@ -10,19 +10,19 @@ part of openapi.api; -class JobStatusDto { - /// Returns a new [JobStatusDto] instance. - JobStatusDto({ +class QueueResponseDto { + /// Returns a new [QueueResponseDto] instance. + QueueResponseDto({ required this.jobCounts, required this.queueStatus, }); - JobCountsDto jobCounts; + QueueStatisticsDto jobCounts; QueueStatusDto queueStatus; @override - bool operator ==(Object other) => identical(this, other) || other is JobStatusDto && + bool operator ==(Object other) => identical(this, other) || other is QueueResponseDto && other.jobCounts == jobCounts && other.queueStatus == queueStatus; @@ -33,7 +33,7 @@ class JobStatusDto { (queueStatus.hashCode); @override - String toString() => 'JobStatusDto[jobCounts=$jobCounts, queueStatus=$queueStatus]'; + String toString() => 'QueueResponseDto[jobCounts=$jobCounts, queueStatus=$queueStatus]'; Map toJson() { final json = {}; @@ -42,27 +42,27 @@ class JobStatusDto { return json; } - /// Returns a new [JobStatusDto] instance and imports its values from + /// Returns a new [QueueResponseDto] instance and imports its values from /// [value] if it's a [Map], null otherwise. // ignore: prefer_constructors_over_static_methods - static JobStatusDto? fromJson(dynamic value) { - upgradeDto(value, "JobStatusDto"); + static QueueResponseDto? fromJson(dynamic value) { + upgradeDto(value, "QueueResponseDto"); if (value is Map) { final json = value.cast(); - return JobStatusDto( - jobCounts: JobCountsDto.fromJson(json[r'jobCounts'])!, + return QueueResponseDto( + jobCounts: QueueStatisticsDto.fromJson(json[r'jobCounts'])!, queueStatus: QueueStatusDto.fromJson(json[r'queueStatus'])!, ); } return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { - final value = JobStatusDto.fromJson(row); + final value = QueueResponseDto.fromJson(row); if (value != null) { result.add(value); } @@ -71,12 +71,12 @@ class JobStatusDto { return result.toList(growable: growable); } - static Map mapFromJson(dynamic json) { - final map = {}; + static Map mapFromJson(dynamic json) { + final map = {}; if (json is Map && json.isNotEmpty) { json = json.cast(); // ignore: parameter_assignments for (final entry in json.entries) { - final value = JobStatusDto.fromJson(entry.value); + final value = QueueResponseDto.fromJson(entry.value); if (value != null) { map[entry.key] = value; } @@ -85,14 +85,14 @@ class JobStatusDto { return map; } - // maps a json object with a list of JobStatusDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; + // maps a json object with a list of QueueResponseDto-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = JobStatusDto.listFromJson(entry.value, growable: growable,); + map[entry.key] = QueueResponseDto.listFromJson(entry.value, growable: growable,); } } return map; diff --git a/mobile/openapi/lib/model/job_counts_dto.dart b/mobile/openapi/lib/model/queue_statistics_dto.dart similarity index 70% rename from mobile/openapi/lib/model/job_counts_dto.dart rename to mobile/openapi/lib/model/queue_statistics_dto.dart index afc90d1084..c27c4a5892 100644 --- a/mobile/openapi/lib/model/job_counts_dto.dart +++ b/mobile/openapi/lib/model/queue_statistics_dto.dart @@ -10,9 +10,9 @@ part of openapi.api; -class JobCountsDto { - /// Returns a new [JobCountsDto] instance. - JobCountsDto({ +class QueueStatisticsDto { + /// Returns a new [QueueStatisticsDto] instance. + QueueStatisticsDto({ required this.active, required this.completed, required this.delayed, @@ -34,7 +34,7 @@ class JobCountsDto { int waiting; @override - bool operator ==(Object other) => identical(this, other) || other is JobCountsDto && + bool operator ==(Object other) => identical(this, other) || other is QueueStatisticsDto && other.active == active && other.completed == completed && other.delayed == delayed && @@ -53,7 +53,7 @@ class JobCountsDto { (waiting.hashCode); @override - String toString() => 'JobCountsDto[active=$active, completed=$completed, delayed=$delayed, failed=$failed, paused=$paused, waiting=$waiting]'; + String toString() => 'QueueStatisticsDto[active=$active, completed=$completed, delayed=$delayed, failed=$failed, paused=$paused, waiting=$waiting]'; Map toJson() { final json = {}; @@ -66,15 +66,15 @@ class JobCountsDto { return json; } - /// Returns a new [JobCountsDto] instance and imports its values from + /// Returns a new [QueueStatisticsDto] instance and imports its values from /// [value] if it's a [Map], null otherwise. // ignore: prefer_constructors_over_static_methods - static JobCountsDto? fromJson(dynamic value) { - upgradeDto(value, "JobCountsDto"); + static QueueStatisticsDto? fromJson(dynamic value) { + upgradeDto(value, "QueueStatisticsDto"); if (value is Map) { final json = value.cast(); - return JobCountsDto( + return QueueStatisticsDto( active: mapValueOfType(json, r'active')!, completed: mapValueOfType(json, r'completed')!, delayed: mapValueOfType(json, r'delayed')!, @@ -86,11 +86,11 @@ class JobCountsDto { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { - final value = JobCountsDto.fromJson(row); + final value = QueueStatisticsDto.fromJson(row); if (value != null) { result.add(value); } @@ -99,12 +99,12 @@ class JobCountsDto { return result.toList(growable: growable); } - static Map mapFromJson(dynamic json) { - final map = {}; + static Map mapFromJson(dynamic json) { + final map = {}; if (json is Map && json.isNotEmpty) { json = json.cast(); // ignore: parameter_assignments for (final entry in json.entries) { - final value = JobCountsDto.fromJson(entry.value); + final value = QueueStatisticsDto.fromJson(entry.value); if (value != null) { map[entry.key] = value; } @@ -113,14 +113,14 @@ class JobCountsDto { return map; } - // maps a json object with a list of JobCountsDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; + // maps a json object with a list of QueueStatisticsDto-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = JobCountsDto.listFromJson(entry.value, growable: growable,); + map[entry.key] = QueueStatisticsDto.listFromJson(entry.value, growable: growable,); } } return map; diff --git a/mobile/openapi/lib/model/all_job_status_response_dto.dart b/mobile/openapi/lib/model/queues_response_dto.dart similarity index 57% rename from mobile/openapi/lib/model/all_job_status_response_dto.dart rename to mobile/openapi/lib/model/queues_response_dto.dart index 291bec4394..b20f8c3c09 100644 --- a/mobile/openapi/lib/model/all_job_status_response_dto.dart +++ b/mobile/openapi/lib/model/queues_response_dto.dart @@ -10,9 +10,9 @@ part of openapi.api; -class AllJobStatusResponseDto { - /// Returns a new [AllJobStatusResponseDto] instance. - AllJobStatusResponseDto({ +class QueuesResponseDto { + /// Returns a new [QueuesResponseDto] instance. + QueuesResponseDto({ required this.backgroundTask, required this.backupDatabase, required this.duplicateDetection, @@ -31,40 +31,40 @@ class AllJobStatusResponseDto { required this.videoConversion, }); - JobStatusDto backgroundTask; + QueueResponseDto backgroundTask; - JobStatusDto backupDatabase; + QueueResponseDto backupDatabase; - JobStatusDto duplicateDetection; + QueueResponseDto duplicateDetection; - JobStatusDto faceDetection; + QueueResponseDto faceDetection; - JobStatusDto facialRecognition; + QueueResponseDto facialRecognition; - JobStatusDto library_; + QueueResponseDto library_; - JobStatusDto metadataExtraction; + QueueResponseDto metadataExtraction; - JobStatusDto migration; + QueueResponseDto migration; - JobStatusDto notifications; + QueueResponseDto notifications; - JobStatusDto ocr; + QueueResponseDto ocr; - JobStatusDto search; + QueueResponseDto search; - JobStatusDto sidecar; + QueueResponseDto sidecar; - JobStatusDto smartSearch; + QueueResponseDto smartSearch; - JobStatusDto storageTemplateMigration; + QueueResponseDto storageTemplateMigration; - JobStatusDto thumbnailGeneration; + QueueResponseDto thumbnailGeneration; - JobStatusDto videoConversion; + QueueResponseDto videoConversion; @override - bool operator ==(Object other) => identical(this, other) || other is AllJobStatusResponseDto && + bool operator ==(Object other) => identical(this, other) || other is QueuesResponseDto && other.backgroundTask == backgroundTask && other.backupDatabase == backupDatabase && other.duplicateDetection == duplicateDetection && @@ -103,7 +103,7 @@ class AllJobStatusResponseDto { (videoConversion.hashCode); @override - String toString() => 'AllJobStatusResponseDto[backgroundTask=$backgroundTask, backupDatabase=$backupDatabase, duplicateDetection=$duplicateDetection, faceDetection=$faceDetection, facialRecognition=$facialRecognition, library_=$library_, metadataExtraction=$metadataExtraction, migration=$migration, notifications=$notifications, ocr=$ocr, search=$search, sidecar=$sidecar, smartSearch=$smartSearch, storageTemplateMigration=$storageTemplateMigration, thumbnailGeneration=$thumbnailGeneration, videoConversion=$videoConversion]'; + String toString() => 'QueuesResponseDto[backgroundTask=$backgroundTask, backupDatabase=$backupDatabase, duplicateDetection=$duplicateDetection, faceDetection=$faceDetection, facialRecognition=$facialRecognition, library_=$library_, metadataExtraction=$metadataExtraction, migration=$migration, notifications=$notifications, ocr=$ocr, search=$search, sidecar=$sidecar, smartSearch=$smartSearch, storageTemplateMigration=$storageTemplateMigration, thumbnailGeneration=$thumbnailGeneration, videoConversion=$videoConversion]'; Map toJson() { final json = {}; @@ -126,41 +126,41 @@ class AllJobStatusResponseDto { return json; } - /// Returns a new [AllJobStatusResponseDto] instance and imports its values from + /// Returns a new [QueuesResponseDto] instance and imports its values from /// [value] if it's a [Map], null otherwise. // ignore: prefer_constructors_over_static_methods - static AllJobStatusResponseDto? fromJson(dynamic value) { - upgradeDto(value, "AllJobStatusResponseDto"); + static QueuesResponseDto? fromJson(dynamic value) { + upgradeDto(value, "QueuesResponseDto"); if (value is Map) { final json = value.cast(); - return AllJobStatusResponseDto( - backgroundTask: JobStatusDto.fromJson(json[r'backgroundTask'])!, - backupDatabase: JobStatusDto.fromJson(json[r'backupDatabase'])!, - duplicateDetection: JobStatusDto.fromJson(json[r'duplicateDetection'])!, - faceDetection: JobStatusDto.fromJson(json[r'faceDetection'])!, - facialRecognition: JobStatusDto.fromJson(json[r'facialRecognition'])!, - library_: JobStatusDto.fromJson(json[r'library'])!, - metadataExtraction: JobStatusDto.fromJson(json[r'metadataExtraction'])!, - migration: JobStatusDto.fromJson(json[r'migration'])!, - notifications: JobStatusDto.fromJson(json[r'notifications'])!, - ocr: JobStatusDto.fromJson(json[r'ocr'])!, - search: JobStatusDto.fromJson(json[r'search'])!, - sidecar: JobStatusDto.fromJson(json[r'sidecar'])!, - smartSearch: JobStatusDto.fromJson(json[r'smartSearch'])!, - storageTemplateMigration: JobStatusDto.fromJson(json[r'storageTemplateMigration'])!, - thumbnailGeneration: JobStatusDto.fromJson(json[r'thumbnailGeneration'])!, - videoConversion: JobStatusDto.fromJson(json[r'videoConversion'])!, + return QueuesResponseDto( + backgroundTask: QueueResponseDto.fromJson(json[r'backgroundTask'])!, + backupDatabase: QueueResponseDto.fromJson(json[r'backupDatabase'])!, + duplicateDetection: QueueResponseDto.fromJson(json[r'duplicateDetection'])!, + faceDetection: QueueResponseDto.fromJson(json[r'faceDetection'])!, + facialRecognition: QueueResponseDto.fromJson(json[r'facialRecognition'])!, + library_: QueueResponseDto.fromJson(json[r'library'])!, + metadataExtraction: QueueResponseDto.fromJson(json[r'metadataExtraction'])!, + migration: QueueResponseDto.fromJson(json[r'migration'])!, + notifications: QueueResponseDto.fromJson(json[r'notifications'])!, + ocr: QueueResponseDto.fromJson(json[r'ocr'])!, + search: QueueResponseDto.fromJson(json[r'search'])!, + sidecar: QueueResponseDto.fromJson(json[r'sidecar'])!, + smartSearch: QueueResponseDto.fromJson(json[r'smartSearch'])!, + storageTemplateMigration: QueueResponseDto.fromJson(json[r'storageTemplateMigration'])!, + thumbnailGeneration: QueueResponseDto.fromJson(json[r'thumbnailGeneration'])!, + videoConversion: QueueResponseDto.fromJson(json[r'videoConversion'])!, ); } return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { - final value = AllJobStatusResponseDto.fromJson(row); + final value = QueuesResponseDto.fromJson(row); if (value != null) { result.add(value); } @@ -169,12 +169,12 @@ class AllJobStatusResponseDto { return result.toList(growable: growable); } - static Map mapFromJson(dynamic json) { - final map = {}; + static Map mapFromJson(dynamic json) { + final map = {}; if (json is Map && json.isNotEmpty) { json = json.cast(); // ignore: parameter_assignments for (final entry in json.entries) { - final value = AllJobStatusResponseDto.fromJson(entry.value); + final value = QueuesResponseDto.fromJson(entry.value); if (value != null) { map[entry.key] = value; } @@ -183,14 +183,14 @@ class AllJobStatusResponseDto { return map; } - // maps a json object with a list of AllJobStatusResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; + // maps a json object with a list of QueuesResponseDto-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = AllJobStatusResponseDto.listFromJson(entry.value, growable: growable,); + map[entry.key] = QueuesResponseDto.listFromJson(entry.value, growable: growable,); } } return map; diff --git a/open-api/immich-openapi-specs.json b/open-api/immich-openapi-specs.json index e4fc5ddd96..7ae48eaf8b 100644 --- a/open-api/immich-openapi-specs.json +++ b/open-api/immich-openapi-specs.json @@ -4836,14 +4836,14 @@ "/jobs": { "get": { "description": "Retrieve the counts of the current queue, as well as the current status.", - "operationId": "getAllJobsStatus", + "operationId": "getQueuesLegacy", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AllJobStatusResponseDto" + "$ref": "#/components/schemas/QueuesResponseDto" } } }, @@ -4936,17 +4936,17 @@ "x-immich-state": "Stable" } }, - "/jobs/{id}": { + "/jobs/{name}": { "put": { "description": "Queue all assets for a specific job type. Defaults to only queueing assets that have not yet been processed, but the force command can be used to re-process all assets.", - "operationId": "sendJobCommand", + "operationId": "runQueueCommandLegacy", "parameters": [ { - "name": "id", + "name": "name", "required": true, "in": "path", "schema": { - "$ref": "#/components/schemas/JobName" + "$ref": "#/components/schemas/QueueName" } } ], @@ -4954,7 +4954,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/JobCommandDto" + "$ref": "#/components/schemas/QueueCommandDto" } } }, @@ -4965,7 +4965,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/JobStatusDto" + "$ref": "#/components/schemas/QueueResponseDto" } } }, @@ -14084,77 +14084,6 @@ }, "type": "object" }, - "AllJobStatusResponseDto": { - "properties": { - "backgroundTask": { - "$ref": "#/components/schemas/JobStatusDto" - }, - "backupDatabase": { - "$ref": "#/components/schemas/JobStatusDto" - }, - "duplicateDetection": { - "$ref": "#/components/schemas/JobStatusDto" - }, - "faceDetection": { - "$ref": "#/components/schemas/JobStatusDto" - }, - "facialRecognition": { - "$ref": "#/components/schemas/JobStatusDto" - }, - "library": { - "$ref": "#/components/schemas/JobStatusDto" - }, - "metadataExtraction": { - "$ref": "#/components/schemas/JobStatusDto" - }, - "migration": { - "$ref": "#/components/schemas/JobStatusDto" - }, - "notifications": { - "$ref": "#/components/schemas/JobStatusDto" - }, - "ocr": { - "$ref": "#/components/schemas/JobStatusDto" - }, - "search": { - "$ref": "#/components/schemas/JobStatusDto" - }, - "sidecar": { - "$ref": "#/components/schemas/JobStatusDto" - }, - "smartSearch": { - "$ref": "#/components/schemas/JobStatusDto" - }, - "storageTemplateMigration": { - "$ref": "#/components/schemas/JobStatusDto" - }, - "thumbnailGeneration": { - "$ref": "#/components/schemas/JobStatusDto" - }, - "videoConversion": { - "$ref": "#/components/schemas/JobStatusDto" - } - }, - "required": [ - "backgroundTask", - "backupDatabase", - "duplicateDetection", - "faceDetection", - "facialRecognition", - "library", - "metadataExtraction", - "migration", - "notifications", - "ocr", - "search", - "sidecar", - "smartSearch", - "storageTemplateMigration", - "thumbnailGeneration", - "videoConversion" - ], - "type": "object" - }, "AssetBulkDeleteDto": { "properties": { "force": { @@ -15866,65 +15795,6 @@ ], "type": "string" }, - "JobCommand": { - "enum": [ - "start", - "pause", - "resume", - "empty", - "clear-failed" - ], - "type": "string" - }, - "JobCommandDto": { - "properties": { - "command": { - "allOf": [ - { - "$ref": "#/components/schemas/JobCommand" - } - ] - }, - "force": { - "type": "boolean" - } - }, - "required": [ - "command" - ], - "type": "object" - }, - "JobCountsDto": { - "properties": { - "active": { - "type": "integer" - }, - "completed": { - "type": "integer" - }, - "delayed": { - "type": "integer" - }, - "failed": { - "type": "integer" - }, - "paused": { - "type": "integer" - }, - "waiting": { - "type": "integer" - } - }, - "required": [ - "active", - "completed", - "delayed", - "failed", - "paused", - "waiting" - ], - "type": "object" - }, "JobCreateDto": { "properties": { "name": { @@ -15940,27 +15810,6 @@ ], "type": "object" }, - "JobName": { - "enum": [ - "thumbnailGeneration", - "metadataExtraction", - "videoConversion", - "faceDetection", - "facialRecognition", - "smartSearch", - "duplicateDetection", - "backgroundTask", - "storageTemplateMigration", - "migration", - "search", - "sidecar", - "library", - "notifications", - "backupDatabase", - "ocr" - ], - "type": "string" - }, "JobSettingsDto": { "properties": { "concurrency": { @@ -15973,21 +15822,6 @@ ], "type": "object" }, - "JobStatusDto": { - "properties": { - "jobCounts": { - "$ref": "#/components/schemas/JobCountsDto" - }, - "queueStatus": { - "$ref": "#/components/schemas/QueueStatusDto" - } - }, - "required": [ - "jobCounts", - "queueStatus" - ], - "type": "object" - }, "LibraryResponseDto": { "properties": { "assetCount": { @@ -17559,6 +17393,101 @@ }, "type": "object" }, + "QueueCommand": { + "enum": [ + "start", + "pause", + "resume", + "empty", + "clear-failed" + ], + "type": "string" + }, + "QueueCommandDto": { + "properties": { + "command": { + "allOf": [ + { + "$ref": "#/components/schemas/QueueCommand" + } + ] + }, + "force": { + "type": "boolean" + } + }, + "required": [ + "command" + ], + "type": "object" + }, + "QueueName": { + "enum": [ + "thumbnailGeneration", + "metadataExtraction", + "videoConversion", + "faceDetection", + "facialRecognition", + "smartSearch", + "duplicateDetection", + "backgroundTask", + "storageTemplateMigration", + "migration", + "search", + "sidecar", + "library", + "notifications", + "backupDatabase", + "ocr" + ], + "type": "string" + }, + "QueueResponseDto": { + "properties": { + "jobCounts": { + "$ref": "#/components/schemas/QueueStatisticsDto" + }, + "queueStatus": { + "$ref": "#/components/schemas/QueueStatusDto" + } + }, + "required": [ + "jobCounts", + "queueStatus" + ], + "type": "object" + }, + "QueueStatisticsDto": { + "properties": { + "active": { + "type": "integer" + }, + "completed": { + "type": "integer" + }, + "delayed": { + "type": "integer" + }, + "failed": { + "type": "integer" + }, + "paused": { + "type": "integer" + }, + "waiting": { + "type": "integer" + } + }, + "required": [ + "active", + "completed", + "delayed", + "failed", + "paused", + "waiting" + ], + "type": "object" + }, "QueueStatusDto": { "properties": { "isActive": { @@ -17574,6 +17503,77 @@ ], "type": "object" }, + "QueuesResponseDto": { + "properties": { + "backgroundTask": { + "$ref": "#/components/schemas/QueueResponseDto" + }, + "backupDatabase": { + "$ref": "#/components/schemas/QueueResponseDto" + }, + "duplicateDetection": { + "$ref": "#/components/schemas/QueueResponseDto" + }, + "faceDetection": { + "$ref": "#/components/schemas/QueueResponseDto" + }, + "facialRecognition": { + "$ref": "#/components/schemas/QueueResponseDto" + }, + "library": { + "$ref": "#/components/schemas/QueueResponseDto" + }, + "metadataExtraction": { + "$ref": "#/components/schemas/QueueResponseDto" + }, + "migration": { + "$ref": "#/components/schemas/QueueResponseDto" + }, + "notifications": { + "$ref": "#/components/schemas/QueueResponseDto" + }, + "ocr": { + "$ref": "#/components/schemas/QueueResponseDto" + }, + "search": { + "$ref": "#/components/schemas/QueueResponseDto" + }, + "sidecar": { + "$ref": "#/components/schemas/QueueResponseDto" + }, + "smartSearch": { + "$ref": "#/components/schemas/QueueResponseDto" + }, + "storageTemplateMigration": { + "$ref": "#/components/schemas/QueueResponseDto" + }, + "thumbnailGeneration": { + "$ref": "#/components/schemas/QueueResponseDto" + }, + "videoConversion": { + "$ref": "#/components/schemas/QueueResponseDto" + } + }, + "required": [ + "backgroundTask", + "backupDatabase", + "duplicateDetection", + "faceDetection", + "facialRecognition", + "library", + "metadataExtraction", + "migration", + "notifications", + "ocr", + "search", + "sidecar", + "smartSearch", + "storageTemplateMigration", + "thumbnailGeneration", + "videoConversion" + ], + "type": "object" + }, "RandomSearchDto": { "properties": { "albumIds": { diff --git a/open-api/typescript-sdk/src/fetch-client.ts b/open-api/typescript-sdk/src/fetch-client.ts index 9aec8b6f87..00a6eea954 100644 --- a/open-api/typescript-sdk/src/fetch-client.ts +++ b/open-api/typescript-sdk/src/fetch-client.ts @@ -699,7 +699,7 @@ export type AssetFaceDeleteDto = { export type FaceDto = { id: string; }; -export type JobCountsDto = { +export type QueueStatisticsDto = { active: number; completed: number; delayed: number; @@ -711,33 +711,33 @@ export type QueueStatusDto = { isActive: boolean; isPaused: boolean; }; -export type JobStatusDto = { - jobCounts: JobCountsDto; +export type QueueResponseDto = { + jobCounts: QueueStatisticsDto; queueStatus: QueueStatusDto; }; -export type AllJobStatusResponseDto = { - backgroundTask: JobStatusDto; - backupDatabase: JobStatusDto; - duplicateDetection: JobStatusDto; - faceDetection: JobStatusDto; - facialRecognition: JobStatusDto; - library: JobStatusDto; - metadataExtraction: JobStatusDto; - migration: JobStatusDto; - notifications: JobStatusDto; - ocr: JobStatusDto; - search: JobStatusDto; - sidecar: JobStatusDto; - smartSearch: JobStatusDto; - storageTemplateMigration: JobStatusDto; - thumbnailGeneration: JobStatusDto; - videoConversion: JobStatusDto; +export type QueuesResponseDto = { + backgroundTask: QueueResponseDto; + backupDatabase: QueueResponseDto; + duplicateDetection: QueueResponseDto; + faceDetection: QueueResponseDto; + facialRecognition: QueueResponseDto; + library: QueueResponseDto; + metadataExtraction: QueueResponseDto; + migration: QueueResponseDto; + notifications: QueueResponseDto; + ocr: QueueResponseDto; + search: QueueResponseDto; + sidecar: QueueResponseDto; + smartSearch: QueueResponseDto; + storageTemplateMigration: QueueResponseDto; + thumbnailGeneration: QueueResponseDto; + videoConversion: QueueResponseDto; }; export type JobCreateDto = { name: ManualJobName; }; -export type JobCommandDto = { - command: JobCommand; +export type QueueCommandDto = { + command: QueueCommand; force?: boolean; }; export type LibraryResponseDto = { @@ -2805,10 +2805,10 @@ export function reassignFacesById({ id, faceDto }: { /** * Retrieve queue counts and status */ -export function getAllJobsStatus(opts?: Oazapfts.RequestOpts) { +export function getQueuesLegacy(opts?: Oazapfts.RequestOpts) { return oazapfts.ok(oazapfts.fetchJson<{ status: 200; - data: AllJobStatusResponseDto; + data: QueuesResponseDto; }>("/jobs", { ...opts })); @@ -2828,17 +2828,17 @@ export function createJob({ jobCreateDto }: { /** * Run jobs */ -export function sendJobCommand({ id, jobCommandDto }: { - id: JobName; - jobCommandDto: JobCommandDto; +export function runQueueCommandLegacy({ name, queueCommandDto }: { + name: QueueName; + queueCommandDto: QueueCommandDto; }, opts?: Oazapfts.RequestOpts) { return oazapfts.ok(oazapfts.fetchJson<{ status: 200; - data: JobStatusDto; - }>(`/jobs/${encodeURIComponent(id)}`, oazapfts.json({ + data: QueueResponseDto; + }>(`/jobs/${encodeURIComponent(name)}`, oazapfts.json({ ...opts, method: "PUT", - body: jobCommandDto + body: queueCommandDto }))); } /** @@ -5067,7 +5067,7 @@ export enum ManualJobName { MemoryCreate = "memory-create", BackupDatabase = "backup-database" } -export enum JobName { +export enum QueueName { ThumbnailGeneration = "thumbnailGeneration", MetadataExtraction = "metadataExtraction", VideoConversion = "videoConversion", @@ -5085,7 +5085,7 @@ export enum JobName { BackupDatabase = "backupDatabase", Ocr = "ocr" } -export enum JobCommand { +export enum QueueCommand { Start = "start", Pause = "pause", Resume = "resume", diff --git a/server/src/app.module.ts b/server/src/app.module.ts index 8079441329..f80a47bb77 100644 --- a/server/src/app.module.ts +++ b/server/src/app.module.ts @@ -23,7 +23,7 @@ import { WebsocketRepository } from 'src/repositories/websocket.repository'; import { services } from 'src/services'; import { AuthService } from 'src/services/auth.service'; import { CliService } from 'src/services/cli.service'; -import { JobService } from 'src/services/job.service'; +import { QueueService } from 'src/services/queue.service'; import { getKyselyConfig } from 'src/utils/database'; const common = [...repositories, ...services, GlobalExceptionFilter]; @@ -52,11 +52,11 @@ class BaseModule implements OnModuleInit, OnModuleDestroy { constructor( @Inject(IWorker) private worker: ImmichWorker, logger: LoggingRepository, - private eventRepository: EventRepository, - private websocketRepository: WebsocketRepository, - private jobService: JobService, - private telemetryRepository: TelemetryRepository, private authService: AuthService, + private eventRepository: EventRepository, + private queueService: QueueService, + private telemetryRepository: TelemetryRepository, + private websocketRepository: WebsocketRepository, ) { logger.setAppName(this.worker); } @@ -64,7 +64,7 @@ class BaseModule implements OnModuleInit, OnModuleDestroy { async onModuleInit() { this.telemetryRepository.setup({ repositories }); - this.jobService.setServices(services); + this.queueService.setServices(services); this.websocketRepository.setAuthFn(async (client) => this.authService.authenticate({ diff --git a/server/src/controllers/job.controller.ts b/server/src/controllers/job.controller.ts index 34c6bdc27f..977f1e0f1e 100644 --- a/server/src/controllers/job.controller.ts +++ b/server/src/controllers/job.controller.ts @@ -1,15 +1,20 @@ import { Body, Controller, Get, HttpCode, HttpStatus, Param, Post, Put } from '@nestjs/common'; import { ApiTags } from '@nestjs/swagger'; import { Endpoint, HistoryBuilder } from 'src/decorators'; -import { AllJobStatusResponseDto, JobCommandDto, JobCreateDto, JobIdParamDto, JobStatusDto } from 'src/dtos/job.dto'; +import { JobCreateDto } from 'src/dtos/job.dto'; +import { QueueCommandDto, QueueNameParamDto, QueueResponseDto, QueuesResponseDto } from 'src/dtos/queue.dto'; import { ApiTag, Permission } from 'src/enum'; import { Authenticated } from 'src/middleware/auth.guard'; import { JobService } from 'src/services/job.service'; +import { QueueService } from 'src/services/queue.service'; @ApiTags(ApiTag.Jobs) @Controller('jobs') export class JobController { - constructor(private service: JobService) {} + constructor( + private service: JobService, + private queueService: QueueService, + ) {} @Get() @Authenticated({ permission: Permission.JobRead, admin: true }) @@ -18,8 +23,8 @@ export class JobController { description: 'Retrieve the counts of the current queue, as well as the current status.', history: new HistoryBuilder().added('v1').beta('v1').stable('v2'), }) - getAllJobsStatus(): Promise { - return this.service.getAllJobsStatus(); + getQueuesLegacy(): Promise { + return this.queueService.getAll(); } @Post() @@ -35,7 +40,7 @@ export class JobController { return this.service.create(dto); } - @Put(':id') + @Put(':name') @Authenticated({ permission: Permission.JobCreate, admin: true }) @Endpoint({ summary: 'Run jobs', @@ -43,7 +48,7 @@ export class JobController { 'Queue all assets for a specific job type. Defaults to only queueing assets that have not yet been processed, but the force command can be used to re-process all assets.', history: new HistoryBuilder().added('v1').beta('v1').stable('v2'), }) - sendJobCommand(@Param() { id }: JobIdParamDto, @Body() dto: JobCommandDto): Promise { - return this.service.handleCommand(id, dto); + runQueueCommandLegacy(@Param() { name }: QueueNameParamDto, @Body() dto: QueueCommandDto): Promise { + return this.queueService.runCommand(name, dto); } } diff --git a/server/src/dtos/job.dto.ts b/server/src/dtos/job.dto.ts index 5daaeacdd3..794af6e5e0 100644 --- a/server/src/dtos/job.dto.ts +++ b/server/src/dtos/job.dto.ts @@ -1,99 +1,7 @@ -import { ApiProperty } from '@nestjs/swagger'; -import { JobCommand, ManualJobName, QueueName } from 'src/enum'; -import { ValidateBoolean, ValidateEnum } from 'src/validation'; - -export class JobIdParamDto { - @ValidateEnum({ enum: QueueName, name: 'JobName' }) - id!: QueueName; -} - -export class JobCommandDto { - @ValidateEnum({ enum: JobCommand, name: 'JobCommand' }) - command!: JobCommand; - - @ValidateBoolean({ optional: true }) - force?: boolean; // TODO: this uses undefined as a third state, which should be refactored to be more explicit -} +import { ManualJobName } from 'src/enum'; +import { ValidateEnum } from 'src/validation'; export class JobCreateDto { @ValidateEnum({ enum: ManualJobName, name: 'ManualJobName' }) name!: ManualJobName; } - -export class JobCountsDto { - @ApiProperty({ type: 'integer' }) - active!: number; - @ApiProperty({ type: 'integer' }) - completed!: number; - @ApiProperty({ type: 'integer' }) - failed!: number; - @ApiProperty({ type: 'integer' }) - delayed!: number; - @ApiProperty({ type: 'integer' }) - waiting!: number; - @ApiProperty({ type: 'integer' }) - paused!: number; -} - -export class QueueStatusDto { - isActive!: boolean; - isPaused!: boolean; -} - -export class JobStatusDto { - @ApiProperty({ type: JobCountsDto }) - jobCounts!: JobCountsDto; - - @ApiProperty({ type: QueueStatusDto }) - queueStatus!: QueueStatusDto; -} - -export class AllJobStatusResponseDto implements Record { - @ApiProperty({ type: JobStatusDto }) - [QueueName.ThumbnailGeneration]!: JobStatusDto; - - @ApiProperty({ type: JobStatusDto }) - [QueueName.MetadataExtraction]!: JobStatusDto; - - @ApiProperty({ type: JobStatusDto }) - [QueueName.VideoConversion]!: JobStatusDto; - - @ApiProperty({ type: JobStatusDto }) - [QueueName.SmartSearch]!: JobStatusDto; - - @ApiProperty({ type: JobStatusDto }) - [QueueName.StorageTemplateMigration]!: JobStatusDto; - - @ApiProperty({ type: JobStatusDto }) - [QueueName.Migration]!: JobStatusDto; - - @ApiProperty({ type: JobStatusDto }) - [QueueName.BackgroundTask]!: JobStatusDto; - - @ApiProperty({ type: JobStatusDto }) - [QueueName.Search]!: JobStatusDto; - - @ApiProperty({ type: JobStatusDto }) - [QueueName.DuplicateDetection]!: JobStatusDto; - - @ApiProperty({ type: JobStatusDto }) - [QueueName.FaceDetection]!: JobStatusDto; - - @ApiProperty({ type: JobStatusDto }) - [QueueName.FacialRecognition]!: JobStatusDto; - - @ApiProperty({ type: JobStatusDto }) - [QueueName.Sidecar]!: JobStatusDto; - - @ApiProperty({ type: JobStatusDto }) - [QueueName.Library]!: JobStatusDto; - - @ApiProperty({ type: JobStatusDto }) - [QueueName.Notification]!: JobStatusDto; - - @ApiProperty({ type: JobStatusDto }) - [QueueName.BackupDatabase]!: JobStatusDto; - - @ApiProperty({ type: JobStatusDto }) - [QueueName.Ocr]!: JobStatusDto; -} diff --git a/server/src/dtos/queue.dto.ts b/server/src/dtos/queue.dto.ts new file mode 100644 index 0000000000..1492e014d9 --- /dev/null +++ b/server/src/dtos/queue.dto.ts @@ -0,0 +1,94 @@ +import { ApiProperty } from '@nestjs/swagger'; +import { QueueCommand, QueueName } from 'src/enum'; +import { ValidateBoolean, ValidateEnum } from 'src/validation'; + +export class QueueNameParamDto { + @ValidateEnum({ enum: QueueName, name: 'QueueName' }) + name!: QueueName; +} + +export class QueueCommandDto { + @ValidateEnum({ enum: QueueCommand, name: 'QueueCommand' }) + command!: QueueCommand; + + @ValidateBoolean({ optional: true }) + force?: boolean; // TODO: this uses undefined as a third state, which should be refactored to be more explicit +} + +export class QueueStatisticsDto { + @ApiProperty({ type: 'integer' }) + active!: number; + @ApiProperty({ type: 'integer' }) + completed!: number; + @ApiProperty({ type: 'integer' }) + failed!: number; + @ApiProperty({ type: 'integer' }) + delayed!: number; + @ApiProperty({ type: 'integer' }) + waiting!: number; + @ApiProperty({ type: 'integer' }) + paused!: number; +} + +export class QueueStatusDto { + isActive!: boolean; + isPaused!: boolean; +} + +export class QueueResponseDto { + @ApiProperty({ type: QueueStatisticsDto }) + jobCounts!: QueueStatisticsDto; + + @ApiProperty({ type: QueueStatusDto }) + queueStatus!: QueueStatusDto; +} + +export class QueuesResponseDto implements Record { + @ApiProperty({ type: QueueResponseDto }) + [QueueName.ThumbnailGeneration]!: QueueResponseDto; + + @ApiProperty({ type: QueueResponseDto }) + [QueueName.MetadataExtraction]!: QueueResponseDto; + + @ApiProperty({ type: QueueResponseDto }) + [QueueName.VideoConversion]!: QueueResponseDto; + + @ApiProperty({ type: QueueResponseDto }) + [QueueName.SmartSearch]!: QueueResponseDto; + + @ApiProperty({ type: QueueResponseDto }) + [QueueName.StorageTemplateMigration]!: QueueResponseDto; + + @ApiProperty({ type: QueueResponseDto }) + [QueueName.Migration]!: QueueResponseDto; + + @ApiProperty({ type: QueueResponseDto }) + [QueueName.BackgroundTask]!: QueueResponseDto; + + @ApiProperty({ type: QueueResponseDto }) + [QueueName.Search]!: QueueResponseDto; + + @ApiProperty({ type: QueueResponseDto }) + [QueueName.DuplicateDetection]!: QueueResponseDto; + + @ApiProperty({ type: QueueResponseDto }) + [QueueName.FaceDetection]!: QueueResponseDto; + + @ApiProperty({ type: QueueResponseDto }) + [QueueName.FacialRecognition]!: QueueResponseDto; + + @ApiProperty({ type: QueueResponseDto }) + [QueueName.Sidecar]!: QueueResponseDto; + + @ApiProperty({ type: QueueResponseDto }) + [QueueName.Library]!: QueueResponseDto; + + @ApiProperty({ type: QueueResponseDto }) + [QueueName.Notification]!: QueueResponseDto; + + @ApiProperty({ type: QueueResponseDto }) + [QueueName.BackupDatabase]!: QueueResponseDto; + + @ApiProperty({ type: QueueResponseDto }) + [QueueName.Ocr]!: QueueResponseDto; +} diff --git a/server/src/enum.ts b/server/src/enum.ts index c706c1da7c..f3814863b1 100644 --- a/server/src/enum.ts +++ b/server/src/enum.ts @@ -603,7 +603,7 @@ export enum JobName { Ocr = 'Ocr', } -export enum JobCommand { +export enum QueueCommand { Start = 'start', Pause = 'pause', Resume = 'resume', diff --git a/server/src/services/api.service.ts b/server/src/services/api.service.ts index ee9b0e622d..0ec2a65f92 100644 --- a/server/src/services/api.service.ts +++ b/server/src/services/api.service.ts @@ -7,7 +7,6 @@ import { ONE_HOUR } from 'src/constants'; import { ConfigRepository } from 'src/repositories/config.repository'; import { LoggingRepository } from 'src/repositories/logging.repository'; import { AuthService } from 'src/services/auth.service'; -import { JobService } from 'src/services/job.service'; import { SharedLinkService } from 'src/services/shared-link.service'; import { VersionService } from 'src/services/version.service'; import { OpenGraphTags } from 'src/utils/misc'; @@ -40,7 +39,6 @@ const render = (index: string, meta: OpenGraphTags) => { export class ApiService { constructor( private authService: AuthService, - private jobService: JobService, private sharedLinkService: SharedLinkService, private versionService: VersionService, private configRepository: ConfigRepository, diff --git a/server/src/services/index.ts b/server/src/services/index.ts index 9a8b0fb2bf..8862a5b37e 100644 --- a/server/src/services/index.ts +++ b/server/src/services/index.ts @@ -23,6 +23,7 @@ import { NotificationService } from 'src/services/notification.service'; import { OcrService } from 'src/services/ocr.service'; import { PartnerService } from 'src/services/partner.service'; import { PersonService } from 'src/services/person.service'; +import { QueueService } from 'src/services/queue.service'; import { SearchService } from 'src/services/search.service'; import { ServerService } from 'src/services/server.service'; import { SessionService } from 'src/services/session.service'; @@ -69,6 +70,7 @@ export const services = [ OcrService, PartnerService, PersonService, + QueueService, SearchService, ServerService, SessionService, diff --git a/server/src/services/job.service.spec.ts b/server/src/services/job.service.spec.ts index 7a300ae7ae..c23b4f05df 100644 --- a/server/src/services/job.service.spec.ts +++ b/server/src/services/job.service.spec.ts @@ -1,6 +1,4 @@ -import { BadRequestException } from '@nestjs/common'; -import { defaults, SystemConfig } from 'src/config'; -import { ImmichWorker, JobCommand, JobName, JobStatus, QueueName } from 'src/enum'; +import { ImmichWorker, JobName, JobStatus, QueueName } from 'src/enum'; import { JobService } from 'src/services/job.service'; import { JobItem } from 'src/types'; import { assetStub } from 'test/fixtures/asset.stub'; @@ -20,209 +18,6 @@ describe(JobService.name, () => { expect(sut).toBeDefined(); }); - describe('onConfigUpdate', () => { - it('should update concurrency', () => { - sut.onConfigUpdate({ newConfig: defaults, oldConfig: {} as SystemConfig }); - - expect(mocks.job.setConcurrency).toHaveBeenCalledTimes(16); - expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(5, QueueName.FacialRecognition, 1); - expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(7, QueueName.DuplicateDetection, 1); - expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(8, QueueName.BackgroundTask, 5); - expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(9, QueueName.StorageTemplateMigration, 1); - }); - }); - - describe('handleNightlyJobs', () => { - it('should run the scheduled jobs', async () => { - await sut.handleNightlyJobs(); - - expect(mocks.job.queueAll).toHaveBeenCalledWith([ - { name: JobName.AssetDeleteCheck }, - { name: JobName.UserDeleteCheck }, - { name: JobName.PersonCleanup }, - { name: JobName.MemoryCleanup }, - { name: JobName.SessionCleanup }, - { name: JobName.AuditTableCleanup }, - { name: JobName.AuditLogCleanup }, - { name: JobName.MemoryGenerate }, - { name: JobName.UserSyncUsage }, - { name: JobName.AssetGenerateThumbnailsQueueAll, data: { force: false } }, - { name: JobName.FacialRecognitionQueueAll, data: { force: false, nightly: true } }, - ]); - }); - }); - - describe('getAllJobStatus', () => { - it('should get all job statuses', async () => { - mocks.job.getJobCounts.mockResolvedValue({ - active: 1, - completed: 1, - failed: 1, - delayed: 1, - waiting: 1, - paused: 1, - }); - mocks.job.getQueueStatus.mockResolvedValue({ - isActive: true, - isPaused: true, - }); - - const expectedJobStatus = { - jobCounts: { - active: 1, - completed: 1, - delayed: 1, - failed: 1, - waiting: 1, - paused: 1, - }, - queueStatus: { - isActive: true, - isPaused: true, - }, - }; - - await expect(sut.getAllJobsStatus()).resolves.toEqual({ - [QueueName.BackgroundTask]: expectedJobStatus, - [QueueName.DuplicateDetection]: expectedJobStatus, - [QueueName.SmartSearch]: expectedJobStatus, - [QueueName.MetadataExtraction]: expectedJobStatus, - [QueueName.Search]: expectedJobStatus, - [QueueName.StorageTemplateMigration]: expectedJobStatus, - [QueueName.Migration]: expectedJobStatus, - [QueueName.ThumbnailGeneration]: expectedJobStatus, - [QueueName.VideoConversion]: expectedJobStatus, - [QueueName.FaceDetection]: expectedJobStatus, - [QueueName.FacialRecognition]: expectedJobStatus, - [QueueName.Sidecar]: expectedJobStatus, - [QueueName.Library]: expectedJobStatus, - [QueueName.Notification]: expectedJobStatus, - [QueueName.BackupDatabase]: expectedJobStatus, - [QueueName.Ocr]: expectedJobStatus, - }); - }); - }); - - describe('handleCommand', () => { - it('should handle a pause command', async () => { - await sut.handleCommand(QueueName.MetadataExtraction, { command: JobCommand.Pause, force: false }); - - expect(mocks.job.pause).toHaveBeenCalledWith(QueueName.MetadataExtraction); - }); - - it('should handle a resume command', async () => { - await sut.handleCommand(QueueName.MetadataExtraction, { command: JobCommand.Resume, force: false }); - - expect(mocks.job.resume).toHaveBeenCalledWith(QueueName.MetadataExtraction); - }); - - it('should handle an empty command', async () => { - await sut.handleCommand(QueueName.MetadataExtraction, { command: JobCommand.Empty, force: false }); - - expect(mocks.job.empty).toHaveBeenCalledWith(QueueName.MetadataExtraction); - }); - - it('should not start a job that is already running', async () => { - mocks.job.getQueueStatus.mockResolvedValue({ isActive: true, isPaused: false }); - - await expect( - sut.handleCommand(QueueName.VideoConversion, { command: JobCommand.Start, force: false }), - ).rejects.toBeInstanceOf(BadRequestException); - - expect(mocks.job.queue).not.toHaveBeenCalled(); - expect(mocks.job.queueAll).not.toHaveBeenCalled(); - }); - - it('should handle a start video conversion command', async () => { - mocks.job.getQueueStatus.mockResolvedValue({ isActive: false, isPaused: false }); - - await sut.handleCommand(QueueName.VideoConversion, { command: JobCommand.Start, force: false }); - - expect(mocks.job.queue).toHaveBeenCalledWith({ name: JobName.AssetEncodeVideoQueueAll, data: { force: false } }); - }); - - it('should handle a start storage template migration command', async () => { - mocks.job.getQueueStatus.mockResolvedValue({ isActive: false, isPaused: false }); - - await sut.handleCommand(QueueName.StorageTemplateMigration, { command: JobCommand.Start, force: false }); - - expect(mocks.job.queue).toHaveBeenCalledWith({ name: JobName.StorageTemplateMigration }); - }); - - it('should handle a start smart search command', async () => { - mocks.job.getQueueStatus.mockResolvedValue({ isActive: false, isPaused: false }); - - await sut.handleCommand(QueueName.SmartSearch, { command: JobCommand.Start, force: false }); - - expect(mocks.job.queue).toHaveBeenCalledWith({ name: JobName.SmartSearchQueueAll, data: { force: false } }); - }); - - it('should handle a start metadata extraction command', async () => { - mocks.job.getQueueStatus.mockResolvedValue({ isActive: false, isPaused: false }); - - await sut.handleCommand(QueueName.MetadataExtraction, { command: JobCommand.Start, force: false }); - - expect(mocks.job.queue).toHaveBeenCalledWith({ - name: JobName.AssetExtractMetadataQueueAll, - data: { force: false }, - }); - }); - - it('should handle a start sidecar command', async () => { - mocks.job.getQueueStatus.mockResolvedValue({ isActive: false, isPaused: false }); - - await sut.handleCommand(QueueName.Sidecar, { command: JobCommand.Start, force: false }); - - expect(mocks.job.queue).toHaveBeenCalledWith({ name: JobName.SidecarQueueAll, data: { force: false } }); - }); - - it('should handle a start thumbnail generation command', async () => { - mocks.job.getQueueStatus.mockResolvedValue({ isActive: false, isPaused: false }); - - await sut.handleCommand(QueueName.ThumbnailGeneration, { command: JobCommand.Start, force: false }); - - expect(mocks.job.queue).toHaveBeenCalledWith({ - name: JobName.AssetGenerateThumbnailsQueueAll, - data: { force: false }, - }); - }); - - it('should handle a start face detection command', async () => { - mocks.job.getQueueStatus.mockResolvedValue({ isActive: false, isPaused: false }); - - await sut.handleCommand(QueueName.FaceDetection, { command: JobCommand.Start, force: false }); - - expect(mocks.job.queue).toHaveBeenCalledWith({ name: JobName.AssetDetectFacesQueueAll, data: { force: false } }); - }); - - it('should handle a start facial recognition command', async () => { - mocks.job.getQueueStatus.mockResolvedValue({ isActive: false, isPaused: false }); - - await sut.handleCommand(QueueName.FacialRecognition, { command: JobCommand.Start, force: false }); - - expect(mocks.job.queue).toHaveBeenCalledWith({ name: JobName.FacialRecognitionQueueAll, data: { force: false } }); - }); - - it('should handle a start backup database command', async () => { - mocks.job.getQueueStatus.mockResolvedValue({ isActive: false, isPaused: false }); - - await sut.handleCommand(QueueName.BackupDatabase, { command: JobCommand.Start, force: false }); - - expect(mocks.job.queue).toHaveBeenCalledWith({ name: JobName.DatabaseBackup, data: { force: false } }); - }); - - it('should throw a bad request when an invalid queue is used', async () => { - mocks.job.getQueueStatus.mockResolvedValue({ isActive: false, isPaused: false }); - - await expect( - sut.handleCommand(QueueName.BackgroundTask, { command: JobCommand.Start, force: false }), - ).rejects.toBeInstanceOf(BadRequestException); - - expect(mocks.job.queue).not.toHaveBeenCalled(); - expect(mocks.job.queueAll).not.toHaveBeenCalled(); - }); - }); - describe('onJobRun', () => { it('should process a successful job', async () => { mocks.job.run.mockResolvedValue(JobStatus.Success); diff --git a/server/src/services/job.service.ts b/server/src/services/job.service.ts index c483155b71..b57a203788 100644 --- a/server/src/services/job.service.ts +++ b/server/src/services/job.service.ts @@ -1,28 +1,12 @@ import { BadRequestException, Injectable } from '@nestjs/common'; -import { ClassConstructor } from 'class-transformer'; -import { SystemConfig } from 'src/config'; import { OnEvent } from 'src/decorators'; import { mapAsset } from 'src/dtos/asset-response.dto'; -import { AllJobStatusResponseDto, JobCommandDto, JobCreateDto, JobStatusDto } from 'src/dtos/job.dto'; -import { - AssetType, - AssetVisibility, - BootstrapEventPriority, - CronJob, - DatabaseLock, - ImmichWorker, - JobCommand, - JobName, - JobStatus, - ManualJobName, - QueueCleanType, - QueueName, -} from 'src/enum'; -import { ArgOf, ArgsOf } from 'src/repositories/event.repository'; +import { JobCreateDto } from 'src/dtos/job.dto'; +import { AssetType, AssetVisibility, JobName, JobStatus, ManualJobName } from 'src/enum'; +import { ArgsOf } from 'src/repositories/event.repository'; import { BaseService } from 'src/services/base.service'; -import { ConcurrentQueueName, JobItem } from 'src/types'; +import { JobItem } from 'src/types'; import { hexOrBufferToBase64 } from 'src/utils/bytes'; -import { handlePromiseError } from 'src/utils/misc'; const asJobItem = (dto: JobCreateDto): JobItem => { switch (dto.name) { @@ -56,196 +40,12 @@ const asJobItem = (dto: JobCreateDto): JobItem => { } }; -const asNightlyTasksCron = (config: SystemConfig) => { - const [hours, minutes] = config.nightlyTasks.startTime.split(':').map(Number); - return `${minutes} ${hours} * * *`; -}; - @Injectable() export class JobService extends BaseService { - private services: ClassConstructor[] = []; - private nightlyJobsLock = false; - - @OnEvent({ name: 'ConfigInit' }) - async onConfigInit({ newConfig: config }: ArgOf<'ConfigInit'>) { - if (this.worker === ImmichWorker.Microservices) { - this.updateQueueConcurrency(config); - return; - } - - this.nightlyJobsLock = await this.databaseRepository.tryLock(DatabaseLock.NightlyJobs); - if (this.nightlyJobsLock) { - const cronExpression = asNightlyTasksCron(config); - this.logger.debug(`Scheduling nightly jobs for ${cronExpression}`); - this.cronRepository.create({ - name: CronJob.NightlyJobs, - expression: cronExpression, - start: true, - onTick: () => handlePromiseError(this.handleNightlyJobs(), this.logger), - }); - } - } - - @OnEvent({ name: 'ConfigUpdate', server: true }) - onConfigUpdate({ newConfig: config }: ArgOf<'ConfigUpdate'>) { - if (this.worker === ImmichWorker.Microservices) { - this.updateQueueConcurrency(config); - return; - } - - if (this.nightlyJobsLock) { - const cronExpression = asNightlyTasksCron(config); - this.logger.debug(`Scheduling nightly jobs for ${cronExpression}`); - this.cronRepository.update({ name: CronJob.NightlyJobs, expression: cronExpression, start: true }); - } - } - - @OnEvent({ name: 'AppBootstrap', priority: BootstrapEventPriority.JobService }) - onBootstrap() { - this.jobRepository.setup(this.services); - if (this.worker === ImmichWorker.Microservices) { - this.jobRepository.startWorkers(); - } - } - - private updateQueueConcurrency(config: SystemConfig) { - this.logger.debug(`Updating queue concurrency settings`); - for (const queueName of Object.values(QueueName)) { - let concurrency = 1; - if (this.isConcurrentQueue(queueName)) { - concurrency = config.job[queueName].concurrency; - } - this.logger.debug(`Setting ${queueName} concurrency to ${concurrency}`); - this.jobRepository.setConcurrency(queueName, concurrency); - } - } - - setServices(services: ClassConstructor[]) { - this.services = services; - } - async create(dto: JobCreateDto): Promise { await this.jobRepository.queue(asJobItem(dto)); } - async handleCommand(queueName: QueueName, dto: JobCommandDto): Promise { - this.logger.debug(`Handling command: queue=${queueName},command=${dto.command},force=${dto.force}`); - - switch (dto.command) { - case JobCommand.Start: { - await this.start(queueName, dto); - break; - } - - case JobCommand.Pause: { - await this.jobRepository.pause(queueName); - break; - } - - case JobCommand.Resume: { - await this.jobRepository.resume(queueName); - break; - } - - case JobCommand.Empty: { - await this.jobRepository.empty(queueName); - break; - } - - case JobCommand.ClearFailed: { - const failedJobs = await this.jobRepository.clear(queueName, QueueCleanType.Failed); - this.logger.debug(`Cleared failed jobs: ${failedJobs}`); - break; - } - } - - return this.getJobStatus(queueName); - } - - async getJobStatus(queueName: QueueName): Promise { - const [jobCounts, queueStatus] = await Promise.all([ - this.jobRepository.getJobCounts(queueName), - this.jobRepository.getQueueStatus(queueName), - ]); - - return { jobCounts, queueStatus }; - } - - async getAllJobsStatus(): Promise { - const response = new AllJobStatusResponseDto(); - for (const queueName of Object.values(QueueName)) { - response[queueName] = await this.getJobStatus(queueName); - } - return response; - } - - private async start(name: QueueName, { force }: JobCommandDto): Promise { - const { isActive } = await this.jobRepository.getQueueStatus(name); - if (isActive) { - throw new BadRequestException(`Job is already running`); - } - - await this.eventRepository.emit('QueueStart', { name }); - - switch (name) { - case QueueName.VideoConversion: { - return this.jobRepository.queue({ name: JobName.AssetEncodeVideoQueueAll, data: { force } }); - } - - case QueueName.StorageTemplateMigration: { - return this.jobRepository.queue({ name: JobName.StorageTemplateMigration }); - } - - case QueueName.Migration: { - return this.jobRepository.queue({ name: JobName.FileMigrationQueueAll }); - } - - case QueueName.SmartSearch: { - return this.jobRepository.queue({ name: JobName.SmartSearchQueueAll, data: { force } }); - } - - case QueueName.DuplicateDetection: { - return this.jobRepository.queue({ name: JobName.AssetDetectDuplicatesQueueAll, data: { force } }); - } - - case QueueName.MetadataExtraction: { - return this.jobRepository.queue({ name: JobName.AssetExtractMetadataQueueAll, data: { force } }); - } - - case QueueName.Sidecar: { - return this.jobRepository.queue({ name: JobName.SidecarQueueAll, data: { force } }); - } - - case QueueName.ThumbnailGeneration: { - return this.jobRepository.queue({ name: JobName.AssetGenerateThumbnailsQueueAll, data: { force } }); - } - - case QueueName.FaceDetection: { - return this.jobRepository.queue({ name: JobName.AssetDetectFacesQueueAll, data: { force } }); - } - - case QueueName.FacialRecognition: { - return this.jobRepository.queue({ name: JobName.FacialRecognitionQueueAll, data: { force } }); - } - - case QueueName.Library: { - return this.jobRepository.queue({ name: JobName.LibraryScanQueueAll, data: { force } }); - } - - case QueueName.BackupDatabase: { - return this.jobRepository.queue({ name: JobName.DatabaseBackup, data: { force } }); - } - - case QueueName.Ocr: { - return this.jobRepository.queue({ name: JobName.OcrQueueAll, data: { force } }); - } - - default: { - throw new BadRequestException(`Invalid job name: ${name}`); - } - } - } - @OnEvent({ name: 'JobRun' }) async onJobRun(...[queueName, job]: ArgsOf<'JobRun'>) { try { @@ -262,50 +62,6 @@ export class JobService extends BaseService { } } - private isConcurrentQueue(name: QueueName): name is ConcurrentQueueName { - return ![ - QueueName.FacialRecognition, - QueueName.StorageTemplateMigration, - QueueName.DuplicateDetection, - QueueName.BackupDatabase, - ].includes(name); - } - - async handleNightlyJobs() { - const config = await this.getConfig({ withCache: false }); - const jobs: JobItem[] = []; - - if (config.nightlyTasks.databaseCleanup) { - jobs.push( - { name: JobName.AssetDeleteCheck }, - { name: JobName.UserDeleteCheck }, - { name: JobName.PersonCleanup }, - { name: JobName.MemoryCleanup }, - { name: JobName.SessionCleanup }, - { name: JobName.AuditTableCleanup }, - { name: JobName.AuditLogCleanup }, - ); - } - - if (config.nightlyTasks.generateMemories) { - jobs.push({ name: JobName.MemoryGenerate }); - } - - if (config.nightlyTasks.syncQuotaUsage) { - jobs.push({ name: JobName.UserSyncUsage }); - } - - if (config.nightlyTasks.missingThumbnails) { - jobs.push({ name: JobName.AssetGenerateThumbnailsQueueAll, data: { force: false } }); - } - - if (config.nightlyTasks.clusterNewFaces) { - jobs.push({ name: JobName.FacialRecognitionQueueAll, data: { force: false, nightly: true } }); - } - - await this.jobRepository.queueAll(jobs); - } - /** * Queue follow up jobs */ diff --git a/server/src/services/queue.service.spec.ts b/server/src/services/queue.service.spec.ts new file mode 100644 index 0000000000..1cc53df644 --- /dev/null +++ b/server/src/services/queue.service.spec.ts @@ -0,0 +1,223 @@ +import { BadRequestException } from '@nestjs/common'; +import { defaults, SystemConfig } from 'src/config'; +import { ImmichWorker, JobName, QueueCommand, QueueName } from 'src/enum'; +import { QueueService } from 'src/services/queue.service'; +import { newTestService, ServiceMocks } from 'test/utils'; + +describe(QueueService.name, () => { + let sut: QueueService; + let mocks: ServiceMocks; + + beforeEach(() => { + ({ sut, mocks } = newTestService(QueueService)); + + mocks.config.getWorker.mockReturnValue(ImmichWorker.Microservices); + }); + + it('should work', () => { + expect(sut).toBeDefined(); + }); + + describe('onConfigUpdate', () => { + it('should update concurrency', () => { + sut.onConfigUpdate({ newConfig: defaults, oldConfig: {} as SystemConfig }); + + expect(mocks.job.setConcurrency).toHaveBeenCalledTimes(16); + expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(5, QueueName.FacialRecognition, 1); + expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(7, QueueName.DuplicateDetection, 1); + expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(8, QueueName.BackgroundTask, 5); + expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(9, QueueName.StorageTemplateMigration, 1); + }); + }); + + describe('handleNightlyJobs', () => { + it('should run the scheduled jobs', async () => { + await sut.handleNightlyJobs(); + + expect(mocks.job.queueAll).toHaveBeenCalledWith([ + { name: JobName.AssetDeleteCheck }, + { name: JobName.UserDeleteCheck }, + { name: JobName.PersonCleanup }, + { name: JobName.MemoryCleanup }, + { name: JobName.SessionCleanup }, + { name: JobName.AuditTableCleanup }, + { name: JobName.AuditLogCleanup }, + { name: JobName.MemoryGenerate }, + { name: JobName.UserSyncUsage }, + { name: JobName.AssetGenerateThumbnailsQueueAll, data: { force: false } }, + { name: JobName.FacialRecognitionQueueAll, data: { force: false, nightly: true } }, + ]); + }); + }); + + describe('getAllJobStatus', () => { + it('should get all job statuses', async () => { + mocks.job.getJobCounts.mockResolvedValue({ + active: 1, + completed: 1, + failed: 1, + delayed: 1, + waiting: 1, + paused: 1, + }); + mocks.job.getQueueStatus.mockResolvedValue({ + isActive: true, + isPaused: true, + }); + + const expectedJobStatus = { + jobCounts: { + active: 1, + completed: 1, + delayed: 1, + failed: 1, + waiting: 1, + paused: 1, + }, + queueStatus: { + isActive: true, + isPaused: true, + }, + }; + + await expect(sut.getAll()).resolves.toEqual({ + [QueueName.BackgroundTask]: expectedJobStatus, + [QueueName.DuplicateDetection]: expectedJobStatus, + [QueueName.SmartSearch]: expectedJobStatus, + [QueueName.MetadataExtraction]: expectedJobStatus, + [QueueName.Search]: expectedJobStatus, + [QueueName.StorageTemplateMigration]: expectedJobStatus, + [QueueName.Migration]: expectedJobStatus, + [QueueName.ThumbnailGeneration]: expectedJobStatus, + [QueueName.VideoConversion]: expectedJobStatus, + [QueueName.FaceDetection]: expectedJobStatus, + [QueueName.FacialRecognition]: expectedJobStatus, + [QueueName.Sidecar]: expectedJobStatus, + [QueueName.Library]: expectedJobStatus, + [QueueName.Notification]: expectedJobStatus, + [QueueName.BackupDatabase]: expectedJobStatus, + [QueueName.Ocr]: expectedJobStatus, + }); + }); + }); + + describe('handleCommand', () => { + it('should handle a pause command', async () => { + await sut.runCommand(QueueName.MetadataExtraction, { command: QueueCommand.Pause, force: false }); + + expect(mocks.job.pause).toHaveBeenCalledWith(QueueName.MetadataExtraction); + }); + + it('should handle a resume command', async () => { + await sut.runCommand(QueueName.MetadataExtraction, { command: QueueCommand.Resume, force: false }); + + expect(mocks.job.resume).toHaveBeenCalledWith(QueueName.MetadataExtraction); + }); + + it('should handle an empty command', async () => { + await sut.runCommand(QueueName.MetadataExtraction, { command: QueueCommand.Empty, force: false }); + + expect(mocks.job.empty).toHaveBeenCalledWith(QueueName.MetadataExtraction); + }); + + it('should not start a job that is already running', async () => { + mocks.job.getQueueStatus.mockResolvedValue({ isActive: true, isPaused: false }); + + await expect( + sut.runCommand(QueueName.VideoConversion, { command: QueueCommand.Start, force: false }), + ).rejects.toBeInstanceOf(BadRequestException); + + expect(mocks.job.queue).not.toHaveBeenCalled(); + expect(mocks.job.queueAll).not.toHaveBeenCalled(); + }); + + it('should handle a start video conversion command', async () => { + mocks.job.getQueueStatus.mockResolvedValue({ isActive: false, isPaused: false }); + + await sut.runCommand(QueueName.VideoConversion, { command: QueueCommand.Start, force: false }); + + expect(mocks.job.queue).toHaveBeenCalledWith({ name: JobName.AssetEncodeVideoQueueAll, data: { force: false } }); + }); + + it('should handle a start storage template migration command', async () => { + mocks.job.getQueueStatus.mockResolvedValue({ isActive: false, isPaused: false }); + + await sut.runCommand(QueueName.StorageTemplateMigration, { command: QueueCommand.Start, force: false }); + + expect(mocks.job.queue).toHaveBeenCalledWith({ name: JobName.StorageTemplateMigration }); + }); + + it('should handle a start smart search command', async () => { + mocks.job.getQueueStatus.mockResolvedValue({ isActive: false, isPaused: false }); + + await sut.runCommand(QueueName.SmartSearch, { command: QueueCommand.Start, force: false }); + + expect(mocks.job.queue).toHaveBeenCalledWith({ name: JobName.SmartSearchQueueAll, data: { force: false } }); + }); + + it('should handle a start metadata extraction command', async () => { + mocks.job.getQueueStatus.mockResolvedValue({ isActive: false, isPaused: false }); + + await sut.runCommand(QueueName.MetadataExtraction, { command: QueueCommand.Start, force: false }); + + expect(mocks.job.queue).toHaveBeenCalledWith({ + name: JobName.AssetExtractMetadataQueueAll, + data: { force: false }, + }); + }); + + it('should handle a start sidecar command', async () => { + mocks.job.getQueueStatus.mockResolvedValue({ isActive: false, isPaused: false }); + + await sut.runCommand(QueueName.Sidecar, { command: QueueCommand.Start, force: false }); + + expect(mocks.job.queue).toHaveBeenCalledWith({ name: JobName.SidecarQueueAll, data: { force: false } }); + }); + + it('should handle a start thumbnail generation command', async () => { + mocks.job.getQueueStatus.mockResolvedValue({ isActive: false, isPaused: false }); + + await sut.runCommand(QueueName.ThumbnailGeneration, { command: QueueCommand.Start, force: false }); + + expect(mocks.job.queue).toHaveBeenCalledWith({ + name: JobName.AssetGenerateThumbnailsQueueAll, + data: { force: false }, + }); + }); + + it('should handle a start face detection command', async () => { + mocks.job.getQueueStatus.mockResolvedValue({ isActive: false, isPaused: false }); + + await sut.runCommand(QueueName.FaceDetection, { command: QueueCommand.Start, force: false }); + + expect(mocks.job.queue).toHaveBeenCalledWith({ name: JobName.AssetDetectFacesQueueAll, data: { force: false } }); + }); + + it('should handle a start facial recognition command', async () => { + mocks.job.getQueueStatus.mockResolvedValue({ isActive: false, isPaused: false }); + + await sut.runCommand(QueueName.FacialRecognition, { command: QueueCommand.Start, force: false }); + + expect(mocks.job.queue).toHaveBeenCalledWith({ name: JobName.FacialRecognitionQueueAll, data: { force: false } }); + }); + + it('should handle a start backup database command', async () => { + mocks.job.getQueueStatus.mockResolvedValue({ isActive: false, isPaused: false }); + + await sut.runCommand(QueueName.BackupDatabase, { command: QueueCommand.Start, force: false }); + + expect(mocks.job.queue).toHaveBeenCalledWith({ name: JobName.DatabaseBackup, data: { force: false } }); + }); + + it('should throw a bad request when an invalid queue is used', async () => { + mocks.job.getQueueStatus.mockResolvedValue({ isActive: false, isPaused: false }); + + await expect( + sut.runCommand(QueueName.BackgroundTask, { command: QueueCommand.Start, force: false }), + ).rejects.toBeInstanceOf(BadRequestException); + + expect(mocks.job.queue).not.toHaveBeenCalled(); + expect(mocks.job.queueAll).not.toHaveBeenCalled(); + }); + }); +}); diff --git a/server/src/services/queue.service.ts b/server/src/services/queue.service.ts new file mode 100644 index 0000000000..bea665e8fd --- /dev/null +++ b/server/src/services/queue.service.ts @@ -0,0 +1,250 @@ +import { BadRequestException, Injectable } from '@nestjs/common'; +import { ClassConstructor } from 'class-transformer'; +import { SystemConfig } from 'src/config'; +import { OnEvent } from 'src/decorators'; +import { QueueCommandDto, QueueResponseDto, QueuesResponseDto } from 'src/dtos/queue.dto'; +import { + BootstrapEventPriority, + CronJob, + DatabaseLock, + ImmichWorker, + JobName, + QueueCleanType, + QueueCommand, + QueueName, +} from 'src/enum'; +import { ArgOf } from 'src/repositories/event.repository'; +import { BaseService } from 'src/services/base.service'; +import { ConcurrentQueueName, JobItem } from 'src/types'; +import { handlePromiseError } from 'src/utils/misc'; + +const asNightlyTasksCron = (config: SystemConfig) => { + const [hours, minutes] = config.nightlyTasks.startTime.split(':').map(Number); + return `${minutes} ${hours} * * *`; +}; + +@Injectable() +export class QueueService extends BaseService { + private services: ClassConstructor[] = []; + private nightlyJobsLock = false; + + @OnEvent({ name: 'ConfigInit' }) + async onConfigInit({ newConfig: config }: ArgOf<'ConfigInit'>) { + if (this.worker === ImmichWorker.Microservices) { + this.updateConcurrency(config); + return; + } + + this.nightlyJobsLock = await this.databaseRepository.tryLock(DatabaseLock.NightlyJobs); + if (this.nightlyJobsLock) { + const cronExpression = asNightlyTasksCron(config); + this.logger.debug(`Scheduling nightly jobs for ${cronExpression}`); + this.cronRepository.create({ + name: CronJob.NightlyJobs, + expression: cronExpression, + start: true, + onTick: () => handlePromiseError(this.handleNightlyJobs(), this.logger), + }); + } + } + + @OnEvent({ name: 'ConfigUpdate', server: true }) + onConfigUpdate({ newConfig: config }: ArgOf<'ConfigUpdate'>) { + if (this.worker === ImmichWorker.Microservices) { + this.updateConcurrency(config); + return; + } + + if (this.nightlyJobsLock) { + const cronExpression = asNightlyTasksCron(config); + this.logger.debug(`Scheduling nightly jobs for ${cronExpression}`); + this.cronRepository.update({ name: CronJob.NightlyJobs, expression: cronExpression, start: true }); + } + } + + @OnEvent({ name: 'AppBootstrap', priority: BootstrapEventPriority.JobService }) + onBootstrap() { + this.jobRepository.setup(this.services); + if (this.worker === ImmichWorker.Microservices) { + this.jobRepository.startWorkers(); + } + } + + private updateConcurrency(config: SystemConfig) { + this.logger.debug(`Updating queue concurrency settings`); + for (const queueName of Object.values(QueueName)) { + let concurrency = 1; + if (this.isConcurrentQueue(queueName)) { + concurrency = config.job[queueName].concurrency; + } + this.logger.debug(`Setting ${queueName} concurrency to ${concurrency}`); + this.jobRepository.setConcurrency(queueName, concurrency); + } + } + + setServices(services: ClassConstructor[]) { + this.services = services; + } + + async runCommand(name: QueueName, dto: QueueCommandDto): Promise { + this.logger.debug(`Handling command: queue=${name},command=${dto.command},force=${dto.force}`); + + switch (dto.command) { + case QueueCommand.Start: { + await this.start(name, dto); + break; + } + + case QueueCommand.Pause: { + await this.jobRepository.pause(name); + break; + } + + case QueueCommand.Resume: { + await this.jobRepository.resume(name); + break; + } + + case QueueCommand.Empty: { + await this.jobRepository.empty(name); + break; + } + + case QueueCommand.ClearFailed: { + const failedJobs = await this.jobRepository.clear(name, QueueCleanType.Failed); + this.logger.debug(`Cleared failed jobs: ${failedJobs}`); + break; + } + } + + return this.getByName(name); + } + + async getAll(): Promise { + const response = new QueuesResponseDto(); + for (const name of Object.values(QueueName)) { + response[name] = await this.getByName(name); + } + return response; + } + + async getByName(name: QueueName): Promise { + const [jobCounts, queueStatus] = await Promise.all([ + this.jobRepository.getJobCounts(name), + this.jobRepository.getQueueStatus(name), + ]); + + return { jobCounts, queueStatus }; + } + + private async start(name: QueueName, { force }: QueueCommandDto): Promise { + const { isActive } = await this.jobRepository.getQueueStatus(name); + if (isActive) { + throw new BadRequestException(`Job is already running`); + } + + await this.eventRepository.emit('QueueStart', { name }); + + switch (name) { + case QueueName.VideoConversion: { + return this.jobRepository.queue({ name: JobName.AssetEncodeVideoQueueAll, data: { force } }); + } + + case QueueName.StorageTemplateMigration: { + return this.jobRepository.queue({ name: JobName.StorageTemplateMigration }); + } + + case QueueName.Migration: { + return this.jobRepository.queue({ name: JobName.FileMigrationQueueAll }); + } + + case QueueName.SmartSearch: { + return this.jobRepository.queue({ name: JobName.SmartSearchQueueAll, data: { force } }); + } + + case QueueName.DuplicateDetection: { + return this.jobRepository.queue({ name: JobName.AssetDetectDuplicatesQueueAll, data: { force } }); + } + + case QueueName.MetadataExtraction: { + return this.jobRepository.queue({ name: JobName.AssetExtractMetadataQueueAll, data: { force } }); + } + + case QueueName.Sidecar: { + return this.jobRepository.queue({ name: JobName.SidecarQueueAll, data: { force } }); + } + + case QueueName.ThumbnailGeneration: { + return this.jobRepository.queue({ name: JobName.AssetGenerateThumbnailsQueueAll, data: { force } }); + } + + case QueueName.FaceDetection: { + return this.jobRepository.queue({ name: JobName.AssetDetectFacesQueueAll, data: { force } }); + } + + case QueueName.FacialRecognition: { + return this.jobRepository.queue({ name: JobName.FacialRecognitionQueueAll, data: { force } }); + } + + case QueueName.Library: { + return this.jobRepository.queue({ name: JobName.LibraryScanQueueAll, data: { force } }); + } + + case QueueName.BackupDatabase: { + return this.jobRepository.queue({ name: JobName.DatabaseBackup, data: { force } }); + } + + case QueueName.Ocr: { + return this.jobRepository.queue({ name: JobName.OcrQueueAll, data: { force } }); + } + + default: { + throw new BadRequestException(`Invalid job name: ${name}`); + } + } + } + + private isConcurrentQueue(name: QueueName): name is ConcurrentQueueName { + return ![ + QueueName.FacialRecognition, + QueueName.StorageTemplateMigration, + QueueName.DuplicateDetection, + QueueName.BackupDatabase, + ].includes(name); + } + + async handleNightlyJobs() { + const config = await this.getConfig({ withCache: false }); + const jobs: JobItem[] = []; + + if (config.nightlyTasks.databaseCleanup) { + jobs.push( + { name: JobName.AssetDeleteCheck }, + { name: JobName.UserDeleteCheck }, + { name: JobName.PersonCleanup }, + { name: JobName.MemoryCleanup }, + { name: JobName.SessionCleanup }, + { name: JobName.AuditTableCleanup }, + { name: JobName.AuditLogCleanup }, + ); + } + + if (config.nightlyTasks.generateMemories) { + jobs.push({ name: JobName.MemoryGenerate }); + } + + if (config.nightlyTasks.syncQuotaUsage) { + jobs.push({ name: JobName.UserSyncUsage }); + } + + if (config.nightlyTasks.missingThumbnails) { + jobs.push({ name: JobName.AssetGenerateThumbnailsQueueAll, data: { force: false } }); + } + + if (config.nightlyTasks.clusterNewFaces) { + jobs.push({ name: JobName.FacialRecognitionQueueAll, data: { force: false, nightly: true } }); + } + + await this.jobRepository.queueAll(jobs); + } +} diff --git a/web/src/lib/components/admin-settings/JobSettings.svelte b/web/src/lib/components/admin-settings/JobSettings.svelte index fb8a11b33b..94b4426dbb 100644 --- a/web/src/lib/components/admin-settings/JobSettings.svelte +++ b/web/src/lib/components/admin-settings/JobSettings.svelte @@ -4,8 +4,8 @@ import { SettingInputFieldType } from '$lib/constants'; import { featureFlagsManager } from '$lib/managers/feature-flags-manager.svelte'; import { systemConfigManager } from '$lib/managers/system-config-manager.svelte'; - import { getJobName } from '$lib/utils'; - import { JobName, type SystemConfigJobDto } from '@immich/sdk'; + import { getQueueName } from '$lib/utils'; + import { QueueName, type SystemConfigJobDto } from '@immich/sdk'; import { t } from 'svelte-i18n'; import { fade } from 'svelte/transition'; @@ -13,18 +13,18 @@ const config = $derived(systemConfigManager.value); let configToEdit = $state(systemConfigManager.cloneValue()); - const jobNames = [ - JobName.ThumbnailGeneration, - JobName.MetadataExtraction, - JobName.Library, - JobName.Sidecar, - JobName.SmartSearch, - JobName.FaceDetection, - JobName.FacialRecognition, - JobName.VideoConversion, - JobName.StorageTemplateMigration, - JobName.Migration, - JobName.Ocr, + const queueNames = [ + QueueName.ThumbnailGeneration, + QueueName.MetadataExtraction, + QueueName.Library, + QueueName.Sidecar, + QueueName.SmartSearch, + QueueName.FaceDetection, + QueueName.FacialRecognition, + QueueName.VideoConversion, + QueueName.StorageTemplateMigration, + QueueName.Migration, + QueueName.Ocr, ]; function isSystemConfigJobDto(jobName: string): jobName is keyof SystemConfigJobDto { @@ -35,22 +35,22 @@
event.preventDefault()}> - {#each jobNames as jobName (jobName)} + {#each queueNames as queueName (queueName)}
- {#if isSystemConfigJobDto(jobName)} + {#if isSystemConfigJobDto(queueName)} {:else} import Badge from '$lib/elements/Badge.svelte'; import { locale } from '$lib/stores/preferences.store'; - import { JobCommand, type JobCommandDto, type JobCountsDto, type QueueStatusDto } from '@immich/sdk'; + import { QueueCommand, type QueueCommandDto, type QueueStatisticsDto, type QueueStatusDto } from '@immich/sdk'; import { Icon, IconButton } from '@immich/ui'; import { mdiAlertCircle, @@ -22,21 +22,21 @@ title: string; subtitle: string | undefined; description: Component | undefined; - jobCounts: JobCountsDto; + statistics: QueueStatisticsDto; queueStatus: QueueStatusDto; icon: string; disabled?: boolean; allText: string | undefined; refreshText: string | undefined; missingText: string; - onCommand: (command: JobCommandDto) => void; + onCommand: (command: QueueCommandDto) => void; } let { title, subtitle, description, - jobCounts, + statistics, queueStatus, icon, disabled = false, @@ -46,7 +46,7 @@ onCommand, }: Props = $props(); - let waitingCount = $derived(jobCounts.waiting + jobCounts.paused + jobCounts.delayed); + let waitingCount = $derived(statistics.waiting + statistics.paused + statistics.delayed); let isIdle = $derived(!queueStatus.isActive && !queueStatus.isPaused); let multipleButtons = $derived(allText || refreshText); @@ -67,11 +67,11 @@ {title}
- {#if jobCounts.failed > 0} + {#if statistics.failed > 0}
- {$t('admin.jobs_failed', { values: { jobCount: jobCounts.failed.toLocaleString($locale) } })} + {$t('admin.jobs_failed', { values: { jobCount: statistics.failed.toLocaleString($locale) } })} onCommand({ command: JobCommand.ClearFailed, force: false })} + onclick={() => onCommand({ command: QueueCommand.ClearFailed, force: false })} />
{/if} - {#if jobCounts.delayed > 0} + {#if statistics.delayed > 0} - {$t('admin.jobs_delayed', { values: { jobCount: jobCounts.delayed.toLocaleString($locale) } })} + {$t('admin.jobs_delayed', { values: { jobCount: statistics.delayed.toLocaleString($locale) } })} {/if} @@ -111,7 +111,7 @@ >

{$t('active')}

- {jobCounts.active.toLocaleString($locale)} + {statistics.active.toLocaleString($locale)}

@@ -131,7 +131,7 @@ onCommand({ command: JobCommand.Start, force: false })} + onClick={() => onCommand({ command: QueueCommand.Start, force: false })} > {$t('disabled')} @@ -140,20 +140,20 @@ {#if !disabled && !isIdle} {#if waitingCount > 0} - onCommand({ command: JobCommand.Empty, force: false })}> + onCommand({ command: QueueCommand.Empty, force: false })}> {$t('clear')} {/if} {#if queueStatus.isPaused} {@const size = waitingCount > 0 ? '24' : '48'} - onCommand({ command: JobCommand.Resume, force: false })}> + onCommand({ command: QueueCommand.Resume, force: false })}> {$t('resume')} {:else} - onCommand({ command: JobCommand.Pause, force: false })}> + onCommand({ command: QueueCommand.Pause, force: false })}> {$t('pause')} @@ -162,25 +162,25 @@ {#if !disabled && multipleButtons && isIdle} {#if allText} - onCommand({ command: JobCommand.Start, force: true })}> + onCommand({ command: QueueCommand.Start, force: true })}> {allText} {/if} {#if refreshText} - onCommand({ command: JobCommand.Start, force: undefined })}> + onCommand({ command: QueueCommand.Start, force: undefined })}> {refreshText} {/if} - onCommand({ command: JobCommand.Start, force: false })}> + onCommand({ command: QueueCommand.Start, force: false })}> {missingText} {/if} {#if !disabled && !multipleButtons && isIdle} - onCommand({ command: JobCommand.Start, force: false })}> + onCommand({ command: QueueCommand.Start, force: false })}> {missingText} diff --git a/web/src/lib/components/jobs/JobsPanel.svelte b/web/src/lib/components/jobs/JobsPanel.svelte index e204c76648..99dfef3b59 100644 --- a/web/src/lib/components/jobs/JobsPanel.svelte +++ b/web/src/lib/components/jobs/JobsPanel.svelte @@ -1,8 +1,14 @@
{#each jobList as [jobName, { title, subtitle, description, disabled, allText, refreshText, missingText, icon, handleCommand: handleCommandOverride }] (jobName)} - {@const { jobCounts, queueStatus } = jobs[jobName]} + {@const { jobCounts: statistics, queueStatus } = jobs[jobName]} (handleCommandOverride || handleCommand)(jobName, command)} /> diff --git a/web/src/lib/utils.ts b/web/src/lib/utils.ts index 6e0a216477..87f0d7e7bf 100644 --- a/web/src/lib/utils.ts +++ b/web/src/lib/utils.ts @@ -5,8 +5,8 @@ import { handleError } from '$lib/utils/handle-error'; import { AssetJobName, AssetMediaSize, - JobName, MemoryType, + QueueName, finishOAuth, getAssetOriginalPath, getAssetPlaybackPath, @@ -143,28 +143,28 @@ export const downloadRequest = (options: DownloadRequestOptions }); }; -export const getJobName = derived(t, ($t) => { - return (jobName: JobName) => { - const names: Record = { - [JobName.ThumbnailGeneration]: $t('admin.thumbnail_generation_job'), - [JobName.MetadataExtraction]: $t('admin.metadata_extraction_job'), - [JobName.Sidecar]: $t('admin.sidecar_job'), - [JobName.SmartSearch]: $t('admin.machine_learning_smart_search'), - [JobName.DuplicateDetection]: $t('admin.machine_learning_duplicate_detection'), - [JobName.FaceDetection]: $t('admin.face_detection'), - [JobName.FacialRecognition]: $t('admin.machine_learning_facial_recognition'), - [JobName.VideoConversion]: $t('admin.video_conversion_job'), - [JobName.StorageTemplateMigration]: $t('admin.storage_template_migration'), - [JobName.Migration]: $t('admin.migration_job'), - [JobName.BackgroundTask]: $t('admin.background_task_job'), - [JobName.Search]: $t('search'), - [JobName.Library]: $t('external_libraries'), - [JobName.Notifications]: $t('notifications'), - [JobName.BackupDatabase]: $t('admin.backup_database'), - [JobName.Ocr]: $t('admin.machine_learning_ocr'), +export const getQueueName = derived(t, ($t) => { + return (name: QueueName) => { + const names: Record = { + [QueueName.ThumbnailGeneration]: $t('admin.thumbnail_generation_job'), + [QueueName.MetadataExtraction]: $t('admin.metadata_extraction_job'), + [QueueName.Sidecar]: $t('admin.sidecar_job'), + [QueueName.SmartSearch]: $t('admin.machine_learning_smart_search'), + [QueueName.DuplicateDetection]: $t('admin.machine_learning_duplicate_detection'), + [QueueName.FaceDetection]: $t('admin.face_detection'), + [QueueName.FacialRecognition]: $t('admin.machine_learning_facial_recognition'), + [QueueName.VideoConversion]: $t('admin.video_conversion_job'), + [QueueName.StorageTemplateMigration]: $t('admin.storage_template_migration'), + [QueueName.Migration]: $t('admin.migration_job'), + [QueueName.BackgroundTask]: $t('admin.background_task_job'), + [QueueName.Search]: $t('search'), + [QueueName.Library]: $t('external_libraries'), + [QueueName.Notifications]: $t('notifications'), + [QueueName.BackupDatabase]: $t('admin.backup_database'), + [QueueName.Ocr]: $t('admin.machine_learning_ocr'), }; - return names[jobName]; + return names[name]; }; }); diff --git a/web/src/routes/admin/jobs-status/+page.svelte b/web/src/routes/admin/jobs-status/+page.svelte index 1204ff901f..84586a8af0 100644 --- a/web/src/routes/admin/jobs-status/+page.svelte +++ b/web/src/routes/admin/jobs-status/+page.svelte @@ -5,13 +5,7 @@ import JobCreateModal from '$lib/modals/JobCreateModal.svelte'; import { asyncTimeout } from '$lib/utils'; import { handleError } from '$lib/utils/handle-error'; - import { - getAllJobsStatus, - JobCommand, - sendJobCommand, - type AllJobStatusResponseDto, - type JobName, - } from '@immich/sdk'; + import { getQueuesLegacy, QueueCommand, QueueName, runQueueCommandLegacy, type QueuesResponseDto } from '@immich/sdk'; import { Button, HStack, modalManager, Text } from '@immich/ui'; import { mdiCog, mdiPlay, mdiPlus } from '@mdi/js'; import { onDestroy, onMount } from 'svelte'; @@ -24,23 +18,23 @@ let { data }: Props = $props(); - let jobs: AllJobStatusResponseDto | undefined = $state(); + let jobs: QueuesResponseDto | undefined = $state(); let running = true; const pausedJobs = $derived( Object.entries(jobs ?? {}) - .filter(([_, jobStatus]) => jobStatus.queueStatus?.isPaused) - .map(([jobName]) => jobName as JobName), + .filter(([_, queue]) => queue.queueStatus?.isPaused) + .map(([name]) => name as QueueName), ); const handleResumePausedJobs = async () => { try { - for (const jobName of pausedJobs) { - await sendJobCommand({ id: jobName, jobCommandDto: { command: JobCommand.Resume, force: false } }); + for (const name of pausedJobs) { + await runQueueCommandLegacy({ name, queueCommandDto: { command: QueueCommand.Resume, force: false } }); } // Refresh jobs status immediately after resuming - jobs = await getAllJobsStatus(); + jobs = await getQueuesLegacy(); } catch (error) { handleError(error, $t('admin.failed_job_command', { values: { command: 'resume', job: 'paused jobs' } })); } @@ -48,7 +42,7 @@ onMount(async () => { while (running) { - jobs = await getAllJobsStatus(); + jobs = await getQueuesLegacy(); await asyncTimeout(5000); } }); diff --git a/web/src/routes/admin/jobs-status/+page.ts b/web/src/routes/admin/jobs-status/+page.ts index 0d4ec8b41f..90057ff969 100644 --- a/web/src/routes/admin/jobs-status/+page.ts +++ b/web/src/routes/admin/jobs-status/+page.ts @@ -1,12 +1,12 @@ import { authenticate } from '$lib/utils/auth'; import { getFormatter } from '$lib/utils/i18n'; -import { getAllJobsStatus } from '@immich/sdk'; +import { getQueuesLegacy } from '@immich/sdk'; import type { PageLoad } from './$types'; export const load = (async ({ url }) => { await authenticate(url, { admin: true }); - const jobs = await getAllJobsStatus(); + const jobs = await getQueuesLegacy(); const $t = await getFormatter(); return { diff --git a/web/src/routes/admin/library-management/+page.svelte b/web/src/routes/admin/library-management/+page.svelte index 039afc97b7..600b6ff048 100644 --- a/web/src/routes/admin/library-management/+page.svelte +++ b/web/src/routes/admin/library-management/+page.svelte @@ -17,10 +17,10 @@ getAllLibraries, getLibraryStatistics, getUserAdmin, - JobCommand, - JobName, + QueueCommand, + QueueName, + runQueueCommandLegacy, scanLibrary, - sendJobCommand, updateLibrary, type LibraryResponseDto, type LibraryStatsResponseDto, @@ -151,7 +151,7 @@ const handleScanAll = async () => { try { - await sendJobCommand({ id: JobName.Library, jobCommandDto: { command: JobCommand.Start } }); + await runQueueCommandLegacy({ name: QueueName.Library, queueCommandDto: { command: QueueCommand.Start } }); toastManager.info($t('admin.refreshing_all_libraries')); } catch (error) { From 4dcc04946584b7822faba82644cf8644d4d7da8d Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 14 Nov 2025 14:05:05 -0600 Subject: [PATCH 072/300] feat: workflow foundation (#23621) * feat: plugins * feat: table definition * feat: type and migration * feat: add repositories * feat: validate manifest with class-validator and load manifest info to database * feat: workflow/plugin controller/service layer * feat: implement workflow logic * feat: make trigger static * feat: dynamical instantiate plugin instances * fix: access control and helper script * feat: it works * chore: simplify * refactor: refactor and use queue for workflow execution * refactor: remove unsused property in plugin-schema * build wasm in prod * feat: plugin loader in transaction * fix: docker build arm64 * generated files * shell check * fix tests * fix: waiting for migration to finish before loading plugin * remove context reassignment * feat: use mise to manage extism tools (#23760) * pr feedback * refactor: create workflow now including create filters and actions * feat: workflow medium tests * fix: broken medium test * feat: medium tests * chore: unify workflow job * sign user id with jwt * chore: query plugin with filters and action * chore: read manifest in repository * chore: load manifest from server configs * merge main * feat: endpoint documentation * pr feedback * load plugin from absolute path * refactor:handle trigger * throw error and return early * pr feedback * unify plugin services * fix: plugins code * clean up * remove triggerConfig * clean up * displayName and methodName --------- Co-authored-by: Jason Rasmussen Co-authored-by: bo0tzz --- docker/docker-compose.dev.yml | 1 + i18n/en.json | 1 + mobile/openapi/README.md | 19 + mobile/openapi/lib/api.dart | 14 + mobile/openapi/lib/api/plugins_api.dart | 126 +++ mobile/openapi/lib/api/workflows_api.dart | 292 +++++++ mobile/openapi/lib/api_client.dart | 24 + mobile/openapi/lib/api_helper.dart | 6 + mobile/openapi/lib/model/permission.dart | 24 + .../lib/model/plugin_action_response_dto.dart | 151 ++++ mobile/openapi/lib/model/plugin_context.dart | 88 ++ .../lib/model/plugin_filter_response_dto.dart | 151 ++++ .../lib/model/plugin_response_dto.dart | 171 ++++ .../lib/model/plugin_trigger_type.dart | 85 ++ mobile/openapi/lib/model/queue_name.dart | 3 + .../lib/model/queues_response_dto.dart | 14 +- .../lib/model/system_config_job_dto.dart | 14 +- .../lib/model/workflow_action_item_dto.dart | 116 +++ .../model/workflow_action_response_dto.dart | 135 ++++ .../lib/model/workflow_create_dto.dart | 157 ++++ .../lib/model/workflow_filter_item_dto.dart | 116 +++ .../model/workflow_filter_response_dto.dart | 135 ++++ .../lib/model/workflow_response_dto.dart | 241 ++++++ .../lib/model/workflow_update_dto.dart | 156 ++++ open-api/immich-openapi-specs.json | 757 +++++++++++++++++- open-api/typescript-sdk/src/fetch-client.ts | 194 ++++- plugins/.gitignore | 2 + plugins/LICENSE | 26 + plugins/esbuild.js | 12 + plugins/manifest.json | 127 +++ plugins/mise.toml | 11 + plugins/package-lock.json | 443 ++++++++++ plugins/package.json | 19 + plugins/src/index.d.ts | 12 + plugins/src/index.ts | 71 ++ plugins/tsconfig.json | 24 + pnpm-lock.yaml | 130 +++ pnpm-workspace.yaml | 1 + server/Dockerfile | 20 + server/package.json | 4 + server/src/config.ts | 1 + server/src/constants.ts | 4 + server/src/controllers/index.ts | 4 + server/src/controllers/plugin.controller.ts | 36 + server/src/controllers/workflow.controller.ts | 76 ++ server/src/database.ts | 55 ++ server/src/dtos/env.dto.ts | 7 + server/src/dtos/plugin-manifest.dto.ts | 110 +++ server/src/dtos/plugin.dto.ts | 77 ++ server/src/dtos/queue.dto.ts | 3 + server/src/dtos/system-config.dto.ts | 6 + server/src/dtos/workflow.dto.ts | 120 +++ server/src/enum.ts | 27 + server/src/plugins.ts | 37 + server/src/queries/access.repository.sql | 9 + server/src/queries/plugin.repository.sql | 159 ++++ server/src/queries/workflow.repository.sql | 68 ++ server/src/repositories/access.repository.ts | 22 + server/src/repositories/config.repository.ts | 12 + server/src/repositories/crypto.repository.ts | 9 + server/src/repositories/event.repository.ts | 2 + server/src/repositories/index.ts | 4 + server/src/repositories/plugin.repository.ts | 176 ++++ server/src/repositories/storage.repository.ts | 4 + .../src/repositories/workflow.repository.ts | 139 ++++ server/src/schema/index.ts | 16 + ...762297277677-AddPluginAndWorkflowTables.ts | 113 +++ server/src/schema/tables/plugin.table.ts | 95 +++ server/src/schema/tables/workflow.table.ts | 78 ++ server/src/services/asset-media.service.ts | 3 + server/src/services/base.service.ts | 7 + server/src/services/index.ts | 4 + server/src/services/plugin-host.functions.ts | 120 +++ server/src/services/plugin.service.ts | 317 ++++++++ server/src/services/queue.service.spec.ts | 3 +- .../services/system-config.service.spec.ts | 1 + server/src/services/workflow.service.ts | 159 ++++ server/src/types.ts | 24 +- server/src/types/plugin-schema.types.ts | 35 + server/src/utils/access.ts | 6 + server/test/medium.factory.ts | 10 +- .../specs/services/plugin.service.spec.ts | 308 +++++++ .../specs/services/workflow.service.spec.ts | 697 ++++++++++++++++ .../repositories/access.repository.mock.ts | 4 + .../repositories/config.repository.mock.ts | 6 + .../repositories/crypto.repository.mock.ts | 2 + .../repositories/storage.repository.mock.ts | 1 + server/test/utils.ts | 8 + web/src/lib/utils.ts | 1 + 89 files changed, 7264 insertions(+), 14 deletions(-) create mode 100644 mobile/openapi/lib/api/plugins_api.dart create mode 100644 mobile/openapi/lib/api/workflows_api.dart create mode 100644 mobile/openapi/lib/model/plugin_action_response_dto.dart create mode 100644 mobile/openapi/lib/model/plugin_context.dart create mode 100644 mobile/openapi/lib/model/plugin_filter_response_dto.dart create mode 100644 mobile/openapi/lib/model/plugin_response_dto.dart create mode 100644 mobile/openapi/lib/model/plugin_trigger_type.dart create mode 100644 mobile/openapi/lib/model/workflow_action_item_dto.dart create mode 100644 mobile/openapi/lib/model/workflow_action_response_dto.dart create mode 100644 mobile/openapi/lib/model/workflow_create_dto.dart create mode 100644 mobile/openapi/lib/model/workflow_filter_item_dto.dart create mode 100644 mobile/openapi/lib/model/workflow_filter_response_dto.dart create mode 100644 mobile/openapi/lib/model/workflow_response_dto.dart create mode 100644 mobile/openapi/lib/model/workflow_update_dto.dart create mode 100644 plugins/.gitignore create mode 100644 plugins/LICENSE create mode 100644 plugins/esbuild.js create mode 100644 plugins/manifest.json create mode 100644 plugins/mise.toml create mode 100644 plugins/package-lock.json create mode 100644 plugins/package.json create mode 100644 plugins/src/index.d.ts create mode 100644 plugins/src/index.ts create mode 100644 plugins/tsconfig.json create mode 100644 server/src/controllers/plugin.controller.ts create mode 100644 server/src/controllers/workflow.controller.ts create mode 100644 server/src/dtos/plugin-manifest.dto.ts create mode 100644 server/src/dtos/plugin.dto.ts create mode 100644 server/src/dtos/workflow.dto.ts create mode 100644 server/src/plugins.ts create mode 100644 server/src/queries/plugin.repository.sql create mode 100644 server/src/queries/workflow.repository.sql create mode 100644 server/src/repositories/plugin.repository.ts create mode 100644 server/src/repositories/workflow.repository.ts create mode 100644 server/src/schema/migrations/1762297277677-AddPluginAndWorkflowTables.ts create mode 100644 server/src/schema/tables/plugin.table.ts create mode 100644 server/src/schema/tables/workflow.table.ts create mode 100644 server/src/services/plugin-host.functions.ts create mode 100644 server/src/services/plugin.service.ts create mode 100644 server/src/services/workflow.service.ts create mode 100644 server/src/types/plugin-schema.types.ts create mode 100644 server/test/medium/specs/services/plugin.service.spec.ts create mode 100644 server/test/medium/specs/services/workflow.service.spec.ts diff --git a/docker/docker-compose.dev.yml b/docker/docker-compose.dev.yml index 5968c5bb3a..e2fb8fbc30 100644 --- a/docker/docker-compose.dev.yml +++ b/docker/docker-compose.dev.yml @@ -41,6 +41,7 @@ services: - app-node_modules:/usr/src/app/node_modules - sveltekit:/usr/src/app/web/.svelte-kit - coverage:/usr/src/app/web/coverage + - ../plugins:/build/corePlugin env_file: - .env environment: diff --git a/i18n/en.json b/i18n/en.json index f0b10d2ac1..ce999793d4 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -2181,6 +2181,7 @@ "welcome": "Welcome", "welcome_to_immich": "Welcome to Immich", "wifi_name": "Wi-Fi Name", + "workflow": "Workflow", "wrong_pin_code": "Wrong PIN code", "year": "Year", "years_ago": "{years, plural, one {# year} other {# years}} ago", diff --git a/mobile/openapi/README.md b/mobile/openapi/README.md index 5e93c571bd..4e34f66a81 100644 --- a/mobile/openapi/README.md +++ b/mobile/openapi/README.md @@ -194,6 +194,8 @@ Class | Method | HTTP request | Description *PeopleApi* | [**reassignFaces**](doc//PeopleApi.md#reassignfaces) | **PUT** /people/{id}/reassign | Reassign faces *PeopleApi* | [**updatePeople**](doc//PeopleApi.md#updatepeople) | **PUT** /people | Update people *PeopleApi* | [**updatePerson**](doc//PeopleApi.md#updateperson) | **PUT** /people/{id} | Update person +*PluginsApi* | [**getPlugin**](doc//PluginsApi.md#getplugin) | **GET** /plugins/{id} | Retrieve a plugin +*PluginsApi* | [**getPlugins**](doc//PluginsApi.md#getplugins) | **GET** /plugins | List all plugins *SearchApi* | [**getAssetsByCity**](doc//SearchApi.md#getassetsbycity) | **GET** /search/cities | Retrieve assets by city *SearchApi* | [**getExploreData**](doc//SearchApi.md#getexploredata) | **GET** /search/explore | Retrieve explore data *SearchApi* | [**getSearchSuggestions**](doc//SearchApi.md#getsearchsuggestions) | **GET** /search/suggestions | Retrieve search suggestions @@ -295,6 +297,11 @@ Class | Method | HTTP request | Description *UsersAdminApi* | [**updateUserPreferencesAdmin**](doc//UsersAdminApi.md#updateuserpreferencesadmin) | **PUT** /admin/users/{id}/preferences | Update user preferences *ViewsApi* | [**getAssetsByOriginalPath**](doc//ViewsApi.md#getassetsbyoriginalpath) | **GET** /view/folder | Retrieve assets by original path *ViewsApi* | [**getUniqueOriginalPaths**](doc//ViewsApi.md#getuniqueoriginalpaths) | **GET** /view/folder/unique-paths | Retrieve unique paths +*WorkflowsApi* | [**createWorkflow**](doc//WorkflowsApi.md#createworkflow) | **POST** /workflows | Create a workflow +*WorkflowsApi* | [**deleteWorkflow**](doc//WorkflowsApi.md#deleteworkflow) | **DELETE** /workflows/{id} | Delete a workflow +*WorkflowsApi* | [**getWorkflow**](doc//WorkflowsApi.md#getworkflow) | **GET** /workflows/{id} | Retrieve a workflow +*WorkflowsApi* | [**getWorkflows**](doc//WorkflowsApi.md#getworkflows) | **GET** /workflows | List all workflows +*WorkflowsApi* | [**updateWorkflow**](doc//WorkflowsApi.md#updateworkflow) | **PUT** /workflows/{id} | Update a workflow ## Documentation For Models @@ -444,6 +451,11 @@ Class | Method | HTTP request | Description - [PinCodeResetDto](doc//PinCodeResetDto.md) - [PinCodeSetupDto](doc//PinCodeSetupDto.md) - [PlacesResponseDto](doc//PlacesResponseDto.md) + - [PluginActionResponseDto](doc//PluginActionResponseDto.md) + - [PluginContext](doc//PluginContext.md) + - [PluginFilterResponseDto](doc//PluginFilterResponseDto.md) + - [PluginResponseDto](doc//PluginResponseDto.md) + - [PluginTriggerType](doc//PluginTriggerType.md) - [PurchaseResponse](doc//PurchaseResponse.md) - [PurchaseUpdate](doc//PurchaseUpdate.md) - [QueueCommand](doc//QueueCommand.md) @@ -603,6 +615,13 @@ Class | Method | HTTP request | Description - [VersionCheckStateResponseDto](doc//VersionCheckStateResponseDto.md) - [VideoCodec](doc//VideoCodec.md) - [VideoContainer](doc//VideoContainer.md) + - [WorkflowActionItemDto](doc//WorkflowActionItemDto.md) + - [WorkflowActionResponseDto](doc//WorkflowActionResponseDto.md) + - [WorkflowCreateDto](doc//WorkflowCreateDto.md) + - [WorkflowFilterItemDto](doc//WorkflowFilterItemDto.md) + - [WorkflowFilterResponseDto](doc//WorkflowFilterResponseDto.md) + - [WorkflowResponseDto](doc//WorkflowResponseDto.md) + - [WorkflowUpdateDto](doc//WorkflowUpdateDto.md) ## Documentation For Authorization diff --git a/mobile/openapi/lib/api.dart b/mobile/openapi/lib/api.dart index c64295837c..f3db370c92 100644 --- a/mobile/openapi/lib/api.dart +++ b/mobile/openapi/lib/api.dart @@ -48,6 +48,7 @@ part 'api/notifications_api.dart'; part 'api/notifications_admin_api.dart'; part 'api/partners_api.dart'; part 'api/people_api.dart'; +part 'api/plugins_api.dart'; part 'api/search_api.dart'; part 'api/server_api.dart'; part 'api/sessions_api.dart'; @@ -62,6 +63,7 @@ part 'api/trash_api.dart'; part 'api/users_api.dart'; part 'api/users_admin_api.dart'; part 'api/views_api.dart'; +part 'api/workflows_api.dart'; part 'model/api_key_create_dto.dart'; part 'model/api_key_create_response_dto.dart'; @@ -208,6 +210,11 @@ part 'model/pin_code_change_dto.dart'; part 'model/pin_code_reset_dto.dart'; part 'model/pin_code_setup_dto.dart'; part 'model/places_response_dto.dart'; +part 'model/plugin_action_response_dto.dart'; +part 'model/plugin_context.dart'; +part 'model/plugin_filter_response_dto.dart'; +part 'model/plugin_response_dto.dart'; +part 'model/plugin_trigger_type.dart'; part 'model/purchase_response.dart'; part 'model/purchase_update.dart'; part 'model/queue_command.dart'; @@ -367,6 +374,13 @@ part 'model/validate_library_response_dto.dart'; part 'model/version_check_state_response_dto.dart'; part 'model/video_codec.dart'; part 'model/video_container.dart'; +part 'model/workflow_action_item_dto.dart'; +part 'model/workflow_action_response_dto.dart'; +part 'model/workflow_create_dto.dart'; +part 'model/workflow_filter_item_dto.dart'; +part 'model/workflow_filter_response_dto.dart'; +part 'model/workflow_response_dto.dart'; +part 'model/workflow_update_dto.dart'; /// An [ApiClient] instance that uses the default values obtained from diff --git a/mobile/openapi/lib/api/plugins_api.dart b/mobile/openapi/lib/api/plugins_api.dart new file mode 100644 index 0000000000..264d3049e8 --- /dev/null +++ b/mobile/openapi/lib/api/plugins_api.dart @@ -0,0 +1,126 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + + +class PluginsApi { + PluginsApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; + + final ApiClient apiClient; + + /// Retrieve a plugin + /// + /// Retrieve information about a specific plugin by its ID. + /// + /// Note: This method returns the HTTP [Response]. + /// + /// Parameters: + /// + /// * [String] id (required): + Future getPluginWithHttpInfo(String id,) async { + // ignore: prefer_const_declarations + final apiPath = r'/plugins/{id}' + .replaceAll('{id}', id); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = []; + + + return apiClient.invokeAPI( + apiPath, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Retrieve a plugin + /// + /// Retrieve information about a specific plugin by its ID. + /// + /// Parameters: + /// + /// * [String] id (required): + Future getPlugin(String id,) async { + final response = await getPluginWithHttpInfo(id,); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PluginResponseDto',) as PluginResponseDto; + + } + return null; + } + + /// List all plugins + /// + /// Retrieve a list of plugins available to the authenticated user. + /// + /// Note: This method returns the HTTP [Response]. + Future getPluginsWithHttpInfo() async { + // ignore: prefer_const_declarations + final apiPath = r'/plugins'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = []; + + + return apiClient.invokeAPI( + apiPath, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// List all plugins + /// + /// Retrieve a list of plugins available to the authenticated user. + Future?> getPlugins() async { + final response = await getPluginsWithHttpInfo(); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + final responseBody = await _decodeBodyBytes(response); + return (await apiClient.deserializeAsync(responseBody, 'List') as List) + .cast() + .toList(growable: false); + + } + return null; + } +} diff --git a/mobile/openapi/lib/api/workflows_api.dart b/mobile/openapi/lib/api/workflows_api.dart new file mode 100644 index 0000000000..c589ec9823 --- /dev/null +++ b/mobile/openapi/lib/api/workflows_api.dart @@ -0,0 +1,292 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + + +class WorkflowsApi { + WorkflowsApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; + + final ApiClient apiClient; + + /// Create a workflow + /// + /// Create a new workflow, the workflow can also be created with empty filters and actions. + /// + /// Note: This method returns the HTTP [Response]. + /// + /// Parameters: + /// + /// * [WorkflowCreateDto] workflowCreateDto (required): + Future createWorkflowWithHttpInfo(WorkflowCreateDto workflowCreateDto,) async { + // ignore: prefer_const_declarations + final apiPath = r'/workflows'; + + // ignore: prefer_final_locals + Object? postBody = workflowCreateDto; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = ['application/json']; + + + return apiClient.invokeAPI( + apiPath, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Create a workflow + /// + /// Create a new workflow, the workflow can also be created with empty filters and actions. + /// + /// Parameters: + /// + /// * [WorkflowCreateDto] workflowCreateDto (required): + Future createWorkflow(WorkflowCreateDto workflowCreateDto,) async { + final response = await createWorkflowWithHttpInfo(workflowCreateDto,); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'WorkflowResponseDto',) as WorkflowResponseDto; + + } + return null; + } + + /// Delete a workflow + /// + /// Delete a workflow by its ID. + /// + /// Note: This method returns the HTTP [Response]. + /// + /// Parameters: + /// + /// * [String] id (required): + Future deleteWorkflowWithHttpInfo(String id,) async { + // ignore: prefer_const_declarations + final apiPath = r'/workflows/{id}' + .replaceAll('{id}', id); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = []; + + + return apiClient.invokeAPI( + apiPath, + 'DELETE', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Delete a workflow + /// + /// Delete a workflow by its ID. + /// + /// Parameters: + /// + /// * [String] id (required): + Future deleteWorkflow(String id,) async { + final response = await deleteWorkflowWithHttpInfo(id,); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + } + + /// Retrieve a workflow + /// + /// Retrieve information about a specific workflow by its ID. + /// + /// Note: This method returns the HTTP [Response]. + /// + /// Parameters: + /// + /// * [String] id (required): + Future getWorkflowWithHttpInfo(String id,) async { + // ignore: prefer_const_declarations + final apiPath = r'/workflows/{id}' + .replaceAll('{id}', id); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = []; + + + return apiClient.invokeAPI( + apiPath, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Retrieve a workflow + /// + /// Retrieve information about a specific workflow by its ID. + /// + /// Parameters: + /// + /// * [String] id (required): + Future getWorkflow(String id,) async { + final response = await getWorkflowWithHttpInfo(id,); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'WorkflowResponseDto',) as WorkflowResponseDto; + + } + return null; + } + + /// List all workflows + /// + /// Retrieve a list of workflows available to the authenticated user. + /// + /// Note: This method returns the HTTP [Response]. + Future getWorkflowsWithHttpInfo() async { + // ignore: prefer_const_declarations + final apiPath = r'/workflows'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = []; + + + return apiClient.invokeAPI( + apiPath, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// List all workflows + /// + /// Retrieve a list of workflows available to the authenticated user. + Future?> getWorkflows() async { + final response = await getWorkflowsWithHttpInfo(); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + final responseBody = await _decodeBodyBytes(response); + return (await apiClient.deserializeAsync(responseBody, 'List') as List) + .cast() + .toList(growable: false); + + } + return null; + } + + /// Update a workflow + /// + /// Update the information of a specific workflow by its ID. This endpoint can be used to update the workflow name, description, trigger type, filters and actions order, etc. + /// + /// Note: This method returns the HTTP [Response]. + /// + /// Parameters: + /// + /// * [String] id (required): + /// + /// * [WorkflowUpdateDto] workflowUpdateDto (required): + Future updateWorkflowWithHttpInfo(String id, WorkflowUpdateDto workflowUpdateDto,) async { + // ignore: prefer_const_declarations + final apiPath = r'/workflows/{id}' + .replaceAll('{id}', id); + + // ignore: prefer_final_locals + Object? postBody = workflowUpdateDto; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = ['application/json']; + + + return apiClient.invokeAPI( + apiPath, + 'PUT', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Update a workflow + /// + /// Update the information of a specific workflow by its ID. This endpoint can be used to update the workflow name, description, trigger type, filters and actions order, etc. + /// + /// Parameters: + /// + /// * [String] id (required): + /// + /// * [WorkflowUpdateDto] workflowUpdateDto (required): + Future updateWorkflow(String id, WorkflowUpdateDto workflowUpdateDto,) async { + final response = await updateWorkflowWithHttpInfo(id, workflowUpdateDto,); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'WorkflowResponseDto',) as WorkflowResponseDto; + + } + return null; + } +} diff --git a/mobile/openapi/lib/api_client.dart b/mobile/openapi/lib/api_client.dart index 373a4b9d8b..91dc670d12 100644 --- a/mobile/openapi/lib/api_client.dart +++ b/mobile/openapi/lib/api_client.dart @@ -472,6 +472,16 @@ class ApiClient { return PinCodeSetupDto.fromJson(value); case 'PlacesResponseDto': return PlacesResponseDto.fromJson(value); + case 'PluginActionResponseDto': + return PluginActionResponseDto.fromJson(value); + case 'PluginContext': + return PluginContextTypeTransformer().decode(value); + case 'PluginFilterResponseDto': + return PluginFilterResponseDto.fromJson(value); + case 'PluginResponseDto': + return PluginResponseDto.fromJson(value); + case 'PluginTriggerType': + return PluginTriggerTypeTypeTransformer().decode(value); case 'PurchaseResponse': return PurchaseResponse.fromJson(value); case 'PurchaseUpdate': @@ -790,6 +800,20 @@ class ApiClient { return VideoCodecTypeTransformer().decode(value); case 'VideoContainer': return VideoContainerTypeTransformer().decode(value); + case 'WorkflowActionItemDto': + return WorkflowActionItemDto.fromJson(value); + case 'WorkflowActionResponseDto': + return WorkflowActionResponseDto.fromJson(value); + case 'WorkflowCreateDto': + return WorkflowCreateDto.fromJson(value); + case 'WorkflowFilterItemDto': + return WorkflowFilterItemDto.fromJson(value); + case 'WorkflowFilterResponseDto': + return WorkflowFilterResponseDto.fromJson(value); + case 'WorkflowResponseDto': + return WorkflowResponseDto.fromJson(value); + case 'WorkflowUpdateDto': + return WorkflowUpdateDto.fromJson(value); default: dynamic match; if (value is List && (match = _regList.firstMatch(targetType)?.group(1)) != null) { diff --git a/mobile/openapi/lib/api_helper.dart b/mobile/openapi/lib/api_helper.dart index 5c21009a0b..4b33a07214 100644 --- a/mobile/openapi/lib/api_helper.dart +++ b/mobile/openapi/lib/api_helper.dart @@ -121,6 +121,12 @@ String parameterToString(dynamic value) { if (value is Permission) { return PermissionTypeTransformer().encode(value).toString(); } + if (value is PluginContext) { + return PluginContextTypeTransformer().encode(value).toString(); + } + if (value is PluginTriggerType) { + return PluginTriggerTypeTypeTransformer().encode(value).toString(); + } if (value is QueueCommand) { return QueueCommandTypeTransformer().encode(value).toString(); } diff --git a/mobile/openapi/lib/model/permission.dart b/mobile/openapi/lib/model/permission.dart index e05c3e84bc..8b05de523b 100644 --- a/mobile/openapi/lib/model/permission.dart +++ b/mobile/openapi/lib/model/permission.dart @@ -98,6 +98,10 @@ class Permission { static const pinCodePeriodCreate = Permission._(r'pinCode.create'); static const pinCodePeriodUpdate = Permission._(r'pinCode.update'); static const pinCodePeriodDelete = Permission._(r'pinCode.delete'); + static const pluginPeriodCreate = Permission._(r'plugin.create'); + static const pluginPeriodRead = Permission._(r'plugin.read'); + static const pluginPeriodUpdate = Permission._(r'plugin.update'); + static const pluginPeriodDelete = Permission._(r'plugin.delete'); static const serverPeriodAbout = Permission._(r'server.about'); static const serverPeriodApkLinks = Permission._(r'server.apkLinks'); static const serverPeriodStorage = Permission._(r'server.storage'); @@ -147,6 +151,10 @@ class Permission { static const userProfileImagePeriodRead = Permission._(r'userProfileImage.read'); static const userProfileImagePeriodUpdate = Permission._(r'userProfileImage.update'); static const userProfileImagePeriodDelete = Permission._(r'userProfileImage.delete'); + static const workflowPeriodCreate = Permission._(r'workflow.create'); + static const workflowPeriodRead = Permission._(r'workflow.read'); + static const workflowPeriodUpdate = Permission._(r'workflow.update'); + static const workflowPeriodDelete = Permission._(r'workflow.delete'); static const adminUserPeriodCreate = Permission._(r'adminUser.create'); static const adminUserPeriodRead = Permission._(r'adminUser.read'); static const adminUserPeriodUpdate = Permission._(r'adminUser.update'); @@ -231,6 +239,10 @@ class Permission { pinCodePeriodCreate, pinCodePeriodUpdate, pinCodePeriodDelete, + pluginPeriodCreate, + pluginPeriodRead, + pluginPeriodUpdate, + pluginPeriodDelete, serverPeriodAbout, serverPeriodApkLinks, serverPeriodStorage, @@ -280,6 +292,10 @@ class Permission { userProfileImagePeriodRead, userProfileImagePeriodUpdate, userProfileImagePeriodDelete, + workflowPeriodCreate, + workflowPeriodRead, + workflowPeriodUpdate, + workflowPeriodDelete, adminUserPeriodCreate, adminUserPeriodRead, adminUserPeriodUpdate, @@ -399,6 +415,10 @@ class PermissionTypeTransformer { case r'pinCode.create': return Permission.pinCodePeriodCreate; case r'pinCode.update': return Permission.pinCodePeriodUpdate; case r'pinCode.delete': return Permission.pinCodePeriodDelete; + case r'plugin.create': return Permission.pluginPeriodCreate; + case r'plugin.read': return Permission.pluginPeriodRead; + case r'plugin.update': return Permission.pluginPeriodUpdate; + case r'plugin.delete': return Permission.pluginPeriodDelete; case r'server.about': return Permission.serverPeriodAbout; case r'server.apkLinks': return Permission.serverPeriodApkLinks; case r'server.storage': return Permission.serverPeriodStorage; @@ -448,6 +468,10 @@ class PermissionTypeTransformer { case r'userProfileImage.read': return Permission.userProfileImagePeriodRead; case r'userProfileImage.update': return Permission.userProfileImagePeriodUpdate; case r'userProfileImage.delete': return Permission.userProfileImagePeriodDelete; + case r'workflow.create': return Permission.workflowPeriodCreate; + case r'workflow.read': return Permission.workflowPeriodRead; + case r'workflow.update': return Permission.workflowPeriodUpdate; + case r'workflow.delete': return Permission.workflowPeriodDelete; case r'adminUser.create': return Permission.adminUserPeriodCreate; case r'adminUser.read': return Permission.adminUserPeriodRead; case r'adminUser.update': return Permission.adminUserPeriodUpdate; diff --git a/mobile/openapi/lib/model/plugin_action_response_dto.dart b/mobile/openapi/lib/model/plugin_action_response_dto.dart new file mode 100644 index 0000000000..75b23fc8a4 --- /dev/null +++ b/mobile/openapi/lib/model/plugin_action_response_dto.dart @@ -0,0 +1,151 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class PluginActionResponseDto { + /// Returns a new [PluginActionResponseDto] instance. + PluginActionResponseDto({ + required this.description, + required this.id, + required this.methodName, + required this.pluginId, + required this.schema, + this.supportedContexts = const [], + required this.title, + }); + + String description; + + String id; + + String methodName; + + String pluginId; + + Object? schema; + + List supportedContexts; + + String title; + + @override + bool operator ==(Object other) => identical(this, other) || other is PluginActionResponseDto && + other.description == description && + other.id == id && + other.methodName == methodName && + other.pluginId == pluginId && + other.schema == schema && + _deepEquality.equals(other.supportedContexts, supportedContexts) && + other.title == title; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (description.hashCode) + + (id.hashCode) + + (methodName.hashCode) + + (pluginId.hashCode) + + (schema == null ? 0 : schema!.hashCode) + + (supportedContexts.hashCode) + + (title.hashCode); + + @override + String toString() => 'PluginActionResponseDto[description=$description, id=$id, methodName=$methodName, pluginId=$pluginId, schema=$schema, supportedContexts=$supportedContexts, title=$title]'; + + Map toJson() { + final json = {}; + json[r'description'] = this.description; + json[r'id'] = this.id; + json[r'methodName'] = this.methodName; + json[r'pluginId'] = this.pluginId; + if (this.schema != null) { + json[r'schema'] = this.schema; + } else { + // json[r'schema'] = null; + } + json[r'supportedContexts'] = this.supportedContexts; + json[r'title'] = this.title; + return json; + } + + /// Returns a new [PluginActionResponseDto] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static PluginActionResponseDto? fromJson(dynamic value) { + upgradeDto(value, "PluginActionResponseDto"); + if (value is Map) { + final json = value.cast(); + + return PluginActionResponseDto( + description: mapValueOfType(json, r'description')!, + id: mapValueOfType(json, r'id')!, + methodName: mapValueOfType(json, r'methodName')!, + pluginId: mapValueOfType(json, r'pluginId')!, + schema: mapValueOfType(json, r'schema'), + supportedContexts: PluginContext.listFromJson(json[r'supportedContexts']), + title: mapValueOfType(json, r'title')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = PluginActionResponseDto.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = PluginActionResponseDto.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of PluginActionResponseDto-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = PluginActionResponseDto.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'description', + 'id', + 'methodName', + 'pluginId', + 'schema', + 'supportedContexts', + 'title', + }; +} + diff --git a/mobile/openapi/lib/model/plugin_context.dart b/mobile/openapi/lib/model/plugin_context.dart new file mode 100644 index 0000000000..efb701c7d0 --- /dev/null +++ b/mobile/openapi/lib/model/plugin_context.dart @@ -0,0 +1,88 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + + +class PluginContext { + /// Instantiate a new enum with the provided [value]. + const PluginContext._(this.value); + + /// The underlying value of this enum member. + final String value; + + @override + String toString() => value; + + String toJson() => value; + + static const asset = PluginContext._(r'asset'); + static const album = PluginContext._(r'album'); + static const person = PluginContext._(r'person'); + + /// List of all possible values in this [enum][PluginContext]. + static const values = [ + asset, + album, + person, + ]; + + static PluginContext? fromJson(dynamic value) => PluginContextTypeTransformer().decode(value); + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = PluginContext.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [PluginContext] to String, +/// and [decode] dynamic data back to [PluginContext]. +class PluginContextTypeTransformer { + factory PluginContextTypeTransformer() => _instance ??= const PluginContextTypeTransformer._(); + + const PluginContextTypeTransformer._(); + + String encode(PluginContext data) => data.value; + + /// Decodes a [dynamic value][data] to a PluginContext. + /// + /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, + /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] + /// cannot be decoded successfully, then an [UnimplementedError] is thrown. + /// + /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, + /// and users are still using an old app with the old code. + PluginContext? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case r'asset': return PluginContext.asset; + case r'album': return PluginContext.album; + case r'person': return PluginContext.person; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [PluginContextTypeTransformer] instance. + static PluginContextTypeTransformer? _instance; +} + diff --git a/mobile/openapi/lib/model/plugin_filter_response_dto.dart b/mobile/openapi/lib/model/plugin_filter_response_dto.dart new file mode 100644 index 0000000000..8ed6acec78 --- /dev/null +++ b/mobile/openapi/lib/model/plugin_filter_response_dto.dart @@ -0,0 +1,151 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class PluginFilterResponseDto { + /// Returns a new [PluginFilterResponseDto] instance. + PluginFilterResponseDto({ + required this.description, + required this.id, + required this.methodName, + required this.pluginId, + required this.schema, + this.supportedContexts = const [], + required this.title, + }); + + String description; + + String id; + + String methodName; + + String pluginId; + + Object? schema; + + List supportedContexts; + + String title; + + @override + bool operator ==(Object other) => identical(this, other) || other is PluginFilterResponseDto && + other.description == description && + other.id == id && + other.methodName == methodName && + other.pluginId == pluginId && + other.schema == schema && + _deepEquality.equals(other.supportedContexts, supportedContexts) && + other.title == title; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (description.hashCode) + + (id.hashCode) + + (methodName.hashCode) + + (pluginId.hashCode) + + (schema == null ? 0 : schema!.hashCode) + + (supportedContexts.hashCode) + + (title.hashCode); + + @override + String toString() => 'PluginFilterResponseDto[description=$description, id=$id, methodName=$methodName, pluginId=$pluginId, schema=$schema, supportedContexts=$supportedContexts, title=$title]'; + + Map toJson() { + final json = {}; + json[r'description'] = this.description; + json[r'id'] = this.id; + json[r'methodName'] = this.methodName; + json[r'pluginId'] = this.pluginId; + if (this.schema != null) { + json[r'schema'] = this.schema; + } else { + // json[r'schema'] = null; + } + json[r'supportedContexts'] = this.supportedContexts; + json[r'title'] = this.title; + return json; + } + + /// Returns a new [PluginFilterResponseDto] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static PluginFilterResponseDto? fromJson(dynamic value) { + upgradeDto(value, "PluginFilterResponseDto"); + if (value is Map) { + final json = value.cast(); + + return PluginFilterResponseDto( + description: mapValueOfType(json, r'description')!, + id: mapValueOfType(json, r'id')!, + methodName: mapValueOfType(json, r'methodName')!, + pluginId: mapValueOfType(json, r'pluginId')!, + schema: mapValueOfType(json, r'schema'), + supportedContexts: PluginContext.listFromJson(json[r'supportedContexts']), + title: mapValueOfType(json, r'title')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = PluginFilterResponseDto.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = PluginFilterResponseDto.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of PluginFilterResponseDto-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = PluginFilterResponseDto.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'description', + 'id', + 'methodName', + 'pluginId', + 'schema', + 'supportedContexts', + 'title', + }; +} + diff --git a/mobile/openapi/lib/model/plugin_response_dto.dart b/mobile/openapi/lib/model/plugin_response_dto.dart new file mode 100644 index 0000000000..afa6f3e1ab --- /dev/null +++ b/mobile/openapi/lib/model/plugin_response_dto.dart @@ -0,0 +1,171 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class PluginResponseDto { + /// Returns a new [PluginResponseDto] instance. + PluginResponseDto({ + this.actions = const [], + required this.author, + required this.createdAt, + required this.description, + this.filters = const [], + required this.id, + required this.name, + required this.title, + required this.updatedAt, + required this.version, + }); + + List actions; + + String author; + + String createdAt; + + String description; + + List filters; + + String id; + + String name; + + String title; + + String updatedAt; + + String version; + + @override + bool operator ==(Object other) => identical(this, other) || other is PluginResponseDto && + _deepEquality.equals(other.actions, actions) && + other.author == author && + other.createdAt == createdAt && + other.description == description && + _deepEquality.equals(other.filters, filters) && + other.id == id && + other.name == name && + other.title == title && + other.updatedAt == updatedAt && + other.version == version; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (actions.hashCode) + + (author.hashCode) + + (createdAt.hashCode) + + (description.hashCode) + + (filters.hashCode) + + (id.hashCode) + + (name.hashCode) + + (title.hashCode) + + (updatedAt.hashCode) + + (version.hashCode); + + @override + String toString() => 'PluginResponseDto[actions=$actions, author=$author, createdAt=$createdAt, description=$description, filters=$filters, id=$id, name=$name, title=$title, updatedAt=$updatedAt, version=$version]'; + + Map toJson() { + final json = {}; + json[r'actions'] = this.actions; + json[r'author'] = this.author; + json[r'createdAt'] = this.createdAt; + json[r'description'] = this.description; + json[r'filters'] = this.filters; + json[r'id'] = this.id; + json[r'name'] = this.name; + json[r'title'] = this.title; + json[r'updatedAt'] = this.updatedAt; + json[r'version'] = this.version; + return json; + } + + /// Returns a new [PluginResponseDto] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static PluginResponseDto? fromJson(dynamic value) { + upgradeDto(value, "PluginResponseDto"); + if (value is Map) { + final json = value.cast(); + + return PluginResponseDto( + actions: PluginActionResponseDto.listFromJson(json[r'actions']), + author: mapValueOfType(json, r'author')!, + createdAt: mapValueOfType(json, r'createdAt')!, + description: mapValueOfType(json, r'description')!, + filters: PluginFilterResponseDto.listFromJson(json[r'filters']), + id: mapValueOfType(json, r'id')!, + name: mapValueOfType(json, r'name')!, + title: mapValueOfType(json, r'title')!, + updatedAt: mapValueOfType(json, r'updatedAt')!, + version: mapValueOfType(json, r'version')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = PluginResponseDto.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = PluginResponseDto.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of PluginResponseDto-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = PluginResponseDto.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'actions', + 'author', + 'createdAt', + 'description', + 'filters', + 'id', + 'name', + 'title', + 'updatedAt', + 'version', + }; +} + diff --git a/mobile/openapi/lib/model/plugin_trigger_type.dart b/mobile/openapi/lib/model/plugin_trigger_type.dart new file mode 100644 index 0000000000..b200f1b9e6 --- /dev/null +++ b/mobile/openapi/lib/model/plugin_trigger_type.dart @@ -0,0 +1,85 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + + +class PluginTriggerType { + /// Instantiate a new enum with the provided [value]. + const PluginTriggerType._(this.value); + + /// The underlying value of this enum member. + final String value; + + @override + String toString() => value; + + String toJson() => value; + + static const assetCreate = PluginTriggerType._(r'AssetCreate'); + static const personRecognized = PluginTriggerType._(r'PersonRecognized'); + + /// List of all possible values in this [enum][PluginTriggerType]. + static const values = [ + assetCreate, + personRecognized, + ]; + + static PluginTriggerType? fromJson(dynamic value) => PluginTriggerTypeTypeTransformer().decode(value); + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = PluginTriggerType.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [PluginTriggerType] to String, +/// and [decode] dynamic data back to [PluginTriggerType]. +class PluginTriggerTypeTypeTransformer { + factory PluginTriggerTypeTypeTransformer() => _instance ??= const PluginTriggerTypeTypeTransformer._(); + + const PluginTriggerTypeTypeTransformer._(); + + String encode(PluginTriggerType data) => data.value; + + /// Decodes a [dynamic value][data] to a PluginTriggerType. + /// + /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, + /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] + /// cannot be decoded successfully, then an [UnimplementedError] is thrown. + /// + /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, + /// and users are still using an old app with the old code. + PluginTriggerType? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case r'AssetCreate': return PluginTriggerType.assetCreate; + case r'PersonRecognized': return PluginTriggerType.personRecognized; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [PluginTriggerTypeTypeTransformer] instance. + static PluginTriggerTypeTypeTransformer? _instance; +} + diff --git a/mobile/openapi/lib/model/queue_name.dart b/mobile/openapi/lib/model/queue_name.dart index 7b8214e202..bcc4159fce 100644 --- a/mobile/openapi/lib/model/queue_name.dart +++ b/mobile/openapi/lib/model/queue_name.dart @@ -39,6 +39,7 @@ class QueueName { static const notifications = QueueName._(r'notifications'); static const backupDatabase = QueueName._(r'backupDatabase'); static const ocr = QueueName._(r'ocr'); + static const workflow = QueueName._(r'workflow'); /// List of all possible values in this [enum][QueueName]. static const values = [ @@ -58,6 +59,7 @@ class QueueName { notifications, backupDatabase, ocr, + workflow, ]; static QueueName? fromJson(dynamic value) => QueueNameTypeTransformer().decode(value); @@ -112,6 +114,7 @@ class QueueNameTypeTransformer { case r'notifications': return QueueName.notifications; case r'backupDatabase': return QueueName.backupDatabase; case r'ocr': return QueueName.ocr; + case r'workflow': return QueueName.workflow; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); diff --git a/mobile/openapi/lib/model/queues_response_dto.dart b/mobile/openapi/lib/model/queues_response_dto.dart index b20f8c3c09..be40a56fb1 100644 --- a/mobile/openapi/lib/model/queues_response_dto.dart +++ b/mobile/openapi/lib/model/queues_response_dto.dart @@ -29,6 +29,7 @@ class QueuesResponseDto { required this.storageTemplateMigration, required this.thumbnailGeneration, required this.videoConversion, + required this.workflow, }); QueueResponseDto backgroundTask; @@ -63,6 +64,8 @@ class QueuesResponseDto { QueueResponseDto videoConversion; + QueueResponseDto workflow; + @override bool operator ==(Object other) => identical(this, other) || other is QueuesResponseDto && other.backgroundTask == backgroundTask && @@ -80,7 +83,8 @@ class QueuesResponseDto { other.smartSearch == smartSearch && other.storageTemplateMigration == storageTemplateMigration && other.thumbnailGeneration == thumbnailGeneration && - other.videoConversion == videoConversion; + other.videoConversion == videoConversion && + other.workflow == workflow; @override int get hashCode => @@ -100,10 +104,11 @@ class QueuesResponseDto { (smartSearch.hashCode) + (storageTemplateMigration.hashCode) + (thumbnailGeneration.hashCode) + - (videoConversion.hashCode); + (videoConversion.hashCode) + + (workflow.hashCode); @override - String toString() => 'QueuesResponseDto[backgroundTask=$backgroundTask, backupDatabase=$backupDatabase, duplicateDetection=$duplicateDetection, faceDetection=$faceDetection, facialRecognition=$facialRecognition, library_=$library_, metadataExtraction=$metadataExtraction, migration=$migration, notifications=$notifications, ocr=$ocr, search=$search, sidecar=$sidecar, smartSearch=$smartSearch, storageTemplateMigration=$storageTemplateMigration, thumbnailGeneration=$thumbnailGeneration, videoConversion=$videoConversion]'; + String toString() => 'QueuesResponseDto[backgroundTask=$backgroundTask, backupDatabase=$backupDatabase, duplicateDetection=$duplicateDetection, faceDetection=$faceDetection, facialRecognition=$facialRecognition, library_=$library_, metadataExtraction=$metadataExtraction, migration=$migration, notifications=$notifications, ocr=$ocr, search=$search, sidecar=$sidecar, smartSearch=$smartSearch, storageTemplateMigration=$storageTemplateMigration, thumbnailGeneration=$thumbnailGeneration, videoConversion=$videoConversion, workflow=$workflow]'; Map toJson() { final json = {}; @@ -123,6 +128,7 @@ class QueuesResponseDto { json[r'storageTemplateMigration'] = this.storageTemplateMigration; json[r'thumbnailGeneration'] = this.thumbnailGeneration; json[r'videoConversion'] = this.videoConversion; + json[r'workflow'] = this.workflow; return json; } @@ -151,6 +157,7 @@ class QueuesResponseDto { storageTemplateMigration: QueueResponseDto.fromJson(json[r'storageTemplateMigration'])!, thumbnailGeneration: QueueResponseDto.fromJson(json[r'thumbnailGeneration'])!, videoConversion: QueueResponseDto.fromJson(json[r'videoConversion'])!, + workflow: QueueResponseDto.fromJson(json[r'workflow'])!, ); } return null; @@ -214,6 +221,7 @@ class QueuesResponseDto { 'storageTemplateMigration', 'thumbnailGeneration', 'videoConversion', + 'workflow', }; } diff --git a/mobile/openapi/lib/model/system_config_job_dto.dart b/mobile/openapi/lib/model/system_config_job_dto.dart index 3eeb9c7d3b..461420b3e3 100644 --- a/mobile/openapi/lib/model/system_config_job_dto.dart +++ b/mobile/openapi/lib/model/system_config_job_dto.dart @@ -25,6 +25,7 @@ class SystemConfigJobDto { required this.smartSearch, required this.thumbnailGeneration, required this.videoConversion, + required this.workflow, }); JobSettingsDto backgroundTask; @@ -51,6 +52,8 @@ class SystemConfigJobDto { JobSettingsDto videoConversion; + JobSettingsDto workflow; + @override bool operator ==(Object other) => identical(this, other) || other is SystemConfigJobDto && other.backgroundTask == backgroundTask && @@ -64,7 +67,8 @@ class SystemConfigJobDto { other.sidecar == sidecar && other.smartSearch == smartSearch && other.thumbnailGeneration == thumbnailGeneration && - other.videoConversion == videoConversion; + other.videoConversion == videoConversion && + other.workflow == workflow; @override int get hashCode => @@ -80,10 +84,11 @@ class SystemConfigJobDto { (sidecar.hashCode) + (smartSearch.hashCode) + (thumbnailGeneration.hashCode) + - (videoConversion.hashCode); + (videoConversion.hashCode) + + (workflow.hashCode); @override - String toString() => 'SystemConfigJobDto[backgroundTask=$backgroundTask, faceDetection=$faceDetection, library_=$library_, metadataExtraction=$metadataExtraction, migration=$migration, notifications=$notifications, ocr=$ocr, search=$search, sidecar=$sidecar, smartSearch=$smartSearch, thumbnailGeneration=$thumbnailGeneration, videoConversion=$videoConversion]'; + String toString() => 'SystemConfigJobDto[backgroundTask=$backgroundTask, faceDetection=$faceDetection, library_=$library_, metadataExtraction=$metadataExtraction, migration=$migration, notifications=$notifications, ocr=$ocr, search=$search, sidecar=$sidecar, smartSearch=$smartSearch, thumbnailGeneration=$thumbnailGeneration, videoConversion=$videoConversion, workflow=$workflow]'; Map toJson() { final json = {}; @@ -99,6 +104,7 @@ class SystemConfigJobDto { json[r'smartSearch'] = this.smartSearch; json[r'thumbnailGeneration'] = this.thumbnailGeneration; json[r'videoConversion'] = this.videoConversion; + json[r'workflow'] = this.workflow; return json; } @@ -123,6 +129,7 @@ class SystemConfigJobDto { smartSearch: JobSettingsDto.fromJson(json[r'smartSearch'])!, thumbnailGeneration: JobSettingsDto.fromJson(json[r'thumbnailGeneration'])!, videoConversion: JobSettingsDto.fromJson(json[r'videoConversion'])!, + workflow: JobSettingsDto.fromJson(json[r'workflow'])!, ); } return null; @@ -182,6 +189,7 @@ class SystemConfigJobDto { 'smartSearch', 'thumbnailGeneration', 'videoConversion', + 'workflow', }; } diff --git a/mobile/openapi/lib/model/workflow_action_item_dto.dart b/mobile/openapi/lib/model/workflow_action_item_dto.dart new file mode 100644 index 0000000000..ee0b30216d --- /dev/null +++ b/mobile/openapi/lib/model/workflow_action_item_dto.dart @@ -0,0 +1,116 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class WorkflowActionItemDto { + /// Returns a new [WorkflowActionItemDto] instance. + WorkflowActionItemDto({ + this.actionConfig, + required this.actionId, + }); + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + Object? actionConfig; + + String actionId; + + @override + bool operator ==(Object other) => identical(this, other) || other is WorkflowActionItemDto && + other.actionConfig == actionConfig && + other.actionId == actionId; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (actionConfig == null ? 0 : actionConfig!.hashCode) + + (actionId.hashCode); + + @override + String toString() => 'WorkflowActionItemDto[actionConfig=$actionConfig, actionId=$actionId]'; + + Map toJson() { + final json = {}; + if (this.actionConfig != null) { + json[r'actionConfig'] = this.actionConfig; + } else { + // json[r'actionConfig'] = null; + } + json[r'actionId'] = this.actionId; + return json; + } + + /// Returns a new [WorkflowActionItemDto] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static WorkflowActionItemDto? fromJson(dynamic value) { + upgradeDto(value, "WorkflowActionItemDto"); + if (value is Map) { + final json = value.cast(); + + return WorkflowActionItemDto( + actionConfig: mapValueOfType(json, r'actionConfig'), + actionId: mapValueOfType(json, r'actionId')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = WorkflowActionItemDto.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = WorkflowActionItemDto.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of WorkflowActionItemDto-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = WorkflowActionItemDto.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'actionId', + }; +} + diff --git a/mobile/openapi/lib/model/workflow_action_response_dto.dart b/mobile/openapi/lib/model/workflow_action_response_dto.dart new file mode 100644 index 0000000000..6528f018c9 --- /dev/null +++ b/mobile/openapi/lib/model/workflow_action_response_dto.dart @@ -0,0 +1,135 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class WorkflowActionResponseDto { + /// Returns a new [WorkflowActionResponseDto] instance. + WorkflowActionResponseDto({ + required this.actionConfig, + required this.actionId, + required this.id, + required this.order, + required this.workflowId, + }); + + Object? actionConfig; + + String actionId; + + String id; + + num order; + + String workflowId; + + @override + bool operator ==(Object other) => identical(this, other) || other is WorkflowActionResponseDto && + other.actionConfig == actionConfig && + other.actionId == actionId && + other.id == id && + other.order == order && + other.workflowId == workflowId; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (actionConfig == null ? 0 : actionConfig!.hashCode) + + (actionId.hashCode) + + (id.hashCode) + + (order.hashCode) + + (workflowId.hashCode); + + @override + String toString() => 'WorkflowActionResponseDto[actionConfig=$actionConfig, actionId=$actionId, id=$id, order=$order, workflowId=$workflowId]'; + + Map toJson() { + final json = {}; + if (this.actionConfig != null) { + json[r'actionConfig'] = this.actionConfig; + } else { + // json[r'actionConfig'] = null; + } + json[r'actionId'] = this.actionId; + json[r'id'] = this.id; + json[r'order'] = this.order; + json[r'workflowId'] = this.workflowId; + return json; + } + + /// Returns a new [WorkflowActionResponseDto] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static WorkflowActionResponseDto? fromJson(dynamic value) { + upgradeDto(value, "WorkflowActionResponseDto"); + if (value is Map) { + final json = value.cast(); + + return WorkflowActionResponseDto( + actionConfig: mapValueOfType(json, r'actionConfig'), + actionId: mapValueOfType(json, r'actionId')!, + id: mapValueOfType(json, r'id')!, + order: num.parse('${json[r'order']}'), + workflowId: mapValueOfType(json, r'workflowId')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = WorkflowActionResponseDto.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = WorkflowActionResponseDto.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of WorkflowActionResponseDto-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = WorkflowActionResponseDto.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'actionConfig', + 'actionId', + 'id', + 'order', + 'workflowId', + }; +} + diff --git a/mobile/openapi/lib/model/workflow_create_dto.dart b/mobile/openapi/lib/model/workflow_create_dto.dart new file mode 100644 index 0000000000..c6e44743ac --- /dev/null +++ b/mobile/openapi/lib/model/workflow_create_dto.dart @@ -0,0 +1,157 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class WorkflowCreateDto { + /// Returns a new [WorkflowCreateDto] instance. + WorkflowCreateDto({ + this.actions = const [], + this.description, + this.enabled, + this.filters = const [], + required this.name, + required this.triggerType, + }); + + List actions; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? description; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? enabled; + + List filters; + + String name; + + PluginTriggerType triggerType; + + @override + bool operator ==(Object other) => identical(this, other) || other is WorkflowCreateDto && + _deepEquality.equals(other.actions, actions) && + other.description == description && + other.enabled == enabled && + _deepEquality.equals(other.filters, filters) && + other.name == name && + other.triggerType == triggerType; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (actions.hashCode) + + (description == null ? 0 : description!.hashCode) + + (enabled == null ? 0 : enabled!.hashCode) + + (filters.hashCode) + + (name.hashCode) + + (triggerType.hashCode); + + @override + String toString() => 'WorkflowCreateDto[actions=$actions, description=$description, enabled=$enabled, filters=$filters, name=$name, triggerType=$triggerType]'; + + Map toJson() { + final json = {}; + json[r'actions'] = this.actions; + if (this.description != null) { + json[r'description'] = this.description; + } else { + // json[r'description'] = null; + } + if (this.enabled != null) { + json[r'enabled'] = this.enabled; + } else { + // json[r'enabled'] = null; + } + json[r'filters'] = this.filters; + json[r'name'] = this.name; + json[r'triggerType'] = this.triggerType; + return json; + } + + /// Returns a new [WorkflowCreateDto] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static WorkflowCreateDto? fromJson(dynamic value) { + upgradeDto(value, "WorkflowCreateDto"); + if (value is Map) { + final json = value.cast(); + + return WorkflowCreateDto( + actions: WorkflowActionItemDto.listFromJson(json[r'actions']), + description: mapValueOfType(json, r'description'), + enabled: mapValueOfType(json, r'enabled'), + filters: WorkflowFilterItemDto.listFromJson(json[r'filters']), + name: mapValueOfType(json, r'name')!, + triggerType: PluginTriggerType.fromJson(json[r'triggerType'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = WorkflowCreateDto.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = WorkflowCreateDto.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of WorkflowCreateDto-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = WorkflowCreateDto.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'actions', + 'filters', + 'name', + 'triggerType', + }; +} + diff --git a/mobile/openapi/lib/model/workflow_filter_item_dto.dart b/mobile/openapi/lib/model/workflow_filter_item_dto.dart new file mode 100644 index 0000000000..5b78585c3d --- /dev/null +++ b/mobile/openapi/lib/model/workflow_filter_item_dto.dart @@ -0,0 +1,116 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class WorkflowFilterItemDto { + /// Returns a new [WorkflowFilterItemDto] instance. + WorkflowFilterItemDto({ + this.filterConfig, + required this.filterId, + }); + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + Object? filterConfig; + + String filterId; + + @override + bool operator ==(Object other) => identical(this, other) || other is WorkflowFilterItemDto && + other.filterConfig == filterConfig && + other.filterId == filterId; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (filterConfig == null ? 0 : filterConfig!.hashCode) + + (filterId.hashCode); + + @override + String toString() => 'WorkflowFilterItemDto[filterConfig=$filterConfig, filterId=$filterId]'; + + Map toJson() { + final json = {}; + if (this.filterConfig != null) { + json[r'filterConfig'] = this.filterConfig; + } else { + // json[r'filterConfig'] = null; + } + json[r'filterId'] = this.filterId; + return json; + } + + /// Returns a new [WorkflowFilterItemDto] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static WorkflowFilterItemDto? fromJson(dynamic value) { + upgradeDto(value, "WorkflowFilterItemDto"); + if (value is Map) { + final json = value.cast(); + + return WorkflowFilterItemDto( + filterConfig: mapValueOfType(json, r'filterConfig'), + filterId: mapValueOfType(json, r'filterId')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = WorkflowFilterItemDto.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = WorkflowFilterItemDto.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of WorkflowFilterItemDto-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = WorkflowFilterItemDto.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'filterId', + }; +} + diff --git a/mobile/openapi/lib/model/workflow_filter_response_dto.dart b/mobile/openapi/lib/model/workflow_filter_response_dto.dart new file mode 100644 index 0000000000..5257c92b80 --- /dev/null +++ b/mobile/openapi/lib/model/workflow_filter_response_dto.dart @@ -0,0 +1,135 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class WorkflowFilterResponseDto { + /// Returns a new [WorkflowFilterResponseDto] instance. + WorkflowFilterResponseDto({ + required this.filterConfig, + required this.filterId, + required this.id, + required this.order, + required this.workflowId, + }); + + Object? filterConfig; + + String filterId; + + String id; + + num order; + + String workflowId; + + @override + bool operator ==(Object other) => identical(this, other) || other is WorkflowFilterResponseDto && + other.filterConfig == filterConfig && + other.filterId == filterId && + other.id == id && + other.order == order && + other.workflowId == workflowId; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (filterConfig == null ? 0 : filterConfig!.hashCode) + + (filterId.hashCode) + + (id.hashCode) + + (order.hashCode) + + (workflowId.hashCode); + + @override + String toString() => 'WorkflowFilterResponseDto[filterConfig=$filterConfig, filterId=$filterId, id=$id, order=$order, workflowId=$workflowId]'; + + Map toJson() { + final json = {}; + if (this.filterConfig != null) { + json[r'filterConfig'] = this.filterConfig; + } else { + // json[r'filterConfig'] = null; + } + json[r'filterId'] = this.filterId; + json[r'id'] = this.id; + json[r'order'] = this.order; + json[r'workflowId'] = this.workflowId; + return json; + } + + /// Returns a new [WorkflowFilterResponseDto] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static WorkflowFilterResponseDto? fromJson(dynamic value) { + upgradeDto(value, "WorkflowFilterResponseDto"); + if (value is Map) { + final json = value.cast(); + + return WorkflowFilterResponseDto( + filterConfig: mapValueOfType(json, r'filterConfig'), + filterId: mapValueOfType(json, r'filterId')!, + id: mapValueOfType(json, r'id')!, + order: num.parse('${json[r'order']}'), + workflowId: mapValueOfType(json, r'workflowId')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = WorkflowFilterResponseDto.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = WorkflowFilterResponseDto.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of WorkflowFilterResponseDto-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = WorkflowFilterResponseDto.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'filterConfig', + 'filterId', + 'id', + 'order', + 'workflowId', + }; +} + diff --git a/mobile/openapi/lib/model/workflow_response_dto.dart b/mobile/openapi/lib/model/workflow_response_dto.dart new file mode 100644 index 0000000000..5132e7cb73 --- /dev/null +++ b/mobile/openapi/lib/model/workflow_response_dto.dart @@ -0,0 +1,241 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class WorkflowResponseDto { + /// Returns a new [WorkflowResponseDto] instance. + WorkflowResponseDto({ + this.actions = const [], + required this.createdAt, + required this.description, + required this.enabled, + this.filters = const [], + required this.id, + required this.name, + required this.ownerId, + required this.triggerType, + }); + + List actions; + + String createdAt; + + String description; + + bool enabled; + + List filters; + + String id; + + String? name; + + String ownerId; + + WorkflowResponseDtoTriggerTypeEnum triggerType; + + @override + bool operator ==(Object other) => identical(this, other) || other is WorkflowResponseDto && + _deepEquality.equals(other.actions, actions) && + other.createdAt == createdAt && + other.description == description && + other.enabled == enabled && + _deepEquality.equals(other.filters, filters) && + other.id == id && + other.name == name && + other.ownerId == ownerId && + other.triggerType == triggerType; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (actions.hashCode) + + (createdAt.hashCode) + + (description.hashCode) + + (enabled.hashCode) + + (filters.hashCode) + + (id.hashCode) + + (name == null ? 0 : name!.hashCode) + + (ownerId.hashCode) + + (triggerType.hashCode); + + @override + String toString() => 'WorkflowResponseDto[actions=$actions, createdAt=$createdAt, description=$description, enabled=$enabled, filters=$filters, id=$id, name=$name, ownerId=$ownerId, triggerType=$triggerType]'; + + Map toJson() { + final json = {}; + json[r'actions'] = this.actions; + json[r'createdAt'] = this.createdAt; + json[r'description'] = this.description; + json[r'enabled'] = this.enabled; + json[r'filters'] = this.filters; + json[r'id'] = this.id; + if (this.name != null) { + json[r'name'] = this.name; + } else { + // json[r'name'] = null; + } + json[r'ownerId'] = this.ownerId; + json[r'triggerType'] = this.triggerType; + return json; + } + + /// Returns a new [WorkflowResponseDto] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static WorkflowResponseDto? fromJson(dynamic value) { + upgradeDto(value, "WorkflowResponseDto"); + if (value is Map) { + final json = value.cast(); + + return WorkflowResponseDto( + actions: WorkflowActionResponseDto.listFromJson(json[r'actions']), + createdAt: mapValueOfType(json, r'createdAt')!, + description: mapValueOfType(json, r'description')!, + enabled: mapValueOfType(json, r'enabled')!, + filters: WorkflowFilterResponseDto.listFromJson(json[r'filters']), + id: mapValueOfType(json, r'id')!, + name: mapValueOfType(json, r'name'), + ownerId: mapValueOfType(json, r'ownerId')!, + triggerType: WorkflowResponseDtoTriggerTypeEnum.fromJson(json[r'triggerType'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = WorkflowResponseDto.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = WorkflowResponseDto.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of WorkflowResponseDto-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = WorkflowResponseDto.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'actions', + 'createdAt', + 'description', + 'enabled', + 'filters', + 'id', + 'name', + 'ownerId', + 'triggerType', + }; +} + + +class WorkflowResponseDtoTriggerTypeEnum { + /// Instantiate a new enum with the provided [value]. + const WorkflowResponseDtoTriggerTypeEnum._(this.value); + + /// The underlying value of this enum member. + final String value; + + @override + String toString() => value; + + String toJson() => value; + + static const assetCreate = WorkflowResponseDtoTriggerTypeEnum._(r'AssetCreate'); + static const personRecognized = WorkflowResponseDtoTriggerTypeEnum._(r'PersonRecognized'); + + /// List of all possible values in this [enum][WorkflowResponseDtoTriggerTypeEnum]. + static const values = [ + assetCreate, + personRecognized, + ]; + + static WorkflowResponseDtoTriggerTypeEnum? fromJson(dynamic value) => WorkflowResponseDtoTriggerTypeEnumTypeTransformer().decode(value); + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = WorkflowResponseDtoTriggerTypeEnum.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [WorkflowResponseDtoTriggerTypeEnum] to String, +/// and [decode] dynamic data back to [WorkflowResponseDtoTriggerTypeEnum]. +class WorkflowResponseDtoTriggerTypeEnumTypeTransformer { + factory WorkflowResponseDtoTriggerTypeEnumTypeTransformer() => _instance ??= const WorkflowResponseDtoTriggerTypeEnumTypeTransformer._(); + + const WorkflowResponseDtoTriggerTypeEnumTypeTransformer._(); + + String encode(WorkflowResponseDtoTriggerTypeEnum data) => data.value; + + /// Decodes a [dynamic value][data] to a WorkflowResponseDtoTriggerTypeEnum. + /// + /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, + /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] + /// cannot be decoded successfully, then an [UnimplementedError] is thrown. + /// + /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, + /// and users are still using an old app with the old code. + WorkflowResponseDtoTriggerTypeEnum? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case r'AssetCreate': return WorkflowResponseDtoTriggerTypeEnum.assetCreate; + case r'PersonRecognized': return WorkflowResponseDtoTriggerTypeEnum.personRecognized; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [WorkflowResponseDtoTriggerTypeEnumTypeTransformer] instance. + static WorkflowResponseDtoTriggerTypeEnumTypeTransformer? _instance; +} + + diff --git a/mobile/openapi/lib/model/workflow_update_dto.dart b/mobile/openapi/lib/model/workflow_update_dto.dart new file mode 100644 index 0000000000..b36a396dc6 --- /dev/null +++ b/mobile/openapi/lib/model/workflow_update_dto.dart @@ -0,0 +1,156 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class WorkflowUpdateDto { + /// Returns a new [WorkflowUpdateDto] instance. + WorkflowUpdateDto({ + this.actions = const [], + this.description, + this.enabled, + this.filters = const [], + this.name, + }); + + List actions; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? description; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + bool? enabled; + + List filters; + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? name; + + @override + bool operator ==(Object other) => identical(this, other) || other is WorkflowUpdateDto && + _deepEquality.equals(other.actions, actions) && + other.description == description && + other.enabled == enabled && + _deepEquality.equals(other.filters, filters) && + other.name == name; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (actions.hashCode) + + (description == null ? 0 : description!.hashCode) + + (enabled == null ? 0 : enabled!.hashCode) + + (filters.hashCode) + + (name == null ? 0 : name!.hashCode); + + @override + String toString() => 'WorkflowUpdateDto[actions=$actions, description=$description, enabled=$enabled, filters=$filters, name=$name]'; + + Map toJson() { + final json = {}; + json[r'actions'] = this.actions; + if (this.description != null) { + json[r'description'] = this.description; + } else { + // json[r'description'] = null; + } + if (this.enabled != null) { + json[r'enabled'] = this.enabled; + } else { + // json[r'enabled'] = null; + } + json[r'filters'] = this.filters; + if (this.name != null) { + json[r'name'] = this.name; + } else { + // json[r'name'] = null; + } + return json; + } + + /// Returns a new [WorkflowUpdateDto] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static WorkflowUpdateDto? fromJson(dynamic value) { + upgradeDto(value, "WorkflowUpdateDto"); + if (value is Map) { + final json = value.cast(); + + return WorkflowUpdateDto( + actions: WorkflowActionItemDto.listFromJson(json[r'actions']), + description: mapValueOfType(json, r'description'), + enabled: mapValueOfType(json, r'enabled'), + filters: WorkflowFilterItemDto.listFromJson(json[r'filters']), + name: mapValueOfType(json, r'name'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = WorkflowUpdateDto.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = WorkflowUpdateDto.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of WorkflowUpdateDto-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = WorkflowUpdateDto.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + }; +} + diff --git a/open-api/immich-openapi-specs.json b/open-api/immich-openapi-specs.json index 7ae48eaf8b..d42aa0baa1 100644 --- a/open-api/immich-openapi-specs.json +++ b/open-api/immich-openapi-specs.json @@ -7865,6 +7865,111 @@ "x-immich-state": "Stable" } }, + "/plugins": { + "get": { + "description": "Retrieve a list of plugins available to the authenticated user.", + "operationId": "getPlugins", + "parameters": [], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/PluginResponseDto" + }, + "type": "array" + } + } + }, + "description": "" + } + }, + "security": [ + { + "bearer": [] + }, + { + "cookie": [] + }, + { + "api_key": [] + } + ], + "summary": "List all plugins", + "tags": [ + "Plugins" + ], + "x-immich-history": [ + { + "version": "v2.3.0", + "state": "Added" + }, + { + "version": "v2.3.0", + "state": "Alpha" + } + ], + "x-immich-permission": "plugin.read", + "x-immich-state": "Alpha" + } + }, + "/plugins/{id}": { + "get": { + "description": "Retrieve information about a specific plugin by its ID.", + "operationId": "getPlugin", + "parameters": [ + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "format": "uuid", + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PluginResponseDto" + } + } + }, + "description": "" + } + }, + "security": [ + { + "bearer": [] + }, + { + "cookie": [] + }, + { + "api_key": [] + } + ], + "summary": "Retrieve a plugin", + "tags": [ + "Plugins" + ], + "x-immich-history": [ + { + "version": "v2.3.0", + "state": "Added" + }, + { + "version": "v2.3.0", + "state": "Alpha" + } + ], + "x-immich-permission": "plugin.read", + "x-immich-state": "Alpha" + } + }, "/search/cities": { "get": { "description": "Retrieve a list of assets with each asset belonging to a different city. This endpoint is used on the places pages to show a single thumbnail for each city the user has assets in.", @@ -13485,6 +13590,276 @@ ], "x-immich-state": "Stable" } + }, + "/workflows": { + "get": { + "description": "Retrieve a list of workflows available to the authenticated user.", + "operationId": "getWorkflows", + "parameters": [], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/WorkflowResponseDto" + }, + "type": "array" + } + } + }, + "description": "" + } + }, + "security": [ + { + "bearer": [] + }, + { + "cookie": [] + }, + { + "api_key": [] + } + ], + "summary": "List all workflows", + "tags": [ + "Workflows" + ], + "x-immich-history": [ + { + "version": "v2.3.0", + "state": "Added" + }, + { + "version": "v2.3.0", + "state": "Alpha" + } + ], + "x-immich-permission": "workflow.read", + "x-immich-state": "Alpha" + }, + "post": { + "description": "Create a new workflow, the workflow can also be created with empty filters and actions.", + "operationId": "createWorkflow", + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkflowCreateDto" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkflowResponseDto" + } + } + }, + "description": "" + } + }, + "security": [ + { + "bearer": [] + }, + { + "cookie": [] + }, + { + "api_key": [] + } + ], + "summary": "Create a workflow", + "tags": [ + "Workflows" + ], + "x-immich-history": [ + { + "version": "v2.3.0", + "state": "Added" + }, + { + "version": "v2.3.0", + "state": "Alpha" + } + ], + "x-immich-permission": "workflow.create", + "x-immich-state": "Alpha" + } + }, + "/workflows/{id}": { + "delete": { + "description": "Delete a workflow by its ID.", + "operationId": "deleteWorkflow", + "parameters": [ + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "format": "uuid", + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "" + } + }, + "security": [ + { + "bearer": [] + }, + { + "cookie": [] + }, + { + "api_key": [] + } + ], + "summary": "Delete a workflow", + "tags": [ + "Workflows" + ], + "x-immich-history": [ + { + "version": "v2.3.0", + "state": "Added" + }, + { + "version": "v2.3.0", + "state": "Alpha" + } + ], + "x-immich-permission": "workflow.delete", + "x-immich-state": "Alpha" + }, + "get": { + "description": "Retrieve information about a specific workflow by its ID.", + "operationId": "getWorkflow", + "parameters": [ + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "format": "uuid", + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkflowResponseDto" + } + } + }, + "description": "" + } + }, + "security": [ + { + "bearer": [] + }, + { + "cookie": [] + }, + { + "api_key": [] + } + ], + "summary": "Retrieve a workflow", + "tags": [ + "Workflows" + ], + "x-immich-history": [ + { + "version": "v2.3.0", + "state": "Added" + }, + { + "version": "v2.3.0", + "state": "Alpha" + } + ], + "x-immich-permission": "workflow.read", + "x-immich-state": "Alpha" + }, + "put": { + "description": "Update the information of a specific workflow by its ID. This endpoint can be used to update the workflow name, description, trigger type, filters and actions order, etc.", + "operationId": "updateWorkflow", + "parameters": [ + { + "name": "id", + "required": true, + "in": "path", + "schema": { + "format": "uuid", + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkflowUpdateDto" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkflowResponseDto" + } + } + }, + "description": "" + } + }, + "security": [ + { + "bearer": [] + }, + { + "cookie": [] + }, + { + "api_key": [] + } + ], + "summary": "Update a workflow", + "tags": [ + "Workflows" + ], + "x-immich-history": [ + { + "version": "v2.3.0", + "state": "Added" + }, + { + "version": "v2.3.0", + "state": "Alpha" + } + ], + "x-immich-permission": "workflow.update", + "x-immich-state": "Alpha" + } } }, "info": { @@ -13566,6 +13941,10 @@ "name": "People", "description": "A person is a collection of faces, which can be favorited and named. A person can also be merged into another person. People are automatically created via the face recognition job." }, + { + "name": "Plugins", + "description": "A plugin is an installed module that makes filters and actions available for the workflow feature." + }, { "name": "Search", "description": "Endpoints related to searching assets via text, smart search, optical character recognition (OCR), and other filters like person, album, and other metadata. Search endpoints usually support pagination and sorting." @@ -13621,6 +14000,10 @@ { "name": "Views", "description": "Endpoints for specialized views, such as the folder view." + }, + { + "name": "Workflows", + "description": "A workflow is a set of actions that run whenever a triggering event occurs. Workflows also can include filters to further limit execution." } ], "servers": [ @@ -17022,6 +17405,10 @@ "pinCode.create", "pinCode.update", "pinCode.delete", + "plugin.create", + "plugin.read", + "plugin.update", + "plugin.delete", "server.about", "server.apkLinks", "server.storage", @@ -17071,6 +17458,10 @@ "userProfileImage.read", "userProfileImage.update", "userProfileImage.delete", + "workflow.create", + "workflow.read", + "workflow.update", + "workflow.delete", "adminUser.create", "adminUser.read", "adminUser.update", @@ -17367,6 +17758,152 @@ ], "type": "object" }, + "PluginActionResponseDto": { + "properties": { + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "methodName": { + "type": "string" + }, + "pluginId": { + "type": "string" + }, + "schema": { + "nullable": true, + "type": "object" + }, + "supportedContexts": { + "items": { + "$ref": "#/components/schemas/PluginContext" + }, + "type": "array" + }, + "title": { + "type": "string" + } + }, + "required": [ + "description", + "id", + "methodName", + "pluginId", + "schema", + "supportedContexts", + "title" + ], + "type": "object" + }, + "PluginContext": { + "enum": [ + "asset", + "album", + "person" + ], + "type": "string" + }, + "PluginFilterResponseDto": { + "properties": { + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "methodName": { + "type": "string" + }, + "pluginId": { + "type": "string" + }, + "schema": { + "nullable": true, + "type": "object" + }, + "supportedContexts": { + "items": { + "$ref": "#/components/schemas/PluginContext" + }, + "type": "array" + }, + "title": { + "type": "string" + } + }, + "required": [ + "description", + "id", + "methodName", + "pluginId", + "schema", + "supportedContexts", + "title" + ], + "type": "object" + }, + "PluginResponseDto": { + "properties": { + "actions": { + "items": { + "$ref": "#/components/schemas/PluginActionResponseDto" + }, + "type": "array" + }, + "author": { + "type": "string" + }, + "createdAt": { + "type": "string" + }, + "description": { + "type": "string" + }, + "filters": { + "items": { + "$ref": "#/components/schemas/PluginFilterResponseDto" + }, + "type": "array" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "title": { + "type": "string" + }, + "updatedAt": { + "type": "string" + }, + "version": { + "type": "string" + } + }, + "required": [ + "actions", + "author", + "createdAt", + "description", + "filters", + "id", + "name", + "title", + "updatedAt", + "version" + ], + "type": "object" + }, + "PluginTriggerType": { + "enum": [ + "AssetCreate", + "PersonRecognized" + ], + "type": "string" + }, "PurchaseResponse": { "properties": { "hideBuyButtonUntil": { @@ -17438,7 +17975,8 @@ "library", "notifications", "backupDatabase", - "ocr" + "ocr", + "workflow" ], "type": "string" }, @@ -17552,6 +18090,9 @@ }, "videoConversion": { "$ref": "#/components/schemas/QueueResponseDto" + }, + "workflow": { + "$ref": "#/components/schemas/QueueResponseDto" } }, "required": [ @@ -17570,7 +18111,8 @@ "smartSearch", "storageTemplateMigration", "thumbnailGeneration", - "videoConversion" + "videoConversion", + "workflow" ], "type": "object" }, @@ -20420,6 +20962,9 @@ }, "videoConversion": { "$ref": "#/components/schemas/JobSettingsDto" + }, + "workflow": { + "$ref": "#/components/schemas/JobSettingsDto" } }, "required": [ @@ -20434,7 +20979,8 @@ "sidecar", "smartSearch", "thumbnailGeneration", - "videoConversion" + "videoConversion", + "workflow" ], "type": "object" }, @@ -21999,6 +22545,211 @@ "webm" ], "type": "string" + }, + "WorkflowActionItemDto": { + "properties": { + "actionConfig": { + "type": "object" + }, + "actionId": { + "format": "uuid", + "type": "string" + } + }, + "required": [ + "actionId" + ], + "type": "object" + }, + "WorkflowActionResponseDto": { + "properties": { + "actionConfig": { + "nullable": true, + "type": "object" + }, + "actionId": { + "type": "string" + }, + "id": { + "type": "string" + }, + "order": { + "type": "number" + }, + "workflowId": { + "type": "string" + } + }, + "required": [ + "actionConfig", + "actionId", + "id", + "order", + "workflowId" + ], + "type": "object" + }, + "WorkflowCreateDto": { + "properties": { + "actions": { + "items": { + "$ref": "#/components/schemas/WorkflowActionItemDto" + }, + "type": "array" + }, + "description": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "filters": { + "items": { + "$ref": "#/components/schemas/WorkflowFilterItemDto" + }, + "type": "array" + }, + "name": { + "type": "string" + }, + "triggerType": { + "allOf": [ + { + "$ref": "#/components/schemas/PluginTriggerType" + } + ] + } + }, + "required": [ + "actions", + "filters", + "name", + "triggerType" + ], + "type": "object" + }, + "WorkflowFilterItemDto": { + "properties": { + "filterConfig": { + "type": "object" + }, + "filterId": { + "format": "uuid", + "type": "string" + } + }, + "required": [ + "filterId" + ], + "type": "object" + }, + "WorkflowFilterResponseDto": { + "properties": { + "filterConfig": { + "nullable": true, + "type": "object" + }, + "filterId": { + "type": "string" + }, + "id": { + "type": "string" + }, + "order": { + "type": "number" + }, + "workflowId": { + "type": "string" + } + }, + "required": [ + "filterConfig", + "filterId", + "id", + "order", + "workflowId" + ], + "type": "object" + }, + "WorkflowResponseDto": { + "properties": { + "actions": { + "items": { + "$ref": "#/components/schemas/WorkflowActionResponseDto" + }, + "type": "array" + }, + "createdAt": { + "type": "string" + }, + "description": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "filters": { + "items": { + "$ref": "#/components/schemas/WorkflowFilterResponseDto" + }, + "type": "array" + }, + "id": { + "type": "string" + }, + "name": { + "nullable": true, + "type": "string" + }, + "ownerId": { + "type": "string" + }, + "triggerType": { + "enum": [ + "AssetCreate", + "PersonRecognized" + ], + "type": "string" + } + }, + "required": [ + "actions", + "createdAt", + "description", + "enabled", + "filters", + "id", + "name", + "ownerId", + "triggerType" + ], + "type": "object" + }, + "WorkflowUpdateDto": { + "properties": { + "actions": { + "items": { + "$ref": "#/components/schemas/WorkflowActionItemDto" + }, + "type": "array" + }, + "description": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "filters": { + "items": { + "$ref": "#/components/schemas/WorkflowFilterItemDto" + }, + "type": "array" + }, + "name": { + "type": "string" + } + }, + "type": "object" } } } diff --git a/open-api/typescript-sdk/src/fetch-client.ts b/open-api/typescript-sdk/src/fetch-client.ts index 00a6eea954..0664d26995 100644 --- a/open-api/typescript-sdk/src/fetch-client.ts +++ b/open-api/typescript-sdk/src/fetch-client.ts @@ -732,6 +732,7 @@ export type QueuesResponseDto = { storageTemplateMigration: QueueResponseDto; thumbnailGeneration: QueueResponseDto; videoConversion: QueueResponseDto; + workflow: QueueResponseDto; }; export type JobCreateDto = { name: ManualJobName; @@ -926,6 +927,36 @@ export type AssetFaceUpdateDto = { export type PersonStatisticsResponseDto = { assets: number; }; +export type PluginActionResponseDto = { + description: string; + id: string; + methodName: string; + pluginId: string; + schema: object | null; + supportedContexts: PluginContext[]; + title: string; +}; +export type PluginFilterResponseDto = { + description: string; + id: string; + methodName: string; + pluginId: string; + schema: object | null; + supportedContexts: PluginContext[]; + title: string; +}; +export type PluginResponseDto = { + actions: PluginActionResponseDto[]; + author: string; + createdAt: string; + description: string; + filters: PluginFilterResponseDto[]; + id: string; + name: string; + title: string; + updatedAt: string; + version: string; +}; export type SearchExploreItem = { data: AssetResponseDto; value: string; @@ -1411,6 +1442,7 @@ export type SystemConfigJobDto = { smartSearch: JobSettingsDto; thumbnailGeneration: JobSettingsDto; videoConversion: JobSettingsDto; + workflow: JobSettingsDto; }; export type SystemConfigLibraryScanDto = { cronExpression: string; @@ -1667,6 +1699,54 @@ export type CreateProfileImageResponseDto = { profileImagePath: string; userId: string; }; +export type WorkflowActionResponseDto = { + actionConfig: object | null; + actionId: string; + id: string; + order: number; + workflowId: string; +}; +export type WorkflowFilterResponseDto = { + filterConfig: object | null; + filterId: string; + id: string; + order: number; + workflowId: string; +}; +export type WorkflowResponseDto = { + actions: WorkflowActionResponseDto[]; + createdAt: string; + description: string; + enabled: boolean; + filters: WorkflowFilterResponseDto[]; + id: string; + name: string | null; + ownerId: string; + triggerType: TriggerType; +}; +export type WorkflowActionItemDto = { + actionConfig?: object; + actionId: string; +}; +export type WorkflowFilterItemDto = { + filterConfig?: object; + filterId: string; +}; +export type WorkflowCreateDto = { + actions: WorkflowActionItemDto[]; + description?: string; + enabled?: boolean; + filters: WorkflowFilterItemDto[]; + name: string; + triggerType: PluginTriggerType; +}; +export type WorkflowUpdateDto = { + actions?: WorkflowActionItemDto[]; + description?: string; + enabled?: boolean; + filters?: WorkflowFilterItemDto[]; + name?: string; +}; /** * List all activities */ @@ -3510,6 +3590,30 @@ export function getPersonThumbnail({ id }: { ...opts })); } +/** + * List all plugins + */ +export function getPlugins(opts?: Oazapfts.RequestOpts) { + return oazapfts.ok(oazapfts.fetchJson<{ + status: 200; + data: PluginResponseDto[]; + }>("/plugins", { + ...opts + })); +} +/** + * Retrieve a plugin + */ +export function getPlugin({ id }: { + id: string; +}, opts?: Oazapfts.RequestOpts) { + return oazapfts.ok(oazapfts.fetchJson<{ + status: 200; + data: PluginResponseDto; + }>(`/plugins/${encodeURIComponent(id)}`, { + ...opts + })); +} /** * Retrieve assets by city */ @@ -4824,6 +4928,72 @@ export function getUniqueOriginalPaths(opts?: Oazapfts.RequestOpts) { ...opts })); } +/** + * List all workflows + */ +export function getWorkflows(opts?: Oazapfts.RequestOpts) { + return oazapfts.ok(oazapfts.fetchJson<{ + status: 200; + data: WorkflowResponseDto[]; + }>("/workflows", { + ...opts + })); +} +/** + * Create a workflow + */ +export function createWorkflow({ workflowCreateDto }: { + workflowCreateDto: WorkflowCreateDto; +}, opts?: Oazapfts.RequestOpts) { + return oazapfts.ok(oazapfts.fetchJson<{ + status: 201; + data: WorkflowResponseDto; + }>("/workflows", oazapfts.json({ + ...opts, + method: "POST", + body: workflowCreateDto + }))); +} +/** + * Delete a workflow + */ +export function deleteWorkflow({ id }: { + id: string; +}, opts?: Oazapfts.RequestOpts) { + return oazapfts.ok(oazapfts.fetchText(`/workflows/${encodeURIComponent(id)}`, { + ...opts, + method: "DELETE" + })); +} +/** + * Retrieve a workflow + */ +export function getWorkflow({ id }: { + id: string; +}, opts?: Oazapfts.RequestOpts) { + return oazapfts.ok(oazapfts.fetchJson<{ + status: 200; + data: WorkflowResponseDto; + }>(`/workflows/${encodeURIComponent(id)}`, { + ...opts + })); +} +/** + * Update a workflow + */ +export function updateWorkflow({ id, workflowUpdateDto }: { + id: string; + workflowUpdateDto: WorkflowUpdateDto; +}, opts?: Oazapfts.RequestOpts) { + return oazapfts.ok(oazapfts.fetchJson<{ + status: 200; + data: WorkflowResponseDto; + }>(`/workflows/${encodeURIComponent(id)}`, oazapfts.json({ + ...opts, + method: "PUT", + body: workflowUpdateDto + }))); +} export enum ReactionLevel { Album = "album", Asset = "asset" @@ -4976,6 +5146,10 @@ export enum Permission { PinCodeCreate = "pinCode.create", PinCodeUpdate = "pinCode.update", PinCodeDelete = "pinCode.delete", + PluginCreate = "plugin.create", + PluginRead = "plugin.read", + PluginUpdate = "plugin.update", + PluginDelete = "plugin.delete", ServerAbout = "server.about", ServerApkLinks = "server.apkLinks", ServerStorage = "server.storage", @@ -5025,6 +5199,10 @@ export enum Permission { UserProfileImageRead = "userProfileImage.read", UserProfileImageUpdate = "userProfileImage.update", UserProfileImageDelete = "userProfileImage.delete", + WorkflowCreate = "workflow.create", + WorkflowRead = "workflow.read", + WorkflowUpdate = "workflow.update", + WorkflowDelete = "workflow.delete", AdminUserCreate = "adminUser.create", AdminUserRead = "adminUser.read", AdminUserUpdate = "adminUser.update", @@ -5083,7 +5261,8 @@ export enum QueueName { Library = "library", Notifications = "notifications", BackupDatabase = "backupDatabase", - Ocr = "ocr" + Ocr = "ocr", + Workflow = "workflow" } export enum QueueCommand { Start = "start", @@ -5104,6 +5283,11 @@ export enum PartnerDirection { SharedBy = "shared-by", SharedWith = "shared-with" } +export enum PluginContext { + Asset = "asset", + Album = "album", + Person = "person" +} export enum SearchSuggestionType { Country = "country", State = "state", @@ -5255,3 +5439,11 @@ export enum OAuthTokenEndpointAuthMethod { ClientSecretPost = "client_secret_post", ClientSecretBasic = "client_secret_basic" } +export enum TriggerType { + AssetCreate = "AssetCreate", + PersonRecognized = "PersonRecognized" +} +export enum PluginTriggerType { + AssetCreate = "AssetCreate", + PersonRecognized = "PersonRecognized" +} diff --git a/plugins/.gitignore b/plugins/.gitignore new file mode 100644 index 0000000000..76add878f8 --- /dev/null +++ b/plugins/.gitignore @@ -0,0 +1,2 @@ +node_modules +dist \ No newline at end of file diff --git a/plugins/LICENSE b/plugins/LICENSE new file mode 100644 index 0000000000..53f0fa6953 --- /dev/null +++ b/plugins/LICENSE @@ -0,0 +1,26 @@ +Copyright 2024, The Extism Authors. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/plugins/esbuild.js b/plugins/esbuild.js new file mode 100644 index 0000000000..04cb6e85aa --- /dev/null +++ b/plugins/esbuild.js @@ -0,0 +1,12 @@ +const esbuild = require('esbuild'); + +esbuild + .build({ + entryPoints: ['src/index.ts'], + outdir: 'dist', + bundle: true, + sourcemap: true, + minify: false, // might want to use true for production build + format: 'cjs', // needs to be CJS for now + target: ['es2020'] // don't go over es2020 because quickjs doesn't support it + }) \ No newline at end of file diff --git a/plugins/manifest.json b/plugins/manifest.json new file mode 100644 index 0000000000..1172530c1e --- /dev/null +++ b/plugins/manifest.json @@ -0,0 +1,127 @@ +{ + "name": "immich-core", + "version": "2.0.0", + "title": "Immich Core", + "description": "Core workflow capabilities for Immich", + "author": "Immich Team", + + "wasm": { + "path": "dist/plugin.wasm" + }, + + "filters": [ + { + "methodName": "filterFileName", + "title": "Filter by filename", + "description": "Filter assets by filename pattern using text matching or regular expressions", + "supportedContexts": ["asset"], + "schema": { + "type": "object", + "properties": { + "pattern": { + "type": "string", + "description": "Text or regex pattern to match against filename" + }, + "matchType": { + "type": "string", + "enum": ["contains", "regex", "exact"], + "default": "contains", + "description": "Type of pattern matching to perform" + }, + "caseSensitive": { + "type": "boolean", + "default": false, + "description": "Whether matching should be case-sensitive" + } + }, + "required": ["pattern"] + } + }, + { + "methodName": "filterFileType", + "title": "Filter by file type", + "description": "Filter assets by file type", + "supportedContexts": ["asset"], + "schema": { + "type": "object", + "properties": { + "fileTypes": { + "type": "array", + "items": { + "type": "string", + "enum": ["IMAGE", "VIDEO"] + }, + "description": "Allowed file types" + } + }, + "required": ["fileTypes"] + } + }, + { + "methodName": "filterPerson", + "title": "Filter by person", + "description": "Filter by detected person", + "supportedContexts": ["person"], + "schema": { + "type": "object", + "properties": { + "personIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of person to match" + }, + "matchAny": { + "type": "boolean", + "default": true, + "description": "Match any name (true) or require all names (false)" + } + }, + "required": ["personIds"] + } + } + ], + + "actions": [ + { + "methodName": "actionArchive", + "title": "Archive", + "description": "Move the asset to archive", + "supportedContexts": ["asset"], + "schema": {} + }, + { + "methodName": "actionFavorite", + "title": "Favorite", + "description": "Mark the asset as favorite or unfavorite", + "supportedContexts": ["asset"], + "schema": { + "type": "object", + "properties": { + "favorite": { + "type": "boolean", + "default": true, + "description": "Set favorite (true) or unfavorite (false)" + } + } + } + }, + { + "methodName": "actionAddToAlbum", + "title": "Add to Album", + "description": "Add the item to a specified album", + "supportedContexts": ["asset", "person"], + "schema": { + "type": "object", + "properties": { + "albumId": { + "type": "string", + "description": "Target album ID" + } + }, + "required": ["albumId"] + } + } + ] +} diff --git a/plugins/mise.toml b/plugins/mise.toml new file mode 100644 index 0000000000..c1001e574b --- /dev/null +++ b/plugins/mise.toml @@ -0,0 +1,11 @@ +[tools] +"github:extism/cli" = "1.6.3" +"github:webassembly/binaryen" = "version_124" +"github:extism/js-pdk" = "1.5.1" + +[tasks.install] +run = "pnpm install --frozen-lockfile" + +[tasks.build] +depends = ["install"] +run = "pnpm run build" diff --git a/plugins/package-lock.json b/plugins/package-lock.json new file mode 100644 index 0000000000..3b0f0b34cb --- /dev/null +++ b/plugins/package-lock.json @@ -0,0 +1,443 @@ +{ + "name": "js-pdk-template", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "js-pdk-template", + "version": "1.0.0", + "license": "BSD-3-Clause", + "devDependencies": { + "@extism/js-pdk": "^1.0.1", + "esbuild": "^0.19.6", + "typescript": "^5.3.2" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.19.12.tgz", + "integrity": "sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.12.tgz", + "integrity": "sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.12.tgz", + "integrity": "sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.12.tgz", + "integrity": "sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.12.tgz", + "integrity": "sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.12.tgz", + "integrity": "sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.12.tgz", + "integrity": "sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.12.tgz", + "integrity": "sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.12.tgz", + "integrity": "sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.12.tgz", + "integrity": "sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.12.tgz", + "integrity": "sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.12.tgz", + "integrity": "sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.12.tgz", + "integrity": "sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.12.tgz", + "integrity": "sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.12.tgz", + "integrity": "sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.12.tgz", + "integrity": "sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.12.tgz", + "integrity": "sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.12.tgz", + "integrity": "sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.12.tgz", + "integrity": "sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.12.tgz", + "integrity": "sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.12.tgz", + "integrity": "sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.12.tgz", + "integrity": "sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.12.tgz", + "integrity": "sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@extism/js-pdk": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@extism/js-pdk/-/js-pdk-1.0.1.tgz", + "integrity": "sha512-YJWfHGeOuJnQw4V8NPNHvbSr6S8iDd2Ga6VEukwlRP7tu62ozTxIgokYw8i+rajD/16zz/gK0KYARBpm2qPAmQ==", + "dev": true + }, + "node_modules/esbuild": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.12.tgz", + "integrity": "sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.19.12", + "@esbuild/android-arm": "0.19.12", + "@esbuild/android-arm64": "0.19.12", + "@esbuild/android-x64": "0.19.12", + "@esbuild/darwin-arm64": "0.19.12", + "@esbuild/darwin-x64": "0.19.12", + "@esbuild/freebsd-arm64": "0.19.12", + "@esbuild/freebsd-x64": "0.19.12", + "@esbuild/linux-arm": "0.19.12", + "@esbuild/linux-arm64": "0.19.12", + "@esbuild/linux-ia32": "0.19.12", + "@esbuild/linux-loong64": "0.19.12", + "@esbuild/linux-mips64el": "0.19.12", + "@esbuild/linux-ppc64": "0.19.12", + "@esbuild/linux-riscv64": "0.19.12", + "@esbuild/linux-s390x": "0.19.12", + "@esbuild/linux-x64": "0.19.12", + "@esbuild/netbsd-x64": "0.19.12", + "@esbuild/openbsd-x64": "0.19.12", + "@esbuild/sunos-x64": "0.19.12", + "@esbuild/win32-arm64": "0.19.12", + "@esbuild/win32-ia32": "0.19.12", + "@esbuild/win32-x64": "0.19.12" + } + }, + "node_modules/typescript": { + "version": "5.4.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.3.tgz", + "integrity": "sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + } + } +} diff --git a/plugins/package.json b/plugins/package.json new file mode 100644 index 0000000000..ab6b2f8435 --- /dev/null +++ b/plugins/package.json @@ -0,0 +1,19 @@ +{ + "name": "plugins", + "version": "1.0.0", + "description": "", + "main": "src/index.ts", + "scripts": { + "build": "pnpm build:tsc && pnpm build:wasm", + "build:tsc": "tsc --noEmit && node esbuild.js", + "build:wasm": "extism-js dist/index.js -i src/index.d.ts -o dist/plugin.wasm" + }, + "keywords": [], + "author": "", + "license": "AGPL-3.0", + "devDependencies": { + "@extism/js-pdk": "^1.0.1", + "esbuild": "^0.19.6", + "typescript": "^5.3.2" + } +} diff --git a/plugins/src/index.d.ts b/plugins/src/index.d.ts new file mode 100644 index 0000000000..7f805aafe6 --- /dev/null +++ b/plugins/src/index.d.ts @@ -0,0 +1,12 @@ +declare module 'main' { + export function filterFileName(): I32; + export function actionAddToAlbum(): I32; + export function actionArchive(): I32; +} + +declare module 'extism:host' { + interface user { + updateAsset(ptr: PTR): I32; + addAssetToAlbum(ptr: PTR): I32; + } +} diff --git a/plugins/src/index.ts b/plugins/src/index.ts new file mode 100644 index 0000000000..9566c02cd8 --- /dev/null +++ b/plugins/src/index.ts @@ -0,0 +1,71 @@ +const { updateAsset, addAssetToAlbum } = Host.getFunctions(); + +function parseInput() { + return JSON.parse(Host.inputString()); +} + +function returnOutput(output: any) { + Host.outputString(JSON.stringify(output)); + return 0; +} + +export function filterFileName() { + const input = parseInput(); + const { data, config } = input; + const { pattern, matchType = 'contains', caseSensitive = false } = config; + + const fileName = data.asset.originalFileName || data.asset.fileName || ''; + const searchName = caseSensitive ? fileName : fileName.toLowerCase(); + const searchPattern = caseSensitive ? pattern : pattern.toLowerCase(); + + let passed = false; + + if (matchType === 'exact') { + passed = searchName === searchPattern; + } else if (matchType === 'regex') { + const flags = caseSensitive ? '' : 'i'; + const regex = new RegExp(searchPattern, flags); + passed = regex.test(fileName); + } else { + // contains + passed = searchName.includes(searchPattern); + } + + return returnOutput({ passed }); +} + +export function actionAddToAlbum() { + const input = parseInput(); + const { authToken, config, data } = input; + const { albumId } = config; + + const ptr = Memory.fromString( + JSON.stringify({ + authToken, + assetId: data.asset.id, + albumId: albumId, + }) + ); + + addAssetToAlbum(ptr.offset); + ptr.free(); + + return returnOutput({ success: true }); +} + +export function actionArchive() { + const input = parseInput(); + const { authToken, data } = input; + const ptr = Memory.fromString( + JSON.stringify({ + authToken, + id: data.asset.id, + visibility: 'archive', + }) + ); + + updateAsset(ptr.offset); + ptr.free(); + + return returnOutput({ success: true }); +} diff --git a/plugins/tsconfig.json b/plugins/tsconfig.json new file mode 100644 index 0000000000..86c9e766bf --- /dev/null +++ b/plugins/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "target": "es2020", // Specify ECMAScript target version + "module": "commonjs", // Specify module code generation + "lib": [ + "es2020" + ], // Specify a list of library files to be included in the compilation + "types": [ + "@extism/js-pdk", + "./src/index.d.ts" + ], // Specify a list of type definition files to be included in the compilation + "strict": true, // Enable all strict type-checking options + "esModuleInterop": true, // Enables compatibility with Babel-style module imports + "skipLibCheck": true, // Skip type checking of declaration files + "allowJs": true, // Allow JavaScript files to be compiled + "noEmit": true // Do not emit outputs (no .js or .d.ts files) + }, + "include": [ + "src/**/*.ts" // Include all TypeScript files in src directory + ], + "exclude": [ + "node_modules" // Exclude the node_modules directory + ] +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 81ad7fcd3c..c0e4b5ea78 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -299,8 +299,23 @@ importers: specifier: ^5.3.3 version: 5.9.3 + plugins: + devDependencies: + '@extism/js-pdk': + specifier: ^1.0.1 + version: 1.1.1 + esbuild: + specifier: ^0.19.6 + version: 0.19.12 + typescript: + specifier: ^5.3.2 + version: 5.9.3 + server: dependencies: + '@extism/extism': + specifier: 2.0.0-rc13 + version: 2.0.0-rc13 '@nestjs/bullmq': specifier: ^11.0.1 version: 11.0.4(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)(bullmq@5.62.1) @@ -367,6 +382,9 @@ importers: '@socket.io/redis-adapter': specifier: ^8.3.0 version: 8.3.0(socket.io-adapter@2.5.5) + ajv: + specifier: ^8.17.1 + version: 8.17.1 archiver: specifier: ^7.0.0 version: 7.0.1 @@ -430,6 +448,9 @@ importers: js-yaml: specifier: ^4.1.0 version: 4.1.0 + jsonwebtoken: + specifier: ^9.0.2 + version: 9.0.2 kysely: specifier: 0.28.2 version: 0.28.2 @@ -569,6 +590,9 @@ importers: '@types/js-yaml': specifier: ^4.0.9 version: 4.0.9 + '@types/jsonwebtoken': + specifier: ^9.0.10 + version: 9.0.10 '@types/lodash': specifier: ^4.14.197 version: 4.17.20 @@ -2572,6 +2596,12 @@ packages: resolution: {integrity: sha512-sB5uyeq+dwCWyPi31B2gQlVlo+j5brPlWx4yZBrEaRo/nhdDE8Xke1gsGgtiBdaBTxuTkceLVuVt/pclrasb0A==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@extism/extism@2.0.0-rc13': + resolution: {integrity: sha512-iQ3mrPKOC0WMZ94fuJrKbJmMyz4LQ9Abf8gd4F5ShxKWa+cRKcVzk0EqRQsp5xXsQ2dO3zJTiA6eTc4Ihf7k+A==} + + '@extism/js-pdk@1.1.1': + resolution: {integrity: sha512-VZLn/dX0ttA1uKk2PZeR/FL3N+nA1S5Vc7E5gdjkR60LuUIwCZT9cYON245V4HowHlBA7YOegh0TLjkx+wNbrA==} + '@faker-js/faker@10.1.0': resolution: {integrity: sha512-C3mrr3b5dRVlKPJdfrAXS8+dq+rq8Qm5SNRazca0JKgw1HQERFmrVb0towvMmw5uu8hHKNiQasMaR/tydf3Zsg==} engines: {node: ^20.19.0 || ^22.13.0 || ^23.5.0 || >=24.0.0, npm: '>=10'} @@ -4590,6 +4620,9 @@ packages: '@types/json-schema@7.0.15': resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} + '@types/jsonwebtoken@9.0.10': + resolution: {integrity: sha512-asx5hIG9Qmf/1oStypjanR7iKTv0gXQ1Ov/jfrX6kS/EO0OFni8orbmGCn0672NHR3kXHwpAwR+B368ZGN/2rA==} + '@types/justified-layout@4.1.4': resolution: {integrity: sha512-q2ybP0u0NVj87oMnGZOGxY2iUN8ddr48zPOBHBdbOLpsMTA/keGj+93ou+OMCnJk0xewzlNIaVEkxM6VBD3E2w==} @@ -5364,6 +5397,9 @@ packages: resolution: {integrity: sha512-Db1SbgBS/fg/392AblrMJk97KggmvYhr4pB5ZIMTWtaivCPMWLkmb7m21cJvpvgK+J3nsU2CmmixNBZx4vFj/w==} engines: {node: '>=8.0.0'} + buffer-equal-constant-time@1.0.1: + resolution: {integrity: sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==} + buffer-from@1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} @@ -6294,6 +6330,9 @@ packages: eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} + ecdsa-sig-formatter@1.0.11: + resolution: {integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==} + ee-first@1.1.1: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} @@ -7717,12 +7756,22 @@ packages: jsonfile@6.2.0: resolution: {integrity: sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==} + jsonwebtoken@9.0.2: + resolution: {integrity: sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ==} + engines: {node: '>=12', npm: '>=6'} + just-compare@2.3.0: resolution: {integrity: sha512-6shoR7HDT+fzfL3gBahx1jZG3hWLrhPAf+l7nCwahDdT9XDtosB9kIF0ZrzUp5QY8dJWfQVr5rnsPqsbvflDzg==} justified-layout@4.1.0: resolution: {integrity: sha512-M5FimNMXgiOYerVRGsXZ2YK9YNCaTtwtYp7Hb2308U1Q9TXXHx5G0p08mcVR5O53qf8bWY4NJcPBxE6zuayXSg==} + jwa@1.4.2: + resolution: {integrity: sha512-eeH5JO+21J78qMvTIDdBXidBd6nG2kZjg5Ohz/1fpa28Z4CcsWUzJ1ZZyFq/3z3N17aZy+ZuBoHljASbL1WfOw==} + + jws@3.2.2: + resolution: {integrity: sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==} + kdbush@3.0.0: resolution: {integrity: sha512-hRkd6/XW4HTsA9vjVpY9tuXJYLSlelnkTmVFu4M9/7MIYQtFcHpbugAU7UbOfjOiVSVYl2fqgBuJ32JUmRo5Ew==} @@ -7922,15 +7971,36 @@ packages: lodash.defaults@4.2.0: resolution: {integrity: sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==} + lodash.includes@4.3.0: + resolution: {integrity: sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==} + lodash.isarguments@3.1.0: resolution: {integrity: sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg==} + lodash.isboolean@3.0.3: + resolution: {integrity: sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==} + + lodash.isinteger@4.0.4: + resolution: {integrity: sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==} + + lodash.isnumber@3.0.3: + resolution: {integrity: sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==} + + lodash.isplainobject@4.0.6: + resolution: {integrity: sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==} + + lodash.isstring@4.0.1: + resolution: {integrity: sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==} + lodash.memoize@4.1.2: resolution: {integrity: sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==} lodash.merge@4.6.2: resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} + lodash.once@4.1.1: + resolution: {integrity: sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==} + lodash.uniq@4.5.0: resolution: {integrity: sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==} @@ -11043,6 +11113,9 @@ packages: resolution: {integrity: sha512-oCwdVC7mTuWiPyjLUz/COz5TLk6wgp0RCsN+wHZ2Ekneac9w8uuV0njcbbie2ME+Vs+d6duwmYuR3HgQXs1fOg==} engines: {node: '>= 0.4'} + urlpattern-polyfill@8.0.2: + resolution: {integrity: sha512-Qp95D4TPJl1kC9SKigDcqgyM2VDVO4RiJc2d4qe5GrYm+zbIQCWWKAFaJNQ4BhdFeDGwBmAxqJBwWSJDb9T3BQ==} + use-sync-external-store@1.6.0: resolution: {integrity: sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==} peerDependencies: @@ -14170,6 +14243,12 @@ snapshots: '@eslint/core': 0.16.0 levn: 0.4.1 + '@extism/extism@2.0.0-rc13': {} + + '@extism/js-pdk@1.1.1': + dependencies: + urlpattern-polyfill: 8.0.2 + '@faker-js/faker@10.1.0': {} '@fig/complete-commander@3.2.0(commander@11.1.0)': @@ -16414,6 +16493,11 @@ snapshots: '@types/json-schema@7.0.15': {} + '@types/jsonwebtoken@9.0.10': + dependencies: + '@types/ms': 2.1.0 + '@types/node': 22.19.0 + '@types/justified-layout@4.1.4': {} '@types/keygrip@1.0.6': {} @@ -17389,6 +17473,8 @@ snapshots: buffer-crc32@1.0.0: {} + buffer-equal-constant-time@1.0.1: {} + buffer-from@1.1.2: {} buffer@5.7.1: @@ -18341,6 +18427,10 @@ snapshots: eastasianwidth@0.2.0: {} + ecdsa-sig-formatter@1.0.11: + dependencies: + safe-buffer: 5.2.1 + ee-first@1.1.1: {} electron-to-chromium@1.5.243: {} @@ -20155,10 +20245,34 @@ snapshots: optionalDependencies: graceful-fs: 4.2.11 + jsonwebtoken@9.0.2: + dependencies: + jws: 3.2.2 + lodash.includes: 4.3.0 + lodash.isboolean: 3.0.3 + lodash.isinteger: 4.0.4 + lodash.isnumber: 3.0.3 + lodash.isplainobject: 4.0.6 + lodash.isstring: 4.0.1 + lodash.once: 4.1.1 + ms: 2.1.3 + semver: 7.7.3 + just-compare@2.3.0: {} justified-layout@4.1.0: {} + jwa@1.4.2: + dependencies: + buffer-equal-constant-time: 1.0.1 + ecdsa-sig-formatter: 1.0.11 + safe-buffer: 5.2.1 + + jws@3.2.2: + dependencies: + jwa: 1.4.2 + safe-buffer: 5.2.1 + kdbush@3.0.0: {} kdbush@4.0.2: {} @@ -20323,12 +20437,26 @@ snapshots: lodash.defaults@4.2.0: {} + lodash.includes@4.3.0: {} + lodash.isarguments@3.1.0: {} + lodash.isboolean@3.0.3: {} + + lodash.isinteger@4.0.4: {} + + lodash.isnumber@3.0.3: {} + + lodash.isplainobject@4.0.6: {} + + lodash.isstring@4.0.1: {} + lodash.memoize@4.1.2: {} lodash.merge@4.6.2: {} + lodash.once@4.1.1: {} + lodash.uniq@4.5.0: {} lodash@4.17.21: {} @@ -24145,6 +24273,8 @@ snapshots: punycode: 1.4.1 qs: 6.14.0 + urlpattern-polyfill@8.0.2: {} + use-sync-external-store@1.6.0(react@18.3.1): dependencies: react: 18.3.1 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index db33e87a0e..d5629d2323 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -4,6 +4,7 @@ packages: - e2e - open-api/typescript-sdk - server + - plugins - web - .github ignoredBuiltDependencies: diff --git a/server/Dockerfile b/server/Dockerfile index 0fc4126926..0bb7fc6be5 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -48,6 +48,24 @@ RUN --mount=type=cache,id=pnpm-cli,target=/buildcache/pnpm-store \ pnpm --filter @immich/sdk --filter @immich/cli build && \ pnpm --filter @immich/cli --prod --no-optional deploy /output/cli-pruned +FROM builder AS plugins + +COPY --from=ghcr.io/jdx/mise:2025.11.3 /usr/local/bin/mise /usr/local/bin/mise + +WORKDIR /usr/src/app +COPY ./plugins/mise.toml ./plugins/ +ENV MISE_TRUSTED_CONFIG_PATHS=/usr/src/app/plugins/mise.toml +RUN mise install --cd plugins + +COPY ./plugins ./plugins/ +# Build plugins +RUN --mount=type=cache,id=pnpm-plugins,target=/buildcache/pnpm-store \ + --mount=type=bind,source=package.json,target=package.json \ + --mount=type=bind,source=.pnpmfile.cjs,target=.pnpmfile.cjs \ + --mount=type=bind,source=pnpm-lock.yaml,target=pnpm-lock.yaml \ + --mount=type=bind,source=pnpm-workspace.yaml,target=pnpm-workspace.yaml \ + cd plugins && mise run build + FROM ghcr.io/immich-app/base-server-prod:202511041104@sha256:57c0379977fd5521d83cdf661aecd1497c83a9a661ebafe0a5243a09fc1064cb WORKDIR /usr/src/app @@ -58,6 +76,8 @@ ENV NODE_ENV=production \ COPY --from=server /output/server-pruned ./server COPY --from=web /usr/src/app/web/build /build/www COPY --from=cli /output/cli-pruned ./cli +COPY --from=plugins /usr/src/app/plugins/dist /build/corePlugin/dist +COPY --from=plugins /usr/src/app/plugins/manifest.json /build/corePlugin/manifest.json RUN ln -s ../../cli/bin/immich server/bin/immich COPY LICENSE /licenses/LICENSE.txt COPY LICENSE /LICENSE diff --git a/server/package.json b/server/package.json index aa6ba671a5..a252a53b8a 100644 --- a/server/package.json +++ b/server/package.json @@ -34,6 +34,7 @@ "email:dev": "email dev -p 3050 --dir src/emails" }, "dependencies": { + "@extism/extism": "2.0.0-rc13", "@nestjs/bullmq": "^11.0.1", "@nestjs/common": "^11.0.4", "@nestjs/core": "^11.0.4", @@ -56,6 +57,7 @@ "@react-email/components": "^0.5.0", "@react-email/render": "^1.1.2", "@socket.io/redis-adapter": "^8.3.0", + "ajv": "^8.17.1", "archiver": "^7.0.0", "async-lock": "^1.4.0", "bcrypt": "^6.0.0", @@ -77,6 +79,7 @@ "i18n-iso-countries": "^7.6.0", "ioredis": "^5.8.2", "js-yaml": "^4.1.0", + "jsonwebtoken": "^9.0.2", "kysely": "0.28.2", "kysely-postgres-js": "^3.0.0", "lodash": "^4.17.21", @@ -124,6 +127,7 @@ "@types/cookie-parser": "^1.4.8", "@types/express": "^5.0.0", "@types/fluent-ffmpeg": "^2.1.21", + "@types/jsonwebtoken": "^9.0.10", "@types/js-yaml": "^4.0.9", "@types/lodash": "^4.14.197", "@types/luxon": "^3.6.2", diff --git a/server/src/config.ts b/server/src/config.ts index e81ad49621..c18acd79f8 100644 --- a/server/src/config.ts +++ b/server/src/config.ts @@ -235,6 +235,7 @@ export const defaults = Object.freeze({ [QueueName.VideoConversion]: { concurrency: 1 }, [QueueName.Notification]: { concurrency: 5 }, [QueueName.Ocr]: { concurrency: 1 }, + [QueueName.Workflow]: { concurrency: 5 }, }, logging: { enabled: true, diff --git a/server/src/constants.ts b/server/src/constants.ts index ddf8bc91d1..d624557c54 100644 --- a/server/src/constants.ts +++ b/server/src/constants.ts @@ -160,6 +160,8 @@ export const endpointTags: Record = { [ApiTag.Partners]: 'A partner is a link with another user that allows sharing of assets between two users.', [ApiTag.People]: 'A person is a collection of faces, which can be favorited and named. A person can also be merged into another person. People are automatically created via the face recognition job.', + [ApiTag.Plugins]: + 'A plugin is an installed module that makes filters and actions available for the workflow feature.', [ApiTag.Search]: 'Endpoints related to searching assets via text, smart search, optical character recognition (OCR), and other filters like person, album, and other metadata. Search endpoints usually support pagination and sorting.', [ApiTag.Server]: @@ -185,4 +187,6 @@ export const endpointTags: Record = { [ApiTag.Users]: 'Endpoints for viewing and updating the current users, including product key information, profile picture data, onboarding progress, and more.', [ApiTag.Views]: 'Endpoints for specialized views, such as the folder view.', + [ApiTag.Workflows]: + 'A workflow is a set of actions that run whenever a triggering event occurs. Workflows also can include filters to further limit execution.', }; diff --git a/server/src/controllers/index.ts b/server/src/controllers/index.ts index e3661ec794..c0c0461fb3 100644 --- a/server/src/controllers/index.ts +++ b/server/src/controllers/index.ts @@ -18,6 +18,7 @@ import { NotificationController } from 'src/controllers/notification.controller' import { OAuthController } from 'src/controllers/oauth.controller'; import { PartnerController } from 'src/controllers/partner.controller'; import { PersonController } from 'src/controllers/person.controller'; +import { PluginController } from 'src/controllers/plugin.controller'; import { SearchController } from 'src/controllers/search.controller'; import { ServerController } from 'src/controllers/server.controller'; import { SessionController } from 'src/controllers/session.controller'; @@ -32,6 +33,7 @@ import { TrashController } from 'src/controllers/trash.controller'; import { UserAdminController } from 'src/controllers/user-admin.controller'; import { UserController } from 'src/controllers/user.controller'; import { ViewController } from 'src/controllers/view.controller'; +import { WorkflowController } from 'src/controllers/workflow.controller'; export const controllers = [ ApiKeyController, @@ -54,6 +56,7 @@ export const controllers = [ OAuthController, PartnerController, PersonController, + PluginController, SearchController, ServerController, SessionController, @@ -68,4 +71,5 @@ export const controllers = [ UserAdminController, UserController, ViewController, + WorkflowController, ]; diff --git a/server/src/controllers/plugin.controller.ts b/server/src/controllers/plugin.controller.ts new file mode 100644 index 0000000000..a0a4d14b0b --- /dev/null +++ b/server/src/controllers/plugin.controller.ts @@ -0,0 +1,36 @@ +import { Controller, Get, Param } from '@nestjs/common'; +import { ApiTags } from '@nestjs/swagger'; +import { Endpoint, HistoryBuilder } from 'src/decorators'; +import { PluginResponseDto } from 'src/dtos/plugin.dto'; +import { Permission } from 'src/enum'; +import { Authenticated } from 'src/middleware/auth.guard'; +import { PluginService } from 'src/services/plugin.service'; +import { UUIDParamDto } from 'src/validation'; + +@ApiTags('Plugins') +@Controller('plugins') +export class PluginController { + constructor(private service: PluginService) {} + + @Get() + @Authenticated({ permission: Permission.PluginRead }) + @Endpoint({ + summary: 'List all plugins', + description: 'Retrieve a list of plugins available to the authenticated user.', + history: new HistoryBuilder().added('v2.3.0').alpha('v2.3.0'), + }) + getPlugins(): Promise { + return this.service.getAll(); + } + + @Get(':id') + @Authenticated({ permission: Permission.PluginRead }) + @Endpoint({ + summary: 'Retrieve a plugin', + description: 'Retrieve information about a specific plugin by its ID.', + history: new HistoryBuilder().added('v2.3.0').alpha('v2.3.0'), + }) + getPlugin(@Param() { id }: UUIDParamDto): Promise { + return this.service.get(id); + } +} diff --git a/server/src/controllers/workflow.controller.ts b/server/src/controllers/workflow.controller.ts new file mode 100644 index 0000000000..e07b6443f4 --- /dev/null +++ b/server/src/controllers/workflow.controller.ts @@ -0,0 +1,76 @@ +import { Body, Controller, Delete, Get, HttpCode, HttpStatus, Param, Post, Put } from '@nestjs/common'; +import { ApiTags } from '@nestjs/swagger'; +import { Endpoint, HistoryBuilder } from 'src/decorators'; +import { AuthDto } from 'src/dtos/auth.dto'; +import { WorkflowCreateDto, WorkflowResponseDto, WorkflowUpdateDto } from 'src/dtos/workflow.dto'; +import { Permission } from 'src/enum'; +import { Auth, Authenticated } from 'src/middleware/auth.guard'; +import { WorkflowService } from 'src/services/workflow.service'; +import { UUIDParamDto } from 'src/validation'; + +@ApiTags('Workflows') +@Controller('workflows') +export class WorkflowController { + constructor(private service: WorkflowService) {} + + @Post() + @Authenticated({ permission: Permission.WorkflowCreate }) + @Endpoint({ + summary: 'Create a workflow', + description: 'Create a new workflow, the workflow can also be created with empty filters and actions.', + history: new HistoryBuilder().added('v2.3.0').alpha('v2.3.0'), + }) + createWorkflow(@Auth() auth: AuthDto, @Body() dto: WorkflowCreateDto): Promise { + return this.service.create(auth, dto); + } + + @Get() + @Authenticated({ permission: Permission.WorkflowRead }) + @Endpoint({ + summary: 'List all workflows', + description: 'Retrieve a list of workflows available to the authenticated user.', + history: new HistoryBuilder().added('v2.3.0').alpha('v2.3.0'), + }) + getWorkflows(@Auth() auth: AuthDto): Promise { + return this.service.getAll(auth); + } + + @Get(':id') + @Authenticated({ permission: Permission.WorkflowRead }) + @Endpoint({ + summary: 'Retrieve a workflow', + description: 'Retrieve information about a specific workflow by its ID.', + history: new HistoryBuilder().added('v2.3.0').alpha('v2.3.0'), + }) + getWorkflow(@Auth() auth: AuthDto, @Param() { id }: UUIDParamDto): Promise { + return this.service.get(auth, id); + } + + @Put(':id') + @Authenticated({ permission: Permission.WorkflowUpdate }) + @Endpoint({ + summary: 'Update a workflow', + description: + 'Update the information of a specific workflow by its ID. This endpoint can be used to update the workflow name, description, trigger type, filters and actions order, etc.', + history: new HistoryBuilder().added('v2.3.0').alpha('v2.3.0'), + }) + updateWorkflow( + @Auth() auth: AuthDto, + @Param() { id }: UUIDParamDto, + @Body() dto: WorkflowUpdateDto, + ): Promise { + return this.service.update(auth, id, dto); + } + + @Delete(':id') + @Authenticated({ permission: Permission.WorkflowDelete }) + @HttpCode(HttpStatus.NO_CONTENT) + @Endpoint({ + summary: 'Delete a workflow', + description: 'Delete a workflow by its ID.', + history: new HistoryBuilder().added('v2.3.0').alpha('v2.3.0'), + }) + deleteWorkflow(@Auth() auth: AuthDto, @Param() { id }: UUIDParamDto): Promise { + return this.service.delete(auth, id); + } +} diff --git a/server/src/database.ts b/server/src/database.ts index b62cb70347..4aa69127ff 100644 --- a/server/src/database.ts +++ b/server/src/database.ts @@ -7,6 +7,8 @@ import { AssetVisibility, MemoryType, Permission, + PluginContext, + PluginTriggerType, SharedLinkType, SourceType, UserAvatarColor, @@ -14,7 +16,10 @@ import { } from 'src/enum'; import { AlbumTable } from 'src/schema/tables/album.table'; import { AssetExifTable } from 'src/schema/tables/asset-exif.table'; +import { PluginActionTable, PluginFilterTable, PluginTable } from 'src/schema/tables/plugin.table'; +import { WorkflowActionTable, WorkflowFilterTable, WorkflowTable } from 'src/schema/tables/workflow.table'; import { UserMetadataItem } from 'src/types'; +import type { ActionConfig, FilterConfig, JSONSchema } from 'src/types/plugin-schema.types'; export type AuthUser = { id: string; @@ -277,6 +282,45 @@ export type AssetFace = { updateId: string; }; +export type Plugin = Selectable; + +export type PluginFilter = Selectable & { + methodName: string; + title: string; + description: string; + supportedContexts: PluginContext[]; + schema: JSONSchema | null; +}; + +export type PluginAction = Selectable & { + methodName: string; + title: string; + description: string; + supportedContexts: PluginContext[]; + schema: JSONSchema | null; +}; + +export type Workflow = Selectable & { + triggerType: PluginTriggerType; + name: string | null; + description: string; + enabled: boolean; +}; + +export type WorkflowFilter = Selectable & { + workflowId: string; + filterId: string; + filterConfig: FilterConfig | null; + order: number; +}; + +export type WorkflowAction = Selectable & { + workflowId: string; + actionId: string; + actionConfig: ActionConfig | null; + order: number; +}; + const userColumns = ['id', 'name', 'email', 'avatarColor', 'profileImagePath', 'profileChangedAt'] as const; const userWithPrefixColumns = [ 'user2.id', @@ -418,4 +462,15 @@ export const columns = { 'asset_exif.state', 'asset_exif.timeZone', ], + plugin: [ + 'plugin.id as id', + 'plugin.name as name', + 'plugin.title as title', + 'plugin.description as description', + 'plugin.author as author', + 'plugin.version as version', + 'plugin.wasmPath as wasmPath', + 'plugin.createdAt as createdAt', + 'plugin.updatedAt as updatedAt', + ], } as const; diff --git a/server/src/dtos/env.dto.ts b/server/src/dtos/env.dto.ts index 3543d8dae9..2a9dd8b662 100644 --- a/server/src/dtos/env.dto.ts +++ b/server/src/dtos/env.dto.ts @@ -57,6 +57,13 @@ export class EnvDto { @Type(() => Number) IMMICH_MICROSERVICES_METRICS_PORT?: number; + @ValidateBoolean({ optional: true }) + IMMICH_PLUGINS_ENABLED?: boolean; + + @Optional() + @Matches(/^\//, { message: 'IMMICH_PLUGINS_INSTALL_FOLDER must be an absolute path' }) + IMMICH_PLUGINS_INSTALL_FOLDER?: string; + @IsInt() @Optional() @Type(() => Number) diff --git a/server/src/dtos/plugin-manifest.dto.ts b/server/src/dtos/plugin-manifest.dto.ts new file mode 100644 index 0000000000..fcb3ad4a22 --- /dev/null +++ b/server/src/dtos/plugin-manifest.dto.ts @@ -0,0 +1,110 @@ +import { Type } from 'class-transformer'; +import { + ArrayMinSize, + IsArray, + IsEnum, + IsNotEmpty, + IsObject, + IsOptional, + IsSemVer, + IsString, + Matches, + ValidateNested, +} from 'class-validator'; +import { PluginContext } from 'src/enum'; +import { JSONSchema } from 'src/types/plugin-schema.types'; +import { ValidateEnum } from 'src/validation'; + +class PluginManifestWasmDto { + @IsString() + @IsNotEmpty() + path!: string; +} + +class PluginManifestFilterDto { + @IsString() + @IsNotEmpty() + methodName!: string; + + @IsString() + @IsNotEmpty() + title!: string; + + @IsString() + @IsNotEmpty() + description!: string; + + @IsArray() + @ArrayMinSize(1) + @IsEnum(PluginContext, { each: true }) + supportedContexts!: PluginContext[]; + + @IsObject() + @IsOptional() + schema?: JSONSchema; +} + +class PluginManifestActionDto { + @IsString() + @IsNotEmpty() + methodName!: string; + + @IsString() + @IsNotEmpty() + title!: string; + + @IsString() + @IsNotEmpty() + description!: string; + + @IsArray() + @ArrayMinSize(1) + @ValidateEnum({ enum: PluginContext, name: 'PluginContext', each: true }) + supportedContexts!: PluginContext[]; + + @IsObject() + @IsOptional() + schema?: JSONSchema; +} + +export class PluginManifestDto { + @IsString() + @IsNotEmpty() + @Matches(/^[a-z0-9-]+[a-z0-9]$/, { + message: 'Plugin name must contain only lowercase letters, numbers, and hyphens, and cannot end with a hyphen', + }) + name!: string; + + @IsString() + @IsNotEmpty() + @IsSemVer() + version!: string; + + @IsString() + @IsNotEmpty() + title!: string; + + @IsString() + @IsNotEmpty() + description!: string; + + @IsString() + @IsNotEmpty() + author!: string; + + @ValidateNested() + @Type(() => PluginManifestWasmDto) + wasm!: PluginManifestWasmDto; + + @IsArray() + @ValidateNested({ each: true }) + @Type(() => PluginManifestFilterDto) + @IsOptional() + filters?: PluginManifestFilterDto[]; + + @IsArray() + @ValidateNested({ each: true }) + @Type(() => PluginManifestActionDto) + @IsOptional() + actions?: PluginManifestActionDto[]; +} diff --git a/server/src/dtos/plugin.dto.ts b/server/src/dtos/plugin.dto.ts new file mode 100644 index 0000000000..ce80eccd65 --- /dev/null +++ b/server/src/dtos/plugin.dto.ts @@ -0,0 +1,77 @@ +import { IsNotEmpty, IsString } from 'class-validator'; +import { PluginAction, PluginFilter } from 'src/database'; +import { PluginContext } from 'src/enum'; +import type { JSONSchema } from 'src/types/plugin-schema.types'; +import { ValidateEnum } from 'src/validation'; + +export class PluginResponseDto { + id!: string; + name!: string; + title!: string; + description!: string; + author!: string; + version!: string; + createdAt!: string; + updatedAt!: string; + filters!: PluginFilterResponseDto[]; + actions!: PluginActionResponseDto[]; +} + +export class PluginFilterResponseDto { + id!: string; + pluginId!: string; + methodName!: string; + title!: string; + description!: string; + + @ValidateEnum({ enum: PluginContext, name: 'PluginContext' }) + supportedContexts!: PluginContext[]; + schema!: JSONSchema | null; +} + +export class PluginActionResponseDto { + id!: string; + pluginId!: string; + methodName!: string; + title!: string; + description!: string; + + @ValidateEnum({ enum: PluginContext, name: 'PluginContext' }) + supportedContexts!: PluginContext[]; + schema!: JSONSchema | null; +} + +export class PluginInstallDto { + @IsString() + @IsNotEmpty() + manifestPath!: string; +} + +export type MapPlugin = { + id: string; + name: string; + title: string; + description: string; + author: string; + version: string; + wasmPath: string; + createdAt: Date; + updatedAt: Date; + filters: PluginFilter[]; + actions: PluginAction[]; +}; + +export function mapPlugin(plugin: MapPlugin): PluginResponseDto { + return { + id: plugin.id, + name: plugin.name, + title: plugin.title, + description: plugin.description, + author: plugin.author, + version: plugin.version, + createdAt: plugin.createdAt.toISOString(), + updatedAt: plugin.updatedAt.toISOString(), + filters: plugin.filters, + actions: plugin.actions, + }; +} diff --git a/server/src/dtos/queue.dto.ts b/server/src/dtos/queue.dto.ts index 1492e014d9..df00c5cfc2 100644 --- a/server/src/dtos/queue.dto.ts +++ b/server/src/dtos/queue.dto.ts @@ -91,4 +91,7 @@ export class QueuesResponseDto implements Record { @ApiProperty({ type: QueueResponseDto }) [QueueName.Ocr]!: QueueResponseDto; + + @ApiProperty({ type: QueueResponseDto }) + [QueueName.Workflow]!: QueueResponseDto; } diff --git a/server/src/dtos/system-config.dto.ts b/server/src/dtos/system-config.dto.ts index 6d36e2cc8a..c835073c31 100644 --- a/server/src/dtos/system-config.dto.ts +++ b/server/src/dtos/system-config.dto.ts @@ -224,6 +224,12 @@ class SystemConfigJobDto implements Record @IsObject() @Type(() => JobSettingsDto) [QueueName.Notification]!: JobSettingsDto; + + @ApiProperty({ type: JobSettingsDto }) + @ValidateNested() + @IsObject() + @Type(() => JobSettingsDto) + [QueueName.Workflow]!: JobSettingsDto; } class SystemConfigLibraryScanDto { diff --git a/server/src/dtos/workflow.dto.ts b/server/src/dtos/workflow.dto.ts new file mode 100644 index 0000000000..307440945d --- /dev/null +++ b/server/src/dtos/workflow.dto.ts @@ -0,0 +1,120 @@ +import { Type } from 'class-transformer'; +import { IsNotEmpty, IsObject, IsString, IsUUID, ValidateNested } from 'class-validator'; +import { WorkflowAction, WorkflowFilter } from 'src/database'; +import { PluginTriggerType } from 'src/enum'; +import type { ActionConfig, FilterConfig } from 'src/types/plugin-schema.types'; +import { Optional, ValidateBoolean, ValidateEnum } from 'src/validation'; + +export class WorkflowFilterItemDto { + @IsUUID() + filterId!: string; + + @IsObject() + @Optional() + filterConfig?: FilterConfig; +} + +export class WorkflowActionItemDto { + @IsUUID() + actionId!: string; + + @IsObject() + @Optional() + actionConfig?: ActionConfig; +} + +export class WorkflowCreateDto { + @ValidateEnum({ enum: PluginTriggerType, name: 'PluginTriggerType' }) + triggerType!: PluginTriggerType; + + @IsString() + @IsNotEmpty() + name!: string; + + @IsString() + @Optional() + description?: string; + + @ValidateBoolean({ optional: true }) + enabled?: boolean; + + @ValidateNested({ each: true }) + @Type(() => WorkflowFilterItemDto) + filters!: WorkflowFilterItemDto[]; + + @ValidateNested({ each: true }) + @Type(() => WorkflowActionItemDto) + actions!: WorkflowActionItemDto[]; +} + +export class WorkflowUpdateDto { + @IsString() + @IsNotEmpty() + @Optional() + name?: string; + + @IsString() + @Optional() + description?: string; + + @ValidateBoolean({ optional: true }) + enabled?: boolean; + + @ValidateNested({ each: true }) + @Type(() => WorkflowFilterItemDto) + @Optional() + filters?: WorkflowFilterItemDto[]; + + @ValidateNested({ each: true }) + @Type(() => WorkflowActionItemDto) + @Optional() + actions?: WorkflowActionItemDto[]; +} + +export class WorkflowResponseDto { + id!: string; + ownerId!: string; + triggerType!: PluginTriggerType; + name!: string | null; + description!: string; + createdAt!: string; + enabled!: boolean; + filters!: WorkflowFilterResponseDto[]; + actions!: WorkflowActionResponseDto[]; +} + +export class WorkflowFilterResponseDto { + id!: string; + workflowId!: string; + filterId!: string; + filterConfig!: FilterConfig | null; + order!: number; +} + +export class WorkflowActionResponseDto { + id!: string; + workflowId!: string; + actionId!: string; + actionConfig!: ActionConfig | null; + order!: number; +} + +export function mapWorkflowFilter(filter: WorkflowFilter): WorkflowFilterResponseDto { + return { + id: filter.id, + workflowId: filter.workflowId, + filterId: filter.filterId, + filterConfig: filter.filterConfig, + order: filter.order, + }; +} + +export function mapWorkflowAction(action: WorkflowAction): WorkflowActionResponseDto { + return { + id: action.id, + workflowId: action.workflowId, + actionId: action.actionId, + actionConfig: action.actionConfig, + order: action.order, + }; +} diff --git a/server/src/enum.ts b/server/src/enum.ts index f3814863b1..6055ee85bf 100644 --- a/server/src/enum.ts +++ b/server/src/enum.ts @@ -177,6 +177,11 @@ export enum Permission { PinCodeUpdate = 'pinCode.update', PinCodeDelete = 'pinCode.delete', + PluginCreate = 'plugin.create', + PluginRead = 'plugin.read', + PluginUpdate = 'plugin.update', + PluginDelete = 'plugin.delete', + ServerAbout = 'server.about', ServerApkLinks = 'server.apkLinks', ServerStorage = 'server.storage', @@ -240,6 +245,11 @@ export enum Permission { UserProfileImageUpdate = 'userProfileImage.update', UserProfileImageDelete = 'userProfileImage.delete', + WorkflowCreate = 'workflow.create', + WorkflowRead = 'workflow.read', + WorkflowUpdate = 'workflow.update', + WorkflowDelete = 'workflow.delete', + AdminUserCreate = 'adminUser.create', AdminUserRead = 'adminUser.read', AdminUserUpdate = 'adminUser.update', @@ -525,6 +535,7 @@ export enum QueueName { Notification = 'notifications', BackupDatabase = 'backupDatabase', Ocr = 'ocr', + Workflow = 'workflow', } export enum JobName { @@ -601,6 +612,9 @@ export enum JobName { // OCR OcrQueueAll = 'OcrQueueAll', Ocr = 'Ocr', + + // Workflow + WorkflowRun = 'WorkflowRun', } export enum QueueCommand { @@ -793,6 +807,7 @@ export enum ApiTag { NotificationsAdmin = 'Notifications (admin)', Partners = 'Partners', People = 'People', + Plugins = 'Plugins', Search = 'Search', Server = 'Server', Sessions = 'Sessions', @@ -807,4 +822,16 @@ export enum ApiTag { UsersAdmin = 'Users (admin)', Users = 'Users', Views = 'Views', + Workflows = 'Workflows', +} + +export enum PluginContext { + Asset = 'asset', + Album = 'album', + Person = 'person', +} + +export enum PluginTriggerType { + AssetCreate = 'AssetCreate', + PersonRecognized = 'PersonRecognized', } diff --git a/server/src/plugins.ts b/server/src/plugins.ts new file mode 100644 index 0000000000..0c69483696 --- /dev/null +++ b/server/src/plugins.ts @@ -0,0 +1,37 @@ +import { PluginContext, PluginTriggerType } from 'src/enum'; +import { JSONSchema } from 'src/types/plugin-schema.types'; + +export type PluginTrigger = { + name: string; + type: PluginTriggerType; + description: string; + context: PluginContext; + schema: JSONSchema | null; +}; + +export const pluginTriggers: PluginTrigger[] = [ + { + name: 'Asset Uploaded', + type: PluginTriggerType.AssetCreate, + description: 'Triggered when a new asset is uploaded', + context: PluginContext.Asset, + schema: { + type: 'object', + properties: { + assetType: { + type: 'string', + description: 'Type of the asset', + default: 'ALL', + enum: ['Image', 'Video', 'All'], + }, + }, + }, + }, + { + name: 'Person Recognized', + type: PluginTriggerType.PersonRecognized, + description: 'Triggered when a person is detected in an asset', + context: PluginContext.Person, + schema: null, + }, +]; diff --git a/server/src/queries/access.repository.sql b/server/src/queries/access.repository.sql index 9ce6d845da..1239260dce 100644 --- a/server/src/queries/access.repository.sql +++ b/server/src/queries/access.repository.sql @@ -243,3 +243,12 @@ from where "partner"."sharedById" in ($1) and "partner"."sharedWithId" = $2 + +-- AccessRepository.workflow.checkOwnerAccess +select + "workflow"."id" +from + "workflow" +where + "workflow"."id" in ($1) + and "workflow"."ownerId" = $2 diff --git a/server/src/queries/plugin.repository.sql b/server/src/queries/plugin.repository.sql new file mode 100644 index 0000000000..82c203dafd --- /dev/null +++ b/server/src/queries/plugin.repository.sql @@ -0,0 +1,159 @@ +-- NOTE: This file is auto generated by ./sql-generator + +-- PluginRepository.getPlugin +select + "plugin"."id" as "id", + "plugin"."name" as "name", + "plugin"."title" as "title", + "plugin"."description" as "description", + "plugin"."author" as "author", + "plugin"."version" as "version", + "plugin"."wasmPath" as "wasmPath", + "plugin"."createdAt" as "createdAt", + "plugin"."updatedAt" as "updatedAt", + ( + select + coalesce(json_agg(agg), '[]') + from + ( + select + * + from + "plugin_filter" + where + "plugin_filter"."pluginId" = "plugin"."id" + ) as agg + ) as "filters", + ( + select + coalesce(json_agg(agg), '[]') + from + ( + select + * + from + "plugin_action" + where + "plugin_action"."pluginId" = "plugin"."id" + ) as agg + ) as "actions" +from + "plugin" +where + "plugin"."id" = $1 + +-- PluginRepository.getPluginByName +select + "plugin"."id" as "id", + "plugin"."name" as "name", + "plugin"."title" as "title", + "plugin"."description" as "description", + "plugin"."author" as "author", + "plugin"."version" as "version", + "plugin"."wasmPath" as "wasmPath", + "plugin"."createdAt" as "createdAt", + "plugin"."updatedAt" as "updatedAt", + ( + select + coalesce(json_agg(agg), '[]') + from + ( + select + * + from + "plugin_filter" + where + "plugin_filter"."pluginId" = "plugin"."id" + ) as agg + ) as "filters", + ( + select + coalesce(json_agg(agg), '[]') + from + ( + select + * + from + "plugin_action" + where + "plugin_action"."pluginId" = "plugin"."id" + ) as agg + ) as "actions" +from + "plugin" +where + "plugin"."name" = $1 + +-- PluginRepository.getAllPlugins +select + "plugin"."id" as "id", + "plugin"."name" as "name", + "plugin"."title" as "title", + "plugin"."description" as "description", + "plugin"."author" as "author", + "plugin"."version" as "version", + "plugin"."wasmPath" as "wasmPath", + "plugin"."createdAt" as "createdAt", + "plugin"."updatedAt" as "updatedAt", + ( + select + coalesce(json_agg(agg), '[]') + from + ( + select + * + from + "plugin_filter" + where + "plugin_filter"."pluginId" = "plugin"."id" + ) as agg + ) as "filters", + ( + select + coalesce(json_agg(agg), '[]') + from + ( + select + * + from + "plugin_action" + where + "plugin_action"."pluginId" = "plugin"."id" + ) as agg + ) as "actions" +from + "plugin" +order by + "plugin"."name" + +-- PluginRepository.getFilter +select + * +from + "plugin_filter" +where + "id" = $1 + +-- PluginRepository.getFiltersByPlugin +select + * +from + "plugin_filter" +where + "pluginId" = $1 + +-- PluginRepository.getAction +select + * +from + "plugin_action" +where + "id" = $1 + +-- PluginRepository.getActionsByPlugin +select + * +from + "plugin_action" +where + "pluginId" = $1 diff --git a/server/src/queries/workflow.repository.sql b/server/src/queries/workflow.repository.sql new file mode 100644 index 0000000000..3797c5bb06 --- /dev/null +++ b/server/src/queries/workflow.repository.sql @@ -0,0 +1,68 @@ +-- NOTE: This file is auto generated by ./sql-generator + +-- WorkflowRepository.getWorkflow +select + * +from + "workflow" +where + "id" = $1 + +-- WorkflowRepository.getWorkflowsByOwner +select + * +from + "workflow" +where + "ownerId" = $1 +order by + "name" + +-- WorkflowRepository.getWorkflowsByTrigger +select + * +from + "workflow" +where + "triggerType" = $1 + and "enabled" = $2 + +-- WorkflowRepository.getWorkflowByOwnerAndTrigger +select + * +from + "workflow" +where + "ownerId" = $1 + and "triggerType" = $2 + and "enabled" = $3 + +-- WorkflowRepository.deleteWorkflow +delete from "workflow" +where + "id" = $1 + +-- WorkflowRepository.getFilters +select + * +from + "workflow_filter" +where + "workflowId" = $1 +order by + "order" asc + +-- WorkflowRepository.deleteFiltersByWorkflow +delete from "workflow_filter" +where + "workflowId" = $1 + +-- WorkflowRepository.getActions +select + * +from + "workflow_action" +where + "workflowId" = $1 +order by + "order" asc diff --git a/server/src/repositories/access.repository.ts b/server/src/repositories/access.repository.ts index a801c046aa..533e74a311 100644 --- a/server/src/repositories/access.repository.ts +++ b/server/src/repositories/access.repository.ts @@ -462,6 +462,26 @@ class TagAccess { } } +class WorkflowAccess { + constructor(private db: Kysely) {} + + @GenerateSql({ params: [DummyValue.UUID, DummyValue.UUID_SET] }) + @ChunkedSet({ paramIndex: 1 }) + async checkOwnerAccess(userId: string, workflowIds: Set) { + if (workflowIds.size === 0) { + return new Set(); + } + + return this.db + .selectFrom('workflow') + .select('workflow.id') + .where('workflow.id', 'in', [...workflowIds]) + .where('workflow.ownerId', '=', userId) + .execute() + .then((workflows) => new Set(workflows.map((workflow) => workflow.id))); + } +} + @Injectable() export class AccessRepository { activity: ActivityAccess; @@ -476,6 +496,7 @@ export class AccessRepository { stack: StackAccess; tag: TagAccess; timeline: TimelineAccess; + workflow: WorkflowAccess; constructor(@InjectKysely() db: Kysely) { this.activity = new ActivityAccess(db); @@ -490,5 +511,6 @@ export class AccessRepository { this.stack = new StackAccess(db); this.tag = new TagAccess(db); this.timeline = new TimelineAccess(db); + this.workflow = new WorkflowAccess(db); } } diff --git a/server/src/repositories/config.repository.ts b/server/src/repositories/config.repository.ts index d5c279099c..05d4bd2ac3 100644 --- a/server/src/repositories/config.repository.ts +++ b/server/src/repositories/config.repository.ts @@ -85,6 +85,7 @@ export interface EnvData { root: string; indexHtml: string; }; + corePlugin: string; }; redis: RedisOptions; @@ -102,6 +103,11 @@ export interface EnvData { workers: ImmichWorker[]; + plugins: { + enabled: boolean; + installFolder?: string; + }; + noColor: boolean; nodeVersion?: string; } @@ -304,6 +310,7 @@ const getEnv = (): EnvData => { root: folders.web, indexHtml: join(folders.web, 'index.html'), }, + corePlugin: join(buildFolder, 'corePlugin'), }, storage: { @@ -319,6 +326,11 @@ const getEnv = (): EnvData => { workers, + plugins: { + enabled: !!dto.IMMICH_PLUGINS_ENABLED, + installFolder: dto.IMMICH_PLUGINS_INSTALL_FOLDER, + }, + noColor: !!dto.NO_COLOR, }; }; diff --git a/server/src/repositories/crypto.repository.ts b/server/src/repositories/crypto.repository.ts index c3136db456..bcd791ade2 100644 --- a/server/src/repositories/crypto.repository.ts +++ b/server/src/repositories/crypto.repository.ts @@ -1,5 +1,6 @@ import { Injectable } from '@nestjs/common'; import { compareSync, hash } from 'bcrypt'; +import jwt from 'jsonwebtoken'; import { createHash, createPublicKey, createVerify, randomBytes, randomUUID } from 'node:crypto'; import { createReadStream } from 'node:fs'; @@ -57,4 +58,12 @@ export class CryptoRepository { randomBytesAsText(bytes: number) { return randomBytes(bytes).toString('base64').replaceAll(/\W/g, ''); } + + signJwt(payload: string | object | Buffer, secret: string, options?: jwt.SignOptions): string { + return jwt.sign(payload, secret, { algorithm: 'HS256', ...options }); + } + + verifyJwt(token: string, secret: string): T { + return jwt.verify(token, secret, { algorithms: ['HS256'] }) as T; + } } diff --git a/server/src/repositories/event.repository.ts b/server/src/repositories/event.repository.ts index c3e6cd20cf..80d411c5ae 100644 --- a/server/src/repositories/event.repository.ts +++ b/server/src/repositories/event.repository.ts @@ -4,6 +4,7 @@ import { ClassConstructor } from 'class-transformer'; import _ from 'lodash'; import { Socket } from 'socket.io'; import { SystemConfig } from 'src/config'; +import { Asset } from 'src/database'; import { EventConfig } from 'src/decorators'; import { AuthDto } from 'src/dtos/auth.dto'; import { ImmichWorker, JobStatus, MetadataKey, QueueName, UserAvatarColor, UserStatus } from 'src/enum'; @@ -41,6 +42,7 @@ type EventMap = { AlbumInvite: [{ id: string; userId: string }]; // asset events + AssetCreate: [{ asset: Asset }]; AssetTag: [{ assetId: string }]; AssetUntag: [{ assetId: string }]; AssetHide: [{ assetId: string; userId: string }]; diff --git a/server/src/repositories/index.ts b/server/src/repositories/index.ts index cf65cfcb2a..c69536a327 100644 --- a/server/src/repositories/index.ts +++ b/server/src/repositories/index.ts @@ -28,6 +28,7 @@ import { OAuthRepository } from 'src/repositories/oauth.repository'; import { OcrRepository } from 'src/repositories/ocr.repository'; import { PartnerRepository } from 'src/repositories/partner.repository'; import { PersonRepository } from 'src/repositories/person.repository'; +import { PluginRepository } from 'src/repositories/plugin.repository'; import { ProcessRepository } from 'src/repositories/process.repository'; import { SearchRepository } from 'src/repositories/search.repository'; import { ServerInfoRepository } from 'src/repositories/server-info.repository'; @@ -46,6 +47,7 @@ import { UserRepository } from 'src/repositories/user.repository'; import { VersionHistoryRepository } from 'src/repositories/version-history.repository'; import { ViewRepository } from 'src/repositories/view-repository'; import { WebsocketRepository } from 'src/repositories/websocket.repository'; +import { WorkflowRepository } from 'src/repositories/workflow.repository'; export const repositories = [ AccessRepository, @@ -78,6 +80,7 @@ export const repositories = [ OcrRepository, PartnerRepository, PersonRepository, + PluginRepository, ProcessRepository, SearchRepository, SessionRepository, @@ -96,4 +99,5 @@ export const repositories = [ ViewRepository, VersionHistoryRepository, WebsocketRepository, + WorkflowRepository, ]; diff --git a/server/src/repositories/plugin.repository.ts b/server/src/repositories/plugin.repository.ts new file mode 100644 index 0000000000..6217237947 --- /dev/null +++ b/server/src/repositories/plugin.repository.ts @@ -0,0 +1,176 @@ +import { Injectable } from '@nestjs/common'; +import { Kysely } from 'kysely'; +import { jsonArrayFrom } from 'kysely/helpers/postgres'; +import { InjectKysely } from 'nestjs-kysely'; +import { readdir } from 'node:fs/promises'; +import { columns } from 'src/database'; +import { DummyValue, GenerateSql } from 'src/decorators'; +import { PluginManifestDto } from 'src/dtos/plugin-manifest.dto'; +import { DB } from 'src/schema'; + +@Injectable() +export class PluginRepository { + constructor(@InjectKysely() private db: Kysely) {} + + /** + * Loads a plugin from a validated manifest file in a transaction. + * This ensures all plugin, filter, and action operations are atomic. + * @param manifest The validated plugin manifest + * @param basePath The base directory path where the plugin is located + */ + async loadPlugin(manifest: PluginManifestDto, basePath: string) { + return this.db.transaction().execute(async (tx) => { + // Upsert the plugin + const plugin = await tx + .insertInto('plugin') + .values({ + name: manifest.name, + title: manifest.title, + description: manifest.description, + author: manifest.author, + version: manifest.version, + wasmPath: `${basePath}/${manifest.wasm.path}`, + }) + .onConflict((oc) => + oc.column('name').doUpdateSet({ + title: manifest.title, + description: manifest.description, + author: manifest.author, + version: manifest.version, + wasmPath: `${basePath}/${manifest.wasm.path}`, + }), + ) + .returningAll() + .executeTakeFirstOrThrow(); + + const filters = manifest.filters + ? await tx + .insertInto('plugin_filter') + .values( + manifest.filters.map((filter) => ({ + pluginId: plugin.id, + methodName: filter.methodName, + title: filter.title, + description: filter.description, + supportedContexts: filter.supportedContexts, + schema: filter.schema, + })), + ) + .onConflict((oc) => + oc.column('methodName').doUpdateSet((eb) => ({ + pluginId: eb.ref('excluded.pluginId'), + title: eb.ref('excluded.title'), + description: eb.ref('excluded.description'), + supportedContexts: eb.ref('excluded.supportedContexts'), + schema: eb.ref('excluded.schema'), + })), + ) + .returningAll() + .execute() + : []; + + const actions = manifest.actions + ? await tx + .insertInto('plugin_action') + .values( + manifest.actions.map((action) => ({ + pluginId: plugin.id, + methodName: action.methodName, + title: action.title, + description: action.description, + supportedContexts: action.supportedContexts, + schema: action.schema, + })), + ) + .onConflict((oc) => + oc.column('methodName').doUpdateSet((eb) => ({ + pluginId: eb.ref('excluded.pluginId'), + title: eb.ref('excluded.title'), + description: eb.ref('excluded.description'), + supportedContexts: eb.ref('excluded.supportedContexts'), + schema: eb.ref('excluded.schema'), + })), + ) + .returningAll() + .execute() + : []; + + return { plugin, filters, actions }; + }); + } + + async readDirectory(path: string) { + return readdir(path, { withFileTypes: true }); + } + + @GenerateSql({ params: [DummyValue.UUID] }) + getPlugin(id: string) { + return this.db + .selectFrom('plugin') + .select((eb) => [ + ...columns.plugin, + jsonArrayFrom( + eb.selectFrom('plugin_filter').selectAll().whereRef('plugin_filter.pluginId', '=', 'plugin.id'), + ).as('filters'), + jsonArrayFrom( + eb.selectFrom('plugin_action').selectAll().whereRef('plugin_action.pluginId', '=', 'plugin.id'), + ).as('actions'), + ]) + .where('plugin.id', '=', id) + .executeTakeFirst(); + } + + @GenerateSql({ params: [DummyValue.STRING] }) + getPluginByName(name: string) { + return this.db + .selectFrom('plugin') + .select((eb) => [ + ...columns.plugin, + jsonArrayFrom( + eb.selectFrom('plugin_filter').selectAll().whereRef('plugin_filter.pluginId', '=', 'plugin.id'), + ).as('filters'), + jsonArrayFrom( + eb.selectFrom('plugin_action').selectAll().whereRef('plugin_action.pluginId', '=', 'plugin.id'), + ).as('actions'), + ]) + .where('plugin.name', '=', name) + .executeTakeFirst(); + } + + @GenerateSql() + getAllPlugins() { + return this.db + .selectFrom('plugin') + .select((eb) => [ + ...columns.plugin, + jsonArrayFrom( + eb.selectFrom('plugin_filter').selectAll().whereRef('plugin_filter.pluginId', '=', 'plugin.id'), + ).as('filters'), + jsonArrayFrom( + eb.selectFrom('plugin_action').selectAll().whereRef('plugin_action.pluginId', '=', 'plugin.id'), + ).as('actions'), + ]) + .orderBy('plugin.name') + .execute(); + } + + @GenerateSql({ params: [DummyValue.UUID] }) + getFilter(id: string) { + return this.db.selectFrom('plugin_filter').selectAll().where('id', '=', id).executeTakeFirst(); + } + + @GenerateSql({ params: [DummyValue.UUID] }) + getFiltersByPlugin(pluginId: string) { + return this.db.selectFrom('plugin_filter').selectAll().where('pluginId', '=', pluginId).execute(); + } + + @GenerateSql({ params: [DummyValue.UUID] }) + getAction(id: string) { + return this.db.selectFrom('plugin_action').selectAll().where('id', '=', id).executeTakeFirst(); + } + + @GenerateSql({ params: [DummyValue.UUID] }) + getActionsByPlugin(pluginId: string) { + return this.db.selectFrom('plugin_action').selectAll().where('pluginId', '=', pluginId).execute(); + } +} diff --git a/server/src/repositories/storage.repository.ts b/server/src/repositories/storage.repository.ts index 50f44d9f67..e901273b57 100644 --- a/server/src/repositories/storage.repository.ts +++ b/server/src/repositories/storage.repository.ts @@ -113,6 +113,10 @@ export class StorageRepository { } } + async readTextFile(filepath: string): Promise { + return fs.readFile(filepath, 'utf8'); + } + async checkFileExists(filepath: string, mode = constants.F_OK): Promise { try { await fs.access(filepath, mode); diff --git a/server/src/repositories/workflow.repository.ts b/server/src/repositories/workflow.repository.ts new file mode 100644 index 0000000000..4ae657cfbf --- /dev/null +++ b/server/src/repositories/workflow.repository.ts @@ -0,0 +1,139 @@ +import { Injectable } from '@nestjs/common'; +import { Insertable, Kysely, Updateable } from 'kysely'; +import { InjectKysely } from 'nestjs-kysely'; +import { DummyValue, GenerateSql } from 'src/decorators'; +import { PluginTriggerType } from 'src/enum'; +import { DB } from 'src/schema'; +import { WorkflowActionTable, WorkflowFilterTable, WorkflowTable } from 'src/schema/tables/workflow.table'; + +@Injectable() +export class WorkflowRepository { + constructor(@InjectKysely() private db: Kysely) {} + + @GenerateSql({ params: [DummyValue.UUID] }) + getWorkflow(id: string) { + return this.db.selectFrom('workflow').selectAll().where('id', '=', id).executeTakeFirst(); + } + + @GenerateSql({ params: [DummyValue.UUID] }) + getWorkflowsByOwner(ownerId: string) { + return this.db.selectFrom('workflow').selectAll().where('ownerId', '=', ownerId).orderBy('name').execute(); + } + + @GenerateSql({ params: [PluginTriggerType.AssetCreate] }) + getWorkflowsByTrigger(type: PluginTriggerType) { + return this.db + .selectFrom('workflow') + .selectAll() + .where('triggerType', '=', type) + .where('enabled', '=', true) + .execute(); + } + + @GenerateSql({ params: [DummyValue.UUID, PluginTriggerType.AssetCreate] }) + getWorkflowByOwnerAndTrigger(ownerId: string, type: PluginTriggerType) { + return this.db + .selectFrom('workflow') + .selectAll() + .where('ownerId', '=', ownerId) + .where('triggerType', '=', type) + .where('enabled', '=', true) + .execute(); + } + + async createWorkflow( + workflow: Insertable, + filters: Insertable[], + actions: Insertable[], + ) { + return await this.db.transaction().execute(async (tx) => { + const createdWorkflow = await tx.insertInto('workflow').values(workflow).returningAll().executeTakeFirstOrThrow(); + + if (filters.length > 0) { + const newFilters = filters.map((filter) => ({ + ...filter, + workflowId: createdWorkflow.id, + })); + + await tx.insertInto('workflow_filter').values(newFilters).execute(); + } + + if (actions.length > 0) { + const newActions = actions.map((action) => ({ + ...action, + workflowId: createdWorkflow.id, + })); + await tx.insertInto('workflow_action').values(newActions).execute(); + } + + return createdWorkflow; + }); + } + + async updateWorkflow( + id: string, + workflow: Updateable, + filters: Insertable[] | undefined, + actions: Insertable[] | undefined, + ) { + return await this.db.transaction().execute(async (trx) => { + if (Object.keys(workflow).length > 0) { + await trx.updateTable('workflow').set(workflow).where('id', '=', id).execute(); + } + + if (filters !== undefined) { + await trx.deleteFrom('workflow_filter').where('workflowId', '=', id).execute(); + if (filters.length > 0) { + const filtersWithWorkflowId = filters.map((filter) => ({ + ...filter, + workflowId: id, + })); + await trx.insertInto('workflow_filter').values(filtersWithWorkflowId).execute(); + } + } + + if (actions !== undefined) { + await trx.deleteFrom('workflow_action').where('workflowId', '=', id).execute(); + if (actions.length > 0) { + const actionsWithWorkflowId = actions.map((action) => ({ + ...action, + workflowId: id, + })); + await trx.insertInto('workflow_action').values(actionsWithWorkflowId).execute(); + } + } + + return await trx.selectFrom('workflow').selectAll().where('id', '=', id).executeTakeFirstOrThrow(); + }); + } + + @GenerateSql({ params: [DummyValue.UUID] }) + async deleteWorkflow(id: string) { + await this.db.deleteFrom('workflow').where('id', '=', id).execute(); + } + + @GenerateSql({ params: [DummyValue.UUID] }) + getFilters(workflowId: string) { + return this.db + .selectFrom('workflow_filter') + .selectAll() + .where('workflowId', '=', workflowId) + .orderBy('order', 'asc') + .execute(); + } + + @GenerateSql({ params: [DummyValue.UUID] }) + async deleteFiltersByWorkflow(workflowId: string) { + await this.db.deleteFrom('workflow_filter').where('workflowId', '=', workflowId).execute(); + } + + @GenerateSql({ params: [DummyValue.UUID] }) + getActions(workflowId: string) { + return this.db + .selectFrom('workflow_action') + .selectAll() + .where('workflowId', '=', workflowId) + .orderBy('order', 'asc') + .execute(); + } +} diff --git a/server/src/schema/index.ts b/server/src/schema/index.ts index 7f4bdbeed3..9e206826e6 100644 --- a/server/src/schema/index.ts +++ b/server/src/schema/index.ts @@ -53,6 +53,7 @@ import { PartnerAuditTable } from 'src/schema/tables/partner-audit.table'; import { PartnerTable } from 'src/schema/tables/partner.table'; import { PersonAuditTable } from 'src/schema/tables/person-audit.table'; import { PersonTable } from 'src/schema/tables/person.table'; +import { PluginActionTable, PluginFilterTable, PluginTable } from 'src/schema/tables/plugin.table'; import { SessionTable } from 'src/schema/tables/session.table'; import { SharedLinkAssetTable } from 'src/schema/tables/shared-link-asset.table'; import { SharedLinkTable } from 'src/schema/tables/shared-link.table'; @@ -69,6 +70,7 @@ import { UserMetadataAuditTable } from 'src/schema/tables/user-metadata-audit.ta import { UserMetadataTable } from 'src/schema/tables/user-metadata.table'; import { UserTable } from 'src/schema/tables/user.table'; import { VersionHistoryTable } from 'src/schema/tables/version-history.table'; +import { WorkflowActionTable, WorkflowFilterTable, WorkflowTable } from 'src/schema/tables/workflow.table'; import { Database, Extensions, Generated, Int8 } from 'src/sql-tools'; @Extensions(['uuid-ossp', 'unaccent', 'cube', 'earthdistance', 'pg_trgm', 'plpgsql']) @@ -125,6 +127,12 @@ export class ImmichDatabase { UserMetadataAuditTable, UserTable, VersionHistoryTable, + PluginTable, + PluginFilterTable, + PluginActionTable, + WorkflowTable, + WorkflowFilterTable, + WorkflowActionTable, ]; functions = [ @@ -231,4 +239,12 @@ export interface DB { user_metadata_audit: UserMetadataAuditTable; version_history: VersionHistoryTable; + + plugin: PluginTable; + plugin_filter: PluginFilterTable; + plugin_action: PluginActionTable; + + workflow: WorkflowTable; + workflow_filter: WorkflowFilterTable; + workflow_action: WorkflowActionTable; } diff --git a/server/src/schema/migrations/1762297277677-AddPluginAndWorkflowTables.ts b/server/src/schema/migrations/1762297277677-AddPluginAndWorkflowTables.ts new file mode 100644 index 0000000000..6dacc1056b --- /dev/null +++ b/server/src/schema/migrations/1762297277677-AddPluginAndWorkflowTables.ts @@ -0,0 +1,113 @@ +import { Kysely, sql } from 'kysely'; + +export async function up(db: Kysely): Promise { + await sql`CREATE TABLE "plugin" ( + "id" uuid NOT NULL DEFAULT uuid_generate_v4(), + "name" character varying NOT NULL, + "title" character varying NOT NULL, + "description" character varying NOT NULL, + "author" character varying NOT NULL, + "version" character varying NOT NULL, + "wasmPath" character varying NOT NULL, + "createdAt" timestamp with time zone NOT NULL DEFAULT now(), + "updatedAt" timestamp with time zone NOT NULL DEFAULT now(), + CONSTRAINT "plugin_name_uq" UNIQUE ("name"), + CONSTRAINT "plugin_pkey" PRIMARY KEY ("id") +);`.execute(db); + await sql`CREATE INDEX "plugin_name_idx" ON "plugin" ("name");`.execute(db); + await sql`CREATE TABLE "plugin_filter" ( + "id" uuid NOT NULL DEFAULT uuid_generate_v4(), + "pluginId" uuid NOT NULL, + "methodName" character varying NOT NULL, + "title" character varying NOT NULL, + "description" character varying NOT NULL, + "supportedContexts" character varying[] NOT NULL, + "schema" jsonb, + CONSTRAINT "plugin_filter_pluginId_fkey" FOREIGN KEY ("pluginId") REFERENCES "plugin" ("id") ON UPDATE CASCADE ON DELETE CASCADE, + CONSTRAINT "plugin_filter_methodName_uq" UNIQUE ("methodName"), + CONSTRAINT "plugin_filter_pkey" PRIMARY KEY ("id") +);`.execute(db); + await sql`CREATE INDEX "plugin_filter_supportedContexts_idx" ON "plugin_filter" USING gin ("supportedContexts");`.execute( + db, + ); + await sql`CREATE INDEX "plugin_filter_pluginId_idx" ON "plugin_filter" ("pluginId");`.execute(db); + await sql`CREATE INDEX "plugin_filter_methodName_idx" ON "plugin_filter" ("methodName");`.execute(db); + await sql`CREATE TABLE "plugin_action" ( + "id" uuid NOT NULL DEFAULT uuid_generate_v4(), + "pluginId" uuid NOT NULL, + "methodName" character varying NOT NULL, + "title" character varying NOT NULL, + "description" character varying NOT NULL, + "supportedContexts" character varying[] NOT NULL, + "schema" jsonb, + CONSTRAINT "plugin_action_pluginId_fkey" FOREIGN KEY ("pluginId") REFERENCES "plugin" ("id") ON UPDATE CASCADE ON DELETE CASCADE, + CONSTRAINT "plugin_action_methodName_uq" UNIQUE ("methodName"), + CONSTRAINT "plugin_action_pkey" PRIMARY KEY ("id") +);`.execute(db); + await sql`CREATE INDEX "plugin_action_supportedContexts_idx" ON "plugin_action" USING gin ("supportedContexts");`.execute( + db, + ); + await sql`CREATE INDEX "plugin_action_pluginId_idx" ON "plugin_action" ("pluginId");`.execute(db); + await sql`CREATE INDEX "plugin_action_methodName_idx" ON "plugin_action" ("methodName");`.execute(db); + await sql`CREATE TABLE "workflow" ( + "id" uuid NOT NULL DEFAULT uuid_generate_v4(), + "ownerId" uuid NOT NULL, + "triggerType" character varying NOT NULL, + "name" character varying, + "description" character varying NOT NULL, + "createdAt" timestamp with time zone NOT NULL DEFAULT now(), + "enabled" boolean NOT NULL DEFAULT true, + CONSTRAINT "workflow_ownerId_fkey" FOREIGN KEY ("ownerId") REFERENCES "user" ("id") ON UPDATE CASCADE ON DELETE CASCADE, + CONSTRAINT "workflow_pkey" PRIMARY KEY ("id") +);`.execute(db); + await sql`CREATE INDEX "workflow_ownerId_idx" ON "workflow" ("ownerId");`.execute(db); + await sql`CREATE TABLE "workflow_filter" ( + "id" uuid NOT NULL DEFAULT uuid_generate_v4(), + "workflowId" uuid NOT NULL, + "filterId" uuid NOT NULL, + "filterConfig" jsonb, + "order" integer NOT NULL, + CONSTRAINT "workflow_filter_workflowId_fkey" FOREIGN KEY ("workflowId") REFERENCES "workflow" ("id") ON UPDATE CASCADE ON DELETE CASCADE, + CONSTRAINT "workflow_filter_filterId_fkey" FOREIGN KEY ("filterId") REFERENCES "plugin_filter" ("id") ON UPDATE CASCADE ON DELETE CASCADE, + CONSTRAINT "workflow_filter_pkey" PRIMARY KEY ("id") +);`.execute(db); + await sql`CREATE INDEX "workflow_filter_filterId_idx" ON "workflow_filter" ("filterId");`.execute(db); + await sql`CREATE INDEX "workflow_filter_workflowId_order_idx" ON "workflow_filter" ("workflowId", "order");`.execute( + db, + ); + await sql`CREATE INDEX "workflow_filter_workflowId_idx" ON "workflow_filter" ("workflowId");`.execute(db); + await sql`CREATE TABLE "workflow_action" ( + "id" uuid NOT NULL DEFAULT uuid_generate_v4(), + "workflowId" uuid NOT NULL, + "actionId" uuid NOT NULL, + "actionConfig" jsonb, + "order" integer NOT NULL, + CONSTRAINT "workflow_action_workflowId_fkey" FOREIGN KEY ("workflowId") REFERENCES "workflow" ("id") ON UPDATE CASCADE ON DELETE CASCADE, + CONSTRAINT "workflow_action_actionId_fkey" FOREIGN KEY ("actionId") REFERENCES "plugin_action" ("id") ON UPDATE CASCADE ON DELETE CASCADE, + CONSTRAINT "workflow_action_pkey" PRIMARY KEY ("id") +);`.execute(db); + await sql`CREATE INDEX "workflow_action_actionId_idx" ON "workflow_action" ("actionId");`.execute(db); + await sql`CREATE INDEX "workflow_action_workflowId_order_idx" ON "workflow_action" ("workflowId", "order");`.execute( + db, + ); + await sql`CREATE INDEX "workflow_action_workflowId_idx" ON "workflow_action" ("workflowId");`.execute(db); + await sql`INSERT INTO "migration_overrides" ("name", "value") VALUES ('index_plugin_filter_supportedContexts_idx', '{"type":"index","name":"plugin_filter_supportedContexts_idx","sql":"CREATE INDEX \\"plugin_filter_supportedContexts_idx\\" ON \\"plugin_filter\\" (\\"supportedContexts\\") USING gin;"}'::jsonb);`.execute( + db, + ); + await sql`INSERT INTO "migration_overrides" ("name", "value") VALUES ('index_plugin_action_supportedContexts_idx', '{"type":"index","name":"plugin_action_supportedContexts_idx","sql":"CREATE INDEX \\"plugin_action_supportedContexts_idx\\" ON \\"plugin_action\\" (\\"supportedContexts\\") USING gin;"}'::jsonb);`.execute( + db, + ); +} + +export async function down(db: Kysely): Promise { + await sql`DROP TABLE "workflow";`.execute(db); + await sql`DROP TABLE "workflow_filter";`.execute(db); + await sql`DROP TABLE "workflow_action";`.execute(db); + + await sql`DROP TABLE "plugin";`.execute(db); + await sql`DROP TABLE "plugin_filter";`.execute(db); + await sql`DROP TABLE "plugin_action";`.execute(db); + + await sql`DELETE FROM "migration_overrides" WHERE "name" = 'index_plugin_filter_supportedContexts_idx';`.execute(db); + await sql`DELETE FROM "migration_overrides" WHERE "name" = 'index_plugin_action_supportedContexts_idx';`.execute(db); +} diff --git a/server/src/schema/tables/plugin.table.ts b/server/src/schema/tables/plugin.table.ts new file mode 100644 index 0000000000..3de7ca63c9 --- /dev/null +++ b/server/src/schema/tables/plugin.table.ts @@ -0,0 +1,95 @@ +import { PluginContext } from 'src/enum'; +import { + Column, + CreateDateColumn, + ForeignKeyColumn, + Generated, + Index, + PrimaryGeneratedColumn, + Table, + Timestamp, + UpdateDateColumn, +} from 'src/sql-tools'; +import type { JSONSchema } from 'src/types/plugin-schema.types'; + +@Table('plugin') +export class PluginTable { + @PrimaryGeneratedColumn('uuid') + id!: Generated; + + @Column({ index: true, unique: true }) + name!: string; + + @Column() + title!: string; + + @Column() + description!: string; + + @Column() + author!: string; + + @Column() + version!: string; + + @Column() + wasmPath!: string; + + @CreateDateColumn() + createdAt!: Generated; + + @UpdateDateColumn() + updatedAt!: Generated; +} + +@Index({ columns: ['supportedContexts'], using: 'gin' }) +@Table('plugin_filter') +export class PluginFilterTable { + @PrimaryGeneratedColumn('uuid') + id!: Generated; + + @ForeignKeyColumn(() => PluginTable, { onDelete: 'CASCADE', onUpdate: 'CASCADE' }) + @Column({ index: true }) + pluginId!: string; + + @Column({ index: true, unique: true }) + methodName!: string; + + @Column() + title!: string; + + @Column() + description!: string; + + @Column({ type: 'character varying', array: true }) + supportedContexts!: Generated; + + @Column({ type: 'jsonb', nullable: true }) + schema!: JSONSchema | null; +} + +@Index({ columns: ['supportedContexts'], using: 'gin' }) +@Table('plugin_action') +export class PluginActionTable { + @PrimaryGeneratedColumn('uuid') + id!: Generated; + + @ForeignKeyColumn(() => PluginTable, { onDelete: 'CASCADE', onUpdate: 'CASCADE' }) + @Column({ index: true }) + pluginId!: string; + + @Column({ index: true, unique: true }) + methodName!: string; + + @Column() + title!: string; + + @Column() + description!: string; + + @Column({ type: 'character varying', array: true }) + supportedContexts!: Generated; + + @Column({ type: 'jsonb', nullable: true }) + schema!: JSONSchema | null; +} diff --git a/server/src/schema/tables/workflow.table.ts b/server/src/schema/tables/workflow.table.ts new file mode 100644 index 0000000000..8f7c9adb0d --- /dev/null +++ b/server/src/schema/tables/workflow.table.ts @@ -0,0 +1,78 @@ +import { PluginTriggerType } from 'src/enum'; +import { PluginActionTable, PluginFilterTable } from 'src/schema/tables/plugin.table'; +import { UserTable } from 'src/schema/tables/user.table'; +import { + Column, + CreateDateColumn, + ForeignKeyColumn, + Generated, + Index, + PrimaryGeneratedColumn, + Table, + Timestamp, +} from 'src/sql-tools'; +import type { ActionConfig, FilterConfig } from 'src/types/plugin-schema.types'; + +@Table('workflow') +export class WorkflowTable { + @PrimaryGeneratedColumn() + id!: Generated; + + @ForeignKeyColumn(() => UserTable, { onDelete: 'CASCADE', onUpdate: 'CASCADE', nullable: false }) + ownerId!: string; + + @Column() + triggerType!: PluginTriggerType; + + @Column({ nullable: true }) + name!: string | null; + + @Column() + description!: string; + + @CreateDateColumn() + createdAt!: Generated; + + @Column({ type: 'boolean', default: true }) + enabled!: boolean; +} + +@Index({ columns: ['workflowId', 'order'] }) +@Index({ columns: ['filterId'] }) +@Table('workflow_filter') +export class WorkflowFilterTable { + @PrimaryGeneratedColumn('uuid') + id!: Generated; + + @ForeignKeyColumn(() => WorkflowTable, { onDelete: 'CASCADE', onUpdate: 'CASCADE' }) + workflowId!: Generated; + + @ForeignKeyColumn(() => PluginFilterTable, { onDelete: 'CASCADE', onUpdate: 'CASCADE' }) + filterId!: string; + + @Column({ type: 'jsonb', nullable: true }) + filterConfig!: FilterConfig | null; + + @Column({ type: 'integer' }) + order!: number; +} + +@Index({ columns: ['workflowId', 'order'] }) +@Index({ columns: ['actionId'] }) +@Table('workflow_action') +export class WorkflowActionTable { + @PrimaryGeneratedColumn('uuid') + id!: Generated; + + @ForeignKeyColumn(() => WorkflowTable, { onDelete: 'CASCADE', onUpdate: 'CASCADE' }) + workflowId!: Generated; + + @ForeignKeyColumn(() => PluginActionTable, { onDelete: 'CASCADE', onUpdate: 'CASCADE' }) + actionId!: string; + + @Column({ type: 'jsonb', nullable: true }) + actionConfig!: ActionConfig | null; + + @Column({ type: 'integer' }) + order!: number; +} diff --git a/server/src/services/asset-media.service.ts b/server/src/services/asset-media.service.ts index 8cf1ef331d..4db60c349f 100644 --- a/server/src/services/asset-media.service.ts +++ b/server/src/services/asset-media.service.ts @@ -426,6 +426,9 @@ export class AssetMediaService extends BaseService { } await this.storageRepository.utimes(file.originalPath, new Date(), new Date(dto.fileModifiedAt)); await this.assetRepository.upsertExif({ assetId: asset.id, fileSizeInByte: file.size }); + + await this.eventRepository.emit('AssetCreate', { asset }); + await this.jobRepository.queue({ name: JobName.AssetExtractMetadata, data: { id: asset.id, source: 'upload' } }); return asset; diff --git a/server/src/services/base.service.ts b/server/src/services/base.service.ts index 51041c1b1a..2c6d07b635 100644 --- a/server/src/services/base.service.ts +++ b/server/src/services/base.service.ts @@ -35,6 +35,7 @@ import { OAuthRepository } from 'src/repositories/oauth.repository'; import { OcrRepository } from 'src/repositories/ocr.repository'; import { PartnerRepository } from 'src/repositories/partner.repository'; import { PersonRepository } from 'src/repositories/person.repository'; +import { PluginRepository } from 'src/repositories/plugin.repository'; import { ProcessRepository } from 'src/repositories/process.repository'; import { SearchRepository } from 'src/repositories/search.repository'; import { ServerInfoRepository } from 'src/repositories/server-info.repository'; @@ -53,6 +54,7 @@ import { UserRepository } from 'src/repositories/user.repository'; import { VersionHistoryRepository } from 'src/repositories/version-history.repository'; import { ViewRepository } from 'src/repositories/view-repository'; import { WebsocketRepository } from 'src/repositories/websocket.repository'; +import { WorkflowRepository } from 'src/repositories/workflow.repository'; import { UserTable } from 'src/schema/tables/user.table'; import { AccessRequest, checkAccess, requireAccess } from 'src/utils/access'; import { getConfig, updateConfig } from 'src/utils/config'; @@ -88,6 +90,7 @@ export const BASE_SERVICE_DEPENDENCIES = [ OcrRepository, PartnerRepository, PersonRepository, + PluginRepository, ProcessRepository, SearchRepository, ServerInfoRepository, @@ -105,6 +108,8 @@ export const BASE_SERVICE_DEPENDENCIES = [ UserRepository, VersionHistoryRepository, ViewRepository, + WebsocketRepository, + WorkflowRepository, ]; @Injectable() @@ -142,6 +147,7 @@ export class BaseService { protected ocrRepository: OcrRepository, protected partnerRepository: PartnerRepository, protected personRepository: PersonRepository, + protected pluginRepository: PluginRepository, protected processRepository: ProcessRepository, protected searchRepository: SearchRepository, protected serverInfoRepository: ServerInfoRepository, @@ -160,6 +166,7 @@ export class BaseService { protected versionRepository: VersionHistoryRepository, protected viewRepository: ViewRepository, protected websocketRepository: WebsocketRepository, + protected workflowRepository: WorkflowRepository, ) { this.logger.setContext(this.constructor.name); this.storageCore = StorageCore.create( diff --git a/server/src/services/index.ts b/server/src/services/index.ts index 8862a5b37e..9d09bdaa53 100644 --- a/server/src/services/index.ts +++ b/server/src/services/index.ts @@ -23,6 +23,7 @@ import { NotificationService } from 'src/services/notification.service'; import { OcrService } from 'src/services/ocr.service'; import { PartnerService } from 'src/services/partner.service'; import { PersonService } from 'src/services/person.service'; +import { PluginService } from 'src/services/plugin.service'; import { QueueService } from 'src/services/queue.service'; import { SearchService } from 'src/services/search.service'; import { ServerService } from 'src/services/server.service'; @@ -43,6 +44,7 @@ import { UserAdminService } from 'src/services/user-admin.service'; import { UserService } from 'src/services/user.service'; import { VersionService } from 'src/services/version.service'; import { ViewService } from 'src/services/view.service'; +import { WorkflowService } from 'src/services/workflow.service'; export const services = [ ApiKeyService, @@ -70,6 +72,7 @@ export const services = [ OcrService, PartnerService, PersonService, + PluginService, QueueService, SearchService, ServerService, @@ -90,4 +93,5 @@ export const services = [ UserService, VersionService, ViewService, + WorkflowService, ]; diff --git a/server/src/services/plugin-host.functions.ts b/server/src/services/plugin-host.functions.ts new file mode 100644 index 0000000000..50b1052b54 --- /dev/null +++ b/server/src/services/plugin-host.functions.ts @@ -0,0 +1,120 @@ +import { CurrentPlugin } from '@extism/extism'; +import { UnauthorizedException } from '@nestjs/common'; +import { Updateable } from 'kysely'; +import { Permission } from 'src/enum'; +import { AccessRepository } from 'src/repositories/access.repository'; +import { AlbumRepository } from 'src/repositories/album.repository'; +import { AssetRepository } from 'src/repositories/asset.repository'; +import { CryptoRepository } from 'src/repositories/crypto.repository'; +import { LoggingRepository } from 'src/repositories/logging.repository'; +import { AssetTable } from 'src/schema/tables/asset.table'; +import { requireAccess } from 'src/utils/access'; + +/** + * Plugin host functions that are exposed to WASM plugins via Extism. + * These functions allow plugins to interact with the Immich system. + */ +export class PluginHostFunctions { + constructor( + private assetRepository: AssetRepository, + private albumRepository: AlbumRepository, + private accessRepository: AccessRepository, + private cryptoRepository: CryptoRepository, + private logger: LoggingRepository, + private pluginJwtSecret: string, + ) {} + + /** + * Creates Extism host function bindings for the plugin. + * These are the functions that WASM plugins can call. + */ + getHostFunctions() { + return { + 'extism:host/user': { + updateAsset: (cp: CurrentPlugin, offs: bigint) => this.handleUpdateAsset(cp, offs), + addAssetToAlbum: (cp: CurrentPlugin, offs: bigint) => this.handleAddAssetToAlbum(cp, offs), + }, + }; + } + + /** + * Host function wrapper for updateAsset. + * Reads the input from the plugin, parses it, and calls the actual update function. + */ + private async handleUpdateAsset(cp: CurrentPlugin, offs: bigint) { + const input = JSON.parse(cp.read(offs)!.text()); + await this.updateAsset(input); + } + + /** + * Host function wrapper for addAssetToAlbum. + * Reads the input from the plugin, parses it, and calls the actual add function. + */ + private async handleAddAssetToAlbum(cp: CurrentPlugin, offs: bigint) { + const input = JSON.parse(cp.read(offs)!.text()); + await this.addAssetToAlbum(input); + } + + /** + * Validates the JWT token and returns the auth context. + */ + private validateToken(authToken: string): { userId: string } { + try { + const auth = this.cryptoRepository.verifyJwt<{ userId: string }>(authToken, this.pluginJwtSecret); + if (!auth.userId) { + throw new UnauthorizedException('Invalid token: missing userId'); + } + return auth; + } catch (error) { + this.logger.error('Token validation failed:', error); + throw new UnauthorizedException('Invalid token'); + } + } + + /** + * Updates an asset with the given properties. + */ + async updateAsset(input: { authToken: string } & Updateable & { id: string }) { + const { authToken, id, ...assetData } = input; + + // Validate token + const auth = this.validateToken(authToken); + + // Check access to the asset + await requireAccess(this.accessRepository, { + auth: { user: { id: auth.userId } } as any, + permission: Permission.AssetUpdate, + ids: [id], + }); + + this.logger.log(`Updating asset ${id} -- ${JSON.stringify(assetData)}`); + await this.assetRepository.update({ id, ...assetData }); + } + + /** + * Adds an asset to an album. + */ + async addAssetToAlbum(input: { authToken: string; assetId: string; albumId: string }) { + const { authToken, assetId, albumId } = input; + + // Validate token + const auth = this.validateToken(authToken); + + // Check access to both the asset and the album + await requireAccess(this.accessRepository, { + auth: { user: { id: auth.userId } } as any, + permission: Permission.AssetRead, + ids: [assetId], + }); + + await requireAccess(this.accessRepository, { + auth: { user: { id: auth.userId } } as any, + permission: Permission.AlbumUpdate, + ids: [albumId], + }); + + this.logger.log(`Adding asset ${assetId} to album ${albumId}`); + await this.albumRepository.addAssetIds(albumId, [assetId]); + return 0; + } +} diff --git a/server/src/services/plugin.service.ts b/server/src/services/plugin.service.ts new file mode 100644 index 0000000000..28d1ac56ca --- /dev/null +++ b/server/src/services/plugin.service.ts @@ -0,0 +1,317 @@ +import { Plugin as ExtismPlugin, newPlugin } from '@extism/extism'; +import { BadRequestException, Injectable } from '@nestjs/common'; +import { plainToInstance } from 'class-transformer'; +import { validateOrReject } from 'class-validator'; +import { join } from 'node:path'; +import { Asset, WorkflowAction, WorkflowFilter } from 'src/database'; +import { OnEvent, OnJob } from 'src/decorators'; +import { PluginManifestDto } from 'src/dtos/plugin-manifest.dto'; +import { mapPlugin, PluginResponseDto } from 'src/dtos/plugin.dto'; +import { JobName, JobStatus, PluginTriggerType, QueueName } from 'src/enum'; +import { ArgOf } from 'src/repositories/event.repository'; +import { BaseService } from 'src/services/base.service'; +import { PluginHostFunctions } from 'src/services/plugin-host.functions'; +import { IWorkflowJob, JobItem, JobOf, WorkflowData } from 'src/types'; + +interface WorkflowContext { + authToken: string; + asset: Asset; +} + +interface PluginInput { + authToken: string; + config: T; + data: { + asset: Asset; + }; +} + +@Injectable() +export class PluginService extends BaseService { + private pluginJwtSecret!: string; + private loadedPlugins: Map = new Map(); + private hostFunctions!: PluginHostFunctions; + + @OnEvent({ name: 'AppBootstrap' }) + async onBootstrap() { + this.pluginJwtSecret = this.cryptoRepository.randomBytesAsText(32); + + await this.loadPluginsFromManifests(); + + this.hostFunctions = new PluginHostFunctions( + this.assetRepository, + this.albumRepository, + this.accessRepository, + this.cryptoRepository, + this.logger, + this.pluginJwtSecret, + ); + + await this.loadPlugins(); + } + + // + // CRUD operations for plugins + // + async getAll(): Promise { + const plugins = await this.pluginRepository.getAllPlugins(); + return plugins.map((plugin) => mapPlugin(plugin)); + } + + async get(id: string): Promise { + const plugin = await this.pluginRepository.getPlugin(id); + if (!plugin) { + throw new BadRequestException('Plugin not found'); + } + return mapPlugin(plugin); + } + + /////////////////////////////////////////// + // Plugin Loader + ////////////////////////////////////////// + async loadPluginsFromManifests(): Promise { + // Load core plugin + const { resourcePaths, plugins } = this.configRepository.getEnv(); + const coreManifestPath = `${resourcePaths.corePlugin}/manifest.json`; + + const coreManifest = await this.readAndValidateManifest(coreManifestPath); + await this.loadPluginToDatabase(coreManifest, resourcePaths.corePlugin); + + this.logger.log(`Successfully processed core plugin: ${coreManifest.name} (version ${coreManifest.version})`); + + // Load external plugins + if (plugins.enabled && plugins.installFolder) { + await this.loadExternalPlugins(plugins.installFolder); + } + } + + private async loadExternalPlugins(installFolder: string): Promise { + try { + const entries = await this.pluginRepository.readDirectory(installFolder); + + for (const entry of entries) { + if (!entry.isDirectory()) { + continue; + } + + const pluginFolder = join(installFolder, entry.name); + const manifestPath = join(pluginFolder, 'manifest.json'); + try { + const manifest = await this.readAndValidateManifest(manifestPath); + await this.loadPluginToDatabase(manifest, pluginFolder); + + this.logger.log(`Successfully processed external plugin: ${manifest.name} (version ${manifest.version})`); + } catch (error) { + this.logger.warn(`Failed to load external plugin from ${manifestPath}:`, error); + } + } + } catch (error) { + this.logger.error(`Failed to scan external plugins folder ${installFolder}:`, error); + } + } + + private async loadPluginToDatabase(manifest: PluginManifestDto, basePath: string): Promise { + const currentPlugin = await this.pluginRepository.getPluginByName(manifest.name); + if (currentPlugin != null && currentPlugin.version === manifest.version) { + this.logger.log(`Plugin ${manifest.name} is up to date (version ${manifest.version}). Skipping`); + return; + } + + const { plugin, filters, actions } = await this.pluginRepository.loadPlugin(manifest, basePath); + + this.logger.log(`Upserted plugin: ${plugin.name} (ID: ${plugin.id}, version: ${plugin.version})`); + + for (const filter of filters) { + this.logger.log(`Upserted plugin filter: ${filter.methodName} (ID: ${filter.id})`); + } + + for (const action of actions) { + this.logger.log(`Upserted plugin action: ${action.methodName} (ID: ${action.id})`); + } + } + + private async readAndValidateManifest(manifestPath: string): Promise { + const content = await this.storageRepository.readTextFile(manifestPath); + const manifestData = JSON.parse(content); + const manifest = plainToInstance(PluginManifestDto, manifestData); + + await validateOrReject(manifest, { + whitelist: true, + forbidNonWhitelisted: true, + }); + + return manifest; + } + + /////////////////////////////////////////// + // Plugin Execution + /////////////////////////////////////////// + private async loadPlugins() { + const plugins = await this.pluginRepository.getAllPlugins(); + for (const plugin of plugins) { + try { + this.logger.debug(`Loading plugin: ${plugin.name} from ${plugin.wasmPath}`); + + const extismPlugin = await newPlugin(plugin.wasmPath, { + useWasi: true, + functions: this.hostFunctions.getHostFunctions(), + }); + + this.loadedPlugins.set(plugin.id, extismPlugin); + this.logger.log(`Successfully loaded plugin: ${plugin.name}`); + } catch (error) { + this.logger.error(`Failed to load plugin ${plugin.name}:`, error); + } + } + } + + @OnEvent({ name: 'AssetCreate' }) + async handleAssetCreate({ asset }: ArgOf<'AssetCreate'>) { + await this.handleTrigger(PluginTriggerType.AssetCreate, { + ownerId: asset.ownerId, + event: { userId: asset.ownerId, asset }, + }); + } + + private async handleTrigger( + triggerType: T, + params: { ownerId: string; event: WorkflowData[T] }, + ): Promise { + const workflows = await this.workflowRepository.getWorkflowByOwnerAndTrigger(params.ownerId, triggerType); + if (workflows.length === 0) { + return; + } + + const jobs: JobItem[] = workflows.map((workflow) => ({ + name: JobName.WorkflowRun, + data: { + id: workflow.id, + type: triggerType, + event: params.event, + } as IWorkflowJob, + })); + + await this.jobRepository.queueAll(jobs); + this.logger.debug(`Queued ${jobs.length} workflow execution jobs for trigger ${triggerType}`); + } + + @OnJob({ name: JobName.WorkflowRun, queue: QueueName.Workflow }) + async handleWorkflowRun({ id: workflowId, type, event }: JobOf): Promise { + try { + const workflow = await this.workflowRepository.getWorkflow(workflowId); + if (!workflow) { + this.logger.error(`Workflow ${workflowId} not found`); + return JobStatus.Failed; + } + + const workflowFilters = await this.workflowRepository.getFilters(workflowId); + const workflowActions = await this.workflowRepository.getActions(workflowId); + + switch (type) { + case PluginTriggerType.AssetCreate: { + const data = event as WorkflowData[PluginTriggerType.AssetCreate]; + const asset = data.asset; + + const authToken = this.cryptoRepository.signJwt({ userId: data.userId }, this.pluginJwtSecret); + + const context = { + authToken, + asset, + }; + + const filtersPassed = await this.executeFilters(workflowFilters, context); + if (!filtersPassed) { + return JobStatus.Skipped; + } + + await this.executeActions(workflowActions, context); + this.logger.debug(`Workflow ${workflowId} executed successfully`); + return JobStatus.Success; + } + + case PluginTriggerType.PersonRecognized: { + this.logger.error('unimplemented'); + return JobStatus.Skipped; + } + + default: { + this.logger.error(`Unknown workflow trigger type: ${type}`); + return JobStatus.Failed; + } + } + } catch (error) { + this.logger.error(`Error executing workflow ${workflowId}:`, error); + return JobStatus.Failed; + } + } + + private async executeFilters(workflowFilters: WorkflowFilter[], context: WorkflowContext): Promise { + for (const workflowFilter of workflowFilters) { + const filter = await this.pluginRepository.getFilter(workflowFilter.filterId); + if (!filter) { + this.logger.error(`Filter ${workflowFilter.filterId} not found`); + return false; + } + + const pluginInstance = this.loadedPlugins.get(filter.pluginId); + if (!pluginInstance) { + this.logger.error(`Plugin ${filter.pluginId} not loaded`); + return false; + } + + const filterInput: PluginInput = { + authToken: context.authToken, + config: workflowFilter.filterConfig, + data: { + asset: context.asset, + }, + }; + + this.logger.debug(`Calling filter ${filter.methodName} with input: ${JSON.stringify(filterInput)}`); + + const filterResult = await pluginInstance.call( + filter.methodName, + new TextEncoder().encode(JSON.stringify(filterInput)), + ); + + if (!filterResult) { + this.logger.error(`Filter ${filter.methodName} returned null`); + return false; + } + + const result = JSON.parse(filterResult.text()); + if (result.passed === false) { + this.logger.debug(`Filter ${filter.methodName} returned false, stopping workflow execution`); + return false; + } + } + + return true; + } + + private async executeActions(workflowActions: WorkflowAction[], context: WorkflowContext): Promise { + for (const workflowAction of workflowActions) { + const action = await this.pluginRepository.getAction(workflowAction.actionId); + if (!action) { + throw new Error(`Action ${workflowAction.actionId} not found`); + } + + const pluginInstance = this.loadedPlugins.get(action.pluginId); + if (!pluginInstance) { + throw new Error(`Plugin ${action.pluginId} not loaded`); + } + + const actionInput: PluginInput = { + authToken: context.authToken, + config: workflowAction.actionConfig, + data: { + asset: context.asset, + }, + }; + + this.logger.debug(`Calling action ${action.methodName} with input: ${JSON.stringify(actionInput)}`); + + await pluginInstance.call(action.methodName, JSON.stringify(actionInput)); + } + } +} diff --git a/server/src/services/queue.service.spec.ts b/server/src/services/queue.service.spec.ts index 1cc53df644..5dce9476e2 100644 --- a/server/src/services/queue.service.spec.ts +++ b/server/src/services/queue.service.spec.ts @@ -22,7 +22,7 @@ describe(QueueService.name, () => { it('should update concurrency', () => { sut.onConfigUpdate({ newConfig: defaults, oldConfig: {} as SystemConfig }); - expect(mocks.job.setConcurrency).toHaveBeenCalledTimes(16); + expect(mocks.job.setConcurrency).toHaveBeenCalledTimes(17); expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(5, QueueName.FacialRecognition, 1); expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(7, QueueName.DuplicateDetection, 1); expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(8, QueueName.BackgroundTask, 5); @@ -97,6 +97,7 @@ describe(QueueService.name, () => { [QueueName.Notification]: expectedJobStatus, [QueueName.BackupDatabase]: expectedJobStatus, [QueueName.Ocr]: expectedJobStatus, + [QueueName.Workflow]: expectedJobStatus, }); }); }); diff --git a/server/src/services/system-config.service.spec.ts b/server/src/services/system-config.service.spec.ts index b9a38e4b06..fbdd655bbc 100644 --- a/server/src/services/system-config.service.spec.ts +++ b/server/src/services/system-config.service.spec.ts @@ -40,6 +40,7 @@ const updatedConfig = Object.freeze({ [QueueName.VideoConversion]: { concurrency: 1 }, [QueueName.Notification]: { concurrency: 5 }, [QueueName.Ocr]: { concurrency: 1 }, + [QueueName.Workflow]: { concurrency: 5 }, }, backup: { database: { diff --git a/server/src/services/workflow.service.ts b/server/src/services/workflow.service.ts new file mode 100644 index 0000000000..ae72187d7d --- /dev/null +++ b/server/src/services/workflow.service.ts @@ -0,0 +1,159 @@ +import { BadRequestException, Injectable } from '@nestjs/common'; +import { Workflow } from 'src/database'; +import { AuthDto } from 'src/dtos/auth.dto'; +import { + mapWorkflowAction, + mapWorkflowFilter, + WorkflowCreateDto, + WorkflowResponseDto, + WorkflowUpdateDto, +} from 'src/dtos/workflow.dto'; +import { Permission, PluginContext, PluginTriggerType } from 'src/enum'; +import { pluginTriggers } from 'src/plugins'; + +import { BaseService } from 'src/services/base.service'; + +@Injectable() +export class WorkflowService extends BaseService { + async create(auth: AuthDto, dto: WorkflowCreateDto): Promise { + const trigger = this.getTriggerOrFail(dto.triggerType); + + const filterInserts = await this.validateAndMapFilters(dto.filters, trigger.context); + const actionInserts = await this.validateAndMapActions(dto.actions, trigger.context); + + const workflow = await this.workflowRepository.createWorkflow( + { + ownerId: auth.user.id, + triggerType: dto.triggerType, + name: dto.name, + description: dto.description || '', + enabled: dto.enabled ?? true, + }, + filterInserts, + actionInserts, + ); + + return this.mapWorkflow(workflow); + } + + async getAll(auth: AuthDto): Promise { + const workflows = await this.workflowRepository.getWorkflowsByOwner(auth.user.id); + + return Promise.all(workflows.map((workflow) => this.mapWorkflow(workflow))); + } + + async get(auth: AuthDto, id: string): Promise { + await this.requireAccess({ auth, permission: Permission.WorkflowRead, ids: [id] }); + const workflow = await this.findOrFail(id); + return this.mapWorkflow(workflow); + } + + async update(auth: AuthDto, id: string, dto: WorkflowUpdateDto): Promise { + await this.requireAccess({ auth, permission: Permission.WorkflowUpdate, ids: [id] }); + + if (Object.values(dto).filter((prop) => prop !== undefined).length === 0) { + throw new BadRequestException('No fields to update'); + } + + const workflow = await this.findOrFail(id); + const trigger = this.getTriggerOrFail(workflow.triggerType); + + const { filters, actions, ...workflowUpdate } = dto; + const filterInserts = filters && (await this.validateAndMapFilters(filters, trigger.context)); + const actionInserts = actions && (await this.validateAndMapActions(actions, trigger.context)); + + const updatedWorkflow = await this.workflowRepository.updateWorkflow( + id, + workflowUpdate, + filterInserts, + actionInserts, + ); + + return this.mapWorkflow(updatedWorkflow); + } + + async delete(auth: AuthDto, id: string): Promise { + await this.requireAccess({ auth, permission: Permission.WorkflowDelete, ids: [id] }); + await this.workflowRepository.deleteWorkflow(id); + } + + private async validateAndMapFilters( + filters: Array<{ filterId: string; filterConfig?: any }>, + requiredContext: PluginContext, + ) { + for (const dto of filters) { + const filter = await this.pluginRepository.getFilter(dto.filterId); + if (!filter) { + throw new BadRequestException(`Invalid filter ID: ${dto.filterId}`); + } + + if (!filter.supportedContexts.includes(requiredContext)) { + throw new BadRequestException( + `Filter "${filter.title}" does not support ${requiredContext} context. Supported contexts: ${filter.supportedContexts.join(', ')}`, + ); + } + } + + return filters.map((dto, index) => ({ + filterId: dto.filterId, + filterConfig: dto.filterConfig || null, + order: index, + })); + } + + private async validateAndMapActions( + actions: Array<{ actionId: string; actionConfig?: any }>, + requiredContext: PluginContext, + ) { + for (const dto of actions) { + const action = await this.pluginRepository.getAction(dto.actionId); + if (!action) { + throw new BadRequestException(`Invalid action ID: ${dto.actionId}`); + } + if (!action.supportedContexts.includes(requiredContext)) { + throw new BadRequestException( + `Action "${action.title}" does not support ${requiredContext} context. Supported contexts: ${action.supportedContexts.join(', ')}`, + ); + } + } + + return actions.map((dto, index) => ({ + actionId: dto.actionId, + actionConfig: dto.actionConfig || null, + order: index, + })); + } + + private getTriggerOrFail(triggerType: PluginTriggerType) { + const trigger = pluginTriggers.find((t) => t.type === triggerType); + if (!trigger) { + throw new BadRequestException(`Invalid trigger type: ${triggerType}`); + } + return trigger; + } + + private async findOrFail(id: string) { + const workflow = await this.workflowRepository.getWorkflow(id); + if (!workflow) { + throw new BadRequestException('Workflow not found'); + } + return workflow; + } + + private async mapWorkflow(workflow: Workflow): Promise { + const filters = await this.workflowRepository.getFilters(workflow.id); + const actions = await this.workflowRepository.getActions(workflow.id); + + return { + id: workflow.id, + ownerId: workflow.ownerId, + triggerType: workflow.triggerType, + name: workflow.name, + description: workflow.description, + createdAt: workflow.createdAt.toISOString(), + enabled: workflow.enabled, + filters: filters.map((f) => mapWorkflowFilter(f)), + actions: actions.map((a) => mapWorkflowAction(a)), + }; + } +} diff --git a/server/src/types.ts b/server/src/types.ts index afc72480e8..ad947e3774 100644 --- a/server/src/types.ts +++ b/server/src/types.ts @@ -1,5 +1,6 @@ import { SystemConfig } from 'src/config'; import { VECTOR_EXTENSIONS } from 'src/constants'; +import { Asset } from 'src/database'; import { UploadFieldName } from 'src/dtos/asset-media.dto'; import { AuthDto } from 'src/dtos/auth.dto'; import { @@ -11,6 +12,7 @@ import { ImageFormat, JobName, MemoryType, + PluginTriggerType, QueueName, StorageFolder, SyncEntityType, @@ -263,6 +265,23 @@ export interface INotifyAlbumUpdateJob extends IEntityJob, IDelayedJob { recipientId: string; } +export interface WorkflowData { + [PluginTriggerType.AssetCreate]: { + userId: string; + asset: Asset; + }; + [PluginTriggerType.PersonRecognized]: { + personId: string; + assetId: string; + }; +} + +export interface IWorkflowJob { + id: string; + type: T; + event: WorkflowData[T]; +} + export interface JobCounts { active: number; completed: number; @@ -374,7 +393,10 @@ export type JobItem = // OCR | { name: JobName.OcrQueueAll; data: IBaseJob } - | { name: JobName.Ocr; data: IEntityJob }; + | { name: JobName.Ocr; data: IEntityJob } + + // Workflow + | { name: JobName.WorkflowRun; data: IWorkflowJob }; export type VectorExtension = (typeof VECTOR_EXTENSIONS)[number]; diff --git a/server/src/types/plugin-schema.types.ts b/server/src/types/plugin-schema.types.ts new file mode 100644 index 0000000000..793bb3c1ff --- /dev/null +++ b/server/src/types/plugin-schema.types.ts @@ -0,0 +1,35 @@ +/** + * JSON Schema types for plugin configuration schemas + * Based on JSON Schema Draft 7 + */ + +export type JSONSchemaType = 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null'; + +export interface JSONSchemaProperty { + type?: JSONSchemaType | JSONSchemaType[]; + description?: string; + default?: any; + enum?: any[]; + items?: JSONSchemaProperty; + properties?: Record; + required?: string[]; + additionalProperties?: boolean | JSONSchemaProperty; +} + +export interface JSONSchema { + type: 'object'; + properties?: Record; + required?: string[]; + additionalProperties?: boolean; + description?: string; +} + +export type ConfigValue = string | number | boolean | null | ConfigValue[] | { [key: string]: ConfigValue }; + +export interface FilterConfig { + [key: string]: ConfigValue; +} + +export interface ActionConfig { + [key: string]: ConfigValue; +} diff --git a/server/src/utils/access.ts b/server/src/utils/access.ts index 7a0f701f74..f8d5f0ca08 100644 --- a/server/src/utils/access.ts +++ b/server/src/utils/access.ts @@ -298,6 +298,12 @@ const checkOtherAccess = async (access: AccessRepository, request: OtherAccessRe return access.stack.checkOwnerAccess(auth.user.id, ids); } + case Permission.WorkflowRead: + case Permission.WorkflowUpdate: + case Permission.WorkflowDelete: { + return access.workflow.checkOwnerAccess(auth.user.id, ids); + } + default: { return new Set(); } diff --git a/server/test/medium.factory.ts b/server/test/medium.factory.ts index 6167b6a6ff..efcdc59793 100644 --- a/server/test/medium.factory.ts +++ b/server/test/medium.factory.ts @@ -36,6 +36,7 @@ import { NotificationRepository } from 'src/repositories/notification.repository import { OcrRepository } from 'src/repositories/ocr.repository'; import { PartnerRepository } from 'src/repositories/partner.repository'; import { PersonRepository } from 'src/repositories/person.repository'; +import { PluginRepository } from 'src/repositories/plugin.repository'; import { SearchRepository } from 'src/repositories/search.repository'; import { SessionRepository } from 'src/repositories/session.repository'; import { SharedLinkAssetRepository } from 'src/repositories/shared-link-asset.repository'; @@ -49,6 +50,7 @@ import { TagRepository } from 'src/repositories/tag.repository'; import { TelemetryRepository } from 'src/repositories/telemetry.repository'; import { UserRepository } from 'src/repositories/user.repository'; import { VersionHistoryRepository } from 'src/repositories/version-history.repository'; +import { WorkflowRepository } from 'src/repositories/workflow.repository'; import { DB } from 'src/schema'; import { AlbumTable } from 'src/schema/tables/album.table'; import { AssetExifTable } from 'src/schema/tables/asset-exif.table'; @@ -380,6 +382,7 @@ const newRealRepository = (key: ClassConstructor, db: Kysely): T => { case OcrRepository: case PartnerRepository: case PersonRepository: + case PluginRepository: case SearchRepository: case SessionRepository: case SharedLinkRepository: @@ -389,7 +392,8 @@ const newRealRepository = (key: ClassConstructor, db: Kysely): T => { case SyncCheckpointRepository: case SystemMetadataRepository: case UserRepository: - case VersionHistoryRepository: { + case VersionHistoryRepository: + case WorkflowRepository: { return new key(db); } @@ -441,13 +445,15 @@ const newMockRepository = (key: ClassConstructor) => { case OcrRepository: case PartnerRepository: case PersonRepository: + case PluginRepository: case SessionRepository: case SyncRepository: case SyncCheckpointRepository: case SystemMetadataRepository: case UserRepository: case VersionHistoryRepository: - case TagRepository: { + case TagRepository: + case WorkflowRepository: { return automock(key); } diff --git a/server/test/medium/specs/services/plugin.service.spec.ts b/server/test/medium/specs/services/plugin.service.spec.ts new file mode 100644 index 0000000000..b70e8e8d54 --- /dev/null +++ b/server/test/medium/specs/services/plugin.service.spec.ts @@ -0,0 +1,308 @@ +import { Kysely } from 'kysely'; +import { PluginContext } from 'src/enum'; +import { AccessRepository } from 'src/repositories/access.repository'; +import { LoggingRepository } from 'src/repositories/logging.repository'; +import { PluginRepository } from 'src/repositories/plugin.repository'; +import { DB } from 'src/schema'; +import { PluginService } from 'src/services/plugin.service'; +import { newMediumService } from 'test/medium.factory'; +import { getKyselyDB } from 'test/utils'; + +let defaultDatabase: Kysely; +let pluginRepo: PluginRepository; + +const setup = (db?: Kysely) => { + return newMediumService(PluginService, { + database: db || defaultDatabase, + real: [PluginRepository, AccessRepository], + mock: [LoggingRepository], + }); +}; + +beforeAll(async () => { + defaultDatabase = await getKyselyDB(); + pluginRepo = new PluginRepository(defaultDatabase); +}); + +afterEach(async () => { + await defaultDatabase.deleteFrom('plugin').execute(); +}); + +describe(PluginService.name, () => { + describe('getAll', () => { + it('should return empty array when no plugins exist', async () => { + const { sut } = setup(); + + const plugins = await sut.getAll(); + + expect(plugins).toEqual([]); + }); + + it('should return plugin without filters and actions', async () => { + const { sut } = setup(); + + const result = await pluginRepo.loadPlugin( + { + name: 'test-plugin', + title: 'Test Plugin', + description: 'A test plugin', + author: 'Test Author', + version: '1.0.0', + wasm: { path: '/path/to/test.wasm' }, + }, + '/test/base/path', + ); + + const plugins = await sut.getAll(); + + expect(plugins).toHaveLength(1); + expect(plugins[0]).toMatchObject({ + id: result.plugin.id, + name: 'test-plugin', + description: 'A test plugin', + author: 'Test Author', + version: '1.0.0', + filters: [], + actions: [], + }); + }); + + it('should return plugin with filters and actions', async () => { + const { sut } = setup(); + + const result = await pluginRepo.loadPlugin( + { + name: 'full-plugin', + title: 'Full Plugin', + description: 'A plugin with filters and actions', + author: 'Test Author', + version: '1.0.0', + wasm: { path: '/path/to/full.wasm' }, + filters: [ + { + methodName: 'test-filter', + title: 'Test Filter', + description: 'A test filter', + supportedContexts: [PluginContext.Asset], + schema: { type: 'object', properties: {} }, + }, + ], + actions: [ + { + methodName: 'test-action', + title: 'Test Action', + description: 'A test action', + supportedContexts: [PluginContext.Asset], + schema: { type: 'object', properties: {} }, + }, + ], + }, + '/test/base/path', + ); + + const plugins = await sut.getAll(); + + expect(plugins).toHaveLength(1); + expect(plugins[0]).toMatchObject({ + id: result.plugin.id, + name: 'full-plugin', + filters: [ + { + id: result.filters[0].id, + pluginId: result.plugin.id, + methodName: 'test-filter', + title: 'Test Filter', + description: 'A test filter', + supportedContexts: [PluginContext.Asset], + schema: { type: 'object', properties: {} }, + }, + ], + actions: [ + { + id: result.actions[0].id, + pluginId: result.plugin.id, + methodName: 'test-action', + title: 'Test Action', + description: 'A test action', + supportedContexts: [PluginContext.Asset], + schema: { type: 'object', properties: {} }, + }, + ], + }); + }); + + it('should return multiple plugins with their respective filters and actions', async () => { + const { sut } = setup(); + + await pluginRepo.loadPlugin( + { + name: 'plugin-1', + title: 'Plugin 1', + description: 'First plugin', + author: 'Author 1', + version: '1.0.0', + wasm: { path: '/path/to/plugin1.wasm' }, + filters: [ + { + methodName: 'filter-1', + title: 'Filter 1', + description: 'Filter for plugin 1', + supportedContexts: [PluginContext.Asset], + schema: undefined, + }, + ], + }, + '/test/base/path', + ); + + await pluginRepo.loadPlugin( + { + name: 'plugin-2', + title: 'Plugin 2', + description: 'Second plugin', + author: 'Author 2', + version: '2.0.0', + wasm: { path: '/path/to/plugin2.wasm' }, + actions: [ + { + methodName: 'action-2', + title: 'Action 2', + description: 'Action for plugin 2', + supportedContexts: [PluginContext.Album], + schema: undefined, + }, + ], + }, + '/test/base/path', + ); + + const plugins = await sut.getAll(); + + expect(plugins).toHaveLength(2); + expect(plugins[0].name).toBe('plugin-1'); + expect(plugins[0].filters).toHaveLength(1); + expect(plugins[0].actions).toHaveLength(0); + + expect(plugins[1].name).toBe('plugin-2'); + expect(plugins[1].filters).toHaveLength(0); + expect(plugins[1].actions).toHaveLength(1); + }); + + it('should handle plugin with multiple filters and actions', async () => { + const { sut } = setup(); + + await pluginRepo.loadPlugin( + { + name: 'multi-plugin', + title: 'Multi Plugin', + description: 'Plugin with multiple items', + author: 'Test Author', + version: '1.0.0', + wasm: { path: '/path/to/multi.wasm' }, + filters: [ + { + methodName: 'filter-a', + title: 'Filter A', + description: 'First filter', + supportedContexts: [PluginContext.Asset], + schema: undefined, + }, + { + methodName: 'filter-b', + title: 'Filter B', + description: 'Second filter', + supportedContexts: [PluginContext.Album], + schema: undefined, + }, + ], + actions: [ + { + methodName: 'action-x', + title: 'Action X', + description: 'First action', + supportedContexts: [PluginContext.Asset], + schema: undefined, + }, + { + methodName: 'action-y', + title: 'Action Y', + description: 'Second action', + supportedContexts: [PluginContext.Person], + schema: undefined, + }, + ], + }, + '/test/base/path', + ); + + const plugins = await sut.getAll(); + + expect(plugins).toHaveLength(1); + expect(plugins[0].filters).toHaveLength(2); + expect(plugins[0].actions).toHaveLength(2); + }); + }); + + describe('get', () => { + it('should throw error when plugin does not exist', async () => { + const { sut } = setup(); + + await expect(sut.get('00000000-0000-0000-0000-000000000000')).rejects.toThrow('Plugin not found'); + }); + + it('should return single plugin with filters and actions', async () => { + const { sut } = setup(); + + const result = await pluginRepo.loadPlugin( + { + name: 'single-plugin', + title: 'Single Plugin', + description: 'A single plugin', + author: 'Test Author', + version: '1.0.0', + wasm: { path: '/path/to/single.wasm' }, + filters: [ + { + methodName: 'single-filter', + title: 'Single Filter', + description: 'A single filter', + supportedContexts: [PluginContext.Asset], + schema: undefined, + }, + ], + actions: [ + { + methodName: 'single-action', + title: 'Single Action', + description: 'A single action', + supportedContexts: [PluginContext.Asset], + schema: undefined, + }, + ], + }, + '/test/base/path', + ); + + const pluginResult = await sut.get(result.plugin.id); + + expect(pluginResult).toMatchObject({ + id: result.plugin.id, + name: 'single-plugin', + filters: [ + { + id: result.filters[0].id, + methodName: 'single-filter', + title: 'Single Filter', + }, + ], + actions: [ + { + id: result.actions[0].id, + methodName: 'single-action', + title: 'Single Action', + }, + ], + }); + }); + }); +}); diff --git a/server/test/medium/specs/services/workflow.service.spec.ts b/server/test/medium/specs/services/workflow.service.spec.ts new file mode 100644 index 0000000000..af12019ef6 --- /dev/null +++ b/server/test/medium/specs/services/workflow.service.spec.ts @@ -0,0 +1,697 @@ +import { Kysely } from 'kysely'; +import { PluginContext, PluginTriggerType } from 'src/enum'; +import { AccessRepository } from 'src/repositories/access.repository'; +import { LoggingRepository } from 'src/repositories/logging.repository'; +import { PluginRepository } from 'src/repositories/plugin.repository'; +import { WorkflowRepository } from 'src/repositories/workflow.repository'; +import { DB } from 'src/schema'; +import { WorkflowService } from 'src/services/workflow.service'; +import { newMediumService } from 'test/medium.factory'; +import { getKyselyDB } from 'test/utils'; + +let defaultDatabase: Kysely; + +const setup = (db?: Kysely) => { + return newMediumService(WorkflowService, { + database: db || defaultDatabase, + real: [WorkflowRepository, PluginRepository, AccessRepository], + mock: [LoggingRepository], + }); +}; + +beforeAll(async () => { + defaultDatabase = await getKyselyDB(); +}); + +describe(WorkflowService.name, () => { + let testPluginId: string; + let testFilterId: string; + let testActionId: string; + + beforeAll(async () => { + // Create a test plugin with filters and actions once for all tests + const pluginRepo = new PluginRepository(defaultDatabase); + const result = await pluginRepo.loadPlugin( + { + name: 'test-core-plugin', + title: 'Test Core Plugin', + description: 'A test core plugin for workflow tests', + author: 'Test Author', + version: '1.0.0', + wasm: { + path: '/test/path.wasm', + }, + filters: [ + { + methodName: 'test-filter', + title: 'Test Filter', + description: 'A test filter', + supportedContexts: [PluginContext.Asset], + schema: undefined, + }, + ], + actions: [ + { + methodName: 'test-action', + title: 'Test Action', + description: 'A test action', + supportedContexts: [PluginContext.Asset], + schema: undefined, + }, + ], + }, + '/plugins/test-core-plugin', + ); + + testPluginId = result.plugin.id; + testFilterId = result.filters[0].id; + testActionId = result.actions[0].id; + }); + + afterAll(async () => { + await defaultDatabase.deleteFrom('plugin').where('id', '=', testPluginId).execute(); + }); + + describe('create', () => { + it('should create a workflow without filters or actions', async () => { + const { sut, ctx } = setup(); + const { user } = await ctx.newUser(); + + const auth = { user: { id: user.id } } as any; + + const workflow = await sut.create(auth, { + triggerType: PluginTriggerType.AssetCreate, + name: 'test-workflow', + description: 'A test workflow', + enabled: true, + filters: [], + actions: [], + }); + + expect(workflow).toMatchObject({ + id: expect.any(String), + ownerId: user.id, + triggerType: PluginTriggerType.AssetCreate, + name: 'test-workflow', + description: 'A test workflow', + enabled: true, + filters: [], + actions: [], + }); + }); + + it('should create a workflow with filters and actions', async () => { + const { sut, ctx } = setup(); + const { user } = await ctx.newUser(); + const auth = { user: { id: user.id } } as any; + + const workflow = await sut.create(auth, { + triggerType: PluginTriggerType.AssetCreate, + name: 'test-workflow-with-relations', + description: 'A test workflow with filters and actions', + enabled: true, + filters: [ + { + filterId: testFilterId, + filterConfig: { key: 'value' }, + }, + ], + actions: [ + { + actionId: testActionId, + actionConfig: { action: 'test' }, + }, + ], + }); + + expect(workflow).toMatchObject({ + id: expect.any(String), + ownerId: user.id, + triggerType: PluginTriggerType.AssetCreate, + name: 'test-workflow-with-relations', + enabled: true, + }); + + expect(workflow.filters).toHaveLength(1); + expect(workflow.filters[0]).toMatchObject({ + id: expect.any(String), + workflowId: workflow.id, + filterId: testFilterId, + filterConfig: { key: 'value' }, + order: 0, + }); + + expect(workflow.actions).toHaveLength(1); + expect(workflow.actions[0]).toMatchObject({ + id: expect.any(String), + workflowId: workflow.id, + actionId: testActionId, + actionConfig: { action: 'test' }, + order: 0, + }); + }); + + it('should throw error when creating workflow with invalid filter', async () => { + const { sut, ctx } = setup(); + const { user } = await ctx.newUser(); + const auth = { user: { id: user.id } } as any; + + await expect( + sut.create(auth, { + triggerType: PluginTriggerType.AssetCreate, + name: 'invalid-workflow', + description: 'A workflow with invalid filter', + enabled: true, + filters: [ + { + filterId: '66da82df-e424-4bf4-b6f3-5d8e71620dae', + filterConfig: { key: 'value' }, + }, + ], + actions: [], + }), + ).rejects.toThrow('Invalid filter ID'); + }); + + it('should throw error when creating workflow with invalid action', async () => { + const { sut, ctx } = setup(); + const { user } = await ctx.newUser(); + const auth = { user: { id: user.id } } as any; + + await expect( + sut.create(auth, { + triggerType: PluginTriggerType.AssetCreate, + name: 'invalid-workflow', + description: 'A workflow with invalid action', + enabled: true, + filters: [], + actions: [ + { + actionId: '66da82df-e424-4bf4-b6f3-5d8e71620dae', + actionConfig: { action: 'test' }, + }, + ], + }), + ).rejects.toThrow('Invalid action ID'); + }); + + it('should throw error when filter does not support trigger context', async () => { + const { sut, ctx } = setup(); + const { user } = await ctx.newUser(); + const auth = { user: { id: user.id } } as any; + + // Create a plugin with a filter that only supports Album context + const pluginRepo = new PluginRepository(defaultDatabase); + const result = await pluginRepo.loadPlugin( + { + name: 'album-only-plugin', + title: 'Album Only Plugin', + description: 'Plugin with album-only filter', + author: 'Test Author', + version: '1.0.0', + wasm: { path: '/test/album-plugin.wasm' }, + filters: [ + { + methodName: 'album-filter', + title: 'Album Filter', + description: 'A filter that only works with albums', + supportedContexts: [PluginContext.Album], + schema: undefined, + }, + ], + }, + '/plugins/test-core-plugin', + ); + + await expect( + sut.create(auth, { + triggerType: PluginTriggerType.AssetCreate, + name: 'invalid-context-workflow', + description: 'A workflow with context mismatch', + enabled: true, + filters: [{ filterId: result.filters[0].id }], + actions: [], + }), + ).rejects.toThrow('does not support asset context'); + }); + + it('should throw error when action does not support trigger context', async () => { + const { sut, ctx } = setup(); + const { user } = await ctx.newUser(); + const auth = { user: { id: user.id } } as any; + + // Create a plugin with an action that only supports Person context + const pluginRepo = new PluginRepository(defaultDatabase); + const result = await pluginRepo.loadPlugin( + { + name: 'person-only-plugin', + title: 'Person Only Plugin', + description: 'Plugin with person-only action', + author: 'Test Author', + version: '1.0.0', + wasm: { path: '/test/person-plugin.wasm' }, + actions: [ + { + methodName: 'person-action', + title: 'Person Action', + description: 'An action that only works with persons', + supportedContexts: [PluginContext.Person], + schema: undefined, + }, + ], + }, + '/plugins/test-core-plugin', + ); + + await expect( + sut.create(auth, { + triggerType: PluginTriggerType.AssetCreate, + name: 'invalid-context-workflow', + description: 'A workflow with context mismatch', + enabled: true, + filters: [], + actions: [{ actionId: result.actions[0].id }], + }), + ).rejects.toThrow('does not support asset context'); + }); + + it('should create workflow with multiple filters and actions in correct order', async () => { + const { sut, ctx } = setup(); + const { user } = await ctx.newUser(); + const auth = { user: { id: user.id } } as any; + + const workflow = await sut.create(auth, { + triggerType: PluginTriggerType.AssetCreate, + name: 'multi-step-workflow', + description: 'A workflow with multiple filters and actions', + enabled: true, + filters: [ + { filterId: testFilterId, filterConfig: { step: 1 } }, + { filterId: testFilterId, filterConfig: { step: 2 } }, + ], + actions: [ + { actionId: testActionId, actionConfig: { step: 1 } }, + { actionId: testActionId, actionConfig: { step: 2 } }, + { actionId: testActionId, actionConfig: { step: 3 } }, + ], + }); + + expect(workflow.filters).toHaveLength(2); + expect(workflow.filters[0].order).toBe(0); + expect(workflow.filters[0].filterConfig).toEqual({ step: 1 }); + expect(workflow.filters[1].order).toBe(1); + expect(workflow.filters[1].filterConfig).toEqual({ step: 2 }); + + expect(workflow.actions).toHaveLength(3); + expect(workflow.actions[0].order).toBe(0); + expect(workflow.actions[1].order).toBe(1); + expect(workflow.actions[2].order).toBe(2); + }); + }); + + describe('getAll', () => { + it('should return all workflows for a user', async () => { + const { sut, ctx } = setup(); + const { user } = await ctx.newUser(); + const auth = { user: { id: user.id } } as any; + + const workflow1 = await sut.create(auth, { + triggerType: PluginTriggerType.AssetCreate, + name: 'workflow-1', + description: 'First workflow', + enabled: true, + filters: [], + actions: [], + }); + + const workflow2 = await sut.create(auth, { + triggerType: PluginTriggerType.AssetCreate, + name: 'workflow-2', + description: 'Second workflow', + enabled: false, + filters: [], + actions: [], + }); + + const workflows = await sut.getAll(auth); + + expect(workflows).toHaveLength(2); + expect(workflows).toEqual( + expect.arrayContaining([ + expect.objectContaining({ id: workflow1.id, name: 'workflow-1' }), + expect.objectContaining({ id: workflow2.id, name: 'workflow-2' }), + ]), + ); + }); + + it('should return empty array when user has no workflows', async () => { + const { sut, ctx } = setup(); + const { user } = await ctx.newUser(); + const auth = { user: { id: user.id } } as any; + + const workflows = await sut.getAll(auth); + + expect(workflows).toEqual([]); + }); + + it('should not return workflows from other users', async () => { + const { sut, ctx } = setup(); + const { user: user1 } = await ctx.newUser(); + const { user: user2 } = await ctx.newUser(); + const auth1 = { user: { id: user1.id } } as any; + const auth2 = { user: { id: user2.id } } as any; + + await sut.create(auth1, { + triggerType: PluginTriggerType.AssetCreate, + name: 'user1-workflow', + description: 'User 1 workflow', + enabled: true, + filters: [], + actions: [], + }); + + const user2Workflows = await sut.getAll(auth2); + + expect(user2Workflows).toEqual([]); + }); + }); + + describe('get', () => { + it('should return a specific workflow by id', async () => { + const { sut, ctx } = setup(); + const { user } = await ctx.newUser(); + const auth = { user: { id: user.id } } as any; + + const created = await sut.create(auth, { + triggerType: PluginTriggerType.AssetCreate, + name: 'test-workflow', + description: 'A test workflow', + enabled: true, + filters: [{ filterId: testFilterId, filterConfig: { key: 'value' } }], + actions: [{ actionId: testActionId, actionConfig: { action: 'test' } }], + }); + + const workflow = await sut.get(auth, created.id); + + expect(workflow).toMatchObject({ + id: created.id, + name: 'test-workflow', + description: 'A test workflow', + enabled: true, + }); + expect(workflow.filters).toHaveLength(1); + expect(workflow.actions).toHaveLength(1); + }); + + it('should throw error when workflow does not exist', async () => { + const { sut, ctx } = setup(); + const { user } = await ctx.newUser(); + const auth = { user: { id: user.id } } as any; + + await expect(sut.get(auth, '66da82df-e424-4bf4-b6f3-5d8e71620dae')).rejects.toThrow(); + }); + + it('should throw error when user does not have access to workflow', async () => { + const { sut, ctx } = setup(); + const { user: user1 } = await ctx.newUser(); + const { user: user2 } = await ctx.newUser(); + const auth1 = { user: { id: user1.id } } as any; + const auth2 = { user: { id: user2.id } } as any; + + const workflow = await sut.create(auth1, { + triggerType: PluginTriggerType.AssetCreate, + name: 'private-workflow', + description: 'Private workflow', + enabled: true, + filters: [], + actions: [], + }); + + await expect(sut.get(auth2, workflow.id)).rejects.toThrow(); + }); + }); + + describe('update', () => { + it('should update workflow basic fields', async () => { + const { sut, ctx } = setup(); + const { user } = await ctx.newUser(); + const auth = { user: { id: user.id } } as any; + + const created = await sut.create(auth, { + triggerType: PluginTriggerType.AssetCreate, + name: 'original-workflow', + description: 'Original description', + enabled: true, + filters: [], + actions: [], + }); + + const updated = await sut.update(auth, created.id, { + name: 'updated-workflow', + description: 'Updated description', + enabled: false, + }); + + expect(updated).toMatchObject({ + id: created.id, + name: 'updated-workflow', + description: 'Updated description', + enabled: false, + }); + }); + + it('should update workflow filters', async () => { + const { sut, ctx } = setup(); + const { user } = await ctx.newUser(); + const auth = { user: { id: user.id } } as any; + + const created = await sut.create(auth, { + triggerType: PluginTriggerType.AssetCreate, + name: 'test-workflow', + description: 'Test', + enabled: true, + filters: [{ filterId: testFilterId, filterConfig: { old: 'config' } }], + actions: [], + }); + + const updated = await sut.update(auth, created.id, { + filters: [ + { filterId: testFilterId, filterConfig: { new: 'config' } }, + { filterId: testFilterId, filterConfig: { second: 'filter' } }, + ], + }); + + expect(updated.filters).toHaveLength(2); + expect(updated.filters[0].filterConfig).toEqual({ new: 'config' }); + expect(updated.filters[1].filterConfig).toEqual({ second: 'filter' }); + }); + + it('should update workflow actions', async () => { + const { sut, ctx } = setup(); + const { user } = await ctx.newUser(); + const auth = { user: { id: user.id } } as any; + + const created = await sut.create(auth, { + triggerType: PluginTriggerType.AssetCreate, + name: 'test-workflow', + description: 'Test', + enabled: true, + filters: [], + actions: [{ actionId: testActionId, actionConfig: { old: 'config' } }], + }); + + const updated = await sut.update(auth, created.id, { + actions: [ + { actionId: testActionId, actionConfig: { new: 'config' } }, + { actionId: testActionId, actionConfig: { second: 'action' } }, + ], + }); + + expect(updated.actions).toHaveLength(2); + expect(updated.actions[0].actionConfig).toEqual({ new: 'config' }); + expect(updated.actions[1].actionConfig).toEqual({ second: 'action' }); + }); + + it('should clear filters when updated with empty array', async () => { + const { sut, ctx } = setup(); + const { user } = await ctx.newUser(); + const auth = { user: { id: user.id } } as any; + + const created = await sut.create(auth, { + triggerType: PluginTriggerType.AssetCreate, + name: 'test-workflow', + description: 'Test', + enabled: true, + filters: [{ filterId: testFilterId, filterConfig: { key: 'value' } }], + actions: [], + }); + + const updated = await sut.update(auth, created.id, { + filters: [], + }); + + expect(updated.filters).toHaveLength(0); + }); + + it('should throw error when no fields to update', async () => { + const { sut, ctx } = setup(); + const { user } = await ctx.newUser(); + const auth = { user: { id: user.id } } as any; + + const created = await sut.create(auth, { + triggerType: PluginTriggerType.AssetCreate, + name: 'test-workflow', + description: 'Test', + enabled: true, + filters: [], + actions: [], + }); + + await expect(sut.update(auth, created.id, {})).rejects.toThrow('No fields to update'); + }); + + it('should throw error when updating non-existent workflow', async () => { + const { sut, ctx } = setup(); + const { user } = await ctx.newUser(); + const auth = { user: { id: user.id } } as any; + + await expect( + sut.update(auth, 'non-existent-id', { + name: 'updated-name', + }), + ).rejects.toThrow(); + }); + + it('should throw error when user does not have access to update workflow', async () => { + const { sut, ctx } = setup(); + const { user: user1 } = await ctx.newUser(); + const { user: user2 } = await ctx.newUser(); + const auth1 = { user: { id: user1.id } } as any; + const auth2 = { user: { id: user2.id } } as any; + + const workflow = await sut.create(auth1, { + triggerType: PluginTriggerType.AssetCreate, + name: 'private-workflow', + description: 'Private', + enabled: true, + filters: [], + actions: [], + }); + + await expect( + sut.update(auth2, workflow.id, { + name: 'hacked-workflow', + }), + ).rejects.toThrow(); + }); + + it('should throw error when updating with invalid filter', async () => { + const { sut, ctx } = setup(); + const { user } = await ctx.newUser(); + const auth = { user: { id: user.id } } as any; + + const created = await sut.create(auth, { + triggerType: PluginTriggerType.AssetCreate, + name: 'test-workflow', + description: 'Test', + enabled: true, + filters: [], + actions: [], + }); + + await expect( + sut.update(auth, created.id, { + filters: [{ filterId: 'invalid-filter-id', filterConfig: {} }], + }), + ).rejects.toThrow(); + }); + + it('should throw error when updating with invalid action', async () => { + const { sut, ctx } = setup(); + const { user } = await ctx.newUser(); + const auth = { user: { id: user.id } } as any; + + const created = await sut.create(auth, { + triggerType: PluginTriggerType.AssetCreate, + name: 'test-workflow', + description: 'Test', + enabled: true, + filters: [], + actions: [], + }); + + await expect( + sut.update(auth, created.id, { + actions: [{ actionId: 'invalid-action-id', actionConfig: {} }], + }), + ).rejects.toThrow(); + }); + }); + + describe('delete', () => { + it('should delete a workflow', async () => { + const { sut, ctx } = setup(); + const { user } = await ctx.newUser(); + const auth = { user: { id: user.id } } as any; + + const workflow = await sut.create(auth, { + triggerType: PluginTriggerType.AssetCreate, + name: 'test-workflow', + description: 'Test', + enabled: true, + filters: [], + actions: [], + }); + + await sut.delete(auth, workflow.id); + + await expect(sut.get(auth, workflow.id)).rejects.toThrow('Not found or no workflow.read access'); + }); + + it('should delete workflow with filters and actions', async () => { + const { sut, ctx } = setup(); + const { user } = await ctx.newUser(); + const auth = { user: { id: user.id } } as any; + + const workflow = await sut.create(auth, { + triggerType: PluginTriggerType.AssetCreate, + name: 'test-workflow', + description: 'Test', + enabled: true, + filters: [{ filterId: testFilterId, filterConfig: {} }], + actions: [{ actionId: testActionId, actionConfig: {} }], + }); + + await sut.delete(auth, workflow.id); + + await expect(sut.get(auth, workflow.id)).rejects.toThrow('Not found or no workflow.read access'); + }); + + it('should throw error when deleting non-existent workflow', async () => { + const { sut, ctx } = setup(); + const { user } = await ctx.newUser(); + const auth = { user: { id: user.id } } as any; + + await expect(sut.delete(auth, 'non-existent-id')).rejects.toThrow(); + }); + + it('should throw error when user does not have access to delete workflow', async () => { + const { sut, ctx } = setup(); + const { user: user1 } = await ctx.newUser(); + const { user: user2 } = await ctx.newUser(); + const auth1 = { user: { id: user1.id } } as any; + const auth2 = { user: { id: user2.id } } as any; + + const workflow = await sut.create(auth1, { + triggerType: PluginTriggerType.AssetCreate, + name: 'private-workflow', + description: 'Private', + enabled: true, + filters: [], + actions: [], + }); + + await expect(sut.delete(auth2, workflow.id)).rejects.toThrow(); + }); + }); +}); diff --git a/server/test/repositories/access.repository.mock.ts b/server/test/repositories/access.repository.mock.ts index 50db983cba..208b09c120 100644 --- a/server/test/repositories/access.repository.mock.ts +++ b/server/test/repositories/access.repository.mock.ts @@ -65,5 +65,9 @@ export const newAccessRepositoryMock = (): IAccessRepositoryMock => { tag: { checkOwnerAccess: vitest.fn().mockResolvedValue(new Set()), }, + + workflow: { + checkOwnerAccess: vitest.fn().mockResolvedValue(new Set()), + }, }; }; diff --git a/server/test/repositories/config.repository.mock.ts b/server/test/repositories/config.repository.mock.ts index e31e1a3348..656027fab5 100644 --- a/server/test/repositories/config.repository.mock.ts +++ b/server/test/repositories/config.repository.mock.ts @@ -72,6 +72,7 @@ const envData: EnvData = { root: '/build/www', indexHtml: '/build/www/index.html', }, + corePlugin: '/build/corePlugin', }, storage: { @@ -86,6 +87,11 @@ const envData: EnvData = { workers: [ImmichWorker.Api, ImmichWorker.Microservices], + plugins: { + enabled: true, + installFolder: '/app/data/plugins', + }, + noColor: false, }; diff --git a/server/test/repositories/crypto.repository.mock.ts b/server/test/repositories/crypto.repository.mock.ts index 1167923c0c..773891206e 100644 --- a/server/test/repositories/crypto.repository.mock.ts +++ b/server/test/repositories/crypto.repository.mock.ts @@ -13,5 +13,7 @@ export const newCryptoRepositoryMock = (): Mocked Buffer.from(`${input.toString()} (hashed)`)), hashFile: vitest.fn().mockImplementation((input) => `${input} (file-hashed)`), randomBytesAsText: vitest.fn().mockReturnValue(Buffer.from('random-bytes').toString('base64')), + signJwt: vitest.fn().mockReturnValue('mock-jwt-token'), + verifyJwt: vitest.fn().mockImplementation((token) => ({ verified: true, token })), }; }; diff --git a/server/test/repositories/storage.repository.mock.ts b/server/test/repositories/storage.repository.mock.ts index 9752a39441..31451da82f 100644 --- a/server/test/repositories/storage.repository.mock.ts +++ b/server/test/repositories/storage.repository.mock.ts @@ -49,6 +49,7 @@ export const newStorageRepositoryMock = (): Mocked = T extends RepositoryInterface ? U : never; @@ -308,6 +312,7 @@ export const newTestService = ( oauth: automock(OAuthRepository, { args: [loggerMock] }), partner: automock(PartnerRepository, { strict: false }), person: automock(PersonRepository, { strict: false }), + plugin: automock(PluginRepository, { strict: true }), process: automock(ProcessRepository), search: automock(SearchRepository, { strict: false }), // eslint-disable-next-line no-sparse-arrays @@ -330,6 +335,7 @@ export const newTestService = ( view: automock(ViewRepository), // eslint-disable-next-line no-sparse-arrays websocket: automock(WebsocketRepository, { args: [, loggerMock], strict: false }), + workflow: automock(WorkflowRepository, { strict: true }), }; const sut = new Service( @@ -363,6 +369,7 @@ export const newTestService = ( overrides.ocr || (mocks.ocr as As), overrides.partner || (mocks.partner as As), overrides.person || (mocks.person as As), + overrides.plugin || (mocks.plugin as As), overrides.process || (mocks.process as As), overrides.search || (mocks.search as As), overrides.serverInfo || (mocks.serverInfo as As), @@ -381,6 +388,7 @@ export const newTestService = ( overrides.versionHistory || (mocks.versionHistory as As), overrides.view || (mocks.view as As), overrides.websocket || (mocks.websocket as As), + overrides.workflow || (mocks.workflow as As), ); return { diff --git a/web/src/lib/utils.ts b/web/src/lib/utils.ts index 87f0d7e7bf..100f807273 100644 --- a/web/src/lib/utils.ts +++ b/web/src/lib/utils.ts @@ -162,6 +162,7 @@ export const getQueueName = derived(t, ($t) => { [QueueName.Notifications]: $t('notifications'), [QueueName.BackupDatabase]: $t('admin.backup_database'), [QueueName.Ocr]: $t('admin.machine_learning_ocr'), + [QueueName.Workflow]: $t('workflow'), }; return names[name]; From e94eb5012f021577589ddb9bad4a35266f3d86aa Mon Sep 17 00:00:00 2001 From: Christian Date: Fri, 14 Nov 2025 22:11:47 +0100 Subject: [PATCH 073/300] feat(mobile): add to album from asset viewer (#23608) * feat: add action button in photo viewer for adding assets to albums, archiving, and moving to locked folders * fix: use const constructors for icons in action button menu * Update mobile/lib/presentation/widgets/action_buttons/add_action_button.widget.dart Co-authored-by: Brandon Wees * Update mobile/lib/presentation/widgets/asset_viewer/bottom_bar.widget.dart Co-authored-by: Brandon Wees * remove de translation * fixed PR comments: https://github.com/immich-app/immich/pull/23608 * menu styling * menu styling * i18n --------- Co-authored-by: Brandon Wees Co-authored-by: Alex --- i18n/en.json | 3 + .../add_action_button.widget.dart | 191 ++++++++++++++++++ .../archive_action_button.widget.dart | 47 +++-- ...e_to_lock_folder_action_button.widget.dart | 53 ++--- .../unarchive_action_button.widget.dart | 47 +++-- .../asset_viewer/bottom_bar.widget.dart | 10 +- 6 files changed, 279 insertions(+), 72 deletions(-) create mode 100644 mobile/lib/presentation/widgets/action_buttons/add_action_button.widget.dart diff --git a/i18n/en.json b/i18n/en.json index ce999793d4..6da205d85a 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -32,6 +32,7 @@ "add_to_album_toggle": "Toggle selection for {album}", "add_to_albums": "Add to albums", "add_to_albums_count": "Add to albums ({count})", + "add_to_bottom_bar": "Add to", "add_to_shared_album": "Add to shared album", "add_upload_to_stack": "Add upload to stack", "add_url": "Add URL", @@ -430,6 +431,7 @@ "age_months": "Age {months, plural, one {# month} other {# months}}", "age_year_months": "Age 1 year, {months, plural, one {# month} other {# months}}", "age_years": "{years, plural, other {Age #}}", + "album": "Album", "album_added": "Album added", "album_added_notification_setting_description": "Receive an email notification when you are added to a shared album", "album_cover_updated": "Album cover updated", @@ -1385,6 +1387,7 @@ "more": "More", "move": "Move", "move_off_locked_folder": "Move out of locked folder", + "move_to": "Move to", "move_to_lock_folder_action_prompt": "{count} added to the locked folder", "move_to_locked_folder": "Move to locked folder", "move_to_locked_folder_confirmation": "These photos and video will be removed from all albums, and only viewable from the locked folder", diff --git a/mobile/lib/presentation/widgets/action_buttons/add_action_button.widget.dart b/mobile/lib/presentation/widgets/action_buttons/add_action_button.widget.dart new file mode 100644 index 0000000000..9155d82753 --- /dev/null +++ b/mobile/lib/presentation/widgets/action_buttons/add_action_button.widget.dart @@ -0,0 +1,191 @@ +import 'package:easy_localization/easy_localization.dart'; +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; +import 'package:immich_mobile/extensions/build_context_extensions.dart'; +import 'package:immich_mobile/presentation/widgets/action_buttons/base_action_button.widget.dart'; +import 'package:immich_mobile/presentation/widgets/action_buttons/unarchive_action_button.widget.dart'; +import 'package:immich_mobile/providers/infrastructure/asset_viewer/current_asset.provider.dart'; +import 'package:immich_mobile/presentation/widgets/album/album_selector.widget.dart'; +import 'package:immich_mobile/providers/infrastructure/album.provider.dart'; +import 'package:immich_mobile/providers/routes.provider.dart'; +import 'package:immich_mobile/widgets/common/immich_toast.dart'; +import 'package:immich_mobile/providers/user.provider.dart'; + +import 'package:immich_mobile/domain/models/album/album.model.dart'; +import 'package:immich_mobile/domain/models/asset/base_asset.model.dart'; + +import 'package:immich_mobile/constants/enums.dart'; +import 'package:immich_mobile/presentation/widgets/action_buttons/archive_action_button.widget.dart'; +import 'package:immich_mobile/presentation/widgets/action_buttons/move_to_lock_folder_action_button.widget.dart'; +import 'package:immich_mobile/presentation/widgets/bottom_sheet/base_bottom_sheet.widget.dart'; + +enum AddToMenuItem { album, archive, unarchive, lockedFolder } + +class AddActionButton extends ConsumerWidget { + const AddActionButton({super.key}); + + Future _showAddOptions(BuildContext context, WidgetRef ref) async { + final asset = ref.read(currentAssetNotifier); + if (asset == null) return; + + final user = ref.read(currentUserProvider); + final isOwner = asset is RemoteAsset && asset.ownerId == user?.id; + final isInLockedView = ref.watch(inLockedViewProvider); + final isArchived = asset is RemoteAsset && asset.visibility == AssetVisibility.archive; + final hasRemote = asset is RemoteAsset; + final showArchive = isOwner && !isInLockedView && hasRemote && !isArchived; + final showUnarchive = isOwner && !isInLockedView && hasRemote && isArchived; + final menuItemHeight = 30.0; + + final List> items = [ + PopupMenuItem( + enabled: false, + textStyle: context.textTheme.labelMedium, + height: 40, + child: Text("add_to_bottom_bar".tr()), + ), + PopupMenuItem( + height: menuItemHeight, + value: AddToMenuItem.album, + child: ListTile(leading: const Icon(Icons.photo_album_outlined), title: Text("album".tr())), + ), + const PopupMenuDivider(), + PopupMenuItem(enabled: false, textStyle: context.textTheme.labelMedium, height: 40, child: Text("move_to".tr())), + if (isOwner) ...[ + if (showArchive) + PopupMenuItem( + height: menuItemHeight, + value: AddToMenuItem.archive, + child: ListTile(leading: const Icon(Icons.archive_outlined), title: Text("archive".tr())), + ), + if (showUnarchive) + PopupMenuItem( + height: menuItemHeight, + value: AddToMenuItem.unarchive, + child: ListTile(leading: const Icon(Icons.unarchive_outlined), title: Text("unarchive".tr())), + ), + PopupMenuItem( + height: menuItemHeight, + value: AddToMenuItem.lockedFolder, + child: ListTile(leading: const Icon(Icons.lock_outline), title: Text("locked_folder".tr())), + ), + ], + ]; + + final AddToMenuItem? selected = await showMenu( + context: context, + color: context.themeData.scaffoldBackgroundColor, + position: _menuPosition(context), + items: items, + ); + + if (selected == null) { + return; + } + + switch (selected) { + case AddToMenuItem.album: + _openAlbumSelector(context, ref); + break; + case AddToMenuItem.archive: + await performArchiveAction(context, ref, source: ActionSource.viewer); + break; + case AddToMenuItem.unarchive: + await performUnArchiveAction(context, ref, source: ActionSource.viewer); + break; + case AddToMenuItem.lockedFolder: + await performMoveToLockFolderAction(context, ref, source: ActionSource.viewer); + break; + } + } + + RelativeRect _menuPosition(BuildContext context) { + final renderObject = context.findRenderObject(); + if (renderObject is! RenderBox) { + return RelativeRect.fill; + } + + final size = renderObject.size; + final position = renderObject.localToGlobal(Offset.zero); + + return RelativeRect.fromLTRB(position.dx, position.dy - size.height - 200, position.dx + size.width, position.dy); + } + + void _openAlbumSelector(BuildContext context, WidgetRef ref) { + final currentAsset = ref.read(currentAssetNotifier); + if (currentAsset == null) { + ImmichToast.show(context: context, msg: "Cannot load asset information.", toastType: ToastType.error); + return; + } + + final List slivers = [ + AlbumSelector(onAlbumSelected: (album) => _addCurrentAssetToAlbum(context, ref, album)), + ]; + + showModalBottomSheet( + context: context, + isScrollControlled: true, + backgroundColor: Colors.transparent, + builder: (_) { + return BaseBottomSheet( + actions: const [], + slivers: slivers, + initialChildSize: 0.6, + minChildSize: 0.3, + maxChildSize: 0.95, + expand: false, + backgroundColor: context.isDarkTheme ? Colors.black : Colors.white, + ); + }, + ); + } + + Future _addCurrentAssetToAlbum(BuildContext context, WidgetRef ref, RemoteAlbum album) async { + final latest = ref.read(currentAssetNotifier); + + if (latest == null) { + ImmichToast.show(context: context, msg: "Cannot load asset information.", toastType: ToastType.error); + return; + } + + final addedCount = await ref.read(remoteAlbumProvider.notifier).addAssets(album.id, [latest.remoteId!]); + + if (!context.mounted) { + return; + } + + if (addedCount == 0) { + ImmichToast.show( + context: context, + msg: 'add_to_album_bottom_sheet_already_exists'.tr(namedArgs: {'album': album.name}), + ); + } else { + ImmichToast.show( + context: context, + msg: 'add_to_album_bottom_sheet_added'.tr(namedArgs: {'album': album.name}), + ); + } + + if (!context.mounted) { + return; + } + await Navigator.of(context).maybePop(); + } + + @override + Widget build(BuildContext context, WidgetRef ref) { + final asset = ref.watch(currentAssetNotifier); + if (asset == null) { + return const SizedBox.shrink(); + } + return Builder( + builder: (buttonContext) { + return BaseActionButton( + iconData: Icons.add, + label: "add_to_bottom_bar".tr(), + onPressed: () => _showAddOptions(buttonContext, ref), + ); + }, + ); + } +} diff --git a/mobile/lib/presentation/widgets/action_buttons/archive_action_button.widget.dart b/mobile/lib/presentation/widgets/action_buttons/archive_action_button.widget.dart index d30ba07d0c..290a19f584 100644 --- a/mobile/lib/presentation/widgets/action_buttons/archive_action_button.widget.dart +++ b/mobile/lib/presentation/widgets/action_buttons/archive_action_button.widget.dart @@ -10,33 +10,36 @@ import 'package:immich_mobile/providers/infrastructure/action.provider.dart'; import 'package:immich_mobile/providers/timeline/multiselect.provider.dart'; import 'package:immich_mobile/widgets/common/immich_toast.dart'; +// used to allow performing archive action from different sources (without duplicating code) +Future performArchiveAction(BuildContext context, WidgetRef ref, {required ActionSource source}) async { + if (!context.mounted) return; + + final result = await ref.read(actionProvider.notifier).archive(source); + ref.read(multiSelectProvider.notifier).reset(); + + if (source == ActionSource.viewer) { + EventStream.shared.emit(const ViewerReloadAssetEvent()); + } + + final successMessage = 'archive_action_prompt'.t(context: context, args: {'count': result.count.toString()}); + + if (context.mounted) { + ImmichToast.show( + context: context, + msg: result.success ? successMessage : 'scaffold_body_error_occurred'.t(context: context), + gravity: ToastGravity.BOTTOM, + toastType: result.success ? ToastType.success : ToastType.error, + ); + } +} + class ArchiveActionButton extends ConsumerWidget { final ActionSource source; const ArchiveActionButton({super.key, required this.source}); - void _onTap(BuildContext context, WidgetRef ref) async { - if (!context.mounted) { - return; - } - - final result = await ref.read(actionProvider.notifier).archive(source); - ref.read(multiSelectProvider.notifier).reset(); - - if (source == ActionSource.viewer) { - EventStream.shared.emit(const ViewerReloadAssetEvent()); - } - - final successMessage = 'archive_action_prompt'.t(context: context, args: {'count': result.count.toString()}); - - if (context.mounted) { - ImmichToast.show( - context: context, - msg: result.success ? successMessage : 'scaffold_body_error_occurred'.t(context: context), - gravity: ToastGravity.BOTTOM, - toastType: result.success ? ToastType.success : ToastType.error, - ); - } + Future _onTap(BuildContext context, WidgetRef ref) async { + await performArchiveAction(context, ref, source: source); } @override diff --git a/mobile/lib/presentation/widgets/action_buttons/move_to_lock_folder_action_button.widget.dart b/mobile/lib/presentation/widgets/action_buttons/move_to_lock_folder_action_button.widget.dart index 78b9e3cde6..ddc83cb383 100644 --- a/mobile/lib/presentation/widgets/action_buttons/move_to_lock_folder_action_button.widget.dart +++ b/mobile/lib/presentation/widgets/action_buttons/move_to_lock_folder_action_button.widget.dart @@ -10,36 +10,39 @@ import 'package:immich_mobile/providers/infrastructure/action.provider.dart'; import 'package:immich_mobile/providers/timeline/multiselect.provider.dart'; import 'package:immich_mobile/widgets/common/immich_toast.dart'; +// Reusable helper: move to locked folder from any source (e.g called from menu) +Future performMoveToLockFolderAction(BuildContext context, WidgetRef ref, {required ActionSource source}) async { + if (!context.mounted) return; + + final result = await ref.read(actionProvider.notifier).moveToLockFolder(source); + ref.read(multiSelectProvider.notifier).reset(); + + if (source == ActionSource.viewer) { + EventStream.shared.emit(const ViewerReloadAssetEvent()); + } + + final successMessage = 'move_to_lock_folder_action_prompt'.t( + context: context, + args: {'count': result.count.toString()}, + ); + + if (context.mounted) { + ImmichToast.show( + context: context, + msg: result.success ? successMessage : 'scaffold_body_error_occurred'.t(context: context), + gravity: ToastGravity.BOTTOM, + toastType: result.success ? ToastType.success : ToastType.error, + ); + } +} + class MoveToLockFolderActionButton extends ConsumerWidget { final ActionSource source; const MoveToLockFolderActionButton({super.key, required this.source}); - void _onTap(BuildContext context, WidgetRef ref) async { - if (!context.mounted) { - return; - } - - final result = await ref.read(actionProvider.notifier).moveToLockFolder(source); - ref.read(multiSelectProvider.notifier).reset(); - - if (source == ActionSource.viewer) { - EventStream.shared.emit(const ViewerReloadAssetEvent()); - } - - final successMessage = 'move_to_lock_folder_action_prompt'.t( - context: context, - args: {'count': result.count.toString()}, - ); - - if (context.mounted) { - ImmichToast.show( - context: context, - msg: result.success ? successMessage : 'scaffold_body_error_occurred'.t(context: context), - gravity: ToastGravity.BOTTOM, - toastType: result.success ? ToastType.success : ToastType.error, - ); - } + Future _onTap(BuildContext context, WidgetRef ref) async { + await performMoveToLockFolderAction(context, ref, source: source); } @override diff --git a/mobile/lib/presentation/widgets/action_buttons/unarchive_action_button.widget.dart b/mobile/lib/presentation/widgets/action_buttons/unarchive_action_button.widget.dart index b457a1b4ca..8b04a1b05d 100644 --- a/mobile/lib/presentation/widgets/action_buttons/unarchive_action_button.widget.dart +++ b/mobile/lib/presentation/widgets/action_buttons/unarchive_action_button.widget.dart @@ -1,3 +1,5 @@ +// dart +// File: `lib/presentation/widgets/action_buttons/unarchive_action_button.widget.dart` import 'package:flutter/material.dart'; import 'package:fluttertoast/fluttertoast.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; @@ -7,30 +9,39 @@ import 'package:immich_mobile/presentation/widgets/action_buttons/base_action_bu import 'package:immich_mobile/providers/infrastructure/action.provider.dart'; import 'package:immich_mobile/providers/timeline/multiselect.provider.dart'; import 'package:immich_mobile/widgets/common/immich_toast.dart'; +import 'package:immich_mobile/domain/utils/event_stream.dart'; +import 'package:immich_mobile/presentation/widgets/asset_viewer/asset_viewer.state.dart'; + +// used to allow performing unarchive action from different sources (without duplicating code) +Future performUnArchiveAction(BuildContext context, WidgetRef ref, {required ActionSource source}) async { + if (!context.mounted) return; + + final result = await ref.read(actionProvider.notifier).unArchive(source); + ref.read(multiSelectProvider.notifier).reset(); + + if (source == ActionSource.viewer) { + EventStream.shared.emit(const ViewerReloadAssetEvent()); + } + + final successMessage = 'unarchive_action_prompt'.t(context: context, args: {'count': result.count.toString()}); + + if (context.mounted) { + ImmichToast.show( + context: context, + msg: result.success ? successMessage : 'scaffold_body_error_occurred'.t(context: context), + gravity: ToastGravity.BOTTOM, + toastType: result.success ? ToastType.success : ToastType.error, + ); + } +} class UnArchiveActionButton extends ConsumerWidget { final ActionSource source; const UnArchiveActionButton({super.key, required this.source}); - void _onTap(BuildContext context, WidgetRef ref) async { - if (!context.mounted) { - return; - } - - final result = await ref.read(actionProvider.notifier).unArchive(source); - ref.read(multiSelectProvider.notifier).reset(); - - final successMessage = 'unarchive_action_prompt'.t(context: context, args: {'count': result.count.toString()}); - - if (context.mounted) { - ImmichToast.show( - context: context, - msg: result.success ? successMessage : 'scaffold_body_error_occurred'.t(context: context), - gravity: ToastGravity.BOTTOM, - toastType: result.success ? ToastType.success : ToastType.error, - ); - } + Future _onTap(BuildContext context, WidgetRef ref) async { + await performUnArchiveAction(context, ref, source: source); } @override diff --git a/mobile/lib/presentation/widgets/asset_viewer/bottom_bar.widget.dart b/mobile/lib/presentation/widgets/asset_viewer/bottom_bar.widget.dart index 3111512823..14c03ad637 100644 --- a/mobile/lib/presentation/widgets/asset_viewer/bottom_bar.widget.dart +++ b/mobile/lib/presentation/widgets/asset_viewer/bottom_bar.widget.dart @@ -3,13 +3,12 @@ import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:immich_mobile/constants/enums.dart'; import 'package:immich_mobile/domain/models/asset/base_asset.model.dart'; import 'package:immich_mobile/extensions/build_context_extensions.dart'; -import 'package:immich_mobile/presentation/widgets/action_buttons/archive_action_button.widget.dart'; import 'package:immich_mobile/presentation/widgets/action_buttons/delete_action_button.widget.dart'; import 'package:immich_mobile/presentation/widgets/action_buttons/delete_local_action_button.widget.dart'; import 'package:immich_mobile/presentation/widgets/action_buttons/edit_image_action_button.widget.dart'; import 'package:immich_mobile/presentation/widgets/action_buttons/share_action_button.widget.dart'; -import 'package:immich_mobile/presentation/widgets/action_buttons/unarchive_action_button.widget.dart'; import 'package:immich_mobile/presentation/widgets/action_buttons/upload_action_button.widget.dart'; +import 'package:immich_mobile/presentation/widgets/action_buttons/add_action_button.widget.dart'; import 'package:immich_mobile/presentation/widgets/asset_viewer/asset_viewer.state.dart'; import 'package:immich_mobile/providers/infrastructure/asset_viewer/current_asset.provider.dart'; import 'package:immich_mobile/providers/infrastructure/readonly_mode.provider.dart'; @@ -34,7 +33,6 @@ class ViewerBottomBar extends ConsumerWidget { int opacity = ref.watch(assetViewerProvider.select((state) => state.backgroundOpacity)); final showControls = ref.watch(assetViewerProvider.select((s) => s.showingControls)); final isInLockedView = ref.watch(inLockedViewProvider); - final isArchived = asset is RemoteAsset && asset.visibility == AssetVisibility.archive; if (!showControls) { opacity = 0; @@ -44,11 +42,9 @@ class ViewerBottomBar extends ConsumerWidget { const ShareActionButton(source: ActionSource.viewer), if (asset.isLocalOnly) const UploadActionButton(source: ActionSource.viewer), if (asset.type == AssetType.image) const EditImageActionButton(), + if (asset.hasRemote) const AddActionButton(), + if (isOwner) ...[ - if (asset.hasRemote && isOwner && isArchived) - const UnArchiveActionButton(source: ActionSource.viewer) - else - const ArchiveActionButton(source: ActionSource.viewer), asset.isLocalOnly ? const DeleteLocalActionButton(source: ActionSource.viewer) : const DeleteActionButton(source: ActionSource.viewer, showConfirmation: true), From 1086f221663bfc1957bf5140109b8b6db2131fdb Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Mon, 17 Nov 2025 11:24:59 +0000 Subject: [PATCH 074/300] fix: devcontainer server not starting due to missing plugins mount (#23948) --- .devcontainer/server/container-compose-overrides.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.devcontainer/server/container-compose-overrides.yml b/.devcontainer/server/container-compose-overrides.yml index 3be5cd8f3f..cc2b0c907b 100644 --- a/.devcontainer/server/container-compose-overrides.yml +++ b/.devcontainer/server/container-compose-overrides.yml @@ -21,6 +21,7 @@ services: - app-node_modules:/usr/src/app/node_modules - sveltekit:/usr/src/app/web/.svelte-kit - coverage:/usr/src/app/web/coverage + - ../plugins:/build/corePlugin immich-web: env_file: !reset [] immich-machine-learning: From af22f9b014524975ab1d19f52848ce00a4517276 Mon Sep 17 00:00:00 2001 From: 100daysummer <138024460+100daysummer@users.noreply.github.com> Date: Mon, 17 Nov 2025 15:49:32 +0200 Subject: [PATCH 075/300] fix: word wrap on custom link preview (#23942) Word break fix in create link Adds the "break-all" tailwind style to the slug text under the custom link text box --- web/src/lib/modals/SharedLinkCreateModal.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/lib/modals/SharedLinkCreateModal.svelte b/web/src/lib/modals/SharedLinkCreateModal.svelte index f2fcacd17e..40fc21ccc2 100644 --- a/web/src/lib/modals/SharedLinkCreateModal.svelte +++ b/web/src/lib/modals/SharedLinkCreateModal.svelte @@ -68,7 +68,7 @@ {#if slug} - /s/{encodeURIComponent(slug)} + /s/{encodeURIComponent(slug)} {/if} From eeee5147cc92f79972b50716fd862c461c039013 Mon Sep 17 00:00:00 2001 From: Yaros Date: Mon, 17 Nov 2025 17:17:04 +0100 Subject: [PATCH 076/300] fix(mobile): delete from device warning shows incorrectly (#23935) fix(mobile): delete warning on multiple assets --- mobile/lib/providers/infrastructure/action.provider.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mobile/lib/providers/infrastructure/action.provider.dart b/mobile/lib/providers/infrastructure/action.provider.dart index 9467f63483..659bd05db9 100644 --- a/mobile/lib/providers/infrastructure/action.provider.dart +++ b/mobile/lib/providers/infrastructure/action.provider.dart @@ -264,9 +264,8 @@ class ActionNotifier extends Notifier { } Future deleteLocal(ActionSource source, BuildContext context) async { - // Always perform the operation if there is only one merged asset final assets = _getAssets(source); - bool? backedUpOnly = assets.length == 1 && assets.first.storage == AssetState.merged + bool? backedUpOnly = assets.every((asset) => asset.storage == AssetState.merged) ? true : await showDialog( context: context, From ce82e27f4b14358bc788d12ce3191eccf0da8643 Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Mon, 17 Nov 2025 11:26:30 -0500 Subject: [PATCH 077/300] fix: workflow medium tests (#23952) --- .../specs/services/workflow.service.spec.ts | 89 ++++++++----------- 1 file changed, 37 insertions(+), 52 deletions(-) diff --git a/server/test/medium/specs/services/workflow.service.spec.ts b/server/test/medium/specs/services/workflow.service.spec.ts index af12019ef6..aaf1c8b9ec 100644 --- a/server/test/medium/specs/services/workflow.service.spec.ts +++ b/server/test/medium/specs/services/workflow.service.spec.ts @@ -7,6 +7,7 @@ import { WorkflowRepository } from 'src/repositories/workflow.repository'; import { DB } from 'src/schema'; import { WorkflowService } from 'src/services/workflow.service'; import { newMediumService } from 'test/medium.factory'; +import { factory } from 'test/small.factory'; import { getKyselyDB } from 'test/utils'; let defaultDatabase: Kysely; @@ -77,7 +78,7 @@ describe(WorkflowService.name, () => { const { sut, ctx } = setup(); const { user } = await ctx.newUser(); - const auth = { user: { id: user.id } } as any; + const auth = factory.auth({ user }); const workflow = await sut.create(auth, { triggerType: PluginTriggerType.AssetCreate, @@ -103,7 +104,7 @@ describe(WorkflowService.name, () => { it('should create a workflow with filters and actions', async () => { const { sut, ctx } = setup(); const { user } = await ctx.newUser(); - const auth = { user: { id: user.id } } as any; + const auth = factory.auth({ user }); const workflow = await sut.create(auth, { triggerType: PluginTriggerType.AssetCreate, @@ -154,7 +155,7 @@ describe(WorkflowService.name, () => { it('should throw error when creating workflow with invalid filter', async () => { const { sut, ctx } = setup(); const { user } = await ctx.newUser(); - const auth = { user: { id: user.id } } as any; + const auth = factory.auth({ user }); await expect( sut.create(auth, { @@ -162,12 +163,7 @@ describe(WorkflowService.name, () => { name: 'invalid-workflow', description: 'A workflow with invalid filter', enabled: true, - filters: [ - { - filterId: '66da82df-e424-4bf4-b6f3-5d8e71620dae', - filterConfig: { key: 'value' }, - }, - ], + filters: [{ filterId: factory.uuid(), filterConfig: { key: 'value' } }], actions: [], }), ).rejects.toThrow('Invalid filter ID'); @@ -176,7 +172,7 @@ describe(WorkflowService.name, () => { it('should throw error when creating workflow with invalid action', async () => { const { sut, ctx } = setup(); const { user } = await ctx.newUser(); - const auth = { user: { id: user.id } } as any; + const auth = factory.auth({ user }); await expect( sut.create(auth, { @@ -185,12 +181,7 @@ describe(WorkflowService.name, () => { description: 'A workflow with invalid action', enabled: true, filters: [], - actions: [ - { - actionId: '66da82df-e424-4bf4-b6f3-5d8e71620dae', - actionConfig: { action: 'test' }, - }, - ], + actions: [{ actionId: factory.uuid(), actionConfig: { action: 'test' } }], }), ).rejects.toThrow('Invalid action ID'); }); @@ -198,7 +189,7 @@ describe(WorkflowService.name, () => { it('should throw error when filter does not support trigger context', async () => { const { sut, ctx } = setup(); const { user } = await ctx.newUser(); - const auth = { user: { id: user.id } } as any; + const auth = factory.auth({ user }); // Create a plugin with a filter that only supports Album context const pluginRepo = new PluginRepository(defaultDatabase); @@ -238,7 +229,7 @@ describe(WorkflowService.name, () => { it('should throw error when action does not support trigger context', async () => { const { sut, ctx } = setup(); const { user } = await ctx.newUser(); - const auth = { user: { id: user.id } } as any; + const auth = factory.auth({ user }); // Create a plugin with an action that only supports Person context const pluginRepo = new PluginRepository(defaultDatabase); @@ -278,7 +269,7 @@ describe(WorkflowService.name, () => { it('should create workflow with multiple filters and actions in correct order', async () => { const { sut, ctx } = setup(); const { user } = await ctx.newUser(); - const auth = { user: { id: user.id } } as any; + const auth = factory.auth({ user }); const workflow = await sut.create(auth, { triggerType: PluginTriggerType.AssetCreate, @@ -313,7 +304,7 @@ describe(WorkflowService.name, () => { it('should return all workflows for a user', async () => { const { sut, ctx } = setup(); const { user } = await ctx.newUser(); - const auth = { user: { id: user.id } } as any; + const auth = factory.auth({ user }); const workflow1 = await sut.create(auth, { triggerType: PluginTriggerType.AssetCreate, @@ -347,7 +338,7 @@ describe(WorkflowService.name, () => { it('should return empty array when user has no workflows', async () => { const { sut, ctx } = setup(); const { user } = await ctx.newUser(); - const auth = { user: { id: user.id } } as any; + const auth = factory.auth({ user }); const workflows = await sut.getAll(auth); @@ -358,8 +349,8 @@ describe(WorkflowService.name, () => { const { sut, ctx } = setup(); const { user: user1 } = await ctx.newUser(); const { user: user2 } = await ctx.newUser(); - const auth1 = { user: { id: user1.id } } as any; - const auth2 = { user: { id: user2.id } } as any; + const auth1 = factory.auth({ user: user1 }); + const auth2 = factory.auth({ user: user2 }); await sut.create(auth1, { triggerType: PluginTriggerType.AssetCreate, @@ -380,7 +371,7 @@ describe(WorkflowService.name, () => { it('should return a specific workflow by id', async () => { const { sut, ctx } = setup(); const { user } = await ctx.newUser(); - const auth = { user: { id: user.id } } as any; + const auth = factory.auth({ user }); const created = await sut.create(auth, { triggerType: PluginTriggerType.AssetCreate, @@ -406,7 +397,7 @@ describe(WorkflowService.name, () => { it('should throw error when workflow does not exist', async () => { const { sut, ctx } = setup(); const { user } = await ctx.newUser(); - const auth = { user: { id: user.id } } as any; + const auth = factory.auth({ user }); await expect(sut.get(auth, '66da82df-e424-4bf4-b6f3-5d8e71620dae')).rejects.toThrow(); }); @@ -415,8 +406,8 @@ describe(WorkflowService.name, () => { const { sut, ctx } = setup(); const { user: user1 } = await ctx.newUser(); const { user: user2 } = await ctx.newUser(); - const auth1 = { user: { id: user1.id } } as any; - const auth2 = { user: { id: user2.id } } as any; + const auth1 = factory.auth({ user: user1 }); + const auth2 = factory.auth({ user: user2 }); const workflow = await sut.create(auth1, { triggerType: PluginTriggerType.AssetCreate, @@ -435,7 +426,7 @@ describe(WorkflowService.name, () => { it('should update workflow basic fields', async () => { const { sut, ctx } = setup(); const { user } = await ctx.newUser(); - const auth = { user: { id: user.id } } as any; + const auth = factory.auth({ user }); const created = await sut.create(auth, { triggerType: PluginTriggerType.AssetCreate, @@ -463,7 +454,7 @@ describe(WorkflowService.name, () => { it('should update workflow filters', async () => { const { sut, ctx } = setup(); const { user } = await ctx.newUser(); - const auth = { user: { id: user.id } } as any; + const auth = factory.auth({ user }); const created = await sut.create(auth, { triggerType: PluginTriggerType.AssetCreate, @@ -489,7 +480,7 @@ describe(WorkflowService.name, () => { it('should update workflow actions', async () => { const { sut, ctx } = setup(); const { user } = await ctx.newUser(); - const auth = { user: { id: user.id } } as any; + const auth = factory.auth({ user }); const created = await sut.create(auth, { triggerType: PluginTriggerType.AssetCreate, @@ -515,7 +506,7 @@ describe(WorkflowService.name, () => { it('should clear filters when updated with empty array', async () => { const { sut, ctx } = setup(); const { user } = await ctx.newUser(); - const auth = { user: { id: user.id } } as any; + const auth = factory.auth({ user }); const created = await sut.create(auth, { triggerType: PluginTriggerType.AssetCreate, @@ -536,7 +527,7 @@ describe(WorkflowService.name, () => { it('should throw error when no fields to update', async () => { const { sut, ctx } = setup(); const { user } = await ctx.newUser(); - const auth = { user: { id: user.id } } as any; + const auth = factory.auth({ user }); const created = await sut.create(auth, { triggerType: PluginTriggerType.AssetCreate, @@ -553,21 +544,17 @@ describe(WorkflowService.name, () => { it('should throw error when updating non-existent workflow', async () => { const { sut, ctx } = setup(); const { user } = await ctx.newUser(); - const auth = { user: { id: user.id } } as any; + const auth = factory.auth({ user }); - await expect( - sut.update(auth, 'non-existent-id', { - name: 'updated-name', - }), - ).rejects.toThrow(); + await expect(sut.update(auth, factory.uuid(), { name: 'updated-name' })).rejects.toThrow(); }); it('should throw error when user does not have access to update workflow', async () => { const { sut, ctx } = setup(); const { user: user1 } = await ctx.newUser(); const { user: user2 } = await ctx.newUser(); - const auth1 = { user: { id: user1.id } } as any; - const auth2 = { user: { id: user2.id } } as any; + const auth1 = factory.auth({ user: user1 }); + const auth2 = factory.auth({ user: user2 }); const workflow = await sut.create(auth1, { triggerType: PluginTriggerType.AssetCreate, @@ -588,7 +575,7 @@ describe(WorkflowService.name, () => { it('should throw error when updating with invalid filter', async () => { const { sut, ctx } = setup(); const { user } = await ctx.newUser(); - const auth = { user: { id: user.id } } as any; + const auth = factory.auth({ user }); const created = await sut.create(auth, { triggerType: PluginTriggerType.AssetCreate, @@ -601,7 +588,7 @@ describe(WorkflowService.name, () => { await expect( sut.update(auth, created.id, { - filters: [{ filterId: 'invalid-filter-id', filterConfig: {} }], + filters: [{ filterId: factory.uuid(), filterConfig: {} }], }), ).rejects.toThrow(); }); @@ -609,7 +596,7 @@ describe(WorkflowService.name, () => { it('should throw error when updating with invalid action', async () => { const { sut, ctx } = setup(); const { user } = await ctx.newUser(); - const auth = { user: { id: user.id } } as any; + const auth = factory.auth({ user }); const created = await sut.create(auth, { triggerType: PluginTriggerType.AssetCreate, @@ -621,9 +608,7 @@ describe(WorkflowService.name, () => { }); await expect( - sut.update(auth, created.id, { - actions: [{ actionId: 'invalid-action-id', actionConfig: {} }], - }), + sut.update(auth, created.id, { actions: [{ actionId: factory.uuid(), actionConfig: {} }] }), ).rejects.toThrow(); }); }); @@ -632,7 +617,7 @@ describe(WorkflowService.name, () => { it('should delete a workflow', async () => { const { sut, ctx } = setup(); const { user } = await ctx.newUser(); - const auth = { user: { id: user.id } } as any; + const auth = factory.auth({ user }); const workflow = await sut.create(auth, { triggerType: PluginTriggerType.AssetCreate, @@ -651,7 +636,7 @@ describe(WorkflowService.name, () => { it('should delete workflow with filters and actions', async () => { const { sut, ctx } = setup(); const { user } = await ctx.newUser(); - const auth = { user: { id: user.id } } as any; + const auth = factory.auth({ user }); const workflow = await sut.create(auth, { triggerType: PluginTriggerType.AssetCreate, @@ -670,17 +655,17 @@ describe(WorkflowService.name, () => { it('should throw error when deleting non-existent workflow', async () => { const { sut, ctx } = setup(); const { user } = await ctx.newUser(); - const auth = { user: { id: user.id } } as any; + const auth = factory.auth({ user }); - await expect(sut.delete(auth, 'non-existent-id')).rejects.toThrow(); + await expect(sut.delete(auth, factory.uuid())).rejects.toThrow(); }); it('should throw error when user does not have access to delete workflow', async () => { const { sut, ctx } = setup(); const { user: user1 } = await ctx.newUser(); const { user: user2 } = await ctx.newUser(); - const auth1 = { user: { id: user1.id } } as any; - const auth2 = { user: { id: user2.id } } as any; + const auth1 = factory.auth({ user: user1 }); + const auth2 = factory.auth({ user: user2 }); const workflow = await sut.create(auth1, { triggerType: PluginTriggerType.AssetCreate, From 15e00f82f0c226c11b0363c1088a5b36f7d40524 Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Mon, 17 Nov 2025 17:15:44 +0000 Subject: [PATCH 078/300] feat: maintenance mode (#23431) * feat: add a `maintenance.enabled` config flag * feat: implement graceful restart feat: restart when maintenance config is toggled * feat: boot a stripped down maintenance api if enabled * feat: cli command to toggle maintenance mode * chore: fallback IMMICH_SERVER_URL environment variable in process * chore: add additional routes to maintenance controller * fix: don't wait for nest application to close to finish request response * chore: add a failsafe on restart to prevent other exit codes from preventing restart * feat: redirect into/from maintenance page * refactor: use system metadata for maintenance status * refactor: wait on WebSocket connection to refresh * feat: broadcast websocket event on server restart refactor: listen to WS instead of polling * refactor: bubble up maintenance information instead of hijacking in fetch function feat: show modal when server is restarting * chore: increase timeout for ungraceful restart * refactor: deduplicate code between api/maintenance workers * fix: skip config check if database is not initialised * fix: add `maintenanceMode` field to system config test * refactor: move maintenance resolution code to static method in service * chore: clean up linter issues * chore: generate dart openapi * refactor: use try{} block for maintenance mode check * fix: logic error in server redirect * chore: include `maintenanceMode` key in e2e test * chore: add i18n entries for maintenance screens * chore: remove negated condition from hook * fix: should set default value not override in service * fix: minor error in page * feat: initial draft of maintenance module, repo., worker controller, worker service * refactor: move broadcast code into notification service * chore: connect websocket on client if in maintenance * chore: set maintenance module app name * refactor: rename repository to include worker chore: configure websocket adapter * feat: reimplement maintenance mode exit with new module * refactor: add a constant enum for ExitCode * refactor: remove redundant route for maintenance * refactor: only spin up kysely on boot (rather than a Nest app) * refactor(web): move redirect logic into +layout file where modal is setup * feat: add Maintenance permission * refactor: merge common code between api/maintenance * fix: propagate changes from the CLI to servers * feat: maintenance authentication guard * refactor: unify maintenance code into repository feat: add a step to generate maintenance mode token * feat: jwt auth for maintenance * refactor: switch from nest jwt to just jsonwebtokens * feat: log into maintenance mode from CLI command * refactor: use `secret` instead of `token` in jwt terminology chore: log maintenance mode login URL on boot chore: don't make CLI actions reload if already in target state * docs: initial draft for maintenance mode page * refactor: always validate the maintenance auth on the server * feat: add a link to maintenance mode documentation * feat: redirect users back to the last page they were on when exiting maintenance * refactor: provide closeFn in both maintenance repos. * refactor: ensure the user is also redirected by the server * chore: swap jsonwebtoken for jose * refactor: introduce AppRestartEvent w/o secret passing * refactor: use navigation goto * refactor: use `continue` instead of `next` * chore: lint fixes for server * chore: lint fixes for web * test: add mock for maintenance repository * test: add base service dependency to maintenance * chore: remove @types/jsonwebtoken * refactor: close database connection after startup check * refactor: use `request#auth` key * refactor: use service instead of repository chore: read token from cookie if possible chore: rename client event to AppRestartV1 * refactor: more concise redirect logic on web * refactor: move redirect check into utils refactor: update translation strings to be more sensible * refactor: always validate login (i.e. check cookie) * refactor: lint, open-api, remove old dto * refactor: encode at point of usage * refactor: remove business logic from repositories * chore: fix server/web lints * refactor: remove repository mock * chore: fix formatting * test: write service mocks for maintenance mode * test: write cli service tests * fix: catch errors when closing app * fix: always report no maintenance when usual API is available * test: api e2e maintenance spec * chore: add response builder * chore: add helper to set maint. auth cookie * feat: add SSR to maintenance API * test(e2e): write web spec for maintenance * chore: clean up lint issues * chore: format files * feat: perform 302 redirect at server level during maintenance * fix: keep trying to stop immich until it succeeds (CLI issue) * chore: lint/format * refactor: annotate references to other services in worker service * chore: lint * refactor: remove unnecessary await Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com> * refactor: move static methods into util * refactor: assert secret exists in maintenance worker * refactor: remove assertion which isn't necessary anymore * refactor: remove assertion * refactor: remove outer try {} catch block from loadMaintenanceAuth * refactor: undo earlier change to vite.config.ts * chore: update tests due to refactors * revert: vite.config.ts * test: expect string jwt * chore: move blanket exceptions into controllers * test: update tests according with last change * refactor: use respondWithCookie refactor: merge start/end into one route refactor: rename MaintenanceRepository to AppRepository chore: use new ApiTag/Endpoint refactor: apply other requested changes * chore: regenerate openapi * chore: lint/format * chore: remove secureOnly for maint. cookie * refactor: move maintenance worker code into src/maintenance\nfix: various test fixes * refactor: use `action` property for setting maint. mode * refactor: remove Websocket#restartApp in favour of individual methods * chore: incomplete commit * chore: remove stray log * fix: call exitApp from maintenance worker on exit * fix: add app repository mock * fix: ensure maintenance cookies are secure * fix: run playwright tests over secure context (localhost) * test: update other references to 127.0.0.1 * refactor: use serverSideEmitWithAck * chore: correct the logic in tryTerminate * test: juggle cookies ourselves * chore: fix lint error for e2e spec * chore: format e2e test * fix: set cookie secure/non-secure depending on context * chore: format files --------- Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com> --- docs/docs/administration/maintenance-mode.md | 18 ++ docs/docs/administration/server-commands.md | 41 +++-- e2e/src/api/specs/maintenance.e2e-spec.ts | 172 ++++++++++++++++++ e2e/src/api/specs/server.e2e-spec.ts | 1 + e2e/src/responses.ts | 6 + e2e/src/utils.ts | 38 ++++ e2e/src/web/specs/maintenance.e2e-spec.ts | 52 ++++++ i18n/en.json | 11 ++ mobile/openapi/README.md | 6 + mobile/openapi/lib/api.dart | 5 + .../lib/api/maintenance_admin_api.dart | 122 +++++++++++++ mobile/openapi/lib/api_client.dart | 8 + mobile/openapi/lib/api_helper.dart | 3 + .../openapi/lib/model/maintenance_action.dart | 85 +++++++++ .../lib/model/maintenance_auth_dto.dart | 99 ++++++++++ .../lib/model/maintenance_login_dto.dart | 108 +++++++++++ mobile/openapi/lib/model/permission.dart | 3 + .../openapi/lib/model/server_config_dto.dart | 10 +- .../lib/model/set_maintenance_mode_dto.dart | 99 ++++++++++ open-api/immich-openapi-specs.json | 144 +++++++++++++++ open-api/typescript-sdk/src/fetch-client.ts | 42 +++++ pnpm-lock.yaml | 3 + server/package.json | 1 + server/src/app.common.ts | 87 +++++++++ server/src/app.module.ts | 54 ++++-- server/src/commands/index.ts | 3 + server/src/commands/maintenance-mode.ts | 37 ++++ server/src/constants.ts | 1 + server/src/controllers/index.ts | 2 + .../src/controllers/maintenance.controller.ts | 49 +++++ server/src/dtos/maintenance.dto.ts | 16 ++ server/src/dtos/server.dto.ts | 1 + server/src/enum.ts | 15 ++ server/src/main.ts | 169 ++++++++++++----- .../src/maintenance/maintenance-auth.guard.ts | 58 ++++++ .../maintenance-websocket.repository.ts | 59 ++++++ .../maintenance-worker.controller.ts | 43 +++++ .../maintenance-worker.service.spec.ts | 128 +++++++++++++ .../maintenance/maintenance-worker.service.ts | 161 ++++++++++++++++ server/src/repositories/app.repository.ts | 20 ++ server/src/repositories/event.repository.ts | 5 + server/src/repositories/index.ts | 2 + .../src/repositories/websocket.repository.ts | 5 +- server/src/services/api.service.ts | 2 +- server/src/services/base.service.ts | 3 + server/src/services/cli.service.spec.ts | 78 ++++++++ server/src/services/cli.service.ts | 61 +++++++ server/src/services/index.ts | 2 + .../src/services/maintenance.service.spec.ts | 109 +++++++++++ server/src/services/maintenance.service.ts | 53 ++++++ server/src/services/notification.service.ts | 9 + server/src/services/server.service.spec.ts | 1 + server/src/services/server.service.ts | 1 + server/src/types.ts | 2 + server/src/utils/maintenance.ts | 74 ++++++++ server/src/utils/response.ts | 1 + server/src/workers/api.ts | 65 +------ server/src/workers/maintenance.ts | 29 +++ server/src/workers/microservices.ts | 2 + server/test/utils.ts | 18 +- .../admin-settings/MaintenanceSettings.svelte | 35 ++++ web/src/lib/constants.ts | 2 + .../lib/modals/ServerRestartingModal.svelte | 16 ++ web/src/lib/stores/maintenance.store.ts | 4 + web/src/lib/stores/websocket.ts | 17 +- web/src/lib/utils/maintenance.ts | 33 ++++ web/src/lib/utils/server.ts | 5 +- web/src/routes/+layout.svelte | 28 ++- web/src/routes/+layout.ts | 11 +- web/src/routes/+page.ts | 5 + .../routes/admin/system-settings/+page.svelte | 9 + web/src/routes/maintenance/+page.svelte | 55 ++++++ web/src/routes/maintenance/+page.ts | 6 + 73 files changed, 2592 insertions(+), 136 deletions(-) create mode 100644 docs/docs/administration/maintenance-mode.md create mode 100644 e2e/src/api/specs/maintenance.e2e-spec.ts create mode 100644 e2e/src/web/specs/maintenance.e2e-spec.ts create mode 100644 mobile/openapi/lib/api/maintenance_admin_api.dart create mode 100644 mobile/openapi/lib/model/maintenance_action.dart create mode 100644 mobile/openapi/lib/model/maintenance_auth_dto.dart create mode 100644 mobile/openapi/lib/model/maintenance_login_dto.dart create mode 100644 mobile/openapi/lib/model/set_maintenance_mode_dto.dart create mode 100644 server/src/app.common.ts create mode 100644 server/src/commands/maintenance-mode.ts create mode 100644 server/src/controllers/maintenance.controller.ts create mode 100644 server/src/dtos/maintenance.dto.ts create mode 100644 server/src/maintenance/maintenance-auth.guard.ts create mode 100644 server/src/maintenance/maintenance-websocket.repository.ts create mode 100644 server/src/maintenance/maintenance-worker.controller.ts create mode 100644 server/src/maintenance/maintenance-worker.service.spec.ts create mode 100644 server/src/maintenance/maintenance-worker.service.ts create mode 100644 server/src/repositories/app.repository.ts create mode 100644 server/src/services/maintenance.service.spec.ts create mode 100644 server/src/services/maintenance.service.ts create mode 100644 server/src/utils/maintenance.ts create mode 100644 server/src/workers/maintenance.ts create mode 100644 web/src/lib/components/admin-settings/MaintenanceSettings.svelte create mode 100644 web/src/lib/modals/ServerRestartingModal.svelte create mode 100644 web/src/lib/stores/maintenance.store.ts create mode 100644 web/src/lib/utils/maintenance.ts create mode 100644 web/src/routes/maintenance/+page.svelte create mode 100644 web/src/routes/maintenance/+page.ts diff --git a/docs/docs/administration/maintenance-mode.md b/docs/docs/administration/maintenance-mode.md new file mode 100644 index 0000000000..300c27ca40 --- /dev/null +++ b/docs/docs/administration/maintenance-mode.md @@ -0,0 +1,18 @@ +# Maintenance Mode + +Maintenance mode is used to perform administrative tasks such as restoring backups to Immich. + +You can enter maintenance mode by either: + +- Selecting "enable maintenance mode" in system settings in administration. +- Running the enable maintenance mode [administration command](./server-commands.md). + +## Logging in during maintenance + +Maintenance mode uses a separate login system which is handled automatically behind the scenes in most cases. Enabling maintenance mode in settings will automatically log you into maintenance mode when the server comes back up. + +If you find that you've been logged out, you can: + +- Open the logs for the Immich server and look for _"🚧 Immich is in maintenance mode, you can log in using the following URL:"_ +- Run the enable maintenance mode [administration command](./server-commands.md) again, this will give you a new URL to login with. +- Run the disable maintenance mode [administration command](./server-commands.md) then re-enter through system settings. diff --git a/docs/docs/administration/server-commands.md b/docs/docs/administration/server-commands.md index 3838635c24..8c58baac17 100644 --- a/docs/docs/administration/server-commands.md +++ b/docs/docs/administration/server-commands.md @@ -2,17 +2,19 @@ The `immich-server` docker image comes preinstalled with an administrative CLI (`immich-admin`) that supports the following commands: -| Command | Description | -| ------------------------ | ------------------------------------------------------------- | -| `help` | Display help | -| `reset-admin-password` | Reset the password for the admin user | -| `disable-password-login` | Disable password login | -| `enable-password-login` | Enable password login | -| `enable-oauth-login` | Enable OAuth login | -| `disable-oauth-login` | Disable OAuth login | -| `list-users` | List Immich users | -| `version` | Print Immich version | -| `change-media-location` | Change database file paths to align with a new media location | +| Command | Description | +| -------------------------- | ------------------------------------------------------------- | +| `help` | Display help | +| `reset-admin-password` | Reset the password for the admin user | +| `disable-password-login` | Disable password login | +| `enable-password-login` | Enable password login | +| `disable-maintenance-mode` | Disable maintenance mode | +| `enable-maintenance-mode` | Enable maintenance mode | +| `enable-oauth-login` | Enable OAuth login | +| `disable-oauth-login` | Disable OAuth login | +| `list-users` | List Immich users | +| `version` | Print Immich version | +| `change-media-location` | Change database file paths to align with a new media location | ## How to run a command @@ -47,6 +49,23 @@ immich-admin enable-password-login Password login has been enabled. ``` +Disable Maintenance Mode + +``` +immich-admin disable-maintenace-mode +Maintenance mode has been disabled. +``` + +Enable Maintenance Mode + +``` +immich-admin enable-maintenance-mode +Maintenance mode has been enabled. + +Log in using the following URL: +https://my.immich.app/maintenance?token= +``` + Enable OAuth login ``` diff --git a/e2e/src/api/specs/maintenance.e2e-spec.ts b/e2e/src/api/specs/maintenance.e2e-spec.ts new file mode 100644 index 0000000000..b6c7540bc5 --- /dev/null +++ b/e2e/src/api/specs/maintenance.e2e-spec.ts @@ -0,0 +1,172 @@ +import { LoginResponseDto } from '@immich/sdk'; +import { createUserDto } from 'src/fixtures'; +import { errorDto } from 'src/responses'; +import { app, utils } from 'src/utils'; +import request from 'supertest'; +import { beforeAll, describe, expect, it } from 'vitest'; + +describe('/admin/maintenance', () => { + let cookie: string | undefined; + let admin: LoginResponseDto; + let nonAdmin: LoginResponseDto; + + beforeAll(async () => { + await utils.resetDatabase(); + admin = await utils.adminSetup(); + nonAdmin = await utils.userSetup(admin.accessToken, createUserDto.user1); + }); + + // => outside of maintenance mode + + describe('GET ~/server/config', async () => { + it('should indicate we are out of maintenance mode', async () => { + const { status, body } = await request(app).get('/server/config'); + expect(status).toBe(200); + expect(body.maintenanceMode).toBeFalsy(); + }); + }); + + describe('POST /login', async () => { + it('should not work out of maintenance mode', async () => { + const { status, body } = await request(app).post('/admin/maintenance/login').send({ token: 'token' }); + expect(status).toBe(400); + expect(body).toEqual(errorDto.badRequest('Not in maintenance mode')); + }); + }); + + // => enter maintenance mode + + describe.sequential('POST /', () => { + it('should require authentication', async () => { + const { status, body } = await request(app).post('/admin/maintenance').send({ + action: 'end', + }); + expect(status).toBe(401); + expect(body).toEqual(errorDto.unauthorized); + }); + + it('should only work for admins', async () => { + const { status, body } = await request(app) + .post('/admin/maintenance') + .set('Authorization', `Bearer ${nonAdmin.accessToken}`) + .send({ action: 'end' }); + expect(status).toBe(403); + expect(body).toEqual(errorDto.forbidden); + }); + + it('should be a no-op if try to exit maintenance mode', async () => { + const { status } = await request(app) + .post('/admin/maintenance') + .set('Authorization', `Bearer ${admin.accessToken}`) + .send({ action: 'end' }); + expect(status).toBe(201); + }); + + it('should enter maintenance mode', async () => { + const { status, headers } = await request(app) + .post('/admin/maintenance') + .set('Authorization', `Bearer ${admin.accessToken}`) + .send({ + action: 'start', + }); + expect(status).toBe(201); + + cookie = headers['set-cookie'][0].split(';')[0]; + expect(cookie).toEqual( + expect.stringMatching(/^immich_maintenance_token=[A-Za-z0-9-_]*\.[A-Za-z0-9-_]*\.[A-Za-z0-9-_]*$/), + ); + + await expect + .poll( + async () => { + const { body } = await request(app).get('/server/config'); + return body.maintenanceMode; + }, + { + interval: 5e2, + timeout: 1e4, + }, + ) + .toBeTruthy(); + }); + }); + + // => in maintenance mode + + describe.sequential('in maintenance mode', () => { + describe('GET ~/server/config', async () => { + it('should indicate we are in maintenance mode', async () => { + const { status, body } = await request(app).get('/server/config'); + expect(status).toBe(200); + expect(body.maintenanceMode).toBeTruthy(); + }); + }); + + describe('POST /login', async () => { + it('should fail without cookie or token in body', async () => { + const { status, body } = await request(app).post('/admin/maintenance/login').send({}); + expect(status).toBe(401); + expect(body).toEqual(errorDto.unauthorizedWithMessage('Missing JWT Token')); + }); + + it('should succeed with cookie', async () => { + const { status, body } = await request(app).post('/admin/maintenance/login').set('cookie', cookie!).send({}); + expect(status).toBe(201); + expect(body).toEqual( + expect.objectContaining({ + username: 'Immich Admin', + }), + ); + }); + + it('should succeed with token', async () => { + const { status, body } = await request(app) + .post('/admin/maintenance/login') + .send({ + token: cookie!.split('=')[1].trim(), + }); + expect(status).toBe(201); + expect(body).toEqual( + expect.objectContaining({ + username: 'Immich Admin', + }), + ); + }); + }); + + describe('POST /', async () => { + it('should be a no-op if try to enter maintenance mode', async () => { + const { status } = await request(app) + .post('/admin/maintenance') + .set('cookie', cookie!) + .send({ action: 'start' }); + expect(status).toBe(201); + }); + }); + }); + + // => exit maintenance mode + + describe.sequential('POST /', () => { + it('should exit maintenance mode', async () => { + const { status } = await request(app).post('/admin/maintenance').set('cookie', cookie!).send({ + action: 'end', + }); + + expect(status).toBe(201); + + await expect + .poll( + async () => { + const { body } = await request(app).get('/server/config'); + return body.maintenanceMode; + }, + { + interval: 5e2, + timeout: 1e4, + }, + ) + .toBeFalsy(); + }); + }); +}); diff --git a/e2e/src/api/specs/server.e2e-spec.ts b/e2e/src/api/specs/server.e2e-spec.ts index adf2526856..3dd6f15e71 100644 --- a/e2e/src/api/specs/server.e2e-spec.ts +++ b/e2e/src/api/specs/server.e2e-spec.ts @@ -136,6 +136,7 @@ describe('/server', () => { externalDomain: '', publicUsers: true, isOnboarded: false, + maintenanceMode: false, mapDarkStyleUrl: 'https://tiles.immich.cloud/v1/style/dark.json', mapLightStyleUrl: 'https://tiles.immich.cloud/v1/style/light.json', }); diff --git a/e2e/src/responses.ts b/e2e/src/responses.ts index 27e6091206..9585484355 100644 --- a/e2e/src/responses.ts +++ b/e2e/src/responses.ts @@ -7,6 +7,12 @@ export const errorDto = { message: 'Authentication required', correlationId: expect.any(String), }, + unauthorizedWithMessage: (message: string) => ({ + error: 'Unauthorized', + statusCode: 401, + message, + correlationId: expect.any(String), + }), forbidden: { error: 'Forbidden', statusCode: 403, diff --git a/e2e/src/utils.ts b/e2e/src/utils.ts index 8f34bbe40a..e3e7381466 100644 --- a/e2e/src/utils.ts +++ b/e2e/src/utils.ts @@ -6,6 +6,7 @@ import { CheckExistingAssetsDto, CreateAlbumDto, CreateLibraryDto, + MaintenanceAction, MetadataSearchDto, Permission, PersonCreateDto, @@ -36,6 +37,7 @@ import { scanLibrary, searchAssets, setBaseUrl, + setMaintenanceMode, signUpAdmin, tagAssets, updateAdminOnboarding, @@ -514,6 +516,42 @@ export const utils = { }, ]), + setMaintenanceAuthCookie: async (context: BrowserContext, token: string, domain = '127.0.0.1') => + await context.addCookies([ + { + name: 'immich_maintenance_token', + value: token, + domain, + path: '/', + expires: 2_058_028_213, + httpOnly: true, + secure: false, + sameSite: 'Lax', + }, + ]), + + enterMaintenance: async (accessToken: string) => { + let setCookie: string[] | undefined; + + await setMaintenanceMode( + { + setMaintenanceModeDto: { + action: MaintenanceAction.Start, + }, + }, + { + headers: asBearerAuth(accessToken), + fetch: (...args: Parameters) => + fetch(...args).then((response) => { + setCookie = response.headers.getSetCookie(); + return response; + }), + }, + ); + + return setCookie; + }, + resetTempFolder: () => { rmSync(`${testAssetDir}/temp`, { recursive: true, force: true }); mkdirSync(`${testAssetDir}/temp`, { recursive: true }); diff --git a/e2e/src/web/specs/maintenance.e2e-spec.ts b/e2e/src/web/specs/maintenance.e2e-spec.ts new file mode 100644 index 0000000000..e8ee33b021 --- /dev/null +++ b/e2e/src/web/specs/maintenance.e2e-spec.ts @@ -0,0 +1,52 @@ +import { LoginResponseDto } from '@immich/sdk'; +import { expect, test } from '@playwright/test'; +import { utils } from 'src/utils'; + +test.describe.configure({ mode: 'serial' }); + +test.describe('Maintenance', () => { + let admin: LoginResponseDto; + + test.beforeAll(async () => { + utils.initSdk(); + await utils.resetDatabase(); + admin = await utils.adminSetup(); + }); + + test('enter and exit maintenance mode', async ({ context, page }) => { + await utils.setAuthCookies(context, admin.accessToken); + + await page.goto('/admin/system-settings?isOpen=maintenance'); + await page.getByRole('button', { name: 'Start maintenance mode' }).click(); + + await page.waitForURL(`/maintenance?${new URLSearchParams({ continue: '/admin/system-settings' })}`); + await expect(page.getByText('Temporarily Unavailable')).toBeVisible(); + await page.getByRole('button', { name: 'End maintenance mode' }).click(); + await page.waitForURL('/admin/system-settings'); + }); + + test('maintenance shows no options to users until they authenticate', async ({ page }) => { + const setCookie = await utils.enterMaintenance(admin.accessToken); + const cookie = setCookie + ?.map((cookie) => cookie.split(';')[0].split('=')) + ?.find(([name]) => name === 'immich_maintenance_token'); + + expect(cookie).toBeTruthy(); + + await expect(async () => { + await page.goto('/'); + await page.waitForURL('/maintenance?**', { + timeout: 1e3, + }); + }).toPass({ timeout: 1e4 }); + + await expect(page.getByText('Temporarily Unavailable')).toBeVisible(); + await expect(page.getByRole('button', { name: 'End maintenance mode' })).toHaveCount(0); + + await page.goto(`/maintenance?${new URLSearchParams({ token: cookie![1] })}`); + await expect(page.getByText('Temporarily Unavailable')).toBeVisible(); + await expect(page.getByRole('button', { name: 'End maintenance mode' })).toBeVisible(); + await page.getByRole('button', { name: 'End maintenance mode' }).click(); + await page.waitForURL('/auth/login'); + }); +}); diff --git a/i18n/en.json b/i18n/en.json index 6da205d85a..5edbd87973 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -174,6 +174,10 @@ "machine_learning_smart_search_enabled": "Enable smart search", "machine_learning_smart_search_enabled_description": "If disabled, images will not be encoded for smart search.", "machine_learning_url_description": "The URL of the machine learning server. If more than one URL is provided, each server will be attempted one-at-a-time until one responds successfully, in order from first to last. Servers that don't respond will be temporarily ignored until they come back online.", + "maintenance_settings": "Maintenance", + "maintenance_settings_description": "Put Immich into maintenance mode.", + "maintenance_start": "Start maintenance mode", + "maintenance_start_error": "Failed to start maintenance mode.", "manage_concurrency": "Manage Concurrency", "manage_log_settings": "Manage log settings", "map_dark_style": "Dark style", @@ -1318,6 +1322,11 @@ "loop_videos_description": "Enable to automatically loop a video in the detail viewer.", "main_branch_warning": "You're using a development version; we strongly recommend using a release version!", "main_menu": "Main menu", + "maintenance_description": "Immich has been put into maintenance mode.", + "maintenance_end": "End maintenance mode", + "maintenance_end_error": "Failed to end maintenance mode.", + "maintenance_logged_in_as": "Currently logged in as {user}", + "maintenance_title": "Temporarily Unavailable", "make": "Make", "manage_geolocation": "Manage location", "manage_media_access_rationale": "This permission is required for proper handling of moving assets to the trash and restoring them from it.", @@ -1830,6 +1839,8 @@ "server_offline": "Server Offline", "server_online": "Server Online", "server_privacy": "Server Privacy", + "server_restarting_description": "This page will refresh momentarily.", + "server_restarting_title": "Server is restarting", "server_stats": "Server Stats", "server_update_available": "Server update is available", "server_version": "Server Version", diff --git a/mobile/openapi/README.md b/mobile/openapi/README.md index 4e34f66a81..9fa1b4858f 100644 --- a/mobile/openapi/README.md +++ b/mobile/openapi/README.md @@ -159,6 +159,8 @@ Class | Method | HTTP request | Description *LibrariesApi* | [**scanLibrary**](doc//LibrariesApi.md#scanlibrary) | **POST** /libraries/{id}/scan | Scan a library *LibrariesApi* | [**updateLibrary**](doc//LibrariesApi.md#updatelibrary) | **PUT** /libraries/{id} | Update a library *LibrariesApi* | [**validate**](doc//LibrariesApi.md#validate) | **POST** /libraries/{id}/validate | Validate library settings +*MaintenanceAdminApi* | [**maintenanceLogin**](doc//MaintenanceAdminApi.md#maintenancelogin) | **POST** /admin/maintenance/login | Log into maintenance mode +*MaintenanceAdminApi* | [**setMaintenanceMode**](doc//MaintenanceAdminApi.md#setmaintenancemode) | **POST** /admin/maintenance | Set maintenance mode *MapApi* | [**getMapMarkers**](doc//MapApi.md#getmapmarkers) | **GET** /map/markers | Retrieve map markers *MapApi* | [**reverseGeocode**](doc//MapApi.md#reversegeocode) | **GET** /map/reverse-geocode | Reverse geocode coordinates *MemoriesApi* | [**addMemoryAssets**](doc//MemoriesApi.md#addmemoryassets) | **PUT** /memories/{id}/assets | Add assets to a memory @@ -404,6 +406,9 @@ Class | Method | HTTP request | Description - [LoginResponseDto](doc//LoginResponseDto.md) - [LogoutResponseDto](doc//LogoutResponseDto.md) - [MachineLearningAvailabilityChecksDto](doc//MachineLearningAvailabilityChecksDto.md) + - [MaintenanceAction](doc//MaintenanceAction.md) + - [MaintenanceAuthDto](doc//MaintenanceAuthDto.md) + - [MaintenanceLoginDto](doc//MaintenanceLoginDto.md) - [ManualJobName](doc//ManualJobName.md) - [MapMarkerResponseDto](doc//MapMarkerResponseDto.md) - [MapReverseGeocodeResponseDto](doc//MapReverseGeocodeResponseDto.md) @@ -496,6 +501,7 @@ Class | Method | HTTP request | Description - [SessionResponseDto](doc//SessionResponseDto.md) - [SessionUnlockDto](doc//SessionUnlockDto.md) - [SessionUpdateDto](doc//SessionUpdateDto.md) + - [SetMaintenanceModeDto](doc//SetMaintenanceModeDto.md) - [SharedLinkCreateDto](doc//SharedLinkCreateDto.md) - [SharedLinkEditDto](doc//SharedLinkEditDto.md) - [SharedLinkResponseDto](doc//SharedLinkResponseDto.md) diff --git a/mobile/openapi/lib/api.dart b/mobile/openapi/lib/api.dart index f3db370c92..a47d9ddf92 100644 --- a/mobile/openapi/lib/api.dart +++ b/mobile/openapi/lib/api.dart @@ -42,6 +42,7 @@ part 'api/duplicates_api.dart'; part 'api/faces_api.dart'; part 'api/jobs_api.dart'; part 'api/libraries_api.dart'; +part 'api/maintenance_admin_api.dart'; part 'api/map_api.dart'; part 'api/memories_api.dart'; part 'api/notifications_api.dart'; @@ -163,6 +164,9 @@ part 'model/login_credential_dto.dart'; part 'model/login_response_dto.dart'; part 'model/logout_response_dto.dart'; part 'model/machine_learning_availability_checks_dto.dart'; +part 'model/maintenance_action.dart'; +part 'model/maintenance_auth_dto.dart'; +part 'model/maintenance_login_dto.dart'; part 'model/manual_job_name.dart'; part 'model/map_marker_response_dto.dart'; part 'model/map_reverse_geocode_response_dto.dart'; @@ -255,6 +259,7 @@ part 'model/session_create_response_dto.dart'; part 'model/session_response_dto.dart'; part 'model/session_unlock_dto.dart'; part 'model/session_update_dto.dart'; +part 'model/set_maintenance_mode_dto.dart'; part 'model/shared_link_create_dto.dart'; part 'model/shared_link_edit_dto.dart'; part 'model/shared_link_response_dto.dart'; diff --git a/mobile/openapi/lib/api/maintenance_admin_api.dart b/mobile/openapi/lib/api/maintenance_admin_api.dart new file mode 100644 index 0000000000..7e46f96c6e --- /dev/null +++ b/mobile/openapi/lib/api/maintenance_admin_api.dart @@ -0,0 +1,122 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + + +class MaintenanceAdminApi { + MaintenanceAdminApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; + + final ApiClient apiClient; + + /// Log into maintenance mode + /// + /// Login with maintenance token or cookie to receive current information and perform further actions. + /// + /// Note: This method returns the HTTP [Response]. + /// + /// Parameters: + /// + /// * [MaintenanceLoginDto] maintenanceLoginDto (required): + Future maintenanceLoginWithHttpInfo(MaintenanceLoginDto maintenanceLoginDto,) async { + // ignore: prefer_const_declarations + final apiPath = r'/admin/maintenance/login'; + + // ignore: prefer_final_locals + Object? postBody = maintenanceLoginDto; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = ['application/json']; + + + return apiClient.invokeAPI( + apiPath, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Log into maintenance mode + /// + /// Login with maintenance token or cookie to receive current information and perform further actions. + /// + /// Parameters: + /// + /// * [MaintenanceLoginDto] maintenanceLoginDto (required): + Future maintenanceLogin(MaintenanceLoginDto maintenanceLoginDto,) async { + final response = await maintenanceLoginWithHttpInfo(maintenanceLoginDto,); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + // When a remote server returns no body with a status of 204, we shall not decode it. + // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" + // FormatException when trying to decode an empty string. + if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'MaintenanceAuthDto',) as MaintenanceAuthDto; + + } + return null; + } + + /// Set maintenance mode + /// + /// Put Immich into or take it out of maintenance mode + /// + /// Note: This method returns the HTTP [Response]. + /// + /// Parameters: + /// + /// * [SetMaintenanceModeDto] setMaintenanceModeDto (required): + Future setMaintenanceModeWithHttpInfo(SetMaintenanceModeDto setMaintenanceModeDto,) async { + // ignore: prefer_const_declarations + final apiPath = r'/admin/maintenance'; + + // ignore: prefer_final_locals + Object? postBody = setMaintenanceModeDto; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = ['application/json']; + + + return apiClient.invokeAPI( + apiPath, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Set maintenance mode + /// + /// Put Immich into or take it out of maintenance mode + /// + /// Parameters: + /// + /// * [SetMaintenanceModeDto] setMaintenanceModeDto (required): + Future setMaintenanceMode(SetMaintenanceModeDto setMaintenanceModeDto,) async { + final response = await setMaintenanceModeWithHttpInfo(setMaintenanceModeDto,); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + } +} diff --git a/mobile/openapi/lib/api_client.dart b/mobile/openapi/lib/api_client.dart index 91dc670d12..c0dcf542ef 100644 --- a/mobile/openapi/lib/api_client.dart +++ b/mobile/openapi/lib/api_client.dart @@ -378,6 +378,12 @@ class ApiClient { return LogoutResponseDto.fromJson(value); case 'MachineLearningAvailabilityChecksDto': return MachineLearningAvailabilityChecksDto.fromJson(value); + case 'MaintenanceAction': + return MaintenanceActionTypeTransformer().decode(value); + case 'MaintenanceAuthDto': + return MaintenanceAuthDto.fromJson(value); + case 'MaintenanceLoginDto': + return MaintenanceLoginDto.fromJson(value); case 'ManualJobName': return ManualJobNameTypeTransformer().decode(value); case 'MapMarkerResponseDto': @@ -562,6 +568,8 @@ class ApiClient { return SessionUnlockDto.fromJson(value); case 'SessionUpdateDto': return SessionUpdateDto.fromJson(value); + case 'SetMaintenanceModeDto': + return SetMaintenanceModeDto.fromJson(value); case 'SharedLinkCreateDto': return SharedLinkCreateDto.fromJson(value); case 'SharedLinkEditDto': diff --git a/mobile/openapi/lib/api_helper.dart b/mobile/openapi/lib/api_helper.dart index 4b33a07214..e6d39d5eb7 100644 --- a/mobile/openapi/lib/api_helper.dart +++ b/mobile/openapi/lib/api_helper.dart @@ -97,6 +97,9 @@ String parameterToString(dynamic value) { if (value is LogLevel) { return LogLevelTypeTransformer().encode(value).toString(); } + if (value is MaintenanceAction) { + return MaintenanceActionTypeTransformer().encode(value).toString(); + } if (value is ManualJobName) { return ManualJobNameTypeTransformer().encode(value).toString(); } diff --git a/mobile/openapi/lib/model/maintenance_action.dart b/mobile/openapi/lib/model/maintenance_action.dart new file mode 100644 index 0000000000..9be628961f --- /dev/null +++ b/mobile/openapi/lib/model/maintenance_action.dart @@ -0,0 +1,85 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + + +class MaintenanceAction { + /// Instantiate a new enum with the provided [value]. + const MaintenanceAction._(this.value); + + /// The underlying value of this enum member. + final String value; + + @override + String toString() => value; + + String toJson() => value; + + static const start = MaintenanceAction._(r'start'); + static const end = MaintenanceAction._(r'end'); + + /// List of all possible values in this [enum][MaintenanceAction]. + static const values = [ + start, + end, + ]; + + static MaintenanceAction? fromJson(dynamic value) => MaintenanceActionTypeTransformer().decode(value); + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = MaintenanceAction.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } +} + +/// Transformation class that can [encode] an instance of [MaintenanceAction] to String, +/// and [decode] dynamic data back to [MaintenanceAction]. +class MaintenanceActionTypeTransformer { + factory MaintenanceActionTypeTransformer() => _instance ??= const MaintenanceActionTypeTransformer._(); + + const MaintenanceActionTypeTransformer._(); + + String encode(MaintenanceAction data) => data.value; + + /// Decodes a [dynamic value][data] to a MaintenanceAction. + /// + /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully, + /// then null is returned. However, if [allowNull] is false and the [dynamic value][data] + /// cannot be decoded successfully, then an [UnimplementedError] is thrown. + /// + /// The [allowNull] is very handy when an API changes and a new enum value is added or removed, + /// and users are still using an old app with the old code. + MaintenanceAction? decode(dynamic data, {bool allowNull = true}) { + if (data != null) { + switch (data) { + case r'start': return MaintenanceAction.start; + case r'end': return MaintenanceAction.end; + default: + if (!allowNull) { + throw ArgumentError('Unknown enum value to decode: $data'); + } + } + } + return null; + } + + /// Singleton [MaintenanceActionTypeTransformer] instance. + static MaintenanceActionTypeTransformer? _instance; +} + diff --git a/mobile/openapi/lib/model/maintenance_auth_dto.dart b/mobile/openapi/lib/model/maintenance_auth_dto.dart new file mode 100644 index 0000000000..919da5502b --- /dev/null +++ b/mobile/openapi/lib/model/maintenance_auth_dto.dart @@ -0,0 +1,99 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class MaintenanceAuthDto { + /// Returns a new [MaintenanceAuthDto] instance. + MaintenanceAuthDto({ + required this.username, + }); + + String username; + + @override + bool operator ==(Object other) => identical(this, other) || other is MaintenanceAuthDto && + other.username == username; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (username.hashCode); + + @override + String toString() => 'MaintenanceAuthDto[username=$username]'; + + Map toJson() { + final json = {}; + json[r'username'] = this.username; + return json; + } + + /// Returns a new [MaintenanceAuthDto] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static MaintenanceAuthDto? fromJson(dynamic value) { + upgradeDto(value, "MaintenanceAuthDto"); + if (value is Map) { + final json = value.cast(); + + return MaintenanceAuthDto( + username: mapValueOfType(json, r'username')!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = MaintenanceAuthDto.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = MaintenanceAuthDto.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of MaintenanceAuthDto-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = MaintenanceAuthDto.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'username', + }; +} + diff --git a/mobile/openapi/lib/model/maintenance_login_dto.dart b/mobile/openapi/lib/model/maintenance_login_dto.dart new file mode 100644 index 0000000000..45f56bd3ba --- /dev/null +++ b/mobile/openapi/lib/model/maintenance_login_dto.dart @@ -0,0 +1,108 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class MaintenanceLoginDto { + /// Returns a new [MaintenanceLoginDto] instance. + MaintenanceLoginDto({ + this.token, + }); + + /// + /// Please note: This property should have been non-nullable! Since the specification file + /// does not include a default value (using the "default:" property), however, the generated + /// source code must fall back to having a nullable type. + /// Consider adding a "default:" property in the specification file to hide this note. + /// + String? token; + + @override + bool operator ==(Object other) => identical(this, other) || other is MaintenanceLoginDto && + other.token == token; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (token == null ? 0 : token!.hashCode); + + @override + String toString() => 'MaintenanceLoginDto[token=$token]'; + + Map toJson() { + final json = {}; + if (this.token != null) { + json[r'token'] = this.token; + } else { + // json[r'token'] = null; + } + return json; + } + + /// Returns a new [MaintenanceLoginDto] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static MaintenanceLoginDto? fromJson(dynamic value) { + upgradeDto(value, "MaintenanceLoginDto"); + if (value is Map) { + final json = value.cast(); + + return MaintenanceLoginDto( + token: mapValueOfType(json, r'token'), + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = MaintenanceLoginDto.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = MaintenanceLoginDto.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of MaintenanceLoginDto-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = MaintenanceLoginDto.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + }; +} + diff --git a/mobile/openapi/lib/model/permission.dart b/mobile/openapi/lib/model/permission.dart index 8b05de523b..0a2f0d1791 100644 --- a/mobile/openapi/lib/model/permission.dart +++ b/mobile/openapi/lib/model/permission.dart @@ -73,6 +73,7 @@ class Permission { static const libraryPeriodStatistics = Permission._(r'library.statistics'); static const timelinePeriodRead = Permission._(r'timeline.read'); static const timelinePeriodDownload = Permission._(r'timeline.download'); + static const maintenance = Permission._(r'maintenance'); static const memoryPeriodCreate = Permission._(r'memory.create'); static const memoryPeriodRead = Permission._(r'memory.read'); static const memoryPeriodUpdate = Permission._(r'memory.update'); @@ -214,6 +215,7 @@ class Permission { libraryPeriodStatistics, timelinePeriodRead, timelinePeriodDownload, + maintenance, memoryPeriodCreate, memoryPeriodRead, memoryPeriodUpdate, @@ -390,6 +392,7 @@ class PermissionTypeTransformer { case r'library.statistics': return Permission.libraryPeriodStatistics; case r'timeline.read': return Permission.timelinePeriodRead; case r'timeline.download': return Permission.timelinePeriodDownload; + case r'maintenance': return Permission.maintenance; case r'memory.create': return Permission.memoryPeriodCreate; case r'memory.read': return Permission.memoryPeriodRead; case r'memory.update': return Permission.memoryPeriodUpdate; diff --git a/mobile/openapi/lib/model/server_config_dto.dart b/mobile/openapi/lib/model/server_config_dto.dart index 01c82af4d9..8e701472b1 100644 --- a/mobile/openapi/lib/model/server_config_dto.dart +++ b/mobile/openapi/lib/model/server_config_dto.dart @@ -17,6 +17,7 @@ class ServerConfigDto { required this.isInitialized, required this.isOnboarded, required this.loginPageMessage, + required this.maintenanceMode, required this.mapDarkStyleUrl, required this.mapLightStyleUrl, required this.oauthButtonText, @@ -33,6 +34,8 @@ class ServerConfigDto { String loginPageMessage; + bool maintenanceMode; + String mapDarkStyleUrl; String mapLightStyleUrl; @@ -51,6 +54,7 @@ class ServerConfigDto { other.isInitialized == isInitialized && other.isOnboarded == isOnboarded && other.loginPageMessage == loginPageMessage && + other.maintenanceMode == maintenanceMode && other.mapDarkStyleUrl == mapDarkStyleUrl && other.mapLightStyleUrl == mapLightStyleUrl && other.oauthButtonText == oauthButtonText && @@ -65,6 +69,7 @@ class ServerConfigDto { (isInitialized.hashCode) + (isOnboarded.hashCode) + (loginPageMessage.hashCode) + + (maintenanceMode.hashCode) + (mapDarkStyleUrl.hashCode) + (mapLightStyleUrl.hashCode) + (oauthButtonText.hashCode) + @@ -73,7 +78,7 @@ class ServerConfigDto { (userDeleteDelay.hashCode); @override - String toString() => 'ServerConfigDto[externalDomain=$externalDomain, isInitialized=$isInitialized, isOnboarded=$isOnboarded, loginPageMessage=$loginPageMessage, mapDarkStyleUrl=$mapDarkStyleUrl, mapLightStyleUrl=$mapLightStyleUrl, oauthButtonText=$oauthButtonText, publicUsers=$publicUsers, trashDays=$trashDays, userDeleteDelay=$userDeleteDelay]'; + String toString() => 'ServerConfigDto[externalDomain=$externalDomain, isInitialized=$isInitialized, isOnboarded=$isOnboarded, loginPageMessage=$loginPageMessage, maintenanceMode=$maintenanceMode, mapDarkStyleUrl=$mapDarkStyleUrl, mapLightStyleUrl=$mapLightStyleUrl, oauthButtonText=$oauthButtonText, publicUsers=$publicUsers, trashDays=$trashDays, userDeleteDelay=$userDeleteDelay]'; Map toJson() { final json = {}; @@ -81,6 +86,7 @@ class ServerConfigDto { json[r'isInitialized'] = this.isInitialized; json[r'isOnboarded'] = this.isOnboarded; json[r'loginPageMessage'] = this.loginPageMessage; + json[r'maintenanceMode'] = this.maintenanceMode; json[r'mapDarkStyleUrl'] = this.mapDarkStyleUrl; json[r'mapLightStyleUrl'] = this.mapLightStyleUrl; json[r'oauthButtonText'] = this.oauthButtonText; @@ -103,6 +109,7 @@ class ServerConfigDto { isInitialized: mapValueOfType(json, r'isInitialized')!, isOnboarded: mapValueOfType(json, r'isOnboarded')!, loginPageMessage: mapValueOfType(json, r'loginPageMessage')!, + maintenanceMode: mapValueOfType(json, r'maintenanceMode')!, mapDarkStyleUrl: mapValueOfType(json, r'mapDarkStyleUrl')!, mapLightStyleUrl: mapValueOfType(json, r'mapLightStyleUrl')!, oauthButtonText: mapValueOfType(json, r'oauthButtonText')!, @@ -160,6 +167,7 @@ class ServerConfigDto { 'isInitialized', 'isOnboarded', 'loginPageMessage', + 'maintenanceMode', 'mapDarkStyleUrl', 'mapLightStyleUrl', 'oauthButtonText', diff --git a/mobile/openapi/lib/model/set_maintenance_mode_dto.dart b/mobile/openapi/lib/model/set_maintenance_mode_dto.dart new file mode 100644 index 0000000000..c724337529 --- /dev/null +++ b/mobile/openapi/lib/model/set_maintenance_mode_dto.dart @@ -0,0 +1,99 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + +class SetMaintenanceModeDto { + /// Returns a new [SetMaintenanceModeDto] instance. + SetMaintenanceModeDto({ + required this.action, + }); + + MaintenanceAction action; + + @override + bool operator ==(Object other) => identical(this, other) || other is SetMaintenanceModeDto && + other.action == action; + + @override + int get hashCode => + // ignore: unnecessary_parenthesis + (action.hashCode); + + @override + String toString() => 'SetMaintenanceModeDto[action=$action]'; + + Map toJson() { + final json = {}; + json[r'action'] = this.action; + return json; + } + + /// Returns a new [SetMaintenanceModeDto] instance and imports its values from + /// [value] if it's a [Map], null otherwise. + // ignore: prefer_constructors_over_static_methods + static SetMaintenanceModeDto? fromJson(dynamic value) { + upgradeDto(value, "SetMaintenanceModeDto"); + if (value is Map) { + final json = value.cast(); + + return SetMaintenanceModeDto( + action: MaintenanceAction.fromJson(json[r'action'])!, + ); + } + return null; + } + + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; + if (json is List && json.isNotEmpty) { + for (final row in json) { + final value = SetMaintenanceModeDto.fromJson(row); + if (value != null) { + result.add(value); + } + } + } + return result.toList(growable: growable); + } + + static Map mapFromJson(dynamic json) { + final map = {}; + if (json is Map && json.isNotEmpty) { + json = json.cast(); // ignore: parameter_assignments + for (final entry in json.entries) { + final value = SetMaintenanceModeDto.fromJson(entry.value); + if (value != null) { + map[entry.key] = value; + } + } + } + return map; + } + + // maps a json object with a list of SetMaintenanceModeDto-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; + if (json is Map && json.isNotEmpty) { + // ignore: parameter_assignments + json = json.cast(); + for (final entry in json.entries) { + map[entry.key] = SetMaintenanceModeDto.listFromJson(entry.value, growable: growable,); + } + } + return map; + } + + /// The list of required keys that must be present in a JSON. + static const requiredKeys = { + 'action', + }; +} + diff --git a/open-api/immich-openapi-specs.json b/open-api/immich-openapi-specs.json index d42aa0baa1..e89967ae5e 100644 --- a/open-api/immich-openapi-specs.json +++ b/open-api/immich-openapi-specs.json @@ -322,6 +322,100 @@ "x-immich-state": "Stable" } }, + "/admin/maintenance": { + "post": { + "description": "Put Immich into or take it out of maintenance mode", + "operationId": "setMaintenanceMode", + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SetMaintenanceModeDto" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "" + } + }, + "security": [ + { + "bearer": [] + }, + { + "cookie": [] + }, + { + "api_key": [] + } + ], + "summary": "Set maintenance mode", + "tags": [ + "Maintenance (admin)" + ], + "x-immich-admin-only": true, + "x-immich-history": [ + { + "version": "v2.3.0", + "state": "Added" + }, + { + "version": "v2.3.0", + "state": "Alpha" + } + ], + "x-immich-permission": "maintenance", + "x-immich-state": "Alpha" + } + }, + "/admin/maintenance/login": { + "post": { + "description": "Login with maintenance token or cookie to receive current information and perform further actions.", + "operationId": "maintenanceLogin", + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MaintenanceLoginDto" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MaintenanceAuthDto" + } + } + }, + "description": "" + } + }, + "summary": "Log into maintenance mode", + "tags": [ + "Maintenance (admin)" + ], + "x-immich-history": [ + { + "version": "v2.3.0", + "state": "Added" + }, + { + "version": "v2.3.0", + "state": "Alpha" + } + ], + "x-immich-state": "Alpha" + } + }, "/admin/notifications": { "post": { "description": "Create a new notification for a specific user.", @@ -13917,6 +14011,10 @@ "name": "Libraries", "description": "An external library is made up of input file paths or expressions that are scanned for asset files. Discovered files are automatically imported. Assets much be unique within a library, but can be duplicated across libraries. Each user has a default upload library, and can have one or more external libraries." }, + { + "name": "Maintenance (admin)", + "description": "Maintenance mode allows you to put Immich in a read-only state to perform various operations." + }, { "name": "Map", "description": "Map endpoints include supplemental functionality related to geolocation, such as reverse geocoding and retrieving map markers for assets with geolocation data." @@ -16425,6 +16523,32 @@ ], "type": "object" }, + "MaintenanceAction": { + "enum": [ + "start", + "end" + ], + "type": "string" + }, + "MaintenanceAuthDto": { + "properties": { + "username": { + "type": "string" + } + }, + "required": [ + "username" + ], + "type": "object" + }, + "MaintenanceLoginDto": { + "properties": { + "token": { + "type": "string" + } + }, + "type": "object" + }, "ManualJobName": { "enum": [ "person-cleanup", @@ -17380,6 +17504,7 @@ "library.statistics", "timeline.read", "timeline.download", + "maintenance", "memory.create", "memory.read", "memory.update", @@ -18587,6 +18712,9 @@ "loginPageMessage": { "type": "string" }, + "maintenanceMode": { + "type": "boolean" + }, "mapDarkStyleUrl": { "type": "string" }, @@ -18611,6 +18739,7 @@ "isInitialized", "isOnboarded", "loginPageMessage", + "maintenanceMode", "mapDarkStyleUrl", "mapLightStyleUrl", "oauthButtonText", @@ -18996,6 +19125,21 @@ }, "type": "object" }, + "SetMaintenanceModeDto": { + "properties": { + "action": { + "allOf": [ + { + "$ref": "#/components/schemas/MaintenanceAction" + } + ] + } + }, + "required": [ + "action" + ], + "type": "object" + }, "SharedLinkCreateDto": { "properties": { "albumId": { diff --git a/open-api/typescript-sdk/src/fetch-client.ts b/open-api/typescript-sdk/src/fetch-client.ts index 0664d26995..34ceb56500 100644 --- a/open-api/typescript-sdk/src/fetch-client.ts +++ b/open-api/typescript-sdk/src/fetch-client.ts @@ -40,6 +40,15 @@ export type ActivityStatisticsResponseDto = { comments: number; likes: number; }; +export type SetMaintenanceModeDto = { + action: MaintenanceAction; +}; +export type MaintenanceLoginDto = { + token?: string; +}; +export type MaintenanceAuthDto = { + username: string; +}; export type NotificationCreateDto = { data?: object; description?: string | null; @@ -1183,6 +1192,7 @@ export type ServerConfigDto = { isInitialized: boolean; isOnboarded: boolean; loginPageMessage: string; + maintenanceMode: boolean; mapDarkStyleUrl: string; mapLightStyleUrl: string; oauthButtonText: string; @@ -1822,6 +1832,33 @@ export function unlinkAllOAuthAccountsAdmin(opts?: Oazapfts.RequestOpts) { method: "POST" })); } +/** + * Set maintenance mode + */ +export function setMaintenanceMode({ setMaintenanceModeDto }: { + setMaintenanceModeDto: SetMaintenanceModeDto; +}, opts?: Oazapfts.RequestOpts) { + return oazapfts.ok(oazapfts.fetchText("/admin/maintenance", oazapfts.json({ + ...opts, + method: "POST", + body: setMaintenanceModeDto + }))); +} +/** + * Log into maintenance mode + */ +export function maintenanceLogin({ maintenanceLoginDto }: { + maintenanceLoginDto: MaintenanceLoginDto; +}, opts?: Oazapfts.RequestOpts) { + return oazapfts.ok(oazapfts.fetchJson<{ + status: 201; + data: MaintenanceAuthDto; + }>("/admin/maintenance/login", oazapfts.json({ + ...opts, + method: "POST", + body: maintenanceLoginDto + }))); +} /** * Create a notification */ @@ -5014,6 +5051,10 @@ export enum UserAvatarColor { Gray = "gray", Amber = "amber" } +export enum MaintenanceAction { + Start = "start", + End = "end" +} export enum NotificationLevel { Success = "success", Error = "error", @@ -5121,6 +5162,7 @@ export enum Permission { LibraryStatistics = "library.statistics", TimelineRead = "timeline.read", TimelineDownload = "timeline.download", + Maintenance = "maintenance", MemoryCreate = "memory.create", MemoryRead = "memory.read", MemoryUpdate = "memory.update", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c0e4b5ea78..28ac12ab78 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -445,6 +445,9 @@ importers: ioredis: specifier: ^5.8.2 version: 5.8.2 + jose: + specifier: ^5.10.0 + version: 5.10.0 js-yaml: specifier: ^4.1.0 version: 4.1.0 diff --git a/server/package.json b/server/package.json index a252a53b8a..6de6531c67 100644 --- a/server/package.json +++ b/server/package.json @@ -78,6 +78,7 @@ "handlebars": "^4.7.8", "i18n-iso-countries": "^7.6.0", "ioredis": "^5.8.2", + "jose": "^5.10.0", "js-yaml": "^4.1.0", "jsonwebtoken": "^9.0.2", "kysely": "0.28.2", diff --git a/server/src/app.common.ts b/server/src/app.common.ts new file mode 100644 index 0000000000..934c13343f --- /dev/null +++ b/server/src/app.common.ts @@ -0,0 +1,87 @@ +import { NestExpressApplication } from '@nestjs/platform-express'; +import { json } from 'body-parser'; +import compression from 'compression'; +import cookieParser from 'cookie-parser'; +import { existsSync } from 'node:fs'; +import sirv from 'sirv'; +import { excludePaths, serverVersion } from 'src/constants'; +import { MaintenanceWorkerService } from 'src/maintenance/maintenance-worker.service'; +import { WebSocketAdapter } from 'src/middleware/websocket.adapter'; +import { ConfigRepository } from 'src/repositories/config.repository'; +import { LoggingRepository } from 'src/repositories/logging.repository'; +import { bootstrapTelemetry } from 'src/repositories/telemetry.repository'; +import { ApiService } from 'src/services/api.service'; +import { useSwagger } from 'src/utils/misc'; + +export function configureTelemetry() { + const { telemetry } = new ConfigRepository().getEnv(); + if (telemetry.metrics.size > 0) { + bootstrapTelemetry(telemetry.apiPort); + } +} + +export async function configureExpress( + app: NestExpressApplication, + { + permitSwaggerWrite = true, + ssr, + }: { + /** + * Whether to allow swagger module to write to the specs.json + * This is not desirable when the API is not available + * @default true + */ + permitSwaggerWrite?: boolean; + /** + * Service to use for server-side rendering + */ + ssr: typeof ApiService | typeof MaintenanceWorkerService; + }, +) { + const configRepository = app.get(ConfigRepository); + const { environment, host, port, resourcePaths, network } = configRepository.getEnv(); + + const logger = await app.resolve(LoggingRepository); + logger.setContext('Bootstrap'); + app.useLogger(logger); + + app.set('trust proxy', ['loopback', ...network.trustedProxies]); + app.set('etag', 'strong'); + app.use(cookieParser()); + app.use(json({ limit: '10mb' })); + + if (configRepository.isDev()) { + app.enableCors(); + } + + app.setGlobalPrefix('api', { exclude: excludePaths }); + app.useWebSocketAdapter(new WebSocketAdapter(app)); + + useSwagger(app, { write: configRepository.isDev() && permitSwaggerWrite }); + + if (existsSync(resourcePaths.web.root)) { + // copied from https://github.com/sveltejs/kit/blob/679b5989fe62e3964b9a73b712d7b41831aa1f07/packages/adapter-node/src/handler.js#L46 + // provides serving of precompressed assets and caching of immutable assets + app.use( + sirv(resourcePaths.web.root, { + etag: true, + gzip: true, + brotli: true, + extensions: [], + setHeaders: (res, pathname) => { + if (pathname.startsWith(`/_app/immutable`) && res.statusCode === 200) { + res.setHeader('cache-control', 'public,max-age=31536000,immutable'); + } + }, + }), + ); + } + + app.use(app.get(ssr).ssr(excludePaths)); + app.use(compression()); + + const server = await (host ? app.listen(port, host) : app.listen(port)); + server.requestTimeout = 24 * 60 * 60 * 1000; + + logger.log(`Immich Server is listening on ${await app.getUrl()} [v${serverVersion}] [${environment}] `); +} diff --git a/server/src/app.module.ts b/server/src/app.module.ts index f80a47bb77..caa4ea4b6e 100644 --- a/server/src/app.module.ts +++ b/server/src/app.module.ts @@ -9,15 +9,21 @@ import { commandsAndQuestions } from 'src/commands'; import { IWorker } from 'src/constants'; import { controllers } from 'src/controllers'; import { ImmichWorker } from 'src/enum'; +import { MaintenanceAuthGuard } from 'src/maintenance/maintenance-auth.guard'; +import { MaintenanceWebsocketRepository } from 'src/maintenance/maintenance-websocket.repository'; +import { MaintenanceWorkerController } from 'src/maintenance/maintenance-worker.controller'; +import { MaintenanceWorkerService } from 'src/maintenance/maintenance-worker.service'; import { AuthGuard } from 'src/middleware/auth.guard'; import { ErrorInterceptor } from 'src/middleware/error.interceptor'; import { FileUploadInterceptor } from 'src/middleware/file-upload.interceptor'; import { GlobalExceptionFilter } from 'src/middleware/global-exception.filter'; import { LoggingInterceptor } from 'src/middleware/logging.interceptor'; import { repositories } from 'src/repositories'; +import { AppRepository } from 'src/repositories/app.repository'; import { ConfigRepository } from 'src/repositories/config.repository'; import { EventRepository } from 'src/repositories/event.repository'; import { LoggingRepository } from 'src/repositories/logging.repository'; +import { SystemMetadataRepository } from 'src/repositories/system-metadata.repository'; import { teardownTelemetry, TelemetryRepository } from 'src/repositories/telemetry.repository'; import { WebsocketRepository } from 'src/repositories/websocket.repository'; import { services } from 'src/services'; @@ -28,27 +34,27 @@ import { getKyselyConfig } from 'src/utils/database'; const common = [...repositories, ...services, GlobalExceptionFilter]; -export const middleware = [ - FileUploadInterceptor, +const commonMiddleware = [ { provide: APP_FILTER, useClass: GlobalExceptionFilter }, { provide: APP_PIPE, useValue: new ValidationPipe({ transform: true, whitelist: true }) }, { provide: APP_INTERCEPTOR, useClass: LoggingInterceptor }, { provide: APP_INTERCEPTOR, useClass: ErrorInterceptor }, - { provide: APP_GUARD, useClass: AuthGuard }, ]; +const apiMiddleware = [FileUploadInterceptor, ...commonMiddleware, { provide: APP_GUARD, useClass: AuthGuard }]; + const configRepository = new ConfigRepository(); const { bull, cls, database, otel } = configRepository.getEnv(); -const imports = [ - BullModule.forRoot(bull.config), - BullModule.registerQueue(...bull.queues), +const commonImports = [ ClsModule.forRoot(cls.config), - OpenTelemetryModule.forRoot(otel), KyselyModule.forRoot(getKyselyConfig(database.config)), + OpenTelemetryModule.forRoot(otel), ]; -class BaseModule implements OnModuleInit, OnModuleDestroy { +const bullImports = [BullModule.forRoot(bull.config), BullModule.registerQueue(...bull.queues)]; + +export class BaseModule implements OnModuleInit, OnModuleDestroy { constructor( @Inject(IWorker) private worker: ImmichWorker, logger: LoggingRepository, @@ -85,20 +91,44 @@ class BaseModule implements OnModuleInit, OnModuleDestroy { } @Module({ - imports: [...imports, ScheduleModule.forRoot()], + imports: [...bullImports, ...commonImports, ScheduleModule.forRoot()], controllers: [...controllers], - providers: [...common, ...middleware, { provide: IWorker, useValue: ImmichWorker.Api }], + providers: [...common, ...apiMiddleware, { provide: IWorker, useValue: ImmichWorker.Api }], }) export class ApiModule extends BaseModule {} @Module({ - imports: [...imports], + imports: [...commonImports], + controllers: [MaintenanceWorkerController], + providers: [ + ConfigRepository, + LoggingRepository, + SystemMetadataRepository, + AppRepository, + MaintenanceWebsocketRepository, + MaintenanceWorkerService, + ...commonMiddleware, + { provide: APP_GUARD, useClass: MaintenanceAuthGuard }, + { provide: IWorker, useValue: ImmichWorker.Maintenance }, + ], +}) +export class MaintenanceModule { + constructor( + @Inject(IWorker) private worker: ImmichWorker, + logger: LoggingRepository, + ) { + logger.setAppName(this.worker); + } +} + +@Module({ + imports: [...bullImports, ...commonImports], providers: [...common, { provide: IWorker, useValue: ImmichWorker.Microservices }, SchedulerRegistry], }) export class MicroservicesModule extends BaseModule {} @Module({ - imports: [...imports], + imports: [...bullImports, ...commonImports], providers: [...common, ...commandsAndQuestions, SchedulerRegistry], }) export class ImmichAdminModule implements OnModuleDestroy { diff --git a/server/src/commands/index.ts b/server/src/commands/index.ts index 46a8d13e35..2aef2e8c8b 100644 --- a/server/src/commands/index.ts +++ b/server/src/commands/index.ts @@ -1,5 +1,6 @@ import { GrantAdminCommand, PromptEmailQuestion, RevokeAdminCommand } from 'src/commands/grant-admin'; import { ListUsersCommand } from 'src/commands/list-users.command'; +import { DisableMaintenanceModeCommand, EnableMaintenanceModeCommand } from 'src/commands/maintenance-mode'; import { ChangeMediaLocationCommand, PromptConfirmMoveQuestions, @@ -16,6 +17,8 @@ export const commandsAndQuestions = [ PromptEmailQuestion, EnablePasswordLoginCommand, DisablePasswordLoginCommand, + EnableMaintenanceModeCommand, + DisableMaintenanceModeCommand, EnableOAuthLogin, DisableOAuthLogin, ListUsersCommand, diff --git a/server/src/commands/maintenance-mode.ts b/server/src/commands/maintenance-mode.ts new file mode 100644 index 0000000000..3416acf05d --- /dev/null +++ b/server/src/commands/maintenance-mode.ts @@ -0,0 +1,37 @@ +import { Command, CommandRunner } from 'nest-commander'; +import { CliService } from 'src/services/cli.service'; + +@Command({ + name: 'enable-maintenance-mode', + description: 'Enable maintenance mode or regenerate the maintenance token', +}) +export class EnableMaintenanceModeCommand extends CommandRunner { + constructor(private service: CliService) { + super(); + } + + async run(): Promise { + const { authUrl, alreadyEnabled } = await this.service.enableMaintenanceMode(); + + console.info(alreadyEnabled ? 'The server is already in maintenance mode!' : 'Maintenance mode has been enabled.'); + console.info(`\nLog in using the following URL:\n${authUrl}`); + } +} + +@Command({ + name: 'disable-maintenance-mode', + description: 'Disable maintenance mode', +}) +export class DisableMaintenanceModeCommand extends CommandRunner { + constructor(private service: CliService) { + super(); + } + + async run(): Promise { + const { alreadyDisabled } = await this.service.disableMaintenanceMode(); + + console.log( + alreadyDisabled ? 'The server is already out of maintenance mode!' : 'Maintenance mode has been disabled.', + ); + } +} diff --git a/server/src/constants.ts b/server/src/constants.ts index d624557c54..68534c00e9 100644 --- a/server/src/constants.ts +++ b/server/src/constants.ts @@ -150,6 +150,7 @@ export const endpointTags: Record = { 'Queues and background jobs are used for processing tasks asynchronously. Queues can be paused and resumed as needed.', [ApiTag.Libraries]: 'An external library is made up of input file paths or expressions that are scanned for asset files. Discovered files are automatically imported. Assets much be unique within a library, but can be duplicated across libraries. Each user has a default upload library, and can have one or more external libraries.', + [ApiTag.Maintenance]: 'Maintenance mode allows you to put Immich in a read-only state to perform various operations.', [ApiTag.Map]: 'Map endpoints include supplemental functionality related to geolocation, such as reverse geocoding and retrieving map markers for assets with geolocation data.', [ApiTag.Memories]: diff --git a/server/src/controllers/index.ts b/server/src/controllers/index.ts index c0c0461fb3..d5811de48c 100644 --- a/server/src/controllers/index.ts +++ b/server/src/controllers/index.ts @@ -11,6 +11,7 @@ import { DuplicateController } from 'src/controllers/duplicate.controller'; import { FaceController } from 'src/controllers/face.controller'; import { JobController } from 'src/controllers/job.controller'; import { LibraryController } from 'src/controllers/library.controller'; +import { MaintenanceController } from 'src/controllers/maintenance.controller'; import { MapController } from 'src/controllers/map.controller'; import { MemoryController } from 'src/controllers/memory.controller'; import { NotificationAdminController } from 'src/controllers/notification-admin.controller'; @@ -49,6 +50,7 @@ export const controllers = [ FaceController, JobController, LibraryController, + MaintenanceController, MapController, MemoryController, NotificationController, diff --git a/server/src/controllers/maintenance.controller.ts b/server/src/controllers/maintenance.controller.ts new file mode 100644 index 0000000000..7b2aa17582 --- /dev/null +++ b/server/src/controllers/maintenance.controller.ts @@ -0,0 +1,49 @@ +import { BadRequestException, Body, Controller, Post, Res } from '@nestjs/common'; +import { ApiTags } from '@nestjs/swagger'; +import { Response } from 'express'; +import { Endpoint, HistoryBuilder } from 'src/decorators'; +import { AuthDto } from 'src/dtos/auth.dto'; +import { MaintenanceAuthDto, MaintenanceLoginDto, SetMaintenanceModeDto } from 'src/dtos/maintenance.dto'; +import { ApiTag, ImmichCookie, MaintenanceAction, Permission } from 'src/enum'; +import { Auth, Authenticated, GetLoginDetails } from 'src/middleware/auth.guard'; +import { LoginDetails } from 'src/services/auth.service'; +import { MaintenanceService } from 'src/services/maintenance.service'; +import { respondWithCookie } from 'src/utils/response'; + +@ApiTags(ApiTag.Maintenance) +@Controller('admin/maintenance') +export class MaintenanceController { + constructor(private service: MaintenanceService) {} + + @Post('login') + @Endpoint({ + summary: 'Log into maintenance mode', + description: 'Login with maintenance token or cookie to receive current information and perform further actions.', + history: new HistoryBuilder().added('v2.3.0').alpha('v2.3.0'), + }) + maintenanceLogin(@Body() _dto: MaintenanceLoginDto): MaintenanceAuthDto { + throw new BadRequestException('Not in maintenance mode'); + } + + @Post() + @Endpoint({ + summary: 'Set maintenance mode', + description: 'Put Immich into or take it out of maintenance mode', + history: new HistoryBuilder().added('v2.3.0').alpha('v2.3.0'), + }) + @Authenticated({ permission: Permission.Maintenance, admin: true }) + async setMaintenanceMode( + @Auth() auth: AuthDto, + @Body() dto: SetMaintenanceModeDto, + @GetLoginDetails() loginDetails: LoginDetails, + @Res({ passthrough: true }) res: Response, + ): Promise { + if (dto.action === MaintenanceAction.Start) { + const { jwt } = await this.service.startMaintenance(auth.user.name); + return respondWithCookie(res, undefined, { + isSecure: loginDetails.isSecure, + values: [{ key: ImmichCookie.MaintenanceToken, value: jwt }], + }); + } + } +} diff --git a/server/src/dtos/maintenance.dto.ts b/server/src/dtos/maintenance.dto.ts new file mode 100644 index 0000000000..fe6960c0a4 --- /dev/null +++ b/server/src/dtos/maintenance.dto.ts @@ -0,0 +1,16 @@ +import { MaintenanceAction } from 'src/enum'; +import { ValidateEnum, ValidateString } from 'src/validation'; + +export class SetMaintenanceModeDto { + @ValidateEnum({ enum: MaintenanceAction, name: 'MaintenanceAction' }) + action!: MaintenanceAction; +} + +export class MaintenanceLoginDto { + @ValidateString({ optional: true }) + token?: string; +} + +export class MaintenanceAuthDto { + username!: string; +} diff --git a/server/src/dtos/server.dto.ts b/server/src/dtos/server.dto.ts index d7589c8a29..e98cb2edf6 100644 --- a/server/src/dtos/server.dto.ts +++ b/server/src/dtos/server.dto.ts @@ -154,6 +154,7 @@ export class ServerConfigDto { publicUsers!: boolean; mapDarkStyleUrl!: string; mapLightStyleUrl!: string; + maintenanceMode!: boolean; } export class ServerFeaturesDto { diff --git a/server/src/enum.ts b/server/src/enum.ts index 6055ee85bf..d397f9d2ae 100644 --- a/server/src/enum.ts +++ b/server/src/enum.ts @@ -5,6 +5,7 @@ export enum AuthType { export enum ImmichCookie { AccessToken = 'immich_access_token', + MaintenanceToken = 'immich_maintenance_token', AuthType = 'immich_auth_type', IsAuthenticated = 'immich_is_authenticated', SharedLinkToken = 'immich_shared_link_token', @@ -146,6 +147,8 @@ export enum Permission { TimelineRead = 'timeline.read', TimelineDownload = 'timeline.download', + Maintenance = 'maintenance', + MemoryCreate = 'memory.create', MemoryRead = 'memory.read', MemoryUpdate = 'memory.update', @@ -285,6 +288,7 @@ export enum SystemMetadataKey { FacialRecognitionState = 'facial-recognition-state', MemoriesState = 'memories-state', AdminOnboarding = 'admin-onboarding', + MaintenanceMode = 'maintenance-mode', SystemConfig = 'system-config', SystemFlags = 'system-flags', VersionCheckState = 'version-check-state', @@ -477,6 +481,7 @@ export enum ImmichEnvironment { export enum ImmichWorker { Api = 'api', + Maintenance = 'maintenance', Microservices = 'microservices', } @@ -655,6 +660,15 @@ export enum DatabaseLock { MemoryCreation = 777, } +export enum MaintenanceAction { + Start = 'start', + End = 'end', +} + +export enum ExitCode { + AppRestart = 7, +} + export enum SyncRequestType { AlbumsV1 = 'AlbumsV1', AlbumUsersV1 = 'AlbumUsersV1', @@ -801,6 +815,7 @@ export enum ApiTag { Faces = 'Faces', Jobs = 'Jobs', Libraries = 'Libraries', + Maintenance = 'Maintenance (admin)', Map = 'Map', Memories = 'Memories', Notifications = 'Notifications', diff --git a/server/src/main.ts b/server/src/main.ts index 68ea396e7a..47185e846f 100644 --- a/server/src/main.ts +++ b/server/src/main.ts @@ -1,61 +1,151 @@ +import { Kysely } from 'kysely'; import { CommandFactory } from 'nest-commander'; import { ChildProcess, fork } from 'node:child_process'; import { dirname, join } from 'node:path'; import { Worker } from 'node:worker_threads'; +import { PostgresError } from 'postgres'; import { ImmichAdminModule } from 'src/app.module'; -import { ImmichWorker, LogLevel } from 'src/enum'; +import { ExitCode, ImmichWorker, LogLevel, SystemMetadataKey } from 'src/enum'; import { ConfigRepository } from 'src/repositories/config.repository'; +import { SystemMetadataRepository } from 'src/repositories/system-metadata.repository'; +import { type DB } from 'src/schema'; +import { getKyselyConfig } from 'src/utils/database'; -const immichApp = process.argv[2]; -if (immichApp) { - process.argv.splice(2, 1); -} +/** + * Manages worker lifecycle + */ +class Workers { + /** + * Currently running workers + */ + workers: Partial Promise | void }>> = {}; -let apiProcess: ChildProcess | undefined; + /** + * Fail-safe in case anything dies during restart + */ + restarting = false; -const onError = (name: string, error: Error) => { - console.error(`${name} worker error: ${error}, stack: ${error.stack}`); -}; + /** + * Boot all enabled workers + */ + async bootstrap() { + const isMaintenanceMode = await this.isMaintenanceMode(); + const { workers } = new ConfigRepository().getEnv(); -const onExit = (name: string, exitCode: number | null) => { - if (exitCode !== 0) { - console.error(`${name} worker exited with code ${exitCode}`); - - if (apiProcess && name !== ImmichWorker.Api) { - console.error('Killing api process'); - apiProcess.kill('SIGTERM'); - apiProcess = undefined; + if (isMaintenanceMode) { + this.startWorker(ImmichWorker.Maintenance); + } else { + for (const worker of workers) { + this.startWorker(worker); + } } } - process.exit(exitCode); -}; + /** + * Initialise a short-lived Nest application to build configuration + * @returns System configuration + */ + private async isMaintenanceMode(): Promise { + const { database } = new ConfigRepository().getEnv(); + const kysely = new Kysely(getKyselyConfig(database.config)); + const systemMetadataRepository = new SystemMetadataRepository(kysely); -function bootstrapWorker(name: ImmichWorker) { - console.log(`Starting ${name} worker`); + try { + const value = await systemMetadataRepository.get(SystemMetadataKey.MaintenanceMode); + return value?.isMaintenanceMode || false; + } catch (error) { + // Table doesn't exist (migrations haven't run yet) + if (error instanceof PostgresError && error.code === '42P01') { + return false; + } - // eslint-disable-next-line unicorn/prefer-module - const basePath = dirname(__filename); - const workerFile = join(basePath, 'workers', `${name}.js`); - - let worker: Worker | ChildProcess; - if (name === ImmichWorker.Api) { - worker = fork(workerFile, [], { - execArgv: process.execArgv.map((arg) => (arg.startsWith('--inspect') ? '--inspect=0.0.0.0:9231' : arg)), - }); - apiProcess = worker; - } else { - worker = new Worker(workerFile); + throw error; + } finally { + await kysely.destroy(); + } } - worker.on('error', (error) => onError(name, error)); - worker.on('exit', (exitCode) => onExit(name, exitCode)); + /** + * Start an individual worker + * @param name Worker + */ + private startWorker(name: ImmichWorker) { + console.log(`Starting ${name} worker`); + + // eslint-disable-next-line unicorn/prefer-module + const basePath = dirname(__filename); + const workerFile = join(basePath, 'workers', `${name}.js`); + + let anyWorker: Worker | ChildProcess; + let kill: (signal?: NodeJS.Signals) => Promise | void; + + if (name === ImmichWorker.Api) { + const worker = fork(workerFile, [], { + execArgv: process.execArgv.map((arg) => (arg.startsWith('--inspect') ? '--inspect=0.0.0.0:9231' : arg)), + }); + + kill = (signal) => void worker.kill(signal); + anyWorker = worker; + } else { + const worker = new Worker(workerFile); + + kill = async () => void (await worker.terminate()); + anyWorker = worker; + } + + anyWorker.on('error', (error) => this.onError(name, error)); + anyWorker.on('exit', (exitCode) => this.onExit(name, exitCode)); + + this.workers[name] = { kill }; + } + + onError(name: ImmichWorker, error: Error) { + console.error(`${name} worker error: ${error}, stack: ${error.stack}`); + } + + onExit(name: ImmichWorker, exitCode: number | null) { + // restart immich server + if (exitCode === ExitCode.AppRestart || this.restarting) { + this.restarting = true; + + console.info(`${name} worker shutdown for restart`); + delete this.workers[name]; + + // once all workers shut down, bootstrap again + if (Object.keys(this.workers).length === 0) { + void this.bootstrap(); + this.restarting = false; + } + + return; + } + + // shutdown the entire process + delete this.workers[name]; + + if (exitCode !== 0) { + console.error(`${name} worker exited with code ${exitCode}`); + + if (this.workers[ImmichWorker.Api] && name !== ImmichWorker.Api) { + console.error('Killing api process'); + void this.workers[ImmichWorker.Api].kill('SIGTERM'); + } + } + + process.exit(exitCode); + } } -function bootstrap() { +function main() { + const immichApp = process.argv[2]; + if (immichApp) { + process.argv.splice(2, 1); + } + if (immichApp === 'immich-admin') { process.title = 'immich_admin_cli'; process.env.IMMICH_LOG_LEVEL = LogLevel.Warn; + return CommandFactory.run(ImmichAdminModule); } @@ -72,10 +162,7 @@ function bootstrap() { } process.title = 'immich'; - const { workers } = new ConfigRepository().getEnv(); - for (const worker of workers) { - bootstrapWorker(worker); - } + void new Workers().bootstrap(); } -void bootstrap(); +void main(); diff --git a/server/src/maintenance/maintenance-auth.guard.ts b/server/src/maintenance/maintenance-auth.guard.ts new file mode 100644 index 0000000000..08aaad516b --- /dev/null +++ b/server/src/maintenance/maintenance-auth.guard.ts @@ -0,0 +1,58 @@ +import { + CanActivate, + ExecutionContext, + Injectable, + SetMetadata, + applyDecorators, + createParamDecorator, +} from '@nestjs/common'; +import { Reflector } from '@nestjs/core'; +import { Request } from 'express'; +import { MaintenanceAuthDto } from 'src/dtos/maintenance.dto'; +import { MetadataKey } from 'src/enum'; +import { MaintenanceWorkerService } from 'src/maintenance/maintenance-worker.service'; +import { LoggingRepository } from 'src/repositories/logging.repository'; + +export const MaintenanceRoute = (options = {}): MethodDecorator => { + const decorators: MethodDecorator[] = [SetMetadata(MetadataKey.AuthRoute, options)]; + return applyDecorators(...decorators); +}; + +export interface MaintenanceAuthRequest extends Request { + auth?: MaintenanceAuthDto; +} + +export interface MaintenanceAuthenticatedRequest extends Request { + auth: MaintenanceAuthDto; +} + +export const MaintenanceAuth = createParamDecorator((data, context: ExecutionContext): MaintenanceAuthDto => { + return context.switchToHttp().getRequest().auth; +}); + +@Injectable() +export class MaintenanceAuthGuard implements CanActivate { + constructor( + private logger: LoggingRepository, + private reflector: Reflector, + private service: MaintenanceWorkerService, + ) { + this.logger.setContext(MaintenanceAuthGuard.name); + } + + async canActivate(context: ExecutionContext): Promise { + const targets = [context.getHandler()]; + const options = this.reflector.getAllAndOverride<{ _emptyObject: never } | undefined>( + MetadataKey.AuthRoute, + targets, + ); + if (!options) { + return true; + } + + const request = context.switchToHttp().getRequest(); + request.auth = await this.service.authenticate(request.headers); + + return true; + } +} diff --git a/server/src/maintenance/maintenance-websocket.repository.ts b/server/src/maintenance/maintenance-websocket.repository.ts new file mode 100644 index 0000000000..5d8368cf69 --- /dev/null +++ b/server/src/maintenance/maintenance-websocket.repository.ts @@ -0,0 +1,59 @@ +import { Injectable } from '@nestjs/common'; +import { + OnGatewayConnection, + OnGatewayDisconnect, + OnGatewayInit, + WebSocketGateway, + WebSocketServer, +} from '@nestjs/websockets'; +import { Server, Socket } from 'socket.io'; +import { AppRepository } from 'src/repositories/app.repository'; +import { AppRestartEvent, ArgsOf } from 'src/repositories/event.repository'; +import { LoggingRepository } from 'src/repositories/logging.repository'; + +export const serverEvents = ['AppRestart'] as const; +export type ServerEvents = (typeof serverEvents)[number]; + +export interface ClientEventMap { + AppRestartV1: [AppRestartEvent]; +} + +@WebSocketGateway({ + cors: true, + path: '/api/socket.io', + transports: ['websocket'], +}) +@Injectable() +export class MaintenanceWebsocketRepository implements OnGatewayConnection, OnGatewayDisconnect, OnGatewayInit { + @WebSocketServer() + private websocketServer?: Server; + + constructor( + private logger: LoggingRepository, + private appRepository: AppRepository, + ) { + this.logger.setContext(MaintenanceWebsocketRepository.name); + } + + afterInit(websocketServer: Server) { + this.logger.log('Initialized websocket server'); + websocketServer.on('AppRestart', () => this.appRepository.exitApp()); + } + + clientBroadcast(event: T, ...data: ClientEventMap[T]) { + this.websocketServer?.emit(event, ...data); + } + + serverSend(event: T, ...args: ArgsOf): void { + this.logger.debug(`Server event: ${event} (send)`); + this.websocketServer?.serverSideEmit(event, ...args); + } + + handleConnection(client: Socket) { + this.logger.log(`Websocket Connect: ${client.id}`); + } + + handleDisconnect(client: Socket) { + this.logger.log(`Websocket Disconnect: ${client.id}`); + } +} diff --git a/server/src/maintenance/maintenance-worker.controller.ts b/server/src/maintenance/maintenance-worker.controller.ts new file mode 100644 index 0000000000..e6143b771a --- /dev/null +++ b/server/src/maintenance/maintenance-worker.controller.ts @@ -0,0 +1,43 @@ +import { Body, Controller, Get, Post, Req, Res } from '@nestjs/common'; +import { Request, Response } from 'express'; +import { MaintenanceAuthDto, MaintenanceLoginDto, SetMaintenanceModeDto } from 'src/dtos/maintenance.dto'; +import { ServerConfigDto } from 'src/dtos/server.dto'; +import { ImmichCookie, MaintenanceAction } from 'src/enum'; +import { MaintenanceRoute } from 'src/maintenance/maintenance-auth.guard'; +import { MaintenanceWorkerService } from 'src/maintenance/maintenance-worker.service'; +import { GetLoginDetails } from 'src/middleware/auth.guard'; +import { LoginDetails } from 'src/services/auth.service'; +import { respondWithCookie } from 'src/utils/response'; + +@Controller() +export class MaintenanceWorkerController { + constructor(private service: MaintenanceWorkerService) {} + + @Get('server/config') + getServerConfig(): Promise { + return this.service.getSystemConfig(); + } + + @Post('admin/maintenance/login') + async maintenanceLogin( + @Req() request: Request, + @Body() dto: MaintenanceLoginDto, + @GetLoginDetails() loginDetails: LoginDetails, + @Res({ passthrough: true }) res: Response, + ): Promise { + const token = dto.token ?? request.cookies[ImmichCookie.MaintenanceToken]; + const auth = await this.service.login(token); + return respondWithCookie(res, auth, { + isSecure: loginDetails.isSecure, + values: [{ key: ImmichCookie.MaintenanceToken, value: token }], + }); + } + + @Post('admin/maintenance') + @MaintenanceRoute() + async setMaintenanceMode(@Body() dto: SetMaintenanceModeDto): Promise { + if (dto.action === MaintenanceAction.End) { + await this.service.endMaintenance(); + } + } +} diff --git a/server/src/maintenance/maintenance-worker.service.spec.ts b/server/src/maintenance/maintenance-worker.service.spec.ts new file mode 100644 index 0000000000..dd5b984214 --- /dev/null +++ b/server/src/maintenance/maintenance-worker.service.spec.ts @@ -0,0 +1,128 @@ +import { UnauthorizedException } from '@nestjs/common'; +import { SignJWT } from 'jose'; +import { SystemMetadataKey } from 'src/enum'; +import { MaintenanceWebsocketRepository } from 'src/maintenance/maintenance-websocket.repository'; +import { MaintenanceWorkerService } from 'src/maintenance/maintenance-worker.service'; +import { automock, getMocks, ServiceMocks } from 'test/utils'; + +describe(MaintenanceWorkerService.name, () => { + let sut: MaintenanceWorkerService; + let mocks: ServiceMocks; + let maintenanceWorkerRepositoryMock: MaintenanceWebsocketRepository; + + beforeEach(() => { + mocks = getMocks(); + maintenanceWorkerRepositoryMock = automock(MaintenanceWebsocketRepository, { args: [mocks.logger], strict: false }); + sut = new MaintenanceWorkerService( + mocks.logger as never, + mocks.app, + mocks.config, + mocks.systemMetadata as never, + maintenanceWorkerRepositoryMock, + ); + }); + + it('should work', () => { + expect(sut).toBeDefined(); + }); + + describe('getSystemConfig', () => { + it('should respond the server is in maintenance mode', async () => { + await expect(sut.getSystemConfig()).resolves.toMatchObject( + expect.objectContaining({ + maintenanceMode: true, + }), + ); + + expect(mocks.systemMetadata.get).toHaveBeenCalled(); + }); + }); + + describe('logSecret', () => { + const RE_LOGIN_URL = /https:\/\/my.immich.app\/maintenance\?token=([A-Za-z0-9-_]*\.[A-Za-z0-9-_]*\.[A-Za-z0-9-_]*)/; + + it('should log a valid login URL', async () => { + mocks.systemMetadata.get.mockResolvedValue({ isMaintenanceMode: true, secret: 'secret' }); + await expect(sut.logSecret()).resolves.toBeUndefined(); + expect(mocks.logger.log).toHaveBeenCalledWith(expect.stringMatching(RE_LOGIN_URL)); + + const [url] = mocks.logger.log.mock.lastCall!; + const token = RE_LOGIN_URL.exec(url)![1]; + + await expect(sut.login(token)).resolves.toEqual( + expect.objectContaining({ + username: 'immich-admin', + }), + ); + }); + }); + + describe('authenticate', () => { + it('should fail without a cookie', async () => { + await expect(sut.authenticate({})).rejects.toThrowError(new UnauthorizedException('Missing JWT Token')); + }); + + it('should parse cookie properly', async () => { + mocks.systemMetadata.get.mockResolvedValue({ isMaintenanceMode: true, secret: 'secret' }); + + await expect( + sut.authenticate({ + cookie: 'immich_maintenance_token=invalid-jwt', + }), + ).rejects.toThrowError(new UnauthorizedException('Invalid JWT Token')); + }); + }); + + describe('login', () => { + it('should fail without token', async () => { + await expect(sut.login()).rejects.toThrowError(new UnauthorizedException('Missing JWT Token')); + }); + + it('should fail with expired JWT', async () => { + mocks.systemMetadata.get.mockResolvedValue({ isMaintenanceMode: true, secret: 'secret' }); + + const jwt = await new SignJWT({}) + .setProtectedHeader({ alg: 'HS256' }) + .setIssuedAt() + .setExpirationTime('0s') + .sign(new TextEncoder().encode('secret')); + + await expect(sut.login(jwt)).rejects.toThrowError(new UnauthorizedException('Invalid JWT Token')); + }); + + it('should succeed with valid JWT', async () => { + mocks.systemMetadata.get.mockResolvedValue({ isMaintenanceMode: true, secret: 'secret' }); + + const jwt = await new SignJWT({ _mockValue: true }) + .setProtectedHeader({ alg: 'HS256' }) + .setIssuedAt() + .setExpirationTime('4h') + .sign(new TextEncoder().encode('secret')); + + await expect(sut.login(jwt)).resolves.toEqual( + expect.objectContaining({ + _mockValue: true, + }), + ); + }); + }); + + describe('endMaintenance', () => { + it('should set maintenance mode', async () => { + mocks.systemMetadata.get.mockResolvedValue({ isMaintenanceMode: false }); + await expect(sut.endMaintenance()).resolves.toBeUndefined(); + + expect(mocks.systemMetadata.set).toHaveBeenCalledWith(SystemMetadataKey.MaintenanceMode, { + isMaintenanceMode: false, + }); + + expect(maintenanceWorkerRepositoryMock.clientBroadcast).toHaveBeenCalledWith('AppRestartV1', { + isMaintenanceMode: false, + }); + + expect(maintenanceWorkerRepositoryMock.serverSend).toHaveBeenCalledWith('AppRestart', { + isMaintenanceMode: false, + }); + }); + }); +}); diff --git a/server/src/maintenance/maintenance-worker.service.ts b/server/src/maintenance/maintenance-worker.service.ts new file mode 100644 index 0000000000..c03231c274 --- /dev/null +++ b/server/src/maintenance/maintenance-worker.service.ts @@ -0,0 +1,161 @@ +import { Injectable, UnauthorizedException } from '@nestjs/common'; +import { parse } from 'cookie'; +import { NextFunction, Request, Response } from 'express'; +import { jwtVerify } from 'jose'; +import { readFileSync } from 'node:fs'; +import { IncomingHttpHeaders } from 'node:http'; +import { MaintenanceAuthDto } from 'src/dtos/maintenance.dto'; +import { ImmichCookie, SystemMetadataKey } from 'src/enum'; +import { MaintenanceWebsocketRepository } from 'src/maintenance/maintenance-websocket.repository'; +import { AppRepository } from 'src/repositories/app.repository'; +import { ConfigRepository } from 'src/repositories/config.repository'; +import { LoggingRepository } from 'src/repositories/logging.repository'; +import { SystemMetadataRepository } from 'src/repositories/system-metadata.repository'; +import { type ApiService as _ApiService } from 'src/services/api.service'; +import { type BaseService as _BaseService } from 'src/services/base.service'; +import { type ServerService as _ServerService } from 'src/services/server.service'; +import { MaintenanceModeState } from 'src/types'; +import { getConfig } from 'src/utils/config'; +import { createMaintenanceLoginUrl } from 'src/utils/maintenance'; +import { getExternalDomain } from 'src/utils/misc'; + +/** + * This service is available inside of maintenance mode to manage maintenance mode + */ +@Injectable() +export class MaintenanceWorkerService { + constructor( + protected logger: LoggingRepository, + private appRepository: AppRepository, + private configRepository: ConfigRepository, + private systemMetadataRepository: SystemMetadataRepository, + private maintenanceWorkerRepository: MaintenanceWebsocketRepository, + ) { + this.logger.setContext(this.constructor.name); + } + + /** + * {@link _BaseService.configRepos} + */ + private get configRepos() { + return { + configRepo: this.configRepository, + metadataRepo: this.systemMetadataRepository, + logger: this.logger, + }; + } + + /** + * {@link _BaseService.prototype.getConfig} + */ + private getConfig(options: { withCache: boolean }) { + return getConfig(this.configRepos, options); + } + + /** + * {@link _ServerService.getSystemConfig} + */ + async getSystemConfig() { + const config = await this.getConfig({ withCache: false }); + + return { + loginPageMessage: config.server.loginPageMessage, + trashDays: config.trash.days, + userDeleteDelay: config.user.deleteDelay, + oauthButtonText: config.oauth.buttonText, + isInitialized: true, + isOnboarded: true, + externalDomain: config.server.externalDomain, + publicUsers: config.server.publicUsers, + mapDarkStyleUrl: config.map.darkStyle, + mapLightStyleUrl: config.map.lightStyle, + maintenanceMode: true, + }; + } + + /** + * {@link _ApiService.ssr} + */ + ssr(excludePaths: string[]) { + const { resourcePaths } = this.configRepository.getEnv(); + + let index = ''; + try { + index = readFileSync(resourcePaths.web.indexHtml).toString(); + } catch { + this.logger.warn(`Unable to open ${resourcePaths.web.indexHtml}, skipping SSR.`); + } + + return (request: Request, res: Response, next: NextFunction) => { + if ( + request.url.startsWith('/api') || + request.method.toLowerCase() !== 'get' || + excludePaths.some((item) => request.url.startsWith(item)) + ) { + return next(); + } + + const maintenancePath = '/maintenance'; + if (!request.url.startsWith(maintenancePath)) { + const params = new URLSearchParams(); + params.set('continue', request.path); + return res.redirect(`${maintenancePath}?${params}`); + } + + res.status(200).type('text/html').header('Cache-Control', 'no-store').send(index); + }; + } + + private async secret(): Promise { + const state = (await this.systemMetadataRepository.get(SystemMetadataKey.MaintenanceMode)) as { + secret: string; + }; + + return state.secret; + } + + async logSecret(): Promise { + const { server } = await this.getConfig({ withCache: true }); + + const baseUrl = getExternalDomain(server); + const url = await createMaintenanceLoginUrl( + baseUrl, + { + username: 'immich-admin', + }, + await this.secret(), + ); + + this.logger.log(`\n\n🚧 Immich is in maintenance mode, you can log in using the following URL:\n${url}\n`); + } + + async authenticate(headers: IncomingHttpHeaders): Promise { + const jwtToken = parse(headers.cookie || '')[ImmichCookie.MaintenanceToken]; + return this.login(jwtToken); + } + + async login(jwt?: string): Promise { + if (!jwt) { + throw new UnauthorizedException('Missing JWT Token'); + } + + const secret = await this.secret(); + + try { + const result = await jwtVerify(jwt, new TextEncoder().encode(secret)); + return result.payload; + } catch { + throw new UnauthorizedException('Invalid JWT Token'); + } + } + + async endMaintenance(): Promise { + const state: MaintenanceModeState = { isMaintenanceMode: false as const }; + await this.systemMetadataRepository.set(SystemMetadataKey.MaintenanceMode, state); + + // => corresponds to notification.service.ts#onAppRestart + this.maintenanceWorkerRepository.clientBroadcast('AppRestartV1', state); + this.maintenanceWorkerRepository.serverSend('AppRestart', state); + this.appRepository.exitApp(); + } +} diff --git a/server/src/repositories/app.repository.ts b/server/src/repositories/app.repository.ts new file mode 100644 index 0000000000..e6181ef7f3 --- /dev/null +++ b/server/src/repositories/app.repository.ts @@ -0,0 +1,20 @@ +import { Injectable } from '@nestjs/common'; +import { ExitCode } from 'src/enum'; + +@Injectable() +export class AppRepository { + private closeFn?: () => Promise; + + exitApp() { + /* eslint-disable unicorn/no-process-exit */ + void this.closeFn?.().finally(() => process.exit(ExitCode.AppRestart)); + + // in exceptional circumstance, the application may hang + setTimeout(() => process.exit(ExitCode.AppRestart), 2000); + /* eslint-enable unicorn/no-process-exit */ + } + + setCloseFn(fn: () => Promise) { + this.closeFn = fn; + } +} diff --git a/server/src/repositories/event.repository.ts b/server/src/repositories/event.repository.ts index 80d411c5ae..fbc281ccb3 100644 --- a/server/src/repositories/event.repository.ts +++ b/server/src/repositories/event.repository.ts @@ -26,6 +26,7 @@ type EventMap = { // app events AppBootstrap: []; AppShutdown: []; + AppRestart: [AppRestartEvent]; ConfigInit: [{ newConfig: SystemConfig }]; // config events @@ -96,6 +97,10 @@ type EventMap = { WebsocketConnect: [{ userId: string }]; }; +export type AppRestartEvent = { + isMaintenanceMode: boolean; +}; + type JobSuccessEvent = { job: JobItem; response?: JobStatus }; type JobErrorEvent = { job: JobItem; error: Error | any }; diff --git a/server/src/repositories/index.ts b/server/src/repositories/index.ts index c69536a327..c59110d674 100644 --- a/server/src/repositories/index.ts +++ b/server/src/repositories/index.ts @@ -3,6 +3,7 @@ import { ActivityRepository } from 'src/repositories/activity.repository'; import { AlbumUserRepository } from 'src/repositories/album-user.repository'; import { AlbumRepository } from 'src/repositories/album.repository'; import { ApiKeyRepository } from 'src/repositories/api-key.repository'; +import { AppRepository } from 'src/repositories/app.repository'; import { AssetJobRepository } from 'src/repositories/asset-job.repository'; import { AssetRepository } from 'src/repositories/asset.repository'; import { AuditRepository } from 'src/repositories/audit.repository'; @@ -56,6 +57,7 @@ export const repositories = [ AlbumUserRepository, AuditRepository, ApiKeyRepository, + AppRepository, AssetRepository, AssetJobRepository, ConfigRepository, diff --git a/server/src/repositories/websocket.repository.ts b/server/src/repositories/websocket.repository.ts index 030659772d..d87bf76351 100644 --- a/server/src/repositories/websocket.repository.ts +++ b/server/src/repositories/websocket.repository.ts @@ -12,11 +12,11 @@ import { AuthDto } from 'src/dtos/auth.dto'; import { NotificationDto } from 'src/dtos/notification.dto'; import { ReleaseNotification, ServerVersionResponseDto } from 'src/dtos/server.dto'; import { SyncAssetExifV1, SyncAssetV1 } from 'src/dtos/sync.dto'; -import { ArgsOf, EventRepository } from 'src/repositories/event.repository'; +import { AppRestartEvent, ArgsOf, EventRepository } from 'src/repositories/event.repository'; import { LoggingRepository } from 'src/repositories/logging.repository'; import { handlePromiseError } from 'src/utils/misc'; -export const serverEvents = ['ConfigUpdate'] as const; +export const serverEvents = ['ConfigUpdate', 'AppRestart'] as const; export type ServerEvents = (typeof serverEvents)[number]; export interface ClientEventMap { @@ -36,6 +36,7 @@ export interface ClientEventMap { on_session_delete: [string]; AssetUploadReadyV1: [{ asset: SyncAssetV1; exif: SyncAssetExifV1 }]; + AppRestartV1: [AppRestartEvent]; } export type AuthFn = (client: Socket) => Promise; diff --git a/server/src/services/api.service.ts b/server/src/services/api.service.ts index 0ec2a65f92..ed1b4095d6 100644 --- a/server/src/services/api.service.ts +++ b/server/src/services/api.service.ts @@ -11,7 +11,7 @@ import { SharedLinkService } from 'src/services/shared-link.service'; import { VersionService } from 'src/services/version.service'; import { OpenGraphTags } from 'src/utils/misc'; -const render = (index: string, meta: OpenGraphTags) => { +export const render = (index: string, meta: OpenGraphTags) => { const [title, description, imageUrl] = [meta.title, meta.description, meta.imageUrl].map((item) => item ? sanitizeHtml(item, { allowedTags: [] }) : '', ); diff --git a/server/src/services/base.service.ts b/server/src/services/base.service.ts index 2c6d07b635..9c422818b3 100644 --- a/server/src/services/base.service.ts +++ b/server/src/services/base.service.ts @@ -10,6 +10,7 @@ import { ActivityRepository } from 'src/repositories/activity.repository'; import { AlbumUserRepository } from 'src/repositories/album-user.repository'; import { AlbumRepository } from 'src/repositories/album.repository'; import { ApiKeyRepository } from 'src/repositories/api-key.repository'; +import { AppRepository } from 'src/repositories/app.repository'; import { AssetJobRepository } from 'src/repositories/asset-job.repository'; import { AssetRepository } from 'src/repositories/asset.repository'; import { AuditRepository } from 'src/repositories/audit.repository'; @@ -66,6 +67,7 @@ export const BASE_SERVICE_DEPENDENCIES = [ AlbumRepository, AlbumUserRepository, ApiKeyRepository, + AppRepository, AssetRepository, AssetJobRepository, AuditRepository, @@ -123,6 +125,7 @@ export class BaseService { protected albumRepository: AlbumRepository, protected albumUserRepository: AlbumUserRepository, protected apiKeyRepository: ApiKeyRepository, + protected appRepository: AppRepository, protected assetRepository: AssetRepository, protected assetJobRepository: AssetJobRepository, protected auditRepository: AuditRepository, diff --git a/server/src/services/cli.service.spec.ts b/server/src/services/cli.service.spec.ts index 1140d44601..49fa5cf5b8 100644 --- a/server/src/services/cli.service.spec.ts +++ b/server/src/services/cli.service.spec.ts @@ -1,3 +1,5 @@ +import { jwtVerify } from 'jose'; +import { SystemMetadataKey } from 'src/enum'; import { CliService } from 'src/services/cli.service'; import { factory } from 'test/small.factory'; import { newTestService, ServiceMocks } from 'test/utils'; @@ -80,6 +82,82 @@ describe(CliService.name, () => { }); }); + describe('disableMaintenanceMode', () => { + it('should not do anything if not in maintenance mode', async () => { + mocks.systemMetadata.get.mockResolvedValue({ isMaintenanceMode: false }); + await expect(sut.disableMaintenanceMode()).resolves.toEqual({ + alreadyDisabled: true, + }); + + expect(mocks.systemMetadata.set).toHaveBeenCalledTimes(0); + expect(mocks.event.emit).toHaveBeenCalledTimes(0); + }); + + it('should disable maintenance mode', async () => { + mocks.systemMetadata.get.mockResolvedValue({ isMaintenanceMode: true, secret: 'secret' }); + await expect(sut.disableMaintenanceMode()).resolves.toEqual({ + alreadyDisabled: false, + }); + + expect(mocks.systemMetadata.set).toHaveBeenCalledWith(SystemMetadataKey.MaintenanceMode, { + isMaintenanceMode: false, + }); + }); + }); + + describe('enableMaintenanceMode', () => { + it('should not do anything if in maintenance mode', async () => { + mocks.systemMetadata.get.mockResolvedValue({ isMaintenanceMode: true, secret: 'secret' }); + await expect(sut.enableMaintenanceMode()).resolves.toEqual( + expect.objectContaining({ + alreadyEnabled: true, + }), + ); + + expect(mocks.systemMetadata.set).toHaveBeenCalledTimes(0); + expect(mocks.event.emit).toHaveBeenCalledTimes(0); + }); + + it('should enable maintenance mode', async () => { + mocks.systemMetadata.get.mockResolvedValue({ isMaintenanceMode: false }); + await expect(sut.enableMaintenanceMode()).resolves.toEqual( + expect.objectContaining({ + alreadyEnabled: false, + }), + ); + + expect(mocks.systemMetadata.set).toHaveBeenCalledWith(SystemMetadataKey.MaintenanceMode, { + isMaintenanceMode: true, + secret: expect.stringMatching(/^\w{128}$/), + }); + }); + + const RE_LOGIN_URL = /https:\/\/my.immich.app\/maintenance\?token=([A-Za-z0-9-_]*\.[A-Za-z0-9-_]*\.[A-Za-z0-9-_]*)/; + + it('should return a valid login URL', async () => { + mocks.systemMetadata.get.mockResolvedValue({ isMaintenanceMode: true, secret: 'secret' }); + + const result = await sut.enableMaintenanceMode(); + + expect(result).toEqual( + expect.objectContaining({ + authUrl: expect.stringMatching(RE_LOGIN_URL), + alreadyEnabled: true, + }), + ); + + const token = RE_LOGIN_URL.exec(result.authUrl)![1]; + + await expect(jwtVerify(token, new TextEncoder().encode('secret'))).resolves.toEqual( + expect.objectContaining({ + payload: expect.objectContaining({ + username: 'cli-admin', + }), + }), + ); + }); + }); + describe('disableOAuthLogin', () => { it('should disable oauth login', async () => { await sut.disableOAuthLogin(); diff --git a/server/src/services/cli.service.ts b/server/src/services/cli.service.ts index 38144e95b4..3d248edc7a 100644 --- a/server/src/services/cli.service.ts +++ b/server/src/services/cli.service.ts @@ -1,8 +1,12 @@ import { Injectable } from '@nestjs/common'; import { isAbsolute } from 'node:path'; import { SALT_ROUNDS } from 'src/constants'; +import { MaintenanceAuthDto } from 'src/dtos/maintenance.dto'; import { UserAdminResponseDto, mapUserAdmin } from 'src/dtos/user.dto'; +import { SystemMetadataKey } from 'src/enum'; import { BaseService } from 'src/services/base.service'; +import { createMaintenanceLoginUrl, generateMaintenanceSecret, sendOneShotAppRestart } from 'src/utils/maintenance'; +import { getExternalDomain } from 'src/utils/misc'; @Injectable() export class CliService extends BaseService { @@ -38,6 +42,63 @@ export class CliService extends BaseService { await this.updateConfig(config); } + async disableMaintenanceMode(): Promise<{ alreadyDisabled: boolean }> { + const currentState = await this.systemMetadataRepository + .get(SystemMetadataKey.MaintenanceMode) + .then((state) => state ?? { isMaintenanceMode: false as const }); + + if (!currentState.isMaintenanceMode) { + return { + alreadyDisabled: true, + }; + } + + const state = { isMaintenanceMode: false as const }; + await this.systemMetadataRepository.set(SystemMetadataKey.MaintenanceMode, state); + + sendOneShotAppRestart(state); + + return { + alreadyDisabled: false, + }; + } + + async enableMaintenanceMode(): Promise<{ authUrl: string; alreadyEnabled: boolean }> { + const { server } = await this.getConfig({ withCache: true }); + const baseUrl = getExternalDomain(server); + + const payload: MaintenanceAuthDto = { + username: 'cli-admin', + }; + + const state = await this.systemMetadataRepository + .get(SystemMetadataKey.MaintenanceMode) + .then((state) => state ?? { isMaintenanceMode: false as const }); + + if (state.isMaintenanceMode) { + return { + authUrl: await createMaintenanceLoginUrl(baseUrl, payload, state.secret), + alreadyEnabled: true, + }; + } + + const secret = generateMaintenanceSecret(); + + await this.systemMetadataRepository.set(SystemMetadataKey.MaintenanceMode, { + isMaintenanceMode: true, + secret, + }); + + sendOneShotAppRestart({ + isMaintenanceMode: true, + }); + + return { + authUrl: await createMaintenanceLoginUrl(baseUrl, payload, secret), + alreadyEnabled: false, + }; + } + async grantAdminAccess(email: string): Promise { const user = await this.userRepository.getByEmail(email); if (!user) { diff --git a/server/src/services/index.ts b/server/src/services/index.ts index 9d09bdaa53..eeb8424048 100644 --- a/server/src/services/index.ts +++ b/server/src/services/index.ts @@ -14,6 +14,7 @@ import { DownloadService } from 'src/services/download.service'; import { DuplicateService } from 'src/services/duplicate.service'; import { JobService } from 'src/services/job.service'; import { LibraryService } from 'src/services/library.service'; +import { MaintenanceService } from 'src/services/maintenance.service'; import { MapService } from 'src/services/map.service'; import { MediaService } from 'src/services/media.service'; import { MemoryService } from 'src/services/memory.service'; @@ -63,6 +64,7 @@ export const services = [ DuplicateService, JobService, LibraryService, + MaintenanceService, MapService, MediaService, MemoryService, diff --git a/server/src/services/maintenance.service.spec.ts b/server/src/services/maintenance.service.spec.ts new file mode 100644 index 0000000000..cc497a6ea4 --- /dev/null +++ b/server/src/services/maintenance.service.spec.ts @@ -0,0 +1,109 @@ +import { SystemMetadataKey } from 'src/enum'; +import { MaintenanceService } from 'src/services/maintenance.service'; +import { newTestService, ServiceMocks } from 'test/utils'; + +describe(MaintenanceService.name, () => { + let sut: MaintenanceService; + let mocks: ServiceMocks; + + beforeEach(() => { + ({ sut, mocks } = newTestService(MaintenanceService)); + }); + + it('should work', () => { + expect(sut).toBeDefined(); + }); + + describe('getMaintenanceMode', () => { + it('should return false if state unknown', async () => { + mocks.systemMetadata.get.mockResolvedValue(null); + + await expect(sut.getMaintenanceMode()).resolves.toEqual({ + isMaintenanceMode: false, + }); + + expect(mocks.systemMetadata.get).toHaveBeenCalled(); + }); + + it('should return false if disabled', async () => { + mocks.systemMetadata.get.mockResolvedValue({ isMaintenanceMode: false }); + + await expect(sut.getMaintenanceMode()).resolves.toEqual({ + isMaintenanceMode: false, + }); + + expect(mocks.systemMetadata.get).toHaveBeenCalled(); + }); + + it('should return true if enabled', async () => { + mocks.systemMetadata.get.mockResolvedValue({ isMaintenanceMode: true, secret: '' }); + + await expect(sut.getMaintenanceMode()).resolves.toEqual({ + isMaintenanceMode: true, + secret: '', + }); + + expect(mocks.systemMetadata.get).toHaveBeenCalled(); + }); + }); + + describe('startMaintenance', () => { + it('should set maintenance mode and return a secret', async () => { + mocks.systemMetadata.get.mockResolvedValue({ isMaintenanceMode: false }); + + await expect(sut.startMaintenance('admin')).resolves.toMatchObject({ + jwt: expect.any(String), + }); + + expect(mocks.systemMetadata.set).toHaveBeenCalledWith(SystemMetadataKey.MaintenanceMode, { + isMaintenanceMode: true, + secret: expect.stringMatching(/^\w{128}$/), + }); + + expect(mocks.event.emit).toHaveBeenCalledWith('AppRestart', { + isMaintenanceMode: true, + }); + }); + }); + + describe('createLoginUrl', () => { + it('should fail outside of maintenance mode without secret', async () => { + mocks.systemMetadata.get.mockResolvedValue({ isMaintenanceMode: false }); + + await expect( + sut.createLoginUrl({ + username: '', + }), + ).rejects.toThrowError('Not in maintenance mode'); + }); + + it('should generate a login url with JWT', async () => { + mocks.systemMetadata.get.mockResolvedValue({ isMaintenanceMode: true, secret: 'secret' }); + + await expect( + sut.createLoginUrl({ + username: '', + }), + ).resolves.toEqual( + expect.stringMatching( + /^https:\/\/my.immich.app\/maintenance\?token=[A-Za-z0-9-_]*\.[A-Za-z0-9-_]*\.[A-Za-z0-9-_]*$/, + ), + ); + + expect(mocks.systemMetadata.get).toHaveBeenCalledTimes(2); + }); + + it('should use the given secret', async () => { + await expect( + sut.createLoginUrl( + { + username: '', + }, + 'secret', + ), + ).resolves.toEqual(expect.stringMatching(/./)); + + expect(mocks.systemMetadata.get).toHaveBeenCalledTimes(1); + }); + }); +}); diff --git a/server/src/services/maintenance.service.ts b/server/src/services/maintenance.service.ts new file mode 100644 index 0000000000..e6808300bc --- /dev/null +++ b/server/src/services/maintenance.service.ts @@ -0,0 +1,53 @@ +import { Injectable } from '@nestjs/common'; +import { OnEvent } from 'src/decorators'; +import { MaintenanceAuthDto } from 'src/dtos/maintenance.dto'; +import { SystemMetadataKey } from 'src/enum'; +import { BaseService } from 'src/services/base.service'; +import { MaintenanceModeState } from 'src/types'; +import { createMaintenanceLoginUrl, generateMaintenanceSecret, signMaintenanceJwt } from 'src/utils/maintenance'; +import { getExternalDomain } from 'src/utils/misc'; + +/** + * This service is available outside of maintenance mode to manage maintenance mode + */ +@Injectable() +export class MaintenanceService extends BaseService { + getMaintenanceMode(): Promise { + return this.systemMetadataRepository + .get(SystemMetadataKey.MaintenanceMode) + .then((state) => state ?? { isMaintenanceMode: false }); + } + + async startMaintenance(username: string): Promise<{ jwt: string }> { + const secret = generateMaintenanceSecret(); + await this.systemMetadataRepository.set(SystemMetadataKey.MaintenanceMode, { isMaintenanceMode: true, secret }); + await this.eventRepository.emit('AppRestart', { isMaintenanceMode: true }); + + return { + jwt: await signMaintenanceJwt(secret, { + username, + }), + }; + } + + @OnEvent({ name: 'AppRestart', server: true }) + onRestart(): void { + this.appRepository.exitApp(); + } + + async createLoginUrl(auth: MaintenanceAuthDto, secret?: string): Promise { + const { server } = await this.getConfig({ withCache: true }); + const baseUrl = getExternalDomain(server); + + if (!secret) { + const state = await this.getMaintenanceMode(); + if (!state.isMaintenanceMode) { + throw new Error('Not in maintenance mode'); + } + + secret = state.secret; + } + + return await createMaintenanceLoginUrl(baseUrl, auth, secret); + } +} diff --git a/server/src/services/notification.service.ts b/server/src/services/notification.service.ts index 8276f141a0..ee87fcf775 100644 --- a/server/src/services/notification.service.ts +++ b/server/src/services/notification.service.ts @@ -114,6 +114,15 @@ export class NotificationService extends BaseService { this.websocketRepository.serverSend('ConfigUpdate', { oldConfig, newConfig }); } + @OnEvent({ name: 'AppRestart' }) + onAppRestart(state: ArgOf<'AppRestart'>) { + this.websocketRepository.clientBroadcast('AppRestartV1', { + isMaintenanceMode: state.isMaintenanceMode, + }); + + this.websocketRepository.serverSend('AppRestart', state); + } + @OnEvent({ name: 'ConfigValidate', priority: -100 }) async onConfigValidate({ oldConfig, newConfig }: ArgOf<'ConfigValidate'>) { try { diff --git a/server/src/services/server.service.spec.ts b/server/src/services/server.service.spec.ts index 8e39f09c62..6e1187a900 100644 --- a/server/src/services/server.service.spec.ts +++ b/server/src/services/server.service.spec.ts @@ -166,6 +166,7 @@ describe(ServerService.name, () => { publicUsers: true, mapDarkStyleUrl: 'https://tiles.immich.cloud/v1/style/dark.json', mapLightStyleUrl: 'https://tiles.immich.cloud/v1/style/light.json', + maintenanceMode: false, }); expect(mocks.systemMetadata.get).toHaveBeenCalled(); }); diff --git a/server/src/services/server.service.ts b/server/src/services/server.service.ts index 5c3669dcbb..af4d706061 100644 --- a/server/src/services/server.service.ts +++ b/server/src/services/server.service.ts @@ -130,6 +130,7 @@ export class ServerService extends BaseService { publicUsers: config.server.publicUsers, mapDarkStyleUrl: config.map.darkStyle, mapLightStyleUrl: config.map.lightStyle, + maintenanceMode: false, }; } diff --git a/server/src/types.ts b/server/src/types.ts index ad947e3774..dd3d25a7cb 100644 --- a/server/src/types.ts +++ b/server/src/types.ts @@ -493,6 +493,7 @@ export interface MemoryData { export type VersionCheckMetadata = { checkedAt: string; releaseVersion: string }; export type SystemFlags = { mountChecks: Record }; +export type MaintenanceModeState = { isMaintenanceMode: true; secret: string } | { isMaintenanceMode: false }; export type MemoriesState = { /** memories have already been created through this date */ lastOnThisDayDate: string; @@ -503,6 +504,7 @@ export interface SystemMetadata extends Record; diff --git a/server/src/utils/maintenance.ts b/server/src/utils/maintenance.ts new file mode 100644 index 0000000000..22de2e4083 --- /dev/null +++ b/server/src/utils/maintenance.ts @@ -0,0 +1,74 @@ +import { createAdapter } from '@socket.io/redis-adapter'; +import Redis from 'ioredis'; +import { SignJWT } from 'jose'; +import { randomBytes } from 'node:crypto'; +import { Server as SocketIO } from 'socket.io'; +import { MaintenanceAuthDto } from 'src/dtos/maintenance.dto'; +import { ConfigRepository } from 'src/repositories/config.repository'; +import { AppRestartEvent } from 'src/repositories/event.repository'; + +export function sendOneShotAppRestart(state: AppRestartEvent): void { + const server = new SocketIO(); + const { redis } = new ConfigRepository().getEnv(); + const pubClient = new Redis(redis); + const subClient = pubClient.duplicate(); + server.adapter(createAdapter(pubClient, subClient)); + + /** + * Keep trying until we manage to stop Immich + * + * Sometimes there appear to be communication + * issues between to the other servers. + * + * This issue only occurs with this method. + */ + async function tryTerminate() { + while (true) { + try { + const responses = await server.serverSideEmitWithAck('AppRestart', state); + if (responses.length > 0) { + return; + } + } catch (error) { + console.error(error); + console.error('Encountered an error while telling Immich to stop.'); + } + + console.info( + "\nIt doesn't appear that Immich stopped, trying again in a moment.\nIf Immich is already not running, you can ignore this error.", + ); + + await new Promise((r) => setTimeout(r, 1e3)); + } + } + + // => corresponds to notification.service.ts#onAppRestart + server.emit('AppRestartV1', state, () => { + void tryTerminate().finally(() => { + pubClient.disconnect(); + subClient.disconnect(); + }); + }); +} + +export async function createMaintenanceLoginUrl( + baseUrl: string, + auth: MaintenanceAuthDto, + secret: string, +): Promise { + return `${baseUrl}/maintenance?token=${await signMaintenanceJwt(secret, auth)}`; +} + +export async function signMaintenanceJwt(secret: string, data: MaintenanceAuthDto): Promise { + const alg = 'HS256'; + + return await new SignJWT({ ...data }) + .setProtectedHeader({ alg }) + .setIssuedAt() + .setExpirationTime('4h') + .sign(new TextEncoder().encode(secret)); +} + +export function generateMaintenanceSecret(): string { + return randomBytes(64).toString('hex'); +} diff --git a/server/src/utils/response.ts b/server/src/utils/response.ts index c5f51c385c..d5356285f0 100644 --- a/server/src/utils/response.ts +++ b/server/src/utils/response.ts @@ -15,6 +15,7 @@ export const respondWithCookie = (res: Response, body: T, { isSecure, values const cookieOptions: Record = { [ImmichCookie.AuthType]: defaults, [ImmichCookie.AccessToken]: defaults, + [ImmichCookie.MaintenanceToken]: { ...defaults, maxAge: Duration.fromObject({ days: 1 }).toMillis() }, [ImmichCookie.OAuthState]: defaults, [ImmichCookie.OAuthCodeVerifier]: defaults, // no httpOnly so that the client can know the auth state diff --git a/server/src/workers/api.ts b/server/src/workers/api.ts index f56adf3b68..99c08c0fa7 100644 --- a/server/src/workers/api.ts +++ b/server/src/workers/api.ts @@ -1,69 +1,22 @@ import { NestFactory } from '@nestjs/core'; import { NestExpressApplication } from '@nestjs/platform-express'; -import { json } from 'body-parser'; -import compression from 'compression'; -import cookieParser from 'cookie-parser'; -import { existsSync } from 'node:fs'; -import sirv from 'sirv'; +import { configureExpress, configureTelemetry } from 'src/app.common'; import { ApiModule } from 'src/app.module'; -import { excludePaths, serverVersion } from 'src/constants'; -import { WebSocketAdapter } from 'src/middleware/websocket.adapter'; -import { ConfigRepository } from 'src/repositories/config.repository'; -import { LoggingRepository } from 'src/repositories/logging.repository'; -import { bootstrapTelemetry } from 'src/repositories/telemetry.repository'; +import { AppRepository } from 'src/repositories/app.repository'; import { ApiService } from 'src/services/api.service'; -import { isStartUpError, useSwagger } from 'src/utils/misc'; +import { isStartUpError } from 'src/utils/misc'; + async function bootstrap() { process.title = 'immich-api'; - const { telemetry, network } = new ConfigRepository().getEnv(); - if (telemetry.metrics.size > 0) { - bootstrapTelemetry(telemetry.apiPort); - } + configureTelemetry(); const app = await NestFactory.create(ApiModule, { bufferLogs: true }); - const logger = await app.resolve(LoggingRepository); - const configRepository = app.get(ConfigRepository); + app.get(AppRepository).setCloseFn(() => app.close()); - const { environment, host, port, resourcePaths } = configRepository.getEnv(); - - logger.setContext('Bootstrap'); - app.useLogger(logger); - app.set('trust proxy', ['loopback', ...network.trustedProxies]); - app.set('etag', 'strong'); - app.use(cookieParser()); - app.use(json({ limit: '10mb' })); - if (configRepository.isDev()) { - app.enableCors(); - } - app.useWebSocketAdapter(new WebSocketAdapter(app)); - useSwagger(app, { write: configRepository.isDev() }); - - app.setGlobalPrefix('api', { exclude: excludePaths }); - if (existsSync(resourcePaths.web.root)) { - // copied from https://github.com/sveltejs/kit/blob/679b5989fe62e3964b9a73b712d7b41831aa1f07/packages/adapter-node/src/handler.js#L46 - // provides serving of precompressed assets and caching of immutable assets - app.use( - sirv(resourcePaths.web.root, { - etag: true, - gzip: true, - brotli: true, - extensions: [], - setHeaders: (res, pathname) => { - if (pathname.startsWith(`/_app/immutable`) && res.statusCode === 200) { - res.setHeader('cache-control', 'public,max-age=31536000,immutable'); - } - }, - }), - ); - } - app.use(app.get(ApiService).ssr(excludePaths)); - app.use(compression()); - - const server = await (host ? app.listen(port, host) : app.listen(port)); - server.requestTimeout = 24 * 60 * 60 * 1000; - - logger.log(`Immich Server is listening on ${await app.getUrl()} [v${serverVersion}] [${environment}] `); + void configureExpress(app, { + ssr: ApiService, + }); } bootstrap().catch((error) => { diff --git a/server/src/workers/maintenance.ts b/server/src/workers/maintenance.ts new file mode 100644 index 0000000000..fcfe990121 --- /dev/null +++ b/server/src/workers/maintenance.ts @@ -0,0 +1,29 @@ +import { NestFactory } from '@nestjs/core'; +import { NestExpressApplication } from '@nestjs/platform-express'; +import { configureExpress, configureTelemetry } from 'src/app.common'; +import { MaintenanceModule } from 'src/app.module'; +import { MaintenanceWorkerService } from 'src/maintenance/maintenance-worker.service'; +import { AppRepository } from 'src/repositories/app.repository'; +import { isStartUpError } from 'src/utils/misc'; + +async function bootstrap() { + process.title = 'immich-maintenance'; + configureTelemetry(); + + const app = await NestFactory.create(MaintenanceModule, { bufferLogs: true }); + app.get(AppRepository).setCloseFn(() => app.close()); + void configureExpress(app, { + permitSwaggerWrite: false, + ssr: MaintenanceWorkerService, + }); + + void app.get(MaintenanceWorkerService).logSecret(); +} + +bootstrap().catch((error) => { + if (!isStartUpError(error)) { + console.error(error); + } + // eslint-disable-next-line unicorn/no-process-exit + process.exit(1); +}); diff --git a/server/src/workers/microservices.ts b/server/src/workers/microservices.ts index 40a85a276d..8f06b4b0b1 100644 --- a/server/src/workers/microservices.ts +++ b/server/src/workers/microservices.ts @@ -3,6 +3,7 @@ import { isMainThread } from 'node:worker_threads'; import { MicroservicesModule } from 'src/app.module'; import { serverVersion } from 'src/constants'; import { WebSocketAdapter } from 'src/middleware/websocket.adapter'; +import { AppRepository } from 'src/repositories/app.repository'; import { ConfigRepository } from 'src/repositories/config.repository'; import { LoggingRepository } from 'src/repositories/logging.repository'; import { bootstrapTelemetry } from 'src/repositories/telemetry.repository'; @@ -17,6 +18,7 @@ export async function bootstrap() { const app = await NestFactory.create(MicroservicesModule, { bufferLogs: true }); const logger = await app.resolve(LoggingRepository); const configRepository = app.get(ConfigRepository); + app.get(AppRepository).setCloseFn(() => app.close()); const { environment, host } = configRepository.getEnv(); diff --git a/server/test/utils.ts b/server/test/utils.ts index d584cf5398..77853f897a 100644 --- a/server/test/utils.ts +++ b/server/test/utils.ts @@ -19,6 +19,7 @@ import { ActivityRepository } from 'src/repositories/activity.repository'; import { AlbumUserRepository } from 'src/repositories/album-user.repository'; import { AlbumRepository } from 'src/repositories/album.repository'; import { ApiKeyRepository } from 'src/repositories/api-key.repository'; +import { AppRepository } from 'src/repositories/app.repository'; import { AssetJobRepository } from 'src/repositories/asset-job.repository'; import { AssetRepository } from 'src/repositories/asset.repository'; import { AuditRepository } from 'src/repositories/audit.repository'; @@ -212,6 +213,7 @@ export type ServiceOverrides = { album: AlbumRepository; albumUser: AlbumUserRepository; apiKey: ApiKeyRepository; + app: AppRepository; audit: AuditRepository; asset: AssetRepository; assetJob: AssetJobRepository; @@ -271,10 +273,7 @@ type Constructor> = { new (...deps: Args): Type; }; -export const newTestService = ( - Service: Constructor, - overrides: Partial = {}, -) => { +export const getMocks = () => { const loggerMock = { setContext: () => {} }; const configMock = { getEnv: () => ({}) }; @@ -291,6 +290,7 @@ export const newTestService = ( albumUser: automock(AlbumUserRepository), asset: newAssetRepositoryMock(), assetJob: automock(AssetJobRepository), + app: automock(AppRepository, { strict: false }), config: newConfigRepositoryMock(), database: newDatabaseRepositoryMock(), downloadRepository: automock(DownloadRepository, { strict: false }), @@ -338,6 +338,15 @@ export const newTestService = ( workflow: automock(WorkflowRepository, { strict: true }), }; + return mocks; +}; + +export const newTestService = ( + Service: Constructor, + overrides: Partial = {}, +) => { + const mocks = getMocks(); + const sut = new Service( overrides.logger || (mocks.logger as As), overrides.access || (mocks.access as IAccessRepository as AccessRepository), @@ -345,6 +354,7 @@ export const newTestService = ( overrides.album || (mocks.album as As), overrides.albumUser || (mocks.albumUser as As), overrides.apiKey || (mocks.apiKey as As), + overrides.app || (mocks.app as As), overrides.asset || (mocks.asset as As), overrides.assetJob || (mocks.assetJob as As), overrides.audit || (mocks.audit as As), diff --git a/web/src/lib/components/admin-settings/MaintenanceSettings.svelte b/web/src/lib/components/admin-settings/MaintenanceSettings.svelte new file mode 100644 index 0000000000..592091c62a --- /dev/null +++ b/web/src/lib/components/admin-settings/MaintenanceSettings.svelte @@ -0,0 +1,35 @@ + + +
+
+
+ +
+
+
diff --git a/web/src/lib/constants.ts b/web/src/lib/constants.ts index 2075696b1a..6ef26168bc 100644 --- a/web/src/lib/constants.ts +++ b/web/src/lib/constants.ts @@ -59,6 +59,8 @@ export enum AppRoute { FOLDERS = '/folders', TAGS = '/tags', LOCKED = '/locked', + + MAINTENANCE = '/maintenance', } export enum ProjectionType { diff --git a/web/src/lib/modals/ServerRestartingModal.svelte b/web/src/lib/modals/ServerRestartingModal.svelte new file mode 100644 index 0000000000..131675054e --- /dev/null +++ b/web/src/lib/modals/ServerRestartingModal.svelte @@ -0,0 +1,16 @@ + + + + +
{$t('server_restarting_description')}
+
+
diff --git a/web/src/lib/stores/maintenance.store.ts b/web/src/lib/stores/maintenance.store.ts new file mode 100644 index 0000000000..9680a06366 --- /dev/null +++ b/web/src/lib/stores/maintenance.store.ts @@ -0,0 +1,4 @@ +import { type MaintenanceAuthDto } from '@immich/sdk'; +import { writable } from 'svelte/store'; + +export const maintenanceAuth = writable(); diff --git a/web/src/lib/stores/websocket.ts b/web/src/lib/stores/websocket.ts index c543fdb4ff..9f01c6878e 100644 --- a/web/src/lib/stores/websocket.ts +++ b/web/src/lib/stores/websocket.ts @@ -1,3 +1,5 @@ +import { page } from '$app/state'; +import { AppRoute } from '$lib/constants'; import { authManager } from '$lib/managers/auth-manager.svelte'; import { notificationManager } from '$lib/stores/notification-manager.svelte'; import { createEventEmitter } from '$lib/utils/eventemitter'; @@ -13,6 +15,11 @@ export interface ReleaseEvent { serverVersion: ServerVersionResponseDto; releaseVersion: ServerVersionResponseDto; } + +interface AppRestartEvent { + isMaintenanceMode: boolean; +} + export interface Events { on_upload_success: (asset: AssetResponseDto) => void; on_user_delete: (id: string) => void; @@ -28,6 +35,8 @@ export interface Events { on_new_release: (newRelease: ReleaseEvent) => void; on_session_delete: (sessionId: string) => void; on_notification: (notification: NotificationDto) => void; + + AppRestartV1: (event: AppRestartEvent) => void; } const websocket: Socket = io({ @@ -42,6 +51,7 @@ export const websocketStore = { connected: writable(false), serverVersion: writable(), release: writable(), + serverRestarting: writable(), }; export const websocketEvents = createEventEmitter(websocket); @@ -50,6 +60,7 @@ websocket .on('connect', () => websocketStore.connected.set(true)) .on('disconnect', () => websocketStore.connected.set(false)) .on('on_server_version', (serverVersion) => websocketStore.serverVersion.set(serverVersion)) + .on('AppRestartV1', (mode) => websocketStore.serverRestarting.set(mode)) .on('on_new_release', (releaseVersion) => websocketStore.release.set(releaseVersion)) .on('on_session_delete', () => authManager.logout()) .on('on_notification', () => notificationManager.refresh()) @@ -57,11 +68,9 @@ websocket export const openWebsocketConnection = () => { try { - if (!get(user)) { - return; + if (get(user) || page.url.pathname.startsWith(AppRoute.MAINTENANCE)) { + websocket.connect(); } - - websocket.connect(); } catch (error) { console.log('Cannot connect to websocket', error); } diff --git a/web/src/lib/utils/maintenance.ts b/web/src/lib/utils/maintenance.ts new file mode 100644 index 0000000000..f3d8bd1cbb --- /dev/null +++ b/web/src/lib/utils/maintenance.ts @@ -0,0 +1,33 @@ +import { AppRoute } from '$lib/constants'; +import { maintenanceAuth as maintenanceAuth$ } from '$lib/stores/maintenance.store'; +import { maintenanceLogin } from '@immich/sdk'; + +export function maintenanceCreateUrl(url: URL) { + const target = new URL(AppRoute.MAINTENANCE, url.origin); + target.searchParams.set('continue', url.pathname + url.search); + return target.href; +} + +export function maintenanceReturnUrl(searchParams: URLSearchParams) { + return searchParams.get('continue') ?? '/'; +} + +export function maintenanceShouldRedirect(maintenanceMode: boolean, currentUrl: URL | Location) { + return maintenanceMode !== currentUrl.pathname.startsWith(AppRoute.MAINTENANCE); +} + +export const loadMaintenanceAuth = async () => { + const query = new URLSearchParams(location.search); + + try { + const auth = await maintenanceLogin({ + maintenanceLoginDto: { + token: query.get('token') ?? undefined, + }, + }); + + maintenanceAuth$.set(auth); + } catch { + // silently fail + } +}; diff --git a/web/src/lib/utils/server.ts b/web/src/lib/utils/server.ts index 046ee496a8..50fe4d72fe 100644 --- a/web/src/lib/utils/server.ts +++ b/web/src/lib/utils/server.ts @@ -12,8 +12,11 @@ async function _init(fetch: Fetch) { // https://github.com/oazapfts/oazapfts/blob/main/README.md#fetch-options defaults.fetch = fetch; await initLanguage(); - await featureFlagsManager.init(); await serverConfigManager.init(); + + if (!serverConfigManager.value.maintenanceMode) { + await featureFlagsManager.init(); + } } export const init = memoize(_init, () => 'singlevalue'); diff --git a/web/src/routes/+layout.svelte b/web/src/routes/+layout.svelte index 8b63017c19..b936ce36ae 100644 --- a/web/src/routes/+layout.svelte +++ b/web/src/routes/+layout.svelte @@ -7,8 +7,10 @@ import AppleHeader from '$lib/components/shared-components/apple-header.svelte'; import NavigationLoadingBar from '$lib/components/shared-components/navigation-loading-bar.svelte'; import UploadPanel from '$lib/components/shared-components/upload-panel.svelte'; + import { AppRoute } from '$lib/constants'; import { eventManager } from '$lib/managers/event-manager.svelte'; import { serverConfigManager } from '$lib/managers/server-config-manager.svelte'; + import ServerRestartingModal from '$lib/modals/ServerRestartingModal.svelte'; import VersionAnnouncementModal from '$lib/modals/VersionAnnouncementModal.svelte'; import { user } from '$lib/stores/user.store'; import { @@ -18,6 +20,7 @@ type ReleaseEvent, } from '$lib/stores/websocket'; import { copyToClipboard, getReleaseType, semverToName } from '$lib/utils'; + import { maintenanceShouldRedirect } from '$lib/utils/maintenance'; import { isAssetViewerRoute } from '$lib/utils/navigation'; import { modalManager, setTranslations } from '@immich/ui'; import { onMount, type Snippet } from 'svelte'; @@ -70,14 +73,14 @@ showNavigationLoadingBar = false; }); run(() => { - if ($user) { + if ($user || page.url.pathname.startsWith(AppRoute.MAINTENANCE)) { openWebsocketConnection(); } else { closeWebsocketConnection(); } }); - const { release } = websocketStore; + const { release, serverRestarting } = websocketStore; const handleRelease = async (release?: ReleaseEvent) => { if (!release?.isAvailable || !$user.isAdmin) { @@ -102,6 +105,27 @@ }; $effect(() => void handleRelease($release)); + + serverRestarting.subscribe((isRestarting) => { + if (!isRestarting) { + return; + } + + if (maintenanceShouldRedirect(isRestarting.isMaintenanceMode, location)) { + modalManager.show(ServerRestartingModal, {}).catch((error) => console.error('Error [ServerRestartBox]:', error)); + + // we will be disconnected momentarily + // wait for reconnect then reload + let waiting = false; + websocketStore.connected.subscribe((connected) => { + if (!connected) { + waiting = true; + } else if (connected && waiting) { + location.reload(); + } + }); + } + }); diff --git a/web/src/routes/+layout.ts b/web/src/routes/+layout.ts index b5edece09e..2d3bd92d48 100644 --- a/web/src/routes/+layout.ts +++ b/web/src/routes/+layout.ts @@ -1,13 +1,22 @@ +import { goto } from '$app/navigation'; +import { serverConfigManager } from '$lib/managers/server-config-manager.svelte'; +import { maintenanceCreateUrl, maintenanceReturnUrl, maintenanceShouldRedirect } from '$lib/utils/maintenance'; import { init } from '$lib/utils/server'; import type { LayoutLoad } from './$types'; export const ssr = false; export const csr = true; -export const load = (async ({ fetch }) => { +export const load = (async ({ fetch, url }) => { let error; try { await init(fetch); + + if (maintenanceShouldRedirect(serverConfigManager.value.maintenanceMode, url)) { + await goto( + serverConfigManager.value.maintenanceMode ? maintenanceCreateUrl(url) : maintenanceReturnUrl(url.searchParams), + ); + } } catch (initError) { error = initError; } diff --git a/web/src/routes/+page.ts b/web/src/routes/+page.ts index bd6d1a62da..5ff4f58bf6 100644 --- a/web/src/routes/+page.ts +++ b/web/src/routes/+page.ts @@ -12,6 +12,11 @@ export const csr = true; export const load = (async ({ fetch }) => { try { await init(fetch); + + if (serverConfigManager.value.maintenanceMode) { + redirect(302, AppRoute.MAINTENANCE); + } + const authenticated = await loadUser(); if (authenticated) { redirect(302, AppRoute.PHOTOS); diff --git a/web/src/routes/admin/system-settings/+page.svelte b/web/src/routes/admin/system-settings/+page.svelte index 3f3d9a4f83..7fb7559be7 100644 --- a/web/src/routes/admin/system-settings/+page.svelte +++ b/web/src/routes/admin/system-settings/+page.svelte @@ -7,6 +7,7 @@ import LibrarySettings from '$lib/components/admin-settings/LibrarySettings.svelte'; import LoggingSettings from '$lib/components/admin-settings/LoggingSettings.svelte'; import MachineLearningSettings from '$lib/components/admin-settings/MachineLearningSettings.svelte'; + import MaintenanceSettings from '$lib/components/admin-settings/MaintenanceSettings.svelte'; import MapSettings from '$lib/components/admin-settings/MapSettings.svelte'; import MetadataSettings from '$lib/components/admin-settings/MetadataSettings.svelte'; import NewVersionCheckSettings from '$lib/components/admin-settings/NewVersionCheckSettings.svelte'; @@ -40,6 +41,7 @@ mdiLockOutline, mdiMapMarkerOutline, mdiPaletteOutline, + mdiRestore, mdiRobotOutline, mdiServerOutline, mdiSync, @@ -113,6 +115,13 @@ key: 'machine-learning', icon: mdiRobotOutline, }, + { + component: MaintenanceSettings, + title: $t('admin.maintenance_settings'), + subtitle: $t('admin.maintenance_settings_description'), + key: 'maintenance', + icon: mdiRestore, + }, { component: MapSettings, title: $t('admin.map_gps_settings'), diff --git a/web/src/routes/maintenance/+page.svelte b/web/src/routes/maintenance/+page.svelte new file mode 100644 index 0000000000..a1486c41ba --- /dev/null +++ b/web/src/routes/maintenance/+page.svelte @@ -0,0 +1,55 @@ + + + +
+ {$t('maintenance_title')} +

+ + {#snippet children({ tag, message })} + {#if tag === 'link'} + + {message} + + {/if} + {/snippet} + +

+ {#if $maintenanceAuth} +

+ {$t('maintenance_logged_in_as', { + values: { + user: $maintenanceAuth.username, + }, + })} +

+ + {/if} +
+
diff --git a/web/src/routes/maintenance/+page.ts b/web/src/routes/maintenance/+page.ts new file mode 100644 index 0000000000..8eec36fec4 --- /dev/null +++ b/web/src/routes/maintenance/+page.ts @@ -0,0 +1,6 @@ +import { loadMaintenanceAuth } from '$lib/utils/maintenance'; +import type { PageLoad } from '../admin/$types'; + +export const load = (async () => { + await loadMaintenanceAuth(); +}) satisfies PageLoad; From 69880ee165f777fd8b72232e7605f40ca1e66f4c Mon Sep 17 00:00:00 2001 From: Min Idzelis Date: Mon, 17 Nov 2025 15:12:07 -0500 Subject: [PATCH 079/300] fix: deep link to last asset (#23920) --- .../lib/components/timeline/Timeline.svelte | 22 ++++++++++++++----- .../timeline-manager/day-group.svelte.ts | 2 +- .../timeline-manager.svelte.ts | 1 + 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/web/src/lib/components/timeline/Timeline.svelte b/web/src/lib/components/timeline/Timeline.svelte index 622d89b773..0a209fcde3 100644 --- a/web/src/lib/components/timeline/Timeline.svelte +++ b/web/src/lib/components/timeline/Timeline.svelte @@ -176,12 +176,24 @@ }; const scrollAndLoadAsset = async (assetId: string) => { - const monthGroup = await timelineManager.findMonthGroupForAsset(assetId); - if (!monthGroup) { - return false; + try { + // This flag prevents layout deferral to fix scroll positioning issues. + // When layouts are deferred and we scroll to an asset at the end of the timeline, + // we can calculate the asset's position, but the scrollableElement's scrollHeight + // hasn't been updated yet to reflect the new layout. This creates a mismatch that + // breaks scroll positioning. By disabling layout deferral in this case, we maintain + // the performance benefits of deferred layouts while still supporting deep linking + // to assets at the end of the timeline. + timelineManager.isScrollingOnLoad = true; + const monthGroup = await timelineManager.findMonthGroupForAsset(assetId); + if (!monthGroup) { + return false; + } + scrollToAssetPosition(assetId, monthGroup); + return true; + } finally { + timelineManager.isScrollingOnLoad = false; } - scrollToAssetPosition(assetId, monthGroup); - return true; }; const scrollToAsset = (asset: TimelineAsset) => { diff --git a/web/src/lib/managers/timeline-manager/day-group.svelte.ts b/web/src/lib/managers/timeline-manager/day-group.svelte.ts index a3d3194dd2..934ca1d4ff 100644 --- a/web/src/lib/managers/timeline-manager/day-group.svelte.ts +++ b/web/src/lib/managers/timeline-manager/day-group.svelte.ts @@ -140,7 +140,7 @@ export class DayGroup { } layout(options: CommonLayoutOptions, noDefer: boolean) { - if (!noDefer && !this.monthGroup.intersecting) { + if (!noDefer && !this.monthGroup.intersecting && !this.monthGroup.timelineManager.isScrollingOnLoad) { this.#deferredLayout = true; return; } diff --git a/web/src/lib/managers/timeline-manager/timeline-manager.svelte.ts b/web/src/lib/managers/timeline-manager/timeline-manager.svelte.ts index d2340224a2..24523ce9e7 100644 --- a/web/src/lib/managers/timeline-manager/timeline-manager.svelte.ts +++ b/web/src/lib/managers/timeline-manager/timeline-manager.svelte.ts @@ -61,6 +61,7 @@ export class TimelineManager extends VirtualScrollManager { }); isInitialized = $state(false); + isScrollingOnLoad = false; months: MonthGroup[] = $state([]); albumAssets: Set = new SvelteSet(); scrubberMonths: ScrubberMonth[] = $state([]); From d64c339b4fa0e1d24ebfa30cf3ad7ecef76bab45 Mon Sep 17 00:00:00 2001 From: Min Idzelis Date: Mon, 17 Nov 2025 15:12:28 -0500 Subject: [PATCH 080/300] fix: null dereference when canceling bucket in album (#23924) --- .../managers/timeline-manager/internal/load-support.svelte.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/lib/managers/timeline-manager/internal/load-support.svelte.ts b/web/src/lib/managers/timeline-manager/internal/load-support.svelte.ts index e6a80afc7f..0d966c9cee 100644 --- a/web/src/lib/managers/timeline-manager/internal/load-support.svelte.ts +++ b/web/src/lib/managers/timeline-manager/internal/load-support.svelte.ts @@ -38,6 +38,9 @@ export async function loadFromTimeBuckets( }, { signal }, ); + if (!albumAssets) { + return; + } for (const id of albumAssets.id) { timelineManager.albumAssets.add(id); } From fbaeffd65c0e2134fe07b160ef1da7433a379fa2 Mon Sep 17 00:00:00 2001 From: Min Idzelis Date: Mon, 17 Nov 2025 15:12:44 -0500 Subject: [PATCH 081/300] fix: flaky user-admin.e2e-spec.ts (#23929) * fix: flaky user-admin.e2e-spec.ts * lint --- e2e/src/web/specs/user-admin.e2e-spec.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/e2e/src/web/specs/user-admin.e2e-spec.ts b/e2e/src/web/specs/user-admin.e2e-spec.ts index 611a1b3dec..e2badb4fa2 100644 --- a/e2e/src/web/specs/user-admin.e2e-spec.ts +++ b/e2e/src/web/specs/user-admin.e2e-spec.ts @@ -58,8 +58,12 @@ test.describe('User Administration', () => { await expect(page.getByLabel('Admin User')).toBeChecked(); await page.getByRole('button', { name: 'Confirm' }).click(); - const updated = await getUserAdmin({ id: user.userId }, { headers: asBearerAuth(admin.accessToken) }); - expect(updated.isAdmin).toBe(true); + await expect + .poll(async () => { + const userAdmin = await getUserAdmin({ id: user.userId }, { headers: asBearerAuth(admin.accessToken) }); + return userAdmin.isAdmin; + }) + .toBe(true); }); test('revoke admin access', async ({ context, page }) => { @@ -83,7 +87,11 @@ test.describe('User Administration', () => { await expect(page.getByLabel('Admin User')).not.toBeChecked(); await page.getByRole('button', { name: 'Confirm' }).click(); - const updated = await getUserAdmin({ id: user.userId }, { headers: asBearerAuth(admin.accessToken) }); - expect(updated.isAdmin).toBe(false); + await expect + .poll(async () => { + const userAdmin = await getUserAdmin({ id: user.userId }, { headers: asBearerAuth(admin.accessToken) }); + return userAdmin.isAdmin; + }) + .toBe(false); }); }); From 237ddcb648769212289510e7c377bf1aa0c98f7c Mon Sep 17 00:00:00 2001 From: Min Idzelis Date: Mon, 17 Nov 2025 15:14:06 -0500 Subject: [PATCH 082/300] fix: incorrect header height calculation in estimated month height (#23923) --- .../timeline-manager/internal/layout-support.svelte.ts | 2 +- .../managers/timeline-manager/timeline-manager.svelte.spec.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/lib/managers/timeline-manager/internal/layout-support.svelte.ts b/web/src/lib/managers/timeline-manager/internal/layout-support.svelte.ts index 434b2d1847..0f6ca112d1 100644 --- a/web/src/lib/managers/timeline-manager/internal/layout-support.svelte.ts +++ b/web/src/lib/managers/timeline-manager/internal/layout-support.svelte.ts @@ -12,7 +12,7 @@ export function updateGeometry(timelineManager: TimelineManager, month: MonthGro if (!month.isHeightActual) { const unwrappedWidth = (3 / 2) * month.assetsCount * timelineManager.rowHeight * (7 / 10); const rows = Math.ceil(unwrappedWidth / viewportWidth); - const height = 51 + Math.max(1, rows) * timelineManager.rowHeight; + const height = timelineManager.headerHeight + Math.max(1, rows) * timelineManager.rowHeight; month.height = height; } return; diff --git a/web/src/lib/managers/timeline-manager/timeline-manager.svelte.spec.ts b/web/src/lib/managers/timeline-manager/timeline-manager.svelte.spec.ts index a3fda3a85c..e6eddef9b6 100644 --- a/web/src/lib/managers/timeline-manager/timeline-manager.svelte.spec.ts +++ b/web/src/lib/managers/timeline-manager/timeline-manager.svelte.spec.ts @@ -84,13 +84,13 @@ describe('TimelineManager', () => { expect.arrayContaining([ expect.objectContaining({ year: 2024, month: 3, height: 283 }), expect.objectContaining({ year: 2024, month: 2, height: 7711 }), - expect.objectContaining({ year: 2024, month: 1, height: 286 }), + expect.objectContaining({ year: 2024, month: 1, height: 283 }), ]), ); }); it('calculates timeline height', () => { - expect(timelineManager.totalViewerHeight).toBe(8340); + expect(timelineManager.totalViewerHeight).toBe(8337); }); }); From 58c3c7e26b80e767d730da474a5d1d25dfdf41c4 Mon Sep 17 00:00:00 2001 From: Min Idzelis Date: Mon, 17 Nov 2025 15:16:39 -0500 Subject: [PATCH 083/300] feat: run e2e server in dev mode (#23921) * feat: run e2e server in dev mode * Use bash syntax: [[ and == --- Makefile | 3 ++ e2e/docker-compose.dev.yml | 105 +++++++++++++++++++++++++++++++++++++ server/bin/immich-dev | 2 +- 3 files changed, 109 insertions(+), 1 deletion(-) create mode 100644 e2e/docker-compose.dev.yml diff --git a/Makefile b/Makefile index fc99170676..2fc1c5d801 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,9 @@ dev-docs: e2e: @trap 'make e2e-down' EXIT; COMPOSE_BAKE=true docker compose -f ./e2e/docker-compose.yml up --remove-orphans +e2e-dev: + @trap 'make e2e-down' EXIT; COMPOSE_BAKE=true docker compose -f ./e2e/docker-compose.dev.yml up --remove-orphans + e2e-update: @trap 'make e2e-down' EXIT; COMPOSE_BAKE=true docker compose -f ./e2e/docker-compose.yml up --build -V --remove-orphans diff --git a/e2e/docker-compose.dev.yml b/e2e/docker-compose.dev.yml new file mode 100644 index 0000000000..cd1d3d4982 --- /dev/null +++ b/e2e/docker-compose.dev.yml @@ -0,0 +1,105 @@ +name: immich-e2e + +services: + immich-server: + container_name: immich-e2e-server + command: ['immich-dev'] + image: immich-server-dev:latest + build: + context: ../ + dockerfile: server/Dockerfile.dev + target: dev + environment: + - DB_HOSTNAME=database + - DB_USERNAME=postgres + - DB_PASSWORD=postgres + - DB_DATABASE_NAME=immich + - IMMICH_MACHINE_LEARNING_ENABLED=false + - IMMICH_TELEMETRY_INCLUDE=all + - IMMICH_ENV=testing + - IMMICH_PORT=2285 + - IMMICH_IGNORE_MOUNT_CHECK_ERRORS=true + volumes: + - ./test-assets:/test-assets + - ..:/usr/src/app + - ${UPLOAD_LOCATION}/photos:/data + - /etc/localtime:/etc/localtime:ro + - pnpm-store:/usr/src/app/.pnpm-store + - server-node_modules:/usr/src/app/server/node_modules + - web-node_modules:/usr/src/app/web/node_modules + - github-node_modules:/usr/src/app/.github/node_modules + - cli-node_modules:/usr/src/app/cli/node_modules + - docs-node_modules:/usr/src/app/docs/node_modules + - e2e-node_modules:/usr/src/app/e2e/node_modules + - sdk-node_modules:/usr/src/app/open-api/typescript-sdk/node_modules + - app-node_modules:/usr/src/app/node_modules + - sveltekit:/usr/src/app/web/.svelte-kit + - coverage:/usr/src/app/web/coverage + - ../plugins:/build/corePlugin + depends_on: + redis: + condition: service_started + database: + condition: service_healthy + + immich-web: + container_name: immich-e2e-web + image: immich-web-dev:latest + build: + context: ../ + dockerfile: server/Dockerfile.dev + target: dev + command: ['immich-web'] + ports: + - 2285:3000 + environment: + - IMMICH_SERVER_URL=http://immich-server:2285/ + volumes: + - ..:/usr/src/app + - pnpm-store:/usr/src/app/.pnpm-store + - server-node_modules:/usr/src/app/server/node_modules + - web-node_modules:/usr/src/app/web/node_modules + - github-node_modules:/usr/src/app/.github/node_modules + - cli-node_modules:/usr/src/app/cli/node_modules + - docs-node_modules:/usr/src/app/docs/node_modules + - e2e-node_modules:/usr/src/app/e2e/node_modules + - sdk-node_modules:/usr/src/app/open-api/typescript-sdk/node_modules + - app-node_modules:/usr/src/app/node_modules + - sveltekit:/usr/src/app/web/.svelte-kit + - coverage:/usr/src/app/web/coverage + restart: unless-stopped + + redis: + image: redis:6.2-alpine@sha256:37e002448575b32a599109664107e374c8709546905c372a34d64919043b9ceb + + database: + image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0@sha256:6f3e9d2c2177af16c2988ff71425d79d89ca630ec2f9c8db03209ab716542338 + command: -c fsync=off -c shared_preload_libraries=vchord.so -c config_file=/var/lib/postgresql/data/postgresql.conf + environment: + POSTGRES_PASSWORD: postgres + POSTGRES_USER: postgres + POSTGRES_DB: immich + ports: + - 5435:5432 + healthcheck: + test: ['CMD-SHELL', 'pg_isready -U postgres -d immich'] + interval: 1s + timeout: 5s + retries: 30 + start_period: 10s + +volumes: + model-cache: + prometheus-data: + grafana-data: + pnpm-store: + server-node_modules: + web-node_modules: + github-node_modules: + cli-node_modules: + docs-node_modules: + e2e-node_modules: + sdk-node_modules: + app-node_modules: + sveltekit: + coverage: diff --git a/server/bin/immich-dev b/server/bin/immich-dev index 28a0443be7..84c5eea8da 100755 --- a/server/bin/immich-dev +++ b/server/bin/immich-dev @@ -1,6 +1,6 @@ #!/usr/bin/env bash -if [ "$IMMICH_ENV" != "development" ]; then +if [[ "$IMMICH_ENV" == "production" ]]; then echo "This command can only be run in development environments" exit 1 fi From 3e08953a43790c0aee0c1b9826f6bcb247b2186f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 18 Nov 2025 12:20:52 +0100 Subject: [PATCH 084/300] chore(deps): update dependency @types/node to ^22.19.1 (#23963) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- cli/package.json | 2 +- e2e/package.json | 2 +- open-api/typescript-sdk/package.json | 2 +- pnpm-lock.yaml | 338 +++++++++++++-------------- server/package.json | 2 +- 5 files changed, 173 insertions(+), 173 deletions(-) diff --git a/cli/package.json b/cli/package.json index 6fed806003..118920f19f 100644 --- a/cli/package.json +++ b/cli/package.json @@ -20,7 +20,7 @@ "@types/lodash-es": "^4.17.12", "@types/micromatch": "^4.0.9", "@types/mock-fs": "^4.13.1", - "@types/node": "^22.19.0", + "@types/node": "^22.19.1", "@vitest/coverage-v8": "^3.0.0", "byte-size": "^9.0.0", "cli-progress": "^3.12.0", diff --git a/e2e/package.json b/e2e/package.json index 84e1823e0c..9ea02161e4 100644 --- a/e2e/package.json +++ b/e2e/package.json @@ -25,7 +25,7 @@ "@playwright/test": "^1.44.1", "@socket.io/component-emitter": "^3.1.2", "@types/luxon": "^3.4.2", - "@types/node": "^22.19.0", + "@types/node": "^22.19.1", "@types/oidc-provider": "^9.0.0", "@types/pg": "^8.15.1", "@types/pngjs": "^6.0.4", diff --git a/open-api/typescript-sdk/package.json b/open-api/typescript-sdk/package.json index 1756675ddd..8716378d87 100644 --- a/open-api/typescript-sdk/package.json +++ b/open-api/typescript-sdk/package.json @@ -19,7 +19,7 @@ "@oazapfts/runtime": "^1.0.2" }, "devDependencies": { - "@types/node": "^22.19.0", + "@types/node": "^22.19.1", "typescript": "^5.3.3" }, "repository": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 28ac12ab78..20bc1de6ce 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -63,11 +63,11 @@ importers: specifier: ^4.13.1 version: 4.13.4 '@types/node': - specifier: ^22.19.0 - version: 22.19.0 + specifier: ^22.19.1 + version: 22.19.1 '@vitest/coverage-v8': specifier: ^3.0.0 - version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.19.1)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) byte-size: specifier: ^9.0.0 version: 9.0.1 @@ -109,16 +109,16 @@ importers: version: 8.46.2(eslint@9.38.0(jiti@2.6.1))(typescript@5.9.3) vite: specifier: ^7.0.0 - version: 7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + version: 7.1.12(@types/node@22.19.1)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) vite-tsconfig-paths: specifier: ^5.0.0 - version: 5.1.4(typescript@5.9.3)(vite@7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + version: 5.1.4(typescript@5.9.3)(vite@7.1.12(@types/node@22.19.1)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) vitest: specifier: ^3.0.0 - version: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + version: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.1)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) vitest-fetch-mock: specifier: ^0.4.0 - version: 0.4.5(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + version: 0.4.5(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.19.1)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) yaml: specifier: ^2.3.1 version: 2.8.1 @@ -211,8 +211,8 @@ importers: specifier: ^3.4.2 version: 3.7.1 '@types/node': - specifier: ^22.19.0 - version: 22.19.0 + specifier: ^22.19.1 + version: 22.19.1 '@types/oidc-provider': specifier: ^9.0.0 version: 9.5.0 @@ -284,7 +284,7 @@ importers: version: 5.2.1(encoding@0.1.13) vitest: specifier: ^3.0.0 - version: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2(encoding@0.1.13)))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + version: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.1)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2(encoding@0.1.13)))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) open-api/typescript-sdk: dependencies: @@ -293,8 +293,8 @@ importers: version: 1.0.4 devDependencies: '@types/node': - specifier: ^22.19.0 - version: 22.19.0 + specifier: ^22.19.1 + version: 22.19.1 typescript: specifier: ^5.3.3 version: 5.9.3 @@ -474,7 +474,7 @@ importers: version: 2.0.2 nest-commander: specifier: ^3.16.0 - version: 3.20.1(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)(@types/inquirer@8.2.11)(@types/node@22.19.0)(typescript@5.9.3) + version: 3.20.1(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)(@types/inquirer@8.2.11)(@types/node@22.19.1)(typescript@5.9.3) nestjs-cls: specifier: ^5.0.0 version: 5.4.3(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)(reflect-metadata@0.2.2)(rxjs@7.8.2) @@ -556,7 +556,7 @@ importers: version: 9.38.0 '@nestjs/cli': specifier: ^11.0.2 - version: 11.0.10(@swc/core@1.14.0(@swc/helpers@0.5.17))(@types/node@22.19.0) + version: 11.0.10(@swc/core@1.14.0(@swc/helpers@0.5.17))(@types/node@22.19.1) '@nestjs/schematics': specifier: ^11.0.0 version: 11.0.9(chokidar@4.0.3)(typescript@5.9.3) @@ -609,8 +609,8 @@ importers: specifier: ^2.0.0 version: 2.0.0 '@types/node': - specifier: ^22.19.0 - version: 22.19.0 + specifier: ^22.19.1 + version: 22.19.1 '@types/nodemailer': specifier: ^7.0.0 version: 7.0.3 @@ -640,7 +640,7 @@ importers: version: 13.15.4 '@vitest/coverage-v8': specifier: ^3.0.0 - version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.19.1)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) eslint: specifier: ^9.14.0 version: 9.38.0(jiti@2.6.1) @@ -694,10 +694,10 @@ importers: version: 1.5.8(@swc/core@1.14.0(@swc/helpers@0.5.17))(rollup@4.52.5) vite-tsconfig-paths: specifier: ^5.0.0 - version: 5.1.4(typescript@5.9.3)(vite@7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + version: 5.1.4(typescript@5.9.3)(vite@7.1.12(@types/node@22.19.1)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) vitest: specifier: ^3.0.0 - version: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + version: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.1)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) web: dependencies: @@ -4686,8 +4686,8 @@ packages: '@types/node@20.19.24': resolution: {integrity: sha512-FE5u0ezmi6y9OZEzlJfg37mqqf6ZDSF2V/NLjUyGrR9uTZ7Sb9F7bLNZ03S4XVUNRWGA7Ck4c1kK+YnuWjl+DA==} - '@types/node@22.19.0': - resolution: {integrity: sha512-xpr/lmLPQEj+TUnHmR+Ab91/glhJvsqcjB+yY0Ix9GO70H6Lb4FHH5GeqdOE5btAx7eIMwuHkp4H2MSkLcqWbA==} + '@types/node@22.19.1': + resolution: {integrity: sha512-LCCV0HdSZZZb34qifBsyWlUmok6W7ouER+oQIGBScS8EsZsQbrtFTUrDX4hOl+CS6p7cnNC4td+qrSVGSCTUfQ==} '@types/node@24.10.0': resolution: {integrity: sha512-qzQZRBqkFsYyaSWXuEHc2WR9c0a0CXwiE5FWUvn7ZM+vdy1uZLfCunD38UzhuB7YN/J11ndbDBcTmOdxJo9Q7A==} @@ -11793,11 +11793,11 @@ snapshots: optionalDependencies: chokidar: 4.0.3 - '@angular-devkit/schematics-cli@19.2.15(@types/node@22.19.0)(chokidar@4.0.3)': + '@angular-devkit/schematics-cli@19.2.15(@types/node@22.19.1)(chokidar@4.0.3)': dependencies: '@angular-devkit/core': 19.2.15(chokidar@4.0.3) '@angular-devkit/schematics': 19.2.15(chokidar@4.0.3) - '@inquirer/prompts': 7.3.2(@types/node@22.19.0) + '@inquirer/prompts': 7.3.2(@types/node@22.19.1) ansi-colors: 4.1.3 symbol-observable: 4.0.0 yargs-parser: 21.1.1 @@ -14447,27 +14447,27 @@ snapshots: transitivePeerDependencies: - '@internationalized/date' - '@inquirer/checkbox@4.2.1(@types/node@22.19.0)': + '@inquirer/checkbox@4.2.1(@types/node@22.19.1)': dependencies: - '@inquirer/core': 10.1.15(@types/node@22.19.0) + '@inquirer/core': 10.1.15(@types/node@22.19.1) '@inquirer/figures': 1.0.13 - '@inquirer/type': 3.0.8(@types/node@22.19.0) + '@inquirer/type': 3.0.8(@types/node@22.19.1) ansi-escapes: 4.3.2 yoctocolors-cjs: 2.1.2 optionalDependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 - '@inquirer/confirm@5.1.15(@types/node@22.19.0)': + '@inquirer/confirm@5.1.15(@types/node@22.19.1)': dependencies: - '@inquirer/core': 10.1.15(@types/node@22.19.0) - '@inquirer/type': 3.0.8(@types/node@22.19.0) + '@inquirer/core': 10.1.15(@types/node@22.19.1) + '@inquirer/type': 3.0.8(@types/node@22.19.1) optionalDependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 - '@inquirer/core@10.1.15(@types/node@22.19.0)': + '@inquirer/core@10.1.15(@types/node@22.19.1)': dependencies: '@inquirer/figures': 1.0.13 - '@inquirer/type': 3.0.8(@types/node@22.19.0) + '@inquirer/type': 3.0.8(@types/node@22.19.1) ansi-escapes: 4.3.2 cli-width: 4.1.0 mute-stream: 2.0.0 @@ -14475,115 +14475,115 @@ snapshots: wrap-ansi: 6.2.0 yoctocolors-cjs: 2.1.2 optionalDependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 - '@inquirer/editor@4.2.17(@types/node@22.19.0)': + '@inquirer/editor@4.2.17(@types/node@22.19.1)': dependencies: - '@inquirer/core': 10.1.15(@types/node@22.19.0) - '@inquirer/external-editor': 1.0.2(@types/node@22.19.0) - '@inquirer/type': 3.0.8(@types/node@22.19.0) + '@inquirer/core': 10.1.15(@types/node@22.19.1) + '@inquirer/external-editor': 1.0.2(@types/node@22.19.1) + '@inquirer/type': 3.0.8(@types/node@22.19.1) optionalDependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 - '@inquirer/expand@4.0.17(@types/node@22.19.0)': + '@inquirer/expand@4.0.17(@types/node@22.19.1)': dependencies: - '@inquirer/core': 10.1.15(@types/node@22.19.0) - '@inquirer/type': 3.0.8(@types/node@22.19.0) + '@inquirer/core': 10.1.15(@types/node@22.19.1) + '@inquirer/type': 3.0.8(@types/node@22.19.1) yoctocolors-cjs: 2.1.2 optionalDependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 - '@inquirer/external-editor@1.0.2(@types/node@22.19.0)': + '@inquirer/external-editor@1.0.2(@types/node@22.19.1)': dependencies: chardet: 2.1.0 iconv-lite: 0.7.0 optionalDependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@inquirer/figures@1.0.13': {} - '@inquirer/input@4.2.1(@types/node@22.19.0)': + '@inquirer/input@4.2.1(@types/node@22.19.1)': dependencies: - '@inquirer/core': 10.1.15(@types/node@22.19.0) - '@inquirer/type': 3.0.8(@types/node@22.19.0) + '@inquirer/core': 10.1.15(@types/node@22.19.1) + '@inquirer/type': 3.0.8(@types/node@22.19.1) optionalDependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 - '@inquirer/number@3.0.17(@types/node@22.19.0)': + '@inquirer/number@3.0.17(@types/node@22.19.1)': dependencies: - '@inquirer/core': 10.1.15(@types/node@22.19.0) - '@inquirer/type': 3.0.8(@types/node@22.19.0) + '@inquirer/core': 10.1.15(@types/node@22.19.1) + '@inquirer/type': 3.0.8(@types/node@22.19.1) optionalDependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 - '@inquirer/password@4.0.17(@types/node@22.19.0)': + '@inquirer/password@4.0.17(@types/node@22.19.1)': dependencies: - '@inquirer/core': 10.1.15(@types/node@22.19.0) - '@inquirer/type': 3.0.8(@types/node@22.19.0) + '@inquirer/core': 10.1.15(@types/node@22.19.1) + '@inquirer/type': 3.0.8(@types/node@22.19.1) ansi-escapes: 4.3.2 optionalDependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 - '@inquirer/prompts@7.3.2(@types/node@22.19.0)': + '@inquirer/prompts@7.3.2(@types/node@22.19.1)': dependencies: - '@inquirer/checkbox': 4.2.1(@types/node@22.19.0) - '@inquirer/confirm': 5.1.15(@types/node@22.19.0) - '@inquirer/editor': 4.2.17(@types/node@22.19.0) - '@inquirer/expand': 4.0.17(@types/node@22.19.0) - '@inquirer/input': 4.2.1(@types/node@22.19.0) - '@inquirer/number': 3.0.17(@types/node@22.19.0) - '@inquirer/password': 4.0.17(@types/node@22.19.0) - '@inquirer/rawlist': 4.1.5(@types/node@22.19.0) - '@inquirer/search': 3.1.0(@types/node@22.19.0) - '@inquirer/select': 4.3.1(@types/node@22.19.0) + '@inquirer/checkbox': 4.2.1(@types/node@22.19.1) + '@inquirer/confirm': 5.1.15(@types/node@22.19.1) + '@inquirer/editor': 4.2.17(@types/node@22.19.1) + '@inquirer/expand': 4.0.17(@types/node@22.19.1) + '@inquirer/input': 4.2.1(@types/node@22.19.1) + '@inquirer/number': 3.0.17(@types/node@22.19.1) + '@inquirer/password': 4.0.17(@types/node@22.19.1) + '@inquirer/rawlist': 4.1.5(@types/node@22.19.1) + '@inquirer/search': 3.1.0(@types/node@22.19.1) + '@inquirer/select': 4.3.1(@types/node@22.19.1) optionalDependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 - '@inquirer/prompts@7.8.0(@types/node@22.19.0)': + '@inquirer/prompts@7.8.0(@types/node@22.19.1)': dependencies: - '@inquirer/checkbox': 4.2.1(@types/node@22.19.0) - '@inquirer/confirm': 5.1.15(@types/node@22.19.0) - '@inquirer/editor': 4.2.17(@types/node@22.19.0) - '@inquirer/expand': 4.0.17(@types/node@22.19.0) - '@inquirer/input': 4.2.1(@types/node@22.19.0) - '@inquirer/number': 3.0.17(@types/node@22.19.0) - '@inquirer/password': 4.0.17(@types/node@22.19.0) - '@inquirer/rawlist': 4.1.5(@types/node@22.19.0) - '@inquirer/search': 3.1.0(@types/node@22.19.0) - '@inquirer/select': 4.3.1(@types/node@22.19.0) + '@inquirer/checkbox': 4.2.1(@types/node@22.19.1) + '@inquirer/confirm': 5.1.15(@types/node@22.19.1) + '@inquirer/editor': 4.2.17(@types/node@22.19.1) + '@inquirer/expand': 4.0.17(@types/node@22.19.1) + '@inquirer/input': 4.2.1(@types/node@22.19.1) + '@inquirer/number': 3.0.17(@types/node@22.19.1) + '@inquirer/password': 4.0.17(@types/node@22.19.1) + '@inquirer/rawlist': 4.1.5(@types/node@22.19.1) + '@inquirer/search': 3.1.0(@types/node@22.19.1) + '@inquirer/select': 4.3.1(@types/node@22.19.1) optionalDependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 - '@inquirer/rawlist@4.1.5(@types/node@22.19.0)': + '@inquirer/rawlist@4.1.5(@types/node@22.19.1)': dependencies: - '@inquirer/core': 10.1.15(@types/node@22.19.0) - '@inquirer/type': 3.0.8(@types/node@22.19.0) + '@inquirer/core': 10.1.15(@types/node@22.19.1) + '@inquirer/type': 3.0.8(@types/node@22.19.1) yoctocolors-cjs: 2.1.2 optionalDependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 - '@inquirer/search@3.1.0(@types/node@22.19.0)': + '@inquirer/search@3.1.0(@types/node@22.19.1)': dependencies: - '@inquirer/core': 10.1.15(@types/node@22.19.0) + '@inquirer/core': 10.1.15(@types/node@22.19.1) '@inquirer/figures': 1.0.13 - '@inquirer/type': 3.0.8(@types/node@22.19.0) + '@inquirer/type': 3.0.8(@types/node@22.19.1) yoctocolors-cjs: 2.1.2 optionalDependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 - '@inquirer/select@4.3.1(@types/node@22.19.0)': + '@inquirer/select@4.3.1(@types/node@22.19.1)': dependencies: - '@inquirer/core': 10.1.15(@types/node@22.19.0) + '@inquirer/core': 10.1.15(@types/node@22.19.1) '@inquirer/figures': 1.0.13 - '@inquirer/type': 3.0.8(@types/node@22.19.0) + '@inquirer/type': 3.0.8(@types/node@22.19.1) ansi-escapes: 4.3.2 yoctocolors-cjs: 2.1.2 optionalDependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 - '@inquirer/type@3.0.8(@types/node@22.19.0)': + '@inquirer/type@3.0.8(@types/node@22.19.1)': optionalDependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@internationalized/date@3.8.2': dependencies: @@ -14621,7 +14621,7 @@ snapshots: '@jest/schemas': 29.6.3 '@types/istanbul-lib-coverage': 2.0.6 '@types/istanbul-reports': 3.0.4 - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/yargs': 17.0.34 chalk: 4.1.2 @@ -14889,12 +14889,12 @@ snapshots: bullmq: 5.62.1 tslib: 2.8.1 - '@nestjs/cli@11.0.10(@swc/core@1.14.0(@swc/helpers@0.5.17))(@types/node@22.19.0)': + '@nestjs/cli@11.0.10(@swc/core@1.14.0(@swc/helpers@0.5.17))(@types/node@22.19.1)': dependencies: '@angular-devkit/core': 19.2.15(chokidar@4.0.3) '@angular-devkit/schematics': 19.2.15(chokidar@4.0.3) - '@angular-devkit/schematics-cli': 19.2.15(@types/node@22.19.0)(chokidar@4.0.3) - '@inquirer/prompts': 7.8.0(@types/node@22.19.0) + '@angular-devkit/schematics-cli': 19.2.15(@types/node@22.19.1)(chokidar@4.0.3) + '@inquirer/prompts': 7.8.0(@types/node@22.19.1) '@nestjs/schematics': 11.0.9(chokidar@4.0.3)(typescript@5.8.3) ansis: 4.1.0 chokidar: 4.0.3 @@ -16294,7 +16294,7 @@ snapshots: '@types/accepts@1.3.7': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/archiver@6.0.4': dependencies: @@ -16306,16 +16306,16 @@ snapshots: '@types/bcrypt@6.0.0': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/body-parser@1.19.6': dependencies: '@types/connect': 3.4.38 - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/bonjour@3.5.13': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/braces@3.0.5': {} @@ -16336,21 +16336,21 @@ snapshots: '@types/cli-progress@3.11.6': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/compression@1.8.1': dependencies: '@types/express': 5.0.5 - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/connect-history-api-fallback@1.5.4': dependencies: '@types/express-serve-static-core': 5.1.0 - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/connect@3.4.38': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/content-disposition@0.5.9': {} @@ -16367,11 +16367,11 @@ snapshots: '@types/connect': 3.4.38 '@types/express': 5.0.5 '@types/keygrip': 1.0.6 - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/cors@2.8.19': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/debug@4.1.12': dependencies: @@ -16381,13 +16381,13 @@ snapshots: '@types/docker-modem@3.0.6': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/ssh2': 1.15.5 '@types/dockerode@3.3.45': dependencies: '@types/docker-modem': 3.0.6 - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/ssh2': 1.15.5 '@types/dom-to-image@2.6.7': {} @@ -16410,14 +16410,14 @@ snapshots: '@types/express-serve-static-core@4.19.7': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/qs': 6.14.0 '@types/range-parser': 1.2.7 '@types/send': 1.2.1 '@types/express-serve-static-core@5.1.0': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/qs': 6.14.0 '@types/range-parser': 1.2.7 '@types/send': 1.2.1 @@ -16443,7 +16443,7 @@ snapshots: '@types/fluent-ffmpeg@2.1.28': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/geojson-vt@3.2.5': dependencies: @@ -16475,7 +16475,7 @@ snapshots: '@types/http-proxy@1.17.17': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/inquirer@8.2.11': dependencies: @@ -16499,7 +16499,7 @@ snapshots: '@types/jsonwebtoken@9.0.10': dependencies: '@types/ms': 2.1.0 - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/justified-layout@4.1.4': {} @@ -16518,7 +16518,7 @@ snapshots: '@types/http-errors': 2.0.5 '@types/keygrip': 1.0.6 '@types/koa-compose': 3.2.8 - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/leaflet@1.9.21': dependencies: @@ -16548,7 +16548,7 @@ snapshots: '@types/mock-fs@4.13.4': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/ms@2.1.0': {} @@ -16558,7 +16558,7 @@ snapshots: '@types/node-forge@1.3.14': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/node@17.0.45': {} @@ -16570,7 +16570,7 @@ snapshots: dependencies: undici-types: 6.21.0 - '@types/node@22.19.0': + '@types/node@22.19.1': dependencies: undici-types: 6.21.0 @@ -16582,7 +16582,7 @@ snapshots: '@types/nodemailer@7.0.3': dependencies: '@aws-sdk/client-sesv2': 3.919.0 - '@types/node': 22.19.0 + '@types/node': 22.19.1 transitivePeerDependencies: - aws-crt @@ -16590,7 +16590,7 @@ snapshots: dependencies: '@types/keygrip': 1.0.6 '@types/koa': 3.0.0 - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/parse5@5.0.3': {} @@ -16600,13 +16600,13 @@ snapshots: '@types/pg@8.15.5': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 pg-protocol: 1.10.3 pg-types: 2.2.0 '@types/pg@8.15.6': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 pg-protocol: 1.10.3 pg-types: 2.2.0 @@ -16614,13 +16614,13 @@ snapshots: '@types/pngjs@6.0.5': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/prismjs@1.26.5': {} '@types/qrcode@1.5.6': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/qs@6.14.0': {} @@ -16649,7 +16649,7 @@ snapshots: '@types/readdir-glob@1.1.5': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/retry@0.12.2': {} @@ -16659,18 +16659,18 @@ snapshots: '@types/sax@1.2.7': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/semver@7.7.1': {} '@types/send@0.17.6': dependencies: '@types/mime': 1.3.5 - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/send@1.2.1': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/serve-index@1.9.4': dependencies: @@ -16679,20 +16679,20 @@ snapshots: '@types/serve-static@1.15.10': dependencies: '@types/http-errors': 2.0.5 - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/send': 0.17.6 '@types/sockjs@0.3.36': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/ssh2-streams@0.1.13': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/ssh2@0.5.52': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/ssh2-streams': 0.1.13 '@types/ssh2@1.15.5': @@ -16703,7 +16703,7 @@ snapshots: dependencies: '@types/cookiejar': 2.1.5 '@types/methods': 1.1.4 - '@types/node': 22.19.0 + '@types/node': 22.19.1 form-data: 4.0.4 '@types/supercluster@7.1.3': @@ -16717,7 +16717,7 @@ snapshots: '@types/through@0.0.33': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/ua-parser-js@0.7.39': {} @@ -16731,7 +16731,7 @@ snapshots: '@types/ws@8.18.1': dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 '@types/yargs-parser@21.0.3': {} @@ -16836,7 +16836,7 @@ snapshots: '@vercel/oidc@3.0.3': {} - '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': + '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.19.1)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 1.0.2 @@ -16851,7 +16851,7 @@ snapshots: std-env: 3.10.0 test-exclude: 7.0.1 tinyrainbow: 2.0.0 - vitest: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vitest: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.1)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) transitivePeerDependencies: - supports-color @@ -16882,13 +16882,13 @@ snapshots: chai: 5.2.0 tinyrainbow: 2.0.0 - '@vitest/mocker@3.2.4(vite@7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': + '@vitest/mocker@3.2.4(vite@7.1.12(@types/node@22.19.1)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': dependencies: '@vitest/spy': 3.2.4 estree-walker: 3.0.3 magic-string: 0.30.21 optionalDependencies: - vite: 7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vite: 7.1.12(@types/node@22.19.1)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) '@vitest/mocker@3.2.4(vite@7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1))': dependencies: @@ -18480,7 +18480,7 @@ snapshots: engine.io@6.6.4: dependencies: '@types/cors': 2.8.19 - '@types/node': 22.19.0 + '@types/node': 22.19.1 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.7.2 @@ -18869,7 +18869,7 @@ snapshots: eval@0.1.8: dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 require-like: 0.1.2 event-emitter@0.3.5: @@ -19858,9 +19858,9 @@ snapshots: inline-style-parser@0.2.4: {} - inquirer@8.2.7(@types/node@22.19.0): + inquirer@8.2.7(@types/node@22.19.1): dependencies: - '@inquirer/external-editor': 1.0.2(@types/node@22.19.0) + '@inquirer/external-editor': 1.0.2(@types/node@22.19.1) ansi-escapes: 4.3.2 chalk: 4.1.2 cli-cursor: 3.1.0 @@ -20074,7 +20074,7 @@ snapshots: jest-util@29.7.0: dependencies: '@jest/types': 29.6.3 - '@types/node': 22.19.0 + '@types/node': 22.19.1 chalk: 4.1.2 ci-info: 3.9.0 graceful-fs: 4.2.11 @@ -20082,13 +20082,13 @@ snapshots: jest-worker@27.5.1: dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 merge-stream: 2.0.0 supports-color: 8.1.1 jest-worker@29.7.0: dependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 jest-util: 29.7.0 merge-stream: 2.0.0 supports-color: 8.1.1 @@ -21346,7 +21346,7 @@ snapshots: neo-async@2.6.2: {} - nest-commander@3.20.1(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)(@types/inquirer@8.2.11)(@types/node@22.19.0)(typescript@5.9.3): + nest-commander@3.20.1(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8)(@types/inquirer@8.2.11)(@types/node@22.19.1)(typescript@5.9.3): dependencies: '@fig/complete-commander': 3.2.0(commander@11.1.0) '@golevelup/nestjs-discovery': 5.0.0(@nestjs/common@11.1.8(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.8) @@ -21355,7 +21355,7 @@ snapshots: '@types/inquirer': 8.2.11 commander: 11.1.0 cosmiconfig: 8.3.6(typescript@5.9.3) - inquirer: 8.2.7(@types/node@22.19.0) + inquirer: 8.2.7(@types/node@22.19.1) transitivePeerDependencies: - '@types/node' - typescript @@ -22453,7 +22453,7 @@ snapshots: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 22.19.0 + '@types/node': 22.19.1 long: 5.3.2 protocol-buffers-schema@3.6.0: {} @@ -24350,13 +24350,13 @@ snapshots: - rollup - supports-color - vite-node@3.2.4(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1): + vite-node@3.2.4(@types/node@22.19.1)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1): dependencies: cac: 6.7.14 debug: 4.4.3 es-module-lexer: 1.7.0 pathe: 2.0.3 - vite: 7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vite: 7.1.12(@types/node@22.19.1)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) transitivePeerDependencies: - '@types/node' - jiti @@ -24392,18 +24392,18 @@ snapshots: - tsx - yaml - vite-tsconfig-paths@5.1.4(typescript@5.9.3)(vite@7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)): + vite-tsconfig-paths@5.1.4(typescript@5.9.3)(vite@7.1.12(@types/node@22.19.1)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)): dependencies: debug: 4.4.3 globrex: 0.1.2 tsconfck: 3.1.6(typescript@5.9.3) optionalDependencies: - vite: 7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vite: 7.1.12(@types/node@22.19.1)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) transitivePeerDependencies: - supports-color - typescript - vite@7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1): + vite@7.1.12(@types/node@22.19.1)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1): dependencies: esbuild: 0.25.12 fdir: 6.5.0(picomatch@4.0.3) @@ -24412,7 +24412,7 @@ snapshots: rollup: 4.52.5 tinyglobby: 0.2.15 optionalDependencies: - '@types/node': 22.19.0 + '@types/node': 22.19.1 fsevents: 2.3.3 jiti: 2.6.1 lightningcss: 1.30.2 @@ -24439,15 +24439,15 @@ snapshots: optionalDependencies: vite: 7.1.12(@types/node@24.10.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) - vitest-fetch-mock@0.4.5(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)): + vitest-fetch-mock@0.4.5(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.19.1)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)): dependencies: - vitest: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vitest: 3.2.4(@types/debug@4.1.12)(@types/node@22.19.1)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) - vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2(encoding@0.1.13)))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1): + vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.19.1)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2(encoding@0.1.13)))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1): dependencies: '@types/chai': 5.2.2 '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(vite@7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + '@vitest/mocker': 3.2.4(vite@7.1.12(@types/node@22.19.1)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) '@vitest/pretty-format': 3.2.4 '@vitest/runner': 3.2.4 '@vitest/snapshot': 3.2.4 @@ -24465,12 +24465,12 @@ snapshots: tinyglobby: 0.2.15 tinypool: 1.1.1 tinyrainbow: 2.0.0 - vite: 7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) - vite-node: 3.2.4(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vite: 7.1.12(@types/node@22.19.1)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vite-node: 3.2.4(@types/node@22.19.1)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) why-is-node-running: 2.3.0 optionalDependencies: '@types/debug': 4.1.12 - '@types/node': 22.19.0 + '@types/node': 22.19.1 happy-dom: 20.0.10 jsdom: 26.1.0(canvas@2.11.2(encoding@0.1.13)) transitivePeerDependencies: @@ -24487,11 +24487,11 @@ snapshots: - tsx - yaml - vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.19.0)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1): + vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.19.1)(happy-dom@20.0.10)(jiti@2.6.1)(jsdom@26.1.0(canvas@2.11.2))(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1): dependencies: '@types/chai': 5.2.2 '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(vite@7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) + '@vitest/mocker': 3.2.4(vite@7.1.12(@types/node@22.19.1)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1)) '@vitest/pretty-format': 3.2.4 '@vitest/runner': 3.2.4 '@vitest/snapshot': 3.2.4 @@ -24509,12 +24509,12 @@ snapshots: tinyglobby: 0.2.15 tinypool: 1.1.1 tinyrainbow: 2.0.0 - vite: 7.1.12(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) - vite-node: 3.2.4(@types/node@22.19.0)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vite: 7.1.12(@types/node@22.19.1)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) + vite-node: 3.2.4(@types/node@22.19.1)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.44.0)(yaml@2.8.1) why-is-node-running: 2.3.0 optionalDependencies: '@types/debug': 4.1.12 - '@types/node': 22.19.0 + '@types/node': 22.19.1 happy-dom: 20.0.10 jsdom: 26.1.0(canvas@2.11.2) transitivePeerDependencies: diff --git a/server/package.json b/server/package.json index 6de6531c67..d995dee90c 100644 --- a/server/package.json +++ b/server/package.json @@ -134,7 +134,7 @@ "@types/luxon": "^3.6.2", "@types/mock-fs": "^4.13.1", "@types/multer": "^2.0.0", - "@types/node": "^22.19.0", + "@types/node": "^22.19.1", "@types/nodemailer": "^7.0.0", "@types/picomatch": "^4.0.0", "@types/pngjs": "^6.0.5", From 7134dd29cac0aa2146d93e5defbe1a93457de2b5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 18 Nov 2025 12:21:28 +0100 Subject: [PATCH 085/300] chore(deps): pin ghcr.io/jdx/mise docker tag to ac26f59 (#23961) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- server/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/Dockerfile b/server/Dockerfile index 0bb7fc6be5..c73574a05f 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -50,7 +50,7 @@ RUN --mount=type=cache,id=pnpm-cli,target=/buildcache/pnpm-store \ FROM builder AS plugins -COPY --from=ghcr.io/jdx/mise:2025.11.3 /usr/local/bin/mise /usr/local/bin/mise +COPY --from=ghcr.io/jdx/mise:2025.11.3@sha256:ac26f5978c0e2783f3e68e58ce75eddb83e41b89bf8747c503bac2aa9baf22c5 /usr/local/bin/mise /usr/local/bin/mise WORKDIR /usr/src/app COPY ./plugins/mise.toml ./plugins/ From c086a65fa8b1d4e4f0b6fb9456899df0067b3715 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 18 Nov 2025 10:07:33 -0600 Subject: [PATCH 086/300] chore: update drift (#23877) * chore: update drift * update drift dep --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> --- .../domain/services/background_worker.service.dart | 14 ++++++++++++-- mobile/pubspec.lock | 9 +++++---- mobile/pubspec.yaml | 7 +++++++ 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/mobile/lib/domain/services/background_worker.service.dart b/mobile/lib/domain/services/background_worker.service.dart index 28c87293f9..8a237f801a 100644 --- a/mobile/lib/domain/services/background_worker.service.dart +++ b/mobile/lib/domain/services/background_worker.service.dart @@ -177,6 +177,12 @@ class BackgroundWorkerBgService extends BackgroundWorkerFlutterApi { } Future _cleanup() async { + await runZonedGuarded(_handleCleanup, (error, stack) { + dPrint(() => "Error during background worker cleanup: $error, $stack"); + }); + } + + Future _handleCleanup() async { // If ref is null, it means the service was never initialized properly if (_isCleanedUp || _ref == null) { return; @@ -186,11 +192,16 @@ class BackgroundWorkerBgService extends BackgroundWorkerFlutterApi { _isCleanedUp = true; final backgroundSyncManager = _ref?.read(backgroundSyncProvider); final nativeSyncApi = _ref?.read(nativeSyncApiProvider); + + await _drift.close(); + await _driftLogger.close(); + _ref?.dispose(); _ref = null; _cancellationToken.cancel(); _logger.info("Cleaning up background worker"); + final cleanupFutures = [ nativeSyncApi?.cancelHashing(), workerManagerPatch.dispose().catchError((_) async { @@ -199,8 +210,7 @@ class BackgroundWorkerBgService extends BackgroundWorkerFlutterApi { }), LogService.I.dispose(), Store.dispose(), - _drift.close(), - _driftLogger.close(), + backgroundSyncManager?.cancel(), ]; diff --git a/mobile/pubspec.lock b/mobile/pubspec.lock index 59b23f23ca..6a067f509f 100644 --- a/mobile/pubspec.lock +++ b/mobile/pubspec.lock @@ -452,10 +452,11 @@ packages: drift: dependency: "direct main" description: - name: drift - sha256: "14a61af39d4584faf1d73b5b35e4b758a43008cf4c0fdb0576ec8e7032c0d9a5" - url: "https://pub.dev" - source: hosted + path: drift + ref: "53ef7e9f19fe8f68416251760b4b99fe43f1c575" + resolved-ref: "53ef7e9f19fe8f68416251760b4b99fe43f1c575" + url: "https://github.com/immich-app/drift" + source: git version: "2.26.0" drift_dev: dependency: "direct dev" diff --git a/mobile/pubspec.yaml b/mobile/pubspec.yaml index 3dce49e4e1..187fb88f17 100644 --- a/mobile/pubspec.yaml +++ b/mobile/pubspec.yaml @@ -113,6 +113,13 @@ dev_dependencies: riverpod_generator: ^2.6.1 riverpod_lint: ^2.6.1 +dependency_overrides: + drift: + git: + url: https://github.com/immich-app/drift + ref: '53ef7e9f19fe8f68416251760b4b99fe43f1c575' + path: drift/ + flutter: uses-material-design: true assets: From d310c6f3cd71544613ef360dc54cda8896b4e657 Mon Sep 17 00:00:00 2001 From: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com> Date: Tue, 18 Nov 2025 21:27:41 +0100 Subject: [PATCH 087/300] feat: library details page (#23908) * feat: library details page * chore: clean up --------- Co-authored-by: Jason Rasmussen --- i18n/en.json | 17 +- web/src/lib/assets/empty-folders.svg | 1 + .../forms/library-import-paths-form.svelte | 207 ---------- .../forms/library-scan-settings-form.svelte | 151 -------- .../empty-placeholder.svelte | 5 +- web/src/lib/managers/event-manager.svelte.ts | 5 + .../LibraryExclusionPatternAddModal.svelte | 43 +++ .../LibraryExclusionPatternEditModal.svelte | 45 +++ .../LibraryExclusionPatternModal.svelte | 78 ---- .../lib/modals/LibraryFolderAddModal.svelte | 44 +++ .../lib/modals/LibraryFolderEditModal.svelte | 45 +++ .../lib/modals/LibraryImportPathModal.svelte | 75 ---- web/src/lib/modals/LibraryRenameModal.svelte | 18 +- web/src/lib/services/library.service.ts | 352 ++++++++++++++++++ web/src/routes/(user)/albums/+page.svelte | 2 +- .../[[assetId=id]]/+page.svelte | 2 +- web/src/routes/(user)/explore/+page.svelte | 2 +- .../[[assetId=id]]/+page.svelte | 2 +- .../[[assetId=id]]/+page.svelte | 2 +- .../(user)/photos/[[assetId=id]]/+page.svelte | 2 +- web/src/routes/(user)/sharing/+page.svelte | 2 +- .../[[assetId=id]]/+page.svelte | 2 +- .../(user)/utilities/geolocation/+page.svelte | 2 +- .../admin/library-management/+page.svelte | 343 +++-------------- .../routes/admin/library-management/+page.ts | 13 +- .../library-management/[id]/+page.svelte | 131 +++++++ .../admin/library-management/[id]/+page.ts | 28 ++ web/src/routes/admin/users/+page.svelte | 56 ++- web/src/routes/admin/users/[id]/+page.svelte | 2 +- 29 files changed, 814 insertions(+), 863 deletions(-) create mode 100644 web/src/lib/assets/empty-folders.svg delete mode 100644 web/src/lib/components/forms/library-import-paths-form.svelte delete mode 100644 web/src/lib/components/forms/library-scan-settings-form.svelte create mode 100644 web/src/lib/modals/LibraryExclusionPatternAddModal.svelte create mode 100644 web/src/lib/modals/LibraryExclusionPatternEditModal.svelte delete mode 100644 web/src/lib/modals/LibraryExclusionPatternModal.svelte create mode 100644 web/src/lib/modals/LibraryFolderAddModal.svelte create mode 100644 web/src/lib/modals/LibraryFolderEditModal.svelte delete mode 100644 web/src/lib/modals/LibraryImportPathModal.svelte create mode 100644 web/src/lib/services/library.service.ts create mode 100644 web/src/routes/admin/library-management/[id]/+page.svelte create mode 100644 web/src/routes/admin/library-management/[id]/+page.ts diff --git a/i18n/en.json b/i18n/en.json index 5edbd87973..8c4ee068fd 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -17,7 +17,6 @@ "add_birthday": "Add a birthday", "add_endpoint": "Add endpoint", "add_exclusion_pattern": "Add exclusion pattern", - "add_import_path": "Add import path", "add_location": "Add location", "add_more_users": "Add more users", "add_partner": "Add partner", @@ -113,13 +112,17 @@ "jobs_failed": "{jobCount, plural, other {# failed}}", "library_created": "Created library: {library}", "library_deleted": "Library deleted", - "library_import_path_description": "Specify a folder to import. This folder, including subfolders, will be scanned for images and videos.", + "library_details": "Library details", + "library_folder_description": "Specify a folder to import. This folder, including subfolders, will be scanned for images and videos.", + "library_remove_exclusion_pattern_prompt": "Are you sure you want to remove this exclusion pattern?", + "library_remove_folder_prompt": "Are you sure you want to remove this import folder?", "library_scanning": "Periodic Scanning", "library_scanning_description": "Configure periodic library scanning", "library_scanning_enable_description": "Enable periodic library scanning", "library_settings": "External Library", "library_settings_description": "Manage external library settings", "library_tasks_description": "Scan external libraries for new and/or changed assets", + "library_updated": "Updated library", "library_watching_enable_description": "Watch external libraries for file changes", "library_watching_settings": "Library watching [EXPERIMENTAL]", "library_watching_settings_description": "Automatically watch for changed files", @@ -901,8 +904,6 @@ "edit_description_prompt": "Please select a new description:", "edit_exclusion_pattern": "Edit exclusion pattern", "edit_faces": "Edit faces", - "edit_import_path": "Edit import path", - "edit_import_paths": "Edit Import Paths", "edit_key": "Edit key", "edit_link": "Edit link", "edit_location": "Edit location", @@ -974,8 +975,8 @@ "failed_to_stack_assets": "Failed to stack assets", "failed_to_unstack_assets": "Failed to un-stack assets", "failed_to_update_notification_status": "Failed to update notification status", - "import_path_already_exists": "This import path already exists.", "incorrect_email_or_password": "Incorrect email or password", + "library_folder_already_exists": "This import path already exists.", "paths_validation_failed": "{paths, plural, one {# path} other {# paths}} failed validation", "profile_picture_transparent_pixels": "Profile pictures cannot have transparent pixels. Please zoom in and/or move the image.", "quota_higher_than_disk_size": "You set a quota higher than the disk size", @@ -984,7 +985,6 @@ "unable_to_add_assets_to_shared_link": "Unable to add assets to shared link", "unable_to_add_comment": "Unable to add comment", "unable_to_add_exclusion_pattern": "Unable to add exclusion pattern", - "unable_to_add_import_path": "Unable to add import path", "unable_to_add_partners": "Unable to add partners", "unable_to_add_remove_archive": "Unable to {archived, select, true {remove asset from} other {add asset to}} archive", "unable_to_add_remove_favorites": "Unable to {favorite, select, true {add asset to} other {remove asset from}} favorites", @@ -1007,12 +1007,10 @@ "unable_to_delete_asset": "Unable to delete asset", "unable_to_delete_assets": "Error deleting assets", "unable_to_delete_exclusion_pattern": "Unable to delete exclusion pattern", - "unable_to_delete_import_path": "Unable to delete import path", "unable_to_delete_shared_link": "Unable to delete shared link", "unable_to_delete_user": "Unable to delete user", "unable_to_download_files": "Unable to download files", "unable_to_edit_exclusion_pattern": "Unable to edit exclusion pattern", - "unable_to_edit_import_path": "Unable to edit import path", "unable_to_empty_trash": "Unable to empty trash", "unable_to_enter_fullscreen": "Unable to enter fullscreen", "unable_to_exit_fullscreen": "Unable to exit fullscreen", @@ -1063,6 +1061,7 @@ "unable_to_update_user": "Unable to update user", "unable_to_upload_file": "Unable to upload file" }, + "exclusion_pattern": "Exclusion pattern", "exif": "Exif", "exif_bottom_sheet_description": "Add Description...", "exif_bottom_sheet_description_error": "Error updating description", @@ -1251,6 +1250,8 @@ "let_others_respond": "Let others respond", "level": "Level", "library": "Library", + "library_add_folder": "Add folder", + "library_edit_folder": "Edit folder", "library_options": "Library options", "library_page_device_albums": "Albums on Device", "library_page_new_album": "New album", diff --git a/web/src/lib/assets/empty-folders.svg b/web/src/lib/assets/empty-folders.svg new file mode 100644 index 0000000000..b4a58cf245 --- /dev/null +++ b/web/src/lib/assets/empty-folders.svg @@ -0,0 +1 @@ + diff --git a/web/src/lib/components/forms/library-import-paths-form.svelte b/web/src/lib/components/forms/library-import-paths-form.svelte deleted file mode 100644 index 02f82504a7..0000000000 --- a/web/src/lib/components/forms/library-import-paths-form.svelte +++ /dev/null @@ -1,207 +0,0 @@ - - - - - - {#each validatedPaths as validatedPath, listIndex (validatedPath.importPath)} - - - - - - - {/each} - - - - - -
- {#if validatedPath.isValid} - - {:else} - - {/if} - {validatedPath.importPath} - onEditImportPath(listIndex)} - size="small" - /> -
- {#if importPaths.length === 0} - {$t('admin.no_paths_added')} - {/if} - -
-
-
- -
-
- - -
-
- diff --git a/web/src/lib/components/forms/library-scan-settings-form.svelte b/web/src/lib/components/forms/library-scan-settings-form.svelte deleted file mode 100644 index fde3849599..0000000000 --- a/web/src/lib/components/forms/library-scan-settings-form.svelte +++ /dev/null @@ -1,151 +0,0 @@ - - -
- - - {#each exclusionPatterns as exclusionPattern, listIndex (exclusionPattern)} - - - - - {/each} - - - - - -
{exclusionPattern} - onEditExclusionPattern(listIndex)} - aria-label={$t('edit_exclusion_pattern')} - size="small" - /> -
- {#if exclusionPatterns.length === 0} - {$t('admin.no_pattern_added')} - {/if} - - -
- -
- - -
-
diff --git a/web/src/lib/components/shared-components/empty-placeholder.svelte b/web/src/lib/components/shared-components/empty-placeholder.svelte index ae7f9aab6a..78c675c93b 100644 --- a/web/src/lib/components/shared-components/empty-placeholder.svelte +++ b/web/src/lib/components/shared-components/empty-placeholder.svelte @@ -7,9 +7,10 @@ fullWidth?: boolean; src?: string; title?: string; + class?: string; } - let { onClick = undefined, text, fullWidth = false, src = empty1Url, title }: Props = $props(); + let { onClick = undefined, text, fullWidth = false, src = empty1Url, title, class: className }: Props = $props(); let width = $derived(fullWidth ? 'w-full' : 'w-1/2'); @@ -22,7 +23,7 @@ diff --git a/web/src/lib/managers/event-manager.svelte.ts b/web/src/lib/managers/event-manager.svelte.ts index d4f90fc3ad..62fc9df8da 100644 --- a/web/src/lib/managers/event-manager.svelte.ts +++ b/web/src/lib/managers/event-manager.svelte.ts @@ -1,6 +1,7 @@ import type { ThemeSetting } from '$lib/managers/theme-manager.svelte'; import type { AlbumResponseDto, + LibraryResponseDto, LoginResponseDto, SharedLinkResponseDto, SystemConfigDto, @@ -27,6 +28,10 @@ export type Events = { UserAdminRestore: [UserAdminResponseDto]; SystemConfigUpdate: [SystemConfigDto]; + + LibraryCreate: [LibraryResponseDto]; + LibraryUpdate: [LibraryResponseDto]; + LibraryDelete: [{ id: string }]; }; type Listener, K extends keyof EventMap> = (...params: EventMap[K]) => void; diff --git a/web/src/lib/modals/LibraryExclusionPatternAddModal.svelte b/web/src/lib/modals/LibraryExclusionPatternAddModal.svelte new file mode 100644 index 0000000000..12c13f9a06 --- /dev/null +++ b/web/src/lib/modals/LibraryExclusionPatternAddModal.svelte @@ -0,0 +1,43 @@ + + + + +
+ {$t('admin.exclusion_pattern_description')} + + + + +
+
+ + + + + + + +
diff --git a/web/src/lib/modals/LibraryExclusionPatternEditModal.svelte b/web/src/lib/modals/LibraryExclusionPatternEditModal.svelte new file mode 100644 index 0000000000..56207c8cf4 --- /dev/null +++ b/web/src/lib/modals/LibraryExclusionPatternEditModal.svelte @@ -0,0 +1,45 @@ + + + + +
+ {$t('admin.exclusion_pattern_description')} + + + + +
+
+ + + + + + + +
diff --git a/web/src/lib/modals/LibraryExclusionPatternModal.svelte b/web/src/lib/modals/LibraryExclusionPatternModal.svelte deleted file mode 100644 index fe5da01c45..0000000000 --- a/web/src/lib/modals/LibraryExclusionPatternModal.svelte +++ /dev/null @@ -1,78 +0,0 @@ - - - - -
-

- {$t('admin.exclusion_pattern_description')} -

- {$t('admin.add_exclusion_pattern_description')} -

-
- - -
-
- {#if isDuplicate} -

{$t('errors.exclusion_pattern_already_exists')}

- {/if} -
-
-
- - - - {#if isEditing} - - {/if} - - - -
diff --git a/web/src/lib/modals/LibraryFolderAddModal.svelte b/web/src/lib/modals/LibraryFolderAddModal.svelte new file mode 100644 index 0000000000..67ae5bf773 --- /dev/null +++ b/web/src/lib/modals/LibraryFolderAddModal.svelte @@ -0,0 +1,44 @@ + + + + +
+ {$t('admin.library_folder_description')} + + + + +
+
+ + + + + + + +
diff --git a/web/src/lib/modals/LibraryFolderEditModal.svelte b/web/src/lib/modals/LibraryFolderEditModal.svelte new file mode 100644 index 0000000000..c1ab657275 --- /dev/null +++ b/web/src/lib/modals/LibraryFolderEditModal.svelte @@ -0,0 +1,45 @@ + + + + +
+ {$t('admin.library_folder_description')} + + + + +
+
+ + + + + + + +
diff --git a/web/src/lib/modals/LibraryImportPathModal.svelte b/web/src/lib/modals/LibraryImportPathModal.svelte deleted file mode 100644 index 5c1454fdd9..0000000000 --- a/web/src/lib/modals/LibraryImportPathModal.svelte +++ /dev/null @@ -1,75 +0,0 @@ - - - - -
-

{$t('admin.library_import_path_description')}

- -
- - -
- -
- {#if isDuplicate} -

{$t('errors.import_path_already_exists')}

- {/if} -
-
-
- - - - - {#if isEditing} - - {/if} - - - -
diff --git a/web/src/lib/modals/LibraryRenameModal.svelte b/web/src/lib/modals/LibraryRenameModal.svelte index af204cdf0e..0a7d675b11 100644 --- a/web/src/lib/modals/LibraryRenameModal.svelte +++ b/web/src/lib/modals/LibraryRenameModal.svelte @@ -1,21 +1,25 @@ diff --git a/web/src/lib/services/library.service.ts b/web/src/lib/services/library.service.ts new file mode 100644 index 0000000000..415d6dae42 --- /dev/null +++ b/web/src/lib/services/library.service.ts @@ -0,0 +1,352 @@ +import { goto } from '$app/navigation'; +import { AppRoute } from '$lib/constants'; +import { eventManager } from '$lib/managers/event-manager.svelte'; +import LibraryExclusionPatternAddModal from '$lib/modals/LibraryExclusionPatternAddModal.svelte'; +import LibraryExclusionPatternEditModal from '$lib/modals/LibraryExclusionPatternEditModal.svelte'; +import LibraryFolderAddModal from '$lib/modals/LibraryFolderAddModal.svelte'; +import LibraryFolderEditModal from '$lib/modals/LibraryFolderEditModal.svelte'; +import LibraryRenameModal from '$lib/modals/LibraryRenameModal.svelte'; +import LibraryUserPickerModal from '$lib/modals/LibraryUserPickerModal.svelte'; +import type { ActionItem } from '$lib/types'; +import { handleError } from '$lib/utils/handle-error'; +import { getFormatter } from '$lib/utils/i18n'; +import { + createLibrary, + deleteLibrary, + QueueCommand, + QueueName, + runQueueCommandLegacy, + scanLibrary, + updateLibrary, + type LibraryResponseDto, +} from '@immich/sdk'; +import { modalManager, toastManager } from '@immich/ui'; +import { mdiPencilOutline, mdiPlusBoxOutline, mdiSync, mdiTrashCanOutline } from '@mdi/js'; +import type { MessageFormatter } from 'svelte-i18n'; + +export const getLibrariesActions = ($t: MessageFormatter) => { + const ScanAll: ActionItem = { + title: $t('scan_all_libraries'), + icon: mdiSync, + onSelect: () => void handleScanAllLibraries(), + }; + + const Create: ActionItem = { + title: $t('create_library'), + icon: mdiPlusBoxOutline, + onSelect: () => void handleCreateLibrary(), + }; + + return { ScanAll, Create }; +}; + +export const getLibraryActions = ($t: MessageFormatter, library: LibraryResponseDto) => { + const Rename: ActionItem = { + icon: mdiPencilOutline, + title: $t('rename'), + onSelect: () => void modalManager.show(LibraryRenameModal, { library }), + }; + + const Delete: ActionItem = { + icon: mdiTrashCanOutline, + title: $t('delete'), + color: 'danger', + onSelect: () => void handleDeleteLibrary(library), + }; + + const AddFolder: ActionItem = { + icon: mdiPlusBoxOutline, + title: $t('add'), + onSelect: () => void modalManager.show(LibraryFolderAddModal, { library }), + }; + + const AddExclusionPattern: ActionItem = { + icon: mdiPlusBoxOutline, + title: $t('add'), + onSelect: () => void modalManager.show(LibraryExclusionPatternAddModal, { library }), + }; + + const Scan: ActionItem = { + icon: mdiSync, + title: $t('scan_library'), + onSelect: () => void handleScanLibrary(library), + }; + + return { Rename, Delete, AddFolder, AddExclusionPattern, Scan }; +}; + +export const getLibraryFolderActions = ($t: MessageFormatter, library: LibraryResponseDto, folder: string) => { + const Edit: ActionItem = { + icon: mdiPencilOutline, + title: $t('edit'), + onSelect: () => void modalManager.show(LibraryFolderEditModal, { folder, library }), + }; + + const Delete: ActionItem = { + icon: mdiTrashCanOutline, + title: $t('delete'), + onSelect: () => void handleDeleteLibraryFolder(library, folder), + }; + + return { Edit, Delete }; +}; + +export const getLibraryExclusionPatternActions = ( + $t: MessageFormatter, + library: LibraryResponseDto, + exclusionPattern: string, +) => { + const Edit: ActionItem = { + icon: mdiPencilOutline, + title: $t('edit'), + onSelect: () => void modalManager.show(LibraryExclusionPatternEditModal, { exclusionPattern, library }), + }; + + const Delete: ActionItem = { + icon: mdiTrashCanOutline, + title: $t('delete'), + onSelect: () => void handleDeleteExclusionPattern(library, exclusionPattern), + }; + + return { Edit, Delete }; +}; + +const handleScanAllLibraries = async () => { + const $t = await getFormatter(); + + try { + await runQueueCommandLegacy({ name: QueueName.Library, queueCommandDto: { command: QueueCommand.Start } }); + toastManager.info($t('admin.refreshing_all_libraries')); + } catch (error) { + handleError(error, $t('errors.unable_to_scan_libraries')); + } +}; + +const handleScanLibrary = async (library: LibraryResponseDto) => { + const $t = await getFormatter(); + try { + await scanLibrary({ id: library.id }); + toastManager.info($t('admin.scanning_library')); + } catch (error) { + handleError(error, $t('errors.unable_to_scan_library')); + } +}; + +export const handleViewLibrary = async (library: LibraryResponseDto) => { + await goto(`${AppRoute.ADMIN_LIBRARY_MANAGEMENT}/${library.id}`); +}; + +export const handleCreateLibrary = async () => { + const $t = await getFormatter(); + + const ownerId = await modalManager.show(LibraryUserPickerModal, {}); + if (!ownerId) { + return; + } + + try { + const createdLibrary = await createLibrary({ createLibraryDto: { ownerId } }); + eventManager.emit('LibraryCreate', createdLibrary); + toastManager.success($t('admin.library_created', { values: { library: createdLibrary.name } })); + } catch (error) { + handleError(error, $t('errors.unable_to_create_library')); + } +}; + +export const handleRenameLibrary = async (library: { id: string }, name?: string) => { + const $t = await getFormatter(); + + if (!name) { + return false; + } + + try { + const updatedLibrary = await updateLibrary({ + id: library.id, + updateLibraryDto: { name }, + }); + eventManager.emit('LibraryUpdate', updatedLibrary); + toastManager.success($t('admin.library_updated')); + } catch (error) { + handleError(error, $t('errors.unable_to_update_library')); + return false; + } + + return true; +}; + +const handleDeleteLibrary = async (library: LibraryResponseDto) => { + const $t = await getFormatter(); + + const confirmed = await modalManager.showDialog({ + prompt: $t('admin.confirm_delete_library', { values: { library: library.name } }), + }); + + if (!confirmed) { + return; + } + + if (library.assetCount > 0) { + const isConfirmed = await modalManager.showDialog({ + prompt: $t('admin.confirm_delete_library_assets', { values: { count: library.assetCount } }), + }); + if (!isConfirmed) { + return; + } + } + + try { + await deleteLibrary({ id: library.id }); + eventManager.emit('LibraryDelete', { id: library.id }); + toastManager.success($t('admin.library_deleted')); + } catch (error) { + handleError(error, $t('errors.unable_to_remove_library')); + } +}; + +export const handleAddLibraryFolder = async (library: LibraryResponseDto, folder: string) => { + const $t = await getFormatter(); + + if (library.importPaths.includes(folder)) { + toastManager.danger($t('errors.library_folder_already_exists')); + return false; + } + + try { + const updatedLibrary = await updateLibrary({ + id: library.id, + updateLibraryDto: { importPaths: [...library.importPaths, folder] }, + }); + eventManager.emit('LibraryUpdate', updatedLibrary); + toastManager.success($t('admin.library_updated')); + } catch (error) { + handleError(error, $t('errors.unable_to_update_library')); + return false; + } + + return true; +}; + +export const handleEditLibraryFolder = async (library: LibraryResponseDto, oldFolder: string, newFolder: string) => { + const $t = await getFormatter(); + + if (oldFolder === newFolder) { + return true; + } + + const importPaths = library.importPaths.map((path) => (path === oldFolder ? newFolder : path)); + + try { + const updatedLibrary = await updateLibrary({ id: library.id, updateLibraryDto: { importPaths } }); + eventManager.emit('LibraryUpdate', updatedLibrary); + toastManager.success($t('admin.library_updated')); + } catch (error) { + handleError(error, $t('errors.unable_to_update_library')); + return false; + } + + return true; +}; + +const handleDeleteLibraryFolder = async (library: LibraryResponseDto, folder: string) => { + const $t = await getFormatter(); + + const confirmed = await modalManager.showDialog({ + prompt: $t('admin.library_remove_folder_prompt'), + confirmText: $t('remove'), + }); + + if (!confirmed) { + return false; + } + + try { + const updatedLibrary = await updateLibrary({ + id: library.id, + updateLibraryDto: { importPaths: library.importPaths.filter((path) => path !== folder) }, + }); + eventManager.emit('LibraryUpdate', updatedLibrary); + toastManager.success($t('admin.library_updated')); + } catch (error) { + handleError(error, $t('errors.unable_to_update_library')); + return false; + } + + return true; +}; + +export const handleAddLibraryExclusionPattern = async (library: LibraryResponseDto, exclusionPattern: string) => { + const $t = await getFormatter(); + + if (library.exclusionPatterns.includes(exclusionPattern)) { + toastManager.danger($t('errors.exclusion_pattern_already_exists')); + return false; + } + + try { + const updatedLibrary = await updateLibrary({ + id: library.id, + updateLibraryDto: { exclusionPatterns: [...library.exclusionPatterns, exclusionPattern] }, + }); + eventManager.emit('LibraryUpdate', updatedLibrary); + toastManager.success($t('admin.library_updated')); + } catch (error) { + handleError(error, $t('errors.unable_to_update_library')); + return false; + } + + return true; +}; + +export const handleEditExclusionPattern = async ( + library: LibraryResponseDto, + oldExclusionPattern: string, + newExclusionPattern: string, +) => { + const $t = await getFormatter(); + + if (oldExclusionPattern === newExclusionPattern) { + return true; + } + + const exclusionPatterns = library.exclusionPatterns.map((pattern) => + pattern === oldExclusionPattern ? newExclusionPattern : pattern, + ); + + try { + const updatedLibrary = await updateLibrary({ id: library.id, updateLibraryDto: { exclusionPatterns } }); + eventManager.emit('LibraryUpdate', updatedLibrary); + toastManager.success($t('admin.library_updated')); + } catch (error) { + handleError(error, $t('errors.unable_to_update_library')); + return false; + } + + return true; +}; + +const handleDeleteExclusionPattern = async (library: LibraryResponseDto, exclusionPattern: string) => { + const $t = await getFormatter(); + + const confirmed = await modalManager.showDialog({ prompt: $t('admin.library_remove_exclusion_pattern_prompt') }); + + if (!confirmed) { + return false; + } + + try { + const updatedLibrary = await updateLibrary({ + id: library.id, + updateLibraryDto: { + exclusionPatterns: library.exclusionPatterns.filter((pattern) => pattern !== exclusionPattern), + }, + }); + eventManager.emit('LibraryUpdate', updatedLibrary); + toastManager.success($t('admin.library_updated')); + } catch (error) { + handleError(error, $t('errors.unable_to_update_library')); + return false; + } + + return true; +}; diff --git a/web/src/routes/(user)/albums/+page.svelte b/web/src/routes/(user)/albums/+page.svelte index cdd13ba938..88bf67ca19 100644 --- a/web/src/routes/(user)/albums/+page.svelte +++ b/web/src/routes/(user)/albums/+page.svelte @@ -52,7 +52,7 @@ bind:albumGroupIds={albumGroups} > {#snippet empty()} - createAlbumAndRedirect()} /> + createAlbumAndRedirect()} class="mt-10 mx-auto" /> {/snippet} diff --git a/web/src/routes/(user)/archive/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/archive/[[photos=photos]]/[[assetId=id]]/+page.svelte index 165ef59344..ac1ffc356c 100644 --- a/web/src/routes/(user)/archive/[[photos=photos]]/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/archive/[[photos=photos]]/[[assetId=id]]/+page.svelte @@ -54,7 +54,7 @@ onEscape={handleEscape} > {#snippet empty()} - + {/snippet} diff --git a/web/src/routes/(user)/explore/+page.svelte b/web/src/routes/(user)/explore/+page.svelte index 86fb0850af..89505249b4 100644 --- a/web/src/routes/(user)/explore/+page.svelte +++ b/web/src/routes/(user)/explore/+page.svelte @@ -114,6 +114,6 @@ {/if} {#if !hasPeople && places.length === 0} - + {/if} diff --git a/web/src/routes/(user)/favorites/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/favorites/[[photos=photos]]/[[assetId=id]]/+page.svelte index 676a68e673..4eebc59146 100644 --- a/web/src/routes/(user)/favorites/[[photos=photos]]/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/favorites/[[photos=photos]]/[[assetId=id]]/+page.svelte @@ -59,7 +59,7 @@ onEscape={handleEscape} > {#snippet empty()} - + {/snippet} diff --git a/web/src/routes/(user)/locked/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/locked/[[photos=photos]]/[[assetId=id]]/+page.svelte index 510b609784..b16018bbf4 100644 --- a/web/src/routes/(user)/locked/[[photos=photos]]/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/locked/[[photos=photos]]/[[assetId=id]]/+page.svelte @@ -65,7 +65,7 @@ removeAction={AssetAction.SET_VISIBILITY_TIMELINE} > {#snippet empty()} - + {/snippet} diff --git a/web/src/routes/(user)/photos/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/photos/[[assetId=id]]/+page.svelte index 748e0b7100..fde2aeda28 100644 --- a/web/src/routes/(user)/photos/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/photos/[[assetId=id]]/+page.svelte @@ -101,7 +101,7 @@ {/if} {#snippet empty()} - openFileUploadDialog()} /> + openFileUploadDialog()} class="mt-10 mx-auto" /> {/snippet} diff --git a/web/src/routes/(user)/sharing/+page.svelte b/web/src/routes/(user)/sharing/+page.svelte index a55452b5d1..6fcca2a8f4 100644 --- a/web/src/routes/(user)/sharing/+page.svelte +++ b/web/src/routes/(user)/sharing/+page.svelte @@ -94,7 +94,7 @@ {#snippet empty()} - + {/snippet} diff --git a/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.svelte index 99aad49285..b9019d3274 100644 --- a/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.svelte @@ -104,7 +104,7 @@ })}

{#snippet empty()} - + {/snippet} diff --git a/web/src/routes/(user)/utilities/geolocation/+page.svelte b/web/src/routes/(user)/utilities/geolocation/+page.svelte index 732e0625ab..a90c0b5632 100644 --- a/web/src/routes/(user)/utilities/geolocation/+page.svelte +++ b/web/src/routes/(user)/utilities/geolocation/+page.svelte @@ -208,7 +208,7 @@ {/if} {/snippet} {#snippet empty()} - {}} /> + {}} class="mt-10 mx-auto" /> {/snippet} diff --git a/web/src/routes/admin/library-management/+page.svelte b/web/src/routes/admin/library-management/+page.svelte index 600b6ff048..37153d5003 100644 --- a/web/src/routes/admin/library-management/+page.svelte +++ b/web/src/routes/admin/library-management/+page.svelte @@ -1,36 +1,17 @@ + + {#snippet buttons()}
{#if libraries.length > 0} - + {/if} - +
{/snippet}
-
+
{#if libraries.length > 0} - +
@@ -276,91 +84,36 @@ - {#each libraries as library, index (library.id)} + {#each libraries as library (library.id + library.name)} + {@const { photos, usage, videos } = statistics[library.id]} + {@const [diskUsage, diskUsageUnit] = getBytesWithUnit(usage, 0)} - - {#if editImportPaths === index} - -
- handleUpdate(lib, index)} - onCancel={() => (editImportPaths = undefined)} - /> -
- {/if} - {#if editScanSettings === index} - -
- handleUpdate(lib, index)} - onCancel={() => (editScanSettings = undefined)} - /> -
- {/if} {/each}
{library.name} - {#if owner[index] == undefined} - - {:else}{owner[index].name}{/if} + {owners[library.id].name} - {#if photos[index] == undefined} - - {:else} - {photos[index].toLocaleString($locale)} - {/if} + {photos.toLocaleString($locale)} - {#if videos[index] == undefined} - - {:else} - {videos[index].toLocaleString($locale)} - {/if} + {videos.toLocaleString($locale)} - {#if diskUsage[index] == undefined} - - {:else} - {diskUsage[index]} - {diskUsageUnit[index]} - {/if} + {diskUsage} + {diskUsageUnit} - - onScanClicked(library)} text={$t('scan_library')} /> -
- onRenameClicked(index)} text={$t('rename')} /> - onEditImportPathClicked(index)} text={$t('edit_import_paths')} /> - onScanSettingClicked(index)} text={$t('scan_settings')} /> -
- handleDelete(library, index)} - activeColor="bg-red-200" - textColor="text-red-600" - text={$t('delete_library')} - /> -
+
+
- - {:else} - + {/if}
diff --git a/web/src/routes/admin/library-management/+page.ts b/web/src/routes/admin/library-management/+page.ts index 735c7fac92..cb7190b0e4 100644 --- a/web/src/routes/admin/library-management/+page.ts +++ b/web/src/routes/admin/library-management/+page.ts @@ -1,6 +1,6 @@ import { authenticate, requestServerInfo } from '$lib/utils/auth'; import { getFormatter } from '$lib/utils/i18n'; -import { searchUsersAdmin } from '@immich/sdk'; +import { getAllLibraries, getLibraryStatistics, getUserAdmin, searchUsersAdmin } from '@immich/sdk'; import type { PageLoad } from './$types'; export const load = (async ({ url }) => { @@ -9,8 +9,19 @@ export const load = (async ({ url }) => { const allUsers = await searchUsersAdmin({ withDeleted: false }); const $t = await getFormatter(); + const libraries = await getAllLibraries(); + const statistics = await Promise.all( + libraries.map(async ({ id }) => [id, await getLibraryStatistics({ id })] as const), + ); + const owners = await Promise.all( + libraries.map(async ({ id, ownerId }) => [id, await getUserAdmin({ id: ownerId })] as const), + ); + return { allUsers, + libraries, + statistics: Object.fromEntries(statistics), + owners: Object.fromEntries(owners), meta: { title: $t('admin.external_library_management'), }, diff --git a/web/src/routes/admin/library-management/[id]/+page.svelte b/web/src/routes/admin/library-management/[id]/+page.svelte new file mode 100644 index 0000000000..c6fffbbd95 --- /dev/null +++ b/web/src/routes/admin/library-management/[id]/+page.svelte @@ -0,0 +1,131 @@ + + + (library = newLibrary)} + onLibraryDelete={({ id }) => id === library.id && goto(AppRoute.ADMIN_LIBRARY_MANAGEMENT)} +/> + + + {#snippet buttons()} +
+ + + +
+ {/snippet} + +
+ {library.name} +
+ + + +
+ + +
+
+ + {$t('folders')} +
+ +
+
+ +
+ {#if library.importPaths.length === 0} + modalManager.show(LibraryFolderAddModal, { library })} + /> + {:else} + + + {#each library.importPaths as folder (folder)} + {@const { Edit, Delete } = getLibraryFolderActions($t, library, folder)} + + + + + {/each} + +
+ {folder} + + + +
+ {/if} +
+
+
+ + +
+
+ + {$t('exclusion_pattern')} +
+ +
+
+ +
+ + + {#each library.exclusionPatterns as exclusionPattern (exclusionPattern)} + {@const { Edit, Delete } = getLibraryExclusionPatternActions($t, library, exclusionPattern)} + + + + + {/each} + +
+ {exclusionPattern} + + + +
+
+
+
+
+
+
diff --git a/web/src/routes/admin/library-management/[id]/+page.ts b/web/src/routes/admin/library-management/[id]/+page.ts new file mode 100644 index 0000000000..77ce1eb1c8 --- /dev/null +++ b/web/src/routes/admin/library-management/[id]/+page.ts @@ -0,0 +1,28 @@ +import { AppRoute } from '$lib/constants'; +import { authenticate } from '$lib/utils/auth'; +import { getFormatter } from '$lib/utils/i18n'; +import { getLibrary, getLibraryStatistics, type LibraryResponseDto } from '@immich/sdk'; +import { redirect } from '@sveltejs/kit'; +import type { PageLoad } from './$types'; + +export const load = (async ({ params: { id }, url }) => { + await authenticate(url, { admin: true }); + let library: LibraryResponseDto; + + try { + library = await getLibrary({ id }); + } catch { + redirect(302, AppRoute.ADMIN_LIBRARY_MANAGEMENT); + } + + const statistics = await getLibraryStatistics({ id }); + const $t = await getFormatter(); + + return { + library, + statistics, + meta: { + title: $t('admin.library_details'), + }, + }; +}) satisfies PageLoad; diff --git a/web/src/routes/admin/users/+page.svelte b/web/src/routes/admin/users/+page.svelte index c4c1012774..d5a1fe0089 100644 --- a/web/src/routes/admin/users/+page.svelte +++ b/web/src/routes/admin/users/+page.svelte @@ -77,36 +77,34 @@ - {#if allUsers} - {#each allUsers as user (user.id)} - {@const UserAdminActions = getUserAdminActions($t, user)} - + + {user.email} + + {user.name} + +
+ {#if user.quotaSizeInBytes !== null && user.quotaSizeInBytes >= 0} + {getByteUnitString(user.quotaSizeInBytes, $locale)} + {:else} + + {/if} +
+ + - - {user.email} - - {user.name} - -
- {#if user.quotaSizeInBytes !== null && user.quotaSizeInBytes >= 0} - {getByteUnitString(user.quotaSizeInBytes, $locale)} - {:else} - - {/if} -
- - - - - - - {/each} - {/if} + + + + + {/each} diff --git a/web/src/routes/admin/users/[id]/+page.svelte b/web/src/routes/admin/users/[id]/+page.svelte index 49cfb4715a..a8b2264b6b 100644 --- a/web/src/routes/admin/users/[id]/+page.svelte +++ b/web/src/routes/admin/users/[id]/+page.svelte @@ -102,7 +102,7 @@ {/if} -
+
{user.name} From 38d4d1a5736239a7f2b75ffbc196fa5709354801 Mon Sep 17 00:00:00 2001 From: shenlong <139912620+shenlong-tanwen@users.noreply.github.com> Date: Wed, 19 Nov 2025 08:25:01 +0530 Subject: [PATCH 088/300] chore: reset remote sync on app update (#23969) reset remote sync on update Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> --- mobile/lib/domain/models/exif.model.dart | 10 ---------- mobile/lib/domain/services/asset.service.dart | 4 ++-- mobile/lib/infrastructure/entities/exif.entity.dart | 2 -- .../repositories/sync_stream.repository.dart | 12 ++++++++++-- .../pages/drift_asset_troubleshoot.page.dart | 2 -- .../widgets/asset_viewer/bottom_sheet.widget.dart | 4 ++-- mobile/lib/utils/migration.dart | 10 ++++++++-- 7 files changed, 22 insertions(+), 22 deletions(-) diff --git a/mobile/lib/domain/models/exif.model.dart b/mobile/lib/domain/models/exif.model.dart index 6e94c44650..84456b6dcc 100644 --- a/mobile/lib/domain/models/exif.model.dart +++ b/mobile/lib/domain/models/exif.model.dart @@ -3,8 +3,6 @@ class ExifInfo { final int? fileSize; final String? description; final bool isFlipped; - final double? width; - final double? height; final String? orientation; final String? timeZone; final DateTime? dateTimeOriginal; @@ -46,8 +44,6 @@ class ExifInfo { this.fileSize, this.description, this.orientation, - this.width, - this.height, this.timeZone, this.dateTimeOriginal, this.isFlipped = false, @@ -72,8 +68,6 @@ class ExifInfo { return other.fileSize == fileSize && other.description == description && other.isFlipped == isFlipped && - other.width == width && - other.height == height && other.orientation == orientation && other.timeZone == timeZone && other.dateTimeOriginal == dateTimeOriginal && @@ -98,8 +92,6 @@ class ExifInfo { description.hashCode ^ orientation.hashCode ^ isFlipped.hashCode ^ - width.hashCode ^ - height.hashCode ^ timeZone.hashCode ^ dateTimeOriginal.hashCode ^ latitude.hashCode ^ @@ -123,8 +115,6 @@ class ExifInfo { fileSize: ${fileSize ?? 'NA'}, description: ${description ?? 'NA'}, orientation: ${orientation ?? 'NA'}, -width: ${width ?? 'NA'}, -height: ${height ?? 'NA'}, isFlipped: $isFlipped, timeZone: ${timeZone ?? 'NA'}, dateTimeOriginal: ${dateTimeOriginal ?? 'NA'}, diff --git a/mobile/lib/domain/services/asset.service.dart b/mobile/lib/domain/services/asset.service.dart index 7f8ade313c..33661105e4 100644 --- a/mobile/lib/domain/services/asset.service.dart +++ b/mobile/lib/domain/services/asset.service.dart @@ -65,8 +65,8 @@ class AssetService { if (asset.hasRemote) { final exif = await getExif(asset); isFlipped = ExifDtoConverter.isOrientationFlipped(exif?.orientation); - width = exif?.width ?? asset.width?.toDouble(); - height = exif?.height ?? asset.height?.toDouble(); + width = asset.width?.toDouble(); + height = asset.height?.toDouble(); } else if (asset is LocalAsset) { isFlipped = CurrentPlatform.isAndroid && (asset.orientation == 90 || asset.orientation == 270); width = asset.width?.toDouble(); diff --git a/mobile/lib/infrastructure/entities/exif.entity.dart b/mobile/lib/infrastructure/entities/exif.entity.dart index 9c7f9e9975..f858e8b463 100644 --- a/mobile/lib/infrastructure/entities/exif.entity.dart +++ b/mobile/lib/infrastructure/entities/exif.entity.dart @@ -165,8 +165,6 @@ extension RemoteExifEntityDataDomainEx on RemoteExifEntityData { f: fNumber?.toDouble(), mm: focalLength?.toDouble(), lens: lens, - width: width?.toDouble(), - height: height?.toDouble(), isFlipped: ExifDtoConverter.isOrientationFlipped(orientation), ); } diff --git a/mobile/lib/infrastructure/repositories/sync_stream.repository.dart b/mobile/lib/infrastructure/repositories/sync_stream.repository.dart index 8e087f836f..5ab1844571 100644 --- a/mobile/lib/infrastructure/repositories/sync_stream.repository.dart +++ b/mobile/lib/infrastructure/repositories/sync_stream.repository.dart @@ -219,8 +219,6 @@ class SyncStreamRepository extends DriftDatabaseRepository { country: Value(exif.country), dateTimeOriginal: Value(exif.dateTimeOriginal), description: Value(exif.description), - height: Value(exif.exifImageHeight), - width: Value(exif.exifImageWidth), exposureTime: Value(exif.exposureTime), fNumber: Value(exif.fNumber), fileSize: Value(exif.fileSizeInByte), @@ -244,6 +242,16 @@ class SyncStreamRepository extends DriftDatabaseRepository { ); } }); + + await _db.batch((batch) { + for (final exif in data) { + batch.update( + _db.remoteAssetEntity, + RemoteAssetEntityCompanion(width: Value(exif.exifImageWidth), height: Value(exif.exifImageHeight)), + where: (row) => row.id.equals(exif.assetId), + ); + } + }); } catch (error, stack) { _logger.severe('Error: updateAssetsExifV1 - $debugLabel', error, stack); rethrow; diff --git a/mobile/lib/presentation/pages/drift_asset_troubleshoot.page.dart b/mobile/lib/presentation/pages/drift_asset_troubleshoot.page.dart index 7a899f4e72..752ab5ba37 100644 --- a/mobile/lib/presentation/pages/drift_asset_troubleshoot.page.dart +++ b/mobile/lib/presentation/pages/drift_asset_troubleshoot.page.dart @@ -161,8 +161,6 @@ class _AssetPropertiesSectionState extends ConsumerState<_AssetPropertiesSection value: exif.fileSize != null ? '${(exif.fileSize! / 1024 / 1024).toStringAsFixed(2)} MB' : null, ), _PropertyItem(label: 'Description', value: exif.description), - _PropertyItem(label: 'EXIF Width', value: exif.width?.toString()), - _PropertyItem(label: 'EXIF Height', value: exif.height?.toString()), _PropertyItem(label: 'Date Taken', value: exif.dateTimeOriginal?.toString()), _PropertyItem(label: 'Time Zone', value: exif.timeZone), _PropertyItem(label: 'Camera Make', value: exif.make), diff --git a/mobile/lib/presentation/widgets/asset_viewer/bottom_sheet.widget.dart b/mobile/lib/presentation/widgets/asset_viewer/bottom_sheet.widget.dart index d29e09a247..c7c502194a 100644 --- a/mobile/lib/presentation/widgets/asset_viewer/bottom_sheet.widget.dart +++ b/mobile/lib/presentation/widgets/asset_viewer/bottom_sheet.widget.dart @@ -97,8 +97,8 @@ class _AssetDetailBottomSheet extends ConsumerWidget { } String _getFileInfo(BaseAsset asset, ExifInfo? exifInfo) { - final height = asset.height ?? exifInfo?.height; - final width = asset.width ?? exifInfo?.width; + final height = asset.height; + final width = asset.width; final resolution = (width != null && height != null) ? "${width.toInt()} x ${height.toInt()}" : null; final fileSize = exifInfo?.fileSize != null ? formatBytes(exifInfo!.fileSize!) : null; diff --git a/mobile/lib/utils/migration.dart b/mobile/lib/utils/migration.dart index 2ed6d9549f..b0d7ea6013 100644 --- a/mobile/lib/utils/migration.dart +++ b/mobile/lib/utils/migration.dart @@ -29,7 +29,7 @@ import 'package:isar/isar.dart'; // ignore: import_rule_photo_manager import 'package:photo_manager/photo_manager.dart'; -const int targetVersion = 17; +const int targetVersion = 18; Future migrateDatabaseIfNeeded(Isar db, Drift drift) async { final hasVersion = Store.tryGet(StoreKey.version) != null; @@ -63,7 +63,8 @@ Future migrateDatabaseIfNeeded(Isar db, Drift drift) async { await Store.populateCache(); } - await handleBetaMigration(version, await _isNewInstallation(db, drift), SyncStreamRepository(drift)); + final syncStreamRepository = SyncStreamRepository(drift); + await handleBetaMigration(version, await _isNewInstallation(db, drift), syncStreamRepository); if (version < 17 && Store.isBetaTimelineEnabled) { final delay = Store.get(StoreKey.backupTriggerDelay, AppSettingsEnum.backupTriggerDelay.defaultValue); @@ -72,6 +73,11 @@ Future migrateDatabaseIfNeeded(Isar db, Drift drift) async { } } + if (version < 18 && Store.isBetaTimelineEnabled) { + await syncStreamRepository.reset(); + await Store.put(StoreKey.shouldResetSync, true); + } + if (targetVersion >= 12) { await Store.put(StoreKey.version, targetVersion); return; From 4462952564f6530934d4ad849b6ff33562752815 Mon Sep 17 00:00:00 2001 From: bo0tzz Date: Wed, 19 Nov 2025 04:00:03 +0100 Subject: [PATCH 089/300] fix: proper docker caching for plugin mise deps (#23967) * fix: proper docker caching for plugin mise deps * fix: mount mise cache for build too --- server/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/Dockerfile b/server/Dockerfile index c73574a05f..3b2d885149 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -55,7 +55,9 @@ COPY --from=ghcr.io/jdx/mise:2025.11.3@sha256:ac26f5978c0e2783f3e68e58ce75eddb83 WORKDIR /usr/src/app COPY ./plugins/mise.toml ./plugins/ ENV MISE_TRUSTED_CONFIG_PATHS=/usr/src/app/plugins/mise.toml -RUN mise install --cd plugins +ENV MISE_DATA_DIR=/buildcache/mise +RUN --mount=type=cache,id=mise-tools,target=/buildcache/mise \ + mise install --cd plugins COPY ./plugins ./plugins/ # Build plugins @@ -64,6 +66,7 @@ RUN --mount=type=cache,id=pnpm-plugins,target=/buildcache/pnpm-store \ --mount=type=bind,source=.pnpmfile.cjs,target=.pnpmfile.cjs \ --mount=type=bind,source=pnpm-lock.yaml,target=pnpm-lock.yaml \ --mount=type=bind,source=pnpm-workspace.yaml,target=pnpm-workspace.yaml \ + --mount=type=cache,id=mise-tools,target=/buildcache/mise \ cd plugins && mise run build FROM ghcr.io/immich-app/base-server-prod:202511041104@sha256:57c0379977fd5521d83cdf661aecd1497c83a9a661ebafe0a5243a09fc1064cb From 271a42ac7fe4c3d7c66c7a58d9dae6ece1e92044 Mon Sep 17 00:00:00 2001 From: Mees Frensel <33722705+meesfrensel@users.noreply.github.com> Date: Wed, 19 Nov 2025 04:02:12 +0100 Subject: [PATCH 090/300] fix(server): copy relevant panorama tags to preview image (#23953) --- server/src/repositories/media.repository.ts | 17 +++++++++++++++++ server/src/services/media.service.spec.ts | 8 ++++++++ server/src/services/media.service.ts | 10 ++++++++++ .../test/repositories/media.repository.mock.ts | 1 + 4 files changed, 36 insertions(+) diff --git a/server/src/repositories/media.repository.ts b/server/src/repositories/media.repository.ts index d98e018efb..a8e96709ff 100644 --- a/server/src/repositories/media.repository.ts +++ b/server/src/repositories/media.repository.ts @@ -121,6 +121,23 @@ export class MediaRepository { } } + async copyTagGroup(tagGroup: string, source: string, target: string): Promise { + try { + await exiftool.write( + target, + {}, + { + ignoreMinorErrors: true, + writeArgs: ['-TagsFromFile', source, `-${tagGroup}:all>${tagGroup}:all`, '-overwrite_original'], + }, + ); + return true; + } catch (error: any) { + this.logger.warn(`Could not copy tag data to image: ${error.message}`); + return false; + } + } + decodeImage(input: string | Buffer, options: DecodeToBufferOptions) { return this.getImageDecodingPipeline(input, options).raw().toBuffer({ resolveWithObject: true }); } diff --git a/server/src/services/media.service.spec.ts b/server/src/services/media.service.spec.ts index ad52b0e8b0..8617930534 100644 --- a/server/src/services/media.service.spec.ts +++ b/server/src/services/media.service.spec.ts @@ -865,6 +865,7 @@ describe(MediaService.name, () => { mocks.systemMetadata.get.mockResolvedValue({ image: { fullsize: { enabled: false } } }); mocks.media.extract.mockResolvedValue({ buffer: extractedBuffer, format: RawExtractedFormat.Jpeg }); mocks.media.getImageDimensions.mockResolvedValue({ width: 3840, height: 2160 }); + mocks.media.copyTagGroup.mockResolvedValue(true); mocks.assetJob.getForGenerateThumbnailJob.mockResolvedValue(assetStub.panoramaTif); @@ -890,6 +891,13 @@ describe(MediaService.name, () => { }, expect.any(String), ); + + expect(mocks.media.copyTagGroup).toHaveBeenCalledTimes(2); + expect(mocks.media.copyTagGroup).toHaveBeenCalledWith( + 'XMP-GPano', + assetStub.panoramaTif.originalPath, + expect.any(String), + ); }); it('should respect encoding options when generating full-size preview', async () => { diff --git a/server/src/services/media.service.ts b/server/src/services/media.service.ts index 6caa682f5e..82f041c111 100644 --- a/server/src/services/media.service.ts +++ b/server/src/services/media.service.ts @@ -316,6 +316,16 @@ export class MediaService extends BaseService { const outputs = await Promise.all(promises); + if (asset.exifInfo.projectionType === 'EQUIRECTANGULAR') { + const promises = [ + this.mediaRepository.copyTagGroup('XMP-GPano', asset.originalPath, previewPath), + fullsizePath + ? this.mediaRepository.copyTagGroup('XMP-GPano', asset.originalPath, fullsizePath) + : Promise.resolve(), + ]; + await Promise.all(promises); + } + return { previewPath, thumbnailPath, fullsizePath, thumbhash: outputs[0] as Buffer }; } diff --git a/server/test/repositories/media.repository.mock.ts b/server/test/repositories/media.repository.mock.ts index c6ab11aaa1..b6b1e82b52 100644 --- a/server/test/repositories/media.repository.mock.ts +++ b/server/test/repositories/media.repository.mock.ts @@ -6,6 +6,7 @@ export const newMediaRepositoryMock = (): Mocked Promise.resolve()), writeExif: vitest.fn().mockImplementation(() => Promise.resolve()), + copyTagGroup: vitest.fn().mockImplementation(() => Promise.resolve()), generateThumbhash: vitest.fn().mockResolvedValue(Buffer.from('')), decodeImage: vitest.fn().mockResolvedValue({ data: Buffer.from(''), info: {} }), extract: vitest.fn().mockResolvedValue(null), From 76c73549ae8ae87003b7d167daad8ae049447992 Mon Sep 17 00:00:00 2001 From: Mees Frensel <33722705+meesfrensel@users.noreply.github.com> Date: Wed, 19 Nov 2025 04:02:52 +0100 Subject: [PATCH 091/300] feat(web): always view original of animated images (#23842) --- .../asset-viewer/photo-viewer.spec.ts | 107 ++++++++++++++++-- .../asset-viewer/photo-viewer.svelte | 7 +- .../assets/thumbnail/thumbnail.svelte | 4 +- 3 files changed, 104 insertions(+), 14 deletions(-) diff --git a/web/src/lib/components/asset-viewer/photo-viewer.spec.ts b/web/src/lib/components/asset-viewer/photo-viewer.spec.ts index 9e9f8fae62..fd1a40e4db 100644 --- a/web/src/lib/components/asset-viewer/photo-viewer.spec.ts +++ b/web/src/lib/components/asset-viewer/photo-viewer.spec.ts @@ -1,7 +1,7 @@ import { getAnimateMock } from '$lib/__mocks__/animate.mock'; import PhotoViewer from '$lib/components/asset-viewer/photo-viewer.svelte'; import * as utils from '$lib/utils'; -import { AssetMediaSize } from '@immich/sdk'; +import { AssetMediaSize, AssetTypeEnum } from '@immich/sdk'; import { assetFactory } from '@test-data/factories/asset-factory'; import { sharedLinkFactory } from '@test-data/factories/shared-link-factory'; import { render } from '@testing-library/svelte'; @@ -65,7 +65,11 @@ describe('PhotoViewer component', () => { }); it('loads the thumbnail', () => { - const asset = assetFactory.build({ originalPath: 'image.jpg', originalMimeType: 'image/jpeg' }); + const asset = assetFactory.build({ + originalPath: 'image.jpg', + originalMimeType: 'image/jpeg', + type: AssetTypeEnum.Image, + }); render(PhotoViewer, { asset }); expect(getAssetThumbnailUrlSpy).toBeCalledWith({ @@ -76,16 +80,89 @@ describe('PhotoViewer component', () => { expect(getAssetOriginalUrlSpy).not.toBeCalled(); }); - it('loads the original image for gifs', () => { - const asset = assetFactory.build({ originalPath: 'image.gif', originalMimeType: 'image/gif' }); + it('loads the thumbnail image for static gifs', () => { + const asset = assetFactory.build({ + originalPath: 'image.gif', + originalMimeType: 'image/gif', + type: AssetTypeEnum.Image, + }); + render(PhotoViewer, { asset }); + + expect(getAssetThumbnailUrlSpy).toBeCalledWith({ + id: asset.id, + size: AssetMediaSize.Preview, + cacheKey: asset.thumbhash, + }); + expect(getAssetOriginalUrlSpy).not.toBeCalled(); + }); + + it('loads the thumbnail image for static webp images', () => { + const asset = assetFactory.build({ + originalPath: 'image.webp', + originalMimeType: 'image/webp', + type: AssetTypeEnum.Image, + }); + render(PhotoViewer, { asset }); + + expect(getAssetThumbnailUrlSpy).toBeCalledWith({ + id: asset.id, + size: AssetMediaSize.Preview, + cacheKey: asset.thumbhash, + }); + expect(getAssetOriginalUrlSpy).not.toBeCalled(); + }); + + it('loads the original image for animated gifs', () => { + const asset = assetFactory.build({ + originalPath: 'image.gif', + originalMimeType: 'image/gif', + type: AssetTypeEnum.Image, + duration: '2.0', + }); render(PhotoViewer, { asset }); expect(getAssetThumbnailUrlSpy).not.toBeCalled(); expect(getAssetOriginalUrlSpy).toBeCalledWith({ id: asset.id, cacheKey: asset.thumbhash }); }); - it('loads original for shared link when download permission is true and showMetadata permission is true', () => { - const asset = assetFactory.build({ originalPath: 'image.gif', originalMimeType: 'image/gif' }); + it('loads the original image for animated webp images', () => { + const asset = assetFactory.build({ + originalPath: 'image.webp', + originalMimeType: 'image/webp', + type: AssetTypeEnum.Image, + duration: '2.0', + }); + render(PhotoViewer, { asset }); + + expect(getAssetThumbnailUrlSpy).not.toBeCalled(); + expect(getAssetOriginalUrlSpy).toBeCalledWith({ id: asset.id, cacheKey: asset.thumbhash }); + }); + + it('not loads original static image in shared link even when download permission is true and showMetadata permission is true', () => { + const asset = assetFactory.build({ + originalPath: 'image.gif', + originalMimeType: 'image/gif', + type: AssetTypeEnum.Image, + }); + const sharedLink = sharedLinkFactory.build({ allowDownload: true, showMetadata: true, assets: [asset] }); + render(PhotoViewer, { asset, sharedLink }); + + expect(getAssetThumbnailUrlSpy).toBeCalledWith({ + id: asset.id, + size: AssetMediaSize.Preview, + cacheKey: asset.thumbhash, + }); + + expect(getAssetOriginalUrlSpy).not.toBeCalled(); + }); + + it('loads original animated image in shared link when download permission is true and showMetadata permission is true', () => { + const asset = assetFactory.build({ + originalPath: 'image.gif', + originalMimeType: 'image/gif', + type: AssetTypeEnum.Image, + duration: '2.0', + }); const sharedLink = sharedLinkFactory.build({ allowDownload: true, showMetadata: true, assets: [asset] }); render(PhotoViewer, { asset, sharedLink }); @@ -93,8 +170,13 @@ describe('PhotoViewer component', () => { expect(getAssetOriginalUrlSpy).toBeCalledWith({ id: asset.id, cacheKey: asset.thumbhash }); }); - it('not loads original image when shared link download permission is false', () => { - const asset = assetFactory.build({ originalPath: 'image.gif', originalMimeType: 'image/gif' }); + it('not loads original animated image when shared link download permission is false', () => { + const asset = assetFactory.build({ + originalPath: 'image.gif', + originalMimeType: 'image/gif', + type: AssetTypeEnum.Image, + duration: '2.0', + }); const sharedLink = sharedLinkFactory.build({ allowDownload: false, assets: [asset] }); render(PhotoViewer, { asset, sharedLink }); @@ -107,8 +189,13 @@ describe('PhotoViewer component', () => { expect(getAssetOriginalUrlSpy).not.toBeCalled(); }); - it('not loads original image when shared link showMetadata permission is false', () => { - const asset = assetFactory.build({ originalPath: 'image.gif', originalMimeType: 'image/gif' }); + it('not loads original animated image when shared link showMetadata permission is false', () => { + const asset = assetFactory.build({ + originalPath: 'image.gif', + originalMimeType: 'image/gif', + type: AssetTypeEnum.Image, + duration: '2.0', + }); const sharedLink = sharedLinkFactory.build({ showMetadata: false, assets: [asset] }); render(PhotoViewer, { asset, sharedLink }); diff --git a/web/src/lib/components/asset-viewer/photo-viewer.svelte b/web/src/lib/components/asset-viewer/photo-viewer.svelte index d88609f7bb..e37773fca5 100644 --- a/web/src/lib/components/asset-viewer/photo-viewer.svelte +++ b/web/src/lib/components/asset-viewer/photo-viewer.svelte @@ -19,7 +19,7 @@ import { cancelImageUrl } from '$lib/utils/sw-messaging'; import { getAltText } from '$lib/utils/thumbnail-util'; import { toTimelineAsset } from '$lib/utils/timeline-util'; - import { AssetMediaSize, type AssetResponseDto, type SharedLinkResponseDto } from '@immich/sdk'; + import { AssetMediaSize, AssetTypeEnum, type AssetResponseDto, type SharedLinkResponseDto } from '@immich/sdk'; import { LoadingSpinner, toastManager } from '@immich/ui'; import { onDestroy, onMount } from 'svelte'; import { useSwipe, type SwipeCustomEvent } from 'svelte-gestures'; @@ -139,7 +139,10 @@ }; // when true, will force loading of the original image - let forceUseOriginal: boolean = $derived(asset.originalMimeType === 'image/gif' || $photoZoomState.currentZoom > 1); + let forceUseOriginal: boolean = $derived( + (asset.type === AssetTypeEnum.Image && asset.duration && !asset.duration.includes('0:00:00.000')) || + $photoZoomState.currentZoom > 1, + ); const targetImageSize = $derived.by(() => { if ($alwaysLoadOriginalFile || forceUseOriginal || originalImageLoaded) { diff --git a/web/src/lib/components/assets/thumbnail/thumbnail.svelte b/web/src/lib/components/assets/thumbnail/thumbnail.svelte index dd13d613b2..261829cfc6 100644 --- a/web/src/lib/components/assets/thumbnail/thumbnail.svelte +++ b/web/src/lib/components/assets/thumbnail/thumbnail.svelte @@ -282,7 +282,7 @@
{/if} - {#if asset.isImage && asset.duration} + {#if asset.isImage && asset.duration && !asset.duration.includes('0:00:00.000')}
@@ -351,7 +351,7 @@ playbackOnIconHover={!$playVideoThumbnailOnHover} />
- {:else if asset.isImage && asset.duration && mouseOver} + {:else if asset.isImage && asset.duration && !asset.duration.includes('0:00:00.000') && mouseOver}
From 5e482dabc6fe05081646b49c97c5cf5f5199d44f Mon Sep 17 00:00:00 2001 From: Sergey Katsubo Date: Wed, 19 Nov 2025 06:03:21 +0300 Subject: [PATCH 092/300] feat(server): support running medium tests in devcontainer (#23882) * Support running medium tests in devcontainer * Add "pnpm run test:medium" to the devcontainer doc * Fix indentation for inline comments in the doc * Fix a couple of words in the doc --- .devcontainer/devcontainer.json | 6 +++++ docs/docs/developer/devcontainers.md | 37 ++++++++++++++-------------- 2 files changed, 25 insertions(+), 18 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 79126fd658..7584eb8075 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -29,6 +29,12 @@ ] } }, + "features": { + "ghcr.io/devcontainers/features/docker-in-docker:2": { + // https://github.com/devcontainers/features/issues/1466 + "moby": false + } + }, "forwardPorts": [3000, 9231, 9230, 2283], "portsAttributes": { "3000": { diff --git a/docs/docs/developer/devcontainers.md b/docs/docs/developer/devcontainers.md index 0a1946e6c1..f50ec62d8a 100644 --- a/docs/docs/developer/devcontainers.md +++ b/docs/docs/developer/devcontainers.md @@ -256,7 +256,7 @@ The Dev Container supports multiple ways to run tests: ```bash # Run tests for specific components -make test-server # Server unit tests +make test-server # Server unit tests make test-web # Web unit tests make test-e2e # End-to-end tests make test-cli # CLI tests @@ -268,12 +268,13 @@ make test-all # Runs tests for all components make test-medium-dev # End-to-end tests ``` -#### Using NPM Directly +#### Using PNPM Directly ```bash # Server tests cd /workspaces/immich/server -pnpm test # Run all tests +pnpm test # Run all tests +pnpm run test:medium # Medium tests (integration tests) pnpm run test:watch # Watch mode pnpm run test:cov # Coverage report @@ -293,21 +294,21 @@ pnpm run test:web # Run web UI tests ```bash # Linting make lint-server # Lint server code -make lint-web # Lint web code -make lint-all # Lint all components +make lint-web # Lint web code +make lint-all # Lint all components # Formatting make format-server # Format server code -make format-web # Format web code -make format-all # Format all code +make format-web # Format web code +make format-all # Format all code # Type checking make check-server # Type check server -make check-web # Type check web -make check-all # Check all components +make check-web # Type check web +make check-all # Check all components # Complete hygiene check -make hygiene-all # Runs lint, format, check, SQL sync, and audit +make hygiene-all # Run lint, format, check, SQL sync, and audit ``` ### Additional Make Commands @@ -315,21 +316,21 @@ make hygiene-all # Runs lint, format, check, SQL sync, and audit ```bash # Build commands make build-server # Build server -make build-web # Build web app -make build-all # Build everything +make build-web # Build web app +make build-all # Build everything # API generation -make open-api # Generate OpenAPI specs +make open-api # Generate OpenAPI specs make open-api-typescript # Generate TypeScript SDK -make open-api-dart # Generate Dart SDK +make open-api-dart # Generate Dart SDK # Database -make sql # Sync database schema +make sql # Sync database schema # Dependencies -make install-server # Install server dependencies -make install-web # Install web dependencies -make install-all # Install all dependencies +make install-server # Install server dependencies +make install-web # Install web dependencies +make install-all # Install all dependencies ``` ### Debugging From edf577d7f7131a30706fe204cc3fc4101152c3b1 Mon Sep 17 00:00:00 2001 From: bo0tzz Date: Wed, 19 Nov 2025 04:03:49 +0100 Subject: [PATCH 093/300] feat: publish on release pr merge (#23867) --- .github/workflows/release.yml | 147 ++++++++++++++++++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000000..bb4ea9e245 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,147 @@ +name: release.yml +on: + pull_request: + types: [closed] + paths: + - CHANGELOG.md + +jobs: + # Maybe double check PR source branch? + + merge_translations: + uses: ./.github/workflows/merge-translations.yml + permissions: + pull-requests: write + secrets: + PUSH_O_MATIC_APP_ID: ${{ secrets.PUSH_O_MATIC_APP_ID }} + PUSH_O_MATIC_APP_KEY: ${{ secrets.PUSH_O_MATIC_APP_KEY }} + WEBLATE_TOKEN: ${{ secrets.WEBLATE_TOKEN }} + + build_mobile: + uses: ./.github/workflows/build-mobile.yml + needs: merge_translations + permissions: + contents: read + secrets: + KEY_JKS: ${{ secrets.KEY_JKS }} + ALIAS: ${{ secrets.ALIAS }} + ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }} + ANDROID_STORE_PASSWORD: ${{ secrets.ANDROID_STORE_PASSWORD }} + # iOS secrets + APP_STORE_CONNECT_API_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }} + APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }} + APP_STORE_CONNECT_API_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY }} + IOS_CERTIFICATE_P12: ${{ secrets.IOS_CERTIFICATE_P12 }} + IOS_CERTIFICATE_PASSWORD: ${{ secrets.IOS_CERTIFICATE_PASSWORD }} + IOS_PROVISIONING_PROFILE: ${{ secrets.IOS_PROVISIONING_PROFILE }} + IOS_PROVISIONING_PROFILE_SHARE_EXTENSION: ${{ secrets.IOS_PROVISIONING_PROFILE_SHARE_EXTENSION }}misc/release/notes.tmpl + IOS_PROVISIONING_PROFILE_WIDGET_EXTENSION: ${{ secrets.IOS_PROVISIONING_PROFILE_WIDGET_EXTENSION }} + IOS_DEVELOPMENT_PROVISIONING_PROFILE: ${{ secrets.IOS_DEVELOPMENT_PROVISIONING_PROFILE }} + IOS_DEVELOPMENT_PROVISIONING_PROFILE_SHARE_EXTENSION: ${{ secrets.IOS_DEVELOPMENT_PROVISIONING_PROFILE_SHARE_EXTENSION }} + IOS_DEVELOPMENT_PROVISIONING_PROFILE_WIDGET_EXTENSION: ${{ secrets.IOS_DEVELOPMENT_PROVISIONING_PROFILE_WIDGET_EXTENSION }} + FASTLANE_TEAM_ID: ${{ secrets.FASTLANE_TEAM_ID }} + with: + ref: main + environment: production + + prepare_release: + runs-on: ubuntu-latest + needs: build_mobile + permissions: + actions: read # To download the app artifact + steps: + - name: Generate a token + id: generate-token + uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4 + with: + app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }} + private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }} + + - name: Checkout + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + with: + token: ${{ steps.generate-token.outputs.token }} + persist-credentials: false + ref: main + + - name: Extract changelog + id: changelog + run: | + CHANGELOG_PATH=$RUNNER_TEMP/changelog.md + sed -n '1,/^---$/p' CHANGELOG.md | head -n -1 > $CHANGELOG_PATH + echo "path=$CHANGELOG_PATH" >> $GITHUB_OUTPUT + VERSION=$(sed -n 's/^# //p' $CHANGELOG_PATH) + echo "version=$VERSION" >> $GITHUB_OUTPUT + + - name: Download APK + uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 + with: + name: release-apk-signed + github-token: ${{ steps.generate-token.outputs.token }} + + - name: Create draft release + uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1 + with: + tag_name: ${{ steps.version.outputs.result }} + token: ${{ steps.generate-token.outputs.token }} + body_path: ${{ steps.changelog.outputs.path }} + files: | + docker/docker-compose.yml + docker/example.env + docker/hwaccel.ml.yml + docker/hwaccel.transcoding.yml + docker/prometheus.yml + *.apk + + - name: Rename Outline document + uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 + continue-on-error: true + env: + OUTLINE_API_KEY: ${{ secrets.OUTLINE_API_KEY }} + VERSION: ${{ steps.changelog.outputs.version }} + with: + github-token: ${{ steps.generate-token.outputs.token }} + script: | + const outlineKey = process.env.OUTLINE_API_KEY; + const version = process.env.VERSION; + const parentDocumentId = 'da856355-0844-43df-bd71-f8edce5382d9'; + const baseUrl = 'https://outline.immich.cloud'; + + const listResponse = await fetch(`${baseUrl}/api/documents.list`, { + method: 'POST', + headers: { + 'Authorization': `Bearer ${outlineKey}`, + 'Content-Type': 'application/json' + }, + body: JSON.stringify({ parentDocumentId }) + }); + + if (!listResponse.ok) { + throw new Error(`Outline list failed: ${listResponse.statusText}`); + } + + const listData = await listResponse.json(); + const allDocuments = listData.data || []; + const document = allDocuments.find(doc => doc.title === 'next'); + + if (document) { + console.log(`Found document 'next', renaming to '${version}'...`); + + const updateResponse = await fetch(`${baseUrl}/api/documents.update`, { + method: 'POST', + headers: { + 'Authorization': `Bearer ${outlineKey}`, + 'Content-Type': 'application/json' + }, + body: JSON.stringify({ + id: document.id, + title: version + }) + }); + + if (!updateResponse.ok) { + throw new Error(`Failed to rename document: ${updateResponse.statusText}`); + } + } else { + console.log('No document titled "next" found to rename'); + } From 5f987a95f510c9dfa786e10e52021add7cc3d2a8 Mon Sep 17 00:00:00 2001 From: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com> Date: Wed, 19 Nov 2025 04:05:53 +0100 Subject: [PATCH 094/300] fix: feature flags manager race condition (#23973) Co-authored-by: Alex --- .../map/[[photos=photos]]/[[assetId=id]]/+page.svelte | 7 ++++++- .../(user)/map/[[photos=photos]]/[[assetId=id]]/+page.ts | 8 -------- .../trash/[[photos=photos]]/[[assetId=id]]/+page.svelte | 7 +++++++ .../trash/[[photos=photos]]/[[assetId=id]]/+page.ts | 8 -------- 4 files changed, 13 insertions(+), 17 deletions(-) diff --git a/web/src/routes/(user)/map/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/map/[[photos=photos]]/[[assetId=id]]/+page.svelte index dd5cbe8b8f..fd443a6470 100644 --- a/web/src/routes/(user)/map/[[photos=photos]]/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/map/[[photos=photos]]/[[assetId=id]]/+page.svelte @@ -1,6 +1,7 @@
@@ -152,6 +172,14 @@ {asset.originalFileName} + + {truncateMiddle(getBasePath(asset.originalPath, asset.originalFileName)) || $t('unknown')} + + {getFileSize(asset)} From 42dd3315f8abad0003638815d68a0fb839d13f61 Mon Sep 17 00:00:00 2001 From: Min Idzelis Date: Tue, 18 Nov 2025 22:26:15 -0500 Subject: [PATCH 098/300] refactor(web): fix TimelineManager import - use value import instead of type-only (#23983) --- web/src/lib/components/timeline/TimelineDateGroup.svelte | 2 +- .../timeline-manager/internal/intersection-support.svelte.ts | 2 +- .../managers/timeline-manager/internal/layout-support.svelte.ts | 2 +- .../managers/timeline-manager/internal/load-support.svelte.ts | 2 +- .../managers/timeline-manager/internal/search-support.svelte.ts | 2 +- web/src/lib/modals/NavigateToDateModal.svelte | 2 +- web/src/lib/utils/asset-utils.ts | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/web/src/lib/components/timeline/TimelineDateGroup.svelte b/web/src/lib/components/timeline/TimelineDateGroup.svelte index cd0dc9a212..c662c16e72 100644 --- a/web/src/lib/components/timeline/TimelineDateGroup.svelte +++ b/web/src/lib/components/timeline/TimelineDateGroup.svelte @@ -2,7 +2,7 @@ import Thumbnail from '$lib/components/assets/thumbnail/thumbnail.svelte'; import type { DayGroup } from '$lib/managers/timeline-manager/day-group.svelte'; import type { MonthGroup } from '$lib/managers/timeline-manager/month-group.svelte'; - import type { TimelineManager } from '$lib/managers/timeline-manager/timeline-manager.svelte'; + import { TimelineManager } from '$lib/managers/timeline-manager/timeline-manager.svelte'; import type { TimelineAsset } from '$lib/managers/timeline-manager/types'; import { assetSnapshot, assetsSnapshot } from '$lib/managers/timeline-manager/utils.svelte'; import type { AssetInteraction } from '$lib/stores/asset-interaction.svelte'; diff --git a/web/src/lib/managers/timeline-manager/internal/intersection-support.svelte.ts b/web/src/lib/managers/timeline-manager/internal/intersection-support.svelte.ts index bdf2b17cbe..3c6f2d8256 100644 --- a/web/src/lib/managers/timeline-manager/internal/intersection-support.svelte.ts +++ b/web/src/lib/managers/timeline-manager/internal/intersection-support.svelte.ts @@ -1,6 +1,6 @@ import { TUNABLES } from '$lib/utils/tunables'; import type { MonthGroup } from '../month-group.svelte'; -import type { TimelineManager } from '../timeline-manager.svelte'; +import { TimelineManager } from '../timeline-manager.svelte'; const { TIMELINE: { INTERSECTION_EXPAND_TOP, INTERSECTION_EXPAND_BOTTOM }, diff --git a/web/src/lib/managers/timeline-manager/internal/layout-support.svelte.ts b/web/src/lib/managers/timeline-manager/internal/layout-support.svelte.ts index 0f6ca112d1..71dc168971 100644 --- a/web/src/lib/managers/timeline-manager/internal/layout-support.svelte.ts +++ b/web/src/lib/managers/timeline-manager/internal/layout-support.svelte.ts @@ -1,5 +1,5 @@ import type { MonthGroup } from '../month-group.svelte'; -import type { TimelineManager } from '../timeline-manager.svelte'; +import { TimelineManager } from '../timeline-manager.svelte'; import type { UpdateGeometryOptions } from '../types'; export function updateGeometry(timelineManager: TimelineManager, month: MonthGroup, options: UpdateGeometryOptions) { diff --git a/web/src/lib/managers/timeline-manager/internal/load-support.svelte.ts b/web/src/lib/managers/timeline-manager/internal/load-support.svelte.ts index 0d966c9cee..ec50e3d75e 100644 --- a/web/src/lib/managers/timeline-manager/internal/load-support.svelte.ts +++ b/web/src/lib/managers/timeline-manager/internal/load-support.svelte.ts @@ -2,7 +2,7 @@ import { authManager } from '$lib/managers/auth-manager.svelte'; import { toISOYearMonthUTC } from '$lib/utils/timeline-util'; import { getTimeBucket } from '@immich/sdk'; import type { MonthGroup } from '../month-group.svelte'; -import type { TimelineManager } from '../timeline-manager.svelte'; +import { TimelineManager } from '../timeline-manager.svelte'; import type { TimelineManagerOptions } from '../types'; export async function loadFromTimeBuckets( diff --git a/web/src/lib/managers/timeline-manager/internal/search-support.svelte.ts b/web/src/lib/managers/timeline-manager/internal/search-support.svelte.ts index 52a37b52d0..f889456c20 100644 --- a/web/src/lib/managers/timeline-manager/internal/search-support.svelte.ts +++ b/web/src/lib/managers/timeline-manager/internal/search-support.svelte.ts @@ -2,7 +2,7 @@ import { plainDateTimeCompare, type TimelineYearMonth } from '$lib/utils/timelin import { AssetOrder } from '@immich/sdk'; import { DateTime } from 'luxon'; import type { MonthGroup } from '../month-group.svelte'; -import type { TimelineManager } from '../timeline-manager.svelte'; +import { TimelineManager } from '../timeline-manager.svelte'; import type { AssetDescriptor, Direction, TimelineAsset } from '../types'; export async function getAssetWithOffset( diff --git a/web/src/lib/modals/NavigateToDateModal.svelte b/web/src/lib/modals/NavigateToDateModal.svelte index 4b83c66bc6..365cbdb21c 100644 --- a/web/src/lib/modals/NavigateToDateModal.svelte +++ b/web/src/lib/modals/NavigateToDateModal.svelte @@ -1,6 +1,6 @@ + +
{ + const [newAssetId] = await openFileUploadDialog({ multiple: false }); + await copyAsset({ assetCopyDto: { sourceId: oldAssetId, targetId: newAssetId } }); + await deleteAssets({ assetBulkDeleteDto: { ids: [oldAssetId], force: true } }); + + eventManager.emit('AssetReplace', { oldAssetId, newAssetId }); +}; diff --git a/web/src/lib/utils/file-uploader.ts b/web/src/lib/utils/file-uploader.ts index 3f602bdb29..516d682625 100644 --- a/web/src/lib/utils/file-uploader.ts +++ b/web/src/lib/utils/file-uploader.ts @@ -12,7 +12,6 @@ import { AssetMediaStatus, AssetVisibility, checkBulkUpload, - getAssetOriginalPath, getBaseUrl, type AssetMediaResponseDto, } from '@immich/sdk'; @@ -44,12 +43,10 @@ export const addDummyItems = () => { export const uploadExecutionQueue = new ExecutorQueue({ concurrency: 2 }); -type FileUploadParam = { multiple?: boolean } & ( - | { albumId?: string; assetId?: never } - | { albumId?: never; assetId?: string } -); +type FileUploadParam = { multiple?: boolean; albumId?: string }; + export const openFileUploadDialog = async (options: FileUploadParam = {}) => { - const { albumId, multiple = true, assetId } = options; + const { albumId, multiple = true } = options; const extensions = uploadManager.getExtensions(); return new Promise((resolve, reject) => { @@ -68,7 +65,7 @@ export const openFileUploadDialog = async (options: FileUploadParam = {}) => { } const files = Array.from(target.files); - resolve(fileUploadHandler({ files, albumId, replaceAssetId: assetId })); + resolve(fileUploadHandler({ files, albumId })); }, { passive: true }, ); @@ -88,7 +85,6 @@ type FileUploadHandlerParams = Omit => { const extensions = uploadManager.getExtensions(); @@ -99,9 +95,7 @@ export const fileUploadHandler = async ({ const deviceAssetId = getDeviceAssetId(file); uploadAssetsStore.addItem({ id: deviceAssetId, file, albumId }); promises.push( - uploadExecutionQueue.addTask(() => - fileUploader({ assetFile: file, deviceAssetId, albumId, replaceAssetId, isLockedAssets }), - ), + uploadExecutionQueue.addTask(() => fileUploader({ assetFile: file, deviceAssetId, albumId, isLockedAssets })), ); } } @@ -127,7 +121,6 @@ async function fileUploader({ assetFile, deviceAssetId, albumId, - replaceAssetId, isLockedAssets = false, }: FileUploaderParams): Promise { const fileCreatedAt = new Date(assetFile.lastModified).toISOString(); @@ -183,27 +176,17 @@ async function fileUploader({ const queryParams = asQueryString(authManager.params); uploadAssetsStore.updateItem(deviceAssetId, { message: $t('asset_uploading') }); - if (replaceAssetId) { - const response = await uploadRequest({ - url: getBaseUrl() + getAssetOriginalPath(replaceAssetId) + (queryParams ? `?${queryParams}` : ''), - method: 'PUT', - data: formData, - onUploadProgress: (event) => uploadAssetsStore.updateProgress(deviceAssetId, event.loaded, event.total), - }); - responseData = response.data; - } else { - const response = await uploadRequest({ - url: getBaseUrl() + '/assets' + (queryParams ? `?${queryParams}` : ''), - data: formData, - onUploadProgress: (event) => uploadAssetsStore.updateProgress(deviceAssetId, event.loaded, event.total), - }); + const response = await uploadRequest({ + url: getBaseUrl() + '/assets' + (queryParams ? `?${queryParams}` : ''), + data: formData, + onUploadProgress: (event) => uploadAssetsStore.updateProgress(deviceAssetId, event.loaded, event.total), + }); - if (![200, 201].includes(response.status)) { - throw new Error($t('errors.unable_to_upload_file')); - } - - responseData = response.data; + if (![200, 201].includes(response.status)) { + throw new Error($t('errors.unable_to_upload_file')); } + + responseData = response.data; } if (responseData.status === AssetMediaStatus.Duplicate) { From 56e431226f6e0f4f02ff0a7e8222f481dcc6f21d Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 19 Nov 2025 09:52:40 -0600 Subject: [PATCH 105/300] feat: show OCR bounding box (#23717) * feat: ocr bounding box * bounding boxes * pr feedback * pr feedback * allow copy across text boxes * pr feedback --- i18n/en.json | 3 + web/src/lib/actions/zoom-image.ts | 25 +++- .../asset-viewer/asset-viewer.svelte | 17 ++- .../asset-viewer/detail-panel.svelte | 2 +- .../asset-viewer/ocr-bounding-box.svelte | 36 +++++ .../components/asset-viewer/ocr-button.svelte | 17 +++ .../asset-viewer/photo-viewer.svelte | 23 ++- web/src/lib/stores/ocr.svelte.ts | 44 ++++++ web/src/lib/utils/ocr-utils.ts | 131 ++++++++++++++++++ 9 files changed, 293 insertions(+), 5 deletions(-) create mode 100644 web/src/lib/components/asset-viewer/ocr-bounding-box.svelte create mode 100644 web/src/lib/components/asset-viewer/ocr-button.svelte create mode 100644 web/src/lib/stores/ocr.svelte.ts create mode 100644 web/src/lib/utils/ocr-utils.ts diff --git a/i18n/en.json b/i18n/en.json index 4e3f274340..276ca92891 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -1158,6 +1158,7 @@ "hide_named_person": "Hide person {name}", "hide_password": "Hide password", "hide_person": "Hide person", + "hide_text_recognition": "Hide text recognition", "hide_unnamed_people": "Hide unnamed people", "home_page_add_to_album_conflicts": "Added {added} assets to album {album}. {failed} assets are already in the album.", "home_page_add_to_album_err_local": "Can not add local assets to albums yet, skipping", @@ -1967,6 +1968,7 @@ "show_slideshow_transition": "Show slideshow transition", "show_supporter_badge": "Supporter badge", "show_supporter_badge_description": "Show a supporter badge", + "show_text_recognition": "Show text recognition", "show_text_search_menu": "Show text search menu", "shuffle": "Shuffle", "sidebar": "Sidebar", @@ -2037,6 +2039,7 @@ "tags": "Tags", "tap_to_run_job": "Tap to run job", "template": "Template", + "text_recognition": "Text recognition", "theme": "Theme", "theme_selection": "Theme selection", "theme_selection_description": "Automatically set the theme to light or dark based on your browser's system preference", diff --git a/web/src/lib/actions/zoom-image.ts b/web/src/lib/actions/zoom-image.ts index 29074fc7b0..e67d3e1928 100644 --- a/web/src/lib/actions/zoom-image.ts +++ b/web/src/lib/actions/zoom-image.ts @@ -2,7 +2,7 @@ import { photoZoomState } from '$lib/stores/zoom-image.store'; import { useZoomImageWheel } from '@zoom-image/svelte'; import { get } from 'svelte/store'; -export const zoomImageAction = (node: HTMLElement) => { +export const zoomImageAction = (node: HTMLElement, options?: { disabled?: boolean }) => { const { createZoomImage, zoomImageState, setZoomImageState } = useZoomImageWheel(); createZoomImage(node, { @@ -14,9 +14,32 @@ export const zoomImageAction = (node: HTMLElement) => { setZoomImageState(state); } + // Store original event handlers so we can prevent them when disabled + const wheelHandler = (event: WheelEvent) => { + if (options?.disabled) { + event.stopImmediatePropagation(); + } + }; + + const pointerDownHandler = (event: PointerEvent) => { + if (options?.disabled) { + event.stopImmediatePropagation(); + } + }; + + // Add handlers at capture phase with higher priority + node.addEventListener('wheel', wheelHandler, { capture: true }); + node.addEventListener('pointerdown', pointerDownHandler, { capture: true }); + const unsubscribes = [photoZoomState.subscribe(setZoomImageState), zoomImageState.subscribe(photoZoomState.set)]; + return { + update(newOptions?: { disabled?: boolean }) { + options = newOptions; + }, destroy() { + node.removeEventListener('wheel', wheelHandler, { capture: true }); + node.removeEventListener('pointerdown', pointerDownHandler, { capture: true }); for (const unsubscribe of unsubscribes) { unsubscribe(); } diff --git a/web/src/lib/components/asset-viewer/asset-viewer.svelte b/web/src/lib/components/asset-viewer/asset-viewer.svelte index e26c85ad07..0af27e8373 100644 --- a/web/src/lib/components/asset-viewer/asset-viewer.svelte +++ b/web/src/lib/components/asset-viewer/asset-viewer.svelte @@ -13,6 +13,7 @@ import type { TimelineAsset } from '$lib/managers/timeline-manager/types'; import { closeEditorCofirm } from '$lib/stores/asset-editor.store'; import { assetViewingStore } from '$lib/stores/asset-viewing.store'; + import { ocrManager } from '$lib/stores/ocr.svelte'; import { alwaysLoadOriginalVideo, isShowDetail } from '$lib/stores/preferences.store'; import { SlideshowNavigation, SlideshowState, slideshowStore } from '$lib/stores/slideshow.store'; import { user } from '$lib/stores/user.store'; @@ -44,6 +45,7 @@ import CropArea from './editor/crop-tool/crop-area.svelte'; import EditorPanel from './editor/editor-panel.svelte'; import ImagePanoramaViewer from './image-panorama-viewer.svelte'; + import OcrButton from './ocr-button.svelte'; import PhotoViewer from './photo-viewer.svelte'; import SlideshowBar from './slideshow-bar.svelte'; import VideoViewer from './video-wrapper-viewer.svelte'; @@ -392,9 +394,13 @@ handlePromiseError(activityManager.init(album.id, asset.id)); } }); + + let currentAssetId = $derived(asset.id); $effect(() => { - if (asset.id) { - handlePromiseError(handleGetAllAlbums()); + if (currentAssetId) { + untrack(() => handlePromiseError(handleGetAllAlbums())); + ocrManager.clear(); + handlePromiseError(ocrManager.getAssetOcr(currentAssetId)); } }); @@ -535,6 +541,7 @@ {playOriginalVideo} /> {/if} + {#if $slideshowState === SlideshowState.None && isShared && ((album && album.isActivityEnabled) || activityManager.commentCount > 0) && !activityManager.isLoading}
{/if} + + {#if $slideshowState === SlideshowState.None && asset.type === AssetTypeEnum.Image && !isShowEditor && ocrManager.hasOcrData} +
+ +
+ {/if} {/key} {/if}
diff --git a/web/src/lib/components/asset-viewer/detail-panel.svelte b/web/src/lib/components/asset-viewer/detail-panel.svelte index a9c447e498..2ee4496830 100644 --- a/web/src/lib/components/asset-viewer/detail-panel.svelte +++ b/web/src/lib/components/asset-viewer/detail-panel.svelte @@ -503,7 +503,7 @@ {/if} {#if albums.length > 0} -
+

{$t('appears_in')}

{#each albums as album (album.id)} diff --git a/web/src/lib/components/asset-viewer/ocr-bounding-box.svelte b/web/src/lib/components/asset-viewer/ocr-bounding-box.svelte new file mode 100644 index 0000000000..e64b674ac1 --- /dev/null +++ b/web/src/lib/components/asset-viewer/ocr-bounding-box.svelte @@ -0,0 +1,36 @@ + + +
+ +
+ + +
+ {ocrBox.text} +
+
diff --git a/web/src/lib/components/asset-viewer/ocr-button.svelte b/web/src/lib/components/asset-viewer/ocr-button.svelte new file mode 100644 index 0000000000..9f8966e64a --- /dev/null +++ b/web/src/lib/components/asset-viewer/ocr-button.svelte @@ -0,0 +1,17 @@ + + + ocrManager.toggleOcrBoundingBox()} +/> diff --git a/web/src/lib/components/asset-viewer/photo-viewer.svelte b/web/src/lib/components/asset-viewer/photo-viewer.svelte index e37773fca5..261f194d34 100644 --- a/web/src/lib/components/asset-viewer/photo-viewer.svelte +++ b/web/src/lib/components/asset-viewer/photo-viewer.svelte @@ -2,12 +2,14 @@ import { shortcuts } from '$lib/actions/shortcut'; import { zoomImageAction } from '$lib/actions/zoom-image'; import FaceEditor from '$lib/components/asset-viewer/face-editor/face-editor.svelte'; + import OcrBoundingBox from '$lib/components/asset-viewer/ocr-bounding-box.svelte'; import BrokenAsset from '$lib/components/assets/broken-asset.svelte'; import { assetViewerFadeDuration } from '$lib/constants'; import { castManager } from '$lib/managers/cast-manager.svelte'; import type { TimelineAsset } from '$lib/managers/timeline-manager/types'; import { photoViewerImgElement } from '$lib/stores/assets-store.svelte'; import { isFaceEditMode } from '$lib/stores/face-edit.svelte'; + import { ocrManager } from '$lib/stores/ocr.svelte'; import { boundingBoxesArray } from '$lib/stores/people.store'; import { alwaysLoadOriginalFile } from '$lib/stores/preferences.store'; import { SlideshowLook, SlideshowState, slideshowLookCssMapping, slideshowStore } from '$lib/stores/slideshow.store'; @@ -15,6 +17,7 @@ import { getAssetOriginalUrl, getAssetThumbnailUrl, handlePromiseError } from '$lib/utils'; import { canCopyImageToClipboard, copyImageToClipboard, isWebCompatibleImage } from '$lib/utils/asset-utils'; import { handleError } from '$lib/utils/handle-error'; + import { getOcrBoundingBoxes } from '$lib/utils/ocr-utils'; import { getBoundingBox } from '$lib/utils/people-utils'; import { cancelImageUrl } from '$lib/utils/sw-messaging'; import { getAltText } from '$lib/utils/thumbnail-util'; @@ -71,6 +74,14 @@ $boundingBoxesArray = []; }); + let ocrBoxes = $derived( + ocrManager.showOverlay && $photoViewerImgElement + ? getOcrBoundingBoxes(ocrManager.data, $photoZoomState, $photoViewerImgElement) + : [], + ); + + let isOcrActive = $derived(ocrManager.showOverlay); + const preload = (targetSize: AssetMediaSize | 'original', preloadAssets?: TimelineAsset[]) => { for (const preloadAsset of preloadAssets || []) { if (preloadAsset.isImage) { @@ -130,9 +141,15 @@ if ($photoZoomState.currentZoom > 1) { return; } + + if (ocrManager.showOverlay) { + return; + } + if (onNextAsset && event.detail.direction === 'left') { onNextAsset(); } + if (onPreviousAsset && event.detail.direction === 'right') { onPreviousAsset(); } @@ -235,7 +252,7 @@
{:else if !imageError}
{/each} + + {#each ocrBoxes as ocrBox (ocrBox.id)} + + {/each}
{#if isFaceEditMode.value} diff --git a/web/src/lib/stores/ocr.svelte.ts b/web/src/lib/stores/ocr.svelte.ts new file mode 100644 index 0000000000..4922f630ec --- /dev/null +++ b/web/src/lib/stores/ocr.svelte.ts @@ -0,0 +1,44 @@ +import { getAssetOcr } from '@immich/sdk'; + +export type OcrBoundingBox = { + id: string; + assetId: string; + x1: number; + y1: number; + x2: number; + y2: number; + x3: number; + y3: number; + x4: number; + y4: number; + boxScore: number; + textScore: number; + text: string; +}; + +class OcrManager { + #data = $state([]); + showOverlay = $state(false); + hasOcrData = $state(false); + + get data() { + return this.#data; + } + + async getAssetOcr(id: string) { + this.#data = await getAssetOcr({ id }); + this.hasOcrData = this.#data.length > 0; + } + + clear() { + this.#data = []; + this.showOverlay = false; + this.hasOcrData = false; + } + + toggleOcrBoundingBox() { + this.showOverlay = !this.showOverlay; + } +} + +export const ocrManager = new OcrManager(); diff --git a/web/src/lib/utils/ocr-utils.ts b/web/src/lib/utils/ocr-utils.ts new file mode 100644 index 0000000000..97364d06f5 --- /dev/null +++ b/web/src/lib/utils/ocr-utils.ts @@ -0,0 +1,131 @@ +import type { OcrBoundingBox } from '$lib/stores/ocr.svelte'; +import type { ZoomImageWheelState } from '@zoom-image/core'; + +const getContainedSize = (img: HTMLImageElement): { width: number; height: number } => { + const ratio = img.naturalWidth / img.naturalHeight; + let width = img.height * ratio; + let height = img.height; + if (width > img.width) { + width = img.width; + height = img.width / ratio; + } + return { width, height }; +}; + +export interface OcrBox { + id: string; + points: { x: number; y: number }[]; + text: string; + confidence: number; +} + +export interface BoundingBoxDimensions { + minX: number; + maxX: number; + minY: number; + maxY: number; + width: number; + height: number; + centerX: number; + centerY: number; + rotation: number; + skewX: number; + skewY: number; +} + +/** + * Calculate bounding box dimensions and properties from OCR points + * @param points - Array of 4 corner points of the bounding box + * @returns Dimensions, rotation, and skew values for the bounding box + */ +export const calculateBoundingBoxDimensions = (points: { x: number; y: number }[]): BoundingBoxDimensions => { + const [topLeft, topRight, bottomRight, bottomLeft] = points; + const minX = Math.min(...points.map(({ x }) => x)); + const maxX = Math.max(...points.map(({ x }) => x)); + const minY = Math.min(...points.map(({ y }) => y)); + const maxY = Math.max(...points.map(({ y }) => y)); + const width = maxX - minX; + const height = maxY - minY; + const centerX = (minX + maxX) / 2; + const centerY = (minY + maxY) / 2; + + // Calculate rotation angle from the bottom edge (bottomLeft to bottomRight) + const rotation = Math.atan2(bottomRight.y - bottomLeft.y, bottomRight.x - bottomLeft.x) * (180 / Math.PI); + + // Calculate skew angles to handle perspective distortion + // SkewX: compare left and right edges + const leftEdgeAngle = Math.atan2(bottomLeft.y - topLeft.y, bottomLeft.x - topLeft.x); + const rightEdgeAngle = Math.atan2(bottomRight.y - topRight.y, bottomRight.x - topRight.x); + const skewX = (rightEdgeAngle - leftEdgeAngle) * (180 / Math.PI); + + // SkewY: compare top and bottom edges + const topEdgeAngle = Math.atan2(topRight.y - topLeft.y, topRight.x - topLeft.x); + const bottomEdgeAngle = Math.atan2(bottomRight.y - bottomLeft.y, bottomRight.x - bottomLeft.x); + const skewY = (bottomEdgeAngle - topEdgeAngle) * (180 / Math.PI); + + return { + minX, + maxX, + minY, + maxY, + width, + height, + centerX, + centerY, + rotation, + skewX, + skewY, + }; +}; + +/** + * Convert normalized OCR coordinates to screen coordinates + * OCR coordinates are normalized (0-1) and represent the 4 corners of a rotated rectangle + */ +export const getOcrBoundingBoxes = ( + ocrData: OcrBoundingBox[], + zoom: ZoomImageWheelState, + photoViewer: HTMLImageElement | null, +): OcrBox[] => { + const boxes: OcrBox[] = []; + + if (photoViewer === null || !photoViewer.naturalWidth || !photoViewer.naturalHeight) { + return boxes; + } + + const clientHeight = photoViewer.clientHeight; + const clientWidth = photoViewer.clientWidth; + const { width, height } = getContainedSize(photoViewer); + + const imageWidth = photoViewer.naturalWidth; + const imageHeight = photoViewer.naturalHeight; + + for (const ocr of ocrData) { + // Convert normalized coordinates (0-1) to actual pixel positions + // OCR provides 4 corners of a potentially rotated rectangle + const points = [ + { x: ocr.x1, y: ocr.y1 }, + { x: ocr.x2, y: ocr.y2 }, + { x: ocr.x3, y: ocr.y3 }, + { x: ocr.x4, y: ocr.y4 }, + ].map((point) => ({ + x: + (width / imageWidth) * zoom.currentZoom * point.x * imageWidth + + ((clientWidth - width) / 2) * zoom.currentZoom + + zoom.currentPositionX, + y: + (height / imageHeight) * zoom.currentZoom * point.y * imageHeight + + ((clientHeight - height) / 2) * zoom.currentZoom + + zoom.currentPositionY, + })); + + boxes.push({ + id: ocr.id, + points, + text: ocr.text, + confidence: ocr.textScore, + }); + } + + return boxes; +}; From 8175b3b75b69f57d7a342e77a1e379ef725ccb7e Mon Sep 17 00:00:00 2001 From: bo0tzz Date: Wed, 19 Nov 2025 17:00:01 +0100 Subject: [PATCH 106/300] fix: allow adding new translations files (#23998) --- .github/workflows/weblate-lock.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/weblate-lock.yml b/.github/workflows/weblate-lock.yml index 1f0a7608d1..e37497b9bb 100644 --- a/.github/workflows/weblate-lock.yml +++ b/.github/workflows/weblate-lock.yml @@ -36,8 +36,7 @@ jobs: github-token: ${{ steps.token.outputs.token }} filters: | i18n: - - 'i18n/!(en)**\.json' - exclude-branches: 'chore/translations' + - modified: 'i18n/!(en)**\.json' skip-force-logic: 'true' enforce-lock: From 3856d4053c272ccfff980b798384b61d19dac31c Mon Sep 17 00:00:00 2001 From: "Weblate (bot)" Date: Wed, 19 Nov 2025 18:44:39 +0100 Subject: [PATCH 107/300] chore(web): update translations (#23449) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Translate-URL: https://hosted.weblate.org/projects/immich/immich/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/ar/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/be/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/bg/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/bi/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/ca/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/cs/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/da/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/de/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/es/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/et/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/fa/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/fi/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/fr/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/gl/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/he/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/hi/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/hr/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/id/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/it/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/ja/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/ko/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/lt/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/lv/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/mr/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/nb_NO/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/nl/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/pl/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/pt/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/pt_BR/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/ro/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/ru/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/sk/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/sl/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/sv/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/ta/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/te/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/th/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/tr/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/uk/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/vi/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/zh_Hant/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/zh_SIMPLIFIED/ Translation: Immich/immich Co-authored-by: 100daysummer Co-authored-by: Abhijeet Bonde Co-authored-by: AbuKareem Tuffaha Co-authored-by: Adam Uchmanowicz Co-authored-by: Adrian Jost Co-authored-by: Aitor-RM Co-authored-by: Alexander Lohnes Co-authored-by: Alexis-Loskoutoff Co-authored-by: Alma Hassan Co-authored-by: AndreiP28 Co-authored-by: Artur Koziara Co-authored-by: Bryan Saputra Co-authored-by: Carlo_Mava Co-authored-by: Cristian Florin Tănase Co-authored-by: Cristiano Fagundes Co-authored-by: Daniel Rieiro Co-authored-by: DevServs Co-authored-by: Fjuro Co-authored-by: Fred Co-authored-by: Hossein Fani Co-authored-by: Hurricane-32 Co-authored-by: Indrek Haav Co-authored-by: Ivan Dimitrov Co-authored-by: Jeppe Nellemann Co-authored-by: Jesús Jiménez Co-authored-by: Johannes Dorn Co-authored-by: Jordy H Co-authored-by: Jorge Tristan Co-authored-by: Jozef Gaal Co-authored-by: Juanma Sanchez Co-authored-by: Junghyuk Kwon Co-authored-by: Kai Heine Co-authored-by: Knight Hat Co-authored-by: Krissada Singhakachain <46844213+OmsinKrissada@users.noreply.github.com> Co-authored-by: Leigh van der merwe Co-authored-by: Leo Bottaro Co-authored-by: Luca Segato Co-authored-by: Lucas Jaksys Co-authored-by: Luís Nunes Co-authored-by: Macgyver Co-authored-by: Marc Casillas Co-authored-by: Marco Perrotta Co-authored-by: MatijaThe245th Co-authored-by: Matjaž T. Co-authored-by: Matteo D. Co-authored-by: Matteo De Carli Co-authored-by: Mees Frensel Co-authored-by: Melvin Snijders Co-authored-by: Mārtiņš Bruņenieks Co-authored-by: Parms Co-authored-by: Paul Co-authored-by: Petri Hämäläinen Co-authored-by: Philip Goto Co-authored-by: Pitoune Co-authored-by: Ponas Co-authored-by: PontusÖsterlindh Co-authored-by: Rasmus Sehlin Co-authored-by: Richard Gráčik Co-authored-by: Roi Gabay Co-authored-by: Runskrift Co-authored-by: Ryan Gleeson Co-authored-by: S M, Aravinth (A.) Co-authored-by: Sai Athulith Neela Co-authored-by: Sebastiano Co-authored-by: Sergey Katsubo Co-authored-by: Shawn Co-authored-by: Sylvain Pichon Co-authored-by: TV Box Co-authored-by: Tanishq Co-authored-by: Tatsuhiko Kono Co-authored-by: Tedy25879 Co-authored-by: Thanh Tùng Nguyễn Co-authored-by: Toine Rademacher Co-authored-by: Tomi Pöyskö Co-authored-by: User 123456789 Co-authored-by: Vegard Fladby Co-authored-by: anton garcias Co-authored-by: eav5jhl0 Co-authored-by: gablilli Co-authored-by: kiwinho Co-authored-by: pyccl Co-authored-by: r64 Co-authored-by: ruka-64 <202770393+ruka-64@users.noreply.github.com> Co-authored-by: sam ng Co-authored-by: sh4tteredd Co-authored-by: shiuh67 Co-authored-by: swever Co-authored-by: thehijacker Co-authored-by: ti-guru Co-authored-by: ume Co-authored-by: waclaw66 Co-authored-by: Максим Горпиніч --- i18n/af.json | 2 - i18n/ar.json | 65 ++++- i18n/az.json | 2 - i18n/be.json | 5 +- i18n/bg.json | 59 +++- i18n/bi.json | 20 +- i18n/bn.json | 2 - i18n/ca.json | 72 ++++- i18n/cs.json | 52 +++- i18n/cv.json | 1 - i18n/da.json | 83 ++++-- i18n/de.json | 31 +- i18n/el.json | 8 - i18n/es.json | 62 +++- i18n/et.json | 53 +++- i18n/eu.json | 1 - i18n/fa.json | 8 +- i18n/fi.json | 21 +- i18n/fil.json | 1 - i18n/fr.json | 52 +++- i18n/gl.json | 77 +++-- i18n/he.json | 74 ++++- i18n/hi.json | 615 ++++++++++++++++++++++++++++++++++++++-- i18n/hr.json | 337 +++++++++++----------- i18n/hu.json | 8 - i18n/id.json | 56 +++- i18n/it.json | 40 ++- i18n/ja.json | 96 +++++-- i18n/ka.json | 2 - i18n/kn.json | 1 - i18n/ko.json | 20 +- i18n/lt.json | 18 +- i18n/lv.json | 6 +- i18n/mk.json | 2 - i18n/ml.json | 8 - i18n/mn.json | 1 - i18n/mr.json | 315 +++++++++++++++++++- i18n/ms.json | 2 - i18n/nb_NO.json | 39 ++- i18n/nl.json | 60 +++- i18n/nn.json | 2 - i18n/pa.json | 1 - i18n/pl.json | 48 +++- i18n/pt.json | 98 ++++--- i18n/pt_BR.json | 97 +++++-- i18n/ro.json | 27 +- i18n/ru.json | 84 ++++-- i18n/sk.json | 48 +++- i18n/sl.json | 51 +++- i18n/sq.json | 1 - i18n/sr_Cyrl.json | 8 - i18n/sr_Latn.json | 8 - i18n/sv.json | 38 ++- i18n/ta.json | 22 +- i18n/te.json | 12 +- i18n/th.json | 39 ++- i18n/tr.json | 102 +++++-- i18n/uk.json | 76 ++++- i18n/ur.json | 1 - i18n/vi.json | 46 ++- i18n/zh_Hant.json | 61 +++- i18n/zh_SIMPLIFIED.json | 50 +++- 62 files changed, 2546 insertions(+), 751 deletions(-) diff --git a/i18n/af.json b/i18n/af.json index 68e020b76e..9d61e72c04 100644 --- a/i18n/af.json +++ b/i18n/af.json @@ -17,7 +17,6 @@ "add_birthday": "Voeg 'n verjaarsdag by", "add_endpoint": "Voeg Koppelvlakpunt by", "add_exclusion_pattern": "Voeg uitsgluitingspatrone by", - "add_import_path": "Voeg invoerpad by", "add_location": "Voeg ligging by", "add_more_users": "Voeg meer gebruikers by", "add_partner": "Voeg vennoot by", @@ -101,7 +100,6 @@ "job_status": "Werkstatus", "library_created": "Biblioteek geskep: {library}", "library_deleted": "Biblioteek verwyder", - "library_import_path_description": "Spesifiseer 'n leer om in te neem. Hierdie leer, en al die sub leers, gaan deursoek word vir prente en videos.", "library_scanning": "Periodieke Soek", "library_scanning_description": "Stel periodieke deursoek van biblioteek in", "library_scanning_enable_description": "Aktiveer periodieke biblioteekskandering", diff --git a/i18n/ar.json b/i18n/ar.json index 229fa316f7..933ba67871 100644 --- a/i18n/ar.json +++ b/i18n/ar.json @@ -17,7 +17,6 @@ "add_birthday": "أضف تاريخ الميلاد", "add_endpoint": "اضف نقطة نهاية", "add_exclusion_pattern": "إضافة نمط إستثناء", - "add_import_path": "إضافة مسار الإستيراد", "add_location": "إضافة موقع", "add_more_users": "إضافة مستخدمين آخرين", "add_partner": "أضف شريكًا", @@ -112,7 +111,6 @@ "jobs_failed": "{jobCount, plural, other {# فشلت}}", "library_created": "تم إنشاء المكتبة: {library}", "library_deleted": "تم حذف المكتبة", - "library_import_path_description": "حدد مجلدًا للاستيراد. سيتم فحص هذا المجلد، بما في ذلك المجلدات الفرعية، بحثًا عن الصور ومقاطع الفيديو.", "library_scanning": "المسح الدوري", "library_scanning_description": "إعداد مسح المكتبة الدوري", "library_scanning_enable_description": "تفعيل مسح المكتبة الدوري", @@ -154,6 +152,18 @@ "machine_learning_min_detection_score_description": "الحد الأدنى لنقطة الثقة لاكتشاف الوجه، تتراوح من 0 إلى 1. القيم الأقل ستكشف عن المزيد من الوجوه ولكن قد تؤدي إلى نتائج إيجابية خاطئة.", "machine_learning_min_recognized_faces": "الحد الأدنى لعدد الوجوه المتعرف عليها", "machine_learning_min_recognized_faces_description": "الحد الأدنى لعدد الوجوه المتعرف عليها لإنشاء شخص. زيادة هذا الرقم يجعل التعرف على الوجوه أكثر دقة على حساب زيادة احتمال عدم تعيين الوجه لشخص ما.", + "machine_learning_ocr": "التعرف البصري على الحروف", + "machine_learning_ocr_description": "استخدم التعلم الآلي للتعرف على النصوص في الصور", + "machine_learning_ocr_enabled": "تفعيل التعرف البصري على الحروف", + "machine_learning_ocr_enabled_description": "في حال تعطيل هذه الميزة، لن تخضع الصور لعملية التعرف على النصوص.", + "machine_learning_ocr_max_resolution": "أقصى دقة", + "machine_learning_ocr_max_resolution_description": "سيتم تغيير حجم المعاينات التي تتجاوز هذه الدقة مع الحفاظ على نسبة العرض إلى الارتفاع. القيم الأعلى توفر دقة أكبر، ولكنها تستغرق وقتًا أطول للمعالجة وتستهلك المزيد من الذاكرة.", + "machine_learning_ocr_min_detection_score": "الحد الأدنى لدرجة الكشف", + "machine_learning_ocr_min_detection_score_description": "لحد الأدنى لدرجة الثقة المطلوبة لاكتشاف النص، وتتراوح قيمتها من 0 إلى 1. ستؤدي القيم الأقل إلى اكتشاف المزيد من النصوص ولكنها قد تؤدي إلى نتائج إيجابية خاطئة.", + "machine_learning_ocr_min_recognition_score": "الحد الأدنى لدرجة التعرّف", + "machine_learning_ocr_min_score_recognition_description": "الحد الأدنى لدرجة الثقة المطلوبة للنصوص المكتشفة ليتم التعرف عليها، وتتراوح من 0 إلى 1. ستؤدي القيم الأقل إلى التعرف على المزيد من النصوص ولكنها قد تؤدي إلى نتائج إيجابية خاطئة.", + "machine_learning_ocr_model": "نموذج التعرف البصري على الحروف", + "machine_learning_ocr_model_description": "تتميز نماذج الخوادم بدقة أكبر من نماذج الأجهزة المحمولة، ولكنها تستغرق وقتًا أطول في المعالجة وتستهلك ذاكرة أكبر.", "machine_learning_settings": "إعدادات التعلم الآلي", "machine_learning_settings_description": "إدارة ميزات وإعدادات التعلم الآلي", "machine_learning_smart_search": "البحث الذكي", @@ -211,6 +221,8 @@ "notification_email_ignore_certificate_errors_description": "تجاهل أخطاء التحقق من صحة شهادة TLS (غير مستحسن)", "notification_email_password_description": "كلمة المرور المستخدمة للمصادقة مع خادم البريد الإلكتروني", "notification_email_port_description": "منفذ خادم البريد الإلكتروني (مثلاً 25، 465، أو 587)", + "notification_email_secure": "بروتوكول نقل البريد البسيط الآمن SMTPS", + "notification_email_secure_description": "استخدم بروتوكول SMTPS (بروتوكول SMTP عبر TLS)", "notification_email_sent_test_email_button": "إرسال بريد إلكتروني تجريبي وحفظ التعديلات", "notification_email_setting_description": "إعدادات إرسال إشعارات البريد الإلكتروني", "notification_email_test_email": "إرسال بريد تجريبي", @@ -243,6 +255,7 @@ "oauth_storage_quota_default_description": "الحصة بالجيجابايت التي سيتم استخدامها عندما لا يتم توفير مطالبة.", "oauth_timeout": "نفاذ وقت الطلب", "oauth_timeout_description": "نفاذ وقت الطلب بالميلي ثانية", + "ocr_job_description": "استخدم التعلم الآلي للتعرف على النصوص في الصور", "password_enable_description": "تسجيل الدخول باستخدام البريد الكتروني وكلمة المرور", "password_settings": "تسجيل الدخول بكلمة المرور", "password_settings_description": "إدارة تسجيل الدخول بكلمة المرور", @@ -402,11 +415,11 @@ "advanced_settings_prefer_remote_subtitle": "تكون بعض الأجهزة بطيئة للغاية في تحميل الصور المصغرة من الأصول المحلية. قم بتفعيل هذا الخيار لتحميل الصور البعيدة بدلاً من ذلك.", "advanced_settings_prefer_remote_title": "تفضل الصور البعيدة", "advanced_settings_proxy_headers_subtitle": "عرف عناوين الوكيل التي يستخدمها Immich لارسال كل طلب شبكي", - "advanced_settings_proxy_headers_title": "عناوين الوكيل", + "advanced_settings_proxy_headers_title": "عناوين الوكيل المخصصة [تجريبية]", "advanced_settings_readonly_mode_subtitle": "تتيح هذه الميزة وضع العرض فقط، حيث يمكن للمستخدم معاينة الصور فقط، بينما يتم تعطيل جميع الخيارات الأخرى مثل تحديد عدة صور، أو مشاركتها، أو بثها، أو حذفها. يمكن تفعيل/تعطيل وضع العرض فقط من خلال صورة المستخدم في الشاشة الرئيسية", "advanced_settings_readonly_mode_title": "وضع القراءة فقط", "advanced_settings_self_signed_ssl_subtitle": "تخطي التحقق من شهادة SSL لخادم النقطة النهائي. مكلوب للشهادات الموقعة ذاتيا.", - "advanced_settings_self_signed_ssl_title": "السماح بشهادات SSL الموقعة ذاتيًا", + "advanced_settings_self_signed_ssl_title": "السماح بشهادات SSL الموقعة ذاتيًا [تجريبية]", "advanced_settings_sync_remote_deletions_subtitle": "حذف او استعادة تلقائي للاصول على هذا الجهاز عند تنفيذ العملية على الويب", "advanced_settings_sync_remote_deletions_title": "مزامنة عمليات الحذف عن بعد [تجريبي]", "advanced_settings_tile_subtitle": "إعدادات المستخدم المتقدمة", @@ -466,10 +479,14 @@ "api_key_description": "سيتم عرض هذه القيمة مرة واحدة فقط. يرجى التأكد من نسخها قبل إغلاق النافذة.", "api_key_empty": "يجب ألا يكون اسم مفتاح API فارغًا", "api_keys": "مفاتيح API", + "app_architecture_variant": "متغير (الهندسة المعمارية)", "app_bar_signout_dialog_content": "هل أنت متأكد أنك تريد تسجيل الخروج؟", "app_bar_signout_dialog_ok": "نعم", "app_bar_signout_dialog_title": "خروج", + "app_download_links": "روابط تحميل التطبيق", "app_settings": "إعدادات التطبيق", + "app_stores": "متاجر التطبيقات", + "app_update_available": "تحديث التطبيق متاح", "appears_in": "يظهر في", "apply_count": "تطبيق ({count, number})", "archive": "الأرشيف", @@ -553,6 +570,7 @@ "backup_albums_sync": "مزامنة ألبومات النسخ الاحتياطي", "backup_all": "الجميع", "backup_background_service_backup_failed_message": "فشل في النسخ الاحتياطي للأصول. جارٍ إعادة المحاولة…", + "backup_background_service_complete_notification": "تم الانتهاء من النسخ الاحتياطي للأصول", "backup_background_service_connection_failed_message": "فشل في الاتصال بالخادم. جارٍ إعادة المحاولة…", "backup_background_service_current_upload_notification": "تحميل {filename}", "backup_background_service_default_notification": "التحقق من الأصول الجديدة…", @@ -662,6 +680,8 @@ "change_password_description": "هذه إما هي المرة الأولى التي تقوم فيها بتسجيل الدخول إلى النظام أو أنه تم تقديم طلب لتغيير كلمة المرور الخاصة بك. الرجاء إدخال كلمة المرور الجديدة أدناه.", "change_password_form_confirm_password": "تأكيد كلمة المرور", "change_password_form_description": "مرحبًا {name}،\n\nاما ان تكون هذه هي المرة الأولى التي تقوم فيها بالتسجيل في النظام أو تم تقديم طلب لتغيير كلمة المرور الخاصة بك. الرجاء إدخال كلمة المرور الجديدة أدناه.", + "change_password_form_log_out": "تسجيل الخروج من جميع الأجهزة الأخرى", + "change_password_form_log_out_description": "يُنصح بتسجيل الخروج من جميع الأجهزة الأخرى", "change_password_form_new_password": "كلمة المرور الجديدة", "change_password_form_password_mismatch": "كلمة المرور غير مطابقة", "change_password_form_reenter_new_password": "أعد إدخال كلمة مرور جديدة", @@ -689,7 +709,7 @@ "client_cert_invalid_msg": "ملف شهادة عميل غير صالحة او كلمة سر غير صحيحة", "client_cert_remove_msg": "تم ازالة شهادة العميل", "client_cert_subtitle": "يدعم صيغ PKCS12 (.p12, .pfx)فقط. استيراد/ازالة الشهادات متاح فقط قبل تسجيل الدخول", - "client_cert_title": "شهادة مستخدم SSL", + "client_cert_title": "شهادة مستخدم SSL [تجريبية]", "clockwise": "باتجاه عقارب الساعة", "close": "إغلاق", "collapse": "طي", @@ -739,6 +759,7 @@ "create": "انشاء", "create_album": "إنشاء ألبوم", "create_album_page_untitled": "بدون اسم", + "create_api_key": "إنشاء مفتاح API", "create_library": "إنشاء مكتبة", "create_link": "إنشاء رابط", "create_link_to_share": "إنشاء رابط للمشاركة", @@ -768,6 +789,7 @@ "daily_title_text_date_year": "E ، MMM DD ، yyyy", "dark": "معتم", "dark_theme": "تبديل المظهر الداكن", + "date": "تاريخ", "date_after": "التارخ بعد", "date_and_time": "التاريخ و الوقت", "date_before": "التاريخ قبل", @@ -870,8 +892,6 @@ "edit_description_prompt": "الرجاء اختيار وصف جديد:", "edit_exclusion_pattern": "تعديل نمط الاستبعاد", "edit_faces": "تعديل الوجوه", - "edit_import_path": "تعديل مسار الاستيراد", - "edit_import_paths": "تعديل مسارات الاستيراد", "edit_key": "تعديل المفتاح", "edit_link": "تغيير الرابط", "edit_location": "تعديل الموقع", @@ -943,7 +963,6 @@ "failed_to_stack_assets": "فشل في تكديس المحتويات", "failed_to_unstack_assets": "فشل في فصل المحتويات", "failed_to_update_notification_status": "فشل في تحديث حالة الإشعار", - "import_path_already_exists": "مسار الاستيراد هذا موجود مسبقًا.", "incorrect_email_or_password": "بريد أو كلمة مرور غير صحيحة", "paths_validation_failed": "فشل في التحقق من {paths, plural, one {# مسار} other {# مسارات}}", "profile_picture_transparent_pixels": "لا يمكن أن تحتوي صور الملف الشخصي على أجزاء/بكسلات شفافة. يرجى التكبير و/أو تحريك الصورة.", @@ -953,7 +972,6 @@ "unable_to_add_assets_to_shared_link": "تعذر إضافة المحتويات إلى الرابط المشترك", "unable_to_add_comment": "تعذر إضافة التعليق", "unable_to_add_exclusion_pattern": "تعذر إضافة نمط الإستبعاد", - "unable_to_add_import_path": "تعذر إضافة مسار الإستيراد", "unable_to_add_partners": "تعذر إضافة الشركاء", "unable_to_add_remove_archive": "تعذر {archived, select, true {إزالة المحتوى من} other {إضافة المحتوى إلى}} الأرشيف", "unable_to_add_remove_favorites": "تعذر {favorite, select, true {إضافة المحتوى إلى} other {إزالة المحتوى من}} المفضلة", @@ -976,12 +994,10 @@ "unable_to_delete_asset": "غير قادر على حذف المحتوى", "unable_to_delete_assets": "حدث خطأ أثناء حذف المحتويات", "unable_to_delete_exclusion_pattern": "غير قادر على حذف نمط الاستبعاد", - "unable_to_delete_import_path": "غير قادر على حذف مسار الاستيراد", "unable_to_delete_shared_link": "غير قادر على حذف الرابط المشترك", "unable_to_delete_user": "غير قادر على حذف المستخدم", "unable_to_download_files": "غير قادر على تنزيل الملفات", "unable_to_edit_exclusion_pattern": "غير قادر على تعديل نمط الاستبعاد", - "unable_to_edit_import_path": "غير قادر على تحرير مسار الاستيراد", "unable_to_empty_trash": "غير قادر على إفراغ سلة المهملات", "unable_to_enter_fullscreen": "غير قادر على الدخول إلى وضع ملء الشاشة", "unable_to_exit_fullscreen": "غير قادر على الخروج من وضع ملء الشاشة", @@ -1037,6 +1053,7 @@ "exif_bottom_sheet_description_error": "خطأ في تحديث الوصف", "exif_bottom_sheet_details": "تفاصيل", "exif_bottom_sheet_location": "موقع", + "exif_bottom_sheet_no_description": "لا يوجد وصف", "exif_bottom_sheet_people": "الناس", "exif_bottom_sheet_person_add_person": "اضف اسما", "exit_slideshow": "خروج من العرض التقديمي", @@ -1075,6 +1092,7 @@ "features_setting_description": "إدارة ميزات التطبيق", "file_name": "إسم الملف", "file_name_or_extension": "اسم الملف أو امتداده", + "file_size": "حجم الملف", "filename": "اسم الملف", "filetype": "نوع الملف", "filter": "تصفية", @@ -1114,7 +1132,7 @@ "hash_asset": "عمل Hash للأصل (للملف)", "hashed_assets": "أصول (ملفات) تم عمل Hash لها", "hashing": "يتم عمل Hash", - "header_settings_add_header_tip": "اضاف راس", + "header_settings_add_header_tip": "إضافة رأس الصفحة", "header_settings_field_validator_msg": "القيمة لا يمكن ان تكون فارغة", "header_settings_header_name_input": "اسم الرأس", "header_settings_header_value_input": "قيمة الرأس", @@ -1238,6 +1256,7 @@ "local_media_summary": "ملخص الملفات المحلية", "local_network": "شبكة محلية", "local_network_sheet_info": "سيتصل التطبيق بالخادم من خلال عنوان URL هذا عند استخدام شبكة Wi-Fi المحددة", + "location": "موقع", "location_permission": "اذن الموقع", "location_permission_content": "من أجل استخدام ميزة التبديل التلقائي، يحتاج Immich إلى إذن موقع دقيق حتى يتمكن من قراءة اسم شبكة Wi-Fi الحالية", "location_picker_choose_on_map": "اختر على الخريطة", @@ -1342,6 +1361,8 @@ "minute": "دقيقة", "minutes": "دقائق", "missing": "المفقودة", + "mobile_app": "تطبيق الجوال", + "mobile_app_download_onboarding_note": "قم بتنزيل التطبيق المصاحب للهاتف المحمول باستخدام الخيارات التالية", "model": "نموذج", "month": "شهر", "monthly_title_text_date_format": "ط ط ط", @@ -1360,6 +1381,8 @@ "my_albums": "ألبوماتي", "name": "الاسم", "name_or_nickname": "الاسم أو اللقب", + "navigate": "التنقل", + "navigate_to_time": "انتقل إلى الوقت", "network_requirement_photos_upload": "استخدام بيانات الهاتف المحمول لعمل نسخة احتياطية للصور", "network_requirement_videos_upload": "استخدام بيانات الهاتف المحمول لعمل نسخة احتياطية لمقاطع الفيديو", "network_requirements": "متطلبات الشبكة", @@ -1369,6 +1392,7 @@ "never": "أبداً", "new_album": "البوم جديد", "new_api_key": "مفتاح API جديد", + "new_date_range": "نطاق تاريخ جديد", "new_password": "كلمة المرور الجديدة", "new_person": "شخص جديد", "new_pin_code": "رمز PIN الجديد", @@ -1419,6 +1443,9 @@ "notifications": "إشعارات", "notifications_setting_description": "إدارة الإشعارات", "oauth": "OAuth", + "obtainium_configurator": "مُهيئ Obtainium", + "obtainium_configurator_instructions": "استخدم Obtainium لتثبيت تطبيق Android وتحديثه مباشرةً من صفحة إصدارات Immich على GitHub. أنشئ مفتاح API واختر الإصدار المناسب لإنشاء رابط تهيئة Obtainium الخاص بك", + "ocr": "التعرف البصري على الحروف", "official_immich_resources": "الموارد الرسمية لشركة Immich", "offline": "غير متصل", "offset": "ازاحة", @@ -1523,6 +1550,9 @@ "play_memories": "تشغيل الذكريات", "play_motion_photo": "تشغيل الصور المتحركة", "play_or_pause_video": "تشغيل الفيديو أو إيقافه مؤقتًا", + "play_original_video": "تشغيل الفيديو الأصلي", + "play_original_video_setting_description": "تفضيل تشغيل مقاطع الفيديو الأصلية بدلاً من مقاطع الفيديو المحولة. إذا لم يكن الملف الأصلي متوافقًا، فقد لا يتم تشغيله بشكل صحيح.", + "play_transcoded_video": "تشغيل الفيديو المُعاد ترميزه", "please_auth_to_access": "الرجاء القيام بالمصادقة للوصول", "port": "المنفذ", "preferences_settings_subtitle": "ادارة تفضيلات التطبيق", @@ -1659,6 +1689,7 @@ "reset_sqlite_confirmation": "هل أنت متأكد من رغبتك في إعادة ضبط قاعدة بيانات SQLite؟ ستحتاج إلى تسجيل الخروج ثم تسجيل الدخول مرة أخرى لإعادة مزامنة البيانات", "reset_sqlite_success": "تم إعادة تعيين قاعدة بيانات SQLite بنجاح", "reset_to_default": "إعادة التعيين إلى الافتراضي", + "resolution": "دقة", "resolve_duplicates": "معالجة النسخ المكررة", "resolved_all_duplicates": "تم حل جميع التكرارات", "restore": "الاستعاده من سلة المهملات", @@ -1677,6 +1708,7 @@ "running": "قيد التشغيل", "save": "حفظ", "save_to_gallery": "حفظ الى المعرض", + "saved": "تم الحفظ", "saved_api_key": "تم حفظ مفتاح الـ API", "saved_profile": "تم حفظ الملف", "saved_settings": "تم حفظ الإعدادات", @@ -1693,6 +1725,9 @@ "search_by_description_example": "يوم المشي لمسافات طويلة في سابا", "search_by_filename": "البحث بإسم الملف أو نوعه", "search_by_filename_example": "كـ IMG_1234.JPG أو PNG", + "search_by_ocr": "البحث عن طريق التعرف البصري على الحروف", + "search_by_ocr_example": "لاتيه", + "search_camera_lens_model": "بحث نموذج العدسة...", "search_camera_make": "البحث حسب الشركة المصنعة للكاميرا...", "search_camera_model": "البحث حسب موديل الكاميرا...", "search_city": "البحث حسب المدينة...", @@ -1709,6 +1744,7 @@ "search_filter_location_title": "اختر الموقع", "search_filter_media_type": "نوع الوسائط", "search_filter_media_type_title": "اختر نوع الوسائط", + "search_filter_ocr": "البحث عن طريق التعرف البصري على الحروف", "search_filter_people_title": "اختر الاشخاص", "search_for": "البحث عن", "search_for_existing_person": "البحث عن شخص موجود", @@ -1771,6 +1807,7 @@ "server_online": "الخادم متصل", "server_privacy": "خصوصية الخادم", "server_stats": "إحصائيات الخادم", + "server_update_available": "تحديث الخادم متاح", "server_version": "إصدار الخادم", "set": "‏تحديد", "set_as_album_cover": "تحديد كغلاف للألبوم", @@ -1799,6 +1836,8 @@ "setting_notifications_subtitle": "اضبط تفضيلات الإخطار", "setting_notifications_total_progress_subtitle": "التقدم التحميل العام (تم القيام به/إجمالي الأصول)", "setting_notifications_total_progress_title": "إظهار النسخ الاحتياطي الخلفية التقدم المحرز", + "setting_video_viewer_auto_play_subtitle": "بدء تشغيل مقاطع الفيديو تلقائيًا عند فتحها", + "setting_video_viewer_auto_play_title": "تشغيل الفيديوهات تلقائيًا", "setting_video_viewer_looping_title": "تكرار مقطع فيديو تلقائيًا", "setting_video_viewer_original_video_subtitle": "عند بث فيديو من الخادم، شغّل النسخة الأصلية حتى مع توفر ترميز بديل. قد يؤدي ذلك إلى تقطيع اثناء العرض . تُشغّل الفيديوهات المتوفرة محليًا بجودة أصلية بغض النظر عن هذا الإعداد.", "setting_video_viewer_original_video_title": "اجبار عرض الفديو الاصلي", @@ -1978,6 +2017,7 @@ "theme_setting_three_stage_loading_title": "تمكين تحميل ثلاث مراحل", "they_will_be_merged_together": "سيتم دمجهم معًا", "third_party_resources": "موارد الطرف الثالث", + "time": "وقت", "time_based_memories": "ذكريات استنادًا للوقت", "timeline": "الخط الزمني", "timezone": "المنطقة الزمنية", @@ -2010,6 +2050,7 @@ "troubleshoot": "استكشاف المشاكل", "type": "النوع", "unable_to_change_pin_code": "تفيير رمز PIN غير ممكن", + "unable_to_check_version": "تعذر التحقق من إصدار التطبيق أو الخادم", "unable_to_setup_pin_code": "انشاء رمز PIN غير ممكن", "unarchive": "أخرج من الأرشيف", "unarchive_action_prompt": "{count} ازيل من الارشيف", diff --git a/i18n/az.json b/i18n/az.json index 53e7f55db6..d08d76ed46 100644 --- a/i18n/az.json +++ b/i18n/az.json @@ -17,7 +17,6 @@ "add_birthday": "Doğum günü əlavə et", "add_endpoint": "Son nöqtə əlavə et", "add_exclusion_pattern": "Çıxarma nümunəsi əlavə et", - "add_import_path": "İdxal yolu əlavə et", "add_location": "Məkan əlavə et", "add_more_users": "Daha çox istifadəçi əlavə et", "add_partner": "Partnyor əlavə et", @@ -85,7 +84,6 @@ "jobs_failed": "{jobCount, plural, other {# uğursuz}}", "library_created": "{library} kitabxanası yaradıldı", "library_deleted": "Kitabxana silindi", - "library_import_path_description": "İdxal olunacaq qovluöu seçin. Bu qovluq, alt qovluqlar daxil olmaqla şəkil və videolar üçün skan ediləcəkdir.", "library_scanning": "Periodik skan", "library_scanning_description": "Periodik kitabxana skanını confiqurasiya et", "library_scanning_enable_description": "Periodik kitabxana skanını aktivləşdir", diff --git a/i18n/be.json b/i18n/be.json index a8bd54b400..3a871c6728 100644 --- a/i18n/be.json +++ b/i18n/be.json @@ -17,7 +17,6 @@ "add_birthday": "Дадаць дзень нараджэння", "add_endpoint": "Дадаць кропку доступу", "add_exclusion_pattern": "Дадаць шаблон выключэння", - "add_import_path": "Дадаць шлях імпарту", "add_location": "Дадайце месца", "add_more_users": "Дадаць больш карыстальнікаў", "add_partner": "Дадаць партнёра", @@ -318,8 +317,6 @@ "edit_description": "Рэдагаваць апісанне", "edit_description_prompt": "Выберыце новае апісанне:", "edit_faces": "Рэдагаваць твары", - "edit_import_path": "Рэдагаваць шлях імпарту", - "edit_import_paths": "Рэдагаваць шляхі імпарту", "edit_key": "Рэдагаваць ключ", "edit_link": "Рэдагаваць спасылку", "edit_location": "Рэдагаваць месцазнаходжанне", @@ -398,6 +395,8 @@ "partner_list_user_photos": "Фота карыстальніка {user}", "pause": "Прыпыніць", "people": "Людзі", + "permanent_deletion_warning": "Папярэджанне аб канчатковым выдаленні", + "permanent_deletion_warning_setting_description": "Паказаць папярэджанне пры канчатковым выдаленні рэсурсаў", "permission_onboarding_back": "Назад", "permission_onboarding_continue_anyway": "Усё адно працягнуць", "photos": "Фота", diff --git a/i18n/bg.json b/i18n/bg.json index a59cc4d67d..651917e1b0 100644 --- a/i18n/bg.json +++ b/i18n/bg.json @@ -17,7 +17,6 @@ "add_birthday": "Добави дата на раждане", "add_endpoint": "Добави крайна точка", "add_exclusion_pattern": "Добави модел за изключване", - "add_import_path": "Добави път за импортиране", "add_location": "Дoбави местоположение", "add_more_users": "Добави още потребители", "add_partner": "Добави партньор", @@ -32,6 +31,7 @@ "add_to_album_toggle": "Сменете избора за {album}", "add_to_albums": "Добавяне в албуми", "add_to_albums_count": "Добавяне в албуми ({count})", + "add_to_bottom_bar": "Добави към", "add_to_shared_album": "Добави към споделен албум", "add_upload_to_stack": "Добави качените в група", "add_url": "Добави URL", @@ -112,7 +112,6 @@ "jobs_failed": "{jobCount, plural, other {# неуспешни}}", "library_created": "Създадена библиотека: {library}", "library_deleted": "Библиотека е изтрита", - "library_import_path_description": "Посочете папка за импортиране. Тази папка, включително подпапките, ще бъдат сканирани за изображения и видеоклипове.", "library_scanning": "Периодично сканиране", "library_scanning_description": "Конфигурирай периодично сканиране на библиотеката", "library_scanning_enable_description": "Включване на периодичното сканиране на библиотеката", @@ -151,9 +150,21 @@ "machine_learning_max_recognition_distance": "Максимално разстояние за разпознаване", "machine_learning_max_recognition_distance_description": "Максимално разстояние между две лица, за да се считат за едно и също лице, в диапазона 0-2. Намаляването му може да предотврати определянето на две лица като едно и също лице, а увеличаването му може да предотврати определянето на едно и също лице като две различни лица. Имайте предвид, че е по-лесно да се слеят две лица, отколкото да се раздели едно лице на две, така че по възможност изберете по-ниска стойност.", "machine_learning_min_detection_score": "Минимална оценка за откриване", - "machine_learning_min_detection_score_description": "Минимална оценка на доверието, за да бъде считано лице като открито - от 0 до 1. По-ниските стойности ще открият повече лица, но може да доведат до фалшиви положителни резултати.", + "machine_learning_min_detection_score_description": "Минимална оценка на доверие, за да бъде считано лице като открито - от 0 до 1. По-ниските стойности ще открият повече лица, но може да доведат до фалшиви положителни резултати.", "machine_learning_min_recognized_faces": "Минимум разпознати лица", "machine_learning_min_recognized_faces_description": "Минималният брой разпознати лица, необходими за създаването на лице. Увеличаването му прави разпознаването на лица по-прецизно за сметка на увеличаването на вероятността дадено лице да не бъде причислено към лице.", + "machine_learning_ocr": "Разпознаване на текст", + "machine_learning_ocr_description": "Използвайте машинно обучение за разпознаване на текст в изображенията", + "machine_learning_ocr_enabled": "Включи разпознаване на текст", + "machine_learning_ocr_enabled_description": "Ако е забранено, няма да се прави разпознаване на текст в изображенията.", + "machine_learning_ocr_max_resolution": "Максимална резолюция", + "machine_learning_ocr_max_resolution_description": "Изображения с резолюция над зададената ще бъдат преоразмерени при запазване на пропорцията. Голяма стойност позволява по-прецизно разпознаване, но обработката използва повече време и повече памет.", + "machine_learning_ocr_min_detection_score": "Минимална оценка за откриванe", + "machine_learning_ocr_min_detection_score_description": "Минималната оценка на доверие за откриване на текст може да бъде между 0 и 1. По-ниска стойност ще открива повече текст, но може да доведе до грешни резултати.", + "machine_learning_ocr_min_recognition_score": "Минимална оценкa за откриване", + "machine_learning_ocr_min_score_recognition_description": "Минимална оценка на доверие, за да бъде считан текст като открит - от 0 до 1. По-ниските стойности ще открият повече текст, но може да доведат до фалшиви положителни резултати.", + "machine_learning_ocr_model": "Модел за разпознаване на текст", + "machine_learning_ocr_model_description": "Сървърните модели са по-точни от мобилните модели, но изискват повече време и използват повече памет.", "machine_learning_settings": "Настройки на машинното обучение", "machine_learning_settings_description": "Управление на функциите и настройките за машинно обучение", "machine_learning_smart_search": "Интелигентно Търсене", @@ -245,6 +256,7 @@ "oauth_storage_quota_default_description": "Квота в GiB, която да се използва, когато не е посочено друго.", "oauth_timeout": "Време на изчакване при заявка", "oauth_timeout_description": "Време за изчакване на отговор на заявка, в милисекунди", + "ocr_job_description": "Използване на машинно обучение за разпознаване на текст в изображенията", "password_enable_description": "Влизане с имейл и парола", "password_settings": "Вписване с парола", "password_settings_description": "Управление на настройките за влизане с парола", @@ -417,6 +429,7 @@ "age_months": "Възраст {months, plural, one {# месец} other {# месеци}}", "age_year_months": "Възраст 1 година, {months, plural, one {# месец} other {# месеци}}", "age_years": "{years, plural, other {Година #}}", + "album": "Албум", "album_added": "Албумът е добавен", "album_added_notification_setting_description": "Получавайте известие по имейл, когато бъдете добавени към споделен албум", "album_cover_updated": "Обложката на албума е актуализирана", @@ -462,6 +475,7 @@ "allow_edits": "Позволяване на редакции", "allow_public_user_to_download": "Позволете на публичен потребител да може да изтегля", "allow_public_user_to_upload": "Позволете на публичния потребител да може да качва", + "allowed": "Разрешено", "alt_text_qr_code": "Изображение на QR код", "anti_clockwise": "Обратно на часовниковата стрелка", "api_key": "API ключ", @@ -669,6 +683,8 @@ "change_password_description": "Това е или първият път, когато влизате в системата, или е направена заявка за промяна на паролата ви. Моля, въведете новата парола по-долу.", "change_password_form_confirm_password": "Потвърди паролата", "change_password_form_description": "Здравейте {name},\n\nТова или е първото ви вписване в системата или има подадена заявка за смяна на паролата. Моля, въведете нова парола в полето по-долу.", + "change_password_form_log_out": "Излизане от профила на всички други устройства", + "change_password_form_log_out_description": "Препоръчваме да се излезе от профила на всички други устройства", "change_password_form_new_password": "Нова парола", "change_password_form_password_mismatch": "Паролите не съвпадат", "change_password_form_reenter_new_password": "Повтори новата парола", @@ -776,6 +792,7 @@ "daily_title_text_date_year": "E, dd MMM yyyy", "dark": "Тъмен", "dark_theme": "Тъмна тема", + "date": "Дата", "date_after": "Дата след", "date_and_time": "Дата и час", "date_before": "Дата преди", @@ -878,8 +895,6 @@ "edit_description_prompt": "Моля, избери ново описание:", "edit_exclusion_pattern": "Редактиране на шаблон за изключване", "edit_faces": "Редактиране на лица", - "edit_import_path": "Редактиране на пътя за импортиране", - "edit_import_paths": "Редактиране на пътища за импортиране", "edit_key": "Редактиране на ключ", "edit_link": "Редактиране на линк", "edit_location": "Редактиране на местоположението", @@ -951,7 +966,6 @@ "failed_to_stack_assets": "Неуспешно подреждане на обекти", "failed_to_unstack_assets": "Неуспешно премахване на подредбата на обекти", "failed_to_update_notification_status": "Неуспешно обновяване на състоянието на известията", - "import_path_already_exists": "Този път за импортиране вече съществува.", "incorrect_email_or_password": "Неправилен имейл или парола", "paths_validation_failed": "{paths, plural, one {# път} other {# пътища}} не преминаха валидация", "profile_picture_transparent_pixels": "Профилните снимки не могат да имат прозрачни пиксели. Моля, увеличете и/или преместете изображението.", @@ -961,7 +975,6 @@ "unable_to_add_assets_to_shared_link": "Неуспешно добавяне на обекти в споделен линк", "unable_to_add_comment": "Неуспешно добавяне на коментар", "unable_to_add_exclusion_pattern": "Неуспешно добавяне на шаблон за изключение", - "unable_to_add_import_path": "Неуспешно добавяне на път за импортиране", "unable_to_add_partners": "Неуспешно добавяне на партньори", "unable_to_add_remove_archive": "Неуспешно {archived, select, true {премахване на обект от} other {добавяне на обект в}} архива", "unable_to_add_remove_favorites": "Неуспешно {favorite, select, true {добавяне на обект в} other {премахване на обект от}} любими", @@ -984,12 +997,10 @@ "unable_to_delete_asset": "Не може да изтрие файла", "unable_to_delete_assets": "Грешка при изтриване на файлове", "unable_to_delete_exclusion_pattern": "Не може да изтрие шаблон за изключване", - "unable_to_delete_import_path": "Пътят за импортиране не може да се изтрие", "unable_to_delete_shared_link": "Споделената връзка не може да се изтрие", "unable_to_delete_user": "Не може да изтрие потребител", "unable_to_download_files": "Не могат да се изтеглят файловете", "unable_to_edit_exclusion_pattern": "Не може да се редактира шаблон за изключване", - "unable_to_edit_import_path": "Пътят за импортиране не може да се редактира", "unable_to_empty_trash": "Неуспешно изпразване на кошчето", "unable_to_enter_fullscreen": "Не може да се отвори в цял екран", "unable_to_exit_fullscreen": "Не може да излезе от цял екран", @@ -1084,6 +1095,7 @@ "features_setting_description": "Управление на функциите на приложението", "file_name": "Име на файла", "file_name_or_extension": "Име на файл или разширение", + "file_size": "Размер на файла", "filename": "Име на файл", "filetype": "Тип на файл", "filter": "Филтър", @@ -1179,6 +1191,8 @@ "import_path": "Път за импортиране", "in_albums": "В {count, plural, one {# албум} other {# албума}}", "in_archive": "В архив", + "in_year": "{year} г.", + "in_year_selector": "През", "include_archived": "Включване на архивирани", "include_shared_albums": "Включване на споделени албуми", "include_shared_partner_assets": "Включване на споделените с партньор елементи", @@ -1215,6 +1229,7 @@ "language_setting_description": "Изберете предпочитан език", "large_files": "Големи файлове", "last": "Последен", + "last_months": "{count, plural, one {Последния месец} other {Последните # месеца}}", "last_seen": "Последно видяно", "latest_version": "Последна версия", "latitude": "Ширина", @@ -1247,6 +1262,7 @@ "local_media_summary": "Обобщение на локалните файлове", "local_network": "Локална мрежа", "local_network_sheet_info": "Приложението ще се свърже със сървъра на този URL, когато устройството е свързано към зададената Wi-Fi мрежа", + "location": "Място", "location_permission": "Разрешение за местоположение", "location_permission_content": "За да работи функцията автоматично превключване, Immich се нуждае от разрешение за точно местоположение, за да може да чете името на текущата Wi-Fi мрежа", "location_picker_choose_on_map": "Избери на карта", @@ -1296,6 +1312,10 @@ "main_menu": "Главно меню", "make": "Марка", "manage_geolocation": "Управление на местоположенията", + "manage_media_access_rationale": "Това разрешение е необходимо за правилно преместване на обекти в кошчето и за възстановяване от там.", + "manage_media_access_settings": "Отвори Настройки", + "manage_media_access_subtitle": "Разрешете приложението Immich да управлява и мести медийни файлове.", + "manage_media_access_title": "Управление на медийни файлове", "manage_shared_links": "Управление на споделени връзки", "manage_sharing_with_partners": "Управление на споделянето с партньори", "manage_the_app_settings": "Управление на настройките на приложението", @@ -1359,6 +1379,7 @@ "more": "Още", "move": "Премести", "move_off_locked_folder": "Извади от заключената папка", + "move_to": "Премести към", "move_to_lock_folder_action_prompt": "{count} са добавени в заключената папка", "move_to_locked_folder": "Премести в заключена папка", "move_to_locked_folder_confirmation": "Тези снимки и видеа ще бъдат изтрити от всички албуми и ще са достъпни само в заключената папка", @@ -1388,6 +1409,7 @@ "new_pin_code": "Нов PIN код", "new_pin_code_subtitle": "Това е първи достъп до заключена папка. Създайте PIN код за защитен достъп до тази страница", "new_timeline": "Нова времева линия", + "new_update": "Ново обновление", "new_user_created": "Създаден нов потребител", "new_version_available": "НАЛИЧНА НОВА ВЕРСИЯ", "newest_first": "Най-новите първи", @@ -1403,6 +1425,7 @@ "no_cast_devices_found": "Няма намерени устройства за предаване", "no_checksum_local": "Липсват контролни суми - не може да се получат локални обекти", "no_checksum_remote": "Липсват контролни суми - не може да се получат обекти от сървъра", + "no_devices": "Няма оторизирани устройства", "no_duplicates_found": "Не бяха открити дубликати.", "no_exif_info_available": "Няма exif информация", "no_explore_results_message": "Качете още снимки, за да разгледате колекцията си.", @@ -1419,6 +1442,7 @@ "no_results_description": "Опитайте със синоним или по-обща ключова дума", "no_shared_albums_message": "Създайте албум, за да споделяте снимки и видеоклипове с хората в мрежата си", "no_uploads_in_progress": "Няма качване в момента", + "not_allowed": "Не е разрешено", "not_available": "Неналично", "not_in_any_album": "Не е в никой албум", "not_selected": "Не е избрано", @@ -1435,6 +1459,7 @@ "oauth": "OAuth", "obtainium_configurator": "Конфигуратор за получаване", "obtainium_configurator_instructions": "Използвайте Obtainium за инсталация и обновяване на приложението за Android директно от GitHub на Immich. Създайте API ключ и изберете вариант за да създадете Obtainium конфигурационен линк", + "ocr": "Оптично разпознаване на текст", "official_immich_resources": "Официална информация за Immich", "offline": "Офлайн", "offset": "Отместване", @@ -1528,6 +1553,8 @@ "photos_count": "{count, plural, one {{count, number} Снимка} other {{count, number} Снимки}}", "photos_from_previous_years": "Снимки от предходни години", "pick_a_location": "Избери локация", + "pick_custom_range": "Произволен период", + "pick_date_range": "Изберете период", "pin_code_changed_successfully": "Успешно сменен PIN код", "pin_code_reset_successfully": "Успешно нулиран PIN код", "pin_code_setup_successfully": "Успешно зададен PIN код", @@ -1539,6 +1566,9 @@ "play_memories": "Възпроизвеждане на спомени", "play_motion_photo": "Възпроизведи Motion Photo", "play_or_pause_video": "Възпроизвеждане или пауза на видео", + "play_original_video": "Пусни оригиналното видео", + "play_original_video_setting_description": "Предпочитане на показване на оригиналното видео, вместо транскодирани. Ако формата на оригиналния файл не се поддържа, възпроизвеждането може да бъде неправилно.", + "play_transcoded_video": "Покажи транскодирано видео", "please_auth_to_access": "Моля, удостовери за достъп", "port": "Порт", "preferences_settings_subtitle": "Управление на предпочитанията на приложението", @@ -1675,6 +1705,7 @@ "reset_sqlite_confirmation": "Наистина ли искате да нулирате базата данни SQLite? Ще трябва да излезете от системата и да се впишете отново за нова синхронизация на данните", "reset_sqlite_success": "Успешно нулиране на базата данни SQLite", "reset_to_default": "Връщане на фабрични настройки", + "resolution": "Резолюция", "resolve_duplicates": "Реши дубликатите", "resolved_all_duplicates": "Всички дубликати са решени", "restore": "Възстановяване", @@ -1693,6 +1724,7 @@ "running": "Изпълняване", "save": "Запази", "save_to_gallery": "Запази в галерията", + "saved": "Записано", "saved_api_key": "Запазен API Key", "saved_profile": "Запазен профил", "saved_settings": "Запазени настройки", @@ -1709,6 +1741,9 @@ "search_by_description_example": "Разходка в Сапа", "search_by_filename": "Търси по име на файла или разширение", "search_by_filename_example": "например IMG_1234.JPG или PNG", + "search_by_ocr": "Търсене на текст", + "search_by_ocr_example": "Lattе", + "search_camera_lens_model": "Търсене на модел на обектива...", "search_camera_make": "Търси производител на камерата...", "search_camera_model": "Търси модел на камерата...", "search_city": "Търси град...", @@ -1725,6 +1760,7 @@ "search_filter_location_title": "Избери място", "search_filter_media_type": "Тип на файла", "search_filter_media_type_title": "Избери тип на файла", + "search_filter_ocr": "Търсене нa текст", "search_filter_people_title": "Избери хора", "search_for": "Търси за", "search_for_existing_person": "Търси съществуващ човек", @@ -1981,7 +2017,7 @@ "template": "Шаблон", "theme": "Тема", "theme_selection": "Избор на тема", - "theme_selection_description": "Автоматично задаване на светла или тъмна тема въз основа на системните предпочитания на вашия браузър", + "theme_selection_description": "Автоматично задаване на светла или тъмна тема спрямо системните предпочитания на браузъра ви", "theme_setting_asset_list_storage_indicator_title": "Показвай индикатор за хранилището в заглавията на обектите", "theme_setting_asset_list_tiles_per_row_title": "Брой обекти на ред ({count})", "theme_setting_colorful_interface_subtitle": "Нанеси основен цвят върху фоновите повърхности.", @@ -1997,7 +2033,9 @@ "theme_setting_three_stage_loading_title": "Включи три-степенно зареждане", "they_will_be_merged_together": "Те ще бъдат обединени", "third_party_resources": "Ресурси от трети страни", + "time": "Време", "time_based_memories": "Спомени, базирани на времето", + "time_based_memories_duration": "Продължителност в секунди за показване на всяка картина.", "timeline": "Хронология", "timezone": "Часова зона", "to_archive": "Архивирай", @@ -2138,6 +2176,7 @@ "welcome": "Добре дошли", "welcome_to_immich": "Добре дошли в Immich", "wifi_name": "Wi-Fi мрежа", + "workflow": "Работен процес", "wrong_pin_code": "Грешен PIN код", "year": "Година", "years_ago": "преди {years, plural, one {# година} other {# години}}", diff --git a/i18n/bi.json b/i18n/bi.json index 58c84f95d9..c5c9edbbb1 100644 --- a/i18n/bi.json +++ b/i18n/bi.json @@ -12,12 +12,28 @@ "add_a_name": "Putem nam blo hem", "add_a_title": "Putem wan name blo hem", "add_exclusion_pattern": "Putem wan paten wae hemi karem aot", - "add_import_path": "Putem wan pat blo import", "add_location": "Putem wan place blo hem", "add_more_users": "Putem mor man", "readonly_mode_enabled": "Mod blo yu no save janjem i on", "reassigned_assets_to_new_person": "Janjem{count, plural, one {# asset} other {# assets}} blo nu man", "reassing_hint": "janjem ol sumtin yu bin joos i go blo wan man", "recent-albums": "album i no old tu mas", - "recent_searches": "lukabout wea i no old tu mas" + "recent_searches": "lukabout wea i no old tu mas", + "time_based_memories_duration": "hao mus second blo wan wan imij i stap lo scrin.", + "timezone": "taemzon", + "to_change_password": "janjem pasword", + "to_login": "Login", + "to_multi_select": "to jusem mani", + "to_parent": "go lo parent", + "to_select": "to selectem", + "to_trash": "toti", + "toggle_settings": "sho settings", + "total": "Total", + "trash": "Toti", + "trash_action_prompt": "{count} igo lo plaes lo toti", + "trash_all": "Putem ol i go lo toti", + "trash_count": "Toti {count, number}", + "trash_emptied": "basket blo toti i empti nomo", + "trash_no_results_message": "Foto mo video lo basket blo toti yu save lukem lo plaes ia.", + "trash_page_delete_all": "Delete oli ol" } diff --git a/i18n/bn.json b/i18n/bn.json index 813aadea7e..0dd2f46726 100644 --- a/i18n/bn.json +++ b/i18n/bn.json @@ -17,7 +17,6 @@ "add_birthday": "একটি জন্মদিন যোগ করুন", "add_endpoint": "এন্ডপয়েন্ট যোগ করুন", "add_exclusion_pattern": "বহির্ভূতকরণ নমুনা", - "add_import_path": "ইমপোর্ট করার পাথ যুক্ত করুন", "add_location": "অবস্থান যুক্ত করুন", "add_more_users": "আরো ব্যবহারকারী যুক্ত করুন", "add_partner": "অংশীদার যোগ করুন", @@ -111,7 +110,6 @@ "jobs_failed": "{jobCount, plural, other {# ব্যর্থ}}", "library_created": "লাইব্রেরি তৈরি করা হয়েছেঃ {library}", "library_deleted": "লাইব্রেরি মুছে ফেলা হয়েছে", - "library_import_path_description": "ইম্পোর্ট/যোগ করার জন্য একটি ফোল্ডার নির্দিষ্ট করুন। সাবফোল্ডার সহ এই ফোল্ডারটি ছবি এবং ভিডিওর জন্য স্ক্যান করা হবে।", "library_scanning": "পর্যায়ক্রমিক স্ক্যানিং", "library_scanning_description": "পর্যায়ক্রমিক লাইব্রেরি স্ক্যানিং কনফিগার করুন", "library_scanning_enable_description": "পর্যায়ক্রমিক লাইব্রেরি স্ক্যানিং সক্ষম করুন", diff --git a/i18n/ca.json b/i18n/ca.json index d35132d7c4..764bc3d024 100644 --- a/i18n/ca.json +++ b/i18n/ca.json @@ -17,7 +17,6 @@ "add_birthday": "Afegeix la data de naixement", "add_endpoint": "afegir endpoint", "add_exclusion_pattern": "Afegir un patró d'exclusió", - "add_import_path": "Afegir una ruta d'importació", "add_location": "Afegir la ubicació", "add_more_users": "Afegir més usuaris", "add_partner": "Afegir company/a", @@ -32,6 +31,7 @@ "add_to_album_toggle": "Commutar selecció de {album}", "add_to_albums": "Afegir als àlbums", "add_to_albums_count": "Afegir als àlbums ({count})", + "add_to_bottom_bar": "Afegir a", "add_to_shared_album": "Afegir a un àlbum compartit", "add_upload_to_stack": "Afegeix la càrrega a la pila", "add_url": "Afegir URL", @@ -112,7 +112,6 @@ "jobs_failed": "{jobCount, plural, other {# fallides}}", "library_created": "Bilbioteca creada: {library}", "library_deleted": "Bilbioteca eliminada", - "library_import_path_description": "Especifiqueu una carpeta a importar. Aquesta carpeta, incloses les seves subcarpetes, serà escanejada per cercar-hi imatges i vídeos.", "library_scanning": "Escaneig periòdic", "library_scanning_description": "Configurar l'escaneig periòdic de bilbioteques", "library_scanning_enable_description": "Habilita l'escaneig periòdic de biblioteques", @@ -154,6 +153,18 @@ "machine_learning_min_detection_score_description": "La puntuació mínima de confiança per detectar una cara és de 0 a 1. Valors més baixos detectaran més cares, però poden donar lloc a falsos positius.", "machine_learning_min_recognized_faces": "Nombre mínim de cares reconegudes", "machine_learning_min_recognized_faces_description": "El nombre mínim de cares reconegudes per crear una persona. Augmentar aquest valor fa que el reconeixement facial sigui més precís, però augmenta la possibilitat que una cara no sigui assignada a una persona.", + "machine_learning_ocr": "OCR", + "machine_learning_ocr_description": "Fes servir machine learning per reconèixer text a imatges", + "machine_learning_ocr_enabled": "Activar OCR", + "machine_learning_ocr_enabled_description": "Si està desactivat, les imatges no seran objecte de reconeixement de text.", + "machine_learning_ocr_max_resolution": "Màxima resolució", + "machine_learning_ocr_max_resolution_description": "Vista prèvia per sobre d'aquesta resolució serà reescalada per preservar la relació d'aspecte. Resolucions altes són més precises, però triguen més i gasten més memòria.", + "machine_learning_ocr_min_detection_score": "Puntuació mínima de detecció", + "machine_learning_ocr_min_detection_score_description": "Puntuació de mínima confiança per la detecció del text entre 0-1. Valors baixos detectaran més text pero pot donar falsos positius.", + "machine_learning_ocr_min_recognition_score": "Puntuació mínima de reconeixement", + "machine_learning_ocr_min_score_recognition_description": "Puntuació de confiança mínima pel reconeixement del text entre 0-1. Valors baixos reconeixen més text però pot donar falsos positius.", + "machine_learning_ocr_model": "Model OCR", + "machine_learning_ocr_model_description": "Models de servidor són més precisos que els de móbil, pero triguen més a processar i usen més memòria.", "machine_learning_settings": "Configuració d'aprenentatge automàtic", "machine_learning_settings_description": "Gestiona funcions i configuració d'aprenentatge automàtic", "machine_learning_smart_search": "Cerca intel·ligent", @@ -211,6 +222,8 @@ "notification_email_ignore_certificate_errors_description": "Ignora els errors de validació de certificat TLS (no recomanat)", "notification_email_password_description": "Contrasenya per a autenticar-se amb el servidor de correu electrònic", "notification_email_port_description": "Port del servidor de correu electrònic (p.ex. 25, 465 o 587)", + "notification_email_secure": "SMTPS", + "notification_email_secure_description": "Fes servir SMTPS (SMTP sobre TLS)", "notification_email_sent_test_email_button": "Envia correu de prova i desa", "notification_email_setting_description": "Configuració per l'enviament de notificacions per correu electrònic", "notification_email_test_email": "Envia correu de prova", @@ -243,6 +256,7 @@ "oauth_storage_quota_default_description": "Quota disponible en GB quan no s'estableixi cap valor (Entreu 0 per a quota il·limitada).", "oauth_timeout": "Solicitud caducada", "oauth_timeout_description": "Timeout per a sol·licituds en mil·lisegons", + "ocr_job_description": "Fes servir machine learning per reconèixer text a les imatges", "password_enable_description": "Inicia sessió amb correu electrònic i contrasenya", "password_settings": "Inici de sessió amb contrasenya", "password_settings_description": "Gestiona la configuració de l'inici de sessió amb contrasenya", @@ -402,11 +416,11 @@ "advanced_settings_prefer_remote_subtitle": "Alguns dispositius són molt lents en carregar miniatures dels elements locals. Activeu aquest paràmetre per carregar imatges remotes en el seu lloc.", "advanced_settings_prefer_remote_title": "Prefereix imatges remotes", "advanced_settings_proxy_headers_subtitle": "Definiu les capçaleres de proxy que Immich per enviar amb cada sol·licitud de xarxa", - "advanced_settings_proxy_headers_title": "Capçaleres de proxy", + "advanced_settings_proxy_headers_title": "Capçaleres de proxy particulars [EXPERIMENTAL]", "advanced_settings_readonly_mode_subtitle": "Habilita el només de lectura mode on les fotos poden ser només vist, a coses els agrada seleccionant imatges múltiples, compartint, càsting, elimina és tot discapacitat. Habilita/Desactiva només de lectura via avatar d'usuari des de la pantalla major", "advanced_settings_readonly_mode_title": "Mode de només lectura", "advanced_settings_self_signed_ssl_subtitle": "Omet la verificació del certificat SSL del servidor. Requerit per a certificats autosignats.", - "advanced_settings_self_signed_ssl_title": "Permet certificats SSL autosignats", + "advanced_settings_self_signed_ssl_title": "Permet certificats SSL autosignats [EXPERIMENTAL]", "advanced_settings_sync_remote_deletions_subtitle": "Suprimeix o restaura automàticament un actiu en aquest dispositiu quan es realitzi aquesta acció al web", "advanced_settings_sync_remote_deletions_title": "Sincronitza les eliminacions remotes", "advanced_settings_tile_subtitle": "Configuració avançada de l'usuari", @@ -415,6 +429,7 @@ "age_months": "{months, plural, one {# mes} other {# mesos}}", "age_year_months": "Un any i {months, plural, one {# mes} other {# mesos}}", "age_years": "{years, plural, one {# any} other {# anys}}", + "album": "Àlbum", "album_added": "Àlbum afegit", "album_added_notification_setting_description": "Rep una notificació per correu quan siguis afegit a un àlbum compartit", "album_cover_updated": "Portada de l'àlbum actualitzada", @@ -460,16 +475,21 @@ "allow_edits": "Permet editar", "allow_public_user_to_download": "Permet que l'usuari públic pugui descarregar", "allow_public_user_to_upload": "Permet que l'usuari públic pugui carregar", + "allowed": "Permès", "alt_text_qr_code": "Codi QR", "anti_clockwise": "En sentit antihorari", "api_key": "Clau API", "api_key_description": "Aquest valor només es mostrarà una vegada. Assegureu-vos de copiar-lo abans de tancar la finestra.", "api_key_empty": "El nom de la clau de l'API no pot estar buit", "api_keys": "Claus API", + "app_architecture_variant": "Variant (Arquitectura)", "app_bar_signout_dialog_content": "Estàs segur que vols tancar la sessió?", "app_bar_signout_dialog_ok": "Sí", "app_bar_signout_dialog_title": "Tanca la sessió", + "app_download_links": "App descarrega enllaços", "app_settings": "Configuració de l'app", + "app_stores": "Botiga App", + "app_update_available": "Actualització App disponible", "appears_in": "Apareix a", "apply_count": "Aplicar ({count, number})", "archive": "Arxiu", @@ -553,6 +573,7 @@ "backup_albums_sync": "Sincronització d'àlbums de còpia de seguretat", "backup_all": "Tots", "backup_background_service_backup_failed_message": "No s'ha pogut copiar els elements. Tornant a intentar…", + "backup_background_service_complete_notification": "Backup completat d'actius", "backup_background_service_connection_failed_message": "No s'ha pogut connectar al servidor. Tornant a intentar…", "backup_background_service_current_upload_notification": "Pujant {filename}", "backup_background_service_default_notification": "Cercant nous elements…", @@ -662,6 +683,8 @@ "change_password_description": "Aquesta és la primera vegada que inicieu la sessió al sistema o s'ha fet una sol·licitud per canviar la contrasenya. Introduïu la nova contrasenya a continuació.", "change_password_form_confirm_password": "Confirma la contrasenya", "change_password_form_description": "Hola {name},\n\nAquesta és la primera vegada que inicies sessió al sistema o bé s'ha sol·licitat canviar la teva contrasenya. Si us plau, introdueix la nova contrasenya a continuació.", + "change_password_form_log_out": "Fer fora de tots els altres dispositius", + "change_password_form_log_out_description": "Es recomana fer fora de tots els altres dispositius", "change_password_form_new_password": "Nova contrasenya", "change_password_form_password_mismatch": "Les contrasenyes no coincideixen", "change_password_form_reenter_new_password": "Torna a introduir la nova contrasenya", @@ -739,6 +762,7 @@ "create": "Crea", "create_album": "Crear un àlbum", "create_album_page_untitled": "Sense títol", + "create_api_key": "Crear clau API", "create_library": "Crea una llibreria", "create_link": "Crear enllaç", "create_link_to_share": "Crear enllaç per compartir", @@ -768,6 +792,7 @@ "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Fosc", "dark_theme": "Canviar a tema fosc", + "date": "Data", "date_after": "Data posterior a", "date_and_time": "Data i hora", "date_before": "Data anterior a", @@ -870,8 +895,6 @@ "edit_description_prompt": "Si us plau, selecciona una nova descripció:", "edit_exclusion_pattern": "Edita patró d'exclusió", "edit_faces": "Edita les cares", - "edit_import_path": "Edita la ruta d'importació", - "edit_import_paths": "Edita les rutes d'importació", "edit_key": "Edita clau", "edit_link": "Edita enllaç", "edit_location": "Edita ubicació", @@ -943,7 +966,6 @@ "failed_to_stack_assets": "No s'han pogut apilar els elements", "failed_to_unstack_assets": "No s'han pogut desapilar els elements", "failed_to_update_notification_status": "Error en actualitzar l'estat de les notificacions", - "import_path_already_exists": "Aquesta ruta d'importació ja existeix.", "incorrect_email_or_password": "Correu electrònic o contrasenya incorrectes", "paths_validation_failed": "{paths, plural, one {# ruta} other {# rutes}} no ha pogut validar", "profile_picture_transparent_pixels": "Les fotos de perfil no poden tenir píxels transparents. Per favor, feu zoom in, mogueu la imatge o ambdues.", @@ -953,7 +975,6 @@ "unable_to_add_assets_to_shared_link": "No s'han pogut afegir els elements a l'enllaç compartit", "unable_to_add_comment": "No es pot afegir el comentari", "unable_to_add_exclusion_pattern": "No s'ha pogut afegir el patró d’exclusió", - "unable_to_add_import_path": "No s'ha pogut afegir la ruta d'importació", "unable_to_add_partners": "No es poden afegir companys", "unable_to_add_remove_archive": "No s'ha pogut {archived, select, true {eliminar l'element de} other {afegir l'element a}} l'arxiu", "unable_to_add_remove_favorites": "No s'ha pogut {favorite, select, true {afegir l'element als} other {eliminar l'element dels}} preferits", @@ -976,12 +997,10 @@ "unable_to_delete_asset": "No es pot suprimir el recurs", "unable_to_delete_assets": "S'ha produït un error en suprimir recursos", "unable_to_delete_exclusion_pattern": "No es pot suprimir el patró d'exclusió", - "unable_to_delete_import_path": "No es pot suprimir la ruta d'importació", "unable_to_delete_shared_link": "No es pot suprimir l'enllaç compartit", "unable_to_delete_user": "No es pot eliminar l'usuari", "unable_to_download_files": "No es poden descarregar fitxers", "unable_to_edit_exclusion_pattern": "No es pot editar el patró d'exclusió", - "unable_to_edit_import_path": "No es pot editar la ruta d'importació", "unable_to_empty_trash": "No es pot buidar la paperera", "unable_to_enter_fullscreen": "No es pot entrar a la pantalla completa", "unable_to_exit_fullscreen": "No es pot sortir de la pantalla completa", @@ -1076,6 +1095,7 @@ "features_setting_description": "Administrar les funcions de l'aplicació", "file_name": "Nom de l'arxiu", "file_name_or_extension": "Nom de l'arxiu o extensió", + "file_size": "Mida del fitxer", "filename": "Nom del fitxer", "filetype": "Tipus d'arxiu", "filter": "Filtrar", @@ -1171,6 +1191,8 @@ "import_path": "Ruta d'importació", "in_albums": "A {count, plural, one {# àlbum} other {# àlbums}}", "in_archive": "En arxiu", + "in_year": "En {year}", + "in_year_selector": "En", "include_archived": "Incloure arxivats", "include_shared_albums": "Inclou àlbums compartits", "include_shared_partner_assets": "Incloure elements dels companys", @@ -1207,6 +1229,7 @@ "language_setting_description": "Seleccioneu el vostre idioma", "large_files": "Fitxers Grans", "last": "Últim", + "last_months": "{count, plural, one {Últim mes} other {Últims # mesos}}", "last_seen": "Vist per últim cop", "latest_version": "Última versió", "latitude": "Latitud", @@ -1239,6 +1262,7 @@ "local_media_summary": "Resum de Mitjans Locals", "local_network": "Xarxa local", "local_network_sheet_info": "L'aplicació es connectarà al servidor mitjançant aquest URL quan utilitzeu la xarxa Wi-Fi especificada", + "location": "Localització", "location_permission": "Permís d'ubicació", "location_permission_content": "Per utilitzar la funció de canvi automàtic, Immich necessita un permís d'ubicació precisa perquè pugui llegir el nom de la xarxa Wi-Fi actual", "location_picker_choose_on_map": "Escollir en el mapa", @@ -1288,6 +1312,10 @@ "main_menu": "Menú principal", "make": "Fabricant", "manage_geolocation": "Gestioneu la vostra ubicació", + "manage_media_access_rationale": "Aquest permís es necessari per a la correcta gestió dels actius que es mouen a la paperera i es restauren d'ella.", + "manage_media_access_settings": "Configuració oberta", + "manage_media_access_subtitle": "Permet a l'Immich gestionar i moure fitxers multimèdia.", + "manage_media_access_title": "Accés a la gestió de mitjans", "manage_shared_links": "Administrar enllaços compartits", "manage_sharing_with_partners": "Gestiona la compartició amb els companys", "manage_the_app_settings": "Gestioneu la configuració de l'aplicació", @@ -1344,12 +1372,14 @@ "minutes": "Minuts", "missing": "Restants", "mobile_app": "Aplicació mòbil", + "mobile_app_download_onboarding_note": "Descarregar la App de mòbil fent servir les seguents opcions", "model": "Model", "month": "Mes", "monthly_title_text_date_format": "MMMM y", "more": "Més", "move": "Moure", "move_off_locked_folder": "Moure fora de la carpeta bloquejada", + "move_to": "Moure a", "move_to_lock_folder_action_prompt": "{count} afegides a la carpeta protegida", "move_to_locked_folder": "Moure a la carpeta bloquejada", "move_to_locked_folder_confirmation": "Aquestes fotos i vídeos seran eliminades de tots els àlbums, i només podran ser vistes des de la carpeta bloquejada", @@ -1363,6 +1393,7 @@ "name": "Nom", "name_or_nickname": "Nom o sobrenom", "navigate": "Navegar", + "navigate_to_time": "Navegar a un punt en el temps", "network_requirement_photos_upload": "Fes servir dades mòbils per a còpies de seguretat de fotos", "network_requirement_videos_upload": "Fes servir dades mòbils per a còpies de seguretat de videos", "network_requirements": "Requeriments de Xarxa", @@ -1372,11 +1403,13 @@ "never": "Mai", "new_album": "Nou Àlbum", "new_api_key": "Nova clau de l'API", + "new_date_range": "Navegar a un reng de dates", "new_password": "Nova contrasenya", "new_person": "Persona nova", "new_pin_code": "Nou codi PIN", "new_pin_code_subtitle": "Aquesta és la primera vegada que accedeixes a la carpeta bloquejada. Crea una codi PIN i accedeix de manera segura a aquesta pàgina", "new_timeline": "Nova Línia de Temps", + "new_update": "Nova actualització", "new_user_created": "Nou usuari creat", "new_version_available": "NOVA VERSIÓ DISPONIBLE", "newest_first": "El més nou primer", @@ -1392,6 +1425,7 @@ "no_cast_devices_found": "No s'han trobat dispositius per transmetre", "no_checksum_local": "Cap checksum disponible - no s'han pogut carregar els recursos locals", "no_checksum_remote": "Cap checksum disponible - no s'ha pogut obtenir el recurs remot", + "no_devices": "No hi ha dispositius autoritzats", "no_duplicates_found": "No s'han trobat duplicats.", "no_exif_info_available": "No hi ha informació d'exif disponible", "no_explore_results_message": "Penja més fotos per explorar la teva col·lecció.", @@ -1408,6 +1442,7 @@ "no_results_description": "Proveu un sinònim o una paraula clau més general", "no_shared_albums_message": "Creeu un àlbum per compartir fotos i vídeos amb persones a la vostra xarxa", "no_uploads_in_progress": "Cap pujada en progrés", + "not_allowed": "No permès", "not_available": "N/A", "not_in_any_album": "En cap àlbum", "not_selected": "No seleccionat", @@ -1422,6 +1457,9 @@ "notifications": "Notificacions", "notifications_setting_description": "Gestiona les notificacions", "oauth": "OAuth", + "obtainium_configurator": "Configurador Obtainium", + "obtainium_configurator_instructions": "Utilitza Obtainium per instal·lar una actualització a la app directament des de Github-Immich. Crear una clau API i seleccionar una variant per crear un enllaç a la configuració Obtainium", + "ocr": "OCR", "official_immich_resources": "Recursos oficials d'Immich", "offline": "Fora de línia", "offset": "Diferència", @@ -1515,6 +1553,8 @@ "photos_count": "{count, plural, one {{count, number} Foto} other {{count, number} Fotos}}", "photos_from_previous_years": "Fotos d'anys anteriors", "pick_a_location": "Triar una ubicació", + "pick_custom_range": "Rang personalitzat", + "pick_date_range": "Seleccioni un rang de dates", "pin_code_changed_successfully": "Codi PIN canviat correctament", "pin_code_reset_successfully": "S'ha restablert correctament el codi PIN", "pin_code_setup_successfully": "S'ha configurat correctament un codi PIN", @@ -1526,6 +1566,9 @@ "play_memories": "Reproduir records", "play_motion_photo": "Reproduir Fotos en Moviment", "play_or_pause_video": "Reproduir o posar en pausa el vídeo", + "play_original_video": "Veure el video original", + "play_original_video_setting_description": "Preferir la reproducció del video original sobre el video recodificat. Si el video original no es compatible potser no es reprodueixi correctament.", + "play_transcoded_video": "Veure el video recodificat", "please_auth_to_access": "Per favor, autentica't per accedir", "port": "Port", "preferences_settings_subtitle": "Gestiona les preferències de l'aplicació", @@ -1662,6 +1705,7 @@ "reset_sqlite_confirmation": "Segur que vols reiniciar la base de dades SQLite? Hauràs de tancar la sessió i tornar a accedir per a resincronitzar les dades", "reset_sqlite_success": "S'ha reiniciat la base de dades correctament", "reset_to_default": "Restableix els valors predeterminats", + "resolution": "Resolució", "resolve_duplicates": "Resoldre duplicats", "resolved_all_duplicates": "Tots els duplicats resolts", "restore": "Recupera", @@ -1680,6 +1724,7 @@ "running": "En execució", "save": "Desa", "save_to_gallery": "Desa a galeria", + "saved": "Guardat", "saved_api_key": "Clau d'API guardada", "saved_profile": "Perfil guardat", "saved_settings": "Configuració guardada", @@ -1696,6 +1741,9 @@ "search_by_description_example": "Jornada de senderisme a Sapa", "search_by_filename": "Cerca per nom de fitxer o extensió", "search_by_filename_example": "per exemple IMG_1234.JPG o PNG", + "search_by_ocr": "Buscar per OCR", + "search_by_ocr_example": "Després", + "search_camera_lens_model": "Buscar model de lents....", "search_camera_make": "Buscar per fabricant de càmara...", "search_camera_model": "Buscar per model de càmera...", "search_city": "Buscar per ciutat...", @@ -1712,6 +1760,7 @@ "search_filter_location_title": "Selecciona l'ubicació", "search_filter_media_type": "Tipus de multimèdia", "search_filter_media_type_title": "Selecciona tipus de multimèdia", + "search_filter_ocr": "Buscar per OCR", "search_filter_people_title": "Selecciona persones", "search_for": "Cercar", "search_for_existing_person": "Busca una persona existent", @@ -1984,7 +2033,9 @@ "theme_setting_three_stage_loading_title": "Activa la càrrega en tres etapes", "they_will_be_merged_together": "Es combinaran", "third_party_resources": "Recursos de tercers", + "time": "Temps", "time_based_memories": "Records basats en el temps", + "time_based_memories_duration": "Quants segons es mostrarà cada imatge.", "timeline": "Cronologia", "timezone": "Fus horari", "to_archive": "Arxivar", @@ -2125,6 +2176,7 @@ "welcome": "Benvingut", "welcome_to_immich": "Benvingut a immich", "wifi_name": "Nom Wi-Fi", + "workflow": "Flux de treball", "wrong_pin_code": "Codi PIN incorrecte", "year": "Any", "years_ago": "Fa {years, plural, one {# any} other {# anys}}", diff --git a/i18n/cs.json b/i18n/cs.json index 0f649dac9b..7205926696 100644 --- a/i18n/cs.json +++ b/i18n/cs.json @@ -17,7 +17,6 @@ "add_birthday": "Přidat datum narození", "add_endpoint": "Přidat koncový bod", "add_exclusion_pattern": "Přidat vzor vyloučení", - "add_import_path": "Přidat cestu importu", "add_location": "Přidat polohu", "add_more_users": "Přidat další uživatele", "add_partner": "Přidat partnera", @@ -32,6 +31,7 @@ "add_to_album_toggle": "Přepnout výběr pro {album}", "add_to_albums": "Přidat do alb", "add_to_albums_count": "Přidat do alb ({count})", + "add_to_bottom_bar": "Přidat do", "add_to_shared_album": "Přidat do sdíleného alba", "add_upload_to_stack": "Přidat nahrané do zásobníku", "add_url": "Přidat URL", @@ -112,13 +112,17 @@ "jobs_failed": "{jobCount, plural, one {# neúspěšný} few {# neúspěšné} other {# neúspěšných}}", "library_created": "Vytvořena knihovna: {library}", "library_deleted": "Knihovna smazána", - "library_import_path_description": "Zadejte složku, kterou chcete importovat. Tato složka bude prohledána včetně podsložek a budou v ní hledány obrázky a videa.", + "library_details": "Podrobnosti o knihovně", + "library_folder_description": "Zadejte složku, kterou chcete importovat. Tato složka, včetně podsložek, bude prohledána pro obrázky a videa.", + "library_remove_exclusion_pattern_prompt": "Opravdu chcete odstranit tento vzor vyloučení?", + "library_remove_folder_prompt": "Opravdu chcete odstranit tuto složku importu?", "library_scanning": "Pravidelné prohledávání", "library_scanning_description": "Nastavení pravidelného prohledávání knihovny", "library_scanning_enable_description": "Povolit pravidelné prohledávání knihovny", "library_settings": "Externí knihovna", "library_settings_description": "Správa nastavení externí knihovny", "library_tasks_description": "Vyhledávání nových nebo změněných položek v externích knihovnách", + "library_updated": "Knihovna aktualizována", "library_watching_enable_description": "Sledovat změny souborů v externích knihovnách", "library_watching_settings": "Sledování knihovny [EXPERIMENTÁLNÍ]", "library_watching_settings_description": "Automatické sledování změněných souborů", @@ -173,6 +177,10 @@ "machine_learning_smart_search_enabled": "Povolit chytré vyhledávání", "machine_learning_smart_search_enabled_description": "Pokud je vypnuto, obrázky nebudou kódovány pro inteligentní vyhledávání.", "machine_learning_url_description": "URL serveru strojového učení. Pokud je zadáno více URL adres, budou jednotlivé servery zkoušeny postupně, dokud jeden z nich neodpoví úspěšně, a to v pořadí od prvního k poslednímu. Servery, které neodpoví, budou dočasně ignorovány, dokud nebudou opět online.", + "maintenance_settings": "Údržba", + "maintenance_settings_description": "Přepnout Immich do režimu údržby.", + "maintenance_start": "Zahájit režim údržby", + "maintenance_start_error": "Nepodařilo se zahájit režim údržby.", "manage_concurrency": "Správa souběžnosti", "manage_log_settings": "Správa nastavení protokolu", "map_dark_style": "Tmavý motiv", @@ -430,6 +438,7 @@ "age_months": "{months, plural, one {# měsíc} few {# měsíce} other {# měsíců}}", "age_year_months": "1 rok a {months, plural, one {# měsíc} few {# měsíce} other {# měsíců}}", "age_years": "{years, plural, one {# rok} few {# roky} other {# let}}", + "album": "Album", "album_added": "Přidáno album", "album_added_notification_setting_description": "Dostávat e-mailové oznámení, když jste přidáni do sdíleného alba", "album_cover_updated": "Obal alba aktualizován", @@ -475,6 +484,7 @@ "allow_edits": "Povolit úpravy", "allow_public_user_to_download": "Povolit veřejnosti stahovat", "allow_public_user_to_upload": "Povolit veřejnosti nahrávat", + "allowed": "Povoleno", "alt_text_qr_code": "Obrázek QR kódu", "anti_clockwise": "Proti směru hodinových ručiček", "api_key": "API klíč", @@ -894,8 +904,6 @@ "edit_description_prompt": "Vyberte nový popis:", "edit_exclusion_pattern": "Upravit vzor vyloučení", "edit_faces": "Upravit obličeje", - "edit_import_path": "Upravit cestu importu", - "edit_import_paths": "Úpravit importní cesty", "edit_key": "Upravit klíč", "edit_link": "Upravit odkaz", "edit_location": "Upravit polohu", @@ -967,8 +975,8 @@ "failed_to_stack_assets": "Nepodařilo se seskupit položky", "failed_to_unstack_assets": "Nepodařilo se zrušit seskupení položek", "failed_to_update_notification_status": "Nepodařilo se aktualizovat stav oznámení", - "import_path_already_exists": "Tato cesta importu již existuje.", "incorrect_email_or_password": "Nesprávný e-mail nebo heslo", + "library_folder_already_exists": "Tato importní cesta již existuje.", "paths_validation_failed": "{paths, plural, one {# cesta neprošla} few {# cesty neprošly} other {# cest neprošlo}} kontrolou", "profile_picture_transparent_pixels": "Profilové obrázky nemohou mít průhledné pixely. Obrázek si prosím zvětšete nebo posuňte.", "quota_higher_than_disk_size": "Nastavili jste kvótu vyšší, než je velikost disku", @@ -977,7 +985,6 @@ "unable_to_add_assets_to_shared_link": "Nelze přidat položky do sdíleného odkazu", "unable_to_add_comment": "Nelze přidat komentář", "unable_to_add_exclusion_pattern": "Nelze přidat vzor vyloučení", - "unable_to_add_import_path": "Nelze přidat cestu importu", "unable_to_add_partners": "Nelze přidat partnery", "unable_to_add_remove_archive": "Nelze {archived, select, true {odstranit položku z} other {přidat položku do}} archivu", "unable_to_add_remove_favorites": "Nelze {favorite, select, true {oblíbit položku} other {zrušit oblíbení položky}}", @@ -1000,12 +1007,10 @@ "unable_to_delete_asset": "Nelze odstranit položku", "unable_to_delete_assets": "Chyba při odstraňování položek", "unable_to_delete_exclusion_pattern": "Nelze odstranit vzor vyloučení", - "unable_to_delete_import_path": "Nelze odstranit cestu importu", "unable_to_delete_shared_link": "Nepodařilo se odstranit sdílený odkaz", "unable_to_delete_user": "Nelze odstranit uživatele", "unable_to_download_files": "Nelze stáhnout soubory", "unable_to_edit_exclusion_pattern": "Nelze upravit vzor vyloučení", - "unable_to_edit_import_path": "Nelze upravit cestu importu", "unable_to_empty_trash": "Nelze vyprázdnit koš", "unable_to_enter_fullscreen": "Nelze přejít do režimu celé obrazovky", "unable_to_exit_fullscreen": "Nelze ukončit zobrazení na celou obrazovku", @@ -1056,6 +1061,7 @@ "unable_to_update_user": "Nelze aktualizovat uživatele", "unable_to_upload_file": "Nepodařilo se nahrát soubor" }, + "exclusion_pattern": "Vzor vyloučení", "exif": "Exif", "exif_bottom_sheet_description": "Přidat popis...", "exif_bottom_sheet_description_error": "Chyba při aktualizaci popisu", @@ -1115,6 +1121,7 @@ "folders_feature_description": "Procházení zobrazení složek s fotografiemi a videi v souborovém systému", "forgot_pin_code_question": "Zapomněli jste PIN?", "forward": "Dopředu", + "full_path": "Úplná cesta: {path}", "gcast_enabled": "Google Cast", "gcast_enabled_description": "Tato funkce načítá externí zdroje z Googlu, aby mohla fungovat.", "general": "Obecné", @@ -1196,6 +1203,8 @@ "import_path": "Cesta importu", "in_albums": "{count, plural, one {V # albu} few {Ve # albech} other {V # albech}}", "in_archive": "V archivu", + "in_year": "V roce {year}", + "in_year_selector": "V roce", "include_archived": "Včetně archivovaných", "include_shared_albums": "Včetně sdílených alb", "include_shared_partner_assets": "Včetně sdílených položek partnera", @@ -1232,6 +1241,7 @@ "language_setting_description": "Vyberte upřednostňovaný jazyk", "large_files": "Velké soubory", "last": "Poslední", + "last_months": "{count, plural, one {Poslední měsíc} few {Poslední # měsíce} other {Posledních # měsíců}}", "last_seen": "Naposledy viděno", "latest_version": "Nejnovější verze", "latitude": "Zeměpisná šířka", @@ -1241,6 +1251,8 @@ "let_others_respond": "Nechte ostatní reagovat", "level": "Úroveň", "library": "Knihovna", + "library_add_folder": "Přidat složku", + "library_edit_folder": "Upravit složku", "library_options": "Možnosti knihovny", "library_page_device_albums": "Alba v zařízení", "library_page_new_album": "Nové album", @@ -1312,8 +1324,17 @@ "loop_videos_description": "Povolit automatickou smyčku videa v prohlížeči.", "main_branch_warning": "Používáte vývojovou verzi; důrazně doporučujeme používat verzi z vydání!", "main_menu": "Hlavní nabídka", + "maintenance_description": "Immich byl přepnut do režimu údržby.", + "maintenance_end": "Ukončit režim údržby", + "maintenance_end_error": "Nepodařilo se ukončit režim údržby.", + "maintenance_logged_in_as": "Aktuálně přihlášen jako {user}", + "maintenance_title": "Dočasně nedostupné", "make": "Výrobce", "manage_geolocation": "Spravovat polohu", + "manage_media_access_rationale": "Toto oprávnění je vyžadováno pro správné zacházení s přesunem položek do koše a jejich obnovováním z něj.", + "manage_media_access_settings": "Otevřít nastavení", + "manage_media_access_subtitle": "Povolte aplikaci Immich spravovat a přesouvat soubory médií.", + "manage_media_access_title": "Přístup ke správě médií", "manage_shared_links": "Spravovat sdílené odkazy", "manage_sharing_with_partners": "Správa sdílení s partnery", "manage_the_app_settings": "Správa nastavení aplikace", @@ -1377,6 +1398,7 @@ "more": "Více", "move": "Přesunout", "move_off_locked_folder": "Přesunout z uzamčené složky", + "move_to": "Přesunout do", "move_to_lock_folder_action_prompt": "{count} přidaných do uzamčené složky", "move_to_locked_folder": "Přesunout do uzamčené složky", "move_to_locked_folder_confirmation": "Tyto fotky a videa budou odstraněny ze všech alb a bude je možné zobrazit pouze v uzamčené složce", @@ -1406,6 +1428,7 @@ "new_pin_code": "Nový PIN kód", "new_pin_code_subtitle": "Poprvé přistupujete k uzamčené složce. Vytvořte si kód PIN pro bezpečný přístup na tuto stránku", "new_timeline": "Nová časová osa", + "new_update": "Nová aktualizace", "new_user_created": "Vytvořen nový uživatel", "new_version_available": "NOVÁ VERZE K DISPOZICI", "newest_first": "Nejnovější první", @@ -1421,12 +1444,14 @@ "no_cast_devices_found": "Nebyla nalezena žádná zařízení", "no_checksum_local": "Není k dispozici kontrolní součet - nelze načíst místní položky", "no_checksum_remote": "Není k dispozici kontrolní součet - nelze načíst vzdálenou položku", + "no_devices": "Žádná autorizovaná zařízení", "no_duplicates_found": "Nebyly nalezeny žádné duplicity.", "no_exif_info_available": "Exif není k dispozici", "no_explore_results_message": "Nahrajte další fotografie a prozkoumejte svou sbírku.", "no_favorites_message": "Přidejte si oblíbené položky a rychle najděte své nejlepší obrázky a videa", "no_libraries_message": "Vytvořte si externí knihovnu pro zobrazení fotografií a videí", "no_local_assets_found": "Nebyly nalezeny žádné místní položky s tímto kontrolním součtem", + "no_location_set": "Není nastavena poloha", "no_locked_photos_message": "Fotky a videa v uzamčené složce jsou skryté a při procházení nebo vyhledávání v knihovně se nezobrazují.", "no_name": "Bez jména", "no_notifications": "Žádná oznámení", @@ -1437,6 +1462,7 @@ "no_results_description": "Zkuste použít synonymum nebo obecnější klíčové slovo", "no_shared_albums_message": "Vytvořte si album a sdílejte fotografie a videa s lidmi ve své síti", "no_uploads_in_progress": "Neprobíhá žádné nahrávání", + "not_allowed": "Nepovoleno", "not_available": "Není k dispozici", "not_in_any_album": "Bez alba", "not_selected": "Není vybráno", @@ -1451,8 +1477,8 @@ "notifications": "Oznámení", "notifications_setting_description": "Správa oznámení", "oauth": "OAuth", - "obtainium_configurator": "Obtainium konfigurátor", - "obtainium_configurator_instructions": "Pomocí Obtainia nainstalujte a aktualizujte aplikaci pro Android přímo z vydání na Immich GitHubu. Vytvořte API klíč a vyberte variantu pro vytvoření konfiguračního odkazu Obtainia", + "obtainium_configurator": "Konfigurátor Obtainium", + "obtainium_configurator_instructions": "Pomocí aplikace Obtainium nainstalujte a aktualizujte aplikaci pro Android přímo z vydání na GitHubu Immich. Vytvořte API klíč a vyberte variantu pro vytvoření konfiguračního odkazu pro Obtainium", "ocr": "OCR", "official_immich_resources": "Oficiální zdroje Immich", "offline": "Offline", @@ -1547,6 +1573,8 @@ "photos_count": "{count, plural, one {{count, number} fotka} few {{count, number} fotky} other {{count, number} fotek}}", "photos_from_previous_years": "Fotky z předchozích let", "pick_a_location": "Vyberte polohu", + "pick_custom_range": "Vlastní rozsah", + "pick_date_range": "Vyberte rozsah dat", "pin_code_changed_successfully": "PIN kód byl úspěšně změněn", "pin_code_reset_successfully": "PIN kód úspěšně resetován", "pin_code_setup_successfully": "PIN kód úspěšně nastaven", @@ -1814,6 +1842,8 @@ "server_offline": "Server offline", "server_online": "Server online", "server_privacy": "Ochrana soukromí serveru", + "server_restarting_description": "Tato stránka se za chvíli obnoví.", + "server_restarting_title": "Server se restartuje", "server_stats": "Statistiky serveru", "server_update_available": "K dispozici je aktualizace serveru", "server_version": "Verze serveru", @@ -2027,6 +2057,7 @@ "third_party_resources": "Zdroje třetích stran", "time": "Čas", "time_based_memories": "Časové vzpomínky", + "time_based_memories_duration": "Počet sekund k zobrazení každého obrázku.", "timeline": "Časová osa", "timezone": "Časové pásmo", "to_archive": "Archivovat", @@ -2167,6 +2198,7 @@ "welcome": "Vítejte", "welcome_to_immich": "Vítejte v Immichi", "wifi_name": "Název Wi-Fi", + "workflow": "Pracovní postup", "wrong_pin_code": "Chybný PIN kód", "year": "Rok", "years_ago": "Před {years, plural, one {rokem} other {# lety}}", diff --git a/i18n/cv.json b/i18n/cv.json index fe5bb3c2fc..0dde498d08 100644 --- a/i18n/cv.json +++ b/i18n/cv.json @@ -17,7 +17,6 @@ "add_birthday": "Ҫуралнӑ кун хушӑр", "add_endpoint": "Вӗҫӗмлӗ пӑнчӑ хушар", "add_exclusion_pattern": "Кӑларса пӑрахмалли йӗрке хуш", - "add_import_path": "Импорт ҫулне хуш", "add_location": "Вырӑн хуш", "add_more_users": "Усӑҫсем ытларах хуш", "add_partner": "Мӑшӑр хуш", diff --git a/i18n/da.json b/i18n/da.json index 5bb67dd83d..698951ca28 100644 --- a/i18n/da.json +++ b/i18n/da.json @@ -17,7 +17,6 @@ "add_birthday": "Tilføj en fødselsdag", "add_endpoint": "Tilføj endepunkt", "add_exclusion_pattern": "Tilføj udelukkelsesmønster", - "add_import_path": "Tilføj importsti", "add_location": "Tilføj placering", "add_more_users": "Tilføj flere brugere", "add_partner": "Tilføj partner", @@ -32,6 +31,7 @@ "add_to_album_toggle": "Skift selektion for {album}", "add_to_albums": "Tilføj til albummer", "add_to_albums_count": "Tilføj til albummer({count})", + "add_to_bottom_bar": "Tilføj til", "add_to_shared_album": "Tilføj til delt album", "add_upload_to_stack": "Tilføj upload til stack", "add_url": "Tilføj URL", @@ -112,7 +112,6 @@ "jobs_failed": "{jobCount, plural, one {# fejlet} other {# fejlede}}", "library_created": "Skabte bibliotek: {library}", "library_deleted": "Bibliotek slettet", - "library_import_path_description": "Angiv en mappe, der skal importeres. Denne mappe, inklusive undermapper, vil blive scannet for billeder og videoer.", "library_scanning": "Periodisk scanning", "library_scanning_description": "Konfigurer periodisk biblioteksscanning", "library_scanning_enable_description": "Aktiver periodisk biblioteksscanning", @@ -173,6 +172,10 @@ "machine_learning_smart_search_enabled": "Aktiver smart søgning", "machine_learning_smart_search_enabled_description": "Hvis deaktiveret, vil billeder ikke blive kodet til smart søgning.", "machine_learning_url_description": "URL’en for maskinlæringsserveren. Hvis mere end én URL angives, vil hver server blive forsøgt én ad gangen, indtil en svarer succesfuldt, i rækkefølge fra første til sidste. Servere, der ikke svarer, vil midlertidigt blive ignoreret, indtil de kommer online igen.", + "maintenance_settings": "Vedligeholdelse", + "maintenance_settings_description": "Sæt Immich i vedligeholdelsestilstand.", + "maintenance_start": "Start vedligeholdelsestilstand", + "maintenance_start_error": "Vedligeholdelsestilstand kunne ikke startes.", "manage_concurrency": "Administrer antallet af samtidige opgaver", "manage_log_settings": "Administrer logindstillinger", "map_dark_style": "Mørk tema", @@ -301,7 +304,7 @@ "storage_template_settings_description": "Administrer mappestrukturen og filnavnet for den uploadede mediefil", "storage_template_user_label": "{label} er brugerens Lagringsmærkat", "system_settings": "Systemindstillinger", - "tag_cleanup_job": "\"Tag\" cleanup", + "tag_cleanup_job": "\"Tag\"-oprydning", "template_email_available_tags": "Du kan bruge følgende variabler i din skabelon: {tags}", "template_email_if_empty": "Hvis skabelonen er tom, vil standard-e-mailen blive brugt.", "template_email_invite_album": "Inviterings albumskabelon", @@ -377,11 +380,11 @@ "transcoding_two_pass_encoding_setting_description": "Transkoder af to omgange for at producere bedre indkodede videoer. Når den maksimale bitrate er slået til (som det kræver for at det fungerer med H.264 og HEVC), bruger denne tilstand en bitrateinterval baseret på den maksimale birate og ignorerer CRF. For VP9, kan CRF bruges hvis den maksimale bitrate er slået fra.", "transcoding_video_codec": "Videocodec", "transcoding_video_codec_description": "VP9 har en højere effektivitet og webkompatibilitet, men indkodningen tager længere tid. HEVC har lignende ydelse, men har lavere webkompatibilitet og er hurtig at transkode, men giver meget større filer. AV1 er det mest effektive codec, men mangler understøttelse på ældre enheder.", - "trash_enabled_description": "Aktivér skraldefunktioner", + "trash_enabled_description": "Aktivér \"Papirkurvs\"-funktioner", "trash_number_of_days": "Antal dage", - "trash_number_of_days_description": "Antal dage aktiver i skraldespanden skal beholdes inden de fjernes permanent", - "trash_settings": "Skraldeindstillinger", - "trash_settings_description": "Administrér skraldeindstillinger", + "trash_number_of_days_description": "Antal dage elementer i papirkurven skal beholdes inden de fjernes permanent", + "trash_settings": "Papirkurvs-indstillinger", + "trash_settings_description": "Administrér papirkurvs-indstillinger", "unlink_all_oauth_accounts": "Ophæv link til alle OAuth konti", "unlink_all_oauth_accounts_description": "Husk at fjerne linket til alle OAuth konti før du migrerer til en ny udbyder.", "unlink_all_oauth_accounts_prompt": "Er du sikker på, at du vil ophæve link til alle OAuth konti? Dette vil nulstille OAuth ID for hver bruger og kan ikke fortrydes.", @@ -430,6 +433,7 @@ "age_months": "Alder {months, plural, one {# måned} other {# måneder}}", "age_year_months": "Alder 1 år, {months, plural, one {# måned} other {# måneder}}", "age_years": "{years, plural, other {Alder #}}", + "album": "Album", "album_added": "Album tilføjet", "album_added_notification_setting_description": "Modtag en emailnotifikation når du bliver tilføjet til en delt album", "album_cover_updated": "Albumcover opdateret", @@ -475,6 +479,7 @@ "allow_edits": "Tillad redigeringer", "allow_public_user_to_download": "Tillad offentlige brugere til at hente", "allow_public_user_to_upload": "Tillad offentlige brugere til at uploade", + "allowed": "Tilladt", "alt_text_qr_code": "QR-kode billede", "anti_clockwise": "Mod uret", "api_key": "API-nøgle", @@ -522,7 +527,7 @@ "asset_offline_description": "Denne eksterne mediefil kan ikke længere findes på drevet. Kontakt venligst din Immich-administrator for hjælp.", "asset_restored_successfully": "Elementet blev gendannet succesfuldt", "asset_skipped": "Sprunget over", - "asset_skipped_in_trash": "I skraldespand", + "asset_skipped_in_trash": "I papirkurv", "asset_trashed": "Objekt kasseret", "asset_troubleshoot": "Fejlsøg på objekt", "asset_uploaded": "Uploadet", @@ -894,8 +899,6 @@ "edit_description_prompt": "Vælg venligst en ny beskrivelse:", "edit_exclusion_pattern": "Redigér udelukkelsesmønster", "edit_faces": "Redigér ansigter", - "edit_import_path": "Redigér import-sti", - "edit_import_paths": "Redigér import-stier", "edit_key": "Redigér nøgle", "edit_link": "Rediger link", "edit_location": "Rediger placering", @@ -967,7 +970,6 @@ "failed_to_stack_assets": "Det lykkedes ikke at stable mediefiler", "failed_to_unstack_assets": "Det lykkedes ikke at fjerne gruperingen af mediefiler", "failed_to_update_notification_status": "Kunne ikke uploade notifikations status", - "import_path_already_exists": "Denne importsti findes allerede.", "incorrect_email_or_password": "Forkert email eller kodeord", "paths_validation_failed": "{paths, plural, one {# sti} other {# stier}} slog fejl ved validering", "profile_picture_transparent_pixels": "Profilbilleder kan ikke have gennemsigtige pixels. Zoom venligst ind og/eller flyt billedet.", @@ -977,7 +979,6 @@ "unable_to_add_assets_to_shared_link": "Kan ikke tilføje mediefiler til det delte link", "unable_to_add_comment": "Ikke i stand til at tilføje kommentar", "unable_to_add_exclusion_pattern": "Kunne ikke tilføje udelukkelsesmønster", - "unable_to_add_import_path": "Kunne ikke tilføje importsti", "unable_to_add_partners": "Ikke i stand til at tilføje partnere", "unable_to_add_remove_archive": "Kan Ikke {archived, select, true {fjerne aktiv fra} other {tilføje aktiv til}} Arkiv", "unable_to_add_remove_favorites": "Kan ikke {favorite, select, true {tilføje aktiv til} other {fjerne aktiv fra}} favoritter", @@ -1000,13 +1001,11 @@ "unable_to_delete_asset": "Kan ikke slette mediefil", "unable_to_delete_assets": "Fejl i sletning af mediefiler", "unable_to_delete_exclusion_pattern": "Kunne ikke slette udelukkelsesmønster", - "unable_to_delete_import_path": "Kunne ikke slette importsti", "unable_to_delete_shared_link": "Kunne ikke slette delt link", "unable_to_delete_user": "Ikke i stand til at slette bruger", "unable_to_download_files": "Kan ikke downloade filer", "unable_to_edit_exclusion_pattern": "Kunne ikke redigere udelukkelsesmønster", - "unable_to_edit_import_path": "Kunne ikke redigere importsti", - "unable_to_empty_trash": "Ikke i stand til at tømme skraldespand", + "unable_to_empty_trash": "Ikke i stand til at tømme papirkurv", "unable_to_enter_fullscreen": "Kan ikke aktivere fuldskærmstilstand", "unable_to_exit_fullscreen": "Kan ikke forlade fuldskærmstilstand", "unable_to_get_comments_number": "Kan ikke få antallet af kommentarer", @@ -1031,7 +1030,7 @@ "unable_to_reset_pin_code": "Kunne ikke nulstille din PIN kode", "unable_to_resolve_duplicate": "Kunne ikke opklare duplikat", "unable_to_restore_assets": "Kunne ikke gendanne medierfil", - "unable_to_restore_trash": "Ikke i stand til at gendanne fra skraldespanden", + "unable_to_restore_trash": "Ikke i stand til at gendanne fra papirkurv", "unable_to_restore_user": "Ikke i stand til at gendanne bruger", "unable_to_save_album": "Ikke i stand til at gemme album", "unable_to_save_api_key": "Kunne ikke gemme API-nøgle", @@ -1196,6 +1195,8 @@ "import_path": "Import-sti", "in_albums": "I {count, plural, one {# album} other {# albummer}}", "in_archive": "I arkiv", + "in_year": "I {year}", + "in_year_selector": "I", "include_archived": "Inkluder arkiveret", "include_shared_albums": "Inkludér delte albummer", "include_shared_partner_assets": "Inkludér delte partnermedier", @@ -1232,6 +1233,7 @@ "language_setting_description": "Vælg dit foretrukne sprog", "large_files": "Store filer", "last": "Sidste", + "last_months": "{count, plural, one {Sidste måned} other {Sidste # måneder}}", "last_seen": "Sidst set", "latest_version": "Seneste version", "latitude": "Breddegrad", @@ -1312,8 +1314,17 @@ "loop_videos_description": "Aktivér for at genafspille videoer automatisk i detaljeret visning.", "main_branch_warning": "Du bruger en udviklingsversion; vi anbefaler kraftigt at bruge en udgivelsesversion!", "main_menu": "Hovedmenu", + "maintenance_description": "Immich er blevet sat i vedligeholdelsestilstand.", + "maintenance_end": "Afslut vedligeholdelsestilstand", + "maintenance_end_error": "Vedligeholdelsestilstand kunne ikke afsluttes.", + "maintenance_logged_in_as": "Aktuelt logget ind som {user}", + "maintenance_title": "Midlertidigt Utilgængelig", "make": "Producent", "manage_geolocation": "Administrer placering", + "manage_media_access_rationale": "Denne tilladelse er påkrævet for korrekt håndtering af flytning af elementer til papirkurven og gendannelse af dem fra den.", + "manage_media_access_settings": "Åben instillinger", + "manage_media_access_subtitle": "Tillad Immich appen at administrere og flytte mediefiler.", + "manage_media_access_title": "Mediestyringsadgang", "manage_shared_links": "Håndter delte links", "manage_sharing_with_partners": "Administrér deling med partnere", "manage_the_app_settings": "Administrer appindstillinger", @@ -1377,12 +1388,13 @@ "more": "Mere", "move": "Flyt", "move_off_locked_folder": "Flyt ud af låst mappe", + "move_to": "Flyt til", "move_to_lock_folder_action_prompt": "{count} føjet til den låste mappe", "move_to_locked_folder": "Flyt til låst mappe", "move_to_locked_folder_confirmation": "Disse billeder og videoer vil blive fjernet fra alle albums, og vil kun være synlig fra den låste mappe", "moved_to_archive": "Flyttede {count, plural, one {# mediefil} other {# mediefiler}} til arkivet", "moved_to_library": "Flyttede {count, plural, one {# mediefil} other {# mediefiler}} til biblioteket", - "moved_to_trash": "Flyttet til skraldespand", + "moved_to_trash": "Flyttet til papirkurv", "multiselect_grid_edit_date_time_err_read_only": "Kan ikke redigere datoen på skrivebeskyttet elementer. Springer over", "multiselect_grid_edit_gps_err_read_only": "Kan ikke redigere lokation af skrivebeskyttet elementer. Springer over", "mute_memories": "Dæmp minder", @@ -1406,6 +1418,7 @@ "new_pin_code": "Ny PIN kode", "new_pin_code_subtitle": "Dette er første gang du tilgår den låste mappe. Lav en PIN kode for sikkert at tilgå denne side", "new_timeline": "Ny tidslinje", + "new_update": "Ny opdatering", "new_user_created": "Ny bruger oprettet", "new_version_available": "NY VERSION TILGÆNGELIG", "newest_first": "Nyeste først", @@ -1421,6 +1434,7 @@ "no_cast_devices_found": "Ingen Cast-enheder fundet", "no_checksum_local": "Ingen checksum tilgængelig – kan ikke hente lokale objekter", "no_checksum_remote": "Ingen checksum tilgængelig – kan ikke hente eksterne objekter", + "no_devices": "Ingen godkendte enheder", "no_duplicates_found": "Ingen duplikater fundet.", "no_exif_info_available": "Ingen tilgængelig exif information", "no_explore_results_message": "Upload flere billeder for at udforske din samling.", @@ -1437,6 +1451,7 @@ "no_results_description": "Prøv et synonym eller et mere generelt søgeord", "no_shared_albums_message": "Opret et album for at dele billeder og videoer med personer i dit netværk", "no_uploads_in_progress": "Ingen upload i gang", + "not_allowed": "Ikke tilladt", "not_available": "ikke tilgængelig", "not_in_any_album": "Ikke i noget album", "not_selected": "Ikke valgt", @@ -1547,6 +1562,8 @@ "photos_count": "{count, plural, one {{count, number} Billede} other {{count, number} Billeder}}", "photos_from_previous_years": "Billeder fra tidligere år", "pick_a_location": "Vælg et sted", + "pick_custom_range": "Brugerdefineret periode", + "pick_date_range": "Vælg et datointerval", "pin_code_changed_successfully": "Ændring af PIN kode vellykket", "pin_code_reset_successfully": "Nulstilling af PIN kode vellykket", "pin_code_setup_successfully": "Opsætning af PIN kode vellykket", @@ -1718,7 +1735,7 @@ "save_to_gallery": "Gem til galleri", "saved": "Gemt", "saved_api_key": "Gemt API-nøgle", - "saved_profile": "Gemte profil", + "saved_profile": "Gemt profil", "saved_settings": "Gemte indstillinger", "say_something": "Skriv noget", "scaffold_body_error_occurred": "Der opstod en fejl", @@ -1734,7 +1751,7 @@ "search_by_filename": "Søg efter filnavn eller filtypenavn", "search_by_filename_example": "dvs. IMG_1234.JPG eller PNG", "search_by_ocr": "Søg via OCR", - "search_by_ocr_example": "Latte", + "search_by_ocr_example": "Søg efter tekst i dine billeder", "search_camera_lens_model": "Søg objektiv model...", "search_camera_make": "Søg efter kameraproducent...", "search_camera_model": "Søg efter kameramodel...", @@ -1763,7 +1780,7 @@ "search_options": "Søgemuligheder", "search_page_categories": "Kategorier", "search_page_motion_photos": "Bevægelsesbilleder", - "search_page_no_objects": "Ingen elementer er tilgængelige", + "search_page_no_objects": "Ingen elementinfomation er tilgængelig", "search_page_no_places": "Ingen placeringsinformation er tilgængelig", "search_page_screenshots": "Skærmbilleder", "search_page_search_photos_videos": "Søg i dine billeder og videoer", @@ -1814,6 +1831,8 @@ "server_offline": "Server offline", "server_online": "Server online", "server_privacy": "Serverens privatliv", + "server_restarting_description": "Denne side opdateres om et øjeblik.", + "server_restarting_title": "Serveren genstarter", "server_stats": "Serverstatus", "server_update_available": "Serveropdatering er tilgængelig", "server_version": "Server version", @@ -1843,10 +1862,10 @@ "setting_notifications_single_progress_title": "Vis detaljeret baggrundsuploadstatus", "setting_notifications_subtitle": "Tilpas dine notifikationspræferencer", "setting_notifications_total_progress_subtitle": "Samlet uploadstatus (færdige/samlet antal elementer)", - "setting_notifications_total_progress_title": "Vis samlet baggrundsuploadstatus", + "setting_notifications_total_progress_title": "Vis samlet baggrunds upload status", "setting_video_viewer_auto_play_subtitle": "Begynd automatisk at afspille videoer, når de åbnes", "setting_video_viewer_auto_play_title": "Automatisk afspilning af videoer", - "setting_video_viewer_looping_title": "Looper", + "setting_video_viewer_looping_title": "Genafspilning", "setting_video_viewer_original_video_subtitle": "Når der streames video fra serveren, afspil da den originale selv når en omkodet udgave er tilgængelig. Kan føre til buffering. Videoer, der er tilgængelige lokalt, afspilles i original kvalitet uanset denne indstilling.", "setting_video_viewer_original_video_title": "Tving original video", "settings": "Indstillinger", @@ -1902,7 +1921,7 @@ "shared_link_info_chip_metadata": "EXIF", "shared_link_manage_links": "Håndter delte links", "shared_link_options": "Muligheder for delt link", - "shared_link_password_description": "Kræv et kodeord for at få adgang til dette delte link", + "shared_link_password_description": "Kodeord krævet for at få adgang til dette delte link", "shared_links": "Delte links", "shared_links_description": "Del billeder og videoer med et link", "shared_photos_and_videos_count": "{assetCount, plural, other {# delte billeder & videoer.}}", @@ -1935,8 +1954,8 @@ "show_search_options": "Vis søgeindstillinger", "show_shared_links": "Vis delte links", "show_slideshow_transition": "Vis overgang til diasshow", - "show_supporter_badge": "Supportermærke", - "show_supporter_badge_description": "Vis et supportermærke", + "show_supporter_badge": "Supporter skilt", + "show_supporter_badge_description": "Vis et supporter ikon", "show_text_search_menu": "Vis tekstsøgningsmenu", "shuffle": "Bland", "sidebar": "Sidebjælke", @@ -1971,7 +1990,7 @@ "start_date_before_end_date": "Startdato skal ligge før slutdato", "state": "Stat", "status": "Status", - "stop_casting": "Stop støbning", + "stop_casting": "Stop casting", "stop_motion_photo": "Stopmotionbillede", "stop_photo_sharing": "Stop med at dele dine billeder?", "stop_photo_sharing_description": "{partner} vil ikke længere kunne tilgå dine billeder.", @@ -2027,17 +2046,18 @@ "third_party_resources": "Tredjepartsressourcer", "time": "Tid", "time_based_memories": "Tidsbaserede minder", + "time_based_memories_duration": "Antal sekunder, hvert billede skal vises.", "timeline": "Tidslinje", "timezone": "Tidszone", "to_archive": "Arkivér", "to_change_password": "Skift adgangskode", "to_favorite": "Gør til favorit", "to_login": "Login", - "to_multi_select": "For at vælge flere", - "to_parent": "Gå op", + "to_multi_select": "for at vælge flere", + "to_parent": "Gå et niveau op", "to_select": "for at vælge", "to_trash": "Papirkurv", - "toggle_settings": "Slå indstillinger til eller fra", + "toggle_settings": "Skift indstillinger", "total": "Total", "total_usage": "Samlet forbrug", "trash": "Papirkurv", @@ -2054,13 +2074,13 @@ "trash_page_restore_all": "Gendan alt", "trash_page_select_assets_btn": "Vælg elementer", "trash_page_title": "Papirkurv ({count})", - "trashed_items_will_be_permanently_deleted_after": "Mediefiler i skraldespanden vil blive slettet permanent efter {days, plural, one {# dag} other {# dage}}.", + "trashed_items_will_be_permanently_deleted_after": "Mediefiler i papirkurven vil blive slettet permanent efter {days, plural, one {# dag} other {# dage}}.", "troubleshoot": "Fejlfinding", "type": "Type", "unable_to_change_pin_code": "Kunne ikke ændre PIN kode", "unable_to_check_version": "Kan ikke tjekke app- eller serverversion", "unable_to_setup_pin_code": "Kunne ikke sætte PIN kode", - "unarchive": "Afakivér", + "unarchive": "Af Akivér", "unarchive_action_prompt": "{count} slettet fra Arkiv", "unarchived_count": "{count, plural, other {Uarkiveret #}}", "undo": "Fortryd", @@ -2167,6 +2187,7 @@ "welcome": "Velkommen", "welcome_to_immich": "Velkommen til Immich", "wifi_name": "Wi-Fi navn", + "workflow": "Arbejdsproces", "wrong_pin_code": "Forkert PIN kode", "year": "År", "years_ago": "{years, plural, one {# år} other {# år}} siden", diff --git a/i18n/de.json b/i18n/de.json index 0cae9c0762..fc6270b138 100644 --- a/i18n/de.json +++ b/i18n/de.json @@ -17,7 +17,6 @@ "add_birthday": "Geburtsdatum hinzufügen", "add_endpoint": "Endpunkt hinzufügen", "add_exclusion_pattern": "Ausschlussmuster hinzufügen", - "add_import_path": "Importpfad hinzufügen", "add_location": "Standort hinzufügen", "add_more_users": "Weitere Nutzer hinzufügen", "add_partner": "Partner hinzufügen", @@ -112,7 +111,6 @@ "jobs_failed": "{jobCount, plural, other {# fehlgeschlagen}}", "library_created": "Bibliothek erstellt: {library}", "library_deleted": "Bibliothek gelöscht", - "library_import_path_description": "Gib einen Ordner für den Import an. Dieser Ordner, einschließlich der Unterordner, wird nach Bildern und Videos durchsucht.", "library_scanning": "Periodisches Scannen", "library_scanning_description": "Regelmäßiges Durchsuchen der Bibliothek einstellen", "library_scanning_enable_description": "Regelmäßiges Scannen der Bibliothek aktivieren", @@ -150,7 +148,7 @@ "machine_learning_max_detection_distance_description": "Maximaler Unterschied zwischen zwei Bildern, um sie als Duplikate zu betrachten, im Bereich von 0,001-0,1. Bei höheren Werten werden mehr Duplikate erkannt, aber es kann zu falsch-positiven Ergebnissen kommen.", "machine_learning_max_recognition_distance": "Maximaler Erkennungsabstand", "machine_learning_max_recognition_distance_description": "Maximaler Abstand zwischen zwei Gesichtern, die als dieselbe Person angesehen werden, von 0-2. Ein niedrigerer Wert kann verhindern, dass zwei Personen als dieselbe Person eingestuft werden, während ein höherer Wert verhindern kann, dass ein und dieselbe Person als zwei verschiedene Personen eingestuft wird. Bitte beachte dabei, dass es einfacher ist, zwei Personen zu verschmelzen, als eine Person in zwei zu teilen, also wähle nach Möglichkeit einen niedrigeren Schwellenwert.", - "machine_learning_min_detection_score": "Minimale Erkennungsrate", + "machine_learning_min_detection_score": "Mindest-Erkennungs Wert", "machine_learning_min_detection_score_description": "Minimale Konfidenzrate für die Erkennung eines Gesichts von 0-1. Bei niedrigeren Werten werden mehr Gesichter erkannt, aber es kann zu falsch-positiven Ergebnissen kommen.", "machine_learning_min_recognized_faces": "Mindestens erkannte Gesichter", "machine_learning_min_recognized_faces_description": "Die Mindestanzahl von erkannten Gesichtern, damit eine Person erstellt werden kann. Eine Erhöhung dieses Wertes macht die Gesichtserkennung präziser, erhöht aber die Wahrscheinlichkeit, dass ein Gesicht nicht zu einer Person zugeordnet wird.", @@ -162,7 +160,7 @@ "machine_learning_ocr_max_resolution_description": "Vorschauen über dieser Auflösung werden unter Beibehaltung des Seitenverhältnisses verkleinert. Höhere Werte sind genauer, benötigen jedoch mehr Zeit für die Verarbeitung und verbrauchen mehr Speicher.", "machine_learning_ocr_min_detection_score": "Minimaler Erkennungswert", "machine_learning_ocr_min_detection_score_description": "Minimale Konfidenzrate für die Texterkennung von 0–1. Niedrigere Werte führen dazu, dass mehr Text erkannt wird, können jedoch zu falsch-positiven Ergebnissen führen.", - "machine_learning_ocr_min_recognition_score": "Minimale Erkennungsrate", + "machine_learning_ocr_min_recognition_score": "Mindest-Erkennungswert", "machine_learning_ocr_min_score_recognition_description": "Minimale Konfidenzrate für die Erkennung von erkanntem Text von 0–1. Niedrigere Werte führen dazu, dass mehr Text erkannt wird, können jedoch zu falsch-positiven Ergebnissen führen.", "machine_learning_ocr_model": "OCR Modell", "machine_learning_ocr_model_description": "Server Modelle sind genauer als mobile Modelle, brauchen aber länger zur Verarbeitung und brauchen mehr Speicher.", @@ -475,6 +473,7 @@ "allow_edits": "Bearbeiten erlauben", "allow_public_user_to_download": "Erlaube öffentlichen Benutzern, herunterzuladen", "allow_public_user_to_upload": "Erlaube öffentlichen Benutzern, hochzuladen", + "allowed": "Erlaubt", "alt_text_qr_code": "QR-Code Bild", "anti_clockwise": "Gegen den Uhrzeigersinn", "api_key": "API-Schlüssel", @@ -894,8 +893,6 @@ "edit_description_prompt": "Bitte wähle eine neue Beschreibung:", "edit_exclusion_pattern": "Ausschlussmuster bearbeiten", "edit_faces": "Gesichter bearbeiten", - "edit_import_path": "Importpfad bearbeiten", - "edit_import_paths": "Importpfade bearbeiten", "edit_key": "Schlüssel bearbeiten", "edit_link": "Link bearbeiten", "edit_location": "Standort bearbeiten", @@ -967,7 +964,6 @@ "failed_to_stack_assets": "Dateien konnten nicht gestapelt werden", "failed_to_unstack_assets": "Dateien konnten nicht entstapelt werden", "failed_to_update_notification_status": "Benachrichtigungsstatus aktualisieren fehlgeschlagen", - "import_path_already_exists": "Dieser Importpfad existiert bereits.", "incorrect_email_or_password": "Ungültige E-Mail oder Passwort", "paths_validation_failed": "{paths, plural, one {# Pfad konnte} other {# Pfade konnten}} nicht validiert werden", "profile_picture_transparent_pixels": "Profilbilder dürfen keine transparenten Pixel haben. Bitte zoome heran und/oder verschiebe das Bild.", @@ -977,7 +973,6 @@ "unable_to_add_assets_to_shared_link": "Datei konnte nicht zum geteilten Link hinzugefügt werden", "unable_to_add_comment": "Es kann kein Kommentar hinzufügt werden", "unable_to_add_exclusion_pattern": "Ausschlussmuster konnte nicht hinzugefügt werden", - "unable_to_add_import_path": "Importpfad konnte nicht hinzugefügt werden", "unable_to_add_partners": "Es können keine Partner hinzufügt werden", "unable_to_add_remove_archive": "Datei konnte nicht {archived, select, true {aus dem Archiv entfernt} other {zum Archiv hinzugefügt}} werden", "unable_to_add_remove_favorites": "Datei konnte nicht {favorite, select, true {von den Favoriten entfernt} other {zu den Favoriten hinzugefügt}} werden", @@ -1000,12 +995,10 @@ "unable_to_delete_asset": "Datei konnte nicht gelöscht werden", "unable_to_delete_assets": "Fehler beim Löschen von Dateien", "unable_to_delete_exclusion_pattern": "Ausschlussmuster konnte nicht gelöscht werden", - "unable_to_delete_import_path": "Importpfad konnte nicht gelöscht werden", "unable_to_delete_shared_link": "Geteilter Link kann nicht gelöscht werden", "unable_to_delete_user": "Nutzer konnte nicht gelöscht werden", "unable_to_download_files": "Dateien konnten nicht heruntergeladen werden", "unable_to_edit_exclusion_pattern": "Ausschlussmuster konnte nicht bearbeitet werden", - "unable_to_edit_import_path": "Importpfad konnte nicht bearbeitet werden", "unable_to_empty_trash": "Papierkorb konnte nicht geleert werden", "unable_to_enter_fullscreen": "Vollbildmodus kann nicht aktiviert werden", "unable_to_exit_fullscreen": "Vollbildmodus kann nicht deaktiviert werden", @@ -1196,6 +1189,8 @@ "import_path": "Importpfad", "in_albums": "In {count, plural, one {# Album} other {# Alben}}", "in_archive": "Im Archiv", + "in_year": "Im Jahr {year}", + "in_year_selector": "Im Jahr", "include_archived": "Archivierte Dateien einbeziehen", "include_shared_albums": "Freigegebene Alben einbeziehen", "include_shared_partner_assets": "Geteilte Partner-Dateien mit einbeziehen", @@ -1232,6 +1227,7 @@ "language_setting_description": "Wähle deine bevorzugte Sprache", "large_files": "Große Dateien", "last": "Letzte", + "last_months": "{count, plural, one {Letzter Monat} other {Letzte # Monate}}", "last_seen": "Zuletzt gesehen", "latest_version": "Aktuelle Version", "latitude": "Breitengrad", @@ -1301,7 +1297,7 @@ "login_form_server_empty": "Serveradresse eingeben.", "login_form_server_error": "Es Konnte sich nicht mit dem Server verbunden werden.", "login_has_been_disabled": "Die Anmeldung wurde deaktiviert.", - "login_password_changed_error": "Fehler beim Ändern deines Passwort", + "login_password_changed_error": "Fehler beim Ändern deines Passwortes", "login_password_changed_success": "Passwort erfolgreich geändert", "logout_all_device_confirmation": "Bist du sicher, dass du alle Geräte abmelden willst?", "logout_this_device_confirmation": "Bist du sicher, dass du dieses Gerät abmelden willst?", @@ -1314,6 +1310,10 @@ "main_menu": "Hauptmenü", "make": "Marke", "manage_geolocation": "Standort verwalten", + "manage_media_access_rationale": "Diese Berechtigung wird benötigt, um Dateien ordnungsgemäß in den Papierkorb schieben und daraus wiederherstellen zu können.", + "manage_media_access_settings": "Einstellungen öffnen", + "manage_media_access_subtitle": "Erlaube Immich, Mediendateien zu verwalten und zu verschieben.", + "manage_media_access_title": "Verwaltung von Mediendateien", "manage_shared_links": "Freigegebene Links verwalten", "manage_sharing_with_partners": "Gemeinsame Nutzung mit Partnern verwalten", "manage_the_app_settings": "App-Einstellungen verwalten", @@ -1361,7 +1361,7 @@ "menu": "Menü", "merge": "Zusammenführen", "merge_people": "Personen zusammenführen", - "merge_people_limit": "Du kannst nur bis zu 5 Gesichter auf einmal zusammenführen", + "merge_people_limit": "Du kannst maximal 5 Gesichter auf einmal zusammenführen", "merge_people_prompt": "Willst du diese Personen zusammenführen? Diese Aktion kann nicht rückgängig gemacht werden.", "merge_people_successfully": "Personen erfolgreich zusammengeführt", "merged_people_count": "{count, plural, one {# Person} other {# Personen}} zusammengefügt", @@ -1377,6 +1377,7 @@ "more": "Mehr", "move": "Verschieben", "move_off_locked_folder": "Aus dem gesperrten Ordner verschieben", + "move_to": "Verschieben nach", "move_to_lock_folder_action_prompt": "{count} zum gesperrten Ordner hinzugefügt", "move_to_locked_folder": "In den gesperrten Ordner verschieben", "move_to_locked_folder_confirmation": "Diese Fotos und Videos werden aus allen Alben entfernt und können nur noch im gesperrten Ordner angezeigt werden", @@ -1406,6 +1407,7 @@ "new_pin_code": "Neuer PIN-Code", "new_pin_code_subtitle": "Dies ist dein erster Zugriff auf den gesperrten Ordner. Erstelle einen PIN-Code für den sicheren Zugriff auf diese Seite", "new_timeline": "Neue Zeitleiste", + "new_update": "Neues Update", "new_user_created": "Neuer Benutzer wurde erstellt", "new_version_available": "NEUE VERSION VERFÜGBAR", "newest_first": "Neueste zuerst", @@ -1421,6 +1423,7 @@ "no_cast_devices_found": "Keine Geräte zum Übertragen gefunden", "no_checksum_local": "Prüfsumme nicht verfügbar - kann lokale Datei/en nicht laden", "no_checksum_remote": "Prüfsumme nicht verfügbar - kann entfernte Datei/en nicht laden", + "no_devices": "Keine verwendeten Geräte", "no_duplicates_found": "Es wurden keine Duplikate gefunden.", "no_exif_info_available": "Keine EXIF-Informationen vorhanden", "no_explore_results_message": "Lade weitere Fotos hoch, um deine Sammlung zu erkunden.", @@ -1437,6 +1440,7 @@ "no_results_description": "Versuche es mit einem Synonym oder einem allgemeineren Stichwort", "no_shared_albums_message": "Erstelle ein Album, um Fotos und Videos mit Personen in deinem Netzwerk zu teilen", "no_uploads_in_progress": "Kein Upload in Bearbeitung", + "not_allowed": "Nicht erlaubt", "not_available": "N/A", "not_in_any_album": "In keinem Album", "not_selected": "Nicht ausgewählt", @@ -1547,6 +1551,8 @@ "photos_count": "{count, plural, one {{count, number} Foto} other {{count, number} Fotos}}", "photos_from_previous_years": "Fotos von vorherigen Jahren", "pick_a_location": "Wähle einen Ort", + "pick_custom_range": "Benutzerdefinierter Zeitraum", + "pick_date_range": "Wähle einen Zeitraum", "pin_code_changed_successfully": "PIN-Code erfolgreich geändert", "pin_code_reset_successfully": "PIN-Code erfolgreich zurückgesetzt", "pin_code_setup_successfully": "PIN-Code erfolgreich festgelegt", @@ -2027,6 +2033,7 @@ "third_party_resources": "Drittanbieter-Quellen", "time": "Zeit", "time_based_memories": "Zeitbasierte Erinnerungen", + "time_based_memories_duration": "Anzahl der Sekunden, die jedes Bild angezeigt wird.", "timeline": "Zeitleiste", "timezone": "Zeitzone", "to_archive": "Archivieren", diff --git a/i18n/el.json b/i18n/el.json index 0ff48a02ba..ffe33c6d02 100644 --- a/i18n/el.json +++ b/i18n/el.json @@ -17,7 +17,6 @@ "add_birthday": "Προσθήκη γενεθλίων", "add_endpoint": "Προσθήκη τελικού σημείου", "add_exclusion_pattern": "Προσθήκη μοτίβου αποκλεισμού", - "add_import_path": "Προσθήκη μονοπατιού εισαγωγής", "add_location": "Προσθήκη τοποθεσίας", "add_more_users": "Προσθήκη επιπλέον χρηστών", "add_partner": "Προσθήκη συνεργάτη", @@ -112,7 +111,6 @@ "jobs_failed": "{jobCount, plural, one {# απέτυχε} other {# απέτυχαν}}", "library_created": "Δημιουργήθηκε η βιβλιοθήκη: {library}", "library_deleted": "Η βιβλιοθήκη διαγράφηκε", - "library_import_path_description": "Καθορίστε έναν φάκελο για εισαγωγή. Αυτός ο φάκελος, συμπεριλαμβανομένων των υποφακέλων του, θα σαρωθεί για εικόνες και βίντεο.", "library_scanning": "Περιοδική Σάρωση", "library_scanning_description": "Ρύθμιση περιοδικής σάρωσης βιβλιοθήκης", "library_scanning_enable_description": "Ενεργοποίηση περιοδικής σάρωσης βιβλιοθήκης", @@ -873,8 +871,6 @@ "edit_description_prompt": "Παρακαλώ επιλέξτε νέα περιγραφή:", "edit_exclusion_pattern": "Επεξεργασία μοτίβου αποκλεισμού", "edit_faces": "Επεξεργασία προσώπων", - "edit_import_path": "Επεξεργασία διαδρομής εισαγωγής", - "edit_import_paths": "Επεξεργασία Διαδρομών Εισαγωγής", "edit_key": "Επεξεργασία κλειδιού", "edit_link": "Επεξεργασία συνδέσμου", "edit_location": "Επεξεργασία τοποθεσίας", @@ -946,7 +942,6 @@ "failed_to_stack_assets": "Αποτυχία στην συμπίεση των στοιχείων", "failed_to_unstack_assets": "Αποτυχία στην αποσυμπίεση των στοιχείων", "failed_to_update_notification_status": "Αποτυχία ενημέρωσης της κατάστασης ειδοποίησης", - "import_path_already_exists": "Αυτή η διαδρομή εισαγωγής υπάρχει ήδη.", "incorrect_email_or_password": "Λανθασμένο email ή κωδικός πρόσβασης", "paths_validation_failed": "{paths, plural, one {# διαδρομή} other {# διαδρομές}} απέτυχαν κατά την επικύρωση", "profile_picture_transparent_pixels": "Οι εικόνες προφίλ δεν μπορούν να έχουν διαφανή εικονοστοιχεία. Παρακαλώ μεγεθύνετε ή/και μετακινήστε την εικόνα.", @@ -956,7 +951,6 @@ "unable_to_add_assets_to_shared_link": "Αδυναμία προσθήκης στοιχείου στον κοινόχρηστο σύνδεσμο", "unable_to_add_comment": "Αδυναμία προσθήκης σχολίου", "unable_to_add_exclusion_pattern": "Αδυναμία προσθήκης μοτίβου αποκλεισμού", - "unable_to_add_import_path": "Αδυναμία προσθήκης διαδρομής εισαγωγής", "unable_to_add_partners": "Αδυναμία προσθήκης συνεργατών", "unable_to_add_remove_archive": "Αδυναμία {archived, select, true {αφαίρεσης του στοιχείου από το} other {προσθήκης του στοιχείου στο}} αρχείο", "unable_to_add_remove_favorites": "Αδυναμία {favorite, select, true {προσθήκης του στοιχείου στα} other {αφαίρεσης του στοιχείου από τα}} αγαπημένα", @@ -979,12 +973,10 @@ "unable_to_delete_asset": "Αδυναμία διαγραφής στοιχείου", "unable_to_delete_assets": "Σφάλμα κατα τη διαγραφή στοιχείων", "unable_to_delete_exclusion_pattern": "Αδυναμία διαγραφής μοτίβου αποκλεισμού", - "unable_to_delete_import_path": "Αδυναμία διαγραφής διαδρομής εισαγωγής", "unable_to_delete_shared_link": "Αδυναμία διαγραφής κοινόχρηστου συνδέσμου", "unable_to_delete_user": "Αδυναμία διαγραφής χρήστη", "unable_to_download_files": "Αδυναμία λήψης αρχείων", "unable_to_edit_exclusion_pattern": "Αδυναμία επεξεργασίας μοτίβου αποκλεισμού", - "unable_to_edit_import_path": "Αδυναμία επεξεργασίας διαδρομής εισαγωγής", "unable_to_empty_trash": "Αδυναμία αδειάσματος του κάδου απορριμμάτων", "unable_to_enter_fullscreen": "Αδυναμία μετάβασης σε πλήρη οθόνη", "unable_to_exit_fullscreen": "Αδυναμία εξόδου από πλήρη οθόνη", diff --git a/i18n/es.json b/i18n/es.json index c2260b2012..a5766eed93 100644 --- a/i18n/es.json +++ b/i18n/es.json @@ -17,7 +17,6 @@ "add_birthday": "Agregar un cumpleaños", "add_endpoint": "Agregar endpoint", "add_exclusion_pattern": "Agregar patrón de exclusión", - "add_import_path": "Agregar ruta de importación", "add_location": "Agregar ubicación", "add_more_users": "Agregar más usuarios", "add_partner": "Agregar compañero", @@ -32,6 +31,7 @@ "add_to_album_toggle": "Alternar selección para el {album}", "add_to_albums": "Incluir en álbumes", "add_to_albums_count": "Incluir en {count} álbumes", + "add_to_bottom_bar": "Añadir a", "add_to_shared_album": "Incluir en álbum compartido", "add_upload_to_stack": "Añadir archivo y apilar", "add_url": "Agregar URL", @@ -112,13 +112,17 @@ "jobs_failed": "{jobCount, plural, one {# fallido} other {# fallidos}}", "library_created": "La biblioteca ha sido creada: {library}", "library_deleted": "Biblioteca eliminada", - "library_import_path_description": "Indica una carpeta para importar. Esta carpeta y sus subcarpetas serán escaneadas en busca de elementos multimedia.", + "library_details": "Detalles de la biblioteca", + "library_folder_description": "Especifica una carpeta para importar. Esta carpeta, incluidas sus subcarpetas, se analizará en busca de imágenes y vídeos.", + "library_remove_exclusion_pattern_prompt": "¿Estás seguro de que quieres eliminar este patrón de exclusión?", + "library_remove_folder_prompt": "¿Estás seguro de que quieres eliminar esta carpeta de importación?", "library_scanning": "Escaneo periódico", "library_scanning_description": "Configurar el escaneo periódico de la biblioteca", "library_scanning_enable_description": "Activar el escaneo periódico de la biblioteca", "library_settings": "Biblioteca externa", "library_settings_description": "Administrar configuración biblioteca externa", "library_tasks_description": "Buscar elementos nuevos o modificados en bibliotecas externas", + "library_updated": "Biblioteca actualizada", "library_watching_enable_description": "Vigilar las bibliotecas externas para detectar cambios en los archivos", "library_watching_settings": "Vigilancia de la biblioteca [EXPERIMENTAL]", "library_watching_settings_description": "Vigilar automaticamente en busca de archivos modificados", @@ -173,6 +177,10 @@ "machine_learning_smart_search_enabled": "Habilitar búsqueda inteligente", "machine_learning_smart_search_enabled_description": "Al desactivarlo las imágenes no se procesarán para usar la búsqueda inteligente.", "machine_learning_url_description": "La URL del servidor de aprendizaje automático. Si se proporciona más de una URL se intentará acceder a cada servidor sucesivamente hasta que uno responda correctamente en el orden especificado. Los servidores que no respondan serán ignorados temporalmente hasta que vuelvan a estar en línea.", + "maintenance_settings": "Mantenimiento", + "maintenance_settings_description": "Poner Immich en modo de mantenimiento.", + "maintenance_start": "Iniciar el modo de mantenimiento", + "maintenance_start_error": "Error al iniciar el modo de mantenimiento.", "manage_concurrency": "Ajustes de concurrencia", "manage_log_settings": "Administrar la configuración de los registros", "map_dark_style": "Estilo oscuro", @@ -430,6 +438,7 @@ "age_months": "Tiempo {months, plural, one {# mes} other {# meses}}", "age_year_months": "1 año, {months, plural, one {# mes} other {# meses}}", "age_years": "Edad {years, plural, one {# año} other {# años}}", + "album": "Álbum", "album_added": "Álbum agregado", "album_added_notification_setting_description": "Reciba una notificación por correo electrónico cuando lo agreguen a un álbum compartido", "album_cover_updated": "Portada del álbum actualizada", @@ -475,6 +484,7 @@ "allow_edits": "Permitir edición", "allow_public_user_to_download": "Permitir descargas a los usuarios públicos", "allow_public_user_to_upload": "Permitir a los usuarios públicos subir fotos", + "allowed": "Permitido", "alt_text_qr_code": "Código QR", "anti_clockwise": "En sentido antihorario", "api_key": "Clave API", @@ -487,7 +497,7 @@ "app_bar_signout_dialog_title": "Cerrar sesión", "app_download_links": "Enlaces de Descarga de la Aplicación", "app_settings": "Ajustes de la aplicacion", - "app_stores": "App Stores", + "app_stores": "Tiendas de Aplicaciones", "app_update_available": "Actualización de aplicación está disponible", "appears_in": "Aparece en", "apply_count": "Aplicar ({count, number})", @@ -496,14 +506,14 @@ "archive_or_unarchive_photo": "Archivar o restaurar foto", "archive_page_no_archived_assets": "No se encontraron elementos archivados", "archive_page_title": "Archivo ({count})", - "archive_size": "Tamaño del archivo", + "archive_size": "Tamaño de archivo comprimido", "archive_size_description": "Configure el tamaño del archivo para descargas (en GB)", "archived": "Archivado", "archived_count": "{count, plural, one {# archivado} other {# archivados}}", "are_these_the_same_person": "¿Son la misma persona?", - "are_you_sure_to_do_this": "¿Estas seguro de que quieres hacer esto?", - "asset_action_delete_err_read_only": "No se pueden borrar el archivo(s) de solo lectura, omitiendo", - "asset_action_share_err_offline": "No se pudo obtener el archivo(s) sin conexión, omitiendo", + "are_you_sure_to_do_this": "¿Estás seguro de que quieres hacer esto?", + "asset_action_delete_err_read_only": "No se puede borrar archivo(s) de solo lectura, omitiendo", + "asset_action_share_err_offline": "No se pudo obtener archivo(s) sin conexión, omitiendo", "asset_added_to_album": "Agregado al álbum", "asset_adding_to_album": "Agregando al álbum…", "asset_description_updated": "La descripción del elemento ha sido actualizada", @@ -669,7 +679,7 @@ "cannot_merge_people": "No se pueden fusionar personas", "cannot_undo_this_action": "¡No puedes deshacer esta acción!", "cannot_update_the_description": "No se puede actualizar la descripción", - "cast": "Enviar contenido", + "cast": "Transmitir", "cast_description": "Configura los posibles destinos de retransmisión", "change_date": "Cambiar fecha", "change_description": "Cambiar descripción", @@ -744,7 +754,7 @@ "control_bottom_app_bar_edit_location": "Editar ubicación", "control_bottom_app_bar_edit_time": "Editar fecha y hora", "control_bottom_app_bar_share_link": "Enlace para compartir", - "control_bottom_app_bar_share_to": "Enviar", + "control_bottom_app_bar_share_to": "Compartir a", "control_bottom_app_bar_trash_from_immich": "Mover a la papelera", "copied_image_to_clipboard": "Imagen copiada al portapapeles.", "copied_to_clipboard": "¡Copiado al portapapeles!", @@ -894,8 +904,6 @@ "edit_description_prompt": "Por favor selecciona una nueva descripción:", "edit_exclusion_pattern": "Editar patrón de exclusión", "edit_faces": "Editar rostros", - "edit_import_path": "Editar ruta de importación", - "edit_import_paths": "Editar ruta de importación", "edit_key": "Editar clave", "edit_link": "Editar enlace", "edit_location": "Editar ubicación", @@ -967,8 +975,8 @@ "failed_to_stack_assets": "No se pudieron agrupar los archivos", "failed_to_unstack_assets": "Error al desagrupar los archivos", "failed_to_update_notification_status": "Error al actualizar el estado de la notificación", - "import_path_already_exists": "Esta ruta de importación ya existe.", "incorrect_email_or_password": "Contraseña o email incorrecto", + "library_folder_already_exists": "Esta ruta de importación ya existe.", "paths_validation_failed": "Falló la validación en {paths, plural, one {# carpeta} other {# carpetas}}", "profile_picture_transparent_pixels": "Las imágenes de perfil no pueden tener píxeles transparentes. Por favor amplíe y/o mueva la imagen.", "quota_higher_than_disk_size": "Se ha establecido una cuota superior al tamaño del disco", @@ -977,7 +985,6 @@ "unable_to_add_assets_to_shared_link": "No se pueden agregar archivos al enlace compartido", "unable_to_add_comment": "No se puede agregar comentario", "unable_to_add_exclusion_pattern": "No se puede agregar el patrón de exclusión", - "unable_to_add_import_path": "No se puede agregar la ruta de importación", "unable_to_add_partners": "No se pueden agregar compañeros", "unable_to_add_remove_archive": "No se puede archivar {archived, select, true {remove asset from} other {add asset to}}", "unable_to_add_remove_favorites": "{favorite, select, true {No se pudo agregar el elemento a los favoritos} other {No se pudo eliminar el elemento de los favoritos}}", @@ -1000,12 +1007,10 @@ "unable_to_delete_asset": "No se puede eliminar el archivo", "unable_to_delete_assets": "Error al eliminar archivos", "unable_to_delete_exclusion_pattern": "No se puede eliminar el patrón de exclusión", - "unable_to_delete_import_path": "No se puede eliminar la ruta de importación", "unable_to_delete_shared_link": "No se puede eliminar el enlace compartido", "unable_to_delete_user": "No se puede eliminar el usuario", "unable_to_download_files": "No se pueden descargar archivos", "unable_to_edit_exclusion_pattern": "No se puede editar el patrón de exclusión", - "unable_to_edit_import_path": "No se puede editar la ruta de importación", "unable_to_empty_trash": "No se puede vaciar la papelera", "unable_to_enter_fullscreen": "No se puede acceder al modo pantalla completa", "unable_to_exit_fullscreen": "No se puede salir del modo pantalla completa", @@ -1056,6 +1061,7 @@ "unable_to_update_user": "No se puede actualizar el usuario", "unable_to_upload_file": "Error al subir el archivo" }, + "exclusion_pattern": "Patrón de exclusión", "exif": "EXIF", "exif_bottom_sheet_description": "Agregar descripción…", "exif_bottom_sheet_description_error": "Error al actualizar la descripción", @@ -1115,6 +1121,7 @@ "folders_feature_description": "Explorar la vista de carpetas para las fotos y los videos en el sistema de archivos", "forgot_pin_code_question": "¿Olvidaste tu código PIN?", "forward": "Avanzar", + "full_path": "Ruta completa: {path}", "gcast_enabled": "Google Cast", "gcast_enabled_description": "Esta funcionalidad carga recursos externos desde Google para poder funcionar.", "general": "General", @@ -1196,6 +1203,8 @@ "import_path": "Importar ruta", "in_albums": "En {count, plural, one {# álbum} other {# álbumes}}", "in_archive": "En archivo", + "in_year": "En {year}", + "in_year_selector": "En", "include_archived": "Incluir archivados", "include_shared_albums": "Incluir álbumes compartidos", "include_shared_partner_assets": "Incluir elementos compartidos por compañeros", @@ -1232,6 +1241,7 @@ "language_setting_description": "Selecciona tu idioma preferido", "large_files": "Archivos Grandes", "last": "Último", + "last_months": "{count, plural, one {Último mes} other {Últimos # meses}}", "last_seen": "Ultima vez visto", "latest_version": "Última versión", "latitude": "Latitud", @@ -1241,6 +1251,8 @@ "let_others_respond": "Permitir que otros respondan", "level": "Nivel", "library": "Biblioteca", + "library_add_folder": "Añadir carpeta", + "library_edit_folder": "Editar carpeta", "library_options": "Opciones de biblioteca", "library_page_device_albums": "Álbumes en el dispositivo", "library_page_new_album": "Nuevo álbum", @@ -1312,8 +1324,17 @@ "loop_videos_description": "Habilite la reproducción automática de un video en el visor de detalles.", "main_branch_warning": "Está utilizando una versión de desarrollo; ¡le recomendamos encarecidamente que utilice una versión de lanzamiento!", "main_menu": "Menú principal", + "maintenance_description": "Immich se ha puesto en modo de mantenimiento.", + "maintenance_end": "Finalizar el modo de mantenimiento", + "maintenance_end_error": "Error al finalizar el modo de mantenimiento.", + "maintenance_logged_in_as": "Sesión iniciada actualmente como {user}", + "maintenance_title": "No disponible temporalmente", "make": "Marca", "manage_geolocation": "Administrar ubicación", + "manage_media_access_rationale": "Este permiso se requiere para mover recursos a la papelera correctamente, así como para restaurarlos desde la misma.", + "manage_media_access_settings": "Abrir configuración", + "manage_media_access_subtitle": "Permitir a la app Immich gestionar y mover archivos multimedia.", + "manage_media_access_title": "Acceso a gestión de archivos multimedia", "manage_shared_links": "Administrar enlaces compartidos", "manage_sharing_with_partners": "Gestionar el uso compartido con compañeros", "manage_the_app_settings": "Administrar la configuración de la aplicación", @@ -1377,6 +1398,7 @@ "more": "Mas", "move": "Mover", "move_off_locked_folder": "Sacar de la carpeta protegida", + "move_to": "Mover a", "move_to_lock_folder_action_prompt": "{count} agregado(s) a la carpeta protegida", "move_to_locked_folder": "Mover a la carpeta protegida", "move_to_locked_folder_confirmation": "Estas fotos y vídeos se eliminarán de todos los álbumes; solo se podrán ver en la carpeta protegida", @@ -1406,6 +1428,7 @@ "new_pin_code": "Nuevo PIN", "new_pin_code_subtitle": "Esta es la primera vez que accedes a la carpeta protegida. Crea un código PIN seguro para acceder a esta página", "new_timeline": "Nueva Línea de tiempo", + "new_update": "Nueva actualización", "new_user_created": "Nuevo usuario creado", "new_version_available": "NUEVA VERSIÓN DISPONIBLE", "newest_first": "El más reciente primero", @@ -1421,12 +1444,14 @@ "no_cast_devices_found": "No se encontraron dispositivos de transmisión", "no_checksum_local": "Suma de verificación no disponible. No se pueden obtener los elementos locales", "no_checksum_remote": "Suma de verificación no disponible. No se puede obtener el elemento remoto", + "no_devices": "Dispositivos no autorizados", "no_duplicates_found": "No se encontraron duplicados.", "no_exif_info_available": "No hay información exif disponible", "no_explore_results_message": "Sube más fotos para explorar tu colección.", "no_favorites_message": "Agregue favoritos para encontrar rápidamente sus mejores fotos y videos", "no_libraries_message": "Crea una biblioteca externa para ver tus fotos y vídeos", "no_local_assets_found": "No se encontraron elementos locales con esta suma de comprobación", + "no_location_set": "No se ha establecido ninguna ubicación", "no_locked_photos_message": "Las fotos y los vídeos de la carpeta protegida se mantienen ocultos; no aparecerán cuando veas o busques elementos en tu biblioteca.", "no_name": "Sin nombre", "no_notifications": "Ninguna notificación", @@ -1437,6 +1462,7 @@ "no_results_description": "Pruebe con un sinónimo o una palabra clave más general", "no_shared_albums_message": "Crea un álbum para compartir fotos y vídeos con personas de tu red", "no_uploads_in_progress": "No hay cargas en progreso", + "not_allowed": "No permitido", "not_available": "N/D", "not_in_any_album": "Sin álbum", "not_selected": "No seleccionado", @@ -1547,6 +1573,8 @@ "photos_count": "{count, plural, one {{count, number} Foto} other {{count, number} Fotos}}", "photos_from_previous_years": "Fotos de años anteriores", "pick_a_location": "Elige una ubicación", + "pick_custom_range": "Rango personalizado", + "pick_date_range": "Seleccione un rango de fechas", "pin_code_changed_successfully": "PIN cambiado exitosamente", "pin_code_reset_successfully": "PIN restablecido exitosamente", "pin_code_setup_successfully": "PIN establecido exitosamente", @@ -1814,6 +1842,8 @@ "server_offline": "Servidor desconectado", "server_online": "Servidor en línea", "server_privacy": "Privacidad del Servidor", + "server_restarting_description": "Esta página se actualizará en breve.", + "server_restarting_title": "El servidor se está reiniciando", "server_stats": "Estadísticas del servidor", "server_update_available": "Actualización de servidor disponible", "server_version": "Versión del servidor", @@ -2027,6 +2057,7 @@ "third_party_resources": "Recursos de terceros", "time": "Tiempo", "time_based_memories": "Recuerdos basados en tiempo", + "time_based_memories_duration": "Número de segundos que se mostrará cada imagen.", "timeline": "Cronología", "timezone": "Zona horaria", "to_archive": "Archivar", @@ -2167,6 +2198,7 @@ "welcome": "Bienvenido", "welcome_to_immich": "Bienvenido a Immich", "wifi_name": "Nombre Wi-Fi", + "workflow": "Flujo de trabajo", "wrong_pin_code": "Código PIN incorrecto", "year": "Año", "years_ago": "Hace {years, plural, one {# año} other {# años}}", diff --git a/i18n/et.json b/i18n/et.json index 7e611d3ec3..9b9cd08985 100644 --- a/i18n/et.json +++ b/i18n/et.json @@ -17,7 +17,6 @@ "add_birthday": "Lisa sünnipäev", "add_endpoint": "Lisa lõpp-punkt", "add_exclusion_pattern": "Lisa välistamismuster", - "add_import_path": "Lisa imporditee", "add_location": "Lisa asukoht", "add_more_users": "Lisa rohkem kasutajaid", "add_partner": "Lisa partner", @@ -32,6 +31,7 @@ "add_to_album_toggle": "Muuda albumi {album} valikut", "add_to_albums": "Lisa albumitesse", "add_to_albums_count": "Lisa albumitesse ({count})", + "add_to_bottom_bar": "Lisa", "add_to_shared_album": "Lisa jagatud albumisse", "add_upload_to_stack": "Virnasta üleslaaditud üksus", "add_url": "Lisa URL", @@ -112,13 +112,17 @@ "jobs_failed": "{jobCount, plural, other {# ebaõnnestus}}", "library_created": "Lisatud kogu: {library}", "library_deleted": "Kogu kustutatud", - "library_import_path_description": "Määra kaust, mida importida. Sellest kaustast ning alamkaustadest otsitakse pilte ja videosid.", + "library_details": "Kogu detailid", + "library_folder_description": "Vali kaust, mida importida. Sellest kaustast ja alamkaustadest otsitakse pilte ja videosid.", + "library_remove_exclusion_pattern_prompt": "Kas oled kindel, et soovid selle välistamismustri eemaldada?", + "library_remove_folder_prompt": "Kas oled kindel, et soovid selle impordikausta eemaldada?", "library_scanning": "Perioodiline skaneerimine", "library_scanning_description": "Seadista kogu perioodiline skaneerimine", "library_scanning_enable_description": "Luba kogu perioodiline skaneerimine", "library_settings": "Väline kogu", "library_settings_description": "Halda välise kogu seadeid", "library_tasks_description": "Otsi välistest kogudest uusi ja muutunud üksuseid", + "library_updated": "Kogu uuendatud", "library_watching_enable_description": "Jälgi välises kogus failide muudatusi", "library_watching_settings": "Kogu jälgimine [EKSPERIMENTAALNE]", "library_watching_settings_description": "Jälgi automaatselt muutunud faile", @@ -173,6 +177,10 @@ "machine_learning_smart_search_enabled": "Luba nutiotsing", "machine_learning_smart_search_enabled_description": "Kui keelatud, siis ei kodeerita pilte nutiotsingu jaoks.", "machine_learning_url_description": "Masinõppe serveri URL. Kui ette on antud rohkem kui üks URL, proovitakse neid järjest ükshaaval, kuni üks edukalt vastab. Servereid, mis ei vasta, ignoreeritakse ajutiselt, kuni ühendus taastub.", + "maintenance_settings": "Hooldus", + "maintenance_settings_description": "Pane Immich hooldusrežiimi.", + "maintenance_start": "Käivita hooldusrežiim", + "maintenance_start_error": "Hooldusrežiimi käivitamine ebaõnnestus.", "manage_concurrency": "Halda samaaegsust", "manage_log_settings": "Halda logi seadeid", "map_dark_style": "Tume stiil", @@ -430,6 +438,7 @@ "age_months": "Vanus {months, plural, one {# kuu} other {# kuud}}", "age_year_months": "Vanus 1 aasta, {months, plural, one {# kuu} other {# kuud}}", "age_years": "{years, plural, other {Vanus #}}", + "album": "Album", "album_added": "Album lisatud", "album_added_notification_setting_description": "Saa teavitus e-posti teel, kui sind lisatakse jagatud albumisse", "album_cover_updated": "Albumi kaanepilt muudetud", @@ -475,6 +484,7 @@ "allow_edits": "Luba muutmine", "allow_public_user_to_download": "Luba avalikul kasutajal alla laadida", "allow_public_user_to_upload": "Luba avalikul kasutajal üles laadida", + "allowed": "Lubatud", "alt_text_qr_code": "QR kood", "anti_clockwise": "Vastupäeva", "api_key": "API võti", @@ -894,8 +904,6 @@ "edit_description_prompt": "Palun vali uus kirjeldus:", "edit_exclusion_pattern": "Muuda välistamismustrit", "edit_faces": "Muuda nägusid", - "edit_import_path": "Muuda imporditeed", - "edit_import_paths": "Muuda imporditeid", "edit_key": "Muuda võtit", "edit_link": "Muuda linki", "edit_location": "Muuda asukohta", @@ -967,8 +975,8 @@ "failed_to_stack_assets": "Üksuste virnastamine ebaõnnestus", "failed_to_unstack_assets": "Üksuste eraldamine ebaõnnestus", "failed_to_update_notification_status": "Teavituste seisundi uuendamine ebaõnnestus", - "import_path_already_exists": "See imporditee on juba olemas.", "incorrect_email_or_password": "Vale e-posti aadress või parool", + "library_folder_already_exists": "See imporditee on juba olemas.", "paths_validation_failed": "{paths, plural, one {# tee} other {# teed}} ei valideerunud", "profile_picture_transparent_pixels": "Profiilipildis ei tohi olla läbipaistvaid piksleid. Palun suumi sisse ja/või liiguta pilti.", "quota_higher_than_disk_size": "Määratud kvoot on suurem kui kettamaht", @@ -977,7 +985,6 @@ "unable_to_add_assets_to_shared_link": "Üksuste jagatud lingile lisamine ebaõnnestus", "unable_to_add_comment": "Kommentaari lisamine ebaõnnestus", "unable_to_add_exclusion_pattern": "Välistamismustri lisamine ebaõnnestus", - "unable_to_add_import_path": "Imporditee lisamine ebaõnnestus", "unable_to_add_partners": "Partnerite lisamine ebaõnnestus", "unable_to_add_remove_archive": "{archived, select, true {Üksuse arhiivist taastamine} other {Üksuse arhiveerimine}} ebaõnnestus", "unable_to_add_remove_favorites": "Üksuse {favorite, select, true {lemmikuks lisamine} other {lemmikutest eemaldamine}} ebaõnnestus", @@ -1000,12 +1007,10 @@ "unable_to_delete_asset": "Üksuse kustutamine ebaõnnestus", "unable_to_delete_assets": "Viga üksuste kustutamisel", "unable_to_delete_exclusion_pattern": "Välistamismustri kustutamine ebaõnnestus", - "unable_to_delete_import_path": "Imporditee kustutamine ebaõnnestus", "unable_to_delete_shared_link": "Jagatud lingi kustutamine ebaõnnestus", "unable_to_delete_user": "Kasutaja kustutamine ebaõnnestus", "unable_to_download_files": "Failide allalaadimine ebaõnnestus", "unable_to_edit_exclusion_pattern": "Välistamismustri muutmine ebaõnnestus", - "unable_to_edit_import_path": "Imporditee muutmine ebaõnnestus", "unable_to_empty_trash": "Prügikasti tühjendamine ebaõnnestus", "unable_to_enter_fullscreen": "Täisekraanile lülitamine ebaõnnestus", "unable_to_exit_fullscreen": "Täisekraanilt väljumine ebaõnnestus", @@ -1056,6 +1061,7 @@ "unable_to_update_user": "Kasutaja muutmine ebaõnnestus", "unable_to_upload_file": "Faili üleslaadimine ebaõnnestus" }, + "exclusion_pattern": "Välistamismuster", "exif": "Exif", "exif_bottom_sheet_description": "Lisa kirjeldus...", "exif_bottom_sheet_description_error": "Viga kirjelduse muutmisel", @@ -1115,6 +1121,7 @@ "folders_feature_description": "Kaustavaate abil failisüsteemis olevate fotode ja videote sirvimine", "forgot_pin_code_question": "Unustasid oma PIN-koodi?", "forward": "Edasi", + "full_path": "Täielik tee: {path}", "gcast_enabled": "Google Cast", "gcast_enabled_description": "See funktsionaalsus laadib töötamiseks Google'st väliseid ressursse.", "general": "Üldine", @@ -1151,6 +1158,7 @@ "hide_named_person": "Peida isik {name}", "hide_password": "Peida parool", "hide_person": "Peida isik", + "hide_text_recognition": "Peida tekstituvastus", "hide_unnamed_people": "Peida nimetud isikud", "home_page_add_to_album_conflicts": "{added} üksust lisati albumisse {album}. {failed} üksust oli juba albumis.", "home_page_add_to_album_err_local": "Lokaalseid üksuseid ei saa veel albumisse lisada, jäetakse vahele", @@ -1196,6 +1204,8 @@ "import_path": "Imporditee", "in_albums": "{count, plural, one {# albumis} other {# albumis}}", "in_archive": "Arhiivis", + "in_year": "Aastal {year}", + "in_year_selector": "Aastal", "include_archived": "Kaasa arhiveeritud", "include_shared_albums": "Kaasa jagatud albumid", "include_shared_partner_assets": "Kaasa partneri jagatud üksused", @@ -1232,6 +1242,7 @@ "language_setting_description": "Vali oma eelistatud keel", "large_files": "Suured failid", "last": "Viimane", + "last_months": "{count, plural, one {Eelmine kuu} other {Eelmised # kuud}}", "last_seen": "Viimati nähtud", "latest_version": "Uusim versioon", "latitude": "Laiuskraad", @@ -1241,6 +1252,8 @@ "let_others_respond": "Luba teistel vastata", "level": "Tase", "library": "Kogu", + "library_add_folder": "Lisa kaust", + "library_edit_folder": "Muuda kausta", "library_options": "Kogu seaded", "library_page_device_albums": "Albumid seadmes", "library_page_new_album": "Uus album", @@ -1312,8 +1325,17 @@ "loop_videos_description": "Lülita sisse, et detailvaates videot automaatselt taasesitada.", "main_branch_warning": "Sa kasutad arendusversiooni; soovitame tungivalt kasutada väljalaskeversiooni!", "main_menu": "Peamenüü", + "maintenance_description": "Immich on hooldusrežiimis.", + "maintenance_end": "Lõpeta hooldusrežiim", + "maintenance_end_error": "Hooldusrežiimi lõpetamine ebaõnnestus.", + "maintenance_logged_in_as": "Logitud sisse kasutajana {user}", + "maintenance_title": "Ajutiselt mittesaadaval", "make": "Mark", "manage_geolocation": "Halda asukohta", + "manage_media_access_rationale": "Seda luba on vaja üksuste prügikasti liigutamiseks ja sealt taastamiseks.", + "manage_media_access_settings": "Ava seaded", + "manage_media_access_subtitle": "Luba Immich'i rakendusel multimeediafaile hallata ja liigutada.", + "manage_media_access_title": "Üksuste haldamise ligipääs", "manage_shared_links": "Halda jagatud linke", "manage_sharing_with_partners": "Halda partneritega jagamist", "manage_the_app_settings": "Halda rakenduse seadeid", @@ -1377,6 +1399,7 @@ "more": "Rohkem", "move": "Liiguta", "move_off_locked_folder": "Liiguta lukustatud kaustast välja", + "move_to": "Liiguta", "move_to_lock_folder_action_prompt": "{count} lisatud lukustatud kausta", "move_to_locked_folder": "Liiguta lukustatud kausta", "move_to_locked_folder_confirmation": "Need fotod ja videod eemaldatakse kõigist albumitest ning nad on nähtavad ainult lukustatud kaustas", @@ -1406,6 +1429,7 @@ "new_pin_code": "Uus PIN-kood", "new_pin_code_subtitle": "See on sul esimene kord lukustatud kausta kasutada. Turvaliseks ligipääsuks loo PIN-kood", "new_timeline": "Uus ajajoon", + "new_update": "Uus uuendus", "new_user_created": "Uus kasutaja lisatud", "new_version_available": "UUS VERSIOON SAADAVAL", "newest_first": "Uuemad eespool", @@ -1421,12 +1445,14 @@ "no_cast_devices_found": "Edastamise seadmeid ei leitud", "no_checksum_local": "Kontrollsumma pole saadaval - lokaalse üksuse pärimine ebaõnnestus", "no_checksum_remote": "Kontrollsumma pole saadaval - kaugüksuse pärimine ebaõnnestus", + "no_devices": "Autoriseeritud seadmeid pole", "no_duplicates_found": "Ühtegi duplikaati ei leitud.", "no_exif_info_available": "Exif info pole saadaval", "no_explore_results_message": "Oma kogu avastamiseks laadi üles rohkem fotosid.", "no_favorites_message": "Lisa lemmikud, et oma parimaid fotosid ja videosid kiiresti leida", "no_libraries_message": "Lisa väline kogu oma fotode ja videote vaatamiseks", "no_local_assets_found": "Selle kontrollsummaga lokaalseid üksuseid ei leitud", + "no_location_set": "Asukoht pole määratud", "no_locked_photos_message": "Lukustatud kaustas olevad fotod ja videod on peidetud ning need pole kogu sirvimisel ja otsimisel nähtavad.", "no_name": "Nimetu", "no_notifications": "Teavitusi pole", @@ -1437,6 +1463,7 @@ "no_results_description": "Proovi sünonüümi või üldisemat märksõna", "no_shared_albums_message": "Lisa album, et fotosid ja videosid teistega jagada", "no_uploads_in_progress": "Üleslaadimisi käimas ei ole", + "not_allowed": "Keelatud", "not_available": "Pole saadaval", "not_in_any_album": "Pole üheski albumis", "not_selected": "Ei ole valitud", @@ -1547,6 +1574,8 @@ "photos_count": "{count, plural, one {{count, number} foto} other {{count, number} fotot}}", "photos_from_previous_years": "Fotod varasematest aastatest", "pick_a_location": "Vali asukoht", + "pick_custom_range": "Kohandatud vahemik", + "pick_date_range": "Vali kuupäevavahemik", "pin_code_changed_successfully": "PIN-kood edukalt muudetud", "pin_code_reset_successfully": "PIN-kood edukalt lähtestatud", "pin_code_setup_successfully": "PIN-kood edukalt seadistatud", @@ -1814,6 +1843,8 @@ "server_offline": "Serveriga ühendus puudub", "server_online": "Server ühendatud", "server_privacy": "Serveri privaatsus", + "server_restarting_description": "Leht värskendatakse hetkeliselt.", + "server_restarting_title": "Server taaskäivitub", "server_stats": "Serveri statistika", "server_update_available": "Serveri uuendus on saadaval", "server_version": "Serveri versioon", @@ -1937,6 +1968,7 @@ "show_slideshow_transition": "Kuva slaidiesitluse üleminekud", "show_supporter_badge": "Toetaja märk", "show_supporter_badge_description": "Kuva toetaja märki", + "show_text_recognition": "Kuva tekstituvastust", "show_text_search_menu": "Kuva tekstiotsingu menüüd", "shuffle": "Juhuslik", "sidebar": "Külgmenüü", @@ -2007,6 +2039,7 @@ "tags": "Sildid", "tap_to_run_job": "Puuduta tööte käivitamiseks", "template": "Mall", + "text_recognition": "Tekstituvastus", "theme": "Teema", "theme_selection": "Teema valik", "theme_selection_description": "Sea automaatselt hele või tume teema vastavalt veebilehitseja eelistustele", @@ -2027,6 +2060,7 @@ "third_party_resources": "Kolmanda osapoole ressursid", "time": "Aeg", "time_based_memories": "Ajapõhised mälestused", + "time_based_memories_duration": "Aeg sekundites, kui kaua igat pilti kuvada.", "timeline": "Ajajoon", "timezone": "Ajavöönd", "to_archive": "Arhiivi", @@ -2142,7 +2176,7 @@ "video_hover_setting_description": "Esita video eelvaade, kui hiirt selle kohal hõljutada. Isegi kui keelatud, saab taasesituse alustada taasesitusnupu kohal hõljutades.", "videos": "Videod", "videos_count": "{count, plural, one {# video} other {# videot}}", - "view": "Vaade", + "view": "Vaata", "view_album": "Vaata albumit", "view_all": "Vaata kõiki", "view_all_users": "Vaata kõiki kasutajaid", @@ -2167,6 +2201,7 @@ "welcome": "Tere tulemast", "welcome_to_immich": "Tere tulemast Immich'isse", "wifi_name": "WiFi-võrgu nimi", + "workflow": "Töövoog", "wrong_pin_code": "Vale PIN-kood", "year": "Aasta", "years_ago": "{years, plural, one {# aasta} other {# aastat}} tagasi", diff --git a/i18n/eu.json b/i18n/eu.json index 291a62a7a1..0a6a93ab36 100644 --- a/i18n/eu.json +++ b/i18n/eu.json @@ -17,7 +17,6 @@ "add_birthday": "Urtebetetzea gehitu", "add_endpoint": "Endpoint-a gehitu", "add_exclusion_pattern": "Bazterketa eredua gehitu", - "add_import_path": "Inportazio bidea gehitu", "add_location": "Kokapena gehitu", "add_more_users": "Erabiltzaile gehiago gehitu", "add_partner": "Kidea gehitu", diff --git a/i18n/fa.json b/i18n/fa.json index f8e47af9c1..0ad0a84190 100644 --- a/i18n/fa.json +++ b/i18n/fa.json @@ -15,23 +15,28 @@ "add_a_title": "افزودن عنوان", "add_birthday": "افزودن تاریخ تولد", "add_exclusion_pattern": "افزودن الگوی استثنا", - "add_import_path": "افزودن مسیر ورودی", "add_location": "افزودن مکان", "add_more_users": "افزودن کاربرهای بیشتر", "add_partner": "افزودن شریک", "add_path": "افزودن مسیر", "add_photos": "افزودن عکس ها", + "add_tag": "افزودن تگ", "add_to": "افزودن به …", "add_to_album": "افزودن به آلبوم", "add_to_album_bottom_sheet_added": "به آلبوم {album} اضافه شد", "add_to_album_bottom_sheet_already_exists": "قبلا در آلبوم {album} موجود است", "add_to_album_bottom_sheet_some_local_assets": "برخی از محتواهای محلی را نشد به آلبوم اضافه کرد", + "add_to_albums": "افزودن به آلبوم", + "add_to_albums_count": "افزودن به آلبوم ها {count}", "add_to_shared_album": "افزودن به آلبوم اشتراکی", + "add_upload_to_stack": "افزودن فایل ارسالی به مجموعه", + "add_url": "افزودن آدرس URL", "added_to_archive": "به آرشیو اضافه شد", "added_to_favorites": "به علاقه مندی ها اضافه شد", "added_to_favorites_count": "{count, number} تا به علاقه مندی ها اضافه شد", "admin": { "add_exclusion_pattern_description": "الگوهای استثنا را اضافه کنید. پشتیبانی از گلابینگ با استفاده از *, ** و ? وجود دارد. برای نادیده گرفتن تمام فایل‌ها در هر دایرکتوری با نام \"Raw\"، از \"**/Raw/**\" استفاده کنید. برای نادیده گرفتن تمام فایل‌هایی که با \".tif\" پایان می‌یابند، از \"**/*.tif\" استفاده کنید. برای نادیده گرفتن یک مسیر مطلق، از \"/path/to/ignore/**\" استفاده کنید.", + "admin_user": "ادمین", "authentication_settings": "تنظیمات احراز هویت", "authentication_settings_description": "مدیریت رمز عبور، OAuth، و سایر تنظیمات احراز هویت", "authentication_settings_disable_all": "آیا مطمئن هستید که می‌خواهید تمام روش‌های ورود را غیرفعال کنید؟ ورود به طور کامل غیرفعال خواهد شد.", @@ -79,7 +84,6 @@ "job_status": "وضعیت کار", "library_created": "کتابخانه ایجاد شده: {library}", "library_deleted": "کتابخانه حذف شد", - "library_import_path_description": "یک پوشه برای وارد کردن مشخص کنید. این پوشه، به همراه زیرپوشه‌ها، برای یافتن تصاویر و ویدیوها اسکن خواهد شد.", "library_scanning": "اسکن دوره ای", "library_scanning_description": "تنظیم اسکن دوره‌ای کتابخانه", "library_scanning_enable_description": "فعال کردن اسکن دوره‌ای کتابخانه", diff --git a/i18n/fi.json b/i18n/fi.json index ac2007fa3a..106cb65d16 100644 --- a/i18n/fi.json +++ b/i18n/fi.json @@ -17,7 +17,6 @@ "add_birthday": "Lisää syntymäpäivä", "add_endpoint": "Lisää päätepiste", "add_exclusion_pattern": "Lisää poissulkemismalli", - "add_import_path": "Lisää tuontipolku", "add_location": "Lisää sijainti", "add_more_users": "Lisää käyttäjiä", "add_partner": "Lisää kumppani", @@ -32,6 +31,7 @@ "add_to_album_toggle": "Vaihda albumin {album} valintaa", "add_to_albums": "Lisää albumeihin", "add_to_albums_count": "Lisää albumeihin ({count})", + "add_to_bottom_bar": "Lisää", "add_to_shared_album": "Lisää jaettuun albumiin", "add_upload_to_stack": "Lisää kuvapinoon", "add_url": "Lisää URL", @@ -112,7 +112,6 @@ "jobs_failed": "{jobCount, plural, other {# epäonnistunutta}}", "library_created": "Kirjasto {library} luotu", "library_deleted": "Kirjasto poistettu", - "library_import_path_description": "Määritä kansio joka tuodaan. Kuvat ja videot skannataan tästä kansiosta, sekä alikansioista.", "library_scanning": "Ajoittainen skannaus", "library_scanning_description": "Määritä ajoittaiset kirjastojen skannaukset", "library_scanning_enable_description": "Ota käyttöön ajoittaiset kirjastojen skannaukset", @@ -160,8 +159,8 @@ "machine_learning_ocr_enabled_description": "Jos asetus on pois päältä, kuvia ei prosessoida tekstin tunnistamiseksi.", "machine_learning_ocr_max_resolution": "Maksimiresoluutio", "machine_learning_ocr_max_resolution_description": "Tätä suuremmat esikatselukuvat tullaan pienentämään samassa kuvasuhteessa. Suuremmat arvot ovat tarkempia, mutta kestävät pidempään prosessoida ja käyttävät enemmän muistia.", - "machine_learning_ocr_min_detection_score": "Pienin paikannuksen pistemäärä", - "machine_learning_ocr_min_detection_score_description": "Pienin arvo tekstin paikannukselle varmuudelle välillä 0-1. Pienemmät arvot paikantavat enemmän tekstiä, mutta saattavat johtaa useampaan väärään positiiviseen.", + "machine_learning_ocr_min_detection_score": "Tunnistuksen vähimmäispistemäärä", + "machine_learning_ocr_min_detection_score_description": "Tekstin tunnistuksen vähimmäisluottamusarvo (0–1). Pienemmät arvot tunnistavat enemmän tekstiä, mutta voivat johtaa virheellisiin osumiin.", "machine_learning_ocr_min_recognition_score": "Pienin tunnistuksen pistemäärä", "machine_learning_ocr_min_score_recognition_description": "Pienin arvo tekstin tunnistuksen varmuudelle välillä 0-1. Pienemmät arvot tunnistavat enemmän tekstiä, mutta saattavat johtaa useampaan väärään positiiviseen.", "machine_learning_ocr_model": "OCR-malli", @@ -430,6 +429,7 @@ "age_months": "Ikä {months, plural, one {# kuukausi} other {# kuukautta}}", "age_year_months": "Ikä 1 vuosi, {months, plural, one {# kuukausi} other {# kuukautta}}", "age_years": "{years, plural, other {Ikä #v}}", + "album": "Albumi", "album_added": "Albumi lisätty", "album_added_notification_setting_description": "Saa sähköpostia kun sinut lisätään jaettuun albumiin", "album_cover_updated": "Albumin kansikuva päivitetty", @@ -475,6 +475,7 @@ "allow_edits": "Salli muutokset", "allow_public_user_to_download": "Salli julkisten käyttäjien ladata tiedostoja", "allow_public_user_to_upload": "Salli julkisten käyttäjien lähettää tiedostoja", + "allowed": "Sallittu", "alt_text_qr_code": "QR-koodi", "anti_clockwise": "Vastapäivään", "api_key": "API-avain", @@ -683,7 +684,7 @@ "change_password_form_confirm_password": "Vahvista salasana", "change_password_form_description": "Hei {name},\n\nTämä on joko ensimmäinen kerta, kun kirjaudut järjestelmään, tai sinulta on pyydetty salasanan vaihtoa. Ole hyvä ja syötä uusi salasana alle.", "change_password_form_log_out": "Kirjaudu ulos kaikilta muilta laitteilta", - "change_password_form_log_out_description": "On suositeltavaa kirjautua ulos kaikilta muilta laitteilta", + "change_password_form_log_out_description": "On suositeltavaa kirjautua ulos kaikilta laitteilta", "change_password_form_new_password": "Uusi salasana", "change_password_form_password_mismatch": "Salasanat eivät täsmää", "change_password_form_reenter_new_password": "Uusi salasana uudelleen", @@ -894,8 +895,6 @@ "edit_description_prompt": "Valitse uusi kuvaus:", "edit_exclusion_pattern": "Muokkaa poissulkemismallia", "edit_faces": "Muokkaa kasvoja", - "edit_import_path": "Muokkaa tuontipolkua", - "edit_import_paths": "Muokkaa tuontipolkuja", "edit_key": "Muokkaa avainta", "edit_link": "Muokkaa linkkiä", "edit_location": "Muokkaa sijaintia", @@ -967,7 +966,6 @@ "failed_to_stack_assets": "Medioiden pinoaminen epäonnistui", "failed_to_unstack_assets": "Medioiden pinoamisen purku epäonnistui", "failed_to_update_notification_status": "Ilmoituksen tilan päivittäminen epäonnistui", - "import_path_already_exists": "Tämä tuontipolku on jo olemassa.", "incorrect_email_or_password": "Väärä sähköpostiosoite tai salasana", "paths_validation_failed": "{paths, plural, one {# polun} other {# polun}} validointi epäonnistui", "profile_picture_transparent_pixels": "Profiilikuvassa ei voi olla läpinäkyviä pikseleitä. Zoomaa lähemmäs ja/tai siirrä kuvaa.", @@ -977,7 +975,6 @@ "unable_to_add_assets_to_shared_link": "Medioiden lisääminen jaettuun linkkiin epäonnistui", "unable_to_add_comment": "Kommentin lisääminen epäonnistui", "unable_to_add_exclusion_pattern": "Ei voida lisätä poissulkemismallia", - "unable_to_add_import_path": "Tuontipolkua ei voitu lisätä", "unable_to_add_partners": "Kumppaneita ei voitu lisätä", "unable_to_add_remove_archive": "Ei voida {archived, select, true {poistaa kohdetta arkistosta} other {lisätä kohdetta arkistoon}}", "unable_to_add_remove_favorites": "Ei voida {favorite, select, true {lisätä kohdetta suosikkeihin} other {poistaa kohdetta suosikeista}}", @@ -1000,12 +997,10 @@ "unable_to_delete_asset": "Kohteen poistaminen epäonnistui", "unable_to_delete_assets": "Virhe kohteen poistamisessa", "unable_to_delete_exclusion_pattern": "Ei voida poistaa poissulkemismallia", - "unable_to_delete_import_path": "Tuontipolkua ei voitu poistaa", "unable_to_delete_shared_link": "Jaetun linkin poistaminen epäonnistui", "unable_to_delete_user": "Käyttäjän poistaminen epäonnistui", "unable_to_download_files": "Tiedostojen lataaminen epäonnistui", "unable_to_edit_exclusion_pattern": "Ei voida muokata poissulkemismallia", - "unable_to_edit_import_path": "Tuontipolkua ei voitu muokata", "unable_to_empty_trash": "Roskakorin tyhjentäminen epäonnistui", "unable_to_enter_fullscreen": "Koko ruudun tilaan siirtyminen epäonnistui", "unable_to_exit_fullscreen": "Koko ruudun tilasta poistuminen epäonnistui", @@ -1551,7 +1546,7 @@ "pin_code_reset_successfully": "PIN-koodin nollaus onnistui", "pin_code_setup_successfully": "PIN-koodin asettaminen onnistui", "pin_verification": "PIN-koodin vahvistus", - "place": "Sijainti", + "place": "Paikka", "places": "Paikat", "places_count": "{count, plural, one {{count, number} Paikka} other {{count, number} Paikkaa}}", "play": "Toista", @@ -1716,6 +1711,7 @@ "running": "Käynnissä", "save": "Tallenna", "save_to_gallery": "Tallenna galleriaan", + "saved": "Tallennettu", "saved_api_key": "API-avain tallennettu", "saved_profile": "Profiili tallennettu", "saved_settings": "Asetukset tallennettu", @@ -2026,6 +2022,7 @@ "third_party_resources": "Kolmannen osapuolen resurssit", "time": "Aika", "time_based_memories": "Aikaan perustuvat muistot", + "time_based_memories_duration": "Kuvien näyttöaika sekunteina.", "timeline": "Aikajana", "timezone": "Aikavyöhyke", "to_archive": "Arkistoi", diff --git a/i18n/fil.json b/i18n/fil.json index 23257ce2fd..413ed85828 100644 --- a/i18n/fil.json +++ b/i18n/fil.json @@ -62,7 +62,6 @@ "exclusion_pattern_description": "Maaaring gamitin ang mga pattern na pangbukod para hindi pansinin ang ilang file o folder habang binabasa ang iyong library. Mainam itong solusyon para sa mga folder na may file na ayaw niyong ma-import, tulad ng mga RAW na file.", "force_delete_user_warning": "BABALA: Tatanggalin itong user at lahat ng asset nila, Hindi ito mababawi at ang kanilang files ay hindi na mababalik", "image_format": "Format", - "library_import_path_description": "Tukuyin ang folder na i-import. Ang folder na ito, kasama ang subfolders, ay mag sa-scan para sa mga imahe at mga videos.", "note_cannot_be_changed_later": "TANDAAN: Hindi na ito pwede baguhin sa susunod!", "server_welcome_message_description": "Mensahe na ipapakita sa login page.", "user_restore_description": "Ang account ni {user} ay maibabalik." diff --git a/i18n/fr.json b/i18n/fr.json index 789afffc38..6c32aac0f1 100644 --- a/i18n/fr.json +++ b/i18n/fr.json @@ -4,7 +4,7 @@ "account_settings": "Paramètres du compte", "acknowledge": "Compris", "action": "Action", - "action_common_update": "Mise à jour", + "action_common_update": "Mettre à jour", "actions": "Actions", "active": "En cours", "activity": "Activité", @@ -17,7 +17,6 @@ "add_birthday": "Ajouter un anniversaire", "add_endpoint": "Ajouter une adresse", "add_exclusion_pattern": "Ajouter un schéma d'exclusion", - "add_import_path": "Ajouter un chemin à importer", "add_location": "Ajouter une localisation", "add_more_users": "Ajouter plus d'utilisateurs", "add_partner": "Ajouter un partenaire", @@ -32,6 +31,7 @@ "add_to_album_toggle": "Basculer la sélection pour {album}", "add_to_albums": "Ajouter aux albums", "add_to_albums_count": "Ajouter aux albums ({count})", + "add_to_bottom_bar": "Ajouter à", "add_to_shared_album": "Ajouter à l'album partagé", "add_upload_to_stack": "Ajouter les éléments téléversés à la pile", "add_url": "Ajouter l'URL", @@ -112,13 +112,17 @@ "jobs_failed": "{jobCount, plural, other {# en échec}}", "library_created": "Bibliothèque créée : {library}", "library_deleted": "Bibliothèque supprimée", - "library_import_path_description": "Spécifier un dossier à importer. Ce dossier, y compris ses sous-dossiers, sera analysé à la recherche d'images et de vidéos.", + "library_details": "Détails de la bibliothèque", + "library_folder_description": "Renseignez un dossier à importer. Ce dossier et ses sous-dossiers seront scannés pour leurs images et vidéos.", + "library_remove_exclusion_pattern_prompt": "Êtes-vous sûr de vouloir supprimer ce schéma d'exclusion ?", + "library_remove_folder_prompt": "Êtes-vous sûr de vouloir supprimer ce dossier d'import ?", "library_scanning": "Analyse périodique", "library_scanning_description": "Configurer l'analyse périodique de la bibliothèque", "library_scanning_enable_description": "Activer l'analyse périodique de la bibliothèque", "library_settings": "Bibliothèque externe", "library_settings_description": "Gestion des paramètres des bibliothèques externes", "library_tasks_description": "Scanner les bibliothèques externes pour les nouveaux et/ou les éléments modifiés", + "library_updated": "Bibliothèque mise à jour", "library_watching_enable_description": "Surveiller les modifications de fichiers dans les bibliothèques externes", "library_watching_settings": "Surveillance de bibliothèque [EXPÉRIMENTAL]", "library_watching_settings_description": "Surveiller automatiquement les fichiers modifiés", @@ -173,6 +177,10 @@ "machine_learning_smart_search_enabled": "Activer la recherche intelligente", "machine_learning_smart_search_enabled_description": "Si cette option est désactivée, les images ne seront pas encodées pour la recherche intelligente.", "machine_learning_url_description": "L’URL du serveur d'apprentissage automatique. Si plusieurs URL sont fournies, chaque serveur sera essayé un par un jusqu’à ce que l’un d’eux réponde avec succès, dans l’ordre de la première à la dernière. Les serveurs ne répondant pas seront temporairement ignorés jusqu'à ce qu'ils soient de nouveau opérationnels.", + "maintenance_settings": "Maintenance", + "maintenance_settings_description": "Mettre Immich en mode maintenance.", + "maintenance_start": "Démarrer le mode maintenance", + "maintenance_start_error": "Échec du démarrage du mode maintenance.", "manage_concurrency": "Gérer du multitâche", "manage_log_settings": "Gérer les paramètres de journalisation", "map_dark_style": "Thème sombre", @@ -430,6 +438,7 @@ "age_months": "Âge {months, plural, one {# mois} other {# mois}}", "age_year_months": "Âge 1 an, {months, plural, one {# mois} other {# mois}}", "age_years": "Âge {years, plural, one {# an} other {# ans}}", + "album": "Album", "album_added": "Album ajouté", "album_added_notification_setting_description": "Recevoir une notification par courriel lorsque vous êtes ajouté(e) à un album partagé", "album_cover_updated": "Couverture de l'album mise à jour", @@ -475,6 +484,7 @@ "allow_edits": "Autoriser les modifications", "allow_public_user_to_download": "Permettre le téléchargement par des utilisateurs non connectés", "allow_public_user_to_upload": "Permettre l'envoi par des utilisateurs non connectés", + "allowed": "Autorisé", "alt_text_qr_code": "Image du code QR", "anti_clockwise": "Sens anti-horaire", "api_key": "Clé API", @@ -724,7 +734,7 @@ "comments_are_disabled": "Les commentaires sont désactivés", "common_create_new_album": "Créer un nouvel album", "completed": "Complété", - "confirm": "Confirmez", + "confirm": "Confirmer", "confirm_admin_password": "Confirmez le mot de passe Admin", "confirm_delete_face": "Êtes-vous sûr de vouloir supprimer le visage de {name} du média ?", "confirm_delete_shared_link": "Voulez-vous vraiment supprimer ce lien partagé ?", @@ -894,8 +904,6 @@ "edit_description_prompt": "Choisir une nouvelle description :", "edit_exclusion_pattern": "Modifier le schéma d'exclusion", "edit_faces": "Modifier les visages", - "edit_import_path": "Modifier le chemin d'importation", - "edit_import_paths": "Modifier les chemins d'importation", "edit_key": "Modifier la clé", "edit_link": "Modifier le lien", "edit_location": "Modifier la localisation", @@ -967,8 +975,8 @@ "failed_to_stack_assets": "Impossible d'empiler les médias", "failed_to_unstack_assets": "Impossible de dépiler les médias", "failed_to_update_notification_status": "Erreur de mise à jour du statut des notifications", - "import_path_already_exists": "Ce chemin d'importation existe déjà.", "incorrect_email_or_password": "Courriel ou mot de passe incorrect", + "library_folder_already_exists": "Ce chemin d'import existe déjà.", "paths_validation_failed": "Validation échouée pour {paths, plural, one {# un chemin} other {# plusieurs chemins}}", "profile_picture_transparent_pixels": "Les images de profil ne peuvent pas avoir de pixels transparents. Veuillez agrandir et/ou déplacer l'image.", "quota_higher_than_disk_size": "Le quota saisi est supérieur à l'espace disponible", @@ -977,7 +985,6 @@ "unable_to_add_assets_to_shared_link": "Impossible d'ajouter des médias au lien partagé", "unable_to_add_comment": "Impossible d'ajouter un commentaire", "unable_to_add_exclusion_pattern": "Impossible d'ajouter un schéma d'exclusion", - "unable_to_add_import_path": "Impossible d'ajouter le chemin d'importation", "unable_to_add_partners": "Impossible d'ajouter des partenaires", "unable_to_add_remove_archive": "Impossible {archived, select, true {de supprimer des médias de} other {d'ajouter des médias à}} l'archive", "unable_to_add_remove_favorites": "Impossible {favorite, select, true {d'ajouter des médias aux} other {de supprimer des médias des}} favoris", @@ -1000,12 +1007,10 @@ "unable_to_delete_asset": "Impossible de supprimer le média", "unable_to_delete_assets": "Erreur lors de la suppression des médias", "unable_to_delete_exclusion_pattern": "Impossible de supprimer le modèle d'exclusion", - "unable_to_delete_import_path": "Impossible de supprimer le chemin d'importation", "unable_to_delete_shared_link": "Impossible de supprimer le lien de partage", "unable_to_delete_user": "Impossible de supprimer l'utilisateur", "unable_to_download_files": "Impossible de télécharger les fichiers", "unable_to_edit_exclusion_pattern": "Impossible de modifier le modèle d'exclusion", - "unable_to_edit_import_path": "Impossible de modifier le chemin d'importation", "unable_to_empty_trash": "Impossible de vider la corbeille", "unable_to_enter_fullscreen": "Mode plein écran indisponible", "unable_to_exit_fullscreen": "Impossible de sortir du mode plein écran", @@ -1056,6 +1061,7 @@ "unable_to_update_user": "Impossible de mettre à jour l'utilisateur", "unable_to_upload_file": "Impossible d'envoyer le fichier" }, + "exclusion_pattern": "Schéma d'exclusion", "exif": "Exif", "exif_bottom_sheet_description": "Ajouter une description...", "exif_bottom_sheet_description_error": "Erreur de mise à jour de la description", @@ -1115,6 +1121,7 @@ "folders_feature_description": "Parcourir l'affichage par dossiers pour les photos et les vidéos sur le système de fichiers", "forgot_pin_code_question": "Code PIN oublié ?", "forward": "Avant", + "full_path": "Chemin complet : {path}", "gcast_enabled": "Diffusion Google Cast", "gcast_enabled_description": "Cette fonctionnalité charge des ressources externes depuis Google pour fonctionner.", "general": "Général", @@ -1196,6 +1203,8 @@ "import_path": "Chemin d'importation", "in_albums": "Dans {count, plural, one {# album} other {# albums}}", "in_archive": "Dans les archives", + "in_year": "Dans {year}", + "in_year_selector": "Dans", "include_archived": "Inclure les archives", "include_shared_albums": "Inclure les albums partagés", "include_shared_partner_assets": "Inclure les médias partagés du partenaire", @@ -1232,6 +1241,7 @@ "language_setting_description": "Sélectionnez votre langue préférée", "large_files": "Fichiers volumineux", "last": "Dernier", + "last_months": "{count, plural, one {Dernier mois} other {Derniers # mois}}", "last_seen": "Dernièrement utilisé", "latest_version": "Dernière version", "latitude": "Latitude", @@ -1241,6 +1251,8 @@ "let_others_respond": "Laisser les autres réagir", "level": "Niveau", "library": "Bibliothèque", + "library_add_folder": "Ajouter un dossier", + "library_edit_folder": "Modifier un dossier", "library_options": "Options de bibliothèque", "library_page_device_albums": "Albums sur l'appareil", "library_page_new_album": "Nouvel album", @@ -1312,8 +1324,17 @@ "loop_videos_description": "Activer pour voir la vidéo en boucle dans le lecteur détaillé.", "main_branch_warning": "Vous utilisez une version de développement. Nous vous recommandons fortement d'utiliser une version stable !", "main_menu": "Menu principal", + "maintenance_description": "Immich a été mis en mode maintenance.", + "maintenance_end": "Arrêter le mode maintenance", + "maintenance_end_error": "Échec de l'arrêt du mode maintenance.", + "maintenance_logged_in_as": "Actuellement connecté en tant que {user}", + "maintenance_title": "Temporairement non disponible", "make": "Marque", "manage_geolocation": "Gérer la localisation", + "manage_media_access_rationale": "Cette autorisation est nécessaire pour gérer correctement le déplacement de médias vers la corbeille et la restauration depuis celle-ci.", + "manage_media_access_settings": "Ouvrir les paramètres", + "manage_media_access_subtitle": "Autoriser l'application Immich à gérer et déplacer des fichiers de média.", + "manage_media_access_title": "Accès à la gestion de médias", "manage_shared_links": "Gérer les liens partagés", "manage_sharing_with_partners": "Gérer le partage avec les partenaires", "manage_the_app_settings": "Gérer les paramètres de l'application", @@ -1377,6 +1398,7 @@ "more": "Plus", "move": "Déplacer", "move_off_locked_folder": "Déplacer en dehors du dossier verrouillé", + "move_to": "Déplacer vers", "move_to_lock_folder_action_prompt": "{count} ajouté(s) au dossier verrouillé", "move_to_locked_folder": "Déplacer dans le dossier verrouillé", "move_to_locked_folder_confirmation": "Ces photos et vidéos seront retirées de tous les albums et ne seront visibles que dans le dossier verrouillé", @@ -1406,6 +1428,7 @@ "new_pin_code": "Nouveau code PIN", "new_pin_code_subtitle": "C'est votre premier accès au dossier verrouillé. Créez un code PIN pour sécuriser l'accès à cette page", "new_timeline": "Nouvelle vue chronologique", + "new_update": "Nouvelle mise à jour", "new_user_created": "Nouvel utilisateur créé", "new_version_available": "NOUVELLE VERSION DISPONIBLE", "newest_first": "Récents en premier", @@ -1421,12 +1444,14 @@ "no_cast_devices_found": "Aucun appareil de diffusion trouvé", "no_checksum_local": "Aucune empreinte numerique disponible - impossible de récupérer les médias locaux", "no_checksum_remote": "Aucune empreinte numérique disponible - impossible de récupérer les médias distants", + "no_devices": "Aucun appareil autorisé", "no_duplicates_found": "Aucun doublon n'a été trouvé.", "no_exif_info_available": "Aucune information exif disponible", "no_explore_results_message": "Envoyez plus de photos pour explorer votre bibliothèque.", "no_favorites_message": "Ajouter des photos et vidéos à vos favoris pour les retrouver plus rapidement", "no_libraries_message": "Créer une bibliothèque externe pour voir vos photos et vidéos dans un autre espace de stockage", "no_local_assets_found": "Aucun média local trouvé avec cette empreinte numerique", + "no_location_set": "Aucune localisation definie", "no_locked_photos_message": "Les photos et vidéos du dossier verrouillé sont masqués et ne s'afficheront pas dans votre galerie ou la recherche.", "no_name": "Pas de nom", "no_notifications": "Pas de notification", @@ -1437,6 +1462,7 @@ "no_results_description": "Essayez un synonyme ou un mot-clé plus général", "no_shared_albums_message": "Créer un album pour partager vos photos et vidéos avec les personnes de votre réseau", "no_uploads_in_progress": "Pas d'envoi en cours", + "not_allowed": "Non autorisé", "not_available": "N/A", "not_in_any_album": "Dans aucun album", "not_selected": "Non sélectionné", @@ -1547,6 +1573,8 @@ "photos_count": "{count, plural, one {{count, number} Photo} other {{count, number} Photos}}", "photos_from_previous_years": "Photos des années précédentes", "pick_a_location": "Choisissez une localisation", + "pick_custom_range": "Période personnalisée", + "pick_date_range": "Sélectionner une période de dates", "pin_code_changed_successfully": "Code PIN changé avec succès", "pin_code_reset_successfully": "Réinitialisation du code PIN réussie", "pin_code_setup_successfully": "Définition du code PIN réussie", @@ -1814,6 +1842,8 @@ "server_offline": "Serveur hors ligne", "server_online": "Serveur en ligne", "server_privacy": "Vie privée pour le serveur", + "server_restarting_description": "Cette page va se rafraîchir dans quelques instants.", + "server_restarting_title": "Le serveur redémarre", "server_stats": "Statistiques du serveur", "server_update_available": "Une mise à jour du serveur est disponible", "server_version": "Version du serveur", @@ -2027,6 +2057,7 @@ "third_party_resources": "Ressources tierces", "time": "Horaire", "time_based_memories": "Souvenirs basés sur la date", + "time_based_memories_duration": "Durée en secondes d'affichage de chaque image.", "timeline": "Vue chronologique", "timezone": "Fuseau horaire", "to_archive": "Archiver", @@ -2167,6 +2198,7 @@ "welcome": "Bienvenue", "welcome_to_immich": "Bienvenue sur Immich", "wifi_name": "Nom du réseau wifi", + "workflow": "Flux de travail", "wrong_pin_code": "Code PIN erroné", "year": "Année", "years_ago": "Il y a {years, plural, one {# an} other {# ans}}", diff --git a/i18n/gl.json b/i18n/gl.json index c2e955960d..3aac86e684 100644 --- a/i18n/gl.json +++ b/i18n/gl.json @@ -17,7 +17,6 @@ "add_birthday": "Engadir cumpreanos", "add_endpoint": "Engadir punto final", "add_exclusion_pattern": "Engadir patrón de exclusión", - "add_import_path": "Engadir ruta de importación", "add_location": "Engadir localización", "add_more_users": "Engadir máis usuarios", "add_partner": "Engadir compañeiro/a", @@ -32,6 +31,7 @@ "add_to_album_toggle": "Alternar selección para {album}", "add_to_albums": "Engadir a álbums", "add_to_albums_count": "Engadir a {count} álbums", + "add_to_bottom_bar": "Engadir a", "add_to_shared_album": "Engadir ao álbum compartido", "add_upload_to_stack": "Engade cargar á pila", "add_url": "Engadir URL", @@ -112,7 +112,6 @@ "jobs_failed": "{jobCount, plural, other {# fallados}}", "library_created": "Biblioteca creada: {library}", "library_deleted": "Biblioteca eliminada", - "library_import_path_description": "Especifique un cartafol para importar. Este cartafol, incluídos os subcartafoles, escanearase en busca de imaxes e vídeos.", "library_scanning": "Escaneo periódico", "library_scanning_description": "Configurar o escaneo periódico da biblioteca", "library_scanning_enable_description": "Activar o escaneo periódico da biblioteca", @@ -120,7 +119,7 @@ "library_settings_description": "Xestionar a configuración da biblioteca externa", "library_tasks_description": "Escanear bibliotecas externas en busca de activos novos e/ou modificados", "library_watching_enable_description": "Vixiar bibliotecas externas para detectar cambios nos ficheiros", - "library_watching_settings": "Vixilancia da biblioteca (EXPERIMENTAL)", + "library_watching_settings": "Vixilancia da biblioteca [EXPERIMENTAL]", "library_watching_settings_description": "Vixiar automaticamente os ficheiros modificados", "logging_enable_description": "Activar rexistro", "logging_level_description": "Cando estea activado, que nivel de rexistro usar.", @@ -154,6 +153,18 @@ "machine_learning_min_detection_score_description": "Puntuación mínima de confianza para que unha cara sexa detectada, de 0 a 1. Valores máis baixos detectarán máis caras pero poden resultar en falsos positivos.", "machine_learning_min_recognized_faces": "Mínimo de caras recoñecidas", "machine_learning_min_recognized_faces_description": "O número mínimo de caras recoñecidas para que se cree unha persoa. Aumentar isto fai que o Recoñecemento Facial sexa máis preciso a costa de aumentar a posibilidade de que unha cara non se asigne a unha persoa.", + "machine_learning_ocr": "OCR", + "machine_learning_ocr_description": "Emprega aprendizaxe automática para recoñecer texto en imaxes", + "machine_learning_ocr_enabled": "Activa o OCR", + "machine_learning_ocr_enabled_description": "Se está desactivado, as imaxes non se someterán a recoñecemento de texto.", + "machine_learning_ocr_max_resolution": "Resolución máxima", + "machine_learning_ocr_max_resolution_description": "As previsualizacións por enriba desta resolución redimensionaranse mantendo a proporción. Os valores máis altos son máis precisos, pero tardan máis en procesarse e usan máis memoria.", + "machine_learning_ocr_min_detection_score": "Puntuación mínima de detección", + "machine_learning_ocr_min_detection_score_description": "Puntuación mínima de confianza para que o texto sexa detectado, de 0 a 1. Os valores máis baixos detectarán máis texto, pero poden producir falsos positivos.", + "machine_learning_ocr_min_recognition_score": "Puntuación mínima de recoñecemento", + "machine_learning_ocr_min_score_recognition_description": "Puntuación mínima de confianza para que o texto detectado sexa recoñecido, de 0 a 1. Os valores máis baixos recoñecerán máis texto, pero poden producir falsos positivos.", + "machine_learning_ocr_model": "Modelo OCR", + "machine_learning_ocr_model_description": "Os modelos de servidor son máis precisos que os modelos móbiles, pero tardan máis en procesarse e usan máis memoria.", "machine_learning_settings": "Configuración da Aprendizaxe Automática", "machine_learning_settings_description": "Xestionar funcións e configuracións da aprendizaxe automática", "machine_learning_smart_search": "Busca Intelixente", @@ -245,6 +256,7 @@ "oauth_storage_quota_default_description": "Cota en GiB a empregar cando non se proporciona ningunha declaración.", "oauth_timeout": "Tempo máximo de espera da solicitude", "oauth_timeout_description": "Tempo máximo de espera para as solicitudes en milisegundos", + "ocr_job_description": "Emprega aprendizaxe automática para recoñecer texto en imaxes", "password_enable_description": "Iniciar sesión con correo electrónico e contrasinal", "password_settings": "Inicio de sesión con contrasinal", "password_settings_description": "Xestionar a configuración de inicio de sesión con contrasinal", @@ -404,11 +416,11 @@ "advanced_settings_prefer_remote_subtitle": "Algúns dispositivos tardan moito en cargar as miniaturas de ficheiros locais. Active esta opción para cargar imaxes remotas no seu lugar.", "advanced_settings_prefer_remote_title": "Preferir imaxes remotas", "advanced_settings_proxy_headers_subtitle": "Definir cabeceiras de proxy que Immich debería enviar con cada solicitude de rede", - "advanced_settings_proxy_headers_title": "Cabeceiras de Proxy", + "advanced_settings_proxy_headers_title": "Cabeceiras de proxy personalizadas [EXPERIMENTAL]", "advanced_settings_readonly_mode_subtitle": "Activa o modo de só lectura, no que as fotos só se poden visualizar; opcións como seleccionar varias imaxes, compartir, enviar a outros dispositivos ou eliminar están deshabilitadas. Active/desactive o modo de só lectura a través do avatar do usuario na pantalla principal", "advanced_settings_readonly_mode_title": "Modo de só lectura", "advanced_settings_self_signed_ssl_subtitle": "Omite a verificación do certificado SSL para o punto final do servidor. Requirido para certificados autofirmados.", - "advanced_settings_self_signed_ssl_title": "Permitir certificados SSL autofirmados", + "advanced_settings_self_signed_ssl_title": "Permitir certificados SSL autofirmados [EXPERIMENTAL]", "advanced_settings_sync_remote_deletions_subtitle": "Eliminar ou restaurar automaticamente un activo neste dispositivo cando esa acción se realiza na web", "advanced_settings_sync_remote_deletions_title": "Sincronizar eliminacións remotas [EXPERIMENTAL]", "advanced_settings_tile_subtitle": "Configuración de usuario avanzado", @@ -417,6 +429,7 @@ "age_months": "Idade: {months, plural, one {# mes} other {# meses}}", "age_year_months": "Idade: 1 ano e {months, plural, one {# mes} other {# meses}}", "age_years": "Idade: {years, plural, one {# ano} other {# anos}}", + "album": "Álbum", "album_added": "Álbum engadido", "album_added_notification_setting_description": "Recibir unha notificación por correo electrónico cando sexa engadido a un álbum compartido", "album_cover_updated": "Portada do álbum actualizada", @@ -462,6 +475,7 @@ "allow_edits": "Permitir edicións", "allow_public_user_to_download": "Permitir que o usuario público descargue", "allow_public_user_to_upload": "Permitir que o usuario público cargue", + "allowed": "Permitido", "alt_text_qr_code": "Imaxe de código QR", "anti_clockwise": "Sentido antihorario", "api_key": "Chave API", @@ -474,6 +488,8 @@ "app_bar_signout_dialog_title": "Pechar sesión", "app_download_links": "Ligazóns de Descarga da Aplicación", "app_settings": "Configuración da Aplicación", + "app_stores": "Tendas de aplicacións", + "app_update_available": "Hai unha actualización da aplicación dispoñible", "appears_in": "Aparece en", "apply_count": "Aplicar ({count, number})", "archive": "Arquivo", @@ -557,6 +573,7 @@ "backup_albums_sync": "Sincronización de álbums da copia de seguridade", "backup_all": "Todo", "backup_background_service_backup_failed_message": "Erro ao facer copia de seguridade dos activos. Reintentando…", + "backup_background_service_complete_notification": "Copia de seguridade dos recursos completada", "backup_background_service_connection_failed_message": "Erro ao conectar co servidor. Reintentando…", "backup_background_service_current_upload_notification": "Subindo {filename}", "backup_background_service_default_notification": "Comprobando novos activos…", @@ -666,6 +683,8 @@ "change_password_description": "Esta é a primeira vez que inicia sesión no sistema ou solicitouse un cambio do seu contrasinal. Introduza o novo contrasinal a continuación.", "change_password_form_confirm_password": "Confirmar Contrasinal", "change_password_form_description": "Ola {name},\n\nEsta é a primeira vez que inicia sesión no sistema ou solicitouse un cambio do seu contrasinal. Introduza o novo contrasinal a continuación.", + "change_password_form_log_out": "Pechar sesión en todos os outros dispositivos", + "change_password_form_log_out_description": "Recoméndase pechar sesión en todos os outros dispositivos", "change_password_form_new_password": "Novo Contrasinal", "change_password_form_password_mismatch": "Os contrasinais non coinciden", "change_password_form_reenter_new_password": "Reintroducir Novo Contrasinal", @@ -692,8 +711,8 @@ "client_cert_import_success_msg": "Certificado de cliente importado", "client_cert_invalid_msg": "Ficheiro de certificado inválido ou contrasinal incorrecto", "client_cert_remove_msg": "Certificado de cliente eliminado", - "client_cert_subtitle": "Só admite o formato PKCS12 (.p12, .pfx). A importación/eliminación de certificados só está dispoñible antes de iniciar sesión", - "client_cert_title": "Certificado de Cliente SSL", + "client_cert_subtitle": "Soporta só o formato PKCS12 (.p12, .pfx). A importación ou eliminación de certificados está dispoñible só antes de iniciar sesión", + "client_cert_title": "Certificado de cliente SSL [EXPERIMENTAL]", "clockwise": "Sentido horario", "close": "Pechar", "collapse": "Contraer", @@ -743,6 +762,7 @@ "create": "Crear", "create_album": "Crear álbum", "create_album_page_untitled": "Sen título", + "create_api_key": "Crear chave API", "create_library": "Crear Biblioteca", "create_link": "Crear ligazón", "create_link_to_share": "Crear ligazón para compartir", @@ -772,6 +792,7 @@ "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Escuro", "dark_theme": "Alternar tema escuro", + "date": "Data", "date_after": "Data posterior a", "date_and_time": "Data e Hora", "date_before": "Data anterior a", @@ -874,8 +895,6 @@ "edit_description_prompt": "Por favor, seleccione unha nova descrición:", "edit_exclusion_pattern": "Editar patrón de exclusión", "edit_faces": "Editar caras", - "edit_import_path": "Editar ruta de importación", - "edit_import_paths": "Editar Rutas de Importación", "edit_key": "Editar chave", "edit_link": "Editar ligazón", "edit_location": "Editar localización", @@ -947,7 +966,6 @@ "failed_to_stack_assets": "Erro ao apilar activos", "failed_to_unstack_assets": "Erro ao desapilar activos", "failed_to_update_notification_status": "Erro ao actualizar o estado das notificacións", - "import_path_already_exists": "Esta ruta de importación xa existe.", "incorrect_email_or_password": "Correo electrónico ou contrasinal incorrectos", "paths_validation_failed": "{paths, plural, one {# ruta fallou} other {# rutas fallaron}} na validación", "profile_picture_transparent_pixels": "As imaxes de perfil non poden ter píxeles transparentes. Por favor, faga zoom e/ou mova a imaxe.", @@ -957,7 +975,6 @@ "unable_to_add_assets_to_shared_link": "Non se puideron engadir activos á ligazón compartida", "unable_to_add_comment": "Non se puido engadir o comentario", "unable_to_add_exclusion_pattern": "Non se puido engadir o patrón de exclusión", - "unable_to_add_import_path": "Non se puido engadir a ruta de importación", "unable_to_add_partners": "Non se puideron engadir compañeiros/as", "unable_to_add_remove_archive": "Non se puido {archived, select, true {eliminar activo do} other {engadir activo ao}} arquivo", "unable_to_add_remove_favorites": "Non se puido {favorite, select, true {engadir activo a} other {eliminar activo de}} favoritos", @@ -980,12 +997,10 @@ "unable_to_delete_asset": "Non se puido eliminar o activo", "unable_to_delete_assets": "Erro ao eliminar activos", "unable_to_delete_exclusion_pattern": "Non se puido eliminar o patrón de exclusión", - "unable_to_delete_import_path": "Non se puido eliminar a ruta de importación", "unable_to_delete_shared_link": "Non se puido eliminar a ligazón compartida", "unable_to_delete_user": "Non se puido eliminar o usuario", "unable_to_download_files": "Non se puideron descargar os ficheiros", "unable_to_edit_exclusion_pattern": "Non se puido editar o patrón de exclusión", - "unable_to_edit_import_path": "Non se puido editar a ruta de importación", "unable_to_empty_trash": "Non se puido baleirar o lixo", "unable_to_enter_fullscreen": "Non se puido entrar en pantalla completa", "unable_to_exit_fullscreen": "Non se puido saír da pantalla completa", @@ -1080,6 +1095,7 @@ "features_setting_description": "Xestionar as funcións da aplicación", "file_name": "Nome do ficheiro", "file_name_or_extension": "Nome do ficheiro ou extensión", + "file_size": "Tamaño do arquivo", "filename": "Nome do ficheiro", "filetype": "Tipo de ficheiro", "filter": "Filtro", @@ -1119,7 +1135,7 @@ "hash_asset": "Facer hash do recurso", "hashed_assets": "Recursos cun hash", "hashing": "Aplicando hash", - "header_settings_add_header_tip": "Engadir Cabeceira", + "header_settings_add_header_tip": "Engadir cabeceira", "header_settings_field_validator_msg": "O valor non pode estar baleiro", "header_settings_header_name_input": "Nome da cabeceira", "header_settings_header_value_input": "Valor da cabeceira", @@ -1175,6 +1191,8 @@ "import_path": "Ruta de importación", "in_albums": "En {count, plural, one {# álbum} other {# álbums}}", "in_archive": "No arquivo", + "in_year": "No {year}", + "in_year_selector": "No", "include_archived": "Incluír arquivados", "include_shared_albums": "Incluír álbums compartidos", "include_shared_partner_assets": "Incluír activos de compañeiro/a compartidos", @@ -1211,6 +1229,7 @@ "language_setting_description": "Seleccione a súa lingua preferida", "large_files": "Ficheiros Grandes", "last": "Último/a", + "last_months": "{count, plural, one {O mes pasado} other {Os últimos # meses}}", "last_seen": "Visto por última vez", "latest_version": "Última Versión", "latitude": "Latitude", @@ -1243,6 +1262,7 @@ "local_media_summary": "Resumo de Contido Local", "local_network": "Rede local", "local_network_sheet_info": "A aplicación conectarase ao servidor a través desta URL cando use a rede wifi especificada", + "location": "Localización", "location_permission": "Permiso de localización", "location_permission_content": "Para usar a función de cambio automático, Immich necesita permiso de localización precisa para poder ler o nome da rede wifi actual", "location_picker_choose_on_map": "Elixir no mapa", @@ -1292,6 +1312,10 @@ "main_menu": "Menú principal", "make": "Marca", "manage_geolocation": "Xestionar a localización", + "manage_media_access_rationale": "Requírese este permiso para xestionar correctamente o traslado dos recursos ao lixo e a súa restauración desde el.", + "manage_media_access_settings": "Abrir axustes", + "manage_media_access_subtitle": "Permitir que a aplicación Immich xestione e mova ficheiros multimedia.", + "manage_media_access_title": "Acceso á xestión de medios", "manage_shared_links": "Xestionar ligazóns compartidas", "manage_sharing_with_partners": "Xestionar compartición con compañeiros/as", "manage_the_app_settings": "Xestionar a configuración da aplicación", @@ -1348,13 +1372,14 @@ "minutes": "Minutos", "missing": "Faltantes", "mobile_app": "Aplicación Móbil", - "mobile_app_download_onboarding_note": "Podes acceder a estas opcións de novo dende a páxina de Utilidades.", + "mobile_app_download_onboarding_note": "Descarga a aplicación móbil complementaria usando as seguintes opcións", "model": "Modelo", "month": "Mes", "monthly_title_text_date_format": "MMMM a", "more": "Máis", "move": "Mover", "move_off_locked_folder": "Mover fóra do cartafol bloqueado", + "move_to": "Mover a", "move_to_lock_folder_action_prompt": "{count} engadido/a ao cartafol bloqueado", "move_to_locked_folder": "Mover ao cartafol bloqueado", "move_to_locked_folder_confirmation": "Estas fotos e vídeo eliminaranse de todos os álbums e só serán visíbeis dende o cartafol bloqueado", @@ -1384,6 +1409,7 @@ "new_pin_code": "Novo código PIN", "new_pin_code_subtitle": "Esta é a túa primeira vez accedendo á carpeta segura. Crea un código PIN para acceder de maneira segura a esta páxina", "new_timeline": "Nova liña de tempo", + "new_update": "Nova actualización", "new_user_created": "Novo usuario creado", "new_version_available": "NOVA VERSIÓN DISPOÑIBLE", "newest_first": "Máis recentes primeiro", @@ -1399,6 +1425,7 @@ "no_cast_devices_found": "Non se atoparon dispositivos de transmisión", "no_checksum_local": "Non hai suma de verificación dispoñible - non se poden obter os activos locais", "no_checksum_remote": "Non hai suma de verificación dispoñible - non se pode obter o activo remoto", + "no_devices": "Dispositivos non autorizados", "no_duplicates_found": "Non se atoparon duplicados.", "no_exif_info_available": "Non hai información EXIF dispoñible", "no_explore_results_message": "Suba máis fotos para explorar a súa colección.", @@ -1415,6 +1442,7 @@ "no_results_description": "Probe cun sinónimo ou palabra chave máis xeral", "no_shared_albums_message": "Cree un álbum para compartir fotos e vídeos con persoas na súa rede", "no_uploads_in_progress": "Non hai cargas en curso", + "not_allowed": "Non permitido", "not_available": "Non dispoñible", "not_in_any_album": "Non está en ningún álbum", "not_selected": "Non seleccionado", @@ -1430,7 +1458,8 @@ "notifications_setting_description": "Xestionar notificacións", "oauth": "OAuth", "obtainium_configurator": "Configurador de Obtainium", - "obtainium_configurator_instructions": "Por favor, crea unha chave API e selecciona unha variante para xerar a túa ligazón de configuración de Obtainium.", + "obtainium_configurator_instructions": "Emprega Obtainium para instalar e actualizar a aplicación de Android directamente desde o lanzamento do GitHub de Immich. Crea unha chave API e selecciona unha variante para xerar o teu enlace de configuración de Obtainium", + "ocr": "OCR", "official_immich_resources": "Recursos Oficiais de Immich", "offline": "Fóra de liña", "offset": "Desprazamento", @@ -1524,6 +1553,8 @@ "photos_count": "{count, plural, one {{count, number} Foto} other {{count, number} Fotos}}", "photos_from_previous_years": "Fotos de anos anteriores", "pick_a_location": "Elixir unha localización", + "pick_custom_range": "Rango personalizado", + "pick_date_range": "Seleccionar un rango de datas", "pin_code_changed_successfully": "Código PIN cambiado correctamente", "pin_code_reset_successfully": "Código PIN restablecido correctamente", "pin_code_setup_successfully": "Código PIN configurado correctamente", @@ -1535,6 +1566,9 @@ "play_memories": "Reproducir recordos", "play_motion_photo": "Reproducir Foto en Movemento", "play_or_pause_video": "Reproducir ou pausar vídeo", + "play_original_video": "Reproducir o vídeo orixinal", + "play_original_video_setting_description": "Preferir a reprodución dos vídeos orixinais en vez dos vídeos transcodificados. Se o recurso orixinal non é compatible, pode que non se reproduza correctamente.", + "play_transcoded_video": "Reproducir vídeo transcodificado", "please_auth_to_access": "Por favor, autentícate para acceder", "port": "Porto", "preferences_settings_subtitle": "Xestionar as preferencias da aplicación", @@ -1671,6 +1705,7 @@ "reset_sqlite_confirmation": "Estás seguro de que queres restablecer a base de datos SQLite? Terás que pechar a sesión e iniciar sesión de novo para sincronizar os datos outra vez", "reset_sqlite_success": "Base de datos SQLite restablecida correctamente", "reset_to_default": "Restablecer ao predeterminado", + "resolution": "Resolución", "resolve_duplicates": "Resolver duplicados", "resolved_all_duplicates": "Resolvéronse todos os duplicados", "restore": "Restaurar", @@ -1689,6 +1724,7 @@ "running": "Executándose", "save": "Gardar", "save_to_gallery": "Gardar na galería", + "saved": "Gardo", "saved_api_key": "Chave API gardada", "saved_profile": "Perfil gardado", "saved_settings": "Configuración gardada", @@ -1705,6 +1741,9 @@ "search_by_description_example": "Día de sendeirismo en Sapa", "search_by_filename": "Buscar por nome de ficheiro ou extensión", "search_by_filename_example": "p. ex. IMG_1234.JPG ou PNG", + "search_by_ocr": "Buscar mediante OCR", + "search_by_ocr_example": "Latte", + "search_camera_lens_model": "Buscar modelo de lente...", "search_camera_make": "Buscar marca de cámara...", "search_camera_model": "Buscar modelo de cámara...", "search_city": "Buscar cidade...", @@ -1721,6 +1760,7 @@ "search_filter_location_title": "Seleccionar localización", "search_filter_media_type": "Tipo de Medio", "search_filter_media_type_title": "Seleccionar tipo de medio", + "search_filter_ocr": "Buscar por OCR", "search_filter_people_title": "Seleccionar persoas", "search_for": "Buscar por", "search_for_existing_person": "Buscar persoa existente", @@ -1783,6 +1823,7 @@ "server_online": "Servidor En Liña", "server_privacy": "Privacidade do Servidor", "server_stats": "Estatísticas do Servidor", + "server_update_available": "Hai unha actualización do servidor dispoñible", "server_version": "Versión do Servidor", "set": "Establecer", "set_as_album_cover": "Establecer como portada do álbum", @@ -1992,7 +2033,9 @@ "theme_setting_three_stage_loading_title": "Activar carga en tres etapas", "they_will_be_merged_together": "Fusionaranse xuntos", "third_party_resources": "Recursos de Terceiros", + "time": "Hora", "time_based_memories": "Recordos baseados no tempo", + "time_based_memories_duration": "Número de segundos para mostrar cada imaxe.", "timeline": "Liña de tempo", "timezone": "Fuso horario", "to_archive": "Arquivar", @@ -2024,6 +2067,7 @@ "troubleshoot": "Solucionar problemas", "type": "Tipo", "unable_to_change_pin_code": "Non é posible cambiar o código PIN", + "unable_to_check_version": "Non se puido verificar a versión da aplicación ou do servidor", "unable_to_setup_pin_code": "Non é posible configurar o código PIN", "unarchive": "Desarquivar", "unarchive_action_prompt": "{count} eliminados do Arquivo", @@ -2132,6 +2176,7 @@ "welcome": "Benvido/a", "welcome_to_immich": "Benvido/a a Immich", "wifi_name": "Nome da wifi", + "workflow": "Fluxo de traballo", "wrong_pin_code": "Código PIN incorrecto", "year": "Ano", "years_ago": "Hai {years, plural, one {# ano} other {# anos}}", diff --git a/i18n/he.json b/i18n/he.json index 3d3a82e9e1..362f2b72d3 100644 --- a/i18n/he.json +++ b/i18n/he.json @@ -17,7 +17,6 @@ "add_birthday": "הוספת יום הולדת", "add_endpoint": "הוסף כתובת URL", "add_exclusion_pattern": "הוספת דפוס החרגה", - "add_import_path": "הוספת נתיב יבוא", "add_location": "הוספת מיקום", "add_more_users": "הוספת עוד משתמשים", "add_partner": "הוספת שותף", @@ -112,7 +111,6 @@ "jobs_failed": "{jobCount, plural, other {# נכשלו}}", "library_created": "נוצרה ספרייה: {library}", "library_deleted": "ספרייה נמחקה", - "library_import_path_description": "ציין תיקיה לייבוא. תיקייה זו, כולל תיקיות משנה, תיסרק עבור תמונות וסרטונים.", "library_scanning": "סריקה תקופתית", "library_scanning_description": "הגדר סריקת ספרייה תקופתית", "library_scanning_enable_description": "אפשר סריקת ספרייה תקופתית", @@ -120,7 +118,7 @@ "library_settings_description": "ניהול הגדרות ספרייה חיצונית", "library_tasks_description": "סרוק ספריות חיצוניות עבור תמונות חדשות ו/או שהשתנו", "library_watching_enable_description": "עקוב אחר שינויי קבצים בספריות חיצוניות", - "library_watching_settings": "צפיית ספרייה (ניסיוני)", + "library_watching_settings": "צפייה בספרייה [ניסיוני]", "library_watching_settings_description": "עקוב אוטומטית אחר שינויי קבצים", "logging_enable_description": "אפשר רישום ביומן", "logging_level_description": "כאשר פועל, באיזה רמת יומן לתעד.", @@ -154,6 +152,18 @@ "machine_learning_min_detection_score_description": "ציון ביטחון מינימלי לאיתור פנים מ-0 עד 1. ערכים נמוכים יותר יאתרו יותר פנים אך עלולים לגרום לתוצאות חיוביות שגויות.", "machine_learning_min_recognized_faces": "מינימום פנים מזוהים", "machine_learning_min_recognized_faces_description": "המספר המינימלי של פנים מזוהים ליצירת אדם. הגדלת ערך זה הופכת את זיהוי הפנים למדויק יותר בעלות של הגברת הסיכוי שלא יוקצו פנים לאדם.", + "machine_learning_ocr": "OCR", + "machine_learning_ocr_description": "השתמש בלמידת מכונה לזיהוי טקסט בתמונות", + "machine_learning_ocr_enabled": "הפעלת OCR", + "machine_learning_ocr_enabled_description": "אם מבוטל, תמונות לא יעברו זיהוי טקסט.", + "machine_learning_ocr_max_resolution": "רזולוציה מירבית", + "machine_learning_ocr_max_resolution_description": "תצוגות מקדימות מעל רזולוציה זו ישונו תוך שמירה על יחס גובה לרוחב. ערכים גבוהים הם מדויקים יותר, אך דורשים יותר זמן עיבוד וזיכרון.", + "machine_learning_ocr_min_detection_score": "ציון איתור מזערי", + "machine_learning_ocr_min_detection_score_description": "ציון ביטחון מזערי לאיתור טקסט בטווח 0-1. ערכים נמוכים יאתרו יותר טקסט אך עלולים לגרום לאיתורים שגויים.", + "machine_learning_ocr_min_recognition_score": "ציון זיהוי מזערי", + "machine_learning_ocr_min_score_recognition_description": "ציון ביטחון מזערי לזיהוי טקסט שאותר בטווח 0-1. ערכים נמוכים יזהו יותר טקסט אך עלולים לגרום לזיהויים שגויים.", + "machine_learning_ocr_model": "מודל OCR", + "machine_learning_ocr_model_description": "מודלי שרת הינם מדויקים יותר ממודלי טלפון, אך לוקחים יותר זמן עיבוד וצורכים יותר זיכרון.", "machine_learning_settings": "הגדרות למידת מכונה", "machine_learning_settings_description": "ניהול התכונות וההגדרות של למידת המכונה", "machine_learning_smart_search": "חיפוש חכם", @@ -211,6 +221,8 @@ "notification_email_ignore_certificate_errors_description": "התעלם משגיאות אימות תעודת TLS (לא מומלץ)", "notification_email_password_description": "סיסמה לשימוש בעת אימות עם שרת הדוא\"ל", "notification_email_port_description": "יציאה של שרת הדוא\"ל (למשל 25, 465, או 587)", + "notification_email_secure": "SMTPS", + "notification_email_secure_description": "השתמש ב-SMTPS (פרוטוקול SMTP מעל TLS)", "notification_email_sent_test_email_button": "שלח דוא\"ל בדיקה ושמור", "notification_email_setting_description": "הגדרות לשליחת התראות דוא\"ל", "notification_email_test_email": "שלח דוא\"ל בדיקה", @@ -243,6 +255,7 @@ "oauth_storage_quota_default_description": "מכסה ב-GiB לשימוש כאשר לא מסופקת דרישה.", "oauth_timeout": "הבקשה נכשלה – הזמן הקצוב הסתיים", "oauth_timeout_description": "זמן קצוב לבקשות (במילישניות)", + "ocr_job_description": "השתמש בלמידת מכונה לזיהוי טקסט בתמונות", "password_enable_description": "התחבר עם דוא\"ל וסיסמה", "password_settings": "סיסמת התחברות", "password_settings_description": "ניהול הגדרות סיסמת התחברות", @@ -333,7 +346,7 @@ "transcoding_max_b_frames": "B-פריימים מרביים", "transcoding_max_b_frames_description": "ערכים גבוהים יותר משפרים את יעילות הדחיסה, אך מאטים את הקידוד. ייתכן שלא יהיה תואם עם האצת חומרה במכשירים ישנים יותר. 0 משבית את B-פריימים, בעוד ש1- מגדיר את הערך זה באופן אוטומטי.", "transcoding_max_bitrate": "קצב סיביות מרבי", - "transcoding_max_bitrate_description": "קביעת קצב סיביות מרבי יכולה להפוך את גדלי הקבצים לצפויים יותר בעלות קלה לאיכות. ב-720p, ערכים טיפוסיים הם 2600 kbit/s עבור VP9 או HEVC, או 4500 kbit/s עבור H.264. מושבת אם מוגדר ל-0.", + "transcoding_max_bitrate_description": "קביעת קצב סיביות מרבי יכולה להפוך את גדלי הקבצים לצפויים יותר בעלות קלה לאיכות. ב-720p, ערכים טיפוסיים הם 2600 kbit/s עבור VP9 או HEVC, או 4500 kbit/s עבור H.264. מושבת אם מוגדר ל-0. אם לא הוגדרו יחידות, ייעשה שימוש ב-k (עבור kbit/s)ף כלומר 5000, 5000k ו-5M (עבור Mbit/s) שקולים.", "transcoding_max_keyframe_interval": "מרווח תמונת מפתח מרבי", "transcoding_max_keyframe_interval_description": "מגדיר את מרחק הפריימים המרבי בין תמונות מפתח. ערכים נמוכים גורעים את יעילות הדחיסה, אך משפרים את זמני החיפוש ועשויים לשפר את האיכות בסצנות עם תנועה מהירה. 0 מגדיר ערך זה באופן אוטומטי.", "transcoding_optimal_description": "סרטונים גבוהים מרזולוציית היעד או לא בפורמט מקובל", @@ -351,7 +364,7 @@ "transcoding_target_resolution": "רזולוציה יעד", "transcoding_target_resolution_description": "רזולוציות גבוהות יותר יכולות לשמר פרטים רבים יותר אך לוקחות זמן רב יותר לקידוד, יש להן גדלי קבצים גדולים יותר, ויכולות להפחית את תגובתיות היישום.", "transcoding_temporal_aq": "AQ מבוסס זמן", - "transcoding_temporal_aq_description": "חל רק על NVENC. מגביר את האיכות של סצנות עם רמת פירוט גבוהה בהילוך איטי. ייתכן שלא יהיה תואם למכשירים ישנים יותר.", + "transcoding_temporal_aq_description": "חל רק על NVENC. כימות מסתגל לפי זמן מגביר את האיכות של סצנות עם רמת פירוט גבוהה בהילוך איטי. ייתכן שלא יהיה תואם למכשירים ישנים יותר.", "transcoding_threads": "תהליכונים", "transcoding_threads_description": "ערכים גבוהים יותר מובילים לקידוד מהיר יותר, אך משאירים פחות מקום לשרת לעבד משימות אחרות בעודו פעיל. ערך זה לא אמור להיות יותר ממספר ליבות המעבד. ממקסם את הניצול אם מוגדר ל-0.", "transcoding_tone_mapping": "מיפוי גוונים", @@ -402,11 +415,11 @@ "advanced_settings_prefer_remote_subtitle": "במכשירים מסוימים טעינת תמונות ממוזערות מקבצים מקומיים עלולה להיות איטית במיוחד. הפעל הגדרה זו כדי לטעון תמונות מרוחקות במקום זאת.", "advanced_settings_prefer_remote_title": "העדף תמונות מרוחקות", "advanced_settings_proxy_headers_subtitle": "הגדר proxy headers שהיישום צריך לשלוח עם כל בקשת רשת", - "advanced_settings_proxy_headers_title": "כותרות פרוקסי", + "advanced_settings_proxy_headers_title": "כותרות פרוקסי [ניסיוני]", "advanced_settings_readonly_mode_subtitle": "מאפשר את מצב לקריאה בלבד בו התמונות ניתנות לצפייה בלבד, דברים כמו בחירת תמונות מרובות, שיתוף, שידור, מחיקה הם כולם מושבתים. אפשר/השבת מצב לקריאה בלבד באמצעות יצגן המשתמש מהמסך הראשי", - "advanced_settings_readonly_mode_title": "מצב לקריאה בלבד", + "advanced_settings_readonly_mode_title": "מצב קריאה בלבד", "advanced_settings_self_signed_ssl_subtitle": "מדלג על אימות תעודת SSL עבור כתובת URL של השרת. דרוש עבור תעודות בחתימה עצמית.", - "advanced_settings_self_signed_ssl_title": "התר תעודות SSL בחתימה עצמית", + "advanced_settings_self_signed_ssl_title": "התר תעודות SSL בחתימה עצמית [ניסיוני]", "advanced_settings_sync_remote_deletions_subtitle": "מחק או שחזר תמונה במכשיר זה באופן אוטומטי כאשר פעולה זו נעשית בדפדפן", "advanced_settings_sync_remote_deletions_title": "סנכרן מחיקות שבוצעו במכשירים אחרים [נסיוני]", "advanced_settings_tile_subtitle": "הגדרות משתמש מתקדם", @@ -466,10 +479,14 @@ "api_key_description": "הערך הזה יוצג רק פעם אחת. נא לוודא שהעתקת אותו לפני סגירת החלון.", "api_key_empty": "מפתח ה-API שלך לא אמור להיות ריק", "api_keys": "מפתחות API", + "app_architecture_variant": "וריאנט (ארכיטקטורה)", "app_bar_signout_dialog_content": "האם את/ה בטוח/ה שברצונך להתנתק?", "app_bar_signout_dialog_ok": "כן", "app_bar_signout_dialog_title": "התנתק", + "app_download_links": "קישורים להורדת האפליקציה", "app_settings": "הגדרות יישום", + "app_stores": "חנויות אפליקציה", + "app_update_available": "יש עדכון לאפליקציה", "appears_in": "מופיע ב", "apply_count": "החל ({count, number})", "archive": "ארכיון", @@ -553,6 +570,7 @@ "backup_albums_sync": "סנכרון אלבומי גיבוי", "backup_all": "הכל", "backup_background_service_backup_failed_message": "נכשל בגיבוי תמונות. מנסה שוב…", + "backup_background_service_complete_notification": "גיבוי הנכסים הושלם", "backup_background_service_connection_failed_message": "נכשל בהתחברות לשרת. מנסה שוב…", "backup_background_service_current_upload_notification": "מעלה {filename}", "backup_background_service_default_notification": "מחפש תמונות חדשות…", @@ -662,6 +680,8 @@ "change_password_description": "זאת או הפעם הראשונה שהתחברת למערכת או שנעשתה בקשה לשינוי הסיסמה שלך. נא להזין את הסיסמה החדשה למטה.", "change_password_form_confirm_password": "אשר סיסמה", "change_password_form_description": "הי {name},\n\nזאת או הפעם הראשונה שאת/ה מתחבר/ת למערכת או שנעשתה בקשה לשינוי הסיסמה שלך. נא להזין את הסיסמה החדשה למטה.", + "change_password_form_log_out": "התנתק מכל שאר המכשירים", + "change_password_form_log_out_description": "מומלץ להתנתק מכל שאר הרכיבים", "change_password_form_new_password": "סיסמה חדשה", "change_password_form_password_mismatch": "סיסמאות לא תואמות", "change_password_form_reenter_new_password": "הכנס שוב סיסמה חדשה", @@ -689,7 +709,7 @@ "client_cert_invalid_msg": "קובץ תעודה לא תקין או סיסמה שגויה", "client_cert_remove_msg": "תעודת לקוח הוסרה", "client_cert_subtitle": "תומך בפורמט PKCS12 (.p12, .pfx) בלבד. ייבוא/הסרה של תעודה זמינה רק לפני התחברות", - "client_cert_title": "תעודת לקוח SSL", + "client_cert_title": "תעודת לקוח SSL [ניסיוני]", "clockwise": "עם כיוון השעון", "close": "סגור", "collapse": "כווץ", @@ -739,6 +759,7 @@ "create": "צור", "create_album": "צור אלבום", "create_album_page_untitled": "ללא כותרת", + "create_api_key": "יצירת מפתח API", "create_library": "צור ספרייה", "create_link": "צור קישור", "create_link_to_share": "צור קישור לשיתוף", @@ -768,6 +789,7 @@ "daily_title_text_date_year": "E, MMM dd, yyyy", "dark": "כהה", "dark_theme": "הפעל/כבה מצב כהה", + "date": "תאריך", "date_after": "תאריך אחרי", "date_and_time": "תאריך ושעה", "date_before": "תאריך לפני", @@ -870,8 +892,6 @@ "edit_description_prompt": "אנא בחר תיאור חדש:", "edit_exclusion_pattern": "ערוך דפוס החרגה", "edit_faces": "ערוך פנים", - "edit_import_path": "ערוך נתיב יבוא", - "edit_import_paths": "ערוך נתיבי ייבוא", "edit_key": "ערוך מפתח", "edit_link": "ערוך קישור", "edit_location": "ערוך מיקום", @@ -943,7 +963,6 @@ "failed_to_stack_assets": "יצירת ערימת תמונות נכשלה", "failed_to_unstack_assets": "ביטול ערימת תמונות נכשלה", "failed_to_update_notification_status": "שגיאה בעדכון ההתראה", - "import_path_already_exists": "נתיב הייבוא הזה כבר קיים.", "incorrect_email_or_password": "דוא\"ל או סיסמה שגויים", "paths_validation_failed": "{paths, plural, one {נתיב # נכשל} other {# נתיבים נכשלו}} אימות", "profile_picture_transparent_pixels": "תמונות פרופיל אינן יכולות לכלול פיקסלים שקופים. נא להגדיל ו/או להזיז את התמונה.", @@ -953,7 +972,6 @@ "unable_to_add_assets_to_shared_link": "לא ניתן להוסיף תמונות לקישור משותף", "unable_to_add_comment": "לא ניתן להוסיף תגובה", "unable_to_add_exclusion_pattern": "לא ניתן להוסיף דפוס החרגה", - "unable_to_add_import_path": "לא ניתן להוסיף נתיב ייבוא", "unable_to_add_partners": "לא ניתן להוסיף שותפים", "unable_to_add_remove_archive": "לא ניתן {archived, select, true {להסיר תמונה מ} other {להוסיף תמונה ל}}ארכיון", "unable_to_add_remove_favorites": "לא ניתן {favorite, select, true {להוסיף תמונה ל} other {להסיר תמונה מ}}מועדפים", @@ -976,12 +994,10 @@ "unable_to_delete_asset": "לא ניתן למחוק את התמונה", "unable_to_delete_assets": "שגיאה במחיקת התמונות", "unable_to_delete_exclusion_pattern": "לא ניתן למחוק דפוס החרגה", - "unable_to_delete_import_path": "לא ניתן למחוק את נתיב הייבוא", "unable_to_delete_shared_link": "לא ניתן למחוק קישור משותף", "unable_to_delete_user": "לא ניתן למחוק משתמש", "unable_to_download_files": "לא ניתן להוריד קבצים", "unable_to_edit_exclusion_pattern": "לא ניתן לערוך דפוס החרגה", - "unable_to_edit_import_path": "לא ניתן לערוך את נתיב הייבוא", "unable_to_empty_trash": "לא ניתן לרוקן אשפה", "unable_to_enter_fullscreen": "לא ניתן להיכנס למסך מלא", "unable_to_exit_fullscreen": "לא ניתן לצאת ממסך מלא", @@ -1037,6 +1053,7 @@ "exif_bottom_sheet_description_error": "שגיאה בעדכון התיאור", "exif_bottom_sheet_details": "פרטים", "exif_bottom_sheet_location": "מיקום", + "exif_bottom_sheet_no_description": "ללא תיאור", "exif_bottom_sheet_people": "אנשים", "exif_bottom_sheet_person_add_person": "הוסף שם", "exit_slideshow": "צא ממצגת שקופיות", @@ -1075,6 +1092,7 @@ "features_setting_description": "ניהול תכונות היישום", "file_name": "שם הקובץ", "file_name_or_extension": "שם קובץ או סיומת", + "file_size": "גודל קובץ", "filename": "שם קובץ", "filetype": "סוג קובץ", "filter": "סנן", @@ -1238,6 +1256,7 @@ "local_media_summary": "סיכום של מדיה מקומית", "local_network": "רשת מקומית", "local_network_sheet_info": "היישום יתחבר לשרת דרך הכתובת הזאת כאשר משתמשים ברשת האינטרנט האלחוטי שמצוינת", + "location": "מיקום", "location_permission": "הרשאת מיקום", "location_permission_content": "כדי להשתמש בתכונת ההחלפה האוטומטית, היישום צריך הרשאה למיקום מדויק על מנת לקרוא את השם של רשת האינטרנט האלחוטי", "location_picker_choose_on_map": "בחר על מפה", @@ -1287,6 +1306,8 @@ "main_menu": "תפריט ראשי", "make": "תוצרת", "manage_geolocation": "נהל מיקום", + "manage_media_access_settings": "פתח הגדרות", + "manage_media_access_subtitle": "אפשר לאפליקציית Immich לנהל ולהזיז קבצי מדיה.", "manage_shared_links": "ניהול קישורים משותפים", "manage_sharing_with_partners": "ניהול שיתוף עם שותפים", "manage_the_app_settings": "ניהול הגדרות האפליקציה", @@ -1342,6 +1363,8 @@ "minute": "דקה", "minutes": "דקות", "missing": "חסרים", + "mobile_app": "אפליקציה לטלפון", + "mobile_app_download_onboarding_note": "הורד את האפליקציה המלווה באחת מהאפשרויות הבאות", "model": "דגם", "month": "חודש", "monthly_title_text_date_format": "MMMM y", @@ -1360,6 +1383,8 @@ "my_albums": "האלבומים שלי", "name": "שם", "name_or_nickname": "שם או כינוי", + "navigate": "נווט", + "navigate_to_time": "נווט אל זמן", "network_requirement_photos_upload": "השתמש בנתונים ניידים לגיבוי תמונות", "network_requirement_videos_upload": "השתמש בנתונים ניידים לגיבוי סרטונים", "network_requirements": "דרישות רשת", @@ -1369,11 +1394,13 @@ "never": "אף פעם", "new_album": "אלבום חדש", "new_api_key": "מפתח API חדש", + "new_date_range": "טווח תאריך חדש", "new_password": "סיסמה חדשה", "new_person": "אדם חדש", "new_pin_code": "קוד PIN חדש", "new_pin_code_subtitle": "זאת הפעם הראשונה שנכנסת לתיקיה הנעולה. צור קוד PIN כדי לאבטח את הגישה לדף זה", "new_timeline": "ציר הזמן החדש", + "new_update": "עדכון חדש", "new_user_created": "משתמש חדש נוצר", "new_version_available": "גרסה חדשה זמינה", "newest_first": "החדש ביותר ראשון", @@ -1419,6 +1446,9 @@ "notifications": "התראות", "notifications_setting_description": "ניהול התראות", "oauth": "OAuth", + "obtainium_configurator": "הגדרות Obtainium", + "obtainium_configurator_instructions": "השתמש ב-Obtainium כגדי להתקין ולעדכן את אפליקציית האנדרואיד ישירות לגרסאות הגיטהאב של Immich. צור מפתח API ובחר וריאנט כדי ליצור קישור קונפיגורציה עבור Obtainium", + "ocr": "OCR", "official_immich_resources": "מקורות רשמיים של Immich", "offline": "לא מקוון", "offset": "קיזוז", @@ -1523,6 +1553,9 @@ "play_memories": "נגן זכרונות", "play_motion_photo": "הפעל תמונה עם תנועה", "play_or_pause_video": "הפעל או השהה סרטון", + "play_original_video": "נגן את הווידיאו המקורי", + "play_original_video_setting_description": "העדף לנגן סרטונים המקוריים על פני סרטונים משועתקים. אם הסרטון המקורי אינו תואם הוא עלול להתנגן לא נכון.", + "play_transcoded_video": "נגן סרטון משועתק", "please_auth_to_access": "אנא אמת את זהותך כדי לגשת", "port": "יציאה", "preferences_settings_subtitle": "ניהול העדפות יישום", @@ -1659,6 +1692,7 @@ "reset_sqlite_confirmation": "האם אתה בטוח שברצונך לאפס את מסד הנתונים SQLite? יהיה עליך להתנתק ולהתחבר מחדש כדי לסנכרן את הנתונים מחדש", "reset_sqlite_success": "איפוס מסד הנתונים SQLite בוצע בהצלחה", "reset_to_default": "אפס לברירת מחדל", + "resolution": "רזולוציה", "resolve_duplicates": "פתור כפילויות", "resolved_all_duplicates": "כל הכפילויות נפתרו", "restore": "שחזר", @@ -1677,6 +1711,7 @@ "running": "פועל", "save": "שמור", "save_to_gallery": "שמור לגלריה", + "saved": "נשמר", "saved_api_key": "מפתח API שמור", "saved_profile": "פרופיל שמור", "saved_settings": "הגדרות שמורות", @@ -1693,6 +1728,9 @@ "search_by_description_example": "יום טיול בסאפה", "search_by_filename": "חיפוש לפי שם קובץ או סיומת", "search_by_filename_example": "לדוגמא IMG_1234.JPG או PNG", + "search_by_ocr": "חיפוש לפי OCR", + "search_by_ocr_example": "לאטה", + "search_camera_lens_model": "חיפוש סוג עדשה...", "search_camera_make": "חיפוש תוצרת המצלמה...", "search_camera_model": "חפש דגם המצלמה...", "search_city": "חיפוש עיר...", @@ -1709,6 +1747,7 @@ "search_filter_location_title": "בחר מיקום", "search_filter_media_type": "סוג מדיה", "search_filter_media_type_title": "בחר סוג מדיה", + "search_filter_ocr": "חיפוש לפי OCR", "search_filter_people_title": "בחר אנשים", "search_for": "חיפוש", "search_for_existing_person": "חיפוש אדם קיים", @@ -1771,6 +1810,7 @@ "server_online": "החיבור לשרת פעיל", "server_privacy": "פרטיות השרת", "server_stats": "סטטיסטיקות שרת", + "server_update_available": "עדכון שרת זמין", "server_version": "גרסת שרת", "set": "הגדר", "set_as_album_cover": "הגדר כעטיפת האלבום", @@ -1799,6 +1839,8 @@ "setting_notifications_subtitle": "התאם את העדפות ההתראה שלך", "setting_notifications_total_progress_subtitle": "התקדמות העלאה כללית (בוצע/סה״כ תמונות)", "setting_notifications_total_progress_title": "הראה סה״כ התקדמות גיבוי ברקע", + "setting_video_viewer_auto_play_subtitle": "נגן סרטונים אוטומטית כשהם נפתחים", + "setting_video_viewer_auto_play_title": "נגן סרטונים אוטומטית", "setting_video_viewer_looping_title": "הפעלה חוזרת", "setting_video_viewer_original_video_subtitle": "כאשר מזרימים סרטון מהשרת, נגן את המקורי אפילו כשהמרת קידוד זמינה. עלול להוביל לתקיעות. סרטונים זמינים מקומית מנוגנים באיכות מקורית ללא קשר להגדרה זו.", "setting_video_viewer_original_video_title": "כפה סרטון מקורי", @@ -1978,6 +2020,7 @@ "theme_setting_three_stage_loading_title": "אפשר טעינה בשלושה שלבים", "they_will_be_merged_together": "הם יתמזגו יחד", "third_party_resources": "משאבי צד שלישי", + "time": "זמן", "time_based_memories": "זכרונות מבוססי זמן", "timeline": "ציר זמן", "timezone": "אזור זמן", @@ -2010,6 +2053,7 @@ "troubleshoot": "פתור בעיות", "type": "סוג", "unable_to_change_pin_code": "לא ניתן לשנות את קוד ה PIN", + "unable_to_check_version": "לא ניתן לבדוק את גרסאת האפליקציה או השרת", "unable_to_setup_pin_code": "לא ניתן להגדיר קוד PIN", "unarchive": "הוצא מארכיון", "unarchive_action_prompt": "{count} הוסרו מהארכיון", diff --git a/i18n/hi.json b/i18n/hi.json index fb1698c0a2..7f4f3dfb29 100644 --- a/i18n/hi.json +++ b/i18n/hi.json @@ -1,7 +1,7 @@ { "about": "बारे में", - "account": "अभिलेख", - "account_settings": "अभिलेख व्यवस्था", + "account": "खाता", + "account_settings": "खाता सेटिंग्स", "acknowledge": "स्वीकार करें", "action": "कार्रवाई", "action_common_update": "अद्यतन", @@ -17,7 +17,6 @@ "add_birthday": "अपने जन्मदिन का उल्लेख करें", "add_endpoint": "endpoint डालें", "add_exclusion_pattern": "अपवाद उदाहरण डालें", - "add_import_path": "आयात पथ डालें", "add_location": "स्थान डालें", "add_more_users": "अधिक उपयोगकर्ता डालें", "add_partner": "जोड़ीदार डालें", @@ -32,6 +31,7 @@ "add_to_album_toggle": "{album} के लिए चयन टॉगल करें", "add_to_albums": "एकाधिक एल्बम में डाले", "add_to_albums_count": "एल्बमों में डालें ({count})", + "add_to_bottom_bar": "इसमें जोड़ें", "add_to_shared_album": "शेयर किए गए एल्बम में डालें", "add_upload_to_stack": "स्टैक में अपलोड करें", "add_url": "URL डालें", @@ -112,7 +112,6 @@ "jobs_failed": "{jobCount, plural, other {# असफल}}", "library_created": "निर्मित संग्रह: {library}", "library_deleted": "संग्रह हटा दिया गया", - "library_import_path_description": "आयात करने के लिए एक फ़ोल्डर निर्दिष्ट करें। सबफ़ोल्डर्स सहित इस फ़ोल्डर को छवियों और वीडियो के लिए स्कैन किया जाएगा।", "library_scanning": "सामयिक स्कैनिंग", "library_scanning_description": "सामयिक लाइब्रेरी स्कैनिंग कॉन्फ़िगर करें", "library_scanning_enable_description": "सामयिक लाइब्रेरी स्कैनिंग सक्षम करें", @@ -173,6 +172,10 @@ "machine_learning_smart_search_enabled": "स्मार्ट खोज सक्षम करें", "machine_learning_smart_search_enabled_description": "यदि अक्षम किया गया है, तो स्मार्ट खोज के लिए छवियों को एन्कोड नहीं किया जाएगा।", "machine_learning_url_description": "मशीन लर्निंग सर्वर का URL। यदि एक से अधिक URL दिए गए हैं, तो प्रत्येक सर्वर को एक-एक करके कोशिश किया जाएगा, पहले से आखिरी तक, जब तक कोई सफलतापूर्वक प्रतिक्रिया न दे। जो सर्वर प्रतिक्रिया नहीं देते, उन्हें अस्थायी रूप से नजरअंदाज किया जाएगा जब तक वे फिर से ऑनलाइन न हों।", + "maintenance_settings": "रखरखाव", + "maintenance_settings_description": "Immich को मेंटेनेंस मोड में रखें।", + "maintenance_start": "रखरखाव मोड शुरू करें", + "maintenance_start_error": "मेंटेनेंस मोड शुरू नहीं हो सका।", "manage_concurrency": "समवर्तीता प्रबंधित करें", "manage_log_settings": "लॉग सेटिंग प्रबंधित करें", "map_dark_style": "डार्क शैली", @@ -366,7 +369,7 @@ "transcoding_target_resolution": "लक्ष्य संकल्प", "transcoding_target_resolution_description": "उच्च रिज़ॉल्यूशन अधिक विवरण संरक्षित कर सकते हैं लेकिन एन्कोड करने में अधिक समय लेते हैं, फ़ाइल आकार बड़े होते हैं, और ऐप प्रतिक्रियाशीलता को कम कर सकते हैं।", "transcoding_temporal_aq": "अस्थायी AQ", - "transcoding_temporal_aq_description": "केवल एनवीईएनसी पर लागू होता है।", + "transcoding_temporal_aq_description": "केवल NVENC पर लागू होता है। टेम्पोरल अडैप्टिव क्वांटाइज़ेशन उच्च-विस्तार, कम-गति वाले दृश्यों की गुणवत्ता बढ़ाता है। हो सकता है कि यह पुराने उपकरणों के साथ संगत न हो।", "transcoding_threads": "थ्रेड्स", "transcoding_threads_description": "उच्च मान तेज़ एन्कोडिंग की ओर ले जाते हैं, लेकिन सक्रिय रहते हुए सर्वर के लिए अन्य कार्यों को संसाधित करने के लिए कम जगह छोड़ते हैं।", "transcoding_tone_mapping": "टोन-मैपिंग", @@ -417,11 +420,11 @@ "advanced_settings_prefer_remote_subtitle": "कुछ डिवाइस स्थानीय एसेट से थंबनेल लोड करने में बहुत धीमे होते हैं। इसके बजाय, दूरस्थ इमेज लोड करने के लिए इस सेटिंग को सक्रिय करें।", "advanced_settings_prefer_remote_title": "दूरस्थ छवियों को प्राथमिकता दें", "advanced_settings_proxy_headers_subtitle": "प्रत्येक नेटवर्क अनुरोध के साथ इम्मिच द्वारा भेजे जाने वाले प्रॉक्सी हेडर को परिभाषित करें", - "advanced_settings_proxy_headers_title": "प्रॉक्सी हेडर", + "advanced_settings_proxy_headers_title": "कस्टम प्रॉक्सी हेडर [प्रायोगिक]", "advanced_settings_readonly_mode_subtitle": "रीड-ओनली प्रणाली को सक्षम करता है जहां चित्र को केवल देखा जा सकता है, एकाधिक चित्रों का चयन करना, साझा करना, कास्टिंग करना, हटाना जैसी सभी चीज़ें अक्षम हैं। मुख्य स्क्रीन में उपयोगकर्ता- अवतार के माध्यम से रीड-ओनली प्रणाली को सक्षम/अक्षम करें", "advanced_settings_readonly_mode_title": "रीड-ओनली प्रणाली", "advanced_settings_self_signed_ssl_subtitle": "सर्वर एंडपॉइंट के लिए SSL प्रमाणपत्र सत्यापन को छोड़ देता है। स्व-हस्ताक्षरित प्रमाणपत्रों के लिए आवश्यक है।", - "advanced_settings_self_signed_ssl_title": "स्व-हस्ताक्षरित SSL प्रमाणपत्रों की अनुमति दें", + "advanced_settings_self_signed_ssl_title": "स्व-हस्ताक्षरित SSL प्रमाणपत्रों की अनुमति दें [प्रायोगिक]", "advanced_settings_sync_remote_deletions_subtitle": "वेब पर कार्रवाई किए जाने पर इस डिवाइस पर किसी संपत्ति को स्वचालित रूप से हटाएँ या पुनर्स्थापित करें", "advanced_settings_sync_remote_deletions_title": "दूरस्थ विलोपन सिंक करें [प्रायोगिक]", "advanced_settings_tile_subtitle": "उन्नत उपयोगकर्ता सेटिंग्स", @@ -430,6 +433,7 @@ "age_months": "आयु {months, plural, one {# month} other {# months}}", "age_year_months": "आयु 1 वर्ष, {months, plural, one {# month} other {# months}}", "age_years": "{years, plural, other {Age #}}", + "album": "एल्बम", "album_added": "एल्बम डाला गया", "album_added_notification_setting_description": "जब आपको किसी साझा एल्बम में जोड़ा जाए तो एक ईमेल सूचना प्राप्त करें", "album_cover_updated": "एल्बम कवर अपडेट किया गया", @@ -475,6 +479,7 @@ "allow_edits": "संपादन की अनुमति दें", "allow_public_user_to_download": "सार्वजनिक उपयोगकर्ता को डाउनलोड करने की अनुमति दें", "allow_public_user_to_upload": "सार्वजनिक उपयोगकर्ता को अपलोड करने की अनुमति दें", + "allowed": "अनुमत", "alt_text_qr_code": "क्यूआर कोड छवि", "anti_clockwise": "वामावर्त", "api_key": "एपीआई की", @@ -710,8 +715,8 @@ "client_cert_import_success_msg": "क्लाइंट प्रमाणपत्र आयात किया गया है", "client_cert_invalid_msg": "अमान्य प्रमाणपत्र फ़ाइल या गलत पासवर्ड", "client_cert_remove_msg": "क्लाइंट प्रमाणपत्र हटा दिया गया है", - "client_cert_subtitle": "केवल PKCS12 (.p12, .pfx) फ़ॉर्मैट का समर्थन करता है। प्रमाणपत्र आयात/हटाएँ केवल लॉगिन से पहले उपलब्ध हैं", - "client_cert_title": "SSL क्लाइंट प्रमाणपत्र", + "client_cert_subtitle": "केवल PKCS12 (.p12, .pfx) प्रारूप का समर्थन करता है। प्रमाणपत्र आयात/निकालना केवल लॉगिन से पहले ही उपलब्ध है।", + "client_cert_title": "SSL क्लाइंट प्रमाणपत्र [प्रायोगिक]", "clockwise": "दक्षिणावर्त", "close": "बंद करें", "collapse": "गिर जाना", @@ -894,8 +899,6 @@ "edit_description_prompt": "कृपया एक नया विवरण चुनें:", "edit_exclusion_pattern": "बहिष्करण पैटर्न संपादित करें", "edit_faces": "चेहरे संपादित करें", - "edit_import_path": "आयात पथ संपादित करें", - "edit_import_paths": "आयात पथ संपादित करें", "edit_key": "कुंजी संपादित करें", "edit_link": "लिंक संपादित करें", "edit_location": "स्थान संपादित करें", @@ -967,7 +970,6 @@ "failed_to_stack_assets": "परिसंपत्तियों का ढेर लगाने में विफल", "failed_to_unstack_assets": "परिसंपत्तियों का ढेर खोलने में विफल", "failed_to_update_notification_status": "सूचना की स्थिति अपडेट करने में विफल", - "import_path_already_exists": "यह आयात पथ पहले से मौजूद है।", "incorrect_email_or_password": "गलत ईमेल या पासवर्ड", "paths_validation_failed": "{paths, plural, one {# पथ} other {# पथ}} सत्यापन में विफल रहे", "profile_picture_transparent_pixels": "प्रोफ़ाइल चित्रों में पारदर्शी पिक्सेल नहीं हो सकते।", @@ -977,7 +979,6 @@ "unable_to_add_assets_to_shared_link": "साझा लिंक में संपत्ति डालने में असमर्थ", "unable_to_add_comment": "टिप्पणी डालने में असमर्थ", "unable_to_add_exclusion_pattern": "बहिष्करण पैटर्न डालने में असमर्थ", - "unable_to_add_import_path": "आयात पथ डालने में असमर्थ", "unable_to_add_partners": "साझेदार डालने में असमर्थ", "unable_to_add_remove_archive": "{archived, select, true {एसेट को संग्रह से हटाने में असमर्थ} other {एसेट को संग्रह में जोड़ने में असमर्थ}}", "unable_to_add_remove_favorites": "{favorite, select, true {एसेट को पसंदीदा में जोड़ने में असमर्थ} other {एसेट को पसंदीदा से हटाने में असमर्थ}}", @@ -1000,12 +1001,10 @@ "unable_to_delete_asset": "संपत्ति हटाने में असमर्थ", "unable_to_delete_assets": "संपत्तियों को हटाने में त्रुटि", "unable_to_delete_exclusion_pattern": "बहिष्करण पैटर्न को हटाने में असमर्थ", - "unable_to_delete_import_path": "आयात पथ हटाने में असमर्थ", "unable_to_delete_shared_link": "साझा लिंक हटाने में असमर्थ", "unable_to_delete_user": "उपयोगकर्ता को हटाने में असमर्थ", "unable_to_download_files": "फ़ाइलें डाउनलोड करने में असमर्थ", "unable_to_edit_exclusion_pattern": "बहिष्करण पैटर्न संपादित करने में असमर्थ", - "unable_to_edit_import_path": "आयात पथ संपादित करने में असमर्थ", "unable_to_empty_trash": "कचरा खाली करने में असमर्थ", "unable_to_enter_fullscreen": "फ़ुलस्क्रीन दर्ज करने में असमर्थ", "unable_to_exit_fullscreen": "फ़ुलस्क्रीन से बाहर निकलने में असमर्थ", @@ -1083,7 +1082,7 @@ "external": "बाहरी", "external_libraries": "बाहरी पुस्तकालय", "external_network": "बाहरी नेटवर्क", - "external_network_sheet_info": "When not on the preferred WiFi network, the app will connect to the server through the first of the below URLs it can reach, starting from top to bottom", + "external_network_sheet_info": "जब पसंदीदा वाई-फाई नेटवर्क पर नहीं होगा, तो ऐप नीचे दिए गए यूआरएल में से पहले के माध्यम से सर्वर से कनेक्ट होगा, ऊपर से नीचे तक शुरू करते हुए", "face_unassigned": "सौंपे नहीं गए", "failed": "विफल हुआ", "failed_to_authenticate": "प्रमाणित करने में विफल", @@ -1095,56 +1094,118 @@ "favorites": "पसंदीदा", "favorites_page_no_favorites": "कोई पसंदीदा एसेट नहीं मिले", "feature_photo_updated": "फ़ीचर फ़ोटो अपडेट किया गया", + "features": "विशेषताएँ", + "features_in_development": "विकास में सुविधाएँ", + "features_setting_description": "ऐप सुविधाओं का प्रबंधन करें", "file_name": "फ़ाइल का नाम", "file_name_or_extension": "फ़ाइल का नाम या एक्सटेंशन", + "file_size": "फ़ाइल का साइज़", "filename": "फ़ाइल का नाम", "filetype": "फाइल का प्रकार", "filter": "फ़िल्टर", "filter_people": "लोगों को फ़िल्टर करें", + "filter_places": "स्थानों को फ़िल्टर करें", "find_them_fast": "खोज के साथ नाम से उन्हें तेजी से ढूंढें", + "first": "पहला", "fix_incorrect_match": "ग़लत मिलान ठीक करें", + "folder": "फ़ोल्डर", + "folder_not_found": "फ़ोल्डर नहीं मिला", + "folders": "फ़ोल्डर", + "folders_feature_description": "फ़ाइल सिस्टम पर फ़ोटो और वीडियो के लिए फ़ोल्डर दृश्य ब्राउज़ करना", + "forgot_pin_code_question": "अपना पिन भूल गए?", "forward": "आगे", + "gcast_enabled": "गूगल कास्ट", + "gcast_enabled_description": "यह सुविधा काम करने के लिए गूगल से बाह्य संसाधन लोड करती है।", "general": "सामान्य", + "geolocation_instruction_location": "किसी परिसंपत्ति के स्थान का उपयोग करने के लिए GPS निर्देशांक वाली परिसंपत्ति पर क्लिक करें, या सीधे मानचित्र से कोई स्थान चुनें", "get_help": "मदद लें", + "get_wifiname_error": "वाई-फ़ाई नाम नहीं मिल सका। सुनिश्चित करें कि आपने आवश्यक अनुमतियाँ दे दी हैं और वाई-फ़ाई नेटवर्क से कनेक्ट हैं", "getting_started": "शुरू करना", "go_back": "वापस जाओ", + "go_to_folder": "फ़ोल्डर पर जाएँ", "go_to_search": "खोज पर जाएँ", + "gps": "GPS", + "gps_missing": "कोई जीपीएस नहीं", + "grant_permission": "अनुमति प्रदान करें", "group_albums_by": "इनके द्वारा समूह एल्बम..।", + "group_country": "देश के अनुसार समूह", "group_no": "कोई समूहीकरण नहीं", "group_owner": "स्वामी द्वारा समूह", + "group_places_by": "स्थानों को समूहबद्ध करें..।", "group_year": "वर्ष के अनुसार समूह", + "haptic_feedback_switch": "स्पर्श प्रतिक्रिया सक्षम करें", + "haptic_feedback_title": "हैप्टिक राय", "has_quota": "कोटा है", - "header_settings_add_header_tip": "Header डालें", + "hash_asset": "हैश परिसंपत्ति", + "hashed_assets": "हैश की गई संपत्तियां", + "hashing": "हैशिंग", + "header_settings_add_header_tip": "हेडर जोड़ें", + "header_settings_field_validator_msg": "मान रिक्त नहीं हो सकता", + "header_settings_header_name_input": "हेडर का नाम", + "header_settings_header_value_input": "हेडर मान", + "headers_settings_tile_title": "कस्टम प्रॉक्सी हेडर", + "hi_user": "नमस्ते {name} ({email})", "hide_all_people": "सभी लोगों को छुपाएं", "hide_gallery": "गैलरी छिपाएँ", + "hide_named_person": "व्यक्ति को छिपाएँ {name}", "hide_password": "पासवर्ड छिपाएं", "hide_person": "व्यक्ति छिपाएँ", "hide_unnamed_people": "अनाम लोगों को छुपाएं", - "home_page_add_to_album_success": "{added} एसेट्स को एल्बम {album} में डाल दिया", + "home_page_add_to_album_conflicts": "{added} संपत्तियां एल्बम {album} में जोड़ी गईं. {failed} संपत्तियां पहले से ही एल्बम में हैं।", + "home_page_add_to_album_err_local": "अभी तक एल्बम में स्थानीय संपत्तियां नहीं जोड़ी जा सकीं, छोड़ दिया गया", + "home_page_add_to_album_success": "एल्बम {album} में {added} संपत्तियां जोड़ी गईं।", "home_page_album_err_partner": "अभी पार्टनर एसेट्स को एल्बम में डाल नहीं सकते, स्किप कर रहे हैं", + "home_page_archive_err_local": "स्थानीय संपत्तियों को अभी संग्रहीत नहीं किया जा सकता, छोड़ा जा रहा है", "home_page_archive_err_partner": "पार्टनर एसेट्स को आर्काइव नहीं कर सकते, स्किप कर रहे हैं", + "home_page_building_timeline": "समयरेखा का निर्माण", "home_page_delete_err_partner": "पार्टनर एसेट्स को डिलीट नहीं कर सकते, स्किप कर रहे हैं", + "home_page_delete_remote_err_local": "दूरस्थ चयन को हटाने, छोड़ने में स्थानीय संपत्तियाँ", + "home_page_favorite_err_local": "स्थानीय संपत्तियों को अभी तक पसंदीदा नहीं बनाया जा सका, छोड़ा जा रहा है", "home_page_favorite_err_partner": "अब तक पार्टनर एसेट्स को फेवरेट नहीं कर सकते, स्किप कर रहे हैं", "home_page_first_time_notice": "If this is your first time using the app, please make sure to choose a backup album(s) so that the timeline can populate photos and videos in the album(s).", + "home_page_locked_error_local": "स्थानीय संपत्तियों को लॉक किए गए फ़ोल्डर में नहीं ले जाया जा सकता, छोड़ा जा सकता है", + "home_page_locked_error_partner": "साझेदार संपत्तियों को लॉक किए गए फ़ोल्डर में नहीं ले जाया जा सकता, छोड़ें", "home_page_share_err_local": "लोकल एसेट्स को लिंक के जरिए शेयर नहीं कर सकते, स्किप कर रहे हैं", + "home_page_upload_err_limit": "एक समय में अधिकतम 30 संपत्तियां ही अपलोड की जा सकती हैं, छोड़कर", "host": "मेज़बान", "hour": "घंटा", + "hours": "घंटे", + "id": "पहचान", + "idle": "निष्क्रिय", "ignore_icloud_photos": "आइक्लाउड फ़ोटो को अनदेखा करें", "ignore_icloud_photos_description": "आइक्लाउड पर स्टोर की गई फ़ोटोज़ इमिच सर्वर पर अपलोड नहीं की जाएंगी", "image": "छवि", + "image_alt_text_date": "{isVideo, select, true {Video} other {Image}} {date} को लिया गया", + "image_alt_text_date_1_person": "{isVideo, select, true {Video} other {Image}} {person1} के साथ {date} को लिया गया", + "image_alt_text_date_2_people": "{isVideo, select, true {Video} other {Image}} {person1} और {person2} के साथ {date} को लिया गया", + "image_alt_text_date_3_people": "{isVideo, select, true {Video} other {Image}} {person1}, {person2}, और {person3} के साथ {date} को लिया गया", + "image_alt_text_date_4_or_more_people": "{isVideo, select, true {Video} other {Image}} {person1}, {person2}, other {additionalCount, number} अन्य लोगों के साथ {date} को लिया गया", + "image_alt_text_date_place": "{isVideo, select, true {Video} other {Image}} {city}, {country} में {date} को लिया गया", + "image_alt_text_date_place_1_person": "{isVideo, select, true {Video} other {Image}} {city}, {country} में {person1} के साथ {date} को लिया गया", + "image_alt_text_date_place_2_people": "{isVideo, select, true {Video} other {Image}} {city}, {country} में {person1} और {person2} के साथ {date} को लिया गया", + "image_alt_text_date_place_3_people": "{isVideo, select, true {Video} other {Image}} {city}, {country} में {person1}, {person2}, और {person3} के साथ {date} को लिया गया", + "image_alt_text_date_place_4_or_more_people": "{isVideo, select, true {Video} other {Image}} {city}, {country} में {person1}, {person2}, और {additionalCount, number} अन्य लोगों के साथ {date} को लिया गया", "image_saved_successfully": "इमेज सहेज दी गई", + "image_viewer_page_state_provider_download_started": "डाउनलोड शुरू", + "image_viewer_page_state_provider_download_success": "डाउनलोड सफल", + "image_viewer_page_state_provider_share_error": "साझा करने में त्रुटि", "immich_logo": "Immich लोगो", "immich_web_interface": "इमिच वेब इंटरफ़ेस", "import_from_json": "JSON से आयात करें", "import_path": "आयात पथ", + "in_albums": "{count, plural, one {# album} other {# albums}} में", "in_archive": "पुरालेख में", + "in_year": "{year} में", + "in_year_selector": "में", "include_archived": "संग्रहीत शामिल करें", "include_shared_albums": "साझा किए गए एल्बम शामिल करें", "include_shared_partner_assets": "साझा भागीदार संपत्तियां शामिल करें", "individual_share": "व्यक्तिगत हिस्सेदारी", + "individual_shares": "व्यक्तिगत शेयर", "info": "जानकारी", "interval": { "day_at_onepm": "हर दिन दोपहर 1 बजे", + "hours": "हर {hours, plural, one {hour} other {{hours, number} hours}}", "night_at_midnight": "हर रात आधी रात को", "night_at_twoam": "हर रात 2 बजे" }, @@ -1152,41 +1213,118 @@ "invalid_date_format": "अमान्य तारीख़ प्रारूप", "invite_people": "लोगो को निमंत्रण भेजो", "invite_to_album": "एल्बम के लिए आमंत्रित करें", + "ios_debug_info_fetch_ran_at": "फ़ेच रन {dateTime}", + "ios_debug_info_last_sync_at": "अंतिम सिंक {dateTime}", + "ios_debug_info_no_processes_queued": "कोई पृष्ठभूमि प्रक्रिया कतारबद्ध नहीं है", + "ios_debug_info_no_sync_yet": "अभी तक कोई पृष्ठभूमि समन्वयन कार्य नहीं चलाया गया है", + "ios_debug_info_processes_queued": "{count, plural, one {{count} background process queued} other {{count} background processes queued}}", + "ios_debug_info_processing_ran_at": "प्रसंस्करण {dateTime} पर चला", + "items_count": "{count, plural, one {# item} other {# items}}", "jobs": "नौकरियां", "keep": "रखना", "keep_all": "सभी रखना", + "keep_this_delete_others": "इसे रखें, अन्य को हटाएँ", + "kept_this_deleted_others": "इस संपत्ति को रखा गया और {count, plural, one {# asset} other {# assets}} को हटा दिया गया", "keyboard_shortcuts": "कुंजीपटल अल्प मार्ग", "language": "भाषा", + "language_no_results_subtitle": "अपने खोज शब्द को समायोजित करने का प्रयास करें", + "language_no_results_title": "कोई भाषा नहीं मिली", + "language_search_hint": "भाषाएं खोजें..।", "language_setting_description": "अपनी पसंदीदा भाषा चुनें", + "large_files": "बड़ी फ़ाइलें", + "last": "अंतिम", + "last_months": "{count, plural, one {Last month} other {Last # months}}", "last_seen": "अंतिम बार देखा गया", "latest_version": "नवीनतम संस्करण", "latitude": "अक्षांश", "leave": "छुट्टी", + "leave_album": "एल्बम छोड़ें", + "lens_model": "लेंस मॉडल", "let_others_respond": "दूसरों को जवाब देने दें", "level": "स्तर", "library": "पुस्तकालय", "library_options": "पुस्तकालय विकल्प", + "library_page_device_albums": "डिवाइस पर एल्बम", + "library_page_new_album": "नया एल्बम", + "library_page_sort_asset_count": "परिसंपत्तियों की संख्या", + "library_page_sort_created": "सृजित दिनांक", + "library_page_sort_last_modified": "अंतिम संशोधन", + "library_page_sort_title": "एल्बम का शीर्षक", + "licenses": "लाइसेंस", "light": "रोशनी", + "like": "पसंद", "like_deleted": "जैसे हटा दिया गया", + "link_motion_video": "लिंक मोशन वीडियो", "link_to_oauth": "OAuth से लिंक करें", "linked_oauth_account": "लिंक किया गया OAuth खाता", "list": "सूची", "loading": "लोड हो रहा है", "loading_search_results_failed": "खोज परिणाम लोड करना विफल रहा", - "location_permission_content": "In order to use the auto-switching feature, Immich needs precise location permission so it can read the current WiFi network's name", + "local": "स्थानीय", + "local_asset_cast_failed": "सर्वर पर अपलोड न की गई संपत्ति को कास्ट करने में असमर्थ", + "local_assets": "स्थानीय संपत्तियाँ", + "local_media_summary": "स्थानीय मीडिया सारांश", + "local_network": "स्थानीय नेटवर्क", + "local_network_sheet_info": "निर्दिष्ट वाई-फाई नेटवर्क का उपयोग करते समय ऐप इस URL के माध्यम से सर्वर से कनेक्ट होगा", + "location": "स्थान", + "location_permission": "स्थान की अनुमति", + "location_permission_content": "ऑटो-स्विचिंग सुविधा का उपयोग करने के लिए,Immich को सटीक स्थान अनुमति की आवश्यकता होती है ताकि वह वर्तमान वाई-फाई नेटवर्क का नाम पढ़ सके", + "location_picker_choose_on_map": "मानचित्र पर चुनें", + "location_picker_latitude_error": "मान्य अक्षांश दर्ज करें", + "location_picker_latitude_hint": "अपना अक्षांश यहां दर्ज करें", + "location_picker_longitude_error": "एक मान्य देशांतर दर्ज करें", + "location_picker_longitude_hint": "अपना देशांतर यहाँ दर्ज करें", + "lock": "ताला", + "locked_folder": "लॉक किया गया फ़ोल्डर", + "log_detail_title": "लॉग विवरण", "log_out": "लॉग आउट", "log_out_all_devices": "सभी डिवाइस लॉग आउट करें", + "logged_in_as": "{user} के रूप में लॉग इन किया गया", "logged_out_all_devices": "सभी डिवाइस लॉग आउट कर दिए गए", "logged_out_device": "लॉग आउट डिवाइस", "login": "लॉग इन करें", + "login_disabled": "लॉगिन अक्षम कर दिया गया है", + "login_form_api_exception": "API अपवाद. कृपया सर्वर URL जाँचें और पुनः प्रयास करें।", + "login_form_back_button_text": "पीछे", + "login_form_email_hint": "youremail@email.com", + "login_form_endpoint_hint": "http://आपका-सर्वर-आईपी:पोर्ट", + "login_form_endpoint_url": "सर्वर एंडपॉइंट URL", + "login_form_err_http": "कृपया http:// या https:// निर्दिष्ट करें", + "login_form_err_invalid_email": "अमान्य ईमेल", + "login_form_err_invalid_url": "असामान्य यूआरएल", + "login_form_err_leading_whitespace": "अग्रणी रिक्त स्थान", + "login_form_err_trailing_whitespace": "अनुगामी रिक्त स्थान", + "login_form_failed_get_oauth_server_config": "OAuth का उपयोग करते समय त्रुटि लॉगिंग, सर्वर URL की जाँच करें", + "login_form_failed_get_oauth_server_disable": "इस सर्वर पर OAuth सुविधा उपलब्ध नहीं है", + "login_form_failed_login": "लॉग इन करते समय त्रुटि हुई, सर्वर URL, ईमेल और पासवर्ड जांचें", + "login_form_handshake_exception": "सर्वर में एक हैंडशेक अपवाद था। यदि आप स्व-हस्ताक्षरित प्रमाणपत्र का उपयोग कर रहे हैं, तो सेटिंग्स में स्व-हस्ताक्षरित प्रमाणपत्र समर्थन सक्षम करें।", + "login_form_password_hint": "पासवर्ड", + "login_form_save_login": "लॉग इन रहें", + "login_form_server_empty": "सर्वर URL दर्ज करें।", + "login_form_server_error": "सर्वर से कनेक्ट नहीं कर सका।", "login_has_been_disabled": "लॉगिन अक्षम कर दिया गया है।", + "login_password_changed_error": "आपका पासवर्ड अपडेट करते समय एक त्रुटि हुई", + "login_password_changed_success": "पासवर्ड सफलतापूर्वक अद्यतन", "logout_all_device_confirmation": "क्या आप वाकई सभी डिवाइस से लॉग आउट करना चाहते हैं?", "logout_this_device_confirmation": "क्या आप वाकई इस डिवाइस को लॉग आउट करना चाहते हैं?", + "logs": "लॉग्स", "longitude": "देशान्तर", "look": "देखना", "loop_videos": "लूप वीडियो", "loop_videos_description": "विवरण व्यूअर में किसी वीडियो को स्वचालित रूप से लूप करने में सक्षम करें।", + "main_branch_warning": "आप विकास संस्करण का उपयोग कर रहे हैं; हम दृढ़ता से रिलीज़ संस्करण का उपयोग करने की अनुशंसा करते हैं!", + "main_menu": "मेनू चलाएँ", + "maintenance_description": "Immich को मेंटेनेंस मोड में डाल दिया गया है।", + "maintenance_end": "रखरखाव मोड समाप्त करें", + "maintenance_end_error": "मेंटेनेंस मोड खत्म नहीं हो सका।", + "maintenance_logged_in_as": "अभी {user} के तौर पर लॉग इन हैं", + "maintenance_title": "अस्थाई रूप से अनुपलब्ध", "make": "बनाना", + "manage_geolocation": "स्थान प्रबंधित करें", + "manage_media_access_rationale": "यह अनुमति परिसंपत्तियों को कूड़ेदान में ले जाने तथा वहां से उन्हें वापस लाने के उचित प्रबंधन के लिए आवश्यक है।", + "manage_media_access_settings": "खुली सेटिंग", + "manage_media_access_subtitle": "Immich ऐप को मीडिया फ़ाइलों को प्रबंधित करने और स्थानांतरित करने की अनुमति दें।", + "manage_media_access_title": "मीडिया प्रबंधन पहुँच", "manage_shared_links": "साझा किए गए लिंक का प्रबंधन करें", "manage_sharing_with_partners": "साझेदारों के साथ साझाकरण प्रबंधित करें", "manage_the_app_settings": "ऐप सेटिंग प्रबंधित करें", @@ -1195,34 +1333,92 @@ "manage_your_devices": "अपने लॉग-इन डिवाइस प्रबंधित करें", "manage_your_oauth_connection": "अपना OAuth कनेक्शन प्रबंधित करें", "map": "नक्शा", + "map_assets_in_bounds": "{count, plural, =0 {No photos in this area} one {# photo} other {# photos}}", + "map_cannot_get_user_location": "उपयोगकर्ता का स्थान प्राप्त नहीं किया जा सका", + "map_location_dialog_yes": "हाँ", + "map_location_picker_page_use_location": "इस स्थान का उपयोग करें", + "map_location_service_disabled_content": "आपके वर्तमान स्थान की संपत्तियाँ प्रदर्शित करने के लिए स्थान सेवा सक्षम होनी चाहिए। क्या आप इसे अभी सक्षम करना चाहते हैं?", + "map_location_service_disabled_title": "स्थान सेवा अक्षम", + "map_marker_for_images": "{city}, {country} में ली गई छवियों के लिए मानचित्र मार्कर", "map_marker_with_image": "छवि के साथ मानचित्र मार्कर", + "map_no_location_permission_content": "आपके वर्तमान स्थान से संपत्तियाँ प्रदर्शित करने के लिए स्थान अनुमति आवश्यक है। क्या आप इसे अभी अनुमति देना चाहते हैं?", + "map_no_location_permission_title": "स्थान की अनुमति अस्वीकृत", "map_settings": "मानचित्र सेटिंग", + "map_settings_dark_mode": "डार्क मोड", + "map_settings_date_range_option_day": "पिछले 24 घंटे", + "map_settings_date_range_option_days": "पिछले {days} दिन", + "map_settings_date_range_option_year": "पिछले एक साल", + "map_settings_date_range_option_years": "पिछले {years} वर्ष", + "map_settings_dialog_title": "मानचित्र सेटिंग्स", + "map_settings_include_show_archived": "संग्रहीत शामिल करें", + "map_settings_include_show_partners": "भागीदारों को शामिल करें", + "map_settings_only_show_favorites": "केवल पसंदीदा दिखाएँ", + "map_settings_theme_settings": "मानचित्र थीम", + "map_zoom_to_see_photos": "फ़ोटो देखने के लिए ज़ूम आउट करें", + "mark_all_as_read": "सभी को पढ़ा हुआ मार्क करें", + "mark_as_read": "पढ़े हुए का चिह्न", + "marked_all_as_read": "सभी को पढ़ा हुआ चिह्नित किया गया", "matches": "माचिस", + "matching_assets": "मिलान संपत्तियां", "media_type": "मीडिया प्रकार", "memories": "यादें", + "memories_all_caught_up": "सारी जानकारी प्राप्त", + "memories_check_back_tomorrow": "अधिक यादों के लिए कल पुनः आइए", "memories_setting_description": "आप अपनी यादों में जो देखते हैं उसे प्रबंधित करें", + "memories_start_over": "प्रारंभ करें", + "memories_swipe_to_close": "बंद करने के लिए ऊपर स्वाइप करें", "memory": "याद", + "memory_lane_title": "स्मृति लेन {title}", "menu": "मेन्यू", "merge": "मर्ज", "merge_people": "लोगों को मिलाओ", "merge_people_limit": "आप एक समय में अधिकतम 5 चेहरों को ही मर्ज कर सकते हैं", "merge_people_prompt": "क्या आप इन लोगों का विलय करना चाहते हैं? यह कार्रवाई अपरिवर्तनीय है।", "merge_people_successfully": "लोगों को सफलतापूर्वक मर्ज करें", + "merged_people_count": "विलयित {count, plural, one {# person} other {# people}}", "minimize": "छोटा करना", "minute": "मिनट", + "minutes": "मिनट", "missing": "गुम", + "mobile_app": "मोबाइल एप्लिकेशन", + "mobile_app_download_onboarding_note": "निम्नलिखित विकल्पों का उपयोग करके साथी मोबाइल ऐप डाउनलोड करें", "model": "मॉडल", "month": "महीना", + "monthly_title_text_date_format": "एमएमएमएम वाई", "more": "अधिक", + "move": "स्थान परिवर्तन", + "move_off_locked_folder": "लॉक किए गए फ़ोल्डर से बाहर ले जाएं", + "move_to": "करने के लिए कदम", + "move_to_lock_folder_action_prompt": "{count} लॉक किए गए फ़ोल्डर में जोड़ा गया", + "move_to_locked_folder": "लॉक किए गए फ़ोल्डर में ले जाएं", + "move_to_locked_folder_confirmation": "ये फ़ोटो और वीडियो सभी एल्बमों से हटा दिए जाएँगे और केवल लॉक किए गए फ़ोल्डर से ही देखे जा सकेंगे", + "moved_to_archive": "{count, plural, one {# asset} other {# assets}} को संग्रह में ले जाया गया", + "moved_to_library": "{count, plural, one {# asset} other {# assets}} को लाइब्रेरी में ले जाया गया", "moved_to_trash": "कूड़ेदान में ले जाया गया", + "multiselect_grid_edit_date_time_err_read_only": "केवल पढ़ने योग्य परिसंपत्ति(यों) की तिथि संपादित नहीं की जा सकती, छोड़ी जा रही है", + "multiselect_grid_edit_gps_err_read_only": "केवल पढ़ने योग्य परिसंपत्ति(यों) का स्थान संपादित नहीं किया जा सकता, छोड़ा जा रहा है", + "mute_memories": "मूक यादें", "my_albums": "मेरे एल्बम", "name": "नाम", "name_or_nickname": "नाम या उपनाम", + "navigate": "नेविगेट", + "navigate_to_time": "समय पर नेविगेट करें", + "network_requirement_photos_upload": "फ़ोटो का बैकअप लेने के लिए सेलुलर डेटा का उपयोग करें", + "network_requirement_videos_upload": "वीडियो का बैकअप लेने के लिए सेलुलर डेटा का उपयोग करें", + "network_requirements": "नेटवर्क आवश्यकताएँ", + "network_requirements_updated": "नेटवर्क आवश्यकताएँ बदली गईं, बैकअप कतार रीसेट की जा रही है", + "networking_settings": "नेटवर्किंग", + "networking_subtitle": "सर्वर एंडपॉइंट सेटिंग्स प्रबंधित करें", "never": "कभी नहीं", "new_album": "नयी एल्बम", "new_api_key": "नई एपीआई कुंजी", + "new_date_range": "नई तिथि सीमा", "new_password": "नया पासवर्ड", "new_person": "नया व्यक्ति", + "new_pin_code": "नया पिन कोड", + "new_pin_code_subtitle": "आप पहली बार लॉक किए गए फ़ोल्डर तक पहुँच रहे हैं। इस पृष्ठ तक सुरक्षित रूप से पहुँचने के लिए एक पिन कोड बनाएँ", + "new_timeline": "नई समयरेखा", + "new_update": "नई अपडेट", "new_user_created": "नया उपयोगकर्ता बनाया गया", "new_version_available": "नया संस्करण उपलब्ध है", "newest_first": "नवीनतम पहले", @@ -1234,44 +1430,87 @@ "no_albums_yet": "ऐसा लगता है कि आपके पास अभी तक कोई एल्बम नहीं है।", "no_archived_assets_message": "फ़ोटो और वीडियो को अपने फ़ोटो दृश्य से छिपाने के लिए उन्हें संग्रहीत करें", "no_assets_message": "अपना पहला फोटो अपलोड करने के लिए क्लिक करें", + "no_assets_to_show": "दिखाने के लिए कोई संपत्ति नहीं", + "no_cast_devices_found": "कोई कास्ट डिवाइस नहीं मिला", + "no_checksum_local": "कोई चेकसम उपलब्ध नहीं है - स्थानीय संपत्तियां प्राप्त नहीं की जा सकतीं", + "no_checksum_remote": "कोई चेकसम उपलब्ध नहीं है - दूरस्थ संपत्ति प्राप्त नहीं की जा सकती", + "no_devices": "कोई अधिकृत उपकरण नहीं", "no_duplicates_found": "कोई नकलची नहीं मिला।", "no_exif_info_available": "कोई एक्सिफ़ जानकारी उपलब्ध नहीं है", "no_explore_results_message": "अपने संग्रह का पता लगाने के लिए और फ़ोटो अपलोड करें।", "no_favorites_message": "अपनी सर्वश्रेष्ठ तस्वीरें और वीडियो तुरंत ढूंढने के लिए पसंदीदा जोड़ें", "no_libraries_message": "अपनी फ़ोटो और वीडियो देखने के लिए एक बाहरी लाइब्रेरी बनाएं", + "no_local_assets_found": "इस चेकसम के साथ कोई स्थानीय संपत्ति नहीं मिली", + "no_locked_photos_message": "लॉक किए गए फ़ोल्डर में मौजूद फ़ोटो और वीडियो छिपे हुए हैं और जब आप अपनी लाइब्रेरी ब्राउज़ या खोजेंगे तो वे दिखाई नहीं देंगे।", "no_name": "कोई नाम नहीं", + "no_notifications": "कोई सूचना नहीं", + "no_people_found": "कोई मेल खाता व्यक्ति नहीं मिला", "no_places": "कोई जगह नहीं", + "no_remote_assets_found": "इस चेकसम के साथ कोई दूरस्थ संपत्ति नहीं मिली", "no_results": "कोई परिणाम नहीं", "no_results_description": "कोई पर्यायवाची या अधिक सामान्य कीवर्ड आज़माएँ", "no_shared_albums_message": "अपने नेटवर्क में लोगों के साथ फ़ोटो और वीडियो साझा करने के लिए एक एल्बम बनाएं", + "no_uploads_in_progress": "कोई अपलोड प्रगति पर नहीं है", + "not_allowed": "अनुमति नहीं", + "not_available": "लागू नहीं", "not_in_any_album": "किसी एलबम में नहीं", + "not_selected": "चयनित नहीं", "note_apply_storage_label_to_previously_uploaded assets": "नोट: पहले अपलोड की गई संपत्तियों पर स्टोरेज लेबल लागू करने के लिए, चलाएँ", "notes": "टिप्पणियाँ", + "nothing_here_yet": "यहाँ अभी तक कुछ नहीं", + "notification_permission_dialog_content": "सूचनाएं सक्षम करने के लिए सेटिंग्स में जाएं और अनुमति दें चुनें।", + "notification_permission_list_tile_content": "अधिसूचनाएं सक्षम करने की अनुमति प्रदान करें।", + "notification_permission_list_tile_enable_button": "सूचनाएं सक्षम करें", + "notification_permission_list_tile_title": "अधिसूचना अनुमति", "notification_toggle_setting_description": "ईमेल सूचनाएं सक्षम करें", "notifications": "सूचनाएं", "notifications_setting_description": "सूचनाएं प्रबंधित करें", + "oauth": "OAuth", + "obtainium_configurator": "ओब्टेनियम विन्यासक", + "obtainium_configurator_instructions": "Immich GitHub रिलीज़ से सीधे Android ऐप इंस्टॉल और अपडेट करने के लिए Obtainium का उपयोग करें। अपना Obtainium कॉन्फ़िगरेशन लिंक बनाने के लिए एक API कुंजी बनाएँ और एक वैरिएंट चुनें", + "ocr": "ओसीआर", + "official_immich_resources": "आधिकारिक Immich संसाधन", "offline": "ऑफलाइन", + "offset": "ओफ़्सेट", "ok": "ठीक है", "oldest_first": "सबसे पुराना पहले", "on_this_device": "इस डिवाइस पर", "onboarding": "ज्ञानप्राप्ति", + "onboarding_locale_description": "अपनी पसंदीदा भाषा चुनें। आप इसे बाद में अपनी सेटिंग में बदल सकते हैं।", + "onboarding_privacy_description": "निम्नलिखित (वैकल्पिक) सुविधाएं बाहरी सेवाओं पर निर्भर करती हैं, और इन्हें सेटिंग्स में किसी भी समय अक्षम किया जा सकता है।", + "onboarding_server_welcome_description": "आइए, कुछ सामान्य सेटिंग्स के साथ आपका इंस्टेंस सेट अप करें।", "onboarding_theme_description": "अपने उदाहरण के लिए एक रंग थीम चुनें।", + "onboarding_user_welcome_description": "चलिए शुरू करते हैं!", + "onboarding_welcome_user": "स्वागत है, {user}", "online": "ऑनलाइन", "only_favorites": "केवल पसंदीदा", + "open": "खुला", + "open_in_map_view": "मानचित्र दृश्य में खोलें", "open_in_openstreetmap": "OpenStreetMap में खोलें", "open_the_search_filters": "खोज फ़िल्टर खोलें", "options": "विकल्प", "or": "या", + "organize_into_albums": "एल्बम में व्यवस्थित करें", + "organize_into_albums_description": "वर्तमान सिंक सेटिंग्स का उपयोग करके मौजूदा फ़ोटो को एल्बम में डालें", "organize_your_library": "अपनी लाइब्रेरी व्यवस्थित करें", "original": "मूल", "other": "अन्य", "other_devices": "अन्य उपकरण", + "other_entities": "अन्य संस्थाएँ", "other_variables": "अन्य चर", "owned": "स्वामित्व", "owner": "मालिक", "partner": "साथी", + "partner_can_access": "{partner} एक्सेस कर सकते हैं", "partner_can_access_assets": "संग्रहीत और हटाए गए को छोड़कर आपके सभी फ़ोटो और वीडियो", "partner_can_access_location": "वह स्थान जहां आपकी तस्वीरें ली गईं थीं", + "partner_list_user_photos": "{user} की तस्वीरें", + "partner_list_view_all": "सभी को देखें", + "partner_page_empty_message": "आपकी तस्वीरें अभी तक किसी भी भागीदार के साथ साझा नहीं की गई हैं।", + "partner_page_no_more_users": "अब और कोई उपयोगकर्ता जोड़ने की आवश्यकता नहीं है", + "partner_page_partner_add_failed": "भागीदार जोड़ने में विफल", + "partner_page_select_partner": "भागीदार चुनें", + "partner_page_shared_to_title": "साझा किया गया", "partner_page_stop_sharing_content": "{partner} will no longer be able to access your photos।", "partner_sharing": "पार्टनर शेयरिंग", "partners": "भागीदारों", @@ -1279,6 +1518,11 @@ "password_does_not_match": "पासवर्ड मैच नहीं कर रहा है", "password_required": "पासवर्ड आवश्यक", "password_reset_success": "पासवर्ड रीसेट सफल", + "past_durations": { + "days": "पिछले {days, plural, one {day} other {# days}}", + "hours": "पिछले {hours, plural, one {hour} other {# hours}}", + "years": "पिछले {years, plural, one {year} other {# years}}" + }, "path": "पथ", "pattern": "नमूना", "pause": "विराम", @@ -1286,37 +1530,81 @@ "paused": "रोके गए", "pending": "लंबित", "people": "लोग", + "people_edits_count": "संपादित {count, plural, one {# person} other {# people}}", + "people_feature_description": "लोगों द्वारा समूहीकृत फ़ोटो और वीडियो ब्राउज़ करना", "people_sidebar_description": "साइडबार में लोगों के लिए एक लिंक प्रदर्शित करें", "permanent_deletion_warning": "स्थायी विलोपन चेतावनी", "permanent_deletion_warning_setting_description": "संपत्तियों को स्थायी रूप से हटाते समय एक चेतावनी दिखाएं", "permanently_delete": "स्थायी रूप से हटाना", + "permanently_delete_assets_count": "{count, plural, one {asset} other {assets}} को स्थायी रूप से हटाएं", + "permanently_delete_assets_prompt": "क्या आप वाकई {count, plural, one {this asset?} other {these # assets?}} को स्थायी रूप से हटाना चाहते हैं? इससे {count, plural, one {it from its} other {them from their}} एल्बम भी हट जाएंगे।", "permanently_deleted_asset": "स्थायी रूप से हटाई गई संपत्ति", + "permanently_deleted_assets_count": "स्थायी रूप से हटा दिया गया {count, plural, one {# asset} other {# assets}}", + "permission": "अनुमति", + "permission_empty": "आपकी अनुमति खाली नहीं होनी चाहिए", "permission_onboarding_back": "वापस", + "permission_onboarding_continue_anyway": "फिर भी जारी रखें", + "permission_onboarding_get_started": "शुरू हो जाओ", + "permission_onboarding_go_to_settings": "सेटिंग्स पर जाएँ", + "permission_onboarding_permission_denied": "अनुमति अस्वीकृत। Immich का उपयोग करने के लिए, सेटिंग में फ़ोटो और वीडियो की अनुमति दें।", + "permission_onboarding_permission_granted": "अनुमति मिल गई! आप तैयार हैं।", + "permission_onboarding_permission_limited": "अनुमति सीमित है। Immich को आपके संपूर्ण गैलरी संग्रह का बैकअप लेने और उसे प्रबंधित करने की अनुमति देने के लिए, सेटिंग में फ़ोटो और वीडियो की अनुमति दें।", + "permission_onboarding_request": "Immich को आपकी तस्वीरें और वीडियो देखने के लिए अनुमति की आवश्यकता है।", "person": "व्यक्ति", + "person_age_months": "{months, plural, one {# month} other {# months}} पुराना", + "person_age_year_months": "1 वर्ष, {months, plural, one {# month} other {# months}} पुराना", + "person_age_years": "{years, plural, other {# years}} पुराना", + "person_birthdate": "{date} को जन्मे", + "person_hidden": "{name}{hidden, select, true { (hidden)} other {}}", "photo_shared_all_users": "ऐसा लगता है कि आपने अपनी तस्वीरें सभी उपयोगकर्ताओं के साथ साझा कीं या आपके पास साझा करने के लिए कोई उपयोगकर्ता नहीं है।", "photos": "तस्वीरें", "photos_and_videos": "तस्वीरें और वीडियो", + "photos_count": "{count, plural, one {{count, number} Photo} other {{count, number} Photos}}", "photos_from_previous_years": "पिछले वर्षों की तस्वीरें", "pick_a_location": "एक स्थान चुनें", + "pick_custom_range": "कस्टम रेंज", + "pick_date_range": "दिनांक सीमा चुनें", + "pin_code_changed_successfully": "पिन कोड सफलतापूर्वक बदला गया", + "pin_code_reset_successfully": "पिन कोड सफलतापूर्वक रीसेट किया गया", + "pin_code_setup_successfully": "पिन कोड सफलतापूर्वक सेट किया गया", + "pin_verification": "पिन कोड सत्यापन", "place": "जगह", "places": "स्थानों", + "places_count": "{count, plural, one {{count, number} Place} other {{count, number} Places}}", "play": "खेल", "play_memories": "यादें खेलें", "play_motion_photo": "मोशन फ़ोटो चलाएं", "play_or_pause_video": "वीडियो चलाएं या रोकें", + "play_original_video": "मूल वीडियो चलाएँ", + "play_original_video_setting_description": "ट्रांसकोड किए गए वीडियो के बजाय मूल वीडियो के प्लेबैक को प्राथमिकता दें। यदि मूल एसेट संगत नहीं है, तो हो सकता है कि वह ठीक से प्लेबैक न हो।", + "play_transcoded_video": "ट्रांसकोडेड वीडियो चलाएं", + "please_auth_to_access": "कृपया पहुँच के लिए प्रमाणित करें", "port": "पत्तन", + "preferences_settings_subtitle": "ऐप की प्राथमिकताएँ प्रबंधित करें", + "preferences_settings_title": "प्राथमिकताएँ", + "preparing": "तैयारी", "preset": "प्रीसेट", "preview": "पूर्व दर्शन", "previous": "पहले का", "previous_memory": "पिछली स्मृति", - "previous_or_next_photo": "पिछला या अगला फ़ोटो", + "previous_or_next_day": "दिन आगे/पीछे", + "previous_or_next_month": "महीना आगे/पीछे", + "previous_or_next_photo": "फ़ोटो आगे/पीछे", + "previous_or_next_year": "वर्ष आगे/पीछे", "primary": "प्राथमिक", + "privacy": "गोपनीयता", + "profile": "प्रोफ़ाइल", + "profile_drawer_app_logs": "लॉग्स", + "profile_drawer_client_server_up_to_date": "क्लाइंट और सर्वर अद्यतित हैं", "profile_drawer_github": "गिटहब", + "profile_drawer_readonly_mode": "केवल-पठन मोड सक्षम है। बाहर निकलने के लिए उपयोगकर्ता अवतार आइकन को देर तक दबाएँ।", + "profile_image_of_user": "{user} की प्रोफ़ाइल छवि", "profile_picture_set": "प्रोफ़ाइल चित्र सेट।", "public_album": "सार्वजनिक एल्बम", "public_share": "सार्वजनिक शेयर", "purchase_account_info": "समर्थक", "purchase_activated_subtitle": "इमिच और ओपन-सोर्स सॉफ़्टवेयर का समर्थन करने के लिए धन्यवाद", + "purchase_activated_time": "{date} को सक्रिय किया गया", "purchase_activated_title": "आपकी कुंजी सफलतापूर्वक सक्रिय कर दी गई है", "purchase_button_activate": "सक्रिय", "purchase_button_buy": "खरीदना", @@ -1334,7 +1622,7 @@ "purchase_lifetime_description": "जीवन भर की खरीदारी", "purchase_option_title": "खरीद विकल्प", "purchase_panel_info_1": "इमिच को बनाने में बहुत समय और प्रयास लगता है, और हमारे पास इसे जितना संभव हो सके उतना अच्छा बनाने के लिए पूर्णकालिक इंजीनियर इस पर काम कर रहे हैं।", - "purchase_panel_info_2": "चूंकि हम पेवॉल नहीं जोड़ने के लिए प्रतिबद्ध हैं, इसलिए यह खरीदारी आपको इमिच में कोई अतिरिक्त सुविधाएं नहीं देगी।", + "purchase_panel_info_2": "चूँकि हम पेवॉल नहीं जोड़ने के लिए प्रतिबद्ध हैं, इसलिए इस खरीदारी से आपको Immich में कोई अतिरिक्त सुविधाएँ नहीं मिलेंगी। Immich के निरंतर विकास में सहयोग के लिए हम आप जैसे उपयोगकर्ताओं पर निर्भर हैं।", "purchase_panel_title": "परियोजना का समर्थन करें", "purchase_per_server": "प्रति सर्वर", "purchase_per_user": "प्रति उपयोगकर्ता", @@ -1346,33 +1634,67 @@ "purchase_server_description_2": "समर्थक स्थिति", "purchase_server_title": "सर्वर", "purchase_settings_server_activated": "सर्वर उत्पाद कुंजी व्यवस्थापक द्वारा प्रबंधित की जाती है", + "query_asset_id": "क्वेरी एसेट आईडी", + "queue_status": "कतारबद्ध {count}/{total}", + "rating": "स्टार रेटिंग", + "rating_clear": "स्पष्ट रेटिंग", + "rating_count": "{count, plural, one {# star} other {# stars}}", + "rating_description": "जानकारी पैनल में EXIF रेटिंग प्रदर्शित करें", "reaction_options": "प्रतिक्रिया विकल्प", "read_changelog": "चेंजलॉग पढ़ें", + "readonly_mode_disabled": "केवल-पढ़ने के लिए मोड अक्षम", + "readonly_mode_enabled": "केवल-पढ़ने के लिए मोड सक्षम", + "ready_for_upload": "अपलोड के लिए तैयार", "reassign": "पुनः असाइन", + "reassigned_assets_to_existing_person": "{count, plural, one {# asset} other {# assets}} को {name, select, null {an existing person} other {{name}}} को फिर से असाइन किया गया", + "reassigned_assets_to_new_person": "{count, plural, one {# asset} other {# assets}} को एक नए व्यक्ति को फिर से असाइन किया गया", "reassing_hint": "चयनित संपत्तियों को किसी मौजूदा व्यक्ति को सौंपें", "recent": "हाल ही का", + "recent-albums": "हाल के एल्बम", "recent_searches": "हाल की खोजें", "recently_added": "हाल ही में डाला गया", "recently_added_page_title": "हाल ही में डाला गया", + "recently_taken": "हाल ही में लिया गया", + "recently_taken_page_title": "हाल ही में लिया गया", "refresh": "ताज़ा करना", "refresh_encoded_videos": "एन्कोडेड वीडियो ताज़ा करें", + "refresh_faces": "चेहरे ताज़ा करें", "refresh_metadata": "मेटाडेटा ताज़ा करें", "refresh_thumbnails": "थंबनेल ताज़ा करें", "refreshed": "ताज़ा किया", "refreshes_every_file": "प्रत्येक फ़ाइल को ताज़ा करता है", "refreshing_encoded_video": "ताज़ा किया जा रहा एन्कोडेड वीडियो", + "refreshing_faces": "ताज़ा चेहरे", "refreshing_metadata": "ताज़ा मेटाडेटा", "regenerating_thumbnails": "पुनर्जीवित थंबनेल", + "remote": "रिमोट", + "remote_assets": "दूरस्थ संपत्तियाँ", + "remote_media_summary": "रिमोट मीडिया सारांश", "remove": "निकालना", + "remove_assets_album_confirmation": "क्या आप वाकई एल्बम से {count, plural, one {# asset} other {# assets}} हटाना चाहते हैं?", + "remove_assets_shared_link_confirmation": "क्या आप वाकई इस शेयर्ड लिंक से {count, plural, one {# asset} other {# assets}} हटाना चाहते हैं?", "remove_assets_title": "संपत्तियाँ हटाएँ?", "remove_custom_date_range": "कस्टम दिनांक सीमा हटाएँ", "remove_deleted_assets": "ऑफ़लाइन फ़ाइलें हटाएँ", "remove_from_album": "एल्बम से हटाएँ", + "remove_from_album_action_prompt": "एल्बम से {count} हटा दिया गया", "remove_from_favorites": "पसंदीदा से निकालें", + "remove_from_lock_folder_action_prompt": "लॉक किए गए फ़ोल्डर से {count} हटा दिया गया", + "remove_from_locked_folder": "लॉक किए गए फ़ोल्डर से निकालें", + "remove_from_locked_folder_confirmation": "क्या आप वाकई इन फ़ोटो और वीडियो को लॉक किए गए फ़ोल्डर से बाहर ले जाना चाहते हैं? वे आपकी लाइब्रेरी में दिखाई देंगे।", "remove_from_shared_link": "साझा लिंक से हटाएँ", + "remove_memory": "मेमोरी हटाएँ", + "remove_photo_from_memory": "इस मेमोरी से फ़ोटो हटाएँ", + "remove_tag": "टैग हटाएँ", + "remove_url": "URL हटाएँ", "remove_user": "उपयोगकर्ता को हटाएँ", + "removed_api_key": "हटाई गई API कुंजी: {name}", "removed_from_archive": "संग्रह से हटा दिया गया", "removed_from_favorites": "पसंदीदा से हटाया गया", + "removed_from_favorites_count": "पसंदीदा से {count, plural, other {Removed #}}", + "removed_memory": "हटाई गई मेमोरी", + "removed_photo_from_memory": "मेमोरी से फ़ोटो हटा दी गई", + "removed_tagged_assets": "{count, plural, one {# asset} other {# assets}} से टैग हटाया गया", "rename": "नाम बदलें", "repair": "मरम्मत", "repair_no_results_message": "ट्रैक न की गई और गुम फ़ाइलें यहां दिखाई देंगी", @@ -1380,64 +1702,113 @@ "repository": "कोष", "require_password": "पासवर्ड की आवश्यकता है", "require_user_to_change_password_on_first_login": "उपयोगकर्ता को पहले लॉगिन पर पासवर्ड बदलने की आवश्यकता है", + "rescan": "पुन: स्कैन", "reset": "रीसेट", "reset_password": "पासवर्ड रीसेट", "reset_people_visibility": "लोगों की दृश्यता रीसेट करें", + "reset_pin_code": "पिन कोड रीसेट करें", + "reset_pin_code_description": "अगर आप अपना PIN कोड भूल गए हैं, तो आप इसे रीसेट करने के लिए सर्वर एडमिनिस्ट्रेटर से संपर्क कर सकते हैं", + "reset_pin_code_success": "पिन कोड सफलतापूर्वक रीसेट किया गया", + "reset_pin_code_with_password": "आप हमेशा अपने पासवर्ड से अपना पिन कोड रीसेट कर सकते हैं", + "reset_sqlite": "SQLite डेटाबेस रीसेट करें", + "reset_sqlite_confirmation": "क्या आप वाकई SQLite डेटाबेस को रीसेट करना चाहते हैं? डेटा को फिर से सिंक करने के लिए आपको लॉग आउट करके फिर से लॉग इन करना होगा", + "reset_sqlite_success": "SQLite डेटाबेस को सफलतापूर्वक रीसेट करें", "reset_to_default": "वितथ पर ले जाएं", + "resolution": "संकल्प", "resolve_duplicates": "डुप्लिकेट का समाधान करें", "resolved_all_duplicates": "सभी डुप्लिकेट का समाधान किया गया", "restore": "पुनर्स्थापित करना", "restore_all": "सभी बहाल करो", + "restore_trash_action_prompt": "{count} ट्रैश से पुनर्स्थापित किया गया", "restore_user": "उपयोगकर्ता को पुनर्स्थापित करें", "restored_asset": "पुनर्स्थापित संपत्ति", "resume": "फिर शुरू करना", + "resume_paused_jobs": "रिज्यूमे {count, plural, one {# paused job} other {# paused jobs}}", "retry_upload": "पुनः अपलोड करने का प्रयास करें", "review_duplicates": "डुप्लिकेट की समीक्षा करें", + "review_large_files": "बड़ी फ़ाइलों की समीक्षा करें", "role": "भूमिका", "role_editor": "संपादक", "role_viewer": "दर्शक", + "running": "चल रहा है", "save": "बचाना", "save_to_gallery": "गैलरी में सहेजें", + "saved": "सहेजा गया", "saved_api_key": "सहेजी गई एपीआई कुंजी", "saved_profile": "प्रोफ़ाइल सहेजी गई", "saved_settings": "सहेजी गई सेटिंग्स", "say_something": "कुछ कहें", + "scaffold_body_error_occurred": "त्रुटि हुई", "scan_all_libraries": "सभी पुस्तकालयों को स्कैन करें", + "scan_library": "स्कैन", "scan_settings": "सेटिंग्स स्कैन करें", "scanning_for_album": "एल्बम के लिए स्कैन किया जा रहा है..।", "search": "खोज", "search_albums": "एल्बम खोजें", "search_by_context": "संदर्भ के आधार पर खोजें", + "search_by_description": "विवरण के अनुसार खोजें", + "search_by_description_example": "सापा में हाइकिंग का दिन", "search_by_filename": "फ़ाइल नाम या एक्सटेंशन के आधार पर खोजें", "search_by_filename_example": "यानी IMG_1234.JPG या PNG", + "search_by_ocr": "OCR द्वारा खोजें", + "search_by_ocr_example": "लट्टे", + "search_camera_lens_model": "लेंस मॉडल खोजें..।", "search_camera_make": "कैमरा निर्माण खोजें..।", "search_camera_model": "कैमरा मॉडल खोजें..।", "search_city": "शहर खोजें..।", "search_country": "देश खोजें..।", + "search_filter_apply": "फ़िल्टर लागू करें", "search_filter_camera_title": "कैमरा प्रकार चुनें", "search_filter_date": "तारीख़", "search_filter_date_interval": "{start} से {end} तक", "search_filter_date_title": "तारीख़ की सीमा चुनें", + "search_filter_display_option_not_in_album": "एल्बम में नहीं", "search_filter_display_options": "प्रदर्शन विकल्प", + "search_filter_filename": "फ़ाइल नाम से खोजें", "search_filter_location": "स्थान", "search_filter_location_title": "स्थान चुनें", "search_filter_media_type": "मीडिया प्रकार", "search_filter_media_type_title": "मीडिया प्रकार चुनें", + "search_filter_ocr": "OCR द्वारा खोजें", "search_filter_people_title": "लोगों का चयन करें", + "search_for": "निम्न को खोजें", "search_for_existing_person": "मौजूदा व्यक्ति को खोजें", + "search_no_more_result": "कोई और परिणाम नहीं", "search_no_people": "कोई लोग नहीं", + "search_no_people_named": "\"{name}\" नाम के कोई लोग नहीं हैं", + "search_no_result": "कोई रिज़ल्ट नहीं मिला, कोई दूसरा सर्च टर्म या कॉम्बिनेशन ट्राई करें", + "search_options": "खोज विकल्प", + "search_page_categories": "श्रेणियाँ", + "search_page_motion_photos": "मोशन फ़ोटो", + "search_page_no_objects": "कोई ऑब्जेक्ट जानकारी उपलब्ध नहीं है", + "search_page_no_places": "कोई जगह की जानकारी उपलब्ध नहीं है", + "search_page_screenshots": "स्क्रीनशॉट", + "search_page_search_photos_videos": "अपनी फ़ोटो और वीडियो खोजें", + "search_page_selfies": "सेल्फ़ीज़", + "search_page_things": "चीज़ें", + "search_page_view_all_button": "सभी को देखें", + "search_page_your_activity": "आपकी गतिविधि", + "search_page_your_map": "आपका नक्शा", "search_people": "लोगों को खोजें", "search_places": "स्थान खोजें", + "search_rating": "रेटिंग के हिसाब से खोजें..।", + "search_result_page_new_search_hint": "नई खोज", + "search_settings": "खोज सेटिंग्स", "search_state": "स्थिति खोजें..।", + "search_suggestion_list_smart_search_hint_1": "स्मार्ट सर्च डिफ़ॉल्ट रूप से चालू रहता है, मेटाडेटा खोजने के लिए सिंटैक्स का इस्तेमाल करें ", + "search_suggestion_list_smart_search_hint_2": "m:आपका-खोज-शब्द", + "search_tags": "टैग खोजें..।", "search_timezone": "समयक्षेत्र खोजें..।", "search_type": "तलाश की विधि", "search_your_photos": "अपनी फ़ोटो खोजें", "searching_locales": "स्थान खोजे जा रहे हैं..।", "second": "दूसरा", "see_all_people": "सभी लोगों को देखें", + "select": "चुनना", "select_album_cover": "एल्बम कवर चुनें", "select_all": "सबका चयन करें", "select_all_duplicates": "सभी डुप्लिकेट का चयन करें", + "select_all_in": "{group} में सभी का चयन करें", "select_avatar_color": "अवतार रंग चुनें", "select_face": "चेहरा चुनें", "select_featured_photo": "चुनिंदा फ़ोटो चुनें", @@ -1445,44 +1816,128 @@ "select_keep_all": "सभी रखें का चयन करें", "select_library_owner": "लाइब्रेरी स्वामी का चयन करें", "select_new_face": "नया चेहरा चुनें", + "select_person_to_tag": "टैग करने के लिए किसी व्यक्ति का चयन करें", "select_photos": "फ़ोटो चुनें", "select_trash_all": "ट्रैश ऑल का चयन करें", + "select_user_for_sharing_page_err_album": "एल्बम बनाने में विफल", "selected": "चयनित", + "selected_count": "{count, plural, other {# selected}}", + "selected_gps_coordinates": "चयनित GPS निर्देशांक", "send_message": "मेसेज भेजें", "send_welcome_email": "स्वागत ईमेल भेजें", + "server_endpoint": "सर्वर एंडपॉइंट", + "server_info_box_app_version": "एप्लिकेशन वेरीज़न", "server_info_box_server_url": "सर्वर URL", "server_offline": "सर्वर ऑफ़लाइन", "server_online": "सर्वर ऑनलाइन", + "server_privacy": "सर्वर गोपनीयता", + "server_restarting_description": "यह पेज कुछ देर में रिफ्रेश हो जाएगा।", + "server_restarting_title": "सर्वर पुनः प्रारंभ हो रहा है", "server_stats": "सर्वर आँकड़े", + "server_update_available": "सर्वर अपडेट उपलब्ध है", "server_version": "सर्वर संस्करण", "set": "तय करना", "set_as_album_cover": "एल्बम कवर के रूप में सेट करें", + "set_as_featured_photo": "फ़ीचर्ड फ़ोटो के तौर पर सेट करें", "set_as_profile_picture": "प्रोफाइल चित्र के रूप में सेट", "set_date_of_birth": "जन्मतिथि निर्धारित करें", "set_profile_picture": "प्रोफ़ाइल चित्र सेट करें", "set_slideshow_to_fullscreen": "स्लाइड शो को फ़ुलस्क्रीन पर सेट करें", + "set_stack_primary_asset": "प्राथमिक संपत्ति के रूप में सेट करें", + "setting_image_viewer_help": "डिटेल व्यूअर पहले छोटा थंबनेल लोड करता है, फिर मीडियम-साइज़ प्रीव्यू लोड करता है (अगर इनेबल है), और आखिर में ओरिजिनल लोड करता है (अगर इनेबल है)।", + "setting_image_viewer_original_subtitle": "ओरिजिनल फुल-रिज़ॉल्यूशन इमेज (बड़ी!) लोड करने के लिए इनेबल करें। डेटा का इस्तेमाल कम करने के लिए डिसेबल करें (नेटवर्क और डिवाइस कैश दोनों)।", + "setting_image_viewer_original_title": "मूल छवि लोड करें", + "setting_image_viewer_preview_subtitle": "मीडियम-रिज़ॉल्यूशन इमेज लोड करने के लिए चालू करें। ओरिजिनल इमेज को सीधे लोड करने या सिर्फ़ थंबनेल इस्तेमाल करने के लिए बंद करें।", + "setting_image_viewer_preview_title": "पूर्वावलोकन छवि लोड करें", + "setting_image_viewer_title": "इमेजिस", + "setting_languages_apply": "आवेदन करना", + "setting_languages_subtitle": "ऐप की भाषा बदलें", + "setting_notifications_notify_failures_grace_period": "बैकग्राउंड बैकअप फेलियर की सूचना दें: {duration}", + "setting_notifications_notify_hours": "{count} घंटे", + "setting_notifications_notify_immediately": "तुरंत", + "setting_notifications_notify_minutes": "{count} मिनट", + "setting_notifications_notify_never": "कभी नहीं", + "setting_notifications_notify_seconds": "{count} सेकंड", + "setting_notifications_single_progress_subtitle": "हर एसेट के लिए अपलोड प्रोग्रेस की पूरी जानकारी", + "setting_notifications_single_progress_title": "बैकग्राउंड बैकअप डिटेल प्रोग्रेस दिखाएँ", + "setting_notifications_subtitle": "अपनी नोटिफ़िकेशन प्राथमिकताएँ समायोजित करें", + "setting_notifications_total_progress_subtitle": "ओवरऑल अपलोड प्रोग्रेस (हो गया/टोटल एसेट्स)", + "setting_notifications_total_progress_title": "बैकग्राउंड बैकअप की कुल प्रोग्रेस दिखाएँ", + "setting_video_viewer_auto_play_subtitle": "वीडियो खुलने पर अपने आप चलना शुरू हो जाता है", + "setting_video_viewer_auto_play_title": "ऑटो प्ले वीडियो", + "setting_video_viewer_looping_title": "पाशन", + "setting_video_viewer_original_video_subtitle": "सर्वर से वीडियो स्ट्रीम करते समय, ट्रांसकोड उपलब्ध होने पर भी ओरिजिनल वीडियो चलाएं। इससे बफरिंग हो सकती है। इस सेटिंग के बावजूद, स्थानीय रूप से उपलब्ध वीडियो ओरिजिनल क्वालिटी में चलाए जाते हैं।", + "setting_video_viewer_original_video_title": "मूल वीडियो को बलपूर्वक", "settings": "समायोजन", + "settings_require_restart": "इस सेटिंग को लागू करने के लिए कृपया Immich को रीस्टार्ट करें", "settings_saved": "सेटिंग्स को सहेजा गया", + "setup_pin_code": "पिन कोड सेट करें", "share": "शेयर करना", + "share_action_prompt": "साझा {count} संपत्तियाँ", "share_add_photos": "फ़ोटो डालें", + "share_assets_selected": "{count} चयनित", + "share_dialog_preparing": "तैयारी..।", + "share_link": "लिंक शेयर करें", "shared": "साझा", "shared_album_activities_input_disable": "कॉमेंट डिजेबल्ड है", "shared_album_activity_remove_content": "क्या आप इस गतिविधि को हटाना चाहते हैं?", "shared_album_activity_remove_title": "गतिविधि हटाएं", + "shared_album_section_people_action_error": "एल्बम से हटाने/छोड़ने में त्रुटि", + "shared_album_section_people_action_leave": "उपयोगकर्ता को एल्बम से हटाएँ", + "shared_album_section_people_action_remove_user": "उपयोगकर्ता को एल्बम से हटाएँ", + "shared_album_section_people_title": "लोग", "shared_by": "द्वारा साझा", + "shared_by_user": "{user} द्वारा साझा किया गया", "shared_by_you": "आपके द्वारा साझा किया गया", + "shared_from_partner": "{partner} से फ़ोटो", + "shared_intent_upload_button_progress_text": "{current} / {total} अपलोड किया गया", "shared_link_app_bar_title": "साझा किए गए लिंक", + "shared_link_clipboard_copied_massage": "क्लिपबोर्ड पर कॉपी किया गया", + "shared_link_clipboard_text": "लिंक: {link}\nपासवर्ड: {password}", + "shared_link_create_error": "शेयर्ड लिंक बनाते समय एरर आया", + "shared_link_custom_url_description": "कस्टम URL से इस शेयर्ड लिंक को एक्सेस करें", "shared_link_edit_description_hint": "शेयर विवरण दर्ज करें", + "shared_link_edit_expire_after_option_day": "1 दिन", + "shared_link_edit_expire_after_option_days": "{count} दिन", + "shared_link_edit_expire_after_option_hour": "1 घंटा", + "shared_link_edit_expire_after_option_hours": "{count} घंटे", + "shared_link_edit_expire_after_option_minute": "1 मिनट", + "shared_link_edit_expire_after_option_minutes": "{count} मिनट", + "shared_link_edit_expire_after_option_months": "{count} महीने", + "shared_link_edit_expire_after_option_year": "{count} वर्ष", "shared_link_edit_password_hint": "शेयर पासवर्ड दर्ज करें", "shared_link_edit_submit_button": "अपडेट लिंक", + "shared_link_error_server_url_fetch": "सर्वर URL नहीं मिल रहा है", + "shared_link_expires_day": "{count} दिन में समाप्त हो रहा है", + "shared_link_expires_days": "{count} दिनों में समाप्त हो जाएगा", + "shared_link_expires_hour": "{count} घंटे में समाप्त हो जाएगा", + "shared_link_expires_hours": "{count} घंटे में समाप्त हो जाएगा", + "shared_link_expires_minute": "{count} मिनट में समाप्त हो रहा है", + "shared_link_expires_minutes": "{count} मिनट में समाप्त हो जाएगा", + "shared_link_expires_never": "समाप्त ∞", + "shared_link_expires_second": "{count} सेकंड में समाप्त हो रहा है", + "shared_link_expires_seconds": "{count} सेकंड में समाप्त हो जाएगा", + "shared_link_individual_shared": "व्यक्तिगत साझा", + "shared_link_info_chip_metadata": "EXIF", "shared_link_manage_links": "साझा किए गए लिंक का प्रबंधन करें", + "shared_link_options": "साझा लिंक विकल्प", + "shared_link_password_description": "इस शेयर किए गए लिंक को एक्सेस करने के लिए पासवर्ड ज़रूरी है", "shared_links": "साझा किए गए लिंक", + "shared_links_description": "लिंक के साथ फ़ोटो और वीडियो शेयर करें", + "shared_photos_and_videos_count": "{assetCount, plural, other {# shared photos & videos.}}", "shared_with_me": "मेरे साथ साझा किया गया", + "shared_with_partner": "{partner} के साथ शेयर किया गया", "sharing": "शेयरिंग", "sharing_enter_password": "कृपया इस पृष्ठ को देखने के लिए पासवर्ड दर्ज करें।", + "sharing_page_album": "साझा एल्बम", + "sharing_page_description": "अपने नेटवर्क में लोगों के साथ फ़ोटो और वीडियो शेयर करने के लिए शेयर्ड एल्बम बनाएं।", + "sharing_page_empty_list": "खाली सूची", "sharing_sidebar_description": "साइडबार में शेयरिंग के लिए एक लिंक प्रदर्शित करें", + "sharing_silver_appbar_create_shared_album": "नया साझा एल्बम", + "sharing_silver_appbar_share_partner": "पार्टनर के साथ शेयर करें", "shift_to_permanent_delete": "संपत्ति को स्थायी रूप से हटाने के लिए ⇧ दबाएँ", "show_album_options": "एल्बम विकल्प दिखाएँ", + "show_albums": "एल्बम दिखाएँ", "show_all_people": "सभी लोगों को दिखाओ", "show_and_hide_people": "लोगों को दिखाएँ और छिपाएँ", "show_file_location": "फ़ाइल स्थान दिखाएँ", @@ -1497,133 +1952,245 @@ "show_person_options": "व्यक्ति विकल्प दिखाएँ", "show_progress_bar": "प्रगति पट्टी दिखाएँ", "show_search_options": "खोज विकल्प दिखाएँ", + "show_shared_links": "साझा लिंक दिखाएँ", + "show_slideshow_transition": "स्लाइड शो ट्रांज़िशन दिखाएँ", "show_supporter_badge": "समर्थक बिल्ला", "show_supporter_badge_description": "समर्थक बैज दिखाएँ", + "show_text_search_menu": "टेक्स्ट खोज मेनू दिखाएँ", "shuffle": "मिश्रण", + "sidebar": "साइड बार", + "sidebar_display_description": "साइडबार में व्यू का लिंक दिखाएं", "sign_out": "साइन आउट", "sign_up": "साइन अप करें", "size": "आकार", "skip_to_content": "इसे छोड़कर सामग्री पर बढ़ने के लिए", + "skip_to_folders": "फ़ोल्डरों पर जाएं", + "skip_to_tags": "टैग पर जाएं", "slideshow": "स्लाइड शो", "slideshow_settings": "स्लाइड शो सेटिंग्स", "sort_albums_by": "एल्बम को क्रमबद्ध करें..।", "sort_created": "बनाया गया दिनांक", "sort_items": "मदों की संख्या", "sort_modified": "डेटा संशोधित", + "sort_newest": "नवीनतम फोटो", "sort_oldest": "सबसे पुरानी तस्वीर", + "sort_people_by_similarity": "लोगों को समानता के आधार पर छाँटें", "sort_recent": "सबसे ताज़ा फ़ोटो", "sort_title": "शीर्षक", "source": "स्रोत", "stack": "ढेर", + "stack_action_prompt": "{count} स्टैक्ड", + "stack_duplicates": "डुप्लिकेट स्टैक करें", + "stack_select_one_photo": "स्टैक के लिए एक मुख्य फ़ोटो चुनें", "stack_selected_photos": "चयनित फ़ोटो को ढेर करें", + "stacked_assets_count": "स्टैक्ड {count, plural, one {# asset} other {# assets}}", "stacktrace": "स्टैक ट्रेस", "start": "शुरू", "start_date": "आरंभ करने की तिथि", + "start_date_before_end_date": "आरंभ तिथि समाप्ति तिथि से पहले होनी चाहिए", "state": "राज्य", "status": "स्थिति", + "stop_casting": "कास्टिंग बंद करो", "stop_motion_photo": "स्टॉप मोशन फोटो", "stop_photo_sharing": "अपनी तस्वीरें साझा करना बंद करें?", + "stop_photo_sharing_description": "{partner} अब आपकी फ़ोटो एक्सेस नहीं कर पाएगा।", "stop_sharing_photos_with_user": "इस उपयोगकर्ता के साथ अपनी तस्वीरें साझा करना बंद करें", "storage": "स्टोरेज की जगह", "storage_label": "भंडारण लेबल", + "storage_quota": "भंडारण कोटा", + "storage_usage": "{used} में से {available} इस्तेमाल किया हुआ", "submit": "जमा करना", + "success": "सफलता", "suggestions": "सुझाव", "sunrise_on_the_beach": "समुद्र तट पर सूर्योदय", + "support": "सहायता", + "support_and_feedback": "समर्थन और प्रतिक्रिया", + "support_third_party_description": "आपका Immich इंस्टॉलेशन किसी थर्ड-पार्टी ने पैकेज किया था। आपको जो दिक्कतें आ रही हैं, वे उस पैकेज की वजह से हो सकती हैं, इसलिए कृपया नीचे दिए गए लिंक का इस्तेमाल करके सबसे पहले उनके साथ अपनी दिक्कतें बताएं।", "swap_merge_direction": "मर्ज दिशा स्वैप करें", "sync": "साथ-साथ करना", "sync_albums": "एल्बम्स सिंक करें", "sync_albums_manual_subtitle": "चुने हुए बैकअप एल्बम्स में सभी अपलोड की गई वीडियो और फ़ोटो सिंक करें", + "sync_local": "स्थानीय सिंक करें", + "sync_remote": "सिंक रिमोट", + "sync_status": "सिंक स्थिति", + "sync_status_subtitle": "सिंक सिस्टम देखें और मैनेज करें", "sync_upload_album_setting_subtitle": "अपनी फ़ोटो और वीडियो बनाएँ और उन्हें इमिच पर चुने हुए एल्बम्स में अपलोड करें", + "tag": "टैग", + "tag_assets": "टैग संपत्तियाँ", + "tag_created": "बनाया गया टैग: {tag}", + "tag_feature_description": "लॉजिकल टैग टॉपिक के हिसाब से ग्रुप किए गए फ़ोटो और वीडियो ब्राउज़ करना", + "tag_not_found_question": "टैग नहीं मिल रहा है? नया टैग बनाएं.", + "tag_people": "लोगों को टैग करें", + "tag_updated": "अपडेट किया गया टैग: {tag}", + "tagged_assets": "टैग किया गया {count, plural, one {# asset} other {# assets}}", + "tags": "टैग्स", + "tap_to_run_job": "जॉब चलाने के लिए टैप करें", "template": "खाका", "theme": "विषय", "theme_selection": "थीम चयन", "theme_selection_description": "आपके ब्राउज़र की सिस्टम प्राथमिकता के आधार पर थीम को स्वचालित रूप से प्रकाश या अंधेरे पर सेट करें", + "theme_setting_asset_list_storage_indicator_title": "एसेट टाइल्स पर स्टोरेज इंडिकेटर दिखाएं", + "theme_setting_asset_list_tiles_per_row_title": "प्रति पंक्ति एसेट की संख्या ({count})", "theme_setting_colorful_interface_subtitle": "प्राथमिक रंग को पृष्ठभूमि सतहों पर लागू करें", "theme_setting_colorful_interface_title": "रंगीन इंटरफ़ेस", + "theme_setting_image_viewer_quality_subtitle": "डिटेल इमेज व्यूअर की क्वालिटी एडजस्ट करें", + "theme_setting_image_viewer_quality_title": "छवि दर्शक गुणवत्ता", "theme_setting_primary_color_subtitle": "प्राथमिक क्रियाओं और उच्चारणों के लिए एक रंग चुनें", "theme_setting_primary_color_title": "प्राथमिक रंग", "theme_setting_system_primary_color_title": "सिस्टम रंग का उपयोग करें", + "theme_setting_system_theme_switch": "ऑटोमैटिक (सिस्टम सेटिंग फ़ॉलो करें)", + "theme_setting_theme_subtitle": "ऐप की थीम सेटिंग चुनें", + "theme_setting_three_stage_loading_subtitle": "थ्री-स्टेज लोडिंग से लोडिंग परफॉर्मेंस बढ़ सकती है लेकिन इससे नेटवर्क लोड काफी बढ़ जाता है", + "theme_setting_three_stage_loading_title": "तीन-चरण लोडिंग सक्षम करें", "they_will_be_merged_together": "इन्हें एक साथ मिला दिया जाएगा", + "third_party_resources": "तृतीय-पक्ष संसाधन", + "time": "समय", "time_based_memories": "समय आधारित यादें", + "time_based_memories_duration": "हर इमेज दिखाने में लगने वाला सेकंड।", + "timeline": "समयरेखा", "timezone": "समय क्षेत्र", "to_archive": "पुरालेख", "to_change_password": "पासवर्ड बदलें", "to_favorite": "पसंदीदा", "to_login": "लॉग इन करें", + "to_multi_select": "बहु-चयन करने के लिए", + "to_parent": "माता-पिता के पास जाएँ", + "to_select": "चयन करने के लिए", "to_trash": "कचरा", "toggle_settings": "सेटिंग्स टॉगल करें", + "total": "कुल", "total_usage": "कुल उपयोग", "trash": "कचरा", + "trash_action_prompt": "{count} को ट्रैश में ले जाया गया", "trash_all": "सब कचरा", + "trash_count": "कचरा {count, number}", "trash_delete_asset": "संपत्ति को ट्रैश/डिलीट करें", "trash_emptied": "कचरा खाली कर दिया", "trash_no_results_message": "ट्रैश की गई फ़ोटो और वीडियो यहां दिखाई देंगे।", + "trash_page_delete_all": "सभी हटा दो", "trash_page_empty_trash_dialog_content": "क्या आप अपनी कूड़ेदान संपत्तियों को खाली करना चाहते हैं? इन आइटमों को Immich से स्थायी रूप से हटा दिया जाएगा", + "trash_page_info": "ट्रैश किए गए आइटम {days} दिनों के बाद हमेशा के लिए डिलीट कर दिए जाएंगे", + "trash_page_no_assets": "कोई ट्रैश की गई संपत्ति नहीं", "trash_page_restore_all": "सभी को पुनः स्थानांतरित करें", "trash_page_select_assets_btn": "संपत्तियों को चयन करें", + "trash_page_title": "कचरा ({count})", + "trashed_items_will_be_permanently_deleted_after": "ट्रैश किए गए आइटम {days, plural, one {# day} other {# days}} के बाद स्थायी रूप से हटा दिए जाएंगे।", + "troubleshoot": "समस्याओं का निवारण", "type": "प्रकार", + "unable_to_change_pin_code": "पिन कोड बदलने में असमर्थ", + "unable_to_check_version": "ऐप या सर्वर वर्शन चेक नहीं कर पा रहे हैं", + "unable_to_setup_pin_code": "पिन कोड सेट करने में असमर्थ", "unarchive": "संग्रह से निकालें", + "unarchive_action_prompt": "{count} आर्काइव से हटा दिया गया", + "unarchived_count": "{count, plural, other {Unarchived #}}", + "undo": "पूर्ववत", "unfavorite": "नापसंद करें", + "unfavorite_action_prompt": "{count} को पसंदीदा से हटा दिया गया", "unhide_person": "व्यक्ति को उजागर करें", "unknown": "अज्ञात", + "unknown_country": "अज्ञात देश", "unknown_year": "अज्ञात वर्ष", "unlimited": "असीमित", + "unlink_motion_video": "मोशन वीडियो को अनलिंक करें", "unlink_oauth": "OAuth को अनलिंक करें", "unlinked_oauth_account": "OAuth खाता अनलिंक किया गया", + "unmute_memories": "यादें अनम्यूट करें", "unnamed_album": "अनाम एल्बम", + "unnamed_album_delete_confirmation": "क्या आप वाकई इस एल्बम को डिलीट करना चाहते हैं?", "unnamed_share": "अनाम साझा करें", "unsaved_change": "सहेजा न गया परिवर्तन", "unselect_all": "सभी को अचयनित करें", "unselect_all_duplicates": "सभी डुप्लिकेट को अचयनित करें", + "unselect_all_in": "{group} में सभी का चयन रद्द करें", "unstack": "स्टैक रद्द करें", + "unstack_action_prompt": "{count} अनस्टैक्ड", + "unstacked_assets_count": "अन-स्टैक्ड {count, plural, one {# asset} other {# assets}}", + "untagged": "टैग नहीं किए गए", "up_next": "अब अगला", + "update_location_action_prompt": "{count} चुने गए एसेट की लोकेशन अपडेट करें:", + "updated_at": "अपडेट किया गया", "updated_password": "अद्यतन पासवर्ड", "upload": "डालना", + "upload_action_prompt": "अपलोड के लिए {count} कतार में", "upload_concurrency": "समवर्ती अपलोड करें", + "upload_details": "विवरण अपलोड करें", + "upload_dialog_info": "क्या आप चुने हुए एसेट का सर्वर पर बैकअप लेना चाहते हैं?", + "upload_dialog_title": "संपत्ति अपलोड करें", + "upload_errors": "अपलोड {count, plural, one {# error} other {# errors}} के साथ पूरा हुआ, नए अपलोड एसेट देखने के लिए पेज को रिफ्रेश करें।", + "upload_finished": "अपलोड समाप्त", + "upload_progress": "शेष {remaining, number} - संसाधित {processed, number}/{total, number}", + "upload_skipped_duplicates": "छोड़ा गया {count, plural, one {# duplicate asset} other {# duplicate assets}}", "upload_status_duplicates": "डुप्लिकेट", "upload_status_errors": "त्रुटियाँ", "upload_status_uploaded": "अपलोड किए गए", "upload_success": "अपलोड सफल रहा, नई अपलोड संपत्तियां देखने के लिए पेज को रीफ्रेश करें।", + "upload_to_immich": "Immich पर अपलोड करें ({count})", + "uploading": "अपलोड हो रहा है", + "uploading_media": "मीडिया अपलोड करना", "url": "यूआरएल", "usage": "प्रयोग", + "use_biometric": "बायोमेट्रिक का उपयोग करें", + "use_current_connection": "वर्तमान कनेक्शन का उपयोग करें", "use_custom_date_range": "इसके बजाय कस्टम दिनांक सीमा का उपयोग करें", "user": "उपयोगकर्ता", + "user_has_been_deleted": "इस यूज़र को हटा दिया गया है।", "user_id": "उपयोगकर्ता पहचान", + "user_liked": "{user} ने पसंद किया {type, select, photo {this photo} video {this video} asset {this asset} other {it}}", + "user_pin_code_settings": "पिन कोड", + "user_pin_code_settings_description": "अपना पिन कोड प्रबंधित करें", + "user_privacy": "उपयोगकर्ता गोपनीयता", "user_purchase_settings": "खरीदना", "user_purchase_settings_description": "अपनी खरीदारी प्रबंधित करें", + "user_role_set": "{user} को {role} के तौर पर सेट करें", "user_usage_detail": "उपयोगकर्ता उपयोग विवरण", + "user_usage_stats": "खाता उपयोग के आँकड़े", "user_usage_stats_description": "खाता उपयोग सांख्यिकी देखें", "username": "उपयोगकर्ता नाम", "users": "उपयोगकर्ताओं", + "users_added_to_album_count": "एल्बम में {count, plural, one {# user} other {# users}} जोड़े गए", "utilities": "उपयोगिताओं", "validate": "मान्य", + "validate_endpoint_error": "क्रुपया मान्य यूआरएल दर्ज करें", "variables": "चर", "version": "संस्करण", "version_announcement_closing": "आपका मित्र, एलेक्स", - "version_announcement_message": "नमस्कार मित्र, एप्लिकेशन का एक नया संस्करण है, कृपया अपना समय निकालकर इसे देखें रिलीज नोट्स और अपना सुनिश्चित करें docker-compose.yml, और .env किसी भी गलत कॉन्फ़िगरेशन को रोकने के लिए सेटअप अद्यतित है, खासकर यदि आप वॉचटावर या किसी भी तंत्र का उपयोग करते हैं जो आपके एप्लिकेशन को स्वचालित रूप से अपडेट करने का प्रबंधन करता है।", + "version_announcement_message": "नमस्ते! Immich का नया वर्शन उपलब्ध है। कृपया रिलीज़ नोट्स पढ़ने के लिए कुछ समय निकालें ताकि यह पक्का हो सके कि आपका सेटअप अप-टू-डेट है ताकि कोई भी गलत कॉन्फ़िगरेशन न हो, खासकर अगर आप WatchTower या कोई ऐसा मैकेनिज़्म इस्तेमाल करते हैं जो आपके Immich इंस्टेंस को ऑटोमैटिकली अपडेट करता है।", + "version_history": "संस्करण इतिहास", + "version_history_item": "{version} को {date} पर इंस्टॉल किया गया", "video": "वीडियो", "video_hover_setting": "होवर पर वीडियो थंबनेल चलाएं", "video_hover_setting_description": "जब माउस आइटम पर घूम रहा हो तो वीडियो थंबनेल चलाएं।", "videos": "वीडियो", + "videos_count": "{count, plural, one {# Video} other {# Videos}}", "view": "देखना", "view_album": "एल्बम देखें", "view_all": "सभी को देखें", "view_all_users": "सभी उपयोगकर्ताओं को देखें", + "view_details": "विवरण देखें", "view_in_timeline": "टाइमलाइन में देखें", + "view_link": "लिंक देखें", "view_links": "लिंक देखें", + "view_name": "देखना", "view_next_asset": "अगली संपत्ति देखें", "view_previous_asset": "पिछली संपत्ति देखें", + "view_qr_code": "QR कोड देखें", + "view_similar_photos": "समान फ़ोटो देखें", "view_stack": "ढेर देखें", + "view_user": "उपयोगकर्ता देखें", "viewer_remove_from_stack": "स्टैक से हटाएं", "viewer_stack_use_as_main_asset": "मुख्य संपत्ति के रूप में उपयोग करें", "viewer_unstack": "स्टैक रद्द करें", + "visibility_changed": "{count, plural, one {# person} other {# people}} के लिए विज़िबिलिटी बदली गई", "waiting": "इंतज़ार में", "warning": "चेतावनी", "week": "सप्ताह", "welcome": "स्वागत", - "welcome_to_immich": "इमिच में आपका स्वागत है", - "wifi_name": "WiFi Name", + "welcome_to_immich": "Immich में आपका स्वागत है", + "wifi_name": "वाई-फाई का नाम", + "workflow": "कार्यप्रवाह", + "wrong_pin_code": "गलत पिन कोड", "year": "वर्ष", + "years_ago": "{years, plural, one {# year} other {# years}} पहले", "yes": "हाँ", "you_dont_have_any_shared_links": "आपके पास कोई साझा लिंक नहीं है", "your_wifi_name": "आपके वाईफाई का नाम", diff --git a/i18n/hr.json b/i18n/hr.json index a900ebac2a..3dfed04233 100644 --- a/i18n/hr.json +++ b/i18n/hr.json @@ -1,5 +1,5 @@ { - "about": "O", + "about": "Pojedinosti", "account": "Račun", "account_settings": "Postavke računa", "acknowledge": "Potvrdi", @@ -17,7 +17,6 @@ "add_birthday": "Dodaj rođendan", "add_endpoint": "Dodaj krajnju točku", "add_exclusion_pattern": "Dodaj uzorak izuzimanja", - "add_import_path": "Dodaj putanju uvoza", "add_location": "Dodaj lokaciju", "add_more_users": "Dodaj još korisnika", "add_partner": "Dodaj partnera", @@ -76,7 +75,7 @@ "exclusion_pattern_description": "Uzorci izuzimanja omogućuju vam da ignorirate datoteke i mape prilikom skeniranja svoje biblioteke. Ovo je korisno ako imate mape koje sadrže datoteke koje ne želite uvesti, kao što su RAW datoteke.", "external_library_management": "Upravljanje vanjskom bibliotekom", "face_detection": "Detekcija lica", - "face_detection_description": "Detektirajte lica u stavkama pomoću strojnog učenja. Za videozapise se uzima u obzir samo sličica. \"Osvježi\" (ponovno) obrađuje sve stavke. \"Poništi\" dodatno briše sve trenutne podatke o licu. \"Nedostaje\" stavlja u red čekanja stavke koje još nisu obrađene. Detektirana lica bit će stavljena u red čekanja za Prepoznavanje lica nakon što se dovrši Detekcija lica, grupirajući ih u postojeće ili nove osobe.", + "face_detection_description": "Detektirajte lica u stavkama pomoću strojnog učenja. Za videozapise se uzima u obzir samo sličica. \"Osvježi\" (ponovno) obrađuje sve stavke. \"Poništi\" dodatno briše sve trenutne podatke o licu. \"Nedostaje\" stavlja u red čekanja stavke koje još nisu obrađene. Detektirana lica bit će stavljena u red čekanja za prepoznavanje lica nakon što se dovrši detekcija lica, grupirajući ih u postojeće ili nove osobe.", "facial_recognition_job_description": "Grupirajte otkrivena lica u osobe. Ovaj korak se izvršava nakon što je Detekcija lica dovršena. \"Resetiraj\" (ponovno) grupira sva lica. \"Nedostaje\" stavlja u red lica kojima nije dodijeljena osoba.", "failed_job_command": "Naredba {command} nije uspjela za posao: {job}", "force_delete_user_warning": "UPOZORENJE: Ovo će odmah ukloniti korisnika i sve pripadajuće stavke. Ovo se ne može poništiti i datoteke se ne mogu vratiti.", @@ -109,18 +108,17 @@ "job_settings_description": "Upravljajte istovremenošću poslova", "job_status": "Status posla", "jobs_delayed": "{jobCount, plural, other {# odgođenih}}", - "jobs_failed": "{jobCount, plural, other {# failed}}", + "jobs_failed": "{jobCount, plural, one {# neuspješan} few {# neuspješna} other {# neuspješnih}}", "library_created": "Stvorena biblioteka: {library}", "library_deleted": "Biblioteka izbrisana", - "library_import_path_description": "Navedite mapu za uvoz. Ova će se mapa, uključujući podmape, skenirati u potrazi za slikama i videozapisima.", - "library_scanning": "Periodično Skeniranje", + "library_scanning": "Periodično skeniranje", "library_scanning_description": "Konfigurirajte periodično skeniranje biblioteke", "library_scanning_enable_description": "Omogući periodično skeniranje biblioteke", - "library_settings": "Externa biblioteka", + "library_settings": "Vanjska biblioteka", "library_settings_description": "Upravljajte postavkama vanjske biblioteke", "library_tasks_description": "Skeniraj vanjske biblioteke za nove i/ili promijenjene stavke", "library_watching_enable_description": "Pratite vanjske biblioteke za promjena datoteke", - "library_watching_settings": "Gledanje biblioteke (EKSPERIMENTALNO)", + "library_watching_settings": "Gledanje biblioteke [EKSPERIMENTALNO]", "library_watching_settings_description": "Automatsko praćenje promijenjenih datoteke", "logging_enable_description": "Omogući zapisivanje", "logging_level_description": "Kada je omogućeno, koju razinu zapisivanja koristiti.", @@ -131,7 +129,7 @@ "machine_learning_availability_checks_interval_description": "Interval u milisekundama između provjera dostupnosti", "machine_learning_clip_model": "CLIP model", "machine_learning_clip_model_description": "Naziv CLIP modela navedenog ovdje. Imajte na umu da morate ponovno pokrenuti posao 'Pametno Pretraživanje' za sve slike nakon promjene modela.", - "machine_learning_duplicate_detection": "Detekcija Duplikata", + "machine_learning_duplicate_detection": "Detekcija duplikata", "machine_learning_duplicate_detection_enabled": "Omogući detekciju duplikata", "machine_learning_duplicate_detection_enabled_description": "Ako je onemogućeno, potpuno identične stavke i dalje će biti deduplicirane.", "machine_learning_duplicate_detection_setting_description": "Upotrijebite CLIP ugradnje da biste pronašli vjerojatne duplikate", @@ -162,16 +160,16 @@ "manage_log_settings": "Upravljanje postavkama zapisivanje", "map_dark_style": "Tamni stil", "map_enable_description": "Omogući značajke karte", - "map_gps_settings": "Postavke Karte i GPS-a", - "map_gps_settings_description": "Upravljajte Postavkama Karte i GPS-a (Obrnuto Geokodiranje)", + "map_gps_settings": "Postavke karte i GPS-a", + "map_gps_settings_description": "Upravljajte postavkama karte i GPS-a (obrnutog geokodiranja)", "map_implications": "Značajka karte se oslanja na vanjsku uslugu pločica (tiles.immich.cloud)", "map_light_style": "Svijetli stil", - "map_manage_reverse_geocoding_settings": "Upravljajte postavkama Obrnutog Geokodiranja", + "map_manage_reverse_geocoding_settings": "Upravljajte postavkama Obrnutog geokodiranja", "map_reverse_geocoding": "Obrnuto Geokodiranje", "map_reverse_geocoding_enable_description": "Omogući obrnuto geokodiranje", - "map_reverse_geocoding_settings": "Postavke Obrnuto Geokodiranje", + "map_reverse_geocoding_settings": "Postavke Obrnutog geokodiranja", "map_settings": "Karta", - "map_settings_description": "Upravljanje postavkama karte", + "map_settings_description": "Upravljajte postavkama karte", "map_style_description": "URL na style.json temu karte", "memory_cleanup_job": "Čišćenje memorije", "memory_generate_job": "Generiranje memorije", @@ -179,7 +177,7 @@ "metadata_extraction_job_description": "Izdvojite metapodatke iz svake stavke, kao što su GPS, lica i rezolucija", "metadata_faces_import_setting": "Omogući uvoz lica", "metadata_faces_import_setting_description": "Uvezite lica iz EXIF podataka slike i sidecar datoteka", - "metadata_settings": "Postavke Metapodataka", + "metadata_settings": "Postavke metapodataka", "metadata_settings_description": "Upravljanje postavkama metapodataka", "migration_job": "Migracija", "migration_job_description": "Premjestite sličice za stavke i lica u najnoviju strukturu mapa", @@ -199,7 +197,7 @@ "nightly_tasks_sync_quota_usage_setting_description": "Ažuriraj korisničku kvotu za pohranu na temelju trenutne potrošnje", "no_paths_added": "Nema dodanih putanja", "no_pattern_added": "Nije dodan uzorak", - "note_apply_storage_label_previous_assets": "Napomena: Da biste primijenili Oznaku pohrane na prethodno prenesene stavke, pokrenite", + "note_apply_storage_label_previous_assets": "Napomena: Da biste primijenili oznaku pohrane na prethodno prenesene stavke, pokrenite", "note_cannot_be_changed_later": "NAPOMENA: Ovo se ne može promijeniti kasnije!", "notification_email_from_address": "Od adrese", "notification_email_from_address_description": "E-mail adresa pošiljatelja, na primjer: \"Immich Photo Server \". Obavezno koristite adresu s koje vam je dopušteno slanje e-pošte.", @@ -217,7 +215,7 @@ "notification_email_test_email_sent": "Testna e-poruka poslana je na {email}. Provjerite svoju pristiglu poštu.", "notification_email_username_description": "Korisničko ime koje se koristi pri autentifikaciji s poslužiteljem e-pošte", "notification_enable_email_notifications": "Omogući obavijesti putem e-pošte", - "notification_settings": "Postavke Obavijesti", + "notification_settings": "Postavke obavijesti", "notification_settings_description": "Upravljanje postavkama obavijesti, uključujući e-poštu", "oauth_auto_launch": "Automatsko pokretanje", "oauth_auto_launch_description": "Automatski pokrenite OAuth prijavu nakon navigacije na stranicu za prijavu", @@ -239,7 +237,7 @@ "oauth_storage_quota_claim": "Zahtjev za kvotom pohrane", "oauth_storage_quota_claim_description": "Automatski postavite korisničku kvotu pohrane na vrijednost ovog zahtjeva.", "oauth_storage_quota_default": "Zadana kvota pohrane (GiB)", - "oauth_storage_quota_default_description": "Kvota u GiB koja će se koristiti kada nema zahtjeva", + "oauth_storage_quota_default_description": "Kvota u GiB koja će se koristiti kada nema zahtjeva.", "oauth_timeout": "Istek vremena zahtjeva", "oauth_timeout_description": "Istek vremena zahtjeva je u milisekundama", "password_enable_description": "Prijava s email adresom i zaporkom", @@ -268,7 +266,7 @@ "sidecar_job": "Sidecar metapodaci", "sidecar_job_description": "Otkrijte ili sinkronizirajte sidecar metapodatke iz datotečnog sustava", "slideshow_duration_description": "Broj sekundi za prikaz svake slike", - "smart_search_job_description": "Pokrenite strojno učenje na stavkama za korištenje Pametnog pretraživanja", + "smart_search_job_description": "Pokrenite strojno učenje na stavkama za korištenje pametnog pretraživanja", "storage_template_date_time_description": "Vremenska oznaka stvaranja stavke koristi se za informacije o datumu i vremenu", "storage_template_date_time_sample": "Vrijeme uzorka {date}", "storage_template_enable_description": "Omogući mehanizam predloška za pohranu", @@ -276,7 +274,7 @@ "storage_template_hash_verification_enabled_description": "Omogućuje hash provjeru, nemojte je onemogućiti osim ako niste sigurni u implikacije", "storage_template_migration": "Migracija predloška za pohranu", "storage_template_migration_description": "Primijenite trenutni {template} na prethodno prenesene stavke", - "storage_template_migration_info": "Predložak za pohranu pretvorit će sve datotečne nastavke u mala slova. Promjene predloška primijenit će se samo na nove stavke. Da biste retroaktivno primijenili predložak na prethodno prenesene stavke, pokrenite {job}.", + "storage_template_migration_info": "Predložak za pohranu pretvorit će sve datotečne nastavke u mala slova. Promjene predloška primijenit će se samo na nove stavke. Da biste retroaktivno primijenili predložak na prethodno prenesene stavke, pokrenite {job}.", "storage_template_migration_job": "Posao Migracije Predloška Pohrane", "storage_template_more_details": "Za više pojedinosti o ovoj značajci pogledajte Predložak pohrane i njegove implikacije", "storage_template_onboarding_description_v2": "Kada je omogućena, ova će značajka automatski organizira datoteke prema predlošku koji je definirao korisnik. Za više informacija pogledajte dokumentaciju.", @@ -284,13 +282,13 @@ "storage_template_settings": "Predložak pohrane", "storage_template_settings_description": "Upravljajte strukturom mape i nazivom datoteke učitane stavke", "storage_template_user_label": "{label} je korisnička oznaka za pohranu", - "system_settings": "Postavke Sustava", + "system_settings": "Postavke sustava", "tag_cleanup_job": "Čišćenje oznaka", "template_email_available_tags": "Možete koristiti sljedeće varijable u vašem predlošku:{tags}", "template_email_if_empty": "Ukoliko je predložak prazan, koristit će se zadana e-mail adresa.", "template_email_invite_album": "Predložak za pozivnicu u album", "template_email_preview": "Pregled", - "template_email_settings": "E-mail Predlošci", + "template_email_settings": "E-mail predlošci", "template_email_update_album": "Ažuriraj Album Predložak", "template_email_welcome": "Predložak e-maila dobrodošlice", "template_settings": "Predložak Obavijesti", @@ -323,20 +321,20 @@ "transcoding_constant_rate_factor": "Faktor konstantne stope (-crf)", "transcoding_constant_rate_factor_description": "Razina kvalitete videa. Uobičajene vrijednosti su 23 za H.264, 28 za HEVC, 31 za VP9 i 35 za AV1. Niže je bolje, ali stvara veće datoteke.", "transcoding_disabled_description": "Nemojte transkodirati nijedan videozapis, može prekinuti reprodukciju na nekim klijentima", - "transcoding_encoding_options": "Opcije Kodiranja", + "transcoding_encoding_options": "Opcije kodiranja", "transcoding_encoding_options_description": "Postavi kodeke, rezoluciju, kvalitetu i druge opcije za kodirane videje", - "transcoding_hardware_acceleration": "Hardversko Ubrzanje", + "transcoding_hardware_acceleration": "Hardversko ubrzanje", "transcoding_hardware_acceleration_description": "Eksperimentalno: brže transkodiranje, ali može smanjiti kvalitetu pri istoj brzini prijenosa", "transcoding_hardware_decoding": "Hardversko dekodiranje", "transcoding_hardware_decoding_setting_description": "Odnosi se samo na NVENC, QSV i RKMPP. Omogućuje ubrzanje s kraja na kraj umjesto samo ubrzavanja kodiranja. Možda neće raditi na svim videozapisima.", "transcoding_max_b_frames": "Maksimalni B-frameovi", "transcoding_max_b_frames_description": "Više vrijednosti poboljšavaju učinkovitost kompresije, ali usporavaju kodiranje. Možda nije kompatibilan s hardverskim ubrzanjem na starijim uređajima. 0 onemogućuje B-frameove, dok -1 automatski postavlja ovu vrijednost.", "transcoding_max_bitrate": "Maksimalne brzina prijenosa (bitrate)", - "transcoding_max_bitrate_description": "Postavljanje maksimalne brzine prijenosa može učiniti veličine datoteka predvidljivijima uz manji trošak za kvalitetu. Pri 720p, tipične vrijednosti su 2600 kbit/s za VP9 ili HEVC ili 4500 kbit/s za H.264. Onemogućeno ako je postavljeno na 0.", + "transcoding_max_bitrate_description": "Postavljanje maksimalne brzine prijenosa može učiniti veličine datoteka predvidljivijima uz manji gubitak kvalitete. Pri 720p, tipične vrijednosti su 2600 kbit/s za VP9 ili HEVC, te 4500 kbit/s za H.264. Onemogućeno ako je postavljeno na 0. Kada nije navedena mjerna jedinica, pretpostavlja se k (za kbit/s); stoga su 5000, 5000k i 5M (za Mbit/s) ekvivalentni.", "transcoding_max_keyframe_interval": "Maksimalni interval ključnih sličica", "transcoding_max_keyframe_interval_description": "Postavlja maksimalnu udaljenost slika između ključnih kadrova. Niže vrijednosti pogoršavaju učinkovitost kompresije, ali poboljšavaju vrijeme traženja i mogu poboljšati kvalitetu u scenama s brzim kretanjem. 0 automatski postavlja ovu vrijednost.", "transcoding_optimal_description": "Videozapisi koji su veći od ciljne rezolucije ili nisu u prihvatljivom formatu", - "transcoding_policy": "Politika Transkodiranja", + "transcoding_policy": "Pravila transkodiranja", "transcoding_policy_description": "Postavi kada će video biti transkodiran", "transcoding_preferred_hardware_device": "Preferirani hardverski uređaj", "transcoding_preferred_hardware_device_description": "Odnosi se samo na VAAPI i QSV. Postavlja dri node koji se koristi za hardversko transkodiranje.", @@ -345,12 +343,12 @@ "transcoding_reference_frames": "Referentne slike", "transcoding_reference_frames_description": "Broj slika za referencu prilikom komprimiranja određene slike. Više vrijednosti poboljšavaju učinkovitost kompresije, ali usporavaju kodiranje. 0 automatski postavlja ovu vrijednost.", "transcoding_required_description": "Samo videozapisi koji nisu u prihvaćenom formatu", - "transcoding_settings": "Postavke Video Transkodiranja", + "transcoding_settings": "Postavke video transkodiranja", "transcoding_settings_description": "Upravljaj koji videozapisi će se transkodirati i kako ih obraditi", "transcoding_target_resolution": "Ciljana rezolucija", "transcoding_target_resolution_description": "Veće razlučivosti mogu sačuvati više detalja, ali trebaju dulje za kodiranje, imaju veće veličine datoteka i mogu smanjiti odziv aplikacije.", "transcoding_temporal_aq": "Vremenski AQ", - "transcoding_temporal_aq_description": "Odnosi se samo na NVENC. Povećava kvalitetu scena s puno detalja i malo pokreta. Možda nije kompatibilan sa starijim uređajima.", + "transcoding_temporal_aq_description": "Odnosi se samo na NVENC. Vremenska adaptivna kvantizacija povećava kvalitetu scena s mnogim detaljima i malo kretanja. Možda nije kompatibilno sa starijim uređajima.", "transcoding_threads": "Sljedovi (Threads)", "transcoding_threads_description": "Više vrijednosti dovode do bržeg kodiranja, ali ostavljaju manje prostora poslužitelju za obradu drugih zadataka dok je aktivan. Ova vrijednost ne smije biti veća od broja CPU jezgri. Maksimalno povećava iskorištenje ako je postavljeno na 0.", "transcoding_tone_mapping": "Tonsko preslikavanje", @@ -361,10 +359,10 @@ "transcoding_two_pass_encoding_setting_description": "Transkodiranje u dva prolaza za proizvodnju bolje kodiranih videozapisa. Kada je omogućena maksimalna brzina prijenosa (potrebna za rad s H.264 i HEVC), ovaj način rada koristi raspon brzine prijenosa na temelju maksimalne brzine prijenosa i zanemaruje CRF. Za VP9, CRF se može koristiti ako je maksimalna brzina prijenosa onemogućena.", "transcoding_video_codec": "Video kodek", "transcoding_video_codec_description": "VP9 ima visoku učinkovitost i web-kompatibilnost, ali treba dulje za transkodiranje. HEVC ima sličnu izvedbu, ali ima slabiju web kompatibilnost. H.264 široko je kompatibilan i brzo se transkodira, ali proizvodi mnogo veće datoteke. AV1 je najučinkovitiji kodek, ali nema podršku na starijim uređajima.", - "trash_enabled_description": "Omogućite značajke Smeća", + "trash_enabled_description": "Omogući značajke smeća", "trash_number_of_days": "Broj dana", "trash_number_of_days_description": "Broj dana za čuvanje stavki u smeću prije njihovog trajnog uklanjanja", - "trash_settings": "Postavke Smeća", + "trash_settings": "Postavke smeća", "trash_settings_description": "Upravljanje postavkama smeća", "unlink_all_oauth_accounts": "Odspoji sve OAuth račune", "unlink_all_oauth_accounts_description": "Zapamtite da odspojite sve OAuth račune prije prelaska na novog pružatelja usluge.", @@ -400,12 +398,12 @@ "advanced_settings_log_level_title": "Razina zapisivanja: {level}", "advanced_settings_prefer_remote_subtitle": "Neki uređaji sporo učitavaju sličice s lokalnih stavki. Aktivirajte ovu postavku kako biste umjesto toga učitali slike s udaljenih izvora.", "advanced_settings_prefer_remote_title": "Preferiraj udaljene slike", - "advanced_settings_proxy_headers_subtitle": "Definirajte zaglavlja posrednika koja Immich treba slati sa svakim mrežnim zahtjevom.", - "advanced_settings_proxy_headers_title": "Proxy zaglavlja", - "advanced_settings_readonly_mode_subtitle": "Omogućuje read-only mod u kojem je moguće samo pregledavanje fotografija, radnje poput odabira više fotografija, dijeljenje, proiciranje i brisanje svih fotografija su onemogućene. Upali/ugasi read-only mod preko korisnickog avatara na glavnom ekranu.", + "advanced_settings_proxy_headers_subtitle": "Definirajte proxy zaglavlja koja Immich treba poslati sa svakim mrežnim zahtjevom", + "advanced_settings_proxy_headers_title": "Prilagođeni proxy zaglavlja [EKSPERIMENTALNO]", + "advanced_settings_readonly_mode_subtitle": "Omogućuje način rada za čitanje u kojem se fotografije mogu samo pregledavati, a stvari poput odabira više slika, dijeljenja, emitiranja i brisanja su onemogućene. Omogući/onemogući način rada za čitanje putem korisničkog avatara s glavnog zaslona", "advanced_settings_readonly_mode_title": "Read-only mod", "advanced_settings_self_signed_ssl_subtitle": "Preskoči provjeru SSL certifikata za krajnju točku poslužitelja. Potrebno za samo-potpisane certifikate.", - "advanced_settings_self_signed_ssl_title": "Dopusti samo-potpisane SSL certifikate", + "advanced_settings_self_signed_ssl_title": "Dopusti samopotpisane SSL certifikate [EKSPERIMENTALNO]", "advanced_settings_sync_remote_deletions_subtitle": "Automatski izbriši ili obnovi stavku na ovom uređaju kada se ta radnja izvrši na webu", "advanced_settings_sync_remote_deletions_title": "Sinkroniziraj udaljena brisanja [EKSPERIMENTALNO]", "advanced_settings_tile_subtitle": "Postavke za napredne korisnike", @@ -453,7 +451,7 @@ "albums_on_device_count": "Albumi na uređaju ({count})", "all": "Sve", "all_albums": "Svi albumi", - "all_people": "Svi ljudi", + "all_people": "Sve osobe", "all_videos": "Svi videi", "allow_dark_mode": "Dozvoli tamni način", "allow_edits": "Dozvoli izmjene", @@ -464,7 +462,7 @@ "api_key": "API Ključ", "api_key_description": "Ova će vrijednost biti prikazana samo jednom. Obavezno ju kopirajte prije zatvaranja prozora.", "api_key_empty": "Naziv vašeg API ključa ne smije biti prazan", - "api_keys": "API Ključevi", + "api_keys": "API ključevi", "app_architecture_variant": "Varijanta(Arhitektura)", "app_bar_signout_dialog_content": "Jeste li sigurni da se želite odjaviti?", "app_bar_signout_dialog_ok": "Da", @@ -473,6 +471,7 @@ "app_settings": "Postavke aplikacije", "app_update_available": "Ažuriranje aplikacije je dostupno", "appears_in": "Pojavljuje se u", + "apply_count": "Primijeni ({count, number})", "archive": "Arhiva", "archive_action_prompt": "{count} dodano u arhivu", "archive_or_unarchive_photo": "Arhivirajte ili dearhivirajte fotografiju", @@ -481,7 +480,7 @@ "archive_size": "Veličina arhive", "archive_size_description": "Konfigurirajte veličinu arhive za preuzimanja (u GiB)", "archived": "Arhivirano", - "archived_count": "{count, plural, other {Archived #}}", + "archived_count": "{count, plural, one {Arhivirana #} few {Arhivirane #} other {Arhivirano #}}", "are_these_the_same_person": "Je li ovo ista osoba?", "are_you_sure_to_do_this": "Jeste li sigurni da to želite učiniti?", "asset_action_delete_err_read_only": "Nije moguće izbrisati stavke samo za čitanje, preskakanje", @@ -518,22 +517,22 @@ "assets_cannot_be_added_to_album_count": "{count, plural, one {Stavka se ne može} other {Stavke se ne mogu}} dodati u album", "assets_cannot_be_added_to_albums": "{count, plural, one {Stavka se ne može} few {Stavke se ne mogu} other {Stavki se ne može}} dodati ni u jedan album", "assets_count": "{count, plural, one {# stavka} few {# stavke} other {# stavki}}", - "assets_deleted_permanently": "Trajno {count, plural, one {izbrisana # stavka} few {izbrisane # stavke} other {izbrisano # stavki}}", + "assets_deleted_permanently": "{count, plural, one {# stavka trajno izbrisana} few {# stavke trajno izbrisane} other {# stavki trajno izbrisano}}", "assets_deleted_permanently_from_server": "Trajno {count, plural, one {izbrisana # stavka} few {izbrisane # stavke} other {izbrisano # stavki}} s Immich servera", "assets_downloaded_failed": "{count, plural, one {Preuzeta # datoteka – {error} datoteka nije uspjela} few {Preuzete # datoteke - {error} datoteke nisu uspjele} other {Preuzeto # datoteka – {error} datoteke nisu uspjele}}", "assets_downloaded_successfully": "{count, plural, one {Uspješno preuzeta # datoteka} few {Uspješno preuzete # datoteke} other {Uspješno preueto # datoteka}}", "assets_moved_to_trash_count": "{count, plural, one {# stavka premještena} few {# stavke premještene} other {# stavk premještenoi}} u smeće", "assets_permanently_deleted_count": "Trajno {count, plural, one {izbrisana # stavka} few {izbrisane # stavke} other {izbrisano # stavki}}", "assets_removed_count": "{count, plural, one {Uklonjena # stavka} few {Uklonjene # stavke} other {Uklonjeno # stavki}}", - "assets_removed_permanently_from_device": "{count} resurs(i) trajno uklonjen(i) s vašeg uređaja", - "assets_restore_confirmation": "Jeste li sigurni da želite obnoviti sve svoje resurse bačene u otpad? Ne možete poništiti ovu radnju! Imajte na umu da se bilo koji izvanmrežni resursi ne mogu obnoviti na ovaj način.", - "assets_restored_count": "Vraćeno {count, plural, one {# asset} other {# assets}}", - "assets_restored_successfully": "{count} resurs(i) uspješno obnovljen(i)", - "assets_trashed": "{count} resurs(i) premješten(i) u smeće", - "assets_trashed_count": "Bačeno u smeće {count, plural, one {# asset} other {# assets}}", - "assets_trashed_from_server": "{count} resurs(i) premješten(i) u smeće s Immich poslužitelja", - "assets_were_part_of_album_count": "{count, plural, one {Asset was} other {Assets were}} već dio albuma", - "assets_were_part_of_albums_count": "{count, plural, one {Datoteka je već bila dio albuma} few {Datoteke su već bile dio albuma} other {Datoteka je već bila dio albuma}}", + "assets_removed_permanently_from_device": "{count, plural, one {# stavka trajno uklonjena} few {# stavke trajno uklonjene} other {# stavki trajno uklonjeno}} s vašeg uređaja", + "assets_restore_confirmation": "Jeste li sigurni da želite vratiti sve svoje izbrisane stavke? Ovu radnju ne možete poništiti! Imajte na umu da se na ovaj način ne mogu vratiti izvanmrežne stavke.", + "assets_restored_count": "{count, plural, one {Vraćena # stavka} few {Vraćene # stavke} other {Vraćeno # stavki}}", + "assets_restored_successfully": "{count, plural, one {# stavka uspješno obnovljena} few {# stavke uspješno obnovljene} other {# stavki uspješno obnovljeno}}", + "assets_trashed": "{count, plural, one {# stavka premještena} few {# stavke premještene} other {# stavki premješteno}} u smeće", + "assets_trashed_count": "{count, plural, one {# stavka premještena} few {# stavke premještene} other {# stavki premješteno}} u smeće", + "assets_trashed_from_server": "{count, plural, one {# stavka premještena} few {# stavke premještene} other {# stavki premješteno}} u smeće s Immich poslužitelja", + "assets_were_part_of_album_count": "{count, plural, one {Stavka je već bila} other {Stavke su već bile}} dio albuma", + "assets_were_part_of_albums_count": "{count, plural, one {Stavka je već bila} other {Stavke su već bile}} dio albuma", "authorized_devices": "Ovlašteni uređaji", "automatic_endpoint_switching_subtitle": "Povežite se lokalno preko naznačene Wi-Fi mreže kada je dostupna i koristite alternativne veze na drugim lokacijama", "automatic_endpoint_switching_title": "Automatsko prebacivanje URL-a", @@ -545,17 +544,18 @@ "backup": "Sigurnosna kopija", "backup_album_selection_page_albums_device": "Albumi na uređaju ({count})", "backup_album_selection_page_albums_tap": "Dodirnite za uključivanje, dvostruki dodir za isključivanje", - "backup_album_selection_page_assets_scatter": "Resursi mogu biti raspoređeni u više albuma. Stoga, albumi mogu biti uključeni ili isključeni tijekom procesa sigurnosnog kopiranja.", + "backup_album_selection_page_assets_scatter": "Stavke se mogu raspršiti po više albuma. Stoga se albumi mogu uključiti ili isključiti tijekom postupka sigurnosnog kopiranja.", "backup_album_selection_page_select_albums": "Odabrani albumi", "backup_album_selection_page_selection_info": "Informacije o odabiru", - "backup_album_selection_page_total_assets": "Ukupan broj jedinstvenih resursa", + "backup_album_selection_page_total_assets": "Ukupan broj jedinstvenih stavki", "backup_all": "Sve", - "backup_background_service_backup_failed_message": "Neuspješno sigurnosno kopiranje resursa. Pokušavam ponovo…", + "backup_background_service_backup_failed_message": "Neuspješno sigurnosno kopiranje stavki. Ponovno pokušavanje…", + "backup_background_service_complete_notification": "Sigurnosno kopiranje stavki dovršeno", "backup_background_service_connection_failed_message": "Neuspješno povezivanje s poslužiteljem. Pokušavam ponovo…", "backup_background_service_current_upload_notification": "Šaljem {filename}", - "backup_background_service_default_notification": "Provjera novih resursa…", + "backup_background_service_default_notification": "Provjera novih stavki…", "backup_background_service_error_title": "Pogreška pri sigurnosnom kopiranju", - "backup_background_service_in_progress_notification": "Sigurnosno kopiranje vaših resursa…", + "backup_background_service_in_progress_notification": "Sigurnosno kopiranje vaših stavki…", "backup_background_service_upload_failure_notification": "Neuspješno slanje {filename}", "backup_controller_page_albums": "Sigurnosno kopiranje albuma", "backup_controller_page_background_app_refresh_disabled_content": "Omogućite osvježavanje aplikacije u pozadini u Postavke > Opće Postavke > Osvježavanje Aplikacija u Pozadini kako biste koristili sigurnosno kopiranje u pozadini.", @@ -567,8 +567,8 @@ "backup_controller_page_background_battery_info_title": "Optimizacije baterije", "backup_controller_page_background_charging": "Samo tijekom punjenja", "backup_controller_page_background_configure_error": "Neuspješno konfiguriranje pozadinske usluge", - "backup_controller_page_background_delay": "Odgođeno sigurnosno kopiranje novih resursa: {duration}", - "backup_controller_page_background_description": "Uključite pozadinsku uslugu kako biste automatski sigurnosno kopirali nove resurse bez potrebe za otvaranjem aplikacije", + "backup_controller_page_background_delay": "Odgoda sigurnosnog kopiranja novih stavki: {duration}", + "backup_controller_page_background_description": "Uključite pozadinsku uslugu za automatsko sigurnosno kopiranje svih novih stavki bez potrebe za otvaranjem aplikacije", "backup_controller_page_background_is_off": "Automatsko sigurnosno kopiranje u pozadini je isključeno", "backup_controller_page_background_is_on": "Automatsko sigurnosno kopiranje u pozadini je uključeno", "backup_controller_page_background_turn_off": "Isključite pozadinsku uslugu", @@ -578,7 +578,7 @@ "backup_controller_page_backup_selected": "Odabrani: ", "backup_controller_page_backup_sub": "Sigurnosno kopirane fotografije i videozapisi", "backup_controller_page_created": "Kreirano: {date}", - "backup_controller_page_desc_backup": "Uključite sigurnosno kopiranje u prvom planu kako biste automatski prenijeli nove resurse na poslužitelj prilikom otvaranja aplikacije.", + "backup_controller_page_desc_backup": "Uključite sigurnosno kopiranje u prvom planu kako biste automatski prenijeli nove stavke na poslužitelj prilikom otvaranja aplikacije.", "backup_controller_page_excluded": "Izuzeto: ", "backup_controller_page_failed": "Neuspješno ({count})", "backup_controller_page_filename": "Naziv datoteke: {filename} [{size}]", @@ -598,7 +598,7 @@ "backup_controller_page_turn_on": "Uključite sigurnosno kopiranje u prvom planu", "backup_controller_page_uploading_file_info": "Slanje informacija o datoteci", "backup_err_only_album": "Nije moguće ukloniti jedini album", - "backup_info_card_assets": "resursi", + "backup_info_card_assets": "stavke", "backup_manual_cancelled": "Otkazano", "backup_manual_in_progress": "Slanje već u tijeku. Pokšuajte nakon nekog vremena", "backup_manual_success": "Uspijeh", @@ -618,15 +618,15 @@ "bugs_and_feature_requests": "Bugovi i zahtjevi za značajke", "build": "Sagradi (Build)", "build_image": "Sagradi (Build) Image", - "bulk_delete_duplicates_confirmation": "Jeste li sigurni da želite skupno izbrisati {count, plural, one {# duplicate asset} other {# duplicate asset}}? Ovo će zadržati najveće sredstvo svake grupe i trajno izbrisati sve druge duplikate. Ne možete poništiti ovu radnju!", + "bulk_delete_duplicates_confirmation": "Jeste li sigurni da želite skupno izbrisati {count, plural, one {# dupliciranu stavku} few {# duplicirane stavke} other {# dupliciranih stavki}}? Ovo će zadržati najveću stavku svake grupe i trajno izbrisati sve druge duplikate. Ne možete poništiti ovu radnju!", "bulk_keep_duplicates_confirmation": "Jeste li sigurni da želite zadržati {count, plural, one {# duplicate asset} other {# duplicate asset}}? Ovo će riješiti sve duplicirane grupe bez brisanja ičega.", - "bulk_trash_duplicates_confirmation": "Jeste li sigurni da želite na veliko baciti u smeće {count, plural, one {# duplicate asset} other {# duplicate asset}}? Ovo će zadržati najveće sredstvo svake grupe i baciti sve ostale duplikate u smeće.", + "bulk_trash_duplicates_confirmation": "Jeste li sigurni da želite skupno u smeće premjestiti {count, plural, one {# dupliciranu stavku} few {# duplicirane stavke} other {# dupliciranih stavki}}? Ovo će zadržati najveću stavku svake grupe i premjestiti sve ostale duplikate u smeće.", "buy": "Kupi Immich", "cache_settings_clear_cache_button": "Očisti predmemoriju", "cache_settings_clear_cache_button_title": "Briše predmemoriju aplikacije. Ovo će značajno utjecati na performanse aplikacije dok se predmemorija ponovno ne izgradi.", "cache_settings_duplicated_assets_clear_button": "OČISTI", - "cache_settings_duplicated_assets_subtitle": "Fotografije i videozapisi koje je aplikacija ignorira", - "cache_settings_duplicated_assets_title": "Duplicirani resursi ({count})", + "cache_settings_duplicated_assets_subtitle": "Fotografije i videozapisi koje aplikacija ignorira", + "cache_settings_duplicated_assets_title": "Duplicirane stavke ({count})", "cache_settings_statistics_album": "Sličice biblioteke", "cache_settings_statistics_full": "Pune slike", "cache_settings_statistics_shared": "Sličice dijeljenih albuma", @@ -683,8 +683,8 @@ "client_cert_import_success_msg": "Klijentski certifikat je uvezen", "client_cert_invalid_msg": "Neispravna datoteka certifikata ili pogrešna lozinka", "client_cert_remove_msg": "Klijentski certifikat je uklonjen", - "client_cert_subtitle": "Podržava samo PKCS12 (.p12, .pfx) format. Uvoz/uklanjanje certifikata moguće je samo prije prijave", - "client_cert_title": "SSL klijentski certifikat", + "client_cert_subtitle": "Podržava samo PKCS12 (.p12, .pfx) format. Uvoz/uklanjanje certifikata dostupno je samo prije prijave", + "client_cert_title": "SSL klijentski certifikat [EKSPERIMENTALNO]", "clockwise": "U smjeru kazaljke na satu", "close": "Zatvori", "collapse": "Sažmi", @@ -699,9 +699,9 @@ "completed": "Dovršeno", "confirm": "Potvrdi", "confirm_admin_password": "Potvrdite lozinku administratora", - "confirm_delete_face": "Jeste li sigurni da želite izbrisati lice {name} iz resursa?", + "confirm_delete_face": "Jeste li sigurni da želite izbrisati lice {name} iz stavke?", "confirm_delete_shared_link": "Jeste li sigurni da želite izbrisati ovu zajedničku vezu?", - "confirm_keep_this_delete_others": "Sva druga sredstva u nizu bit će izbrisana osim ovog sredstva. Jeste li sigurni da želite nastaviti?", + "confirm_keep_this_delete_others": "Sve druge stavke u stogu bit će izbrisane osim ove stavke. Jeste li sigurni da želite nastaviti?", "confirm_new_pin_code": "Potvrdi novi PIN kod", "confirm_password": "Potvrdite lozinku", "confirm_tag_face": "Želite li označiti ovo lice kao {name}?", @@ -717,7 +717,7 @@ "control_bottom_app_bar_edit_location": "Uredi lokaciju", "control_bottom_app_bar_edit_time": "Uredi datum i vrijeme", "control_bottom_app_bar_share_link": "Podijeli poveznicu", - "control_bottom_app_bar_share_to": "Podijeli s...", + "control_bottom_app_bar_share_to": "Dijeli s", "control_bottom_app_bar_trash_from_immich": "Premjesti u smeće", "copied_image_to_clipboard": "Slika je kopirana u međuspremnik.", "copied_to_clipboard": "Kopirano u međuspremnik!", @@ -740,7 +740,7 @@ "create_link_to_share_description": "Dopusti svakome s vezom da vidi odabrane fotografije", "create_new": "KREIRAJ NOVO", "create_new_person": "Stvorite novu osobu", - "create_new_person_hint": "Dodijelite odabrana sredstva novoj osobi", + "create_new_person_hint": "Dodijelite odabrane stavke novoj osobi", "create_new_user": "Kreiraj novog korisnika", "create_shared_album_page_share_add_assets": "DODAJ STAVKE", "create_shared_album_page_share_select_photos": "Odaberi fotografije", @@ -778,7 +778,7 @@ "default_locale": "Zadana lokalizacija", "default_locale_description": "Oblikujte datume i brojeve na temelju jezika preglednika", "delete": "Izbriši", - "delete_action_confirmation_message": "Jeste li sigurni da želite izbrisati ovaj sadržaj? Ova radnja će premjestiti sadržaj u smeće na poslužitelju i upitat će vas želite li ga izbrisati i lokalno", + "delete_action_confirmation_message": "Jeste li sigurni da želite izbrisati ovu stavku? Ova radnja će premjestiti stavku u smeće poslužitelja i pitati vas želite li ju izbrisati lokalno", "delete_action_prompt": "{count} izbrisano", "delete_album": "Izbriši album", "delete_api_key_prompt": "Jeste li sigurni da želite izbrisati ovaj API ključ?", @@ -805,7 +805,7 @@ "delete_tag_confirmation_prompt": "Jeste li sigurni da želite izbrisati oznaku {tagName}?", "delete_user": "Izbriši korisnika", "deleted_shared_link": "Izbrisana dijeljena poveznica", - "deletes_missing_assets": "Briše sredstva koja nedostaju s diska", + "deletes_missing_assets": "Briše stavke koje nedostaju na disku", "description": "Opis", "description_input_hint_text": "Dodaj opis...", "description_input_submit_error": "Pogreška pri ažuriranju opisa, provjerite zapisnik za više detalja", @@ -822,12 +822,12 @@ "display_options": "Mogućnosti prikaza", "display_order": "Redoslijed prikaza", "display_original_photos": "Prikaz originalnih fotografija", - "display_original_photos_setting_description": "Radije prikažite izvornu fotografiju kada gledate materijal umjesto sličica kada je izvorni materijal kompatibilan s webom. To može rezultirati sporijim brzinama prikaza fotografija.", + "display_original_photos_setting_description": "Radije prikažite izvornu fotografiju kada gledate stavku umjesto sličica kada je izvorna stavka kompatibilna s webom. To može rezultirati sporijim brzinama prikaza fotografija.", "do_not_show_again": "Ne prikazuj više ovu poruku", "documentation": "Dokumentacija", "done": "Gotovo", "download": "Preuzmi", - "download_action_prompt": "Preuzimanje {count} sadržaja", + "download_action_prompt": "Preuzimanje {count, plural, one {# stavke} few {# stavke} other {# stavki}}", "download_canceled": "Preuzimanje otkazano", "download_complete": "Preuzimanje završeno", "download_enqueue": "Preuzimanje dodano u red", @@ -839,13 +839,13 @@ "download_notfound": "Preuzimanje nije pronađeno", "download_paused": "Preuzimanje pauzirano", "download_settings": "Preuzmi", - "download_settings_description": "Upravljajte postavkama koje se odnose na preuzimanje sredstava", + "download_settings_description": "Upravljajte postavkama vezanim uz preuzimanje stavki", "download_started": "Preuzimanje započeto", "download_sucess": "Preuzimanje uspješno", "download_sucess_android": "Medij je preuzet u DCIM/Immich", "download_waiting_to_retry": "Čeka se ponovni pokušaj", "downloading": "Preuzimanje", - "downloading_asset_filename": "Preuzimanje materijala {filename}", + "downloading_asset_filename": "Preuzimanje stavke {filename}", "downloading_media": "Preuzimanje medija", "drop_files_to_upload": "Ispustite datoteke bilo gdje za prijenos", "duplicates": "Duplikati", @@ -864,8 +864,6 @@ "edit_description_prompt": "Molimo odaberite novi opis:", "edit_exclusion_pattern": "Uredi uzorak izuzimanja", "edit_faces": "Uređivanje lica", - "edit_import_path": "Uredi put uvoza", - "edit_import_paths": "Uredi Uvozne Putanje", "edit_key": "Ključ za uređivanje", "edit_link": "Uredi poveznicu", "edit_location": "Uredi lokaciju", @@ -885,7 +883,7 @@ "email_notifications": "Obavijesti putem e-maila", "empty_folder": "Ova mapa je prazna", "empty_trash": "Isprazni smeće", - "empty_trash_confirmation": "Jeste li sigurni da želite isprazniti smeće? Time će se iz Immicha trajno ukloniti sva sredstva u otpadu.\nNe možete poništiti ovu radnju!", + "empty_trash_confirmation": "Jeste li sigurni da želite isprazniti smeće? Time će se iz Immicha trajno ukloniti sve stavke u smeću.\nNe možete poništiti ovu radnju!", "enable": "Omogući", "enable_backup": "Omogući sigurnosnu kopiju", "enable_biometric_auth_description": "Unesite svoj PIN kod za omogućavanje biometrijske autentikacije", @@ -903,57 +901,55 @@ "error_tag_face_bounding_box": "Pogreška pri označavanju lica – nije moguće dohvatiti koordinate granica (bounding box)", "error_title": "Greška - Nešto je pošlo krivo", "errors": { - "cannot_navigate_next_asset": "Nije moguće prijeći na sljedeći materijal", - "cannot_navigate_previous_asset": "Nije moguće prijeći na prethodni materijal", + "cannot_navigate_next_asset": "Nije moguće prijeći na sljedeću stavku", + "cannot_navigate_previous_asset": "Nije moguće prijeći na prethodnu stavku", "cant_apply_changes": "Nije moguće primijeniti promjene", "cant_change_activity": "Nije moguće {enabled, select, true {onemogućiti} other {omogućiti}} aktivnost", - "cant_change_asset_favorite": "Nije moguće promijeniti favorita za sredstvo", - "cant_change_metadata_assets_count": "Nije moguće promijeniti metapodatke {count, plural, one {# asset} other {# assets}}", + "cant_change_asset_favorite": "Nije moguće promijeniti favorita za stavku", + "cant_change_metadata_assets_count": "Nije moguće promijeniti metapodatke {count, plural, one {# stavke} few {# stavke} other {# stavki}}", "cant_get_faces": "Ne mogu dobiti lica", "cant_get_number_of_comments": "Ne mogu dobiti broj komentara", "cant_search_people": "Ne mogu pretraživati ljude", "cant_search_places": "Ne mogu pretraživati mjesta", - "error_adding_assets_to_album": "Pogreška pri dodavanju materijala u album", + "error_adding_assets_to_album": "Pogreška pri dodavanju stavki u album", "error_adding_users_to_album": "Pogreška pri dodavanju korisnika u album", "error_deleting_shared_user": "Pogreška pri brisanju dijeljenog korisnika", "error_downloading": "Pogreška pri preuzimanju {filename}", "error_hiding_buy_button": "Pogreška pri skrivanju gumba za kupnju", - "error_removing_assets_from_album": "Pogreška prilikom uklanjanja materijala iz albuma, provjerite konzolu za više pojedinosti", - "error_selecting_all_assets": "Pogreška pri odabiru svih sredstava", + "error_removing_assets_from_album": "Pogreška prilikom uklanjanja stavki iz albuma, provjerite konzolu za više detalja", + "error_selecting_all_assets": "Pogreška pri odabiru svih stavki", "exclusion_pattern_already_exists": "Ovaj uzorak izuzimanja već postoji.", "failed_to_create_album": "Izrada albuma nije uspjela", "failed_to_create_shared_link": "Stvaranje dijeljene veze nije uspjelo", "failed_to_edit_shared_link": "Nije uspjelo uređivanje dijeljene poveznice", - "failed_to_get_people": "Dohvaćanje ljudi nije uspjelo", - "failed_to_keep_this_delete_others": "Zadržavanje ovog sredstva i brisanje ostalih sredstava nije uspjelo", - "failed_to_load_asset": "Učitavanje sredstva nije uspjelo", - "failed_to_load_assets": "Učitavanje sredstava nije uspjelo", + "failed_to_get_people": "Dohvaćanje osoba nije uspjelo", + "failed_to_keep_this_delete_others": "Zadržavanje ove stavke i brisanje ostalih stavki nije uspjelo", + "failed_to_load_asset": "Učitavanje stavke nije uspjelo", + "failed_to_load_assets": "Učitavanje stavki nije uspjelo", "failed_to_load_notifications": "Neuspješno učitavanje obavijesti", - "failed_to_load_people": "Učitavanje ljudi nije uspjelo", + "failed_to_load_people": "Učitavanje osoba nije uspjelo", "failed_to_remove_product_key": "Uklanjanje ključa proizvoda nije uspjelo", "failed_to_reset_pin_code": "Neuspješno resetiranje PIN koda", - "failed_to_stack_assets": "Slaganje sredstava nije uspjelo", - "failed_to_unstack_assets": "Nije uspjelo uklanjanje snopa sredstava", + "failed_to_stack_assets": "Slaganje stavki nije uspjelo", + "failed_to_unstack_assets": "Razdvajanje stavki nije uspjelo", "failed_to_update_notification_status": "Neuspješno ažuriranje statusa obavijesti", - "import_path_already_exists": "Ovaj uvozni put već postoji.", "incorrect_email_or_password": "Netočna adresa e-pošte ili lozinka", "paths_validation_failed": "{paths, plural, one {# putanja nije prošla} other {# putanje nisu prošle}} provjeru valjanosti", "profile_picture_transparent_pixels": "Profilne slike ne smiju imati prozirne piksele. Povećajte i/ili pomaknite sliku.", "quota_higher_than_disk_size": "Postavili ste kvotu veću od veličine diska", "something_went_wrong": "Nešto je pošlo po zlu", "unable_to_add_album_users": "Nije moguće dodati korisnike u album", - "unable_to_add_assets_to_shared_link": "Nije moguće dodati sredstva na dijeljenu poveznicu", + "unable_to_add_assets_to_shared_link": "Nije moguće dodati stavke u dijeljenu vezu", "unable_to_add_comment": "Nije moguće dodati komentar", "unable_to_add_exclusion_pattern": "Nije moguće dodati uzorak izuzimanja", - "unable_to_add_import_path": "Nije moguće dodati putanju uvoza", "unable_to_add_partners": "Nije moguće dodati partnere", - "unable_to_add_remove_archive": "Nije moguće {archived, select, true {ukloniti resurs iz} other {dodati resurs u}} arhivu", + "unable_to_add_remove_archive": "Nije moguće {archived, select, true {ukloniti stavku iz} other {dodati stavku u}} arhivu", "unable_to_add_remove_favorites": "Nije moguće {favorite, select, true {add asset to} other {remove asset from}} favorite", "unable_to_archive_unarchive": "Nije moguće {archived, select, true {arhivirati} other {dearhivirati}}", "unable_to_change_album_user_role": "Nije moguće promijeniti ulogu korisnika albuma", "unable_to_change_date": "Nije moguće promijeniti datum", "unable_to_change_description": "Nije moguće promijeniti opis", - "unable_to_change_favorite": "Nije moguće promijeniti favorita za sredstvo", + "unable_to_change_favorite": "Nije moguće promijeniti favorita za stavku", "unable_to_change_location": "Nije moguće promijeniti lokaciju", "unable_to_change_password": "Nije moguće promijeniti lozinku", "unable_to_change_visibility": "Nije moguće promijeniti vidljivost za {count, plural, one {# osobu} other {# osobe}}", @@ -965,15 +961,13 @@ "unable_to_create_library": "Nije moguće stvoriti biblioteku", "unable_to_create_user": "Nije moguće stvoriti korisnika", "unable_to_delete_album": "Nije moguće izbrisati album", - "unable_to_delete_asset": "Nije moguće izbrisati sredstvo", - "unable_to_delete_assets": "Pogreška pri brisanju sredstava", + "unable_to_delete_asset": "Nije moguće izbrisati stavku", + "unable_to_delete_assets": "Pogreška pri brisanju stavki", "unable_to_delete_exclusion_pattern": "Nije moguće izbrisati uzorak izuzimanja", - "unable_to_delete_import_path": "Nije moguće izbrisati put uvoza", "unable_to_delete_shared_link": "Nije moguće izbrisati dijeljenu poveznicu", "unable_to_delete_user": "Nije moguće izbrisati korisnika", "unable_to_download_files": "Nije moguće preuzeti datoteke", "unable_to_edit_exclusion_pattern": "Nije moguće urediti uzorak izuzimanja", - "unable_to_edit_import_path": "Nije moguće urediti put uvoza", "unable_to_empty_trash": "Nije moguće isprazniti otpad", "unable_to_enter_fullscreen": "Nije moguće otvoriti cijeli zaslon", "unable_to_exit_fullscreen": "Nije moguće izaći iz cijelog zaslona", @@ -986,19 +980,19 @@ "unable_to_log_out_device": "Nije moguće odjaviti uređaj", "unable_to_login_with_oauth": "Nije moguće prijaviti se pomoću OAutha", "unable_to_play_video": "Nije moguće reproducirati video", - "unable_to_reassign_assets_existing_person": "Nije moguće ponovno dodijeliti imovinu na {name, select, null {postojeću osobu} other {{name}}}", - "unable_to_reassign_assets_new_person": "Nije moguće ponovno dodijeliti imovinu novoj osobi", + "unable_to_reassign_assets_existing_person": "Nije moguće ponovno dodijeliti stavke {name, select, null {postojećoj osobi} other {{name}}}", + "unable_to_reassign_assets_new_person": "Nije moguće ponovno dodijeliti stavke novoj osobi", "unable_to_refresh_user": "Nije moguće osvježiti korisnika", "unable_to_remove_album_users": "Nije moguće ukloniti korisnike iz albuma", "unable_to_remove_api_key": "Nije moguće ukloniti API ključ", - "unable_to_remove_assets_from_shared_link": "Nije moguće ukloniti sredstva iz dijeljene poveznice", + "unable_to_remove_assets_from_shared_link": "Nije moguće ukloniti stavke iz dijeljene veze", "unable_to_remove_library": "Nije moguće ukloniti biblioteku", "unable_to_remove_partner": "Nije moguće ukloniti partnera", "unable_to_remove_reaction": "Nije moguće ukloniti reakciju", "unable_to_reset_password": "Nije moguće ponovno postaviti lozinku", "unable_to_reset_pin_code": "Nije moguće poništiti PIN kod", "unable_to_resolve_duplicate": "Nije moguće razriješiti duplikat", - "unable_to_restore_assets": "Nije moguće vratiti imovinu", + "unable_to_restore_assets": "Nije moguće vratiti stavke", "unable_to_restore_trash": "Nije moguće vratiti otpad", "unable_to_restore_user": "Nije moguće vratiti korisnika", "unable_to_save_album": "Nije moguće spremiti album", @@ -1012,7 +1006,7 @@ "unable_to_set_feature_photo": "Nije moguće postaviti istaknutu fotografiju", "unable_to_set_profile_picture": "Nije moguće postaviti profilnu sliku", "unable_to_submit_job": "Nije moguće poslati posao", - "unable_to_trash_asset": "Nije moguće baciti sredstvo u smeće", + "unable_to_trash_asset": "Nije moguće premjestiti stavku u smeće", "unable_to_unlink_account": "Nije moguće prekinuti vezu računa", "unable_to_unlink_motion_video": "Nije moguće prekinuti vezu videozapisa pokreta", "unable_to_update_album_cover": "Nije moguće ažurirati omot albuma", @@ -1054,13 +1048,13 @@ "face_unassigned": "Nedodijeljeno", "failed": "Neuspješno", "failed_to_authenticate": "Neuspješna autentikacija", - "failed_to_load_assets": "Neuspjelo učitavanje stavki", + "failed_to_load_assets": "Učitavanje stavki nije uspjelo", "failed_to_load_folder": "Neuspjelo učitavanje mape", "favorite": "Omiljeno", "favorite_action_prompt": "{count} dodano u Omiljeno", "favorite_or_unfavorite_photo": "Omiljena ili neomiljena fotografija", "favorites": "Omiljene", - "favorites_page_no_favorites": "Nema pronađenih omiljenih stavki", + "favorites_page_no_favorites": "Nema pronađenih favorita", "feature_photo_updated": "Istaknuta fotografija ažurirana", "features": "Značajke", "features_setting_description": "Upravljajte značajkama aplikacije", @@ -1081,8 +1075,9 @@ "forgot_pin_code_question": "Zaboravili ste svoj PIN?", "forward": "Naprijed", "gcast_enabled": "Google Cast", - "gcast_enabled_description": "Ova značajka učitava vanjske resurse s Googlea kako bi radila.", + "gcast_enabled_description": "Ova značajka učitava vanjske stavke s Googlea kako bi radila.", "general": "Općenito", + "geolocation_instruction_location": "Kliknite na stavku s GPS koordinatama da biste koristili njezinu lokaciju ili odaberite lokaciju izravno s karte", "get_help": "Potražite pomoć", "get_wifiname_error": "Nije moguće dohvatiti naziv Wi-Fi mreže. Provjerite imate li potrebna dopuštenja i jeste li povezani na Wi-Fi mrežu", "getting_started": "Početak Rada", @@ -1099,8 +1094,8 @@ "haptic_feedback_switch": "Omogući haptičku povratnu informaciju", "haptic_feedback_title": "Haptička povratna informacija", "has_quota": "Ima kvotu", - "hash_asset": "Hash sadržaja", - "hashed_assets": "Hashirani sadržaji", + "hash_asset": "Hashiraj stavku", + "hashed_assets": "Hashirane stavke", "hashing": "Hashiranje", "header_settings_add_header_tip": "Dodaj zaglavlje", "header_settings_field_validator_msg": "Vrijednost ne može biti prazna", @@ -1115,21 +1110,21 @@ "hide_person": "Sakrij osobu", "hide_unnamed_people": "Sakrij neimenovane osobe", "home_page_add_to_album_conflicts": "Dodano {added} stavki u album {album}. {failed} stavki je već u albumu.", - "home_page_add_to_album_err_local": "Lokalne stavke još nije moguće dodati u albume, preskačem", + "home_page_add_to_album_err_local": "Lokalne stavke još nije moguće dodati u albume, preskakanje", "home_page_add_to_album_success": "Dodano {added} stavki u album {album}.", - "home_page_album_err_partner": "Još nije moguće dodati partnerske stavke u album, preskačem", - "home_page_archive_err_local": "Lokalne stavke još nije moguće arhivirati, preskačem", - "home_page_archive_err_partner": "Partnerske stavke nije moguće arhivirati, preskačem", + "home_page_album_err_partner": "Još nije moguće dodati partnerove stavke u album, preskakanje", + "home_page_archive_err_local": "Lokalne stavke još nije moguće arhivirati, preskakanje", + "home_page_archive_err_partner": "Partnerove stavke nije moguće arhivirati, preskakanje", "home_page_building_timeline": "Izrada vremenske crte", - "home_page_delete_err_partner": "Nije moguće izbrisati partnerske stavke, preskačem", - "home_page_delete_remote_err_local": "Lokalne stavke su u odabiru za udaljeno brisanje, preskačem", - "home_page_favorite_err_local": "Lokalne stavke još nije moguće označiti kao omiljene, preskačem", - "home_page_favorite_err_partner": "Partnerske stavke još nije moguće označiti kao omiljene, preskačem", + "home_page_delete_err_partner": "Nije moguće izbrisati partnerove stavke, preskakanje", + "home_page_delete_remote_err_local": "Lokalne stavke su u odabiru za udaljeno brisanje, preskakanje", + "home_page_favorite_err_local": "Lokalne stavke još nije moguće označiti kao favorite, preskakanje", + "home_page_favorite_err_partner": "Partnerove stavke još nije moguće označiti kao favorite, preskakanje", "home_page_first_time_notice": "Ako prvi put koristite aplikaciju, svakako odaberite album za sigurnosnu kopiju kako bi vremenska crta mogla prikazati fotografije i videozapise", - "home_page_locked_error_local": "Nije moguće premjestiti lokalne resurse u zaključanu mapu, preskačem", - "home_page_locked_error_partner": "Nije moguće premjestiti partnerske resurse u zaključanu mapu, preskačem", - "home_page_share_err_local": "Lokalne stavke nije moguće dijeliti putem poveznice, preskačem", - "home_page_upload_err_limit": "Moguće je prenijeti najviše 30 stavki odjednom, preskačem", + "home_page_locked_error_local": "Nije moguće premjestiti lokalne stavke u zaključanu mapu, preskakanje", + "home_page_locked_error_partner": "Nije moguće premjestiti partnerove stavke u zaključanu mapu, preskakanje", + "home_page_share_err_local": "Lokalne stavke nije moguće dijeliti putem poveznice, preskakanje", + "home_page_upload_err_limit": "Moguće je prenijeti najviše 30 stavki odjednom, preskakanje", "host": "Domaćin", "hour": "Sat", "hours": "Sati", @@ -1160,7 +1155,7 @@ "in_archive": "U arhivi", "include_archived": "Uključi arhivirano", "include_shared_albums": "Uključi dijeljene albume", - "include_shared_partner_assets": "Uključite zajedničku imovinu partnera", + "include_shared_partner_assets": "Uključi zajedničke stavke partnera", "individual_share": "Pojedinačni udio", "individual_shares": "Pojedinačna dijeljenja", "info": "Informacije", @@ -1185,7 +1180,7 @@ "keep": "Zadrži", "keep_all": "Zadrži Sve", "keep_this_delete_others": "Zadrži ovo, izbriši ostale", - "kept_this_deleted_others": "Zadržana je ova datoteka i izbrisano {count, plural, one {# datoteka} other {# datoteka}}", + "kept_this_deleted_others": "Zadržana je ova stavka i {count, plural, one {izbrisana # datoteka} few {izbrisane # datoteke} other {izbrisano # datoteka}}", "keyboard_shortcuts": "Prečaci tipkovnice", "language": "Jezik", "language_no_results_subtitle": "Pokušajte prilagoditi pojam za pretraživanje", @@ -1206,7 +1201,7 @@ "library_options": "Mogućnosti biblioteke", "library_page_device_albums": "Albumi na uređaju", "library_page_new_album": "Novi album", - "library_page_sort_asset_count": "Broj resursa", + "library_page_sort_asset_count": "Broj stavki", "library_page_sort_created": "Datum kreiranja", "library_page_sort_last_modified": "Zadnja izmjena", "library_page_sort_title": "Naslov albuma", @@ -1221,8 +1216,8 @@ "loading": "Učitavanje", "loading_search_results_failed": "Učitavanje rezultata pretraživanja nije uspjelo", "local": "Lokalno", - "local_asset_cast_failed": "Nije moguće reproducirati sadržaj koji nije prenesen na poslužitelj", - "local_assets": "Lokalni sadržaji", + "local_asset_cast_failed": "Nije moguće emitirati stavku koja nije prenesena na poslužitelj", + "local_assets": "Lokalne stavke", "local_network": "Lokalna mreža", "local_network_sheet_info": "Aplikacija će se povezati s poslužiteljem putem ovog URL-a kada koristi određenu Wi-Fi mrežu", "location_permission": "Dozvola za lokaciju", @@ -1279,7 +1274,7 @@ "manage_your_devices": "Upravljajte uređajima na kojima ste prijavljeni", "manage_your_oauth_connection": "Upravljajte svojom OAuth vezom", "map": "Karta", - "map_assets_in_bounds": "{count, plural, =0 {Nema fotografija na ovom području} one {# fotografija} few {#fotografije} other {# fotografija}}", + "map_assets_in_bounds": "{count, plural, =0 {Nema fotografija na ovom području} one {# fotografija} few {# fotografije} other {# fotografija}}", "map_cannot_get_user_location": "Nije moguće dohvatiti lokaciju korisnika", "map_location_dialog_yes": "Da", "map_location_picker_page_use_location": "Koristi ovu lokaciju", @@ -1305,6 +1300,7 @@ "mark_as_read": "Označi kao pročitano", "marked_all_as_read": "Označeno sve kao pročitano", "matches": "Podudaranja", + "matching_assets": "Odgovarajuće stavke", "media_type": "Vrsta medija", "memories": "Sjećanja", "memories_all_caught_up": "Sve ste pregledali", @@ -1316,10 +1312,10 @@ "memory_lane_title": "Traka sjećanja {title}", "menu": "Izbornik", "merge": "Spoji", - "merge_people": "Spajanje ljudi", + "merge_people": "Spoji osobe", "merge_people_limit": "Možete spojiti najviše 5 lica odjednom", "merge_people_prompt": "Želite li spojiti ove ljude? Ova radnja je nepovratna.", - "merge_people_successfully": "Uspješno spajanje ljudi", + "merge_people_successfully": "Uspješno spajanje osoba", "merged_people_count": "{count, plural, one {# Spojena osoba} other {# Spojene osobe}}", "minimize": "Minimiziraj", "minute": "Minuta", @@ -1334,11 +1330,11 @@ "move_to_lock_folder_action_prompt": "{count} dodano u zaključanu mapu", "move_to_locked_folder": "Premjesti u zaključanu mapu", "move_to_locked_folder_confirmation": "Ove fotografije i videozapis bit će uklonjeni iz svih albuma i bit će vidljivi samo iz zaključane mape", - "moved_to_archive": "Premješteno {count, plural, one {# resurs} other {# resursa}} u arhivu", - "moved_to_library": "Premješteno {count, plural, one {# resurs} other {# resursa}} u biblioteku", + "moved_to_archive": "{count, plural, one {Premještena # stavka} few {Premještene # stavke} other {Premješteno # stavki}} u arhivu", + "moved_to_library": "{count, plural, one {Premještena # stavka} few {Premještene # stavke} other {Premješteno # stavki}} u biblioteku", "moved_to_trash": "Premješteno u smeće", - "multiselect_grid_edit_date_time_err_read_only": "Nije moguće urediti datum stavki samo za čitanje, preskačem", - "multiselect_grid_edit_gps_err_read_only": "Nije moguće urediti lokaciju stavki samo za čitanje, preskačem", + "multiselect_grid_edit_date_time_err_read_only": "Nije moguće urediti datum stavki označenih kao samo za čitanje, preskakanje", + "multiselect_grid_edit_gps_err_read_only": "Nije moguće urediti lokaciju stavki označenih kao samo za čitanje, preskakanje", "mute_memories": "Isključi uspomene", "my_albums": "Moji albumi", "name": "Ime", @@ -1368,23 +1364,27 @@ "no_assets_message": "KLIKNITE DA PRENESETE SVOJU PRVU FOTOGRAFIJU", "no_assets_to_show": "Nema stavki za prikaz", "no_cast_devices_found": "Nisu pronađeni uređaji za reprodukciju", + "no_checksum_local": "Nema dostupnog kontrolnog zbroja - nije moguće dohvatiti lokalne stavke", + "no_checksum_remote": "Nema dostupnog kontrolnog zbroja - nije moguće dohvatiti udaljenu stavku", "no_duplicates_found": "Nisu pronađeni duplikati.", "no_exif_info_available": "Nema dostupnih exif podataka", "no_explore_results_message": "Prenesite više fotografija da istražite svoju zbirku.", "no_favorites_message": "Dodajte favorite kako biste brzo pronašli svoje najbolje slike i videozapise", "no_libraries_message": "Stvorite vanjsku biblioteku za pregled svojih fotografija i videozapisa", + "no_local_assets_found": "Nisu pronađene lokalne stavke s ovim kontrolnim zbrojem", "no_locked_photos_message": "Fotografije i videozapisi u zaključanoj mapi su skriveni i neće se prikazivati dok pregledavate ili pretražujete svoju biblioteku.", "no_name": "Bez imena", "no_notifications": "Nema notifikacija", "no_people_found": "Nema pronađenih odgovarajućih osoba", "no_places": "Nema mjesta", + "no_remote_assets_found": "Nisu pronađene udaljene stavke s ovim kontrolnim zbrojem", "no_results": "Nema rezultata", "no_results_description": "Pokušajte sa sinonimom ili općenitijom ključnom riječi", "no_shared_albums_message": "Stvorite album za dijeljenje fotografija i videozapisa s osobama u svojoj mreži", "no_uploads_in_progress": "Nema aktivnih prijenosa", "not_in_any_album": "Ni u jednom albumu", "not_selected": "Nije odabrano", - "note_apply_storage_label_to_previously_uploaded assets": "Napomena: Da biste primijenili Oznaku za skladištenje na prethodno prenesena sredstva, pokrenite", + "note_apply_storage_label_to_previously_uploaded assets": "Napomena: Da biste primijenili oznaku pohrane na prethodno prenesene stavke, pokrenite", "notes": "Bilješke", "nothing_here_yet": "Ovdje još nema ničega", "notification_permission_dialog_content": "Da biste omogućili obavijesti, idite u Postavke i odaberite dopusti.", @@ -1426,7 +1426,7 @@ "owner": "Vlasnik", "partner": "Partner", "partner_can_access": "{partner} može pristupiti", - "partner_can_access_assets": "Sve vaše fotografije i videi osim onih u arhivi i smeću", + "partner_can_access_assets": "Sve vaše fotografije i videozapisi osim onih u arhivi i smeću", "partner_can_access_location": "Mjesto otkuda je slika otkinuta", "partner_list_user_photos": "{user} fotografije", "partner_list_view_all": "Prikaži sve", @@ -1453,17 +1453,17 @@ "pause_memories": "Pauziraj sjećanja", "paused": "Pauzirano", "pending": "Na čekanju", - "people": "Ljudi", + "people": "Osobe", "people_edits_count": "Izmjenjeno {count, plural, one {# osoba} other {# osobe}}", "people_feature_description": "Pregledavanje fotografija i videozapisa grupiranih po osobama", "people_sidebar_description": "Prikažite poveznicu na Osobe na bočnoj traci", "permanent_deletion_warning": "Upozorenje za nepovratno brisanje", - "permanent_deletion_warning_setting_description": "Prikaži upozorenje prilikom trajnog brisanja sredstava", + "permanent_deletion_warning_setting_description": "Prikaži upozorenje prilikom trajnog brisanja stavki", "permanently_delete": "Nepovratno obriši", "permanently_delete_assets_count": "Trajno izbriši {count, plural, one {datoteku} other {datoteke}}", - "permanently_delete_assets_prompt": "Da li ste sigurni da želite trajni izbrisati {count, plural, one {ovu datoteku?} other {ove # datoteke?}}Ovo će ih također ukloniti {count, plural, one {iz njihovog} other {iz njihovih}} albuma.", - "permanently_deleted_asset": "Trajno izbrisano sredstvo", - "permanently_deleted_assets_count": "Trajno izbrisano {count, plural, one {# datoteka} other {# datoteke}}", + "permanently_delete_assets_prompt": "Jeste li sigurni da želite trajno izbrisati {count, plural, one {ovu stavku?} other {ove # stavke?}} Ovo će {count, plural, one {ju također ukloniti iz njezinog} other {ih također ukloniti iz njihovih}} albuma.", + "permanently_deleted_asset": "Trajno izbrisana stavka", + "permanently_deleted_assets_count": "Trajno {count, plural, one {izbrisana # stavka} few {izbrisane # stavke} other {izbisano # stavki}}", "permission": "Dozvola", "permission_empty": "Vaša dozvola ne smije biti prazna", "permission_onboarding_back": "Natrag", @@ -1497,6 +1497,7 @@ "play_memories": "Pokreni sjećanja", "play_motion_photo": "Reproduciraj Pokretnu fotografiju", "play_or_pause_video": "Reproducirajte ili pauzirajte video", + "play_original_video_setting_description": "Preferirajte reprodukciju originalnih videozapisa umjesto transkodiranih videozapisa. Ako originalna stavka nije kompatibilna, možda se neće ispravno reproducirati.", "please_auth_to_access": "Molimo autentificirajte se za pristup", "port": "Port", "preferences_settings_subtitle": "Upravljajte postavkama aplikacije", @@ -1551,6 +1552,7 @@ "purchase_server_description_2": "Status podupiratelja", "purchase_server_title": "Poslužitelj (Server)", "purchase_settings_server_activated": "Ključem proizvoda poslužitelja upravlja administrator", + "query_asset_id": "Ispitaj ID stavke", "queue_status": "Stavljanje u red {count}/{total}", "rating": "Broj zvjezdica", "rating_clear": "Obriši ocjenu", @@ -1559,9 +1561,9 @@ "reaction_options": "Mogućnosti reakcije", "read_changelog": "Pročitajte Dnevnik promjena", "reassign": "Ponovno dodijeli", - "reassigned_assets_to_existing_person": "Ponovo dodijeljeno{count, plural, one {# datoteka} other {# datoteke}} postojećoj {name, select, null {osobi} other {{name}}}", - "reassigned_assets_to_new_person": "Ponovo dodijeljeno {count, plural, one {# datoteka} other {# datoteke}} novoj osobi", - "reassing_hint": "Dodijelite odabrane datoteke postojećoj osobi", + "reassigned_assets_to_existing_person": "Ponovno dodijeljeno {count, plural, one {# stavka} few {# stavke} other {# stavki}} {name, select, null {postojećoj osobi} other {{name}}}", + "reassigned_assets_to_new_person": "{count, plural, one {# stavka ponovno dodijeljena} few {# stavke ponovno dodijeljene} other {# stavki ponovno dodijeljeno}} novoj osobi", + "reassing_hint": "Dodijelite odabrane stavke postojećoj osobi", "recent": "Nedavno", "recent-albums": "Nedavni albumi", "recent_searches": "Nedavne pretrage", @@ -1581,13 +1583,13 @@ "refreshing_metadata": "Osvježavanje metapodataka", "regenerating_thumbnails": "Obnavljanje sličica", "remote": "Udaljeno", - "remote_assets": "Udaljeni sadržaji", + "remote_assets": "Udaljene stavke", "remove": "Ukloni", - "remove_assets_album_confirmation": "Jeste li sigurni da želite ukloniti {count, plural, one {# datoteku} other {# datoteke}} iz albuma?", - "remove_assets_shared_link_confirmation": "Jeste li sigurni da želite ukloniti {count, plural, one {# datoteku} other {# datoteke}} iz ove dijeljene veze?", - "remove_assets_title": "Ukloniti datoteke?", + "remove_assets_album_confirmation": "Jeste li sigurni da želite ukloniti {count, plural, one {# stavku} few {# stavke} other {# stavki}} iz albuma?", + "remove_assets_shared_link_confirmation": "Jeste li sigurni da želite ukloniti {count, plural, one {# stavku} few {# stavke} other {# stavki}} iz ove dijeljene veze?", + "remove_assets_title": "Ukloniti stavke?", "remove_custom_date_range": "Ukloni prilagođeni datumski raspon", - "remove_deleted_assets": "Ukloni izbrisana sredstva", + "remove_deleted_assets": "Ukloni izbrisane stavke", "remove_from_album": "Ukloni iz albuma", "remove_from_album_action_prompt": "{count} uklonjeno iz albuma", "remove_from_favorites": "Ukloni iz favorita", @@ -1606,7 +1608,7 @@ "removed_from_favorites_count": "{count, plural, other {Uklonjeno #}} iz omiljenih", "removed_memory": "Uklonjena uspomena", "removed_photo_from_memory": "Uklonjena fotografija iz uspomene", - "removed_tagged_assets": "Uklonjena oznaka iz {count, plural, one {# datoteke} other {# datoteka}}", + "removed_tagged_assets": "Uklonjena oznaka iz {count, plural, one {# stavke} few {# stavke} other {# stavki}}", "rename": "Preimenuj", "repair": "Popravi", "repair_no_results_message": "Nepraćene datoteke i datoteke koje nedostaju pojavit će se ovdje", @@ -1617,7 +1619,7 @@ "rescan": "Ponovno skeniraj", "reset": "Resetiraj", "reset_password": "Resetiraj lozinku", - "reset_people_visibility": "Poništi vidljivost ljudi", + "reset_people_visibility": "Poništi vidljivost osoba", "reset_pin_code": "Resetiraj PIN kod", "reset_pin_code_description": "Ako ste zaboravili svoj PIN kod, možete kontaktirati administratora poslužitelja da ga resetira", "reset_pin_code_success": "PIN kod je uspješno resetiran", @@ -1632,7 +1634,7 @@ "restore_all": "Oporavi sve", "restore_trash_action_prompt": "{count} vraćeno iz smeća", "restore_user": "Vrati korisnika", - "restored_asset": "Obnovljena datoteka", + "restored_asset": "Obnovljena stavka", "resume": "Nastavi", "retry_upload": "Ponovi prijenos", "review_duplicates": "Pregledajte duplikate", @@ -1679,7 +1681,7 @@ "search_for": "Traži", "search_for_existing_person": "Potražite postojeću osobu", "search_no_more_result": "Nema više rezultata", - "search_no_people": "Nema ljudi", + "search_no_people": "Nema osoba", "search_no_people_named": "Nema osoba s imenom \"{name}\"", "search_no_result": "Nema rezultata, pokušajte s drugim pojmom za pretraživanje ili kombinacijom", "search_options": "Opcije pretraživanja", @@ -1703,7 +1705,7 @@ "search_suggestion_list_smart_search_hint_1": "Pametna pretraga je omogućena prema zadanim postavkama, za pretraživanje metapodataka koristite sintaksu ", "search_suggestion_list_smart_search_hint_2": "m:vaš-pojam-pretrage", "search_tags": "Traži oznake...", - "search_timezone": "Pretraži vremenske zone", + "search_timezone": "Pretraživanje vremenske zone...", "search_type": "Vrsta pretraživanja", "search_your_photos": "Pretražite svoje fotografije", "searching_locales": "Traženje lokaliteta...", @@ -1744,7 +1746,7 @@ "set_date_of_birth": "Postavi datum rođenja", "set_profile_picture": "Postavi profilnu sliku", "set_slideshow_to_fullscreen": "Postavi prezentaciju na cijeli zaslon", - "set_stack_primary_asset": "Postavi kao glavni sadržaj", + "set_stack_primary_asset": "Postavi kao glavnu stavku", "setting_image_viewer_help": "Preglednik detalja prvo učitava malu sličicu, zatim učitava pregled srednje veličine (ako je omogućen), te na kraju učitava original (ako je omogućen).", "setting_image_viewer_original_subtitle": "Omogućite za učitavanje originalne slike pune rezolucije (velika!). Onemogućite za smanjenje potrošnje podataka (i mrežne i na predmemoriji uređaja).", "setting_image_viewer_original_title": "Učitaj originalnu sliku", @@ -1759,10 +1761,10 @@ "setting_notifications_notify_minutes": "{count} minuta", "setting_notifications_notify_never": "nikad", "setting_notifications_notify_seconds": "{count} sekundi", - "setting_notifications_single_progress_subtitle": "Detaljne informacije o napretku prijenosa po stavci", + "setting_notifications_single_progress_subtitle": "Detaljne informacije o napretku prijenosa po stavki", "setting_notifications_single_progress_title": "Prikaži detaljni napredak sigurnosnog kopiranja u pozadini", "setting_notifications_subtitle": "Prilagodite postavke obavijesti", - "setting_notifications_total_progress_subtitle": "Ukupni napredak prijenosa (završeno/ukupno stavki)", + "setting_notifications_total_progress_subtitle": "Ukupni napredak prijenosa (završeno/ukupan broj stavki)", "setting_notifications_total_progress_title": "Prikaži ukupni napredak sigurnosnog kopiranja u pozadini", "setting_video_viewer_looping_title": "Ponavljanje", "setting_video_viewer_original_video_subtitle": "Prilikom strujanja videozapisa s poslužitelja, reproducirajte original čak i kada je dostupna transkodirana verzija. Može doći do međuspremanja. Videozapisi dostupni lokalno reproduciraju se u originalnoj kvaliteti bez obzira na ovu postavku.", @@ -1772,9 +1774,9 @@ "settings_saved": "Postavke su spremljene", "setup_pin_code": "Postavi PIN kod", "share": "Podijeli", - "share_action_prompt": "Podijeljeno {count} sadržaja", + "share_action_prompt": "{count, plural, one {Podijeljena # stavka} few {Podijeljene # stavke} other {Podijeljeno # stavki}}", "share_add_photos": "Dodaj fotografije", - "share_assets_selected": "{count} odabrano", + "share_assets_selected": "{count, plural, one {# odabran} few {# odabrana} other {# odabrano}}", "share_dialog_preparing": "Priprema...", "share_link": "Podijeli Link", "shared": "Podijeljeno", @@ -1823,7 +1825,7 @@ "shared_link_password_description": "Zahtjevaj loziku za pristup ovom dijeljenom linku", "shared_links": "Dijeljene poveznice", "shared_links_description": "Podijelite fotografije i videozapise putem poveznice", - "shared_photos_and_videos_count": "{assetCount, plural, =1 {# podijeljena fotografija ili videozapis.} few {# podijeljene fotografije i videozapisa.} other {# podijeljenih fotografija i videozapisa.}}", + "shared_photos_and_videos_count": "{assetCount, plural, one {# podijeljena fotografija ili videozapis.} few {# podijeljene fotografije i videozapisa.} other {# podijeljenih fotografija i videozapisa.}}", "shared_with_me": "Podijeljeno sa mnom", "shared_with_partner": "Podijeljeno s {partner}", "sharing": "Dijeljenje", @@ -1881,7 +1883,7 @@ "stack_duplicates": "Složi duplikate", "stack_select_one_photo": "Odaberi jednu glavnu fotografiju za slaganje", "stack_selected_photos": "Složi odabrane fotografije", - "stacked_assets_count": "Složeno {count, plural, =1 {# stavka} few {# stavke} other {# stavki}}", + "stacked_assets_count": "{count, plural, one {Složena # stavka} few {Složene # stavke} other {Složeno # stavki}}", "stacktrace": "Pracenje stoga", "start": "Početak", "start_date": "Datum početka", @@ -1919,7 +1921,7 @@ "tag_not_found_question": "Nije moguće pronaći oznaku? Napravite novu oznaku.", "tag_people": "Označi osobe", "tag_updated": "Ažurirana oznaka: {tag}", - "tagged_assets": "Označena {count, plural, =1 {# stavka} few {# stavke} other {# stavki}}", + "tagged_assets": "{count, plural, =1 {Označena # stavka} few {Označene # stavke} other {Označeno # stavki}}", "tags": "Oznake", "tap_to_run_job": "Dodirnite za pokretanje zadatka", "template": "Predložak", @@ -1961,7 +1963,7 @@ "trash_emptied": "Ispražnjeno smeće", "trash_no_results_message": "Ovdje će se prikazati bačene fotografije i videozapisi.", "trash_page_delete_all": "Izbriši sve", - "trash_page_empty_trash_dialog_content": "Želite li isprazniti svoje stavke u smeću? Ove stavke bit će trajno uklonjene iz Immicha", + "trash_page_empty_trash_dialog_content": "Želite li isprazniti svoje stavke u smeću? Ove stavke će biti trajno uklonjene iz Immicha", "trash_page_info": "Stavke u smeću bit će trajno izbrisane nakon {days} dana", "trash_page_no_assets": "Nema stavki u smeću", "trash_page_restore_all": "Vrati sve", @@ -1995,21 +1997,22 @@ "unselect_all_in": "Poništi odabir svih u {group}", "unstack": "Razdvoji", "unstack_action_prompt": "{count} razloženo", - "unstacked_assets_count": "Razdvojena {count, plural, =1 {# stavka} few {# stavke} other {# stavki}}", + "unstacked_assets_count": "{count, plural, one {Razdvojena # stavka} few {Razvdvojene # stavke} other {Razdvojeno # stavki}}", "untagged": "Bez oznaka", "up_next": "Sljedeće", + "update_location_action_prompt": "Ažuriraj lokaciju ({count, plural, one {# odabrane stavke} few {# odabrane stavke} other {# odabranih stavki}}) s:", "updated_at": "Ažurirano", "updated_password": "Lozinka ažurirana", "upload": "Prijenos", "upload_action_prompt": "{count} u redu za prijenos", "upload_concurrency": "Istovremeni prijenosi", "upload_details": "Detalji prijenosa", - "upload_dialog_info": "Želite li sigurnosno kopirati odabranu stavku(e) na poslužitelj?", + "upload_dialog_info": "Želite li sigurnosno kopirati odabrane stavke na poslužitelj?", "upload_dialog_title": "Prenesi stavku", - "upload_errors": "Prijenos završen s {count, plural, =1 {# greškom} few {# greške} other {# grešaka}}, osvježite stranicu da biste vidjeli nove prenesene stavke.", + "upload_errors": "Prijenos završen s {count, plural, one {# greškom} few {# greške} other {# grešaka}}, osvježite stranicu da biste vidjeli nove prenesene stavke.", "upload_finished": "Prijenos završen", "upload_progress": "Preostalo {remaining, number} - Obrađeno {processed, number}/{total, number}", - "upload_skipped_duplicates": "Preskočena {count, plural, =1 {# duplicirana stavka} few {# duplicirane stavke} other {# dupliciranih stavki}}", + "upload_skipped_duplicates": "Preskočena {count, plural, one {# duplicirana stavka} few {# duplicirane stavke} other {# dupliciranih stavki}}", "upload_status_duplicates": "Duplikati", "upload_status_errors": "Greške", "upload_status_uploaded": "Preneseno", @@ -2025,7 +2028,7 @@ "user": "Korisnik", "user_has_been_deleted": "Ovaj korisnik je izbrisan.", "user_id": "ID korisnika", - "user_liked": "{user} je označio/la sviđa mi se {type, select, photo {ovu fotografiju} video {ovaj videozapis} asset {ovu stavku} other {to}}", + "user_liked": "{user} je lajkao/la {type, select, photo {ovu fotografiju} video {ovaj videozapis} asset {ovu stavku} other {to}}", "user_pin_code_settings": "PIN kod", "user_pin_code_settings_description": "Upravljajte svojim PIN kodom", "user_privacy": "Privatnost korisnika", @@ -2037,7 +2040,7 @@ "user_usage_stats_description": "Pregledajte statistiku korištenja računa", "username": "Korisničko ime", "users": "Korisnici", - "users_added_to_album_count": "Dodan{o/a} {count, plural, one {# korisnik} few {# korisnika} other {# korisnika}} u album", + "users_added_to_album_count": "{count, plural, one {Dodan # korisnik} few {Dodana # korisnika} other {Dodano # korisnika}} u album", "utilities": "Alati", "validate": "Provjeri valjanost", "validate_endpoint_error": "Molimo unesite valjanu URL adresu", diff --git a/i18n/hu.json b/i18n/hu.json index e67ad73041..37cfe562a0 100644 --- a/i18n/hu.json +++ b/i18n/hu.json @@ -17,7 +17,6 @@ "add_birthday": "Születésnap hozzáadása", "add_endpoint": "Végpont megadása", "add_exclusion_pattern": "Kihagyási minta (pattern) hozzáadása", - "add_import_path": "Importálási útvonal hozzáadása", "add_location": "Helyszín megadása", "add_more_users": "További felhasználók hozzáadása", "add_partner": "Partner hozzáadása", @@ -112,7 +111,6 @@ "jobs_failed": "{jobCount, plural, other {# sikertelen}}", "library_created": "Képtár létrehozva: {library}", "library_deleted": "Képtár törölve", - "library_import_path_description": "Add meg az importálandó mappát. A rendszer ebben a mappában és összes almappájában fog képeket és videókat keresni.", "library_scanning": "Időszakos Átfésülés", "library_scanning_description": "A képtár időszakos átfésülésének beállítása", "library_scanning_enable_description": "Képtár időszakos átfésülésének engedélyezése", @@ -894,8 +892,6 @@ "edit_description_prompt": "Kérlek válassz egy új leírást:", "edit_exclusion_pattern": "Kizárási minta (pattern) módosítása", "edit_faces": "Arcok módosítása", - "edit_import_path": "Importálási útvonal módosítása", - "edit_import_paths": "Importálási Útvonalak Módosítása", "edit_key": "Kulcs módosítása", "edit_link": "Link módosítása", "edit_location": "Hely módosítása", @@ -967,7 +963,6 @@ "failed_to_stack_assets": "Elemek csoportosítása sikertelen", "failed_to_unstack_assets": "Csoportosított elemek szétszedése sikertelen", "failed_to_update_notification_status": "Értesítés státusz frissítése sikertelen", - "import_path_already_exists": "Ez az importálási útvonal már létezik.", "incorrect_email_or_password": "Helytelen email vagy jelszó", "paths_validation_failed": "A(z) {paths, plural, one {# elérési útvonal} other {# elérési útvonal}} érvényesítése sikertelen", "profile_picture_transparent_pixels": "Profilképek nem tartalmazhatnak átlátszó pixeleket. Közelíts rá és/vagy mozgasd a képet.", @@ -977,7 +972,6 @@ "unable_to_add_assets_to_shared_link": "Elemeket megosztott linkhez adása sikertelen", "unable_to_add_comment": "Hozzászólás sikertelen", "unable_to_add_exclusion_pattern": "Kivétel minta (pattern) hozzáadása sikertelen", - "unable_to_add_import_path": "Importálási útvonal hozzáadása sikertelen", "unable_to_add_partners": "Partnerek hozzáadása sikertelen", "unable_to_add_remove_archive": "Az elem {archived, select, true {eltávolítása at Archívumból} other {hozzáadása Archívumhoz}} sikertelen", "unable_to_add_remove_favorites": "Az elem {favorite, select, true {eltávolítása a Kedvencekből} other {hozzáadása a Kedvencekhez}} sikertelen", @@ -1000,12 +994,10 @@ "unable_to_delete_asset": "Elem törlése sikertelen", "unable_to_delete_assets": "Hiba az elemek törlésekor", "unable_to_delete_exclusion_pattern": "Kizárási minta (pattern) törlése sikertelen", - "unable_to_delete_import_path": "Import útvonal törlése sikertelen", "unable_to_delete_shared_link": "Megosztott link törlése sikertelen", "unable_to_delete_user": "Felhasználó törlése sikertelen", "unable_to_download_files": "Fájlok letöltése sikertelen", "unable_to_edit_exclusion_pattern": "Kizárási minta (pattern) módosítása sikertelen", - "unable_to_edit_import_path": "Import útvonal módosítása sikertelen", "unable_to_empty_trash": "Lomtár ürítése sikertelen", "unable_to_enter_fullscreen": "Teljes képernyőre váltás sikertelen", "unable_to_exit_fullscreen": "Kilépés a teljes képernyős módból sikertelen", diff --git a/i18n/id.json b/i18n/id.json index 906a0f8ce0..0bc2e22136 100644 --- a/i18n/id.json +++ b/i18n/id.json @@ -17,7 +17,6 @@ "add_birthday": "Tambahkan Tanggal Lahir", "add_endpoint": "Tambahkan titik akhir", "add_exclusion_pattern": "Tambahkan pola pengecualian", - "add_import_path": "Tambahkan jalur impor", "add_location": "Tambahkan lokasi", "add_more_users": "Tambahkan lebih banyak pengguna", "add_partner": "Tambahkan partner", @@ -112,7 +111,6 @@ "jobs_failed": "{jobCount, plural, other {# gagal}}", "library_created": "Pustaka dibuat: {library}", "library_deleted": "Pustaka dihapus", - "library_import_path_description": "Tentukan folder untuk diimpor. Folder ini, termasuk subfolder, akan dipindai gambar dan videonya.", "library_scanning": "Pemindaian Berkala", "library_scanning_description": "Atur pemindaian pustaka berkala", "library_scanning_enable_description": "Aktifkan pemindaian pustaka berkala", @@ -159,8 +157,15 @@ "machine_learning_ocr_enabled": "Aktfikan OCR", "machine_learning_ocr_enabled_description": "Jika dinonaktifkan, gambar-gambar tidak akan mengalami pengenalan teks.", "machine_learning_ocr_max_resolution": "Resolusi maksimum", - "machine_learning_settings": "Pengaturan Pembelajaran Mesin", - "machine_learning_settings_description": "Keola fitur dan pengaturan pembelajaran mesin", + "machine_learning_ocr_max_resolution_description": "Pratinjau di atas resolusi ini akan disesuaikan ukurannya sambil mempertahankan aspek rasio. Nilai yang lebih tinggi lebih akurat, tetapi membutuhkan waktu yang lama untuk memproses dan membutuhkan memori lebih banyak.", + "machine_learning_ocr_min_detection_score": "Skor deteksi minimum", + "machine_learning_ocr_min_detection_score_description": "Skor kepercayaan minimum untuk teks yang akan dideteksi berkisar antara 0-1. Nilai yang lebih rendah akan mendeteksi teks yang lebih banyak, tetapi dapat menyebabkan hasil yang positif palsu.", + "machine_learning_ocr_min_recognition_score": "Skor pengenalan minimum", + "machine_learning_ocr_min_score_recognition_description": "Skor kepercayaan minimum untuk teks yang akan dideteksi berkisar antara 0-1. Nilai yang lebih rendah akan mendeteksi teks yang lebih banyak, tetapi dapat menyebabkan hasil yang positif palsu.", + "machine_learning_ocr_model": "Model OCR", + "machine_learning_ocr_model_description": "Model server lebih akurat daripada model mobile, tetapi membutuhkan waktu yang lebih lama untuk memproses dan menggunakan memori yang lebih banyak.", + "machine_learning_settings": "Pengaturan Mesin Pembelajaran", + "machine_learning_settings_description": "Kelola fitur dan pengaturan mesin pembelajaran", "machine_learning_smart_search": "Pencarian Pintar", "machine_learning_smart_search_description": "Cari gambar secara semantik menggunakan penyematan CLIP", "machine_learning_smart_search_enabled": "Aktifkan pencarian pintar", @@ -216,6 +221,8 @@ "notification_email_ignore_certificate_errors_description": "Abaikan eror validasi sertifikat TLS (tidak disarankan)", "notification_email_password_description": "Kata sandi yang digunakan ketika mengautentikasi dengan server surel", "notification_email_port_description": "Porta server surel (mis. 25, 465, atau 587)", + "notification_email_secure": "SMTPS", + "notification_email_secure_description": "Gunakan SMTPS (SMTP melalui TLS)", "notification_email_sent_test_email_button": "Kirim surel uji coba dan simpan", "notification_email_setting_description": "Pengaturan pengiriman notifikasi surel", "notification_email_test_email": "Kirim surel uji coba", @@ -248,6 +255,7 @@ "oauth_storage_quota_default_description": "Kuota dalam GiB akan digunakan jika tidak ada klaim yang diberikan.", "oauth_timeout": "Waktu Permintaan Habis", "oauth_timeout_description": "Waktu habis untuk permintaan dalam milidetik", + "ocr_job_description": "Gunakan mesin pembelajaran untuk mengenali teks di dalam gambar", "password_enable_description": "Masuk dengan surel dan kata sandi", "password_settings": "Log Masuk Kata Sandi", "password_settings_description": "Kelola pengaturan log masuk kata sandi", @@ -471,10 +479,14 @@ "api_key_description": "Nilai ini hanya akan ditampilkan sekali. Pastikan untuk menyalin sebelum menutup jendela ini.", "api_key_empty": "Nama Kunci API Anda seharusnya jangan kosong", "api_keys": "Kunci API", + "app_architecture_variant": "Varian (Arsitektur)", "app_bar_signout_dialog_content": "Apakah kamu yakin ingin keluar akun?", "app_bar_signout_dialog_ok": "Ya", "app_bar_signout_dialog_title": "Keluar akun", + "app_download_links": "Link Download Aplikasi", "app_settings": "Pengaturan Aplikasi", + "app_stores": "App Stores", + "app_update_available": "Pembaruan aplikasi tersedia", "appears_in": "Muncul dalam", "apply_count": "Terapkan ({count, number})", "archive": "Arsip", @@ -558,6 +570,7 @@ "backup_albums_sync": "Sinkronisasi cadangan album", "backup_all": "Semua", "backup_background_service_backup_failed_message": "Gagal mencadangkan aset. Mencoba lagi…", + "backup_background_service_complete_notification": "Pencadangan aset selesai", "backup_background_service_connection_failed_message": "Koneksi ke server gagal. Mencoba ulang…", "backup_background_service_current_upload_notification": "Mengunggah {filename}", "backup_background_service_default_notification": "Memeriksa aset baru…", @@ -667,6 +680,8 @@ "change_password_description": "Ini merupakan pertama kali Anda masuk ke sistem atau ada permintaan untuk mengubah kata sandi Anda. Silakan masukkan kata sandi baru di bawah.", "change_password_form_confirm_password": "Konfirmasi Sandi", "change_password_form_description": "Halo {name},\n\nIni pertama kali anda masuk ke dalam sistem atau terdapat permintaan penggantian kata sandi. Harap masukkan password baru.", + "change_password_form_log_out": "Keluar dari semua perangkat lain", + "change_password_form_log_out_description": "Disarankan untuk keluar dari semua perangkat lain", "change_password_form_new_password": "Sandi Baru", "change_password_form_password_mismatch": "Sandi tidak cocok", "change_password_form_reenter_new_password": "Masukkan Ulang Sandi Baru", @@ -744,6 +759,7 @@ "create": "Buat", "create_album": "Buat album", "create_album_page_untitled": "Tak berjudul", + "create_api_key": "Buat kunci API", "create_library": "Buat Pustaka", "create_link": "Buat tautan", "create_link_to_share": "Buat tautan untuk dibagikan", @@ -773,6 +789,7 @@ "daily_title_text_date_year": "E, dd MMM yyyy", "dark": "Gelap", "dark_theme": "Nyalakan mode gelap", + "date": "Tanggal", "date_after": "Tanggal setelah", "date_and_time": "Tanggal dan Waktu", "date_before": "Tanggal sebelum", @@ -875,8 +892,6 @@ "edit_description_prompt": "Silakan pilih deskripsi baru:", "edit_exclusion_pattern": "Sunting pola pengecualian", "edit_faces": "Sunting wajah", - "edit_import_path": "Sunting jalur pengimporan", - "edit_import_paths": "Sunting Jalur Pengimporan", "edit_key": "Sunting kunci", "edit_link": "Sunting tautan", "edit_location": "Sunting lokasi", @@ -948,7 +963,6 @@ "failed_to_stack_assets": "Gagal menumpuk aset", "failed_to_unstack_assets": "Gagal membatalkan penumpukan aset", "failed_to_update_notification_status": "Gagal membarui status notifikasi", - "import_path_already_exists": "Jalur pengimporan ini sudah ada.", "incorrect_email_or_password": "Surel atau kata sandi tidak benar", "paths_validation_failed": "{paths, plural, one {# jalur} other {# jalur}} gagal validasi", "profile_picture_transparent_pixels": "Foto profil tidak dapat memiliki piksel transparan. Silakan perbesar dan/atau pindah posisi gambar.", @@ -958,7 +972,6 @@ "unable_to_add_assets_to_shared_link": "Tidak dapat menambahkan aset ke tautan terbagi", "unable_to_add_comment": "Tidak dapat menambahkan komentar", "unable_to_add_exclusion_pattern": "Tidak dapat menambahkan pola pengecualian", - "unable_to_add_import_path": "Tidak dapat menambahkan jalur pengimporan", "unable_to_add_partners": "Tidak dapat menambahkan partner", "unable_to_add_remove_archive": "Tidak dapat {archived, select, true {menghapus aset dari} other {menambahkan aset ke}} arsip", "unable_to_add_remove_favorites": "Tidak dapat {favorite, select, true {menambahkan aset ke} other {menghapus aset dari}} favorit", @@ -981,12 +994,10 @@ "unable_to_delete_asset": "Tidak dapat menghapus aset", "unable_to_delete_assets": "Terjadi eror menghapus aset", "unable_to_delete_exclusion_pattern": "Tidak dapat menghapus pola pengecualian", - "unable_to_delete_import_path": "Tidak dapat menghapus jalur pengimporan", "unable_to_delete_shared_link": "Tidak dapat menghapus tautan terbagi", "unable_to_delete_user": "Tidak dapat menghapus pengguna", "unable_to_download_files": "Tidak dapat mengunduh berkas", "unable_to_edit_exclusion_pattern": "Tidak dapat menyunting pola pengecualian", - "unable_to_edit_import_path": "Tidak dapat menyunting jalur pengimporan", "unable_to_empty_trash": "Tidak dapat menghapus sampah", "unable_to_enter_fullscreen": "Tidak dapat memasuki layar penuh", "unable_to_exit_fullscreen": "Tidak dapat keluar dari layar penuh", @@ -1042,6 +1053,7 @@ "exif_bottom_sheet_description_error": "Galat saat memperbaharui deskripsi", "exif_bottom_sheet_details": "RINCIAN", "exif_bottom_sheet_location": "LOKASI", + "exif_bottom_sheet_no_description": "Tidak ada deskripsi", "exif_bottom_sheet_people": "ORANG", "exif_bottom_sheet_person_add_person": "Tambah nama", "exit_slideshow": "Keluar dari Salindia", @@ -1080,6 +1092,7 @@ "features_setting_description": "Kelola fitur aplikasi", "file_name": "Nama berkas", "file_name_or_extension": "Nama berkas atau ekstensi", + "file_size": "Ukuran berkas", "filename": "Nama berkas", "filetype": "Jenis berkas", "filter": "Filter", @@ -1243,6 +1256,7 @@ "local_media_summary": "Ringkasan Media Lokal", "local_network": "Jaringan Lokal", "local_network_sheet_info": "Aplikasi akan terhubung ke server melalui URL ini saat menggunakan jaringan Wi-Fi yang ditentukan", + "location": "Lokasi", "location_permission": "Izin lokasi", "location_permission_content": "Untuk menggunakan fitur pengalihan otomatis, Immich memerlukan izin lokasi yang akurat agar dapat membaca nama jaringan Wi-Fi saat ini", "location_picker_choose_on_map": "Pilih di peta", @@ -1347,6 +1361,8 @@ "minute": "Menit", "minutes": "Menit", "missing": "Hilang", + "mobile_app": "Aplikasi Seluler", + "mobile_app_download_onboarding_note": "Unduh aplikasi seluler pendamping dengan menggunakan opsi berikut", "model": "Model", "month": "Bulan", "monthly_title_text_date_format": "BBBB t", @@ -1365,6 +1381,8 @@ "my_albums": "Album saya", "name": "Nama", "name_or_nickname": "Nama atau nama panggilan", + "navigate": "Navigasi", + "navigate_to_time": "Navigasi ke Waktu", "network_requirement_photos_upload": "Gunakan data seluler untuk cadangkan foto", "network_requirement_videos_upload": "Gunakan data seluler untuk cadangkan video", "network_requirements": "Persyaratan Jaringan", @@ -1374,6 +1392,7 @@ "never": "Tidak pernah", "new_album": "Album baru", "new_api_key": "Kunci API Baru", + "new_date_range": "Rentang tanggal baru", "new_password": "Kata sandi baru", "new_person": "Orang baru", "new_pin_code": "Kode PIN baru", @@ -1424,6 +1443,9 @@ "notifications": "Notifikasi", "notifications_setting_description": "Kelola notifikasi", "oauth": "OAuth", + "obtainium_configurator": "Konfigurator Obtainium", + "obtainium_configurator_instructions": "Gunakan Obtainium untuk menginstal dan memperbarui aplikasi Android secara langsung dari rilis GitHub Immich. Buat kunci API dan pilih varian untuk membuat tautan konfigurasi Obtainium anda", + "ocr": "OCR", "official_immich_resources": "Sumber Daya Immich Resmi", "offline": "Luring", "offset": "Ofset", @@ -1528,6 +1550,9 @@ "play_memories": "Putar kenangan", "play_motion_photo": "Putar Foto Gerak", "play_or_pause_video": "Putar atau jeda video", + "play_original_video": "Putar video asli", + "play_original_video_setting_description": "Lebih menyukai memutar video asli daripada video yang telah dikonversi. Jika aset asli tidak kompatibel, video mungkin tidak dapat diputar dengan benar.", + "play_transcoded_video": "Putar video yang telah dikonversi", "please_auth_to_access": "Silakan autentikasi untuk mengakses", "port": "Porta", "preferences_settings_subtitle": "Kelola preferensi aplikasi", @@ -1664,6 +1689,7 @@ "reset_sqlite_confirmation": "Apakah Anda yakin ingin mengatur ulang basis data SQLite? Setelah tindakan ini, Anda harus keluar lalu masuk kembali untuk melakukan sinkronisasi ulang data", "reset_sqlite_success": "Berhasil mengatur ulang basis data SQLite", "reset_to_default": "Atur ulang ke bawaan", + "resolution": "Resolusi", "resolve_duplicates": "Mengatasi duplikat", "resolved_all_duplicates": "Semua duplikat terselesaikan", "restore": "Pulihkan", @@ -1682,6 +1708,7 @@ "running": "Berjalan", "save": "Simpan", "save_to_gallery": "Simpan ke galeri", + "saved": "Disimpan", "saved_api_key": "Kunci API Tersimpan", "saved_profile": "Profil disimpan", "saved_settings": "Pengaturan disimpan", @@ -1698,6 +1725,9 @@ "search_by_description_example": "Hari mendaki di Sapa", "search_by_filename": "Cari berdasarkan nama berkas atau ekstensi", "search_by_filename_example": "mis. IMG_1234.JPG atau PNG", + "search_by_ocr": "Cari dengan OCR", + "search_by_ocr_example": "Latte", + "search_camera_lens_model": "Pencarian model lensa...", "search_camera_make": "Cari merek kamera...", "search_camera_model": "Cari model kamera...", "search_city": "Cari kota...", @@ -1714,6 +1744,7 @@ "search_filter_location_title": "Pilih Lokasi", "search_filter_media_type": "Tipe Media", "search_filter_media_type_title": "Pilih jenis media", + "search_filter_ocr": "Cari dengan OCR", "search_filter_people_title": "Pilih orang", "search_for": "Cari", "search_for_existing_person": "Cari orang yang sudah ada", @@ -1776,6 +1807,7 @@ "server_online": "Server Daring", "server_privacy": "Privasi server", "server_stats": "Statistik Server", + "server_update_available": "Pembaruan server tersedia", "server_version": "Versi Server", "set": "Atur", "set_as_album_cover": "Atur sebagai kover album", @@ -1804,6 +1836,8 @@ "setting_notifications_subtitle": "Atur setelan notifikasi", "setting_notifications_total_progress_subtitle": "Progres keseluruhan unggahan (selesai/total aset)", "setting_notifications_total_progress_title": "Tampilkan progres total pencadangan latar belakang", + "setting_video_viewer_auto_play_subtitle": "Otomatis memutar video saat dibuka", + "setting_video_viewer_auto_play_title": "Putar video secara otomatis", "setting_video_viewer_looping_title": "Ulangi", "setting_video_viewer_original_video_subtitle": "Ketika melakukan streaming video dari server, sistem akan memutar versi asli meskipun tersedia hasil transkode. Pengaturan ini dapat menyebabkan terjadinya buffering. Video yang tersedia secara lokal akan selalu diputar dalam kualitas asli tanpa terpengaruh oleh pengaturan ini.", "setting_video_viewer_original_video_title": "Paksa video asli", @@ -1983,6 +2017,7 @@ "theme_setting_three_stage_loading_title": "Aktifkan pemuatan tiga tahap", "they_will_be_merged_together": "Mereka akan digabungkan bersama", "third_party_resources": "Sumber Daya Pihak Ketiga", + "time": "Waktu", "time_based_memories": "Kenangan berbasis waktu", "timeline": "Lini masa", "timezone": "Zona waktu", @@ -2015,6 +2050,7 @@ "troubleshoot": "Pemecahan Masalah", "type": "Jenis", "unable_to_change_pin_code": "Tidak dapat mengubah kode PIN", + "unable_to_check_version": "Tidak dapat memeriksa versi aplikasi atau server", "unable_to_setup_pin_code": "Tidak dapat memasang kode PIN", "unarchive": "Keluarkan dari arsip", "unarchive_action_prompt": "Sebanyak {count} item telah dihapus dari Arsip", diff --git a/i18n/it.json b/i18n/it.json index 0429f92d0b..97f486d951 100644 --- a/i18n/it.json +++ b/i18n/it.json @@ -17,7 +17,6 @@ "add_birthday": "Aggiungi compleanno", "add_endpoint": "Aggiungi un endpoint", "add_exclusion_pattern": "Aggiungi un pattern di esclusione", - "add_import_path": "Aggiungi un percorso per l’importazione", "add_location": "Aggiungi posizione", "add_more_users": "Aggiungi altri utenti", "add_partner": "Aggiungi partner", @@ -32,6 +31,7 @@ "add_to_album_toggle": "Attiva/disattiva selezione per {album}", "add_to_albums": "Aggiungi ad album", "add_to_albums_count": "Aggiungi ad album ({count})", + "add_to_bottom_bar": "Aggiungi a", "add_to_shared_album": "Aggiungi ad album condiviso", "add_upload_to_stack": "Aggiungi caricamento allo stack", "add_url": "Aggiungi URL", @@ -76,7 +76,7 @@ "exclusion_pattern_description": "I modelli di esclusione ti permettono di ignorare file e cartelle durante la scansione della tua libreria. Questo è utile se hai cartelle che contengono file che non vuoi importare, come ad esempio, i file RAW.", "external_library_management": "Gestione Librerie Esterne", "face_detection": "Rilevamento Volti", - "face_detection_description": "Rileva i volti presenti negli assets utilizzando il machine learning. Per i video, viene presa in considerazione solo la miniatura. \"Aggiorna\" (ri-)processerà tutti gli assets. \"Reset\" inoltre elimina tutti i dati dei volti correnti. \"Mancanti\" seleziona solo gli assets che non sono ancora stati processati. I volti rilevati verranno selezionati per il riconoscimento facciale dopo che il rilevamento dei volti sarà stato completato, raggruppandoli in persone esistenti e/o nuove.", + "face_detection_description": "Rileva i volti presenti negli asset utilizzando il machine-learning. Per i video, viene presa in considerazione solo la miniatura. Utilizzare \"Ripristina\" per cancellare tutti i volti presenti, \"Ricarica\" per processare di nuovo tutti gli asset, \"Mancanti\" processa solo gli asset che non sono ancora stati processati. I volti rilevati verranno selezionati per il riconoscimento facciale dopo che il rilevamento dei volti sarà stato completato, raggruppandoli in persone esistenti e/o nuove.", "facial_recognition_job_description": "Raggruppa i volti rilevati in persone. Questo processo viene eseguito dopo che il rilevamento volti è stato completato. \"Reset\" (ri-)unisce tutti i volti. \"Mancanti\" processa i volti che non hanno una persona assegnata.", "failed_job_command": "Il comando {command} è fallito per il processo: {job}", "force_delete_user_warning": "ATTENZIONE: Questo rimuoverà immediatamente l'utente e tutti i suoi assets. Non è possibile tornare indietro e i file non potranno essere recuperati.", @@ -112,7 +112,6 @@ "jobs_failed": "{jobCount, plural, one {# fallito} other {# falliti}}", "library_created": "Creata libreria: {library}", "library_deleted": "Libreria eliminata", - "library_import_path_description": "Specifica una cartella da importare. Questa cartella e le sue sottocartelle, verranno analizzate per cercare immagini e video.", "library_scanning": "Scansione periodica", "library_scanning_description": "Configura la scansione periodica della libreria", "library_scanning_enable_description": "Attiva la scansione periodica della libreria", @@ -173,6 +172,10 @@ "machine_learning_smart_search_enabled": "Attiva ricerca intelligente", "machine_learning_smart_search_enabled_description": "Se disabilitato le immagini non saranno codificate per la ricerca intelligente.", "machine_learning_url_description": "URL del server machine learning. Se sono stati forniti più di un URL, verrà testato un server alla volta finché uno non risponderà, in ordine dal primo all'ultimo. I server che non rispondono saranno temporaneamente ignorati finché non torneranno online.", + "maintenance_settings": "Manutenzione", + "maintenance_settings_description": "Metti Immich in modalità manutenzione.", + "maintenance_start": "Avvia modalità manutenzione", + "maintenance_start_error": "Errore nell'avvio della modalità manutenzione.", "manage_concurrency": "Gestisci Concorrenza", "manage_log_settings": "Gestisci le impostazioni dei log", "map_dark_style": "Tema scuro", @@ -430,6 +433,7 @@ "age_months": "Età {months, plural, one {# mese} other {# mesi}}", "age_year_months": "Età 1 anno, {months, plural, one {# mese} other {# mesi}}", "age_years": "{years, plural, other {Età #}}", + "album": "Album", "album_added": "Album aggiunto", "album_added_notification_setting_description": "Ricevi una notifica email quando sei aggiunto ad un album condiviso", "album_cover_updated": "Copertina dell'album aggiornata", @@ -475,6 +479,7 @@ "allow_edits": "Permetti modifiche", "allow_public_user_to_download": "Permetti agli utenti pubblici di scaricare", "allow_public_user_to_upload": "Permetti agli utenti pubblici di caricare", + "allowed": "Consentito", "alt_text_qr_code": "Immagine QR", "anti_clockwise": "Senso anti-orario", "api_key": "Chiave API", @@ -894,8 +899,6 @@ "edit_description_prompt": "Selezionare una nuova descrizione:", "edit_exclusion_pattern": "Modifica pattern di esclusione", "edit_faces": "Modifica volti", - "edit_import_path": "Modifica percorso di importazione", - "edit_import_paths": "Modifica Percorsi di Importazione", "edit_key": "Modifica chiave", "edit_link": "Modifica link", "edit_location": "Modifica posizione", @@ -967,7 +970,6 @@ "failed_to_stack_assets": "Errore durante il raggruppamento degli assets", "failed_to_unstack_assets": "Errore durante la separazione degli assets", "failed_to_update_notification_status": "Aggiornamento stato notifiche fallito", - "import_path_already_exists": "Questo percorso di importazione già esiste.", "incorrect_email_or_password": "Email o password non corretta", "paths_validation_failed": "{paths, plural, one {# percorso} other {# percorsi}} hanno fallito la validazione", "profile_picture_transparent_pixels": "Le foto profilo non possono avere pixel trasparenti. Riprova ingrandendo e/o muovendo l'immagine.", @@ -977,7 +979,6 @@ "unable_to_add_assets_to_shared_link": "Impossibile aggiungere gli assets al link condiviso", "unable_to_add_comment": "Impossibile aggiungere commento", "unable_to_add_exclusion_pattern": "Impossibile aggiungere pattern di esclusione", - "unable_to_add_import_path": "Impossibile aggiungere percorso di importazione", "unable_to_add_partners": "Impossibile aggiungere compagni", "unable_to_add_remove_archive": "Impossibile {archived, select, true {rimuovere l'asset dall'archivio} other {aggiungere l'asset all'archivio}}", "unable_to_add_remove_favorites": "Impossibile {favorite, select, true {rimuovere l'asset dai} other {aggiungere l'asset ai}} preferiti", @@ -1000,12 +1001,10 @@ "unable_to_delete_asset": "Impossibile cancellare asset", "unable_to_delete_assets": "Errore durante l'eliminazione degli asset", "unable_to_delete_exclusion_pattern": "Impossibile cancellare pattern di esclusione", - "unable_to_delete_import_path": "Impossibile cancellare percorso di importazione", "unable_to_delete_shared_link": "Impossibile cancellare link condiviso", "unable_to_delete_user": "Impossibile cancellare utente", "unable_to_download_files": "Impossibile scaricare i file", "unable_to_edit_exclusion_pattern": "Impossibile modificare pattern di esclusione", - "unable_to_edit_import_path": "Impossibile cambiare percorso di importazione", "unable_to_empty_trash": "Impossibile svuotare il cestino", "unable_to_enter_fullscreen": "Impossibile aprire l'applicazione a schermo intero", "unable_to_exit_fullscreen": "Impossibile uscire dallo schermo intero", @@ -1196,6 +1195,8 @@ "import_path": "Importa percorso", "in_albums": "In {count, plural, one {# album} other {# album}}", "in_archive": "In archivio", + "in_year": "Nel {year}", + "in_year_selector": "Nel", "include_archived": "Includi Archiviati", "include_shared_albums": "Includi album condivisi", "include_shared_partner_assets": "Includi elementi condivisi dai compagni", @@ -1232,6 +1233,7 @@ "language_setting_description": "Seleziona la tua lingua predefinita", "large_files": "File pesanti", "last": "Ultimo", + "last_months": "{count, plural, one {Ultimo mese} other {Ultimi # mesi}}", "last_seen": "Ultimo accesso", "latest_version": "Ultima Versione", "latitude": "Latitudine", @@ -1312,8 +1314,17 @@ "loop_videos_description": "Abilita per riprodurre automaticamente un video in loop nel visualizzatore dei dettagli.", "main_branch_warning": "Stai utilizzando una versione di sviluppo. Ti consigliamo vivamente di utilizzare una versione di rilascio!", "main_menu": "Menu Principale", + "maintenance_description": "Immich è stato posto in modalità manutenzione.", + "maintenance_end": "Termina modalità manutenzione", + "maintenance_end_error": "Errore nel terminare la modalità manutenzione.", + "maintenance_logged_in_as": "Accesso effettuato come {user}", + "maintenance_title": "Temporaneamente non disponibile", "make": "Produttore", "manage_geolocation": "Gestisci posizione", + "manage_media_access_rationale": "Questo permesso è richiesto per gestire correttamente lo spostamento del materiale nel cestino e per recuperarlo da esso.", + "manage_media_access_settings": "Apri impostazioni", + "manage_media_access_subtitle": "Permetti all'app di Immich di gestire e spostare file multimediali.", + "manage_media_access_title": "Accesso alla gestione di contenuti multimediali", "manage_shared_links": "Gestisci link condivisi", "manage_sharing_with_partners": "Gestisci la condivisione con i compagni", "manage_the_app_settings": "Gestisci le impostazioni dell'applicazione", @@ -1377,6 +1388,7 @@ "more": "Di più", "move": "Sposta", "move_off_locked_folder": "Sposta al di fuori della cartella privata", + "move_to": "Sposta in", "move_to_lock_folder_action_prompt": "{count} elementi aggiunti alla cartella sicura", "move_to_locked_folder": "Sposta nella cartella privata", "move_to_locked_folder_confirmation": "Queste foto e video verranno rimossi da tutti gli album, e saranno visibili solo dalla cartella privata", @@ -1406,6 +1418,7 @@ "new_pin_code": "Nuovo codice PIN", "new_pin_code_subtitle": "Questa è la prima volta che accedi alla cartella privata. Crea un codice PIN per accedere in modo sicuro a questa pagina", "new_timeline": "Nuova Timeline", + "new_update": "Nuovo aggiornamento", "new_user_created": "Nuovo utente creato", "new_version_available": "NUOVA VERSIONE DISPONIBILE", "newest_first": "Prima recenti", @@ -1421,6 +1434,7 @@ "no_cast_devices_found": "Nessun dispositivo di trasmissione trovato", "no_checksum_local": "Nessun checksum disponibile: impossibile recuperare gli assets locali", "no_checksum_remote": "Nessun checksum disponibile: impossibile recuperare l'asset remoto", + "no_devices": "Nessun device autorizzato", "no_duplicates_found": "Nessun duplicato trovato.", "no_exif_info_available": "Nessuna informazione exif disponibile", "no_explore_results_message": "Carica più foto per esplorare la tua collezione.", @@ -1437,6 +1451,7 @@ "no_results_description": "Prova ad usare un sinonimo oppure una parola chiave più generica", "no_shared_albums_message": "Crea un album per condividere foto e video con le persone nella tua rete", "no_uploads_in_progress": "Nessun upload in corso", + "not_allowed": "Non permesso", "not_available": "N/A", "not_in_any_album": "In nessun album", "not_selected": "Non selezionato", @@ -1547,6 +1562,8 @@ "photos_count": "{count, plural, one {{count, number} Foto} other {{count, number} Foto}}", "photos_from_previous_years": "Foto dagli anni scorsi", "pick_a_location": "Scegli una posizione", + "pick_custom_range": "Intervallo personalizzato", + "pick_date_range": "Seleziona un periodo temporale", "pin_code_changed_successfully": "Codice PIN cambiato correttamente", "pin_code_reset_successfully": "Codice PIN resettato con successo", "pin_code_setup_successfully": "Codice PIN impostato correttamente", @@ -1716,6 +1733,7 @@ "running": "In esecuzione", "save": "Salva", "save_to_gallery": "Salva in galleria", + "saved": "Salvato", "saved_api_key": "Chiave API salvata", "saved_profile": "Profilo salvato", "saved_settings": "Impostazioni salvate", @@ -1813,6 +1831,8 @@ "server_offline": "Server Offline", "server_online": "Server Online", "server_privacy": "Privacy del Server", + "server_restarting_description": "Questa pagina si aggiornerà per un momento.", + "server_restarting_title": "Il server si sta riavviando", "server_stats": "Statistiche Server", "server_update_available": "Aggiornamento Server disponibile", "server_version": "Versione Server", @@ -2026,6 +2046,7 @@ "third_party_resources": "Risorse di Terze Parti", "time": "Orario", "time_based_memories": "Ricordi basati sul tempo", + "time_based_memories_duration": "Numero di secondi per visualizzare ciascuna immagine.", "timeline": "Linea temporale", "timezone": "Fuso orario", "to_archive": "Archivio", @@ -2166,6 +2187,7 @@ "welcome": "Benvenuto", "welcome_to_immich": "Benvenuto in Immich", "wifi_name": "Nome rete Wi-Fi", + "workflow": "Flusso di lavoro", "wrong_pin_code": "Codice PIN errato", "year": "Anno", "years_ago": "{years, plural, one {# anno} other {# anni}} fa", diff --git a/i18n/ja.json b/i18n/ja.json index c3e53082e8..1fb9fbbd21 100644 --- a/i18n/ja.json +++ b/i18n/ja.json @@ -17,7 +17,6 @@ "add_birthday": "誕生日を設定", "add_endpoint": "エンドポイントを追加", "add_exclusion_pattern": "除外パターンを追加", - "add_import_path": "インポートパスを追加", "add_location": "場所を追加", "add_more_users": "ユーザーを追加", "add_partner": "パートナーを追加", @@ -33,6 +32,7 @@ "add_to_albums": "アルバムに追加", "add_to_albums_count": "{count}つのアルバムへ追加", "add_to_shared_album": "共有アルバムに追加", + "add_upload_to_stack": "スタックにアップロードを追加", "add_url": "URLを追加", "added_to_archive": "アーカイブにしました", "added_to_favorites": "お気に入りに追加済", @@ -111,7 +111,6 @@ "jobs_failed": "{jobCount, plural, other {#件}}の失敗", "library_created": "作成されたライブラリ:{library}", "library_deleted": "ライブラリは削除されました", - "library_import_path_description": "インポートするフォルダを指定します。このフォルダはサブフォルダを含めて、画像と動画のスキャンが行われます。", "library_scanning": "定期スキャン", "library_scanning_description": "ライブラリの定期スキャン設定", "library_scanning_enable_description": "ライブラリ定期スキャンの有効化", @@ -119,7 +118,7 @@ "library_settings_description": "外部ライブラリ設定を管理します", "library_tasks_description": "アセットが追加または変更された外部ライブラリをスキャンする", "library_watching_enable_description": "外部ライブラリのファイル変更を監視", - "library_watching_settings": "ライブラリ監視(実験的)", + "library_watching_settings": "ライブラリ監視(実験的機能)", "library_watching_settings_description": "変更されたファイルを自動的に監視", "logging_enable_description": "ログの有効化", "logging_level_description": "有効な場合に使用されるログ レベル。", @@ -153,6 +152,18 @@ "machine_learning_min_detection_score_description": "顔を検出するための最低信頼スコアを0から1の範囲で設定します。値を低くするとより多くの顔を検出できますが、誤検出の可能性が高くなります。", "machine_learning_min_recognized_faces": "顔認識の最低値", "machine_learning_min_recognized_faces_description": "人物として作成されるために必要な最低認識顔数を設定します。この値を増やすと顔認識の精度が向上しますが、その代わりに顔が人物として認識されない可能性も高くなります。", + "machine_learning_ocr": "OCR", + "machine_learning_ocr_description": "画像内の文字を認識するために機械学習を使用する", + "machine_learning_ocr_enabled": "OCRを有効にする", + "machine_learning_ocr_enabled_description": "無効にすると、画像は文字認識されません.", + "machine_learning_ocr_max_resolution": "最大解像度", + "machine_learning_ocr_max_resolution_description": "この解像度を超えるプレビューは、アスペクト比を維持しながらサイズが変更されます。値を大きくすると精度は向上しますが、処理に時間がかかり、メモリ使用量も増加します。", + "machine_learning_ocr_min_detection_score": "検出スコアの最低値", + "machine_learning_ocr_min_detection_score_description": "検出するテキストの最小信頼度スコアを0から1の範囲で設定します。値が低いほど多くのテキストが検出されますが、誤検出が発生する可能性があります。", + "machine_learning_ocr_min_recognition_score": "認識スコアの最小値", + "machine_learning_ocr_min_score_recognition_description": "検出されたテキストを認識するための最低信頼スコアを0から1の範囲で設定します。。値が低いほど多くのテキストが認識されますが、誤検出が発生する可能性があります。", + "machine_learning_ocr_model": "OCRモデル", + "machine_learning_ocr_model_description": "サーバーモデルはモバイルモデルよりも正確ですが、処理に時間がかかり、メモリも多く使用します。", "machine_learning_settings": "機械学習設定", "machine_learning_settings_description": "機械学習の機能と設定を管理します", "machine_learning_smart_search": "スマートサーチ", @@ -160,6 +171,10 @@ "machine_learning_smart_search_enabled": "スマートサーチを有効にします", "machine_learning_smart_search_enabled_description": "無効にすると、画像はスマートサーチ用にエンコードされません。", "machine_learning_url_description": "機械学習サーバーのURL。複数のURLが設定された場合は1つずつサーバーが正常に応答するまで接続を試みます。応答のないサーバーはオンラインになるまで一時的に無視されます。", + "maintenance_settings": "メンテナンス", + "maintenance_settings_description": "Immichをメンテナンスモードにする。", + "maintenance_start": "メンテナンスモードを開始する", + "maintenance_start_error": "メンテナンスモードの開始に失敗しました。", "manage_concurrency": "同時実行数の管理", "manage_log_settings": "ログ設定を管理します", "map_dark_style": "ダークモード", @@ -210,6 +225,8 @@ "notification_email_ignore_certificate_errors_description": "TLS証明書の検証エラーを無視します(非推奨)", "notification_email_password_description": "メールサーバーでの認証時に使用するパスワードを設定します", "notification_email_port_description": "メールサーバーのポート番号を指定します(例:25, 465, 587)", + "notification_email_secure": "SMTPS", + "notification_email_secure_description": "SMTPSを使用 (SMTP over TLS)", "notification_email_sent_test_email_button": "テストメールを送信して設定を保存", "notification_email_setting_description": "メール通知の送信設定", "notification_email_test_email": "テストメールを送信", @@ -242,6 +259,7 @@ "oauth_storage_quota_default_description": "クレームが提供されていない場合に使用されるクォータをGiB単位で設定します。", "oauth_timeout": "リクエストタイムアウト", "oauth_timeout_description": "リクエストのタイムアウトまでの時間(ms)", + "ocr_job_description": "機械学習を使用して画像内のテキストを認識する", "password_enable_description": "メールアドレスとパスワードでログイン", "password_settings": "パスワード ログイン", "password_settings_description": "パスワード ログイン設定を管理します", @@ -332,7 +350,7 @@ "transcoding_max_b_frames": "最大Bフレーム", "transcoding_max_b_frames_description": "値を高くすると圧縮効率が向上しますが、エンコード速度が遅くなります。古いデバイスのハードウェアアクセラレーションでは対応していない場合があります。\"0\" はBフレームを無効にし、\"-1\" はこの値を自動的に設定します。", "transcoding_max_bitrate": "最大ビットレート", - "transcoding_max_bitrate_description": "最大ビットレートを設定すると、品質にわずかな影響を与えながらも、ファイルサイズを予測しやすくなります。720pの場合、一般的な値は VP9 や HEVC で \"2600 kbit/s\"、H.264 で \"4500 kbit/s\" です。\"0\" に設定すると無効になります。", + "transcoding_max_bitrate_description": "最大ビットレートを設定すると、品質にわずかな影響を与えながらも、ファイルサイズを予測しやすくなります。720pの場合、一般的な値は VP9 や HEVC で \"2600 kbit/s\"、H.264 で \"4500 kbit/s\" です。\"0\" に設定すると無効になります。単位が指定されていない場合、k(kbit/s)が適用されます。したがって5000、5000k、5M(5Mbit/s)は等しい設定値です。", "transcoding_max_keyframe_interval": "最大キーフレーム間隔", "transcoding_max_keyframe_interval_description": "キーフレーム間の最大フレーム間隔を設定します。値を低くすると圧縮効率が悪化しますが、シーク時間が改善され、動きの速いシーンの品質が向上する場合があります。\"0\" に設定すると、この値が自動的に設定されます。", "transcoding_optimal_description": "設定解像度を超える動画、または容認されていない形式の動画", @@ -350,7 +368,7 @@ "transcoding_target_resolution": "解像度", "transcoding_target_resolution_description": "解像度を高くすると細かなディテールを保持できますが、エンコードに時間がかかり、ファイルサイズが大きくなり、アプリの応答性が低下する可能性があります。", "transcoding_temporal_aq": "適応的量子化(Temporal AQ)", - "transcoding_temporal_aq_description": "NVEncにのみ適用されます。高精細で動きの少ないシーンの画質を向上させます。古いデバイスとの互換性はありません。", + "transcoding_temporal_aq_description": "NVEncにのみ適用されます。Temporal AQは高精細で動きの少ないシーンの画質を向上させます。古いデバイスとの互換性はありません。", "transcoding_threads": "スレッド数", "transcoding_threads_description": "値を高くするとエンコード速度が速くなりますが、アクティブな間はサーバーが他のタスクを処理する余裕が少なくなります。この値はCPUのコア数を超えないようにする必要があります。\"0\" に設定すると、最大限利用されます。", "transcoding_tone_mapping": "トーンマッピング", @@ -401,11 +419,11 @@ "advanced_settings_prefer_remote_subtitle": "デバイスによっては、デバイス上にあるサムネイルのロードに非常に時間がかかることがあります。このオプションを有効にする事により、サーバーから直接画像をロードすることが可能です。", "advanced_settings_prefer_remote_title": "リモートを優先する", "advanced_settings_proxy_headers_subtitle": "プロキシヘッダを設定する", - "advanced_settings_proxy_headers_title": "プロキシヘッダ", + "advanced_settings_proxy_headers_title": "カスタムプロキシヘッダ [実験的]", "advanced_settings_readonly_mode_subtitle": "読み取り専用モードを有効にすると、写真の複数選択や、共有、削除、キャスト機能が無効になります。メインスクリーンのユーザーアバターから有効/無効を切り替えられます", "advanced_settings_readonly_mode_title": "読み取り専用モード", "advanced_settings_self_signed_ssl_subtitle": "SSLのチェックをスキップする。自己署名証明書が必要です。", - "advanced_settings_self_signed_ssl_title": "自己署名証明書を許可する", + "advanced_settings_self_signed_ssl_title": "自己署名証明書を許可する [実験的]", "advanced_settings_sync_remote_deletions_subtitle": "Webでこの操作を行った際に、自動的にこのデバイス上から当該アセットを削除または復元する", "advanced_settings_sync_remote_deletions_title": "リモート削除の同期 [試験運用]", "advanced_settings_tile_subtitle": "追加ユーザー設定", @@ -414,6 +432,7 @@ "age_months": "生後 {months,plural, one {#か月} other {#か月}}", "age_year_months": "1歳{months,plural, one {#か月} other {#か月}}", "age_years": "{years,plural, one {#歳} other {#歳}}", + "album": "アルバム", "album_added": "アルバム追加", "album_added_notification_setting_description": "共有アルバムに追加されたときEメール通知を受信する", "album_cover_updated": "アルバムカバー更新", @@ -459,6 +478,7 @@ "allow_edits": "編集を許可", "allow_public_user_to_download": "一般ユーザーによるダウンロードを許可", "allow_public_user_to_upload": "一般ユーザーによるアップロードを許可", + "allowed": "許可されている", "alt_text_qr_code": "QRコード画像", "anti_clockwise": "反時計回り", "api_key": "APIキー", @@ -468,7 +488,10 @@ "app_bar_signout_dialog_content": "サインアウトしますか?", "app_bar_signout_dialog_ok": "はい", "app_bar_signout_dialog_title": "サインアウト", + "app_download_links": "アプリのダウンロードリンク", "app_settings": "アプリ設定", + "app_stores": "アプリストア", + "app_update_available": "アプリのアップデートが利用可能です", "appears_in": "これらに含まれます", "apply_count": "適用 ({count, number})", "archive": "アーカイブ", @@ -538,7 +561,7 @@ "autoplay_slideshow": "スライドショーを自動再生", "back": "戻る", "back_close_deselect": "戻る、閉じる、選択解除", - "background_backup_running_error": "バックグラウンドのバックアップがすでに行われている最中です。そのため、マニュアルでのバックアップを開始することはできません。", + "background_backup_running_error": "バックグラウンドのバックアップがすでに行われている最中です。そのため、マニュアルでのバックアップを開始することはできません", "background_location_permission": "バックグラウンド位置情報アクセス", "background_location_permission_content": "正常にWi-Fiの名前(SSID)を獲得するにはアプリが常に詳細な位置情報にアクセスできる必要があります", "background_options": "バックグラウンドの動作オプション", @@ -552,6 +575,7 @@ "backup_albums_sync": "アルバム同期状態をバックアップ", "backup_all": "すべて", "backup_background_service_backup_failed_message": "アップロードに失敗しました。リトライ中…", + "backup_background_service_complete_notification": "アセットのバックアップが完了しました", "backup_background_service_connection_failed_message": "サーバーに接続できません。リトライ中…", "backup_background_service_current_upload_notification": "{filename}をアップロード中", "backup_background_service_default_notification": "新しい写真を確認中…", @@ -661,6 +685,8 @@ "change_password_description": "これは、初めてのサインインであるか、パスワードの変更要求が行われたかのいずれかです。 新しいパスワードを下に入力してください。", "change_password_form_confirm_password": "確定", "change_password_form_description": "{name}さん こんにちは\n\nサーバーにアクセスするのが初めてか、パスワードリセットのリクエストがされました。新しいパスワードを入力してください。", + "change_password_form_log_out": "他の全てのデバイスからログアウトさせる", + "change_password_form_log_out_description": "他のすべてのデバイスからログアウトすることをお勧めします", "change_password_form_new_password": "新しいパスワード", "change_password_form_password_mismatch": "パスワードが一致しません", "change_password_form_reenter_new_password": "再度パスワードを入力してください", @@ -687,8 +713,8 @@ "client_cert_import_success_msg": "クライアント証明書が導入されました", "client_cert_invalid_msg": "パスワードが間違っているか証明書が無効です", "client_cert_remove_msg": "クライアント証明書が削除されました", - "client_cert_subtitle": "PKCS12 (.p12 .pfx) フォーマットのみ対応されてます。証明書の導入や削除はログイン前のみ行えます", - "client_cert_title": "SSLクライアント証明書", + "client_cert_subtitle": "PKCS12 (.p12 .pfx) フォーマットのみ対応しています。証明書の導入や削除はログイン前のみ行えます", + "client_cert_title": "SSLクライアント証明書 [実験的]", "clockwise": "時計回り", "close": "閉じる", "collapse": "展開", @@ -738,6 +764,7 @@ "create": "作成", "create_album": "アルバムを作成", "create_album_page_untitled": "無題のタイトル", + "create_api_key": "APIキーを作成", "create_library": "ライブラリを作成", "create_link": "リンクを作る", "create_link_to_share": "共有リンクを作る", @@ -767,6 +794,7 @@ "daily_title_text_date_year": "yyyy MM DD, EE", "dark": "ダークモード", "dark_theme": "ダークモード切り替え", + "date": "日付", "date_after": "この日以降", "date_and_time": "日付と時間", "date_before": "この日以前", @@ -869,8 +897,6 @@ "edit_description_prompt": "新しい説明文を選んでください:", "edit_exclusion_pattern": "除外パターンを編集", "edit_faces": "顔を編集", - "edit_import_path": "インポートパスを編集", - "edit_import_paths": "インポートパスを編集", "edit_key": "キーを編集", "edit_link": "リンクを編集する", "edit_location": "位置情報を編集", @@ -942,7 +968,6 @@ "failed_to_stack_assets": "アセットをスタックできませんでした", "failed_to_unstack_assets": "アセットをスタックから解除することができませんでした", "failed_to_update_notification_status": "通知ステータスの更新に失敗しました", - "import_path_already_exists": "このインポートパスは既に存在します。", "incorrect_email_or_password": "メールアドレスまたはパスワードが間違っています", "paths_validation_failed": "{paths, plural, one {#個} other {#個}}のパスの検証に失敗しました", "profile_picture_transparent_pixels": "プロフィール写真には透明ピクセルを含めることはできません。画像を拡大/縮小したり移動してください。", @@ -952,7 +977,6 @@ "unable_to_add_assets_to_shared_link": "アセットを共有リンクに追加できません", "unable_to_add_comment": "コメントを追加できません", "unable_to_add_exclusion_pattern": "除外パターンを追加できません", - "unable_to_add_import_path": "インポートパスを追加できません", "unable_to_add_partners": "パートナーを追加できません", "unable_to_add_remove_archive": "アーカイブ{archived, select, true {からアセットを削除} other {にアセットを追加}}できません", "unable_to_add_remove_favorites": "項目をお気に入り{favorite, select, true {に追加} other {の解除}}できませんでした", @@ -975,12 +999,10 @@ "unable_to_delete_asset": "項目を削除できません", "unable_to_delete_assets": "項目を削除中のエラー", "unable_to_delete_exclusion_pattern": "除外パターンを削除できません", - "unable_to_delete_import_path": "インポートパスを削除できません", "unable_to_delete_shared_link": "共有リンクを削除できません", "unable_to_delete_user": "ユーザーを削除できません", "unable_to_download_files": "ファイルをダウンロードできません", "unable_to_edit_exclusion_pattern": "除外パターンを編集できません", - "unable_to_edit_import_path": "インポートパスを編集できません", "unable_to_empty_trash": "ゴミ箱を空にできません", "unable_to_enter_fullscreen": "フルスクリーンにできません", "unable_to_exit_fullscreen": "フルスクリーンを解除できません", @@ -1036,6 +1058,7 @@ "exif_bottom_sheet_description_error": "説明文をアップデートできませんでした", "exif_bottom_sheet_details": "詳細", "exif_bottom_sheet_location": "撮影場所", + "exif_bottom_sheet_no_description": "説明なし", "exif_bottom_sheet_people": "人物", "exif_bottom_sheet_person_add_person": "名前を追加", "exit_slideshow": "スライドショーを終わる", @@ -1074,6 +1097,7 @@ "features_setting_description": "アプリの機能を管理する", "file_name": "ファイル名", "file_name_or_extension": "ファイル名または拡張子", + "file_size": "ファイルサイズ", "filename": "ファイル名", "filetype": "ファイルタイプ", "filter": "フィルター", @@ -1169,6 +1193,7 @@ "import_path": "インポートパス", "in_albums": "{count, plural, one {#件のアルバム} other {#件のアルバム}}の中", "in_archive": "アーカイブ済み", + "in_year": "{year}年", "include_archived": "アーカイブ済みを含める", "include_shared_albums": "共有アルバムを含める", "include_shared_partner_assets": "パートナーがシェアしたアセットを含める", @@ -1237,6 +1262,7 @@ "local_media_summary": "ローカルメディアのまとめ", "local_network": "ローカルネットワーク", "local_network_sheet_info": "アプリは指定されたWi-Fiに繋がっている時サーバーへの接続を下記のURLで行います", + "location": "位置情報", "location_permission": "位置情報権限", "location_permission_content": "自動URL切り替えを使用するにはWi-Fiの名前(SSID)を取得する必要があり、正常に機能するにはアプリが常に詳細な位置情報にアクセスできる必要があります", "location_picker_choose_on_map": "マップを選択", @@ -1284,8 +1310,16 @@ "loop_videos_description": "有効にすると詳細表示で自動的に動画がループします。", "main_branch_warning": "開発版を使っているようです。リリース版の使用を強く推奨します!", "main_menu": "メインメニュー", + "maintenance_description": "Immich は メンテナンスモード中です。", + "maintenance_end": "メンテナンスモードを終了する", + "maintenance_end_error": "メンテナンスモードの終了に失敗しました。", + "maintenance_logged_in_as": "現在 {user}としてログインしています", + "maintenance_title": "一時的に利用不可能", "make": "メーカー", "manage_geolocation": "位置情報を編集", + "manage_media_access_settings": "設定を開く", + "manage_media_access_subtitle": "Immichアプリにメディアファイルの管理と移動を許可する。", + "manage_media_access_title": "メディア管理アクセス", "manage_shared_links": "共有済みのリンクを管理", "manage_sharing_with_partners": "パートナーとの共有を管理します", "manage_the_app_settings": "アプリの設定を管理します", @@ -1341,12 +1375,15 @@ "minute": "分", "minutes": "分", "missing": "欠落", + "mobile_app": "モバイルアプリ", + "mobile_app_download_onboarding_note": "以下のオプションを使用してコンパニオンモバイルアプリをダウンロードしてください", "model": "モデル", "month": "月", "monthly_title_text_date_format": "yyyy MM", "more": "もっと表示", "move": "移動", "move_off_locked_folder": "鍵付きフォルダーから出す", + "move_to": "移動先は", "move_to_lock_folder_action_prompt": "{count}項目を鍵付きフォルダーに追加しました", "move_to_locked_folder": "鍵付きフォルダーへ移動", "move_to_locked_folder_confirmation": "これらの写真や動画はすべてのアルバムから外され、鍵付きフォルダー内でのみ閲覧可能になります", @@ -1359,6 +1396,7 @@ "my_albums": "私のアルバム", "name": "名前", "name_or_nickname": "名前またはニックネーム", + "navigate": "ナビゲート", "network_requirement_photos_upload": "モバイル通信を使用して写真のバックアップを行う", "network_requirement_videos_upload": "モバイル通信を使用して動画のバックアップを行う", "network_requirements": "ネットワークの要件", @@ -1368,11 +1406,13 @@ "never": "行わない", "new_album": "新たなアルバム", "new_api_key": "新しいAPI キー", + "new_date_range": "新しい日付範囲", "new_password": "新しいパスワード", "new_person": "新しい人物", "new_pin_code": "新しいPINコード", "new_pin_code_subtitle": "鍵付きフォルダーを利用するのが初めてのようです。PINコードを作成してください", "new_timeline": "新たなタイムライン", + "new_update": "新たな更新", "new_user_created": "新しいユーザーが作成されました", "new_version_available": "新しいバージョンが利用可能", "newest_first": "最新順", @@ -1388,6 +1428,7 @@ "no_cast_devices_found": "キャスト先のデバイスが見つかりません", "no_checksum_local": "チェックサムが見つかりません - デバイス上の項目を取得できないようです", "no_checksum_remote": "チェックサムが見つかりません - サーバー上の項目を取得できないようです", + "no_devices": "許可されたデバイスがありません", "no_duplicates_found": "重複は見つかりませんでした。", "no_exif_info_available": "exif情報が利用できません", "no_explore_results_message": "コレクションを探索するにはさらに写真をアップロードしてください。", @@ -1404,6 +1445,7 @@ "no_results_description": "同義語やより一般的なキーワードを試してください", "no_shared_albums_message": "アルバムを作成して写真や動画を共有しましょう", "no_uploads_in_progress": "アップロードは行われていません", + "not_allowed": "許可されていません", "not_available": "適用なし", "not_in_any_album": "どのアルバムにも入っていない", "not_selected": "選択なし", @@ -1418,6 +1460,9 @@ "notifications": "通知", "notifications_setting_description": "通知を管理します", "oauth": "OAuth", + "obtainium_configurator": "Obtainiumの設定", + "obtainium_configurator_instructions": "Obtainiumを使用すると、Immich GitHubのリリースから直接Androidアプリをインストールおよびアップデートできます。APIキーを作成し、バリアントを選択してObtainiumの設定リンクを作成してください", + "ocr": "OCR", "official_immich_resources": "公式Immichリソース", "offline": "オフライン", "offset": "オフセット", @@ -1511,6 +1556,7 @@ "photos_count": "{count, plural, one {{count, number}枚の写真} other {{count, number}枚の写真}}", "photos_from_previous_years": "以前の年の写真", "pick_a_location": "場所を選択", + "pick_date_range": "日付範囲の選択", "pin_code_changed_successfully": "PINコードを変更しました", "pin_code_reset_successfully": "PINコードをリセットしました", "pin_code_setup_successfully": "PINコードをセットアップしました", @@ -1522,6 +1568,9 @@ "play_memories": "メモリーを再生", "play_motion_photo": "モーションビデオを再生", "play_or_pause_video": "動画を再生または一時停止", + "play_original_video": "オリジナルの動画を再生", + "play_original_video_setting_description": "トランスコードされた動画よりも、オリジナルの動画を優先して再生します。オリジナルのアセットが互換性がない場合、正しく再生されない可能性があります。", + "play_transcoded_video": "トランスコード済みの動画を再生する", "please_auth_to_access": "アクセスするには認証が必要です", "port": "ポートレート", "preferences_settings_subtitle": "アプリに関する設定", @@ -1658,6 +1707,7 @@ "reset_sqlite_confirmation": "SQLiteを本当にリセットしますか?データを再び同期するためにログアウトし再ログインをする必要があります", "reset_sqlite_success": "SQLiteデータベースのリセットに成功しました", "reset_to_default": "デフォルトにリセット", + "resolution": "解像度", "resolve_duplicates": "重複を解決する", "resolved_all_duplicates": "全ての重複を解決しました", "restore": "復元", @@ -1676,6 +1726,7 @@ "running": "実行中", "save": "保存", "save_to_gallery": "ギャラリーに保存", + "saved": "保存しました", "saved_api_key": "APIキーを保存しました", "saved_profile": "プロフィールを保存しました", "saved_settings": "設定を保存しました", @@ -1692,6 +1743,9 @@ "search_by_description_example": "サパでハイキングした日", "search_by_filename": "ファイル名もしくは拡張子で検索", "search_by_filename_example": "例: IMG_1234.JPG もしくは PNG", + "search_by_ocr": "OCR検索", + "search_by_ocr_example": "お茶", + "search_camera_lens_model": "レンズモデルで検索…", "search_camera_make": "カメラメーカーを検索…", "search_camera_model": "カメラのモデルを検索…", "search_city": "市町村を検索…", @@ -1708,6 +1762,7 @@ "search_filter_location_title": "場所を選択", "search_filter_media_type": "メディアの種類", "search_filter_media_type_title": "メディアの種類を選択", + "search_filter_ocr": "OCRで検索", "search_filter_people_title": "人物を選択", "search_for": "検索", "search_for_existing_person": "既存の人物を検索", @@ -1769,7 +1824,10 @@ "server_offline": "サーバーがオフラインです", "server_online": "サーバーがオンラインです", "server_privacy": "サーバープライバシー", + "server_restarting_description": "このページはすぐに更新されます。", + "server_restarting_title": "サーバーは再起動しています", "server_stats": "サーバー統計", + "server_update_available": "サーバーのアップデートが利用可能です", "server_version": "サーバーバージョン", "set": "設定", "set_as_album_cover": "アルバムカバーとして設定", @@ -1798,6 +1856,8 @@ "setting_notifications_subtitle": "通知設定を変更する", "setting_notifications_total_progress_subtitle": "アップロードの進行状況 (完了済み/全体枚数)", "setting_notifications_total_progress_title": "全体のバックアップの進行状況を表示", + "setting_video_viewer_auto_play_subtitle": "動画を開くと自動で再生されます", + "setting_video_viewer_auto_play_title": "動画の自動再生", "setting_video_viewer_looping_title": "動画をループする", "setting_video_viewer_original_video_subtitle": "動画をストリーミングする際に、トランスコードされた動画が存在していても、あえてオリジナル画質の動画を再生します。ストリーミングに待ち時間が生じるかもしれません。なお、デバイス上に保存されている動画はこの設定の有無に関わらず、オリジナル画質の動画を再生します。", "setting_video_viewer_original_video_title": "常にオリジナル画質の動画を再生する", @@ -1977,7 +2037,9 @@ "theme_setting_three_stage_loading_title": "三段階読み込みをオンにする", "they_will_be_merged_together": "これらは一緒に統合されます", "third_party_resources": "サードパーティーリソース", + "time": "時刻", "time_based_memories": "過去の思い出", + "time_based_memories_duration": "各写真を表示する秒数。", "timeline": "タイムライン", "timezone": "タイムゾーン", "to_archive": "アーカイブ", @@ -2009,6 +2071,7 @@ "troubleshoot": "トラブルシューティング", "type": "タイプ", "unable_to_change_pin_code": "PINコードを変更できませんでした", + "unable_to_check_version": "アプリまたはサーバーのバージョンをチェックできませんでした", "unable_to_setup_pin_code": "PINコードをセットアップできませんでした", "unarchive": "アーカイブを解除", "unarchive_action_prompt": "{count}項目をアーカイブから除きました", @@ -2117,6 +2180,7 @@ "welcome": "ようこそ", "welcome_to_immich": "Immichにようこそ", "wifi_name": "Wi-Fiの名前(SSID)", + "workflow": "ワークフロー", "wrong_pin_code": "PINコードが間違っています", "year": "年", "years_ago": "{years, plural, one {#年} other {#年}}前", diff --git a/i18n/ka.json b/i18n/ka.json index 063419db11..c756b9b708 100644 --- a/i18n/ka.json +++ b/i18n/ka.json @@ -16,7 +16,6 @@ "add_a_title": "დაასათაურე", "add_birthday": "დაბადების დღის დამატება", "add_exclusion_pattern": "დაამატე გამონაკლისი ნიმუში", - "add_import_path": "დაამატე საიმპორტო მისამართი", "add_location": "დაამატე ადგილი", "add_more_users": "დაამატე მომხმარებლები", "add_partner": "დაამატე პარტნიორი", @@ -73,7 +72,6 @@ "image_thumbnail_title": "მინიატურის პარამეტრები", "library_created": "შეიქმნა ბიბლიოთეკა: {library}", "library_deleted": "ბიბლიოთეკა წაიშალა", - "library_import_path_description": "აირჩიე დასაიმპორტებელი საქაღალდე. ფოტოები და ვიდეოები მოიძებნება ამ საქაღალდესა და მასში არსებულ საქაღალდეებში.", "library_settings": "გარე ბიბლიოთეკა", "library_settings_description": "გარე ბიბლიოთეკების პარამეტრების მართვა", "logging_settings": "ჟურნალი", diff --git a/i18n/kn.json b/i18n/kn.json index 111c802a1e..6bef39c34c 100644 --- a/i18n/kn.json +++ b/i18n/kn.json @@ -17,7 +17,6 @@ "add_birthday": "ಜನ್ಮದಿನ ಸೇರಿಸಿ", "add_endpoint": "ಎಂಡ್‌ಪಾಯಿಂಟ್ ಸೇರಿಸಿ", "add_exclusion_pattern": "ಹೊರಗಿಡುವಿಕೆ ಮಾದರಿಯನ್ನು ಸೇರಿಸಿ", - "add_import_path": "ಆಮದು ಮಾರ್ಗವನ್ನು ಸೇರಿಸಿ", "add_location": "ಸ್ಥಳ ಸೇರಿಸಿ", "add_more_users": "ಹೆಚ್ಚಿನ ಬಳಕೆದಾರರನ್ನು ಸೇರಿಸಿ", "add_partner": "ಪಾಲುದಾರರನ್ನು ಸೇರಿಸಿ", diff --git a/i18n/ko.json b/i18n/ko.json index 8a4094c4b0..782069b939 100644 --- a/i18n/ko.json +++ b/i18n/ko.json @@ -17,7 +17,6 @@ "add_birthday": "생일 추가", "add_endpoint": "엔드포인트 추가", "add_exclusion_pattern": "제외 규칙 추가", - "add_import_path": "가져올 경로 추가", "add_location": "위치 추가", "add_more_users": "다른 사용자 추가", "add_partner": "파트너 추가", @@ -33,7 +32,7 @@ "add_to_albums": "여러 앨범에 추가", "add_to_albums_count": "여러 앨범에 추가 ({count})", "add_to_shared_album": "공유 앨범에 추가", - "add_upload_to_stack": "스택에 업로드 추가", + "add_upload_to_stack": "스택에 항목 업로드", "add_url": "URL 추가", "added_to_archive": "보관함으로 이동되었습니다.", "added_to_favorites": "즐겨찾기에 추가되었습니다.", @@ -63,13 +62,13 @@ "config_set_by_file": "설정이 구성 파일을 통해 관리되고 있습니다.", "confirm_delete_library": "{library} 라이브러리를 삭제하시겠습니까?", "confirm_delete_library_assets": "이 라이브러리를 삭제하시겠습니까? Immich에서 {count, plural, one {항목 #개가} other {항목 #개가}} 삭제되며 되돌릴 수 없습니다. 원본 파일은 디스크에 남아 있습니다.", - "confirm_email_below": "계속하려면 아래에 \"{email}\"을(를) 입력하세요.", + "confirm_email_below": "계속 진행하려면 아래에 \"{email}\" 입력", "confirm_reprocess_all_faces": "모든 얼굴을 다시 처리하시겠습니까? 이름이 지정된 인물도 초기화됩니다.", "confirm_user_password_reset": "{user}님의 비밀번호를 초기화하시겠습니까?", "confirm_user_pin_code_reset": "{user}님의 PIN 코드를 초기화하시겠습니까?", "create_job": "새 작업", "cron_expression": "Cron 표현식", - "cron_expression_description": "Cron 표현식으로 스캔 주기를 설정합니다. 자세한 내용은 다음을 참조하세요, Crontab Guru", + "cron_expression_description": "Cron 표현식으로 스캔 주기를 설정합니다. 자세한 내용은 다음 링크를 확인하세요. Crontab Guru", "cron_expression_presets": "Cron 표현식 프리셋", "disable_login": "로그인 비활성화", "duplicate_detection_job_description": "기계 학습으로 유사한 이미지를 감지합니다. 스마트 검색이 활성화되어 있어야 합니다.", @@ -78,7 +77,7 @@ "face_detection": "얼굴 감지", "face_detection_description": "기계 학습으로 항목에서 얼굴을 감지합니다. 동영상의 경우 섬네일만 분석에 사용됩니다. \"새로고침\"은 모든 항목을 (재)처리하며, \"초기화\"는 현재 모든 얼굴 데이터를 추가로 삭제합니다. \"누락\"은 아직 처리되지 않은 항목을 대기열에 추가합니다. 얼굴 감지가 완료되면 얼굴 인식 단계로 넘어가 기존 인물이나 새로운 인물로 그룹화합니다.", "facial_recognition_job_description": "감지된 얼굴을 인물별로 그룹화합니다. 이 작업은 얼굴 감지 작업이 완료된 후 진행됩니다. \"초기화\"는 모든 얼굴을 다시 그룹화합니다. \"누락\"은 그룹화되지 않은 얼굴을 대기열에 추가합니다.", - "failed_job_command": "{job} 작업에서 {command} 실패", + "failed_job_command": "{job} 작업의 {command} 실패", "force_delete_user_warning": "경고: 이 작업은 해당 사용자의 계정과 모든 항목을 즉시 삭제합니다. 이 작업은 되돌릴 수 없으며 삭제된 파일은 복구할 수 없습니다.", "image_format": "형식", "image_format_description": "WebP는 JPEG보다 파일 크기가 작지만 인코딩 속도가 느립니다.", @@ -112,7 +111,6 @@ "jobs_failed": "{jobCount, plural, other {#개}} 실패", "library_created": "{library} 라이브러리를 생성했습니다.", "library_deleted": "라이브러리가 삭제되었습니다.", - "library_import_path_description": "가져올 폴더를 지정하세요. 해당 폴더와 모든 하위 폴더에서 이미지와 동영상을 스캔합니다.", "library_scanning": "주기적인 스캔", "library_scanning_description": "주기적인 라이브러리 스캔을 구성합니다.", "library_scanning_enable_description": "주기적인 라이브러리 스캔 활성화", @@ -158,6 +156,7 @@ "machine_learning_ocr_description": "기계 학습으로 이미지에서 텍스트를 인식합니다.", "machine_learning_ocr_enabled": "OCR 활성화", "machine_learning_ocr_min_detection_score": "최소 신뢰도 점수", + "machine_learning_ocr_model": "OCR 모델", "machine_learning_settings": "기계 학습 설정", "machine_learning_settings_description": "기계 학습 시 사용할 모델과 세부 설정을 관리합니다.", "machine_learning_smart_search": "스마트 검색", @@ -241,7 +240,7 @@ "oauth_settings": "OAuth", "oauth_settings_description": "OAuth 로그인 설정을 관리합니다.", "oauth_settings_more_details": "이 기능에 대한 자세한 내용은 문서를 참조하세요.", - "oauth_storage_label_claim": "스토리지 라벨 클레임", + "oauth_storage_label_claim": "스토리지 레이블 클레임", "oauth_storage_label_claim_description": "클레임의 값을 사용자 스토리지 레이블로 자동 설정합니다.", "oauth_storage_quota_claim": "스토리지 용량 클레임", "oauth_storage_quota_claim_description": "요청한 값을 사용자 스토리지 할당량으로 자동 설정합니다.", @@ -249,6 +248,7 @@ "oauth_storage_quota_default_description": "입력하지 않은 경우 사용할 GiB 단위의 할당량", "oauth_timeout": "요청 타임아웃", "oauth_timeout_description": "요청 타임아웃 (밀리초 단위)", + "ocr_job_description": "기계 학습으로 이미지에서 텍스트를 인식합니다.", "password_enable_description": "이메일과 비밀번호로 로그인", "password_settings": "비밀번호 로그인", "password_settings_description": "비밀번호 로그인 설정을 관리합니다.", @@ -882,8 +882,6 @@ "edit_description_prompt": "새 설명을 입력하세요:", "edit_exclusion_pattern": "제외 규칙 수정", "edit_faces": "얼굴 수정", - "edit_import_path": "가져올 경로 수정", - "edit_import_paths": "가져올 경로 수정", "edit_key": "키 수정", "edit_link": "링크 수정", "edit_location": "위치 변경", @@ -955,7 +953,6 @@ "failed_to_stack_assets": "항목 스택에 실패했습니다.", "failed_to_unstack_assets": "항목 스택 풀기에 실패했습니다.", "failed_to_update_notification_status": "알림 상태 업데이트 실패", - "import_path_already_exists": "이 가져올 경로는 이미 존재합니다.", "incorrect_email_or_password": "잘못된 이메일 또는 비밀번호", "paths_validation_failed": "{paths, plural, one {경로 #개} other {경로 #개}}가 유효성 검사에 실패했습니다.", "profile_picture_transparent_pixels": "프로필 사진에 투명 픽셀을 사용할 수 없습니다. 사진을 확대하거나 이동하세요.", @@ -965,7 +962,6 @@ "unable_to_add_assets_to_shared_link": "항목을 공유 링크에 추가할 수 없습니다.", "unable_to_add_comment": "댓글을 추가할 수 없습니다.", "unable_to_add_exclusion_pattern": "제외 규칙을 추가할 수 없습니다.", - "unable_to_add_import_path": "가져올 경로를 추가할 수 없습니다.", "unable_to_add_partners": "파트너를 추가할 수 없습니다.", "unable_to_add_remove_archive": "{archived, select, true {보관함에서 항목을 제거할} other {보관함으로 항목을 이동할}} 수 없습니다.", "unable_to_add_remove_favorites": "즐겨찾기에 항목을 {favorite, select, true {추가} other {제거}}할 수 없습니다", @@ -988,12 +984,10 @@ "unable_to_delete_asset": "항목을 삭제할 수 없습니다.", "unable_to_delete_assets": "항목 삭제 중 오류 발생", "unable_to_delete_exclusion_pattern": "제외 규칙을 삭제할 수 없습니다.", - "unable_to_delete_import_path": "가져올 경로를 삭제할 수 없습니다.", "unable_to_delete_shared_link": "공유 링크를 삭제할 수 없습니다.", "unable_to_delete_user": "사용자를 삭제할 수 없습니다.", "unable_to_download_files": "파일을 다운로드할 수 없습니다.", "unable_to_edit_exclusion_pattern": "제외 규칙을 수정할 수 없습니다.", - "unable_to_edit_import_path": "가져올 경로를 수정할 수 없습니다.", "unable_to_empty_trash": "휴지통을 비울 수 없습니다.", "unable_to_enter_fullscreen": "전체 화면으로 전환할 수 없습니다.", "unable_to_exit_fullscreen": "전체 화면을 종료할 수 없습니다.", diff --git a/i18n/lt.json b/i18n/lt.json index 56f8333bef..38b86e6bae 100644 --- a/i18n/lt.json +++ b/i18n/lt.json @@ -17,7 +17,6 @@ "add_birthday": "Pridėti gimimo diena", "add_endpoint": "Pridėti galutinį tašką", "add_exclusion_pattern": "Pridėti išimčių šabloną", - "add_import_path": "Pridėti importavimo kelią", "add_location": "Pridėti vietovę", "add_more_users": "Pridėti daugiau naudotojų", "add_partner": "Pridėti partnerį", @@ -28,6 +27,7 @@ "add_to_album": "Pridėti į albumą", "add_to_album_bottom_sheet_added": "Pridėta į {album}", "add_to_album_bottom_sheet_already_exists": "Jau yra albume {album}", + "add_to_album_bottom_sheet_some_local_assets": "Dalis vietinių elementų negalėjo būti pridėti į albumą", "add_to_album_toggle": "Perjungti pažymėjimus albumui {album}", "add_to_albums": "Pridėti į albumus", "add_to_albums_count": "Pridėti į albumus ({count})", @@ -110,7 +110,6 @@ "jobs_failed": "{jobCount, plural, other {# nepavyko}}", "library_created": "Sukurta biblioteka: {library}", "library_deleted": "Biblioteka ištrinta", - "library_import_path_description": "Nurodykite aplanką, kurį norite importuoti. Šiame aplanke, įskaitant poaplankius, bus nuskaityti vaizdai ir vaizdo įrašai.", "library_scanning": "Periodinis skenavimas", "library_scanning_description": "Konfigūruoti periodinį bibliotekos skanavimą", "library_scanning_enable_description": "Įgalinti periodinį bibliotekos skenavimą", @@ -152,6 +151,8 @@ "machine_learning_min_detection_score_description": "Minimalus užtikrintumo balas veido aptikimui nuo 0-1. Mažesnė reikšmė aptiks daugiau veidų tačiau bus ir daugiau klaidingų teigiamų režultatų.", "machine_learning_min_recognized_faces": "Mažiausias atpažintų veidų skaičius", "machine_learning_min_recognized_faces_description": "Mažiausias atpažintų veidų skaičius asmeniui, kurį reikia sukurti. Tai padidinus, veido atpažinimas tampa tikslesnis, bet padidėja tikimybė, kad veidas žmogui nepriskirtas.", + "machine_learning_ocr_description": "Naudoti mašininį mokymąsį, teksto atpažinimui nuotraukose", + "machine_learning_ocr_max_resolution": "Maksimali skiriamoji geba", "machine_learning_settings": "Mašininio mokymosi nustatymai", "machine_learning_settings_description": "Tvarkyti mašininio mokymosi funkcijas ir nustatymus", "machine_learning_smart_search": "Išmanioji paieška", @@ -241,6 +242,7 @@ "oauth_storage_quota_default_description": "Nustatoma appimties kvota GiB kai nėra nurodyta tvirtinime.", "oauth_timeout": "Užklausa viršijo laiko limitą", "oauth_timeout_description": "Laiko limitas užklausoms milisekundėmis", + "ocr_job_description": "Naudoti mašininį mokymąsi teksto atpažinimui nuotraukose", "password_enable_description": "Prisijungti su el. paštu ir slaptažodžiu", "password_settings": "Prisijungimas slaptažodžiu", "password_settings_description": "Tvarkyti prisijungimo slaptažodžiu nustatymus", @@ -865,8 +867,6 @@ "edit_description_prompt": "Prašome pasirinkti naują aprašymą:", "edit_exclusion_pattern": "Redaguoti išimčių šabloną", "edit_faces": "Redaguoti veidus", - "edit_import_path": "Redaguoti importavimo kelią", - "edit_import_paths": "Redaguoti importavimo kelius", "edit_key": "Redaguoti raktą", "edit_link": "Redaguoti nuorodą", "edit_location": "Redaguoti vietovę", @@ -938,7 +938,6 @@ "failed_to_stack_assets": "Nepavyko sugrupuoti elementų", "failed_to_unstack_assets": "Nepavyko išgrupuoti elementų", "failed_to_update_notification_status": "Nepavyko atnaujinti pranešimo statuso", - "import_path_already_exists": "Šis importavimo kelias jau egzistuoja.", "incorrect_email_or_password": "Neteisingas el. pašto adresas arba slaptažodis", "paths_validation_failed": "Nepavyko {paths, plural, one {# kelio} other {# kelių}} patvirtinimas", "profile_picture_transparent_pixels": "Profilio nuotrauka negali turėti permatomų pikselių. Prašome priartinti ir/arba perkelkite nuotrauką.", @@ -948,7 +947,6 @@ "unable_to_add_assets_to_shared_link": "Nepavyko į bendrinimo nuorodą pridėti elementų", "unable_to_add_comment": "Nepavyksta pridėti komentaro", "unable_to_add_exclusion_pattern": "Nepavyksta pridėti išimčių šablono", - "unable_to_add_import_path": "Nepavyksta pridėti importavimo kelio", "unable_to_add_partners": "Nepavyksta pridėti partnerių", "unable_to_add_remove_archive": "Nepavyko {archived, select, true {ištraukti iš} other {pridėti prie}} arcyhvo", "unable_to_add_remove_favorites": "Nepavyko {favorite, select, true {įtraukti elemento į mėgstamiausius} other {pašalinti elemento iš mėgstamiausių}}", @@ -971,12 +969,10 @@ "unable_to_delete_asset": "Nepavyko ištrinti elemento", "unable_to_delete_assets": "Klaida trinant elementus", "unable_to_delete_exclusion_pattern": "Nepavyksta ištrinti išimčių šablono", - "unable_to_delete_import_path": "Nepavyksta ištrinti importavimo kelio", "unable_to_delete_shared_link": "Nepavyko ištrinti bendrinimo nuorodos", "unable_to_delete_user": "Nepavyksta ištrinti naudotojo", "unable_to_download_files": "Nepavyksta atsisiųsti failų", "unable_to_edit_exclusion_pattern": "Nepavyksta redaguoti išimčių šablono", - "unable_to_edit_import_path": "Nepavyksta redaguoti išimčių kelio", "unable_to_empty_trash": "Nepavyko ištrinti šiukšliadėžės", "unable_to_enter_fullscreen": "Nepavyksta pereiti į viso ekrano režimą", "unable_to_exit_fullscreen": "Nepavyksta išeiti iš viso ekrano režimo", @@ -1071,6 +1067,7 @@ "features_setting_description": "Valdyti aplikacijos funkcijas", "file_name": "Failo pavadinimas", "file_name_or_extension": "Failo pavadinimas arba plėtinys", + "file_size": "Failo dydis", "filename": "Failopavadinimas", "filetype": "Failo tipas", "filter": "Filtras", @@ -1338,6 +1335,7 @@ "minute": "Minutė", "minutes": "Minutės", "missing": "Trūkstami", + "mobile_app": "Mobili aplikacija", "model": "Modelis", "month": "Mėnesis", "monthly_title_text_date_format": "MMMM y", @@ -1523,6 +1521,7 @@ "port": "Portas", "preferences_settings_subtitle": "Tvarkyti programos nuostatas", "preferences_settings_title": "Nuostatos", + "preparing": "Ruošiama", "preset": "Šablonas", "preview": "Peržiūra", "previous": "Buvęs", @@ -1578,6 +1577,7 @@ "rating_count": "{count, plural, one {# įvertinimas} few {# įvertinimai} other {# įvertinimų}}", "rating_description": "Rodyti EXIF įvertinimus informacijos skydelyje", "read_changelog": "Skaityti pakeitimų sąrašą", + "ready_for_upload": "Paruošta įkėlimui", "recent-albums": "Naujausi albumai", "recent_searches": "Naujausios paieškos", "recently_added": "Neseniai pridėta", @@ -1599,11 +1599,13 @@ "remove_assets_title": "Pašalinti elementus?", "remove_deleted_assets": "Pašalinti Ištrintus Elemenuts", "remove_from_album": "Pašalinti iš albumo", + "remove_from_album_action_prompt": "{count} pašalinta iš albumo", "remove_from_favorites": "Pašalinti iš mėgstamiausių", "remove_from_lock_folder_action_prompt": "{count} ištraukta iš užrakinto aplanko", "remove_from_locked_folder": "Išimti iš užrakinto aplanko", "remove_from_locked_folder_confirmation": "Ar tikrai norite perkelti šias nuotraukas ir vaizdo įrašus iš užrakinto aplanko? Jie taps matomi jūsų galerijoje.", "remove_from_shared_link": "Pašalinti iš bendrinimo nuorodos", + "remove_tag": "Pašalinti žymę", "remove_user": "Pašalinti naudotoją", "removed_api_key": "Pašalintas API Raktas: {name}", "removed_from_archive": "Pašalinta iš archyvo", diff --git a/i18n/lv.json b/i18n/lv.json index 6ff1c4e4ad..4af37ac5ba 100644 --- a/i18n/lv.json +++ b/i18n/lv.json @@ -17,7 +17,6 @@ "add_birthday": "Pievienot dzimšanas dienu", "add_endpoint": "Pievienot galapunktu", "add_exclusion_pattern": "Pievienot izslēgšanas šablonu", - "add_import_path": "Pievienot importa ceļu", "add_location": "Pievienot lokāciju", "add_more_users": "Pievienot vēl lietotājus", "add_partner": "Pievienot partneri", @@ -110,7 +109,6 @@ "job_status": "Uzdevumu statuss", "library_created": "Izveidoja bibliotēku: {library}", "library_deleted": "Bibliotēka dzēsta", - "library_import_path_description": "Norādi importējamo mapi. Šī mape un tās apakšmapes tiks pārbaudīta, lai atrastu attēlus un videoklipus.", "library_scanning": "Periodiska skenēšana", "library_scanning_description": "Konfigurē periodisku bibliotēku skenēšanu", "library_scanning_enable_description": "Iespējot periodisku bibliotēku skenēšanu", @@ -717,8 +715,6 @@ "edit_description_prompt": "Lūdzu, izvēlies jaunu aprakstu:", "edit_exclusion_pattern": "Labot izslēgšanas šablonu", "edit_faces": "Labot sejas", - "edit_import_path": "Labot importa ceļu", - "edit_import_paths": "Labot importa ceļus", "edit_key": "Labot atslēgu", "edit_link": "Rediģēt saiti", "edit_location": "Rediģēt Atrašanās Vietu", @@ -769,7 +765,6 @@ "failed_to_stack_assets": "Neizdevās apvienot failus kaudzē", "failed_to_unstack_assets": "Neizdevās atcelt failu apvienošanu kaudzē", "failed_to_update_notification_status": "Neizdevās mainīt paziņojuma statusu", - "import_path_already_exists": "Šis importa ceļš jau pastāv.", "incorrect_email_or_password": "Nepareizs e-pasts vai parole", "profile_picture_transparent_pixels": "Profila attēlos nevar būt caurspīdīgi pikseļi. Lūdzu, palielini un/vai pārvieto attēlu.", "something_went_wrong": "Kaut kas nogāja greizi", @@ -1300,6 +1295,7 @@ "role_viewer": "Skatītājs", "save": "Saglabāt", "save_to_gallery": "Saglabāt galerijā", + "saved": "Saglabāts", "saved_api_key": "API atslēga saglabāta", "saved_profile": "Profils saglabāts", "saved_settings": "Iestatījumi saglabāti", diff --git a/i18n/mk.json b/i18n/mk.json index e81694e63e..c866b313fd 100644 --- a/i18n/mk.json +++ b/i18n/mk.json @@ -17,7 +17,6 @@ "add_birthday": "Додади роденден", "add_endpoint": "Додади крајна точка", "add_exclusion_pattern": "Додади шаблон за исклучување", - "add_import_path": "Додади патека за импортирање", "add_location": "Додади локација", "add_more_users": "Додади уште корисници", "add_partner": "Додади партнер", @@ -94,7 +93,6 @@ "job_status": "Статус на задачи", "library_created": "Креирана библиотека: {library}", "library_deleted": "Библиотеката е избришана", - "library_import_path_description": "Предложи папка за внес. Оваа папка, вклучува и под папки, ќе биде скенирана за слики и видеа.", "library_scanning": "Периодично скенирање", "library_scanning_description": "Подеси периодично скениранје на библиотеката", "library_scanning_enable_description": "Овозможи периодично скениранје на библиотеката", diff --git a/i18n/ml.json b/i18n/ml.json index ec9eba2794..8847103508 100644 --- a/i18n/ml.json +++ b/i18n/ml.json @@ -17,7 +17,6 @@ "add_birthday": "ജന്മദിനം ചേർക്കുക", "add_endpoint": "എൻഡ്‌പോയിന്റ് ചേർക്കുക", "add_exclusion_pattern": "ഒഴിവാക്കൽ പാറ്റേൺ ചേർക്കുക", - "add_import_path": "ഇമ്പോർട്ട് പാത്ത് ചേർക്കുക", "add_location": "സ്ഥാനം ചേർക്കുക", "add_more_users": "കൂടുതൽ ഉപയോക്താക്കളെ ചേർക്കുക", "add_partner": "പങ്കാളിയെ ചേർക്കുക", @@ -111,7 +110,6 @@ "jobs_failed": "{jobCount, plural, one {# ജോലി പരാജയപ്പെട്ടു} other {# ജോലികൾ പരാജയപ്പെട്ടു}}", "library_created": "{library} എന്ന ലൈബ്രറി സൃഷ്ടിച്ചു", "library_deleted": "ലൈബ്രറി ഇല്ലാതാക്കി", - "library_import_path_description": "ഇമ്പോർട്ടുചെയ്യാൻ ഒരു ഫോൾഡർ വ്യക്തമാക്കുക. സബ്ഫോൾഡറുകൾ ഉൾപ്പെടെ ഈ ഫോൾഡർ ചിത്രങ്ങൾക്കും വീഡിയോകൾക്കുമായി സ്കാൻ ചെയ്യും.", "library_scanning": "ആനുകാലിക സ്കാനിംഗ്", "library_scanning_description": "ആനുകാലിക ലൈബ്രറി സ്കാനിംഗ് കോൺഫിഗർ ചെയ്യുക", "library_scanning_enable_description": "ആനുകാലിക ലൈബ്രറി സ്കാനിംഗ് പ്രവർത്തനക്ഷമമാക്കുക", @@ -869,8 +867,6 @@ "edit_description_prompt": "ദയവായി ഒരു പുതിയ വിവരണം തിരഞ്ഞെടുക്കുക:", "edit_exclusion_pattern": "ഒഴിവാക്കൽ പാറ്റേൺ എഡിറ്റുചെയ്യുക", "edit_faces": "മുഖങ്ങൾ എഡിറ്റുചെയ്യുക", - "edit_import_path": "ഇമ്പോർട്ട് പാത്ത് എഡിറ്റുചെയ്യുക", - "edit_import_paths": "ഇമ്പോർട്ട് പാത്തുകൾ എഡിറ്റുചെയ്യുക", "edit_key": "കീ എഡിറ്റുചെയ്യുക", "edit_link": "ലിങ്ക് എഡിറ്റുചെയ്യുക", "edit_location": "സ്ഥാനം എഡിറ്റുചെയ്യുക", @@ -942,7 +938,6 @@ "failed_to_stack_assets": "അസറ്റുകൾ സ്റ്റാക്ക് ചെയ്യുന്നതിൽ പരാജയപ്പെട്ടു", "failed_to_unstack_assets": "അസറ്റുകൾ അൺ-സ്റ്റാക്ക് ചെയ്യുന്നതിൽ പരാജയപ്പെട്ടു", "failed_to_update_notification_status": "അറിയിപ്പിന്റെ നില അപ്ഡേറ്റ് ചെയ്യുന്നതിൽ പരാജയപ്പെട്ടു", - "import_path_already_exists": "ഈ ഇമ്പോർട്ട് പാത്ത് ഇതിനകം നിലവിലുണ്ട്.", "incorrect_email_or_password": "തെറ്റായ ഇമെയിൽ അല്ലെങ്കിൽ പാസ്‌വേഡ്", "paths_validation_failed": "{paths, plural, one {# പാത്ത്} other {# പാത്തുകൾ}} സാധൂകരണത്തിൽ പരാജയപ്പെട്ടു", "profile_picture_transparent_pixels": "പ്രൊഫൈൽ ചിത്രങ്ങൾക്ക് സുതാര്യമായ പിക്സലുകൾ ഉണ്ടാകരുത്. ദയവായി സൂം ഇൻ ചെയ്യുക കൂടാതെ/അല്ലെങ്കിൽ ചിത്രം നീക്കുക.", @@ -952,7 +947,6 @@ "unable_to_add_assets_to_shared_link": "പങ്കിട്ട ലിങ്കിലേക്ക് അസറ്റുകൾ ചേർക്കാൻ കഴിയില്ല", "unable_to_add_comment": "അഭിപ്രായം ചേർക്കാൻ കഴിയില്ല", "unable_to_add_exclusion_pattern": "ഒഴിവാക്കൽ പാറ്റേൺ ചേർക്കാൻ കഴിയില്ല", - "unable_to_add_import_path": "ഇമ്പോർട്ട് പാത്ത് ചേർക്കാൻ കഴിയില്ല", "unable_to_add_partners": "പങ്കാളികളെ ചേർക്കാൻ കഴിയില്ല", "unable_to_add_remove_archive": "ആർക്കൈവിൽ {archived, select, true {നിന്ന് അസറ്റ് നീക്കംചെയ്യാൻ} other {ലേക്ക് അസറ്റ് ചേർക്കാൻ}} കഴിയില്ല", "unable_to_add_remove_favorites": "പ്രിയപ്പെട്ടവയിലേക്ക് {favorite, select, true {അസറ്റ് ചേർക്കാൻ} other {നിന്ന് അസറ്റ് നീക്കംചെയ്യാൻ}} കഴിയില്ല", @@ -975,12 +969,10 @@ "unable_to_delete_asset": "അസറ്റ് ഇല്ലാതാക്കാൻ കഴിയില്ല", "unable_to_delete_assets": "അസറ്റുകൾ ഇല്ലാതാക്കുന്നതിൽ പിശക്", "unable_to_delete_exclusion_pattern": "ഒഴിവാക്കൽ പാറ്റേൺ ഇല്ലാതാക്കാൻ കഴിയില്ല", - "unable_to_delete_import_path": "ഇമ്പോർട്ട് പാത്ത് ഇല്ലാതാക്കാൻ കഴിയില്ല", "unable_to_delete_shared_link": "പങ്കിട്ട ലിങ്ക് ഇല്ലാതാക്കാൻ കഴിയില്ല", "unable_to_delete_user": "ഉപയോക്താവിനെ ഇല്ലാതാക്കാൻ കഴിയില്ല", "unable_to_download_files": "ഫയലുകൾ ഡൗൺലോഡ് ചെയ്യാൻ കഴിയില്ല", "unable_to_edit_exclusion_pattern": "ഒഴിവാക്കൽ പാറ്റേൺ എഡിറ്റുചെയ്യാൻ കഴിയില്ല", - "unable_to_edit_import_path": "ഇമ്പോർട്ട് പാത്ത് എഡിറ്റുചെയ്യാൻ കഴിയില്ല", "unable_to_empty_trash": "ട്രാഷ് ശൂന്യമാക്കാൻ കഴിയില്ല", "unable_to_enter_fullscreen": "ഫുൾസ്ക്രീനിൽ പ്രവേശിക്കാൻ കഴിയില്ല", "unable_to_exit_fullscreen": "ഫുൾസ്ക്രീനിൽ നിന്ന് പുറത്തുകടക്കാൻ കഴിയില്ല", diff --git a/i18n/mn.json b/i18n/mn.json index 85092fef0d..62e40274af 100644 --- a/i18n/mn.json +++ b/i18n/mn.json @@ -15,7 +15,6 @@ "add_a_name": "Нэр өгөх", "add_a_title": "Гарчиг оруулах", "add_endpoint": "Endpoint нэмэх", - "add_import_path": "Импортлох зам нэмэх", "add_location": "Байршил оруулах", "add_more_users": "Өөр хэрэглэгчид нэмэх", "add_partner": "Хамтрагч нэмэх", diff --git a/i18n/mr.json b/i18n/mr.json index 54cac4b0dc..8404983db1 100644 --- a/i18n/mr.json +++ b/i18n/mr.json @@ -17,7 +17,6 @@ "add_birthday": "जन्मदिवस नोंदवा", "add_endpoint": "एंडपॉइंट जोडा", "add_exclusion_pattern": "अपवाद नमुना जोडा", - "add_import_path": "आयात मार्ग टाका", "add_location": "स्थळ टाका", "add_more_users": "अधिक वापरकर्ते जोडा", "add_partner": "भागीदार जोडा", @@ -32,7 +31,9 @@ "add_to_album_toggle": "{album} साठी निवड बदला", "add_to_albums": "अल्बममध्ये जोडा", "add_to_albums_count": "अल्बमांमध्ये जोडा ({count})", + "add_to_bottom_bar": "मध्ये जोडा", "add_to_shared_album": "सामायिक संग्रहात टाका", + "add_upload_to_stack": "स्टॅकमध्ये अपलोड जोडा", "add_url": "URL प्रविष्ट करा", "added_to_archive": "संग्रहित केले", "added_to_favorites": "आवडत्या संग्रहात जोडले", @@ -48,7 +49,7 @@ "background_task_job": "पृष्ठभूमि कार्य", "backup_database": "डेटाबेस डंप तयार करा", "backup_database_enable_description": "डेटाबेस डंप सक्षम करा", - "backup_keep_last_amount": "पूर्वीच्या किती प्रतिलिपी ठेवायच्या", + "backup_keep_last_amount": "पूर्वीच्या किती डंप्स ठेवायचे", "backup_onboarding_1_description": "क्लाऊडमध्ये किंवा इतर कोणत्याही भौतिक ठिकाणी ठेवलेली ऑफसाइट प्रत.", "backup_onboarding_2_description": "विविध उपकरणांवर स्थानिक प्रती ठेवली जातात. यामध्ये मुख्य फाइल्स आणि त्यांच्या स्थानिक बॅकअपचा समावेश आहे.", "backup_onboarding_3_description": "मुळ फाइल्ससहित तुमच्या डेटाच्या एकूण प्रत्या. यामध्ये 1 ऑफसाइट प्रत आणि 2 स्थानिक प्रतांचा समावेश आहे.", @@ -56,7 +57,7 @@ "backup_onboarding_footer": "Immich चा बॅकअप कसा घ्यावा याबद्दल अधिक माहितीसाठी, कृपया दस्तऐवजीकरण पाहा.", "backup_onboarding_parts_title": "3-2-1 बॅकअपमध्ये समाविष्ट आहे:", "backup_onboarding_title": "बॅकअप", - "backup_settings": "प्रतिलिपी व्यवस्था", + "backup_settings": "डेटाबेस डंप सेटिंग्ज", "backup_settings_description": "माहिती संचय प्रतिलिपी व्यवस्थापन", "cleared_jobs": "{job}: च्या कार्यवाह्या काढल्या", "config_set_by_file": "संरचना सध्या संरचना खतावणीद्वारे निश्चित केली आहे", @@ -111,7 +112,6 @@ "jobs_failed": "{jobCount, plural, other {# अयशस्वी}}", "library_created": "संग्रह तयार केला: {library}", "library_deleted": "संग्रह हटवला", - "library_import_path_description": "आयात करण्यासाठी फोल्डर निवडा. हा फोल्डर आणि त्यामधील उपफोल्डर्स प्रतिमा व व्हिडिओंसाठी स्कॅन केले जातील.", "library_scanning": "नियमित स्कॅनिंग", "library_scanning_description": "नियमित लायब्ररी स्कॅनिंग कॉन्फिगर करा", "library_scanning_enable_description": "नियमित लायब्ररी स्कॅनिंग चालू करा", @@ -124,6 +124,13 @@ "logging_enable_description": "लॉगिंग सक्षम करा", "logging_level_description": "सक्षम झाल्यावर वापरण्यासाठी कोणता लॉग स्तर निवडा.", "logging_settings": "लॉगिंग", + "machine_learning_availability_checks": "उपलब्धता तपासणी", + "machine_learning_availability_checks_description": "उपलब्ध मशीन लर्निंग सर्व्हर आपोआप शोधा आणि त्यांना प्राधान्य द्या", + "machine_learning_availability_checks_enabled": "उपलब्धता तपासणी सक्षम करा", + "machine_learning_availability_checks_interval": "तपासणी अंतर", + "machine_learning_availability_checks_interval_description": "उपलब्धता तपासण्यांमधील अंतर (मिलीसेकंदांत)", + "machine_learning_availability_checks_timeout": "विनंती वेळमर्यादा", + "machine_learning_availability_checks_timeout_description": "उपलब्धता तपासणीसाठी वेळमर्यादा (मिलीसेकंदांत)", "machine_learning_clip_model": "CLIP मॉडेल", "machine_learning_clip_model_description": "सूचीबद्ध CLIP मॉडेलचे नाव येथे. मॉडेल बदलल्यावर सर्व प्रतिमांसाठी ‘स्मार्ट शोध’ नोकरी पुन्हा चालवा.", "machine_learning_duplicate_detection": "प्रतिलिपी शोध", @@ -146,6 +153,18 @@ "machine_learning_min_detection_score_description": "चेहरा शोधण्यासाठी किमान आत्मविश्वास गुणांक 0 ते 1 दरम्यान असावा. कमी मूल्ये अधिक चेहरे शोधतील, परंतु खोटे सकारात्मक देखील होऊ शकतात.", "machine_learning_min_recognized_faces": "किमान ओळखलेले चेहरे", "machine_learning_min_recognized_faces_description": "व्यक्ती तयार करण्यासाठी ओळखल्या गेलेल्या चेहर्यांची किमान संख्या. हे वाढवल्यास चेहरा एका व्यक्तीला न जोडला जाण्याची शक्यता कमी होते, परंतु चुकीच्या व्यक्ती एकत्र केल्याचे परिणाम वाढू शकतात.", + "machine_learning_ocr": "ओ.सी.आर", + "machine_learning_ocr_description": "प्रतिमांमधील मजकूर ओळखण्यासाठी मशीन लर्निंग वापरा", + "machine_learning_ocr_enabled": "ओ.सी.आर सक्षम करा", + "machine_learning_ocr_enabled_description": "हे बंद असल्यास, प्रतिमांवर मजकूर ओळख प्रक्रिया होणार नाही.", + "machine_learning_ocr_max_resolution": "कमाल रिझोल्यूशन", + "machine_learning_ocr_max_resolution_description": "या रिझोल्यूशनपेक्षा मोठ्या पूर्वदृश्यांचे आकारगुणोत्तर न बदलता आकार बदलले जातील. जास्त मूल्ये अधिक अचूक असतात, पण प्रक्रिया करण्यास जास्त वेळ घेतात आणि अधिक मेमरी वापरतात.", + "machine_learning_ocr_min_detection_score": "किमान डिटेक्शन स्कोअर", + "machine_learning_ocr_min_detection_score_description": "मजकूर ओळखण्यासाठी ०–१ मधील किमान विश्वास स्कोअर. कमी मूल्यांवर अधिक मजकूर सापडेल, पण चुकीचे सकारात्मक निकाल (false positives) येऊ शकतात.", + "machine_learning_ocr_min_recognition_score": "किमान ओळख स्कोअर", + "machine_learning_ocr_min_score_recognition_description": "ओळखलेला मजकूर अंतिम मानण्यासाठी ०–१ मधील किमान विश्वास स्कोअर. कमी मूल्यांवर अधिक मजकूर ओळखला जाईल, पण चुकीचे सकारात्मक निकाल (false positives) येऊ शकतात.", + "machine_learning_ocr_model": "ओसीआर मॉडेल", + "machine_learning_ocr_model_description": "सर्व्हर मॉडेल मोबाईल मॉडेलपेक्षा अधिक अचूक असतात, पण प्रक्रिया करण्यास जास्त वेळ घेतात आणि अधिक मेमरी वापरतात.", "machine_learning_settings": "मशीन लर्निंग सेटिंग्ज", "machine_learning_settings_description": "मशीन लर्निंग वैशिष्ट्ये आणि सेटिंग्ज व्यवस्थापित करा", "machine_learning_smart_search": "स्मार्ट शोध", @@ -531,8 +550,10 @@ "autoplay_slideshow": "स्वयंचलित स्लाइडशो", "back": "मागे", "back_close_deselect": "मागे किंवा बंद करा / निवड रद्द करा", + "background_backup_running_error": "पार्श्वभूमी बॅकअप सध्या चालू आहे, मॅन्युअल बॅकअप सुरू करू शकत नाही", "background_location_permission": "बॅकग्राउंडमध्ये स्थान परवानगी द्या", "background_location_permission_content": "बॅकग्राउंडमध्ये नेटवर्क स्विच करण्यासाठी Immich ला नेहमी अचूक स्थान माहिती (Wi-Fi नाव) पाहिजे", + "background_options": "पार्श्वभूमी पर्याय", "backup": "बॅकअप", "backup_album_selection_page_albums_device": "उपकरणावरील अल्बम ({count})", "backup_album_selection_page_albums_tap": "समाविष्ट करण्यासाठी एकदाच टॅप करा; वगळण्यासाठी डबल टॅप करा", @@ -540,8 +561,10 @@ "backup_album_selection_page_select_albums": "अल्बम निवडा", "backup_album_selection_page_selection_info": "निवड माहिती", "backup_album_selection_page_total_assets": "एकूण स्वतंत्र फाईल्स", + "backup_albums_sync": "बॅकअप अल्बम समक्रमण", "backup_all": "सर्व", "backup_background_service_backup_failed_message": "बॅकअप अयशस्वी. पुन्हा प्रयत्न करत आहे…", + "backup_background_service_complete_notification": "अॅसेटचा बॅकअप पूर्ण झाला", "backup_background_service_connection_failed_message": "सर्व्हरशी कनेक्ट करण्यात अयशस्वी. पुन्हा प्रयत्न करत आहे…", "backup_background_service_current_upload_notification": "{filename} अपलोड करत आहे", "backup_background_service_default_notification": "नवीन फाईल्स शोधत आहे…", @@ -856,8 +879,6 @@ "edit_description_prompt": "नवीन वर्णन निवडा:", "edit_exclusion_pattern": "वगळा पॅटर्न संपादित करा", "edit_faces": "चेहऱ्यांवर संपादन करा", - "edit_import_path": "आयात मार्ग संपादित करा", - "edit_import_paths": "आयात मार्गे संपादित करा", "edit_key": "की संपादित करा", "edit_link": "लिंक संपादित करा", "edit_location": "स्थान संपादित करा", @@ -925,7 +946,6 @@ "failed_to_stack_assets": "फाईल्स एकत्र करता आल्या नाहीत", "failed_to_unstack_assets": "फाईल्स विभाजित करता आल्या नाहीत", "failed_to_update_notification_status": "सूचना स्थिती अपडेट करण्यात अयशस्वी", - "import_path_already_exists": "हा आयात मार्ग आधीच अस्तित्वात आहे।", "incorrect_email_or_password": "चुकीचा ईमेल किंवा संकेतशब्द", "paths_validation_failed": "{paths, plural, one {एक मार्ग वैध नाही} other {# मार्ग वैध नाहीत}}", "profile_picture_transparent_pixels": "प्रोफाइल चित्रात पारदर्शक पिक्सेल असू शकत नाहीत. कृपया झूम करा किंवा प्रतिमा हलवा.", @@ -934,7 +954,6 @@ "unable_to_add_assets_to_shared_link": "शेअर लिंकमध्ये फाईल्स जोडता आले नाहीत", "unable_to_add_comment": "टिप्पणी जोडता आले नाही", "unable_to_add_exclusion_pattern": "वगळण्याचे पॅटर्न जोडता आले नाही", - "unable_to_add_import_path": "आयात मार्ग जोडता आले नाही", "unable_to_add_partners": "सहयोगी जोडता आले नाहीत", "unable_to_add_remove_archive": "{archived, select, true{अर्काइव्हमधून फाईल काढता आले नाही} other{अर्काइव्हमध्ये फाईल जोडता आले नाही}}", "unable_to_add_remove_favorites": "{favorite, select, true{फाईल आवडत्या मध्ये जोडता आले नाही} other{फाईल आवडत्या मधून काढता आले नाही}}", @@ -957,12 +976,10 @@ "unable_to_delete_asset": "फाईल हटवता आली नाही", "unable_to_delete_assets": "फाईल्स हटवताना त्रुटी", "unable_to_delete_exclusion_pattern": "वगळणी पॅटर्न हटवता आला नाही", - "unable_to_delete_import_path": "आयात मार्ग हटवता आला नाही", "unable_to_delete_shared_link": "शेअर लिंक हटवता आला नाही", "unable_to_delete_user": "वापरकर्ता हटवता आला नाही", "unable_to_download_files": "फाईल्स डाउनलोड करता आल्या नाहीत", "unable_to_edit_exclusion_pattern": "वगळणी पॅटर्न संपादित करता आला नाही", - "unable_to_edit_import_path": "आयात मार्ग संपादित करता आला नाही", "unable_to_empty_trash": "ट्रॅश रिकामा करता आला नाही", "unable_to_enter_fullscreen": "फुलस्क्रीन मोडमध्ये जाऊ शकत नाही", "unable_to_exit_fullscreen": "फुलस्क्रीन मोडमधून बाहेर पडता आला नाही", @@ -1137,6 +1154,284 @@ "image_alt_text_date_4_or_more_people": "{isVideo, select, true {व्हिडिओ} other {फोटो}} {person1}, {person2} आणि आणखी {additionalCount, number} जणांसोबत {date} ला घेतले", "image_alt_text_date_place": "{isVideo, select, true {व्हिडिओ} other {फोटो}} {city}, {country} येथे {date} ला घेतले", "image_alt_text_date_place_1_person": "{isVideo, select, true {व्हिडिओ} other {फोटो}} {city}, {country} येथे {person1} सोबत {date} ला घेतले", + "image_alt_text_date_place_2_people": "{isVideo, select, true {व्हिडिओ} other {फोटो}} {city}, {country} येथे {person1} आणि {person2} सोबत {date} रोजी घेतलेला", + "image_alt_text_date_place_3_people": "{isVideo, select, true {व्हिडिओ} other {फोटो}} {city}, {country} येथे {person1}, {person2} आणि {person3} सोबत {date} रोजी घेतलेला", + "image_alt_text_date_place_4_or_more_people": "{isVideo, select, true {व्हिडिओ} other {फोटो}} {city}, {country} येथे {person1}, {person2} आणि इतर {additionalCount, number} जणांसोबत {date} रोजी घेतलेला", + "image_saved_successfully": "प्रतिमा जतन केली", + "image_viewer_page_state_provider_download_started": "डाउनलोड सुरू झाले", + "image_viewer_page_state_provider_download_success": "डाउनलोड यशस्वी झाले", + "image_viewer_page_state_provider_share_error": "शेअर करताना त्रुटी", + "immich_logo": "Immich लोगो", + "immich_web_interface": "Immich वेब इंटरफेस", + "import_from_json": "JSON मधून आयात करा", + "import_path": "इम्पोर्ट पाथ", + "in_albums": "{count, plural, one {# album} other {# albums}} मध्ये", + "in_archive": "आर्काइव्हमध्ये", + "in_year": "{year} मध्ये", + "in_year_selector": "मध्ये", + "include_archived": "आर्काइव्ह केलेले समाविष्ट करा", + "include_shared_albums": "शेअर्ड अल्बम समाविष्ट करा", + "include_shared_partner_assets": "भागीदाराचे शेअर्ड अॅसेट्स समाविष्ट करा", + "individual_share": "वैयक्तिक शेअर", + "individual_shares": "वैयक्तिक शेअर्स", + "info": "माहिती", + "interval": { + "day_at_onepm": "दररोज दुपारी १ वाजता", + "hours": "दर {hours, plural, one {hour} other {{hours, number} hours}}", + "night_at_midnight": "दररोज मध्यरात्री", + "night_at_twoam": "दररोज रात्री २ वाजता" + }, + "invalid_date": "अवैध तारीख", + "invalid_date_format": "अवैध तारीख स्वरूप", + "invite_people": "लोकांना आमंत्रित करा", + "invite_to_album": "अल्बममध्ये आमंत्रित करा", + "ios_debug_info_fetch_ran_at": "फेच {dateTime} ला चालले", + "ios_debug_info_last_sync_at": "शेवटचे समक्रमण {dateTime} ला", + "ios_debug_info_no_processes_queued": "कोणत्याही पार्श्वभूमी प्रक्रिया प्रतीक्षेत नाहीत", + "ios_debug_info_no_sync_yet": "अजून कोणताही पार्श्वभूमी सिंक जॉब चाललेला नाही", + "ios_debug_info_processes_queued": "{count, plural, one {{count} पार्श्वभूमी प्रक्रिया प्रतीक्षेत} other {{count} पार्श्वभूमी प्रक्रिया प्रतीक्षेत}}", + "ios_debug_info_processing_ran_at": "प्रोसेसिंग {dateTime} ला चालले", + "items_count": "{count, plural, one {# आयटम} other {# आयटम} }", + "jobs": "जॉब्स", + "keep": "ठेवा", + "keep_all": "सगळे ठेवा", + "keep_this_delete_others": "हे ठेवा, इतर हटवा", + "kept_this_deleted_others": "हे अॅसेट ठेवले आणि {count, plural, one {इतर # अॅसेट हटवले} other {इतर # अॅसेट्स हटवले}}", + "keyboard_shortcuts": "कीबोर्ड शॉर्टकट्स", + "language": "भाषा", + "language_no_results_subtitle": "तुमचा शोध शब्द बदलून पाहा", + "language_no_results_title": "कोणतीही भाषा सापडली नाही", + "language_search_hint": "भाषा शोधा...", + "language_setting_description": "आपली पसंतीची भाषा निवडा", + "large_files": "मोठ्या फाईल्स", + "last": "शेवटचे", + "last_months": "{count, plural, one {मागील महिना} other {मागील # महिने}}", + "last_seen": "शेवटचे पाहिले", + "latest_version": "नवीनतम आवृत्ती", + "latitude": "अक्षांश", + "leave": "सोडा", + "leave_album": "अल्बम सोडा", + "lens_model": "लेन्स मॉडेल", + "let_others_respond": "इतरांना प्रतिसाद देऊ द्या", + "level": "पातळी", + "library": "लायब्ररी", + "library_add_folder": "फोल्डर जोडा", + "library_edit_folder": "फोल्डर संपादित करा", + "library_options": "लायब्ररी पर्याय", + "library_page_device_albums": "डिव्हाइसवरील अल्बम्स", + "library_page_new_album": "नवीन अल्बम", + "library_page_sort_asset_count": "अॅसेट्सची संख्या", + "library_page_sort_created": "तयार केलेली तारीख", + "library_page_sort_last_modified": "शेवटचा बदल", + "library_page_sort_title": "अल्बमचे शीर्षक", + "licenses": "परवाने", + "light": "लाइट", + "like": "लाईक", + "like_deleted": "लाईक काढून टाकले", + "link_motion_video": "मोशन व्हिडिओ लिंक करा", + "link_to_oauth": "OAuth शी लिंक करा", + "linked_oauth_account": "लिंक केलेले OAuth खाते", + "list": "यादी", + "loading": "लोड होत आहे", + "loading_search_results_failed": "शोध निकाल लोड करण्यात अयशस्वी", + "local": "स्थानिक", + "local_asset_cast_failed": "सर्व्हरवर अपलोड न केलेले अॅसेट कास्ट करू शकत नाही", + "local_assets": "स्थानिक अॅसेट्स", + "local_media_summary": "स्थानिक मीडियाचा सारांश", + "local_network": "स्थानिक नेटवर्क", + "local_network_sheet_info": "दिलेल्या Wi-Fi नेटवर्कवर असताना अॅप या URL द्वारे सर्व्हरशी जोडेल", + "location": "लोकेशन", + "location_permission": "लोकेशन परवानगी", + "location_permission_content": "ऑटो-स्विचिंग फीचर वापरण्यासाठी Immich ला अचूक लोकेशन परवानगी हवी, म्हणजे ते सध्याच्या Wi-Fi नेटवर्कचे नाव वाचू शकेल", + "location_picker_choose_on_map": "नकाशावर निवडा", + "location_picker_latitude_error": "योग्य अक्षांश भरा", + "location_picker_latitude_hint": "येथे तुमचा अक्षांश भरा", + "location_picker_longitude_error": "योग्य रेखांश भरा", + "location_picker_longitude_hint": "येथे तुमचा रेखांश भरा", + "lock": "लॉक", + "locked_folder": "लॉक केलेला फोल्डर", + "log_detail_title": "लॉग तपशील", + "log_out": "लॉग आऊट", + "log_out_all_devices": "सर्व डिव्हाइसवरून लॉग आऊट करा", + "logged_in_as": "{user} म्हणून लॉग इन", + "logged_out_all_devices": "सर्व डिव्हाइसवरून लॉग आऊट झाले", + "logged_out_device": "डिव्हाइसवरून लॉग आऊट झाले", + "login": "लॉगिन", + "login_disabled": "लॉगिन बंद केले आहे", + "login_form_api_exception": "API अपवाद. कृपया सर्व्हर URL तपासा आणि पुन्हा प्रयत्न करा.", + "login_form_back_button_text": "मागे", + "login_form_email_hint": "youremail@email.com", + "login_form_endpoint_hint": "http://तुमचा-सर्व्हर-IP:पोर्ट", + "login_form_endpoint_url": "सर्व्हर एंडपॉइंट URL", + "login_form_err_http": "कृपया http:// किंवा https:// नमूद करा", + "login_form_err_invalid_email": "अवैध ईमेल", + "login_form_err_invalid_url": "अवैध URL", + "login_form_err_leading_whitespace": "सुरुवातीला स्पेस आहे", + "login_form_err_trailing_whitespace": "शेवटी स्पेस आहे", + "login_form_failed_get_oauth_server_config": "OAuth वापरून लॉगिन करताना त्रुटी, सर्व्हर URL तपासा", + "login_form_failed_get_oauth_server_disable": "या सर्व्हरवर OAuth सुविधा उपलब्ध नाही", + "login_form_failed_login": "लॉगिन करताना त्रुटी, सर्व्हर URL, ईमेल आणि पासवर्ड तपासा", + "login_form_handshake_exception": "सर्व्हरसह handshake exception आली. तुम्ही self-signed प्रमाणपत्र वापरत असाल तर सेटिंग्जमध्ये self-signed प्रमाणपत्र समर्थन सक्षम करा.", + "login_form_password_hint": "पासवर्ड", + "login_form_save_login": "लॉगिन ठेवून द्या", + "login_form_server_empty": "सर्व्हर URL भरा.", + "login_form_server_error": "सर्व्हरशी जोडता आले नाही.", + "login_has_been_disabled": "लॉगिन बंद केले आहे.", + "login_password_changed_error": "तुमचा पासवर्ड अपडेट करताना त्रुटी आली", + "login_password_changed_success": "पासवर्ड यशस्वीपणे अपडेट झाला.", + "logout_all_device_confirmation": "तुम्हाला नक्की सर्व डिव्हाइसवरून लॉग आऊट करायचे आहे का?", + "logout_this_device_confirmation": "तुम्हाला नक्की या डिव्हाइसवरून लॉग आऊट करायचे आहे का?", + "logs": "लॉग्स", + "longitude": "रेखांश", + "look": "लूक", + "loop_videos": "व्हिडिओ लूप करा", + "loop_videos_description": "तपशील दृश्यात व्हिडिओ आपोआप लूप होण्यासाठी हे सक्षम करा.", + "main_branch_warning": "तुम्ही development आवृत्ती वापरत आहात; आम्ही ठामपणे release आवृत्ती वापरण्याची शिफारस करतो!", + "main_menu": "मुख्य मेनू", + "maintenance_description": "Immich ला देखभाल मोड मध्ये ठेवले आहे.", + "maintenance_end": "देखभाल मोड समाप्त करा", + "maintenance_end_error": "देखभाल मोड संपवण्यात अयशस्वी.", + "maintenance_logged_in_as": "सध्या {user} म्हणून लॉग इन आहे", + "maintenance_title": "तात्पुरते उपलब्ध नाही", + "make": "तयार करा", + "manage_geolocation": "लोकेशन व्यवस्थापित करा", + "manage_media_access_rationale": "अॅसेट्स कचऱ्यात हलवणे आणि तिथून परत आणणे योग्य प्रकारे हाताळण्यासाठी ही परवानगी आवश्यक आहे.", + "manage_media_access_settings": "सेटिंग्ज उघडा", + "manage_media_access_subtitle": "Immich अॅपला मीडिया फाइल्स व्यवस्थापित व हलवण्याची परवानगी द्या.", + "manage_media_access_title": "मीडिया मॅनेजमेंट प्रवेश", + "manage_shared_links": "शेअर्ड लिंक व्यवस्थापित करा", + "manage_sharing_with_partners": "पार्टनर्ससोबत शेअरींग व्यवस्थापित करा", + "manage_the_app_settings": "अॅप सेटिंग्ज व्यवस्थापित करा", + "manage_your_account": "तुमचे खाते व्यवस्थापित करा", + "manage_your_api_keys": "तुमच्या API कीज व्यवस्थापित करा", + "manage_your_devices": "तुमची लॉगिन असलेली डिव्हाइसेस व्यवस्थापित करा", + "manage_your_oauth_connection": "तुमचे OAuth कनेक्शन व्यवस्थापित करा", + "map": "नकाशा", + "map_assets_in_bounds": "{count, plural, =0 {या भागात कोणतेही फोटो नाहीत} one {# फोटो} other {# फोटो}}", + "map_cannot_get_user_location": "वापरकर्त्याचे लोकेशन मिळू शकले नाही", + "map_location_dialog_yes": "होय", + "map_location_picker_page_use_location": "हे लोकेशन वापरा", + "map_location_service_disabled_content": "सध्याच्या लोकेशनवरील अॅसेट्स दाखवण्यासाठी लोकेशन सेवा सक्षम असणे आवश्यक आहे. तुम्हाला ती आत्ता सक्षम करायची आहे का?", + "map_location_service_disabled_title": "लोकेशन सेवा बंद आहे", + "map_marker_for_images": "{city}, {country} येथे घेतलेल्या प्रतिमांसाठी नकाशा मार्कर", + "map_marker_with_image": "प्रतिमेसह नकाशा मार्कर", + "map_no_location_permission_content": "सध्याच्या लोकेशनवरील अॅसेट्स दाखवण्यासाठी लोकेशन परवानगी आवश्यक आहे. तुम्हाला ती परवानगी आत्ता द्यायची आहे का?", + "map_no_location_permission_title": "लोकेशन परवानगी नाकारली", + "map_settings": "नकाशा सेटिंग्ज", + "map_settings_dark_mode": "डार्क मोड", + "map_settings_date_range_option_day": "मागील २४ तास", + "map_settings_date_range_option_days": "मागील {days} दिवस", + "map_settings_date_range_option_year": "मागील वर्ष", + "map_settings_date_range_option_years": "मागील {years} वर्षे", + "map_settings_dialog_title": "नकाशा सेटिंग्ज", + "map_settings_include_show_archived": "आर्काइव्ह केलेले समाविष्ट करा", + "map_settings_include_show_partners": "पार्टनर्स समाविष्ट करा", + "map_settings_only_show_favorites": "फक्त आवडते दाखवा", + "map_settings_theme_settings": "नकाशा थीम", + "map_zoom_to_see_photos": "फोटो पाहण्यासाठी झूम आउट करा", + "mark_all_as_read": "सर्व वाचले म्हणून चिन्हांकित करा", + "mark_as_read": "वाचले म्हणून चिन्हांकित करा", + "marked_all_as_read": "सर्व वाचले म्हणून चिन्हांकित केले", + "matches": "जुळणारे", + "matching_assets": "जुळणारे अॅसेट्स", + "media_type": "मीडिया प्रकार", + "memories": "आठवणी", + "memories_all_caught_up": "सगळे पाहून झाले", + "memories_check_back_tomorrow": "आणखी आठवणींसाठी उद्या परत पहा", + "memories_setting_description": "आठवणीत काय दिसेल ते व्यवस्थापित करा", + "memories_start_over": "पुन्हा सुरू करा", + "memories_swipe_to_close": "बंद करण्यासाठी वर स्वाइप करा", + "memory": "आठवण", + "memory_lane_title": "मेमरी लेन {title}", + "menu": "मेनू", + "merge": "मर्ज करा", + "merge_people": "लोक मर्ज करा", + "merge_people_limit": "तुम्ही एकावेळी जास्तीत जास्त ५ चेहरेच मर्ज करू शकता", + "merge_people_prompt": "तुम्हाला हे लोक मर्ज करायचे आहेत का? ही क्रिया परत बदलता येणार नाही.", + "merge_people_successfully": "लोक यशस्वीपणे मर्ज केले", + "merged_people_count": "{count, plural, one {# व्यक्ती मर्ज केली} other {# व्यक्ती मर्ज केल्या}}", + "minimize": "मिनिमाईज करा", + "minute": "मिनिट", + "minutes": "मिनिटे", + "missing": "मिसिंग", + "mobile_app": "मोबाईल अॅप", + "mobile_app_download_onboarding_note": "खाली दिलेल्या पर्यायांचा वापर करून साथीदार मोबाईल अॅप डाउनलोड करा", + "model": "मॉडेल", + "month": "महिना", + "monthly_title_text_date_format": "एमएमएमएम वाई", + "more": "अधिक", + "move": "हलवा", + "move_off_locked_folder": "लॉक फोल्डरच्या बाहेर हलवा", + "move_to": "येथे हलवा", + "move_to_lock_folder_action_prompt": "{count} लॉक फोल्डरमध्ये जोडले", + "move_to_locked_folder": "लॉक फोल्डरमध्ये हलवा", + "move_to_locked_folder_confirmation": "हे फोटो आणि व्हिडिओ सर्व अल्बममधून काढले जातील आणि फक्त लॉक फोल्डरमधूनच दिसतील", + "moved_to_archive": "{count, plural, one {# अॅसेट आर्काइव्हमध्ये हलवला} other {# अॅसेट्स आर्काइव्हमध्ये हलवले}}", + "moved_to_library": "{count, plural, one {# अॅसेट लायब्ररीत हलवला} other {# अॅसेट्स लायब्ररीत हलवले}}", + "moved_to_trash": "कचरापेटीत हलवले", + "multiselect_grid_edit_date_time_err_read_only": "फक्त-वाचन (read-only) अॅसेटची तारीख बदलू शकत नाही, वगळत आहोत", + "multiselect_grid_edit_gps_err_read_only": "फक्त-वाचन (read-only) अॅसेटचे लोकेशन बदलू शकत नाही, वगळत आहोत", + "mute_memories": "आठवणी म्यूट करा", + "my_albums": "माझे अल्बम्स", + "name": "नाव", + "name_or_nickname": "नाव किंवा टोपणनाव", + "navigate": "नेव्हिगेट करा", + "navigate_to_time": "वेळेकडे नेव्हिगेट करा", + "network_requirement_photos_upload": "फोटो बॅकअपसाठी सेल्युलर डेटा वापरा", + "network_requirement_videos_upload": "व्हिडिओ बॅकअपसाठी सेल्युलर डेटा वापरा", + "network_requirements": "नेटवर्क आवश्यकता", + "network_requirements_updated": "नेटवर्क आवश्यकता बदलल्या, बॅकअप क्यू रीसेट करत आहोत", + "networking_settings": "नेटवर्किंग", + "networking_subtitle": "सर्व्हर एंडपॉइंट सेटिंग्ज व्यवस्थापित करा", + "never": "कधीच नाही", + "new_album": "नवीन अल्बम", + "new_api_key": "नवीन API की", + "new_date_range": "नवीन तारीख श्रेणी", + "new_password": "नवीन पासवर्ड", + "new_person": "नवीन व्यक्ती", + "new_pin_code": "नवीन PIN कोड", + "new_pin_code_subtitle": "तुम्ही प्रथमच लॉक फोल्डर उघडत आहात. हे पान सुरक्षितपणे उघडण्यासाठी एक PIN कोड तयार करा", + "new_timeline": "नवीन टाइमलाइन", + "new_update": "नवीन अपडेट", + "new_user_created": "नवीन वापरकर्ता तयार झाला", + "new_version_available": "नवीन आवृत्ती उपलब्ध", + "newest_first": "सर्वात नवी प्रथम", + "next": "पुढे", + "next_memory": "पुढील आठवण", + "no": "नाही", + "no_albums_message": "तुमचे फोटो आणि व्हिडिओ व्यवस्थित करण्यासाठी एक अल्बम तयार करा", + "no_albums_with_name_yet": "या नावाचा अजून कोणताही अल्बम नाही असे दिसते.", + "no_albums_yet": "अजून तुमच्याकडे कोणतेही अल्बम नाहीत असे दिसते.", + "no_archived_assets_message": "तुमच्या फोटो दृश्यातून लपवण्यासाठी फोटो आणि व्हिडिओ आर्काइव्ह करा", + "no_assets_message": "तुमचा पहिला फोटो अपलोड करण्यासाठी क्लिक करा", + "no_assets_to_show": "दाखवण्यासाठी कोणतेही अॅसेट नाहीत", + "no_cast_devices_found": "कोणतेही कास्ट डिव्हाइस सापडले नाही", + "no_checksum_local": "चेकसम उपलब्ध नाही — स्थानिक अॅसेट्स आणू शकत नाही", + "no_checksum_remote": "चेकसम उपलब्ध नाही — रिमोट अॅसेट आणू शकत नाही", + "no_devices": "कोणतीही अधिकृत डिव्हाइसेस नाहीत", + "no_duplicates_found": "कोणतेही डुप्लिकेट्स सापडले नाहीत.", + "no_exif_info_available": "EXIF माहिती उपलब्ध नाही", + "no_explore_results_message": "तुमचा संग्रह एक्सप्लोर करण्यासाठी आणखी फोटो अपलोड करा.", + "no_favorites_message": "तुमचे सर्वोत्तम फोटो आणि व्हिडिओ पटकन शोधण्यासाठी त्यांना आवडत्यांत जोडा", + "no_libraries_message": "तुमचे फोटो आणि व्हिडिओ पाहण्यासाठी बाह्य लायब्ररी तयार करा", + "no_local_assets_found": "या चेकसमसह कोणतेही स्थानिक अॅसेट सापडले नाही", + "no_locked_photos_message": "लॉक फोल्डरमधील फोटो आणि व्हिडिओ लपवलेले आहेत आणि लायब्ररी ब्राउज किंवा शोधताना दिसणार नाहीत.", + "no_name": "नाव नाही", + "no_notifications": "कोणत्याही सूचना नाहीत", + "no_people_found": "जुळणारे कोणतेही लोक सापडले नाहीत", + "no_places": "कोणतीही ठिकाणे नाहीत", + "no_remote_assets_found": "या चेकसमसह कोणतेही रिमोट अॅसेट सापडले नाही", + "no_results": "कोणतेही निकाल नाहीत", + "no_results_description": "समार्थक शब्द किंवा अधिक सर्वसाधारण कीवर्ड वापरून पाहा", + "no_shared_albums_message": "तुमच्या नेटवर्कमधील लोकांशी फोटो आणि व्हिडिओ शेअर करण्यासाठी अल्बम तयार करा", + "no_uploads_in_progress": "कोणतेही अपलोड सुरू नाही", + "not_allowed": "परवानगी नाही", + "not_available": "उपलब्ध नाही", + "not_in_any_album": "कोणत्याही अल्बममध्ये नाही", + "not_selected": "निवडलेले नाही", + "note_apply_storage_label_to_previously_uploaded assets": "नोट: आधी अपलोड केलेल्या अॅसेट्सवर स्टोरेज लेबल लागू करण्यासाठी हा आदेश चालवा", + "notes": "नोट्स", + "nothing_here_yet": "इथे अजून काही नाही", "notification_permission_dialog_content": "सूचना सक्षम करण्यासाठी सेटिंग्जमध्ये जा आणि अनुमती द्या.", "notification_permission_list_tile_content": "सूचना सक्षम करण्यासाठी परवानगी द्या.", "notification_permission_list_tile_enable_button": "सूचना सक्षम करा", diff --git a/i18n/ms.json b/i18n/ms.json index c72b1ff688..0491e3953c 100644 --- a/i18n/ms.json +++ b/i18n/ms.json @@ -17,7 +17,6 @@ "add_birthday": "Tambah hari jadi", "add_endpoint": "Tambah titik akhir", "add_exclusion_pattern": "Tambahkan corak pengecualian", - "add_import_path": "Tambahkan laluan import", "add_location": "Tambah lokasi", "add_more_users": "Tambah user lagi", "add_partner": "Tambah rakan", @@ -105,7 +104,6 @@ "jobs_failed": "{jobCount, plural, other {# gagal}}", "library_created": "Pustaka dicipta: {library}", "library_deleted": "Pustaka dipadamkan", - "library_import_path_description": "Tentukan folder untuk diimport. Folder ini, termasuk subfolder, akan diimbas untuk imej dan video.", "library_scanning": "Pengimbasan Berkala", "library_scanning_description": "Konfigurasikan pengimbasan perpustakaan berkala", "library_scanning_enable_description": "Dayakan pengimbasan perpustakaan berkala", diff --git a/i18n/nb_NO.json b/i18n/nb_NO.json index 071dd27a16..4476f905d3 100644 --- a/i18n/nb_NO.json +++ b/i18n/nb_NO.json @@ -17,7 +17,6 @@ "add_birthday": "Legg til bursdag", "add_endpoint": "API endepunkt", "add_exclusion_pattern": "Legg til ekskluderingsmønster", - "add_import_path": "Legg til importsti", "add_location": "Legg til sted", "add_more_users": "Legg til flere brukere", "add_partner": "Legg til partner", @@ -32,6 +31,7 @@ "add_to_album_toggle": "Avhuking for {album}", "add_to_albums": "Legg til i album", "add_to_albums_count": "Legg til i album ({count})", + "add_to_bottom_bar": "Legg til i", "add_to_shared_album": "Legg til delt album", "add_upload_to_stack": "Legg til opplasting i stakken", "add_url": "Legg til URL", @@ -112,13 +112,15 @@ "jobs_failed": "{jobCount, plural, other {# mislyktes}}", "library_created": "Opprettet bibliotek: {library}", "library_deleted": "Bibliotek slettet", - "library_import_path_description": "Spesifiser en mappe for importering. Denne mappen, inkludert undermapper, vil bli skannet for bilder og videoer.", + "library_details": "Bibliotekdetaljer", + "library_remove_folder_prompt": "Er du sikker på at du vil fjerne denne import-mappen?", "library_scanning": "Periodisk skanning", "library_scanning_description": "Konfigurer periodisk skanning av bibliotek", "library_scanning_enable_description": "Aktiver periodisk skanning av bibliotek", "library_settings": "Eksternt bibliotek", "library_settings_description": "Administrer innstillinger for eksterne bibliotek", "library_tasks_description": "Skann eksterne biblioteker for nye og/eller endrede ressurser", + "library_updated": "Oppdatert bibliotek", "library_watching_enable_description": "Overvåk eksterne bibliotek for filendringer", "library_watching_settings": "Overvåkning av bibliotek [EKSPERIMENTELL]", "library_watching_settings_description": "Se automatisk etter endrede filer", @@ -154,9 +156,9 @@ "machine_learning_min_detection_score_description": "Minimum tillitspoeng for at et ansikt skal bli oppdaget, på en skala fra 0 til 1. Lavere verdier vil oppdage flere ansikter, men kan føre til falske positiver.", "machine_learning_min_recognized_faces": "Minimum antall gjenkjente ansikter", "machine_learning_min_recognized_faces_description": "Det minste antallet gjenkjente ansikter som kreves for å opprette en person. Å øke dette gjør ansiktsgjenkjenning mer presis på bekostning av å øke sjansen for at et ansikt ikke tilordnes til en person.", - "machine_learning_ocr": "OCR", + "machine_learning_ocr": "Tekstgjenkjenning", "machine_learning_ocr_description": "Bruk maskinlæring til å gjenkjenne tekst i bilder", - "machine_learning_ocr_enabled": "Aktiver OCR", + "machine_learning_ocr_enabled": "Aktiver tekstgjenkjenning", "machine_learning_ocr_enabled_description": "Hvis deaktivert, vil ikke bilder bli tekstgjenkjent.", "machine_learning_ocr_max_resolution": "Maksimal oppløsning", "machine_learning_ocr_max_resolution_description": "Forhåndsvisninger over denne oppløsningen vil bli endret i størrelse samtidig som sideforholdet bevares. Høyere verdier er mer nøyaktige, men tar lengre tid å behandle og bruker mer minne.", @@ -164,7 +166,7 @@ "machine_learning_ocr_min_detection_score_description": "Minimum konfidenspoeng for at tekst skal kunne oppdages er fra 0–1. Lavere verdier vil oppdage mer tekst, men kan føre til falske positiver.", "machine_learning_ocr_min_recognition_score": "Minste deteksjonspoengsum", "machine_learning_ocr_min_score_recognition_description": "Minste deteksjonspoengsum for at tekst skal bli gjenkjent fra 0-1. Lavere verdier vil gjenkjenne mer tekst, men kan gi falske positiver.", - "machine_learning_ocr_model": "OCR modell", + "machine_learning_ocr_model": "Tekstgjenkjenningsmodell", "machine_learning_ocr_model_description": "Server modeller er mer nøyaktige enn mobilmodeller, men de bruker lengre tid og mer minne.", "machine_learning_settings": "Innstillinger for maskinlæring", "machine_learning_settings_description": "Administrer maskinlæringsfunksjoner og innstillinger", @@ -173,6 +175,9 @@ "machine_learning_smart_search_enabled": "Aktiver smart søk", "machine_learning_smart_search_enabled_description": "Hvis deaktivert, vil bilder ikke bli enkodet for smart søk.", "machine_learning_url_description": "URL til maskinlærings-serveren. Hvis mer enn en URL er lagt inn, hver server vill bli forsøkt en om gangen frem til en svarer suksessfullt, i rekkefølge fra først til sist. Servere som ikke svarer vil midlertidig bli oversett frem til dem svarer igjen.", + "maintenance_settings": "Vedlikehold", + "maintenance_settings_description": "Sett Immich i vedlikeholds modus.", + "maintenance_start": "Start vedlikeholdsmodus", "manage_concurrency": "Administrer samtidighet", "manage_log_settings": "Administrer logginnstillinger", "map_dark_style": "Mørk stil", @@ -475,6 +480,7 @@ "allow_edits": "Tillat redigering", "allow_public_user_to_download": "Tillat uautentiserte brukere å laste ned", "allow_public_user_to_upload": "Tillat uautentiserte brukere å laste opp", + "allowed": "Tillatt", "alt_text_qr_code": "QR-kodebilde", "anti_clockwise": "Mot klokken", "api_key": "API-nøkkel", @@ -894,8 +900,6 @@ "edit_description_prompt": "Vennligst velg en ny beskrivelse:", "edit_exclusion_pattern": "Rediger utelukkelsesmønster", "edit_faces": "Rediger ansikter", - "edit_import_path": "Rediger importsti", - "edit_import_paths": "Rediger importstier", "edit_key": "Rediger nøkkel", "edit_link": "Endre lenke", "edit_location": "Rediger sted", @@ -967,7 +971,6 @@ "failed_to_stack_assets": "Mislyktes med å stable bilder", "failed_to_unstack_assets": "Mislyktes med å avstable bilder", "failed_to_update_notification_status": "Kunne ikke oppdatere varslingsstatusen", - "import_path_already_exists": "Denne importstien eksisterer allerede.", "incorrect_email_or_password": "Feil epost eller passord", "paths_validation_failed": "{paths, plural, one {# sti} other {# sti}} mislyktes validering", "profile_picture_transparent_pixels": "Profil bilde kan ikke ha gjennomsiktige piksler. Vennligst zoom inn og/eller flytt bilde.", @@ -977,7 +980,6 @@ "unable_to_add_assets_to_shared_link": "Kunne ikke legge til bilder til delt lenke", "unable_to_add_comment": "Kunne ikke legge til kommentar", "unable_to_add_exclusion_pattern": "Kunne ikke legge til eksklusjonsmønster", - "unable_to_add_import_path": "Kunne ikke legge til importsti", "unable_to_add_partners": "Kunne ikke legge til partnere", "unable_to_add_remove_archive": "Kunne ikke {archived, select, true {fjerne element fra} other {flytte element til}} arkivet", "unable_to_add_remove_favorites": "Kunne ikke {favorite, select, true {legge til element til} other {fjerne element fra}} favoritter", @@ -1000,12 +1002,10 @@ "unable_to_delete_asset": "Kunne ikke slette filen", "unable_to_delete_assets": "Feil med å slette bilde", "unable_to_delete_exclusion_pattern": "Kunne ikke slette eksklusjonsmønster", - "unable_to_delete_import_path": "Kunne ikke slette importsti", "unable_to_delete_shared_link": "Kunne ikke slette delt lenke", "unable_to_delete_user": "Kunne ikke slette bruker", "unable_to_download_files": "Kunne ikke laste ned filer", "unable_to_edit_exclusion_pattern": "Kunne ikke redigere eksklusjonsmønster", - "unable_to_edit_import_path": "Kunne ikke redigere importsti", "unable_to_empty_trash": "Kunne ikke Tømme papirkurven", "unable_to_enter_fullscreen": "Kunne ikke gå inn i fullskjerm", "unable_to_exit_fullscreen": "Kunne ikke gå ut fra fullskjerm", @@ -1196,6 +1196,8 @@ "import_path": "Import-sti", "in_albums": "I {count, plural, one {# album} other {# albums}}", "in_archive": "I arkiv", + "in_year": "Om {year}", + "in_year_selector": "Om", "include_archived": "Inkluder arkiverte", "include_shared_albums": "Inkluder delte album", "include_shared_partner_assets": "Inkluder delte partnerfiler", @@ -1232,6 +1234,7 @@ "language_setting_description": "Velg ditt foretrukne språk", "large_files": "Store Filer", "last": "Siste", + "last_months": "{count, plural, one {sist måned} other {siste # måned}}", "last_seen": "Sist sett", "latest_version": "Siste versjon", "latitude": "Breddegrad", @@ -1314,6 +1317,10 @@ "main_menu": "Hovedmeny", "make": "Merke", "manage_geolocation": "Administrer plassering", + "manage_media_access_rationale": "Denne tillatelsen er nødvendig for riktig håndtering av flytting av objekter til papirkurven og gjenoppretting av dem fra den.", + "manage_media_access_settings": "Åpne innstillinger", + "manage_media_access_subtitle": "Tillatt Immich appen å håndtere og flytte mediefiler.", + "manage_media_access_title": "Media håndteringstilgang", "manage_shared_links": "Håndter delte linker", "manage_sharing_with_partners": "Administrer deling med partnere", "manage_the_app_settings": "Administrer appinnstillingene", @@ -1406,6 +1413,7 @@ "new_pin_code": "Ny PIN-kode", "new_pin_code_subtitle": "Dette er første gang du åpner den låste mappen. Lag en PIN-kode for å sikre tilgangen til denne siden", "new_timeline": "Ny tidslinje", + "new_update": "Ny oppdatering", "new_user_created": "Ny bruker opprettet", "new_version_available": "NY VERSJON TILGJENGELIG", "newest_first": "Nyeste først", @@ -1421,6 +1429,7 @@ "no_cast_devices_found": "Ingen caste-enheter oppdaget", "no_checksum_local": "Ingen sjekksum tilgjengelig - Kunne ikke hente lokale elementer", "no_checksum_remote": "Ingen sjekksum tilgjengelig - Kunne ikke hente eksterne elementer", + "no_devices": "Ingen autoriserte enheter", "no_duplicates_found": "Ingen duplikater ble funnet.", "no_exif_info_available": "Ingen EXIF-informasjon tilgjengelig", "no_explore_results_message": "Last opp flere bilder for å utforske samlingen din.", @@ -1437,6 +1446,7 @@ "no_results_description": "Prøv et synonym eller mer generelt søkeord", "no_shared_albums_message": "Opprett et album for å dele bilder og videoer med personer i nettverket ditt", "no_uploads_in_progress": "Ingen opplasting pågår", + "not_allowed": "Ikke tillatt", "not_available": "Ikke tilgjengelig", "not_in_any_album": "Ikke i noe album", "not_selected": "Ikke valgt", @@ -1453,7 +1463,7 @@ "oauth": "OAuth", "obtainium_configurator": "Obtainium konfigurator", "obtainium_configurator_instructions": "Bruk Obtainium for å installere og oppdatere Android appen direkte fra Immich sin Github utgivelse. Opprett en API nøkkel og velg en variant for å lage din Obtainium konfigurasjonslink", - "ocr": "OCR", + "ocr": "Tekstgjenkjenning", "official_immich_resources": "Offisielle Immich-ressurser", "offline": "Frakoblet", "offset": "Forskyving", @@ -1547,6 +1557,8 @@ "photos_count": "{count, plural, one {{count, number} Bilde} other {{count, number} Bilder}}", "photos_from_previous_years": "Bilder fra tidliger år", "pick_a_location": "Velg et sted", + "pick_custom_range": "Tilpasset område", + "pick_date_range": "Velg ett datoområde", "pin_code_changed_successfully": "Endring av PIN kode vellykket", "pin_code_reset_successfully": "Vellykket resatt PIN kode", "pin_code_setup_successfully": "Vellykket oppsett av PIN kode", @@ -1752,7 +1764,7 @@ "search_filter_location_title": "Velg lokasjon", "search_filter_media_type": "Medietype", "search_filter_media_type_title": "Velg medietype", - "search_filter_ocr": "Søk med OCR", + "search_filter_ocr": "Søk etter tekst i bilde", "search_filter_people_title": "Velg mennesker", "search_for": "Søk etter", "search_for_existing_person": "Søk etter eksisterende person", @@ -2027,6 +2039,7 @@ "third_party_resources": "Tredjeparts Ressurser", "time": "Tid", "time_based_memories": "Tidsbaserte minner", + "time_based_memories_duration": "Antall sekunder å vise hvert bilde.", "timeline": "Tidslinje", "timezone": "Tidssone", "to_archive": "Arkiv", diff --git a/i18n/nl.json b/i18n/nl.json index 62be7e4a15..12d99f18da 100644 --- a/i18n/nl.json +++ b/i18n/nl.json @@ -17,7 +17,6 @@ "add_birthday": "Voeg een verjaardag toe", "add_endpoint": "Server toevoegen", "add_exclusion_pattern": "Uitsluitingspatroon toevoegen", - "add_import_path": "Import-pad toevoegen", "add_location": "Locatie toevoegen", "add_more_users": "Meer gebruikers toevoegen", "add_partner": "Partner toevoegen", @@ -32,6 +31,7 @@ "add_to_album_toggle": "Selectie inschakelen voor {album}", "add_to_albums": "Toevoegen aan albums", "add_to_albums_count": "Toevoegen aan albums ({count})", + "add_to_bottom_bar": "Toevoegen aan", "add_to_shared_album": "Aan gedeeld album toevoegen", "add_upload_to_stack": "Voeg upload toe aan stack", "add_url": "URL toevoegen", @@ -112,13 +112,17 @@ "jobs_failed": "{jobCount, plural, other {# mislukt}}", "library_created": "Bibliotheek aangemaakt: {library}", "library_deleted": "Bibliotheek verwijderd", - "library_import_path_description": "Voer een map in om te importeren. Deze map, inclusief submappen, wordt gescand op afbeeldingen en video's.", + "library_details": "Bibliotheek details", + "library_folder_description": "Kies een map om te importeren. Deze map, waaronder subfolders, zal gescand worden voor afbeeldingen en video's.", + "library_remove_exclusion_pattern_prompt": "Weet je zeker dat je dit uitsluitingspatroon wilt verwijderen?", + "library_remove_folder_prompt": "Weet je zeker dat je deze importeer map wilt verwijderen?", "library_scanning": "Periodiek scannen", "library_scanning_description": "Periodieke bibliotheekscan beheren", "library_scanning_enable_description": "Periodieke bibliotheekscan aanzetten", "library_settings": "Externe bibliotheek", "library_settings_description": "Externe bibliotheekinstellingen beheren", "library_tasks_description": "Scan externe bibliotheken op nieuwe en/of gewijzigde media", + "library_updated": "Bijgewerkte bibliotheek", "library_watching_enable_description": "Externe bibliotheken monitoren op bestandswijzigingen", "library_watching_settings": "Bibliotheek monitoren [EXPERIMENTEEL]", "library_watching_settings_description": "Automatisch gewijzigde bestanden bijhouden", @@ -173,6 +177,10 @@ "machine_learning_smart_search_enabled": "Slim zoeken inschakelen", "machine_learning_smart_search_enabled_description": "Indien uitgeschakeld, worden afbeeldingen niet verwerkt voor slim zoeken.", "machine_learning_url_description": "De URL van de machine learning server. Als er meer dan één URL is opgegeven, wordt elke server geprobeerd totdat er een succesvol reageert, op volgorde van eerste tot laatste. Servers die geen reactie geven zullen tijdelijk genegeerd worden tot zij terug online komen.", + "maintenance_settings": "Onderhoud", + "maintenance_settings_description": "Zet Immich in onderhouds­modus.", + "maintenance_start": "Onderhouds­modus starten", + "maintenance_start_error": "Onderhouds­modus starten mislukt.", "manage_concurrency": "Beheer gelijktijdigheid", "manage_log_settings": "Beheer logboekinstellingen", "map_dark_style": "Donkere stijl", @@ -430,6 +438,7 @@ "age_months": "Leeftijd {months, plural, one {# maand} other {# maanden}}", "age_year_months": "Leeftijd 1 jaar, {months, plural, one {# maand} other {# maanden}}", "age_years": "{years, plural, other {Leeftijd #}}", + "album": "Album", "album_added": "Album toegevoegd", "album_added_notification_setting_description": "Ontvang een e-mailmelding wanneer je aan een gedeeld album wordt toegevoegd", "album_cover_updated": "Albumomslag is bijgewerkt", @@ -475,6 +484,7 @@ "allow_edits": "Bewerkingen toestaan", "allow_public_user_to_download": "Sta openbare gebruiker toe om te downloaden", "allow_public_user_to_upload": "Sta openbare gebruiker toe om te uploaden", + "allowed": "Toegestaan", "alt_text_qr_code": "QR-codeafbeelding", "anti_clockwise": "Linksom", "api_key": "API-sleutel", @@ -558,7 +568,7 @@ "autoplay_slideshow": "Diavoorstelling automatisch afspelen", "back": "Terug", "back_close_deselect": "Terug, sluiten of deselecteren", - "background_backup_running_error": "Achtergrond backup draait, handmatige backup kan niet worden gestart", + "background_backup_running_error": "Back-up draait op de achtergrond, handmatige back-up kan niet worden gestart", "background_location_permission": "Achtergrond locatie toestemming", "background_location_permission_content": "Om van netwerk te wisselen terwijl de app op de achtergrond draait, heeft Immich *altijd* toegang tot de exacte locatie nodig om de naam van het WiFi-netwerk te kunnen lezen", "background_options": "Achtergrond opties", @@ -639,7 +649,7 @@ "birthdate_set_description": "De geboortedatum wordt gebruikt om de leeftijd van deze persoon op het moment van de foto te berekenen.", "blurred_background": "Vervaagde achtergrond", "bugs_and_feature_requests": "Bugs & functieverzoeken", - "build": "Bouwen", + "build": "Build", "build_image": "Build image", "bulk_delete_duplicates_confirmation": "Weet je zeker dat je {count, plural, one {# dubbel item} other {# dubbele items}} in bulk wilt verwijderen? Dit zal de grootste item van elke groep behouden en alle andere duplicaten permanent verwijderen. Je kunt deze actie niet ongedaan maken!", "bulk_keep_duplicates_confirmation": "Weet je zeker dat je {count, plural, one {# dubbel item} other {# dubbele items}} wilt behouden? Dit zal alle groepen met duplicaten oplossen zonder iets te verwijderen.", @@ -790,7 +800,8 @@ "daily_title_text_date": "E dd MMM", "daily_title_text_date_year": "E dd MMM yyyy", "dark": "Donker", - "dark_theme": "Wissel naar donker thema", + "dark_theme": "Donker thema in- of uitschakelen", + "date": "Datum", "date_after": "Datum na", "date_and_time": "Datum en tijd", "date_before": "Datum voor", @@ -893,8 +904,6 @@ "edit_description_prompt": "Selecteer een nieuwe beschrijving:", "edit_exclusion_pattern": "Uitsluitingspatroon bewerken", "edit_faces": "Gezichten bewerken", - "edit_import_path": "Import-pad bewerken", - "edit_import_paths": "Import-paden bewerken", "edit_key": "Key bewerken", "edit_link": "Link bewerken", "edit_location": "Locatie bewerken", @@ -966,8 +975,8 @@ "failed_to_stack_assets": "Fout bij stapelen van items", "failed_to_unstack_assets": "Fout bij ontstapelen van items", "failed_to_update_notification_status": "Kon notificatiestatus niet updaten", - "import_path_already_exists": "Dit import-pad bestaat al.", "incorrect_email_or_password": "Onjuist e-mailadres of wachtwoord", + "library_folder_already_exists": "Dit importpad bestaat al.", "paths_validation_failed": "validatie van {paths, plural, one {# pad} other {# paden}} mislukt", "profile_picture_transparent_pixels": "Profielfoto's kunnen geen transparante pixels bevatten. Zoom in en/of verplaats de afbeelding.", "quota_higher_than_disk_size": "Je hebt een opslaglimiet ingesteld die hoger is dan de schijfgrootte", @@ -976,7 +985,6 @@ "unable_to_add_assets_to_shared_link": "Kan items niet aan gedeelde link toevoegen", "unable_to_add_comment": "Kan geen opmerking toevoegen", "unable_to_add_exclusion_pattern": "Kan geen uitsluitingspatroon toevoegen", - "unable_to_add_import_path": "Kan geen import-pad toevoegen", "unable_to_add_partners": "Kan geen partners toevoegen", "unable_to_add_remove_archive": "Kan items niet {archived, select, true {verwijderen uit} other {toevoegen aan}} archief", "unable_to_add_remove_favorites": "Kan items niet {favorite, select, true {toevoegen aan} other {verwijderen uit}} favorieten", @@ -999,12 +1007,10 @@ "unable_to_delete_asset": "Kan item niet verwijderen", "unable_to_delete_assets": "Fout bij verwijderen items", "unable_to_delete_exclusion_pattern": "Kan uitsluitingspatroon niet verwijderen", - "unable_to_delete_import_path": "Kan import-pad niet verwijderen", "unable_to_delete_shared_link": "Kan gedeelde link niet verwijderen", "unable_to_delete_user": "Kan gebruiker niet verwijderen", "unable_to_download_files": "Kan bestanden niet downloaden", "unable_to_edit_exclusion_pattern": "Kan uitsluitingspatroon niet bewerken", - "unable_to_edit_import_path": "Kan import-pad niet bewerken", "unable_to_empty_trash": "Kan prullenbak niet legen", "unable_to_enter_fullscreen": "Kan volledig scherm niet openen", "unable_to_exit_fullscreen": "Kan volledig scherm niet afsluiten", @@ -1055,6 +1061,7 @@ "unable_to_update_user": "Kan gebruiker niet bijwerken", "unable_to_upload_file": "Kan bestand niet uploaden" }, + "exclusion_pattern": "Uitsluitingspatroon", "exif": "Exif", "exif_bottom_sheet_description": "Beschrijving toevoegen...", "exif_bottom_sheet_description_error": "Fout bij het bijwerken van de beschrijving", @@ -1099,6 +1106,7 @@ "features_setting_description": "Beheer de app functies", "file_name": "Bestandsnaam", "file_name_or_extension": "Bestandsnaam of extensie", + "file_size": "Bestandsgrootte", "filename": "Bestandsnaam", "filetype": "Bestandstype", "filter": "Filter", @@ -1194,6 +1202,8 @@ "import_path": "Import-pad", "in_albums": "In {count, plural, one {# album} other {# albums}}", "in_archive": "In archief", + "in_year": "In {year}", + "in_year_selector": "In", "include_archived": "Toon gearchiveerde", "include_shared_albums": "Toon gedeelde albums", "include_shared_partner_assets": "Toon items van gedeelde partner", @@ -1230,6 +1240,7 @@ "language_setting_description": "Selecteer je voorkeurstaal", "large_files": "Grote bestanden", "last": "Laatste", + "last_months": "{count, plural, one {Vorige maand} other {Laatste # maanden}}", "last_seen": "Laatst gezien", "latest_version": "Nieuwste versie", "latitude": "Breedtegraad", @@ -1239,6 +1250,8 @@ "let_others_respond": "Laat anderen reageren", "level": "Niveau", "library": "Bibliotheek", + "library_add_folder": "Map toevoegen", + "library_edit_folder": "Map bewerken", "library_options": "Bibliotheek opties", "library_page_device_albums": "Albums op apparaat", "library_page_new_album": "Nieuw album", @@ -1262,6 +1275,7 @@ "local_media_summary": "Lokale media samenvatting", "local_network": "Lokaal netwerk", "local_network_sheet_info": "De app maakt verbinding met de server via deze URL wanneer het opgegeven WiFi-netwerk wordt gebruikt", + "location": "Locatie", "location_permission": "Locatietoestemming", "location_permission_content": "Om de functie voor automatische serverwissel te gebruiken, heeft Immich toegang tot de exacte locatie nodig om de naam van het huidige WiFi-netwerk te kunnen bepalen", "location_picker_choose_on_map": "Kies op kaart", @@ -1309,8 +1323,17 @@ "loop_videos_description": "Inschakelen om video's automatisch te herhalen in de detailweergave.", "main_branch_warning": "Je gebruikt een ontwikkelingsversie. We raden je ten zeerste aan een releaseversie te gebruiken!", "main_menu": "Hoofdmenu", + "maintenance_description": "Immich is in de onderhouds­modus gezet.", + "maintenance_end": "Onderhouds­modus beëindigen", + "maintenance_end_error": "Onderhouds­modus beëindigen mislukt.", + "maintenance_logged_in_as": "Momenteel ingelogd als {user}", + "maintenance_title": "Tijdelijk niet beschikbaar", "make": "Merk", "manage_geolocation": "Beheer locatie", + "manage_media_access_rationale": "Deze rechten zijn nodig om items op een goede manier te verwijderen en te verplaatsen.", + "manage_media_access_settings": "Open instellingen", + "manage_media_access_subtitle": "Toestaan dat de Immich app mediabestanden mag beheren en verplaatsen.", + "manage_media_access_title": "Toegang tot mediabeheer", "manage_shared_links": "Beheer gedeelde links", "manage_sharing_with_partners": "Beheer delen met partners", "manage_the_app_settings": "Beheer de appinstellingen", @@ -1374,6 +1397,7 @@ "more": "Meer", "move": "Verplaats", "move_off_locked_folder": "Verplaats uit vergrendelde map", + "move_to": "Verplaatsen naar", "move_to_lock_folder_action_prompt": "{count} item(s) toegevoegd aan de vergrendelde map", "move_to_locked_folder": "Verplaats naar vergrendelde map", "move_to_locked_folder_confirmation": "Deze foto’s en video’s worden uit alle albums verwijderd en zijn alleen te bekijken in de vergrendelde map", @@ -1403,6 +1427,7 @@ "new_pin_code": "Nieuwe pincode", "new_pin_code_subtitle": "Dit is de eerste keer dat u de vergrendelde map opent. Stel een pincode in om deze pagina veilig te openen", "new_timeline": "Nieuwe tijdlijn", + "new_update": "Nieuwe update", "new_user_created": "Nieuwe gebruiker aangemaakt", "new_version_available": "NIEUWE VERSIE BESCHIKBAAR", "newest_first": "Nieuwste eerst", @@ -1418,6 +1443,7 @@ "no_cast_devices_found": "Geen cast-apparaten gevonden", "no_checksum_local": "Geen checksum beschikbaar - kan lokale assets niet ophalen", "no_checksum_remote": "Geen checksum beschikbaar - kan online assets niet ophalen", + "no_devices": "Geen geautoriseerde apparaten", "no_duplicates_found": "Er zijn geen duplicaten gevonden.", "no_exif_info_available": "Geen exif info beschikbaar", "no_explore_results_message": "Upload meer foto's om je verzameling te verkennen.", @@ -1434,6 +1460,7 @@ "no_results_description": "Probeer een synoniem of een algemener zoekwoord", "no_shared_albums_message": "Maak een album om foto's en video's te delen met mensen in je netwerk", "no_uploads_in_progress": "Geen uploads bezig", + "not_allowed": "Niet toegestaan", "not_available": "n.v.t.", "not_in_any_album": "Niet in een album", "not_selected": "Niet geselecteerd", @@ -1544,6 +1571,8 @@ "photos_count": "{count, plural, one {{count, number} foto} other {{count, number} foto's}}", "photos_from_previous_years": "Foto's van voorgaande jaren", "pick_a_location": "Kies een locatie", + "pick_custom_range": "Aangepast bereik", + "pick_date_range": "Selecteer een datumbereik", "pin_code_changed_successfully": "Pincode succesvol gewijzigd", "pin_code_reset_successfully": "Pincode succesvol gereset", "pin_code_setup_successfully": "Pincode succesvol ingesteld", @@ -1694,6 +1723,7 @@ "reset_sqlite_confirmation": "Ben je zeker dat je de SQLite database wilt resetten? Je zal moeten uitloggen om de data opnieuw te synchroniseren", "reset_sqlite_success": "De SQLite database is succesvol gereset", "reset_to_default": "Resetten naar standaard", + "resolution": "Resolutie", "resolve_duplicates": "Duplicaten oplossen", "resolved_all_duplicates": "Alle duplicaten opgelost", "restore": "Herstellen", @@ -1712,6 +1742,7 @@ "running": "Actief", "save": "Opslaan", "save_to_gallery": "Opslaan in galerij", + "saved": "Opgeslagen", "saved_api_key": "API-sleutel opgeslagen", "saved_profile": "Profiel opgeslagen", "saved_settings": "Instellingen opgeslagen", @@ -1809,6 +1840,8 @@ "server_offline": "Server offline", "server_online": "Server online", "server_privacy": "Serverprivacy", + "server_restarting_description": "Deze pagina wordt zometeen ververst.", + "server_restarting_title": "Server is aan het herstarten", "server_stats": "Serverstatistieken", "server_update_available": "Server update is beschikbaar", "server_version": "Serverversie", @@ -2020,7 +2053,9 @@ "theme_setting_three_stage_loading_title": "Laden in drie fasen inschakelen", "they_will_be_merged_together": "Zij zullen worden samengevoegd", "third_party_resources": "Bronnen van derden", + "time": "Tijd", "time_based_memories": "Tijdgebaseerde herinneringen", + "time_based_memories_duration": "Aantal seconden dat elke afbeelding wordt weergegeven.", "timeline": "Tijdlijn", "timezone": "Tijdzone", "to_archive": "Archiveren", @@ -2128,7 +2163,7 @@ "variables": "Variabelen", "version": "Versie", "version_announcement_closing": "Je vriend, Alex", - "version_announcement_message": "Hallo! Er is een nieuwe versie van Immich beschikbaar. Neem even de tijd om de release notes te lezen en zorg ervoor dat je setup up-to-date is om misconfiguraties te voorkomen, vooral als je WatchTower of een andere update-mechanisme gebruikt.", + "version_announcement_message": "Hallo! Er is een nieuwe versie van Immich beschikbaar. Neem even de tijd om de release notes te lezen en zorg ervoor dat je setup up-to-date is om misconfiguraties te voorkomen, vooral als je WatchTower of een ander update-mechanisme gebruikt.", "version_history": "Versiegeschiedenis", "version_history_item": "{version} geïnstalleerd op {date}", "video": "Video", @@ -2161,6 +2196,7 @@ "welcome": "Welkom", "welcome_to_immich": "Welkom bij Immich", "wifi_name": "WiFi-naam", + "workflow": "Workflow", "wrong_pin_code": "Onjuiste pincode", "year": "Jaar", "years_ago": "{years, plural, one {# jaar} other {# jaar}} geleden", diff --git a/i18n/nn.json b/i18n/nn.json index 2cfb31bede..b9a59c8d78 100644 --- a/i18n/nn.json +++ b/i18n/nn.json @@ -17,7 +17,6 @@ "add_birthday": "Legg til ein fødselsdag", "add_endpoint": "Legg til endepunkt", "add_exclusion_pattern": "Legg til unnlatingsmønster", - "add_import_path": "Legg til sti for importering", "add_location": "Legg til stad", "add_more_users": "Legg til fleire brukarar", "add_partner": "Legg til partnar", @@ -109,7 +108,6 @@ "jobs_failed": "{jobCount, plural, other {# mislykkast}}", "library_created": "Opprett bibliotek: {library}", "library_deleted": "Bibliotek sletta", - "library_import_path_description": "Angje ei mappe å importere. Mappa, inkludert undermapper, bli skanna for bilete og videoar.", "library_scanning": "Regelbunden skanning", "library_scanning_description": "Sett opp regelbunden skanning av biblioteket", "library_scanning_enable_description": "Aktiver regelbunden skanning av biblioteket", diff --git a/i18n/pa.json b/i18n/pa.json index 0801a54351..52b1430134 100644 --- a/i18n/pa.json +++ b/i18n/pa.json @@ -15,7 +15,6 @@ "add_birthday": "ਜਨਮਦਿਨ ਸ਼ਾਮਲ ਕਰੋ", "add_endpoint": "ਐਂਡਪੁਆਇੰਟ ਸ਼ਾਮਲ ਕਰੋ", "add_exclusion_pattern": "ਅਲਹਿਦਗੀ ਪੈਟਰਨ ਸ਼ਾਮਲ ਕਰੋ", - "add_import_path": "ਆਯਾਤ ਮਾਰਗ ਸ਼ਾਮਲ ਕਰੋ", "add_location": "ਸਥਾਨ ਸ਼ਾਮਲ ਕਰੋ", "add_more_users": "ਹੋਰ ਉਪਭੋਗਤਾ ਸ਼ਾਮਲ ਕਰੋ" } diff --git a/i18n/pl.json b/i18n/pl.json index 8bbefef148..443b807115 100644 --- a/i18n/pl.json +++ b/i18n/pl.json @@ -17,7 +17,6 @@ "add_birthday": "Dodaj datę urodzin", "add_endpoint": "Dodaj punkt końcowy", "add_exclusion_pattern": "Dodaj wzór wykluczający", - "add_import_path": "Dodaj ścieżkę importu", "add_location": "Dodaj lokalizację", "add_more_users": "Dodaj więcej użytkowników", "add_partner": "Dodaj partnera", @@ -32,6 +31,7 @@ "add_to_album_toggle": "Przełącz wybieranie dla {album}", "add_to_albums": "Dodaj do albumów", "add_to_albums_count": "Dodaj do albumów ({count})", + "add_to_bottom_bar": "Dodaj do", "add_to_shared_album": "Dodaj do udostępnionego albumu", "add_upload_to_stack": "Dodaj przesłane do stosu", "add_url": "Dodaj URL", @@ -112,13 +112,17 @@ "jobs_failed": "{jobCount, plural, one {# nieudany} few {# nieudane} other {# nieudanych}}", "library_created": "Utworzono bibliotekę: {library}", "library_deleted": "Biblioteka usunięta", - "library_import_path_description": "Określ folder do załadowania plików. Ten folder, łącznie z podfolderami, zostanie przeskanowany w poszukiwaniu obrazów i filmów.", + "library_details": "Szczegóły biblioteki", + "library_folder_description": "Wskaż folder do zaimportowania. Ten folder, wraz z podfolderami, zostanie przeskanowany w poszukiwaniu obrazów i filmów.", + "library_remove_exclusion_pattern_prompt": "Czy na pewno chcesz usunąć ten szablon wykluczeń?", + "library_remove_folder_prompt": "Czy na pewno chcesz usunąć ten folder importu?", "library_scanning": "Okresowe Skanowanie", "library_scanning_description": "Skonfiguruj okresowe skanowania bibliotek", "library_scanning_enable_description": "Włącz okresowe skanowanie bibliotek", "library_settings": "Zewnętrzne Biblioteki", "library_settings_description": "Zarządzaj ustawieniami zewnętrznych bibliotek", "library_tasks_description": "Wyszukiwanie nowych lub zmienionych pozycji w zewnętrznych bibliotekach", + "library_updated": "Zaktualizowana biblioteka", "library_watching_enable_description": "Przejrzyj zewnętrzne biblioteki w poszukiwaniu zmienionych plików", "library_watching_settings": "Obserwowanie bibliotek [EKSPERYMENTALNE]", "library_watching_settings_description": "Automatycznie obserwuj zmienione pliki", @@ -173,6 +177,10 @@ "machine_learning_smart_search_enabled": "Włącz inteligentne wyszukiwanie", "machine_learning_smart_search_enabled_description": "Jeżeli wyłączone, obrazy nie będą przygotowywane do inteligentnego wyszukiwania.", "machine_learning_url_description": "URL serwera uczenia maszynowego. Jeżeli podano więcej niż jeden URL, do każdego serwera po kolei będzie wysłane żądanie dopóki chociaż jeden nie odpowie, w kolejności od pierwszego do ostatniego. Serwery które nie odpowiedzą, zostaną tymczasowo ignorowane aż do momentu ich przejścia w stan online.", + "maintenance_settings": "Konserwacja", + "maintenance_settings_description": "Przełącza Immich w tryb konserwacji.", + "maintenance_start": "Uruchom tryb konserwacji", + "maintenance_start_error": "Nie udało się uruchomić trybu konserwacji.", "manage_concurrency": "Zarządzaj współbieżnością zadań", "manage_log_settings": "Zarządzaj ustawieniami logów", "map_dark_style": "Styl ciemny", @@ -430,6 +438,7 @@ "age_months": "Wiek {months, plural, one {# miesiąc} few {# miesiące} many {# miesięcy} other {# miesięcy}}", "age_year_months": "Wiek 1 rok, {months, plural, one {# miesiąc} few {# miesiące} many {# miesięcy} other {# miesięcy}}", "age_years": "{years, plural, other {Wiek #}}", + "album": "Album", "album_added": "Album udostępniony", "album_added_notification_setting_description": "Otrzymaj powiadomienie email, gdy zostanie Ci udostępniony album", "album_cover_updated": "Okładka albumu została zaktualizowana", @@ -475,6 +484,7 @@ "allow_edits": "Pozwól edytować", "allow_public_user_to_download": "Zezwól użytkownikowi publicznemu na pobieranie", "allow_public_user_to_upload": "Zezwól użytkownikowi publicznemu na przesyłanie plików", + "allowed": "Dozwolone", "alt_text_qr_code": "Obrazek kodu QR", "anti_clockwise": "Przeciwnie do ruchu wskazówek zegara", "api_key": "Klucz API", @@ -894,8 +904,6 @@ "edit_description_prompt": "Wybierz nowy opis:", "edit_exclusion_pattern": "Edytuj wzór wykluczający", "edit_faces": "Edytuj twarze", - "edit_import_path": "Edytuj ścieżkę importu", - "edit_import_paths": "Edytuj ścieżki importu", "edit_key": "Edytuj klucz", "edit_link": "Edytuj link", "edit_location": "Edytuj lokalizację", @@ -967,8 +975,8 @@ "failed_to_stack_assets": "Nie udało się utworzyć stosu z zasobów", "failed_to_unstack_assets": "Nie udało się rozdzielić zasobów", "failed_to_update_notification_status": "Nie udało się zaktualizować stanu powiadomienia", - "import_path_already_exists": "Ta ścieżka importu już istnieje.", "incorrect_email_or_password": "Nieprawidłowy e-mail lub hasło", + "library_folder_already_exists": "Ta ścieżka importu już istnieje.", "paths_validation_failed": "{paths, plural, one {# ścieżka} few {# ścieżki} other {# ścieżek}}", "profile_picture_transparent_pixels": "Zdjęcia profilowe nie mogą mieć przezroczystych pikseli. Powiększ i/lub przesuń obraz.", "quota_higher_than_disk_size": "Ustawiony przez ciebie limit większy niż rozmiar dysku", @@ -977,7 +985,6 @@ "unable_to_add_assets_to_shared_link": "Nie można dodać zasobów do udostępnionego linku", "unable_to_add_comment": "Nie można dodać komentarza", "unable_to_add_exclusion_pattern": "Nie można dodać wzoru wykluczającego", - "unable_to_add_import_path": "Nie można dodać ścieżki importu", "unable_to_add_partners": "Nie można dodać partnerów", "unable_to_add_remove_archive": "Nie można {archived, select, true {usunąć zasobu z} other {dodać zasobu do}} archiwum", "unable_to_add_remove_favorites": "Nie można {favorite, select, true {dodać zasobu do} other {usunąć zasobu z }} ulubionych", @@ -1000,12 +1007,10 @@ "unable_to_delete_asset": "Nie można usunąć zasobu", "unable_to_delete_assets": "Błąd podczas usuwania zasobów", "unable_to_delete_exclusion_pattern": "Nie można usunąć wzoru wykluczającego", - "unable_to_delete_import_path": "Nie można usunąć ścieżki importu", "unable_to_delete_shared_link": "Nie można usunąć udostępnionego linku", "unable_to_delete_user": "Nie można usunąć użytkownika", "unable_to_download_files": "Nie można pobrać plików", "unable_to_edit_exclusion_pattern": "Nie można zmienić wzoru wykluczającego", - "unable_to_edit_import_path": "Nie można edytować ścieżki importu", "unable_to_empty_trash": "Nie można opróżnić kosza", "unable_to_enter_fullscreen": "Nie można przejść na pełny ekran", "unable_to_exit_fullscreen": "Nie można wyjść z pełnego ekranu", @@ -1056,6 +1061,7 @@ "unable_to_update_user": "Nie można zmienić użytkownika", "unable_to_upload_file": "Nie można przesłać pliku" }, + "exclusion_pattern": "Szablon wykluczeń", "exif": "Metadane EXIF", "exif_bottom_sheet_description": "Dodaj Opis...", "exif_bottom_sheet_description_error": "Wystąpił błąd podczas aktualizacji opisu", @@ -1196,6 +1202,8 @@ "import_path": "Ścieżka importu", "in_albums": "W {count, plural, one {# albumie} other {# albumach}}", "in_archive": "W archiwum", + "in_year": "W {year}", + "in_year_selector": "W", "include_archived": "Uwzględnij zarchiwizowane", "include_shared_albums": "Uwzględnij udostępnione albumy", "include_shared_partner_assets": "Uwzględnij udostępnione zasoby partnera", @@ -1232,6 +1240,7 @@ "language_setting_description": "Wybierz swój preferowany język", "large_files": "Duże pliki", "last": "Ostatni", + "last_months": "{count, plural, one {Zeszły miesiąc} few {# zeszłe miesiące} other {# zeszłych miesięcy}}", "last_seen": "Ostatnio widziane", "latest_version": "Najnowsza wersja", "latitude": "Szerokość geograficzna", @@ -1241,6 +1250,8 @@ "let_others_respond": "Pozwól innym reagować", "level": "Poziom", "library": "Biblioteka", + "library_add_folder": "Dodaj folder", + "library_edit_folder": "Edytuj folder", "library_options": "Opcje biblioteki", "library_page_device_albums": "Albumy na Urządzeniu", "library_page_new_album": "Nowy album", @@ -1312,8 +1323,17 @@ "loop_videos_description": "Włącz automatyczne odtwarzanie w pętli filmu w widoku szczegółowym.", "main_branch_warning": "Używasz wersji deweloperskiej. Zdecydowanie zalecamy korzystanie z wydanej wersji aplikacji!", "main_menu": "Menu główne", + "maintenance_description": "Immich został przełączony w tryb konserwacji.", + "maintenance_end": "Zakończ tryb konserwacji", + "maintenance_end_error": "Nie udało się zakończyć trybu konserwacji.", + "maintenance_logged_in_as": "Obecnie zalogowano jako {user}", + "maintenance_title": "Tymczasowo niedostępne", "make": "Marka", "manage_geolocation": "Zarządzaj lokalizacją", + "manage_media_access_rationale": "To uprawnienie jest wymagane do prawidłowej obsługi przenoszenia zasobów do kosza i przywracania ich z niego.", + "manage_media_access_settings": "Otwórz ustawienia", + "manage_media_access_subtitle": "Zezwól aplikacji Immich na zarządzanie plikami multimedialnymi i przenoszenie ich.", + "manage_media_access_title": "Dostęp do zarządzania mediami", "manage_shared_links": "Zarządzaj udostępnionymi linkami", "manage_sharing_with_partners": "Zarządzaj dzieleniem z partnerami", "manage_the_app_settings": "Zarządzaj ustawieniami aplikacji", @@ -1377,6 +1397,7 @@ "more": "Więcej", "move": "Przenieś", "move_off_locked_folder": "Przenieś z folderu zablokowanego", + "move_to": "Przenieś do", "move_to_lock_folder_action_prompt": "{count} dodanych do folderu zablokowanego", "move_to_locked_folder": "Przenieś do folderu zablokowanego", "move_to_locked_folder_confirmation": "Te zdjęcia i filmy zostaną usunięte ze wszystkich albumów i będą widzialne tylko w folderze zablokowanym", @@ -1406,6 +1427,7 @@ "new_pin_code": "Nowy kod PIN", "new_pin_code_subtitle": "Jest to pierwszy raz, kiedy wchodzisz do folderu zablokowanego. Utwórz kod PIN, aby bezpiecznie korzystać z tej strony", "new_timeline": "Nowa oś czasu", + "new_update": "Nowa aktualizacja", "new_user_created": "Pomyślnie stworzono nowego użytkownika", "new_version_available": "NOWA WERSJA DOSTĘPNA", "newest_first": "Od najnowszych", @@ -1421,6 +1443,7 @@ "no_cast_devices_found": "Nie znaleziono urządzeń do przesyłania strumieniowego", "no_checksum_local": "Brak sumy kontrolnej - nie można pobrać lokalnych zasobów", "no_checksum_remote": "Brak sumy kontrolnej - nie można pobrać zdalnego zasobu", + "no_devices": "Brak autoryzowanych urządzeń", "no_duplicates_found": "Nie znaleziono duplikatów.", "no_exif_info_available": "Nie znaleziono informacji exif", "no_explore_results_message": "Prześlij więcej zdjęć, aby przeglądać swój zbiór.", @@ -1437,6 +1460,7 @@ "no_results_description": "Spróbuj użyć synonimu lub bardziej ogólnego słowa kluczowego", "no_shared_albums_message": "Stwórz album aby udostępnić zdjęcia i filmy osobom w Twojej sieci", "no_uploads_in_progress": "Brak przesyłań w toku", + "not_allowed": "Niedozwolone", "not_available": "Nie dotyczy", "not_in_any_album": "Bez albumu", "not_selected": "Nie wybrano", @@ -1547,6 +1571,8 @@ "photos_count": "{count, plural, one {{count, number} Zdjęcie} few {{count, number} Zdjęcia} other {{count, number} Zdjęć}}", "photos_from_previous_years": "Zdjęcia z ubiegłych lat", "pick_a_location": "Oznacz lokalizację", + "pick_custom_range": "Zakres niestandardowy", + "pick_date_range": "Wybierz zakres dat", "pin_code_changed_successfully": "Pomyślnie zmieniono kod PIN", "pin_code_reset_successfully": "Pomyślnie zresetowano kod PIN", "pin_code_setup_successfully": "Pomyślnie ustawiono kod PIN", @@ -1767,7 +1793,7 @@ "search_page_no_places": "Brak informacji o miejscu", "search_page_screenshots": "Zrzuty ekranu", "search_page_search_photos_videos": "Wyszukaj swoje zdjęcia i filmy", - "search_page_selfies": "Selfi", + "search_page_selfies": "Selfiki", "search_page_things": "Rzeczy", "search_page_view_all_button": "Pokaż wszystkie", "search_page_your_activity": "Twoja aktywność", @@ -1814,6 +1840,8 @@ "server_offline": "Serwer Offline", "server_online": "Serwer Online", "server_privacy": "Ochrona prywatności serwera", + "server_restarting_description": "Ta strona zostanie za chwilę odświeżona.", + "server_restarting_title": "Trwa ponowne uruchamianie serwera", "server_stats": "Statystyki serwera", "server_update_available": "Dostępna jest aktualizacja serwera", "server_version": "Wersja serwera", @@ -2027,6 +2055,7 @@ "third_party_resources": "Zasoby stron trzecich", "time": "Czas", "time_based_memories": "Wspomnienia oparte na czasie", + "time_based_memories_duration": "Ilość sekund, przez jaką wyświetlane jest poszczególne zdjęcie.", "timeline": "Oś czasu", "timezone": "Strefa czasowa", "to_archive": "Zarchiwizuj", @@ -2167,6 +2196,7 @@ "welcome": "Witaj", "welcome_to_immich": "Witamy w immich", "wifi_name": "Nazwa Wi-Fi", + "workflow": "Przepływ pracy", "wrong_pin_code": "Nieprawidłowy kod PIN", "year": "Rok", "years_ago": "{years, plural, one {# rok} few {# lata} other {# lat}} temu", diff --git a/i18n/pt.json b/i18n/pt.json index 4e04331ad3..512f4dc20b 100644 --- a/i18n/pt.json +++ b/i18n/pt.json @@ -17,7 +17,6 @@ "add_birthday": "Definir aniversário", "add_endpoint": "Adicionar URL", "add_exclusion_pattern": "Adicionar um padrão de exclusão", - "add_import_path": "Adicionar um caminho de importação", "add_location": "Adicionar localização", "add_more_users": "Adicionar mais utilizadores", "add_partner": "Adicionar parceiro", @@ -32,6 +31,7 @@ "add_to_album_toggle": "Alternar seleção para {album}", "add_to_albums": "Adicionar aos álbuns", "add_to_albums_count": "Adicionar aos álbuns ({count})", + "add_to_bottom_bar": "Adicionar a", "add_to_shared_album": "Adicionar ao álbum partilhado", "add_upload_to_stack": "Adicionar carregamento à fila", "add_url": "Adicionar URL", @@ -69,7 +69,7 @@ "confirm_user_pin_code_reset": "Tem a certeza de que quer repor o código PIN de {user}?", "create_job": "Criar tarefa", "cron_expression": "Expressão Cron", - "cron_expression_description": "Definir o intervalo de análise utilizando o formato Cron. Para mais informações, por favor veja o Crontab Guru", + "cron_expression_description": "Definir o intervalo de análise utilizando o formato Cron. Para mais informações, por favor consulte o Crontab Guru", "cron_expression_presets": "Predefinições das expressões Cron", "disable_login": "Desativar inicio de sessão", "duplicate_detection_job_description": "Executa a aprendizagem de máquina em ficheiros para detetar imagens semelhantes. Depende da Pesquisa Inteligente", @@ -90,7 +90,7 @@ "image_prefer_embedded_preview": "Preferir visualização incorporada", "image_prefer_embedded_preview_setting_description": "Utilizar visualizações incorporadas em fotos RAW como entrada para processamento de imagem e quando disponível. Isto pode produzir cores mais precisas para algumas imagens, mas a qualidade da visualização depende da câmara e a imagem pode ter mais artefatos de compressão.", "image_prefer_wide_gamut": "Prefira ampla gama", - "image_prefer_wide_gamut_setting_description": "Utilizar Display P3 para miniaturas. Isso preserva melhor a vibrância das imagens com espaços de cores amplos, mas as imagens podem aparecer de maneira diferente em dispositivos antigos com uma versão antiga do navegador. As imagens sRGB são mantidas como sRGB para evitar mudanças de cores.", + "image_prefer_wide_gamut_setting_description": "Utilizar Display P3 para miniaturas. Isto preserva melhor a vibrância das imagens com espaços de cores amplos, mas as imagens podem aparecer de maneira diferente em dispositivos antigos com uma versão antiga do navegador. As imagens sRGB são mantidas como sRGB para evitar mudanças de cores.", "image_preview_description": "Imagem de tamanho médio sem metadados, utilizada ao visualizar um único ficheiro e pela aprendizagem de máquina", "image_preview_quality_description": "Qualidade de pré-visualização de 1 a 100. Maior é melhor, mas produz ficheiros maiores e pode reduzir a capacidade de resposta da aplicação. Definir um valor demasiado baixo pode afetar a qualidade da aprendizagem de máquina.", "image_preview_title": "Definições de Pré-visualização", @@ -106,19 +106,23 @@ "job_created": "Tarefa criada", "job_not_concurrency_safe": "Esta tarefa não pode ser executada em simultâneo.", "job_settings": "Definições de Tarefas", - "job_settings_description": "Gerir tarefas em simultâneo", + "job_settings_description": "Gerir tarefas executadas em simultâneo", "job_status": "Estado das Tarefas", "jobs_delayed": "{jobCount, plural, one {# adiado} other {# adiados}}", "jobs_failed": "{jobCount, plural, one {# falhou} other {# falharam}}", "library_created": "Criada biblioteca: {library}", "library_deleted": "Biblioteca eliminada", - "library_import_path_description": "Especifique uma pasta para importar. Esta pasta, incluindo sub-pastas, será analisada por imagens e vídeos.", + "library_details": "Detalhes de Biblioteca", + "library_folder_description": "Especifique uma pasta para importar. Esta pasta, incluindo subpastas, será analisada para procurar imagens e vídeos.", + "library_remove_exclusion_pattern_prompt": "Tem a certeza que pretende remover este padrão de exclusão?", + "library_remove_folder_prompt": "Tem a certeza que quer remover esta pasta de importação?", "library_scanning": "Análise periódica", "library_scanning_description": "Configurar a análise periódica da biblioteca", "library_scanning_enable_description": "Ativar análise periódica da biblioteca", "library_settings": "Biblioteca Externa", "library_settings_description": "Gerir definições de biblioteca externa", "library_tasks_description": "Pesquisa bibliotecas externas em busca de itens novos e/ou alterados", + "library_updated": "Biblioteca atualizada", "library_watching_enable_description": "Analisar bibliotecas externas por alterações de ficheiros", "library_watching_settings": "Análise de biblioteca [EXPERIMENTAL]", "library_watching_settings_description": "Analise automaticamente por ficheiros alterados", @@ -173,6 +177,10 @@ "machine_learning_smart_search_enabled": "Ativar a Pesquisa Inteligente", "machine_learning_smart_search_enabled_description": "Se desativado, as imagens não serão codificadas para Pesquisa Inteligente.", "machine_learning_url_description": "A URL do servidor de aprendizagem de máquina. Se for fornecido mais do que um URL, cada servidor será testado, um a um, até um deles responder com sucesso, por ordem do primeiro ao último. Servidores que não responderem serão temporariamente ignorados até voltarem a estar online.", + "maintenance_settings": "Manutenção", + "maintenance_settings_description": "Colocar o Immich no modo de manutenção.", + "maintenance_start": "Iniciar modo de manutenção", + "maintenance_start_error": "Ocorreu um erro ao iniciar o modo de manutenção.", "manage_concurrency": "Gerir simultaneidade", "manage_log_settings": "Gerir definições de registo", "map_dark_style": "Tema Escuro", @@ -214,7 +222,7 @@ "nightly_tasks_sync_quota_usage_setting_description": "Atualizar quotas de armazenamento de utilizadores, com base na utilização atual", "no_paths_added": "Nenhum caminho adicionado", "no_pattern_added": "Nenhum padrão adicionado", - "note_apply_storage_label_previous_assets": "Observação: Para aplicar o Rótulo de Armazenamento a ficheiros carregados anteriormente, execute o", + "note_apply_storage_label_previous_assets": "Observação: Para aplicar o Rótulo de Armazenamento a ficheiros carregados anteriormente, execute a", "note_cannot_be_changed_later": "NOTA: Isto não pode ser alterado posteriormente!", "notification_email_from_address": "A partir do endereço", "notification_email_from_address_description": "Endereço de e-mail do remetente, por exemplo: \"Servidor de Fotos Immich \". Certifique-se de que utiliza um endereço através do qual pode enviar e-mails.", @@ -285,10 +293,10 @@ "sidecar_job_description": "Descobrir ou sincronizar metadados secundários a partir do sistema de ficheiros", "slideshow_duration_description": "Tempo em segundos para exibir cada imagem", "smart_search_job_description": "Execute a aprendizagem automática em ficheiros para oferecer apoio à Pesquisa Inteligente", - "storage_template_date_time_description": "O registo de data e hora de criação do ficheiro é usado para fornecer essas informações", - "storage_template_date_time_sample": "Exemplo de tempo {date}", + "storage_template_date_time_description": "O registo de data e hora de criação do ficheiro é utilizado para preencher estas informações", + "storage_template_date_time_sample": "Exemplo de data/hora {date}", "storage_template_enable_description": "Ativar mecanismo de modelo de armazenamento", - "storage_template_hash_verification_enabled": "Verificação de hash ativada", + "storage_template_hash_verification_enabled": "Ativar verificação de hash", "storage_template_hash_verification_enabled_description": "Ativa a verificação de hash, não desative esta opção a menos que tenha a certeza das implicações", "storage_template_migration": "Migração de modelo de armazenamento", "storage_template_migration_description": "Aplica o {template} atual para ficheiros previamente carregados", @@ -300,7 +308,7 @@ "storage_template_settings": "Modelo de Armazenamento", "storage_template_settings_description": "Gerir a estrutura de pastas e o nome do ficheiro carregado", "storage_template_user_label": "{label} é o Rótulo do Armazenamento do utilizador", - "system_settings": "Definições de Sistema", + "system_settings": "Definições do Sistema", "tag_cleanup_job": "Limpeza de etiquetas", "template_email_available_tags": "Pode usar as seguintes variáveis no modelo: {tags}", "template_email_if_empty": "Se o modelo estiver em branco, o modelo de e-mail padrão será utilizado.", @@ -430,6 +438,7 @@ "age_months": "Idade {months, plural, one {# mês} other {# meses}}", "age_year_months": "Idade 1 ano, {months, plural, one {# mês} other {# meses}}", "age_years": "{years, plural, one{# ano} other {# anos}}", + "album": "Álbum", "album_added": "Álbum adicionado", "album_added_notification_setting_description": "Receber uma notificação por e-mail quando for adicionado a um álbum partilhado", "album_cover_updated": "Capa do álbum atualizada", @@ -475,6 +484,7 @@ "allow_edits": "Permitir edições", "allow_public_user_to_download": "Permitir que utilizadores públicos façam transferências", "allow_public_user_to_upload": "Permitir que utilizadores públicos façam carregamentos", + "allowed": "Permitido", "alt_text_qr_code": "Imagem do código QR", "anti_clockwise": "Sentido anti-horário", "api_key": "Chave de API", @@ -852,7 +862,7 @@ "display_options": "Opções de exibição", "display_order": "Ordem de exibição", "display_original_photos": "Exibir fotos originais", - "display_original_photos_setting_description": "Preferir a exibição da foto original ao visualizar um ficheiro em vez de miniaturas quando o ficheiro original é compatível com a web. Isso pode diminuir a velocidade de exibição das fotos.", + "display_original_photos_setting_description": "Preferir a exibição da foto original ao visualizar um ficheiro em vez de miniaturas quando o ficheiro original é compatível com a web. Isto pode diminuir a velocidade de exibição das fotos.", "do_not_show_again": "Não mostrar esta mensagem novamente", "documentation": "Documentação", "done": "Feito", @@ -870,13 +880,13 @@ "download_paused": "Pausado", "download_settings": "Transferir", "download_settings_description": "Gerir definições relacionadas com a transferência de ficheiros", - "download_started": "Iniciando", + "download_started": "Descarregamento iniciado", "download_sucess": "Baixado com sucesso", "download_sucess_android": "O ficheiro foi descarregado para a pasta DCIM/Immich", "download_waiting_to_retry": "Tentando novamente", "downloading": "A transferir", "downloading_asset_filename": "A transferir o ficheiro {filename}", - "downloading_media": "Baixando mídia", + "downloading_media": "A descarregar ficheiro", "drop_files_to_upload": "Solte os ficheiros em qualquer lugar para os enviar", "duplicates": "Itens duplicados", "duplicates_description": "Marque cada grupo indicando quais ficheiros, se algum, são duplicados", @@ -894,8 +904,6 @@ "edit_description_prompt": "Por favor selecione uma nova descrição:", "edit_exclusion_pattern": "Editar o padrão de exclusão", "edit_faces": "Editar rostos", - "edit_import_path": "Editar caminho de importação", - "edit_import_paths": "Editar caminhos de importação", "edit_key": "Editar chave", "edit_link": "Editar link", "edit_location": "Editar Localização", @@ -967,8 +975,8 @@ "failed_to_stack_assets": "Ocorreu um erro ao empilhar os ficheiros", "failed_to_unstack_assets": "Ocorreu um erro ao desempilhar ficheiros", "failed_to_update_notification_status": "Ocorreu um erro ao atualizar o estado das notificações", - "import_path_already_exists": "Este caminho de importação já existe.", "incorrect_email_or_password": "Email ou palavra-passe incorretos", + "library_folder_already_exists": "Este caminho de importação já existe.", "paths_validation_failed": "Ocorreu um erro na validação de {paths, plural, one {# caminho} other {# caminhos}}", "profile_picture_transparent_pixels": "Imagem de perfil não pode ter pixeis transparentes. Por favor amplie e/ou mova a imagem.", "quota_higher_than_disk_size": "Definiu uma quota maior do que o tamanho do disco", @@ -977,7 +985,6 @@ "unable_to_add_assets_to_shared_link": "Não foi possível adicionar os ficheiros ao link partilhado", "unable_to_add_comment": "Não foi possível adicionar o comentário", "unable_to_add_exclusion_pattern": "Não foi possível adicionar o padrão de exclusão", - "unable_to_add_import_path": "Não foi possível adicionar o caminho de importação", "unable_to_add_partners": "Não foi possível adicionar parceiros", "unable_to_add_remove_archive": "Não foi possível {archived, select, true {remover o ficheiro de} other {adicionar o ficheiro}}", "unable_to_add_remove_favorites": "Não foi possível {favorite, select, true {adicionar ficheiro aos} other {remover ficheiro dos}} favoritos", @@ -1000,12 +1007,10 @@ "unable_to_delete_asset": "Não foi possível eliminar o ficheiro", "unable_to_delete_assets": "Erro ao eliminar ficheiros", "unable_to_delete_exclusion_pattern": "Não foi possível eliminar o padrão de exclusão", - "unable_to_delete_import_path": "Não foi possível eliminar o caminho de importação", "unable_to_delete_shared_link": "Não foi possível eliminar o link compartilhado", "unable_to_delete_user": "Não foi possível eliminar o utilizador", "unable_to_download_files": "Não foi possível transferir ficheiros", "unable_to_edit_exclusion_pattern": "Não foi possível editar o padrão de exclusão", - "unable_to_edit_import_path": "Não foi possível editar o caminho de importação", "unable_to_empty_trash": "Não foi possível esvaziar a reciclagem", "unable_to_enter_fullscreen": "Não foi possível entrar em modo de ecrã inteiro", "unable_to_exit_fullscreen": "Não foi possível sair do modo de ecrã inteiro", @@ -1056,6 +1061,7 @@ "unable_to_update_user": "Não foi possível atualizar o utilizador", "unable_to_upload_file": "Não foi possível carregar o ficheiro" }, + "exclusion_pattern": "Padrão de exclusão", "exif": "Exif", "exif_bottom_sheet_description": "Adicionar Descrição...", "exif_bottom_sheet_description_error": "Ocorreu um erro ao alterar a descrição", @@ -1115,6 +1121,7 @@ "folders_feature_description": "Navegar na vista de pastas por fotos e vídeos no sistema de ficheiros", "forgot_pin_code_question": "Esqueceu-se do seu PIN?", "forward": "Para a frente", + "full_path": "Caminho completo:{path}", "gcast_enabled": "Google Cast", "gcast_enabled_description": "Esta funcionalidade requer o carregamento de recursos externos da Google para poder funcionar.", "general": "Geral", @@ -1187,7 +1194,7 @@ "image_alt_text_date_place_3_people": "{isVideo, select, true {Vídeo gravado} other {Foto tirada}} em {city}, {country} com {person1}, {person2}, e {person3} em {date}", "image_alt_text_date_place_4_or_more_people": "{isVideo, select, true {Vídeo gravado} other {Foto tirada}} em {city}, {country} com {person1}, {person2}, e outras {additionalCount, number} pessoas em {date}", "image_saved_successfully": "Imagem salva", - "image_viewer_page_state_provider_download_started": "A descarregar ficheiro", + "image_viewer_page_state_provider_download_started": "Descarregamento Iniciado", "image_viewer_page_state_provider_download_success": "Baixado com sucesso", "image_viewer_page_state_provider_share_error": "Erro ao compartilhar", "immich_logo": "Logotipo do Immich", @@ -1196,6 +1203,8 @@ "import_path": "Caminho de importação", "in_albums": "Em {count, plural, one {# álbum} other {# álbuns}}", "in_archive": "Arquivado", + "in_year": "Em {year}", + "in_year_selector": "Em", "include_archived": "Incluir arquivados", "include_shared_albums": "Incluir álbuns partilhados", "include_shared_partner_assets": "Incluir ficheiros partilhados por parceiros", @@ -1232,6 +1241,7 @@ "language_setting_description": "Selecione o seu Idioma preferido", "large_files": "Ficheiros Grandes", "last": "Último", + "last_months": "{count, plural, one {No último mês} other {Nos últimos # meses}}", "last_seen": "Visto pela ultima vez", "latest_version": "Versão mais recente", "latitude": "Latitude", @@ -1241,6 +1251,8 @@ "let_others_respond": "Permitir respostas", "level": "Nível", "library": "Biblioteca", + "library_add_folder": "Adicionar pasta", + "library_edit_folder": "Editar pasta", "library_options": "Opções da biblioteca", "library_page_device_albums": "Álbuns no dispositivo", "library_page_new_album": "Novo álbum", @@ -1284,7 +1296,7 @@ "login_disabled": "Início de sessão desativado", "login_form_api_exception": "Erro de API. Verifique a URL do servidor e tente novamente.", "login_form_back_button_text": "Voltar", - "login_form_email_hint": "seuemail@email.com", + "login_form_email_hint": "oseuemail@email.com", "login_form_endpoint_hint": "http://ip-do-seu-servidor:porta", "login_form_endpoint_url": "URL do servidor", "login_form_err_http": "Por favor especifique http:// ou https://", @@ -1312,8 +1324,17 @@ "loop_videos_description": "Ativar para repetir os vídeos automaticamente durante a exibição.", "main_branch_warning": "Está a usar uma versão de desenvolvimento; recomendamos vivamente que use uma versão de lançamento!", "main_menu": "Menu Principal", + "maintenance_description": "O Immich foi colocado em modo de manutenção.", + "maintenance_end": "Desativar modo de manutenção", + "maintenance_end_error": "Ocorreu um erro ao desativar o modo de manutenção.", + "maintenance_logged_in_as": "Sessão iniciada como {user}", + "maintenance_title": "Temporariamente Indisponível", "make": "Marca", "manage_geolocation": "Gerir localização", + "manage_media_access_rationale": "Esta autorização é necessária para a correta gestão e envio de ficheiros para a reciclagem, e para os restaurar da mesma.", + "manage_media_access_settings": "Abrir definições", + "manage_media_access_subtitle": "Autorizar que aplicação Immich faça a gestão e movimente ficheiros.", + "manage_media_access_title": "Acesso à Gestão de Ficheiros", "manage_shared_links": "Gerir links partilhados", "manage_sharing_with_partners": "Gerir partilha com parceiros", "manage_the_app_settings": "Gerir definições da aplicação", @@ -1377,6 +1398,7 @@ "more": "Mais", "move": "Mover", "move_off_locked_folder": "Mover para fora da pasta trancada", + "move_to": "Mover para", "move_to_lock_folder_action_prompt": "{count} adicionados à pasta trancada", "move_to_locked_folder": "Mover para a pasta trancada", "move_to_locked_folder_confirmation": "Estas fotos e vídeos serão removidas de todos os álbuns, e só serão visíveis na pasta trancada", @@ -1406,6 +1428,7 @@ "new_pin_code": "Novo código PIN", "new_pin_code_subtitle": "Esta é a primeira vez que acede à pasta trancada. Crie um código PIN para aceder a esta página de forma segura", "new_timeline": "Nova Linha do Tempo", + "new_update": "Nova atualização", "new_user_created": "Novo utilizador criado", "new_version_available": "NOVA VERSÃO DISPONÍVEL", "newest_first": "Mais recente primeiro", @@ -1421,12 +1444,14 @@ "no_cast_devices_found": "Nenhum dispositivo de transmissão encontrado", "no_checksum_local": "Sem cálculo de verificação disponível - não pode capturar conteúdos locais", "no_checksum_remote": "Soma de verificação (checksum) não disponível - não é possível obter o recurso remoto", + "no_devices": "Nenhum dispositivo autorizado", "no_duplicates_found": "Nenhum item duplicado foi encontrado.", "no_exif_info_available": "Sem informações exif disponíveis", "no_explore_results_message": "Carregue mais fotos para explorar a sua coleção.", "no_favorites_message": "Adicione aos favoritos para encontrar as suas melhores fotos e vídeos rapidamente", "no_libraries_message": "Crie uma biblioteca externa para ver as suas fotos e vídeos", "no_local_assets_found": "Sem cálculo de verificação disponível", + "no_location_set": "Sem localização definida", "no_locked_photos_message": "Fotos e vídeos na pasta trancada estão ocultos e não serão exibidos enquanto explora ou pesquisa na biblioteca.", "no_name": "Sem nome", "no_notifications": "Sem notificações", @@ -1437,6 +1462,7 @@ "no_results_description": "Tente um sinónimo ou uma palavra-chave mais comum", "no_shared_albums_message": "Crie um álbum para partilhar fotos e vídeos com pessoas na sua rede", "no_uploads_in_progress": "Nenhum carregamento em curso", + "not_allowed": "Não permitido", "not_available": "N/A", "not_in_any_album": "Não está em nenhum álbum", "not_selected": "Não selecionado", @@ -1483,7 +1509,7 @@ "other_devices": "Outros dispositivos", "other_entities": "Outras entidades", "other_variables": "Outras variáveis", - "owned": "Seu", + "owned": "Seus", "owner": "Dono", "partner": "Parceiro", "partner_can_access": "{partner} pode aceder", @@ -1547,6 +1573,8 @@ "photos_count": "{count, plural, one {{count, number} Foto} other {{count, number} Fotos}}", "photos_from_previous_years": "Fotos de anos anteriores", "pick_a_location": "Selecione uma localização", + "pick_custom_range": "Intervalo personalizado", + "pick_date_range": "Selecione um intervalo de datas", "pin_code_changed_successfully": "Código PIN alterado com sucesso", "pin_code_reset_successfully": "Código PIN reposto com sucesso", "pin_code_setup_successfully": "Código PIN configurado com sucesso", @@ -1734,14 +1762,14 @@ "search_by_filename": "Pesquisar por nome de ficheiro ou extensão", "search_by_filename_example": "por exemplo, IMG_1234.JPG ou PNG", "search_by_ocr": "Pesquisar por OCR", - "search_by_ocr_example": "Latte", + "search_by_ocr_example": "Galão", "search_camera_lens_model": "Pesquisar por modelo de lente...", "search_camera_make": "Pesquisar por marca da câmara...", "search_camera_model": "Pesquisar por modelo da câmara...", "search_city": "Pesquisar cidade...", "search_country": "Pesquisar país...", "search_filter_apply": "Aplicar filtro", - "search_filter_camera_title": "Selecione o tipo de câmera", + "search_filter_camera_title": "Selecione o tipo de câmara", "search_filter_date": "Data", "search_filter_date_interval": "{start} até {end}", "search_filter_date_title": "Selecione a data", @@ -1750,8 +1778,8 @@ "search_filter_filename": "Pesquisar por nome do ficheiro", "search_filter_location": "Localização", "search_filter_location_title": "Selecione a localização", - "search_filter_media_type": "Tipo da mídia", - "search_filter_media_type_title": "Selecione o tipo da mídia", + "search_filter_media_type": "Tipo de ficheiro", + "search_filter_media_type_title": "Selecione o tipo do ficheiro", "search_filter_ocr": "Pesquisar por OCR", "search_filter_people_title": "Selecionar pessoas", "search_for": "Pesquisar por", @@ -1776,7 +1804,7 @@ "search_places": "Pesquisar lugares", "search_rating": "Pesquisar por classificação...", "search_result_page_new_search_hint": "Nova Pesquisa", - "search_settings": "Definições de pesquisa", + "search_settings": "Pesquisar nas Definições", "search_state": "Pesquisar estado/distrito...", "search_suggestion_list_smart_search_hint_1": "A pesquisa inteligente está ativada por omissão. Para pesquisar por metadados, utilize a sintaxe ", "search_suggestion_list_smart_search_hint_2": "m:a-sua-pesquisa", @@ -1814,6 +1842,8 @@ "server_offline": "Servidor Offline", "server_online": "Servidor Online", "server_privacy": "Privacidade do Servidor", + "server_restarting_description": "A página irá atualizar dentro de momentos.", + "server_restarting_title": "O servidor está a reiniciar", "server_stats": "Estado do servidor", "server_update_available": "Está disponível uma atualização do servidor", "server_version": "Versão do servidor", @@ -1906,12 +1936,12 @@ "shared_links": "Links partilhados", "shared_links_description": "Partilhar fotos e videos com um link", "shared_photos_and_videos_count": "{assetCount, plural, other {# Fotos & videos partilhados.}}", - "shared_with_me": "Compartilhado comigo", + "shared_with_me": "Partilhado comigo", "shared_with_partner": "Partilhado com {partner}", "sharing": "Partilha", "sharing_enter_password": "Por favor, insira a palavra-passe para ver esta página.", - "sharing_page_album": "Álbuns compartilhados", - "sharing_page_description": "Crie álbuns compartilhados para compartilhar fotos e vídeos com pessoas da sua rede.", + "sharing_page_album": "Álbuns partilhados", + "sharing_page_description": "Crie álbuns partilhados para partilhar fotos e vídeos com pessoas da sua rede.", "sharing_page_empty_list": "LISTA VAZIA", "sharing_sidebar_description": "Exibe o link para Partilhar na barra lateral", "sharing_silver_appbar_create_shared_album": "Criar álbum partilhado", @@ -1932,7 +1962,7 @@ "show_password": "Mostrar palavra-passe", "show_person_options": "Exibir opções da pessoa", "show_progress_bar": "Exibir barra de progresso", - "show_search_options": "Exibir opções de pesquisa", + "show_search_options": "Mostrar opções de pesquisa", "show_shared_links": "Mostrar links partilhados", "show_slideshow_transition": "Mostrar transições no Modo de Apresentação", "show_supporter_badge": "Emblema de apoiante", @@ -2027,6 +2057,7 @@ "third_party_resources": "Recursos de terceiros", "time": "Hora", "time_based_memories": "Memórias baseadas no tempo", + "time_based_memories_duration": "Número de segundos para exibir cada imagem.", "timeline": "Linha de tempo", "timezone": "Fuso horário", "to_archive": "Arquivar", @@ -2085,7 +2116,7 @@ "unstack": "Desempilhar", "unstack_action_prompt": "{count} desempilhados", "unstacked_assets_count": "Desempilhados {count, plural, one {# ficheiro} other {# ficheiros}}", - "untagged": "Marcador removido", + "untagged": "Sem etiqueta", "up_next": "A seguir", "update_location_action_prompt": "Atualize a localização de {count} ficheiros selecionados com:", "updated_at": "Atualizado a", @@ -2122,7 +2153,7 @@ "user_purchase_settings": "Comprar", "user_purchase_settings_description": "Gerir a sua compra", "user_role_set": "Definir {user} como {role}", - "user_usage_detail": "Detalhes de utilização do utilizador", + "user_usage_detail": "Detalhes de utilização por utilizador", "user_usage_stats": "Estatísticas de utilização de conta", "user_usage_stats_description": "Ver estatísticas de utilização de conta", "username": "Nome de utilizador", @@ -2167,6 +2198,7 @@ "welcome": "Bem-vindo(a)", "welcome_to_immich": "Bem-vindo(a) ao Immich", "wifi_name": "Nome da rede Wi-Fi", + "workflow": "Fluxo de trabalho", "wrong_pin_code": "Código PIN errado", "year": "Ano", "years_ago": "Há {years, plural, one {# ano} other {# anos}}", diff --git a/i18n/pt_BR.json b/i18n/pt_BR.json index 61dd5a7b75..c915344c55 100644 --- a/i18n/pt_BR.json +++ b/i18n/pt_BR.json @@ -17,7 +17,6 @@ "add_birthday": "Definir aniversário", "add_endpoint": "Adicionar URL", "add_exclusion_pattern": "Adicionar padrão de exclusão", - "add_import_path": "Adicionar caminho de importação", "add_location": "Adicionar local", "add_more_users": "Adicionar mais usuários", "add_partner": "Adicionar parceiro", @@ -28,12 +27,13 @@ "add_to_album": "Adicionar ao álbum", "add_to_album_bottom_sheet_added": "Adicionado ao {album}", "add_to_album_bottom_sheet_already_exists": "Já existe em {album}", - "add_to_album_bottom_sheet_some_local_assets": "Alguns arquivos / mídias não puderam ser adicionados ao álbum", + "add_to_album_bottom_sheet_some_local_assets": "Alguns arquivos não puderam ser adicionados ao álbum", "add_to_album_toggle": "Alternar a seleção de {album}", "add_to_albums": "Adicionar aos álbuns", "add_to_albums_count": "Adicionar aos álbuns ({count})", + "add_to_bottom_bar": "Incluir em", "add_to_shared_album": "Adicionar ao álbum compartilhado", - "add_upload_to_stack": "Adicionar upload ao grupo", + "add_upload_to_stack": "Adicionar ao grupo", "add_url": "Adicionar URL", "added_to_archive": "Adicionado ao arquivo", "added_to_favorites": "Adicionado aos favoritos", @@ -112,13 +112,17 @@ "jobs_failed": "{jobCount, plural, one {# falhou} other {# falharam}}", "library_created": "Criado biblioteca: {library}", "library_deleted": "Biblioteca excluída", - "library_import_path_description": "Especifique uma pasta para importar. Esta pasta, incluindo subpastas, será escaneada em busca de imagens e vídeos.", + "library_details": "Detalhes da biblioteca", + "library_folder_description": "Escolha uma pasta para importar. Esta pasta e todas suas sub pastas serão analisadas em busca de imagens e vídeos.", + "library_remove_exclusion_pattern_prompt": "Tem certeza de que deseja remover esse padrão de exclusão?", + "library_remove_folder_prompt": "Tem certeza de que deseja remover esta pasta de importação?", "library_scanning": "Verificação Periódica", "library_scanning_description": "Configurar verificação periódica da biblioteca", "library_scanning_enable_description": "Habilitar verificação periódica da biblioteca", "library_settings": "Biblioteca Externa", "library_settings_description": "Gerenciar configurações de biblioteca externa", "library_tasks_description": "Verificar se há arquivos novos ou modificados nas bibliotecas externas", + "library_updated": "Biblioteca atualizada", "library_watching_enable_description": "Observe bibliotecas externas para alterações de arquivos", "library_watching_settings": "Observação de biblioteca [EXPERIMENTAL]", "library_watching_settings_description": "Observe automaticamente os arquivos alterados", @@ -155,15 +159,17 @@ "machine_learning_min_recognized_faces": "Mínimo de rostos reconhecidos", "machine_learning_min_recognized_faces_description": "O número mínimo de rostos reconhecidos para uma pessoa ser criada. Aumentar isso torna o Reconhecimento Facial mais preciso, ao custo de aumentar a chance de um rosto não ser atribuído a uma pessoa.", "machine_learning_ocr": "OCR", - "machine_learning_ocr_description": "Usar machine learning para reconhecer textos em imagens", + "machine_learning_ocr_description": "Usar aprendizado de máquina para reconhecer textos em imagens", "machine_learning_ocr_enabled": "Habilitar OCR", - "machine_learning_ocr_enabled_description": "Se desabilitado, imagens não serão submetidas a reconhecimento de texto.", + "machine_learning_ocr_enabled_description": "Se desabilitado, imagens não serão processadas pelo reconhecimento de texto.", "machine_learning_ocr_max_resolution": "Resolução máxima", - "machine_learning_ocr_max_resolution_description": "Prévias acima dessa resolução serão redimensionadas com a preservação da proporção da imagem. Valores maiores são mais precisos, mas levam mais tempo para serem processados e usam mais memória.", + "machine_learning_ocr_max_resolution_description": "Prévias acima dessa resolução serão redimensionadas preservando a proporção da imagem. Valores maiores são mais precisos, mas levam mais tempo para serem processados e usam mais memória.", "machine_learning_ocr_min_detection_score": "Pontuação mínima para detecção", - "machine_learning_ocr_min_detection_score_description": "Pontuação mínima de confiançá para o texto ser detectado de 0 a 1. Valores mais baixos detectarão mais texto mas podem resultar em falsos positivos.", + "machine_learning_ocr_min_detection_score_description": "Pontuação mínima de confiança para o texto ser detectado de 0 a 1. Valores mais baixos detectarão mais texto mas podem resultar em falsos positivos.", "machine_learning_ocr_min_recognition_score": "Pontuação mínima de reconhecimento", "machine_learning_ocr_min_score_recognition_description": "Pontuação mínima de confiança para o texto ser detectado de 0 a 1. Valores mais baixos reconhecerão mais textos mas podem resultar em falsos positivos.", + "machine_learning_ocr_model": "Modelo OCR", + "machine_learning_ocr_model_description": "Os modelos do servidor são mais precisos do que os modelos do dispositivo móvel, mas demoram mais para processar e usam mais memória.", "machine_learning_settings": "Configurações de aprendizado de máquina", "machine_learning_settings_description": "Gerenciar recursos e configurações do aprendizado de máquina", "machine_learning_smart_search": "Pesquisa Inteligente", @@ -171,6 +177,10 @@ "machine_learning_smart_search_enabled": "Habilitar a Pesquisa Inteligente", "machine_learning_smart_search_enabled_description": "Se desativado, as imagens não serão codificadas para pesquisa inteligente.", "machine_learning_url_description": "A URL do servidor de aprendizado de máquina. Se mais de uma URL for fornecida, elas serão tentadas, uma de cada vez e na ordem indicada, até que uma responda com sucesso. Servidores que não responderem serão ignorados temporariamente até voltarem a estar conectados.", + "maintenance_settings": "Manutenção", + "maintenance_settings_description": "Coloque o Immich em modo de manutenção.", + "maintenance_start": "Iniciar modo de manutenção", + "maintenance_start_error": "Ocorreu um erro ao iniciar o modo de manutenção.", "manage_concurrency": "Gerenciar simultaneidade", "manage_log_settings": "Gerenciar configurações de log", "map_dark_style": "Tema Escuro", @@ -255,6 +265,7 @@ "oauth_storage_quota_default_description": "Cota em GiB que será usada caso esta declaração não seja fornecida.", "oauth_timeout": "Tempo Limite de Requisição", "oauth_timeout_description": "Tempo limite para requisições, em milissegundos", + "ocr_job_description": "Usa machine learning para reconhecer texto em imagens", "password_enable_description": "Login com e-mail e senha", "password_settings": "Senha de acesso", "password_settings_description": "Gerenciar configurações de login e senha", @@ -427,6 +438,7 @@ "age_months": "Idade {months, plural, one {# mês} other {# meses}}", "age_year_months": "Idade 1 ano e {months, plural, one {# mês} other {# meses}}", "age_years": "{years, plural, other {Idade #}}", + "album": "Álbum", "album_added": "Álbum adicionado", "album_added_notification_setting_description": "Receba uma notificação por e-mail quando você for adicionado a um álbum compartilhado", "album_cover_updated": "Capa do álbum atualizada", @@ -472,6 +484,7 @@ "allow_edits": "Permitir edições", "allow_public_user_to_download": "Permitir que usuários públicos baixem os arquivos", "allow_public_user_to_upload": "Permitir que usuários públicos enviem novos arquivos", + "allowed": "Permitido", "alt_text_qr_code": "Imagem do código QR", "anti_clockwise": "Anti-horário", "api_key": "Chave de API", @@ -482,10 +495,10 @@ "app_bar_signout_dialog_content": "Tem certeza de que deseja sair?", "app_bar_signout_dialog_ok": "Sim", "app_bar_signout_dialog_title": "Sair", - "app_download_links": "Links de Download de App", + "app_download_links": "Links para baixar o aplicativo", "app_settings": "Configurações do Aplicativo", "app_stores": "Loja de Aplicativos", - "app_update_available": "Atualizações de apps disponíveis", + "app_update_available": "Uma atualização para o aplicativo está disponível", "appears_in": "Aparece em", "apply_count": "Aplicar ({count, number})", "archive": "Arquivar", @@ -493,7 +506,7 @@ "archive_or_unarchive_photo": "Arquivar ou desarquivar foto", "archive_page_no_archived_assets": "Nenhum arquivo encontrado", "archive_page_title": "Arquivados ({count})", - "archive_size": "Tamanho do arquivo", + "archive_size": "Tamanho do arquivamento", "archive_size_description": "Configure o tamanho do arquivo para baixar (em GiB)", "archived": "Arquivado", "archived_count": "{count, plural, one {# Arquivado} other {# Arquivados}}", @@ -558,7 +571,7 @@ "background_backup_running_error": "Não é possível iniciar o backup manual agora pois o backup em segundo plano já está sendo executado", "background_location_permission": "Permissão de localização em segundo plano", "background_location_permission_content": "Para que seja possível trocar o endereço quando estiver executando em segundo plano, o Immich deve *sempre* ter a permissão de localização precisa para que o aplicativo consiga ler o nome da rede Wi-Fi", - "background_options": "Opções de Plano de Fundo", + "background_options": "Opções de segundo plano", "backup": "Backup", "backup_album_selection_page_albums_device": "Álbuns no dispositivo ({count})", "backup_album_selection_page_albums_tap": "Toque para incluir, toque duas vezes para excluir", @@ -569,7 +582,7 @@ "backup_albums_sync": "Backup de sincronização de álbuns", "backup_all": "Todos", "backup_background_service_backup_failed_message": "Falha ao fazer backup. Tentando novamente…", - "backup_background_service_complete_notification": "Backup de ativo completado", + "backup_background_service_complete_notification": "Backup dos arquivos concluído", "backup_background_service_connection_failed_message": "Falha na conexão com o servidor. Tentando novamente…", "backup_background_service_current_upload_notification": "Enviando {filename}", "backup_background_service_default_notification": "Verificando se há novos arquivos…", @@ -679,6 +692,8 @@ "change_password_description": "Esta é a primeira vez que você está acessando o sistema ou foi feita uma solicitação para alterar sua senha. Por favor, insira a nova senha abaixo.", "change_password_form_confirm_password": "Confirme a senha", "change_password_form_description": "Olá {name},\n\nEsta é a primeira vez que você está acessando o sistema ou foi feita uma solicitação para alterar sua senha. Por favor, insira a nova senha abaixo.", + "change_password_form_log_out": "Desconectar todos os outros dispositivos", + "change_password_form_log_out_description": "É recomendável desconectar todos os outros dispositivos", "change_password_form_new_password": "Nova Senha", "change_password_form_password_mismatch": "As senhas não estão iguais", "change_password_form_reenter_new_password": "Confirme a nova senha", @@ -686,7 +701,7 @@ "change_your_password": "Alterar sua senha", "changed_visibility_successfully": "Visibilidade alterada com sucesso", "charging": "Carregando", - "charging_requirement_mobile_backup": "Backups em plano de fundo requerem que o dispositivo esteja sendo carregado", + "charging_requirement_mobile_backup": "Backups em segundo plano requerem que o dispositivo esteja sendo carregado", "check_corrupt_asset_backup": "Verifique se há backups corrompidos", "check_corrupt_asset_backup_button": "Verificar", "check_corrupt_asset_backup_description": "Execute esta verificação somente em uma rede Wi-Fi e quando o backup de todos os arquivos já estiver concluído. O processo demora alguns minutos.", @@ -786,6 +801,7 @@ "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Escuro", "dark_theme": "Usar tema escuro", + "date": "Data", "date_after": "Data após", "date_and_time": "Data e Hora", "date_before": "Data antes", @@ -888,8 +904,6 @@ "edit_description_prompt": "Por favor selecione uma nova descrição:", "edit_exclusion_pattern": "Editar o padrão de exclusão", "edit_faces": "Editar rostos", - "edit_import_path": "Editar caminho de importação", - "edit_import_paths": "Editar caminhos de importação", "edit_key": "Editar chave", "edit_link": "Editar link", "edit_location": "Editar Localização", @@ -961,8 +975,8 @@ "failed_to_stack_assets": "Falha ao agrupar arquivos", "failed_to_unstack_assets": "Falha ao remover arquivos do grupo", "failed_to_update_notification_status": "Falha ao atualizar o status da notificação", - "import_path_already_exists": "Este caminho de importação já existe.", "incorrect_email_or_password": "E-mail ou senha incorretos", + "library_folder_already_exists": "Este caminho de importação já existe.", "paths_validation_failed": "A validação de {paths, plural, one {# caminho falhou} other {# caminhos falharam}}", "profile_picture_transparent_pixels": "As imagens de perfil não podem ter pixels transparentes. Aumente o zoom e/ou mova a imagem.", "quota_higher_than_disk_size": "Você definiu uma cota maior do que o tamanho do disco", @@ -971,7 +985,6 @@ "unable_to_add_assets_to_shared_link": "Não é possível adicionar arquivos ao link compartilhado", "unable_to_add_comment": "Não foi possível adicionar o comentário", "unable_to_add_exclusion_pattern": "Não foi possível adicionar o padrão de exclusão", - "unable_to_add_import_path": "Não foi possível adicionar o caminho de importação", "unable_to_add_partners": "Não foi possível adicionar parceiros", "unable_to_add_remove_archive": "Não é possível {archived, select, true {remove asset from} other {add asset to}} arquivar", "unable_to_add_remove_favorites": "Não foi possível {favorite, select, true {adicionar o arquivo aos} other {remover o arquivo dos}} favoritos", @@ -994,12 +1007,10 @@ "unable_to_delete_asset": "Não foi possível deletar o arquivo", "unable_to_delete_assets": "Erro ao excluir arquivos", "unable_to_delete_exclusion_pattern": "Não foi possível deletar o padrão de exclusão", - "unable_to_delete_import_path": "Não foi possível deletar o caminho de importação", "unable_to_delete_shared_link": "Não foi possível deletar o link compartilhado", "unable_to_delete_user": "Não foi possível deletar o usuário", "unable_to_download_files": "Não foi possível baixar os arquivos", "unable_to_edit_exclusion_pattern": "Não foi possível editar o padrão de exclusão", - "unable_to_edit_import_path": "Não foi possível editar o caminho de importação", "unable_to_empty_trash": "Não foi possível esvaziar a lixeira", "unable_to_enter_fullscreen": "Não foi possível entrar em modo de tela cheia", "unable_to_exit_fullscreen": "Não foi possível sair do modo de tela cheia", @@ -1050,6 +1061,7 @@ "unable_to_update_user": "Não foi possível atualizar o usuário", "unable_to_upload_file": "Não foi possível enviar o arquivo" }, + "exclusion_pattern": "Padrão de exclusão", "exif": "Exif", "exif_bottom_sheet_description": "Adicionar descrição...", "exif_bottom_sheet_description_error": "Erro ao alterar a descrição", @@ -1094,6 +1106,7 @@ "features_setting_description": "Gerenciar as funcionalidades da aplicação", "file_name": "Nome do arquivo", "file_name_or_extension": "Nome do arquivo ou extensão", + "file_size": "Tamanho do arquivo", "filename": "Nome do arquivo", "filetype": "Tipo de arquivo", "filter": "Filtro", @@ -1189,6 +1202,8 @@ "import_path": "Caminho de importação", "in_albums": "Em {count, plural, one {# álbum} other {# álbuns}}", "in_archive": "Arquivado", + "in_year": "Em {year}", + "in_year_selector": "Em", "include_archived": "Incluir arquivados", "include_shared_albums": "Incluir álbuns compartilhados", "include_shared_partner_assets": "Incluir arquivos compartilhados por parceiros", @@ -1225,6 +1240,7 @@ "language_setting_description": "Selecione seu Idioma preferido", "large_files": "Arquivos Grandes", "last": "Último", + "last_months": "{count, plural, one {Last month} other {Last # months}}", "last_seen": "Visto pela ultima vez", "latest_version": "Versão mais recente", "latitude": "Latitude", @@ -1234,6 +1250,8 @@ "let_others_respond": "Permitir respostas", "level": "Nível", "library": "Biblioteca", + "library_add_folder": "Adicionar pasta", + "library_edit_folder": "Editar pasta", "library_options": "Opções da biblioteca", "library_page_device_albums": "Álbuns no Dispositivo", "library_page_new_album": "Novo album", @@ -1257,6 +1275,7 @@ "local_media_summary": "Resumo das mídias locais", "local_network": "Rede local", "local_network_sheet_info": "O aplicativo irá se conectar ao servidor através deste endereço quando estiver na rede Wi-Fi especificada", + "location": "Localização", "location_permission": "Permissão de localização", "location_permission_content": "Para utilizar a função de troca automática de URL é necessário a permissão de localização precisa, para que seja possível ler o nome da rede Wi-Fi", "location_picker_choose_on_map": "Escolha no mapa", @@ -1272,7 +1291,7 @@ "logged_in_as": "Usuário atual: {user}", "logged_out_all_devices": "Saiu de todos os dispositivos", "logged_out_device": "Dispositivo desconectado", - "login": "Iniciar sessão", + "login": "Entrar", "login_disabled": "Login desativado", "login_form_api_exception": "Erro de API. Verifique a URL do servidor e tente novamente.", "login_form_back_button_text": "Voltar", @@ -1297,21 +1316,30 @@ "login_password_changed_success": "Senha atualizada com sucesso", "logout_all_device_confirmation": "Tem certeza de que deseja sair de todos os dispositivos?", "logout_this_device_confirmation": "Tem certeza de que deseja sair deste dispositivo?", - "logs": "Logs", + "logs": "Registros", "longitude": "Longitude", "look": "Estilo", "loop_videos": "Repetir vídeos", "loop_videos_description": "Ative para repetir os vídeos automaticamente durante a exibição.", "main_branch_warning": "Você está utilizando uma versão de desenvolvimento. É fortemente recomendado que utilize uma versão estável!", "main_menu": "Menu Principal", + "maintenance_description": "O Immich foi colocado em modo de manutenção.", + "maintenance_end": "Desativar modo de manutenção", + "maintenance_end_error": "Ocorreu um erro ao desativar o modo de manutenção.", + "maintenance_logged_in_as": "Usuário atual: {user}", + "maintenance_title": "Temporariamente Indisponível", "make": "Marca", "manage_geolocation": "Gerenciar localização", + "manage_media_access_rationale": "Essa permissão é necessária para o correto gerenciamento da movimentação de mídias para a lixeira e para a sua restauração a partir dela.", + "manage_media_access_settings": "Abrir configurações", + "manage_media_access_subtitle": "Permita que o aplicativo Immich gerencie e mova arquivos de mídia.", + "manage_media_access_title": "Acesso para gerenciar mídias", "manage_shared_links": "Gerir links partilhados", "manage_sharing_with_partners": "Gerenciar compartilhamento com parceiros", "manage_the_app_settings": "Gerenciar configurações do app", "manage_your_account": "Gerenciar sua conta", "manage_your_api_keys": "Gerenciar suas Chaves de API", - "manage_your_devices": "Gerenciar seus dispositivos logados", + "manage_your_devices": "Gerenciar seus dispositivos conectados", "manage_your_oauth_connection": "Gerenciar sua conexão OAuth", "map": "Mapa", "map_assets_in_bounds": "{count, plural, =0 {Sem fotos nesta área} one {# foto} other {# fotos}}", @@ -1369,6 +1397,7 @@ "more": "Mais", "move": "Mover", "move_off_locked_folder": "Mover para fora da pasta com senha", + "move_to": "Mover para", "move_to_lock_folder_action_prompt": "{count} adicionados à pasta com senha", "move_to_locked_folder": "Mover para a pasta com senha", "move_to_locked_folder_confirmation": "Estas fotos e vídeos serão removidos de todos os álbuns e somente poderão ser visualizados de dentro da pasta com senha", @@ -1398,6 +1427,7 @@ "new_pin_code": "Novo código PIN", "new_pin_code_subtitle": "Esta é a primeira vez que está acessando a pasta com senha. Crie um código PIN para acessar esta página de forma segura", "new_timeline": "Nova Linha do Tempo", + "new_update": "Nova atualização", "new_user_created": "Novo usuário criado", "new_version_available": "NOVA VERSÃO DISPONÍVEL", "newest_first": "Mais recente primeiro", @@ -1413,6 +1443,7 @@ "no_cast_devices_found": "Nenhum dispositivo encontrado", "no_checksum_local": "Nenhum checksum disponível - não foi possível carregar os arquivos locais", "no_checksum_remote": "Nenhum checksum disponível - não foi possível carregar os arquivos remotos", + "no_devices": "Nenhum dispostivio autorizado", "no_duplicates_found": "Nenhuma duplicidade foi encontrada.", "no_exif_info_available": "Sem informações exif disponíveis", "no_explore_results_message": "Envie mais fotos para explorar sua coleção.", @@ -1429,6 +1460,7 @@ "no_results_description": "Tente um sinônimo ou uma palavra-chave mais geral", "no_shared_albums_message": "Crie um álbum para compartilhar fotos e vídeos com pessoas em sua rede", "no_uploads_in_progress": "Nenhum envio em progresso", + "not_allowed": "Não permitido", "not_available": "N/A", "not_in_any_album": "Fora de álbum", "not_selected": "Não selecionado", @@ -1445,6 +1477,7 @@ "oauth": "OAuth", "obtainium_configurator": "Configurador Obtainium", "obtainium_configurator_instructions": "Use o Obtainium para instalar e atualizar o aplicativo Android diretamente do lançamento do Immich no GitHub. Crie uma chave API e selecione a variante para criar o seu link de configuração Obtainium", + "ocr": "OCR", "official_immich_resources": "Recursos oficiais do Immich", "offline": "Desconectado", "offset": "Deslocamento", @@ -1538,6 +1571,8 @@ "photos_count": "{count, plural, one {{count, number} Foto} other {{count, number} Fotos}}", "photos_from_previous_years": "Fotos de anos anteriores", "pick_a_location": "Selecione uma localização", + "pick_custom_range": "Intervalo customizado", + "pick_date_range": "Selecione o intervalo de datas", "pin_code_changed_successfully": "Código PIN alterado com sucesso", "pin_code_reset_successfully": "Código PIN redefinido com sucesso", "pin_code_setup_successfully": "Código PIN criado com sucesso", @@ -1568,7 +1603,7 @@ "primary": "Primário", "privacy": "Privacidade", "profile": "Perfil", - "profile_drawer_app_logs": "Logs", + "profile_drawer_app_logs": "Registros", "profile_drawer_client_server_up_to_date": "Cliente e Servidor estão atualizados", "profile_drawer_github": "GitHub", "profile_drawer_readonly_mode": "Modo apenas leitura habilidato. Dê um toque prolongado na foto do usuário para sair deste modo.", @@ -1618,7 +1653,7 @@ "read_changelog": "Ler Novidades", "readonly_mode_disabled": "Modo apenas visualização desativado", "readonly_mode_enabled": "Modo apenas visualização ativado", - "ready_for_upload": "Pronto para upload", + "ready_for_upload": "Pronto para enviar", "reassign": "Reatribuir", "reassigned_assets_to_existing_person": "{count, plural, one {# arquivo reatribuído} other {# arquivos reatribuídos}} a {name, select, null {uma pessoa} other {{name}}}", "reassigned_assets_to_new_person": "{count, plural, one {# arquivo reatribuído} other {# arquivos reatribuídos}} a uma nova pessoa", @@ -1688,6 +1723,7 @@ "reset_sqlite_confirmation": "Realmente deseja redefinir o banco de dados SQLite? Será necessário sair e entrar em sua conta novamente para ressincronizar os dados", "reset_sqlite_success": "Banco de dados SQLite redefinido com sucesso", "reset_to_default": "Redefinir para a configuração padrão", + "resolution": "Resolução", "resolve_duplicates": "Resolver duplicatas", "resolved_all_duplicates": "Todas duplicidades resolvidas", "restore": "Restaurar", @@ -1706,6 +1742,7 @@ "running": "Executando", "save": "Salvar", "save_to_gallery": "Salvar na galeria", + "saved": "Salvo", "saved_api_key": "Chave de API salva", "saved_profile": "Perfil Salvo", "saved_settings": "Configurações salvas", @@ -1722,6 +1759,8 @@ "search_by_description_example": "Dia de caminhada no Ibirapuera", "search_by_filename": "Pesquisa por nome de arquivo ou extensão", "search_by_filename_example": "Por exemplo, IMG_1234.JPG ou PNG", + "search_by_ocr": "Buscar por OCR", + "search_by_ocr_example": "Café com leite", "search_camera_lens_model": "Buscar por modelo de lente...", "search_camera_make": "Pesquisar câmeras da marca...", "search_camera_model": "Pesquisar câmera do modelo...", @@ -1739,6 +1778,7 @@ "search_filter_location_title": "Selecione a localização", "search_filter_media_type": "Tipo de mídia", "search_filter_media_type_title": "Selecione o tipo de mídia", + "search_filter_ocr": "Buscar por OCR", "search_filter_people_title": "Selecione pessoas", "search_for": "Pesquisar por", "search_for_existing_person": "Pesquisar por pessoas", @@ -1762,7 +1802,7 @@ "search_places": "Pesquisar lugares", "search_rating": "Pesquisar por classificação...", "search_result_page_new_search_hint": "Nova pesquisa", - "search_settings": "Configurações de pesquisa", + "search_settings": "Pesquisar nas Configurações", "search_state": "Pesquisar estado...", "search_suggestion_list_smart_search_hint_1": "A pesquisa inteligente é utilizada por padrão, para pesquisar por metadados, use a sintaxe ", "search_suggestion_list_smart_search_hint_2": "m:seu-termo-de-pesquisa", @@ -1800,6 +1840,8 @@ "server_offline": "Servidor Indisponível", "server_online": "Servidor Disponível", "server_privacy": "Privacidade do servidor", + "server_restarting_description": "Esta página será atualizada em breve.", + "server_restarting_title": "O servidor está reiniciando", "server_stats": "Status do servidor", "server_update_available": "Uma atualização para o servidor está disponível", "server_version": "Versão do servidor", @@ -2011,7 +2053,9 @@ "theme_setting_three_stage_loading_title": "Ative o carregamento em três estágios", "they_will_be_merged_together": "Eles serão mesclados", "third_party_resources": "Recursos de terceiros", + "time": "Hora", "time_based_memories": "Memórias baseadas no tempo", + "time_based_memories_duration": "Número de segundos para exibir cada imagem.", "timeline": "Linha do tempo", "timezone": "Fuso horário", "to_archive": "Arquivar", @@ -2152,6 +2196,7 @@ "welcome": "Bem-vindo(a)", "welcome_to_immich": "Bem-vindo(a) ao Immich", "wifi_name": "Nome do Wi-Fi", + "workflow": "Automação", "wrong_pin_code": "Código PIN incorreto", "year": "Ano", "years_ago": "{years, plural, one {# ano} other {# anos}} atrás", diff --git a/i18n/ro.json b/i18n/ro.json index 3d08b27d75..fc53f3caac 100644 --- a/i18n/ro.json +++ b/i18n/ro.json @@ -17,7 +17,6 @@ "add_birthday": "Adaugă zi de naștere", "add_endpoint": "Adaugă punct final", "add_exclusion_pattern": "Adăugă un model de excludere", - "add_import_path": "Adaugă o cale de import", "add_location": "Adaugă locație", "add_more_users": "Adaugă mai mulți utilizatori", "add_partner": "Adaugă partener", @@ -112,7 +111,6 @@ "jobs_failed": "{jobCount, plural, other {# eșuat}}", "library_created": "Librărie creată: {library}", "library_deleted": "Bibliotecă ștearsă", - "library_import_path_description": "Specificați un folder pentru a îl importa. Acest folder, inclusiv sub-folderele, vor fi scanate pentru imagini și videoclipuri.", "library_scanning": "Scanare periodică", "library_scanning_description": "Configurează scanarea periodică pentru bibliotecă", "library_scanning_enable_description": "Activează scanarea periodică pentru bibliotecă", @@ -348,7 +346,7 @@ "transcoding_max_b_frames": "Număr maxim de cadre B", "transcoding_max_b_frames_description": "Valorile mai mari îmbunătățesc eficiența compresiei, dar încetinesc codarea. Este posibil să nu fie compatibile cu accelerarea hardware pe dispozitivele mai vechi. 0 dezactivează cadrele B, în timp ce -1 setează această valoare automat.", "transcoding_max_bitrate": "Rata de biți maximă", - "transcoding_max_bitrate_description": "Setarea unei rate maxime de biți poate face dimensiunile fișierelor mai previzibile, cu un cost minor asupra calității. La 720p, valorile tipice sunt 2600 kbit/s pentru VP9 sau HEVC, sau 4500 kbit/s pentru H.264. Dezactivat dacă este setat la 0.", + "transcoding_max_bitrate_description": "Setarea unei rate maxime de biți poate face dimensiunile fișierelor mai previzibile, cu un cost minor asupra calității. La 720p, valorile tipice sunt 2600 kbit/s pentru VP9 sau HEVC, sau 4500 kbit/s pentru H.264. Dezactivat dacă este setat la 0. Cand o unitate nu este specificata, k (pentru kbit/s) este asumat.In acest caz 5000,5000k si 5M (pentru Mbit/s) sunt echivalente.", "transcoding_max_keyframe_interval": "Interval maxim între cadre cheie", "transcoding_max_keyframe_interval_description": "Setează distanța maximă între cadrele cheie. Valorile mai mici reduc eficiența compresiei, dar îmbunătățesc timpii de căutare și pot îmbunătăți calitatea în scenele cu mișcare rapidă. 0 setează această valoare automat.", "transcoding_optimal_description": "Videoclipuri cu rezoluție mai mare decât cea țintă sau care nu sunt într-un format acceptat", @@ -366,7 +364,7 @@ "transcoding_target_resolution": "Rezoluția țintă", "transcoding_target_resolution_description": "Rezoluțiile mai mari pot păstra mai multe detalii, dar necesită mai mult timp pentru codare, au dimensiuni mai mari ale fișierelor și pot reduce răspunsul aplicației.", "transcoding_temporal_aq": "AQ temporal", - "transcoding_temporal_aq_description": "Se aplică doar la NVENC. Îmbunătățește calitatea scenelor cu detalii mari și mișcare redusă. Poate să nu fie compatibil cu dispozitivele mai vechi.", + "transcoding_temporal_aq_description": "Se aplică doar la NVENC.Cuantificarea adaptivă temporală imbunătățește calitatea scenelor cu detalii mari și mișcare redusă. Poate să nu fie compatibil cu dispozitivele mai vechi.", "transcoding_threads": "Fire", "transcoding_threads_description": "Valorile mai mari conduc la o codare mai rapidă, dar lasă mai puțin spațiu serverului pentru a procesa alte sarcini în timp ce este activ. Această valoare nu ar trebui să fie mai mare decât numărul de nuclee CPU. Maximizați utilizarea dacă este setat la 0.", "transcoding_tone_mapping": "Mapare tonuri", @@ -417,11 +415,11 @@ "advanced_settings_prefer_remote_subtitle": "Unele dispozitive încarcă extrem de lent miniaturile din resursele locale. Activați această setare pentru a încărca imagini la distanță.", "advanced_settings_prefer_remote_title": "Preferă fotografii la distanță", "advanced_settings_proxy_headers_subtitle": "Definește antetele proxy pe care Immich ar trebui să le trimită cu fiecare solicitare de rețea", - "advanced_settings_proxy_headers_title": "Headere proxy personalizate", + "advanced_settings_proxy_headers_title": "Headere proxy personalizate [EXPERIMENTAL]", "advanced_settings_readonly_mode_subtitle": "Activează modul doar-citire, în care fotografiile pot fi doar vizualizate, iar acțiuni precum selectarea mai multor imagini, partajarea, redarea pe alt dispozitiv sau ștergerea sunt dezactivate. Activează/Dezactivează modul doar-citire din avatarul utilizatorului de pe ecranul principal", "advanced_settings_readonly_mode_title": "Mod doar citire", "advanced_settings_self_signed_ssl_subtitle": "Omite verificare certificate SSL pentru distinația server-ului, necesar pentru certificate auto-semnate.", - "advanced_settings_self_signed_ssl_title": "Permite certificate SSL auto-semnate", + "advanced_settings_self_signed_ssl_title": "Permite certificate SSL auto-semnate [EXPERIMENTAL]", "advanced_settings_sync_remote_deletions_subtitle": "Ștergeți sau restaurați automat un element de pe acest dispozitiv atunci când acțiunea este efectuată pe web", "advanced_settings_sync_remote_deletions_title": "Sincronizează stergerile efectuate la distanță [EXPERIMENTAL]", "advanced_settings_tile_subtitle": "Setări avansate pentru utilizator", @@ -475,6 +473,7 @@ "allow_edits": "Permite editări", "allow_public_user_to_download": "Permite utilizatorului public să descarce", "allow_public_user_to_upload": "Permite utilizatorului public să încarce", + "allowed": "Permis", "alt_text_qr_code": "Cod QR", "anti_clockwise": "În sens invers acelor de ceasornic", "api_key": "Cheie API", @@ -488,7 +487,7 @@ "app_download_links": "Linkuri de descărcare în aplicație", "app_settings": "Setări aplicație", "app_stores": "Magazine de aplicații", - "app_update_available": "Este disponibilă o actualizare a aplicației", + "app_update_available": "Actualizarea aplicației disponibilă", "appears_in": "Apare în", "apply_count": "Aplică ({count, number})", "archive": "Arhivă", @@ -711,7 +710,7 @@ "client_cert_invalid_msg": "Fisier cu certificat invalid sau parola este greșită", "client_cert_remove_msg": "Certificatul de client este șters", "client_cert_subtitle": "Este suportat doar formatul PKCS12 (.p12, .pfx). Importul/ștergerea certificatului este disponibil(ă) doar înainte de autentificare", - "client_cert_title": "Certificat SSL pentru client", + "client_cert_title": "Certificat SSL pentru client [EXPERIMENTAL]", "clockwise": "În sensul acelor de ceas", "close": "Închideți", "collapse": "Restrângeți", @@ -894,8 +893,6 @@ "edit_description_prompt": "Vă rugăm să selectați o descriere nouă:", "edit_exclusion_pattern": "Editarea modelului de excludere", "edit_faces": "Editare fețe", - "edit_import_path": "Editare cale de import", - "edit_import_paths": "Editare căi de import", "edit_key": "Tastă de editare", "edit_link": "Editare link", "edit_location": "Editare locație", @@ -967,7 +964,6 @@ "failed_to_stack_assets": "Eșec la combinarea resurselor", "failed_to_unstack_assets": "Eșec la desfășurarea resurselor", "failed_to_update_notification_status": "Nu s-a putut actualiza starea notificării", - "import_path_already_exists": "Această cale de import există deja.", "incorrect_email_or_password": "E-mail sau parolă incorect/ă", "paths_validation_failed": "{paths, plural, one {# cale} other {# căi}} nu a trecut validarea", "profile_picture_transparent_pixels": "Pozele de profil nu pot avea pixeli transparenți. Te rugăm să mărești imaginea și/sau să o muți.", @@ -977,7 +973,6 @@ "unable_to_add_assets_to_shared_link": "Imposibil de adăugat resurse la link-ul partajat", "unable_to_add_comment": "Imposibil de adăugat comentariu", "unable_to_add_exclusion_pattern": "Nu se poate adăuga modelul de excludere", - "unable_to_add_import_path": "Imposibil de adăugat calea de import", "unable_to_add_partners": "Nu se pot adăuga parteneri", "unable_to_add_remove_archive": "Nu se poate {archived, select, true {îndepărta resursa din} other {adăuga resursa în}} arhivă", "unable_to_add_remove_favorites": "Nu se poate {favorite, select, true {adăuga resursa în} other {îndepărta resursa din}} favorite", @@ -1000,12 +995,10 @@ "unable_to_delete_asset": "Nu poate fi ștearsă resursa", "unable_to_delete_assets": "Eroare la ștergerea resurselor", "unable_to_delete_exclusion_pattern": "Nu se poate șterge modelul de excludere", - "unable_to_delete_import_path": "Nu se poate șterge calea de import", "unable_to_delete_shared_link": "Nu se poate șterge linkul partajat", "unable_to_delete_user": "Nu se poate șterge userul", "unable_to_download_files": "Nu se pot descărca fișierele", "unable_to_edit_exclusion_pattern": "Nu se poate edita modelul de excludere", - "unable_to_edit_import_path": "Nu se poate edita calea de import", "unable_to_empty_trash": "Nu se poate goli coșul de gunoi", "unable_to_enter_fullscreen": "Nu se poate accesa ecranul complet", "unable_to_exit_fullscreen": "Imposibil de părăsit ecranul complet", @@ -1140,7 +1133,7 @@ "hash_asset": "Hash-ul resursei", "hashed_assets": "Resurse hashed", "hashing": "Generare hash", - "header_settings_add_header_tip": "Adăugați antet", + "header_settings_add_header_tip": "Adăugați header", "header_settings_field_validator_msg": "Valoarea nu poate fi goală", "header_settings_header_name_input": "Numele antetului", "header_settings_header_value_input": "Valoarea antetului", @@ -1389,8 +1382,8 @@ "my_albums": "Albumele mele", "name": "Nume", "name_or_nickname": "Nume sau poreclǎ", - "navigate": "Navighează/Navigare", - "navigate_to_time": "Mergi la Timp", + "navigate": "Navighează", + "navigate_to_time": "Navigheaza la Timp", "network_requirement_photos_upload": "Utilizați datele mobile pentru a face copii de rezervă ale fotografiilor", "network_requirement_videos_upload": "Utilizați datele mobile pentru a face copii de rezervă ale videoclipurilor", "network_requirements": "Cerințe privind rețeaua", diff --git a/i18n/ru.json b/i18n/ru.json index 52cd3adbc3..f6a342b735 100644 --- a/i18n/ru.json +++ b/i18n/ru.json @@ -17,7 +17,6 @@ "add_birthday": "Указать дату рождения", "add_endpoint": "Добавить адрес", "add_exclusion_pattern": "Добавить шаблон исключения", - "add_import_path": "Добавить путь импорта", "add_location": "Добавить местоположение", "add_more_users": "Добавить ещё пользователей", "add_partner": "Добавить партнёра", @@ -32,6 +31,7 @@ "add_to_album_toggle": "Переключить выделение для альбома {album}", "add_to_albums": "Добавить в альбомы", "add_to_albums_count": "Добавить в альбомы ({count})", + "add_to_bottom_bar": "Добавить в", "add_to_shared_album": "Добавить в общий альбом", "add_upload_to_stack": "Загрузить и добавить в группу", "add_url": "Добавить URL", @@ -52,7 +52,7 @@ "backup_keep_last_amount": "Количество хранимых резервных копий базы данных", "backup_onboarding_1_description": "хранение дополнительной внешней копии в облаке или другом физическом месте.", "backup_onboarding_2_description": "хранение основных файлов и их локальной копии на двух разных типах носителей.", - "backup_onboarding_3_description": "создание трёх копий данных, включая исходные файлы. 2 локальных копии и 1 внешнюю.", + "backup_onboarding_3_description": "создание трёх копий данных, включая исходные файлы: 2 локальных копии и 1 внешнюю.", "backup_onboarding_description": "Для надёжной защиты рекомендуется использовать стратегию резервирования данных 3-2-1. Делайте копии как загруженных фотографий и видео, так и базы данных Immich.", "backup_onboarding_footer": "Дополнительная информация по резервному копированию Immich доступна в документации.", "backup_onboarding_parts_title": "Стратегия 3-2-1 подразумевает:", @@ -112,13 +112,17 @@ "jobs_failed": "{jobCount, plural, other {# не удалось выполнить}}", "library_created": "Создана новая библиотека: {library}", "library_deleted": "Библиотека удалена", - "library_import_path_description": "Укажите папку для импорта. Эта папка и все вложенные будут просканированы на наличие фото и видео.", + "library_details": "Параметры библиотеки", + "library_folder_description": "Укажите путь к папке для импорта. Эта папка, включая подпапки, будет просканирована на наличие фото и видео.", + "library_remove_exclusion_pattern_prompt": "Удалить этот шаблон исключения?", + "library_remove_folder_prompt": "Удалить эту папку из списка?", "library_scanning": "Периодическое сканирование", "library_scanning_description": "Настроить периодическое сканирование библиотеки", "library_scanning_enable_description": "Включить периодическое сканирование библиотеки", "library_settings": "Внешняя библиотека", "library_settings_description": "Управление внешними библиотеками", "library_tasks_description": "Сканирование внешних библиотек на наличие новых и/или изменённых объектов", + "library_updated": "Библиотека обновлена", "library_watching_enable_description": "Отслеживать изменения файлов во внешних библиотеках", "library_watching_settings": "[ЭКСПЕРИМЕНТАЛЬНО] Слежение за библиотекой", "library_watching_settings_description": "Автоматически следить за изменениями файлов", @@ -173,6 +177,10 @@ "machine_learning_smart_search_enabled": "Включить интеллектуальный поиск", "machine_learning_smart_search_enabled_description": "При отключении этой функции изображения не будут кодироваться для интеллектуального поиска.", "machine_learning_url_description": "URL-адрес сервера машинного обучения. Если указано несколько, запросы будут отправляться по очереди на каждый, пока от одного из них не будет получен успешный ответ. Серверы, которые не отвечают, будут временно игнорироваться до тех пор, пока не станут снова доступны.", + "maintenance_settings": "Обслуживание", + "maintenance_settings_description": "Перевод сервера Immich в режим обслуживания.", + "maintenance_start": "Включить режим обслуживания", + "maintenance_start_error": "Не удалось перейти в режим обслуживания.", "manage_concurrency": "Управление параллельностью", "manage_log_settings": "Управление настройками журнала", "map_dark_style": "Тёмный стиль", @@ -266,7 +274,7 @@ "quota_size_gib": "Размер квоты (GiB)", "refreshing_all_libraries": "Обновление всех библиотек", "registration": "Регистрация администратора", - "registration_description": "Первый зарегистрированный пользователь будет назначен администратором. В дальнейшем этой учетной записи будет доступно создание дополнительных пользователей и управление сервером.", + "registration_description": "Первый зарегистрированный пользователь будет назначен администратором. Он сможет управлять сервером и создавать дополнительных пользователей.", "require_password_change_on_login": "Требовать смену пароля при первом входе", "reset_settings_to_default": "Сброс настроек до значений по умолчанию", "reset_settings_to_recent_saved": "Не сохранённые изменения сброшены к последним сохраненным значениям", @@ -283,7 +291,7 @@ "server_welcome_message_description": "Сообщение, которое будет отображаться на странице входа.", "sidecar_job": "Метаданные из sidecar-файлов", "sidecar_job_description": "Обнаруживает и синхронизирует метаданные из sidecar-файлов", - "slideshow_duration_description": "Количество секунд для отображения каждого изображения", + "slideshow_duration_description": "Длительность показа слайдов в секундах", "smart_search_job_description": "Распознает содержимое медиафайлов для умного поиска", "storage_template_date_time_description": "В качестве даты используется информация о времени съёмки из данных объекта", "storage_template_date_time_sample": "Дата для примера: {date}", @@ -295,7 +303,7 @@ "storage_template_migration_info": "Расширения файлов всегда будут сохраняться в нижнем регистре. Изменения в шаблоне будут применяться только к новым объектам. Чтобы применить шаблон к ранее загруженным объектам, запустите {job}.", "storage_template_migration_job": "Задача по применению шаблона хранилища", "storage_template_more_details": "Для получения дополнительной информации об этой функции обратитесь к разделам документации Шаблон хранилища и Структура хранения файлов", - "storage_template_onboarding_description_v2": "Если эта функция включена, она автоматически организует файлы на основе заданного пользователем шаблона. Для получения дополнительной информации обратитесь к документации.", + "storage_template_onboarding_description_v2": "При включении этой функции файлы будут автоматически переименовываться и распределяться по папкам на основании заданного шаблона. Дополнительная информация доступна в документации.", "storage_template_path_length": "Примерный предел длины пути: {length, number}/{limit, number}", "storage_template_settings": "Шаблон хранилища", "storage_template_settings_description": "Управление структурой папок и именами загруженных файлов", @@ -430,6 +438,7 @@ "age_months": "{months, plural, one {# месяц} many {# месяцев} other {# месяца}}", "age_year_months": "1 год {months, plural, one {# месяц} many {# месяцев} other {# месяца}}", "age_years": "{years, plural, one {# год} many {# лет} other {# года}}", + "album": "Альбом", "album_added": "Альбом добавлен", "album_added_notification_setting_description": "Получать уведомление по электронной почте, когда вам предоставили доступ в общий альбом", "album_cover_updated": "Обложка альбома обновлена", @@ -475,6 +484,7 @@ "allow_edits": "Разрешить редактирование", "allow_public_user_to_download": "Разрешить скачивание", "allow_public_user_to_upload": "Разрешить добавление файлов", + "allowed": "Разрешено", "alt_text_qr_code": "QR-код", "anti_clockwise": "Против часовой", "api_key": "API ключ", @@ -485,7 +495,7 @@ "app_bar_signout_dialog_content": "Вы уверены, что хотите выйти?", "app_bar_signout_dialog_ok": "Да", "app_bar_signout_dialog_title": "Выйти", - "app_download_links": "Ссылки на загрузку мобильного приложения", + "app_download_links": "Ссылки для загрузки мобильного приложения", "app_settings": "Параметры приложения", "app_stores": "Магазины приложений", "app_update_available": "Доступна новая версия приложения", @@ -555,7 +565,7 @@ "authorized_devices": "Авторизованные устройства", "automatic_endpoint_switching_subtitle": "Подключаться локально по выбранной сети и использовать альтернативные адреса в ином случае", "automatic_endpoint_switching_title": "Автоматическая смена URL", - "autoplay_slideshow": "Автовоспроизведение слайдшоу", + "autoplay_slideshow": "Автовоспроизведение", "back": "Назад", "back_close_deselect": "Назад, закрыть или отменить выбор", "background_backup_running_error": "Выполняется фоновое резервное копирование, запуск вручную пока невозможен", @@ -725,7 +735,7 @@ "common_create_new_album": "Создать новый альбом", "completed": "Завершено", "confirm": "Подтвердить", - "confirm_admin_password": "Подтвердите пароль администратора", + "confirm_admin_password": "Подтверждение пароля администратора", "confirm_delete_face": "Удалить лицо человека {name} из этого объекта?", "confirm_delete_shared_link": "Вы действительно хотите удалить эту публичную ссылку?", "confirm_keep_this_delete_others": "Все объекты в группе кроме текущего будут удалены. Продолжить?", @@ -735,7 +745,7 @@ "confirm_tag_face_unnamed": "Хотите отметить этого человека?", "connected_device": "Подключенное устройство", "connected_to": "Подключено к", - "contain": "Вместить", + "contain": "Вписать", "context": "Контекст", "continue": "Продолжить", "control_bottom_app_bar_create_new_album": "Создать альбом", @@ -756,7 +766,7 @@ "copy_password": "Скопировать пароль", "copy_to_clipboard": "Скопировать в буфер обмена", "country": "Страна", - "cover": "Обложка", + "cover": "Обрезать", "covers": "Обложки", "create": "Создать", "create_album": "Создать альбом", @@ -894,8 +904,6 @@ "edit_description_prompt": "Укажите новое описание:", "edit_exclusion_pattern": "Редактирование шаблона исключения", "edit_faces": "Редактирование лиц", - "edit_import_path": "Изменить путь импорта", - "edit_import_paths": "Изменить путь импорта", "edit_key": "Изменить ключ", "edit_link": "Изменить ссылку", "edit_location": "Изменить местоположение", @@ -967,8 +975,8 @@ "failed_to_stack_assets": "Не удалось сгруппировать объекты", "failed_to_unstack_assets": "Не удалось разгруппировать объекты", "failed_to_update_notification_status": "Не удалось обновить статус уведомления", - "import_path_already_exists": "Этот путь импорта уже существует.", "incorrect_email_or_password": "Неверный адрес электронной почты или пароль", + "library_folder_already_exists": "Такая папка уже есть в списке.", "paths_validation_failed": "{paths, plural, one {# путь не прошёл} many {# путей не прошли} other {# пути не прошли}} проверку", "profile_picture_transparent_pixels": "Фотография профиля не должна содержать прозрачных пикселей. Попробуйте увеличить и/или переместить изображение.", "quota_higher_than_disk_size": "Вы установили квоту, превышающую размер диска", @@ -977,7 +985,6 @@ "unable_to_add_assets_to_shared_link": "Не удалось добавить объекты к публичной ссылке", "unable_to_add_comment": "Не удалось добавить комментарий", "unable_to_add_exclusion_pattern": "Не удалось добавить шаблон исключения", - "unable_to_add_import_path": "Не удалось добавить путь импорта", "unable_to_add_partners": "Не удалось добавить партнёров", "unable_to_add_remove_archive": "Не удалось {archived, select, true {удалить объект из архива} other {добавить объект в архив}}", "unable_to_add_remove_favorites": "Не удалось {favorite, select, true {добавить объект в избранное} other {удалить объект из избранного}}", @@ -1000,12 +1007,10 @@ "unable_to_delete_asset": "Не удалось удалить объект", "unable_to_delete_assets": "Ошибка при удалении объектов", "unable_to_delete_exclusion_pattern": "Не удалось удалить шаблон исключения", - "unable_to_delete_import_path": "Не удалось удалить путь импорта", "unable_to_delete_shared_link": "Не удалось удалить публичную ссылку", "unable_to_delete_user": "Не удалось удалить пользователя", "unable_to_download_files": "Не удалось скачать файлы", "unable_to_edit_exclusion_pattern": "Не удалось отредактировать шаблон исключения", - "unable_to_edit_import_path": "Не удалось отредактировать путь импорта", "unable_to_empty_trash": "Не удалось очистить корзину", "unable_to_enter_fullscreen": "Не удалось переключиться в полноэкранный режим", "unable_to_exit_fullscreen": "Не удалось выйти из полноэкранного режима", @@ -1056,6 +1061,7 @@ "unable_to_update_user": "Не удалось обновить пользователя", "unable_to_upload_file": "Не удалось загрузить файл" }, + "exclusion_pattern": "Шаблоны исключений", "exif": "Exif", "exif_bottom_sheet_description": "Добавить описание...", "exif_bottom_sheet_description_error": "Не удалось обновить описание", @@ -1115,6 +1121,7 @@ "folders_feature_description": "Просмотр папок с фото и видео в файловой системе", "forgot_pin_code_question": "Забыли PIN-код?", "forward": "Вперёд", + "full_path": "Полный путь: {path}", "gcast_enabled": "Google Cast", "gcast_enabled_description": "Для работы требуется загрузка внешних ресурсов с серверов Google.", "general": "Общие", @@ -1196,6 +1203,8 @@ "import_path": "Путь импорта", "in_albums": "В {count, plural, one {# альбоме} other {# альбомах}}", "in_archive": "В архиве", + "in_year": "{year} г.", + "in_year_selector": "В", "include_archived": "Отображать архив", "include_shared_albums": "Включать объекты общих альбомов", "include_shared_partner_assets": "Включать объекты партнёров", @@ -1232,6 +1241,7 @@ "language_setting_description": "Выберите предпочитаемый вами язык", "large_files": "Файлы наибольшего размера", "last": "Последний", + "last_months": "{count, plural, one {Последний месяц} many {# последних месяцев} other {# последних месяца}}", "last_seen": "Последний доступ", "latest_version": "Последняя версия", "latitude": "Широта", @@ -1241,6 +1251,8 @@ "let_others_respond": "Разрешить другим пользователям добавлять комментарии и отметки \"нравится\"", "level": "Уровень", "library": "Библиотека", + "library_add_folder": "Добавить папку", + "library_edit_folder": "Изменить путь к папке", "library_options": "Действия с библиотекой", "library_page_device_albums": "Альбомы на устройстве", "library_page_new_album": "Новый альбом", @@ -1312,8 +1324,17 @@ "loop_videos_description": "Включить автоматический повтор видео при просмотре.", "main_branch_warning": "Вы используете версию приложения для разработки. Настоятельно рекомендуется перейти на релизную версию приложения!", "main_menu": "Главное меню", + "maintenance_description": "Сервер Immich переведён в режим обслуживания.", + "maintenance_end": "Отключить режим обслуживания", + "maintenance_end_error": "Не удалось отключить режим обслуживания.", + "maintenance_logged_in_as": "В настоящее время вы вошли в систему как {user}", + "maintenance_title": "Временно недоступно", "make": "Производитель", "manage_geolocation": "Управление местами съёмки", + "manage_media_access_rationale": "Это разрешение необходимо для корректного перемещения объектов в корзину и восстановления их из неё.", + "manage_media_access_settings": "Перейти к настройкам", + "manage_media_access_subtitle": "Разрешите приложению Immich управлять медиафайлами.", + "manage_media_access_title": "Доступ к управлению медиафайлами", "manage_shared_links": "Управление публичными ссылками", "manage_sharing_with_partners": "Функция совместного доступа к фото и видео, позволяющая видеть объекты партнёров, а также предоставлять доступ к своим", "manage_the_app_settings": "Управление настройками приложения", @@ -1377,6 +1398,7 @@ "more": "Дополнительные действия", "move": "Переместить", "move_off_locked_folder": "Убрать из личной папки", + "move_to": "Переместить в", "move_to_lock_folder_action_prompt": "Объекты добавлены в личную папку ({count} шт.)", "move_to_locked_folder": "В личную папку", "move_to_locked_folder_confirmation": "Эти фото и видео будут удалены из всех альбомов и будут доступны только в личной папке", @@ -1406,13 +1428,14 @@ "new_pin_code": "Новый PIN-код", "new_pin_code_subtitle": "Это ваш первый доступ к личной папке. Создайте PIN-код для защищенного доступа к этой странице.", "new_timeline": "Новая лента", + "new_update": "Новое обновление", "new_user_created": "Новый пользователь создан", "new_version_available": "ДОСТУПНА НОВАЯ ВЕРСИЯ", "newest_first": "Сначала новые", "next": "Далее", "next_memory": "Следующее воспоминание", "no": "Нет", - "no_albums_message": "Создайте альбом для систематизации ваших фотографий и видео", + "no_albums_message": "Создавайте альбомы для систематизации ваших фотографий и видео", "no_albums_with_name_yet": "Похоже, у вас пока нет альбомов с таким названием.", "no_albums_yet": "Похоже, у вас пока нет альбомов.", "no_archived_assets_message": "Архивируйте фотографии и видео, чтобы скрыть их при общем просмотре", @@ -1421,12 +1444,14 @@ "no_cast_devices_found": "Не найдено устройств для трансляции", "no_checksum_local": "Контрольные суммы отсутствуют - невозможно получить объекты на устройстве", "no_checksum_remote": "Контрольные суммы отсутствуют - невозможно получить объекты с сервера", + "no_devices": "Нет авторизованных устройств", "no_duplicates_found": "Дубликатов не обнаружено.", "no_exif_info_available": "Нет доступной информации exif", "no_explore_results_message": "Загружайте больше фотографий, чтобы наслаждаться вашей коллекцией.", "no_favorites_message": "Добавляйте объекты в избранное, чтобы быстрее находить свои лучшие фото и видео", "no_libraries_message": "Создайте внешнюю библиотеку для просмотра в Immich сторонних фотографий и видео", "no_local_assets_found": "На устройстве не найдено объектов с такой контрольной суммой", + "no_location_set": "Местоположение не установлено", "no_locked_photos_message": "Фото и видео, перемещенные в личную папку, скрыты и не отображаются при просмотре библиотеки.", "no_name": "Нет имени", "no_notifications": "Нет уведомлений", @@ -1434,9 +1459,10 @@ "no_places": "Нет мест", "no_remote_assets_found": "На сервере не найдено объектов с такой контрольной суммой", "no_results": "Нет результатов", - "no_results_description": "Попробуйте использовать синоним или более общее ключевое слово", - "no_shared_albums_message": "Создайте альбом для обмена фотографиями и видеозаписями с людьми в вашей сети", + "no_results_description": "Попробуйте использовать синонимы или более общие слова", + "no_shared_albums_message": "Создавайте альбомы для обмена фотографиями и видеозаписями с людьми в вашей сети", "no_uploads_in_progress": "Нет активных загрузок", + "not_allowed": "Запрещено", "not_available": "Нет данных", "not_in_any_album": "Ни в одном альбоме", "not_selected": "Не выбрано", @@ -1453,7 +1479,7 @@ "oauth": "OAuth", "obtainium_configurator": "Настройка Obtainium", "obtainium_configurator_instructions": "Для установки и обновления Android приложения Immich напрямую из источников на GitHub (минуя магазины приложений) можно использовать Obtainium. Создайте новый API ключ и укажите архитектуру приложения для формирования ссылки для Obtainium.", - "ocr": "OCR", + "ocr": "Текст (OCR)", "official_immich_resources": "Официальные ресурсы Immich", "offline": "Недоступен", "offset": "Смещение", @@ -1461,10 +1487,10 @@ "oldest_first": "Сначала старые", "on_this_device": "На этом устройстве", "onboarding": "Начало работы", - "onboarding_locale_description": "Выберите язык приложения. При необходимости его потом можно будет изменить в настройках.", + "onboarding_locale_description": "Выберите язык приложения (можно позже изменить в настройках).", "onboarding_privacy_description": "Следующие необязательные функции зависят от внешних сервисов и в любое время могут быть отключены в настройках.", - "onboarding_server_welcome_description": "Давайте настроим ваш экземпляр с помощью некоторых общих параметров.", - "onboarding_theme_description": "Выберите тему. Вы также сможете изменить её позже в настройках.", + "onboarding_server_welcome_description": "Давайте начнём с настройки нескольких параметров вашего сервера.", + "onboarding_theme_description": "Выберите тему (можно позже изменить в настройках).", "onboarding_user_welcome_description": "Давайте начнем!", "onboarding_welcome_user": "Добро пожаловать, {user}", "online": "Доступен", @@ -1547,6 +1573,8 @@ "photos_count": "{count, plural, one {{count, number} фото} other {{count, number} фото}}", "photos_from_previous_years": "Фотографии прошлых лет в этот день", "pick_a_location": "Выбрать местоположение", + "pick_custom_range": "Произвольный период", + "pick_date_range": "Выберите период", "pin_code_changed_successfully": "PIN-код успешно изменён", "pin_code_reset_successfully": "PIN-код успешно сброшен", "pin_code_setup_successfully": "PIN-код успешно установлен", @@ -1814,6 +1842,8 @@ "server_offline": "Оффлайн", "server_online": "Сервер в сети", "server_privacy": "Конфиденциальность сервера", + "server_restarting_description": "Страница скоро обновится.", + "server_restarting_title": "Сервер перезапускается", "server_stats": "Статистика сервера", "server_update_available": "Доступна новая версия сервера", "server_version": "Версия сервера", @@ -1931,10 +1961,10 @@ "show_or_hide_info": "Показать или скрыть информацию", "show_password": "Показать пароль", "show_person_options": "Действия с человеком", - "show_progress_bar": "Показать Индикатор Выполнения", + "show_progress_bar": "Отображать индикатор выполнения", "show_search_options": "Показать параметры поиска", "show_shared_links": "Показать публичные ссылки", - "show_slideshow_transition": "Показать слайд-шоу переход", + "show_slideshow_transition": "Плавный переход", "show_supporter_badge": "Значок поддержки", "show_supporter_badge_description": "Показать значок поддержки", "show_text_search_menu": "Показать меню текстового поиска", @@ -2027,6 +2057,7 @@ "third_party_resources": "Сторонние ресурсы", "time": "Время", "time_based_memories": "Воспоминания, основанные на времени", + "time_based_memories_duration": "Длительность показа слайдов в секундах", "timeline": "Временная шкала", "timezone": "Часовой пояс", "to_archive": "В архив", @@ -2167,6 +2198,7 @@ "welcome": "Добро пожаловать", "welcome_to_immich": "Добро пожаловать в Immich", "wifi_name": "Имя сети", + "workflow": "Рабочий процесс", "wrong_pin_code": "Неверный PIN-код", "year": "Год", "years_ago": "{years, plural, one {# год} few {# года} many {# лет} other {# года}} назад", diff --git a/i18n/sk.json b/i18n/sk.json index 010ee89b3a..5deadabec0 100644 --- a/i18n/sk.json +++ b/i18n/sk.json @@ -17,7 +17,6 @@ "add_birthday": "Pridať narodeniny", "add_endpoint": "Pridať koncový bod", "add_exclusion_pattern": "Pridať vzor vylúčenia", - "add_import_path": "Pridať cestu pre import", "add_location": "Pridať polohu", "add_more_users": "Pridať viac používateľov", "add_partner": "Pridať partnera", @@ -32,6 +31,7 @@ "add_to_album_toggle": "Prepnúť výber pre {album}", "add_to_albums": "Pridať do albumov", "add_to_albums_count": "Pridať do albumov ({count})", + "add_to_bottom_bar": "Pridať do", "add_to_shared_album": "Pridať do zdieľaného albumu", "add_upload_to_stack": "Nahrať a pridať do zoskupených", "add_url": "Pridať URL", @@ -112,13 +112,17 @@ "jobs_failed": "{jobCount, plural, one {# neúspešný} few {# neúspešné} other {# neúspešných}}", "library_created": "Vytvorená knižnica: {library}", "library_deleted": "Knižnica bola vymazaná", - "library_import_path_description": "Zvoľte priečinok na importovanie. Tento priečinok vrátane podpriečinkov bude skenovaný pre obrázky a videá.", + "library_details": "Podrobnosti o knižnici", + "library_folder_description": "Určite priečinok, ktorý chcete importovať. Tento priečinok vrátane podpriečinkov bude prehľadaný na prítomnosť obrázkov a videí.", + "library_remove_exclusion_pattern_prompt": "Naozaj chcete odstrániť tento vzor vylúčenia?", + "library_remove_folder_prompt": "Naozaj chcete odstrániť tento importovaný priečinok?", "library_scanning": "Pravidelné skenovanie", "library_scanning_description": "Nastaviť pravidelné skenovanie knižnice", "library_scanning_enable_description": "Zapnúť pravidelné skenovanie knižnice", "library_settings": "Externá knižnica", "library_settings_description": "Spravovať nastavenia externej knižnice", "library_tasks_description": "Vyhľadajte nové alebo zmenené médiá v externých knižniciach", + "library_updated": "Aktualizovaná knižnica", "library_watching_enable_description": "Sledovať externé knižnice pre zmeny v súboroch", "library_watching_settings": "Sledovanie knižnice [EXPERIMENTÁLNE]", "library_watching_settings_description": "Automaticky sledovať zmenené súbory", @@ -173,6 +177,10 @@ "machine_learning_smart_search_enabled": "Povoliť inteligentné vyhľadávanie", "machine_learning_smart_search_enabled_description": "Ak je vypnuté, obrázky nebudú spracované pre inteligentné vyhľadávanie.", "machine_learning_url_description": "URL adresa servera strojového učenia. Ak je zadaných viacero adries URL, každý server bude testovaný postupne, kým jeden z nich neodpovie úspešne, v poradí od prvého po posledný. Servery, ktoré neodpovedajú, budú dočasne ignorované, kým nebudú opäť online.", + "maintenance_settings": "Údržba", + "maintenance_settings_description": "Prepnúť Immich do režimu údržby.", + "maintenance_start": "Spustiť režim údržby", + "maintenance_start_error": "Nepodarilo sa spustiť režim údržby.", "manage_concurrency": "Spravovať súbežnosť", "manage_log_settings": "Spravovať nastavenia ukladania záznamov", "map_dark_style": "Tmavý štýl", @@ -430,6 +438,7 @@ "age_months": "Vek {months, plural, one {# mesiac} few {# mesiace} other {# mesiacov}}", "age_year_months": "Vek 1 rok, {months, plural, one {# mesiac} few {# mesiace} other {# mesiacov}}", "age_years": "{years, plural, other {Vek #}}", + "album": "Album", "album_added": "Album bol pridaný", "album_added_notification_setting_description": "Obdržať upozornenie emailom, keď vás pridajú do zdieľaného albumu", "album_cover_updated": "Obal albumu aktualizovaný", @@ -475,6 +484,7 @@ "allow_edits": "Povoliť úpravy", "allow_public_user_to_download": "Povoliť verejnému používateľovi stiahnutie", "allow_public_user_to_upload": "Umožniť verejnému používateľovi nahrať", + "allowed": "Povolené", "alt_text_qr_code": "Obrázok QR kódu", "anti_clockwise": "Proti smeru hodinových ručičiek", "api_key": "API Klúč", @@ -894,8 +904,6 @@ "edit_description_prompt": "Vyberte prosím nový popis:", "edit_exclusion_pattern": "Upraviť vzor vylúčenia", "edit_faces": "Upraviť tváre", - "edit_import_path": "Upraviť cestu importu", - "edit_import_paths": "Upraviť cesty importu", "edit_key": "Upraviť kľúč", "edit_link": "Upraviť odkaz", "edit_location": "Upraviť polohu", @@ -967,8 +975,8 @@ "failed_to_stack_assets": "Nepodarilo sa zoskupiť položky", "failed_to_unstack_assets": "Nepodarilo sa zrušiť zoskupenie položiek", "failed_to_update_notification_status": "Nepodarilo sa aktualizovať stav oznámenia", - "import_path_already_exists": "Táto cesta importu už existuje.", "incorrect_email_or_password": "Nesprávny e-mail alebo heslo", + "library_folder_already_exists": "Táto cesta importu už existuje.", "paths_validation_failed": "{paths, plural, one {# cesta zlyhala} few {# cesty zlyhali} other {# ciest zlyhalo}} pri validácii", "profile_picture_transparent_pixels": "Profilové obrázky nemôžu mať priehľadné pixely. Prosím priblížte a/alebo posuňte obrázok.", "quota_higher_than_disk_size": "Nastavili ste kvótu vyššiu ako je veľkosť disku", @@ -977,7 +985,6 @@ "unable_to_add_assets_to_shared_link": "Nie je možné pridať položky k zdieľanému odkazu", "unable_to_add_comment": "Nie je možné pridať komentár", "unable_to_add_exclusion_pattern": "Nie je možné pridať vzor vylúčenia", - "unable_to_add_import_path": "Nie je možné pridať cestu importu", "unable_to_add_partners": "Nie je možné pridať partnerov", "unable_to_add_remove_archive": "Nie je možné {archived, select, true {odstrániť položku z} other {pridať položku do}} archívu", "unable_to_add_remove_favorites": "Nepodarilo sa {favorite, select, true {pridať položku do} other {odstrániť položku z}} obľúbených", @@ -1000,12 +1007,10 @@ "unable_to_delete_asset": "Nie je možné vymazať položku", "unable_to_delete_assets": "Chyba pri odstraňovaní položiek", "unable_to_delete_exclusion_pattern": "Nie je možné vymazať vylučovací vzor", - "unable_to_delete_import_path": "Nie je možné odstrániť cestu importu", "unable_to_delete_shared_link": "Nie je možné vymazať zdieľaný odkaz", "unable_to_delete_user": "Nie je možné vymazať používateľa", "unable_to_download_files": "Nie je možné stiahnuť súbory", "unable_to_edit_exclusion_pattern": "Nie je možné upraviť vzorec vylúčenia", - "unable_to_edit_import_path": "Nie je možné upraviť cestu importu", "unable_to_empty_trash": "Nie je možné vyprázdniť kôš", "unable_to_enter_fullscreen": "Nie je možné prejsť do režimu celej obrazovky", "unable_to_exit_fullscreen": "Nie je možné opustiť režim celej obrazovky", @@ -1056,6 +1061,7 @@ "unable_to_update_user": "Nie je možné aktualizovať používateľa", "unable_to_upload_file": "Nie je možné nahrať súbor" }, + "exclusion_pattern": "Vzor vylúčenia", "exif": "Exif", "exif_bottom_sheet_description": "Pridať popis...", "exif_bottom_sheet_description_error": "Chyba pri aktualizácii popisu", @@ -1115,6 +1121,7 @@ "folders_feature_description": "Prezeranie zobrazenia priečinkov fotografií a videí v systéme súborov", "forgot_pin_code_question": "Zabudli ste svoj PIN kód?", "forward": "Dopredu", + "full_path": "Celá cesta: {path}", "gcast_enabled": "Google Cast", "gcast_enabled_description": "Táto funkcia načítava externé zdroje zo spoločnosti Google, aby mohla fungovať.", "general": "Všeobecné", @@ -1196,6 +1203,8 @@ "import_path": "Cesta na import", "in_albums": "V {count, plural, one {# albume} other {# albumoch}}", "in_archive": "V archíve", + "in_year": "V {year}", + "in_year_selector": "V", "include_archived": "Zahrnúť archivované", "include_shared_albums": "Zahrnúť zdieľané albumy", "include_shared_partner_assets": "Vrátane zdieľaných položiek partnera", @@ -1232,6 +1241,7 @@ "language_setting_description": "Vyberte požadovaný jazyk", "large_files": "Veľké súbory", "last": "Posledné", + "last_months": "{count, plural, one {Minulý mesiac} few {Posledné # mesiace} other {Posledných # mesiacov}}", "last_seen": "Naposledy videné", "latest_version": "Najnovšia verzia", "latitude": "Zemepisná šírka", @@ -1241,6 +1251,8 @@ "let_others_respond": "Nechajte ostatných reagovať", "level": "Úroveň", "library": "Knižnica", + "library_add_folder": "Pridať priečinok", + "library_edit_folder": "Upraviť priečinok", "library_options": "Možnosti knižnice", "library_page_device_albums": "Albumy v zariadení", "library_page_new_album": "Nový album", @@ -1312,8 +1324,17 @@ "loop_videos_description": "Povolí prehrávanie videí v slučke v detailnom zobrazení.", "main_branch_warning": "Používate vývojársku verziu; dôrazne odporúčame používať vydané verzie!", "main_menu": "Hlavná ponuka", + "maintenance_description": "Immich bol prepnutý do režimu údržby.", + "maintenance_end": "Ukončiť režim údržby", + "maintenance_end_error": "Nepodarilo sa ukončiť režim údržby.", + "maintenance_logged_in_as": "Aktuálne prihlásený ako {user}", + "maintenance_title": "Dočasne nedostupné", "make": "Výrobca", "manage_geolocation": "Spravovať polohu", + "manage_media_access_rationale": "Toto povolenie je potrebné na správne presúvanie súborov do koša a ich obnovenie z neho.", + "manage_media_access_settings": "Otvoriť nastavenia", + "manage_media_access_subtitle": "Povoliť aplikácii Immich spravovať a presúvať mediálne súbory.", + "manage_media_access_title": "Prístup k správe médií", "manage_shared_links": "Spravovať zdieľané odkazy", "manage_sharing_with_partners": "Spravovať zdieľanie s partnermi", "manage_the_app_settings": "Spravovať nastavenia aplikácie", @@ -1377,6 +1398,7 @@ "more": "Viac", "move": "Presunúť", "move_off_locked_folder": "Presunúť zo zamknutého priečinka", + "move_to": "Presunúť do", "move_to_lock_folder_action_prompt": "{count} pridaných do zamknutého priečinka", "move_to_locked_folder": "Presunúť do zamknutého priečinka", "move_to_locked_folder_confirmation": "Tieto fotografie a videá budú odobrané zo všetkých albumov a bude ich možné zobraziť len v zamknutom priečinku", @@ -1406,6 +1428,7 @@ "new_pin_code": "Nový PIN kód", "new_pin_code_subtitle": "Toto je váš prvý prístup k zamknutému priečinku. Vytvorte si PIN kód na bezpečný prístup k tejto stránke", "new_timeline": "Nová časová os", + "new_update": "Nová aktualizácia", "new_user_created": "Nový používateľ vytvorený", "new_version_available": "JE DOSTUPNÁ NOVÁ VERZIA", "newest_first": "Najprv najnovšie", @@ -1421,12 +1444,14 @@ "no_cast_devices_found": "Nenašli sa žiadne zariadenia na prenos", "no_checksum_local": "Kontrola súčtu nie je k dispozícii – nie je možné načítať lokálne položky", "no_checksum_remote": "Kontrola súčtu nie je k dispozícii – nie je možné načítať vzdialené položky", + "no_devices": "Žiadne autorizované zariadenia", "no_duplicates_found": "Nenašli sa žiadne duplicity.", "no_exif_info_available": "Nie sú dostupné exif údaje", "no_explore_results_message": "Nahrajte viac fotiek na objavovanie vašej zbierky.", "no_favorites_message": "Pridajte si obľúbené, aby ste rýchlo našli svoje najlepšie obrázky a videá", "no_libraries_message": "Vytvorte externú knižnicu na prezeranie fotiek a videí", "no_local_assets_found": "Neboli nájdené žiadne lokálne položky s touto kontrolnou sumou", + "no_location_set": "Nie je nastavená žiadna poloha", "no_locked_photos_message": "Fotografie a videá v zamknutom priečinku sú skryté a nezobrazujú sa pri prehľadávaní alebo vyhľadávaní v knižnici.", "no_name": "Bez mena", "no_notifications": "Žiadne oznámenia", @@ -1437,6 +1462,7 @@ "no_results_description": "Skúste synonymum alebo všeobecnejší výraz", "no_shared_albums_message": "Vytvorte album na zdieľanie fotiek a videí s ľuďmi vo vašej sieti", "no_uploads_in_progress": "Žiadne prebiehajúce nahrávanie", + "not_allowed": "Nepovolené", "not_available": "Nedostupné", "not_in_any_album": "Nie je v žiadnom albume", "not_selected": "Nevybrané", @@ -1547,6 +1573,8 @@ "photos_count": "{count, plural, one {{count, number} fotka} few {{count, number} fotky} other {{count, number} fotiek}}", "photos_from_previous_years": "Fotky z minulých rokov", "pick_a_location": "Vyberte polohu", + "pick_custom_range": "Vlastný rozsah", + "pick_date_range": "Vybrať rozsah dátumov", "pin_code_changed_successfully": "Úspešne ste zmenili PIN kód", "pin_code_reset_successfully": "Úspešne ste obnovili PIN kód", "pin_code_setup_successfully": "Úspešne ste nastavili PIN kód", @@ -1814,6 +1842,8 @@ "server_offline": "Server je Offline", "server_online": "Server je Online", "server_privacy": "Zásady ochrany osobných údajov servera", + "server_restarting_description": "Táto stránka sa o chvíľu obnoví.", + "server_restarting_title": "Server sa reštartuje", "server_stats": "Štatistiky servera", "server_update_available": "Aktualizácia servera je k dispozícii", "server_version": "Verzia servera", @@ -2027,6 +2057,7 @@ "third_party_resources": "Zdroje tretích strán", "time": "Čas", "time_based_memories": "Časové spomienky", + "time_based_memories_duration": "Počet sekúnd zobrazenia jednotlivých obrázkov.", "timeline": "Časová os", "timezone": "Časové pásmo", "to_archive": "Archivovať", @@ -2167,6 +2198,7 @@ "welcome": "Vitajte", "welcome_to_immich": "Vitajte v Immich", "wifi_name": "Názov Wi-Fi", + "workflow": "Pracovný postup", "wrong_pin_code": "Nesprávny PIN kód", "year": "Rok", "years_ago": "pred {years, plural, one {# rokom} other {# rokmi}}", diff --git a/i18n/sl.json b/i18n/sl.json index 9ae16549f5..5a7887c365 100644 --- a/i18n/sl.json +++ b/i18n/sl.json @@ -17,7 +17,6 @@ "add_birthday": "Dodaj rojstni dan", "add_endpoint": "Dodaj končno točko", "add_exclusion_pattern": "Dodaj vzorec izključitve", - "add_import_path": "Dodaj pot uvoza", "add_location": "Dodaj lokacijo", "add_more_users": "Dodaj več uporabnikov", "add_partner": "Dodaj partnerja", @@ -32,6 +31,7 @@ "add_to_album_toggle": "Preklopi izbiro za {album}", "add_to_albums": "Dodaj v albume", "add_to_albums_count": "Dodaj v albume ({count})", + "add_to_bottom_bar": "Dodaj v", "add_to_shared_album": "Dodaj k deljenemu albumu", "add_upload_to_stack": "Dodaj nalaganje v sklad", "add_url": "Dodaj URL", @@ -112,13 +112,17 @@ "jobs_failed": "{jobCount, plural, other {# neuspešni}}", "library_created": "Ustvarjena knjižnica: {library}", "library_deleted": "Knjižnica izbrisana", - "library_import_path_description": "Določi mapo za uvoz. Ta mapa in njene podmape bodo pregledane za slike in video posnetke.", + "library_details": "Podrobnosti o knjižnici", + "library_folder_description": "Določite mapo za uvoz. Ta mapa, vključno s podmapami, bo pregledana za slike in videoposnetke.", + "library_remove_exclusion_pattern_prompt": "Ali ste prepričani, da želite odstraniti ta vzorec izključitve?", + "library_remove_folder_prompt": "Ali ste prepričani, da želite odstraniti to mapo za uvoz?", "library_scanning": "Periodični pregledi", "library_scanning_description": "Nastavi periodični pregled knjižnic", "library_scanning_enable_description": "Omogoči periodični pregled knjižnic", "library_settings": "Zunanja knjižnica", "library_settings_description": "Uredi nastavitve zunanje knjižnice", "library_tasks_description": "Izvedi nalogo knjižnice", + "library_updated": "Posodobljena knjižnica", "library_watching_enable_description": "Opazuj spremembe datotek v zunanji knjižnici", "library_watching_settings": "Opazovanje knjižnice [POSKUSNO]", "library_watching_settings_description": "Samodejno opazuj spremembo datotek", @@ -173,6 +177,10 @@ "machine_learning_smart_search_enabled": "Omogoči pametno iskanje", "machine_learning_smart_search_enabled_description": "Če je onemogočeno, slike ne bodo kodirane za pametno iskanje.", "machine_learning_url_description": "URL strežnika za strojno učenje. Če je na voljo več kot en URL, bo vsak strežnik poskusen posamično, dokler se eden ne odzove uspešno, v vrstnem redu od prvega do zadnjega. Strežniki, ki se ne odzovejo, bodo začasno prezrti, dokler se spet ne vzpostavijo.", + "maintenance_settings": "Vzdrževanje", + "maintenance_settings_description": "Preklopite Immich v vzdrževalni način.", + "maintenance_start": "Zaženi način vzdrževanja", + "maintenance_start_error": "Vzdrževalnega načina ni bilo mogoče zagnati.", "manage_concurrency": "Upravljanje sočasnosti", "manage_log_settings": "Upravljanje nastavitev dnevnika", "map_dark_style": "Temni način", @@ -430,6 +438,7 @@ "age_months": "Starost {months, plural, one {# mesec} two {# meseca} few {# mesece} other {# mesecev}}", "age_year_months": "Starost 1 leto, {months, plural, one {# mesec} two {# meseca} few {# mesece} other {# mesecev}}", "age_years": "Starost {years, plural, one {# leto} two {# leti} few {# leta} other {# let}}", + "album": "Album", "album_added": "Album dodan", "album_added_notification_setting_description": "Prejmite e-poštno obvestilo, ko ste dodani v album v skupni rabi", "album_cover_updated": "Naslovnica albuma posodobljena", @@ -475,6 +484,7 @@ "allow_edits": "Dovoli urejanja", "allow_public_user_to_download": "Dovoli javnemu uporabniku prenos", "allow_public_user_to_upload": "Dovolite javnemu uporabniku nalaganje", + "allowed": "Dovoljeno", "alt_text_qr_code": "Slika QR kode", "anti_clockwise": "V nasprotni smeri urinega kazalca", "api_key": "API ključ", @@ -894,8 +904,6 @@ "edit_description_prompt": "Izberite nov opis:", "edit_exclusion_pattern": "Uredi vzorec izključitve", "edit_faces": "Uredi obraze", - "edit_import_path": "Uredi uvozno pot", - "edit_import_paths": "Uredi uvozne poti", "edit_key": "Uredi ključ", "edit_link": "Uredi povezavo", "edit_location": "Uredi lokacijo", @@ -967,8 +975,8 @@ "failed_to_stack_assets": "Zlaganje sredstev ni uspelo", "failed_to_unstack_assets": "Sredstev ni bilo mogoče razložiti", "failed_to_update_notification_status": "Stanja obvestila ni bilo mogoče posodobiti", - "import_path_already_exists": "Ta uvozna pot že obstaja.", "incorrect_email_or_password": "Napačen e-poštni naslov ali geslo", + "library_folder_already_exists": "Ta pot uvoza že obstaja.", "paths_validation_failed": "{paths, plural, one {# pot ni bila uspešno preverjena} two {# poti nista bili uspešno preverjeni} few {# poti niso bile uspešno preverjene} other {# poti ni bilo uspešno preverjenih}}", "profile_picture_transparent_pixels": "Profilne slike ne smejo imeti prosojnih slikovnih pik. Povečajte in/ali premaknite sliko.", "quota_higher_than_disk_size": "Nastavili ste kvoto, ki je višja od velikosti diska", @@ -977,7 +985,6 @@ "unable_to_add_assets_to_shared_link": "Povezavi v skupni rabi ni mogoče dodati sredstev", "unable_to_add_comment": "Ni mogoče dodati komentarja", "unable_to_add_exclusion_pattern": "Vzorca izključitve ni mogoče dodati", - "unable_to_add_import_path": "Uvozne poti ni mogoče dodati", "unable_to_add_partners": "Partnerjev ni mogoče dodati", "unable_to_add_remove_archive": "Ni mogoče {archived, select, true {odstraniti sredstva iz} other {ter dodati sredstvo v}} archive", "unable_to_add_remove_favorites": "Ni mogoče {favorite, select, true {dodati sredstva v} other {ter ga odstraniti iz}} priljubljenih", @@ -1000,12 +1007,10 @@ "unable_to_delete_asset": "Sredstva ni mogoče izbrisati", "unable_to_delete_assets": "Napaka pri brisanju sredstev", "unable_to_delete_exclusion_pattern": "Vzorca izključitve ni mogoče izbrisati", - "unable_to_delete_import_path": "Uvozne poti ni mogoče izbrisati", "unable_to_delete_shared_link": "Povezave v skupni rabi ni mogoče izbrisati", "unable_to_delete_user": "Uporabnika ni mogoče izbrisati", "unable_to_download_files": "Ni mogoče prenesti datotek", "unable_to_edit_exclusion_pattern": "Vzorca izključitve ni mogoče urediti", - "unable_to_edit_import_path": "Uvozne poti ni mogoče urediti", "unable_to_empty_trash": "Smetnjaka ni mogoče izprazniti", "unable_to_enter_fullscreen": "Celozaslonski način ni mogoč", "unable_to_exit_fullscreen": "Ni mogoče zapreti celozaslonskega načina", @@ -1056,6 +1061,7 @@ "unable_to_update_user": "Uporabnika ni mogoče posodobiti", "unable_to_upload_file": "Datoteke ni mogoče naložiti" }, + "exclusion_pattern": "Vzorec izključitve", "exif": "Exif", "exif_bottom_sheet_description": "Dodaj opis..", "exif_bottom_sheet_description_error": "Napaka pri posodabljanju opisa", @@ -1115,6 +1121,7 @@ "folders_feature_description": "Brskanje po pogledu mape za fotografije in videoposnetke v datotečnem sistemu", "forgot_pin_code_question": "Ste pozabili PIN?", "forward": "Naprej", + "full_path": "Celotna pot: {path}", "gcast_enabled": "Google Cast", "gcast_enabled_description": "Ta funkcija za delovanje nalaga zunanje vire iz Googla.", "general": "Splošno", @@ -1151,6 +1158,7 @@ "hide_named_person": "Skrij osebo {name}", "hide_password": "Skrij geslo", "hide_person": "Skrij osebo", + "hide_text_recognition": "Skrij prepoznavanje besedila", "hide_unnamed_people": "Skrij osebe brez imen", "home_page_add_to_album_conflicts": "Dodanih {added} sredstev v album {album}. {failed} sredstev je že v albumu.", "home_page_add_to_album_err_local": "Lokalnih sredstev še ni mogoče dodati v albume, preskakujem", @@ -1196,6 +1204,8 @@ "import_path": "Pot uvoza", "in_albums": "V {count, plural, one {# album} two {# albuma} few {# albume} other {# albumov}}", "in_archive": "V arhiv", + "in_year": "V {year}", + "in_year_selector": "V", "include_archived": "Vključi arhivirano", "include_shared_albums": "Vključite skupne albume", "include_shared_partner_assets": "Vključite partnerjeva skupna sredstva", @@ -1232,6 +1242,7 @@ "language_setting_description": "Izberite želeni jezik", "large_files": "Velike datoteke", "last": "Zadnji", + "last_months": "{count, plural, one {Zadnji mesec} two {Zadnja # meseca} few {Zadnje # mesece} other {Zadnjih # mesecev}}", "last_seen": "Nazadnje viden", "latest_version": "Najnovejša različica", "latitude": "Zemljepisna širina", @@ -1241,6 +1252,8 @@ "let_others_respond": "Naj drugi odgovorijo", "level": "Raven", "library": "Knjižnica", + "library_add_folder": "Dodaj mapo", + "library_edit_folder": "Uredi mapo", "library_options": "Možnosti knjižnice", "library_page_device_albums": "Albumi v napravi", "library_page_new_album": "Nov album", @@ -1312,8 +1325,17 @@ "loop_videos_description": "Omogočite samodejno ponavljanje videoposnetka v pregledovalniku podrobnosti.", "main_branch_warning": "Uporabljate razvojno različico; močno priporočamo uporabo izdajne različice!", "main_menu": "Glavni meni", + "maintenance_description": "Immich je bil preklopljen v vzdrževalni način.", + "maintenance_end": "Konec vzdrževalnega načina", + "maintenance_end_error": "Vzdrževalnega načina ni bilo mogoče končati.", + "maintenance_logged_in_as": "Trenutno prijavljen kot {user}", + "maintenance_title": "Trenutno ni na voljo", "make": "Izdelava", "manage_geolocation": "Upravljanje lokacije", + "manage_media_access_rationale": "To dovoljenje je potrebno za pravilno premikanje sredstev v koš in njihovo obnovitev iz njega.", + "manage_media_access_settings": "Odpri nastavitve", + "manage_media_access_subtitle": "Dovolite aplikaciji Immich upravljanje in premikanje medijskih datotek.", + "manage_media_access_title": "Dostop do upravljanja medijev", "manage_shared_links": "Upravljanje povezav v skupni rabi", "manage_sharing_with_partners": "Upravljajte skupno rabo s partnerji", "manage_the_app_settings": "Upravljajte nastavitve aplikacije", @@ -1377,6 +1399,7 @@ "more": "Več", "move": "Premakni", "move_off_locked_folder": "Premakni iz zaklenjene mape", + "move_to": "Premakni v", "move_to_lock_folder_action_prompt": "V zaklenjeno mapo je bilo dodanih {count}", "move_to_locked_folder": "Premakni v zaklenjeno mapo", "move_to_locked_folder_confirmation": "Te fotografije in videoposnetki bodo odstranjeni iz vseh albumov in si jih bo mogoče ogledati le v zaklenjeni mapi", @@ -1406,6 +1429,7 @@ "new_pin_code": "Nova PIN koda", "new_pin_code_subtitle": "To je vaš prvi dostop do zaklenjene mape. Ustvarite PIN kodo za varen dostop do te strani", "new_timeline": "Nova časovnica", + "new_update": "Nova posodobitev", "new_user_created": "Nov uporabnik ustvarjen", "new_version_available": "NA VOLJO JE NOVA RAZLIČICA", "newest_first": "Najprej najnovejše", @@ -1421,12 +1445,14 @@ "no_cast_devices_found": "Naprav za predvajanje ni bilo mogoče najti", "no_checksum_local": "Kontrolna vsota ni na voljo – lokalnih sredstev ni mogoče pridobiti", "no_checksum_remote": "Kontrolna vsota ni na voljo – oddaljenega sredstva ni mogoče pridobiti", + "no_devices": "Ni pooblaščenih naprav", "no_duplicates_found": "Najden ni bil noben dvojnik.", "no_exif_info_available": "Podatki o exif niso na voljo", "no_explore_results_message": "Naložite več fotografij, da raziščete svojo zbirko.", "no_favorites_message": "Dodajte priljubljene, da hitreje najdete svoje najboljše slike in videoposnetke", "no_libraries_message": "Ustvarite zunanjo knjižnico za ogled svojih fotografij in videoposnetkov", "no_local_assets_found": "S to kontrolno vsoto ni bilo najdenih lokalnih sredstev", + "no_location_set": "Lokacija ni nastavljena", "no_locked_photos_message": "Fotografije in videoposnetki v zaklenjeni mapi so skriti in se ne bodo prikazali med brskanjem ali iskanjem po knjižnici.", "no_name": "Brez imena", "no_notifications": "Ni obvestil", @@ -1437,6 +1463,7 @@ "no_results_description": "Poskusite s sinonimom ali bolj splošno ključno besedo", "no_shared_albums_message": "Ustvarite album za skupno rabo fotografij in videoposnetkov z osebami v vašem omrežju", "no_uploads_in_progress": "Ni nalaganj v teku", + "not_allowed": "Ni dovoljeno", "not_available": "Ni na voljo", "not_in_any_album": "Ni v nobenem albumu", "not_selected": "Ni izbrano", @@ -1547,6 +1574,8 @@ "photos_count": "{count, plural, one {{count, number} slika} two {{count, number} sliki} few {{count, number} slike} other {{count, number} slik}}", "photos_from_previous_years": "Fotografije iz prejšnjih let", "pick_a_location": "Izberi lokacijo", + "pick_custom_range": "Obseg po meri", + "pick_date_range": "Izberi datumsko obdobje", "pin_code_changed_successfully": "PIN koda je bila uspešno spremenjena", "pin_code_reset_successfully": "PIN koda je bila uspešno ponastavljena", "pin_code_setup_successfully": "Uspešno nastavljena PIN koda", @@ -1814,6 +1843,8 @@ "server_offline": "Strežnik nima povezave", "server_online": "Strežnik povezan", "server_privacy": "Zasebnost strežnika", + "server_restarting_description": "Ta stran se bo za trenutek osvežila.", + "server_restarting_title": "Strežnik se znova zaganja", "server_stats": "Statistika strežnika", "server_update_available": "Posodobitev strežnika je na voljo", "server_version": "Različica strežnika", @@ -1937,6 +1968,7 @@ "show_slideshow_transition": "Prikaži prehod diaprojekcije", "show_supporter_badge": "Značka podpornika", "show_supporter_badge_description": "Prikaži značko podpornika", + "show_text_recognition": "Prikaži prepoznavanje besedila", "show_text_search_menu": "Prikaži meni za iskanje po besedilu", "shuffle": "Naključno", "sidebar": "Stranska vrstica", @@ -2007,6 +2039,7 @@ "tags": "Oznake", "tap_to_run_job": "Dotaknite se za zagon opravila", "template": "Predloga", + "text_recognition": "Prepoznavanje besedila", "theme": "Tema", "theme_selection": "Izbira teme", "theme_selection_description": "Samodejno nastavi temo na svetlo ali temno glede na sistemske nastavitve brskalnika", @@ -2027,6 +2060,7 @@ "third_party_resources": "Viri tretjih oseb", "time": "Čas", "time_based_memories": "Časovni spomini", + "time_based_memories_duration": "Število sekund za prikaz vsake slike.", "timeline": "Časovnica", "timezone": "Časovni pas", "to_archive": "Arhiv", @@ -2167,6 +2201,7 @@ "welcome": "Dobrodošli", "welcome_to_immich": "Dobrodošli v Immich", "wifi_name": "Wi-Fi ime", + "workflow": "Potek dela", "wrong_pin_code": "Napačna PIN koda", "year": "Leto", "years_ago": "{years, plural, one {# leto} two {# leti} few {# leta} other {# let}} nazaj", diff --git a/i18n/sq.json b/i18n/sq.json index de7c5faa27..cd521122df 100644 --- a/i18n/sq.json +++ b/i18n/sq.json @@ -17,7 +17,6 @@ "add_birthday": "Shto një ditëlindje", "add_endpoint": "Shto një endpoint", "add_exclusion_pattern": "Shto model përjashtimi", - "add_import_path": "Shto vënd importimi", "add_location": "Shto vendndodhje", "add_more_users": "Shto më shumë përdorues", "add_partner": "Shto partner", diff --git a/i18n/sr_Cyrl.json b/i18n/sr_Cyrl.json index 8a14e18de5..8c3f25a3cf 100644 --- a/i18n/sr_Cyrl.json +++ b/i18n/sr_Cyrl.json @@ -17,7 +17,6 @@ "add_birthday": "Додај рођендан", "add_endpoint": "Додај адресу", "add_exclusion_pattern": "Додај образац изузимања", - "add_import_path": "Додај путању увоза", "add_location": "Додај локацију", "add_more_users": "Додај кориснике", "add_partner": "Додај партнера", @@ -107,7 +106,6 @@ "jobs_failed": "{jobCount, plural, one {# неуспешни} few {# неуспешна} other {# неуспешних}}", "library_created": "Направљена библиотека: {library}", "library_deleted": "Библиотека је избрисана", - "library_import_path_description": "Одредите фасциклу за увоз. Ова фасцикла, укључујући подфасцикле, биће скенирана за слике и видео записе.", "library_scanning": "Периодично скенирање", "library_scanning_description": "Конфигуришите периодично скенирање библиотеке", "library_scanning_enable_description": "Омогући периодично скенирање библиотеке", @@ -814,8 +812,6 @@ "edit_description": "Измени опис", "edit_exclusion_pattern": "Измените образац изузимања", "edit_faces": "Уреди лица", - "edit_import_path": "Уреди путању за преузимање", - "edit_import_paths": "Уреди Путање за Преузимање", "edit_key": "Измени кључ", "edit_link": "Уреди везу", "edit_location": "Уреди локацију", @@ -878,7 +874,6 @@ "failed_to_stack_assets": "Слагање датотека није успело", "failed_to_unstack_assets": "Разгруписање датотека није успело", "failed_to_update_notification_status": "Ажурирање статуса обавештења није успело", - "import_path_already_exists": "Ова путања увоза већ постоји.", "incorrect_email_or_password": "Неисправан e-mail или лозинка", "paths_validation_failed": "{paths, plural, one {# путања није прошла} other {# путањe нису прошле}} проверу ваљаности", "profile_picture_transparent_pixels": "Слике профила не могу имати прозирне пикселе. Молимо увећајте и/или померите слику.", @@ -887,7 +882,6 @@ "unable_to_add_assets_to_shared_link": "Није могуће додати датотеке дељеној вези", "unable_to_add_comment": "Није могуће додати коментар", "unable_to_add_exclusion_pattern": "Није могуће додати образац изузимања", - "unable_to_add_import_path": "Није могуће додати путању за увоз", "unable_to_add_partners": "Није могуће додати партнере", "unable_to_add_remove_archive": "Није могуће {archived, select, true {уклонити датотеке из} other {додати датотеке у}} архиву", "unable_to_add_remove_favorites": "Није могуће {favorite, select, true {додати датотеке у} other {уклонити датотеке из}} фаворите", @@ -909,12 +903,10 @@ "unable_to_delete_asset": "Није могуће избрисати датотеке", "unable_to_delete_assets": "Грешка при брисању датотека", "unable_to_delete_exclusion_pattern": "Није могуће избрисати образац изузимања", - "unable_to_delete_import_path": "Није могуће избрисати путању за увоз", "unable_to_delete_shared_link": "Није могуће избрисати дељени link", "unable_to_delete_user": "Није могуће избрисати корисника", "unable_to_download_files": "Није могуће преузети датотеке", "unable_to_edit_exclusion_pattern": "Није могуће изменити образац изузимања", - "unable_to_edit_import_path": "Није могуће изменити путању увоза", "unable_to_empty_trash": "Није могуће испразнити отпад", "unable_to_enter_fullscreen": "Није могуће отворити преко целог екрана", "unable_to_exit_fullscreen": "Није могуће изаћи из целог екрана", diff --git a/i18n/sr_Latn.json b/i18n/sr_Latn.json index aa895cd20c..f17de2c8b1 100644 --- a/i18n/sr_Latn.json +++ b/i18n/sr_Latn.json @@ -17,7 +17,6 @@ "add_birthday": "Dodaj rođendan", "add_endpoint": "Dodajte krajnju tačku", "add_exclusion_pattern": "Dodajte obrazac izuzimanja", - "add_import_path": "Dodaj putanju za preuzimanje", "add_location": "Dodaj lokaciju", "add_more_users": "Dodaj korisnike", "add_partner": "Dodaj partner", @@ -110,7 +109,6 @@ "jobs_failed": "{jobCount, plural, one {# neuspešni} few {# neuspešna} other {# neuspešnih}}", "library_created": "Napravljena biblioteka: {library}", "library_deleted": "Biblioteka je izbrisana", - "library_import_path_description": "Odredite fasciklu za uvoz. Ova fascikla, uključujući podfascikle, biće skenirana za slike i video zapise.", "library_scanning": "Periodično skeniranje", "library_scanning_description": "Konfigurišite periodično skeniranje biblioteke", "library_scanning_enable_description": "Omogućite periodično skeniranje biblioteke", @@ -787,8 +785,6 @@ "edit_date_and_time": "Uredi datum i vreme", "edit_exclusion_pattern": "Izmenite obrazac izuzimanja", "edit_faces": "Uredi lica", - "edit_import_path": "Uredi putanju za preuzimanje", - "edit_import_paths": "Uredi Putanje za Preuzimanje", "edit_key": "Izmeni ključ", "edit_link": "Uredi vezu", "edit_location": "Uredi lokaciju", @@ -851,7 +847,6 @@ "failed_to_stack_assets": "Slaganje datoteka nije uspelo", "failed_to_unstack_assets": "Rasklapanje datoteka nije uspelo", "failed_to_update_notification_status": "Ažuriranje statusa obaveštenja nije uspelo", - "import_path_already_exists": "Ova putanja uvoza već postoji.", "incorrect_email_or_password": "Neispravan e-mail ili lozinka", "paths_validation_failed": "{paths, plural, one {# putanja nije prošla} few {# putanje nisu prošle} other {# putanja nisu prošle}} proveru valjanosti", "profile_picture_transparent_pixels": "Slike profila ne mogu imati prozirne piksele. Molimo uvećajte i/ili pomerite sliku.", @@ -860,7 +855,6 @@ "unable_to_add_assets_to_shared_link": "Nije moguće dodati elemente deljenoj vezi", "unable_to_add_comment": "Nije moguće dodati komentar", "unable_to_add_exclusion_pattern": "Nije moguće dodati obrazac izuzimanja", - "unable_to_add_import_path": "Nije moguće dodati putanju za uvoz", "unable_to_add_partners": "Nije moguće dodati partnere", "unable_to_add_remove_archive": "Nije moguće {archived, select, true {ukloniti datoteke iz} other {dodati datoteke u}} arhivu", "unable_to_add_remove_favorites": "Nije moguće {favorite, select, true {dodati datoteke u} other {ukloniti datoteke iz}} favorite", @@ -882,12 +876,10 @@ "unable_to_delete_asset": "Nije moguće izbrisati datoteke", "unable_to_delete_assets": "Greška pri brisanju datoteka", "unable_to_delete_exclusion_pattern": "Nije moguće izbrisati obrazac izuzimanja", - "unable_to_delete_import_path": "Nije moguće izbrisati putanju za uvoz", "unable_to_delete_shared_link": "Nije moguće izbrisati deljeni link", "unable_to_delete_user": "Nije moguće izbrisati korisnika", "unable_to_download_files": "Nije moguće preuzeti datoteke", "unable_to_edit_exclusion_pattern": "Nije moguće izmeniti obrazac izuzimanja", - "unable_to_edit_import_path": "Nije moguće izmeniti putanju uvoza", "unable_to_empty_trash": "Nije moguće isprazniti otpad", "unable_to_enter_fullscreen": "Nije moguće otvoriti preko celog ekrana", "unable_to_exit_fullscreen": "Nije moguće izaći iz celog ekrana", diff --git a/i18n/sv.json b/i18n/sv.json index d8f45465af..0abe751be5 100644 --- a/i18n/sv.json +++ b/i18n/sv.json @@ -9,7 +9,7 @@ "active": "Aktiva", "activity": "Aktivitet", "activity_changed": "Aktiviteten är {enabled, select, true {aktiverad} other {inaktiverad}}", - "add": "Lägg till", + "add": "Tillägga", "add_a_description": "Lägg till en beskrivning", "add_a_location": "Lägg till en plats", "add_a_name": "Lägg till ett namn", @@ -17,7 +17,6 @@ "add_birthday": "Lägg till födelsedag", "add_endpoint": "Lägg till ändpunkt", "add_exclusion_pattern": "Lägg till uteslutningsmönster", - "add_import_path": "Lägg till importsökväg", "add_location": "Lägg till plats", "add_more_users": "Lägg till fler användare", "add_partner": "Lägg till partner", @@ -32,6 +31,7 @@ "add_to_album_toggle": "Växla val för {album}", "add_to_albums": "Lägg till i album", "add_to_albums_count": "Lägg till i album ({count})", + "add_to_bottom_bar": "Lägg till", "add_to_shared_album": "Lägg till i delat album", "add_upload_to_stack": "Lägg till uppladdning till stack", "add_url": "Lägg till URL", @@ -112,7 +112,6 @@ "jobs_failed": "{jobCount, plural, other {# misslyckades}}", "library_created": "Skapat bibliotek: {library}", "library_deleted": "Biblioteket har tagits bort", - "library_import_path_description": "Ange en mapp att importera. Den här mappen, inklusive undermappar, skannas efter bilder och videor.", "library_scanning": "Periodisk skanning", "library_scanning_description": "Konfigurera periodisk biblioteksskanning", "library_scanning_enable_description": "Aktivera periodisk biblioteksskanning", @@ -164,8 +163,8 @@ "machine_learning_ocr_min_detection_score_description": "Lägsta konfidenspoäng för att text ska kunna detekteras är mellan 0 och 1. Lägre värden kommer att detektera mer text men kan resultera i falska positiva resultat.", "machine_learning_ocr_min_recognition_score": "Lägsta igenkänningspoäng", "machine_learning_ocr_min_score_recognition_description": "Lägsta konfidenspoäng för att detekterad text ska kunna identifieras är 0–1. Lägre värden identifierar mer text men kan resultera i falska positiva resultat.", - "machine_learning_ocr_model": "OCR modell", - "machine_learning_ocr_model_description": "Servermodeller är mer exakta än mobilmodeller, men tar längre tid att bearbeta och använder mer minne.", + "machine_learning_ocr_model": "OCR-modell", + "machine_learning_ocr_model_description": "Servermodeller är mer exakta än mobilmodeller men tar längre tid att bearbeta och använder mer minne.", "machine_learning_settings": "Inställningar För Maskininlärning", "machine_learning_settings_description": "Hantera funktioner och inställningar för maskininlärning", "machine_learning_smart_search": "Smart Sökning", @@ -430,6 +429,7 @@ "age_months": "Ålder {months, plural, one {# månad} other {# månader}}", "age_year_months": "Ålder 1 år, {months, plural, one {# månad} other {# månader}}", "age_years": "{years, plural, other {Ålder #}}", + "album": "Album", "album_added": "Albumet har lagts till", "album_added_notification_setting_description": "Få ett e-postmeddelande när du läggs till i ett delat album", "album_cover_updated": "Albumomslaget uppdaterat", @@ -461,7 +461,7 @@ "album_viewer_appbar_share_to": "Dela Till", "album_viewer_page_share_add_users": "Lägg till användare", "album_with_link_access": "Låt alla med länken se foton och personer i det här albumet.", - "albums": "Album", + "albums": "Albumen", "albums_count": "{count, plural, one {{count, number} Album} other {{count, number} Album}}", "albums_default_sort_order": "Standard sorteringsordning för album", "albums_default_sort_order_description": "Standard sorteringsordning för mediefiler vid skapande av nytt album.", @@ -475,6 +475,7 @@ "allow_edits": "Tillåt redigeringar", "allow_public_user_to_download": "Tillåt offentlig användare att ladda ner", "allow_public_user_to_upload": "Tillåt en offentlig användare att ladda upp", + "allowed": "Tillåten", "alt_text_qr_code": "QR-kod", "anti_clockwise": "Moturs", "api_key": "API Nyckel", @@ -894,8 +895,6 @@ "edit_description_prompt": "Vänligen välj en ny beskrivning:", "edit_exclusion_pattern": "Redigera uteslutningsmönster", "edit_faces": "Redigera ansikten", - "edit_import_path": "Redigera importsökvägar", - "edit_import_paths": "Redigera importsökvägar", "edit_key": "Redigera nyckel", "edit_link": "Redigera länk", "edit_location": "Redigera plats", @@ -967,7 +966,6 @@ "failed_to_stack_assets": "Det gick inte att stapla objekt", "failed_to_unstack_assets": "Det gick inte att avstapla objekt", "failed_to_update_notification_status": "Misslyckades med att uppdatera aviseringens status", - "import_path_already_exists": "Denna importsökväg finns redan.", "incorrect_email_or_password": "Felaktig e-postadress eller lösenord", "paths_validation_failed": "{paths, plural, one {# path} other {# paths}} misslyckades valideringen", "profile_picture_transparent_pixels": "Profilbilder kan inte ha genomskinliga pixlar. Zooma in och/eller flytta bilden.", @@ -977,7 +975,6 @@ "unable_to_add_assets_to_shared_link": "Det går inte att lägga till objekt till delad länk", "unable_to_add_comment": "Kunde inte lägga till kommentar", "unable_to_add_exclusion_pattern": "Det gick inte att lägga till uteslutningsmönster", - "unable_to_add_import_path": "Det gick inte att lägga till importsökväg", "unable_to_add_partners": "Kunde inte lägga till partners", "unable_to_add_remove_archive": "Det går inte att {archived, select, true {ta bort objekt från} other {lägga till objekt till}} arkiv", "unable_to_add_remove_favorites": "Det går inte att {favorite, select, true {add asset to} other {remove asset from}} favoriter", @@ -1000,12 +997,10 @@ "unable_to_delete_asset": "Det gick inte att ta bort objekt", "unable_to_delete_assets": "Det gick inte att ta bort objekt", "unable_to_delete_exclusion_pattern": "Det gick inte att ta bort uteslutningsmönster", - "unable_to_delete_import_path": "Det gick inte att ta bort importsökvägen", "unable_to_delete_shared_link": "Det gick inte att ta bort delad länk", "unable_to_delete_user": "Kunde inte ta bort användare", "unable_to_download_files": "Det går inte att ladda ner filer", "unable_to_edit_exclusion_pattern": "Det gick inte att redigera uteslutningsmönster", - "unable_to_edit_import_path": "Det gick inte att redigera importsökvägen", "unable_to_empty_trash": "Kunde inte tömma papperskorgen", "unable_to_enter_fullscreen": "Kunde inte växla till fullskärm", "unable_to_exit_fullscreen": "Kunde inte avsluta fullskärm", @@ -1196,6 +1191,8 @@ "import_path": "Importsökväg", "in_albums": "I {count, plural, one {# album} other {# albums}}", "in_archive": "I arkivet", + "in_year": "I {year}", + "in_year_selector": "In", "include_archived": "Inkludera arkiverade", "include_shared_albums": "Inkludera delade album", "include_shared_partner_assets": "Inkludera delade partners tillgångar", @@ -1232,6 +1229,7 @@ "language_setting_description": "Välj önskat språk", "large_files": "Stora filer", "last": "Sista", + "last_months": "{count, plural, one {Senaste månaden} other {Senaste # månaderna}}", "last_seen": "Senast sedd", "latest_version": "Senaste versionen", "latitude": "Latitud", @@ -1264,8 +1262,8 @@ "local_media_summary": "Sammanfattning av lokala medier", "local_network": "Lokalt nätverk", "local_network_sheet_info": "Appen kommer ansluta till servern via denna URL när det specificerade WiFi-nätverket används", - "location": "Position", - "location_permission": "Plats-rättighet", + "location": "Plats", + "location_permission": "Platsrättighet", "location_permission_content": "För att använda funktionen för automatisk växling behöver Immich behörighet till exakt plats så att appen kan läsa av det aktuella Wi-Fi-nätverkets namn", "location_picker_choose_on_map": "Välj på karta", "location_picker_latitude_error": "Ange en giltig latitud", @@ -1314,6 +1312,10 @@ "main_menu": "Huvudmeny", "make": "Tillverkare", "manage_geolocation": "Hantera plats", + "manage_media_access_rationale": "Denna behörighet krävs för korrekt hantering av att flytta tillgångar till papperskorgen och återställa dem från den.", + "manage_media_access_settings": "Öppna inställningar", + "manage_media_access_subtitle": "Tillåt Immich-appen att hantera och flytta mediefiler.", + "manage_media_access_title": "Åtkomst till mediehantering", "manage_shared_links": "Hantera Delade länkar", "manage_sharing_with_partners": "Hantera delning med partner", "manage_the_app_settings": "Hantera appinställningarna", @@ -1377,6 +1379,7 @@ "more": "Mer", "move": "Flytta", "move_off_locked_folder": "Flytta från låst mapp", + "move_to": "Flytta till", "move_to_lock_folder_action_prompt": "{count} adderades till låst mapp", "move_to_locked_folder": "Flytta till låst mapp", "move_to_locked_folder_confirmation": "Dessa foton och videor kommer tas bort från alla album och går endast se i låsta mappen", @@ -1406,6 +1409,7 @@ "new_pin_code": "Ny PIN-kod", "new_pin_code_subtitle": "Det här är första gången du öppnar den låsta mappen. Skapa en PIN-kod för att säkert få åtkomst till den här sidan", "new_timeline": "Ny tidslinje", + "new_update": "Ny uppdatering", "new_user_created": "Ny användare skapad", "new_version_available": "NY VERSION TILLGÄNGLIG", "newest_first": "Nyast först", @@ -1421,6 +1425,7 @@ "no_cast_devices_found": "Inga Cast-enheter hittades", "no_checksum_local": "Ingen kontrollsumma tillgänglig - kan inte hämta lokala tillgångar", "no_checksum_remote": "Ingen kontrollsumma tillgänglig - kan inte hämta fjärrtillgång", + "no_devices": "Inga auktoriserade enheter", "no_duplicates_found": "Inga dubbletter hittades.", "no_exif_info_available": "EXIF-information ej tillgänglig", "no_explore_results_message": "Ladda upp fler bilder för att utforska din samling.", @@ -1437,6 +1442,7 @@ "no_results_description": "Pröva en synonym eller ett annat mer allmänt sökord", "no_shared_albums_message": "Skapa ett album för att dela bilder och videor med andra personer", "no_uploads_in_progress": "Inga uppladdningar pågår", + "not_allowed": "Inte tillåten", "not_available": "N/A", "not_in_any_album": "Inte i något album", "not_selected": "Ej vald", @@ -1547,6 +1553,8 @@ "photos_count": "{count, plural, one {{count, number} Foto} other {{count, number} Foton}}", "photos_from_previous_years": "Foton från tidigare år", "pick_a_location": "Välj en plats", + "pick_custom_range": "Anpassat intervall", + "pick_date_range": "Välj ett datumintervall", "pin_code_changed_successfully": "Lyckades ändra PIN-koden", "pin_code_reset_successfully": "Lyckades återställa PIN-kod", "pin_code_setup_successfully": "Lyckades skapa PIN-kod", @@ -2027,6 +2035,7 @@ "third_party_resources": "Tredjepartsresurser", "time": "Tid", "time_based_memories": "Tidsbaserade minnen", + "time_based_memories_duration": "Antal sekunder att visa varje bild.", "timeline": "Tidslinje", "timezone": "Tidszon", "to_archive": "Arkivera", @@ -2167,6 +2176,7 @@ "welcome": "Välkommen", "welcome_to_immich": "Välkommen till Immich", "wifi_name": "Wi-Fi-namn", + "workflow": "Arbetsflöde", "wrong_pin_code": "Fel pinkod", "year": "År", "years_ago": "{years, plural, one {# år} other {# år}} sedan", diff --git a/i18n/ta.json b/i18n/ta.json index 90a7f8e214..55f674ee79 100644 --- a/i18n/ta.json +++ b/i18n/ta.json @@ -17,7 +17,6 @@ "add_birthday": "பிறந்தநாளைச் சேர்க்கவும்", "add_endpoint": "சேவை நிரலை சேர்", "add_exclusion_pattern": "விலக்கு வடிவத்தைச் சேர்க்கவும்", - "add_import_path": "இறக்குமதி பாதையை (இம்போர்ட் பாத்) சேர்க்கவும்", "add_location": "இடத்தைச் சேர்க்கவும்", "add_more_users": "மேலும் பயனர்களை சேர்க்கவும்", "add_partner": "துணையை சேர்க்கவும்", @@ -112,7 +111,6 @@ "jobs_failed": "{jobCount, plural, other {# தோல்வியுற்றது}}", "library_created": "உருவாக்கப்பட்ட புகைப்பட நூலகம்: {library}", "library_deleted": "புகைப்பட நூலகம் நீக்கப்பட்டது", - "library_import_path_description": "இறக்குமதி செய்ய ஒரு கோப்புறையைக் குறிப்பிடவும். துணைக் கோப்புறைகள் உட்பட இந்தக் கோப்புறை படங்கள் மற்றும் வீடியோக்களுக்காக ஸ்கேன் செய்யப்படும்.", "library_scanning": "அவ்வப்போது ஸ்கேனிங்", "library_scanning_description": "நியமிக்கப்பட்ட புகைப்பட நூலக ஸ்கேனிங்கை அமைக்கவும்", "library_scanning_enable_description": "நியமிக்கப்பட்ட புகைப்பட நூலக ஸ்கேனிங்கை இயக்கு", @@ -475,6 +473,7 @@ "allow_edits": "திருத்தங்களை அனுமதிக்கவும்", "allow_public_user_to_download": "பொது பயனரை பதிவிறக்கம் செய்ய அனுமதிக்கவும்", "allow_public_user_to_upload": "பொது பயனரை பதிவேற்ற அனுமதிக்கவும்", + "allowed": "அனுமதித்த", "alt_text_qr_code": "QR குறியீடு படம்", "anti_clockwise": "கடிகார எதிர்ப்பு", "api_key": "பநிஇ விசை", @@ -894,8 +893,6 @@ "edit_description_prompt": "புதிய விளக்கத்தைத் தேர்ந்தெடுக்கவும்:", "edit_exclusion_pattern": "விலக்கு முறையைத் திருத்தவும்", "edit_faces": "முகங்களைத் திருத்தவும்", - "edit_import_path": "இறக்குமதி பாதையைத் திருத்து", - "edit_import_paths": "இறக்குமதி பாதைகளைத் திருத்தவும்", "edit_key": "திறனைத் திருத்து", "edit_link": "இணைப்பைத் திருத்து", "edit_location": "இருப்பிடத்தைத் திருத்தவும்", @@ -967,7 +964,6 @@ "failed_to_stack_assets": "சொத்துக்களை அடுக்கி வைப்பதில் தோல்வி", "failed_to_unstack_assets": "அன்-ச்டாக் சொத்துக்களில் தோல்வியுற்றது", "failed_to_update_notification_status": "அறிவிப்பு நிலையைப் புதுப்பிக்கத் தவறிவிட்டது", - "import_path_already_exists": "இந்த இறக்குமதி பாதை ஏற்கனவே உள்ளது.", "incorrect_email_or_password": "தவறான மின்னஞ்சல் அல்லது கடவுச்சொல்", "paths_validation_failed": "தோல்வியுற்ற சரிபார்ப்பு {paths, plural, one {# பாதை} other {# பாதைகள்}}", "profile_picture_transparent_pixels": "சுயவிவரப் படங்களுக்கு வெளிப்படையான படப்புள்ளிகள் இருக்க முடியாது. தயவுசெய்து பெரிதாக்கவும்/அல்லது படத்தை நகர்த்தவும்.", @@ -977,7 +973,6 @@ "unable_to_add_assets_to_shared_link": "பகிரப்பட்ட இணைப்புக்கு சொத்துக்களைச் சேர்க்க முடியவில்லை", "unable_to_add_comment": "கருத்து சேர்க்க முடியவில்லை", "unable_to_add_exclusion_pattern": "விலக்கு முறையைச் சேர்க்க முடியவில்லை", - "unable_to_add_import_path": "இறக்குமதி பாதையைச் சேர்க்க முடியவில்லை", "unable_to_add_partners": "கூட்டாளர்களைச் சேர்க்க முடியவில்லை", "unable_to_add_remove_archive": "காப்பகத்தில் {archived, select, true {இருந்து சொத்தை அகற்ற} other {சொத்தைச் சேர்க்க}} முடியவில்லை", "unable_to_add_remove_favorites": "பிடித்தவையில் {favorite, select, true {சொத்தைச் சேர்க்க} other {சொத்தை அகற்ற}} முடியவில்லை", @@ -1000,12 +995,10 @@ "unable_to_delete_asset": "சொத்தை நீக்க முடியவில்லை", "unable_to_delete_assets": "சொத்துக்களை நீக்குவதில் பிழை", "unable_to_delete_exclusion_pattern": "விலக்கு முறையை நீக்க முடியவில்லை", - "unable_to_delete_import_path": "இறக்குமதி பாதையை நீக்க முடியவில்லை", "unable_to_delete_shared_link": "பகிரப்பட்ட இணைப்பை நீக்க முடியவில்லை", "unable_to_delete_user": "பயனரை நீக்க முடியவில்லை", "unable_to_download_files": "கோப்புகளைப் பதிவிறக்க முடியவில்லை", "unable_to_edit_exclusion_pattern": "விலக்கு முறையைத் திருத்த முடியவில்லை", - "unable_to_edit_import_path": "இறக்குமதி பாதையைத் திருத்த முடியவில்லை", "unable_to_empty_trash": "குப்பைகளை வெற்று செய்ய முடியவில்லை", "unable_to_enter_fullscreen": "முழுத் திரையில் நுழைய முடியவில்லை", "unable_to_exit_fullscreen": "முழுத்திரை வெளியேற முடியவில்லை", @@ -1196,6 +1189,8 @@ "import_path": "இறக்குமதி பாதை", "in_albums": "{count, plural, one {# செருகேடு} other {# செருகேடுகள்}} இல்", "in_archive": "காப்பகத்தில்", + "in_year": "{year} இல்", + "in_year_selector": "உள்ளே", "include_archived": "காப்பகப்படுத்தப்பட்டவர்", "include_shared_albums": "பகிரப்பட்ட ஆல்பங்களைச் சேர்க்கவும்", "include_shared_partner_assets": "பகிரப்பட்ட கூட்டாளர் சொத்துக்களைச் சேர்க்கவும்", @@ -1232,6 +1227,7 @@ "language_setting_description": "உங்களுக்கு விருப்பமான மொழியைத் தேர்ந்தெடுக்கவும்", "large_files": "பெரிய கோப்புகள்", "last": "கடைசி", + "last_months": "{count, plural, one {கடந்த மாதம்} other {கடந்த # மாதங்கள்}}", "last_seen": "கடைசியாக பார்த்தேன்", "latest_version": "அண்மைக் கால பதிப்பு", "latitude": "அகலாங்கு", @@ -1314,6 +1310,10 @@ "main_menu": "பட்டியல் விளையாடுங்கள்", "make": "உருவாக்கு", "manage_geolocation": "இருப்பிடத்தை நிர்வகிக்கவும்", + "manage_media_access_rationale": "படங்களை குப்பைக்கு நகர்த்துவதை முறையாகக் கையாளுவதற்கும் அதிலிருந்து அவற்றை மீட்டெடுப்பதற்கும் இந்த அனுமதி தேவை.", + "manage_media_access_settings": "அமைப்புகளைத் திற", + "manage_media_access_subtitle": "இம்மிக் செயலி மீடியா கோப்புகளை நிர்வகிக்கவும் நகர்த்தவும் அனுமதிக்கவும்.", + "manage_media_access_title": "மீடியா மேலாண்மை அணுகல்", "manage_shared_links": "பகிரப்பட்ட இணைப்புகளை நிர்வகிக்கவும்", "manage_sharing_with_partners": "கூட்டாளர்களுடன் பகிர்வை நிர்வகிக்கவும்", "manage_the_app_settings": "பயன்பாட்டு அமைப்புகளை நிர்வகிக்கவும்", @@ -1406,6 +1406,7 @@ "new_pin_code": "புதிய முள் குறியீடு", "new_pin_code_subtitle": "பூட்டப்பட்ட கோப்புறையை அணுக இது உங்கள் முதல் முறையாகும். இந்த பக்கத்தை பாதுகாப்பாக அணுக ஒரு முள் குறியீட்டை உருவாக்கவும்", "new_timeline": "புதிய காலவரிசை", + "new_update": "புதிய புதுப்பிப்பு", "new_user_created": "புதிய பயனர் உருவாக்கப்பட்டது", "new_version_available": "புதிய பதிப்பு கிடைக்கிறது", "newest_first": "புதிய முதல்", @@ -1421,6 +1422,7 @@ "no_cast_devices_found": "நடிகர்கள் சாதனங்கள் எதுவும் கிடைக்கவில்லை", "no_checksum_local": "செக்சம் எதுவும் கிடைக்கவில்லை - உள்ளக சொத்துக்களைப் பெற முடியாது", "no_checksum_remote": "செக்சம் எதுவும் கிடைக்கவில்லை - தொலை சொத்து பெற முடியாது", + "no_devices": "அங்கீகரிக்கப்பட்ட சாதனங்கள் இல்லை", "no_duplicates_found": "நகல்கள் எதுவும் காணப்படவில்லை.", "no_exif_info_available": "EXIF செய்தி எதுவும் கிடைக்கவில்லை", "no_explore_results_message": "உங்கள் தொகுப்பை ஆராய கூடுதல் புகைப்படங்களை பதிவேற்றவும்.", @@ -1437,6 +1439,7 @@ "no_results_description": "ஒரு ஒத்த அல்லது பொதுவான முக்கிய சொல்லை முயற்சிக்கவும்", "no_shared_albums_message": "உங்கள் நெட்வொர்க்கில் உள்ளவர்களுடன் புகைப்படங்களையும் வீடியோக்களையும் பகிர்ந்து கொள்ள ஒரு ஆல்பத்தை உருவாக்கவும்", "no_uploads_in_progress": "பதிவேற்றங்கள் முன்னேற்றத்தில் இல்லை", + "not_allowed": "அனுமதிக்கப்படவில்லை", "not_available": "இதற்கில்லை", "not_in_any_album": "எந்த ஆல்பத்திலும் இல்லை", "not_selected": "தேர்ந்தெடுக்கப்படவில்லை", @@ -1547,6 +1550,8 @@ "photos_count": "{count, plural, one {{count, number} படம்} other {{count, number} படங்கள்}}", "photos_from_previous_years": "முந்தைய ஆண்டுகளின் புகைப்படங்கள்", "pick_a_location": "ஒரு இடத்தைத் தேர்ந்தெடுங்கள்", + "pick_custom_range": "தனிப்பயன் வரம்பு", + "pick_date_range": "தேதி வரம்பைத் தேர்ந்தெடுக்கவும்", "pin_code_changed_successfully": "முள் குறியீட்டை வெற்றிகரமாக மாற்றியது", "pin_code_reset_successfully": "முள் குறியீட்டை வெற்றிகரமாக மீட்டமைக்கவும்", "pin_code_setup_successfully": "முள் குறியீட்டை வெற்றிகரமாக அமைக்கவும்", @@ -2027,6 +2032,7 @@ "third_party_resources": "மூன்றாம் தரப்பு வளங்கள்", "time": "நேரம்", "time_based_memories": "நேர அடிப்படையிலான நினைவுகள்", + "time_based_memories_duration": "ஒவ்வொரு படத்தையும் காண்பிக்க தேவைப்படும் வினாடிகள்.", "timeline": "காலவரிசை", "timezone": "நேர மண்டலம்", "to_archive": "காப்பகம்", diff --git a/i18n/te.json b/i18n/te.json index 3cbe6e36bd..98f722da2b 100644 --- a/i18n/te.json +++ b/i18n/te.json @@ -14,17 +14,20 @@ "add_a_location": "స్థానాన్ని జోడించండి", "add_a_name": "పేరును జోడించండి", "add_a_title": "శీర్షికను జోడించండి", + "add_birthday": "పుట్టినరోజును జోడించండి", + "add_endpoint": "ముగింపు బిందువును జోడించండి", "add_exclusion_pattern": "మినహాయింపు నమూనాను జోడించండి", - "add_import_path": "దిగుమతి మార్గాన్ని జోడించండి", "add_location": "స్థానాన్ని జోడించండి", "add_more_users": "మరింత మంది వినియోగదారులను జోడించండి", "add_partner": "భాగస్వామిని జోడించండి", "add_path": "మార్గాన్ని జోడించండి", "add_photos": "ఫోటోలను జోడించండి", + "add_tag": "ట్యాగ్ జోడించండి", "add_to": "జోడించండి…", "add_to_album": "ఆల్బమ్‌కు జోడించండి", "add_to_album_bottom_sheet_added": "ఆల్బమ్కు జోడించబడింది", "add_to_album_bottom_sheet_already_exists": "ఆల్బమ్‌లో ఇప్పటికే జోడించబడింది", + "add_to_album_bottom_sheet_some_local_assets": "కొన్ని స్థానిక ఆస్తులను ఆల్బమ్‌కు జోడించడం సాధ్యం కాలేదు.", "add_to_shared_album": "భాగస్వామ్య ఆల్బమ్‌కు జోడించండి", "add_url": "URLని జోడించండి", "added_to_archive": "ఆర్కైవ్‌కి జోడించబడింది", @@ -92,7 +95,6 @@ "jobs_failed": "{jobCount, plural, other {# విఫలమైంది}}", "library_created": "లైబ్రరీ సృష్టించబడింది: {library}", "library_deleted": "లైబ్రరీ తొలగించబడింది", - "library_import_path_description": "దిగుమతి చేయడానికి ఫోల్డర్‌ను పేర్కొనండి. సబ్ ఫోల్డర్‌లతో సహా ఈ ఫోల్డర్ చిత్రాలు మరియు వీడియోల కోసం స్కాన్ చేయబడుతుంది.", "library_scanning": "ఆవర్తన స్కానింగ్", "library_scanning_description": "ఆవర్తన లైబ్రరీ స్కానింగ్‌ని కాన్ఫిగర్ చేయండి", "library_scanning_enable_description": "ఆవర్తన లైబ్రరీ స్కానింగ్‌ని ప్రారంభించండి", @@ -563,8 +565,6 @@ "edit_date_and_time": "తేదీ మరియు సమయాన్ని సవరించు", "edit_exclusion_pattern": "మినహాయింపు నమూనాను సవరించు", "edit_faces": "ముఖాలను సవరించు", - "edit_import_path": "దిగుమతి మార్గాన్ని సవరించు", - "edit_import_paths": "దిగుమతి మార్గాలను సవరించు", "edit_key": "కీని సవరించు", "edit_link": "లింక్‌ను సవరించు", "edit_location": "స్థానాన్ని సవరించు", @@ -618,7 +618,6 @@ "failed_to_remove_product_key": "ఉత్పత్తి కీని తీసివేయడంలో విఫలమైంది", "failed_to_stack_assets": "ఆస్తులను పేర్చడంలో విఫలమైంది", "failed_to_unstack_assets": "ఆస్తులను అన్-స్టాక్ చేయడంలో విఫలమైంది", - "import_path_already_exists": "ఈ దిగుమతి మార్గం ఇప్పటికే ఉంది.", "incorrect_email_or_password": "తప్పు ఇమెయిల్ లేదా పాస్‌వర్డ్", "paths_validation_failed": "{paths, plural, one {# path} other {# paths}} ధ్రువీకరణ విఫలమైంది", "profile_picture_transparent_pixels": "ప్రొఫైల్ చిత్రాలలో పారదర్శక పిక్సెల్‌లు ఉండకూడదు. దయచేసి చిత్రాన్ని జూమ్ చేయండి మరియు/లేదా తరలించండి.", @@ -627,7 +626,6 @@ "unable_to_add_assets_to_shared_link": "షేర్ చేసిన లింక్‌కు ఆస్తులను జోడించడం సాధ్యం కాలేదు", "unable_to_add_comment": "వ్యాఖ్యను జోడించడం సాధ్యం కాలేదు", "unable_to_add_exclusion_pattern": "మినహాయింపు నమూనాను జోడించడం సాధ్యం కాలేదు", - "unable_to_add_import_path": "దిగుమతి మార్గాన్ని జోడించడం సాధ్యం కాలేదు", "unable_to_add_partners": "భాగస్వాములను జోడించడం సాధ్యం కాలేదు", "unable_to_add_remove_archive": "ఆర్కైవ్ చేయడం {archived, select, true {remove asset from} other {add asset to}} సాధ్యం కాలేదు", "unable_to_add_remove_favorites": "ఇష్టమైనవిగా {favorite, select, true {add asset to} other {remove asset from}} సాధ్యం కాలేదు", @@ -649,12 +647,10 @@ "unable_to_delete_asset": "ఆస్తిని తొలగించడం సాధ్యం కాలేదు", "unable_to_delete_assets": "ఆస్తులను తొలగించడంలో లోపం ఏర్పడింది", "unable_to_delete_exclusion_pattern": "మినహాయింపు నమూనాను తొలగించడం సాధ్యం కాలేదు", - "unable_to_delete_import_path": "దిగుమతి మార్గాన్ని తొలగించలేకపోయింది", "unable_to_delete_shared_link": "షేర్ చేసిన లింక్‌ను తొలగించడం సాధ్యం కాలేదు", "unable_to_delete_user": "వినియోగదారుని తొలగించడం సాధ్యం కాలేదు", "unable_to_download_files": "ఫైళ్లను డౌన్‌లోడ్ చేయడం సాధ్యం కాలేదు", "unable_to_edit_exclusion_pattern": "మినహాయింపు నమూనాను సవరించడం సాధ్యం కాలేదు", - "unable_to_edit_import_path": "దిగుమతి మార్గాన్ని సవరించడం సాధ్యం కాలేదు", "unable_to_empty_trash": "ట్రాష్‌ను ఖాళీ చేయడం సాధ్యం కాలేదు", "unable_to_enter_fullscreen": "పూర్తి స్క్రీన్‌లోకి ప్రవేశించడం సాధ్యం కాలేదు", "unable_to_exit_fullscreen": "పూర్తి స్క్రీన్ నుండి నిష్క్రమించడం సాధ్యం కాలేదు", diff --git a/i18n/th.json b/i18n/th.json index 759b09363d..9bbb6f706c 100644 --- a/i18n/th.json +++ b/i18n/th.json @@ -17,7 +17,6 @@ "add_birthday": "เพิ่มวันเกิด", "add_endpoint": "เพิ่มปลายทาง", "add_exclusion_pattern": "เพิ่มข้อยกเว้น", - "add_import_path": "เพิ่มเส้นทางนำเข้า", "add_location": "เพิ่มตำแหน่ง", "add_more_users": "เพิ่มผู้ใช้งาน", "add_partner": "เพิ่มคู่หู", @@ -32,6 +31,7 @@ "add_to_albums": "เพิ่มเข้าในอัลบั้ม", "add_to_albums_count": "เพิ่มไปยังอัลบั้ม ({count})", "add_to_shared_album": "เพิ่มไปยังอัลบั้มที่แชร์กัน", + "add_upload_to_stack": "เพิ่มที่อัปโหลดเข้า stack", "add_url": "เพิ่ม URL", "added_to_archive": "เพิ่มไปยังที่จัดเก็บถาวร", "added_to_favorites": "เพิ่มเข้ารายการโปรด", @@ -48,7 +48,12 @@ "backup_database": "สำรองฐานข้อมูล", "backup_database_enable_description": "เปิดใช้งานสำรองฐานข้อมูล", "backup_keep_last_amount": "จำนวนข้อมูลสำรองก่อนหน้าที่ต้องเก็บไว้", + "backup_onboarding_1_description": "สำเนานอกสถานที่บนคลาวด์หรือที่ตั้งอื่น", + "backup_onboarding_2_description": "สำเนาที่อยู่บนเครื่องต่างกัน ซึ่งรวมถึงไฟล์หลักและไฟล์สำรองบนเครื่อง", + "backup_onboarding_3_description": "จำนวนชุดของข้อมูลทั้งหมด รวมถึงไฟล์เดิม ซึ่งรวมถึง 1 ชุดที่ตั้งอยู่คนละถิ่น และสำเนาบนเครื่อง 2 ชุด", + "backup_onboarding_description": "แนะนำให้ใช้ การสำรองข้อมูลแบบ 3-2-1เพื่อปกป้องข้อมูล ควรเก็บสำเนาของรูปภาพ/วิดีโอที่อัปโหลดและฐานข้อมูลของ Immich เพื่อสำรองข้อมูลได้อย่างทั่วถึง", "backup_onboarding_footer": "สำหรับข้อมูลเพิ่มเติมที่เกี่ยวกับการสำรองข้อมูลของ Immich โปรดดูที่ documentation", + "backup_onboarding_parts_title": "การสำรองข้อมูลแบบ 3-2-1 ประกอบไปด้วย:", "backup_onboarding_title": "สำรองข้อมูล", "backup_settings": "ตั้งค่าการสำรองข้อมูล", "backup_settings_description": "จัดการการตั้งค่าการสำรองฐานข้อมูล", @@ -105,19 +110,24 @@ "jobs_failed": "{jobCount, plural, other {# ล้มเหลว}}", "library_created": "สร้างคลังภาพ: {library}", "library_deleted": "คลังภาพถูกลบ", - "library_import_path_description": "ระบุโฟลเดอร์เพื่อนําเข้า โฟลเดอร์นี้และโฟลเดอร์ย่อยจะถูกค้นหาภาพและวิดีโอ.", + "library_details": "รายละเอียดคลังภาพ", + "library_folder_description": "เลือกโฟล์เดอร์เพื่อนำเข้า โฟลเดอร์นี้ รวมถึงโฟลเดอร์ย่อยจะถูกสแกนเพื่อรูปภาพและวิดีโอ", + "library_remove_exclusion_pattern_prompt": "คุณแน่ใจว่าต้องการลบรูปแบบข้อยกเว้นนี้ออกหรือไม่?", + "library_remove_folder_prompt": "คุณแน่ใจว่าต้องการลบโฟล์เดอร์นำเข้านี้หรือไม่?", "library_scanning": "การสแกนเป็นระยะ", "library_scanning_description": "ตั้งค่าการสแกนคลังภาพเป็นระยะ", "library_scanning_enable_description": "เปิดการสแกนคลังภาพเป็นระยะ", "library_settings": "คลังภาพภายนอก", "library_settings_description": "จัดการการตั้งค่าคลังภาพภายนอก", "library_tasks_description": "สแกนคลังภาพภายนอกสำหรับทรัพยากรใหม่และ/หรือที่เปลี่ยนแปลง", + "library_updated": "คลังภาพถูกอัปเดต", "library_watching_enable_description": "ดูคลังภาพภายนอกสำหรับการเปลี่ยนแปลงของไฟล์", - "library_watching_settings": "การดูคลังภาพภายนอก (ฟีเจอร์ทดลอง)", + "library_watching_settings": "การดูคลังภาพ [ฟีเจอร์ทดลอง]", "library_watching_settings_description": "หาไฟล์ที่เปลี่ยนแปลงโดยอัตโนมัติ", "logging_enable_description": "เปิดการบันทึก", "logging_level_description": "เมื่อเปิดใช้งาน ใช้ระดับการบันทึกอะไร", "logging_settings": "การบันทึก", + "machine_learning_availability_checks_description": "ตรวจจับและเลือกใช้เซิร์ฟเวอร์ machine learning โดยอัตโนมัติ", "machine_learning_clip_model": "โมเดล Clip", "machine_learning_clip_model_description": "ชื่อของโมเดล CLIP ที่ระบุตรงนี้ โปรดทราบว่าจำเป็นต้องดำเนินงาน 'ค้นหาอัจฉริยะ' ใหม่สำหรับทุกรูปเมื่อเปลี่ยนโมเดล", "machine_learning_duplicate_detection": "ตรวจจับการซ้ำกัน", @@ -140,6 +150,15 @@ "machine_learning_min_detection_score_description": "ค่าความมั่นใจในการตรวจจับใบหน้า จาก 0-1 ค่ายิ่งต่ำจะยิ่งตรวจจับใบหน้ามากขึ้น แต่อาจมีผลผิดพลาด", "machine_learning_min_recognized_faces": "จดจำใบหน้าขั้นต่ำ", "machine_learning_min_recognized_faces_description": "จำนวนใบหน้าขั้นต่ำที่จะสร้างคนขึ้นมา การเพิ่มค่านี้จะทำให้การจดจำใบหน้าแม่นยำกว่าแต่เพิ่มโอกาสที่ใบหน้าจะไม่ถูกมอบหมายให้กับบุคคล", + "machine_learning_ocr": "OCR", + "machine_learning_ocr_description": "ใช้ machine learning ตรวจจับข้อความในภาพ", + "machine_learning_ocr_enabled": "เปิดใช้งาน OCR", + "machine_learning_ocr_enabled_description": "ถ้าปิด ภาพจะไม่ถูกนำเข้ากระบวนการตรวจจับข้อความ", + "machine_learning_ocr_max_resolution": "ความละเอียดสูงสุด", + "machine_learning_ocr_max_resolution_description": "Preview ที่มีความละเอียดสูงกว่าค่านี้จะถูกปรับขนาดโดยคงอัตราส่วนของภาพไว้ ค่าที่สูงจะทำให้มีความแม่นยำมากขึ้นแต่จะใช้เวลาประมวลผลและหน่วยความจำมากขึ้น", + "machine_learning_ocr_min_detection_score": "คะแนนการตรวจจับต่ำสุด", + "machine_learning_ocr_min_detection_score_description": "คะแนนการตรวจจับต่ำสุดที่ข้อความจะถูกตรวจจับ ค่าระหว่าง 0-1 ค่าที่ต่ำจะทำให้ข้อความถูกตรวจจับมากขึ้นแต่อาจทำให้ผลบวกปลอมมากขึ้น", + "machine_learning_ocr_model": "โมเดล OCR", "machine_learning_settings": "การตั้งค่า machine learning", "machine_learning_settings_description": "จัดการการตั้งค่า machine learning", "machine_learning_smart_search": "การค้นหาอัจฉริยะ", @@ -799,8 +818,6 @@ "edit_description_prompt": "โปรดเลื่อกคำอธิบายใหม่", "edit_exclusion_pattern": "แก้ไขข้อยกเว้น", "edit_faces": "แก้ไขหน้า", - "edit_import_path": "แก้ไขพาธนําเข้า", - "edit_import_paths": "แก้ไขพาธนําเข้า", "edit_key": "แก้ไขกุญแจ", "edit_link": "แก้ไขลิงก์", "edit_location": "แก้ไขตำแหน่ง", @@ -867,7 +884,6 @@ "failed_to_stack_assets": "Failed to stack assets", "failed_to_unstack_assets": "Failed to un-stack assets", "failed_to_update_notification_status": "อัพเดทสถานะการแจ้งเตือนไม่สำเร็จ", - "import_path_already_exists": "พาธนำเข้านี้มีอยู่แล้ว", "incorrect_email_or_password": "อีเมลหรือรหัสผ่านไม่ถูกต้อง", "paths_validation_failed": "การตรวจสอบ {paths, plural, one {# path} other {# paths}} ล้มเหลว", "profile_picture_transparent_pixels": "รูปโปรไฟล์ไม่สามารถมีพิกเซลโปร่งใสได้ โปรดซูมเข้าและ/หรือย้ายรูปภาพ", @@ -876,7 +892,6 @@ "unable_to_add_assets_to_shared_link": "ไม่สามารถเพิ่มลงในลิงก์ที่แชร์ได้", "unable_to_add_comment": "ไม่สามารถเพิ่มความเห็นได้", "unable_to_add_exclusion_pattern": "ไม่สามารถเพิ่มรูปแบบข้อยกเว้นได้", - "unable_to_add_import_path": "ไม่สามารถเพิ่มเส้นทางนำเข้าได้", "unable_to_add_partners": "ไม่สามารถเพิ่มคู่หูได้", "unable_to_add_remove_archive": "ไม่สามารถจัดเก็บรายการ {archived, select, true {remove asset from} other {add asset to}} ไปยังการจัดเก็บถาวรได้", "unable_to_add_remove_favorites": "ไม่สามารถทำรายการ {favorite, select, true {add asset to} other {remove asset from}} เข้ารายการโปรดได้", @@ -899,12 +914,10 @@ "unable_to_delete_asset": "ไม่สามารถลบสื่อได้", "unable_to_delete_assets": "เกิดผิดพลาดในการลบ", "unable_to_delete_exclusion_pattern": "ไม่สามารถลบรูปแบบที่ยกเว้น", - "unable_to_delete_import_path": "ไม่สามารถลบเส้นทางนำเข้าได้", "unable_to_delete_shared_link": "ไม่สามารถลบลิงก์ที่แชร์ได้", "unable_to_delete_user": "ไม่สามารถลบผู้ใช้ได้", "unable_to_download_files": "ไม่สามารถดาวน์โหลดไฟล์ได้", "unable_to_edit_exclusion_pattern": "ไม่สามารถแก้ไขรูปแบบยกเว้นได้", - "unable_to_edit_import_path": "ไม่สามารถแก้ไขเส้นทางนำเข้าได้", "unable_to_empty_trash": "ไม่สามารถลบถังขยะได้", "unable_to_enter_fullscreen": "ไม่สามารถเปิดเต็มจอได้", "unable_to_exit_fullscreen": "ไม่สามารถออกโหมดเต็มจอได้", @@ -1082,6 +1095,7 @@ "include_shared_albums": "รวมอัลบั้มที่แชร์กัน", "include_shared_partner_assets": "รวมสื่อที่แชร์กับคู่หู", "individual_share": "แชร์ส่วนตัว", + "individual_shares": "การแชร์เดี่ยว", "info": "ข้อมูล", "interval": { "day_at_onepm": "ทุกวันเวลาบ่ายโมง", @@ -1099,7 +1113,7 @@ "ios_debug_info_no_sync_yet": "ยังไม่มีงานซิงค์รันในพื้นหลัง", "ios_debug_info_processes_queued": "{count} โพรเซสรอคิวในพื้นหลัง", "ios_debug_info_processing_ran_at": "โพรเซสรันเมื่อ {dateTime}", - "items_count": "{count, plural, one {# รายการ} other {#รายการ}}", + "items_count": "{count, plural, one {# รายการ} other {# รายการ}}", "jobs": "งาน", "keep": "เก็บ", "keep_all": "เก็บทั้งหมด", @@ -1111,6 +1125,7 @@ "language_no_results_title": "ไม่พบภาษา", "language_search_hint": "ค้นหาภาษา...", "language_setting_description": "เลือกภาษาที่ต้องการ", + "large_files": "ไฟล์ขนาดใหญ่", "last_seen": "เห็นล่าสุด", "latest_version": "เวอร์ชันล่าสุด", "latitude": "ละติจูด", @@ -1137,7 +1152,7 @@ "local_asset_cast_failed": "ไม่สามารถแคสสื่อที่ไม่ถูกอัพโหลดไปยังเซิร์ฟเวอร์", "local_network": "เครือข่ายระยะใกล้", "local_network_sheet_info": "แอพจะทำการเชื่อมต่อไปยังเซิร์ฟเวอร์ผ่าน URL นี้เมื่อเชื่อต่อกับ Wi-Fi ที่เลือกไว้", - "location_permission": "การอนุญาตตำแหน่ง", + "location_permission": "การอนุญาตเข้าถึงตำแหน่ง", "location_permission_content": "เพื่อใช้ฟีเจอร์การสับโดยอัตโนมัติ Immich ต้องการการอนุญาตเข้าถึงต่ำแหน่งที่แม่นยำเพื่ออ่านชื่อ Wi-Fi ที่เชื่อมต่ออยู่", "location_picker_choose_on_map": "เลือกบนแผนที่", "location_picker_latitude_error": "กรุณาเพิ่มละติจูตที่ถูกต้อง", @@ -1183,6 +1198,7 @@ "main_branch_warning": "คุณกำลังใช้เวอร์ชันการพัฒนา เราขอแนะนำอย่างยิ่งให้ใช้เวอร์ชันเสถียร !", "main_menu": "เมนูหลัก", "make": "สร้าง", + "manage_geolocation": "จัดการตำแหน่ง", "manage_shared_links": "จัดการลิงก์ที่แชร์", "manage_sharing_with_partners": "จัดการการแชร์กับคู่หู", "manage_the_app_settings": "จัดการการตั้งค่าแอป", @@ -1485,6 +1501,7 @@ "resume": "กลับคืน", "retry_upload": "ลองอัปโหลดใหม่", "review_duplicates": "ตรวจสอบรายการที่ซ้ำกัน", + "review_large_files": "ตรวจสอบไฟล์ที่มีขนาดใหญ่", "role": "บทบาท", "role_editor": "เครื่องมือแก้ไข", "role_viewer": "ดู", diff --git a/i18n/tr.json b/i18n/tr.json index 1c1f4c7354..8fb386b9e7 100644 --- a/i18n/tr.json +++ b/i18n/tr.json @@ -17,7 +17,6 @@ "add_birthday": "Doğum günü ekle", "add_endpoint": "Uç nokta ekle", "add_exclusion_pattern": "Hariç tutma deseni ekle", - "add_import_path": "İçe aktarma yolu ekle", "add_location": "Konum ekle", "add_more_users": "Daha fazla kullanıcı ekle", "add_partner": "Ortak ekle", @@ -32,6 +31,7 @@ "add_to_album_toggle": "{album} için seçimi değiştir", "add_to_albums": "Albümlere ekle", "add_to_albums_count": "{count} albümlerine ekle", + "add_to_bottom_bar": "Şuraya ekle", "add_to_shared_album": "Paylaşılan albüme ekle", "add_upload_to_stack": "Yüklemeyi yığına ekle", "add_url": "URL ekle", @@ -112,13 +112,17 @@ "jobs_failed": "{jobCount, plural, other {# Başarısız}}", "library_created": "Oluşturulan kütüphane : {library}", "library_deleted": "Kütüphane silindi", - "library_import_path_description": "Belirtilecek klasörü içe aktarın. Bu klasör, alt klasörler dahil olmak üzere, görüntüler ve videolar için taranacaktır.", + "library_details": "Kütüphane detayları", + "library_folder_description": "İçe aktarılacak klasörü belirtin. Bu klasör, alt klasörler dahil olmak üzere, resim ve videolar için taranacaktır.", + "library_remove_exclusion_pattern_prompt": "Bu hariç tutma modelini kaldırmak istediğinizden emin misiniz?", + "library_remove_folder_prompt": "Bu içe aktarma klasörünü kaldırmak istediğinizden emin misiniz?", "library_scanning": "Periyodik Tarama", "library_scanning_description": "Periyodik kütüphane taramasını yönet", "library_scanning_enable_description": "Periyodik kütüphane taramasını etkinleştir", "library_settings": "Harici Kütüphane", "library_settings_description": "Harici kütüphane ayarlarını yönet", "library_tasks_description": "Yeni yada değiştirilmiş öğeler için dış kütüphaneleri tara", + "library_updated": "Güncellenmiş kütüphane", "library_watching_enable_description": "Harici kütüphanelerdeki dosya değişikliklerini izle", "library_watching_settings": "Kütüphane izleme [DENEYSEL]", "library_watching_settings_description": "Değişen dosyalar için otomatik olarak izle", @@ -155,15 +159,17 @@ "machine_learning_min_recognized_faces": "Minimum tanınan yüzler", "machine_learning_min_recognized_faces_description": "Kişi oluşturulması için gereken minimum yüzler. Bu değeri yükseltmek yüz tanıma doğruluğunu arttırır fakat yüzün bir kişiye atanmama olasılığını arttırır.", "machine_learning_ocr": "OCR", - "machine_learning_ocr_description": "İmajladaki metinleri tanımak için makine öğrenmesi kullan", - "machine_learning_ocr_enabled": "OCR'ı etkileştir", + "machine_learning_ocr_description": "Resimlerdeki metni tanımak için makine öğrenimini kullan", + "machine_learning_ocr_enabled": "OCR'yi etkinleştir", "machine_learning_ocr_enabled_description": "Devre dışı bırakılırsa, resimler metin tanıma işleminden geçmeyecektir.", "machine_learning_ocr_max_resolution": "En yüksek çözünürlük", "machine_learning_ocr_max_resolution_description": "Bu çözünürlüğün üzerindeki önizlemeler, en-boy oranı korunarak yeniden boyutlandırılacaktır. Daha yüksek değerler daha doğru sonuç verir, ancak işlemesi daha uzun sürer ve daha fazla bellek kullanır.", "machine_learning_ocr_min_detection_score": "En düşük tespit puanı", "machine_learning_ocr_min_detection_score_description": "Metnin tespit edilmesi için minimum güven puanı 0-1 arasındadır. Düşük değerler daha fazla metin tespit eder, ancak yanlış pozitif sonuçlara yol açabilir.", "machine_learning_ocr_min_recognition_score": "Minimum tespit puanı", + "machine_learning_ocr_min_score_recognition_description": "Algılanan metnin tanınması için minimum güven puanı 0-1 arasındadır. Daha düşük değerler daha fazla metni tanır, ancak yanlış pozitif sonuçlara neden olabilir.", "machine_learning_ocr_model": "OCR modeli", + "machine_learning_ocr_model_description": "Sunucu modelleri mobil modellerden daha doğrudur, ancak işlenmesi daha uzun sürer ve daha fazla bellek kullanır.", "machine_learning_settings": "Makine Öğrenmesi ayarları", "machine_learning_settings_description": "Makine öğrenmesi özelliklerini ve ayarlarını yönet", "machine_learning_smart_search": "Akıllı Arama", @@ -171,6 +177,10 @@ "machine_learning_smart_search_enabled": "Akıllı aramayı etkinleştir", "machine_learning_smart_search_enabled_description": "Eğer devre dışı bırakılırsa fotoğraflar akıllı arama için işlenmeyecek.", "machine_learning_url_description": "Makine öğrenimi sunucusunun URL’si. Birden fazla URL sağlanırsa, her sunucu sırayla tek tek denenir ve biri başarılı yanıt verene kadar devam edilir. Yanıt vermeyen sunucular, çevrimiçi duruma gelene kadar geçici olarak yok sayılır.", + "maintenance_settings": "Bakım", + "maintenance_settings_description": "Immich'i bakım moduna alın.", + "maintenance_start": "Bakım modunu başlat", + "maintenance_start_error": "Bakım modu başlatılamadı.", "manage_concurrency": "Aynı anda çalışmayı yönet", "manage_log_settings": "Günlük ayarlarını yönet", "map_dark_style": "Koyu mod", @@ -255,6 +265,7 @@ "oauth_storage_quota_default_description": "Değer (en: OAuth claim) mevcut değilse GiB cinsinden konulacak kota.", "oauth_timeout": "İstek Zaman Aşımı", "oauth_timeout_description": "Milisaniye cinsinden istek zaman aşımı", + "ocr_job_description": "Resimlerdeki metni tanımak için makine öğrenimini kullan", "password_enable_description": "E-posta ve şifre ile giriş yapın", "password_settings": "Şifre ile Giriş", "password_settings_description": "Şifre giriş ayarlarını yönet", @@ -427,6 +438,7 @@ "age_months": "Yaş {months, plural, one {# ay} other {# ay}}", "age_year_months": "1 yaş, {months, plural, one {# ay} other {# ay}}", "age_years": "{years, plural, other {Yaş #}}", + "album": "Albüm", "album_added": "Albüm eklendi", "album_added_notification_setting_description": "Paylaşılan bir albüme eklendiğinizde e-posta bildirimi alın", "album_cover_updated": "Albüm kapağı güncellendi", @@ -472,6 +484,7 @@ "allow_edits": "Düzenlemeye izin ver", "allow_public_user_to_download": "Genel kullanıcının indirmesine aç", "allow_public_user_to_upload": "Genel kullanıcının yüklemesine aç", + "allowed": "İzin verildi", "alt_text_qr_code": "QR kodu görseli", "anti_clockwise": "Saat yönünün tersine", "api_key": "API Anahtarı", @@ -679,6 +692,8 @@ "change_password_description": "Bu sisteme ilk kez giriş yapıyorsunuz veya şifrenizi değiştirmek için bir istekte bulunuldu. Lütfen aşağıya yeni şifrenizi girin.", "change_password_form_confirm_password": "Şifreyi Onayla", "change_password_form_description": "Merhaba {name},\n\nBu sisteme ilk kez giriş yapıyorsunuz veya şifrenizi değiştirmek için bir istekte bulunuldu. Lütfen aşağıya yeni şifrenizi girin.", + "change_password_form_log_out": "Diğer tüm cihazlardan çıkış yap", + "change_password_form_log_out_description": "Diğer tüm cihazlardan çıkış yapmanız önerilir", "change_password_form_new_password": "Yeni Şifre", "change_password_form_password_mismatch": "Şifreler eşleşmiyor", "change_password_form_reenter_new_password": "Yeni Şifreyi Tekrar Giriniz", @@ -889,8 +904,6 @@ "edit_description_prompt": "Lütfen yeni bir açıklama seçin:", "edit_exclusion_pattern": "Hariç tutma desenini düzenle", "edit_faces": "Yüzleri Düzenleyin", - "edit_import_path": "İçe aktarma yolunu düzenleyin", - "edit_import_paths": "İçe Aktarma Yollarını Düzenle", "edit_key": "Anahtarı düzenle", "edit_link": "Bağlantıyı düzenle", "edit_location": "Lokasyonu düzenleyin", @@ -962,8 +975,8 @@ "failed_to_stack_assets": "Öğeler yığınlanamadı", "failed_to_unstack_assets": "Öğelerin yığını kaldırılamadı", "failed_to_update_notification_status": "Bildirim durumu güncellenemedi", - "import_path_already_exists": "Bu içe aktarma yolu halihazırda mevcut.", "incorrect_email_or_password": "Yanlış e-posta veya şifre", + "library_folder_already_exists": "Bu içe aktarma yolu zaten mevcut.", "paths_validation_failed": "{paths, plural, one {# Yol} other {# Yollar}} doğrulanamadı", "profile_picture_transparent_pixels": "Profil resimleri şeffaf piksele sahip olamaz. Lütfen resme yakınlaştırın ve/veya resmi hareket ettirin.", "quota_higher_than_disk_size": "Disk boyutundan daha yüksek bir kota belirlediniz", @@ -972,7 +985,6 @@ "unable_to_add_assets_to_shared_link": "Öğeler paylaşılan bağlantıya eklenemiyor", "unable_to_add_comment": "Yorum eklenemiyor", "unable_to_add_exclusion_pattern": "Hariç tutma modeli eklenemiyor", - "unable_to_add_import_path": "İçe aktarma yolu eklenemiyor", "unable_to_add_partners": "Ortaklar eklenemiyor", "unable_to_add_remove_archive": "Arşive {archived, select, true {dosyayı kaldır} other {dosya ekle}} işlemi yapılamıyor", "unable_to_add_remove_favorites": "Favorilere {favorite, select, true {dosya ekle} other {dosyayı kaldır}} işlemi yapılamıyor", @@ -995,12 +1007,10 @@ "unable_to_delete_asset": "Öğe silinemiyor", "unable_to_delete_assets": "Öğeler silinemiyor", "unable_to_delete_exclusion_pattern": "Hariç tutma deseni silinemiyor", - "unable_to_delete_import_path": "İçe aktarma yolu silinemiyor", "unable_to_delete_shared_link": "Paylaşılan bağlantı silinemiyor", "unable_to_delete_user": "Kullanıcı silinemiyor", "unable_to_download_files": "Dosyalar indirilemiyor", "unable_to_edit_exclusion_pattern": "Hariç tutma deseni düzenlenemiyor", - "unable_to_edit_import_path": "İçe aktarma yolu düzenlenemiyor", "unable_to_empty_trash": "Çöp boşaltılamıyor", "unable_to_enter_fullscreen": "Tam ekran yapılamıyor", "unable_to_exit_fullscreen": "Tam ekrandan çıkılamıyor", @@ -1051,6 +1061,7 @@ "unable_to_update_user": "Kullanıcı güncellenemiyor", "unable_to_upload_file": "Dosya yüklenemiyor" }, + "exclusion_pattern": "Hariç tutma modeli", "exif": "EXIF", "exif_bottom_sheet_description": "Açıklama Ekle...", "exif_bottom_sheet_description_error": "Açıklama güncelleme hatası", @@ -1110,6 +1121,7 @@ "folders_feature_description": "Dosya sistemindeki fotoğraf ve videoları klasör görünümüyle keşfedin", "forgot_pin_code_question": "PIN kodunuzu mu unuttunuz?", "forward": "İleri", + "full_path": "Tam yol: {path}", "gcast_enabled": "Google Cast", "gcast_enabled_description": "Bu özellik, çalışabilmek için Google'dan harici kaynaklar yükler.", "general": "Genel", @@ -1191,6 +1203,8 @@ "import_path": "İçe aktarma yolu", "in_albums": "{count, plural, one {# Albüm} other {# Albümde}}", "in_archive": "Arşivde", + "in_year": "{year} yılı içinde", + "in_year_selector": "İçinde", "include_archived": "Arşivlenenleri dahil et", "include_shared_albums": "Paylaşılmış albümleri dahil et", "include_shared_partner_assets": "Paylaşılan ortak öğeleri dahil et", @@ -1227,6 +1241,7 @@ "language_setting_description": "Tercih ettiğiniz dili seçiniz", "large_files": "Büyük Dosyalar", "last": "Son", + "last_months": "{count, plural, one {Geçen ay} other {Son # ay}}", "last_seen": "Son görülme", "latest_version": "En Son Sürüm", "latitude": "Enlem", @@ -1236,6 +1251,8 @@ "let_others_respond": "Diğerlerinin yanıt vermesine izin ver", "level": "Seviye", "library": "Kütüphane", + "library_add_folder": "Klasör ekle", + "library_edit_folder": "Klasörü düzenle", "library_options": "Kütüphane ayarları", "library_page_device_albums": "Cihazdaki Albümler", "library_page_new_album": "Yeni albüm", @@ -1259,6 +1276,7 @@ "local_media_summary": "Yerel Medya Özeti", "local_network": "Yerel ağ", "local_network_sheet_info": "Uygulama belirlenmiş Wi-Fi ağını kullanırken bu URL üzerinden sunucuya bağlanacaktır", + "location": "Konum", "location_permission": "Konum izni", "location_permission_content": "Otomatik geçiş özelliğinin çalışabilmesi için Immich'in mevcut Wi-Fi ağının adını bilmesi, bunu sağlamak için de tam konum iznine ihtiyacı vardır", "location_picker_choose_on_map": "Haritada seç", @@ -1301,13 +1319,22 @@ "logout_this_device_confirmation": "Bu cihazda oturum kapatmak istediğinizden emin misiniz?", "logs": "Kayıtlar", "longitude": "Boylam", - "look": "Görünüm", + "look": "Görünüş", "loop_videos": "Videoları döngüye al", "loop_videos_description": "Ayrıntı görünümünde videoların otomatik döngüye alınmasını etkinleştir.", "main_branch_warning": "Geliştirme sürümü kullanıyorsunuz. Yayınlanan bir sürüm kullanmanızı önemle tavsiye ederiz!", "main_menu": "Ana menü", + "maintenance_description": "Immich, bakım moduna alınmıştır.", + "maintenance_end": "Bakım modunu sonlandır", + "maintenance_end_error": "Bakım modu sonlandırılamadı.", + "maintenance_logged_in_as": "Şu anda {user} olarak oturum açılmış durumda", + "maintenance_title": "Geçici Olarak Kullanılamıyor", "make": "Marka", "manage_geolocation": "Konumu yönet", + "manage_media_access_rationale": "Bu izin, öğelerin çöp kutusuna taşınması ve çöp kutusundan geri yüklenmesi için gereklidir.", + "manage_media_access_settings": "Ayarları aç", + "manage_media_access_subtitle": "Immich uygulamasının medya dosyalarını yönetmesine ve taşımasına izin verin.", + "manage_media_access_title": "Medya Yönetimi Erişimi", "manage_shared_links": "Paylaşılan bağlantıları yönet", "manage_sharing_with_partners": "Ortaklarla paylaşımı yönet", "manage_the_app_settings": "Uygulama ayarlarını yönet", @@ -1371,6 +1398,7 @@ "more": "Daha fazla", "move": "Taşı", "move_off_locked_folder": "Kilitli klasörden taşı", + "move_to": "Şuraya taşı", "move_to_lock_folder_action_prompt": "{count} kilitli klasöre eklendi", "move_to_locked_folder": "Kilitli klasöre taşı", "move_to_locked_folder_confirmation": "Bu fotoğraflar ve videolar tüm albümlerden kaldırılacak ve yalnızca kilitli klasörden görüntülenebilecektir", @@ -1400,6 +1428,7 @@ "new_pin_code": "Yeni PIN kodu", "new_pin_code_subtitle": "Kilitli klasöre ilk kez erişiyorsunuz. Bu sayfaya güvenli erişim için bir PIN kodu oluşturun", "new_timeline": "Yeni Zaman Çizelgesi", + "new_update": "Yeni güncelleme", "new_user_created": "Yeni kullanıcı oluşturuldu", "new_version_available": "YENİ SÜRÜM MEVCUT", "newest_first": "Önce en yeniler", @@ -1415,12 +1444,14 @@ "no_cast_devices_found": "Yansıtılacak cihaz bulunamadı", "no_checksum_local": "Sağlama toplamı mevcut değil - yerel varlıkları alamıyor", "no_checksum_remote": "Sağlama toplamı mevcut değil - uzak varlık alınamıyor", + "no_devices": "Yetkili cihaz yok", "no_duplicates_found": "Hiçbir kopya bulunamadı.", "no_exif_info_available": "EXIF bilgisi mevcut değil", "no_explore_results_message": "Koleksiyonunuzu keşfetmek için daha fazla fotoğraf yükleyin.", "no_favorites_message": "En sevdiğiniz fotoğraf ve videoları hızlıca bulmak için favorilere ekleyin", "no_libraries_message": "Fotoğraf ve videolarınızı görmek için bir harici kütüphane oluşturun", "no_local_assets_found": "Bu sağlama toplamı ile yerel varlık bulunamadı", + "no_location_set": "Konum ayarlanmadı", "no_locked_photos_message": "Kilitli klasördeki fotoğraf ve videolar gizlidir; kitaplığınızda gezinirken veya arama yaparken görünmezler.", "no_name": "İsim Yok", "no_notifications": "Bildirim yok", @@ -1431,6 +1462,7 @@ "no_results_description": "Eş anlamlı ya da daha genel anlamlı bir kelime deneyin", "no_shared_albums_message": "Fotoğrafları ve videoları ağınızdaki kişilerle paylaşmak için bir albüm oluşturun", "no_uploads_in_progress": "Yükleme işlemi yok", + "not_allowed": "İzin verilmiyor", "not_available": "YOK", "not_in_any_album": "Hiçbir albümde değil", "not_selected": "Seçilmedi", @@ -1513,7 +1545,7 @@ "people_feature_description": "Kişilere göre gruplanmış fotoğrafları ve videoları inceleyin", "people_sidebar_description": "Yan panelde kişilere hızlı erişim bağlantısı göster", "permanent_deletion_warning": "Kalıcı silme uyarısı", - "permanent_deletion_warning_setting_description": "Nesneleri kalıcı olarak silerken uyarı göster", + "permanent_deletion_warning_setting_description": "Öğeleri kalıcı olarak silerken uyarı göster", "permanently_delete": "Kalıcı olarak sil", "permanently_delete_assets_count": "{count, plural, one {öğe} other {öğe}} kalıcı olarak silindi", "permanently_delete_assets_prompt": "Bu {count, plural, one {öğeyi} other {# öğeleri}} kalıcı olarak silmek istediğinizden emin misiniz? Bu işlem {count, plural, one {bu öğeyi} other {bu öğeleri}} albümlerinizden de kaldırır.", @@ -1541,11 +1573,13 @@ "photos_count": "{count, plural, one {{count, number} fotoğraf} other {{count, number} fotoğraf}}", "photos_from_previous_years": "Önceki yıllardan fotoğraflar", "pick_a_location": "Bir konum seçin", + "pick_custom_range": "Özel aralık", + "pick_date_range": "Bir tarih aralığı seçin", "pin_code_changed_successfully": "PIN kodu başarıyla değiştirildi", "pin_code_reset_successfully": "PIN kodu başarıyla sıfırlandı", "pin_code_setup_successfully": "PIN kodu başarıyla ayarlandı", "pin_verification": "PIN kodu doğrulama", - "place": "Konum", + "place": "Yer", "places": "Konumlar", "places_count": "{count, plural, one {{count, number} yer} other {{count, number} yer}}", "play": "Oynat", @@ -1648,8 +1682,8 @@ "remote_assets": "Uzak Öğeler", "remote_media_summary": "Uzaktan Medya Özeti", "remove": "Kaldır", - "remove_assets_album_confirmation": "{count, plural, one {# öğeyi} other {# öğeleri}} albümden çıkarmak istediğinizden emin misiniz?", - "remove_assets_shared_link_confirmation": "{count, plural, one {# öğeyi} other {# öğeleri}} bu paylaşılan bağlantıdan çıkarmak istediğinizden emin misiniz?", + "remove_assets_album_confirmation": "{count, plural, one {# öğe} other {# öğeler}} albümden çıkarmak istediğinizden emin misiniz?", + "remove_assets_shared_link_confirmation": "{count, plural, one {# öğe} other {# öğeler}} bu paylaşılan bağlantıdan çıkarmak istediğinizden emin misiniz?", "remove_assets_title": "Öğeleri çıkar?", "remove_custom_date_range": "Özel tarih aralığını kaldır", "remove_deleted_assets": "Silinen Öğeleri Kaldır", @@ -1710,6 +1744,7 @@ "running": "Çalışıyor", "save": "Kaydet", "save_to_gallery": "Fotoğraflar'a kaydet", + "saved": "Kaydedildi", "saved_api_key": "API anahtarı kaydedildi", "saved_profile": "Profil kaydedildi", "saved_settings": "Kaydedilen ayarlar", @@ -1726,6 +1761,8 @@ "search_by_description_example": "Sapa'da yürüyüş günü", "search_by_filename": "Dosya adına veya uzantısına göre ara", "search_by_filename_example": "Örn. IMG_1234.JPG veya PNG", + "search_by_ocr": "OCR'ye göre ara", + "search_by_ocr_example": "Sütlü Kahve", "search_camera_lens_model": "Lens modelini ara...", "search_camera_make": "Kamera markasına göre ara...", "search_camera_model": "Kamera modeline göre ara...", @@ -1743,6 +1780,7 @@ "search_filter_location_title": "Konum seç", "search_filter_media_type": "Medya Türü", "search_filter_media_type_title": "Medya türü seç", + "search_filter_ocr": "OCR'ye göre ara", "search_filter_people_title": "Kişi seç", "search_for": "Araştır", "search_for_existing_person": "Mevcut bir kişiyi ara", @@ -1804,6 +1842,8 @@ "server_offline": "Sunucu çevrimdışı", "server_online": "Sunucu çevrimiçi", "server_privacy": "Sunucu Gizliliği", + "server_restarting_description": "Bu sayfa kısa bir süre içinde yenilenecektir.", + "server_restarting_title": "Sunucu yeniden başlatılıyor", "server_stats": "Sunucu istatistikleri", "server_update_available": "Sunucu güncellemesi mevcut", "server_version": "Sunucu Sürümü", @@ -1817,9 +1857,9 @@ "set_stack_primary_asset": "Birincil öğe olarak ayarla", "setting_image_viewer_help": "Görüntüleyici önce küçük resmi gösterir, ardından orta boy önizlemeyi (etkinleştirilmişse) ve son olarak orijinali (etkinleştirilmişse) gösterir.", "setting_image_viewer_original_subtitle": "Orijinal tam çözünürlüklü görüntüyü (büyük!) yüklemek için etkinleştirin. Veri kullanımını azaltmak için devre dışı bırakın (hem ağ hem de cihaz önbelleği).", - "setting_image_viewer_original_title": "Orijinal görüntüyü göster", + "setting_image_viewer_original_title": "Orijinal görüntüyü yükle", "setting_image_viewer_preview_subtitle": "Orta çözünürlüklü bir görüntü göstermek için etkinleştirin. Orijinali doğrudan göstermek veya yalnızca küçük resmi kullanmak için devre dışı bırakın.", - "setting_image_viewer_preview_title": "Önizleme görüntüsü göster", + "setting_image_viewer_preview_title": "Önizleme görüntüsünü yükle", "setting_image_viewer_title": "Resimler", "setting_languages_apply": "Uygula", "setting_languages_subtitle": "Uygulama dilini değiştir", @@ -1830,10 +1870,10 @@ "setting_notifications_notify_never": "hiçbir zaman", "setting_notifications_notify_seconds": "{count} saniye", "setting_notifications_single_progress_subtitle": "Öğe başına ayrıntılı yükleme ilerleme bilgisi", - "setting_notifications_single_progress_title": "Arkaplan yedeklemesi ayrıntılı ilerlemesini göster", + "setting_notifications_single_progress_title": "Arka plan yedeklemesi ayrıntılı ilerlemesini göster", "setting_notifications_subtitle": "Bildirim tercihlerinizi düzenleyin", "setting_notifications_total_progress_subtitle": "Toplam yükleme ilerlemesi (tamamlanan/toplam)", - "setting_notifications_total_progress_title": "Arkaplan yedeklemesi toplam ilerlemesini göster", + "setting_notifications_total_progress_title": "Arka plan yedeklemesi toplam ilerlemesini göster", "setting_video_viewer_auto_play_subtitle": "Videolar açıldığında otomatik olarak oynatmaya başla", "setting_video_viewer_auto_play_title": "Videoları otomatik oynat", "setting_video_viewer_looping_title": "Döngü", @@ -1903,7 +1943,7 @@ "sharing_page_album": "Paylaşılan albümler", "sharing_page_description": "Ağınızdaki kişilerle fotoğraf ve video paylaşmak için paylaşımlı albümler oluşturun.", "sharing_page_empty_list": "LİSTEYİ BOŞALT", - "sharing_sidebar_description": "Yan panelde paylaşılanlara kısa yol göster", + "sharing_sidebar_description": "Yan panelde Paylaşım bağlantısını göster", "sharing_silver_appbar_create_shared_album": "Yeni paylaşılan albüm", "sharing_silver_appbar_share_partner": "Ortakla paylaş", "shift_to_permanent_delete": "Öğeyi kalıcı olarak silmek için ⇧ tuşuna basın", @@ -1915,29 +1955,29 @@ "show_gallery": "Galeriyi göster", "show_hidden_people": "Gizli kişileri göster", "show_in_timeline": "Zaman çizelgesinde göster", - "show_in_timeline_setting_description": "Bu kullanıcının fotoğraf ve videolarını zaman çizelgenizde göster", + "show_in_timeline_setting_description": "Bu kullanıcının fotoğraf ve videolarını zaman çizelgenizde gösterin", "show_keyboard_shortcuts": "Klavye kısayollarını göster", "show_metadata": "Meta verileri göster", - "show_or_hide_info": "Bilgiyi göster veya gizle", + "show_or_hide_info": "Bilgileri göster veya gizle", "show_password": "Şifreyi göster", - "show_person_options": "Kişi ayarlarını göster", - "show_progress_bar": "İlerleme çubuğunu göster", - "show_search_options": "Arama ayarlarını göster", + "show_person_options": "Kişi seçeneklerini göster", + "show_progress_bar": "İlerleme Çubuğunu Göster", + "show_search_options": "Arama seçeneklerini göster", "show_shared_links": "Paylaşılan bağlantıları göster", - "show_slideshow_transition": "Slayt geçişini göster", + "show_slideshow_transition": "Slayt gösterisi geçişini göster", "show_supporter_badge": "Destekçi rozeti", "show_supporter_badge_description": "Destekçi rozetini göster", "show_text_search_menu": "Metin arama menüsünü göster", "shuffle": "Karıştır", "sidebar": "Yan panel", - "sidebar_display_description": "Yan panelde görünüme kısa yol göster", + "sidebar_display_description": "Yan panelde görünüme bir bağlantı göster", "sign_out": "Oturumu Kapat", "sign_up": "Kaydol", "size": "Boyut", "skip_to_content": "İçeriğe atla", "skip_to_folders": "Klasörlere atla", "skip_to_tags": "Etiketlere atla", - "slideshow": "Slayt gösteriisi", + "slideshow": "Slayt gösterisi", "slideshow_settings": "Slayt gösterisi ayarları", "sort_albums_by": "Albümleri sırala...", "sort_created": "Oluşturulma tarihi", @@ -2017,6 +2057,7 @@ "third_party_resources": "Üçüncü taraf kaynaklar", "time": "Zaman", "time_based_memories": "Zaman bazlı anılar", + "time_based_memories_duration": "Her görüntünün gösterileceği saniye sayısı.", "timeline": "Zaman Çizelgesi", "timezone": "Zaman dilimi", "to_archive": "Arşivle", @@ -2132,7 +2173,7 @@ "video_hover_setting_description": "Öğe üzerinde fareyle durulduğunda video küçük resmini oynatır. Bu özellik devre dışıyken, oynatma simgesine fareyle gidilerek oynatma başlatılabilir.", "videos": "Videolar", "videos_count": "{count, plural, one {# video} other {# video}}", - "view": "Görüntüle", + "view": "Görünüm", "view_album": "Albümü görüntüle", "view_all": "Tümünü gör", "view_all_users": "Tüm kullanıcıları görüntüle", @@ -2140,7 +2181,7 @@ "view_in_timeline": "Zaman çizelgesinde görüntüle", "view_link": "Bağlantıyı göster", "view_links": "Bağlantıları göster", - "view_name": "Göster", + "view_name": "Görünüm", "view_next_asset": "Sonraki öğeyi görüntüle", "view_previous_asset": "Önceki öğeyi görüntüle", "view_qr_code": "QR kodu görüntüle", @@ -2157,6 +2198,7 @@ "welcome": "Hoş geldiniz", "welcome_to_immich": "Immich'e hoş geldiniz", "wifi_name": "Wi-Fi Adı", + "workflow": "İş akışı", "wrong_pin_code": "Yanlış PIN kodu", "year": "Yıl", "years_ago": "{years, plural, one {bir yıl} other {# yıl}} önce", diff --git a/i18n/uk.json b/i18n/uk.json index a34e6b8350..3fbdc0daba 100644 --- a/i18n/uk.json +++ b/i18n/uk.json @@ -17,7 +17,6 @@ "add_birthday": "Додати день народження", "add_endpoint": "Додати адресу серверу", "add_exclusion_pattern": "Додати шаблон виключення", - "add_import_path": "Додати шлях імпорту", "add_location": "Додати місцезнаходження", "add_more_users": "Додати користувачів", "add_partner": "Додати партнера", @@ -32,6 +31,7 @@ "add_to_album_toggle": "Перемикання вибору для {album}", "add_to_albums": "Додати до альбомів", "add_to_albums_count": "Додати до альбомів ({count})", + "add_to_bottom_bar": "Додати до", "add_to_shared_album": "Додати у спільний альбом", "add_upload_to_stack": "Додати завантаження до стеку", "add_url": "Додати URL", @@ -112,13 +112,17 @@ "jobs_failed": "{jobCount, plural, other {# не вдалося}}", "library_created": "Створена бібліотека: {library}", "library_deleted": "Бібліотеку видалено", - "library_import_path_description": "Вкажіть папку для імпорту. Цю папку, включно з підпапками, буде проскановано на наявність зображень і відео.", + "library_details": "Деталі бібліотеки", + "library_folder_description": "Вкажіть папку для імпорту. Ця папка, включаючи підпапки, буде просканована на наявність зображень та відео.", + "library_remove_exclusion_pattern_prompt": "Ви впевнені, що хочете видалити цей шаблон виключення?", + "library_remove_folder_prompt": "Ви впевнені, що хочете вилучити цю папку імпорту?", "library_scanning": "Періодичне сканування", "library_scanning_description": "Налаштувати періодичне сканування бібліотеки", "library_scanning_enable_description": "Увімкнути періодичне сканування бібліотеки", "library_settings": "Зовнішня бібліотека", "library_settings_description": "Керування налаштуваннями зовнішніх бібліотек", "library_tasks_description": "Сканувати зовнішні бібліотеки на наявність нових і/або змінених ресурсів", + "library_updated": "Оновлена бібліотека", "library_watching_enable_description": "Слідкуйте за змінами файлів у зовнішніх бібліотеках", "library_watching_settings": "Спостереження за бібліотекою [ЕКСПЕРИМЕНТАЛЬНЕ]", "library_watching_settings_description": "Автоматичне спостереження за зміненими файлами", @@ -154,6 +158,18 @@ "machine_learning_min_detection_score_description": "Мінімальний рівень впевненості для виявлення обличчя від 0 до 1. Нижчі значення дозволять виявляти більше облич, але можуть призводити до помилкових виявлень.", "machine_learning_min_recognized_faces": "Мінімум розпізнаних облич", "machine_learning_min_recognized_faces_description": "Мінімальна кількість розпізнаних облич для створення особи. Збільшення цього параметру робить розпізнавання облич точнішим, але може збільшити ризик того, що обличчя не буде призначено особі.", + "machine_learning_ocr": "OCR", + "machine_learning_ocr_description": "Використовуйте машинне навчання для розпізнавання тексту на зображеннях", + "machine_learning_ocr_enabled": "Увімкнути OCR", + "machine_learning_ocr_enabled_description": "Якщо вимкнено, зображення не розпізнаватимуться за допомогою тексту.", + "machine_learning_ocr_max_resolution": "Максимальна роздільна здатність", + "machine_learning_ocr_max_resolution_description": "Розмір попереднього перегляду з роздільною здатністю вище цієї буде змінено зі збереженням співвідношення сторін. Вищі значення точніші, але обробляються довше та використовують більше пам’яті.", + "machine_learning_ocr_min_detection_score": "Мінімальний бал виявлення", + "machine_learning_ocr_min_detection_score_description": "Мінімальний бал достовірності для виявлення тексту становить від 0 до 1. Нижчі значення дозволять виявити більше тексту, але можуть призвести до хибнопозитивних результатів.", + "machine_learning_ocr_min_recognition_score": "Мінімальний бал розпізнавання", + "machine_learning_ocr_min_score_recognition_description": "Мінімальний бал достовірності для розпізнавання виявленого тексту становить від 0 до 1. Нижчі значення розпізнають більше тексту, але можуть призвести до хибнопозитивних результатів.", + "machine_learning_ocr_model": "Модель OCR", + "machine_learning_ocr_model_description": "Серверні моделі точніші за мобільні, але обробляють дані довше та використовують більше пам'яті.", "machine_learning_settings": "Налаштування машинного навчання", "machine_learning_settings_description": "Управління функціями та налаштуваннями машинного навчання", "machine_learning_smart_search": "Розумний пошук", @@ -161,6 +177,10 @@ "machine_learning_smart_search_enabled": "Увімкнути розумний пошук", "machine_learning_smart_search_enabled_description": "Якщо ця функція вимкнена, зображення не будуть кодуватися для розумного пошуку.", "machine_learning_url_description": "URL сервера машинного навчання. Якщо надано більше одного URL, сервери будуть опитуватися по черзі, поки один з них не відповість успішно, у порядку від першого до останнього. Сервери, які не відповідають, будуть тимчасово ігноруватися, поки не з'являться онлайн.", + "maintenance_settings": "Технічне обслуговування", + "maintenance_settings_description": "Переведіть Immich в режим технічного обслуговування.", + "maintenance_start": "Розпочати режим обслуговування", + "maintenance_start_error": "Не вдалося запустити режим обслуговування.", "manage_concurrency": "Керування паралельністю завдань", "manage_log_settings": "Керування налаштуваннями журналу", "map_dark_style": "Темний стиль", @@ -245,6 +265,7 @@ "oauth_storage_quota_default_description": "Квота в GiB, що використовується, коли налаштування не надано.", "oauth_timeout": "Тайм-аут для запитів", "oauth_timeout_description": "Максимальний час очікування відповіді в мілісекундах", + "ocr_job_description": "Використовуйте машинне навчання для розпізнавання тексту на зображеннях", "password_enable_description": "Увійти за електронною поштою та паролем", "password_settings": "Налаштування входу з паролем", "password_settings_description": "Керування налаштуваннями входу за паролем", @@ -417,6 +438,7 @@ "age_months": "Вік {months, plural, one {# місяць} few {# місяці} many {# місяців} other {# місяців}}", "age_year_months": "Вік 1 рік, {months, plural, one {# місяць} few {# місяці} many {# місяців} other {# місяців}}", "age_years": "{years, plural, other {Вік #}}", + "album": "Альбом", "album_added": "Альбом додано", "album_added_notification_setting_description": "Отримувати повідомлення по електронній пошті, коли вас додають до спільного альбому", "album_cover_updated": "Обкладинка альбому оновлена", @@ -462,6 +484,7 @@ "allow_edits": "Дозволити редагування", "allow_public_user_to_download": "Дозволити публічному користувачеві завантажувати файли", "allow_public_user_to_upload": "Дозволити публічним користувачам завантажувати", + "allowed": "Дозволено", "alt_text_qr_code": "Зображення QR-коду", "anti_clockwise": "Проти годинникової стрілки", "api_key": "Ключ API", @@ -669,6 +692,8 @@ "change_password_description": "Це або перший раз, коли ви увійшли в систему, або було зроблено запит на зміну вашого пароля. Будь ласка, введіть новий пароль нижче.", "change_password_form_confirm_password": "Підтвердити пароль", "change_password_form_description": "Привіт, {name},\n\nЦе або ваш перший вхід у систему, або було надіслано запит на зміну пароля. Будь ласка, введіть новий пароль нижче.", + "change_password_form_log_out": "Вийдіть із системи на всіх інших пристроях", + "change_password_form_log_out_description": "Рекомендується вийти з усіх інших пристроїв", "change_password_form_new_password": "Новий пароль", "change_password_form_password_mismatch": "Паролі не співпадають", "change_password_form_reenter_new_password": "Повторіть новий пароль", @@ -776,6 +801,7 @@ "daily_title_text_date_year": "Е, МММ дд, рррр", "dark": "Темна", "dark_theme": "Увімкнути темну тему", + "date": "Дата", "date_after": "Дата після", "date_and_time": "Дата і час", "date_before": "Дата до", @@ -878,8 +904,6 @@ "edit_description_prompt": "Будь ласка, виберіть новий опис:", "edit_exclusion_pattern": "Редагувати шаблон виключень", "edit_faces": "Редагування облич", - "edit_import_path": "Змінити шлях імпорту", - "edit_import_paths": "Редагувати шлях імпорту", "edit_key": "Змінити ключ", "edit_link": "Редагувати посилання", "edit_location": "Редагувати місцезнаходження", @@ -951,8 +975,8 @@ "failed_to_stack_assets": "Не вдалося згорнути ресурси", "failed_to_unstack_assets": "Не вдалося розгорнути ресурси", "failed_to_update_notification_status": "Не вдалося оновити статус сповіщення", - "import_path_already_exists": "Цей шлях імпорту вже існує.", "incorrect_email_or_password": "Неправильна адреса електронної пошти або пароль", + "library_folder_already_exists": "Цей шлях імпорту вже існує.", "paths_validation_failed": "{paths, plural, one {# шлях} few {# шляхи} many {# шляхів} other {# шляху}} не пройшло перевірку", "profile_picture_transparent_pixels": "Зображення профілю не може містити прозорих пікселів. Будь ласка, збільшіть масштаб та/або перемістіть зображення.", "quota_higher_than_disk_size": "Ви встановили квоту, що перевищує розмір диска", @@ -961,7 +985,6 @@ "unable_to_add_assets_to_shared_link": "Не вдається додати ресурси до спільного посилання", "unable_to_add_comment": "Неможливо додати коментар", "unable_to_add_exclusion_pattern": "Не вдається додати шаблон виключення", - "unable_to_add_import_path": "Не вдається додати шлях до імпорту", "unable_to_add_partners": "Не вдається додати партнерів", "unable_to_add_remove_archive": "Неможливо {archived, select, true {вилучити ресурс із} other {додати ресурс до}} архіву", "unable_to_add_remove_favorites": "Неможливо {favorite, select, true {додати ресурс до} other {вилучити ресурс із}} обраних", @@ -984,12 +1007,10 @@ "unable_to_delete_asset": "Не вдається видалити ресурс", "unable_to_delete_assets": "Помилка видалення ресурсів", "unable_to_delete_exclusion_pattern": "Не вдалося видалити шаблон виключення", - "unable_to_delete_import_path": "Не вдалося видалити шлях імпорту", "unable_to_delete_shared_link": "Не вдалося видалити спільне посилання", "unable_to_delete_user": "Не вдається видалити користувача", "unable_to_download_files": "Неможливо завантажити файли", "unable_to_edit_exclusion_pattern": "Не вдалося редагувати шаблон виключення", - "unable_to_edit_import_path": "Неможливо відредагувати шлях імпорту", "unable_to_empty_trash": "Неможливо очистити кошик", "unable_to_enter_fullscreen": "Неможливо увійти в повноекранний режим", "unable_to_exit_fullscreen": "Неможливо вийти з повноекранного режиму", @@ -1040,6 +1061,7 @@ "unable_to_update_user": "Неможливо оновити дані користувача", "unable_to_upload_file": "Не вдалося завантажити файл" }, + "exclusion_pattern": "Шаблон виключення", "exif": "Exif'", "exif_bottom_sheet_description": "Додати опис...", "exif_bottom_sheet_description_error": "Помилка під час оновлення опису", @@ -1084,6 +1106,7 @@ "features_setting_description": "Керування додатковими можливостями застосунку", "file_name": "Ім'я файлу", "file_name_or_extension": "Ім'я файлу або розширення", + "file_size": "Розмір файлу", "filename": "Ім'я файлу", "filetype": "Тип файлу", "filter": "Фільтр", @@ -1098,6 +1121,7 @@ "folders_feature_description": "Перегляд перегляду папок для фотографій і відео у файловій системі", "forgot_pin_code_question": "Забули свій PIN-код?", "forward": "Переслати", + "full_path": "Повний шлях: {path}", "gcast_enabled": "Google Cast'", "gcast_enabled_description": "Ця функція завантажує зовнішні ресурси з Google для своєї роботи.", "general": "Загальні", @@ -1134,6 +1158,7 @@ "hide_named_person": "Приховати {name}", "hide_password": "Приховати пароль", "hide_person": "Приховати людину", + "hide_text_recognition": "Приховати розпізнавання тексту", "hide_unnamed_people": "Приховати людей без ім'я", "home_page_add_to_album_conflicts": "Додано {added} елементів у альбом {album}. {failed} елементів вже було в альбомі.", "home_page_add_to_album_err_local": "Неможливо додати локальні елементи до альбомів, пропущено", @@ -1179,6 +1204,8 @@ "import_path": "Шлях імпорту", "in_albums": "У {count, plural, one {# альбомі} other {# альбомах}}", "in_archive": "В архіві", + "in_year": "У {year}", + "in_year_selector": "У", "include_archived": "Відображати архів", "include_shared_albums": "Включити спільні альбоми", "include_shared_partner_assets": "Включайте спільні партнерські ресурси", @@ -1215,6 +1242,7 @@ "language_setting_description": "Виберіть мову, якій ви надаєте перевагу", "large_files": "Великі файли", "last": "Останній", + "last_months": "{count, plural, one {Минулого місяця} other {Останні # місяці}}", "last_seen": "Востаннє бачили", "latest_version": "Остання версія", "latitude": "Широта", @@ -1224,6 +1252,8 @@ "let_others_respond": "Дозволити іншим відповідати", "level": "Рівень", "library": "Бібліотека", + "library_add_folder": "Додати папку", + "library_edit_folder": "Редагувати папку", "library_options": "Параметри бібліотеки", "library_page_device_albums": "Альбоми на пристрої", "library_page_new_album": "Новий альбом", @@ -1247,6 +1277,7 @@ "local_media_summary": "Зведення місцевих ЗМІ", "local_network": "Локальна мережа", "local_network_sheet_info": "Застосунок підключатиметься до сервера через цей URL, коли використовується вказана Wi-Fi мережа", + "location": "Розташування", "location_permission": "Дозвіл до місцезнаходження", "location_permission_content": "Щоб перемикати мережі у фоновому режимі, Immich має завжди мати доступ до точної геолокації, щоб зчитувати назву Wi-Fi мережі", "location_picker_choose_on_map": "Обрати на мапі", @@ -1294,8 +1325,17 @@ "loop_videos_description": "Увімкнути циклічне відтворення відео.", "main_branch_warning": "Ви використовуєте версію для розробників; настійно рекомендуємо використовувати релізну версію!", "main_menu": "Головне меню", + "maintenance_description": "Immich переведено в режим технічного обслуговування.", + "maintenance_end": "Завершити режим технічного обслуговування", + "maintenance_end_error": "Не вдалося завершити режим обслуговування.", + "maintenance_logged_in_as": "Наразі ви ввійшли як {user}", + "maintenance_title": "Тимчасово недоступно", "make": "Виробник", "manage_geolocation": "Керувати місцезнаходженням", + "manage_media_access_rationale": "Цей дозвіл потрібен для належного переміщення ресурсів до кошика та їх відновлення з нього.", + "manage_media_access_settings": "Відкрити налаштування", + "manage_media_access_subtitle": "Дозвольте програмі Immich керувати медіафайлами та переміщувати їх.", + "manage_media_access_title": "Доступ до керування медіа", "manage_shared_links": "Керування спільними посиланнями", "manage_sharing_with_partners": "Керуйте спільним використанням з партнерами", "manage_the_app_settings": "Керування налаштуваннями програми", @@ -1359,6 +1399,7 @@ "more": "Більше", "move": "Перемістити", "move_off_locked_folder": "Вийти з особистої папки", + "move_to": "Перемістити до", "move_to_lock_folder_action_prompt": "{count} додано до захищеної теки", "move_to_locked_folder": "Перемістити до особистої папки", "move_to_locked_folder_confirmation": "Ці фото та відео буде видалено зі всіх альбомів і їх можна буде переглядати лише в особистій папці", @@ -1388,6 +1429,7 @@ "new_pin_code": "Новий PIN-код", "new_pin_code_subtitle": "Ви вперше отримуєте доступ до особистої папки. Створіть PIN-код для безпечного доступу до цієї сторінки", "new_timeline": "Нова хронологія", + "new_update": "Нове оновлення", "new_user_created": "Створено нового користувача", "new_version_available": "ДОСТУПНА НОВА ВЕРСІЯ", "newest_first": "Спочатку нові", @@ -1403,12 +1445,14 @@ "no_cast_devices_found": "Пристрої для трансляції не знайдено", "no_checksum_local": "Контрольна сума недоступна – неможливо отримати локальні ресурси", "no_checksum_remote": "Контрольна сума недоступна – неможливо отримати віддалений ресурс", + "no_devices": "Немає авторизованих пристроїв", "no_duplicates_found": "Дублікатів не виявлено.", "no_exif_info_available": "Відсутня інформація про exif", "no_explore_results_message": "Завантажуйте більше фотографій, щоб насолоджуватися вашою колекцією.", "no_favorites_message": "Додавайте улюблені файли, щоб швидко знаходити ваші найкращі зображення та відео", "no_libraries_message": "Створіть зовнішню бібліотеку для перегляду фотографій і відео", "no_local_assets_found": "З цією контрольною сумою не знайдено локальних ресурсів", + "no_location_set": "Місцезнаходження не встановлено", "no_locked_photos_message": "Фото та відео в особистій папці приховані і не відображаються під час перегляду чи пошуку у вашій бібліотеці.", "no_name": "Без імені", "no_notifications": "Немає сповіщень", @@ -1419,6 +1463,7 @@ "no_results_description": "Спробуйте використовувати синонім або більш загальне ключове слово", "no_shared_albums_message": "Створіть альбом, щоб ділитися фотографіями та відео з людьми у вашій мережі", "no_uploads_in_progress": "Немає активних завантажень", + "not_allowed": "Не дозволено", "not_available": "Немає даних", "not_in_any_album": "У жодному альбомі", "not_selected": "Не вибрано", @@ -1435,6 +1480,7 @@ "oauth": "OAuth", "obtainium_configurator": "Конфігуратор Obtainium", "obtainium_configurator_instructions": "Використовуйте Obtainium для встановлення та оновлення програми Android безпосередньо з релізу Immich на GitHub. Створіть ключ API та виберіть варіант, щоб створити посилання на конфігурацію Obtainium", + "ocr": "OCR", "official_immich_resources": "Офіційні ресурси Immich", "offline": "Офлайн", "offset": "Зсув", @@ -1528,6 +1574,8 @@ "photos_count": "{count, plural, one {{count, number} Фотографія} few {{count, number} Фотографії} many {{count, number} Фотографій} other {{count, number} Фотографій}}", "photos_from_previous_years": "Фотографії минулих років у цей день", "pick_a_location": "Виберіть місце розташування", + "pick_custom_range": "Користувацький діапазон", + "pick_date_range": "Виберіть діапазон дат", "pin_code_changed_successfully": "PIN-код успішно змінено", "pin_code_reset_successfully": "PIN-код успішно скинуто", "pin_code_setup_successfully": "PIN-код успішно налаштовано", @@ -1678,6 +1726,7 @@ "reset_sqlite_confirmation": "Ви впевнені, що хочете очистити базу даних SQLite? Після цього потрібно буде вийти з акаунта та увійти знову для повторної синхронізації даних", "reset_sqlite_success": "Базу даних SQLite успішно очищено", "reset_to_default": "Скидання до налаштувань за замовчуванням", + "resolution": "Роздільна Здатність", "resolve_duplicates": "Усунути дублікати", "resolved_all_duplicates": "Усі дублікати усунуто", "restore": "Відновити", @@ -1696,6 +1745,7 @@ "running": "Виконується", "save": "Зберегти", "save_to_gallery": "Зберегти в галерею", + "saved": "Збережено", "saved_api_key": "Збережені ключі API", "saved_profile": "Профіль збережено", "saved_settings": "Налаштування збережено", @@ -1712,6 +1762,8 @@ "search_by_description_example": "Похідний день у Сапі", "search_by_filename": "Пошук за назвою або розширенням файлу", "search_by_filename_example": "Наприклад, IMG_1234.JPG або PNG", + "search_by_ocr": "Пошук за OCR", + "search_by_ocr_example": "Латте", "search_camera_lens_model": "Пошук моделі об’єктива…", "search_camera_make": "Пошук виробника камери...", "search_camera_model": "Пошук моделі камери...", @@ -1729,6 +1781,7 @@ "search_filter_location_title": "Виберіть місцезнаходження", "search_filter_media_type": "Тип медіа", "search_filter_media_type_title": "Виберіть тип медіа", + "search_filter_ocr": "Пошук за OCR", "search_filter_people_title": "Виберіть людей", "search_for": "Шукати для", "search_for_existing_person": "Пошук існуючої особи", @@ -1790,6 +1843,8 @@ "server_offline": "Сервер офлайн", "server_online": "Сервер онлайн", "server_privacy": "Конфіденційність сервера", + "server_restarting_description": "Ця сторінка оновиться миттєво.", + "server_restarting_title": "Сервер перезавантажується", "server_stats": "Статистика сервера", "server_update_available": "Оновлення сервера доступне", "server_version": "Версія сервера", @@ -1913,6 +1968,7 @@ "show_slideshow_transition": "Показати перехід слайд-шоу", "show_supporter_badge": "Значок підтримки", "show_supporter_badge_description": "Показати значок підтримки", + "show_text_recognition": "Показати розпізнавання тексту", "show_text_search_menu": "Показати меню текстового пошуку", "shuffle": "Перемішати", "sidebar": "Бічна панель", @@ -1983,6 +2039,7 @@ "tags": "Теги", "tap_to_run_job": "Торкніться, щоб запустити завдання", "template": "Шаблон", + "text_recognition": "Розпізнавання тексту", "theme": "Тема", "theme_selection": "Вибір теми", "theme_selection_description": "Автоматично встановлювати тему на світлу або темну залежно від системних налаштувань вашого браузера", @@ -2001,7 +2058,9 @@ "theme_setting_three_stage_loading_title": "Увімкнути триетапне завантаження", "they_will_be_merged_together": "Вони будуть об'єднані разом", "third_party_resources": "Ресурси третіх сторін", + "time": "Час", "time_based_memories": "Спогади, що базуються на часі", + "time_based_memories_duration": "Кількість секунд для відображення кожного зображення.", "timeline": "Хронологія", "timezone": "Часовий пояс", "to_archive": "Архів", @@ -2142,6 +2201,7 @@ "welcome": "Ласкаво просимо", "welcome_to_immich": "Ласкаво просимо до Immich", "wifi_name": "Назва Wi-Fi", + "workflow": "Робочий процес", "wrong_pin_code": "Неправильний PIN-код", "year": "Рік", "years_ago": "{years, plural, one {# рік} few {# роки} many {# років} other {# років}} тому", diff --git a/i18n/ur.json b/i18n/ur.json index 357d0b6304..6d6c5232e9 100644 --- a/i18n/ur.json +++ b/i18n/ur.json @@ -17,7 +17,6 @@ "add_birthday": "سالگرہ شامل کریں", "add_endpoint": "اینڈ پوائنٹ درج کریں", "add_exclusion_pattern": "خارج کرنے کا نمونہ شامل کریں", - "add_import_path": "درآمد کا راستہ شامل کریں", "add_location": "جگہ درج کریں", "add_more_users": "مزید صارفین شامل کریں", "add_partner": "ساتھی شامل کریں", diff --git a/i18n/vi.json b/i18n/vi.json index ad584d7155..00c46a5baf 100644 --- a/i18n/vi.json +++ b/i18n/vi.json @@ -8,7 +8,7 @@ "actions": "hành động", "active": "Đang hoạt động", "activity": "Hoạt động", - "activity_changed": "Hoạt động đã được {enabled, select, true {bật} other {tắt}}", + "activity_changed": "Hoạt động đã được {bật, chọn, bật khác {tắt}}", "add": "Thêm", "add_a_description": "Thêm mô tả", "add_a_location": "Thêm địa điểm", @@ -17,7 +17,6 @@ "add_birthday": "Thêm ngày sinh", "add_endpoint": "Thêm endpoint", "add_exclusion_pattern": "Thêm quy tắc loại trừ", - "add_import_path": "Thêm đường dẫn nhập", "add_location": "Thêm địa điểm", "add_more_users": "Thêm người dùng", "add_partner": "Thêm người thân", @@ -31,6 +30,7 @@ "add_to_album_toggle": "Bật tắt tùy chọn cho {album}", "add_to_albums": "Thêm vào albums", "add_to_albums_count": "Đã thêm {count} vào albums", + "add_to_bottom_bar": "Thêm vào", "add_to_shared_album": "Thêm vào album chia sẻ", "add_url": "Thêm URL", "added_to_archive": "Đã lưu trữ", @@ -48,6 +48,9 @@ "backup_database": "Tạo bản sao lưu CSDL", "backup_database_enable_description": "Bật sao lưu cơ sở dữ liệu", "backup_keep_last_amount": "Số lượng các bản sao lưu CSDL trước đó được giữ lại", + "backup_onboarding_footer": "Để biết thêm thông tin về sao lưu Immich, hãy xem hướng dẫn.", + "backup_onboarding_parts_title": "Phương pháp sao lưu 3-2-1 bao gồm:", + "backup_onboarding_title": "Sao lưu", "backup_settings": "Cài đặt sao lưu cơ sở dữ liệu", "backup_settings_description": "Quản lý cài đặt sao lưu CSDL.", "cleared_jobs": "Đã xoá các tác vụ: {job}", @@ -103,7 +106,6 @@ "jobs_failed": "{jobCount, plural, other {# tác vụ bị thất bại}}", "library_created": "Đã tạo thư viện: {library}", "library_deleted": "Thư viện đã bị xoá", - "library_import_path_description": "Chọn thư mục để nhập. Ứng dụng sẽ quét tất cả hình ảnh và video trong thư mục này bao gồm các thư mục con.", "library_scanning": "Quét định kỳ", "library_scanning_description": "Cấu hình quét thư viện định kỳ", "library_scanning_enable_description": "Bật quét thư viện định kỳ", @@ -116,6 +118,7 @@ "logging_enable_description": "Bật ghi nhật ký", "logging_level_description": "Khi được bật, thiết lập mức ghi nhật ký.", "logging_settings": "Ghi nhật ký", + "machine_learning_availability_checks_description": "Tự động phát hiện và ưu tiên máy chủ học máy khả dụng", "machine_learning_clip_model": "Mô hình CLIP", "machine_learning_clip_model_description": "Tên của mô hình CLIP được liệt kê tại đây. Bạn cần chạy lại tác vụ \"Tìm kiếm thông minh\" cho tất cả hình ảnh sau khi thay đổi mô hình.", "machine_learning_duplicate_detection": "Phát hiện Trùng lặp", @@ -138,6 +141,12 @@ "machine_learning_min_detection_score_description": "Mức điểm tin cậy tối thiểu để phát hiện khuôn mặt, từ 0 đến 1. Giá trị càng thấp, nhiều khuôn mặt sẽ được phát hiện nhưng có thể tăng khả năng phát hiện sai.", "machine_learning_min_recognized_faces": "Số khuôn mặt tối thiểu để nhận dạng", "machine_learning_min_recognized_faces_description": "Số khuôn mặt tối thiểu cần nhận dạng để tạo thành một người. Tăng số lượng này sẽ làm cho Nhận dạng khuôn mặt chính xác hơn, nhưng sẽ tăng khả năng một khuôn mặt không được gán cho người phù hợp.", + "machine_learning_ocr_description": "Dùng học máy để nhận diện chữ trong ảnh", + "machine_learning_ocr_enabled": "Bật OCR", + "machine_learning_ocr_enabled_description": "Nếu tắt, chữ viết trong ảnh sẽ không được nhận diện.", + "machine_learning_ocr_max_resolution": "Độ phân giải tối đa", + "machine_learning_ocr_min_detection_score_description": "Mức điểm tin cậy tối thiểu để phát hiện chữ viết, từ 0 đến 1. Giá trị càng thấp, càng nhiều chữ viết sẽ được phát hiện nhưng có thể tăng khả năng phát hiện sai (dương tính giả).", + "machine_learning_ocr_model": "Mô hình OCR", "machine_learning_settings": "Cài đặt Học máy", "machine_learning_settings_description": "Quản lý các tính năng và cài đặt học máy", "machine_learning_smart_search": "Tìm kiếm Thông minh", @@ -170,6 +179,9 @@ "metadata_settings_description": "Quản lý cài đặt Metadata", "migration_job": "Di chuyển dữ liệu", "migration_job_description": "Di chuyển hình thu nhỏ của các ảnh và khuôn mặt sang cấu trúc thư mục mới", + "nightly_tasks_cluster_faces_setting_description": "Chạy nhận diện khuôn mặt trên những khuôn mặt mới được phát hiện", + "nightly_tasks_settings": "Cài đặt các nhiệm vụ hàng đêm", + "nightly_tasks_settings_description": "Quản lý các nhiệm vụ hàng đêm", "no_paths_added": "Không có đường dẫn nào được thêm vào", "no_pattern_added": "Không có quy tắc nào được thêm vào", "note_apply_storage_label_previous_assets": "Lưu ý: Để áp dụng Nhãn lưu trữ cho nội dung đã tải lên trước đó, hãy chạy", @@ -367,6 +379,7 @@ "advanced_settings_prefer_remote_title": "Ưu tiên ảnh từ máy chủ", "advanced_settings_proxy_headers_subtitle": "Xác định các tiêu đề proxy Immich sẽ gửi kèm mỗi yêu cầu mạng", "advanced_settings_proxy_headers_title": "Tiêu đề proxy", + "advanced_settings_readonly_mode_title": "Chế độ chỉ đọc", "advanced_settings_self_signed_ssl_subtitle": "Bỏ qua xác minh chứng chỉ SSL cho máy chủ cuối. Yêu cầu cho chứng chỉ tự ký.", "advanced_settings_self_signed_ssl_title": "Cho phép chứng chỉ SSL tự ký", "advanced_settings_sync_remote_deletions_subtitle": "Tự động xóa hoặc khôi phục dữ liệu trên thiết bị này khi bạn thao tác trên web", @@ -547,6 +560,7 @@ "backup_controller_page_turn_on": "Bật sao lưu khi mở ứng dụng", "backup_controller_page_uploading_file_info": "Thông tin tệp đang tải lên", "backup_err_only_album": "Không thể xóa album duy nhất", + "backup_error_sync_failed": "Đồng bộ thất bại. Không thể tiến hành sao lưu.", "backup_info_card_assets": "ảnh", "backup_manual_cancelled": "Đã hủy", "backup_manual_in_progress": "Đang tải lên. Vui lòng thử lại sau", @@ -715,6 +729,7 @@ "date_of_birth_saved": "Ngày sinh đã được lưu thành công", "date_range": "Khoảng thời gian", "day": "Ngày", + "days": "Ngày", "deduplicate_all": "Xóa tất cả mục trùng lặp", "deduplication_criteria_1": "Kích thước hình ảnh theo byte", "deduplication_criteria_2": "Số lượng dữ liệu EXIF", @@ -797,8 +812,6 @@ "edit_description_prompt": "Vui lòng chọn một mô tả mới:", "edit_exclusion_pattern": "Chỉnh sửa quy tắc loại trừ", "edit_faces": "Chỉnh sửa khuôn mặt", - "edit_import_path": "Chỉnh sửa đường dẫn nhập", - "edit_import_paths": "Chỉnh sửa các đường dẫn nhập", "edit_key": "Chỉnh sửa khóa", "edit_link": "Chỉnh sửa liên kết", "edit_location": "Chỉnh sửa vị trí", @@ -865,7 +878,6 @@ "failed_to_stack_assets": "Không thể nhóm các ảnh", "failed_to_unstack_assets": "Không thể huỷ xếp nhóm các ảnh", "failed_to_update_notification_status": "Cập nhật trạng thái thông báo thất bại", - "import_path_already_exists": "Đường dẫn nhập này đã tồn tại.", "incorrect_email_or_password": "Email hoặc mật khẩu không chính xác", "paths_validation_failed": "{paths, plural, one {# đường dẫn} other {# đường dẫn}} không hợp lệ", "profile_picture_transparent_pixels": "Ảnh đại diện không thể có điểm ảnh trong suốt. Vui lòng phóng to và/hoặc di chuyển hình ảnh.", @@ -874,7 +886,6 @@ "unable_to_add_assets_to_shared_link": "Không thể thêm ảnh vào liên kết chia sẻ", "unable_to_add_comment": "Không thể thêm bình luận", "unable_to_add_exclusion_pattern": "Không thể thêm quy tắc loại trừ", - "unable_to_add_import_path": "Không thể thêm đường dẫn nhập", "unable_to_add_partners": "Không thể thêm người thân", "unable_to_add_remove_archive": "Không thể {archived, select, true {xóa ảnh khỏi} other {thêm ảnh vào}} Kho lưu trữ", "unable_to_add_remove_favorites": "Không thể {favorite, select, true {thêm ảnh vào} other {xóa ảnh khỏi}} Mục yêu thích", @@ -897,12 +908,10 @@ "unable_to_delete_asset": "Không thể xóa ảnh", "unable_to_delete_assets": "Lỗi khi xóa các ảnh", "unable_to_delete_exclusion_pattern": "Không thể xóa quy tắc loại trừ", - "unable_to_delete_import_path": "Không thể xóa đường dẫn nhập", "unable_to_delete_shared_link": "Không thể xóa liên kết chia sẻ", "unable_to_delete_user": "Không thể xóa người dùng", "unable_to_download_files": "Không thể tải xuống tập tin", "unable_to_edit_exclusion_pattern": "Không thể chỉnh sửa quy tắc loại trừ", - "unable_to_edit_import_path": "Không thể chỉnh sửa đường dẫn nhập", "unable_to_empty_trash": "Không thể dọn sạch thùng rác", "unable_to_enter_fullscreen": "Không thể vào chế độ toàn màn hình", "unable_to_exit_fullscreen": "Không thể thoát chế độ toàn màn hình", @@ -1002,6 +1011,7 @@ "folder_not_found": "Không tìm thấy thư mục", "folders": "Thư mục", "folders_feature_description": "Duyệt ảnh và video theo thư mục trên hệ thống tập tin", + "forgot_pin_code_question": "Quên mã PIN của bạn?", "forward": "Tiến về phía trước", "gcast_enabled": "Google Cast", "gcast_enabled_description": "Tính năng này tải các tài nguyên bên ngoài từ Google để hoạt động.", @@ -1052,6 +1062,7 @@ "home_page_upload_err_limit": "Chỉ có thể tải lên tối đa 30 ảnh cùng một lúc, bỏ qua", "host": "Máy chủ", "hour": "Giờ", + "hours": "Giờ", "id": "ID", "ignore_icloud_photos": "Bỏ qua ảnh iCloud", "ignore_icloud_photos_description": "Ảnh được lưu trữ trên iCloud sẽ không được tải lên máy chủ Immich", @@ -1110,6 +1121,7 @@ "language_no_results_title": "Không tìm thấy ngôn ngữ", "language_search_hint": "Tìm kiếm ngôn ngữ...", "language_setting_description": "Chọn ngôn ngữ ưa thích của bạn", + "large_files": "Tệp lớn", "last_seen": "Lần cuối nhìn thấy", "latest_version": "Phiên bản mới nhất", "latitude": "Vĩ độ", @@ -1118,6 +1130,8 @@ "let_others_respond": "Cho phép bình luận", "level": "Cấp độ", "library": "Thư viện", + "library_add_folder": "Thêm thư mục", + "library_edit_folder": "Sửa thư mục", "library_options": "Tùy chọn thư viện", "library_page_device_albums": "Album trên thiết bị", "library_page_new_album": "Album mới", @@ -1127,6 +1141,7 @@ "library_page_sort_title": "Tiêu đề album", "licenses": "Giấy phép", "light": "Sáng", + "like": "Thích", "like_deleted": "Đã xoá thích", "link_motion_video": "Liên kết video chuyển động", "link_to_oauth": "Liên kết đến OAuth", @@ -1136,6 +1151,7 @@ "loading_search_results_failed": "Tải kết quả tìm kiếm không thành công", "local_network": "Mạng nội bộ", "local_network_sheet_info": "Ứng dụng sẽ kết nối với máy chủ qua URL này khi sử dụng mạng Wi-Fi được chỉ định", + "location": "Địa điểm", "location_permission": "Quyền truy cập vị trí", "location_permission_content": "Để sử dụng tính năng tự động chuyển đổi, Immich cần có quyền vị trí chính xác để có thể đọc tên của mạng Wi-Fi hiện tại", "location_picker_choose_on_map": "Chọn trên bản đồ", @@ -1180,7 +1196,9 @@ "loop_videos_description": "Bật để video tự động lặp lại trong trình xem chi tiết.", "main_branch_warning": "Bạn đang dùng phiên bản đang phát triển; chúng tôi khuyên bạn nên dùng phiên bản phát hành!", "main_menu": "Menu chính", + "maintenance_title": "Tạm thời không khả dụng", "make": "Thương hiệu", + "manage_geolocation": "Quản lý địa điểm", "manage_shared_links": "Quản lý liên kết chia sẻ", "manage_sharing_with_partners": "Quản lý chia sẻ với người thân", "manage_the_app_settings": "Quản lý cài đặt ứng dụng", @@ -1264,6 +1282,7 @@ "new_person": "Người mới", "new_pin_code": "Mã PIN mới", "new_pin_code_subtitle": "Đây là lần đầu bạn vào thư mục Khóa. Hãy tạo mã PIN để truy cập an toàn", + "new_update": "Cập nhật mới", "new_user_created": "Người dùng mới đã được tạo", "new_version_available": "CÓ PHIÊN BẢN MỚI", "newest_first": "Mới nhất trước", @@ -1281,6 +1300,7 @@ "no_explore_results_message": "Tải thêm ảnh lên để khám phá bộ sưu tập của bạn.", "no_favorites_message": "Thêm ảnh yêu thích để nhanh chóng tìm thấy những bức ảnh và video đẹp nhất của bạn", "no_libraries_message": "Tạo một thư viện bên ngoài để xem ảnh và video của bạn", + "no_location_set": "Chưa có địa điểm được đặt", "no_locked_photos_message": "Ảnh và video trong thư mục Khóa sẽ được ẩn đi và không hiển thị khi bạn duyệt hay tìm kiếm trong thư viện.", "no_name": "Không có tên", "no_notifications": "Không có thông báo", @@ -1289,6 +1309,7 @@ "no_results": "Không có kết quả", "no_results_description": "Thử một từ đồng nghĩa hoặc từ khóa tổng quát hơn", "no_shared_albums_message": "Tạo một album để chia sẻ ảnh và video với mọi người trong mạng của bạn", + "not_available": "Thiếu", "not_in_any_album": "Không thuộc album nào", "not_selected": "Không được chọn", "note_apply_storage_label_to_previously_uploaded assets": "Lưu ý: Để áp dụng Nhãn lưu trữ cho các ảnh đã tải lên trước đó, hãy chạy", @@ -1304,6 +1325,7 @@ "oauth": "OAuth", "official_immich_resources": "Tài nguyên chính thức của Immich", "offline": "Ngoại tuyến", + "offset": "Độ lệch", "ok": "Đồng ý", "oldest_first": "Cũ nhất trước", "on_this_device": "Trên máy này", @@ -1516,6 +1538,7 @@ "reset_password": "Đặt lại mật khẩu", "reset_people_visibility": "Đặt lại trạng thái hiển thị của mọi người", "reset_pin_code": "Đặt lại mã PIN", + "reset_pin_code_with_password": "Bạn luôn có thể đặt lại mã PIN của bạn bằng mật khẩu của bạn", "reset_to_default": "Đặt lại về mặc định", "resolve_duplicates": "Xử lý các bản trùng lặp", "resolved_all_duplicates": "Đã xử lý tất cả các bản trùng lặp", @@ -1623,6 +1646,7 @@ "server_offline": "Máy chủ ngoại tuyến", "server_online": "Phiên bản", "server_privacy": "Quyền riêng tư máy chủ", + "server_restarting_title": "Máy chủ đang khởi động lại", "server_stats": "Thống kê máy chủ", "server_version": "Phiên bản máy chủ", "set": "Đặt", @@ -1790,6 +1814,7 @@ "sync": "Đồng bộ", "sync_albums": "Đồng bộ album", "sync_albums_manual_subtitle": "Đồng bộ hóa tất cả video và ảnh đã tải lên vào album sao lưu đã chọn", + "sync_status_subtitle": "Xem và quản lý hệ thống đồng bộ", "sync_upload_album_setting_subtitle": "Tạo và tải lên ảnh và video của bạn vào album đã chọn trên Immich", "tag": "Thẻ", "tag_assets": "Gắn thẻ", @@ -1877,6 +1902,7 @@ "upload_dialog_info": "Bạn có muốn sao lưu những mục đã chọn tới máy chủ không?", "upload_dialog_title": "Tải lên ảnh", "upload_errors": "Tải lên đã hoàn tất với {count, plural, one {# lỗi} other {# lỗi}}, làm mới trang để xem các ảnh mới tải lên.", + "upload_finished": "Đã hoàn tất tải lên", "upload_progress": "Còn lại {remaining, number} - Đã xử lý {processed, number}/{total, number}", "upload_skipped_duplicates": "Đã bỏ qua {count, plural, one {# mục trùng lặp} other {# mục trùng lặp}}", "upload_status_duplicates": "Mục trùng lặp", @@ -1923,6 +1949,7 @@ "view_album": "Xem Album", "view_all": "Xem tất cả", "view_all_users": "Xem tất cả người dùng", + "view_details": "Xem thông tin chi tiết", "view_in_timeline": "Xem trong dòng thời gian", "view_link": "Xem liên kết", "view_links": "Xem các liên kết", @@ -1930,6 +1957,7 @@ "view_next_asset": "Xem ảnh tiếp theo", "view_previous_asset": "Xem ảnh trước đó", "view_qr_code": "Xem mã QR", + "view_similar_photos": "Xem ảnh tương tự", "view_stack": "Xem nhóm ảnh", "view_user": "Xem Người dùng", "viewer_remove_from_stack": "Xoá khỏi nhóm", diff --git a/i18n/zh_Hant.json b/i18n/zh_Hant.json index 8baeaec7d8..ca066bedb3 100644 --- a/i18n/zh_Hant.json +++ b/i18n/zh_Hant.json @@ -17,7 +17,6 @@ "add_birthday": "新增生日", "add_endpoint": "新增端點", "add_exclusion_pattern": "加入篩選條件", - "add_import_path": "新增匯入路徑", "add_location": "新增地點", "add_more_users": "新增其他使用者", "add_partner": "新增親朋好友", @@ -32,6 +31,7 @@ "add_to_album_toggle": "選擇相簿{album}", "add_to_albums": "加入相簿", "add_to_albums_count": "將 ({count}) 個項目加入相簿", + "add_to_bottom_bar": "新增到", "add_to_shared_album": "加到共享相簿", "add_upload_to_stack": "新增上傳到堆疊", "add_url": "新增 URL", @@ -112,7 +112,6 @@ "jobs_failed": "{jobCount, plural, other {# 項任務已失敗}}", "library_created": "已建立媒體庫:{library}", "library_deleted": "媒體庫已刪除", - "library_import_path_description": "指定要匯入的資料夾。系統會掃描此資料夾及其子資料夾中的所有影像與影片。", "library_scanning": "定期掃描", "library_scanning_description": "定期媒體庫掃描設定", "library_scanning_enable_description": "啟用媒體庫定期掃描", @@ -156,6 +155,16 @@ "machine_learning_min_recognized_faces_description": "建立新人物所需的最低已辨識臉孔數量。提高此數值可讓臉孔辨識更精確,但同時會增加臉孔未被指派給任何人物的可能性。", "machine_learning_ocr": "文字辨識(OCR)", "machine_learning_ocr_description": "使用機器學習來識別圖片中的文字", + "machine_learning_ocr_enabled": "啟用OCR", + "machine_learning_ocr_enabled_description": "如果禁用,影像將不會進行文字識別。", + "machine_learning_ocr_max_resolution": "最大分辯率", + "machine_learning_ocr_max_resolution_description": "高於此分辯率的預覽將調整大小,同時保持縱橫比。 更高的值更準確,但處理時間更長,佔用更多記憶體。", + "machine_learning_ocr_min_detection_score": "最低檢測分數", + "machine_learning_ocr_min_detection_score_description": "要檢測的文字的最小置信度分數為0-1。 較低的值將檢測到更多的文字,但可能會導致誤報。", + "machine_learning_ocr_min_recognition_score": "最低識別分數", + "machine_learning_ocr_min_score_recognition_description": "檢測到的文字的最小置信度得分為0-1。 較低的值將識別更多的文字,但可能會導致誤報。", + "machine_learning_ocr_model": "OCR模型", + "machine_learning_ocr_model_description": "服務器模型比移動模型更準確,但需要更長的時間來處理和使用更多的記憶體。", "machine_learning_settings": "機器學習設定", "machine_learning_settings_description": "管理機器學習的功能和設定", "machine_learning_smart_search": "智慧搜尋", @@ -163,6 +172,10 @@ "machine_learning_smart_search_enabled": "啟用智慧搜尋", "machine_learning_smart_search_enabled_description": "如果停用,影像將不會被編碼以進行智慧搜尋。", "machine_learning_url_description": "機器學習伺服器的 URL。若提供多個 URL,系統會依序逐一嘗試,直到其中一臺成功回應為止(由前到後)。未回應的伺服器將被暫時忽略,直到其重新上線。", + "maintenance_settings": "維護", + "maintenance_settings_description": "將Immich置於維護模式。", + "maintenance_start": "啟動維護模式", + "maintenance_start_error": "啟動維護模式失敗。", "manage_concurrency": "管理併發", "manage_log_settings": "管理日誌設定", "map_dark_style": "深色樣式", @@ -247,7 +260,7 @@ "oauth_storage_quota_default_description": "未提供宣告時所使用的配額(GiB)。", "oauth_timeout": "請求逾時", "oauth_timeout_description": "請求的逾時時間(毫秒)", - "ocr_job_description": "使用機器學習來識別圖像中的文字", + "ocr_job_description": "使用機器學習來識別圖片中的文字", "password_enable_description": "使用電子郵件和密碼登入", "password_settings": "密碼登入", "password_settings_description": "管理密碼登入設定", @@ -420,6 +433,7 @@ "age_months": "{months, plural, one {# 個月} other {# 個月}}", "age_year_months": "1 歲,{months, plural, one {# 個月} other {# 個月}}", "age_years": "{years, plural, other {# 歲}}", + "album": "相簿", "album_added": "被加入到相簿", "album_added_notification_setting_description": "當我被加入共享相簿時,用電子郵件通知我", "album_cover_updated": "已更新相簿封面", @@ -465,6 +479,7 @@ "allow_edits": "允許編輯", "allow_public_user_to_download": "允許公開使用者下載", "allow_public_user_to_upload": "允許公開使用者上傳", + "allowed": "允許", "alt_text_qr_code": "QR code 圖片", "anti_clockwise": "逆時針", "api_key": "API 金鑰", @@ -672,6 +687,8 @@ "change_password_description": "這是您首次登入系統,或是已收到變更密碼的請求。請在下方輸入新密碼。", "change_password_form_confirm_password": "確認密碼", "change_password_form_description": "您好 {name},\n\n這是您首次登入系統,或是已收到變更密碼的請求。請在下方輸入新密碼。", + "change_password_form_log_out": "註銷所有其他設備", + "change_password_form_log_out_description": "建議退出所有其他設備", "change_password_form_new_password": "新密碼", "change_password_form_password_mismatch": "密碼不一致", "change_password_form_reenter_new_password": "再次輸入新密碼", @@ -779,6 +796,7 @@ "daily_title_text_date_year": "YYYY 年 M 月 D 日 (E)", "dark": "深色", "dark_theme": "切換深色主題", + "date": "日期", "date_after": "起始日期", "date_and_time": "日期與時間", "date_before": "結束日期", @@ -881,8 +899,6 @@ "edit_description_prompt": "請選擇新的描述:", "edit_exclusion_pattern": "編輯排除條件", "edit_faces": "編輯臉孔", - "edit_import_path": "編輯匯入路徑", - "edit_import_paths": "編輯匯入路徑", "edit_key": "編輯金鑰", "edit_link": "編輯連結", "edit_location": "編輯位置", @@ -954,7 +970,6 @@ "failed_to_stack_assets": "無法媒體堆疊", "failed_to_unstack_assets": "解除媒體堆疊失敗", "failed_to_update_notification_status": "無法更新通知狀態", - "import_path_already_exists": "此匯入路徑已存在。", "incorrect_email_or_password": "電子郵件或密碼錯誤", "paths_validation_failed": "{paths, plural, one {# 個路徑} other {# 個路徑}} 驗證失敗", "profile_picture_transparent_pixels": "個人資料圖片不能有透明畫素。請放大並/或移動影像。", @@ -964,7 +979,6 @@ "unable_to_add_assets_to_shared_link": "無法加入媒體到共享連結", "unable_to_add_comment": "無法新增留言", "unable_to_add_exclusion_pattern": "無法新增篩選條件", - "unable_to_add_import_path": "無法新增匯入路徑", "unable_to_add_partners": "無法新增親朋好友", "unable_to_add_remove_archive": "無法{archived, select, true {從封存中移除媒體} other {將檔案加入媒體}}", "unable_to_add_remove_favorites": "無法將媒體{favorite, select, true {加入收藏} other {從收藏中移除}}", @@ -987,12 +1001,10 @@ "unable_to_delete_asset": "無法刪除媒體", "unable_to_delete_assets": "刪除媒體時發生錯誤", "unable_to_delete_exclusion_pattern": "無法刪除篩選條件", - "unable_to_delete_import_path": "無法刪除匯入路徑", "unable_to_delete_shared_link": "刪除共享連結失敗", "unable_to_delete_user": "無法刪除使用者", "unable_to_download_files": "無法下載檔案", "unable_to_edit_exclusion_pattern": "無法編輯篩選條件", - "unable_to_edit_import_path": "無法編輯匯入路徑", "unable_to_empty_trash": "無法清空垃圾桶", "unable_to_enter_fullscreen": "無法進入全螢幕", "unable_to_exit_fullscreen": "無法結束全螢幕", @@ -1087,6 +1099,7 @@ "features_setting_description": "管理應用程式功能", "file_name": "檔案名稱", "file_name_or_extension": "檔案名稱或副檔名", + "file_size": "文件大小", "filename": "檔案名稱", "filetype": "檔案類型", "filter": "濾鏡", @@ -1182,6 +1195,8 @@ "import_path": "匯入路徑", "in_albums": "在 {count, plural, one {# 本相簿} other {# 本相簿}}中", "in_archive": "在封存中", + "in_year": "{year}年", + "in_year_selector": "在", "include_archived": "包含已封存", "include_shared_albums": "包含共享相簿", "include_shared_partner_assets": "包括共享親朋好友的媒體", @@ -1218,6 +1233,7 @@ "language_setting_description": "選擇您的首選語言", "large_files": "大型檔案", "last": "最後一個", + "last_months": "{count, plural, one {上個月} other {最近 # 個月}}", "last_seen": "最後上線", "latest_version": "最新版本", "latitude": "緯度", @@ -1250,6 +1266,7 @@ "local_media_summary": "本機媒體摘要", "local_network": "本機網路", "local_network_sheet_info": "當使用指定的 Wi-Fi 網路時,應用程式將透過此網址連線至伺服器", + "location": "位置", "location_permission": "位置權限", "location_permission_content": "使用自動切換功能,Immich 需要精確位置權限,以取得已連線的 Wi-Fi 網路名稱", "location_picker_choose_on_map": "在地圖上選擇", @@ -1297,8 +1314,17 @@ "loop_videos_description": "啟用後,影片結束會自動重播。", "main_branch_warning": "您現在使用的是開發版本;我們強烈您建議使用正式發行版!", "main_menu": "主選單", + "maintenance_description": "Immich已進入維護模式。", + "maintenance_end": "結束維護模式", + "maintenance_end_error": "未能結束維護模式。", + "maintenance_logged_in_as": "當前以{user}身份登入", + "maintenance_title": "暫時不可用", "make": "製造商", "manage_geolocation": "管理位置", + "manage_media_access_rationale": "正確處理將資產移至垃圾桶並將其從垃圾桶中恢復需要此許可。", + "manage_media_access_settings": "打開設定", + "manage_media_access_subtitle": "允許Immich應用程序管理和移動媒體檔案。", + "manage_media_access_title": "媒體管理訪問", "manage_shared_links": "管理共享連結", "manage_sharing_with_partners": "管理與親朋好友的分享", "manage_the_app_settings": "管理應用程式設定", @@ -1362,6 +1388,7 @@ "more": "更多", "move": "移動", "move_off_locked_folder": "移出鎖定的資料夾", + "move_to": "移動到", "move_to_lock_folder_action_prompt": "{count} 已新增至鎖定的資料夾中", "move_to_locked_folder": "移至鎖定的資料夾", "move_to_locked_folder_confirmation": "這些照片和影片將從所有相簿中移除,並僅可從鎖定的資料夾檢視", @@ -1391,6 +1418,7 @@ "new_pin_code": "新 PIN 碼", "new_pin_code_subtitle": "這是您第一次存取鎖定的資料夾。建立 PIN 碼以安全存取此頁面", "new_timeline": "新時間軸", + "new_update": "新更新", "new_user_created": "已建立新使用者", "new_version_available": "新版本已發布", "newest_first": "最新優先", @@ -1406,6 +1434,7 @@ "no_cast_devices_found": "找不到 Google Cast 裝置", "no_checksum_local": "沒有可用的校驗和 - 無法取得本機資產", "no_checksum_remote": "沒有可用的校驗和 - 無法取得遠端資產", + "no_devices": "無授權設備", "no_duplicates_found": "沒發現重複項目。", "no_exif_info_available": "沒有可用的 Exif 資訊", "no_explore_results_message": "上傳更多照片以利探索。", @@ -1422,6 +1451,7 @@ "no_results_description": "試試同義詞或更通用的關鍵字吧", "no_shared_albums_message": "建立相簿分享照片和影片", "no_uploads_in_progress": "沒有正在上傳的項目", + "not_allowed": "不允許", "not_available": "不適用", "not_in_any_album": "不在任何相簿中", "not_selected": "未選擇", @@ -1438,6 +1468,7 @@ "oauth": "OAuth", "obtainium_configurator": "Obtainium配寘器", "obtainium_configurator_instructions": "使用Obtainium直接從Immich GitHub的版本安裝和更新Android應用程序。 創建一個API金鑰並選擇一個變體來創建您的Obtainium配寘連結", + "ocr": "OCR", "official_immich_resources": "官方 Immich 資源", "offline": "離線", "offset": "移動", @@ -1531,6 +1562,8 @@ "photos_count": "{count, plural, other {{count, number} 張照片}}", "photos_from_previous_years": "往年的照片", "pick_a_location": "選擇位置", + "pick_custom_range": "自定義範圍", + "pick_date_range": "選擇日期範圍", "pin_code_changed_successfully": "變更 PIN 碼成功", "pin_code_reset_successfully": "重設 PIN 碼成功", "pin_code_setup_successfully": "設定 PIN 碼成功", @@ -1681,6 +1714,7 @@ "reset_sqlite_confirmation": "確定要重設 SQLite 資料庫嗎?閣下需登出並重新登入才能重新同步資料", "reset_sqlite_success": "已成功重設 SQLite 資料庫", "reset_to_default": "重設回預設", + "resolution": "分辯率", "resolve_duplicates": "解決重複項", "resolved_all_duplicates": "已解決所有重複項目", "restore": "還原", @@ -1699,6 +1733,7 @@ "running": "執行中", "save": "儲存", "save_to_gallery": "儲存到相簿", + "saved": "已保存", "saved_api_key": "已儲存 API 金鑰", "saved_profile": "已儲存個人資料", "saved_settings": "已儲存設定", @@ -1715,6 +1750,8 @@ "search_by_description_example": "在沙壩的健行之日", "search_by_filename": "以檔名或副檔名搜尋", "search_by_filename_example": "如 IMG_1234.JPG 或 PNG", + "search_by_ocr": "通過OCR蒐索", + "search_by_ocr_example": "拿鐵", "search_camera_lens_model": "蒐索鏡頭型號...", "search_camera_make": "搜尋相機製造商…", "search_camera_model": "搜尋相機型號…", @@ -1732,6 +1769,7 @@ "search_filter_location_title": "選擇位置", "search_filter_media_type": "媒體類型", "search_filter_media_type_title": "選擇媒體類型", + "search_filter_ocr": "通過OCR蒐索", "search_filter_people_title": "選擇人物", "search_for": "搜尋", "search_for_existing_person": "搜尋現有的人物", @@ -1793,6 +1831,8 @@ "server_offline": "伺服器已離線", "server_online": "伺服器已上線", "server_privacy": "伺服器隱私", + "server_restarting_description": "此頁面將立即重繪。", + "server_restarting_title": "服務器正在重新啟動", "server_stats": "伺服器統計", "server_update_available": "服務器更新可用", "server_version": "目前版本", @@ -2004,7 +2044,9 @@ "theme_setting_three_stage_loading_title": "啟用三段式載入", "they_will_be_merged_together": "它們將會被合併在一起", "third_party_resources": "第三方資源", + "time": "時間", "time_based_memories": "依時間回憶", + "time_based_memories_duration": "顯示每張影像的秒數。", "timeline": "時間軸", "timezone": "時區", "to_archive": "封存", @@ -2145,6 +2187,7 @@ "welcome": "歡迎", "welcome_to_immich": "歡迎使用 Immich", "wifi_name": "Wi-Fi 名稱", + "workflow": "工作流程", "wrong_pin_code": "PIN 碼錯誤", "year": "年", "years_ago": "{years, plural, other {# 年}}前", diff --git a/i18n/zh_SIMPLIFIED.json b/i18n/zh_SIMPLIFIED.json index 6d7ea6ae39..f799a803a3 100644 --- a/i18n/zh_SIMPLIFIED.json +++ b/i18n/zh_SIMPLIFIED.json @@ -17,7 +17,6 @@ "add_birthday": "添加生日", "add_endpoint": "添加服务器 URL", "add_exclusion_pattern": "添加排除规则", - "add_import_path": "添加导入路径", "add_location": "添加地点", "add_more_users": "添加更多用户", "add_partner": "添加同伴", @@ -32,6 +31,7 @@ "add_to_album_toggle": "选择相册 {album}", "add_to_albums": "添加到相册", "add_to_albums_count": "添加到相册({count}个)", + "add_to_bottom_bar": "添加到", "add_to_shared_album": "添加到共享相册", "add_upload_to_stack": "上传项目至堆叠", "add_url": "添加 URL", @@ -112,13 +112,17 @@ "jobs_failed": "{jobCount, plural, other {#项失败}}", "library_created": "已创建图库:{library}", "library_deleted": "图库已删除", - "library_import_path_description": "指定一个要导入的文件夹。将扫描此文件夹(包括子文件夹)中的图像和视频。", + "library_details": "图库详情", + "library_folder_description": "指定要导入的文件夹。将对该文件夹(包括子文件夹)进行图像和视频扫描。", + "library_remove_exclusion_pattern_prompt": "您确定要删除此排除规则吗?", + "library_remove_folder_prompt": "您确定要删除此导入文件夹吗?", "library_scanning": "定期扫描", "library_scanning_description": "配置定期扫描图库", "library_scanning_enable_description": "启用定期扫描图库", "library_settings": "外部图库", "library_settings_description": "管理外部图库设置", "library_tasks_description": "扫描外部库,查找新增或修改的项目", + "library_updated": "已更新的图库", "library_watching_enable_description": "监控外部图库文件变化", "library_watching_settings": "监控图库[实验性]", "library_watching_settings_description": "自动监控文件变化", @@ -173,6 +177,10 @@ "machine_learning_smart_search_enabled": "启用智能搜索", "machine_learning_smart_search_enabled_description": "如果禁用,则不会对图像编码以用于智能搜索。", "machine_learning_url_description": "机器学习服务器的 URL。如果提供多个 URL,则将按依次尝试连接每个服务器,直到有一个服务器成功响应为止。不响应的服务器将被暂时忽略,直到它们重新联机。", + "maintenance_settings": "维护模式", + "maintenance_settings_description": "将Immich置于维护模式。", + "maintenance_start": "开启维护模式", + "maintenance_start_error": "开启维护模式失败。", "manage_concurrency": "管理任务并发", "manage_log_settings": "管理日志设置", "map_dark_style": "深色模式", @@ -430,6 +438,7 @@ "age_months": "{months, plural, one {#个月} other {#个月}}", "age_year_months": "1岁{months, plural, one {#个月} other {#个月}}", "age_years": "{years, plural, other {#岁}}", + "album": "相册", "album_added": "被添加到相册", "album_added_notification_setting_description": "当您被添加到共享相册时,接收邮箱通知", "album_cover_updated": "相册封面已更新", @@ -475,6 +484,7 @@ "allow_edits": "允许编辑", "allow_public_user_to_download": "允许所有用户下载", "allow_public_user_to_upload": "允许所有用户上传", + "allowed": "允许", "alt_text_qr_code": "二维码图片", "anti_clockwise": "逆时针", "api_key": "API 密钥", @@ -894,8 +904,6 @@ "edit_description_prompt": "请选择新的描述:", "edit_exclusion_pattern": "编辑排除规则", "edit_faces": "编辑人脸", - "edit_import_path": "编辑导入路径", - "edit_import_paths": "编辑导入路径", "edit_key": "编辑 API 密钥", "edit_link": "编辑链接", "edit_location": "编辑位置", @@ -967,8 +975,8 @@ "failed_to_stack_assets": "无法堆叠项目", "failed_to_unstack_assets": "无法取消堆叠项目", "failed_to_update_notification_status": "更新通知状态失败", - "import_path_already_exists": "此导入路径已存在。", "incorrect_email_or_password": "邮箱或密码错误", + "library_folder_already_exists": "导入路径已存在。", "paths_validation_failed": "{paths, plural, one {#条路径} other {#条路径}} 校验失败", "profile_picture_transparent_pixels": "个人资料图片不可以包含透明像素。请放大或移动此图片。", "quota_higher_than_disk_size": "设置的配额大于磁盘容量", @@ -977,7 +985,6 @@ "unable_to_add_assets_to_shared_link": "无法添加项目到共享链接", "unable_to_add_comment": "无法添加评论", "unable_to_add_exclusion_pattern": "无法添加排除规则", - "unable_to_add_import_path": "无法添加导入路径", "unable_to_add_partners": "无法添加同伴", "unable_to_add_remove_archive": "无法{archived, select, true {从归档中移除} other {添加项目到归档}}", "unable_to_add_remove_favorites": "无法{favorite, select, true {添加项目到收藏} other {从收藏中移除}}", @@ -1000,12 +1007,10 @@ "unable_to_delete_asset": "无法删除项目", "unable_to_delete_assets": "无法删除项目", "unable_to_delete_exclusion_pattern": "无法删除排除规则", - "unable_to_delete_import_path": "无法删除导入路径", "unable_to_delete_shared_link": "无法删除共享链接", "unable_to_delete_user": "无法删除用户", "unable_to_download_files": "无法下载文件", "unable_to_edit_exclusion_pattern": "无法编辑排除规则", - "unable_to_edit_import_path": "无法编辑导入路径", "unable_to_empty_trash": "无法清空回收站", "unable_to_enter_fullscreen": "无法进入全屏", "unable_to_exit_fullscreen": "无法退出全屏", @@ -1056,6 +1061,7 @@ "unable_to_update_user": "无法更新用户", "unable_to_upload_file": "无法上传文件" }, + "exclusion_pattern": "排除规则", "exif": "Exif 信息", "exif_bottom_sheet_description": "添加描述...", "exif_bottom_sheet_description_error": "更新描述时出错", @@ -1115,6 +1121,7 @@ "folders_feature_description": "在文件夹视图中浏览文件系统上的照片和视频", "forgot_pin_code_question": "忘记您的PIN码了?", "forward": "向前", + "full_path": "完整路径:{path}", "gcast_enabled": "Google Cast 投屏", "gcast_enabled_description": "该功能需要加载来自 Google 的外部资源。", "general": "通用", @@ -1196,6 +1203,8 @@ "import_path": "导入路径", "in_albums": "在{count, plural, one {#个相册} other {#个相册}}中", "in_archive": "在归档中", + "in_year": "{year}年", + "in_year_selector": "在", "include_archived": "包括已归档", "include_shared_albums": "包括共享相册", "include_shared_partner_assets": "包括同伴共享项目", @@ -1232,6 +1241,7 @@ "language_setting_description": "选择您的语言偏好", "large_files": "大文件", "last": "最后一个", + "last_months": "{count, plural, one {上个月} other {最近 # 个月}}", "last_seen": "最后上线于", "latest_version": "最新版本", "latitude": "纬度", @@ -1241,6 +1251,8 @@ "let_others_respond": "允许他人回应", "level": "等级", "library": "图库", + "library_add_folder": "添加文件夹", + "library_edit_folder": "编辑文件夹", "library_options": "图库选项", "library_page_device_albums": "设备上的相册", "library_page_new_album": "新建相册", @@ -1312,8 +1324,17 @@ "loop_videos_description": "启用在详细信息中自动循环播放视频。", "main_branch_warning": "您当前使用的是开发版;我们强烈建议您使用正式发行版(release版)!", "main_menu": "主菜单", + "maintenance_description": "Immich已进入维护模式。", + "maintenance_end": "退出维护模式", + "maintenance_end_error": "退出维护模式失败。", + "maintenance_logged_in_as": "当前以{user}身份登录", + "maintenance_title": "暂时不可用", "make": "品牌", "manage_geolocation": "管理坐标位置", + "manage_media_access_rationale": "正确处理将资产移至垃圾桶并将其从垃圾桶中恢复需要此许可。", + "manage_media_access_settings": "打开设置", + "manage_media_access_subtitle": "允许Immich应用程序管理和移动媒体文件。", + "manage_media_access_title": "媒体管理访问", "manage_shared_links": "管理共享链接", "manage_sharing_with_partners": "管理与同伴的共享", "manage_the_app_settings": "管理应用设置", @@ -1377,6 +1398,7 @@ "more": "更多", "move": "移动", "move_off_locked_folder": "移出锁定文件夹", + "move_to": "移动到", "move_to_lock_folder_action_prompt": "已将 {count} 项添加到锁定文件夹", "move_to_locked_folder": "移动到锁定文件夹", "move_to_locked_folder_confirmation": "这些照片和视频将从所有相册中移除,只能在锁定文件夹中查看", @@ -1406,6 +1428,7 @@ "new_pin_code": "新的PIN码", "new_pin_code_subtitle": "这是您第一次访问此锁定文件夹。创建一个PIN码以安全访问此页面", "new_timeline": "切换到新版时间线", + "new_update": "新版本", "new_user_created": "已创建新用户", "new_version_available": "有新版本发布啦", "newest_first": "最新优先", @@ -1421,22 +1444,25 @@ "no_cast_devices_found": "未找到投放设备", "no_checksum_local": "没有可用的校验和-无法获取本地资产", "no_checksum_remote": "没有可用的校验和-无法获取远程资产", + "no_devices": "无授权设备", "no_duplicates_found": "未发现重复项。", "no_exif_info_available": "没有可用的 EXIF 信息", "no_explore_results_message": "上传更多照片来探索。", "no_favorites_message": "添加到收藏夹,快速查找最佳图片和视频", "no_libraries_message": "创建外部图库来查看您的照片和视频", "no_local_assets_found": "未找到具有此校验和的本地资产", + "no_location_set": "未设置地点", "no_locked_photos_message": "锁定文件夹中的照片和视频将被隐藏,不会在您浏览、搜索图库时出现。", "no_name": "未命名", "no_notifications": "没有通知", "no_people_found": "未找到匹配的人物", "no_places": "无位置", "no_remote_assets_found": "未找到具有此校验和的远程资产", - "no_results": "无结果", + "no_results": "无搜索结果", "no_results_description": "尝试使用同义词或更通用的关键词", "no_shared_albums_message": "创建相册以共享照片和视频", "no_uploads_in_progress": "没有正在进行的上传", + "not_allowed": "不允许", "not_available": "不适用", "not_in_any_album": "不在任何相册中", "not_selected": "未选择", @@ -1547,6 +1573,8 @@ "photos_count": "{count, plural, one {{count, number}张照片} other {{count, number}张照片}}", "photos_from_previous_years": "过往的今昔瞬间", "pick_a_location": "选择位置", + "pick_custom_range": "自定义范围", + "pick_date_range": "选择日期范围", "pin_code_changed_successfully": "修改PIN码成功", "pin_code_reset_successfully": "重置PIN码成功", "pin_code_setup_successfully": "设置PIN码成功", @@ -1814,6 +1842,8 @@ "server_offline": "服务器离线", "server_online": "服务器在线", "server_privacy": "服务器隐私", + "server_restarting_description": "此页面将立即刷新。", + "server_restarting_title": "服务器正在重新启动", "server_stats": "服务器状态", "server_update_available": "服务器更新可用", "server_version": "服务器版本", @@ -2027,6 +2057,7 @@ "third_party_resources": "第三方资源", "time": "时间", "time_based_memories": "那年今日", + "time_based_memories_duration": "显示每张图像的秒数。", "timeline": "时间线", "timezone": "时区", "to_archive": "归档", @@ -2167,6 +2198,7 @@ "welcome": "欢迎", "welcome_to_immich": "欢迎使用 Immich", "wifi_name": "Wi-Fi 名称", + "workflow": "流程", "wrong_pin_code": "错误的PIN码", "year": "年", "years_ago": "{years, plural, one {#年} other {#年}}前", From 45a03156062d7f397f3f0c848cd0ff51a10534cc Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 19 Nov 2025 17:46:53 +0000 Subject: [PATCH 108/300] chore: version v2.3.0 --- cli/package.json | 2 +- docs/static/archived-versions.json | 4 ++++ e2e/package.json | 2 +- machine-learning/pyproject.toml | 2 +- mobile/android/fastlane/Fastfile | 4 ++-- mobile/openapi/README.md | 2 +- mobile/pubspec.yaml | 2 +- open-api/immich-openapi-specs.json | 2 +- open-api/typescript-sdk/package.json | 2 +- open-api/typescript-sdk/src/fetch-client.ts | 2 +- server/package.json | 2 +- web/package.json | 2 +- 12 files changed, 16 insertions(+), 12 deletions(-) diff --git a/cli/package.json b/cli/package.json index 118920f19f..cc6c40d61c 100644 --- a/cli/package.json +++ b/cli/package.json @@ -1,6 +1,6 @@ { "name": "@immich/cli", - "version": "2.2.101", + "version": "2.2.102", "description": "Command Line Interface (CLI) for Immich", "type": "module", "exports": "./dist/index.js", diff --git a/docs/static/archived-versions.json b/docs/static/archived-versions.json index 6affb532c9..2e07e156d6 100644 --- a/docs/static/archived-versions.json +++ b/docs/static/archived-versions.json @@ -1,4 +1,8 @@ [ + { + "label": "v2.3.0", + "url": "https://docs.v2.3.0.archive.immich.app" + }, { "label": "v2.2.3", "url": "https://docs.v2.2.3.archive.immich.app" diff --git a/e2e/package.json b/e2e/package.json index b1d2cef0aa..f6236f3b51 100644 --- a/e2e/package.json +++ b/e2e/package.json @@ -1,6 +1,6 @@ { "name": "immich-e2e", - "version": "2.2.3", + "version": "2.3.0", "description": "", "main": "index.js", "type": "module", diff --git a/machine-learning/pyproject.toml b/machine-learning/pyproject.toml index a93ab1c2af..d4ef649a88 100644 --- a/machine-learning/pyproject.toml +++ b/machine-learning/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "immich-ml" -version = "2.2.3" +version = "2.3.0" description = "" authors = [{ name = "Hau Tran", email = "alex.tran1502@gmail.com" }] requires-python = ">=3.10,<4.0" diff --git a/mobile/android/fastlane/Fastfile b/mobile/android/fastlane/Fastfile index 6b9ce07465..88b5c05fb1 100644 --- a/mobile/android/fastlane/Fastfile +++ b/mobile/android/fastlane/Fastfile @@ -35,8 +35,8 @@ platform :android do task: 'bundle', build_type: 'Release', properties: { - "android.injected.version.code" => 3026, - "android.injected.version.name" => "2.2.3", + "android.injected.version.code" => 3027, + "android.injected.version.name" => "2.3.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') diff --git a/mobile/openapi/README.md b/mobile/openapi/README.md index 9fa1b4858f..e8779f9118 100644 --- a/mobile/openapi/README.md +++ b/mobile/openapi/README.md @@ -3,7 +3,7 @@ Immich API This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 2.2.3 +- API version: 2.3.0 - Generator version: 7.8.0 - Build package: org.openapitools.codegen.languages.DartClientCodegen diff --git a/mobile/pubspec.yaml b/mobile/pubspec.yaml index 187fb88f17..9af8abab3b 100644 --- a/mobile/pubspec.yaml +++ b/mobile/pubspec.yaml @@ -2,7 +2,7 @@ name: immich_mobile description: Immich - selfhosted backup media file on mobile phone publish_to: 'none' -version: 2.2.3+3026 +version: 2.3.0+3027 environment: sdk: '>=3.8.0 <4.0.0' diff --git a/open-api/immich-openapi-specs.json b/open-api/immich-openapi-specs.json index e89967ae5e..c1b4e6ad13 100644 --- a/open-api/immich-openapi-specs.json +++ b/open-api/immich-openapi-specs.json @@ -13959,7 +13959,7 @@ "info": { "title": "Immich", "description": "Immich API", - "version": "2.2.3", + "version": "2.3.0", "contact": {} }, "tags": [ diff --git a/open-api/typescript-sdk/package.json b/open-api/typescript-sdk/package.json index 8716378d87..9a504e71a5 100644 --- a/open-api/typescript-sdk/package.json +++ b/open-api/typescript-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@immich/sdk", - "version": "2.2.3", + "version": "2.3.0", "description": "Auto-generated TypeScript SDK for the Immich API", "type": "module", "main": "./build/index.js", diff --git a/open-api/typescript-sdk/src/fetch-client.ts b/open-api/typescript-sdk/src/fetch-client.ts index 34ceb56500..b6619c0008 100644 --- a/open-api/typescript-sdk/src/fetch-client.ts +++ b/open-api/typescript-sdk/src/fetch-client.ts @@ -1,6 +1,6 @@ /** * Immich - * 2.2.3 + * 2.3.0 * DO NOT MODIFY - This file has been generated using oazapfts. * See https://www.npmjs.com/package/oazapfts */ diff --git a/server/package.json b/server/package.json index d995dee90c..a52f1cae7a 100644 --- a/server/package.json +++ b/server/package.json @@ -1,6 +1,6 @@ { "name": "immich", - "version": "2.2.3", + "version": "2.3.0", "description": "", "author": "", "private": true, diff --git a/web/package.json b/web/package.json index 2a93230c24..f2d61086a9 100644 --- a/web/package.json +++ b/web/package.json @@ -1,6 +1,6 @@ { "name": "immich-web", - "version": "2.2.3", + "version": "2.3.0", "license": "GNU Affero General Public License version 3", "type": "module", "scripts": { From acded69adfc936aa4644f190a767c2a7e8ec9b34 Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Wed, 19 Nov 2025 21:14:15 -0500 Subject: [PATCH 109/300] fix: supporter badge (#24012) --- .../shared-components/side-bar/purchase-info.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/lib/components/shared-components/side-bar/purchase-info.svelte b/web/src/lib/components/shared-components/side-bar/purchase-info.svelte index 8c16e3ba38..629326c41b 100644 --- a/web/src/lib/components/shared-components/side-bar/purchase-info.svelte +++ b/web/src/lib/components/shared-components/side-bar/purchase-info.svelte @@ -74,10 +74,10 @@ {#if $isPurchased && $preferences.purchase.showSupportBadge} {:else if !$isPurchased && showBuyButton && getAccountAge() > 14}