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 @@
- 조직별 사용 비율
+ 조직별 사용 비율
@@ -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'),
+ }
+ }
+ }
});