The project is offered under either licence, at the user's choice. Every source header now carries the SPDX expression in place of the AGPL line; the copyright line is unchanged. LICENSES/ holds both published texts, pinned by SHA-256 and identical to the copies the page ships. The root LICENSE becomes a short notice: the full AGPL text there would make forges and licence scanners report the AGPL alone. Checked: 685 header lines swapped and nothing else; node 6264, guards 207, build test 8, browser 1420, documentation verifier 0 faults. --- FR --- [UPD] licence : double AGPL-3.0-or-later ou LiLiQ-R+, en-têtes SPDX Le projet est offert sous l'une ou l'autre licence, au choix de l'utilisateur. Chaque en-tête de source porte l'expression SPDX à la place de la ligne AGPL ; la ligne de copyright ne change pas. LICENSES/ garde les deux textes publiés, épinglés par SHA-256 et identiques aux copies que la page livre. LICENSE devient une courte notice : le texte AGPL entier y ferait annoncer l'AGPL seule par les forges et les détecteurs de licence. Vérifié : 685 lignes d'en-tête remplacées, rien d'autre ; node 6264, gardes 207, construction 8, navigateur 1420, documentation 0 faute. Assisted-by: Claude Opus 5.5
15 lines
517 B
JavaScript
15 lines
517 B
JavaScript
// © 2026 TechnoLibre (http://www.technolibre.ca)
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later OR LiLiQ-Rplus-1.1
|
|
|
|
// Le nom d'une personne tel que les libellés figés et le plan l'écrivent
|
|
// (§ 8.2) : la seule composition de ce nom dans l'application.
|
|
|
|
/**
|
|
* Le prénom, puis le nom ; le nom seul quand le prénom est null.
|
|
*
|
|
* @param {{nom: string, prenom: string|null}} personne
|
|
* @returns {string}
|
|
*/
|
|
export function nomAffiche({ nom, prenom }) {
|
|
return prenom === null ? nom : `${prenom} ${nom}`;
|
|
}
|