gristlabs_grist-core/app/client
Dmitry S 11afc08f65 (core) Improve API Console and link from Document Settings.
Summary:
Changes to building and serving:
- Remove unpkg dependencies, add npm module for swagger-ui-dist instead.
- Move apiconsole JS logic into core/app/client/apiconsole.ts, and use TypeScript.
- Add symlinks to swagger in static/ and core/static/.
- Refactor loadScript, and add loadCssFile; use these to load swagger-ui resources.

Changes to console itself:
- Support docId, workspaceId, orgId URL parameters. When present, the matching
  value in dropdowns is moved to the front and marked as "(Current)".
- Fix the ordering of example values, particularly for workspaces.
- Remove unwanted example values.
- Hide confusing "Authorize" button.
- Hide API keys, and rely consistently on cookies for executing API calls.

Integration into Grist:
- Added a button to Document Settings, just under document ID in "API".
- The button opens a separate page, passing in org, workspace, and doc info for the current doc.

Test Plan: Only tested manually, no automated tests yet.

Reviewers: jarek

Reviewed By: jarek

Differential Revision: https://phab.getgrist.com/D4173
2024-01-29 10:08:19 -05:00
..
aclui (core) Avoid reporting unhelpful ResizeObserver error 2023-10-27 15:26:20 -04:00
components (core) updates from grist-core 2024-01-29 09:16:55 -05:00
lib (core) Improve API Console and link from Document Settings. 2024-01-29 10:08:19 -05:00
models (core) Polish forms 2024-01-24 02:18:03 -08:00
ui (core) Improve API Console and link from Document Settings. 2024-01-29 10:08:19 -05:00
ui2018 (core) Polish forms 2024-01-24 02:18:03 -08:00
widgets (core) Forms improvements 2024-01-19 10:34:03 +01:00
apiconsole.ts (core) Improve API Console and link from Document Settings. 2024-01-29 10:08:19 -05:00
app.css (core) Polish tutorial popups 2023-04-20 12:20:03 -04:00
app.js (core) Improve API Console and link from Document Settings. 2024-01-29 10:08:19 -05:00
billingMain.ts (core) Polish forms 2024-01-24 02:18:03 -08:00
browserCheck.ts (core) On mobile, only show a warning for older and unknown browsers rather than for all 2023-06-01 11:15:21 -04:00
declarations.d.ts (core) Polish new Add Column menu 2023-10-17 15:39:53 -04:00
DefaultHooks.ts add hooks for tweaking how downloads happen (for grist-static) (#665) 2023-09-09 14:50:32 -04:00
errorMain.ts (core) Polish forms 2024-01-24 02:18:03 -08:00
exposeModulesForTests.js (core) Improve API Console and link from Document Settings. 2024-01-29 10:08:19 -05:00
Hooks.ts support other SQLite wrappers, and various hooks needed by grist-static (#516) 2023-05-23 15:17:28 -04:00
logo.css (core) Cleanup removing some old unused files, fixing logo.css, and removing #grist-app. 2020-10-09 17:04:09 -04:00
tsconfig.json (core) Migrate to SRP and add change password dialog 2022-03-16 21:35:06 -07:00