diff --git a/src/web/app/common/-tags/file-type-icon.tag b/src/web/app/common/-tags/file-type-icon.tag deleted file mode 100644 index f630efe118f40216fa6239a73a60459148586260..0000000000000000000000000000000000000000 --- a/src/web/app/common/-tags/file-type-icon.tag +++ /dev/null @@ -1,10 +0,0 @@ -<mk-file-type-icon> - <template v-if="kind == 'image'">%fa:file-image%</template> - <style lang="stylus" scoped> - :scope - display inline - </style> - <script lang="typescript"> - this.kind = this.opts.type.split('/')[0]; - </script> -</mk-file-type-icon> diff --git a/src/web/app/common/views/components/file-type-icon.vue b/src/web/app/common/views/components/file-type-icon.vue new file mode 100644 index 0000000000000000000000000000000000000000..aa2f0ed5194281c4499ed81ac098457ccf2a66ad --- /dev/null +++ b/src/web/app/common/views/components/file-type-icon.vue @@ -0,0 +1,17 @@ +<template> +<span> + <template v-if="kind == 'image'">%fa:file-image%</template> +</span> +</template> + +<script lang="ts"> +import Vue from 'vue'; +export default Vue.extend({ + props: ['type'], + computed: { + kind(): string { + return this.type.split('/')[0]; + } + } +}); +</script>