From 03ac8eca45d0f1c642eb5e7589bf9db12ff3114e Mon Sep 17 00:00:00 2001 From: Keith Daulton Date: Mon, 31 Oct 2022 17:17:44 -0400 Subject: [PATCH] updates codicon component to FAST --- src/webviews/apps/commitDetails/commitDetails.html | 2 +- src/webviews/apps/commitDetails/commitDetails.ts | 4 +- src/webviews/apps/home/components/card-section.ts | 2 +- src/webviews/apps/home/components/header-card.ts | 2 +- src/webviews/apps/home/components/plus-content.ts | 2 +- .../apps/home/components/stepped-section.ts | 2 +- src/webviews/apps/home/home.ts | 2 +- .../apps/shared/components/actions/action-nav.ts | 2 +- src/webviews/apps/shared/components/code-icon.ts | 1532 +++++++++++++++++++ src/webviews/apps/shared/components/codicon.ts | 1537 -------------------- .../apps/shared/components/commit/commit-stats.ts | 2 +- .../shared/components/commit/file-change-item.ts | 2 +- .../components/list/file-change-list-item.ts | 2 +- .../apps/shared/components/list/list-item.ts | 2 +- .../shared/components/rich/issue-pull-request.ts | 2 +- .../apps/shared/components/search/search-box.ts | 2 +- .../apps/shared/components/search/search-input.ts | 2 +- .../apps/shared/components/webview-pane.ts | 2 +- 18 files changed, 1549 insertions(+), 1554 deletions(-) create mode 100644 src/webviews/apps/shared/components/code-icon.ts delete mode 100644 src/webviews/apps/shared/components/codicon.ts diff --git a/src/webviews/apps/commitDetails/commitDetails.html b/src/webviews/apps/commitDetails/commitDetails.html index f6b4516..037a98f 100644 --- a/src/webviews/apps/commitDetails/commitDetails.html +++ b/src/webviews/apps/commitDetails/commitDetails.html @@ -139,7 +139,7 @@ data-action-type="graph" aria-label="Open in Commit Graph" title="Open in Commit Graph" - > > { $el.classList.toggle('is-active', state.pinned); const $icon = $el.querySelector('[data-region="commit-pin"]'); - $icon?.setAttribute('icon', state.pinned ? 'pinned-filled' : 'pin'); + $icon?.setAttribute('icon', state.pinned ? 'gl-pinned-filled' : 'pin'); } renderSha(state: CommitState) { diff --git a/src/webviews/apps/home/components/card-section.ts b/src/webviews/apps/home/components/card-section.ts index 0150420..5206ca4 100644 --- a/src/webviews/apps/home/components/card-section.ts +++ b/src/webviews/apps/home/components/card-section.ts @@ -1,6 +1,6 @@ import { attr, css, customElement, FASTElement, html, when } from '@microsoft/fast-element'; import { numberConverter } from '../../shared/components/converters/number-converter'; -import '../../shared/components/codicon'; +import '../../shared/components/code-icon'; const template = html`