chore: linting

This commit is contained in:
bwees
2025-12-04 08:50:35 -06:00
parent 62030c7e4c
commit c2fb6cb7e4
3 changed files with 13 additions and 13 deletions

View File

@@ -17,14 +17,6 @@
"add_a_title": "Add a title", "add_a_title": "Add a title",
"add_birthday": "Add a birthday", "add_birthday": "Add a birthday",
"add_endpoint": "Add endpoint", "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_exclusion_pattern": "Add exclusion pattern",
"add_location": "Add location", "add_location": "Add location",
"add_more_users": "Add more users", "add_more_users": "Add more users",
@@ -812,6 +804,9 @@
"created_at": "Created", "created_at": "Created",
"creating_linked_albums": "Creating linked albums...", "creating_linked_albums": "Creating linked albums...",
"crop": "Crop", "crop": "Crop",
"crop_aspect_ratio_fixed": "Fixed",
"crop_aspect_ratio_free": "Free",
"crop_aspect_ratio_original": "Original",
"curated_object_page_title": "Things", "curated_object_page_title": "Things",
"current_device": "Current device", "current_device": "Current device",
"current_pin_code": "Current PIN code", "current_pin_code": "Current PIN code",
@@ -940,6 +935,7 @@
"editor_close_without_save_prompt": "The changes will not be saved", "editor_close_without_save_prompt": "The changes will not be saved",
"editor_close_without_save_title": "Close editor?", "editor_close_without_save_title": "Close editor?",
"editor_crop_tool_h2_aspect_ratios": "Aspect ratios", "editor_crop_tool_h2_aspect_ratios": "Aspect ratios",
"editor_crop_tool_h2_mirror": "Mirror",
"editor_crop_tool_h2_rotation": "Rotation", "editor_crop_tool_h2_rotation": "Rotation",
"editor_reset_all_changes": "Reset all changes", "editor_reset_all_changes": "Reset all changes",
"email": "Email", "email": "Email",
@@ -1414,6 +1410,8 @@
"minimize": "Minimize", "minimize": "Minimize",
"minute": "Minute", "minute": "Minute",
"minutes": "Minutes", "minutes": "Minutes",
"mirror_horizontal": "Horizontal",
"mirror_vertical": "Vertical",
"missing": "Missing", "missing": "Missing",
"mobile_app": "Mobile App", "mobile_app": "Mobile App",
"mobile_app_download_onboarding_note": "Download the companion mobile app using the following options", "mobile_app_download_onboarding_note": "Download the companion mobile app using the following options",
@@ -1767,6 +1765,8 @@
"role": "Role", "role": "Role",
"role_editor": "Editor", "role_editor": "Editor",
"role_viewer": "Viewer", "role_viewer": "Viewer",
"rotate_ccw": "CCW 90°",
"rotate_cw": "CW 90°",
"running": "Running", "running": "Running",
"save": "Save", "save": "Save",
"save_to_gallery": "Save to gallery", "save_to_gallery": "Save to gallery",

View File

@@ -22,10 +22,10 @@
})), })),
]); ]);
function resetCrop() { // function resetCrop() {
transformManager.resetCrop(); // transformManager.resetCrop();
selectedRatio = undefined; // selectedRatio = undefined;
} // }
function selectAspectRatio(ratio: 'original' | 'free' | (typeof aspectRatios)[number]['value']) { function selectAspectRatio(ratio: 'original' | 'free' | (typeof aspectRatios)[number]['value']) {
if (ratio === 'original') { if (ratio === 'original') {

View File

@@ -40,7 +40,7 @@ class TransformManager implements EditToolManager {
cropFrame = $state<HTMLElement | null>(null); cropFrame = $state<HTMLElement | null>(null);
cropImageSize = $state([1000, 1000]); cropImageSize = $state([1000, 1000]);
cropImageScale = $state(1); cropImageScale = $state(1);
cropAspectRatio = $state("free"); cropAspectRatio = $state('free');
region = $state({ x: 0, y: 0, width: 100, height: 100 }); region = $state({ x: 0, y: 0, width: 100, height: 100 });
imageRotation = $state(0); imageRotation = $state(0);