refactor: Consolidate script imports to use main.js bundle
- dashboard.templ: Replaced individual script tags with single main.js import - admin_users.templ, custom_section.templ: Minor formatting/cleanup - docs.templ: Updated script imports (excluded from Alpine conversion per user request) - api.ts, docs.ts, password_validation.ts: Minor updates for compatibility
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
// Password validation for registration form
|
||||
// Procedural style - no OOP, passive event listeners for password manager compatibility
|
||||
|
||||
import { Alpine } from "./alpine";
|
||||
|
||||
// Validation check functions
|
||||
function hasMinimumLength(password: string): boolean {
|
||||
return password.length >= 8;
|
||||
@@ -185,4 +187,8 @@ function initPasswordValidation(): void {
|
||||
}
|
||||
|
||||
// Export for use in template
|
||||
(window as any).initPasswordValidation = initPasswordValidation;
|
||||
export { initPasswordValidation };
|
||||
|
||||
Alpine.global("validation", {
|
||||
initPasswordValidation,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user