fix: image
This commit is contained in:
parent
4269b72c04
commit
cef2842811
|
|
@ -16,7 +16,7 @@ import DebugPanelTool from './pages/tools/DebugPanelTool';
|
||||||
import ChatTool from './pages/tools/ChatTool';
|
import ChatTool from './pages/tools/ChatTool';
|
||||||
import ChatTestPage from './pages/tools/ChatTestPage';
|
import ChatTestPage from './pages/tools/ChatTestPage';
|
||||||
import WatermarkTool from './pages/tools/WatermarkTool';
|
import WatermarkTool from './pages/tools/WatermarkTool';
|
||||||
import BatchThumbnailGenerator from './pages/tools/BatchThumbnailGenerator';
|
// import BatchThumbnailGenerator from './pages/tools/BatchThumbnailGenerator';
|
||||||
|
|
||||||
import Navigation from './components/Navigation';
|
import Navigation from './components/Navigation';
|
||||||
import { NotificationSystem, useNotifications } from './components/NotificationSystem';
|
import { NotificationSystem, useNotifications } from './components/NotificationSystem';
|
||||||
|
|
@ -102,7 +102,7 @@ function App() {
|
||||||
<Route path="/tools/ai-chat" element={<ChatTool />} />
|
<Route path="/tools/ai-chat" element={<ChatTool />} />
|
||||||
<Route path="/tools/chat-test" element={<ChatTestPage />} />
|
<Route path="/tools/chat-test" element={<ChatTestPage />} />
|
||||||
<Route path="/tools/watermark" element={<WatermarkTool />} />
|
<Route path="/tools/watermark" element={<WatermarkTool />} />
|
||||||
<Route path="/tools/batch-thumbnail-generator" element={<BatchThumbnailGenerator />} />
|
{/* <Route path="/tools/batch-thumbnail-generator" element={<BatchThumbnailGenerator />} /> */}
|
||||||
</Routes>
|
</Routes>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { X, Droplets, Search, Plus, Upload, Trash2, Pause } from 'lucide-react';
|
||||||
import { invoke } from '@tauri-apps/api/core';
|
import { invoke } from '@tauri-apps/api/core';
|
||||||
import { open } from '@tauri-apps/plugin-dialog';
|
import { open } from '@tauri-apps/plugin-dialog';
|
||||||
import { Material } from '../types/material';
|
import { Material } from '../types/material';
|
||||||
import { WatermarkTemplate, WatermarkConfig, WatermarkDetectionConfig, WatermarkRemovalConfig, BatchWatermarkTask, WatermarkDetectionResult, WatermarkProcessingResult } from '../types/watermark';
|
import { WatermarkTemplate, WatermarkConfig, WatermarkDetectionConfig, WatermarkRemovalConfig, BatchWatermarkTask, WatermarkDetectionResult, WatermarkProcessingResult, DetectionMethod } from '../types/watermark';
|
||||||
import { CustomSelect } from './CustomSelect';
|
import { CustomSelect } from './CustomSelect';
|
||||||
import { LoadingSpinner } from './LoadingSpinner';
|
import { LoadingSpinner } from './LoadingSpinner';
|
||||||
import { DeleteConfirmDialog } from './DeleteConfirmDialog';
|
import { DeleteConfirmDialog } from './DeleteConfirmDialog';
|
||||||
|
|
@ -427,12 +427,12 @@ export const WatermarkToolDialog: React.FC<WatermarkToolDialogProps> = ({
|
||||||
<label key={method} className="flex items-center space-x-2">
|
<label key={method} className="flex items-center space-x-2">
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
checked={detectionConfig.methods.includes(method)}
|
checked={detectionConfig.methods.includes(method as DetectionMethod)}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
if (e.target.checked) {
|
if (e.target.checked) {
|
||||||
setDetectionConfig({
|
setDetectionConfig({
|
||||||
...detectionConfig,
|
...detectionConfig,
|
||||||
methods: [...detectionConfig.methods, method]
|
methods: [...detectionConfig.methods, method as DetectionMethod]
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
setDetectionConfig({
|
setDetectionConfig({
|
||||||
|
|
@ -613,7 +613,7 @@ export const WatermarkToolDialog: React.FC<WatermarkToolDialogProps> = ({
|
||||||
位置
|
位置
|
||||||
</label>
|
</label>
|
||||||
<CustomSelect
|
<CustomSelect
|
||||||
value={additionConfig.position}
|
value={typeof additionConfig.position === 'string' ? additionConfig.position : 'Custom'}
|
||||||
onChange={(value) => setAdditionConfig({
|
onChange={(value) => setAdditionConfig({
|
||||||
...additionConfig,
|
...additionConfig,
|
||||||
position: value as any
|
position: value as any
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,6 @@ import {
|
||||||
TaskStatus,
|
TaskStatus,
|
||||||
TASK_STATUS_LABELS,
|
TASK_STATUS_LABELS,
|
||||||
TASK_STATUS_COLORS,
|
TASK_STATUS_COLORS,
|
||||||
formatDuration,
|
|
||||||
formatFileSize,
|
formatFileSize,
|
||||||
formatProcessingSpeed
|
formatProcessingSpeed
|
||||||
} from '../../types/thumbnail';
|
} from '../../types/thumbnail';
|
||||||
|
|
|
||||||
|
|
@ -7,15 +7,13 @@ import {
|
||||||
Clock,
|
Clock,
|
||||||
CheckCircle,
|
CheckCircle,
|
||||||
AlertCircle,
|
AlertCircle,
|
||||||
FileVideo,
|
FileVideo
|
||||||
MoreHorizontal
|
|
||||||
} from 'lucide-react';
|
} from 'lucide-react';
|
||||||
import {
|
import {
|
||||||
BatchThumbnailTask,
|
BatchThumbnailTask,
|
||||||
TaskStatus,
|
TaskStatus,
|
||||||
TASK_STATUS_LABELS,
|
TASK_STATUS_LABELS,
|
||||||
TASK_STATUS_COLORS,
|
TASK_STATUS_COLORS
|
||||||
formatDuration
|
|
||||||
} from '../../types/thumbnail';
|
} from '../../types/thumbnail';
|
||||||
|
|
||||||
interface TaskListProps {
|
interface TaskListProps {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Grid, Palette, Ruler } from 'lucide-react';
|
import { Grid, Palette } from 'lucide-react';
|
||||||
import { TimelineConfig, TimelineLayout } from '../../types/thumbnail';
|
import { TimelineConfig, TimelineLayout } from '../../types/thumbnail';
|
||||||
import { CustomSelect } from '../CustomSelect';
|
import { CustomSelect } from '../CustomSelect';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import {
|
||||||
Database,
|
Database,
|
||||||
FileSearch,
|
FileSearch,
|
||||||
MessageCircle,
|
MessageCircle,
|
||||||
Droplets,
|
Droplets
|
||||||
Image
|
Image
|
||||||
} from 'lucide-react';
|
} from 'lucide-react';
|
||||||
import { Tool, ToolCategory, ToolStatus } from '../types/tool';
|
import { Tool, ToolCategory, ToolStatus } from '../types/tool';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue