diff --git a/components/Icon.vue b/components/Icon.vue index 73ae6aae..a362c460 100644 --- a/components/Icon.vue +++ b/components/Icon.vue @@ -1,5 +1,5 @@ @@ -20,6 +20,15 @@ iconSet() { return this.valueParts.length > 1 ? this.valueParts[0] : this.set; }, + iconSource() { + if (this.v.endsWith('.svg')) { + return `/img/${this.v}`; + } + if (this.v.startsWith('https://')) { + return this.v; + } + return null; + }, }, } diff --git a/components/ProfileLink.vue b/components/ProfileLink.vue index 49865b98..e16b5825 100644 --- a/components/ProfileLink.vue +++ b/components/ProfileLink.vue @@ -1,58 +1,17 @@