изменил дизайн выпадающих списков

This commit is contained in:
Zuev
2026-03-27 16:08:44 +03:00
parent e015758caf
commit bfdcb58c7d
10 changed files with 684 additions and 154 deletions

View File

@@ -5,6 +5,18 @@ if (!['localhost', '127.0.0.1'].includes(window.location.hostname)) {
import { isAuthenticatedAsAdmin } from './api.js';
import { applyRippleEffect, closeAllDropdownsOnOutsideClick } from './utils.js';
import { startDropdownAutoObserver, initAllCustomDropdowns } from './dropdown.js';
// Auth check
if (!isAuthenticatedAsAdmin()) {
window.location.href = '/';
}
// Global initialization for Custom Selects
document.addEventListener('DOMContentLoaded', () => {
initAllCustomDropdowns(document.body);
startDropdownAutoObserver();
});
import { initUsers } from './views/users.js';
import { initGroups } from './views/groups.js';