From 0ef99f2c8ee72d2ab350433abb5546e2bb7901aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Tue, 10 Jan 2023 21:22:39 +0800 Subject: [PATCH] refactor(publish): extract to composables --- components/publish/PublishWidget.vue | 139 ++++-------------------- composables/masto/publish.ts | 153 +++++++++++++++++++++++++++ composables/masto/routes.ts | 9 ++ composables/masto/statusDrafts.ts | 8 +- composables/status.ts | 3 - 5 files changed, 190 insertions(+), 122 deletions(-) create mode 100644 composables/masto/publish.ts delete mode 100644 composables/status.ts diff --git a/components/publish/PublishWidget.vue b/components/publish/PublishWidget.vue index 6cf2df7a1..e5d544237 100644 --- a/components/publish/PublishWidget.vue +++ b/components/publish/PublishWidget.vue @@ -1,16 +1,13 @@