From 05b9f5f4a8e8b33f538e9195e57bd58ac30d4722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20=C3=96ZT=C3=9CRK?= <76204082+iamsedatozturk@users.noreply.github.com> Date: Fri, 31 Oct 2025 12:20:39 +0300 Subject: [PATCH] =?UTF-8?q?Developer=20Kit=20tasar=C4=B1m=20d=C3=BCzenleme?= =?UTF-8?q?si?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Seeds/LanguagesData.json | 6 - ui/src/components/developerKit/ApiManager.tsx | 120 ++++++++++-------- .../developerKit/ComponentManager.tsx | 86 ++++++------- ui/src/components/developerKit/Dashboard.tsx | 22 ++-- .../developerKit/MigrationManager.tsx | 114 +++++++++-------- 5 files changed, 179 insertions(+), 169 deletions(-) diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/LanguagesData.json b/api/src/Kurs.Platform.DbMigrator/Seeds/LanguagesData.json index 6a941305..45f540d5 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/LanguagesData.json +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/LanguagesData.json @@ -9613,12 +9613,6 @@ "en": "Props:", "tr": "Özellikler:" }, - { - "resourceName": "Platform", - "key": "App.DeveloperKit.Component.DateNotAvailable", - "en": "N/A", - "tr": "Yok" - }, { "resourceName": "Platform", "key": "App.DeveloperKit.Component.Status.Active", diff --git a/ui/src/components/developerKit/ApiManager.tsx b/ui/src/components/developerKit/ApiManager.tsx index 06eee634..15cba307 100644 --- a/ui/src/components/developerKit/ApiManager.tsx +++ b/ui/src/components/developerKit/ApiManager.tsx @@ -14,8 +14,8 @@ import { FaPaperPlane, FaPlusCircle, FaEdit, - FaTrash -} from 'react-icons/fa'; + FaTrash, +} from 'react-icons/fa' import { useLocalization } from '@/utils/hooks/useLocalization' interface EndpointType { @@ -372,9 +372,7 @@ const ApiManager: React.FC = () => {

{translate('::App.DeveloperKit.Endpoint.Title')}

-

- {translate('::App.DeveloperKit.Endpoint.Description')} -

+

{translate('::App.DeveloperKit.Endpoint.Description')}

@@ -385,16 +383,14 @@ const ApiManager: React.FC = () => {
{/* Stats Cards */} -
+

{translate('::App.DeveloperKit.Endpoint.GeneratedCrud')}

-

- {stats.generated} -

+

{stats.generated}

@@ -456,42 +452,40 @@ const ApiManager: React.FC = () => {
{/* Filters */} -
-
-
- - setSearchTerm(e.target.value)} - className="w-full pl-10 pr-4 py-2 border border-slate-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-colors" - /> -
-
-
- - -
+
+
+ + setSearchTerm(e.target.value)} + className="w-full pl-10 pr-4 py-2 border border-slate-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-colors" + /> +
+
+
+ +
{/* Endpoints List */} {filteredEndpoints.length > 0 ? ( -
+
{filteredEndpoints.map((endpoint) => (
{ }} >
+ {/* Sol taraf */}
{ {endpoint.path}
-
- {endpoint.type === 'generated' && ( - - {translate('::App.DeveloperKit.Endpoint.AutoGenerated')} - - )} +
+ + {/* Sağ taraf */} +
+ {endpoint.type === 'generated' && ( + + {translate('::App.DeveloperKit.Endpoint.AutoGenerated')} + + )} + +
+ + + {translate('::App.DeveloperKit.Endpoint.Active')} +
-
- - {translate('::App.DeveloperKit.Endpoint.Active')} -
+ {endpoint.description && (

{endpoint.description}

)} @@ -543,10 +544,12 @@ const ApiManager: React.FC = () => { {/* Expanded Details */} {selectedEndpoint === endpoint.id && (
-
+
{/* Request Details */}
-

{translate('::App.DeveloperKit.Endpoint.RequestTitle')}

+

+ {translate('::App.DeveloperKit.Endpoint.RequestTitle')} +