From 52c13e9db52e47381ead2861e507ab97455e8316 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 16 Jan 2022 07:47:28 +0900 Subject: [PATCH] wip: refactor(client): migrate components to composition api --- packages/client/src/components/global/a.vue | 207 ++++++++---------- .../client/src/components/global/avatar.vue | 94 ++++---- .../client/src/components/global/loading.vue | 30 +-- .../global/misskey-flavored-markdown.vue | 22 +- .../client/src/components/global/time.vue | 114 +++++----- .../src/components/global/user-name.vue | 21 +- 6 files changed, 214 insertions(+), 274 deletions(-) diff --git a/packages/client/src/components/global/a.vue b/packages/client/src/components/global/a.vue index 77ee7525a..d3bc2235b 100644 --- a/packages/client/src/components/global/a.vue +++ b/packages/client/src/components/global/a.vue @@ -4,130 +4,113 @@ - diff --git a/packages/client/src/components/global/avatar.vue b/packages/client/src/components/global/avatar.vue index 300e5e079..9e8979fe5 100644 --- a/packages/client/src/components/global/avatar.vue +++ b/packages/client/src/components/global/avatar.vue @@ -1,74 +1,54 @@ - diff --git a/packages/client/src/components/global/loading.vue b/packages/client/src/components/global/loading.vue index 7bde53c12..43ea1395e 100644 --- a/packages/client/src/components/global/loading.vue +++ b/packages/client/src/components/global/loading.vue @@ -4,27 +4,17 @@ - diff --git a/packages/client/src/components/global/misskey-flavored-markdown.vue b/packages/client/src/components/global/misskey-flavored-markdown.vue index ab2040490..243d8614b 100644 --- a/packages/client/src/components/global/misskey-flavored-markdown.vue +++ b/packages/client/src/components/global/misskey-flavored-markdown.vue @@ -1,15 +1,23 @@ - diff --git a/packages/client/src/components/global/time.vue b/packages/client/src/components/global/time.vue index 6a330a230..d2788264c 100644 --- a/packages/client/src/components/global/time.vue +++ b/packages/client/src/components/global/time.vue @@ -1,73 +1,57 @@ - diff --git a/packages/client/src/components/global/user-name.vue b/packages/client/src/components/global/user-name.vue index bc93a8ea3..090de3df3 100644 --- a/packages/client/src/components/global/user-name.vue +++ b/packages/client/src/components/global/user-name.vue @@ -2,19 +2,14 @@ -