summaryrefslogtreecommitdiff
path: root/packages/client/src/pages/user
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-06-30 21:38:34 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-06-30 21:38:34 +0900
commit4c2cd3c8d58649c4a2d891caf088dcbee99596a3 (patch)
tree27669898bae8990990b6e89387f70d4210b072f4 /packages/client/src/pages/user
parent12.112.0-beta.9 (diff)
downloadmisskey-4c2cd3c8d58649c4a2d891caf088dcbee99596a3.tar.gz
misskey-4c2cd3c8d58649c4a2d891caf088dcbee99596a3.tar.bz2
misskey-4c2cd3c8d58649c4a2d891caf088dcbee99596a3.zip
chore(client): tweak ui
Diffstat (limited to 'packages/client/src/pages/user')
-rw-r--r--packages/client/src/pages/user/gallery.vue40
1 files changed, 14 insertions, 26 deletions
diff --git a/packages/client/src/pages/user/gallery.vue b/packages/client/src/pages/user/gallery.vue
index 07dda4a292..6af28d455b 100644
--- a/packages/client/src/pages/user/gallery.vue
+++ b/packages/client/src/pages/user/gallery.vue
@@ -8,36 +8,24 @@
</div>
</template>
-<script lang="ts">
-import { computed, defineComponent } from 'vue';
+<script lang="ts" setup>
+import { computed } from 'vue';
+import * as misskey from 'misskey-js';
import MkGalleryPostPreview from '@/components/gallery-post-preview.vue';
import MkPagination from '@/components/ui/pagination.vue';
-export default defineComponent({
- components: {
- MkPagination,
- MkGalleryPostPreview,
- },
-
- props: {
- user: {
- type: Object,
- required: true
- },
- },
-
- data() {
- return {
- pagination: {
- endpoint: 'users/gallery/posts' as const,
- limit: 6,
- params: computed(() => ({
- userId: this.user.id
- })),
- },
- };
- },
+const props = withDefaults(defineProps<{
+ user: misskey.entities.User;
+}>(), {
});
+
+const pagination = {
+ endpoint: 'users/gallery/posts' as const,
+ limit: 6,
+ params: computed(() => ({
+ userId: props.user.id,
+ })),
+};
</script>
<style lang="scss" scoped>