diff --git a/frontend/package-lock.json b/frontend/package-lock.json index eaaff35..e0a6c40 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -37,7 +37,6 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "react-hook-form": "^7.49.2", - "react-hot-toast": "^2.4.1", "react-icons": "^4.12.0", "react-router-dom": "^6.20.1", "sonner": "^2.0.7", @@ -3749,6 +3748,7 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", + "devOptional": true, "license": "MIT" }, "node_modules/d3-color": { @@ -4682,15 +4682,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/goober": { - "version": "2.1.18", - "resolved": "https://registry.npmjs.org/goober/-/goober-2.1.18.tgz", - "integrity": "sha512-2vFqsaDVIT9Gz7N6kAL++pLpp41l3PfDuusHcjnGLfR6+huZkl6ziX+zgVC3ZxpqWhzH6pyDdGrCeDhMIvwaxw==", - "license": "MIT", - "peerDependencies": { - "csstype": "^3.0.10" - } - }, "node_modules/gopd": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", @@ -5706,23 +5697,6 @@ "react": "^16.8.0 || ^17 || ^18 || ^19" } }, - "node_modules/react-hot-toast": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/react-hot-toast/-/react-hot-toast-2.6.0.tgz", - "integrity": "sha512-bH+2EBMZ4sdyou/DPrfgIouFpcRLCJ+HoCA32UoAYHn6T3Ur5yfcDCeSr5mwldl6pFOsiocmrXMuoCJ1vV8bWg==", - "license": "MIT", - "dependencies": { - "csstype": "^3.1.3", - "goober": "^2.1.16" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "react": ">=16", - "react-dom": ">=16" - } - }, "node_modules/react-icons": { "version": "4.12.0", "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-4.12.0.tgz", diff --git a/frontend/package.json b/frontend/package.json index 19c8ca4..ff495e9 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -43,7 +43,6 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "react-hook-form": "^7.49.2", - "react-hot-toast": "^2.4.1", "react-icons": "^4.12.0", "react-router-dom": "^6.20.1", "sonner": "^2.0.7", diff --git a/frontend/src/index.css b/frontend/src/index.css index e98e11c..1a6fd84 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -57,28 +57,3 @@ } } -@layer components { - .btn { - @apply px-4 py-2 rounded-lg font-medium transition-all duration-200; - } - - .btn-primary { - @apply bg-primary-600 text-white hover:bg-primary-700 active:bg-primary-800; - } - - .btn-secondary { - @apply bg-gray-200 text-gray-800 hover:bg-gray-300 active:bg-gray-400; - } - - .btn-danger { - @apply bg-red-600 text-white hover:bg-red-700 active:bg-red-800; - } - - .input-custom { - @apply px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent; - } - - .card-custom { - @apply bg-white rounded-lg shadow-sm border border-gray-200; - } -} diff --git a/frontend/src/pages/EndpointEditor.tsx b/frontend/src/pages/EndpointEditor.tsx index 8fd3f51..cff2781 100644 --- a/frontend/src/pages/EndpointEditor.tsx +++ b/frontend/src/pages/EndpointEditor.tsx @@ -3,7 +3,7 @@ import { useParams, useNavigate, useSearchParams } from 'react-router-dom'; import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query'; import { endpointsApi, foldersApi, databasesApi, versionsApi, giteaApi } from '@/services/api'; import { EndpointParameter, QueryTestResult, LogEntry, QueryExecution, EndpointVersion } from '@/types'; -import { Plus, Trash2, Play, Edit2, ChevronDown, ChevronUp, ArrowLeft, CheckCircle, XCircle, Clock, Copy, X, Terminal, History, RotateCcw, Upload, GitBranch } from 'lucide-react'; +import { Plus, Trash2, Play, Edit2, ChevronDown, ChevronUp, ArrowLeft, CheckCircle, XCircle, Clock, Copy, X, Terminal, History, RotateCcw, Upload } from 'lucide-react'; import { toast } from 'sonner'; import SqlEditor from '@/components/SqlEditor'; import CodeEditor from '@/components/CodeEditor'; @@ -903,35 +903,35 @@ export default function EndpointEditor() { {/* Form buttons */}
- + {isEditing && ( - + )} - - +
@@ -941,7 +941,7 @@ export default function EndpointEditor() {
{/* Test parameters */} {formData.parameters.length > 0 && ( -
+
@@ -956,7 +956,7 @@ export default function EndpointEditor() { onChange(e.target.value)} className="input w-full"> +