diff --git a/src/TryMudBlazor.Client/Pages/UserPage.razor b/src/TryMudBlazor.Client/Pages/UserPage.razor
index 5b623d68..b56b5f35 100644
--- a/src/TryMudBlazor.Client/Pages/UserPage.razor
+++ b/src/TryMudBlazor.Client/Pages/UserPage.razor
@@ -1,42 +1,42 @@
-@page "/user-page"
-
-
- This snippet hasn't been compiled yet.
- Run the code on the left to see the result here.
- How to load your own service
-
- To install a service which your snippet can use create a new *.cs file,
- define a class UserStartup
with a public static void Configure(WebAssemblyHostBuilder builder)
.
-
-
- Here is an example. Note the required usings!
-
-namespace Try.UserComponents
-{
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- // required using for UserStartup:
- using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
- using Microsoft.Extensions.DependencyInjection;
-
- public class UserStartup
- {
- public static void Configure(WebAssemblyHostBuilder builder) {
- builder.Services.AddSingleton(new MyService());
- }
- }
-
- // your service
- public class MyService {
- public string Hello() => "Hello World from MyService!";
- }
-
+@page "/user-page"
+
+
+ This snippet hasn't been compiled yet.
+ Run the code on the left to see the result here.
+ How to load your own service
+
+ To install a service which your snippet can use create a new *.cs file,
+ define a class UserStartup
with a public static void Configure(WebAssemblyHostBuilder builder)
.
+
+
+ Here is an example. Note the required usings!
+
+namespace Try.UserComponents
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Text;
+ using System.Threading.Tasks;
+
+ // required using for UserStartup:
+ using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
+ using Microsoft.Extensions.DependencyInjection;
+
+ public class UserStartup
+ {
+ public static void Configure(WebAssemblyHostBuilder builder) {
+ builder.Services.AddSingleton(new MyService());
+ }
+ }
+
+ // your service
+ public class MyService {
+ public string Hello() => "Hello World from MyService!";
+ }
+
}
-
-
-
-
+
+
+
+
diff --git a/src/TryMudBlazor.Client/Program.cs b/src/TryMudBlazor.Client/Program.cs
index 748f1764..11de4ecc 100644
--- a/src/TryMudBlazor.Client/Program.cs
+++ b/src/TryMudBlazor.Client/Program.cs
@@ -25,8 +25,6 @@ public static class Program
public static async Task Main(string[] args)
{
var builder = WebAssemblyHostBuilder.CreateDefault(args);
- builder.RootComponents.Add
("#app");
- //builder.RootComponents.Add("head::after");
builder.Services.AddSingleton(serviceProvider => (IJSInProcessRuntime)serviceProvider.GetRequiredService());
builder.Services.AddSingleton(serviceProvider => (IJSUnmarshalledRuntime)serviceProvider.GetRequiredService());
diff --git a/src/TryMudBlazor.Client/App.razor b/src/TryMudBlazor.Client/Routes.razor
similarity index 53%
rename from src/TryMudBlazor.Client/App.razor
rename to src/TryMudBlazor.Client/Routes.razor
index f3a0f11b..a8886746 100644
--- a/src/TryMudBlazor.Client/App.razor
+++ b/src/TryMudBlazor.Client/Routes.razor
@@ -1,6 +1,5 @@
+ AdditionalAssemblies="@([typeof(Try.UserComponents.__Main).Assembly])">
@@ -9,5 +8,4 @@
Sorry, there's nothing at this address.
-
-@* *@
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/TryMudBlazor.Client/TryMudBlazor.Client.csproj b/src/TryMudBlazor.Client/TryMudBlazor.Client.csproj
index 49bf81f8..eb9b59e9 100644
--- a/src/TryMudBlazor.Client/TryMudBlazor.Client.csproj
+++ b/src/TryMudBlazor.Client/TryMudBlazor.Client.csproj
@@ -2,6 +2,7 @@
false
+ 4bb79e6f-9796-46cb-a3d0-31b21ac94f9a
diff --git a/src/TryMudBlazor.Client/_Imports.razor b/src/TryMudBlazor.Client/_Imports.razor
index 07e82841..75ee17c7 100644
--- a/src/TryMudBlazor.Client/_Imports.razor
+++ b/src/TryMudBlazor.Client/_Imports.razor
@@ -8,5 +8,4 @@
@using Microsoft.JSInterop
@using TryMudBlazor.Client.Components
@using TryMudBlazor.Client.Shared
-
@using MudBlazor
diff --git a/src/TryMudBlazor.Client/wwwroot/css/site.css b/src/TryMudBlazor.Client/wwwroot/css/app.css
similarity index 100%
rename from src/TryMudBlazor.Client/wwwroot/css/site.css
rename to src/TryMudBlazor.Client/wwwroot/css/app.css
diff --git a/src/TryMudBlazor.Client/wwwroot/index.html b/src/TryMudBlazor.Server/App.razor
similarity index 94%
rename from src/TryMudBlazor.Client/wwwroot/index.html
rename to src/TryMudBlazor.Server/App.razor
index edd9975b..75187a6d 100644
--- a/src/TryMudBlazor.Client/wwwroot/index.html
+++ b/src/TryMudBlazor.Server/App.razor
@@ -42,6 +42,8 @@
gtag('config', 'G-33J60J6E14');
+
+
@@ -57,7 +59,8 @@
Reload
🗙