mirror of
https://github.com/andwati/dokploy.git
synced 2026-12-04 08:48:45 +00:00
add mysql keyboard shortcuts
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
import { usePathname, useRouter, useSearchParams } from "next/navigation";
|
import { usePathname, useRouter, useSearchParams } from "next/navigation";
|
||||||
import { useCallback, useEffect, useState } from "react";
|
import { useCallback, useEffect, useState } from "react";
|
||||||
|
|
||||||
const PAGES = ["compose", "application", "postgres", "redis"] as const;
|
const PAGES = ["compose", "application", "postgres", "redis", "mysql"] as const;
|
||||||
type Page = typeof PAGES[number];
|
type Page = typeof PAGES[number];
|
||||||
|
|
||||||
type Shortcuts = Record<string, string>;
|
type Shortcuts = Record<string, string>;
|
||||||
@@ -57,6 +57,7 @@ const SHORTCUTS: ShortcutsDictionary = {
|
|||||||
compose: COMPOSE_SHORTCUTS,
|
compose: COMPOSE_SHORTCUTS,
|
||||||
postgres: POSTGRES_SHORTCUTS,
|
postgres: POSTGRES_SHORTCUTS,
|
||||||
redis: REDIS_SHORTCUTS,
|
redis: REDIS_SHORTCUTS,
|
||||||
|
mysql: POSTGRES_SHORTCUTS,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ import {
|
|||||||
TooltipProvider,
|
TooltipProvider,
|
||||||
TooltipTrigger,
|
TooltipTrigger,
|
||||||
} from "@/components/ui/tooltip";
|
} from "@/components/ui/tooltip";
|
||||||
|
import { UseKeyboardNav } from "@/hooks/use-keyboard-nav";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
import { appRouter } from "@/server/api/root";
|
import { appRouter } from "@/server/api/root";
|
||||||
import { api } from "@/utils/api";
|
import { api } from "@/utils/api";
|
||||||
@@ -62,6 +63,7 @@ const MySql = (
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="pb-10">
|
<div className="pb-10">
|
||||||
|
<UseKeyboardNav forPage="mysql" />
|
||||||
<BreadcrumbSidebar
|
<BreadcrumbSidebar
|
||||||
list={[
|
list={[
|
||||||
{ name: "Projects", href: "/dashboard/projects" },
|
{ name: "Projects", href: "/dashboard/projects" },
|
||||||
|
|||||||
Reference in New Issue
Block a user