ccs-frontend
Version:
CCS Frontend contains assets and components used in CCS projects
21 lines (18 loc) • 575 B
JavaScript
import { Header } from './components/header/header.mjs';
import { PasswordStrength } from './components/password-strength/password-strength.mjs';
const createAll = (Component) => {
$(`[data-module="${Component.moduleName}"]`).each((_index, componentElement) => {
new Component($(componentElement)).init();
});
};
const initAll = () => {
const components = [
Header,
PasswordStrength,
];
components.forEach((Component) => {
createAll(Component);
});
};
export { createAll, initAll };
//# sourceMappingURL=init.mjs.map