From 3eba44072cf19d5495ee37b556d488dc10b0122e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20=C3=96ZT=C3=9CRK?= <76204082+iamsedatozturk@users.noreply.github.com> Date: Tue, 12 May 2026 15:49:25 +0300 Subject: [PATCH] =?UTF-8?q?Widget=20d=C3=B6n=C3=BC=C5=9F=C3=BCmleri?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Seeds/LanguagesData.json | 66 +++++++++++++ .../views/developerKit/ComponentManager.tsx | 65 +++++-------- .../developerKit/CrudEndpointManager.tsx | 77 +++++++-------- .../developerKit/DynamicServiceManager.tsx | 96 ++++++++----------- 4 files changed, 165 insertions(+), 139 deletions(-) diff --git a/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json b/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json index 49691e4..92bae80 100644 --- a/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json +++ b/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json @@ -8970,18 +8970,36 @@ "en": "Total Components", "tr": "Toplam Bileşen" }, + { + "resourceName": "Platform", + "key": "App.DeveloperKit.Component.TotalDescription", + "en": "Total number of custom React components created", + "tr": "Oluşturulan özel React bileşenlerinin toplam sayısı" + }, { "resourceName": "Platform", "key": "App.DeveloperKit.Component.Active", "en": "Active Components", "tr": "Aktif Bileşenler" }, + { + "resourceName": "Platform", + "key": "App.DeveloperKit.Component.ActiveDescription", + "en": "Total number of active custom React components", + "tr": "Aktif özel React bileşenlerinin toplam sayısı" + }, { "resourceName": "Platform", "key": "App.DeveloperKit.Component.Inactive", "en": "Inactive Components", "tr": "Pasif Bileşenler" }, + { + "resourceName": "Platform", + "key": "App.DeveloperKit.Component.InactiveDescription", + "en": "Total number of inactive custom React components", + "tr": "Pasif özel React bileşenlerinin toplam sayısı" + }, { "resourceName": "Platform", "key": "App.DeveloperKit.Component.SearchPlaceholder", @@ -16382,6 +16400,12 @@ "en": "Total", "tr": "Toplam" }, + { + "resourceName": "Platform", + "key": "App.Listform.ListformField.TotalDescription", + "en": "Total number of items", + "tr": "Toplam öğe sayısı" + }, { "resourceName": "Platform", "key": "App.Listform.ListformField.TotalAmount", @@ -17948,18 +17972,36 @@ "en": "Total Tables", "tr": "Toplam Tablo" }, + { + "resourceName": "Platform", + "key": "App.DeveloperKit.CrudEndpoints.TotalTablesDescription", + "en": "Number of total tables", + "tr": "Toplam tabloların sayısı" + }, { "resourceName": "Platform", "key": "App.DeveloperKit.CrudEndpoints.EndpointInstalled", "en": "Endpoint Installed", "tr": "Endpoint Kurulu" }, + { + "resourceName": "Platform", + "key": "App.DeveloperKit.CrudEndpoints.EndpointInstalledDescription", + "en": "Number of installed endpoints", + "tr": "Kurulu endpointlerin sayısı" + }, { "resourceName": "Platform", "key": "App.DeveloperKit.CrudEndpoints.ActiveEndpoint", "en": "Active Endpoint", "tr": "Aktif Endpoint" }, + { + "resourceName": "Platform", + "key": "App.DeveloperKit.CrudEndpoints.ActiveEndpointDescription", + "en": "Number of active endpoints", + "tr": "Aktif endpointlerin sayısı" + }, { "resourceName": "Platform", "key": "App.DeveloperKit.CrudEndpoints.DataSource", @@ -18134,24 +18176,48 @@ "en": "Successful", "tr": "Başarılı" }, + { + "resourceName": "Platform", + "key": "App.DeveloperKit.DynamicServices.SuccessfulDescription", + "en": "Number of successful services", + "tr": "Başarılı servislerin sayısı" + }, { "resourceName": "Platform", "key": "App.DeveloperKit.DynamicServices.Failed", "en": "Failed", "tr": "Başarısız" }, + { + "resourceName": "Platform", + "key": "App.DeveloperKit.DynamicServices.FailedDescription", + "en": "Number of failed services", + "tr": "Başarısız servislerin sayısı" + }, { "resourceName": "Platform", "key": "App.DeveloperKit.DynamicServices.Active", "en": "Active", "tr": "Aktif" }, + { + "resourceName": "Platform", + "key": "App.DeveloperKit.DynamicServices.ActiveDescription", + "en": "Number of active services", + "tr": "Aktif servislerin sayısı" + }, { "resourceName": "Platform", "key": "App.DeveloperKit.DynamicServices.Passive", "en": "Passive", "tr": "Pasif" }, + { + "resourceName": "Platform", + "key": "App.DeveloperKit.DynamicServices.PassiveDescription", + "en": "Number of passive services", + "tr": "Pasif servislerin sayısı" + }, { "resourceName": "Platform", "key": "App.DeveloperKit.DynamicServices.SearchPlaceholder", diff --git a/ui/src/views/developerKit/ComponentManager.tsx b/ui/src/views/developerKit/ComponentManager.tsx index 1ea121f..07b2e3b 100644 --- a/ui/src/views/developerKit/ComponentManager.tsx +++ b/ui/src/views/developerKit/ComponentManager.tsx @@ -10,10 +10,8 @@ import { FaEyeSlash, FaFilter, FaCalendarAlt, - FaPuzzlePiece, - FaCheckCircle, - FaTimesCircle, } from 'react-icons/fa' +import Widget from '@/components/common/Widget' import { ROUTES_ENUM } from '@/routes/route.constant' import { useLocalization } from '@/utils/hooks/useLocalization' import { Loading } from '../../components/shared' @@ -31,30 +29,6 @@ const ComponentManager: React.FC = () => { const inactiveComponents = totalComponents - activeComponents const { translate } = useLocalization() - const stats = [ - { - name: translate('::App.DeveloperKit.Component.Total'), - value: totalComponents, - icon: FaPuzzlePiece, - color: 'text-purple-600', - bgColor: 'bg-purple-100', - }, - { - name: translate('::App.DeveloperKit.Component.Active'), - value: activeComponents, - icon: FaCheckCircle, - color: 'text-emerald-600', - bgColor: 'bg-emerald-100', - }, - { - name: translate('::App.DeveloperKit.Component.Inactive'), - value: inactiveComponents, - icon: FaTimesCircle, - color: 'text-slate-600', - bgColor: 'bg-slate-100', - }, - ] - const filteredComponents = components?.filter((component) => { const matchesSearch = component.name.toLowerCase().includes(searchTerm.toLowerCase()) || @@ -98,19 +72,30 @@ const ComponentManager: React.FC = () => { >
- {stats.map((stat, index) => ( -
-
-
-

{stat.name}

-

{stat.value}

-
-
- -
-
-
- ))} + + +
{/* Filters */} diff --git a/ui/src/views/developerKit/CrudEndpointManager.tsx b/ui/src/views/developerKit/CrudEndpointManager.tsx index aa3f5e1..f679a92 100644 --- a/ui/src/views/developerKit/CrudEndpointManager.tsx +++ b/ui/src/views/developerKit/CrudEndpointManager.tsx @@ -19,6 +19,7 @@ import { FaServer, } from 'react-icons/fa' import { useLocalization } from '@/utils/hooks/useLocalization' +import Widget from '@/components/common/Widget' import { getDataSources } from '@/services/data-source.service' import { sqlObjectManagerService } from '@/services/sql-query-manager.service' import { developerKitService } from '@/services/developerKit.service' @@ -325,50 +326,38 @@ const CrudEndpointManager: React.FC = () => { {/* Stats Row */}
-
-
-
-

{translate('::App.DeveloperKit.CrudEndpoints.TotalTables')}

-

{dbTables.length}

-
-
- -
-
-
-
-
-
-

{translate('::App.DeveloperKit.CrudEndpoints.EndpointInstalled')}

-

{tablesWithEndpoints}

-
-
- -
-
-
-
-
-
-

{translate('::App.DeveloperKit.CrudEndpoints.ActiveEndpoint')}

-

{totalActiveEndpoints}

-
-
- -
-
-
-
-
-
-

{translate('::App.DeveloperKit.CrudEndpoints.DataSource')}

-

{dataSources.length}

-
-
- -
-
-
+ + + +
{/* Main two-panel layout */} diff --git a/ui/src/views/developerKit/DynamicServiceManager.tsx b/ui/src/views/developerKit/DynamicServiceManager.tsx index 8118505..791158f 100644 --- a/ui/src/views/developerKit/DynamicServiceManager.tsx +++ b/ui/src/views/developerKit/DynamicServiceManager.tsx @@ -5,16 +5,13 @@ import { FaSearch, FaRegEdit, FaTrashAlt, - FaCheckCircle, - FaTimesCircle, FaFilter, FaCalendarAlt, FaCode, FaSpinner, FaExternalLinkAlt, - FaArrowDown, - FaArrowUp, } from 'react-icons/fa' +import Widget from '@/components/common/Widget' import { useLocalization } from '@/utils/hooks/useLocalization' import { dynamicServiceService, type DynamicServiceDto } from '@/services/dynamicService.service' import { Helmet } from 'react-helmet' @@ -61,44 +58,6 @@ const DynamicServiceManager: React.FC = () => { const activeServices = services.filter((s) => s.isActive).length const inactiveServices = services.filter((s) => !s.isActive).length - const stats = [ - { - name: translate('::App.Listform.ListformField.Total'), - value: totalServices, - icon: FaCode, - color: 'text-purple-600', - bgColor: 'bg-purple-100', - }, - { - name: translate('::App.DeveloperKit.DynamicServices.Successful'), - value: successServices, - icon: FaCheckCircle, - color: 'text-emerald-600', - bgColor: 'bg-emerald-100', - }, - { - name: translate('::App.DeveloperKit.DynamicServices.Failed'), - value: failedServices, - icon: FaTimesCircle, - color: 'text-red-600', - bgColor: 'bg-red-100', - }, - { - name: translate('::App.DeveloperKit.DynamicServices.Active'), - value: activeServices, - icon: FaArrowUp, - color: 'text-emerald-600', - bgColor: 'bg-blue-300', - }, - { - name: translate('::App.DeveloperKit.DynamicServices.Passive'), - value: inactiveServices, - icon: FaArrowDown, - color: 'text-emerald-600', - bgColor: 'bg-green-400', - }, - ] - const filteredServices = services.filter((service) => { const matchesSearch = service.name.toLowerCase().includes(searchTerm.toLowerCase()) || @@ -127,19 +86,46 @@ const DynamicServiceManager: React.FC = () => { {/* Stats */}
- {stats.map((stat, index) => ( -
-
-
-

{stat.name}

-

{stat.value}

-
-
- -
-
-
- ))} + + + + +
{/* Toolbar */}