Игорь Надеин 303fd54d17 feat: setup refactoring infrastructure (Phase 0)
- Created static file structure:
  * static/css/components/ - reusable CSS components
  * static/css/pages/ - page-specific styles
  * static/js/utils/ - utility functions
  * static/js/components/ - interactive components

- Created infrastructure files:
  * static/css/variables.css - CSS custom properties
  * static/css/components/index.css - CSS entry point
  * static/js/utils/index.js - JS utilities entry point
  * static/js/components/index.js - JS components entry point

- Added comprehensive tests:
  * tests/test_static_files.py - 12 tests for structure, syntax, encoding

- Updated .gitignore:
  * Added staticfiles/ to ignore list
  * Clarified that static/ sources are tracked

- Added REFACTORING_PLAN.md:
  * New strategy: extract CSS/JS before HTML decomposition
  * Documented lessons learned from previous attempts
  * Defined phases 0-6 for systematic refactoring
2025-10-28 08:29:43 +03:00

21 lines
818 B
JavaScript

/**
* JavaScript Components Index
*
* Этот файл служит единой точкой входа для всех JS компонентов.
* Экспортирует все компоненты для удобного импорта.
*
* Использование в шаблонах:
* <script type="module">
* import { EmployeeForm, CalendarWidget } from '{% static "js/components/index.js" %}';
* </script>
*/
// Компоненты (будут созданы в Фазе 4)
// export { EmployeeForm } from './employeeForm.js';
// export { CalendarWidget } from './calendarWidget.js';
// export { TeamWheel } from './teamWheel.js';
// export { ListFilter } from './listFilter.js';
// Placeholder export для валидности модуля
export const COMPONENTS_VERSION = '1.0.0';