chore: 清理 3 处 unused-vars 回归 (BuildNodesManager/DeployRBAC/ToolConfigTab)
- BuildNodesManager.tsx: 移除未使用 Server import - DeployRBAC.tsx: 移除未使用 Save import - ToolConfigTab.tsx: 移除未使用 useTranslation + t 变量 - ESLint unused: 3 → 0, any: 37 (稳定), tsc -b=0, npm build ✓
This commit is contained in:
1 parent
8cbe3aadec
commit
be2cff5745
3 files changed
+2
-4
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { useState, useEffect, useCallback } from 'react';
|
||||
import { Plus, Pencil, Trash2, RefreshCw, Server, Cpu } from 'lucide-react';
|
||||
import { Plus, Pencil, Trash2, RefreshCw, Cpu } from 'lucide-react';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useState, useEffect, useMemo } from 'react';
|
||||
import { Shield, Plus, Trash2, Save, Loader2, Users, GitBranch, UserPlus, Check, X } from 'lucide-react';
|
||||
import { Shield, Plus, Trash2, Loader2, Users, GitBranch, UserPlus, Check, X } from 'lucide-react';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Input } from '@/components/ui/input';
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { useState, useEffect } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { RefreshCw, Loader2, Download, CheckCircle, XCircle, Clock, Settings2, ChevronDown, Trash2 } from 'lucide-react';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
@@ -35,7 +34,6 @@ const categoryColor: Record<string, string> = {
|
||||
const VERSIONED_TOOLS = ['jdk', 'golang', 'nodejs', 'maven', 'nvm'];
|
||||
|
||||
export default function ToolConfigTab() {
|
||||
const { t } = useTranslation();
|
||||
const confirm = useConfirm();
|
||||
const [tools, setTools] = useState<ToolConfig[]>([]);
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
||||
Reference in new issue
Block a user