From 05f19cbb60f8430cc587a34c8890bbd9b294ff8c Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Mon, 2 Aug 2021 13:50:46 -0400 Subject: [PATCH] fix: remove legacy code in index.vue --- helpers/utils/composables.ts | 8 +- pages/index.vue | 1512 +--------------------------------- 2 files changed, 39 insertions(+), 1481 deletions(-) diff --git a/helpers/utils/composables.ts b/helpers/utils/composables.ts index ee903943f..2360885c6 100644 --- a/helpers/utils/composables.ts +++ b/helpers/utils/composables.ts @@ -98,15 +98,15 @@ export function useStreamSubscriber() { const runAndSubscribe = ( stream: Observable, - next: (value: T) => void, - error: (e: any) => void, - complete: () => void + next?: (value: T) => void, + error?: (e: any) => void, + complete?: () => void ) => { const sub = stream.subscribe({ next, error, complete: () => { - complete() + if (complete) complete() subs.splice(subs.indexOf(sub), 1) }, }) diff --git a/pages/index.vue b/pages/index.vue index b8271a12c..14d329333 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -29,218 +29,7 @@ - -
    -
  • -
    - -
    - -
    -
    - - - -
  • -
-
    -
  • - -
  • -
  • - -
  • -
    -
  • - -
  • -
    -
-
    -
  • -
    - - - -
    -
  • -
-
- - {{ $t("include_in_url") }} - -
-
- - -
    -
  • -
    - -
    - - - -
    -
    - -
  • -
-
    -
  • - - -
  • -
-
    -
  • - - -
  • -
-
    -
  • - - -
  • -
-
    -
  • - - -
  • -
-
    -
  • - - -
  • -
-
    -
  • - -
  • -
-
+
- - - - - - - - -