-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added global.json to force a .NET version * Added markdown editor * Added about page to credit packages used in sharpsite * introduced an abstract texteditor component
- Loading branch information
1 parent
9913ee7
commit 1e4e8f6
Showing
8 changed files
with
56 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@page "/aboutSharpSite" | ||
|
||
<h1>About SharpSite</h1> | ||
|
||
<p>SharpSite is a simple blog engine written in C# using Blazor.</p> | ||
|
||
<h2>Packages Used</h2> | ||
|
||
<ul> | ||
<li><a href="https://www.nuget.org/packages/Markdig/">Markdig</a></li> | ||
<li><a href="https://www.nuget.org/packages/PSC.Blazor.Components.MarkdownEditor/">PSC.Blazor.Components.MarkdownEditor</a></li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
@using PSC.Blazor.Components.MarkdownEditor | ||
@using PSC.Blazor.Components.MarkdownEditor.EventsArgs | ||
|
||
<MarkdownEditor @bind-Value="@MyContent" HideIcons="@(["mde-tb-image"])" /> | ||
|
||
@code { | ||
|
||
private string _Content = string.Empty; | ||
private string MyContent | ||
{ | ||
get => _Content; | ||
set | ||
{ | ||
_Content = value; | ||
ContentChanged.InvokeAsync(value); | ||
} | ||
} | ||
|
||
[Parameter, EditorRequired] | ||
public string Content { get => _Content; set => _Content = value; } | ||
|
||
|
||
[Parameter] | ||
public EventCallback<string> ContentChanged { get; set; } | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters