Browse Source

Added example entities.

pull/4779/head
Halil İbrahim Kalkan 6 years ago
parent
commit
3709584f31
  1. 32
      modules/cms-kit/host/Volo.CmsKit.Web.Unified/Pages/Index.cshtml
  2. 1
      modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/ReactionSelection/Default.cshtml

32
modules/cms-kit/host/Volo.CmsKit.Web.Unified/Pages/Index.cshtml

@ -10,4 +10,34 @@
<h2>Reactions</h2>
@await Component.InvokeAsync(typeof(ReactionSelectionViewComponent))
<abp-card class="mb-3">
<abp-card-body>
<abp-blockquote>
<p>
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
</p>
<footer>
Martin Fowler
</footer>
</abp-blockquote>
</abp-card-body>
<abp-card-footer>
@await Component.InvokeAsync(typeof(ReactionSelectionViewComponent), new { entityType = "quote" })
</abp-card-footer>
</abp-card>
<abp-card class="mb-3">
<abp-card-body>
<abp-blockquote>
<p>
Writing code is very simple, but writing simple code is the hardest thing there is!
</p>
<footer>
Halil ibrahim Kalkan <small>(inspired from Johan Cruyff)</small>
</footer>
</abp-blockquote>
</abp-card-body>
<abp-card-footer>
@await Component.InvokeAsync(typeof(ReactionSelectionViewComponent), new { entityType = "quote" })
</abp-card-footer>
</abp-card>

1
modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/ReactionSelection/Default.cshtml

@ -1,5 +1,4 @@
@model Volo.CmsKit.Web.Pages.CmsKit.Shared.Components.ReactionSelection.ReactionSelectionViewModel
<p>EntityType: @Model.EntityType</p>
@foreach (var reaction in Model.Reactions)
{
<cms-icon name="@reaction.Icon" />

Loading…
Cancel
Save