Skip to content

Commit 957d1b5

Browse files
committed
add mysql keyboard shortcuts
1 parent ad359de commit 957d1b5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

apps/dokploy/hooks/use-keyboard-nav.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { usePathname, useRouter, useSearchParams } from "next/navigation";
44
import { useCallback, useEffect, useState } from "react";
55

6-
const PAGES = ["compose", "application", "postgres", "redis"] as const;
6+
const PAGES = ["compose", "application", "postgres", "redis", "mysql"] as const;
77
type Page = typeof PAGES[number];
88

99
type Shortcuts = Record<string, string>;
@@ -57,6 +57,7 @@ const SHORTCUTS: ShortcutsDictionary = {
5757
compose: COMPOSE_SHORTCUTS,
5858
postgres: POSTGRES_SHORTCUTS,
5959
redis: REDIS_SHORTCUTS,
60+
mysql: POSTGRES_SHORTCUTS,
6061
};
6162

6263
/**

apps/dokploy/pages/dashboard/project/[projectId]/services/mysql/[mysqlId].tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import {
2929
TooltipProvider,
3030
TooltipTrigger,
3131
} from "@/components/ui/tooltip";
32+
import { UseKeyboardNav } from "@/hooks/use-keyboard-nav";
3233
import { cn } from "@/lib/utils";
3334
import { appRouter } from "@/server/api/root";
3435
import { api } from "@/utils/api";
@@ -62,6 +63,7 @@ const MySql = (
6263

6364
return (
6465
<div className="pb-10">
66+
<UseKeyboardNav forPage="mysql" />
6567
<BreadcrumbSidebar
6668
list={[
6769
{ name: "Projects", href: "/dashboard/projects" },

0 commit comments

Comments
 (0)