-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
1,646 additions
and
423 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { html } from 'lit-element'; | ||
import { ApiConsoleApp } from 'api-console/src/ApiConsoleApp.js'; | ||
|
||
/* This class overrides ApiConsoleApp methods to customize existing API Console features */ | ||
class CustomApiConsoleApp extends ApiConsoleApp { | ||
/* | ||
* Override _helpersTemplate() to remove redundant 'oauth-authorization' | ||
* elements since they are already created in the 'api-request-editor' element somehow. | ||
*/ | ||
_helpersTemplate() { | ||
super._helpersTemplate(); | ||
return html` | ||
<xhr-simple-request | ||
.appendHeaders="${this.appendHeaders}" | ||
.proxy="${this.proxy}" | ||
.proxyEncodeUrl="${this.proxyEncodeUrl}"></xhr-simple-request>`; | ||
} | ||
} | ||
|
||
window.customElements.define('api-console-app', CustomApiConsoleApp); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import './styles.css'; | ||
import './dark.css'; | ||
import 'api-console/api-console-app'; | ||
import './index.js'; | ||
import './api-console-app.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.