From 50c658bac46a650c0c1f988b0da030f021eb410e Mon Sep 17 00:00:00 2001 From: Salih Date: Mon, 17 Jul 2023 09:41:07 +0300 Subject: [PATCH] Refactor --- .../CmsKit/Shared/Components/PopularTags/Default.cshtml | 4 ++-- .../Components/PopularTags/PopularTagsViewComponent.cs | 9 +++++++-- .../CmsKit/Shared/Components/PopularTags/default.css | 4 ++++ 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/PopularTags/default.css diff --git a/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/PopularTags/Default.cshtml b/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/PopularTags/Default.cshtml index f040515b52..8e34c45f43 100644 --- a/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/PopularTags/Default.cshtml +++ b/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/PopularTags/Default.cshtml @@ -12,14 +12,14 @@ { if (Model.UrlFormat.IsNullOrWhiteSpace()) { - + @tag.Name } else { - + @tag.Name diff --git a/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/PopularTags/PopularTagsViewComponent.cs b/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/PopularTags/PopularTagsViewComponent.cs index c12def65e8..f3dc84a832 100644 --- a/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/PopularTags/PopularTagsViewComponent.cs +++ b/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/PopularTags/PopularTagsViewComponent.cs @@ -1,12 +1,17 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Volo.Abp.AspNetCore.Mvc; +using Volo.Abp.AspNetCore.Mvc.UI.Widgets; using Volo.CmsKit.Tags; namespace Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.PopularTags; +[Widget( + StyleFiles = new[] + { + "/Pages/CmsKit/Shared/Components/PopularTags/default.css" + })] public class PopularTagsViewComponent : AbpViewComponent { private readonly ITagAppService _tagAppService; diff --git a/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/PopularTags/default.css b/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/PopularTags/default.css new file mode 100644 index 0000000000..23fbefbecc --- /dev/null +++ b/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/PopularTags/default.css @@ -0,0 +1,4 @@ +.cmskit-tag { + background: #eeedf7; + color: #766bc8 +} \ No newline at end of file