ricardoboss / Prolangle

A game about programming languages.
https://prolangle.ricardoboss.de
MIT License
2 stars 1 forks source link

Implement share button #79

Closed ricardoboss closed 6 months ago

ricardoboss commented 6 months ago

This PR is based on #68. So that one needs to be merged first.


Fixes #54

ricardoboss commented 6 months ago

This game: image

Results in this output:

🟨🟩🟥🟩🟨🟨🔽🔼 🟨🟩🟩🟩🟨🟨🔼🔽 🟨🟩🟩🟥🟥🟨🔼🔼 🟨🟩🟥🟥🟥🟨🔼🔼 🟩🟩🟩🟩🟩🟩🟩🟩

chucker commented 6 months ago

Two suggestions (not sure whether to turn this into a draft again; I'm OK with shipping this as a first version):

🟨🟩🟥🟩🟨🟨🔽🔼 🟨🟩🟩🟩🟨🟨🔼🔽 ⋮ 🟩🟩🟩🟩🟩🟩🟩🟩

chucker commented 6 months ago

I get

crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Abort due to cancellation of share.

Microsoft.JSInterop.JSException: Abort due to cancellation of share.

   at Microsoft.JSInterop.JSRuntime.<InvokeAsync>d__16`1[[System.String, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
   at Prolangle.Components.ShareMetadatumComparisonButton.OnClicked()
   at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task , ComponentState )

when cancelling.