From 8913d238d1a514d9d7bd59243e3770b71ef914ad Mon Sep 17 00:00:00 2001 From: Henrik Lau Eriksson Date: Wed, 10 Jul 2024 12:27:46 +0200 Subject: [PATCH] :pencil: --- GEmojiSharp.Blazor.md | 15 +++++++++++++++ README.md | 43 ++----------------------------------------- 2 files changed, 17 insertions(+), 41 deletions(-) diff --git a/GEmojiSharp.Blazor.md b/GEmojiSharp.Blazor.md index b368a67..4855a04 100644 --- a/GEmojiSharp.Blazor.md +++ b/GEmojiSharp.Blazor.md @@ -12,6 +12,21 @@ Update the `_Imports.razor` file, to enable the component in all Razor views: @using GEmojiSharp.Blazor ``` +> [!NOTE] +> In a Blazor Web App (.NET 8 or later), the component requires an interactive render mode applied either globally to the app or to the component definition. + +Set the global render mode in `App.razor`: + +```cshtml + +``` + +or per page/component: + +```cshtml +@rendermode InteractiveServer +``` + Use the `` component to render emojis: ```html diff --git a/README.md b/README.md index f130396..b45d434 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ [![GEmojiSharp.DotnetTool](https://img.shields.io/nuget/v/GEmojiSharp.DotnetTool.svg?label=GEmojiSharp.DotnetTool)](https://www.nuget.org/packages/GEmojiSharp.DotnetTool) > GitHub Emoji for C# and .NET: +> > - `netstandard2.0` > - ASP.NET Core > - Blazor @@ -39,12 +40,11 @@ - [Usage](#usage-1) - [Configuration](#configuration) - [Samples](#samples) -- [Upgrading](#upgrading) - [Attribution](#attribution) ## Introduction -[Using emoji](https://help.github.com/en/articles/basic-writing-and-formatting-syntax#using-emoji) on GitHub is accomplish with emoji aliases enclosed by colons: +[Using emojis](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#using-emojis) on GitHub is accomplish with emoji aliases enclosed by colons: `:+1: This PR looks great - it's ready to merge! :shipit:` @@ -705,45 +705,6 @@ The Blazor WebAssembly app is showcased here: [![GEmojiSharp.Sample.BlazorWebAssembly](GEmojiSharp.Sample.BlazorWebAssembly.png)](https://hlaueriksson.github.io/GEmojiSharp/) -## Upgrading - -> ⬆️ Upgrading from version `1.5.0` to `2.0.0` - -Upgrade `GEmojiSharp.TagHelpers`: - -- Uninstall `GEmojiSharp.TagHelpers` -- Install `GEmojiSharp.AspNetCore` -- Replace references to ~~`GEmojiSharp.TagHelpers`~~ with `GEmojiSharp.AspNetCore`: - - ```diff - - @addTagHelper *, GEmojiSharp.TagHelpers - + @addTagHelper *, GEmojiSharp.AspNetCore - ``` - - ```diff - - @using GEmojiSharp.TagHelpers - + @using GEmojiSharp.AspNetCore - ``` - - ```diff - - using GEmojiSharp.TagHelpers; - + using GEmojiSharp.AspNetCore; - ``` - -Upgrade `GEmojiSharp.Blazor`: - -- Remove reference to the `css` file: - - ```diff - - - ``` - -- Remove reference to the `js` file: - - ```diff - - - ``` - ## Attribution Repositories consulted when building this: