Skip to content

Commit 3259efc

Browse files
committed
lint fix
1 parent c11bb78 commit 3259efc

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

src/components/apis/api-details-page/ko/runtime/menu/nav-menu.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export class NavMenu {
162162
}
163163

164164
if (menuItem.type == graphqlMenuItem) {
165-
const graphUrl = this.graphDocService.routeHelper.getGraphReferenceUrl(this.api().name, this.graphDocService.typeIndexer()[this.graphqlSelectedType()], menuItem.value);;
165+
const graphUrl = this.graphDocService.routeHelper.getGraphReferenceUrl(this.api().name, this.graphDocService.typeIndexer()[this.graphqlSelectedType()], menuItem.value);
166166
this.router.navigateTo(graphUrl);
167167
}
168168
}
@@ -289,16 +289,16 @@ export class NavMenu {
289289
await this.loadOperations();
290290

291291
if (this.operationsMenuItems().length > 0 || this.operationsByTagsMenuItems().length > 0) {
292-
document.getElementById('details-operations').setAttribute('open', '');
292+
document.getElementById("details-operations").setAttribute("open", "");
293293

294294
this.operationsByTagsMenuItems()?.forEach(x => {
295-
const id = 'details-tag-' + x.tagName;
296-
document.getElementById(id).setAttribute('open', '');
295+
const id = "details-tag-" + x.tagName;
296+
document.getElementById(id).setAttribute("open", "");
297297
});
298298
}
299299

300300
if (this.filteredWikiDocumentationMenuItems().length > 0) {
301-
document.getElementById('details-wiki').setAttribute('open', '');
301+
document.getElementById("details-wiki").setAttribute("open", "");
302302
}
303303
}
304304

@@ -390,7 +390,7 @@ export class NavMenu {
390390
}
391391

392392
if (this.api() && this.api().id) {
393-
let exportObject = await this.apiService.exportApi(this.api().id, definitionType);
393+
const exportObject = await this.apiService.exportApi(this.api().id, definitionType);
394394
downloadAPIDefinition(this.api().name, exportObject, definitionType);
395395
}
396396

src/components/apis/api-details-page/ko/runtime/staticPages/api-products-cards.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,6 @@ export class ApiProductsCards {
102102
}
103103

104104
public getFullProductUrl(product: Product): string {
105-
return window.location.host + '/' + this.routeHelper.getProductReferenceUrl(product.name, "product");
105+
return window.location.host + "/" + this.routeHelper.getProductReferenceUrl(product.name, "product");
106106
}
107107
}

src/components/apis/api-details-page/ko/runtime/staticPages/changelog.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,24 +65,24 @@ export class Changelog {
6565

6666
this.lastModifiedDate(new Date(changeLog.value[0]?.createdDateTime).toLocaleDateString());
6767

68-
window.addEventListener('scroll', () => {
68+
window.addEventListener("scroll", () => {
6969
if (this.ignoreNextScrollEvent) {
7070
return;
7171
}
7272
let isItemSelected = false;
73-
const changelogItems = document.querySelectorAll('.changelog-item');
73+
const changelogItems = document.querySelectorAll(".changelog-item");
7474

7575
changelogItems.forEach(changlogitem => {
7676
if (changlogitem instanceof HTMLElement) {
7777
const menuItemTop = changlogitem.getBoundingClientRect().top;
7878
const menuItemBottom = changlogitem.getBoundingClientRect().bottom;
7979

80-
const menuItem = document.getElementById('menu-' + changlogitem.id);
80+
const menuItem = document.getElementById("menu-" + changlogitem.id);
8181
if (menuItemTop >= 0 && menuItemBottom <= window.innerHeight && !isItemSelected) {
82-
menuItem.classList.add('selected');
82+
menuItem.classList.add("selected");
8383
isItemSelected = true;
8484
} else {
85-
menuItem.classList.remove('selected');
85+
menuItem.classList.remove("selected");
8686
}
8787
}
8888
});
@@ -100,13 +100,13 @@ export class Changelog {
100100
element.scrollIntoView({ behavior: "smooth" });
101101
}
102102

103-
const elementToSelect = document.getElementById('menu-' + item.createdDateTime);
103+
const elementToSelect = document.getElementById("menu-" + item.createdDateTime);
104104
if (elementToSelect) {
105105

106-
const menuItems = document.querySelectorAll('.menu-item');
106+
const menuItems = document.querySelectorAll(".menu-item");
107107

108108
menuItems.forEach(menuItem => {
109-
menuItem.classList.remove('selected');
109+
menuItem.classList.remove("selected");
110110
});
111111
elementToSelect.classList.add("selected");
112112
}
@@ -130,7 +130,7 @@ export class Changelog {
130130
this.apiService.getMoreApiChangelogs(this.nextLink());
131131

132132
const changeLog = await this.apiService.getMoreApiChangelogs(this.nextLink());
133-
let dictionary = this.changelogs();
133+
const dictionary = this.changelogs();
134134

135135
changeLog.value.forEach(entity => {
136136
const createdDateTime = entity.createdDateTime;

src/components/apis/details-of-api/ko/runtime/api-details.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export class ApiDetails {
105105
}
106106

107107
if (this.api() && this.api().id) {
108-
let exportObject = await this.apiService.exportApi(this.api().id, definitionType);
108+
const exportObject = await this.apiService.exportApi(this.api().id, definitionType);
109109
downloadAPIDefinition(this.api().name, exportObject, definitionType);
110110
}
111111

src/services/apiService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ export class ApiService {
574574

575575
public async getApiWiki(apiId: string): Promise<Wiki> {
576576
let query = `apis/${apiId}/wikis/default`;
577-
query = Utils.addQueryParameter(query, 'api-version=2022-08-01');
577+
query = Utils.addQueryParameter(query, "api-version=2022-08-01");
578578
const wikiContract = await this.mapiClient.get<WikiContract>(query, [await this.mapiClient.getPortalHeader("getApiWiki")]);
579579
return new Wiki(wikiContract);
580580
}

src/services/documentationService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export class DocumentationService {
99

1010
public async getDocumentation(documentationId: string): Promise<Documentation> {
1111
let query = `documentations/${documentationId}`;
12-
query = Utils.addQueryParameter(query, 'api-version=2022-08-01');
12+
query = Utils.addQueryParameter(query, "api-version=2022-08-01");
1313
const documentationContract = await this.mapiClient.get<DocumentationContract>(query, [await this.mapiClient.getPortalHeader("getDocumentation")]);
1414

1515
return new Documentation(documentationContract);

0 commit comments

Comments
 (0)