diff --git a/sources/Clients.Admin.Web/App.razor b/sources/Clients.Admin.Web/App.razor index c7730d1..71f126e 100644 --- a/sources/Clients.Admin.Web/App.razor +++ b/sources/Clients.Admin.Web/App.razor @@ -1,6 +1,7 @@ - +@using MadWorldNL.Clients.Identity.Blazor.Shared + - + diff --git a/sources/Clients.Admin.Web/Layout/MainLayout.razor b/sources/Clients.Admin.Web/Layout/MainLayout.razor index e7554be..62041c1 100644 --- a/sources/Clients.Admin.Web/Layout/MainLayout.razor +++ b/sources/Clients.Admin.Web/Layout/MainLayout.razor @@ -6,7 +6,9 @@
- About + + Login +
diff --git a/sources/Clients.Admin.Web/wwwroot/index.html b/sources/Clients.Admin.Web/wwwroot/index.html index fac2eb0..8060007 100644 --- a/sources/Clients.Admin.Web/wwwroot/index.html +++ b/sources/Clients.Admin.Web/wwwroot/index.html @@ -9,7 +9,7 @@ - + diff --git a/sources/Clients.Identity.Blazor.Shared/Clients.Identity.Blazor.Shared.csproj b/sources/Clients.Identity.Blazor.Shared/Clients.Identity.Blazor.Shared.csproj index 2ec713d..50a0a12 100644 --- a/sources/Clients.Identity.Blazor.Shared/Clients.Identity.Blazor.Shared.csproj +++ b/sources/Clients.Identity.Blazor.Shared/Clients.Identity.Blazor.Shared.csproj @@ -14,7 +14,7 @@ - + diff --git a/sources/Clients.Identity.Blazor.Shared/Component1.razor b/sources/Clients.Identity.Blazor.Shared/Component1.razor deleted file mode 100644 index e216aff..0000000 --- a/sources/Clients.Identity.Blazor.Shared/Component1.razor +++ /dev/null @@ -1,3 +0,0 @@ -
- This component is defined in the Clients.Identity.Blazor.Shared library. -
\ No newline at end of file diff --git a/sources/Clients.Identity.Blazor.Shared/Component1.razor.css b/sources/Clients.Identity.Blazor.Shared/Component1.razor.css deleted file mode 100644 index c6afca4..0000000 --- a/sources/Clients.Identity.Blazor.Shared/Component1.razor.css +++ /dev/null @@ -1,6 +0,0 @@ -.my-component { - border: 2px dashed red; - padding: 1em; - margin: 1em 0; - background-image: url('background.png'); -} diff --git a/sources/Clients.Identity.Blazor.Shared/ExampleJsInterop.cs b/sources/Clients.Identity.Blazor.Shared/ExampleJsInterop.cs deleted file mode 100644 index be8e28a..0000000 --- a/sources/Clients.Identity.Blazor.Shared/ExampleJsInterop.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Microsoft.JSInterop; - -namespace Clients.Identity.Blazor.Shared; - -// This class provides an example of how JavaScript functionality can be wrapped -// in a .NET class for easy consumption. The associated JavaScript module is -// loaded on demand when first needed. -// -// This class can be registered as scoped DI service and then injected into Blazor -// components for use. - -public class ExampleJsInterop : IAsyncDisposable -{ - private readonly Lazy> moduleTask; - - public ExampleJsInterop(IJSRuntime jsRuntime) - { - moduleTask = new(() => jsRuntime.InvokeAsync( - "import", "./_content/Clients.Identity.Blazor.Shared/exampleJsInterop.js").AsTask()); - } - - public async ValueTask Prompt(string message) - { - var module = await moduleTask.Value; - return await module.InvokeAsync("showPrompt", message); - } - - public async ValueTask DisposeAsync() - { - if (moduleTask.IsValueCreated) - { - var module = await moduleTask.Value; - await module.DisposeAsync(); - } - } -} \ No newline at end of file diff --git a/sources/Clients.Identity.Blazor.Shared/IIdentityMarker.cs b/sources/Clients.Identity.Blazor.Shared/IIdentityMarker.cs new file mode 100644 index 0000000..ecfdc32 --- /dev/null +++ b/sources/Clients.Identity.Blazor.Shared/IIdentityMarker.cs @@ -0,0 +1,6 @@ +namespace MadWorldNL.Clients.Identity.Blazor.Shared; + +public interface IIdentityMarker +{ + +} \ No newline at end of file diff --git a/sources/Clients.Identity.Blazor.Shared/pages/Login.razor b/sources/Clients.Identity.Blazor.Shared/pages/Login.razor new file mode 100644 index 0000000..1461ff0 --- /dev/null +++ b/sources/Clients.Identity.Blazor.Shared/pages/Login.razor @@ -0,0 +1,3 @@ +@page "/Login" + +

Login

\ No newline at end of file diff --git a/sources/Clients.Identity.Blazor.Shared/wwwroot/exampleJsInterop.js b/sources/Clients.Identity.Blazor.Shared/wwwroot/exampleJsInterop.js deleted file mode 100644 index ea8d76a..0000000 --- a/sources/Clients.Identity.Blazor.Shared/wwwroot/exampleJsInterop.js +++ /dev/null @@ -1,6 +0,0 @@ -// This is a JavaScript module that is loaded on demand. It can export any number of -// functions, and may import other JavaScript modules if required. - -export function showPrompt(message) { - return prompt(message, 'Type anything here'); -}