mirror of
				https://github.com/gristlabs/grist-core.git
				synced 2025-06-13 20:53:59 +00:00 
			
		
		
		
	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
		
			
				
	
	
		
			19 lines
		
	
	
		
			476 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			476 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!doctype html>
 | 
						|
<html>
 | 
						|
<head>
 | 
						|
  <meta charset="utf8">
 | 
						|
  <!-- INSERT META -->
 | 
						|
  <!-- INSERT BASE -->
 | 
						|
  <link rel="icon" type="image/x-icon" href="icons/favicon.png" />
 | 
						|
  <link rel="stylesheet" href="icons/icons.css">
 | 
						|
  <!-- INSERT LOCALE -->
 | 
						|
  <!-- INSERT CONFIG -->
 | 
						|
  <!-- INSERT CUSTOM -->
 | 
						|
  <title>API Console<!-- INSERT TITLE SUFFIX --></title>
 | 
						|
</head>
 | 
						|
<body>
 | 
						|
  <!-- INSERT WARNING -->
 | 
						|
  <script crossorigin="anonymous" src="apiconsole.bundle.js"></script>
 | 
						|
</body>
 | 
						|
</html>
 |