client: Refactor gallery-post-preview.vue to composition API #154

Manually merged
Johann150 merged 1 commit from refactor/gallery-post-preview.vue into main 2022-09-17 21:10:15 +00:00
Showing only changes of commit a373025412 - Show all commits

View file

@ -14,25 +14,13 @@
</MkA>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import { userName } from '@/filters/user';
<script lang="ts" setup>
import * as foundkey from 'foundkey-js';
import ImgWithBlurhash from '@/components/img-with-blurhash.vue';
export default defineComponent({
components: {
ImgWithBlurhash,
},
props: {
post: {
type: Object,
required: true,
},
},
methods: {
userName,
},
});
defineProps<{
post: foundkey.entities.GalleryPost;
}>();
</script>
<style lang="scss" scoped>