From 08a2297a66e598f428caed006248b2280a2d5eb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20=C3=96zt=C3=BCrk?= Date: Tue, 19 May 2026 23:22:25 +0300 Subject: [PATCH] =?UTF-8?q?Dark=20mod=20t=C3=BCm=20komponentlere=20eklendi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Seeds/LanguagesData.json | 6 + .../Queries/QueryManager.cs | 1 - .../Seeds/TenantData.json | 2 +- .../codeLayout/ComponentSelector.tsx | 8 +- ui/src/components/codeLayout/PanelManager.tsx | 24 +-- .../components/codeLayout/PropertyPanel.tsx | 58 +++---- ui/src/components/codeLayout/Splitter.tsx | 8 +- ui/src/components/common/Widget.tsx | 40 +++-- .../componentEditor/ComponentPreview.tsx | 6 +- .../componentEditor/DynamicRenderer.tsx | 2 +- ui/src/components/ui/Widget/Widget.tsx | 40 +++-- .../views/admin/activityLog/ActivityLog.tsx | 12 +- .../admin/activityLog/components/Log.tsx | 11 +- .../activityLog/components/LogFilter.tsx | 8 +- .../views/admin/auditLog/AuditLogDetail.tsx | 108 ++++++------ ui/src/views/admin/hr/OrgChart.tsx | 28 ++-- ui/src/views/admin/listForm/edit/FormEdit.tsx | 4 +- ui/src/views/admin/listForm/wizard/Wizard.tsx | 1 - .../admin/listForm/wizard/WizardStep1.tsx | 8 +- .../admin/listForm/wizard/WizardStep3.tsx | 6 +- .../admin/role-management/RolesPermission.tsx | 6 +- .../admin/user-management/UsersPermission.tsx | 6 +- ui/src/views/admin/videoroom/Dashboard.tsx | 22 +-- ui/src/views/admin/videoroom/RoomList.tsx | 95 +++++------ ui/src/views/auth/Login.tsx | 5 +- .../developerKit/ComponentCodeLayout.tsx | 14 +- ui/src/views/developerKit/ComponentEditor.tsx | 74 +++++---- .../views/developerKit/ComponentManager.tsx | 36 ++-- .../developerKit/CrudEndpointManager.tsx | 112 ++++++------- .../developerKit/DynamicServiceEditor.tsx | 155 ++++++++++++------ .../developerKit/DynamicServiceManager.tsx | 40 ++--- .../views/developerKit/SqlObjectExplorer.tsx | 4 +- ui/src/views/developerKit/SqlQueryManager.tsx | 2 +- ui/src/views/developerKit/SqlResultsGrid.tsx | 2 +- .../developerKit/SqlTableDesignerDialog.tsx | 2 +- ui/src/views/forum/Forum.tsx | 4 +- ui/src/views/forum/Management.tsx | 4 +- ui/src/views/forum/admin/AdminView.tsx | 12 +- .../views/forum/admin/CategoryManagement.tsx | 50 +++--- ui/src/views/forum/admin/Dashboard.tsx | 10 +- ui/src/views/forum/admin/PostManagement.tsx | 38 ++--- ui/src/views/forum/admin/TopicManagement.tsx | 52 +++--- ui/src/views/forum/forum/CreatePostModal.tsx | 8 +- ui/src/views/forum/forum/CreateTopicModal.tsx | 10 +- .../views/forum/forum/ForumCategoryCard.tsx | 14 +- ui/src/views/forum/forum/ForumPostCard.tsx | 16 +- ui/src/views/forum/forum/ForumTopicCard.tsx | 18 +- ui/src/views/forum/forum/ForumView.tsx | 34 ++-- ui/src/views/forum/forum/SearchModal.tsx | 50 +++--- .../views/intranet/SocialWall/CreatePost.tsx | 13 +- .../intranet/SocialWall/LocationPicker.tsx | 8 +- ui/src/views/intranet/widgets/Surveys.tsx | 52 +++--- ui/src/views/menu/MenuItemComponent.tsx | 50 +++--- ui/src/views/menu/MenuManager.tsx | 34 ++-- ui/src/views/menu/SortableMenuTree.tsx | 22 +-- .../views/public/designer/DesignerDrawer.tsx | 24 +-- 56 files changed, 782 insertions(+), 697 deletions(-) diff --git a/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json b/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json index e35b670..9a804e6 100644 --- a/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json +++ b/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json @@ -18188,6 +18188,12 @@ "en": "Data Source", "tr": "Veri Kaynağı" }, + { + "resourceName": "Platform", + "key": "App.DeveloperKit.CrudEndpoints.DataSourceDescription", + "en": "Data source of the CRUD endpoints", + "tr": "CRUD endpointlerinin veri kaynağı" + }, { "resourceName": "Platform", "key": "App.DeveloperKit.CrudEndpoints.Loading", diff --git a/api/src/Sozsoft.Platform.Domain/Queries/QueryManager.cs b/api/src/Sozsoft.Platform.Domain/Queries/QueryManager.cs index b15cb16..4c8dca5 100644 --- a/api/src/Sozsoft.Platform.Domain/Queries/QueryManager.cs +++ b/api/src/Sozsoft.Platform.Domain/Queries/QueryManager.cs @@ -226,7 +226,6 @@ public class QueryManager : PlatformDomainService, IQueryManager }; } sql = $"DELETE FROM \"{listForm.SelectCommand}\" WHERE {where}"; - Console.WriteLine(sql); } } diff --git a/api/src/Sozsoft.Platform.EntityFrameworkCore/Seeds/TenantData.json b/api/src/Sozsoft.Platform.EntityFrameworkCore/Seeds/TenantData.json index 07cfce9..f77fc50 100644 --- a/api/src/Sozsoft.Platform.EntityFrameworkCore/Seeds/TenantData.json +++ b/api/src/Sozsoft.Platform.EntityFrameworkCore/Seeds/TenantData.json @@ -349,7 +349,7 @@ "CustomComponents": [ { "name": "DynamicEntityComponent", - "code": "import React, { useEffect, useState } from \"react\";\nimport axios from \"axios\";\n\ninterface DynamicEntityComponentProps {\n title: string;\n}\n\nconst api = axios.create({\n baseURL: \"https://localhost:44344\", // defaults'ı her seferinde set etme\n});\n\nconst DynamicEntityComponent: React.FC = ({ title }) => {\n const [data, setData] = useState>([]);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState(null);\n\n useEffect(() => {\n const fetchData = async () => {\n setLoading(true);\n setError(null);\n\n try {\n const res = await api.get(`/api/app/crudendpoint/${title}`);\n const raw = Array.isArray(res.data) ? res.data : res.data?.items ?? [];\n\n const filtered = raw.map((item: any) => ({\n id: item.Id ?? item.id,\n name: item.Name ?? item.name,\n }));\n\n setData(filtered);\n } catch (err: any) {\n setError(err.message || \"Failed to fetch data\");\n } finally {\n setLoading(false);\n }\n };\n\n if (title) fetchData();\n }, [title]);\n\n if (loading) return
Loading...
;\n if (error) return
Error: {error}
;\n if (!data.length) return
No records found
;\n\n const headers = [\"id\", \"name\", \"actions\"];\n\n return (\n
\n \n \n \n {headers.map((key) => (\n \n {key === \"actions\" ? \"Actions\" : key}\n \n ))}\n \n \n \n {data.map((item, rowIndex) => (\n \n \n \n \n \n ))}\n \n
\n {item.id}\n \n {item.name}\n \n alert(item.name)}\n className=\"bg-blue-600 hover:bg-blue-700 text-white text-sm px-3 py-1 rounded-lg shadow-sm transition\"\n >\n Show Name\n \n
\n
\n );\n};\n\nexport default DynamicEntityComponent;", + "code": "import React, { useEffect, useState } from \"react\";\nimport axios from \"axios\";\n\ninterface DynamicEntityComponentProps {\n title: string;\n}\n\nconst api = axios.create({\n baseURL: \"https://localhost:44344\",\n});\n\nconst DynamicEntityComponent: React.FC = ({ title }) => {\n const [data, setData] = useState>([]);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState(null);\n\n useEffect(() => {\n const fetchData = async () => {\n setLoading(true);\n setError(null);\n\n try {\n const res = await api.get(`/api/app/crudendpoint/${title}`);\n const raw = Array.isArray(res.data) ? res.data : res.data?.items ?? [];\n\n const filtered = raw.map((item: any) => ({\n id: item.Id ?? item.id,\n name: item.Name ?? item.name,\n }));\n\n setData(filtered);\n } catch (err: any) {\n setError(err.message || \"Failed to fetch data\");\n } finally {\n setLoading(false);\n }\n };\n\n if (title) fetchData();\n }, [title]);\n\n if (loading) return
Loading...
;\n if (error) return
Error: {error}
;\n if (!data.length) return
No records found
;\n\n const headers = [\"id\", \"name\", \"actions\"];\n\n return (\n
\n \n \n \n {headers.map((key) => (\n \n {key === \"actions\" ? \"Actions\" : key}\n \n ))}\n \n \n \n {data.map((item, rowIndex) => (\n \n \n \n \n \n ))}\n \n
\n {item.id}\n \n {item.name}\n \n alert(item.name)}\n className=\"bg-blue-600 hover:bg-blue-700 dark:bg-blue-800 dark:hover:bg-blue-900 text-white text-sm px-3 py-1 rounded-lg shadow-sm transition\"\n >\n Show Name\n \n
\n
\n );\n};\n\nexport default DynamicEntityComponent;", "props": null, "description": null, "isActive": true, diff --git a/ui/src/components/codeLayout/ComponentSelector.tsx b/ui/src/components/codeLayout/ComponentSelector.tsx index bb96056..434c876 100644 --- a/ui/src/components/codeLayout/ComponentSelector.tsx +++ b/ui/src/components/codeLayout/ComponentSelector.tsx @@ -16,16 +16,16 @@ const ComponentSelector: React.FC = ({ onRefresh }) => { return ( -
+
-