From cfad200eb6963fc53b7becf767ea928ae26cf85c Mon Sep 17 00:00:00 2001 From: Taehoon Date: Fri, 19 Jun 2026 13:52:47 +0900 Subject: [PATCH] =?UTF-8?q?style:=20=EA=B0=9C=EC=9D=B8=20PC=20=EB=8C=80?= =?UTF-8?q?=EC=8B=9C=EB=B3=B4=EB=93=9C=20=EB=B0=8F=20=EA=B4=80=EB=A6=AC?= =?UTF-8?q?=EC=9E=90=20=EB=AA=A8=EB=93=9C(Map=20Editor)=20=EA=B0=80?= =?UTF-8?q?=EB=8F=85=EC=84=B1=20=ED=96=A5=EC=83=81=20=EC=8A=A4=ED=83=80?= =?UTF-8?q?=EC=9D=BC=20=EA=B0=80=EC=9D=B4=EB=93=9C=EB=9D=BC=EC=9D=B8=20?= =?UTF-8?q?=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- map_editor.html | 4 ++- src/views/Dashboard/HwDashboard.ts | 50 +++++++++++++++--------------- vite.config.ts | 9 ++++++ 3 files changed, 37 insertions(+), 26 deletions(-) diff --git a/map_editor.html b/map_editor.html index ea0b683..443d92e 100644 --- a/map_editor.html +++ b/map_editor.html @@ -5,8 +5,10 @@ ITAM Map Coordinate Editor v3.0 + + - +
diff --git a/src/views/Dashboard/HwDashboard.ts b/src/views/Dashboard/HwDashboard.ts index 4e767cd..81c9f45 100644 --- a/src/views/Dashboard/HwDashboard.ts +++ b/src/views/Dashboard/HwDashboard.ts @@ -71,7 +71,7 @@ export function renderHwDashboard(container: HTMLElement) {
-

+

개인 PC 자산 대시보드

@@ -102,33 +102,33 @@ export function renderHwDashboard(container: HTMLElement) { onmouseover="this.style.backgroundColor='#F8FAFC';" onmouseout="this.style.backgroundColor='#ffffff';">
- 보유 자산 수량 + 보유 자산 수량
-
0대
+
0대
- 사양 부족 + 사양 부족
-
0대
+
0대
- 오버 스펙 + 오버 스펙
-
0대
+
0대
- 윈도우 11 불가 + 윈도우 11 불가
-
0대
+
0대
@@ -140,7 +140,7 @@ export function renderHwDashboard(container: HTMLElement) {
- 조직별 사용 비율 + 조직별 사용 비율
@@ -483,7 +483,7 @@ function updateDashboardData(pcs: any[], selectedDept: string) { const data = matrix[gradeKey]; const totalRate = filtered.length > 0 ? Math.round((data.total / filtered.length) * 100) : 0; - const cellStyle = `padding: 22px 8px; text-align: center; font-weight: 700; cursor: pointer; transition: background 0.2s; font-size: 1.05rem;`; + const cellStyle = `padding: 22px 8px; text-align: center; font-weight: 700; cursor: pointer; transition: background 0.2s; font-size: var(--fs-base);`; const hoverEvents = `onmouseover="this.style.background='#F1F5F9'" onmouseout="this.style.background='none'"`; // 사양 적정성 분석 데이터 계산 (운영중인 자산만) @@ -522,12 +522,12 @@ function updateDashboardData(pcs: any[], selectedDept: string) { return ` - ${label} - ${data.total}대 (${totalRate}%) + ${label} + ${data.total}대 (${totalRate}%) ${data.active}대 ${data.stock}대 ${shortage}대 - + ${barGraphHtml} @@ -577,7 +577,7 @@ function updateDashboardData(pcs: any[], selectedDept: string) { totBarGraphHtml = `운영중 자산 없음`; } - const cellStyleHeader = `padding: 12px 10px; text-align: center; font-weight: 800; cursor: pointer; transition: background 0.2s; background: #F8FAFC; font-size: 1.05rem;`; + const cellStyleHeader = `padding: 12px 10px; text-align: center; font-weight: 800; cursor: pointer; transition: background 0.2s; background: #F8FAFC; font-size: var(--fs-base);`; const hoverEventsHeader = `onmouseover="this.style.background='#EEF2F6'" onmouseout="this.style.background='#F8FAFC'"`; matrixTbody.innerHTML = ` @@ -710,8 +710,8 @@ function updateDashboardData(pcs: any[], selectedDept: string) { const renderAgingRow = (label: string, list: any[], ageGroupKey: string) => { return ` - ${label} - ${list.length}대 + ${label} + ${list.length}대 `; }; @@ -829,17 +829,17 @@ function showMiniListModal(title: string, list: any[]) { modal.innerHTML = `
-

+

${title} 자산 목록 - ${list.length}대 + ${list.length}대

-
- +
@@ -858,8 +858,8 @@ function showMiniListModal(title: string, list: any[]) { const score = pc._pc_score !== undefined ? pc._pc_score : calculatePcScoreDeductive(pc.cpu, pc.ram, pc.gpu, pc.purchase_date); const win11Incompatible = isWindows11Incompatible(pc.cpu, pc.ram); const grade = getPcGrade(score, win11Incompatible); - const badgeHTML = `${grade.name}`; - const scoreHTML = `${score}점`; + const badgeHTML = `${grade.name}`; + const scoreHTML = `${score}점`; return ` @@ -876,7 +876,7 @@ function showMiniListModal(title: string, list: any[]) {
사용자
-
@@ -970,7 +970,7 @@ function renderDonutChart(deptData: { label: string; count: number; color: strin top: 50%; left: 50%; transform: translate(-50%, -46%); - font-size: 1.65rem; + font-size: var(--fs-lg); font-weight: 900; color: #1E5149; font-family: 'Pretendard', sans-serif; diff --git a/vite.config.ts b/vite.config.ts index 56b1c1c..b5a8bda 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,4 +1,5 @@ import { defineConfig } from 'vite'; +import { resolve } from 'path'; export default defineConfig({ server: { @@ -15,4 +16,12 @@ export default defineConfig({ } } }, + build: { + rollupOptions: { + input: { + main: resolve(__dirname, 'index.html'), + map_editor: resolve(__dirname, 'map_editor.html'), + } + } + } });