chore: updated keyboard shortcuts

This commit is contained in:
liyasthomas
2021-12-13 08:53:12 +05:30
parent 5a9d08a3f1
commit e31dc6e08d
34 changed files with 53 additions and 2 deletions

View File

@@ -27,6 +27,7 @@ export type HoppAction =
| "navigation.jump.realtime" // Jump to realtime page | "navigation.jump.realtime" // Jump to realtime page
| "navigation.jump.documentation" // Jump to documentation page | "navigation.jump.documentation" // Jump to documentation page
| "navigation.jump.settings" // Jump to settings page | "navigation.jump.settings" // Jump to settings page
| "navigation.jump.profile" // Jump to profile page
type BoundActionList = { type BoundActionList = {
// eslint-disable-next-line no-unused-vars // eslint-disable-next-line no-unused-vars

View File

@@ -102,6 +102,10 @@ export default [
keys: [getPlatformAlternateKey(), "S"], keys: [getPlatformAlternateKey(), "S"],
label: "shortcut.navigation.settings", label: "shortcut.navigation.settings",
}, },
{
keys: [getPlatformAlternateKey(), "P"],
label: "shortcut.navigation.profile",
},
], ],
}, },
{ {
@@ -166,6 +170,12 @@ export const spotlight = [
action: "navigation.jump.settings", action: "navigation.jump.settings",
icon: "arrow-right", icon: "arrow-right",
}, },
{
keys: [getPlatformAlternateKey(), "P"],
label: "shortcut.navigation.profile",
action: "navigation.jump.profile",
icon: "arrow-right",
},
], ],
}, },
{ {
@@ -256,6 +266,13 @@ export const fuse = [
icon: "arrow-right", icon: "arrow-right",
tags: ["settings", "jump", "page", "navigation", "account", "theme", "go"], tags: ["settings", "jump", "page", "navigation", "account", "theme", "go"],
}, },
{
keys: [getPlatformAlternateKey(), "P"],
label: "shortcut.navigation.profile",
action: "navigation.jump.profile",
icon: "arrow-right",
tags: ["profile", "jump", "page", "navigation", "account", "theme", "go"],
},
{ {
keys: [getPlatformSpecialKey(), "M"], keys: [getPlatformSpecialKey(), "M"],
label: "shortcut.miscellaneous.invite", label: "shortcut.miscellaneous.invite",

View File

@@ -124,6 +124,9 @@ function defineJumpActions() {
defineActionHandler("navigation.jump.settings", () => { defineActionHandler("navigation.jump.settings", () => {
router.push({ path: localePath("/settings") }) router.push({ path: localePath("/settings") })
}) })
defineActionHandler("navigation.jump.profile", () => {
router.push({ path: localePath("/profile") })
})
} }
export default defineComponent({ export default defineComponent({

View File

@@ -400,6 +400,7 @@
"documentation": "Gaan na die dokumentasiebladsy", "documentation": "Gaan na die dokumentasiebladsy",
"forward": "Gaan vorentoe na die volgende bladsy", "forward": "Gaan vorentoe na die volgende bladsy",
"graphql": "Gaan na die GraphQL -bladsy", "graphql": "Gaan na die GraphQL -bladsy",
"profile": "Go to Profile page",
"realtime": "Gaan na Realtime -bladsy", "realtime": "Gaan na Realtime -bladsy",
"rest": "Gaan na die REST -bladsy", "rest": "Gaan na die REST -bladsy",
"settings": "Gaan na die instellingsbladsy", "settings": "Gaan na die instellingsbladsy",

View File

@@ -400,6 +400,7 @@
"documentation": "انتقل إلى صفحة التوثيق", "documentation": "انتقل إلى صفحة التوثيق",
"forward": "انتقل إلى الصفحة التالية", "forward": "انتقل إلى الصفحة التالية",
"graphql": "انتقل إلى صفحة GraphQL", "graphql": "انتقل إلى صفحة GraphQL",
"profile": "Go to Profile page",
"realtime": "انتقل إلى صفحة الوقت الفعلي", "realtime": "انتقل إلى صفحة الوقت الفعلي",
"rest": "انتقل إلى صفحة REST", "rest": "انتقل إلى صفحة REST",
"settings": "انتقل إلى صفحة الإعدادات", "settings": "انتقل إلى صفحة الإعدادات",

View File

@@ -400,6 +400,7 @@
"documentation": "Aneu a la pàgina Documentació", "documentation": "Aneu a la pàgina Documentació",
"forward": "Aneu a la pàgina següent", "forward": "Aneu a la pàgina següent",
"graphql": "Aneu a la pàgina GraphQL", "graphql": "Aneu a la pàgina GraphQL",
"profile": "Go to Profile page",
"realtime": "Aneu a la pàgina en temps real", "realtime": "Aneu a la pàgina en temps real",
"rest": "Aneu a la pàgina REST", "rest": "Aneu a la pàgina REST",
"settings": "Aneu a la pàgina Configuració", "settings": "Aneu a la pàgina Configuració",

View File

@@ -400,6 +400,7 @@
"documentation": "前往文档页面", "documentation": "前往文档页面",
"forward": "前往下一页面", "forward": "前往下一页面",
"graphql": "前往 GraphQL 页面", "graphql": "前往 GraphQL 页面",
"profile": "Go to Profile page",
"realtime": "前往实时页面", "realtime": "前往实时页面",
"rest": "前往 REST 页面", "rest": "前往 REST 页面",
"settings": "前往设置页面", "settings": "前往设置页面",

View File

@@ -400,6 +400,7 @@
"documentation": "Přejděte na stránku dokumentace", "documentation": "Přejděte na stránku dokumentace",
"forward": "Přejít na další stránku", "forward": "Přejít na další stránku",
"graphql": "Přejděte na stránku GraphQL", "graphql": "Přejděte na stránku GraphQL",
"profile": "Go to Profile page",
"realtime": "Přejít na stránku v reálném čase", "realtime": "Přejít na stránku v reálném čase",
"rest": "Přejděte na stránku REST", "rest": "Přejděte na stránku REST",
"settings": "Přejděte na stránku Nastavení", "settings": "Přejděte na stránku Nastavení",

View File

@@ -400,6 +400,7 @@
"documentation": "Gå til siden Dokumentation", "documentation": "Gå til siden Dokumentation",
"forward": "Gå videre til næste side", "forward": "Gå videre til næste side",
"graphql": "Gå til GraphQL -siden", "graphql": "Gå til GraphQL -siden",
"profile": "Go to Profile page",
"realtime": "Gå til siden Realtid", "realtime": "Gå til siden Realtid",
"rest": "Gå til REST side", "rest": "Gå til REST side",
"settings": "Gå til siden Indstillinger", "settings": "Gå til siden Indstillinger",

View File

@@ -400,6 +400,7 @@
"documentation": "Zur Dokumentationsseite gehen", "documentation": "Zur Dokumentationsseite gehen",
"forward": "Weiter zur nächsten Seite", "forward": "Weiter zur nächsten Seite",
"graphql": "Gehen Sie zur GraphQL-Seite", "graphql": "Gehen Sie zur GraphQL-Seite",
"profile": "Go to Profile page",
"realtime": "Gehen Sie zur Echtzeit-Seite", "realtime": "Gehen Sie zur Echtzeit-Seite",
"rest": "Zur REST-Seite gehen", "rest": "Zur REST-Seite gehen",
"settings": "Gehen Sie zur Seite Einstellungen", "settings": "Gehen Sie zur Seite Einstellungen",

View File

@@ -400,6 +400,7 @@
"documentation": "Μεταβείτε στη σελίδα Τεκμηρίωση", "documentation": "Μεταβείτε στη σελίδα Τεκμηρίωση",
"forward": "Προχωρήστε στην επόμενη σελίδα", "forward": "Προχωρήστε στην επόμενη σελίδα",
"graphql": "Μεταβείτε στη σελίδα GraphQL", "graphql": "Μεταβείτε στη σελίδα GraphQL",
"profile": "Go to Profile page",
"realtime": "Μεταβείτε στη σελίδα σε πραγματικό χρόνο", "realtime": "Μεταβείτε στη σελίδα σε πραγματικό χρόνο",
"rest": "Μεταβείτε στη σελίδα REST", "rest": "Μεταβείτε στη σελίδα REST",
"settings": "Μεταβείτε στη σελίδα Ρυθμίσεις", "settings": "Μεταβείτε στη σελίδα Ρυθμίσεις",

View File

@@ -400,6 +400,7 @@
"documentation": "Go to Documentation page", "documentation": "Go to Documentation page",
"forward": "Go forward to next page", "forward": "Go forward to next page",
"graphql": "Go to GraphQL page", "graphql": "Go to GraphQL page",
"profile": "Go to Profile page",
"realtime": "Go to Realtime page", "realtime": "Go to Realtime page",
"rest": "Go to REST page", "rest": "Go to REST page",
"settings": "Go to Settings page", "settings": "Go to Settings page",

View File

@@ -400,6 +400,7 @@
"documentation": "Ir a la página de documentación", "documentation": "Ir a la página de documentación",
"forward": "Avanzar a la siguiente página", "forward": "Avanzar a la siguiente página",
"graphql": "Ir a la página GraphQL", "graphql": "Ir a la página GraphQL",
"profile": "Go to Profile page",
"realtime": "Ir a la página en tiempo real", "realtime": "Ir a la página en tiempo real",
"rest": "Ir a la página REST", "rest": "Ir a la página REST",
"settings": "Ir a la página de configuración", "settings": "Ir a la página de configuración",

View File

@@ -400,6 +400,7 @@
"documentation": "Siirry dokumentaatiosivulle", "documentation": "Siirry dokumentaatiosivulle",
"forward": "Siirry seuraavalle sivulle", "forward": "Siirry seuraavalle sivulle",
"graphql": "Siirry GraphQL -sivulle", "graphql": "Siirry GraphQL -sivulle",
"profile": "Go to Profile page",
"realtime": "Siirry Realtime -sivulle", "realtime": "Siirry Realtime -sivulle",
"rest": "Siirry REST -sivulle", "rest": "Siirry REST -sivulle",
"settings": "Siirry Asetukset -sivulle", "settings": "Siirry Asetukset -sivulle",

View File

@@ -400,6 +400,7 @@
"documentation": "Aller à la page Documentation", "documentation": "Aller à la page Documentation",
"forward": "Aller à la page suivante", "forward": "Aller à la page suivante",
"graphql": "Aller à la page GraphQL", "graphql": "Aller à la page GraphQL",
"profile": "Go to Profile page",
"realtime": "Aller à la page Temps réel", "realtime": "Aller à la page Temps réel",
"rest": "Aller à la page REST", "rest": "Aller à la page REST",
"settings": "Aller à la page Paramètres", "settings": "Aller à la page Paramètres",

View File

@@ -400,6 +400,7 @@
"documentation": "עבור לדף תיעוד", "documentation": "עבור לדף תיעוד",
"forward": "המשך לדף הבא", "forward": "המשך לדף הבא",
"graphql": "עבור לדף GraphQL", "graphql": "עבור לדף GraphQL",
"profile": "Go to Profile page",
"realtime": "עבור לדף בזמן אמת", "realtime": "עבור לדף בזמן אמת",
"rest": "עבור לדף REST", "rest": "עבור לדף REST",
"settings": "עבור אל דף ההגדרות", "settings": "עבור אל דף ההגדרות",

View File

@@ -400,6 +400,7 @@
"documentation": "Lépjen a Dokumentáció oldalra", "documentation": "Lépjen a Dokumentáció oldalra",
"forward": "Ugrás a következő oldalra", "forward": "Ugrás a következő oldalra",
"graphql": "Lépjen a GraphQL oldalra", "graphql": "Lépjen a GraphQL oldalra",
"profile": "Go to Profile page",
"realtime": "Lépjen a Valós idejű oldalra", "realtime": "Lépjen a Valós idejű oldalra",
"rest": "Lépjen a REST oldalra", "rest": "Lépjen a REST oldalra",
"settings": "Lépjen a Beállítások oldalra", "settings": "Lépjen a Beállítások oldalra",

View File

@@ -400,6 +400,7 @@
"documentation": "Vai alla pagina della documentazione", "documentation": "Vai alla pagina della documentazione",
"forward": "Vai alla pagina successiva", "forward": "Vai alla pagina successiva",
"graphql": "Vai alla pagina GraphQL", "graphql": "Vai alla pagina GraphQL",
"profile": "Go to Profile page",
"realtime": "Vai alla pagina Real Time", "realtime": "Vai alla pagina Real Time",
"rest": "Vai alla pagina REST", "rest": "Vai alla pagina REST",
"settings": "Vai alla pagina Impostazioni", "settings": "Vai alla pagina Impostazioni",

View File

@@ -400,6 +400,7 @@
"documentation": "ドキュメントページに移動", "documentation": "ドキュメントページに移動",
"forward": "次のページに進む", "forward": "次のページに進む",
"graphql": "GraphQLページに移動します", "graphql": "GraphQLページに移動します",
"profile": "Go to Profile page",
"realtime": "リアルタイムページに移動", "realtime": "リアルタイムページに移動",
"rest": "RESTページに移動します", "rest": "RESTページに移動します",
"settings": "設定ページに移動します", "settings": "設定ページに移動します",

View File

@@ -400,6 +400,7 @@
"documentation": "문서 페이지로 이동", "documentation": "문서 페이지로 이동",
"forward": "다음 페이지로 이동", "forward": "다음 페이지로 이동",
"graphql": "GraphQL 페이지로 이동", "graphql": "GraphQL 페이지로 이동",
"profile": "Go to Profile page",
"realtime": "실시간 페이지로 이동", "realtime": "실시간 페이지로 이동",
"rest": "REST 페이지로 이동", "rest": "REST 페이지로 이동",
"settings": "설정 페이지로 이동", "settings": "설정 페이지로 이동",

View File

@@ -400,6 +400,7 @@
"documentation": "Ga naar de documentatiepagina", "documentation": "Ga naar de documentatiepagina",
"forward": "Ga verder naar de volgende pagina", "forward": "Ga verder naar de volgende pagina",
"graphql": "Ga naar de GraphQL-pagina", "graphql": "Ga naar de GraphQL-pagina",
"profile": "Go to Profile page",
"realtime": "Ga naar de Realtime-pagina", "realtime": "Ga naar de Realtime-pagina",
"rest": "Ga naar de REST-pagina", "rest": "Ga naar de REST-pagina",
"settings": "Ga naar de pagina Instellingen", "settings": "Ga naar de pagina Instellingen",

View File

@@ -400,6 +400,7 @@
"documentation": "Gå til Dokumentasjonsside", "documentation": "Gå til Dokumentasjonsside",
"forward": "Gå videre til neste side", "forward": "Gå videre til neste side",
"graphql": "Gå til GraphQL-siden", "graphql": "Gå til GraphQL-siden",
"profile": "Go to Profile page",
"realtime": "Gå til sanntid-siden", "realtime": "Gå til sanntid-siden",
"rest": "Gå til REST-siden", "rest": "Gå til REST-siden",
"settings": "Gå til Innstillinger-siden", "settings": "Gå til Innstillinger-siden",

View File

@@ -400,6 +400,7 @@
"documentation": "Przejdź do strony dokumentacji", "documentation": "Przejdź do strony dokumentacji",
"forward": "Przejdź do następnej strony", "forward": "Przejdź do następnej strony",
"graphql": "Przejdź do strony GraphQL", "graphql": "Przejdź do strony GraphQL",
"profile": "Go to Profile page",
"realtime": "Przejdź do strony Realtime", "realtime": "Przejdź do strony Realtime",
"rest": "Przejdź do strony REST", "rest": "Przejdź do strony REST",
"settings": "Przejdź do strony Ustawienia", "settings": "Przejdź do strony Ustawienia",

View File

@@ -400,6 +400,7 @@
"documentation": "Vá para a página de documentação", "documentation": "Vá para a página de documentação",
"forward": "Avance para a próxima página", "forward": "Avance para a próxima página",
"graphql": "Vá para a página GraphQL", "graphql": "Vá para a página GraphQL",
"profile": "Go to Profile page",
"realtime": "Vá para a página em tempo real", "realtime": "Vá para a página em tempo real",
"rest": "Vá para a página REST", "rest": "Vá para a página REST",
"settings": "Vá para a página de configurações", "settings": "Vá para a página de configurações",

View File

@@ -400,6 +400,7 @@
"documentation": "Vá para a página de documentação", "documentation": "Vá para a página de documentação",
"forward": "Avance para a próxima página", "forward": "Avance para a próxima página",
"graphql": "Vá para a página GraphQL", "graphql": "Vá para a página GraphQL",
"profile": "Go to Profile page",
"realtime": "Vá para a página em tempo real", "realtime": "Vá para a página em tempo real",
"rest": "Vá para a página REST", "rest": "Vá para a página REST",
"settings": "Vá para a página de configurações", "settings": "Vá para a página de configurações",

View File

@@ -400,6 +400,7 @@
"documentation": "Accesați pagina Documentație", "documentation": "Accesați pagina Documentație",
"forward": "Mergeți la pagina următoare", "forward": "Mergeți la pagina următoare",
"graphql": "Accesați pagina GraphQL", "graphql": "Accesați pagina GraphQL",
"profile": "Go to Profile page",
"realtime": "Accesați pagina în timp real", "realtime": "Accesați pagina în timp real",
"rest": "Accesați pagina REST", "rest": "Accesați pagina REST",
"settings": "Accesați pagina Setări", "settings": "Accesați pagina Setări",

View File

@@ -400,6 +400,7 @@
"documentation": "Перейти на страницу документации", "documentation": "Перейти на страницу документации",
"forward": "Перейти на следующую страницу", "forward": "Перейти на следующую страницу",
"graphql": "Перейти на страницу GraphQL", "graphql": "Перейти на страницу GraphQL",
"profile": "Go to Profile page",
"realtime": "Перейти на страницу в реальном времени", "realtime": "Перейти на страницу в реальном времени",
"rest": "Перейти на страницу REST", "rest": "Перейти на страницу REST",
"settings": "Перейти на страницу настроек", "settings": "Перейти на страницу настроек",

View File

@@ -400,6 +400,7 @@
"documentation": "Идите на страницу Документација", "documentation": "Идите на страницу Документација",
"forward": "Идите на следећу страницу", "forward": "Идите на следећу страницу",
"graphql": "Идите на страницу ГрапхКЛ", "graphql": "Идите на страницу ГрапхКЛ",
"profile": "Go to Profile page",
"realtime": "Идите на страницу у реалном времену", "realtime": "Идите на страницу у реалном времену",
"rest": "Идите на страницу REST", "rest": "Идите на страницу REST",
"settings": "Идите на страницу Подешавања", "settings": "Идите на страницу Подешавања",

View File

@@ -397,6 +397,7 @@
"documentation": "Gå till dokumentationssidan", "documentation": "Gå till dokumentationssidan",
"forward": "Gå vidare till nästa sida", "forward": "Gå vidare till nästa sida",
"graphql": "Gå till GraphQL -sidan", "graphql": "Gå till GraphQL -sidan",
"profile": "Go to Profile page",
"realtime": "Gå till realtidssidan", "realtime": "Gå till realtidssidan",
"rest": "Gå till REST -sidan", "rest": "Gå till REST -sidan",
"settings": "Gå till sidan Inställningar", "settings": "Gå till sidan Inställningar",

View File

@@ -400,6 +400,7 @@
"documentation": "Belgeler sayfasına git", "documentation": "Belgeler sayfasına git",
"forward": "Sonraki sayfaya ilerle", "forward": "Sonraki sayfaya ilerle",
"graphql": "GraphQL sayfasına git", "graphql": "GraphQL sayfasına git",
"profile": "Go to Profile page",
"realtime": "Gerçek Zamanlı sayfasına git", "realtime": "Gerçek Zamanlı sayfasına git",
"rest": "REST sayfasına git", "rest": "REST sayfasına git",
"settings": "Ayarlar sayfasına git", "settings": "Ayarlar sayfasına git",

View File

@@ -397,6 +397,7 @@
"documentation": "前往文件頁面", "documentation": "前往文件頁面",
"forward": "前往下一頁面", "forward": "前往下一頁面",
"graphql": "前往 GraphQL 頁面", "graphql": "前往 GraphQL 頁面",
"profile": "Go to Profile page",
"realtime": "前往實時頁面", "realtime": "前往實時頁面",
"rest": "前往 REST 頁面", "rest": "前往 REST 頁面",
"settings": "前往設定頁面", "settings": "前往設定頁面",

View File

@@ -400,6 +400,7 @@
"documentation": "Перейдіть на сторінку Документація", "documentation": "Перейдіть на сторінку Документація",
"forward": "Перейти до наступної сторінки", "forward": "Перейти до наступної сторінки",
"graphql": "Перейдіть на сторінку GraphQL", "graphql": "Перейдіть на сторінку GraphQL",
"profile": "Go to Profile page",
"realtime": "Перейдіть на сторінку реального часу", "realtime": "Перейдіть на сторінку реального часу",
"rest": "Перейдіть на сторінку REST", "rest": "Перейдіть на сторінку REST",
"settings": "Перейдіть на сторінку Налаштування", "settings": "Перейдіть на сторінку Налаштування",

View File

@@ -400,6 +400,7 @@
"documentation": "Đi tới trang Tài liệu", "documentation": "Đi tới trang Tài liệu",
"forward": "Chuyển tới trang tiếp theo", "forward": "Chuyển tới trang tiếp theo",
"graphql": "Đi tới trang GraphQL", "graphql": "Đi tới trang GraphQL",
"profile": "Go to Profile page",
"realtime": "Chuyển đến trang Thời gian thực", "realtime": "Chuyển đến trang Thời gian thực",
"rest": "Đi tới trang REST", "rest": "Đi tới trang REST",
"settings": "Đi tới trang Cài đặt", "settings": "Đi tới trang Cài đặt",

View File

@@ -11,7 +11,7 @@ type GQLSession = {
export const defaultGQLSession: GQLSession = { export const defaultGQLSession: GQLSession = {
request: makeGQLRequest({ request: makeGQLRequest({
name: "", name: "Untitled request",
url: "https://echo.hoppscotch.io/graphql", url: "https://echo.hoppscotch.io/graphql",
headers: [], headers: [],
variables: `{ "id": "1" }`, variables: `{ "id": "1" }`,
@@ -213,7 +213,7 @@ export function setGQLSession(session: GQLSession) {
} }
export function useGQLRequestName() { export function useGQLRequestName() {
return useStream(gqlName$, "", (newName) => { return useStream(gqlName$, gqlSessionStore.value.request.name, (newName) => {
gqlSessionStore.dispatch({ gqlSessionStore.dispatch({
dispatcher: "setName", dispatcher: "setName",
payload: { newName }, payload: { newName },