- drop Bulma and Font Awesome, plain CSS built on charte.css - dashboard: GitHub-like calendar grouped by year, selected day panel (sticky side column on desktop, bottom bar on mobile), keyboard navigation - public page: today's mood and last months fit in one screen, journal hidden - day log page: mode picker as pills, illustration follows the chosen mode - login, password and invitation screens in French, global flash messages - add User#current_mode_since Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 lines
372 B
JavaScript
12 lines
372 B
JavaScript
import { Controller } from "@hotwired/stimulus"
|
|
|
|
// Formulaire du journal : l'illustration suit le mode choisi.
|
|
export default class extends Controller {
|
|
static targets = [ "carte", "image" ]
|
|
|
|
changer(event) {
|
|
const { image, couleur } = event.currentTarget.dataset
|
|
this.imageTarget.src = image
|
|
this.carteTarget.style.setProperty("--humeur", couleur)
|
|
}
|
|
}
|