mastracu / weblinkConsole

Demo Weblink endpoint to support Zebra partners technical enablement sessions - Developed in F#/Suave
https://weblink.mastracu.it/console.html
1 stars 0 forks source link

SPA porting over to FABLE #6

Open mastracu opened 3 years ago

mastracu commented 3 years ago

https://medium.com/@whitetigle/fable-for-busy-moms-and-dads-use-a-js-lib-in-one-minute-8e15e1c4096c

https://fable.io/docs/communicate/js-from-fable.html

mastracu commented 3 years ago

Idea is to use Fsharp for SPA development to benefit from strong/static typing and functional programming. JS libraries: monaco-editor, material-ui-table instead of tabulator

mastracu commented 3 years ago

Fable bindings for Tabulator is not available and output of ts2fable returns errors. Replace Tabulator with MateriaITable.

https://shmew.github.io/Feliz.MaterialUI.MaterialTable/

https://www.nuget.org/packages/Feliz.MaterialUI.MaterialTable/

https://material-table.com/#/

mastracu commented 3 years ago

For monaco-editor, idea is to follow steps in https://medium.com/@whitetigle/fable-for-busy-moms-and-dads-use-a-js-lib-in-one-minute-8e15e1c4096c

typscript definitions converted in fsharp can be found in

https://github.com/fable-compiler/ts2fable-exports/blob/master/Monaco.fs

mastracu commented 3 years ago

https://dev.to/semuserable/starting-with-fable-f-kbi

mastracu commented 3 years ago

I am spending days & days to use monaco-editor js library into fable. Do I need a webpack plugin ?

https://github.com/Microsoft/monaco-editor-webpack-plugin