Code Monkey home page Code Monkey logo

skclusive.blazor.samples's Introduction

Hi ๐Ÿ‘‹, I'm skclusive

A passionate blazor developer from India

skclusive

angularjs csharp css3 express java javascript nodejs postgresql react spring typescript

skclusive

ย skclusive

skclusive

skclusive.blazor.samples's People

Contributors

sepppenner avatar skclusive avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

skclusive.blazor.samples's Issues

Todo app doesn't build.

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.

Redux Debug tools throws error when stepping

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.ObjectDefaultConverter1[[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.IEnumerableDefaultConverter2[[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.JsonPropertyInfo1[[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.JsonConverter1[[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.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]].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.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]].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.

Dashboard Sample is missing project(s)

When trying to open the Dashboard Sample received the following error.
Solution only have one project included, while folder have three different projects.

image

Error: Microsoft.JSInterop.JSException: Could not find 'Skclusive' in 'window'.

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, Nullable1 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)

How do I create state nodes that have child nodes with actions?

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.