빌드오류

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 url = URL.createObjectURL(blob);
console.log("[getImageUrlByAtflCd] 이미지 URL 생성 성공:", url);
return url;
} catch (error: unknown) {
const err = error as
| { status?: number; message?: string; response?: { status?: number } }
| Error
| undefined;
console.error("[getImageUrlByAtflCd] 이미지 URL 조회 실패:", {
atflCd,
error: err,
status: err?.status ?? err?.response?.status,
message: err instanceof Error ? err.message : String(err),
});
throw error;
const status = err && typeof err === "object" && "status" in err
? err.status
: err && typeof err === "object" && "response" in err && err.response
? err.response.status
: undefined;
const message = err instanceof 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;
@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"] {
header {
background: #00afe5;
@@ -13,6 +34,20 @@
background: transparent !important;
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"] {
@@ -31,28 +66,16 @@
background-color: #008E8D !important;
color: #fff !important;
}
nav a {
@apply text-white;
nav a,
.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(
to bottom,
#00afe5 0%,
#48bfad 65%,
#6ec05d 100%
#0099cc 50%,
#0088b3 100%
) !important;
border: none;
}