refactor: CSS 파일 모듈화 및 컴포넌트별 직접 Import 구조 전환 (방안 B)
- HTML 내 CSS link 태그들을 삭제하고, 각 TS 진입점 파일에서 CSS 파일을 직접 import하도록 연동 - 스타일 파일들을 각 컴포넌트/뷰 디렉토리 옆으로 이동 배치 (Co-location) - guide.css, modal.css, dashboard.css, table.css, map-editor.css 이동 및 경로 갱신 - 디자인 시스템(common.css) 및 로그인 스타일(login.css)은 전역 배치 유지하고 main.ts에서 통합 임포트
This commit is contained in:
@@ -8,12 +8,6 @@
|
|||||||
<title>한맥가족 자산관리시스템</title>
|
<title>한맥가족 자산관리시스템</title>
|
||||||
<link rel="stylesheet"
|
<link rel="stylesheet"
|
||||||
href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css" />
|
href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css" />
|
||||||
<link rel="stylesheet" href="/src/styles/common.css" />
|
|
||||||
<link rel="stylesheet" href="/src/styles/login.css" />
|
|
||||||
<link rel="stylesheet" href="/src/styles/guide.css" />
|
|
||||||
<link rel="stylesheet" href="/src/styles/modal.css" />
|
|
||||||
<link rel="stylesheet" href="/src/styles/dashboard.css" />
|
|
||||||
<link rel="stylesheet" href="/src/styles/table.css" />
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels@2.0.0"></script>
|
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels@2.0.0"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -5,8 +5,6 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>ITAM Map Coordinate Editor v3.0</title>
|
<title>ITAM Map Coordinate Editor v3.0</title>
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css" />
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css" />
|
||||||
<link rel="stylesheet" href="/src/styles/common.css" />
|
|
||||||
<link rel="stylesheet" href="/src/styles/map-editor.css" />
|
|
||||||
</head>
|
</head>
|
||||||
<body class="editor-body">
|
<body class="editor-body">
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { createIcons, BookOpen, X, ChevronDown, ChevronRight, RefreshCw } from 'lucide';
|
import { createIcons, BookOpen, X, ChevronDown, ChevronRight, RefreshCw } from 'lucide';
|
||||||
import { state } from '../core/state';
|
import { state } from '../core/state';
|
||||||
|
import './guide.css';
|
||||||
|
|
||||||
// ─── 자산별 가이드 콘텐츠 정의 (SW_Table 브랜치 전체 복구) ───
|
// ─── 자산별 가이드 콘텐츠 정의 (SW_Table 브랜치 전체 복구) ───
|
||||||
interface GuideTabConfig {
|
interface GuideTabConfig {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { createIcons, X } from 'lucide';
|
import { createIcons, X } from 'lucide';
|
||||||
import { setEditLock } from './ModalUtils';
|
import { setEditLock } from './ModalUtils';
|
||||||
|
import './modal.css';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 모든 모달의 공통 기능을 관리하는 베이스 추상 클래스입니다.
|
* 모든 모달의 공통 기능을 관리하는 베이스 추상 클래스입니다.
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import './styles/common.css';
|
||||||
|
import './styles/login.css';
|
||||||
import { state, loadMasterDataFromDB, saveAsset } from './core/state';
|
import { state, loadMasterDataFromDB, saveAsset } from './core/state';
|
||||||
import { renderNavigation } from './components/Navigation';
|
import { renderNavigation } from './components/Navigation';
|
||||||
import { renderDashboard } from './views/DashboardView';
|
import { renderDashboard } from './views/DashboardView';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import './styles/common.css';
|
import './styles/common.css';
|
||||||
import './styles/map-editor.css';
|
import './views/map-editor.css';
|
||||||
import { MapEditor } from './views/MapEditor';
|
import { MapEditor } from './views/MapEditor';
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { state } from '../core/state';
|
import { state } from '../core/state';
|
||||||
import { renderHwDashboard } from './Dashboard/HwDashboard';
|
import { renderHwDashboard } from './Dashboard/HwDashboard';
|
||||||
import { renderSwDashboard } from './Dashboard/SwDashboard';
|
import { renderSwDashboard } from './Dashboard/SwDashboard';
|
||||||
|
import './Dashboard/dashboard.css';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 대시보드 렌더링 통합 허브 (Vercel Style Normalized)
|
* 대시보드 렌더링 통합 허브 (Vercel Style Normalized)
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { setupTableSorting, SortState } from '../../core/tableHandler';
|
|||||||
import { renderFilterBar, applyCommonFilters } from '../../core/filterHandler';
|
import { renderFilterBar, applyCommonFilters } from '../../core/filterHandler';
|
||||||
import { state } from '../../core/state';
|
import { state } from '../../core/state';
|
||||||
import { IMAGE_LOCATIONS } from '../../components/Modal/SharedData';
|
import { IMAGE_LOCATIONS } from '../../components/Modal/SharedData';
|
||||||
|
import './table.css';
|
||||||
|
|
||||||
declare var Chart: any;
|
declare var Chart: any;
|
||||||
let pcFlowChartInstance: any = null;
|
let pcFlowChartInstance: any = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user