From c6490818d0f0fbbe02eac3caf06c6c533c53e247 Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Thu, 8 Jul 2021 23:42:15 +0530 Subject: [PATCH] feat: revamp graphql sidebar ui --- assets/scss/styles.scss | 17 ++ components/collections/ChooseType.vue | 66 ++--- components/collections/graphql/Collection.vue | 265 ++++++++++-------- components/collections/graphql/Folder.vue | 173 +++++++----- components/collections/graphql/Request.vue | 45 ++- components/collections/graphql/index.vue | 177 ++++++------ components/collections/index.vue | 93 +++--- components/collections/my/Collection.vue | 6 +- components/collections/my/Folder.vue | 6 +- components/collections/my/Request.vue | 20 +- components/collections/teams/Collection.vue | 6 +- components/collections/teams/Folder.vue | 6 +- components/collections/teams/Request.vue | 20 +- components/environments/Environment.vue | 2 +- components/environments/index.vue | 82 +++--- components/history/graphql/Card.vue | 154 ++++------ components/history/index.vue | 16 +- components/history/rest/Card.vue | 3 +- pages/api.vue | 2 +- pages/graphql.vue | 168 +++++------ pages/settings.vue | 1 - 21 files changed, 708 insertions(+), 620 deletions(-) diff --git a/assets/scss/styles.scss b/assets/scss/styles.scss index 81058f050..d6e294719 100644 --- a/assets/scss/styles.scss +++ b/assets/scss/styles.scss @@ -187,6 +187,23 @@ select { } } +.select-wrapper { + @apply relative; + @apply w-full; + + &::after { + @apply inline-block; + @apply absolute; + @apply pointer-events-none; + @apply font-icon; + @apply text-secondaryLight; + @apply top-3; + @apply right-3; + + content: "\e313"; + } +} + input[type="checkbox"] { @apply hidden; diff --git a/components/collections/ChooseType.vue b/components/collections/ChooseType.vue index d19422057..e0421fa3d 100644 --- a/components/collections/ChooseType.vue +++ b/components/collections/ChooseType.vue @@ -12,39 +12,41 @@ :label="'Team Collections'" > - - Select team - - - + + + + diff --git a/components/collections/graphql/Collection.vue b/components/collections/graphql/Collection.vue index c37845f79..6d7c2a793 100644 --- a/components/collections/graphql/Collection.vue +++ b/components/collections/graphql/Collection.vue @@ -1,7 +1,7 @@ + - - - - - - - + + +
-
    -
  • - -
  • -
-
    -
  • - -
  • -
-
    -
  • -

    - not_interested - {{ $t("collection_empty") }} -

    -
  • -
+ + +
+ folder_open + + {{ $t("collection_empty") }} + +
-
+
-
- - arrow_right - arrow_drop_down - check_circle - folder_open - {{ folder.name }} -
+ + + {{ getCollectionIcon }} + + + + + {{ folder.name ? folder.name : folder.title }} + + +
-
+
-
- -
+ + + {{ isSelected ? "check_circle" : "description" }} + + + + {{ request.name }} + -
+
+ + + + + + +
+ + +
+
+
+ create_new_folder + + {{ $t("create_new_collection") }} + +
+
+
- - - - - - -
- - +
+ manage_search + + {{ $t("nothing_found") }} "{{ filterText }}" +
-

- help_outline - {{ $t("create_new_collection") }} -

-
-
    -
  • - -
  • -
-
-

- not_interested {{ $t("nothing_found") }} "{{ - filterText - }}" -

diff --git a/components/collections/index.vue b/components/collections/index.vue index d4573da4e..0cf635543 100644 --- a/components/collections/index.vue +++ b/components/collections/index.vue @@ -1,22 +1,61 @@ diff --git a/components/history/index.vue b/components/history/index.vue index 713c6198d..ad7605c7e 100644 --- a/components/history/index.vue +++ b/components/history/index.vue @@ -1,11 +1,19 @@