-
Alt+
X
-
+
+
+
+ {{ key }}
+
+
+ {{ shortcut.label }}
+
@@ -75,6 +44,56 @@ export default {
props: {
show: Boolean,
},
+ data() {
+ return {
+ shortcuts: [
+ {
+ keys: [this.getSpecialKey(), "G"],
+ label: this.$t("send_request"),
+ },
+ {
+ keys: [this.getSpecialKey(), "S"],
+ label: this.$t("save_to_collections"),
+ },
+ {
+ keys: [this.getSpecialKey(), "K"],
+ label: this.$t("copy_request_link"),
+ },
+ {
+ keys: [this.getSpecialKey(), "I"],
+ label: this.$t("reset_request"),
+ },
+ {
+ keys: ["Alt", "▲"],
+ label: this.$t("select_next_method"),
+ },
+ {
+ keys: ["Alt", "▼"],
+ label: this.$t("select_previous_method"),
+ },
+ {
+ keys: ["Alt", "G"],
+ label: this.$t("select_get_method"),
+ },
+ {
+ keys: ["Alt", "H"],
+ label: this.$t("select_head_method"),
+ },
+ {
+ keys: ["Alt", "P"],
+ label: this.$t("select_post_method"),
+ },
+ {
+ keys: ["Alt", "U"],
+ label: this.$t("select_put_method"),
+ },
+ {
+ keys: ["Alt", "X"],
+ label: this.$t("select_delete_method"),
+ },
+ ],
+ }
+ },
methods: {
getSpecialKey: getPlatformSpecialKey,
hideModal() {
@@ -83,14 +102,3 @@ export default {
},
}
-
-
diff --git a/components/button/Primary.vue b/components/button/Primary.vue
index 6d28c38f7..3c5236bac 100644
--- a/components/button/Primary.vue
+++ b/components/button/Primary.vue
@@ -15,7 +15,7 @@
:class="[
color
? `text-${color}-800 bg-${color}-200 hover:text-${color}-900 hover:bg-${color}-300 focus:text-${color}-900 focus:bg-${color}-300`
- : `text-white bg-accent hover:bg-accentDark focus:bg-accentDark`,
+ : `text-white dark:text-accentDark bg-accent hover:bg-accentDark focus:bg-accentDark`,
label ? 'px-4' : 'px-2',
rounded ? 'rounded-full' : 'rounded-lg',
{ 'opacity-50 cursor-not-allowed': disabled },
diff --git a/components/collections/Add.vue b/components/collections/Add.vue
index 545834098..836c556a0 100644
--- a/components/collections/Add.vue
+++ b/components/collections/Add.vue
@@ -2,26 +2,27 @@
{{ $t("new_collection") }}
-
-
-
+
-
-
+
+
+
+
-
-
+
diff --git a/components/collections/AddFolder.vue b/components/collections/AddFolder.vue
index d961cad96..fc187228b 100644
--- a/components/collections/AddFolder.vue
+++ b/components/collections/AddFolder.vue
@@ -7,21 +7,27 @@
diff --git a/components/collections/Edit.vue b/components/collections/Edit.vue
index ef45bb0cb..64fc8213f 100644
--- a/components/collections/Edit.vue
+++ b/components/collections/Edit.vue
@@ -7,21 +7,24 @@