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