feat: placeholder component in hoppscotch-ui (#3123)

Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
This commit is contained in:
Anwarul Islam
2023-06-21 00:39:16 +06:00
committed by GitHub
parent 331d482b22
commit fc3e3aeaec
43 changed files with 378 additions and 577 deletions

View File

@@ -190,19 +190,12 @@
/>
</div>
</div>
<div
<HoppSmartPlaceholder
v-if="authType === 'None'"
class="flex flex-col items-center justify-center p-4 text-secondaryLight"
:src="`/images/states/${colorMode.value}/login.svg`"
:alt="`${t('socketio.connection_not_authorized')}`"
:text="`${t('socketio.connection_not_authorized')}`"
>
<img
:src="`/images/states/${colorMode.value}/login.svg`"
loading="lazy"
class="inline-flex flex-col object-contain object-center w-16 h-16 my-4"
:alt="`${t('empty.authorization')}`"
/>
<span class="pb-4 text-center">
{{ t("socketio.connection_not_authorized") }}
</span>
<HoppButtonSecondary
outline
:label="t('app.documentation')"
@@ -212,7 +205,7 @@
reverse
class="mb-4"
/>
</div>
</HoppSmartPlaceholder>
<div
v-if="authType === 'Bearer'"
class="flex flex-1 border-b border-dividerLight"