From e86a17980bba5681ed8556745b4eebe1a1248eb7 Mon Sep 17 00:00:00 2001
From: Liyas Thomas
-[](https://travis-ci.com/hoppscotch/hoppscotch) [](https://github.com/hoppscotch/hoppscotch/releases/latest) [](https://hoppscotch.io) [](CONTRIBUTING.md) [](https://opencollective.com/hoppscotch) [](https://www.paypal.me/liyascthomas) [](https://t.me/hoppscotch_app) [](https://discord.gg/GAMWxmR) [](https://twitter.com/intent/tweet?url=https%3A%2F%2Fhoppscotch.io&text=%F0%9F%91%BD%20hoppscotch%20%E2%80%A2%20API%20request%20builder%20-%20Helps%20you%20create%20your%20requests%20faster%2C%20saving%20you%20precious%20time%20on%20your%20development&original_referer=https%3A%2F%2Ftwitter.com%2Fshare%3Ftext%3D%25F0%259F%2591%25BD%2520hoppscotch%2520%25E2%2580%25A2%2520API%2520request%2520builder%2520-%2520Helps%2520you%2520create%2520your%2520requests%2520faster%2C%2520saving%2520you%2520precious%2520time%2520on%2520your%2520development%26url%3Dhttps%3A%2F%2Fhoppscotch.io%26hashtags%3Dhoppscotch%26via%3Dliyasthomas&via=liyasthomas&hashtags=hoppscotch) +[](https://travis-ci.com/hoppscotch/hoppscotch) [](https://github.com/hoppscotch/hoppscotch/releases/latest) [](https://hoppscotch.io) [](CONTRIBUTING.md) [](https://opencollective.com/hoppscotch) [](https://www.paypal.me/liyascthomas) [](https://t.me/hoppscotch) [](https://discord.gg/GAMWxmR) [](https://twitter.com/intent/tweet?url=https%3A%2F%2Fhoppscotch.io&text=%F0%9F%91%BD%20hoppscotch%20%E2%80%A2%20API%20request%20builder%20-%20Helps%20you%20create%20your%20requests%20faster%2C%20saving%20you%20precious%20time%20on%20your%20development&original_referer=https%3A%2F%2Ftwitter.com%2Fshare%3Ftext%3D%25F0%259F%2591%25BD%2520hoppscotch%2520%25E2%2580%25A2%2520API%2520request%2520builder%2520-%2520Helps%2520you%2520create%2520your%2520requests%2520faster%2C%2520saving%2520you%2520precious%2520time%2520on%2520your%2520development%26url%3Dhttps%3A%2F%2Fhoppscotch.io%26hashtags%3Dhoppscotch%26via%3Dliyasthomas&via=liyasthomas&hashtags=hoppscotch)
diff --git a/components/collections/addCollection.vue b/components/collections/add-collection.vue
similarity index 96%
rename from components/collections/addCollection.vue
rename to components/collections/add-collection.vue
index 7a8df1b77..a55a3ab38 100644
--- a/components/collections/addCollection.vue
+++ b/components/collections/add-collection.vue
@@ -49,9 +49,6 @@ export default {
props: {
show: Boolean,
},
- components: {
- modal: () => import("~/components/ui/modal"),
- },
data() {
return {
name: undefined,
diff --git a/components/collections/addFolder.vue b/components/collections/add-folder.vue
similarity index 96%
rename from components/collections/addFolder.vue
rename to components/collections/add-folder.vue
index 08bb8822b..1d6c97bd6 100644
--- a/components/collections/addFolder.vue
+++ b/components/collections/add-folder.vue
@@ -51,9 +51,6 @@ export default {
collection: Object,
collectionIndex: Number,
},
- components: {
- modal: () => import("~/components/ui/modal"),
- },
data() {
return {
name: undefined,
diff --git a/components/collections/collection.vue b/components/collections/collection.vue
index 85165f0cc..2b80654a1 100644
--- a/components/collections/collection.vue
+++ b/components/collections/collection.vue
@@ -100,10 +100,6 @@ ul li {
import { fb } from "~/helpers/fb"
export default {
- components: {
- folder: () => import("./folder"),
- request: () => import("./request"),
- },
props: {
collectionIndex: Number,
collection: Object,
@@ -127,11 +123,11 @@ export default {
this.showChildren = !this.showChildren
},
removeCollection() {
- if (!confirm( this.$t("are_you_sure_remove_collection") )) return
+ if (!confirm(this.$t("are_you_sure_remove_collection"))) return
this.$store.commit("postwoman/removeCollection", {
collectionIndex: this.collectionIndex,
})
- this.$toast.error(this.$t("deleted"), {
+ this.$toast.error(this.$t("deleted"), {
icon: "delete",
})
this.syncCollections()
diff --git a/components/collections/editCollection.vue b/components/collections/edit-collection.vue
similarity index 96%
rename from components/collections/editCollection.vue
rename to components/collections/edit-collection.vue
index 00bfc6ac1..c0b3d9d61 100644
--- a/components/collections/editCollection.vue
+++ b/components/collections/edit-collection.vue
@@ -51,9 +51,6 @@ export default {
editingCollection: Object,
editingCollectionIndex: Number,
},
- components: {
- modal: () => import("~/components/ui/modal"),
- },
data() {
return {
name: undefined,
diff --git a/components/collections/editFolder.vue b/components/collections/edit-folder.vue
similarity index 96%
rename from components/collections/editFolder.vue
rename to components/collections/edit-folder.vue
index 7814a6fe6..5a90ed783 100644
--- a/components/collections/editFolder.vue
+++ b/components/collections/edit-folder.vue
@@ -48,9 +48,6 @@ export default {
folder: Object,
folderIndex: Number,
},
- components: {
- modal: () => import("~/components/ui/modal"),
- },
data() {
return {
name: undefined,
diff --git a/components/collections/editRequest.vue b/components/collections/edit-request.vue
similarity index 98%
rename from components/collections/editRequest.vue
rename to components/collections/edit-request.vue
index 39453d123..f261043e6 100644
--- a/components/collections/editRequest.vue
+++ b/components/collections/edit-request.vue
@@ -79,9 +79,6 @@ export default {
request: Object,
requestIndex: Number,
},
- components: {
- modal: () => import("~/components/ui/modal"),
- },
data() {
return {
requestUpdateData: {
diff --git a/components/collections/folder.vue b/components/collections/folder.vue
index 777d403d8..fc2239b22 100644
--- a/components/collections/folder.vue
+++ b/components/collections/folder.vue
@@ -80,9 +80,6 @@ export default {
folderIndex: Number,
doc: Boolean,
},
- components: {
- request: () => import("./request"),
- },
data() {
return {
showChildren: false,
@@ -103,13 +100,13 @@ export default {
this.$store.commit("postwoman/selectRequest", { request })
},
removeFolder() {
- if (!confirm( this.$t("are_you_sure_remove_folder"))) return
+ if (!confirm(this.$t("are_you_sure_remove_folder"))) return
this.$store.commit("postwoman/removeFolder", {
collectionIndex: this.collectionIndex,
folderIndex: this.folderIndex,
})
this.syncCollections()
- this.$toast.error(this.$t("deleted"), {
+ this.$toast.error(this.$t("deleted"), {
icon: "delete",
})
},
diff --git a/components/collections/importExportCollections.vue b/components/collections/import-export-collections.vue
similarity index 99%
rename from components/collections/importExportCollections.vue
rename to components/collections/import-export-collections.vue
index e1b625151..2c2c2a0e5 100644
--- a/components/collections/importExportCollections.vue
+++ b/components/collections/import-export-collections.vue
@@ -87,9 +87,6 @@ export default {
props: {
show: Boolean,
},
- components: {
- modal: () => import("~/components/ui/modal"),
- },
computed: {
collectionJson() {
return JSON.stringify(this.$store.state.postwoman.collections, null, 2)
diff --git a/components/collections/index.vue b/components/collections/index.vue
index aeb8e0ac0..29823457d 100644
--- a/components/collections/index.vue
+++ b/components/collections/index.vue
@@ -5,20 +5,20 @@ TODO: