mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
remove the unused widgets (#9483)
This commit is contained in:
@@ -150,8 +150,8 @@ interface IExtensionEditorTemplate {
|
|||||||
builtin: HTMLElement;
|
builtin: HTMLElement;
|
||||||
license: HTMLElement;
|
license: HTMLElement;
|
||||||
publisher: HTMLElement;
|
publisher: HTMLElement;
|
||||||
installCount: HTMLElement;
|
// installCount: HTMLElement; // {{SQL CARBON EDIT}} remove install count widget
|
||||||
rating: HTMLElement;
|
// rating: HTMLElement; // {{SQL CARBON EDIT}} remove rating widget
|
||||||
repository: HTMLElement;
|
repository: HTMLElement;
|
||||||
description: HTMLElement;
|
description: HTMLElement;
|
||||||
extensionActionBar: ActionBar;
|
extensionActionBar: ActionBar;
|
||||||
@@ -224,9 +224,10 @@ export class ExtensionEditor extends BaseEditor {
|
|||||||
const subtitle = append(details, $('.subtitle'));
|
const subtitle = append(details, $('.subtitle'));
|
||||||
const publisher = append(subtitle, $('span.publisher.clickable', { title: localize('publisher', "Publisher name"), tabIndex: 0 }));
|
const publisher = append(subtitle, $('span.publisher.clickable', { title: localize('publisher', "Publisher name"), tabIndex: 0 }));
|
||||||
|
|
||||||
const installCount = append(subtitle, $('span.install', { title: localize('install count', "Install count"), tabIndex: 0 }));
|
// {{SQL CARBON EDIT}} remove rating and install count widgets
|
||||||
|
// const installCount = append(subtitle, $('span.install', { title: localize('install count', "Install count"), tabIndex: 0 }));
|
||||||
|
|
||||||
const rating = append(subtitle, $('span.rating.clickable', { title: localize('rating', "Rating"), tabIndex: 0 }));
|
// const rating = append(subtitle, $('span.rating.clickable', { title: localize('rating', "Rating"), tabIndex: 0 }));
|
||||||
|
|
||||||
const repository = append(subtitle, $('span.repository.clickable'));
|
const repository = append(subtitle, $('span.repository.clickable'));
|
||||||
repository.textContent = localize('repository', 'Repository');
|
repository.textContent = localize('repository', 'Repository');
|
||||||
@@ -280,13 +281,13 @@ export class ExtensionEditor extends BaseEditor {
|
|||||||
iconContainer,
|
iconContainer,
|
||||||
identifier,
|
identifier,
|
||||||
ignoreActionbar,
|
ignoreActionbar,
|
||||||
installCount,
|
// installCount, // {{SQL CARBON EDIT}} remove install count widget
|
||||||
license,
|
license,
|
||||||
name,
|
name,
|
||||||
navbar,
|
navbar,
|
||||||
preview,
|
preview,
|
||||||
publisher,
|
publisher,
|
||||||
rating,
|
// rating, // {{SQL CARBON EDIT}} remove rating widget
|
||||||
repository,
|
repository,
|
||||||
subtext,
|
subtext,
|
||||||
subtextContainer
|
subtextContainer
|
||||||
@@ -360,10 +361,10 @@ export class ExtensionEditor extends BaseEditor {
|
|||||||
|
|
||||||
toggleClass(template.name, 'clickable', !!extension.url);
|
toggleClass(template.name, 'clickable', !!extension.url);
|
||||||
toggleClass(template.publisher, 'clickable', !!extension.publisher); // {{SQL CARBON EDIT}} !!extension.url -> !!extension.publisher, for ADS we don't have marketplace website, but still want to make it clickable and filter extensions by publisher
|
toggleClass(template.publisher, 'clickable', !!extension.publisher); // {{SQL CARBON EDIT}} !!extension.url -> !!extension.publisher, for ADS we don't have marketplace website, but still want to make it clickable and filter extensions by publisher
|
||||||
toggleClass(template.rating, 'clickable', !!extension.url);
|
// toggleClass(template.rating, 'clickable', !!extension.url); // {{SQL CARBON EDIT}} remove rating widget
|
||||||
if (extension.url) {
|
if (extension.url) {
|
||||||
this.transientDisposables.add(this.onClick(template.name, () => this.openerService.open(URI.parse(extension.url!))));
|
this.transientDisposables.add(this.onClick(template.name, () => this.openerService.open(URI.parse(extension.url!))));
|
||||||
this.transientDisposables.add(this.onClick(template.rating, () => this.openerService.open(URI.parse(`${extension.url}#review-details`))));
|
// this.transientDisposables.add(this.onClick(template.rating, () => this.openerService.open(URI.parse(`${extension.url}#review-details`)))); // {{SQL CARBON EDIT}} remove rating widget
|
||||||
this.transientDisposables.add(this.onClick(template.publisher, () => {
|
this.transientDisposables.add(this.onClick(template.publisher, () => {
|
||||||
this.viewletService.openViewlet(VIEWLET_ID, true)
|
this.viewletService.openViewlet(VIEWLET_ID, true)
|
||||||
.then(viewlet => viewlet?.getViewPaneContainer() as IExtensionsViewPaneContainer)
|
.then(viewlet => viewlet?.getViewPaneContainer() as IExtensionsViewPaneContainer)
|
||||||
|
|||||||
Reference in New Issue
Block a user