client: Refactor gallery-post-preview.vue to composition API
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/pr/lint-backend Pipeline was successful
ci/woodpecker/pr/lint-foundkey-js Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/lint-client Pipeline failed
ci/woodpecker/pr/test Pipeline failed

This commit is contained in:
Norm 2022-09-14 21:20:58 -04:00
parent a932f91c04
commit a373025412
Signed by: norm
GPG key ID: 7123E30E441E80DE

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>