From d94c8aec5142981e9d5e3c10416b8a36c1c9c5b4 Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Sat, 10 Jul 2021 18:45:39 +0530 Subject: [PATCH] refactor: request section --- assets/scss/styles.scss | 11 +- components/app/Sidenav.vue | 1 - components/collections/ChooseType.vue | 1 + components/collections/graphql/Request.vue | 1 + components/collections/graphql/index.vue | 12 +- components/collections/index.vue | 11 +- components/collections/my/Request.vue | 1 + components/collections/teams/Request.vue | 1 + components/environments/index.vue | 1 + components/history/index.vue | 10 +- components/http/Parameters.vue | 200 +- lang/en-US.json | 13 +- nuxt.config.js | 4 +- pages/api.vue | 2187 ------------------- pages/graphql.vue | 18 +- pages/home.vue | 10 + pages/index.vue | 2286 +++++++++++++++++++- 17 files changed, 2461 insertions(+), 2307 deletions(-) delete mode 100644 pages/api.vue create mode 100644 pages/home.vue diff --git a/assets/scss/styles.scss b/assets/scss/styles.scss index d07834e31..bcc2e932a 100644 --- a/assets/scss/styles.scss +++ b/assets/scss/styles.scss @@ -54,7 +54,7 @@ html { body { @apply bg-primary; @apply text-secondary; - @apply text-sm; + @apply !text-sm; @apply font-medium; @apply select-none; @apply overflow-x-hidden; @@ -168,14 +168,15 @@ hr { @apply w-full; @apply px-4; @apply py-2; - @apply bg-primaryLight; + @apply bg-primary; @apply truncate; @apply rounded-lg; @apply font-semibold; + @apply border-2; + @apply border-divider; + @apply transition; @apply focus:outline-none; - @apply focus-visible:ring; - @apply focus-visible:ring-inset; - @apply focus-visible:ring-accent; + @apply focus:border-accent; } .input[type="file"], diff --git a/components/app/Sidenav.vue b/components/app/Sidenav.vue index b0bd88aa2..045f26cd7 100644 --- a/components/app/Sidenav.vue +++ b/components/app/Sidenav.vue @@ -20,7 +20,6 @@ export default { return { primaryNavigation: [ { target: "index", icon: "home", title: "Home" }, - { target: "api", icon: "apps", title: "APIs" }, { target: "realtime", icon: "language", title: "Realtime" }, { target: "graphql", icon: "code", title: "GraphQL" }, { target: "doc", icon: "book", title: "Docs" }, diff --git a/components/collections/ChooseType.vue b/components/collections/ChooseType.vue index e0421fa3d..cea1cc54a 100644 --- a/components/collections/ChooseType.vue +++ b/components/collections/ChooseType.vue @@ -25,6 +25,7 @@ py-3 focus:outline-none border-b border-dividerLight + font-medium bg-primaryLight " @change="updateSelectedTeam(myTeams[$event.target.value])" diff --git a/components/collections/graphql/Request.vue b/components/collections/graphql/Request.vue index ac0a64531..31dd85ea0 100644 --- a/components/collections/graphql/Request.vue +++ b/components/collections/graphql/Request.vue @@ -43,6 +43,7 @@ {{ request.name }} - -
+ +
- -
+ +
{{ request.name }} {{ request.name }} diff --git a/components/history/index.vue b/components/history/index.vue index ad7605c7e..05d16889b 100644 --- a/components/history/index.vue +++ b/components/history/index.vue @@ -13,7 +13,15 @@ -
    -
  • -
    - -
    - -
    -
    -
  • -
-
    + + +
+
-
  • - -
  • -
  • - -
  • -
  • + + +