Fix TypeScript strict mode errors - remove unused imports/variables
This commit is contained in:
parent
09e2d07706
commit
aaf4d4eb3e
|
|
@ -6,8 +6,7 @@ import {
|
||||||
Settings,
|
Settings,
|
||||||
Database,
|
Database,
|
||||||
Search,
|
Search,
|
||||||
Layers,
|
Layers
|
||||||
X
|
|
||||||
} from 'lucide-react'
|
} from 'lucide-react'
|
||||||
import { useAppStore } from '../store/appStore'
|
import { useAppStore } from '../store/appStore'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -290,7 +290,7 @@ function RegionCalibrator({ regions, onComplete }: RegionCalibratorProps) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const saveRegion = (regionKey: string, bounds: any) => {
|
const _saveRegion = (regionKey: string, bounds: any) => {
|
||||||
setRegions(prev => ({
|
setRegions(prev => ({
|
||||||
...prev,
|
...prev,
|
||||||
[regionKey]: bounds
|
[regionKey]: bounds
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ import {
|
||||||
TrendingUp,
|
TrendingUp,
|
||||||
Package,
|
Package,
|
||||||
ExternalLink,
|
ExternalLink,
|
||||||
Clock,
|
|
||||||
AlertCircle
|
AlertCircle
|
||||||
} from 'lucide-react'
|
} from 'lucide-react'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ import {
|
||||||
export default function Overlay() {
|
export default function Overlay() {
|
||||||
const [widgets, setWidgets] = useState<any[]>([])
|
const [widgets, setWidgets] = useState<any[]>([])
|
||||||
const [sessionTime, setSessionTime] = useState(0)
|
const [sessionTime, setSessionTime] = useState(0)
|
||||||
const [isDragging, setIsDragging] = useState(false)
|
const [_isDragging, setIsDragging] = useState(false)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// Listen for widget updates from plugins
|
// Listen for widget updates from plugins
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,18 @@
|
||||||
import { useState, useEffect } from 'react'
|
import { useState } from 'react'
|
||||||
import { invoke } from '@tauri-apps/api/tauri'
|
|
||||||
import {
|
import {
|
||||||
Puzzle,
|
Puzzle,
|
||||||
Power,
|
|
||||||
Settings2,
|
Settings2,
|
||||||
ExternalLink,
|
|
||||||
Search,
|
Search,
|
||||||
Grid,
|
Grid,
|
||||||
List,
|
List
|
||||||
AlertCircle
|
|
||||||
} from 'lucide-react'
|
} from 'lucide-react'
|
||||||
import { useAppStore } from '../store/appStore'
|
import { useAppStore } from '../store/appStore'
|
||||||
import type { Plugin } from '../store/appStore'
|
import type { Plugin } from '../store/appStore'
|
||||||
|
|
||||||
export default function Plugins() {
|
export default function Plugins() {
|
||||||
const { plugins, activatePlugin, deactivatePlugin, loadPlugins } = useAppStore()
|
const { plugins, activatePlugin, deactivatePlugin } = useAppStore()
|
||||||
const [searchQuery, setSearchQuery] = useState('')
|
const [searchQuery, setSearchQuery] = useState('')
|
||||||
const [viewMode, setViewMode] = useState<'grid' | 'list'>('grid')
|
const [viewMode, setViewMode] = useState<'grid' | 'list'>('grid')
|
||||||
const [selectedPlugin, setSelectedPlugin] = useState<Plugin | null>(null)
|
|
||||||
|
|
||||||
const filteredPlugins = plugins.filter(p =>
|
const filteredPlugins = plugins.filter(p =>
|
||||||
p.name.toLowerCase().includes(searchQuery.toLowerCase()) ||
|
p.name.toLowerCase().includes(searchQuery.toLowerCase()) ||
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
import { useState, useEffect } from 'react'
|
import { useState, useEffect } from 'react'
|
||||||
import { invoke } from '@tauri-apps/api/tauri'
|
|
||||||
import {
|
import {
|
||||||
Settings2,
|
Settings2,
|
||||||
Keyboard,
|
Keyboard,
|
||||||
|
|
@ -18,7 +17,7 @@ interface SettingSection {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function Settings() {
|
export default function Settings() {
|
||||||
const { settings, updateSetting, loadSettings } = useAppStore()
|
const { settings, updateSetting } = useAppStore()
|
||||||
const [activeSection, setActiveSection] = useState('general')
|
const [activeSection, setActiveSection] = useState('general')
|
||||||
const [localSettings, setLocalSettings] = useState(settings)
|
const [localSettings, setLocalSettings] = useState(settings)
|
||||||
const [hasChanges, setHasChanges] = useState(false)
|
const [hasChanges, setHasChanges] = useState(false)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue