mirror of https://github.com/abpframework/abp.git
7 changed files with 19 additions and 68 deletions
@ -1,13 +1,9 @@ |
|||||
using Microsoft.AspNetCore.Authorization; |
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages; |
using Microsoft.AspNetCore.Mvc.RazorPages; |
||||
|
|
||||
namespace Volo.CmsKit.Pages |
namespace Volo.CmsKit.Pages |
||||
{ |
{ |
||||
[Authorize] |
|
||||
public class IndexModel : PageModel |
public class IndexModel : PageModel |
||||
{ |
{ |
||||
public void OnGet() |
|
||||
{ |
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,39 +0,0 @@ |
|||||
@page |
|
||||
@using Localization.Resources.AbpUi |
|
||||
@using Microsoft.Extensions.Localization |
|
||||
@using Volo.CmsKit.Pages |
|
||||
@using Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.Commenting |
|
||||
@using Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.ReactionSelection |
|
||||
@model PublicModel |
|
||||
@inject IStringLocalizer<AbpUiResource> Localizer |
|
||||
<h1>CMS Kit DEMO - Public</h1> |
|
||||
|
|
||||
<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> |
|
||||
@await Component.InvokeAsync(typeof(ReactionSelectionViewComponent), new { entityType = "publicQuote", entityId = "1" }) |
|
||||
<hr /> |
|
||||
@await Component.InvokeAsync(typeof(CommentingViewComponent), new { entityType = "publicQuote", entityId = "1", loginUrl = "Account/Login?ReturnUrl=%2Fpublic" }) |
|
||||
</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> |
|
||||
@await Component.InvokeAsync(typeof(CommentingViewComponent), new { entityType = "publicQuote", entityId = "2", loginUrl="Account/Login?ReturnUrl=%2Fpublic" }) |
|
||||
</abp-card> |
|
||||
@ -1,11 +0,0 @@ |
|||||
using Microsoft.AspNetCore.Mvc.RazorPages; |
|
||||
|
|
||||
namespace Volo.CmsKit.Pages |
|
||||
{ |
|
||||
public class PublicModel : PageModel |
|
||||
{ |
|
||||
public void OnGet() |
|
||||
{ |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue