diff --git a/src/RemoteWebViewService/Properties/launchSettings.json b/src/RemoteWebViewService/Properties/launchSettings.json index 13f12377..ef1a747b 100644 --- a/src/RemoteWebViewService/Properties/launchSettings.json +++ b/src/RemoteWebViewService/Properties/launchSettings.json @@ -3,7 +3,7 @@ "RemoteWebViewService": { "commandName": "Project", "launchBrowser": true, - "launchUrl": "https://localhost:5001/test", + "launchUrl": "https://localhost:5001/", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" }, diff --git a/src/RemoteWebViewService/Startup.cs b/src/RemoteWebViewService/Startup.cs index 8e822d72..d2ff16b4 100644 --- a/src/RemoteWebViewService/Startup.cs +++ b/src/RemoteWebViewService/Startup.cs @@ -168,7 +168,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) endpoints.MapGet("/status/{id:guid}", Status()).ConditionallyRequireAuthorization(); endpoints.MapGet("/grpcbaseuri", GrpcBaseUri()).ConditionallyRequireAuthorization(); endpoints.MapGet("/wait/{id:guid}", Wait()).ConditionallyRequireAuthorization(); - endpoints.MapGet("/test", Version()); + endpoints.MapGet("/", Contact()); endpoints.MapFallbackToFile("index.html"); }); } @@ -335,7 +335,7 @@ private RequestDelegate GrpcBaseUri() }; } - private RequestDelegate Version() + private RequestDelegate Contact() { return async context => { diff --git a/src/RemoteWebViewService/TODO.txt b/src/RemoteWebViewService/TODO.txt index 680435d8..b6f962f1 100644 --- a/src/RemoteWebViewService/TODO.txt +++ b/src/RemoteWebViewService/TODO.txt @@ -15,8 +15,6 @@ 1. WebView.NavigateToUrl http://app/ -> (Startup.cs endpoints.MapGet("/app", async context => can we server the index.html here and avoid the hack to NavigateTo("/")? -3. Do a diff on the blazor.desktop.js and the remote.blazor.desktop.js - Don't let showmessage do anything until it has been connected. @@ -44,15 +42,9 @@ Both the server and the Restarted app need to know when id has been restarted Race is __bwv:["EndInvokeJS",9,false,"[9,false,\"JS object instance with ID 1 does not exist (has it been disposed?).\\nError: JS object instance with ID 1 does not exist (has it been disposed?).\\n at E (https://server.remoteblazorwebview.com/4e955d73-84b4-4f87-89f0-3b4885ff86a9/_framework/blazor.webview.js:1:340506)\\n at https://server.remoteblazorwebview.com/4e955d73-84b4-4f87-89f0-3b4885ff86a9/_framework/blazor.webview.js:1:341372\\n at new Promise ()\\n at beginInvokeJSFromDotNet (https://server.remoteblazorwebview.com/4e955d73-84b4-4f87-89f0-3b4885ff86a9/_framework/blazor.webview.js:1:341353)\\n at https://server.remoteblazorwebview.com/4e955d73-84b4-4f87-89f0-3b4885ff86a9/_framework/blazor.webview.js:1:380613\\n at onMessage (https://server.remoteblazorwebview.com/4e955d73-84b4-4f87-89f0-3b4885ff86a9/_framework/blazor.webview.js:1:380634)\\n at https://server.remoteblazorwebview.com/4e955d73-84b4-4f87-89f0-3b4885ff86a9/_framework/blazor.webview.js:1:11656\\n at Array.forEach ()\\n at e.rawOnMessage (https://server.remoteblazorwebview.com/4e955d73-84b4-4f87-89f0-3b4885ff86a9/_framework/blazor.webview.js:1:11618)\\n at https://server.remoteblazorwebview.com/4e955d73-84b4-4f87-89f0-3b4885ff86a9/_framework/blazor.webview.js:1:9425\"]"]"Lhttps://server.remoteblazorwebview.com/4e955d73-84b4-4f87-89f0-3b4885ff86a9/*$b86d7c78-afda-4d33-b451-ae7d3ae9f94dbetween the Refreshed client waiting to create entry into dictionary and AckRestart waiting for id to be removed -1. Update certificate programatically - 2. Find bug in BeginInvokeJS error Receive:__bwv:["BeginInvokeJS",3,"import","[\u0022/_content/HPI.SharedComponents/js/main-layout-funcs.js\u0022]",1,0] -3. Add authorization on mirror endpoint - - - Receive:__bwv:["BeginInvokeJS",2,"Blazor._internal.attachWebRendererInterop","[0,{\u0022__dotNetObject\u0022:1},{},{}]",3,0] Receive:__bwv:["BeginInvokeJS",2,"Blazor._internal.attachWebRendererInterop","[0,{\u0022__dotNetObject\u0022:1},{},{}]",3,0]