gristlabs_grist-core/test/server/lib
Paul Fitzpatrick cc9a9ae8c5 (core) support for bundling custom widgets with the Grist app
Summary:
This adds support for bundling custom widgets with the Grist app, as follows:

 * Adds a new `widgets` component to plugins mechanism.
 * When a set of widgets is provided in a plugin, the html/js/css assets for those widgets are served on the existing untrusted user content port.
 * Any bundled `grist-plugin-api.js` will be served with the Grist app's own version of that file. It is important that bundled widgets not refer to https://docs.getgrist.com for the plugin js, since they must be capable of working offline.
 * The logic for configuring that port is updated a bit.
 * I removed the CustomAttachedView class in favor of applying settings of bundled custom widgets more directly, without modification on view.

Any Grist installation via docker will need an extra step now, since there is an extra port that needs exposing for full functionality. I did add a `GRIST_TRUST_PLUGINS` option for anyone who really doesn't want to do this, and would prefer to trust the plugins and have them served on the same port.

Actually making use of bundling will be another step. It'll be important to mesh it with our SaaS's use of APP_STATIC_URL for serving most static assets.

Design sketch: https://grist.quip.com/bJlWACWzr2R9/Bundled-custom-widgets

Test Plan: added a test

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D4069
2023-10-27 17:00:10 -04:00
..
helpers (core) Update dependencies 2023-10-11 17:36:58 -04:00
ACLFormula.ts Dump the rule for ACL formula warnings (#639) 2023-08-23 09:23:29 -04:00
Assistance.ts (core) move assistant test 2023-08-22 08:14:48 -04:00
Authorizer.ts (core) support for bundling custom widgets with the Grist app 2023-10-27 17:00:10 -04:00
DocApi2.ts (core) Persist forks in home db 2023-02-20 22:46:36 -05:00
DocApi.ts (core) updates from grist-core 2023-10-17 06:47:46 +02:00
HostedStorageManager.ts (core) updates from grist-core 2023-05-30 08:32:34 -04:00
ManyFetches.ts Fix ManyFetches test, and include into grist-core a needed upgrade to the 'ws' package. (#614) 2023-08-07 18:39:14 -04:00
MemoryPool.ts (core) Manage memory used for websocket responses to reduce the risk of server crashes. 2023-08-07 11:28:31 -04:00
MinIOExternalStorage.ts Issue 359 support scaleway (#577) 2023-07-20 06:16:58 -04:00
ProxyAgent.ts (core) Add logging of errors whenever ProxyAgent is used, and a test for it. 2023-05-17 10:21:53 -04:00
Telemetry.ts (core) Update dependencies 2023-10-11 17:36:58 -04:00
Webhooks-Proxy.ts (core) Update dependencies 2023-10-11 17:36:58 -04:00