Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<li>
@rendermode InteractiveServer

<li>
<input type="text" @bind-value="@content" placeholder="supports markdown" class="w-100"/>
<button type="button" class="btn btn-default" aria-label="Add Item" @onclick="@AddItemAsync">
<i class="plus" aria-hidden="true"></i>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@using LinkDotNet.Blog.Domain
@using LinkDotNet.Blog.Infrastructure.Persistence
@using LinkDotNet.Blog.Web.Features.Services
@rendermode InteractiveServer

@inject IRepository<ProfileInformationEntry> Repository
@inject ISortOrderCalculator SortOrderCalculator
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using LinkDotNet.Blog.Domain
@rendermode InteractiveServer
@inject IToastService ToastService
<ModalDialog @ref="Dialog" Title="Add Skill">
<EditForm Model="@model" OnValidSubmit="CreateSkillItem">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@using LinkDotNet.Blog.Domain
@using LinkDotNet.Blog.Infrastructure.Persistence
@rendermode InteractiveServer
@inject IRepository<Skill> Repository
<div>
@if (ShowAdminActions)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using LinkDotNet.Blog.Domain
@rendermode InteractiveServer
<span class="skill-tag">
@if (!string.IsNullOrEmpty(Skill.IconUrl))
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using LinkDotNet.Blog.Domain
@rendermode InteractiveServer
<ModalDialog @ref="Dialog" Title="Add Talk">
<EditForm Model="model" OnValidSubmit="CreateTalk">
<DataAnnotationsValidator />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using LinkDotNet.Blog.Domain
@rendermode InteractiveServer

<li class="pb-1">
<div class="row">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@using LinkDotNet.Blog.Domain
@using LinkDotNet.Blog.Infrastructure.Persistence
@rendermode InteractiveServer
@inject IRepository<Talk> Repository

@if (talks.Any() || ShowAdminActions)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@using LinkDotNet.Blog.Web.Features.Services
@using NCronJob
@using System.Threading
@rendermode InteractiveServer
@inject IJSRuntime JSRuntime
@inject ICacheInvalidator CacheInvalidator
@inject IInstantJobRegistry InstantJobRegistry
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@rendermode InteractiveServer

<ModalDialog @ref="FeatureDialog" Title="Additional Features">
<p>Here you will find a comprehensive list over feature you can use additional to classic markdown</p>
<p>Features marked with <i class="lab"></i> are experimental and can change heavily, get removed or the usage
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using LinkDotNet.Blog.Domain
@rendermode InteractiveServer
@inject IToastService ToastService
@inject IJSRuntime JSRuntime
<ModalDialog @ref="ModalDialog" Title="Select shortcode">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using System.Globalization
@rendermode InteractiveServer
<div class="row mb-3">
<div class="col-sm-6 col-md-4 col-sm-6">
<label for="startDate">Since</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@using System.Collections.Immutable
@using System.Diagnostics
@using Microsoft.Extensions.Logging
@rendermode InteractiveServer
@inject IRepository<BlogPost> BlogPostRepository
@inject IRepository<BlogPostRecord> BlogPostRecordRepository
@inject ILogger<VisitCountPerPage> Logger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@page "/dashboard"
@using LinkDotNet.Blog.Web.Features.Admin.Dashboard.Components
@rendermode InteractiveServer
@attribute [Authorize]

<PageTitle>Dashboard</PageTitle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@using LinkDotNet.Blog.Domain
@using LinkDotNet.Blog.Infrastructure
@using LinkDotNet.Blog.Infrastructure.Persistence
@rendermode InteractiveServer
@attribute [Authorize]
@inject IRepository<BlogPost> BlogPostRepository

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@page "/settings"
@using LinkDotNet.Blog.Web.Features.Services
@using NCronJob
@rendermode InteractiveServer
@inject IOptions<ApplicationConfiguration> ApplicationConfiguration
@inject ICacheInvalidator CacheInvalidator
@inject IToastService ToastService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@using System.ComponentModel.DataAnnotations
@using LinkDotNet.Blog.Domain
@using LinkDotNet.Blog.Infrastructure.Persistence
@rendermode InteractiveServer

@inject IRepository<ShortCode> ShortCodeRepository
@inject IToastService ToastService
Expand Down
1 change: 1 addition & 0 deletions src/LinkDotNet.Blog.Web/Features/Bookmarks/Bookmarks.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@page "/bookmarks"
@using LinkDotNet.Blog.Domain
@using LinkDotNet.Blog.Infrastructure.Persistence
@rendermode InteractiveServer
@inject IBookmarkService BookmarkService
@inject IRepository<BlogPost> BlogPostRepository;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@rendermode InteractiveServer

