Merge pull request '작동하지 않는 버튼 비활성화' (#261) from common/feat/dashboard-map into main

Reviewed-on: http://39.117.244.52:3000/kjs/ERP-node/pulls/261
This commit is contained in:
hyeonsu 2025-12-09 12:16:47 +09:00
commit a2e99b30e6
1 changed files with 185 additions and 189 deletions

View File

@ -1,6 +1,4 @@
import {
Users, Shield, Settings, BarChart3, Palette, Layout, Database, Package
} from "lucide-react";
import { Users, Shield, Settings, BarChart3, Palette, Layout, Database, Package } from "lucide-react";
import Link from "next/link";
import { GlobalFileViewer } from "@/components/GlobalFileViewer";
@ -9,208 +7,206 @@ import { GlobalFileViewer } from "@/components/GlobalFileViewer";
*/
export default function AdminPage() {
return (
<div className="min-h-screen bg-background">
<div className="w-full max-w-none px-4 pt-12 pb-16 space-y-16">
{/* 주요 관리 기능 */}
<div className="mx-auto max-w-7xl space-y-10">
<div className="text-center mb-8">
<h2 className="text-2xl font-bold text-foreground mb-2"> </h2>
<p className="text-muted-foreground"> </p>
</div>
<div className="grid gap-6 md:grid-cols-2 lg:grid-cols-3">
<Link href="/admin/userMng" className="block">
<div className="rounded-lg border bg-card p-6 shadow-sm transition-colors hover:bg-muted">
<div className="flex items-center gap-4">
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-primary/10">
<Users className="h-6 w-6 text-primary" />
</div>
<div>
<h3 className="font-semibold text-foreground"> </h3>
<p className="text-sm text-muted-foreground"> </p>
</div>
</div>
<div className="bg-background min-h-screen">
<div className="w-full max-w-none space-y-16 px-4 pt-12 pb-16">
{/* 주요 관리 기능 */}
<div className="mx-auto max-w-7xl space-y-10">
<div className="mb-8 text-center">
<h2 className="text-foreground mb-2 text-2xl font-bold"> </h2>
<p className="text-muted-foreground"> </p>
</div>
</Link>
<div className="grid gap-6 md:grid-cols-2 lg:grid-cols-3">
<Link href="/admin/userMng" className="block">
<div className="bg-card hover:bg-muted rounded-lg border p-6 shadow-sm transition-colors">
<div className="flex items-center gap-4">
<div className="bg-primary/10 flex h-12 w-12 items-center justify-center rounded-lg">
<Users className="text-primary h-6 w-6" />
</div>
<div>
<h3 className="text-foreground font-semibold"> </h3>
<p className="text-muted-foreground text-sm"> </p>
</div>
</div>
</div>
</Link>
<div className="rounded-lg border bg-card p-6 shadow-sm">
<div className="flex items-center gap-4">
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-success/10">
<Shield className="h-6 w-6 text-success" />
{/* <div className="bg-card rounded-lg border p-6 shadow-sm">
<div className="flex items-center gap-4">
<div className="bg-success/10 flex h-12 w-12 items-center justify-center rounded-lg">
<Shield className="text-success h-6 w-6" />
</div>
<div>
<h3 className="text-foreground font-semibold"> </h3>
<p className="text-muted-foreground text-sm"> </p>
</div>
</div>
</div>
<div>
<h3 className="font-semibold text-foreground"> </h3>
<p className="text-sm text-muted-foreground"> </p>
<div className="bg-card rounded-lg border p-6 shadow-sm">
<div className="flex items-center gap-4">
<div className="bg-primary/10 flex h-12 w-12 items-center justify-center rounded-lg">
<Settings className="text-primary h-6 w-6" />
</div>
<div>
<h3 className="text-foreground font-semibold"> </h3>
<p className="text-muted-foreground text-sm"> </p>
</div>
</div>
</div>
<div className="bg-card rounded-lg border p-6 shadow-sm">
<div className="flex items-center gap-4">
<div className="bg-warning/10 flex h-12 w-12 items-center justify-center rounded-lg">
<BarChart3 className="text-warning h-6 w-6" />
</div>
<div>
<h3 className="text-foreground font-semibold"> </h3>
<p className="text-muted-foreground text-sm"> </p>
</div>
</div>
</div> */}
<Link href="/admin/screenMng" className="block">
<div className="bg-card hover:bg-muted rounded-lg border p-6 shadow-sm transition-colors">
<div className="flex items-center gap-4">
<div className="bg-primary/10 flex h-12 w-12 items-center justify-center rounded-lg">
<Palette className="text-primary h-6 w-6" />
</div>
<div>
<h3 className="text-foreground font-semibold"></h3>
<p className="text-muted-foreground text-sm"> </p>
</div>
</div>
</div>
</Link>
</div>
</div>
<div className="rounded-lg border bg-card p-6 shadow-sm">
<div className="flex items-center gap-4">
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-primary/10">
<Settings className="h-6 w-6 text-primary" />
</div>
<div>
<h3 className="font-semibold text-foreground"> </h3>
<p className="text-sm text-muted-foreground"> </p>
</div>
{/* 표준 관리 섹션 */}
<div className="mx-auto max-w-7xl space-y-10">
<div className="mb-8 text-center">
<h2 className="text-foreground mb-2 text-2xl font-bold"> </h2>
<p className="text-muted-foreground"> </p>
</div>
<div className="grid gap-6 md:grid-cols-2 lg:grid-cols-4">
{/* <Link href="/admin/standards" className="block h-full">
<div className="bg-card hover:bg-muted h-full rounded-lg border p-6 shadow-sm transition-colors">
<div className="flex items-center gap-4">
<div className="bg-primary/10 flex h-12 w-12 items-center justify-center rounded-lg">
<Database className="text-primary h-6 w-6" />
</div>
<div>
<h3 className="text-foreground font-semibold"> </h3>
<p className="text-muted-foreground text-sm"> </p>
</div>
</div>
</div>
</Link>
<Link href="/admin/templates" className="block h-full">
<div className="bg-card hover:bg-muted h-full rounded-lg border p-6 shadow-sm transition-colors">
<div className="flex items-center gap-4">
<div className="bg-success/10 flex h-12 w-12 items-center justify-center rounded-lg">
<Layout className="text-success h-6 w-6" />
</div>
<div>
<h3 className="text-foreground font-semibold">릿 </h3>
<p className="text-muted-foreground text-sm"> 릿 </p>
</div>
</div>
</div>
</Link> */}
<Link href="/admin/tableMng" className="block h-full">
<div className="bg-card hover:bg-muted h-full rounded-lg border p-6 shadow-sm transition-colors">
<div className="flex items-center gap-4">
<div className="bg-primary/10 flex h-12 w-12 items-center justify-center rounded-lg">
<Database className="text-primary h-6 w-6" />
</div>
<div>
<h3 className="text-foreground font-semibold"> </h3>
<p className="text-muted-foreground text-sm"> </p>
</div>
</div>
</div>
</Link>
{/* <Link href="/admin/components" className="block h-full">
<div className="bg-card hover:bg-muted h-full rounded-lg border p-6 shadow-sm transition-colors">
<div className="flex items-center gap-4">
<div className="bg-primary/10 flex h-12 w-12 items-center justify-center rounded-lg">
<Package className="text-primary h-6 w-6" />
</div>
<div>
<h3 className="text-foreground font-semibold"> </h3>
<p className="text-muted-foreground text-sm"> </p>
</div>
</div>
</div>
</Link> */}
</div>
</div>
<div className="rounded-lg border bg-card p-6 shadow-sm">
<div className="flex items-center gap-4">
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-warning/10">
<BarChart3 className="h-6 w-6 text-warning" />
</div>
<div>
<h3 className="font-semibold text-foreground"> </h3>
<p className="text-sm text-muted-foreground"> </p>
</div>
{/* 빠른 액세스 */}
<div className="mx-auto max-w-7xl space-y-10">
<div className="mb-8 text-center">
<h2 className="text-foreground mb-2 text-2xl font-bold"> </h2>
<p className="text-muted-foreground"> </p>
</div>
<div className="grid gap-6 md:grid-cols-3">
<Link href="/admin/menu" className="block">
<div className="bg-card hover:bg-muted rounded-lg border p-6 shadow-sm transition-colors">
<div className="flex items-center gap-4">
<div className="bg-primary/10 flex h-12 w-12 items-center justify-center rounded-lg">
<Layout className="text-primary h-6 w-6" />
</div>
<div>
<h3 className="text-foreground font-semibold"> </h3>
<p className="text-muted-foreground text-sm"> </p>
</div>
</div>
</div>
</Link>
<Link href="/admin/external-connections" className="block">
<div className="bg-card hover:bg-muted rounded-lg border p-6 shadow-sm transition-colors">
<div className="flex items-center gap-4">
<div className="bg-success/10 flex h-12 w-12 items-center justify-center rounded-lg">
<Database className="text-success h-6 w-6" />
</div>
<div>
<h3 className="text-foreground font-semibold"> </h3>
<p className="text-muted-foreground text-sm"> </p>
</div>
</div>
</div>
</Link>
<Link href="/admin/commonCode" className="block">
<div className="bg-card hover:bg-muted rounded-lg border p-6 shadow-sm transition-colors">
<div className="flex items-center gap-4">
<div className="bg-primary/10 flex h-12 w-12 items-center justify-center rounded-lg">
<Settings className="text-primary h-6 w-6" />
</div>
<div>
<h3 className="text-foreground font-semibold"> </h3>
<p className="text-muted-foreground text-sm"> </p>
</div>
</div>
</div>
</Link>
</div>
</div>
<Link href="/admin/screenMng" className="block">
<div className="rounded-lg border bg-card p-6 shadow-sm transition-colors hover:bg-muted">
<div className="flex items-center gap-4">
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-primary/10">
<Palette className="h-6 w-6 text-primary" />
</div>
<div>
<h3 className="font-semibold text-foreground"></h3>
<p className="text-sm text-muted-foreground"> </p>
</div>
</div>
{/* 전역 파일 관리 */}
<div className="mx-auto max-w-7xl space-y-6">
<div className="mb-6 text-center">
<h2 className="text-foreground mb-2 text-2xl font-bold"> </h2>
<p className="text-muted-foreground"> </p>
</div>
</Link>
<GlobalFileViewer />
</div>
</div>
{/* 표준 관리 섹션 */}
<div className="mx-auto max-w-7xl space-y-10">
<div className="text-center mb-8">
<h2 className="text-2xl font-bold text-foreground mb-2"> </h2>
<p className="text-muted-foreground"> </p>
</div>
<div className="grid gap-6 md:grid-cols-2 lg:grid-cols-4">
<Link href="/admin/standards" className="block h-full">
<div className="rounded-lg border bg-card p-6 shadow-sm transition-colors hover:bg-muted h-full">
<div className="flex items-center gap-4">
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-primary/10">
<Database className="h-6 w-6 text-primary" />
</div>
<div>
<h3 className="font-semibold text-foreground"> </h3>
<p className="text-sm text-muted-foreground"> </p>
</div>
</div>
</div>
</Link>
<Link href="/admin/templates" className="block h-full">
<div className="rounded-lg border bg-card p-6 shadow-sm transition-colors hover:bg-muted h-full">
<div className="flex items-center gap-4">
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-success/10">
<Layout className="h-6 w-6 text-success" />
</div>
<div>
<h3 className="font-semibold text-foreground">릿 </h3>
<p className="text-sm text-muted-foreground"> 릿 </p>
</div>
</div>
</div>
</Link>
<Link href="/admin/tableMng" className="block h-full">
<div className="rounded-lg border bg-card p-6 shadow-sm transition-colors hover:bg-muted h-full">
<div className="flex items-center gap-4">
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-primary/10">
<Database className="h-6 w-6 text-primary" />
</div>
<div>
<h3 className="font-semibold text-foreground"> </h3>
<p className="text-sm text-muted-foreground"> </p>
</div>
</div>
</div>
</Link>
<Link href="/admin/components" className="block h-full">
<div className="rounded-lg border bg-card p-6 shadow-sm transition-colors hover:bg-muted h-full">
<div className="flex items-center gap-4">
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-primary/10">
<Package className="h-6 w-6 text-primary" />
</div>
<div>
<h3 className="font-semibold text-foreground"> </h3>
<p className="text-sm text-muted-foreground"> </p>
</div>
</div>
</div>
</Link>
</div>
</div>
{/* 빠른 액세스 */}
<div className="mx-auto max-w-7xl space-y-10">
<div className="text-center mb-8">
<h2 className="text-2xl font-bold text-foreground mb-2"> </h2>
<p className="text-muted-foreground"> </p>
</div>
<div className="grid gap-6 md:grid-cols-3">
<Link href="/admin/menu" className="block">
<div className="rounded-lg border bg-card p-6 shadow-sm transition-colors hover:bg-muted">
<div className="flex items-center gap-4">
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-primary/10">
<Layout className="h-6 w-6 text-primary" />
</div>
<div>
<h3 className="font-semibold text-foreground"> </h3>
<p className="text-sm text-muted-foreground"> </p>
</div>
</div>
</div>
</Link>
<Link href="/admin/external-connections" className="block">
<div className="rounded-lg border bg-card p-6 shadow-sm transition-colors hover:bg-muted">
<div className="flex items-center gap-4">
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-success/10">
<Database className="h-6 w-6 text-success" />
</div>
<div>
<h3 className="font-semibold text-foreground"> </h3>
<p className="text-sm text-muted-foreground"> </p>
</div>
</div>
</div>
</Link>
<Link href="/admin/commonCode" className="block">
<div className="rounded-lg border bg-card p-6 shadow-sm transition-colors hover:bg-muted">
<div className="flex items-center gap-4">
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-primary/10">
<Settings className="h-6 w-6 text-primary" />
</div>
<div>
<h3 className="font-semibold text-foreground"> </h3>
<p className="text-sm text-muted-foreground"> </p>
</div>
</div>
</div>
</Link>
</div>
</div>
{/* 전역 파일 관리 */}
<div className="mx-auto max-w-7xl space-y-6">
<div className="text-center mb-6">
<h2 className="text-2xl font-bold text-foreground mb-2"> </h2>
<p className="text-muted-foreground"> </p>
</div>
<GlobalFileViewer />
</div>
</div>
</div>
);
}