refactor: update hopp-ui to be independent (#2927)

Co-authored-by: Anwarul Islam <anwaarulislaam@gmail.com>
This commit is contained in:
Andrew Bastin
2023-02-24 13:20:12 +05:30
committed by GitHub
parent 82c6f6f6bc
commit cae1840506
165 changed files with 2134 additions and 2069 deletions

View File

@@ -1,5 +1,5 @@
<template>
<SmartModal
<HoppSmartModal
v-if="show"
dialog
:title="t('modal.collections')"
@@ -7,7 +7,7 @@
@close="hideModal"
>
<template #actions>
<ButtonSecondary
<HoppButtonSecondary
v-if="importerType !== null"
v-tippy="{ theme: 'tooltip' }"
:title="t('action.go_back')"
@@ -101,7 +101,7 @@
</div>
</div>
</div>
<ButtonPrimary
<HoppButtonPrimary
:label="t('import.title')"
:disabled="enableImportButton"
:loading="importingMyCollections"
@@ -109,9 +109,9 @@
/>
</div>
<div v-else class="flex flex-col">
<SmartExpand>
<HoppSmartExpand>
<template #body>
<SmartItem
<HoppSmartItem
v-for="(importer, index) in importerModules"
:key="`importer-${index}`"
:icon="importer.icon"
@@ -119,10 +119,10 @@
@click="importerType = index"
/>
</template>
</SmartExpand>
</HoppSmartExpand>
<hr />
<div class="flex flex-col space-y-2">
<SmartItem
<HoppSmartItem
v-tippy="{ theme: 'tooltip' }"
:title="t('action.download_file')"
:icon="IconDownload"
@@ -141,7 +141,7 @@
"
class="flex"
>
<SmartItem
<HoppSmartItem
:disabled="
!currentUser
? true
@@ -158,7 +158,7 @@
</div>
</div>
</template>
</SmartModal>
</HoppSmartModal>
</template>
<script setup lang="ts">