icu4x icon indicating copy to clipboard operation
icu4x copied to clipboard

Wasm Demo Frontend Framework

Open QnnOkabayashi opened this issue 3 years ago • 2 comments

The wasm demo is currently written in vanilla TypeScript. This makes it difficult to add new demos to the webpage, since all the HTML and TS pieces have to be added manually, and rules for what to update when an input is updated are encoded by hand.

A frontend framework like Svelte would simplify this process, and make adding new demos as simple as "use these inputs, have them call these Diplomat bindings, and show the output here."

Currently, the demo is generated for every PR, so this would ideally enable authors to easily add a demo for their new feature that the reviewers could interact with in real time.

QnnOkabayashi avatar Aug 10 '22 18:08 QnnOkabayashi

Source link is now wasm-demo

catull avatar Apr 12 '23 14:04 catull

I have following rough solution:

  1. We could possibly take input in form of a JSON file, which defines input fields basically what type.
  2. Need to add setter functions for those inputs mentioned above
  3. We could setup a frontend site which will generate JSON for the developers (select number of input fields)

Thoughts/Suggestions/Tips?

If we want to eliminate the use of JSON it would be difficult as it won't be easy to resolve the dependency tree.

ashu26jha avatar Mar 14 '24 15:03 ashu26jha