scicloj / scicloj.github.io

The Scicloj website
http://scicloj.org
MIT License
4 stars 4 forks source link

Good user interface to explore available libraries #58

Open teodorlu opened 1 year ago

teodorlu commented 1 year ago

We currently generate libs.md from data (#57). The motivation for generating libs.md from data is to enable better user interfaces for exploring that data. This issue collects ideas & experiments.

To get started with the data in a REPL:

(require '[clojure.edn :as edn])

(-> "https://scicloj.github.io/docs/resources/model.edn"
    slurp
    edn/read-string)

Feel free to post more links + screenshots here! Help & ideas very much welcome.

teodorlu commented 1 year ago

Plain HTML table with scittle: https://play.teod.eu/scicloj-libraries/ (source)

image

daslu commented 1 year ago

@teodorlu this is fantastic.

Would you find it useful to wrap this with DataTables UI? I got that working with Scittle in the Clay project.

Would you find it helpful if I write a draft demonstrating that with your table?

teodorlu commented 1 year ago

Would you find it useful to wrap this with DataTables UI?

Yup!

I tried a bit, but got stuck on the combination of reagent generating the DOM and DataTables also wanting to control the dom. Plain javascript might be easier than Scittle / Clojurescript.

Perhaps we can use react-data-table-component.

daslu commented 1 year ago

Cool, I'll try in the coming days following the experience with Scittle in Clay.

react-data-table-component

Interesting! Didn't know about that.