Skip to content

Commit c948f16

Browse files
committed
update to new base class
1 parent 06a0713 commit c948f16

5 files changed

Lines changed: 0 additions & 39 deletions

File tree

BlazorDiffusion/BlazorDiffusion.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868

6969
<ItemGroup>
7070
<Content Remove="App_Files\artifacts\**\*" />
71-
<Content Include="wwwroot\.well-known\microsoft-identity-association.json" />
7271
</ItemGroup>
7372

7473
<ItemGroup>

BlazorDiffusion/Program.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@
5050

5151
BlazorConfig.Set(new()
5252
{
53-
// This changes Blazor Components + ApiAsync APIs to use InProcessGateway instead of JsonApiClient
54-
UseInProcessClient = true,
55-
5653
Services = app.Services,
5754
JSParseObject = JS.ParseObject,
5855
EnableLogging = app.Environment.IsDevelopment(),

BlazorDiffusion/Shared/AlbumTitle.razor

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
@code {
2929
[Parameter, EditorRequired] public AlbumResult? Album { get; set; }
30-
[Parameter] public string? @class { get; set; }
3130

3231
async Task LikeAlbumAsync()
3332
{

BlazorDiffusion/Shared/Home.razor

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
{
6969
[Parameter, EditorRequired] public RenderFragment? ChildContent { get; set; }
7070
[Parameter, EditorRequired] public AppPage Page { get; set; }
71-
[Parameter] public string? @class { get; set; }
7271

7372
void navToSearch() => NavigationManager.NavigateTo("/");
7473
void navToCreate() => NavigationManager.NavigateTo("/create");

BlazorDiffusion/UI/AppComponentBase.cs

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,6 @@ public abstract class AppAuthComponentBase : AuthBlazorComponentBase
2525
[Inject] public IJSRuntime JS { get; set; }
2626
[Inject] ILogger<AppAuthComponentBase> Log { get; set; }
2727

28-
static long renderIndex = 0;
29-
public static ConcurrentDictionary<long, Func<IJSRuntime,Task>> RenderActions { get; } = new();
30-
public static void AddRenderAction(Func<IJSRuntime, Task> action) =>
31-
RenderActions[Interlocked.Increment(ref renderIndex)] = action;
32-
33-
public void SetTitle(string title)
34-
{
35-
var jsWasm = JS as IJSInProcessRuntime;
36-
Log.LogDebug("SetTitle: {0} ({1})", title, jsWasm != null ? "WASM" : "Server");
37-
38-
if (jsWasm != null)
39-
{
40-
jsWasm.SetTitle(title);
41-
}
42-
else
43-
{
44-
AddRenderAction(JS => JS.SetTitleAsync(title));
45-
}
46-
}
47-
4828
protected override async Task OnInitializedAsync()
4929
{
5030
SetTitle(AppData.Title);
@@ -72,19 +52,6 @@ public void DeregisterKeyboardNavigation(Func<string, Task> target)
7252
log("KEYNAV {0} de-registered", GetType().Name);
7353
KeyboardNavigation.Deregister(target);
7454
}
75-
76-
protected override async Task OnAfterRenderAsync(bool firstRender)
77-
{
78-
Log.LogDebug("OnAfterRenderAsync flushing {0} RenderActions", RenderActions.Keys.Count);
79-
80-
var orderedKeys = RenderActions.Keys.OrderBy(x => x).ToList();
81-
foreach (var key in orderedKeys)
82-
{
83-
if (RenderActions.TryRemove(key, out var action))
84-
await action(JS);
85-
}
86-
await base.OnAfterRenderAsync(firstRender);
87-
}
8855
}
8956

9057
public enum AppPage

0 commit comments

Comments
 (0)