커밋 메세지 메뉴별 대중소 정리
This commit is contained in:
parent
00376202fd
commit
87caa4b3ca
|
|
@ -51,7 +51,7 @@ export default function DraftsPage() {
|
||||||
content: draft.htmlContent,
|
content: draft.htmlContent,
|
||||||
accountId: draft.accountId,
|
accountId: draft.accountId,
|
||||||
});
|
});
|
||||||
router.push(`/admin/mail/send?${params.toString()}`);
|
router.push(`/admin/automaticMng/mail/send?${params.toString()}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleDelete = async (id: string) => {
|
const handleDelete = async (id: string) => {
|
||||||
|
|
@ -1056,7 +1056,7 @@ ${data.originalBody}`;
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="sm"
|
size="sm"
|
||||||
onClick={() => router.push(`/admin/mail/templates`)}
|
onClick={() => router.push(`/admin/automaticMng/mail/templates`)}
|
||||||
className="flex items-center gap-1"
|
className="flex items-center gap-1"
|
||||||
>
|
>
|
||||||
<Settings className="w-3 h-3" />
|
<Settings className="w-3 h-3" />
|
||||||
|
|
@ -336,7 +336,7 @@ export default function SentMailPage() {
|
||||||
<RefreshCw className={`w-4 h-4 mr-2 ${loading ? "animate-spin" : ""}`} />
|
<RefreshCw className={`w-4 h-4 mr-2 ${loading ? "animate-spin" : ""}`} />
|
||||||
새로고침
|
새로고침
|
||||||
</Button>
|
</Button>
|
||||||
<Button onClick={() => router.push("/admin/mail/send")} size="sm">
|
<Button onClick={() => router.push("/admin/automaticMng/mail/send")} size="sm">
|
||||||
<Mail className="w-4 h-4 mr-2" />
|
<Mail className="w-4 h-4 mr-2" />
|
||||||
메일 작성
|
메일 작성
|
||||||
</Button>
|
</Button>
|
||||||
|
|
@ -168,7 +168,7 @@ export default function AdminPage() {
|
||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<Link href="/admin/external-connections" className="block">
|
<Link href="/admin/automaticMng/exconList" className="block">
|
||||||
<div className="bg-card hover:bg-muted rounded-lg border p-6 shadow-sm transition-colors">
|
<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="flex items-center gap-4">
|
||||||
<div className="bg-success/10 flex h-12 w-12 items-center justify-center rounded-lg">
|
<div className="bg-success/10 flex h-12 w-12 items-center justify-center rounded-lg">
|
||||||
|
|
@ -182,7 +182,7 @@ export default function AdminPage() {
|
||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<Link href="/admin/commonCode" className="block">
|
<Link href="/admin/systemMng/commonCodeList" className="block">
|
||||||
<div className="bg-card hover:bg-muted rounded-lg border p-6 shadow-sm transition-colors">
|
<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="flex items-center gap-4">
|
||||||
<div className="bg-primary/10 flex h-12 w-12 items-center justify-center rounded-lg">
|
<div className="bg-primary/10 flex h-12 w-12 items-center justify-center rounded-lg">
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,7 @@ export default function DashboardListClient() {
|
||||||
총 <span className="text-foreground font-semibold">{totalCount.toLocaleString()}</span> 건
|
총 <span className="text-foreground font-semibold">{totalCount.toLocaleString()}</span> 건
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Button onClick={() => router.push("/admin/dashboard/new")} className="h-10 gap-2 text-sm font-medium">
|
<Button onClick={() => router.push("/admin/screenMng/dashboardList/new")} className="h-10 gap-2 text-sm font-medium">
|
||||||
<Plus className="h-4 w-4" />새 대시보드 생성
|
<Plus className="h-4 w-4" />새 대시보드 생성
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -292,7 +292,7 @@ export default function DashboardListClient() {
|
||||||
<TableRow key={dashboard.id} className="hover:bg-muted/50 border-b transition-colors">
|
<TableRow key={dashboard.id} className="hover:bg-muted/50 border-b transition-colors">
|
||||||
<TableCell className="h-16 text-sm font-medium">
|
<TableCell className="h-16 text-sm font-medium">
|
||||||
<button
|
<button
|
||||||
onClick={() => router.push(`/admin/dashboard/edit/${dashboard.id}`)}
|
onClick={() => router.push(`/admin/screenMng/dashboardList/edit/${dashboard.id}`)}
|
||||||
className="hover:text-primary cursor-pointer text-left transition-colors hover:underline"
|
className="hover:text-primary cursor-pointer text-left transition-colors hover:underline"
|
||||||
>
|
>
|
||||||
{dashboard.title}
|
{dashboard.title}
|
||||||
|
|
@ -319,7 +319,7 @@ export default function DashboardListClient() {
|
||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
<DropdownMenuContent align="end">
|
<DropdownMenuContent align="end">
|
||||||
<DropdownMenuItem
|
<DropdownMenuItem
|
||||||
onClick={() => router.push(`/admin/dashboard/edit/${dashboard.id}`)}
|
onClick={() => router.push(`/admin/screenMng/dashboardList/edit/${dashboard.id}`)}
|
||||||
className="gap-2 text-sm"
|
className="gap-2 text-sm"
|
||||||
>
|
>
|
||||||
<Edit className="h-4 w-4" />
|
<Edit className="h-4 w-4" />
|
||||||
|
|
@ -356,7 +356,7 @@ export default function DashboardListClient() {
|
||||||
<div className="mb-4 flex items-start justify-between">
|
<div className="mb-4 flex items-start justify-between">
|
||||||
<div className="flex-1">
|
<div className="flex-1">
|
||||||
<button
|
<button
|
||||||
onClick={() => router.push(`/admin/dashboard/edit/${dashboard.id}`)}
|
onClick={() => router.push(`/admin/screenMng/dashboardList/edit/${dashboard.id}`)}
|
||||||
className="hover:text-primary cursor-pointer text-left transition-colors hover:underline"
|
className="hover:text-primary cursor-pointer text-left transition-colors hover:underline"
|
||||||
>
|
>
|
||||||
<h3 className="text-base font-semibold">{dashboard.title}</h3>
|
<h3 className="text-base font-semibold">{dashboard.title}</h3>
|
||||||
|
|
@ -391,7 +391,7 @@ export default function DashboardListClient() {
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="sm"
|
size="sm"
|
||||||
className="h-9 flex-1 gap-2 text-sm"
|
className="h-9 flex-1 gap-2 text-sm"
|
||||||
onClick={() => router.push(`/admin/dashboard/edit/${dashboard.id}`)}
|
onClick={() => router.push(`/admin/screenMng/dashboardList/edit/${dashboard.id}`)}
|
||||||
>
|
>
|
||||||
<Edit className="h-4 w-4" />
|
<Edit className="h-4 w-4" />
|
||||||
편집
|
편집
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import DashboardListClient from "@/app/(main)/admin/dashboard/DashboardListClient";
|
import DashboardListClient from "@/app/(main)/admin/screenMng/dashboardList/DashboardListClient";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 대시보드 관리 페이지
|
* 대시보드 관리 페이지
|
||||||
|
|
@ -37,7 +37,7 @@ export default function ReportDesignerPage() {
|
||||||
description: "리포트를 찾을 수 없습니다.",
|
description: "리포트를 찾을 수 없습니다.",
|
||||||
variant: "destructive",
|
variant: "destructive",
|
||||||
});
|
});
|
||||||
router.push("/admin/report");
|
router.push("/admin/screenMng/reportList");
|
||||||
}
|
}
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
toast({
|
toast({
|
||||||
|
|
@ -45,7 +45,7 @@ export default function ReportDesignerPage() {
|
||||||
description: error.message || "리포트를 불러오는데 실패했습니다.",
|
description: error.message || "리포트를 불러오는데 실패했습니다.",
|
||||||
variant: "destructive",
|
variant: "destructive",
|
||||||
});
|
});
|
||||||
router.push("/admin/report");
|
router.push("/admin/screenMng/reportList");
|
||||||
} finally {
|
} finally {
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
}
|
}
|
||||||
|
|
@ -26,7 +26,7 @@ export default function ReportManagementPage() {
|
||||||
|
|
||||||
const handleCreateNew = () => {
|
const handleCreateNew = () => {
|
||||||
// 새 리포트는 'new'라는 특수 ID로 디자이너 진입
|
// 새 리포트는 'new'라는 특수 ID로 디자이너 진입
|
||||||
router.push("/admin/report/designer/new");
|
router.push("/admin/screenMng/reportList/designer/new");
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
@ -142,7 +142,7 @@ export default function DashboardViewPage({ params }: DashboardViewPageProps) {
|
||||||
{/* 편집 버튼 *\/}
|
{/* 편집 버튼 *\/}
|
||||||
<button
|
<button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
router.push(`/admin/dashboard?load=${resolvedParams.dashboardId}`);
|
router.push(`/admin/screenMng/dashboardList?load=${resolvedParams.dashboardId}`);
|
||||||
}}
|
}}
|
||||||
className="rounded-lg bg-blue-500 px-4 py-2 text-white hover:bg-blue-600"
|
className="rounded-lg bg-blue-500 px-4 py-2 text-white hover:bg-blue-600"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ export default function DashboardListPage() {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Link
|
<Link
|
||||||
href="/admin/dashboard"
|
href="/admin/screenMng/dashboardList"
|
||||||
className="rounded-lg bg-primary px-6 py-3 font-medium text-primary-foreground hover:bg-primary/90"
|
className="rounded-lg bg-primary px-6 py-3 font-medium text-primary-foreground hover:bg-primary/90"
|
||||||
>
|
>
|
||||||
➕ 새 대시보드 만들기
|
➕ 새 대시보드 만들기
|
||||||
|
|
@ -185,7 +185,7 @@ export default function DashboardListPage() {
|
||||||
</p>
|
</p>
|
||||||
{!searchTerm && (
|
{!searchTerm && (
|
||||||
<Link
|
<Link
|
||||||
href="/admin/dashboard"
|
href="/admin/screenMng/dashboardList"
|
||||||
className="inline-flex items-center rounded-lg bg-primary px-6 py-3 font-medium text-primary-foreground hover:bg-primary/90"
|
className="inline-flex items-center rounded-lg bg-primary px-6 py-3 font-medium text-primary-foreground hover:bg-primary/90"
|
||||||
>
|
>
|
||||||
➕ 대시보드 만들기
|
➕ 대시보드 만들기
|
||||||
|
|
@ -251,7 +251,7 @@ function DashboardCard({ dashboard }: DashboardCardProps) {
|
||||||
보기
|
보기
|
||||||
</Link>
|
</Link>
|
||||||
<Link
|
<Link
|
||||||
href={`/admin/dashboard?load=${dashboard.id}`}
|
href={`/admin/screenMng/dashboardList?load=${dashboard.id}`}
|
||||||
className="rounded-lg border border-input bg-background px-4 py-2 text-sm text-foreground hover:bg-accent hover:text-accent-foreground"
|
className="rounded-lg border border-input bg-background px-4 py-2 text-sm text-foreground hover:bg-accent hover:text-accent-foreground"
|
||||||
>
|
>
|
||||||
편집
|
편집
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ export function CompanyTable({ companies, isLoading, onEdit, onDelete }: Company
|
||||||
|
|
||||||
// 부서 관리 페이지로 이동
|
// 부서 관리 페이지로 이동
|
||||||
const handleManageDepartments = (company: Company) => {
|
const handleManageDepartments = (company: Company) => {
|
||||||
router.push(`/admin/company/${company.company_code}/departments`);
|
router.push(`/admin/userMng/companyList/${company.company_code}/departments`);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 디스크 사용량 포맷팅 함수
|
// 디스크 사용량 포맷팅 함수
|
||||||
|
|
|
||||||
|
|
@ -236,7 +236,7 @@ export function RoleDetailManagement({ roleId }: RoleDetailManagementProps) {
|
||||||
<AlertCircle className="text-destructive mb-4 h-12 w-12" />
|
<AlertCircle className="text-destructive mb-4 h-12 w-12" />
|
||||||
<h3 className="mb-2 text-lg font-semibold">오류 발생</h3>
|
<h3 className="mb-2 text-lg font-semibold">오류 발생</h3>
|
||||||
<p className="text-muted-foreground mb-4 text-center text-sm">{error || "권한 그룹을 찾을 수 없습니다."}</p>
|
<p className="text-muted-foreground mb-4 text-center text-sm">{error || "권한 그룹을 찾을 수 없습니다."}</p>
|
||||||
<Button variant="outline" onClick={() => router.push("/admin/roles")}>
|
<Button variant="outline" onClick={() => router.push("/admin/userMng/rolesList")}>
|
||||||
목록으로 돌아가기
|
목록으로 돌아가기
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -248,7 +248,7 @@ export function RoleDetailManagement({ roleId }: RoleDetailManagementProps) {
|
||||||
{/* 페이지 헤더 */}
|
{/* 페이지 헤더 */}
|
||||||
<div className="space-y-2 border-b pb-4">
|
<div className="space-y-2 border-b pb-4">
|
||||||
<div className="flex items-center gap-4">
|
<div className="flex items-center gap-4">
|
||||||
<Button variant="ghost" size="icon" onClick={() => router.push("/admin/roles")} className="h-10 w-10">
|
<Button variant="ghost" size="icon" onClick={() => router.push("/admin/userMng/rolesList")} className="h-10 w-10">
|
||||||
<ArrowLeft className="h-5 w-5" />
|
<ArrowLeft className="h-5 w-5" />
|
||||||
</Button>
|
</Button>
|
||||||
<div className="flex-1">
|
<div className="flex-1">
|
||||||
|
|
|
||||||
|
|
@ -141,7 +141,7 @@ export function RoleManagement() {
|
||||||
// 상세 페이지로 이동
|
// 상세 페이지로 이동
|
||||||
const handleViewDetail = useCallback(
|
const handleViewDetail = useCallback(
|
||||||
(role: RoleGroup) => {
|
(role: RoleGroup) => {
|
||||||
router.push(`/admin/roles/${role.objid}`);
|
router.push(`/admin/userMng/rolesList/${role.objid}`);
|
||||||
},
|
},
|
||||||
[router],
|
[router],
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -643,7 +643,7 @@ export default function DashboardDesigner({ dashboardId: initialDashboardId }: D
|
||||||
open={successModalOpen}
|
open={successModalOpen}
|
||||||
onOpenChange={() => {
|
onOpenChange={() => {
|
||||||
setSuccessModalOpen(false);
|
setSuccessModalOpen(false);
|
||||||
router.push("/admin/dashboard");
|
router.push("/admin/screenMng/dashboardList");
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<DialogContent className="sm:max-w-md">
|
<DialogContent className="sm:max-w-md">
|
||||||
|
|
@ -660,7 +660,7 @@ export default function DashboardDesigner({ dashboardId: initialDashboardId }: D
|
||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setSuccessModalOpen(false);
|
setSuccessModalOpen(false);
|
||||||
router.push("/admin/dashboard");
|
router.push("/admin/screenMng/dashboardList");
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
확인
|
확인
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ export function DatabaseConfig({ dataSource, onChange }: DatabaseConfigProps) {
|
||||||
<Label className="text-foreground text-xs font-medium">외부 커넥션</Label>
|
<Label className="text-foreground text-xs font-medium">외부 커넥션</Label>
|
||||||
<button
|
<button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
router.push("/admin/external-connections");
|
router.push("/admin/automaticMng/exconList");
|
||||||
}}
|
}}
|
||||||
className="text-primary hover:text-primary flex items-center gap-1 text-[11px] transition-colors"
|
className="text-primary hover:text-primary flex items-center gap-1 text-[11px] transition-colors"
|
||||||
>
|
>
|
||||||
|
|
@ -124,7 +124,7 @@ export function DatabaseConfig({ dataSource, onChange }: DatabaseConfigProps) {
|
||||||
<div className="text-warning mb-1 text-xs">등록된 커넥션이 없습니다</div>
|
<div className="text-warning mb-1 text-xs">등록된 커넥션이 없습니다</div>
|
||||||
<button
|
<button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
router.push("/admin/external-connections");
|
router.push("/admin/automaticMng/exconList");
|
||||||
}}
|
}}
|
||||||
className="text-warning text-[11px] underline hover:no-underline"
|
className="text-warning text-[11px] underline hover:no-underline"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ export function DepartmentManagement({ companyCode }: DepartmentManagementProps)
|
||||||
}, [companyCode]);
|
}, [companyCode]);
|
||||||
|
|
||||||
const handleBackToList = () => {
|
const handleBackToList = () => {
|
||||||
router.push("/admin/company");
|
router.push("/admin/userMng/companyList");
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -250,7 +250,7 @@ export default function MailDetailModal({
|
||||||
originalDate: mail.date,
|
originalDate: mail.date,
|
||||||
originalBody: mail.body,
|
originalBody: mail.body,
|
||||||
};
|
};
|
||||||
router.push(`/admin/mail/send?action=reply&data=${encodeURIComponent(JSON.stringify(replyData))}`);
|
router.push(`/admin/automaticMng/mail/send?action=reply&data=${encodeURIComponent(JSON.stringify(replyData))}`);
|
||||||
onClose();
|
onClose();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
@ -270,7 +270,7 @@ export default function MailDetailModal({
|
||||||
originalBody: mail.body,
|
originalBody: mail.body,
|
||||||
originalAttachments: mail.attachments,
|
originalAttachments: mail.attachments,
|
||||||
};
|
};
|
||||||
router.push(`/admin/mail/send?action=forward&data=${encodeURIComponent(JSON.stringify(forwardData))}`);
|
router.push(`/admin/automaticMng/mail/send?action=forward&data=${encodeURIComponent(JSON.stringify(forwardData))}`);
|
||||||
onClose();
|
onClose();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ export function ReportListTable({
|
||||||
|
|
||||||
// 수정
|
// 수정
|
||||||
const handleEdit = (reportId: string) => {
|
const handleEdit = (reportId: string) => {
|
||||||
router.push(`/admin/report/designer/${reportId}`);
|
router.push(`/admin/screenMng/reportList/designer/${reportId}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 복사
|
// 복사
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@ export function ReportDesignerToolbar() {
|
||||||
const handleMenuSelectConfirm = async (selectedMenuObjids: number[]) => {
|
const handleMenuSelectConfirm = async (selectedMenuObjids: number[]) => {
|
||||||
await saveLayoutWithMenus(selectedMenuObjids);
|
await saveLayoutWithMenus(selectedMenuObjids);
|
||||||
if (pendingSaveAndClose) {
|
if (pendingSaveAndClose) {
|
||||||
router.push("/admin/report");
|
router.push("/admin/screenMng/reportList");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -151,7 +151,7 @@ export function ReportDesignerToolbar() {
|
||||||
|
|
||||||
const handleBackConfirm = () => {
|
const handleBackConfirm = () => {
|
||||||
setShowBackConfirm(false);
|
setShowBackConfirm(false);
|
||||||
router.push("/admin/report");
|
router.push("/admin/screenMng/reportList");
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleSaveAsTemplate = async (data: {
|
const handleSaveAsTemplate = async (data: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue