skclusive / skclusive.blazor.samples Goto Github PK
View Code? Open in Web Editor NEWSkclusive.Blazor.Samples
Home Page: https://skclusive.github.io/Skclusive.Blazor.Samples/FlightFinder/
License: MIT License
Skclusive.Blazor.Samples
Home Page: https://skclusive.github.io/Skclusive.Blazor.Samples/FlightFinder/
License: MIT License
Any project with a native host is failing to run due to this issue:
Fresh folder, clone repo from Master or Dev. Get errors about 'not suitable method to override'. I've looked through code in both branches to see if there is a version I should be using, but can't see the 'DisposeAsync' anywhere on TodoAppComponent.
I copied the dependency projects locally, instead of using packages (to change version) and this doesn't work, so it looks like there is a mismatch with the checked in code and your code locally.
If you can provide the correct steps to get the Todo app running, that would be great.
Hi Skclusive,
Sorry if this isn't the right way to ask, but I've been struggling with something. I need to track an object that has child-objects that have their own behaviours. Trunck > Branch > Leaf. They all have their own EditName/EditBranches actions, so I can't use the DTO (snapshot) class as the type in the view layer (razor file)
So, Tree would have a list of Branches, I have Tree as a child of AppState, which is tracked and works properly (since it's on the root). But when I get to adding Branch, this is a child of Tree, not of AppState, so my interface is
ITree {
List<IBranch> Branches
}
IBranchActions {
EditName(string)
}
IBranchSnapshot {
string Name
}
IBranch : IBranchSnapshot, IBranchActions
Now, IBranch needs to have an 'EditName' method, which is part of the Actions interface, this is what is implemented on the Proxy, not the snapshot.
Do you have any examples of this nested structure? I cannot see how to do it and have been circulating for a while now. I've looked at Todo and Flightfinder, but this does not seem to have anything like this. Is it even possible? Will it ever be? Or am I making a mistake?
I thought maybe I just put everything in the root, but you can imagine that would get very messy and tracking the IDs (or whatever) to link them back up would be a nightmare.
I'd really appreciate some advice on this. Thanks!
I build a Blazor Server, run it on machine but it responds on localhost only, i.e. http://localhost:5000 but does not respond when I query it from an exrternal host http://myhostIP:5000 This myhostIP pinged ok. FW is off. In VS2019 in the project settings: App URL: https://localhost:5001;http://localhost:5000
How to configure Blazor Server to listen (all) hosts IP addresses using appsetings.json without hardcoding?
Hi there,
I'm trying to learn to use this library through the samples and when I try to step back/forward with the timeline tool, an error is being thrown:
Uncaught (in promise) Error: System.NotSupportedException: Deserialization of interface types is not supported. Type 'Skclusive.Blazor.FlightFinder.Models.IItinerarySnapshot'. Path: $.searchResults[0] | LineNumber: 0 | BytePositionInLine: 215. ---> System.NotSupportedException: Deserialization of interface types is not supported. Type 'Skclusive.Blazor.FlightFinder.Models.IItinerarySnapshot'. --- End of inner exception stack trace --- at System.Text.Json.ThrowHelper.ThrowNotSupportedException(ReadStack& state, Utf8JsonReader& reader, NotSupportedException ex) at System.Text.Json.ThrowHelper.ThrowNotSupportedException_DeserializeNoConstructor(Type type, Utf8JsonReader& reader, ReadStack& state) at System.Text.Json.Serialization.Converters.ObjectDefaultConverter
1[[Skclusive.Blazor.FlightFinder.Models.IItinerarySnapshot, Skclusive.Blazor.FlightFinder.State, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, IItinerarySnapshot& value)
at System.Text.Json.Serialization.JsonConverter1[[Skclusive.Blazor.FlightFinder.Models.IItinerarySnapshot, Skclusive.Blazor.FlightFinder.State, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, IItinerarySnapshot& value) at System.Text.Json.Serialization.Converters.IEnumerableDefaultConverter
2[[Skclusive.Blazor.FlightFinder.Models.IItinerarySnapshot[], Skclusive.Blazor.FlightFinder.State, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Skclusive.Blazor.FlightFinder.Models.IItinerarySnapshot, Skclusive.Blazor.FlightFinder.State, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, IItinerarySnapshot[]& value)
at System.Text.Json.Serialization.JsonConverter1[[Skclusive.Blazor.FlightFinder.Models.IItinerarySnapshot[], Skclusive.Blazor.FlightFinder.State, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, IItinerarySnapshot[]& value) at System.Text.Json.JsonPropertyInfo
1[[Skclusive.Blazor.FlightFinder.Models.IItinerarySnapshot[], Skclusive.Blazor.FlightFinder.State, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].ReadJsonAndSetMember(Object obj, ReadStack& state, Utf8JsonReader& reader)
at System.Text.Json.Serialization.Converters.ObjectDefaultConverter1[[Skclusive.Blazor.FlightFinder.Models.AppStateSnapshot, Skclusive.Blazor.FlightFinder.State, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, AppStateSnapshot& value) at System.Text.Json.Serialization.JsonConverter
1[[Skclusive.Blazor.FlightFinder.Models.AppStateSnapshot, Skclusive.Blazor.FlightFinder.State, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, AppStateSnapshot& value)
at System.Text.Json.Serialization.JsonConverter1[[Skclusive.Blazor.FlightFinder.Models.AppStateSnapshot, Skclusive.Blazor.FlightFinder.State, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.JsonSerializer.ReadCore[AppStateSnapshot](JsonConverter jsonConverter, Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.JsonSerializer.ReadCore[AppStateSnapshot](Utf8JsonReader& reader, Type returnType, JsonSerializerOptions options) at System.Text.Json.JsonSerializer.Deserialize[AppStateSnapshot](String json, Type returnType, JsonSerializerOptions options) at System.Text.Json.JsonSerializer.Deserialize[AppStateSnapshot](String json, JsonSerializerOptions options) at Skclusive.Script.DevTools.Redux.ReduxTool
2[[Skclusive.Script.DevTools.StateTree.StateTreeToolAction, Skclusive.Script.DevTools, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null],[Skclusive.Blazor.FlightFinder.Models.AppStateSnapshot, Skclusive.Blazor.FlightFinder.State, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].Deserialize[AppStateSnapshot](String json)
at Skclusive.Script.DevTools.Redux.ReduxTool2[[Skclusive.Script.DevTools.StateTree.StateTreeToolAction, Skclusive.Script.DevTools, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null],[Skclusive.Blazor.FlightFinder.Models.AppStateSnapshot, Skclusive.Blazor.FlightFinder.State, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].HandleMessage(String json) at Skclusive.Script.DevTools.Redux.ReduxTool
2[[Skclusive.Script.DevTools.StateTree.StateTreeToolAction, Skclusive.Script.DevTools, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null],[Skclusive.Blazor.FlightFinder.Models.AppStateSnapshot, Skclusive.Blazor.FlightFinder.State, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].OnMessageAsync(String json)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
--- End of stack trace from previous location ---
at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.InvokeSynchronously(JSRuntime jsRuntime, DotNetInvocationInfo& callInfo, IDotNetObjectReference objectReference, String argsJson)
at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.BeginInvokeDotNet(JSRuntime jsRuntime, DotNetInvocationInfo invocationInfo, String argsJson)
at Object.endInvokeDotNetFromJS (https://localhost:44327/_framework/blazor.webassembly.js:1:4191)
at Object.invokeJSFromDotNet (https://localhost:44327/_framework/blazor.webassembly.js:1:3797)
at Object.w [as invokeJSFromDotNet] (https://localhost:44327/_framework/blazor.webassembly.js:1:63898)
at _mono_wasm_invoke_js_blazor (https://localhost:44327/_framework/dotnet.5.0.0-rc.2.20475.5.js:1:190396)
at do_icall (:wasm-function[10593]:0x194db2)
at do_icall_wrapper (:wasm-function[3305]:0x79dee)
at interp_exec_method (:wasm-function[2155]:0x44ac8)
at interp_runtime_invoke (:wasm-function[7859]:0x12ef59)
at mono_jit_runtime_invoke (:wasm-function[7344]:0x118db9)
at do_runtime_invoke (:wasm-function[3304]:0x79d37)
`
I'm using the latest versions of VS Preview (16.8.0 Preview 6.0), .Net 5 Rc2. Also just got latest from Skclusive samples.
I get this error on the Flightfinder project, in both the WASM and server-hosted versions. To reproduce, all I have to do is click the backward arrow to step back 1 state (I can also drag the handle, which does the same).
State does seem to change, despite the error, but it does not accurately change to the expected state, so something is going wrong. e.g. If I add some flights and then 'rewind' and then go back to the present, the flights are not added.
I have made no changes to the solution, so this seems to be present in the latest code.
Blazor 3.2.0 Preview 4
How can i set the sidebar burger icon to the left side in the dashboard sample?
I always get this error when I open the server example in a new browser tab and the SidebarContent menu is not displayed and to fix it you need to refresh the page.
2020-05-04T15:44:58.459Z] Error: Microsoft.JSInterop.JSException: Could not find 'Skclusive' in 'window'.
Error: Could not find 'Skclusive' in 'window'.
at https://localhost:44394/_framework/blazor.server.js:8:30748
at Array.forEach ()
at p (https://localhost:44394/_framework/blazor.server.js:8:30709)
at https://localhost:44394/_framework/blazor.server.js:8:31416
at new Promise ()
at e.beginInvokeJSFromDotNet (https://localhost:44394/_framework/blazor.server.js:8:31390)
at https://localhost:44394/_framework/blazor.server.js:1:19202
at Array.forEach ()
at e.invokeClientMethod (https://localhost:44394/_framework/blazor.server.js:1:19173)
at e.processIncomingData (https://localhost:44394/_framework/blazor.server.js:1:17165)
at Microsoft.JSInterop.JSRuntime.InvokeWithDefaultCancellation[T](String identifier, Object[] args)
at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args)
at Skclusive.Script.DomHelpers.DomHelpers.MoveContentAsync(Nullable1 source, Nullable
1 target, Nullable`1 targetBody)
at Skclusive.Material.Core.Portal.OnAfterRenderAsync()
at Skclusive.Core.Component.RenderComponentBase.OnAfterRenderAsync(Boolean firstRender)
at Skclusive.Core.Component.DisposableComponentBase.OnAfterRenderAsync(Boolean firstRender)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.