빌드오류

This commit is contained in:
2025-12-17 18:41:35 +09:00
parent 86cf1f2e9e
commit cac1ea4d77
4 changed files with 60 additions and 45 deletions
@@ -31,18 +31,24 @@ export const getImageUrlByAtflCd = async (atflCd: string): Promise<string> => {
); );
const blob = response.data; const blob = response.data;
const url = URL.createObjectURL(blob); const url = URL.createObjectURL(blob);
console.log("[getImageUrlByAtflCd] 이미지 URL 생성 성공:", url);
return url; return url;
} catch (error: unknown) { } catch (error: unknown) {
const err = error as const err = error as
| { status?: number; message?: string; response?: { status?: number } } | { status?: number; message?: string; response?: { status?: number } }
| Error
| undefined; | undefined;
console.error("[getImageUrlByAtflCd] 이미지 URL 조회 실패:", { const status = err && typeof err === "object" && "status" in err
atflCd, ? err.status
error: err, : err && typeof err === "object" && "response" in err && err.response
status: err?.status ?? err?.response?.status, ? err.response.status
message: err instanceof Error ? err.message : String(err), : undefined;
}); const message = err instanceof Error
throw error; ? err.message
: err && typeof err === "object" && "message" in err
? String(err.message)
: String(error);
return "";
} }
}; };
@@ -1,14 +0,0 @@
import { client } from "@/shared/api";
import { ENDPOINT } from "@/shared/config";
import type { Dashboard, DashboardService } from "../model/dashboard-interface";
export class DashboardApiService implements DashboardService {
public async getDashboard(): Promise<Dashboard> {
const response = await client.get<Dashboard>(
ENDPOINT.CMS_SERVICE.DASHBOARD,
);
return response.data;
}
}
export const DashboardApi = new DashboardApiService();
@@ -1,6 +1,27 @@
@tailwind components; @tailwind components;
@layer components { @layer components {
/* 상단 메뉴 호버 시 하단 라인 - 기본 테마 */
.header-nav-link {
position: relative;
}
.header-nav-link::after {
content: '';
position: absolute;
bottom: -4px;
left: 0;
width: 0;
height: 2px;
background-color: #063A74;
transition: width 0.3s ease;
}
.header-nav-link:hover::after {
width: 100%;
}
[data-theme="blue"] { [data-theme="blue"] {
header { header {
background: #00afe5; background: #00afe5;
@@ -13,6 +34,20 @@
background: transparent !important; background: transparent !important;
color: #fff; color: #fff;
} }
header button[role="button"].primary {
background-color: #008E8D !important;
color: #fff !important;
}
nav a,
.header-nav-link {
color: #fff !important;
}
.header-nav-link:hover {
color: #fff !important;
}
.header-nav-link::after {
background-color: #fff;
}
} }
[data-theme="green"] { [data-theme="green"] {
@@ -31,28 +66,16 @@
background-color: #008E8D !important; background-color: #008E8D !important;
color: #fff !important; color: #fff !important;
} }
nav a { nav a,
@apply text-white; .header-nav-link {
color: #fff !important;
}
.header-nav-link:hover {
color: #fff !important;
}
.header-nav-link::after {
background-color: #fff;
} }
} }
/* 상단 메뉴 호버 시 하단 라인 */
.header-nav-link {
position: relative;
}
.header-nav-link::after {
content: '';
position: absolute;
bottom: -4px;
left: 0;
width: 0;
height: 2px;
background-color: #063A74;
transition: width 0.3s ease;
}
.header-nav-link:hover::after {
width: 100%;
}
} }
@@ -7,8 +7,8 @@
background-image: linear-gradient( background-image: linear-gradient(
to bottom, to bottom,
#00afe5 0%, #00afe5 0%,
#48bfad 65%, #0099cc 50%,
#6ec05d 100% #0088b3 100%
) !important; ) !important;
border: none; border: none;
} }