Le mar. 9 juil. 2019 à 01:04, Arthur A. Gleckler <xxxxxx@speechcode.com> a écrit :
On Mon, Jul 8, 2019 at 3:58 PM Lassi Kortela <xxxxxx@lassi.io> wrote:
 
I would recommend a reasonably modern single-page app for
<docs.schemers.org> since that address would be the obvious starting
point for newbies and many programmers expect something quite modern
nowadays. It gives a good first impression if we have something modern
there, in any case. Another reason is that the API will have a wide
variety of information. It will be hard to present all of it in an
interactive form unless we use a single-page app (there's just so much
of it). 

It would be nice to specify exactly what the app will do, though.  Will it be primarily a search UI with a text box and a few controls?  (That's what I implemented for SRFIs at srfi.schemers.org.)  Or will it be something more elaborate?

Exactly.

I created a repository with XHR GET support, if someone wants to play with it:

https://github.com/scheme-live/ff.scm/commit/2cdb99105bf905d1eede18a3422aa8efd6959c62

After git clone, I run: python3 -m http.server and then what is interesting happens in the
web developer console but you need to input something in the input text box to trigger the
XHR GET foo.js.

I had some bad luck so you might want to run it in private browsing mode.

The interesting code is main.js and main.scm.

Another thing that is not described in the commit message is the use of custom reactjs
components, right now I only tried basic stuff like div, input etc... I never tried third party
widgets.

You might need to run npm install. not sure about that. I think I commited the "helpers"...

(I don't know if this will work, it is worth trying)

Night!



--
Amirouche ~ amz3 ~ https://hyper.dev