This commit introduces a series of refactoring changes to the web-ui to remove hardcoded values and improve page integration. - **Centralized Configuration:** Created to centralize API ports, paths, and navigation URLs, replacing hardcoded values across multiple files. - **Modular Component Loading:** Introduced to handle dynamic loading of common HTML components (e.g., sidebar, navbar), using paths from . - **Modular Navigation:** Created to centralize page redirection logic, improving maintainability and reducing direct manipulations. - **Refactored Existing Modules:** Updated , , , and to utilize the new , , and modules. - **ES6 Module Compatibility:** Ensured loads scripts as ES6 modules () to support statements.
29 lines
1.1 KiB
HTML
29 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ko">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>(주)테크니컬코리아 생산팀 포털</title>
|
|
<link rel="stylesheet" href="css/login.css" />
|
|
<link rel="icon" type="image/png" href="img/favicon.png">
|
|
</head>
|
|
<body>
|
|
<div class="login-container">
|
|
<img src="img/logo.png" alt="테크니컬코리아 로고" class="logo" />
|
|
<h1>(주)테크니컬코리아</h1>
|
|
<h3>생산팀 포털 로그인</h3>
|
|
<form id="loginForm">
|
|
<input type="text" id="username" placeholder="아이디" required autocomplete="username" />
|
|
<input type="password" id="password" placeholder="비밀번호" required autocomplete="current-password" />
|
|
<button type="submit">로그인</button>
|
|
</form>
|
|
<div id="error" class="error-message"></div>
|
|
|
|
</div>
|
|
|
|
<!-- 스크립트 로딩 (순서 중요) -->
|
|
<script type="module" src="js/api-config.js"></script>
|
|
<script type="module" src="js/api-helper.js"></script>
|
|
<script type="module" src="js/login.js"></script>
|
|
</body>
|
|
</html> |