refactor: remove content-aware-crop tool

Remove the content-aware-crop tool entirely -- API route, frontend
settings component, e2e and integration tests, and all registry
entries.
This commit is contained in:
SnapOtter
2026-05-13 17:55:01 +08:00
parent 05720f350a
commit c6a5d3f33e
8 changed files with 11 additions and 969 deletions
+4 -4
View File
@@ -81,9 +81,9 @@ const ContentAwareResizeSettings = lazy(() =>
default: m.ContentAwareResizeSettings,
})),
);
const ContentAwareCropSettings = lazy(() =>
import("@/components/tools/content-aware-crop-settings").then((m) => ({
default: m.ContentAwareCropSettings,
const AiCanvasExpandSettings = lazy(() =>
import("@/components/tools/ai-canvas-expand-settings").then((m) => ({
default: m.AiCanvasExpandSettings,
})),
);
const CropSettings = lazy(() =>
@@ -506,7 +506,7 @@ export const toolRegistry = new Map<string, ToolRegistryEntry>([
["restore-photo", { displayMode: "before-after", Settings: RestorePhotoSettings }],
["transparency-fixer", { displayMode: "before-after", Settings: TransparencyFixerSettings }],
["content-aware-resize", { displayMode: "side-by-side", Settings: ContentAwareResizeSettings }],
["content-aware-crop", { displayMode: "before-after", Settings: ContentAwareCropSettings }],
["ai-canvas-expand", { displayMode: "before-after", Settings: AiCanvasExpandSettings }],
]);
export function getToolRegistryEntry(toolId: string): ToolRegistryEntry | undefined {