Giter VIP home page Giter VIP logo

canhorn / eventhorizon.blazor.interop Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 3.0 1.71 MB

This project contains utilities that make Blazor WASM C# interfacing with JavaScript easier, will trigger corresponding JavaScript functionality. Includes Scenario Testing Blazor WASM website in the Sample project.

Home Page: https://polite-plant-0f8750a10.azurestaticapps.net/

License: MIT License

HTML 60.90% C# 29.27% JavaScript 9.20% CSS 0.63%
blazor interop javascript wasm

eventhorizon.blazor.interop's Introduction

Hi there ๐Ÿ‘‹

eventhorizon.blazor.interop's People

Contributors

canhorn avatar msftgits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

eventhorizon.blazor.interop's Issues

Workflows are referencing vulnerable actions

Hello, there!

As part of the university research we are currently doing regarding the security of Github Actions, we noticed that one or many of the workflows that are part of this repository are referencing vulnerable versions of the third-party actions. As part of a disclosure process, we decided to open issues to notify GitHub Community.

Please note that there are could be some false positives in our methodology, thus not all of the open issues could be valid. If that is the case, please let us know, so that we can improve on our approach. You can contact me directly using an email: ikoishy [at] ncsu.edu

Thanks in advance

  1. The workflow dotnet-package.yml is referencing action gittools/actions/gitversion/setup using references v0.9.6. However this reference is missing the commit 90150b4 which may contain fix to the vulnerability.
  2. The workflow dotnet-package.yml is referencing action gittools/actions/gitversion/execute using references v0.9.6. However this reference is missing the commit 90150b4 which may contain fix to the vulnerability.
  3. The workflow main-tag-bump.yml is referencing action gittools/actions/gitversion/setup using references v0.9.6. However this reference is missing the commit 90150b4 which may contain fix to the vulnerability.
  4. The workflow main-tag-bump.yml is referencing action gittools/actions/gitversion/execute using references v0.9.6. However this reference is missing the commit 90150b4 which may contain fix to the vulnerability.

The vulnerability fix that is missing by actions' versions could be related to:
(1) CVE fix
(2) upgrade of vulnerable dependency
(3) fix to secret leak and others.
Please consider updating the reference to the action.

If you end up updating the reference, please let us know. We need the stats for the paper :-)

Nested objects are not Argument Converted

When nested objects are passed down through the bridge it will not introspect the object properties to see if they might be cached entities.
To fix this the cache should be checked against the child properties.

scene.pointerY - throws Format Exception

I'm not sure if the problem comes from EventHorizon or BabylonJS itself.
scene.pointerX seems to work (but actually returns an integer instead of decimal)
scene.pointerY throw a Format Exception (although checking the string representation gives a proper decimal).

I get the values as string to check

var x_ = EventHorizon.Blazor.Interop.EventHorizonBlazorInterop.Get<string>(scene.___guid, "pointerX");
var x = scene.pointerX;
var y_ = EventHorizon.Blazor.Interop.EventHorizonBlazorInterop.Get<string>(scene.___guid, "pointerY");
var y = scene.pointerY;

x_ = '58'
y_ = '251.40625'

image

TypedArray failing to return from interop-bridge funcArray

Using EventHorizon.Blazor.TypeScript.Interop.Generator creates a method calling FuncArray for a type that returns a TypedArray.
This fails the Array.isArray check and returns an empty result.

An example of this is when converting BabylonJS the Mesh.getVerticesData fails to return the data (FloatArray) https://doc.babylonjs.com/typedoc/classes/babylon.mesh#getverticesdata.

Not clear if this is an issue in Interop or Interop.Generator sorry.

Trying to set a property to null results in error

Description

Calling set with a null value causes an error.

EventHorizonBlazorInterop.Set(___guid, memberName, null);

Suggested Solution

A simple null check in the interop-bridge.js before looking up the cacheKey should suffice. Sometimes null is desired instead of a property being simply undefined.

Cache removal

Hi, I noticed there isn't any mechanism for removing objects from the JS cache. I think it would be possible to implement it using a finalizer in the CachedEntity class.

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.