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

View file

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