Giter Site home page Giter Site logo

bombino-issue-27's Introduction

This turns out to be a problem with conflicting dependencies again, though more specifically to do with my admittedly liberal (and I realize now to be careless) use of "@latest" in package.json values which it turns out has the lowest installation priority over any other syntax like ^1.0.0 or ~1.0.0 and can be very easily out-prioritized in lieu of older versions of packages.

To solve this for an existing panel, we need to forcibly update any bombino required dependencies:

The issue described where it appeared to be silent failure from Erik was actually caused by a specific version of <Panel> in brutalism, which had been internally referencing evalScript from workaround instead of cluecumber. During the <Panel> mounting lifecycle it was essentially disregarding the utilities and scripting files due to using the wrong function.

This repo is an updated version which should work exactly as expected (along with any new bombino template generated as of now).

App.vue:

<template>
  <div id="app">
    <Menus refresh debug />
    <Panel>
      <button block @click="testScript">Test script</button>
    </Panel>
  </div>
</template>

<script>
  import { evalScript } from "brutalism";
  export default {
    methods: {
      async testScript() {
        let result = await evalScript("testJSX()");
        console.log("RESULT:", result);
      },
    },
  };
</script>

As noted, the ./src/host/[appName]/[file].jsx scripts were not being preloaded, causing the above button to not do anything.

host.jsx (tested in ILST):

console.log("Host is online");

function testJSX() {
  alert("I'm finally working!");
  return "Hello from our script";
}

Gehenna pre-loading now properly working, verified in console:

Preload

Scripting call now properly working (alert does work, not shown):

Script

bombino-issue-27's People

Contributors

inventsable avatar

Watchers

 avatar  avatar  avatar

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.