From 56b9ce3a849617297bd1f0b3c6e9f58a69bbb764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20=C3=96zt=C3=BCrk?= Date: Tue, 4 Nov 2025 21:51:47 +0300 Subject: [PATCH] =?UTF-8?q?ListFormSeeder=20d=C3=BCzenlemeleri?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Seeds/LanguagesData.json | 6 +++++ .../Seeds/ListFormSeeder_Intranet.cs | 24 ++++++++++++------- .../Seeds/ListFormSeeder_Participant.cs | 4 +--- .../HorizontalMenuDropdownItem.tsx | 1 - 4 files changed, 22 insertions(+), 13 deletions(-) diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/LanguagesData.json b/api/src/Kurs.Platform.DbMigrator/Seeds/LanguagesData.json index 83d43317..bfc06491 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/LanguagesData.json +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/LanguagesData.json @@ -10651,6 +10651,12 @@ "en": "Component Name", "tr": "Bileşen Adı" }, + { + "resourceName": "Platform", + "key": "App.DeveloperKit.ComponentEditor.Dependencies", + "en": "Dependencies", + "tr": "Bağımlılıklar" + }, { "resourceName": "Platform", "key": "App.DeveloperKit.ComponentEditor.Description", diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Intranet.cs b/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Intranet.cs index 5c5be028..7eed7121 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Intranet.cs +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Intranet.cs @@ -1447,7 +1447,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc CultureName = LanguageCodes.En, SourceDbType = DbType.DateTime, FieldName = "PublishDate", - Width = 100, + Width = 125, ListOrderNo = 8, Visible = true, IsActive = true, @@ -1463,7 +1463,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc CultureName = LanguageCodes.En, SourceDbType = DbType.DateTime, FieldName = "ExpiryDate", - Width = 100, + Width = 125, ListOrderNo = 9, Visible = true, IsActive = true, @@ -1842,7 +1842,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc PagerOptionJson = DefaultPagerOptionJson, EditingOptionJson = JsonSerializer.Serialize(new GridEditingDto { - Popup = new GridEditingPopupDto() { Title = AppCodes.Intranet.SocialPost, Width = 500, Height = 400 }, + Popup = new GridEditingPopupDto() { Title = AppCodes.Intranet.SocialPost, Width = 700, Height = 600 }, AllowDeleting = true, AllowAdding = true, AllowUpdating = true, @@ -1858,10 +1858,10 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc new() { Order=1, ColCount=1, ColSpan=2, ItemType="group", Items = [ new EditingFormItemDto { Order = 1, DataField = "EmployeeId", IsRequired = true, EditorType2 = EditorTypes.dxSelectBox }, - new EditingFormItemDto { Order = 2, DataField = "Content", IsRequired = true, EditorType2 = EditorTypes.dxTextArea }, - new EditingFormItemDto { Order = 3, DataField = "LikeCount", IsRequired = true, EditorType2 = EditorTypes.dxNumberBox }, - new EditingFormItemDto { Order = 4, DataField = "IsLiked", IsRequired = true, EditorType2 = EditorTypes.dxCheckBox }, - new EditingFormItemDto { Order = 5, DataField = "IsOwnPost", IsRequired = true, EditorType2 = EditorTypes.dxCheckBox } + new EditingFormItemDto { Order = 2, DataField = "Content", IsRequired = true, EditorType2 = EditorTypes.dxHtmlEditor, EditorOptions = EditorOptionValues.HtmlEditorOptions }, + new EditingFormItemDto { Order = 3, DataField = "LikeCount", EditorType2 = EditorTypes.dxNumberBox }, + new EditingFormItemDto { Order = 4, DataField = "IsLiked", EditorType2 = EditorTypes.dxCheckBox }, + new EditingFormItemDto { Order = 5, DataField = "IsOwnPost", EditorType2 = EditorTypes.dxCheckBox } ]} }), CommandColumnJson = JsonSerializer.Serialize(new CommandColumnDto[] { @@ -1873,6 +1873,12 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc Url="/admin/list/list-employees/@Id" }, }), + FormFieldsDefaultValueJson = JsonSerializer.Serialize(new FieldsDefaultValue[] + { + new() { FieldName = "LikeCount", FieldDbType = DbType.Int32, Value = "0", CustomValueType = FieldCustomValueTypeEnum.Value }, + new() { FieldName = "IsLiked", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value }, + new() { FieldName = "IsOwnPost", FieldDbType = DbType.Boolean, Value = "true", CustomValueType = FieldCustomValueTypeEnum.Value } + }) } ); @@ -1899,7 +1905,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc CultureName = LanguageCodes.En, SourceDbType = DbType.Guid, FieldName = "EmployeeId", - Width = 100, + Width = 150, ListOrderNo = 2, Visible = true, IsActive = true, @@ -1922,7 +1928,7 @@ public class ListFormSeeder_Intranet : IDataSeedContributor, ITransientDependenc CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Content", - Width = 800, + Width = 900, ListOrderNo = 3, Visible = true, IsActive = true, diff --git a/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Participant.cs b/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Participant.cs index 45c82fd5..6e370be6 100644 --- a/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Participant.cs +++ b/api/src/Kurs.Platform.DbMigrator/Seeds/ListFormSeeder_Participant.cs @@ -13,8 +13,6 @@ using Volo.Abp.Data; using Volo.Abp.DependencyInjection; using Volo.Abp.Domain.Repositories; using Volo.Abp.Identity; -using Volo.Abp.TenantManagement; -using AbpIdentity = Kurs.Platform.Data.Seeds.SeedConsts.AbpIdentity; using AppCodes = Kurs.Platform.Data.Seeds.SeedConsts.AppCodes; using static Kurs.Platform.PlatformConsts; using static Kurs.Platform.PlatformSeeder.SeederDefaults; @@ -430,7 +428,7 @@ public class ListFormSeeder_Participant : IDataSeedContributor, ITransientDepend CultureName = LanguageCodes.En, SourceDbType = DbType.String, FieldName = "Name", - Width = 250, + Width = 500, ListOrderNo = 2, Visible = true, IsActive = true, diff --git a/ui/src/components/template/HorizontalMenuContent/HorizontalMenuDropdownItem.tsx b/ui/src/components/template/HorizontalMenuContent/HorizontalMenuDropdownItem.tsx index c9d4d0d3..c21f8b5b 100644 --- a/ui/src/components/template/HorizontalMenuContent/HorizontalMenuDropdownItem.tsx +++ b/ui/src/components/template/HorizontalMenuContent/HorizontalMenuDropdownItem.tsx @@ -1,6 +1,5 @@ import Dropdown from '@/components/ui/Dropdown' import HorizontalMenuNavLink from './HorizontalMenuNavLink' -import classNames from 'classnames' export type HorizontalMenuItemProps = { nav: {