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

Reviewed-on: FoundKeyGang/FoundKey#154
This commit is contained in:
Johann150 2022-09-17 23:09:11 +02:00
parent 790740ab2c
commit 26396f9900
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

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>