feat(web-ui): Refactor web-ui for improved maintainability and modularity

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.
This commit is contained in:
Hyungi Ahn
2026-01-06 15:54:49 +09:00
parent 48fff7df64
commit b4037c9395
8 changed files with 223 additions and 133 deletions

View File

@@ -22,8 +22,8 @@
</div>
<!-- 스크립트 로딩 (순서 중요) -->
<script src="js/api-config.js"></script>
<script src="js/api-helper.js"></script>
<script src="js/login.js"></script>
<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>