From 67765a645e16a1ac8cc1b2783b9b3f73f300fef2 Mon Sep 17 00:00:00 2001 From: summersamara Date: Tue, 16 May 2023 21:19:04 +0200 Subject: [PATCH] read logo from separate svg file for easier customization --- js/src/assets/images/default_logo.svg | 31 +++++++++++++++++++ js/src/components/MobilizonLogo.vue | 44 +++++---------------------- js/src/extension.ts | 4 +++ js/src/extension/SvgComponent.vue | 20 ++++++++++++ 4 files changed, 62 insertions(+), 37 deletions(-) create mode 100644 js/src/assets/images/default_logo.svg create mode 100644 js/src/extension.ts create mode 100644 js/src/extension/SvgComponent.vue diff --git a/js/src/assets/images/default_logo.svg b/js/src/assets/images/default_logo.svg new file mode 100644 index 000000000..9a95d3685 --- /dev/null +++ b/js/src/assets/images/default_logo.svg @@ -0,0 +1,31 @@ + + Mobilizon Logo + + + + + + + + + \ No newline at end of file diff --git a/js/src/components/MobilizonLogo.vue b/js/src/components/MobilizonLogo.vue index 32cbf6564..4ac7f773c 100644 --- a/js/src/components/MobilizonLogo.vue +++ b/js/src/components/MobilizonLogo.vue @@ -1,42 +1,12 @@ + diff --git a/js/src/extension.ts b/js/src/extension.ts new file mode 100644 index 000000000..488bab459 --- /dev/null +++ b/js/src/extension.ts @@ -0,0 +1,4 @@ + +export const Images = { + appLogo: "/src/assets/images/default_logo.svg" +}; diff --git a/js/src/extension/SvgComponent.vue b/js/src/extension/SvgComponent.vue new file mode 100644 index 000000000..89b75a3f7 --- /dev/null +++ b/js/src/extension/SvgComponent.vue @@ -0,0 +1,20 @@ + + +