refactor: graphql page to new ui

This commit is contained in:
liyasthomas
2021-07-24 14:10:28 +05:30
parent 84b94f3091
commit 4de55c39dd
9 changed files with 422 additions and 332 deletions

View File

@@ -71,8 +71,8 @@
:value="requestCode"
:lang="codegens.find((x) => x.id === codegenType).language"
:options="{
maxLines: '10',
minLines: '10',
maxLines: '16',
minLines: '8',
fontSize: '14px',
autoScrollEditorIntoView: true,
readOnly: true,

View File

@@ -39,16 +39,7 @@
<div v-if="testResults">
<div class="flex flex-1 pl-4 items-center justify-between">
<div>
<label class="font-semibold text-xs"> Test Report: </label>
<span class="font-semibold text-xs text-red-500">
{{ failedTests }} failing,
</span>
<span class="font-semibold text-xs text-green-500">
{{ passedTests }} successful,
</span>
<span class="font-semibold text-xs text-secondaryDark">
out of {{ totalTests }} tests.
</span>
<label class="font-semibold text-xs"> Test Report </label>
</div>
<ButtonSecondary
v-tippy="{ theme: 'tooltip' }"
@@ -57,7 +48,30 @@
@click.native="clearContent()"
/>
</div>
<HttpTestResult v-if="testResults" :results="testResults" />
<div class="flex my-4 items-center">
<div class="ml-4">
<span class="font-semibold text-xs text-red-500">
{{ failedTests }} failing,
</span>
<span class="font-semibold text-xs text-green-500">
{{ passedTests }} successful,
</span>
<span class="font-semibold text-xs">
out of {{ totalTests }} tests.
</span>
</div>
<div class="bg-primaryDark flex space-x-2 flex-1 h-1 mx-4 relative">
<div
class="rounded h-full bg-green-500"
:style="`width: ${(passedTests / totalTests) * 100 + '%'}`"
></div>
<div
class="rounded h-full bg-red-500"
:style="`width: ${(failedTests / totalTests) * 100 + '%'}`"
></div>
</div>
</div>
<HttpTestResult :results="testResults" />
</div>
</AppSection>
</template>