<button type="button" class="btn btn-sm bg-transparent border-0" @onclick="OnBookmarkClicked" title="@(IsBookmarked ? "Remove bookmark" : "Add bookmark")">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="@(IsBookmarked ? "text-warning" : "text-secondary")" viewBox="0 0 16 16">
<path d="@(IsBookmarked ?
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<ModalDialog @ref="ModalDialog" Title="@Title">
@rendermode InteractiveServer

<ModalDialog @ref="ModalDialog" Title="@Title">
<h3>@Content</h3>
<div class="d-flex justify-content-end gap-2 mt-4">
<button id="ok" @onclick="OnYesButtonPressed" type="button" class="btn btn-primary w-100">Ok</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@using Blazorise.Markdown
@using LinkDotNet.Blog.Web.Features.Services.FileUpload
@using IToastService = Blazored.Toast.Services.IToastService
@rendermode InteractiveServer
@inject IJSRuntime JsRuntime
@inject IBlobUploadService BlobUploadService
@inject IToastService ToastService
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<div class="modal @modalClass overflow-auto" tabindex="-1" role="dialog" style="display:@modalDisplay;">
@rendermode InteractiveServer

<div class="modal @modalClass overflow-auto" tabindex="-1" role="dialog" style="display:@modalDisplay;">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@using LinkDotNet.Blog.Domain
@using LinkDotNet.Blog.Web.Features.Bookmarks
@using LinkDotNet.Blog.Web.Features.Bookmarks.Components
@rendermode InteractiveServer
@inject IBookmarkService BookmarkService
@inject IOptions<ApplicationConfiguration> AppConfiguration

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@rendermode InteractiveServer

<div class="modal @modalClass" tabindex="-1" role="dialog" style="display:@modalDisplay; overflow-y: auto;">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using LinkDotNet.Blog.Web.Features.Services
@rendermode InteractiveServer
@inject IJSRuntime JSRuntime
@inject ILocalStorageService LocalStorageService

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@rendermode InteractiveServer
@inject IJSRuntime JsRuntime
@inject IOptions<ApplicationConfiguration> AppConfiguration
@inject IOptions<DisqusConfiguration> DisqusConfiguration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@inject IJSRuntime JsRuntime
@rendermode InteractiveServer
@inject IJSRuntime JsRuntime
@inject IOptions<ApplicationConfiguration> AppConfiguration
@inject IOptions<GiscusConfiguration> GiscusConfiguration
<div class="giscus">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@using LinkDotNet.Blog.Domain
@using LinkDotNet.Blog.Web.Features.Services
@rendermode InteractiveServer
@inject ILocalStorageService LocalStorage

<button class="btn @ButtonClass d-inline-flex align-items-center gap-2" @onclick="LikeBlogPost">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@rendermode InteractiveServer
@inject IJSRuntime JSRuntime

<div class="progress-container" @ref="progressContainer">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@using LinkDotNet.Blog.Web.Features.ShowBlogPost.Components
@using LinkDotNet.Blog.Web.Features.SupportMe.Components
@using LinkDotNet.Blog.Web.Features.Bookmarks.Components
@rendermode InteractiveServer
@inject IRepository<BlogPost> BlogPostRepository
@inject IRepository<ShortCode> ShortCodeRepository
@inject IJSRuntime JsRuntime
Expand Down
1 change: 0 additions & 1 deletion src/LinkDotNet.Blog.Web/Routes.razor
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@using LinkDotNet.Blog.Web.Features.Home.Components
@using LinkDotNet.Blog.Web.Pages
@using Microsoft.AspNetCore.Components.Web
@rendermode RenderMode.InteractiveServer

<CascadingAuthenticationState>
<Router AppAssembly="@typeof(Program).Assembly" NotFoundPage="@typeof(NotFound)">
Expand Down
4 changes: 0 additions & 4 deletions src/LinkDotNet.Blog.Web/ServiceExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ public static IServiceCollection AddHostingServices(this IServiceCollection serv
services.AddRazorPages();
services.AddRazorComponents()
.AddInteractiveServerComponents();
services.AddSignalR(options =>
{
options.MaximumReceiveMessageSize = 1024 * 1024;
});

return services;
}
Expand Down
1 change: 1 addition & 0 deletions src/LinkDotNet.Blog.Web/_Imports.razor
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
@using LinkDotNet.Blog.Web
@using LinkDotNet.Blog.Web.Features.Components
@using Microsoft.Extensions.Options
@using static Microsoft.AspNetCore.Components.Web.RenderMode