Skip to content

Commit 3dad706

Browse files
committed
chore(Editor): add mentions example
1 parent af9e047 commit 3dad706

40 files changed

+3259
-0
lines changed

editor/Mentions/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore the built js file for consistent setup
2+
index.bundle.js

editor/Mentions/EditorMentions.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 18
4+
VisualStudioVersion = 18.3.11222.16
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EditorMentions", "EditorMentions\EditorMentions.csproj", "{1E746FCD-01B9-49AC-BD89-E5C0C39B65A5}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{1E746FCD-01B9-49AC-BD89-E5C0C39B65A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{1E746FCD-01B9-49AC-BD89-E5C0C39B65A5}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{1E746FCD-01B9-49AC-BD89-E5C0C39B65A5}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{1E746FCD-01B9-49AC-BD89-E5C0C39B65A5}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {9DE58732-38AD-4571-8186-A058A5BCE359}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Router AppAssembly="@typeof(App).Assembly">
2+
<Found Context="routeData">
3+
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
4+
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
5+
</Found>
6+
<NotFound>
7+
<PageTitle>Not found</PageTitle>
8+
<LayoutView Layout="@typeof(MainLayout)">
9+
<p role="alert">Sorry, there's nothing at this address.</p>
10+
</LayoutView>
11+
</NotFound>
12+
</Router>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="Telerik.UI.for.Blazor" />
11+
</ItemGroup>
12+
</Project>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace EditorMentions.Models
2+
{
3+
public class Mention
4+
{
5+
public string Id { get; set; }
6+
public string Name { get; set; }
7+
public string Email { get; set; }
8+
}
9+
}

0 commit comments

Comments
 (0)