- Create Event entity with fields: account, title, description (text), startAt, endAt, address, zipcode, city, eventMainPicture (VichUploader), isOnline, createdAt, updatedAt - Create EventRepository - Add migration for event table with all columns - Add "Creer un evenement" button on account events tab - Add create event page (/mon-compte/evenement/creer) with full form - Build custom web component <e-ticket-editor> WYSIWYG editor: - Toolbar: bold, italic, underline, paragraph, bullet list, remove formatting - contentEditable div with HTML sync to hidden textarea - HTML sanitizer (strips disallowed tags, XSS safe) - Neo-brutalist CSS styling - CSP compliant (no inline styles) - Register editor in app.js via customElements.define - Add editor CSS in app.scss - Add 16 Event entity tests (all fields + isOnline + picture upload + updatedAt) - Add 16 editor JS tests (sanitizer + custom element lifecycle) - Add 3 AccountController tests (create event page, submit, access control) - Update placeholders to generic examples (no association-specific data) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
11 lines
291 B
JavaScript
11 lines
291 B
JavaScript
import "./app.scss"
|
|
import { initMobileMenu } from "./modules/mobile-menu.js"
|
|
import { initTabs } from "./modules/tabs.js"
|
|
import { registerEditor } from "./modules/editor.js"
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
initMobileMenu()
|
|
initTabs()
|
|
registerEditor()
|
|
})
|