From c5cf53a1be64572e405952bf5b3600095cc46057 Mon Sep 17 00:00:00 2001 From: silverpill Date: Sun, 5 Jun 2022 20:02:25 +0000 Subject: [PATCH] Split subscription page into two components --- src/components/Subscription.vue | 202 +++++++++++++++ src/components/SubscriptionSetup.vue | 221 +++++++++++++++++ src/router/index.ts | 4 +- src/views/Subscription.vue | 352 --------------------------- src/views/SubscriptionPage.vue | 41 ++++ 5 files changed, 466 insertions(+), 354 deletions(-) create mode 100644 src/components/Subscription.vue create mode 100644 src/components/SubscriptionSetup.vue delete mode 100644 src/views/Subscription.vue create mode 100644 src/views/SubscriptionPage.vue diff --git a/src/components/Subscription.vue b/src/components/Subscription.vue new file mode 100644 index 0000000..4ebb031 --- /dev/null +++ b/src/components/Subscription.vue @@ -0,0 +1,202 @@ + + + + + diff --git a/src/components/SubscriptionSetup.vue b/src/components/SubscriptionSetup.vue new file mode 100644 index 0000000..ae79349 --- /dev/null +++ b/src/components/SubscriptionSetup.vue @@ -0,0 +1,221 @@ + + + + + diff --git a/src/router/index.ts b/src/router/index.ts index e860172..af9a4d1 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -13,7 +13,7 @@ import PostOverlay from "@/views/PostOverlay.vue" import PublicTimeline from "@/views/PublicTimeline.vue" import TagTimeline from "@/views/TagTimeline.vue" import SearchResultList from "@/views/SearchResultList.vue" -import SubscriptionView from "@/views/Subscription.vue" +import SubscriptionPage from "@/views/SubscriptionPage.vue" import { useCurrentUser } from "@/store/user" @@ -103,7 +103,7 @@ const routes: Array = [ { path: "/profile/:profileId/subscription", name: "profile-subscription", - component: SubscriptionView, + component: SubscriptionPage, meta: { }, }, { diff --git a/src/views/Subscription.vue b/src/views/Subscription.vue deleted file mode 100644 index 60fd112..0000000 --- a/src/views/Subscription.vue +++ /dev/null @@ -1,352 +0,0 @@ - - - - - diff --git a/src/views/SubscriptionPage.vue b/src/views/SubscriptionPage.vue new file mode 100644 index 0000000..12bdf32 --- /dev/null +++ b/src/views/SubscriptionPage.vue @@ -0,0 +1,41 @@ + + +