- Created calendarWidget.js (1002 lines) - Reduced rightbar_calendar.html from 996 to 237 lines (76% reduction) - Supports: FullCalendar integration, company/department calendars, recurring events - Features: week list view, event CRUD, color picker, responsive design - Export initCalendarWidget() function for reusability - Updated components/index.js to export calendar widget (v1.1.0)
28 lines
867 B
JavaScript
28 lines
867 B
JavaScript
/**
|
|
* JavaScript Components Index
|
|
*
|
|
* Этот файл служит единой точкой входа для всех JS компонентов.
|
|
* Экспортирует все компоненты для удобного импорта.
|
|
*
|
|
* Использование в шаблонах:
|
|
* <script type="module">
|
|
* import { EmployeeForm, CalendarWidget } from '{% static "js/components/index.js" %}';
|
|
* </script>
|
|
*/
|
|
|
|
// Компоненты фильтрации
|
|
export {
|
|
ListFilter,
|
|
createDataAttrMatcher,
|
|
createSelectorMatcher
|
|
} from './listFilter.js';
|
|
|
|
// Компоненты календаря
|
|
export { initCalendarWidget } from './calendarWidget.js';
|
|
|
|
// Компоненты отображения
|
|
export { initTeamWheel } from './teamWheel.js';
|
|
|
|
// Версия компонентов
|
|
export const COMPONENTS_VERSION = '1.1.0';
|