From fd208f2b419c69b4eb43ac0f94d63ef86ddea03e Mon Sep 17 00:00:00 2001 From: KingOfDog Date: Sat, 22 Aug 2020 13:23:24 +0200 Subject: [PATCH] Embed file icons inline in attaches block --- src/assets/svg/custom.svg | 3 --- src/assets/svg/standard.svg | 6 ------ src/components/AttachesBlock.vue | 21 +++++++++++---------- 3 files changed, 11 insertions(+), 19 deletions(-) delete mode 100644 src/assets/svg/custom.svg delete mode 100644 src/assets/svg/standard.svg diff --git a/src/assets/svg/custom.svg b/src/assets/svg/custom.svg deleted file mode 100644 index e39b6dd..0000000 --- a/src/assets/svg/custom.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/src/assets/svg/standard.svg b/src/assets/svg/standard.svg deleted file mode 100644 index 02987ab..0000000 --- a/src/assets/svg/standard.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/components/AttachesBlock.vue b/src/components/AttachesBlock.vue index 213395c..848d162 100644 --- a/src/components/AttachesBlock.vue +++ b/src/components/AttachesBlock.vue @@ -5,11 +5,18 @@ :style="{ color: color }" class="attaches-block-file-icon" > - - + + + + +
@@ -60,12 +67,6 @@ export default { byteFormatter }, props: ["data"], - data() { - return { - standardIcon: require("@/assets/svg/standard.svg"), - customIcon: require("@/assets/svg/custom.svg") - }; - }, computed: { color() { return extensions[this.data.file.extension];