mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user