From 6cb7f52e4f9a38cf934a802d8227c5ba24e620f5 Mon Sep 17 00:00:00 2001 From: solvedDev Date: Tue, 11 Oct 2022 22:12:36 +0200 Subject: [PATCH] feat: always show available compiler plugin names --- .../Windows/ExtensionStore/ExtensionCard.vue | 61 +++++++++---------- .../Windows/ExtensionStore/ExtensionViewer.ts | 6 ++ 2 files changed, 36 insertions(+), 31 deletions(-) diff --git a/src/components/Windows/ExtensionStore/ExtensionCard.vue b/src/components/Windows/ExtensionStore/ExtensionCard.vue index f90a62916..4af2666bc 100644 --- a/src/components/Windows/ExtensionStore/ExtensionCard.vue +++ b/src/components/Windows/ExtensionStore/ExtensionCard.vue @@ -126,42 +126,41 @@ {{ extension.description }} - + @@ -195,7 +194,7 @@ export default { return this.$vuetify.breakpoint.mobile }, compilerPlugins() { - return Object.keys(this.extension.connected.compilerPlugins) + return this.extension.compilerPlugins .map((plugin) => `"${plugin}"`) .join(', ') }, diff --git a/src/components/Windows/ExtensionStore/ExtensionViewer.ts b/src/components/Windows/ExtensionStore/ExtensionViewer.ts index 5088a019a..15d821638 100644 --- a/src/components/Windows/ExtensionStore/ExtensionViewer.ts +++ b/src/components/Windows/ExtensionStore/ExtensionViewer.ts @@ -64,6 +64,12 @@ export class ExtensionViewer { } //#endregion + get compilerPlugins() { + const ext = this.extension + if(ext) return Object.keys(ext.compilerPlugins ?? {}) + + return Object.keys(this.config?.compiler?.plugins ?? {}) + } get isInstalled() { return this._isInstalled }