From 4ae8b270899c36c708678f65fd931b34ab2b2fdf Mon Sep 17 00:00:00 2001 From: bwees Date: Thu, 4 Dec 2025 08:50:35 -0600 Subject: [PATCH] chore: linting --- i18n/en.json | 16 ++++++++-------- .../editor/transform-tool/transform-tool.svelte | 8 ++++---- .../managers/edit/transform-manager.svelte.ts | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/i18n/en.json b/i18n/en.json index 0fc959aabd..2579e58b00 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -17,14 +17,6 @@ "add_a_title": "Add a title", "add_birthday": "Add a birthday", "add_endpoint": "Add endpoint", - "editor_crop_tool_h2_mirror": "Mirror", - "mirror_horizontal": "Horizontal", - "mirror_vertical": "Vertical", - "rotate_ccw": "CCW 90°", - "rotate_cw": "CW 90°", - "crop_aspect_ratio_free": "Free", - "crop_aspect_ratio_fixed": "Fixed", - "crop_aspect_ratio_original": "Original", "add_exclusion_pattern": "Add exclusion pattern", "add_location": "Add location", "add_more_users": "Add more users", @@ -813,6 +805,9 @@ "created_at": "Created", "creating_linked_albums": "Creating linked albums...", "crop": "Crop", + "crop_aspect_ratio_fixed": "Fixed", + "crop_aspect_ratio_free": "Free", + "crop_aspect_ratio_original": "Original", "curated_object_page_title": "Things", "current_device": "Current device", "current_pin_code": "Current PIN code", @@ -941,6 +936,7 @@ "editor_close_without_save_prompt": "The changes will not be saved", "editor_close_without_save_title": "Close editor?", "editor_crop_tool_h2_aspect_ratios": "Aspect ratios", + "editor_crop_tool_h2_mirror": "Mirror", "editor_crop_tool_h2_rotation": "Rotation", "editor_reset_all_changes": "Reset all changes", "email": "Email", @@ -1417,6 +1413,8 @@ "minimize": "Minimize", "minute": "Minute", "minutes": "Minutes", + "mirror_horizontal": "Horizontal", + "mirror_vertical": "Vertical", "missing": "Missing", "mobile_app": "Mobile App", "mobile_app_download_onboarding_note": "Download the companion mobile app using the following options", @@ -1770,6 +1768,8 @@ "role": "Role", "role_editor": "Editor", "role_viewer": "Viewer", + "rotate_ccw": "CCW 90°", + "rotate_cw": "CW 90°", "running": "Running", "save": "Save", "save_to_gallery": "Save to gallery", diff --git a/web/src/lib/components/asset-viewer/editor/transform-tool/transform-tool.svelte b/web/src/lib/components/asset-viewer/editor/transform-tool/transform-tool.svelte index e0e22ce8b9..9757cd9ff0 100644 --- a/web/src/lib/components/asset-viewer/editor/transform-tool/transform-tool.svelte +++ b/web/src/lib/components/asset-viewer/editor/transform-tool/transform-tool.svelte @@ -22,10 +22,10 @@ })), ]); - function resetCrop() { - transformManager.resetCrop(); - selectedRatio = undefined; - } + // function resetCrop() { + // transformManager.resetCrop(); + // selectedRatio = undefined; + // } function selectAspectRatio(ratio: 'original' | 'free' | (typeof aspectRatios)[number]['value']) { if (ratio === 'original') { diff --git a/web/src/lib/managers/edit/transform-manager.svelte.ts b/web/src/lib/managers/edit/transform-manager.svelte.ts index 11c9d2371d..cc2e0992e8 100644 --- a/web/src/lib/managers/edit/transform-manager.svelte.ts +++ b/web/src/lib/managers/edit/transform-manager.svelte.ts @@ -40,7 +40,7 @@ class TransformManager implements EditToolManager { cropFrame = $state(null); cropImageSize = $state([1000, 1000]); cropImageScale = $state(1); - cropAspectRatio = $state("free"); + cropAspectRatio = $state('free'); region = $state({ x: 0, y: 0, width: 100, height: 100 }); imageRotation = $state(0);