chore(ui): improve ui consistency
This commit is contained in:
@@ -78,22 +78,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
<template #body>
|
<template #body>
|
||||||
<div v-if="mode == 'import_export'" class="flex flex-col space-y-2">
|
<div v-if="mode == 'import_export'" class="flex flex-col space-y-2 px-2">
|
||||||
<SmartItem
|
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
|
||||||
:title="$t('action.replace_current')"
|
|
||||||
svg="file"
|
|
||||||
:label="$t('action.replace_json')"
|
|
||||||
@click.native="openDialogChooseFileToReplaceWith"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
ref="inputChooseFileToReplaceWith"
|
|
||||||
class="input"
|
|
||||||
type="file"
|
|
||||||
style="display: none"
|
|
||||||
accept="application/json"
|
|
||||||
@change="replaceWithJSON"
|
|
||||||
/>
|
|
||||||
<SmartItem
|
<SmartItem
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
:title="$t('action.preserve_current')"
|
:title="$t('action.preserve_current')"
|
||||||
@@ -117,6 +102,22 @@
|
|||||||
:label="$t('import.from_my_collections')"
|
:label="$t('import.from_my_collections')"
|
||||||
@click.native="mode = 'import_from_my_collections'"
|
@click.native="mode = 'import_from_my_collections'"
|
||||||
/>
|
/>
|
||||||
|
<SmartItem
|
||||||
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
|
:title="$t('action.replace_current')"
|
||||||
|
svg="file"
|
||||||
|
:label="$t('action.replace_json')"
|
||||||
|
@click.native="openDialogChooseFileToReplaceWith"
|
||||||
|
/>
|
||||||
|
<input
|
||||||
|
ref="inputChooseFileToReplaceWith"
|
||||||
|
class="input"
|
||||||
|
type="file"
|
||||||
|
style="display: none"
|
||||||
|
accept="application/json"
|
||||||
|
@change="replaceWithJSON"
|
||||||
|
/>
|
||||||
|
<hr />
|
||||||
<SmartItem
|
<SmartItem
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
:title="$t('action.download_file')"
|
:title="$t('action.download_file')"
|
||||||
|
|||||||
@@ -57,21 +57,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
<template #body>
|
<template #body>
|
||||||
<div class="flex flex-col space-y-2">
|
<div class="flex flex-col space-y-2 px-2">
|
||||||
<SmartItem
|
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
|
||||||
:title="$t('action.replace_current')"
|
|
||||||
svg="file"
|
|
||||||
:label="$t('action.replace_json')"
|
|
||||||
@click.native="openDialogChooseFileToReplaceWith"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
ref="inputChooseFileToReplaceWith"
|
|
||||||
class="input"
|
|
||||||
type="file"
|
|
||||||
accept="application/json"
|
|
||||||
@change="replaceWithJSON"
|
|
||||||
/>
|
|
||||||
<SmartItem
|
<SmartItem
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
:title="$t('action.preserve_current')"
|
:title="$t('action.preserve_current')"
|
||||||
@@ -86,6 +72,21 @@
|
|||||||
accept="application/json"
|
accept="application/json"
|
||||||
@change="importFromJSON"
|
@change="importFromJSON"
|
||||||
/>
|
/>
|
||||||
|
<SmartItem
|
||||||
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
|
:title="$t('action.replace_current')"
|
||||||
|
svg="file"
|
||||||
|
:label="$t('action.replace_json')"
|
||||||
|
@click.native="openDialogChooseFileToReplaceWith"
|
||||||
|
/>
|
||||||
|
<input
|
||||||
|
ref="inputChooseFileToReplaceWith"
|
||||||
|
class="input"
|
||||||
|
type="file"
|
||||||
|
accept="application/json"
|
||||||
|
@change="replaceWithJSON"
|
||||||
|
/>
|
||||||
|
<hr />
|
||||||
<SmartItem
|
<SmartItem
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
:title="$t('action.download_file')"
|
:title="$t('action.download_file')"
|
||||||
|
|||||||
@@ -57,21 +57,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
<template #body>
|
<template #body>
|
||||||
<div class="flex flex-col space-y-2">
|
<div class="flex flex-col space-y-2 px-2">
|
||||||
<SmartItem
|
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
|
||||||
:title="$t('action.replace_current')"
|
|
||||||
svg="file"
|
|
||||||
:label="$t('action.replace_json')"
|
|
||||||
@click.native="openDialogChooseFileToReplaceWith"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
ref="inputChooseFileToReplaceWith"
|
|
||||||
class="input"
|
|
||||||
type="file"
|
|
||||||
accept="application/json"
|
|
||||||
@change="replaceWithJSON"
|
|
||||||
/>
|
|
||||||
<SmartItem
|
<SmartItem
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
:title="$t('action.preserve_current')"
|
:title="$t('action.preserve_current')"
|
||||||
@@ -86,6 +72,21 @@
|
|||||||
accept="application/json"
|
accept="application/json"
|
||||||
@change="importFromJSON"
|
@change="importFromJSON"
|
||||||
/>
|
/>
|
||||||
|
<SmartItem
|
||||||
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
|
:title="$t('action.replace_current')"
|
||||||
|
svg="file"
|
||||||
|
:label="$t('action.replace_json')"
|
||||||
|
@click.native="openDialogChooseFileToReplaceWith"
|
||||||
|
/>
|
||||||
|
<input
|
||||||
|
ref="inputChooseFileToReplaceWith"
|
||||||
|
class="input"
|
||||||
|
type="file"
|
||||||
|
accept="application/json"
|
||||||
|
@change="replaceWithJSON"
|
||||||
|
/>
|
||||||
|
<hr />
|
||||||
<SmartItem
|
<SmartItem
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
:title="$t('action.download_file')"
|
:title="$t('action.download_file')"
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ function transformBody(insomniaBody: any) {
|
|||||||
default:
|
default:
|
||||||
console.warn(
|
console.warn(
|
||||||
"Warning: Body type unsupported; skipped!!! ... " +
|
"Warning: Body type unsupported; skipped!!! ... " +
|
||||||
insomniaBody.mimeType
|
insomniaBody.mimeType
|
||||||
)
|
)
|
||||||
body.mode = "raw"
|
body.mode = "raw"
|
||||||
body.raw =
|
body.raw =
|
||||||
|
|||||||
Reference in New Issue
Block a user