Skip to content

Commit

Permalink
Release 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
deiteris committed May 6, 2021
1 parent 366c2d9 commit bba64a1
Show file tree
Hide file tree
Showing 10 changed files with 266 additions and 179 deletions.
65 changes: 34 additions & 31 deletions api-console/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api-console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"eslint-config-prettier": "^8.3.0",
"husky": "^6.0.0",
"lint-staged": "^10.5.4",
"postcss": "^8.2.13",
"postcss": "^8.2.14",
"rimraf": "^3.0.2",
"rollup": "^2.47.0",
"rollup-plugin-cpy": "^2.0.1",
Expand Down
18 changes: 18 additions & 0 deletions api-console/src/api-console-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,24 @@ class CustomApiConsoleApp extends ApiConsoleApp {
.proxy="${this.proxy}"
.proxyEncodeUrl="${this.proxyEncodeUrl}"></xhr-simple-request>`;
}

resetSelection() {
if (this.page !== 'docs') {
this.page = 'docs';
}
this.selectedShapeType = 'summary';
this.selectedShape = 'summary';
}

_apiNavigationOcurred(e) {
const { selected, type, passive } = e.detail;
const isPassive = passive === true;
if (!isPassive && this.page !== 'docs') {
this.closeTryIt();
}
this.selectedShape = selected;
this.selectedShapeType = type;
}
}

window.customElements.define('api-console-app', CustomApiConsoleApp);
16 changes: 16 additions & 0 deletions extension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## 1.2.1

### Changes

* The API file preview shows loading animation.

* When API file preview is loaded, the `Summary` section will be selected by default when available.

### Security

Restrict local servers to listen only on `127.0.0.1`.

### Fixes

Fix the Try It functionality for VS Code 1.56.

## 1.2.0

### Features
Expand Down
114 changes: 57 additions & 57 deletions extension/assets/api-console/apic-build.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion extension/assets/api-console/vendor.js

Large diffs are not rendered by default.

82 changes: 40 additions & 42 deletions extension/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bba64a1

Please sign in to comment.