-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extended "Operation details" widget with "Use CORS proxy" option. (#1233
- Loading branch information
Showing
10 changed files
with
136 additions
and
24 deletions.
There are no files selected for viewing
59 changes: 42 additions & 17 deletions
59
src/components/operations/operation-details/ko/operationDetailsEditor.html
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,24 +1,49 @@ | ||
<fieldset class="form flex-item flex-item-grow" data-bind="scrollable: {}"> | ||
<div class="form-group"> | ||
<label for="enableConsole" class="form-label"> | ||
<input type="checkbox" id="enableConsole" name="enableConsole" data-bind="checked: enableConsole" /> | ||
Enable API console | ||
</label> | ||
</div> | ||
<div class="form-group"> | ||
<label for="enableScrollTo" class="form-label"> | ||
<input type="checkbox" id="enableScrollTo" name="enableScrollTo" data-bind="checked: enableScrollTo" /> | ||
Automatically scroll to operation name | ||
<div class="form-group form-group-collapsible"> | ||
<label class="form-label"> | ||
<a href="#" class="form-group-toggle" title="Toggle section" | ||
data-bind="collapse: '#operationConsoleCollapse'"></a> | ||
<b>Operation console</b> | ||
</label> | ||
<div id="operationConsoleCollapse" class="collapse form-group-collapse"> | ||
<div class="form-group"> | ||
<label for="enableConsole" class="form-label"> | ||
<input type="checkbox" id="enableConsole" name="enableConsole" data-bind="checked: enableConsole" /> | ||
Enable API console | ||
</label> | ||
</div> | ||
<div class="form-group"> | ||
<label for="useCorsProxy" class="form-label"> | ||
<input type="checkbox" id="useCorsProxy" name="useCorsProxy" data-bind="checked: useCorsProxy" /> | ||
Use CORS proxy | ||
</label> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="defaultSchemaView" class="form-label"> | ||
Default schema view | ||
<div class="form-group form-group-collapsible"> | ||
<label class="form-label"> | ||
<a href="#" class="form-group-toggle" title="Toggle section" | ||
data-bind="collapse: '#miscellaneousCollapse'"></a> | ||
<b>Miscellaneous</b> | ||
</label> | ||
<select class="form-control" data-bind="value: defaultSchemaView"> | ||
<option value="table">Table</value> | ||
<option value="raw">Raw schema</value> | ||
</select> | ||
<div id="miscellaneousCollapse" class="collapse form-group-collapse"> | ||
<div class="form-group"> | ||
<label for="enableScrollTo" class="form-label"> | ||
<input type="checkbox" id="enableScrollTo" name="enableScrollTo" | ||
data-bind="checked: enableScrollTo" /> | ||
Automatically scroll to operation name | ||
</label> | ||
</div> | ||
<div class="form-group"> | ||
<label for="defaultSchemaView" class="form-label"> | ||
Default schema view | ||
</label> | ||
<select class="form-control" data-bind="value: defaultSchemaView"> | ||
<option value="table">Table</value> | ||
<option value="raw">Raw schema</value> | ||
</select> | ||
</div> | ||
</div> | ||
</div> | ||
</fieldset> |
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
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
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
11 changes: 11 additions & 0 deletions
11
src/components/operations/operation-details/ko/runtime/responsePackage.ts
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,11 @@ | ||
export interface NameValuePair { | ||
name: string; | ||
value: string; | ||
} | ||
|
||
export interface ResponsePackage { | ||
statusCode: number; | ||
statusMessage: string; | ||
headers: NameValuePair[]; | ||
body: any; | ||
} |
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
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