gristlabs / grist-static

Showing Grist spreadsheets on a static website, without a special backend.
https://gristlabs.github.io/grist-static/
Apache License 2.0
82 stars 0 forks source link

make standard list of custom widgets available #15

Closed paulfitz closed 1 year ago

paulfitz commented 1 year ago

Grist Labs publishes a list of custom widgets in the https://github.com/gristlabs/grist-widget repo. This commit implements the /api/widgets endpoint to make these available in the UI in grist-static. There is a CORS issue being addressed in https://github.com/gristlabs/grist-widget/pull/52

Also herded various globals into a single object, as a small step towards sanity.

A few stray deployment tweaks are also included.

The URL for the list of widgets should be made configurable in follow-up.

paulfitz commented 1 year ago

(motivation for this is that it could allow a much nicer, much more useful test page at https://gristlabs.github.io/grist-widget/)