refactor(ui): minor ui improvements
This commit is contained in:
@@ -56,6 +56,7 @@ body {
|
|||||||
@apply select-none;
|
@apply select-none;
|
||||||
@apply overflow-x-hidden;
|
@apply overflow-x-hidden;
|
||||||
|
|
||||||
|
animation: fade 300ms forwards;
|
||||||
font-size: var(--body-font-size);
|
font-size: var(--body-font-size);
|
||||||
line-height: var(--body-line-height);
|
line-height: var(--body-line-height);
|
||||||
overflow: overlay;
|
overflow: overlay;
|
||||||
@@ -63,6 +64,15 @@ body {
|
|||||||
-webkit-touch-callout: none;
|
-webkit-touch-callout: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes fade {
|
||||||
|
0% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.fade-enter-active,
|
.fade-enter-active,
|
||||||
.fade-leave-active,
|
.fade-leave-active,
|
||||||
.page-enter-active,
|
.page-enter-active,
|
||||||
@@ -82,7 +92,9 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.material-icons {
|
.material-icons {
|
||||||
font-size: 133.4% !important;
|
font-size: var(--body-line-height) !important;
|
||||||
|
width: var(--body-line-height);
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.svg-icons {
|
.svg-icons {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
@mixin baseTheme {
|
@mixin baseTheme {
|
||||||
--font-sans: "Inter", "sans-serif";
|
--font-sans: "Inter", sans-serif;
|
||||||
--font-mono: "Roboto Mono", "monospace";
|
--font-mono: "Roboto Mono", monospace;
|
||||||
--font-icon: "Material Icons";
|
--font-icon: "Material Icons";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
/>
|
/>
|
||||||
<SmartItem
|
<SmartItem
|
||||||
:label="$t('app.whats_new')"
|
:label="$t('app.whats_new')"
|
||||||
to="https://github.com/hoppscotch/hoppscotch/blob/main/CHANGELOG.md"
|
to="https://docs.hoppscotch.io/changelog"
|
||||||
blank
|
blank
|
||||||
@click.native="$refs.options.tippy().hide()"
|
@click.native="$refs.options.tippy().hide()"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ export default {
|
|||||||
copyToClipboard(this.url)
|
copyToClipboard(this.url)
|
||||||
this.copyIcon = "done"
|
this.copyIcon = "done"
|
||||||
this.$toast.success(this.$t("state.copied_to_clipboard").toString(), {
|
this.$toast.success(this.$t("state.copied_to_clipboard").toString(), {
|
||||||
icon: "done",
|
icon: "content_paste",
|
||||||
})
|
})
|
||||||
setTimeout(() => (this.copyIcon = "content_copy"), 1000)
|
setTimeout(() => (this.copyIcon = "content_copy"), 1000)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -55,9 +55,9 @@
|
|||||||
:key="`map-${mapIndex}`"
|
:key="`map-${mapIndex}`"
|
||||||
class="space-y-4 py-4 px-6"
|
class="space-y-4 py-4 px-6"
|
||||||
>
|
>
|
||||||
<h5 class="font-semibold text-secondaryDark">
|
<h1 class="font-semibold text-secondaryDark">
|
||||||
{{ $t(map.section) }}
|
{{ $t(map.section) }}
|
||||||
</h5>
|
</h1>
|
||||||
<div
|
<div
|
||||||
v-for="(shortcut, shortcutIndex) in map.shortcuts"
|
v-for="(shortcut, shortcutIndex) in map.shortcuts"
|
||||||
:key="`map-${mapIndex}-shortcut-${shortcutIndex}`"
|
:key="`map-${mapIndex}-shortcut-${shortcutIndex}`"
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
<SmartItem
|
<SmartItem
|
||||||
icon="auto_awesome"
|
icon="auto_awesome"
|
||||||
:label="$t('app.whats_new')"
|
:label="$t('app.whats_new')"
|
||||||
to="https://github.com/hoppscotch/hoppscotch/blob/main/CHANGELOG.md"
|
to="https://docs.hoppscotch.io/changelog"
|
||||||
:description="$t('support.changelog')"
|
:description="$t('support.changelog')"
|
||||||
info-icon="chevron_right"
|
info-icon="chevron_right"
|
||||||
active
|
active
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
]"
|
]"
|
||||||
/>
|
/>
|
||||||
{{ label }}
|
{{ label }}
|
||||||
<div v-if="shortcut.length && SHORTCUT_INDICATOR" class="ml-2">
|
<div v-if="shortcut.length" class="ml-2">
|
||||||
<kbd
|
<kbd
|
||||||
v-for="(key, index) in shortcut"
|
v-for="(key, index) in shortcut"
|
||||||
:key="`key-${index}`"
|
:key="`key-${index}`"
|
||||||
@@ -75,7 +75,6 @@
|
|||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from "@nuxtjs/composition-api"
|
import { defineComponent } from "@nuxtjs/composition-api"
|
||||||
import { useSetting } from "~/newstore/settings"
|
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
props: {
|
props: {
|
||||||
@@ -144,10 +143,5 @@ export default defineComponent({
|
|||||||
default: () => [],
|
default: () => [],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
setup() {
|
|
||||||
return {
|
|
||||||
SHORTCUT_INDICATOR: useSetting("SHORTCUT_INDICATOR"),
|
|
||||||
}
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -51,11 +51,18 @@
|
|||||||
]"
|
]"
|
||||||
/>
|
/>
|
||||||
{{ label }}
|
{{ label }}
|
||||||
<div v-if="shortcut.length && SHORTCUT_INDICATOR" class="ml-2">
|
<div v-if="shortcut.length" class="ml-2">
|
||||||
<kbd
|
<kbd
|
||||||
v-for="(key, index) in shortcut"
|
v-for="(key, index) in shortcut"
|
||||||
:key="`key-${index}`"
|
:key="`key-${index}`"
|
||||||
class="bg-dividerLight text-secondaryLight ml-1 px-1 inline-flex"
|
class="
|
||||||
|
bg-dividerLight
|
||||||
|
rounded
|
||||||
|
text-secondaryLight
|
||||||
|
ml-1
|
||||||
|
px-1
|
||||||
|
inline-flex
|
||||||
|
"
|
||||||
>
|
>
|
||||||
{{ key }}
|
{{ key }}
|
||||||
</kbd>
|
</kbd>
|
||||||
@@ -65,7 +72,6 @@
|
|||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from "@nuxtjs/composition-api"
|
import { defineComponent } from "@nuxtjs/composition-api"
|
||||||
import { useSetting } from "~/newstore/settings"
|
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
props: {
|
props: {
|
||||||
@@ -122,10 +128,5 @@ export default defineComponent({
|
|||||||
default: () => [],
|
default: () => [],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
setup() {
|
|
||||||
return {
|
|
||||||
SHORTCUT_INDICATOR: useSetting("SHORTCUT_INDICATOR"),
|
|
||||||
}
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -44,8 +44,8 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
addNewCollection() {
|
addNewCollection() {
|
||||||
if (!this.name) {
|
if (!this.name) {
|
||||||
this.$toast.info(this.$t("collection.invalid_name"), {
|
this.$toast.error(this.$t("collection.invalid_name"), {
|
||||||
icon: "info",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,8 +48,8 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
addFolder() {
|
addFolder() {
|
||||||
if (!this.name) {
|
if (!this.name) {
|
||||||
this.$toast.info(this.$t("collection.invalid_name"), {
|
this.$toast.error(this.$t("folder.invalid_name"), {
|
||||||
icon: "info",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,8 +45,8 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
saveCollection() {
|
saveCollection() {
|
||||||
if (!this.name) {
|
if (!this.name) {
|
||||||
this.$toast.info(this.$t("collection.invalid_name"), {
|
this.$toast.error(this.$t("collection.invalid_name"), {
|
||||||
icon: "info",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,8 +45,8 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
editFolder() {
|
editFolder() {
|
||||||
if (!this.name) {
|
if (!this.name) {
|
||||||
this.$toast.info(this.$t("collection.invalid_name"), {
|
this.$toast.error(this.$t("folder.invalid_name"), {
|
||||||
icon: "info",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,8 +44,8 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
saveRequest() {
|
saveRequest() {
|
||||||
if (!this.requestUpdateData.name) {
|
if (!this.requestUpdateData.name) {
|
||||||
this.$toast.info(this.$t("collection.invalid_name"), {
|
this.$toast.error(this.$t("request.invalid_name"), {
|
||||||
icon: "info",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
$refs.options.tippy().hide()
|
$refs.options.tippy().hide()
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
<SmartItem
|
<span
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
:title="
|
:title="
|
||||||
!currentUser
|
!currentUser
|
||||||
@@ -52,6 +52,8 @@
|
|||||||
? $t('export.require_github')
|
? $t('export.require_github')
|
||||||
: null
|
: null
|
||||||
"
|
"
|
||||||
|
>
|
||||||
|
<SmartItem
|
||||||
:disabled="
|
:disabled="
|
||||||
!currentUser
|
!currentUser
|
||||||
? true
|
? true
|
||||||
@@ -66,6 +68,7 @@
|
|||||||
$refs.options.tippy().hide()
|
$refs.options.tippy().hide()
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
|
</span>
|
||||||
</tippy>
|
</tippy>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
@@ -225,7 +228,7 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
console.error(e)
|
console.error(e)
|
||||||
})
|
})
|
||||||
@@ -405,7 +408,7 @@ export default defineComponent({
|
|||||||
document.body.appendChild(a)
|
document.body.appendChild(a)
|
||||||
a.click()
|
a.click()
|
||||||
this.$toast.success(this.$t("state.download_started"), {
|
this.$toast.success(this.$t("state.download_started"), {
|
||||||
icon: "done",
|
icon: "downloading",
|
||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
document.body.removeChild(a)
|
document.body.removeChild(a)
|
||||||
@@ -419,7 +422,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
failedImport() {
|
failedImport() {
|
||||||
this.$toast.error(this.$t("import.failed"), {
|
this.$toast.error(this.$t("import.failed"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
parsePostmanCollection({ info, name, item }) {
|
parsePostmanCollection({ info, name, item }) {
|
||||||
|
|||||||
@@ -119,13 +119,13 @@ export default defineComponent({
|
|||||||
saveRequestAs() {
|
saveRequestAs() {
|
||||||
if (!this.requestName) {
|
if (!this.requestName) {
|
||||||
this.$toast.error(this.$t("error.empty_req_name"), {
|
this.$toast.error(this.$t("error.empty_req_name"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (this.picked == null) {
|
if (this.picked == null) {
|
||||||
this.$toast.error(this.$t("collection.select"), {
|
this.$toast.error(this.$t("collection.select"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -218,8 +218,8 @@ export default defineComponent({
|
|||||||
} else if (this.picked.pickedType === "gql-my-collection") {
|
} else if (this.picked.pickedType === "gql-my-collection") {
|
||||||
saveGraphqlRequestAs(`${this.picked.collectionIndex}`, requestUpdated)
|
saveGraphqlRequestAs(`${this.picked.collectionIndex}`, requestUpdated)
|
||||||
}
|
}
|
||||||
this.$toast.success("Requested added", {
|
this.$toast.success(this.$t("request.added"), {
|
||||||
icon: "done",
|
icon: "post_add",
|
||||||
})
|
})
|
||||||
|
|
||||||
this.hideModal()
|
this.hideModal()
|
||||||
|
|||||||
@@ -47,8 +47,8 @@ export default Vue.extend({
|
|||||||
methods: {
|
methods: {
|
||||||
addNewCollection() {
|
addNewCollection() {
|
||||||
if (!this.name) {
|
if (!this.name) {
|
||||||
this.$toast.info(this.$t("collection.invalid_name").toString(), {
|
this.$toast.error(this.$t("collection.invalid_name").toString(), {
|
||||||
icon: "info",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
@dragend="dragging = false"
|
@dragend="dragging = false"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="cursor-pointer flex w-10 justify-center items-center truncate"
|
class="cursor-pointer flex px-4 justify-center items-center"
|
||||||
@click="toggleShowChildren()"
|
@click="toggleShowChildren()"
|
||||||
>
|
>
|
||||||
<i class="material-icons" :class="{ 'text-green-500': isSelected }">
|
<i class="material-icons" :class="{ 'text-green-500': isSelected }">
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
<CollectionsGraphqlFolder
|
<CollectionsGraphqlFolder
|
||||||
v-for="(folder, index) in collection.folders"
|
v-for="(folder, index) in collection.folders"
|
||||||
:key="`folder-${index}`"
|
:key="`folder-${index}`"
|
||||||
class="border-l border-dividerLight ml-5"
|
class="border-l border-dividerLight ml-6"
|
||||||
:picked="picked"
|
:picked="picked"
|
||||||
:saving-mode="savingMode"
|
:saving-mode="savingMode"
|
||||||
:folder="folder"
|
:folder="folder"
|
||||||
@@ -110,7 +110,7 @@
|
|||||||
<CollectionsGraphqlRequest
|
<CollectionsGraphqlRequest
|
||||||
v-for="(request, index) in collection.requests"
|
v-for="(request, index) in collection.requests"
|
||||||
:key="`request-${index}`"
|
:key="`request-${index}`"
|
||||||
class="border-l border-dividerLight ml-5"
|
class="border-l border-dividerLight ml-6"
|
||||||
:picked="picked"
|
:picked="picked"
|
||||||
:saving-mode="savingMode"
|
:saving-mode="savingMode"
|
||||||
:request="request"
|
:request="request"
|
||||||
@@ -131,7 +131,7 @@
|
|||||||
border-l border-dividerLight
|
border-l border-dividerLight
|
||||||
flex flex-col
|
flex flex-col
|
||||||
text-secondaryLight
|
text-secondaryLight
|
||||||
ml-5
|
ml-6
|
||||||
p-4
|
p-4
|
||||||
items-center
|
items-center
|
||||||
justify-center
|
justify-center
|
||||||
@@ -187,8 +187,8 @@ export default Vue.extend({
|
|||||||
},
|
},
|
||||||
getCollectionIcon() {
|
getCollectionIcon() {
|
||||||
if (this.isSelected) return "check_circle_outline"
|
if (this.isSelected) return "check_circle_outline"
|
||||||
else if (!this.showChildren && !this.isFiltered) return "arrow_right"
|
else if (!this.showChildren && !this.isFiltered) return "folder"
|
||||||
else if (this.showChildren || this.isFiltered) return "arrow_drop_down"
|
else if (this.showChildren || this.isFiltered) return "folder_open"
|
||||||
else return "folder"
|
else return "folder"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -218,8 +218,7 @@ export default Vue.extend({
|
|||||||
this.$emit("select", { picked: null })
|
this.$emit("select", { picked: null })
|
||||||
}
|
}
|
||||||
removeGraphqlCollection(this.collectionIndex)
|
removeGraphqlCollection(this.collectionIndex)
|
||||||
|
this.$toast.success(this.$t("state.deleted").toString(), {
|
||||||
this.$toast.error(this.$t("state.deleted").toString(), {
|
|
||||||
icon: "delete",
|
icon: "delete",
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -49,8 +49,8 @@ export default Vue.extend({
|
|||||||
methods: {
|
methods: {
|
||||||
saveCollection() {
|
saveCollection() {
|
||||||
if (!this.name) {
|
if (!this.name) {
|
||||||
this.$toast.info(this.$t("collection.invalid_name").toString(), {
|
this.$toast.error(this.$t("collection.invalid_name").toString(), {
|
||||||
icon: "info",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,8 +50,8 @@ export default Vue.extend({
|
|||||||
methods: {
|
methods: {
|
||||||
editFolder() {
|
editFolder() {
|
||||||
if (!this.name) {
|
if (!this.name) {
|
||||||
this.$toast.info(this.$t("collection.invalid_name").toString(), {
|
this.$toast.error(this.$t("collection.invalid_name").toString(), {
|
||||||
icon: "info",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,8 +49,8 @@ export default Vue.extend({
|
|||||||
methods: {
|
methods: {
|
||||||
saveRequest() {
|
saveRequest() {
|
||||||
if (!this.requestUpdateData.name) {
|
if (!this.requestUpdateData.name) {
|
||||||
this.$toast.info(this.$t("collection.invalid_name").toString(), {
|
this.$toast.error(this.$t("collection.invalid_name").toString(), {
|
||||||
icon: "info",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
@dragend="dragging = false"
|
@dragend="dragging = false"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="cursor-pointer flex w-10 justify-center items-center truncate"
|
class="cursor-pointer flex px-4 justify-center items-center"
|
||||||
@click="toggleShowChildren()"
|
@click="toggleShowChildren()"
|
||||||
>
|
>
|
||||||
<i class="material-icons" :class="{ 'text-green-500': isSelected }">
|
<i class="material-icons" :class="{ 'text-green-500': isSelected }">
|
||||||
@@ -89,7 +89,7 @@
|
|||||||
<CollectionsGraphqlFolder
|
<CollectionsGraphqlFolder
|
||||||
v-for="(subFolder, subFolderIndex) in folder.folders"
|
v-for="(subFolder, subFolderIndex) in folder.folders"
|
||||||
:key="`subFolder-${subFolderIndex}`"
|
:key="`subFolder-${subFolderIndex}`"
|
||||||
class="border-l border-dividerLight ml-5"
|
class="border-l border-dividerLight ml-6"
|
||||||
:picked="picked"
|
:picked="picked"
|
||||||
:saving-mode="savingMode"
|
:saving-mode="savingMode"
|
||||||
:folder="subFolder"
|
:folder="subFolder"
|
||||||
@@ -106,7 +106,7 @@
|
|||||||
<CollectionsGraphqlRequest
|
<CollectionsGraphqlRequest
|
||||||
v-for="(request, index) in folder.requests"
|
v-for="(request, index) in folder.requests"
|
||||||
:key="`request-${index}`"
|
:key="`request-${index}`"
|
||||||
class="border-l border-dividerLight ml-5"
|
class="border-l border-dividerLight ml-6"
|
||||||
:picked="picked"
|
:picked="picked"
|
||||||
:saving-mode="savingMode"
|
:saving-mode="savingMode"
|
||||||
:request="request"
|
:request="request"
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
border-l border-dividerLight
|
border-l border-dividerLight
|
||||||
flex flex-col
|
flex flex-col
|
||||||
text-secondaryLight
|
text-secondaryLight
|
||||||
ml-5
|
ml-6
|
||||||
p-4
|
p-4
|
||||||
items-center
|
items-center
|
||||||
justify-center
|
justify-center
|
||||||
@@ -185,8 +185,8 @@ export default Vue.extend({
|
|||||||
},
|
},
|
||||||
getCollectionIcon() {
|
getCollectionIcon() {
|
||||||
if (this.isSelected) return "check_circle_outline"
|
if (this.isSelected) return "check_circle_outline"
|
||||||
else if (!this.showChildren && !this.isFiltered) return "arrow_right"
|
else if (!this.showChildren && !this.isFiltered) return "folder"
|
||||||
else if (this.showChildren || this.isFiltered) return "arrow_drop_down"
|
else if (this.showChildren || this.isFiltered) return "folder_open"
|
||||||
else return "folder"
|
else return "folder"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -217,7 +217,7 @@ export default Vue.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
removeGraphqlFolder(this.folderPath)
|
removeGraphqlFolder(this.folderPath)
|
||||||
this.$toast.error(this.$t("state.deleted").toString(), {
|
this.$toast.success(this.$t("state.deleted").toString(), {
|
||||||
icon: "delete",
|
icon: "delete",
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
$refs.options.tippy().hide()
|
$refs.options.tippy().hide()
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
<SmartItem
|
<span
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
:title="
|
:title="
|
||||||
!currentUser
|
!currentUser
|
||||||
@@ -32,6 +32,8 @@
|
|||||||
? $t('export.require_github')
|
? $t('export.require_github')
|
||||||
: null
|
: null
|
||||||
"
|
"
|
||||||
|
>
|
||||||
|
<SmartItem
|
||||||
:disabled="
|
:disabled="
|
||||||
!currentUser
|
!currentUser
|
||||||
? true
|
? true
|
||||||
@@ -46,6 +48,7 @@
|
|||||||
$refs.options.tippy().hide()
|
$refs.options.tippy().hide()
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
|
</span>
|
||||||
</tippy>
|
</tippy>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
@@ -143,7 +146,7 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
console.error(e)
|
console.error(e)
|
||||||
})
|
})
|
||||||
@@ -249,7 +252,7 @@ export default defineComponent({
|
|||||||
document.body.appendChild(a)
|
document.body.appendChild(a)
|
||||||
a.click()
|
a.click()
|
||||||
this.$toast.success(this.$t("state.download_started"), {
|
this.$toast.success(this.$t("state.download_started"), {
|
||||||
icon: "done",
|
icon: "downloading",
|
||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
document.body.removeChild(a)
|
document.body.removeChild(a)
|
||||||
@@ -257,13 +260,13 @@ export default defineComponent({
|
|||||||
}, 1000)
|
}, 1000)
|
||||||
},
|
},
|
||||||
fileImported() {
|
fileImported() {
|
||||||
this.$toast.info(this.$t("state.file_imported"), {
|
this.$toast.success(this.$t("state.file_imported"), {
|
||||||
icon: "folder_shared",
|
icon: "folder_shared",
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
failedImport() {
|
failedImport() {
|
||||||
this.$toast.error(this.$t("import.failed"), {
|
this.$toast.error(this.$t("import.failed"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
parsePostmanCollection({ info, name, item }) {
|
parsePostmanCollection({ info, name, item }) {
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
class="
|
class="
|
||||||
cursor-pointer
|
cursor-pointer
|
||||||
flex
|
flex
|
||||||
mx-2
|
px-2
|
||||||
w-12
|
w-16
|
||||||
justify-center
|
justify-center
|
||||||
items-center
|
items-center
|
||||||
truncate
|
truncate
|
||||||
@@ -171,7 +171,7 @@ export default Vue.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
removeGraphqlRequest(this.folderPath, this.requestIndex)
|
removeGraphqlRequest(this.folderPath, this.requestIndex)
|
||||||
this.$toast.error(this.$t("state.deleted").toString(), {
|
this.$toast.success(this.$t("state.deleted").toString(), {
|
||||||
icon: "delete",
|
icon: "delete",
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -351,7 +351,7 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
console.error(e)
|
console.error(e)
|
||||||
})
|
})
|
||||||
@@ -361,8 +361,8 @@ export default defineComponent({
|
|||||||
// Intented to be called by CollectionEdit modal submit event
|
// Intented to be called by CollectionEdit modal submit event
|
||||||
updateEditingCollection(newName) {
|
updateEditingCollection(newName) {
|
||||||
if (!newName) {
|
if (!newName) {
|
||||||
this.$toast.info(this.$t("collection.invalid_name"), {
|
this.$toast.error(this.$t("collection.invalid_name"), {
|
||||||
icon: "info",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -380,14 +380,13 @@ export default defineComponent({
|
|||||||
teamUtils
|
teamUtils
|
||||||
.renameCollection(this.$apollo, newName, this.editingCollection.id)
|
.renameCollection(this.$apollo, newName, this.editingCollection.id)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
// TODO: $t translations ?
|
this.$toast.success(this.$t("collection.renamed"), {
|
||||||
this.$toast.success("Collection Renamed", {
|
|
||||||
icon: "done",
|
icon: "done",
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
console.error(e)
|
console.error(e)
|
||||||
})
|
})
|
||||||
@@ -411,7 +410,7 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
console.error(e)
|
console.error(e)
|
||||||
})
|
})
|
||||||
@@ -445,14 +444,14 @@ export default defineComponent({
|
|||||||
this.editingRequestIndex
|
this.editingRequestIndex
|
||||||
)
|
)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$toast.success("Request Renamed", {
|
this.$toast.success(this.$t("request.renamed"), {
|
||||||
icon: "done",
|
icon: "done",
|
||||||
})
|
})
|
||||||
this.$emit("update-team-collections")
|
this.$emit("update-team-collections")
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
console.error(e)
|
console.error(e)
|
||||||
})
|
})
|
||||||
@@ -525,7 +524,7 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
console.error(e)
|
console.error(e)
|
||||||
})
|
})
|
||||||
@@ -590,8 +589,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
removeRESTCollection(collectionIndex)
|
removeRESTCollection(collectionIndex)
|
||||||
|
this.$toast.success(this.$t("state.deleted"), {
|
||||||
this.$toast.error(this.$t("state.deleted"), {
|
|
||||||
icon: "delete",
|
icon: "delete",
|
||||||
})
|
})
|
||||||
} else if (collectionsType.type === "team-collections") {
|
} else if (collectionsType.type === "team-collections") {
|
||||||
@@ -619,13 +617,13 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$toast.error(this.$t("state.deleted"), {
|
this.$toast.success(this.$t("state.deleted"), {
|
||||||
icon: "delete",
|
icon: "delete",
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
console.error(e)
|
console.error(e)
|
||||||
})
|
})
|
||||||
@@ -644,8 +642,7 @@ export default defineComponent({
|
|||||||
this.$emit("select", { picked: null })
|
this.$emit("select", { picked: null })
|
||||||
}
|
}
|
||||||
removeRESTRequest(folderPath, requestIndex)
|
removeRESTRequest(folderPath, requestIndex)
|
||||||
|
this.$toast.success(this.$t("state.deleted"), {
|
||||||
this.$toast.error(this.$t("state.deleted"), {
|
|
||||||
icon: "delete",
|
icon: "delete",
|
||||||
})
|
})
|
||||||
} else if (this.collectionsType.type === "team-collections") {
|
} else if (this.collectionsType.type === "team-collections") {
|
||||||
@@ -661,13 +658,13 @@ export default defineComponent({
|
|||||||
teamUtils
|
teamUtils
|
||||||
.deleteRequest(this.$apollo, requestIndex)
|
.deleteRequest(this.$apollo, requestIndex)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$toast.error(this.$t("state.deleted"), {
|
this.$toast.success(this.$t("state.deleted"), {
|
||||||
icon: "delete",
|
icon: "delete",
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
console.error(e)
|
console.error(e)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
@dragend="dragging = false"
|
@dragend="dragging = false"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="cursor-pointer flex w-10 justify-center items-center truncate"
|
class="cursor-pointer flex px-4 justify-center items-center"
|
||||||
@click="toggleShowChildren()"
|
@click="toggleShowChildren()"
|
||||||
>
|
>
|
||||||
<i class="material-icons" :class="{ 'text-green-500': isSelected }">
|
<i class="material-icons" :class="{ 'text-green-500': isSelected }">
|
||||||
@@ -112,7 +112,7 @@
|
|||||||
<CollectionsMyFolder
|
<CollectionsMyFolder
|
||||||
v-for="(folder, index) in collection.folders"
|
v-for="(folder, index) in collection.folders"
|
||||||
:key="`folder-${index}`"
|
:key="`folder-${index}`"
|
||||||
class="border-l border-dividerLight ml-5"
|
class="border-l border-dividerLight ml-6"
|
||||||
:folder="folder"
|
:folder="folder"
|
||||||
:folder-index="index"
|
:folder-index="index"
|
||||||
:folder-path="`${collectionIndex}/${index}`"
|
:folder-path="`${collectionIndex}/${index}`"
|
||||||
@@ -131,7 +131,7 @@
|
|||||||
<CollectionsMyRequest
|
<CollectionsMyRequest
|
||||||
v-for="(request, index) in collection.requests"
|
v-for="(request, index) in collection.requests"
|
||||||
:key="`request-${index}`"
|
:key="`request-${index}`"
|
||||||
class="border-l border-dividerLight ml-5"
|
class="border-l border-dividerLight ml-6"
|
||||||
:request="request"
|
:request="request"
|
||||||
:collection-index="collectionIndex"
|
:collection-index="collectionIndex"
|
||||||
:folder-index="-1"
|
:folder-index="-1"
|
||||||
@@ -156,7 +156,7 @@
|
|||||||
border-l border-dividerLight
|
border-l border-dividerLight
|
||||||
flex flex-col
|
flex flex-col
|
||||||
text-secondaryLight
|
text-secondaryLight
|
||||||
ml-5
|
ml-6
|
||||||
p-4
|
p-4
|
||||||
items-center
|
items-center
|
||||||
justify-center
|
justify-center
|
||||||
@@ -212,8 +212,8 @@ export default {
|
|||||||
},
|
},
|
||||||
getCollectionIcon() {
|
getCollectionIcon() {
|
||||||
if (this.isSelected) return "check_circle_outline"
|
if (this.isSelected) return "check_circle_outline"
|
||||||
else if (!this.showChildren && !this.isFiltered) return "arrow_right"
|
else if (!this.showChildren && !this.isFiltered) return "folder"
|
||||||
else if (this.showChildren || this.isFiltered) return "arrow_drop_down"
|
else if (this.showChildren || this.isFiltered) return "folder_open"
|
||||||
else return "folder"
|
else return "folder"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
@dragend="dragging = false"
|
@dragend="dragging = false"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="cursor-pointer flex w-10 justify-center items-center truncate"
|
class="cursor-pointer flex px-4 justify-center items-center"
|
||||||
@click="toggleShowChildren()"
|
@click="toggleShowChildren()"
|
||||||
>
|
>
|
||||||
<i class="material-icons" :class="{ 'text-green-500': isSelected }">
|
<i class="material-icons" :class="{ 'text-green-500': isSelected }">
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
<CollectionsMyFolder
|
<CollectionsMyFolder
|
||||||
v-for="(subFolder, subFolderIndex) in folder.folders"
|
v-for="(subFolder, subFolderIndex) in folder.folders"
|
||||||
:key="`subFolder-${subFolderIndex}`"
|
:key="`subFolder-${subFolderIndex}`"
|
||||||
class="border-l border-dividerLight ml-5"
|
class="border-l border-dividerLight ml-6"
|
||||||
:folder="subFolder"
|
:folder="subFolder"
|
||||||
:folder-index="subFolderIndex"
|
:folder-index="subFolderIndex"
|
||||||
:collection-index="collectionIndex"
|
:collection-index="collectionIndex"
|
||||||
@@ -113,7 +113,7 @@
|
|||||||
<CollectionsMyRequest
|
<CollectionsMyRequest
|
||||||
v-for="(request, index) in folder.requests"
|
v-for="(request, index) in folder.requests"
|
||||||
:key="`request-${index}`"
|
:key="`request-${index}`"
|
||||||
class="border-l border-dividerLight ml-5"
|
class="border-l border-dividerLight ml-6"
|
||||||
:request="request"
|
:request="request"
|
||||||
:collection-index="collectionIndex"
|
:collection-index="collectionIndex"
|
||||||
:folder-index="folderIndex"
|
:folder-index="folderIndex"
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
border-l border-dividerLight
|
border-l border-dividerLight
|
||||||
flex flex-col
|
flex flex-col
|
||||||
text-secondaryLight
|
text-secondaryLight
|
||||||
ml-5
|
ml-6
|
||||||
p-4
|
p-4
|
||||||
items-center
|
items-center
|
||||||
justify-center
|
justify-center
|
||||||
@@ -199,8 +199,8 @@ export default {
|
|||||||
},
|
},
|
||||||
getCollectionIcon() {
|
getCollectionIcon() {
|
||||||
if (this.isSelected) return "check_circle_outline"
|
if (this.isSelected) return "check_circle_outline"
|
||||||
else if (!this.showChildren && !this.isFiltered) return "arrow_right"
|
else if (!this.showChildren && !this.isFiltered) return "folder"
|
||||||
else if (this.showChildren || this.isFiltered) return "arrow_drop_down"
|
else if (this.showChildren || this.isFiltered) return "folder_open"
|
||||||
else return "folder"
|
else return "folder"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -228,8 +228,7 @@ export default {
|
|||||||
this.$emit("select", { picked: null })
|
this.$emit("select", { picked: null })
|
||||||
}
|
}
|
||||||
removeRESTFolder(this.folderPath)
|
removeRESTFolder(this.folderPath)
|
||||||
|
this.$toast.success(this.$t("state.deleted"), {
|
||||||
this.$toast.error(this.$t("state.deleted"), {
|
|
||||||
icon: "delete",
|
icon: "delete",
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
class="
|
class="
|
||||||
cursor-pointer
|
cursor-pointer
|
||||||
flex
|
flex
|
||||||
mx-2
|
px-2
|
||||||
w-12
|
w-16
|
||||||
justify-center
|
justify-center
|
||||||
items-center
|
items-center
|
||||||
truncate
|
truncate
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
>
|
>
|
||||||
check_circle_outline
|
check_circle_outline
|
||||||
</i>
|
</i>
|
||||||
<span v-else>
|
<span v-else class="truncate">
|
||||||
{{ request.method }}
|
{{ request.method }}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<div class="flex items-center group">
|
<div class="flex items-center group">
|
||||||
<span
|
<span
|
||||||
class="cursor-pointer flex w-10 justify-center items-center truncate"
|
class="cursor-pointer flex px-4 justify-center items-center"
|
||||||
@click="toggleShowChildren()"
|
@click="toggleShowChildren()"
|
||||||
>
|
>
|
||||||
<i class="material-icons" :class="{ 'text-green-500': isSelected }">
|
<i class="material-icons" :class="{ 'text-green-500': isSelected }">
|
||||||
@@ -108,7 +108,7 @@
|
|||||||
<CollectionsTeamsFolder
|
<CollectionsTeamsFolder
|
||||||
v-for="(folder, index) in collection.children"
|
v-for="(folder, index) in collection.children"
|
||||||
:key="`folder-${folder}`"
|
:key="`folder-${folder}`"
|
||||||
class="border-l border-dividerLight ml-5"
|
class="border-l border-dividerLight ml-6"
|
||||||
:folder="folder"
|
:folder="folder"
|
||||||
:folder-index="index"
|
:folder-index="index"
|
||||||
:folder-path="`${collectionIndex}/${index}`"
|
:folder-path="`${collectionIndex}/${index}`"
|
||||||
@@ -128,7 +128,7 @@
|
|||||||
<CollectionsTeamsRequest
|
<CollectionsTeamsRequest
|
||||||
v-for="(request, index) in collection.requests"
|
v-for="(request, index) in collection.requests"
|
||||||
:key="`request-${index}`"
|
:key="`request-${index}`"
|
||||||
class="border-l border-dividerLight ml-5"
|
class="border-l border-dividerLight ml-6"
|
||||||
:request="request.request"
|
:request="request.request"
|
||||||
:collection-index="collectionIndex"
|
:collection-index="collectionIndex"
|
||||||
:folder-index="-1"
|
:folder-index="-1"
|
||||||
@@ -152,7 +152,7 @@
|
|||||||
border-l border-dividerLight
|
border-l border-dividerLight
|
||||||
flex flex-col
|
flex flex-col
|
||||||
text-secondaryLight
|
text-secondaryLight
|
||||||
ml-5
|
ml-6
|
||||||
p-4
|
p-4
|
||||||
items-center
|
items-center
|
||||||
justify-center
|
justify-center
|
||||||
@@ -205,8 +205,8 @@ export default {
|
|||||||
},
|
},
|
||||||
getCollectionIcon() {
|
getCollectionIcon() {
|
||||||
if (this.isSelected) return "check_circle_outline"
|
if (this.isSelected) return "check_circle_outline"
|
||||||
else if (!this.showChildren && !this.isFiltered) return "arrow_right"
|
else if (!this.showChildren && !this.isFiltered) return "folder"
|
||||||
else if (this.showChildren || this.isFiltered) return "arrow_drop_down"
|
else if (this.showChildren || this.isFiltered) return "folder_open"
|
||||||
else return "folder"
|
else return "folder"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<div class="flex items-center group">
|
<div class="flex items-center group">
|
||||||
<span
|
<span
|
||||||
class="cursor-pointer flex w-10 justify-center items-center truncate"
|
class="cursor-pointer flex px-4 justify-center items-center"
|
||||||
@click="toggleShowChildren()"
|
@click="toggleShowChildren()"
|
||||||
>
|
>
|
||||||
<i class="material-icons" :class="{ 'text-green-500': isSelected }">
|
<i class="material-icons" :class="{ 'text-green-500': isSelected }">
|
||||||
@@ -91,7 +91,7 @@
|
|||||||
<CollectionsTeamsFolder
|
<CollectionsTeamsFolder
|
||||||
v-for="(subFolder, subFolderIndex) in folder.children"
|
v-for="(subFolder, subFolderIndex) in folder.children"
|
||||||
:key="`subFolder-${subFolderIndex}`"
|
:key="`subFolder-${subFolderIndex}`"
|
||||||
class="border-l border-dividerLight ml-5"
|
class="border-l border-dividerLight ml-6"
|
||||||
:folder="subFolder"
|
:folder="subFolder"
|
||||||
:folder-index="subFolderIndex"
|
:folder-index="subFolderIndex"
|
||||||
:collection-index="collectionIndex"
|
:collection-index="collectionIndex"
|
||||||
@@ -111,7 +111,7 @@
|
|||||||
<CollectionsTeamsRequest
|
<CollectionsTeamsRequest
|
||||||
v-for="(request, index) in folder.requests"
|
v-for="(request, index) in folder.requests"
|
||||||
:key="`request-${index}`"
|
:key="`request-${index}`"
|
||||||
class="border-l border-dividerLight ml-5"
|
class="border-l border-dividerLight ml-6"
|
||||||
:request="request.request"
|
:request="request.request"
|
||||||
:collection-index="collectionIndex"
|
:collection-index="collectionIndex"
|
||||||
:folder-index="folderIndex"
|
:folder-index="folderIndex"
|
||||||
@@ -134,7 +134,7 @@
|
|||||||
border-l border-dividerLight
|
border-l border-dividerLight
|
||||||
flex flex-col
|
flex flex-col
|
||||||
text-secondaryLight
|
text-secondaryLight
|
||||||
ml-5
|
ml-6
|
||||||
p-4
|
p-4
|
||||||
items-center
|
items-center
|
||||||
justify-center
|
justify-center
|
||||||
@@ -189,8 +189,8 @@ export default {
|
|||||||
},
|
},
|
||||||
getCollectionIcon() {
|
getCollectionIcon() {
|
||||||
if (this.isSelected) return "check_circle_outline"
|
if (this.isSelected) return "check_circle_outline"
|
||||||
else if (!this.showChildren && !this.isFiltered) return "arrow_right"
|
else if (!this.showChildren && !this.isFiltered) return "folder"
|
||||||
else if (this.showChildren || this.isFiltered) return "arrow_drop_down"
|
else if (this.showChildren || this.isFiltered) return "folder_open"
|
||||||
else return "folder"
|
else return "folder"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -221,14 +221,14 @@ export default {
|
|||||||
teamUtils
|
teamUtils
|
||||||
.deleteCollection(this.$apollo, this.folder.id)
|
.deleteCollection(this.$apollo, this.folder.id)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$toast.error(this.$t("state.deleted"), {
|
this.$toast.success(this.$t("state.deleted"), {
|
||||||
icon: "delete",
|
icon: "delete",
|
||||||
})
|
})
|
||||||
this.$emit("update-team-collections")
|
this.$emit("update-team-collections")
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
console.error(e)
|
console.error(e)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
class="
|
class="
|
||||||
cursor-pointer
|
cursor-pointer
|
||||||
flex
|
flex
|
||||||
mx-2
|
px-2
|
||||||
w-12
|
w-16
|
||||||
justify-center
|
justify-center
|
||||||
items-center
|
items-center
|
||||||
truncate
|
truncate
|
||||||
|
|||||||
@@ -47,8 +47,8 @@ export default Vue.extend({
|
|||||||
methods: {
|
methods: {
|
||||||
addNewEnvironment() {
|
addNewEnvironment() {
|
||||||
if (!this.name) {
|
if (!this.name) {
|
||||||
this.$toast.info(this.$t("environment.invalid_name").toString(), {
|
this.$toast.error(this.$t("environment.invalid_name").toString(), {
|
||||||
icon: "info",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ export default defineComponent({
|
|||||||
clearContent() {
|
clearContent() {
|
||||||
this.vars = []
|
this.vars = []
|
||||||
this.clearIcon = "done"
|
this.clearIcon = "done"
|
||||||
this.$toast.info(this.$t("state.cleared").toString(), {
|
this.$toast.success(this.$t("state.cleared").toString(), {
|
||||||
icon: "clear_all",
|
icon: "clear_all",
|
||||||
})
|
})
|
||||||
setTimeout(() => (this.clearIcon = "clear_all"), 1000)
|
setTimeout(() => (this.clearIcon = "clear_all"), 1000)
|
||||||
@@ -175,8 +175,8 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
saveEnvironment() {
|
saveEnvironment() {
|
||||||
if (!this.name) {
|
if (!this.name) {
|
||||||
this.$toast.info(this.$t("environment.invalid_name").toString(), {
|
this.$toast.error(this.$t("environment.invalid_name").toString(), {
|
||||||
icon: "info",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex items-center group">
|
<div class="flex items-center group">
|
||||||
<span
|
<span
|
||||||
class="cursor-pointer flex w-10 justify-center items-center truncate"
|
class="cursor-pointer flex px-4 justify-center items-center"
|
||||||
@click="$emit('edit-environment')"
|
@click="$emit('edit-environment')"
|
||||||
>
|
>
|
||||||
<i class="material-icons">layers</i>
|
<i class="material-icons">layers</i>
|
||||||
@@ -82,7 +82,7 @@ export default Vue.extend({
|
|||||||
removeEnvironment() {
|
removeEnvironment() {
|
||||||
if (this.environmentIndex !== "Global")
|
if (this.environmentIndex !== "Global")
|
||||||
deleteEnvironment(this.environmentIndex)
|
deleteEnvironment(this.environmentIndex)
|
||||||
this.$toast.error(this.$t("state.deleted").toString(), {
|
this.$toast.success(this.$t("state.deleted").toString(), {
|
||||||
icon: "delete",
|
icon: "delete",
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
$refs.options.tippy().hide()
|
$refs.options.tippy().hide()
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
<SmartItem
|
<span
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
:title="
|
:title="
|
||||||
!currentUser
|
!currentUser
|
||||||
@@ -32,6 +32,8 @@
|
|||||||
? $t('export.require_github')
|
? $t('export.require_github')
|
||||||
: null
|
: null
|
||||||
"
|
"
|
||||||
|
>
|
||||||
|
<SmartItem
|
||||||
:disabled="
|
:disabled="
|
||||||
!currentUser
|
!currentUser
|
||||||
? true
|
? true
|
||||||
@@ -46,6 +48,7 @@
|
|||||||
$refs.options.tippy().hide()
|
$refs.options.tippy().hide()
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
|
</span>
|
||||||
</tippy>
|
</tippy>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
@@ -143,7 +146,7 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
console.error(e)
|
console.error(e)
|
||||||
})
|
})
|
||||||
@@ -227,7 +230,7 @@ export default defineComponent({
|
|||||||
document.body.appendChild(a)
|
document.body.appendChild(a)
|
||||||
a.click()
|
a.click()
|
||||||
this.$toast.success(this.$t("state.download_started"), {
|
this.$toast.success(this.$t("state.download_started"), {
|
||||||
icon: "done",
|
icon: "downloading",
|
||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
document.body.removeChild(a)
|
document.body.removeChild(a)
|
||||||
@@ -235,7 +238,7 @@ export default defineComponent({
|
|||||||
}, 1000)
|
}, 1000)
|
||||||
},
|
},
|
||||||
fileImported() {
|
fileImported() {
|
||||||
this.$toast.info(this.$t("state.file_imported"), {
|
this.$toast.success(this.$t("state.file_imported"), {
|
||||||
icon: "folder_shared",
|
icon: "folder_shared",
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
showLoginSuccess() {
|
showLoginSuccess() {
|
||||||
this.$toast.info(this.$t("auth.login_success"), {
|
this.$toast.success(this.$t("auth.login_success"), {
|
||||||
icon: "vpn_key",
|
icon: "vpn_key",
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -222,7 +222,6 @@ export default {
|
|||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$toast.info(`${this.$t("auth.account_exists")}`, {
|
this.$toast.info(`${this.$t("auth.account_exists")}`, {
|
||||||
icon: "vpn_key",
|
icon: "vpn_key",
|
||||||
duration: null,
|
duration: null,
|
||||||
@@ -241,7 +240,7 @@ export default {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -305,7 +304,6 @@ export default {
|
|||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$toast.info(`${this.$t("auth.account_exists")}`, {
|
this.$toast.info(`${this.$t("auth.account_exists")}`, {
|
||||||
icon: "vpn_key",
|
icon: "vpn_key",
|
||||||
duration: null,
|
duration: null,
|
||||||
@@ -324,7 +322,7 @@ export default {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -346,7 +344,7 @@ export default {
|
|||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
this.$toast.error(e.message, {
|
this.$toast.error(e.message, {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
this.signingInWithEmail = false
|
this.signingInWithEmail = false
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -31,14 +31,13 @@ export default Vue.extend({
|
|||||||
async logout() {
|
async logout() {
|
||||||
try {
|
try {
|
||||||
await signOutUser()
|
await signOutUser()
|
||||||
|
this.$toast.success(this.$t("auth.logged_out").toString(), {
|
||||||
this.$toast.info(this.$t("auth.logged_out").toString(), {
|
|
||||||
icon: "vpn_key",
|
icon: "vpn_key",
|
||||||
})
|
})
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
this.$toast.error(this.$t("error.something_went_wrong").toString(), {
|
this.$toast.error(this.$t("error.something_went_wrong").toString(), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ export default {
|
|||||||
this.$emit("update-query", gql.print(gql.parse(this.editor.getValue())))
|
this.$emit("update-query", gql.print(gql.parse(this.editor.getValue())))
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.$toast.error(this.$t("error.gql_prettify_invalid_query"), {
|
this.$toast.error(this.$t("error.gql_prettify_invalid_query"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
<div class="flex">
|
<div class="flex">
|
||||||
<ButtonSecondary
|
<ButtonSecondary
|
||||||
:label="$t('request.run')"
|
:label="$t('request.run')"
|
||||||
:shortcut="[getSpecialKey(), 'Enter']"
|
|
||||||
icon="play_arrow"
|
icon="play_arrow"
|
||||||
class="rounded-none !text-accent"
|
class="rounded-none !text-accent"
|
||||||
@click.native="runQuery()"
|
@click.native="runQuery()"
|
||||||
@@ -401,7 +400,7 @@ export default defineComponent({
|
|||||||
nuxt.value.$loading.finish()
|
nuxt.value.$loading.finish()
|
||||||
|
|
||||||
$toast.error(`${e} ${t("error.f12_details").toString()}`, {
|
$toast.error(`${e} ${t("error.f12_details").toString()}`, {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
console.error(e)
|
console.error(e)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ export default defineComponent({
|
|||||||
a.click()
|
a.click()
|
||||||
downloadResponseIcon.value = "done"
|
downloadResponseIcon.value = "done"
|
||||||
$toast.success(t("state.download_started").toString(), {
|
$toast.success(t("state.download_started").toString(), {
|
||||||
icon: "done",
|
icon: "downloading",
|
||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
document.body.removeChild(a)
|
document.body.removeChild(a)
|
||||||
|
|||||||
@@ -416,7 +416,7 @@ export default defineComponent({
|
|||||||
a.click()
|
a.click()
|
||||||
downloadSchemaIcon.value = "done"
|
downloadSchemaIcon.value = "done"
|
||||||
$toast.success(t("state.download_started").toString(), {
|
$toast.success(t("state.download_started").toString(), {
|
||||||
icon: "done",
|
icon: "downloading",
|
||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
document.body.removeChild(a)
|
document.body.removeChild(a)
|
||||||
|
|||||||
@@ -136,8 +136,7 @@ export default defineComponent({
|
|||||||
clearHistory() {
|
clearHistory() {
|
||||||
if (this.page === "rest") clearRESTHistory()
|
if (this.page === "rest") clearRESTHistory()
|
||||||
else clearGraphqlHistory()
|
else clearGraphqlHistory()
|
||||||
|
this.$toast.success(this.$t("state.history_deleted").toString(), {
|
||||||
this.$toast.error(this.$t("state.history_deleted").toString(), {
|
|
||||||
icon: "delete",
|
icon: "delete",
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -147,8 +146,7 @@ export default defineComponent({
|
|||||||
deleteHistory(entry: any) {
|
deleteHistory(entry: any) {
|
||||||
if (this.page === "rest") deleteRESTHistoryEntry(entry)
|
if (this.page === "rest") deleteRESTHistoryEntry(entry)
|
||||||
else deleteGraphqlHistoryEntry(entry)
|
else deleteGraphqlHistoryEntry(entry)
|
||||||
|
this.$toast.success(this.$t("state.deleted").toString(), {
|
||||||
this.$toast.error(this.$t("state.deleted").toString(), {
|
|
||||||
icon: "delete",
|
icon: "delete",
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex items-center group">
|
<div class="flex items-center group">
|
||||||
<span
|
<span
|
||||||
class="cursor-pointer flex mx-2 w-12 justify-center items-center truncate"
|
class="cursor-pointer flex px-2 w-16 justify-center items-center truncate"
|
||||||
:class="entryStatus.className"
|
:class="entryStatus.className"
|
||||||
data-testid="restore_history_entry"
|
data-testid="restore_history_entry"
|
||||||
:title="duration"
|
:title="duration"
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
icon="remove_circle_outline"
|
icon="remove_circle_outline"
|
||||||
color="red"
|
color="red"
|
||||||
:title="$t('action.remove')"
|
:title="$t('action.remove')"
|
||||||
class="group-hover:inline-flex hidden"
|
class="hidden group-hover:inline-flex"
|
||||||
data-testid="delete_history_entry"
|
data-testid="delete_history_entry"
|
||||||
@click.native="$emit('delete-entry')"
|
@click.native="$emit('delete-entry')"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ export default defineComponent({
|
|||||||
copyToClipboard(this.requestCode)
|
copyToClipboard(this.requestCode)
|
||||||
this.copyIcon = "done"
|
this.copyIcon = "done"
|
||||||
this.$toast.success(this.$t("state.copied_to_clipboard").toString(), {
|
this.$toast.success(this.$t("state.copied_to_clipboard").toString(), {
|
||||||
icon: "done",
|
icon: "content_paste",
|
||||||
})
|
})
|
||||||
setTimeout(() => (this.copyIcon = "content_copy"), 1000)
|
setTimeout(() => (this.copyIcon = "content_copy"), 1000)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ export default defineComponent({
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
this.$toast.error(this.$t("error.curl_invalid_format").toString(), {
|
this.$toast.error(this.$t("error.curl_invalid_format").toString(), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.hideModal()
|
this.hideModal()
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ export default defineComponent({
|
|||||||
this.rawParamsBody = target.result
|
this.rawParamsBody = target.result
|
||||||
}
|
}
|
||||||
reader.readAsText(file)
|
reader.readAsText(file)
|
||||||
this.$toast.info(this.$t("state.file_imported"), {
|
this.$toast.success(this.$t("state.file_imported"), {
|
||||||
icon: "attach_file",
|
icon: "attach_file",
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
@@ -127,7 +127,7 @@ export default defineComponent({
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
this.$toast.error(`${this.$t("error.json_prettify_invalid_body")}`, {
|
this.$toast.error(`${this.$t("error.json_prettify_invalid_body")}`, {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="bg-primary flex space-x-2 p-4 top-0 z-10 sticky">
|
<div class="bg-primary flex p-4 top-0 z-10 sticky">
|
||||||
<div class="flex flex-1">
|
<div class="flex flex-1">
|
||||||
<div class="flex relative">
|
<div class="flex relative">
|
||||||
|
<label for="method">
|
||||||
<tippy
|
<tippy
|
||||||
ref="methodOptions"
|
ref="methodOptions"
|
||||||
interactive
|
interactive
|
||||||
@@ -29,6 +30,7 @@
|
|||||||
"
|
"
|
||||||
:value="newMethod"
|
:value="newMethod"
|
||||||
:readonly="!isCustomMethod"
|
:readonly="!isCustomMethod"
|
||||||
|
:placeholder="$t('request.method')"
|
||||||
@input="onSelectMethod($event.target.value)"
|
@input="onSelectMethod($event.target.value)"
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
@@ -40,6 +42,7 @@
|
|||||||
@click.native="onSelectMethod(method)"
|
@click.native="onSelectMethod(method)"
|
||||||
/>
|
/>
|
||||||
</tippy>
|
</tippy>
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-1">
|
<div class="flex flex-1">
|
||||||
<SmartEnvInput
|
<SmartEnvInput
|
||||||
@@ -50,7 +53,6 @@
|
|||||||
bg-primaryLight
|
bg-primaryLight
|
||||||
border border-divider
|
border border-divider
|
||||||
flex
|
flex
|
||||||
rounded-r
|
|
||||||
flex-1
|
flex-1
|
||||||
text-secondaryDark
|
text-secondaryDark
|
||||||
py-1
|
py-1
|
||||||
@@ -68,7 +70,6 @@
|
|||||||
class="
|
class="
|
||||||
bg-primaryLight
|
bg-primaryLight
|
||||||
border border-divider
|
border border-divider
|
||||||
rounded-r
|
|
||||||
flex
|
flex
|
||||||
text-secondaryDark
|
text-secondaryDark
|
||||||
w-full
|
w-full
|
||||||
@@ -88,9 +89,8 @@
|
|||||||
<div class="flex">
|
<div class="flex">
|
||||||
<ButtonPrimary
|
<ButtonPrimary
|
||||||
id="send"
|
id="send"
|
||||||
class="rounded-r-none flex-1 min-w-20"
|
class="rounded-none flex-1 min-w-24"
|
||||||
:label="!loading ? $t('action.send') : $t('action.cancel')"
|
:label="!loading ? $t('action.send') : $t('action.cancel')"
|
||||||
:shortcut="[getSpecialKey(), 'G']"
|
|
||||||
@click.native="!loading ? newSendRequest() : cancelRequest()"
|
@click.native="!loading ? newSendRequest() : cancelRequest()"
|
||||||
/>
|
/>
|
||||||
<span class="flex">
|
<span class="flex">
|
||||||
@@ -136,10 +136,10 @@
|
|||||||
</tippy>
|
</tippy>
|
||||||
</span>
|
</span>
|
||||||
<ButtonSecondary
|
<ButtonSecondary
|
||||||
class="rounded-r-none flex-1 ml-2"
|
class="rounded-r-none ml-2"
|
||||||
:label="$t('request.save')"
|
:label="$t('request.save')"
|
||||||
:shortcut="[getSpecialKey(), 'S']"
|
|
||||||
outline
|
outline
|
||||||
|
icon="save"
|
||||||
@click.native="saveRequest()"
|
@click.native="saveRequest()"
|
||||||
/>
|
/>
|
||||||
<span class="flex">
|
<span class="flex">
|
||||||
@@ -223,7 +223,6 @@ import {
|
|||||||
getRESTRequest,
|
getRESTRequest,
|
||||||
} from "~/newstore/RESTSession"
|
} from "~/newstore/RESTSession"
|
||||||
import { editRESTRequest } from "~/newstore/collections"
|
import { editRESTRequest } from "~/newstore/collections"
|
||||||
import { getPlatformSpecialKey } from "~/helpers/platformutils"
|
|
||||||
import { runRESTRequest$ } from "~/helpers/RequestRunner"
|
import { runRESTRequest$ } from "~/helpers/RequestRunner"
|
||||||
import {
|
import {
|
||||||
useStreamSubscriber,
|
useStreamSubscriber,
|
||||||
@@ -339,8 +338,8 @@ export default defineComponent({
|
|||||||
.catch(() => {})
|
.catch(() => {})
|
||||||
} else {
|
} else {
|
||||||
copyToClipboard(window.location.href)
|
copyToClipboard(window.location.href)
|
||||||
$toast.info(t("state.copied_to_clipboard").toString(), {
|
$toast.success(t("state.copied_to_clipboard").toString(), {
|
||||||
icon: "done",
|
icon: "content_paste",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -401,7 +400,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$toast.success(t("request.saved").toString(), {
|
$toast.success(t("request.saved").toString(), {
|
||||||
icon: "done",
|
icon: "playlist_add_check",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -431,7 +430,6 @@ export default defineComponent({
|
|||||||
loading,
|
loading,
|
||||||
newSendRequest,
|
newSendRequest,
|
||||||
requestName: useRESTRequestName(),
|
requestName: useRESTRequestName(),
|
||||||
getSpecialKey: getPlatformSpecialKey,
|
|
||||||
showCurlImportModal,
|
showCurlImportModal,
|
||||||
showCodegenModal,
|
showCodegenModal,
|
||||||
showSaveRequestModal,
|
showSaveRequestModal,
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ export default {
|
|||||||
a.click()
|
a.click()
|
||||||
this.downloadIcon = "done"
|
this.downloadIcon = "done"
|
||||||
this.$toast.success(this.$t("state.download_started"), {
|
this.$toast.success(this.$t("state.download_started"), {
|
||||||
icon: "done",
|
icon: "downloading",
|
||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
document.body.removeChild(a)
|
document.body.removeChild(a)
|
||||||
@@ -109,7 +109,7 @@ export default {
|
|||||||
copyToClipboard(this.responseBodyText)
|
copyToClipboard(this.responseBodyText)
|
||||||
this.copyIcon = "done"
|
this.copyIcon = "done"
|
||||||
this.$toast.success(this.$t("state.copied_to_clipboard"), {
|
this.$toast.success(this.$t("state.copied_to_clipboard"), {
|
||||||
icon: "done",
|
icon: "content_paste",
|
||||||
})
|
})
|
||||||
setTimeout(() => (this.copyIcon = "content_copy"), 1000)
|
setTimeout(() => (this.copyIcon = "content_copy"), 1000)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ export default {
|
|||||||
a.click()
|
a.click()
|
||||||
this.downloadIcon = "done"
|
this.downloadIcon = "done"
|
||||||
this.$toast.success(this.$t("state.download_started"), {
|
this.$toast.success(this.$t("state.download_started"), {
|
||||||
icon: "done",
|
icon: "downloading",
|
||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
document.body.removeChild(a)
|
document.body.removeChild(a)
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ export default {
|
|||||||
a.click()
|
a.click()
|
||||||
this.downloadIcon = "done"
|
this.downloadIcon = "done"
|
||||||
this.$toast.success(this.$t("state.download_started"), {
|
this.$toast.success(this.$t("state.download_started"), {
|
||||||
icon: "done",
|
icon: "downloading",
|
||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
document.body.removeChild(a)
|
document.body.removeChild(a)
|
||||||
@@ -113,7 +113,7 @@ export default {
|
|||||||
copyToClipboard(this.responseBodyText)
|
copyToClipboard(this.responseBodyText)
|
||||||
this.copyIcon = "done"
|
this.copyIcon = "done"
|
||||||
this.$toast.success(this.$t("state.copied_to_clipboard"), {
|
this.$toast.success(this.$t("state.copied_to_clipboard"), {
|
||||||
icon: "done",
|
icon: "content_paste",
|
||||||
})
|
})
|
||||||
setTimeout(() => (this.copyIcon = "content_copy"), 1000)
|
setTimeout(() => (this.copyIcon = "content_copy"), 1000)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ export default {
|
|||||||
a.click()
|
a.click()
|
||||||
this.downloadIcon = "done"
|
this.downloadIcon = "done"
|
||||||
this.$toast.success(this.$t("state.download_started"), {
|
this.$toast.success(this.$t("state.download_started"), {
|
||||||
icon: "done",
|
icon: "downloading",
|
||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
document.body.removeChild(a)
|
document.body.removeChild(a)
|
||||||
@@ -105,7 +105,7 @@ export default {
|
|||||||
copyToClipboard(this.responseBodyText)
|
copyToClipboard(this.responseBodyText)
|
||||||
this.copyIcon = "done"
|
this.copyIcon = "done"
|
||||||
this.$toast.success(this.$t("state.copied_to_clipboard"), {
|
this.$toast.success(this.$t("state.copied_to_clipboard"), {
|
||||||
icon: "done",
|
icon: "content_paste",
|
||||||
})
|
})
|
||||||
setTimeout(() => (this.copyIcon = "content_copy"), 1000)
|
setTimeout(() => (this.copyIcon = "content_copy"), 1000)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ export default {
|
|||||||
a.click()
|
a.click()
|
||||||
this.downloadIcon = "done"
|
this.downloadIcon = "done"
|
||||||
this.$toast.success(this.$t("state.download_started"), {
|
this.$toast.success(this.$t("state.download_started"), {
|
||||||
icon: "done",
|
icon: "downloading",
|
||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
document.body.removeChild(a)
|
document.body.removeChild(a)
|
||||||
@@ -104,7 +104,7 @@ export default {
|
|||||||
copyToClipboard(this.responseBodyText)
|
copyToClipboard(this.responseBodyText)
|
||||||
this.copyIcon = "done"
|
this.copyIcon = "done"
|
||||||
this.$toast.success(this.$t("state.copied_to_clipboard"), {
|
this.$toast.success(this.$t("state.copied_to_clipboard"), {
|
||||||
icon: "done",
|
icon: "content_paste",
|
||||||
})
|
})
|
||||||
setTimeout(() => (this.copyIcon = "content_copy"), 1000)
|
setTimeout(() => (this.copyIcon = "content_copy"), 1000)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -280,7 +280,7 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.manualDisconnect = false
|
this.manualDisconnect = false
|
||||||
|
|||||||
@@ -282,7 +282,7 @@ export default defineComponent({
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.handleError(e)
|
this.handleError(e)
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ export default {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.handleSSEError(e)
|
this.handleSSEError(e)
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -322,7 +322,7 @@ export default defineComponent({
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.handleError(e)
|
this.handleError(e)
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -406,7 +406,7 @@ export default defineComponent({
|
|||||||
deleteProtocol({ index }) {
|
deleteProtocol({ index }) {
|
||||||
const oldProtocols = this.protocols.slice()
|
const oldProtocols = this.protocols.slice()
|
||||||
this.$delete(this.protocols, index)
|
this.$delete(this.protocols, index)
|
||||||
this.$toast.error(this.$t("state.deleted"), {
|
this.$toast.success(this.$t("state.deleted"), {
|
||||||
icon: "delete",
|
icon: "delete",
|
||||||
action: {
|
action: {
|
||||||
text: this.$t("action.undo"),
|
text: this.$t("action.undo"),
|
||||||
|
|||||||
@@ -47,14 +47,14 @@ export default {
|
|||||||
// We clear it early to give the UI a snappy feel
|
// We clear it early to give the UI a snappy feel
|
||||||
this.name = ""
|
this.name = ""
|
||||||
if (!name) {
|
if (!name) {
|
||||||
this.$toast.info(this.$t("empty.team_name"), {
|
this.$toast.error(this.$t("empty.team_name"), {
|
||||||
icon: "info",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (name !== null && name.replace(/\s/g, "").length < 6) {
|
if (name !== null && name.replace(/\s/g, "").length < 6) {
|
||||||
this.$toast.error(this.$t("team.name_length_insufficient"), {
|
this.$toast.error(this.$t("team.name_length_insufficient"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
console.error(e)
|
console.error(e)
|
||||||
})
|
})
|
||||||
@@ -275,7 +275,7 @@ export default defineComponent({
|
|||||||
this.$data.rename.replace(/\s/g, "").length < 6
|
this.$data.rename.replace(/\s/g, "").length < 6
|
||||||
) {
|
) {
|
||||||
this.$toast.error(this.$t("team.name_length_insufficient"), {
|
this.$toast.error(this.$t("team.name_length_insufficient"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -283,7 +283,7 @@ export default defineComponent({
|
|||||||
this.$data.newMembers.forEach((element) => {
|
this.$data.newMembers.forEach((element) => {
|
||||||
if (!this.validateEmail(element.key)) {
|
if (!this.validateEmail(element.key)) {
|
||||||
this.$toast.error(this.$t("team.invalid_email_format"), {
|
this.$toast.error(this.$t("team.invalid_email_format"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
invalidEmail = true
|
invalidEmail = true
|
||||||
}
|
}
|
||||||
@@ -293,7 +293,7 @@ export default defineComponent({
|
|||||||
this.$data.newMembers.forEach((element) => {
|
this.$data.newMembers.forEach((element) => {
|
||||||
if (!element.value) {
|
if (!element.value) {
|
||||||
this.$toast.error(this.$t("invalid_member_permission"), {
|
this.$toast.error(this.$t("invalid_member_permission"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
invalidPermission = true
|
invalidPermission = true
|
||||||
}
|
}
|
||||||
@@ -315,7 +315,7 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
this.$toast.error(e, {
|
this.$toast.error(e, {
|
||||||
icon: "done",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
console.error(e)
|
console.error(e)
|
||||||
})
|
})
|
||||||
@@ -335,7 +335,7 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
this.$toast.error(e, {
|
this.$toast.error(e, {
|
||||||
icon: "done",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
console.error(e)
|
console.error(e)
|
||||||
})
|
})
|
||||||
@@ -345,7 +345,7 @@ export default defineComponent({
|
|||||||
this.name === this.$data.rename ? this.name : this.$data.rename
|
this.name === this.$data.rename ? this.name : this.$data.rename
|
||||||
if (!/\S/.test(newName))
|
if (!/\S/.test(newName))
|
||||||
return this.$toast.error(this.$t("empty.team_name"), {
|
return this.$toast.error(this.$t("empty.team_name"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
// Call to the graphql mutation
|
// Call to the graphql mutation
|
||||||
if (this.name !== this.rename)
|
if (this.name !== this.rename)
|
||||||
@@ -358,7 +358,7 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
console.error(e)
|
console.error(e)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
console.error(e)
|
console.error(e)
|
||||||
})
|
})
|
||||||
@@ -104,7 +104,7 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
console.error(e)
|
console.error(e)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ export default defineComponent({
|
|||||||
workbox.addEventListener("installed", (event: any) => {
|
workbox.addEventListener("installed", (event: any) => {
|
||||||
if (event.isUpdate) {
|
if (event.isUpdate) {
|
||||||
this.$toast.show(this.$t("app.new_version_found").toString(), {
|
this.$toast.show(this.$t("app.new_version_found").toString(), {
|
||||||
icon: "info",
|
icon: "download_for_offline",
|
||||||
duration: 0,
|
duration: 0,
|
||||||
action: [
|
action: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
"reload": "Reload",
|
"reload": "Reload",
|
||||||
"home": "Home",
|
"home": "Home",
|
||||||
"invite": "Invite",
|
"invite": "Invite",
|
||||||
"invite_description": "In Hoppscotch, we designed a simple and intuitive interface for creating and managing your APIs. Hoppscotch is a tool that helps you build, test, document and share your APIs.",
|
"invite_description": "Hoppscotch is an open source API development ecosystem. We designed a simple and intuitive interface for creating and managing your APIs. Hoppscotch is a tool that helps you build, test, document and share your APIs.",
|
||||||
"invite_your_friends": "Invite your friends",
|
"invite_your_friends": "Invite your friends",
|
||||||
"join_discord_community": "Join our Discord community",
|
"join_discord_community": "Join our Discord community",
|
||||||
"keyboard_shortcuts": "Keyboard shortcuts",
|
"keyboard_shortcuts": "Keyboard shortcuts",
|
||||||
@@ -94,11 +94,12 @@
|
|||||||
"collection": {
|
"collection": {
|
||||||
"created": "Collection created",
|
"created": "Collection created",
|
||||||
"edit": "Edit Collection",
|
"edit": "Edit Collection",
|
||||||
"invalid_name": "Please provide a valid name for the collection",
|
"invalid_name": "Please provide a name for the collection",
|
||||||
"my_collections": "My Collections",
|
"my_collections": "My Collections",
|
||||||
"name": "My New Collection",
|
"name": "My New Collection",
|
||||||
"new": "New Collection",
|
"new": "New Collection",
|
||||||
"save_as": "Save as",
|
"save_as": "Save as",
|
||||||
|
"renamed": "Collection renamed",
|
||||||
"select": "Select a Collection",
|
"select": "Select a Collection",
|
||||||
"select_location": "Select location",
|
"select_location": "Select location",
|
||||||
"select_team": "Select a team",
|
"select_team": "Select a team",
|
||||||
@@ -147,7 +148,7 @@
|
|||||||
"environment": {
|
"environment": {
|
||||||
"create_new": "Create new environment",
|
"create_new": "Create new environment",
|
||||||
"edit": "Edit Environment",
|
"edit": "Edit Environment",
|
||||||
"invalid_name": "Please provide a valid name for the environment",
|
"invalid_name": "Please provide a name for the environment",
|
||||||
"new": "New Environment",
|
"new": "New Environment",
|
||||||
"no_environment": "No environment",
|
"no_environment": "No environment",
|
||||||
"select": "Select environment",
|
"select": "Select environment",
|
||||||
@@ -175,6 +176,7 @@
|
|||||||
"folder": {
|
"folder": {
|
||||||
"created": "Folder created",
|
"created": "Folder created",
|
||||||
"edit": "Edit Folder",
|
"edit": "Edit Folder",
|
||||||
|
"invalid_name": "Please provide a name for the folder",
|
||||||
"new": "New Folder",
|
"new": "New Folder",
|
||||||
"renamed": "Folder renamed"
|
"renamed": "Folder renamed"
|
||||||
},
|
},
|
||||||
@@ -255,9 +257,12 @@
|
|||||||
"body": "Request Body",
|
"body": "Request Body",
|
||||||
"choose_language": "Choose language",
|
"choose_language": "Choose language",
|
||||||
"content_type": "Content Type",
|
"content_type": "Content Type",
|
||||||
|
"invalid_name": "Please provide a name for the request",
|
||||||
"copy_link": "Copy link",
|
"copy_link": "Copy link",
|
||||||
"duration": "Duration",
|
"duration": "Duration",
|
||||||
|
"added": "Request added",
|
||||||
"enter_curl": "Enter cURL",
|
"enter_curl": "Enter cURL",
|
||||||
|
"renamed": "Request renamed",
|
||||||
"generate_code": "Generate code",
|
"generate_code": "Generate code",
|
||||||
"generated_code": "Generated code",
|
"generated_code": "Generated code",
|
||||||
"header_list": "Header List",
|
"header_list": "Header List",
|
||||||
@@ -325,7 +330,6 @@
|
|||||||
"proxy_use_toggle": "Use the proxy middleware to send requests",
|
"proxy_use_toggle": "Use the proxy middleware to send requests",
|
||||||
"read_the": "Read the",
|
"read_the": "Read the",
|
||||||
"reset_default": "Reset to default",
|
"reset_default": "Reset to default",
|
||||||
"shortcuts_indicator": "Shortcuts indicator",
|
|
||||||
"sync": "Synchronise",
|
"sync": "Synchronise",
|
||||||
"sync_collections": "Collections",
|
"sync_collections": "Collections",
|
||||||
"sync_description": "These settings are synced to cloud.",
|
"sync_description": "These settings are synced to cloud.",
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ export type SettingsType = {
|
|||||||
THEME_COLOR: HoppAccentColor
|
THEME_COLOR: HoppAccentColor
|
||||||
BG_COLOR: HoppBgColor
|
BG_COLOR: HoppBgColor
|
||||||
TELEMETRY_ENABLED: boolean
|
TELEMETRY_ENABLED: boolean
|
||||||
SHORTCUT_INDICATOR: boolean
|
|
||||||
LEFT_SIDEBAR: boolean
|
LEFT_SIDEBAR: boolean
|
||||||
RIGHT_SIDEBAR: boolean
|
RIGHT_SIDEBAR: boolean
|
||||||
ZEN_MODE: boolean
|
ZEN_MODE: boolean
|
||||||
@@ -73,7 +72,6 @@ export const defaultSettings: SettingsType = {
|
|||||||
THEME_COLOR: "blue",
|
THEME_COLOR: "blue",
|
||||||
BG_COLOR: "system",
|
BG_COLOR: "system",
|
||||||
TELEMETRY_ENABLED: true,
|
TELEMETRY_ENABLED: true,
|
||||||
SHORTCUT_INDICATOR: false,
|
|
||||||
LEFT_SIDEBAR: true,
|
LEFT_SIDEBAR: true,
|
||||||
RIGHT_SIDEBAR: true,
|
RIGHT_SIDEBAR: true,
|
||||||
ZEN_MODE: false,
|
ZEN_MODE: false,
|
||||||
|
|||||||
@@ -119,7 +119,7 @@
|
|||||||
sticky
|
sticky
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<div
|
<span
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
:title="
|
:title="
|
||||||
!currentUser
|
!currentUser
|
||||||
@@ -140,7 +140,7 @@
|
|||||||
:label="$t('export.create_secret_gist')"
|
:label="$t('export.create_secret_gist')"
|
||||||
@click.native="createDocsGist"
|
@click.native="createDocsGist"
|
||||||
/>
|
/>
|
||||||
</div>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-for="(collection, index) in items"
|
v-for="(collection, index) in items"
|
||||||
@@ -236,7 +236,7 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
console.error(e)
|
console.error(e)
|
||||||
})
|
})
|
||||||
@@ -250,7 +250,7 @@ export default defineComponent({
|
|||||||
this.collectionJSON = target.result
|
this.collectionJSON = target.result
|
||||||
}
|
}
|
||||||
reader.readAsText(file)
|
reader.readAsText(file)
|
||||||
this.$toast.info(this.$t("state.file_imported"), {
|
this.$toast.success(this.$t("state.file_imported"), {
|
||||||
icon: "attach_file",
|
icon: "attach_file",
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
@@ -287,7 +287,7 @@ export default defineComponent({
|
|||||||
this.items = JSON.parse(this.collectionJSON)
|
this.items = JSON.parse(this.collectionJSON)
|
||||||
this.assignIDs(this.items, "", "#")
|
this.assignIDs(this.items, "", "#")
|
||||||
this.$toast.clear()
|
this.$toast.clear()
|
||||||
this.$toast.info(this.$t("state.docs_generated"), {
|
this.$toast.success(this.$t("state.docs_generated"), {
|
||||||
icon: "book",
|
icon: "book",
|
||||||
})
|
})
|
||||||
const docsMarkdown = Mustache.render(
|
const docsMarkdown = Mustache.render(
|
||||||
@@ -325,7 +325,7 @@ export default defineComponent({
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
this.$toast.error(this.$t("error.something_went_wrong"), {
|
this.$toast.error(this.$t("error.something_went_wrong"), {
|
||||||
icon: "error",
|
icon: "error_outline",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -185,19 +185,6 @@
|
|||||||
}}
|
}}
|
||||||
</SmartToggle>
|
</SmartToggle>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center">
|
|
||||||
<SmartToggle
|
|
||||||
:on="SHORTCUT_INDICATOR"
|
|
||||||
@change="toggleSetting('SHORTCUT_INDICATOR')"
|
|
||||||
>
|
|
||||||
{{ $t("settings.shortcuts_indicator") }}
|
|
||||||
{{
|
|
||||||
SHORTCUT_INDICATOR
|
|
||||||
? $t("state.enabled")
|
|
||||||
: $t("state.disabled")
|
|
||||||
}}
|
|
||||||
</SmartToggle>
|
|
||||||
</div>
|
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<SmartToggle
|
<SmartToggle
|
||||||
:on="LEFT_SIDEBAR"
|
:on="LEFT_SIDEBAR"
|
||||||
@@ -385,7 +372,6 @@ export default defineComponent({
|
|||||||
SYNC_ENVIRONMENTS: useSetting("syncEnvironments"),
|
SYNC_ENVIRONMENTS: useSetting("syncEnvironments"),
|
||||||
SYNC_HISTORY: useSetting("syncHistory"),
|
SYNC_HISTORY: useSetting("syncHistory"),
|
||||||
TELEMETRY_ENABLED: useSetting("TELEMETRY_ENABLED"),
|
TELEMETRY_ENABLED: useSetting("TELEMETRY_ENABLED"),
|
||||||
SHORTCUT_INDICATOR: useSetting("SHORTCUT_INDICATOR"),
|
|
||||||
LEFT_SIDEBAR: useSetting("LEFT_SIDEBAR"),
|
LEFT_SIDEBAR: useSetting("LEFT_SIDEBAR"),
|
||||||
ZEN_MODE: useSetting("ZEN_MODE"),
|
ZEN_MODE: useSetting("ZEN_MODE"),
|
||||||
currentUser: useReadonlyStream(currentUser$, currentUser$.value),
|
currentUser: useReadonlyStream(currentUser$, currentUser$.value),
|
||||||
@@ -464,7 +450,7 @@ export default defineComponent({
|
|||||||
resetProxy() {
|
resetProxy() {
|
||||||
applySetting("PROXY_URL", `https://proxy.hoppscotch.io/`)
|
applySetting("PROXY_URL", `https://proxy.hoppscotch.io/`)
|
||||||
this.clearIcon = "done"
|
this.clearIcon = "done"
|
||||||
this.$toast.info(this.$t("state.cleared").toString(), {
|
this.$toast.success(this.$t("state.cleared").toString(), {
|
||||||
icon: "clear_all",
|
icon: "clear_all",
|
||||||
})
|
})
|
||||||
setTimeout(() => (this.clearIcon = "clear_all"), 1000)
|
setTimeout(() => (this.clearIcon = "clear_all"), 1000)
|
||||||
|
|||||||
Reference in New Issue
Block a user