misskey/src/client/components/file-type-icon.vue
syuilo 11349561d6
Use FontAwesome as web font instead of vue component (#7469)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Update yarn.lock

* wip

* wip
2021-04-20 23:22:59 +09:00

29 lines
452 B
Vue

<template>
<span class="mk-file-type-icon">
<template v-if="kind == 'image'"><i class="fas fa-file-image"></i></template>
</span>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import * as os from '@client/os';
export default defineComponent({
props: {
type: {
type: String,
required: true,
}
},
data() {
return {
};
},
computed: {
kind(): string {
return this.type.split('/')[0];
}
}
});
</script>