From 9606002fdef54323eb3ea27988bafaec1d0bce1a Mon Sep 17 00:00:00 2001 From: Avris Date: Sun, 27 Jun 2021 12:16:14 +0200 Subject: [PATCH] [ad] add link to cake --- components/Icon.vue | 11 ++++- components/ProfileLink.vue | 68 +++---------------------------- locale/de/translations.suml | 3 +- locale/en/translations.suml | 3 +- locale/es/translations.suml | 3 +- locale/fr/translations.suml | 3 +- locale/nl/translations.suml | 3 +- locale/pl/translations.suml | 3 +- locale/pt/translations.suml | 3 +- locale/ru/translations.suml | 3 +- locale/yi/translations.suml | 3 +- locale/zh/translations.suml | 3 +- plugins/link.js | 80 +++++++++++++++++++++++++++++++++++++ routes/profileEditor.vue | 11 +++++ 14 files changed, 127 insertions(+), 73 deletions(-) create mode 100644 plugins/link.js 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 @@