From 8a875cd204491fce43ff345b56bee28c85febba4 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Tue, 20 Oct 2026 08:42:46 -0400 Subject: [PATCH] [ADD] about: numbered features, links, logo download, licence texts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The About panel lists every feature under a category-prefixed number that spec.md shares and that is never reused; a test checks both lists agree. External links open in the system browser only for an allow-listed set of https addresses; the app window never navigates. The TechnoLibre logo is saved as SVG or PNG with its exact bytes, and a refused write is reported under the logo. Both licence texts ship with the page and read offline. Logo and texts load in deferred chunks, checked by the build test. Checked: node 6261, guards 204, browser 1420, build test 8. --- FR --- [ADD] à propos : fonctionnalités numérotées, liens, logo, licences Le panneau À propos liste chaque fonctionnalité sous un numéro à préfixe de catégorie, partagé avec spec.md et jamais réutilisé ; une épreuve vérifie la concordance des deux listes. Un lien externe s'ouvre dans le navigateur du système pour une liste blanche d'adresses https seulement ; la fenêtre ne navigue jamais. Le logo s'enregistre en SVG ou en PNG, octets exacts, et un refus d'écriture se dit sous le logo. Les deux textes de licence voyagent avec la page et se lisent hors ligne, en morceaux différés, que l'épreuve de construction vérifie. Vérifié : node 6261, gardes 204, navigateur 1420. Assisted-by: Claude Opus 5.5 --- CHANGELOG.md | 8 + README.md | 41 +- electron/main.js | 24 +- public/licences/AGPL-3.0-or-later.txt | 661 ++++++++++++++++++++++ public/licences/LiLiQ-Rplus-1.1.txt | 88 +++ spec.md | 126 +++++ src/actifs/actifs.navigateur.test.js | 66 +++ src/actifs/donnees_logo.js | 8 + src/actifs/full_logo_technolibre_2023.png | Bin 0 -> 56854 bytes src/actifs/full_logo_technolibre_2023.svg | 5 + src/actifs/licences.js | 32 ++ src/actifs/logo.js | 37 ++ src/actifs/octets.js | 35 ++ src/actifs/octets.test.js | 28 + src/actifs/textes_licences.js | 10 + src/interface/APropos.navigateur.test.js | 259 ++++++++- src/interface/APropos.svelte | 319 ++++++++++- src/interface/App.navigateur.test.js | 7 +- src/interface/apropos.js | 34 +- src/interface/apropos.test.js | 63 ++- src/interface/fonctionnalites.js | 115 ++++ src/interface/fonctionnalites.test.js | 204 +++++++ src/interface/libelles/coquille.js | 135 ++++- test/arborescence.test.js | 12 +- test/construction.long.test.js | 53 +- test/coquille.test.js | 44 +- test/electron_factice.js | 69 ++- test/navigateur/designations.js | 5 + 28 files changed, 2408 insertions(+), 80 deletions(-) create mode 100644 public/licences/AGPL-3.0-or-later.txt create mode 100644 public/licences/LiLiQ-Rplus-1.1.txt create mode 100644 src/actifs/actifs.navigateur.test.js create mode 100644 src/actifs/donnees_logo.js create mode 100644 src/actifs/full_logo_technolibre_2023.png create mode 100644 src/actifs/full_logo_technolibre_2023.svg create mode 100644 src/actifs/licences.js create mode 100644 src/actifs/logo.js create mode 100644 src/actifs/octets.js create mode 100644 src/actifs/octets.test.js create mode 100644 src/actifs/textes_licences.js create mode 100644 src/interface/fonctionnalites.js create mode 100644 src/interface/fonctionnalites.test.js diff --git a/CHANGELOG.md b/CHANGELOG.md index 1432c2c..7ccbe32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -358,6 +358,14 @@ de l'écran, de 90 à 150 %, et le thème clair ou sombre, qui quitte le bandeau. La machine retient la taille d'un lancement à l'autre ; le plan, les pages imprimées et les badges gardent la leur. +- « À propos » présente le logo de TechnoLibre, qu'un clic offre de + télécharger en SVG ou en PNG ; les liens vers le site de TechnoLibre, le code + source du projet et les deux licences, qui s'ouvrent dans votre navigateur ; + la licence, au choix AGPL-3.0-or-later ou LiLiQ-R+, dont les deux textes + complets se lisent sur place, sans réseau, et voyagent avec l'exécutable ; + une demande d'attribution ; et le sommaire des fonctionnalités, chacune sous + un numéro qui ne change pas, `PLA-08` par exemple, que la spécification porte + aussi. **Version de format des fichiers** : 2. Les étiquettes, les objectifs, leurs règles, les cases nouvelles, le mode des objectifs et l'ordre des priorités diff --git a/README.md b/README.md index 80789c4..bad016e 100644 --- a/README.md +++ b/README.md @@ -161,13 +161,46 @@ l'exécution elle-même —, son statut et la façon de le relever. Une valeur a ## Licence -© 2026 TechnoLibre. GNU Affero General Public License, version 3 ou ultérieure ; -texte complet dans `LICENSE`. +© 2026 TechnoLibre Inc. Ce projet est distribué, au choix de l'utilisateur, +sous l'une des licences suivantes : + +- GNU Affero General Public License v3.0 ou ultérieure (AGPL-3.0-or-later) ; +- Licence Libre du Québec – Réciprocité forte v1.1 (LiLiQ-R+). + +Identifiant SPDX : `AGPL-3.0-or-later OR LiLiQ-Rplus-1.1`. Textes complets : +dossier `LICENSES/` ; l'application les donne aussi à lire hors ligne, dans +« À propos », depuis `public/licences/AGPL-3.0-or-later.txt` et +`public/licences/LiLiQ-Rplus-1.1.txt`, qui voyagent avec la page. Textes +officiels : [AGPLv3](https://www.gnu.org/licenses/agpl-3.0.fr.html), +[LiLiQ-R+](https://forge.gouv.qc.ca/licence/liliq-r+/). + +Pour respecter la licence choisie : + +- conservez les avis de copyright et de licence existants ; +- indiquez clairement vos modifications et leur date ; +- toute version modifiée doit rester sous une licence à réciprocité forte + (celle choisie ou une licence compatible) ; +- si vous distribuez le logiciel, fournissez le code source correspondant ; +- sous l'AGPL, si vous offrez une version modifiée à des utilisateurs par un + réseau (SaaS, instance web), vous devez leur donner accès à son code source. + +Les contributions à ce projet sont acceptées sous ces deux licences. L'application embarque la police **Noto Sans** (Regular et Bold), sous la **SIL Open Font License 1.1**, sans nom de police réservé : elle sert à la planche de badges et à l'interface. Son texte est dans `public/licences/NotoSans-OFL.txt`, sa provenance dans `src/polices/PROVENANCE`. Les avis des paquets que la page incorpore — Svelte, pdf-lib, fontkit et ce -qu'ils tirent — sont dans `public/licences/TIERS.txt`. Les deux fichiers -voyagent avec la page, dans `www/licences/`. +qu'ils tirent — sont dans `public/licences/TIERS.txt`. Ces fichiers voyagent +avec la page, dans `www/licences/`. + +Le logo de TechnoLibre, `src/actifs/full_logo_technolibre_2023.svg` et `.png`, +est la marque de l'éditeur ; « À propos » l'affiche et le donne à télécharger. + +## Attribution + +Si vous utilisez ce logiciel, modifié ou non, nous vous invitons à afficher le +logo de TechnoLibre sur les badges des participants, puis sur votre site web +avec un lien vers https://technolibre.ca. Il s'agit d'une demande, et non d'une +condition supplémentaire : vos droits et obligations sont définis uniquement +par la licence que vous avez choisie. diff --git a/electron/main.js b/electron/main.js index 67c8681..df0fe30 100644 --- a/electron/main.js +++ b/electron/main.js @@ -62,6 +62,20 @@ async function retirerProfilsTermines() { } } +// Les adresses que la page peut faire ouvrir au navigateur du système (§ 2, +// § 18.6) : les liens du panneau « À propos », chacune sous la forme exacte +// que Chromium passe au gestionnaire d'ouverture, en https. Une adresse qui +// en diffère d'un caractère — schéma, hôte, chemin, barre finale — n'ouvre +// rien. L'exécutable n'emporte pas src/, que la coquille ne peut donc pas +// importer : la liste se recopie ici, et test/coquille.test.js la compare à +// celle de src/interface/apropos.js. +const ADRESSES_EXTERNES = new Set([ + 'https://technolibre.ca/', + 'https://github.com/TechnoLibre/gestion_table_tournante_libre', + 'https://www.gnu.org/licenses/agpl-3.0.fr.html', + 'https://forge.gouv.qc.ca/licence/liliq-r+/', +]); + // Le système de fichiers : emplacements et racines lus une fois, au // démarrage (§ 8.6) ; les dialogues s'ouvrent sur la fenêtre de la page. Les // gestionnaires sont posés avant le chargement de la page, qui peut les @@ -109,8 +123,14 @@ function creerFenetre() { }, }); // La page ne quitte jamais www/ : toute nouvelle fenêtre est refusée, toute - // navigation annulée, quelle que soit sa cible. - fenetre.webContents.setWindowOpenHandler(() => ({ action: 'deny' })); + // navigation annulée, quelle que soit sa cible. Un lien que la page ouvre + // dans une nouvelle fenêtre, et dont l'adresse est exactement l'une des + // ADRESSES_EXTERNES, passe au navigateur du système ; la fenêtre reste + // refusée. + fenetre.webContents.setWindowOpenHandler(({ url }) => { + if (ADRESSES_EXTERNES.has(url)) shell.openExternal(url).catch(() => {}); + return { action: 'deny' }; + }); fenetre.webContents.on('will-navigate', (evenement) => evenement.preventDefault()); fenetre.loadFile(PAGE); } diff --git a/public/licences/AGPL-3.0-or-later.txt b/public/licences/AGPL-3.0-or-later.txt new file mode 100644 index 0000000..be3f7b2 --- /dev/null +++ b/public/licences/AGPL-3.0-or-later.txt @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/public/licences/LiLiQ-Rplus-1.1.txt b/public/licences/LiLiQ-Rplus-1.1.txt new file mode 100644 index 0000000..58566cb --- /dev/null +++ b/public/licences/LiLiQ-Rplus-1.1.txt @@ -0,0 +1,88 @@ +Licence Libre du Québec – Réciprocité forte (LiLiQ-R+) + +Version 1.1 + +1. Préambule +Cette licence s'applique à tout logiciel distribué dont le titulaire du droit d'auteur précise qu'il est sujet aux termes de la Licence Libre du Québec – Réciprocité forte (LiLiQ-R+) (ci-après appelée la « licence »). + +2. Définitions +Dans la présente licence, à moins que le contexte n'indique un sens différent, on entend par: + + « concédant » : le titulaire du droit d'auteur sur le logiciel, ou toute personne dûment autorisée par ce dernier à accorder la présente licence; + « contributeur » : le titulaire du droit d'auteur ou toute personne autorisée par ce dernier à soumettre au concédant une contribution. Un contributeur dont sa contribution est incorporée au logiciel est considéré comme un concédant en regard de sa contribution; + « contribution » : tout logiciel original, ou partie de logiciel original soumis et destiné à être incorporé dans le logiciel; + « distribution » : le fait de délivrer une copie du logiciel; + « licencié » : toute personne qui possède une copie du logiciel et qui exerce les droits concédés par la licence; + « logiciel » : une œuvre protégée par le droit d'auteur, telle qu'un programme d'ordinateur et sa documentation, pour laquelle le titulaire du droit d'auteur a précisé qu'elle est sujette aux termes de la présente licence; + « logiciel dérivé » : tout logiciel original réalisé par un licencié, autre que le logiciel ou un logiciel modifié, qui produit ou reproduit la totalité ou une partie importante du logiciel; + « logiciel modifié » : toute modification par un licencié de l'un des fichiers source du logiciel ou encore tout nouveau fichier source qui incorpore le logiciel ou une partie importante de ce dernier. + +3. Licence de droit d'auteur +Sous réserve des termes de la licence, le concédant accorde au licencié une licence non exclusive et libre de redevances lui permettant d’exercer les droits suivants sur le logiciel : + + 1 Produire ou reproduire la totalité ou une partie importante; + 2 Exécuter ou représenter la totalité ou une partie importante en public; + 3 Publier la totalité ou une partie importante. + +Cette licence est accordée sans limite territoriale et sans limite de temps. + +L'exercice complet de ces droits est sujet à la distribution par le concédant du code source du logiciel, lequel doit être sous une forme permettant d'y apporter des modifications. Le concédant peut aussi distribuer le logiciel accompagné d'une offre de distribuer le code source du logiciel, sans frais supplémentaires, autres que ceux raisonnables afin de permettre la livraison du code source. Cette offre doit être valide pendant une durée raisonnable. + +4. Distribution +Le licencié peut distribuer des copies du logiciel, d'un logiciel modifié ou dérivé, sous réserve de respecter les conditions suivantes : + + 1 Le logiciel doit être accompagné d'un exemplaire de cette licence; + 2 Si le logiciel a été modifié, le licencié doit en faire la mention, de préférence dans chacun des fichiers modifiés dont la nature permet une telle mention; + 3 Les étiquettes ou mentions faisant état des droits d'auteur, des marques de commerce, des garanties ou de la paternité concernant le logiciel ne doivent pas être modifiées ou supprimées, à moins que ces étiquettes ou mentions ne soient inapplicables à un logiciel modifié ou dérivé donné. + +4.1. Réciprocité +Chaque fois que le licencié distribue le logiciel, le concédant offre au récipiendaire une concession sur le logiciel selon les termes de la présente licence. Le licencié doit offrir une concession selon les termes de la présente licence pour tout logiciel modifié ou dérivé qu'il distribue. + +Chaque fois que le licencié distribue le logiciel, un logiciel modifié, ou un logiciel dérivé, ce dernier doit assumer l'obligation d'en distribuer le code source, de la manière prévue au troisième alinéa de l'article 3. + +4.2. Compatibilité +Dans la mesure où le licencié souhaite distribuer un logiciel modifié ou dérivé combiné à un logiciel assujetti à une licence compatible, mais dont il ne serait pas possible d'en respecter les termes, le concédant offre, en plus de la présente concession, une concession selon les termes de cette licence compatible. + +Un licencié qui est titulaire exclusif du droit d'auteur sur le logiciel assujetti à une licence compatible ne peut pas se prévaloir de cette offre. Il en est de même pour toute autre personne dûment autorisée à sous-licencier par le titulaire exclusif du droit d'auteur sur le logiciel assujetti à une licence compatible. + +Est considérée comme une licence compatible toute licence libre approuvée ou certifiée par la Free Software Foundation ou l'Open Source Initiative, dont le niveau de réciprocité est comparable à celui de la présente licence, sans toutefois être moindre, notamment : + + 1 Common Public License Version 1.0 (CPL-1.0) + 2 Contrat de licence de logiciel libre CeCILL, version 2.1 (CECILL-2.1) + 3 Eclipse Public License - v 1.0 (EPL-1.0) + 4 European Union Public License, version 1.1 (EUPL v. 1.1) + 5 GNU General Public License Version 2 (GNU GPLv2) + 6 GNU General Public License Version 3 (GNU GPLv3) + +5. Contributions +Sous réserve d'une entente distincte, toute contribution soumise par un contributeur au concédant pour inclusion dans le logiciel sera soumise aux termes de cette licence. + +6. Marques de commerce +La licence n'accorde aucune permission particulière qui permettrait d'utiliser les marques de commerce du concédant, autre que celle requise permettant d'identifier la provenance du logiciel. + +7. Garanties +Sauf mention contraire, le concédant distribue le logiciel sans aucune garantie, aux risques et périls de l'acquéreur de la copie du logiciel, et ce, sans assurer que le logiciel puisse répondre à un besoin particulier ou puisse donner un résultat quelconque. + +Sans lier le concédant d'une quelconque manière, rien n'empêche un licencié d'offrir ou d'exclure des garanties ou du support. + +8. Responsabilité +Le licencié est responsable de tout préjudice résultant de l'exercice des droits accordés par la licence. + +Le concédant ne saurait être tenu responsable du préjudice subi par le licencié ou par des tiers, pour quelque cause que ce soit en lien avec la licence et les droits qui y sont accordés. + +9. Résiliation +La présente licence est résiliée de plein droit dès que les droits qui y sont accordés ne sont pas exercés conformément aux termes qui y sont stipulés. + +Toutefois, si le défaut est corrigé dans un délai de 30 jours de sa prise de connaissance par la personne en défaut, et qu'il s'agit du premier défaut, la licence est accordée de nouveau. + +Pour tout défaut subséquent, le consentement exprès du concédant est nécessaire afin que la licence soit accordée de nouveau. + +10. Version de la licence +Le Centre de services partagés du Québec, ses ayants cause ou toute personne qu'il désigne, peuvent diffuser des versions révisées ou modifiées de cette licence. Chaque version recevra un numéro unique. Si un logiciel est déjà soumis aux termes d'une version spécifique, c'est seulement cette version qui liera les parties à la licence. + +Le concédant peut aussi choisir de concéder la licence sous la version actuelle ou toute version ultérieure, auquel cas le licencié peut choisir sous quelle version la licence lui est accordée. + +11. Divers +Dans la mesure où le concédant est un ministère, un organisme public ou une personne morale de droit public, créés en vertu d'une loi de l'Assemblée nationale du Québec, la licence est régie par le droit applicable au Québec et en cas de contestation, les tribunaux du Québec seront seuls compétents. + +La présente licence peut être distribuée sans conditions particulières. Toutefois, une version modifiée doit être distribuée sous un nom différent. Toute référence au Centre de services partagés du Québec, et, le cas échéant, ses ayant cause, doit être retirée, autre que celle permettant d'identifier la provenance de la licence. diff --git a/spec.md b/spec.md index e98c762..29de0fa 100644 --- a/spec.md +++ b/spec.md @@ -29,6 +29,9 @@ Les conséquences de ce contexte sont des exigences : - **Aucune installation de serveur ni de base de données.** L'exécutable se copie et se lance. - **Rien ne sort de la machine.** Pas de télémétrie, pas de service distant. + Le panneau « À propos » porte quatre liens (§ 18.6) : celui que l'opérateur + clique s'ouvre dans son navigateur, hors de l'application, qui n'envoie + rien elle-même et n'ouvre aucune autre adresse. - Les données se copient, se sauvegardent et se transmettent comme des fichiers ordinaires. - **L'interface est en français.** Une seule langue dans la première @@ -252,6 +255,101 @@ des étapes 2 ou 3 avant la 9 — le générateur refuse une configuration à z participant ou à zéro table (§ 15.4) — et la 10 avant la 12 pour qu'une impression ne sorte pas en brouillon. +### 2.2 Les fonctionnalités, numérotées + +Le panneau « À propos » (§ 18.6) porte le sommaire des fonctionnalités du +logiciel, par catégorie. Chaque fonctionnalité a un **numéro** : le code de sa +catégorie, un tiret, deux chiffres. Un numéro est unique et **ne se réutilise +jamais** : une fonctionnalité retirée laisse le sien parmi les numéros retirés, +et une fonctionnalité nouvelle prend le plus grand numéro de sa catégorie, +retirés compris, plus un. Un signalement, une note de version ou une demande +peut ainsi nommer `PLA-08` sans craindre qu'il désigne demain autre chose. + +Le tableau ci-dessous et le sommaire de l'application portent les mêmes +catégories, les mêmes numéros dans le même ordre, les mêmes intitulés et les +mêmes renvois ; une épreuve les compare, et vérifie que chaque renvoi désigne +une section de ce document. Les deux s'écrivent à la main (§ 19.8). + +**Préparer** — `PRE` + +| numéro | fonctionnalité | sections | +|---|---|---| +| `PRE-01` | Importer la liste des participants en CSV, après un aperçu | § 10.1 | +| `PRE-02` | Réexporter les lignes refusées d'un import | § 10.1 | +| `PRE-03` | Fondre les orthographes d'une même appartenance, jamais en silence | § 10.1 | +| `PRE-04` | Saisir et corriger les participants à la main | § 10.2 | +| `PRE-05` | Exporter la liste des participants en CSV, dans la forme qu'il importe | § 10.2 | +| `PRE-06` | Étiqueter les personnes | § 4.5 | +| `PRE-07` | Dire la présence de chacun, tour par tour | § 4, § 10.2 | +| `PRE-08` | Exclure une personne, puis la réintégrer | § 4.4 | +| `PRE-09` | Créer les tables, avec un nombre de places par défaut et des surcharges | § 6.1 | +| `PRE-10` | Fixer le nombre de tours | § 2.1, § 4.3 | +| `PRE-11` | Donner des objectifs aux tables, à l'écran ou en CSV, et les exporter | § 4.5, § 10.4 | +| `PRE-12` | Télécharger les modèles CSV et les fichiers d'exemple | § 10.1, § 10.3 | + +**Placer** — `PLA` + +| numéro | fonctionnalité | sections | +|---|---|---| +| `PLA-01` | Disposer les tables sur un plan de salle à l'échelle | § 7.1, § 7.7 | +| `PLA-02` | Déplacer et échanger les personnes sur le plan, au pointeur, au doigt ou par menu | § 7.1, § 7.3 | +| `PLA-03` | Désigner les animateurs, table par table | § 2.1, § 5.8 | +| `PLA-04` | Réserver des places à la main | § 5.8 | +| `PLA-05` | Refuser un geste impossible en nommant sa cause et son remède | § 5.9 | +| `PLA-06` | Lire le diagnostic avant toute recherche, avec le plafond et le plancher | § 5.5, § 5.6 | +| `PLA-07` | Choisir les critères et l'ordre des priorités | § 5.3, § 5.7 | +| `PLA-08` | Générer plusieurs propositions comparables, reproductibles par leur graine | § 5.7 | +| `PLA-09` | Calculer les propositions en parallèle, sur les cœurs du poste | § 5.10 | +| `PLA-10` | Repartir d'une proposition et en figer des tours | § 5.7 | +| `PLA-11` | Classer les propositions, et garder les meilleures | § 5.7 | +| `PLA-12` | Mesurer un placement sur la page de qualité | § 12 | +| `PLA-13` | Comparer deux placements par leur manque | § 12.10 | +| `PLA-14` | Retenir un placement | § 9 | +| `PLA-15` | Ajuster le placement retenu, qui suit les présences | § 5.8 | +| `PLA-16` | Signaler les tables en conflit sur le plan | § 7.5 | +| `PLA-17` | Inscrire le numéro de chaque table sur son plateau | § 7.7 | + +**Produire** — `PRO` + +| numéro | fonctionnalité | sections | +|---|---|---| +| `PRO-01` | Produire la planche de badges en PDF, sur A4 ou Lettre | § 11.1, § 11.2 | +| `PRO-02` | Vérifier le découpage par la feuille de contrôle | § 11.3 | +| `PRO-03` | Ordonner les badges pour l'accueil | § 11.6 | +| `PRO-04` | Ouvrir le dossier où la planche se dépose | § 11.6 | +| `PRO-05` | Imprimer la liste d'accueil | § 11.7 | +| `PRO-06` | Imprimer une feuille par table | § 11.7 | +| `PRO-07` | Imprimer le plan de salle, tour par tour | § 11.7 | +| `PRO-08` | Marquer BROUILLON ce qui n'est pas retenu | § 11.7 | + +**Fichiers et sécurité** — `FIC` + +| numéro | fonctionnalité | sections | +|---|---|---| +| `FIC-01` | Garder chaque événement dans des fichiers ordinaires, listés au premier écran | § 8.1, § 8.6 | +| `FIC-02` | Enregistrer chaque geste avec son entrée d'historique | § 8.2 | +| `FIC-03` | Revenir à un instant de l'historique | § 8.3 | +| `FIC-04` | Ouvrir en lecture par défaut, modifier sur demande | § 8.4 | +| `FIC-05` | Bloquer un plan distribué | § 9 | +| `FIC-06` | Copier, renommer, importer et supprimer un événement, vers une corbeille | § 8.7 | +| `FIC-07` | Résister à une panne, et reprendre un fichier abîmé | § 8.8 | +| `FIC-08` | Choisir le dossier de travail | § 8.6 | +| `FIC-09` | Travailler hors ligne, sans rien envoyer | § 2 | + +**Interface** — `INT` + +| numéro | fonctionnalité | sections | +|---|---|---| +| `INT-01` | Grouper les sections en trois phases : Préparer, Placer, Produire | § 2.1 | +| `INT-02` | Charger une démonstration | § 15 | +| `INT-03` | Choisir le thème clair ou sombre | § 14.5, § 18.6 | +| `INT-04` | Régler la taille du texte de l'écran | § 18.6 | +| `INT-05` | Agir au clavier, avec des contrastes vérifiés dans les deux thèmes | § 14.5 | +| `INT-06` | Voir la version partout, et la copier depuis « À propos » | § 18.6 | +| `INT-07` | Lire les licences, les liens et ce sommaire dans « À propos » | § 2.2, § 18.6 | + +**Numéros retirés** : aucun. + ## 3. Périmètre **Dans le périmètre.** Saisir les participants, décrire la salle, générer et @@ -7832,6 +7930,34 @@ Au-dessus du bloc, le panneau nomme l'éditeur, **TechnoLibre Inc.**, et l'auteu **Mathieu Benoit**, développeur, concepteur et mainteneur du logiciel ; « Copier » ne les emporte pas. +**Le reste du panneau « À propos ».** Au-dessus de l'éditeur, le **logo de +TechnoLibre** : un clic ouvre un petit menu, « Télécharger en SVG » et +« Télécharger en PNG », dont chaque commande enregistre les octets exacts du +fichier que l'éditeur fournit, par l'enregistrement commun du logiciel. Le +chemin écrit se dit sous le logo ; un enregistrement refusé — un dossier où +rien ne s'écrit — s'y dit aussi, comme tout refus d'écriture, et le +téléchargement suivant le retire. Le logo se charge à part, et le lancement ne +le lit pas. Sous l'éditeur, le lien vers son site, `https://technolibre.ca` ; +sous l'auteur, le lien vers le code source du projet. Suivent trois cartes : + +- la **licence** : le choix entre l'AGPL-3.0-or-later et la LiLiQ-R+, + l'identifiant SPDX `AGPL-3.0-or-later OR LiLiQ-Rplus-1.1`, ce que demande la + licence choisie, les liens vers les deux textes officiels, et les deux textes + complets, livrés avec le logiciel et lisibles sur place, sans réseau, un à la + fois ; +- l'**attribution**, une demande de courtoisie — afficher le logo de + TechnoLibre sur les badges, puis un lien vers son site — qui n'ajoute aucune + condition à la licence ; +- le **sommaire des fonctionnalités** du § 2.2, par catégorie, chaque numéro + devant son intitulé. + +**Un lien ne fait jamais naviguer la fenêtre de l'application.** Chacun s'ouvre +dans une nouvelle fenêtre, sans ouvreur ni référent : un nouvel onglet sur +`web` ; sous `electron`, la coquille refuse toute fenêtre et toute navigation, +et passe au navigateur du système l'adresse cliquée quand elle est exactement +l'une des quatre adresses https du panneau (§ 2). Une autre adresse n'ouvre +rien. + **Le panneau « Paramètres »** s'ouvre du bandeau, par la commande placée juste à gauche de « À propos », et remplace l'écran comme lui ; les deux ne sont jamais ouverts ensemble, et « Fermer » rend l'écran d'où il s'est ouvert. Il porte deux diff --git a/src/actifs/actifs.navigateur.test.js b/src/actifs/actifs.navigateur.test.js new file mode 100644 index 0000000..9e499e3 --- /dev/null +++ b/src/actifs/actifs.navigateur.test.js @@ -0,0 +1,66 @@ +// © 2026 TechnoLibre (http://www.technolibre.ca) +// License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) + +// Les actifs chargés à la demande, dans un vrai moteur de rendu : le logo de +// TechnoLibre et les deux textes de licence. Les octets et les textes que +// rendent les chargeurs sont ceux des fichiers, lus par le disque à part, +// par la commande readFile du lanceur, depuis la racine du projet ; l'image +// affichable du logo est celle du SVG. +// +// Le projet navigateur emploie expect, et test et describe de Vitest +// (§ 14.8). +import { commands } from 'vitest/browser'; +import { describe, expect, test } from 'vitest'; +import { LICENCES, chargerTexteLicence } from './licences.js'; +import { FICHIERS_LOGO, chargerLogo } from './logo.js'; + +// Les octets d'un fichier, lus par le disque, en base64 puis décodés. +async function octetsDuDisque(chemin) { + const base64 = await commands.readFile(chemin, 'base64'); + return Uint8Array.from(atob(base64), (caractere) => caractere.charCodeAt(0)); +} + +describe('chargerLogo', () => { + test('rend les octets exacts du SVG et du PNG de src/actifs, et une image affichable du SVG', async () => { + const logo = await chargerLogo(); + expect(logo.svg).toBeInstanceOf(Uint8Array); + expect(logo.png).toBeInstanceOf(Uint8Array); + expect([...logo.svg]).toEqual([...(await octetsDuDisque(`src/actifs/${FICHIERS_LOGO.svg}`))]); + expect([...logo.png]).toEqual([...(await octetsDuDisque(`src/actifs/${FICHIERS_LOGO.png}`))]); + expect(logo.png.length).toBeGreaterThan(1000); + expect([...logo.png.slice(0, 4)]).toEqual([0x89, 0x50, 0x4e, 0x47]); + + const image = new Image(); + image.src = logo.image; + await image.decode(); + expect([image.naturalWidth, image.naturalHeight]).toEqual([250, 50]); + expect(logo.image.startsWith('data:image/svg+xml')).toBe(true); + }); + + test('le nom proposé de chaque forme est celui de son fichier dans src/actifs, gelé', () => { + expect(FICHIERS_LOGO).toEqual({ svg: 'full_logo_technolibre_2023.svg', png: 'full_logo_technolibre_2023.png' }); + expect(Object.isFrozen(FICHIERS_LOGO)).toBe(true); + }); + + test('chaque appel rend des tableaux neufs : un appelant peut écrire dans les siens', async () => { + const [a, b] = [await chargerLogo(), await chargerLogo()]; + expect(a.svg).not.toBe(b.svg); + expect(a.png).not.toBe(b.png); + a.png[0] = 0; + expect(b.png[0]).toBe(0x89); + }); +}); + +describe('chargerTexteLicence', () => { + test('rend le texte exact de chaque licence de public/licences/ ; un nom inconnu rejette par RangeError', async () => { + expect(LICENCES.map(({ nom }) => nom)).toEqual(['agpl', 'liliq']); + for (const { nom, fichier } of LICENCES) { + const disque = await commands.readFile(`public/licences/${fichier}`); + expect(await chargerTexteLicence(nom), nom).toBe(disque); + } + expect((await chargerTexteLicence('agpl')).includes('GNU AFFERO GENERAL PUBLIC LICENSE')).toBe(true); + expect((await chargerTexteLicence('liliq')).startsWith('Licence Libre du Québec')).toBe(true); + await expect(chargerTexteLicence('autre')).rejects.toThrow(RangeError); + await expect(chargerTexteLicence('toString')).rejects.toThrow(RangeError); + }); +}); diff --git a/src/actifs/donnees_logo.js b/src/actifs/donnees_logo.js new file mode 100644 index 0000000..f3c60de --- /dev/null +++ b/src/actifs/donnees_logo.js @@ -0,0 +1,8 @@ +// © 2026 TechnoLibre (http://www.technolibre.ca) +// License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) + +// Les deux fichiers du logo de TechnoLibre, incrustés dans le morceau différé +// que chargerLogo (logo.js) importe à la demande : le SVG en texte, le PNG en +// URL data: base64. +export { default as svg } from './full_logo_technolibre_2023.svg?raw'; +export { default as png } from './full_logo_technolibre_2023.png?inline'; diff --git a/src/actifs/full_logo_technolibre_2023.png b/src/actifs/full_logo_technolibre_2023.png new file mode 100644 index 0000000000000000000000000000000000000000..4b56bfafff42221c81ac350221cea464cdb9330d GIT binary patch literal 56854 zcmeFZ^;?u{+crGN5^qIN7Sg4nq9Py-Ln@^LgMf4iNS6Z)T`rb{q|z~TNQ-o%zzjKn zbR*3WLw9`Vh0p!I&!6!9@VafY4TEsT5&N+paS`|$AxCzN{u&GhBYXKmS_KBX&JTlK zLjH#Yd}k@wd=9)_eg8ts0S2oKhF(OSdo^6(n{!S29*lpNL>1S_T5?3djBctZ4Hh#Mk#OiwdQpwa_Q?OrCc_aN=T4p)= ztEQ1)?{EkQcl>ZDw<4ujyixFG^DRY%ona%z)m~Z=YRSk+y7p4S4Tlp2BQrm4S-O)LF9uc<|^q)s10WBNwEus9yl428=zo2F@$)tD|N0pIZz?3Y|Ngsu_5W@B|3v*?Yk=PW zpK<;F)Sd2fp@4ckzHEK}Wv-!4ZIXFkSzY_6JM6x)zB={%d?xrr?^>mMi-t+IY+ zPzQXjTJ`VV6p)t6*Q~<(CI?XEskh(<28wgt6!QxULkGZ@M)SFvWk+@A`qkDlPqfPO zbIvQlE;lJCs&qNwD07y~`z_GIYwc6+cDmXse?y4n`P_@$_9tn$448L!$rO*wE|4f? zjT_*XB+tjomwPKT)OMC8`QgrZT0M3VIT`G}xYK$+cl8@}X%m_3hppX8=%f14(NWD> zN3AE?-}$IHwHf83Il>M}X|Vsu1R3p(5ttr&yc=K7}&fjcCh2cp89{Khdv#Ld~iFHz^HAsEm9x=Hz3L(dI7` zZo3~pU5+OXxvg;HU-e5KpdLeB0^@jL+W3vTyq^e`(l$3gFViq7mTp&+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)JNsNO=Go?e%z z?Dj0RiOK#_?e3~BN64ma2MhQ?^vxDqWQ%6v)=#-in{709<(lbSfm3?~idJc2@U#u* zJUl$wec;dY@pGu)XSOz1UJH5)m7W%ySrpWr3@0?&OPx}oETf6r%tkfE*-g4!>=Gfz zU&?OyNJdXqICF+BJ};6#*KuX)V-|!>0GIIeV(5if#qRrE={nA{gQrm4s6a$GjJ~ce zSKEKJ9cC0bTbpvt1_vi9kqCY}@u~9g;~)qTY7FX|V7cDNH9MWY$ge&Aj?)k^z%AqMB9g=mMV=_MP79@;w z4Wpk8HcwrhP4dBNK`Bs~Jep{2N?Ds84Lk1=5D+k$_~j(1wgLhu6ew64QNk45lv0kN z%G?URt4ksm$jJNCQ;F1SUDFP+za+EbZxB9hi<4s^8fyO@o%@tf4}p;|NY;^`5)u>Ut{?HjG=ai<^W0g>nYaKdbC7W Nlr=78|8x8C{{cZAgNXnD literal 0 HcmV?d00001 diff --git a/src/actifs/full_logo_technolibre_2023.svg b/src/actifs/full_logo_technolibre_2023.svg new file mode 100644 index 0000000..aa0a1ca --- /dev/null +++ b/src/actifs/full_logo_technolibre_2023.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/actifs/licences.js b/src/actifs/licences.js new file mode 100644 index 0000000..8a22c42 --- /dev/null +++ b/src/actifs/licences.js @@ -0,0 +1,32 @@ +// © 2026 TechnoLibre (http://www.technolibre.ca) +// License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) + +// Les textes complets des deux licences du logiciel, que le panneau +// « À propos » donne à lire sans réseau (§ 18.6) : les fichiers de +// public/licences/, que la construction copie aussi tels quels dans +// www/licences/, d'où l'exécutable les emporte. chargerTexteLicence les lit +// par un import() différé de textes_licences.js : la construction en fait +// un morceau à part, que la page ne télécharge ni ne précharge au +// lancement. + +/** Les licences, dans l'ordre du panneau : leur nom, que porte la commande + * qui ouvre leur texte, et leur fichier sous public/licences/. */ +export const LICENCES = Object.freeze([ + Object.freeze({ nom: 'agpl', fichier: 'AGPL-3.0-or-later.txt' }), + Object.freeze({ nom: 'liliq', fichier: 'LiLiQ-Rplus-1.1.txt' }), +]); + +/** + * Le texte complet d'une licence. + * + * @param {string} nom un nom de LICENCES + * @returns {Promise} + * @throws {RangeError} (rejet) un nom hors de LICENCES + */ +export async function chargerTexteLicence(nom) { + if (!LICENCES.some((licence) => licence.nom === nom)) { + throw new RangeError(`licences : licence inconnue ${JSON.stringify(nom)}`); + } + const textes = await import('./textes_licences.js'); + return textes[nom]; +} diff --git a/src/actifs/logo.js b/src/actifs/logo.js new file mode 100644 index 0000000..04a320f --- /dev/null +++ b/src/actifs/logo.js @@ -0,0 +1,37 @@ +// © 2026 TechnoLibre (http://www.technolibre.ca) +// License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) + +// Le logo de TechnoLibre, marque de l'éditeur, que le panneau « À propos » +// affiche et offre au téléchargement (§ 18.6) : les fichiers +// full_logo_technolibre_2023.svg et .png de ce dossier, tels que TechnoLibre +// les fournit. chargerLogo les lit par un import() différé de +// donnees_logo.js : la construction en fait un morceau à part, que la page +// ne télécharge ni ne précharge au lancement. +// +// Sous Vite, « ?raw » rend le SVG en texte, et « ?inline » le PNG en URL +// data: base64, incrustée dans le morceau : la page les lit sans requête, +// sous file:// où la coquille la charge comme sous http://. Le SVG est de +// l'UTF-8 sans marque d'ordre d'octets : son texte, réencodé, redonne ses +// octets. Les octets du PNG se décodent par octetsDeDonnees (octets.js). +import { octetsDeDonnees } from './octets.js'; + +/** Le nom proposé à l'enregistrement de chaque forme du logo : celui de son + * fichier. */ +export const FICHIERS_LOGO = Object.freeze({ svg: 'full_logo_technolibre_2023.svg', png: 'full_logo_technolibre_2023.png' }); + +/** + * Le logo de TechnoLibre : les octets de ses deux fichiers, et une image + * affichable du SVG, une URL data: que porte l'attribut src d'une image. + * + * @returns {Promise<{svg: Uint8Array, png: Uint8Array, image: string}>} des + * tableaux neufs à chaque appel : un appelant peut écrire dans les + * siens + */ +export async function chargerLogo() { + const { svg, png } = await import('./donnees_logo.js'); + return { + svg: new TextEncoder().encode(svg), + png: octetsDeDonnees(png), + image: `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svg)}`, + }; +} diff --git a/src/actifs/octets.js b/src/actifs/octets.js new file mode 100644 index 0000000..31b63d5 --- /dev/null +++ b/src/actifs/octets.js @@ -0,0 +1,35 @@ +// © 2026 TechnoLibre (http://www.technolibre.ca) +// License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) + +// Le décodage d'une URL data: en base64, celle que « ?inline » rend sous +// Vite pour un fichier binaire : chargerLogo (logo.js) en tire les octets du +// PNG. Le module est pur, sans import : les épreuves node le lisent. + +// Les données d'une URL data: en base64 : l'alphabet base64 et son +// remplissage. L'en-tête, avant la première virgule, s'ouvre sur « data: » +// et se ferme sur « ;base64 » ; le type et ses paramètres, entre les deux, +// ne se lisent pas. +const BASE64 = /^[A-Za-z0-9+/]*={0,2}$/; + +/** + * Les octets d'une URL data: en base64. + * + * @param {string} texte + * @returns {Uint8Array} un tableau neuf à chaque appel + * @throws {TypeError} tout texte qui n'est pas une URL data: en base64 — une + * adresse d'actif, par exemple, qu'une autre configuration de Vite + * rendrait à la place des données + */ +export function octetsDeDonnees(texte) { + const virgule = typeof texte === 'string' ? texte.indexOf(',') : -1; + const entete = virgule === -1 ? '' : texte.slice(0, virgule); + const donnees = virgule === -1 ? '' : texte.slice(virgule + 1); + if (!entete.startsWith('data:') || !entete.endsWith(';base64') || !BASE64.test(donnees)) { + const debut = typeof texte === 'string' ? JSON.stringify(texte.slice(0, 40)) : String(texte); + throw new TypeError(`octetsDeDonnees : URL data: en base64 attendue, reçu ${debut}`); + } + const binaire = atob(donnees); + const octets = new Uint8Array(binaire.length); + for (let i = 0; i < binaire.length; i += 1) octets[i] = binaire.charCodeAt(i); + return octets; +} diff --git a/src/actifs/octets.test.js b/src/actifs/octets.test.js new file mode 100644 index 0000000..fec4e8d --- /dev/null +++ b/src/actifs/octets.test.js @@ -0,0 +1,28 @@ +// © 2026 TechnoLibre (http://www.technolibre.ca) +// License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) + +// Le décodage d'une URL data: en base64, par lequel chargerLogo rend les +// octets du PNG. Le chargement lui-même passe par Vite (« ?raw », +// « ?inline ») et s'éprouve dans le navigateur (actifs.navigateur.test.js). +import assert from 'node:assert/strict'; +import { describe, test } from '../../test/lanceur.js'; +import { octetsDeDonnees } from './octets.js'; + +describe('octetsDeDonnees', () => { + test('rend les octets d’une URL data: en base64, paramètres compris, dans un tableau neuf à chaque appel', () => { + const octets = [0, 1, 127, 128, 254, 255, 0x89, 0x50]; + const url = `data:image/png;base64,${Buffer.from(octets).toString('base64')}`; + assert.deepEqual([...octetsDeDonnees(url)], octets); + assert.ok(octetsDeDonnees(url) instanceof Uint8Array); + assert.notEqual(octetsDeDonnees(url), octetsDeDonnees(url)); + assert.deepEqual([...octetsDeDonnees('data:image/png;nom=x;base64,AAE=')], [0, 1]); + assert.deepEqual([...octetsDeDonnees('data:;base64,')], []); + }); + + test('tout autre texte lève TypeError : une adresse d’actif, une URL data: sans base64, même quand ses données en ont l’alphabet, des données hors de l’alphabet, une valeur qui n’est pas une chaîne', () => { + const fautes = ['./assets/logo.png', 'data:image/svg+xml,%3Csvg%3E', 'data:text/plain,QUJD', 'texte:;base64,QUJD', 'data:image/png;base64,@@', null, 7]; + for (const faux of fautes) { + assert.throws(() => octetsDeDonnees(faux), TypeError, String(faux)); + } + }); +}); diff --git a/src/actifs/textes_licences.js b/src/actifs/textes_licences.js new file mode 100644 index 0000000..f2ae7d4 --- /dev/null +++ b/src/actifs/textes_licences.js @@ -0,0 +1,10 @@ +// © 2026 TechnoLibre (http://www.technolibre.ca) +// License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) + +// Les textes des deux licences, incrustés par « ?raw » dans le morceau +// différé que chargerTexteLicence (licences.js) importe à la demande, sous +// le nom de chacune dans LICENCES. Les fichiers restent sous public/, que la +// construction copie aussi tels quels : le serveur de développement le +// signale à chaque import, sans conséquence sur ce qu'il sert. +export { default as agpl } from '../../public/licences/AGPL-3.0-or-later.txt?raw'; +export { default as liliq } from '../../public/licences/LiLiQ-Rplus-1.1.txt?raw'; diff --git a/src/interface/APropos.navigateur.test.js b/src/interface/APropos.navigateur.test.js index f9a0595..d8a8fc9 100644 --- a/src/interface/APropos.navigateur.test.js +++ b/src/interface/APropos.navigateur.test.js @@ -3,20 +3,29 @@ // Le panneau « À propos » dans un vrai moteur de rendu (§ 18.6) : monté // seul, sur un presse-papiers d'épreuve qui relève ce qu'on lui remet ou -// refuse. Le bloc copié est celui qu'on lui passe ; l'ouverture depuis le -// bandeau et la composition du bloc s'éprouvent dans App.navigateur.test.js. +// refuse, et une façade d'épreuve dont enregistrerSous relève le nom et les +// octets reçus. Le bloc copié est celui qu'on lui passe ; l'ouverture depuis +// le bandeau et la composition du bloc s'éprouvent dans App.navigateur.test.js. +// Les octets du logo et les textes des licences se comparent aux fichiers, +// lus par le disque par la commande readFile du lanceur. Aucune épreuve ne +// suit un lien : le navigateur d'épreuve n'a pas de réseau (§ 19.2). // // Le projet navigateur emploie expect, et test et describe de Vitest // (§ 14.8). import './jetons.css'; import { flushSync, mount, unmount } from 'svelte'; import { afterEach, describe, expect, test, vi } from 'vitest'; +import { commands } from 'vitest/browser'; +import { LICENCES } from '../actifs/licences.js'; +import { FICHIERS_LOGO } from '../actifs/logo.js'; import { creerHorlogePilotee } from '../application/horloge.js'; import { TABLES_APPLICATION } from '../application/libelles.js'; import { creerTraduction } from '../application/traduction.js'; import { couleurDeJeton } from '../../test/navigateur/captures.js'; import { composantes, contraste, couleurTexte, fondPeintSous, sousTheme } from '../../test/navigateur/rendu.js'; import APropos from './APropos.svelte'; +import { LIENS, cleDeLien } from './apropos.js'; +import { CATEGORIES, cleDeCategorie, cleDeFonctionnalite } from './fonctionnalites.js'; import { TABLES_INTERFACE } from './libelles.js'; const { t } = creerTraduction([...TABLES_APPLICATION, ...TABLES_INTERFACE]); @@ -44,12 +53,28 @@ function pressePapiersDEpreuve({ refus = null } = {}) { }; } -function monter(props) { +// Une façade d'épreuve : enregistrerSous relève chaque nom, ses octets et la +// promesse qu'elle rend, celle du chemin que donne chemin(nom), null pour un +// téléchargement. +function facadeDEpreuve({ chemin = (nom) => `/dossier/${nom}` } = {}) { + const enregistres = []; + return { + enregistres, + enregistrerSous(nom, octets) { + const rendu = Promise.resolve(chemin(nom)); + enregistres.push({ nom, octets: [...octets], rendu }); + return rendu; + }, + }; +} + +function monter(props, { facade = facadeDEpreuve() } = {}) { const conteneur = document.createElement('div'); document.body.prepend(conteneur); const contexte = new Map([ ['t', t], ['horloge', creerHorlogePilotee()], + ['facade', facade], ]); const composant = mount(APropos, { target: conteneur, props, context: contexte }); flushSync(); @@ -120,3 +145,231 @@ describe('« À propos » : l’habillage (§ 18.6)', () => { expect(fermer).toHaveBeenCalledTimes(1); }); }); + +// Les octets d'un fichier du projet, lus par le disque. +async function octetsDuDisque(chemin) { + const base64 = await commands.readFile(chemin, 'base64'); + return [...Uint8Array.from(atob(base64), (caractere) => caractere.charCodeAt(0))]; +} + +const monterSeul = (facade) => monter({ bloc: BLOC, pressePapiers: pressePapiersDEpreuve(), fermer: () => {} }, { facade }); + +describe('« À propos » : le logo de TechnoLibre (§ 18.6)', () => { + test('le logo s’affiche dans un bouton qui ouvre et referme un petit menu de deux téléchargements, SVG et PNG', async () => { + const conteneur = monterSeul(facadeDEpreuve()); + const bouton = conteneur.querySelector('[data-commande="logo"]'); + expect(bouton.getAttribute('aria-label')).toBe(t('coquille.apropos.logo.menu')); + await vi.waitFor(() => { + flushSync(); + expect(bouton.querySelector('img')?.getAttribute('src')?.startsWith('data:image/svg+xml')).toBe(true); + }); + const image = bouton.querySelector('img'); + await image.decode(); + expect(image.getBoundingClientRect().width).toBeGreaterThan(100); + expect(bouton.getAttribute('aria-expanded')).toBe('false'); + const menu = document.getElementById(bouton.getAttribute('aria-controls')); + expect(menu.hidden).toBe(true); + expect(conteneur.querySelector('[data-commande="telechargerSvg"]')).toBeNull(); + + bouton.click(); + flushSync(); + expect(bouton.getAttribute('aria-expanded')).toBe('true'); + expect(menu.hidden).toBe(false); + expect([...menu.querySelectorAll('[data-commande]')].map((c) => [c.dataset.commande, c.textContent.trim()])).toEqual([ + ['telechargerSvg', t('coquille.apropos.logo.telechargerSvg')], + ['telechargerPng', t('coquille.apropos.logo.telechargerPng')], + ]); + bouton.click(); + flushSync(); + expect(bouton.getAttribute('aria-expanded')).toBe('false'); + expect(menu.hidden).toBe(true); + }); + + test('chaque téléchargement remet à enregistrerSous le nom et les octets exacts du fichier, ferme le menu et dit où le logo est enregistré', async () => { + const facade = facadeDEpreuve(); + const conteneur = monterSeul(facade); + const bouton = conteneur.querySelector('[data-commande="logo"]'); + for (const [forme, commande] of [['svg', 'telechargerSvg'], ['png', 'telechargerPng']]) { + bouton.click(); + flushSync(); + conteneur.querySelector(`[data-commande="${commande}"]`).click(); + await vi.waitFor(() => expect(facade.enregistres.length).toBe(forme === 'svg' ? 1 : 2)); + const { nom, octets } = facade.enregistres.at(-1); + expect(nom).toBe(FICHIERS_LOGO[forme]); + expect(octets).toEqual(await octetsDuDisque(`src/actifs/${FICHIERS_LOGO[forme]}`)); + await vi.waitFor(() => { + flushSync(); + expect(bouton.getAttribute('aria-expanded')).toBe('false'); + expect(conteneur.querySelector('[data-logo-enregistre]')?.textContent).toBe( + t('coquille.apropos.logo.enregistre', { chemin: `/dossier/${FICHIERS_LOGO[forme]}` }), + ); + }); + expect(document.activeElement).toBe(bouton); + } + }); + + test('un téléchargement sans chemin — celui du web — ne dit rien ; Échap ferme le menu et rend le focus au logo', async () => { + const facade = facadeDEpreuve({ chemin: () => null }); + const conteneur = monterSeul(facade); + const bouton = conteneur.querySelector('[data-commande="logo"]'); + bouton.click(); + flushSync(); + conteneur.querySelector('[data-commande="telechargerPng"]').click(); + await vi.waitFor(() => expect(facade.enregistres.length).toBe(1)); + // La suite de l'enregistrement s'exécute une microtâche après la + // promesse rendue. + await facade.enregistres[0].rendu; + await Promise.resolve(); + flushSync(); + expect(conteneur.querySelector('[data-logo-enregistre]')).toBeNull(); + + bouton.click(); + flushSync(); + const svg = conteneur.querySelector('[data-commande="telechargerSvg"]'); + svg.focus(); + svg.dispatchEvent(new KeyboardEvent('keydown', { key: 'Escape', bubbles: true, cancelable: true })); + flushSync(); + expect(bouton.getAttribute('aria-expanded')).toBe('false'); + expect(document.activeElement).toBe(bouton); + }); + + test('un enregistrement refusé se dit sous le logo, désigné par le logo, qui garde le focus, sans chemin ; le suivant, abouti, le retire', async () => { + // Une façade dont enregistrerSous rend un chemin, sauf au deuxième + // appel : sa promesse attend que l'épreuve la rejette, menu déjà fermé, + // par un refus codé, comme la coquille un dossier où rien ne s'écrit. + const details = { chemin: FICHIERS_LOGO.png, dossier: '/dossier', cause: 'EACCES' }; + const enregistres = []; + let rejeter = null; + const facade = { + enregistrerSous(nom) { + enregistres.push(nom); + if (enregistres.length !== 2) return Promise.resolve(`/dossier/${nom}`); + return new Promise((_, rejet) => (rejeter = rejet)); + }, + }; + const conteneur = monterSeul(facade); + const bouton = conteneur.querySelector('[data-commande="logo"]'); + const telecharger = async (commande, rang) => { + bouton.click(); + flushSync(); + conteneur.querySelector(`[data-commande="${commande}"]`).click(); + await vi.waitFor(() => expect(enregistres.length).toBe(rang)); + }; + + await telecharger('telechargerSvg', 1); + await vi.waitFor(() => { + flushSync(); + expect(conteneur.querySelector('[data-logo-enregistre]')).not.toBeNull(); + }); + + await telecharger('telechargerPng', 2); + flushSync(); + expect(conteneur.querySelector('[data-commande="telechargerPng"]')).toBeNull(); + rejeter(Object.assign(new Error('ECRITURE'), { code: 'ECRITURE', details })); + await vi.waitFor(() => { + flushSync(); + expect(conteneur.querySelector('[data-refus="ECRITURE"]')).not.toBeNull(); + }); + const refus = conteneur.querySelector('[data-refus="ECRITURE"]'); + expect(refus.textContent).toContain(t('ECRITURE', details)); + expect(refus.closest('.logo')).toBe(bouton.closest('.logo')); + expect(bouton.getAttribute('aria-describedby')).toBe(refus.id); + expect(conteneur.querySelector('[data-logo-enregistre]')).toBeNull(); + expect(bouton.getAttribute('aria-expanded')).toBe('false'); + expect(document.activeElement).toBe(bouton); + + await telecharger('telechargerSvg', 3); + await vi.waitFor(() => { + flushSync(); + expect(conteneur.querySelector('[data-logo-enregistre]')).not.toBeNull(); + }); + expect(conteneur.querySelector('[data-refus]')).toBeNull(); + expect(bouton.hasAttribute('aria-describedby')).toBe(false); + }); +}); + +describe('« À propos » : les liens (§ 2, § 18.6)', () => { + test('les quatre liens, chacun vers son adresse, dans un nouvel onglet, sans ouvreur ni référent ; aucun autre lien', () => { + const conteneur = monterSeul(facadeDEpreuve()); + const liens = [...conteneur.querySelectorAll('a')]; + expect(liens.map((a) => a.dataset.lien).sort()).toEqual(Object.keys(LIENS).sort()); + for (const a of liens) { + const nom = a.dataset.lien; + expect(a.getAttribute('href'), nom).toBe(LIENS[nom]); + expect(a.getAttribute('target'), nom).toBe('_blank'); + expect(a.getAttribute('rel'), nom).toBe('noopener noreferrer'); + expect(a.textContent.trim(), nom).toBe(t(cleDeLien(nom))); + } + }); + + test('un lien se lit dans les deux thèmes, souligné, au contraste du texte', async () => { + const conteneur = monterSeul(facadeDEpreuve()); + const lien = conteneur.querySelector('[data-lien="projet"]'); + for (const theme of ['clair', 'sombre']) { + await sousTheme(theme, async () => { + const [fond] = fondPeintSous(lien); + expect(contraste(couleurTexte(lien), fond), theme).toBeGreaterThanOrEqual(4.5); + expect(getComputedStyle(lien).textDecorationLine, theme).toContain('underline'); + }); + } + }); +}); + +describe('« À propos » : la licence et l’attribution (§ 18.6)', () => { + test('la licence dit le choix entre les deux licences, l’identifiant SPDX et ce que demande la licence choisie ; l’attribution suit', () => { + const conteneur = monterSeul(facadeDEpreuve()); + const licence = [...conteneur.querySelectorAll('section[aria-labelledby]')].find( + (s) => s.querySelector('h2')?.textContent === t('coquille.apropos.licence.titre'), + ); + expect(licence, 'carte Licence').toBeDefined(); + const texte = licence.textContent; + for (const cle of ['choix', 'agpl', 'liliq', 'spdx', 'textes', 'respecter', 'contributions']) { + expect(texte.includes(t(`coquille.apropos.licence.${cle}`)), cle).toBe(true); + } + for (const rang of [1, 2, 3, 4, 5]) expect(texte.includes(t(`coquille.apropos.licence.obligation${rang}`)), rang).toBe(true); + expect(licence.querySelector('code')?.textContent).toBe(t('coquille.apropos.licence.spdxValeur')); + expect([...licence.querySelectorAll('[data-lien]')].map((a) => a.dataset.lien)).toEqual(['agpl', 'liliq']); + const attribution = [...conteneur.querySelectorAll('section[aria-labelledby]')].find( + (s) => s.querySelector('h2')?.textContent === t('coquille.apropos.attribution.titre'), + ); + expect(attribution?.textContent.includes(t('coquille.apropos.attribution.texte'))).toBe(true); + }); + + test('chaque texte complet se lit dans le panneau, à la demande, tel que son fichier ; un seul à la fois, que « Fermer le texte » retire', async () => { + const conteneur = monterSeul(facadeDEpreuve()); + expect(conteneur.querySelector('[data-texte-licence]')).toBeNull(); + const commandes = { agpl: 'lireAgpl', liliq: 'lireLiliq' }; + for (const { nom, fichier } of LICENCES) { + conteneur.querySelector(`[data-commande="${commandes[nom]}"]`).click(); + const disque = await commands.readFile(`public/licences/${fichier}`); + await vi.waitFor(() => { + flushSync(); + expect(conteneur.querySelector(`[data-texte-licence="${nom}"]`)?.textContent).toBe(disque); + }); + expect(conteneur.querySelectorAll('[data-texte-licence]').length).toBe(1); + const pre = conteneur.querySelector('[data-texte-licence]'); + expect(pre.scrollWidth, nom).toBeLessThanOrEqual(pre.clientWidth + 1); + } + conteneur.querySelector('[data-commande="fermerTexte"]').click(); + flushSync(); + expect(conteneur.querySelector('[data-texte-licence]')).toBeNull(); + }); +}); + +describe('« À propos » : le sommaire des fonctionnalités (§ 2.2)', () => { + test('chaque catégorie, dans l’ordre, sous son libellé, puis chacune de ses fonctionnalités, son numéro avant son intitulé', () => { + const conteneur = monterSeul(facadeDEpreuve()); + const blocs = [...conteneur.querySelectorAll('[data-categorie]')]; + expect(blocs.map((b) => b.dataset.categorie)).toEqual(CATEGORIES.map(({ code }) => code)); + for (const { code, fonctionnalites } of CATEGORIES) { + const bloc = conteneur.querySelector(`[data-categorie="${code}"]`); + expect(bloc.querySelector('h3')?.textContent, code).toBe(t(cleDeCategorie(code))); + const lignes = [...bloc.querySelectorAll('[data-fonctionnalite]')]; + expect(lignes.map((l) => l.dataset.fonctionnalite), code).toEqual(fonctionnalites.map(({ numero }) => numero)); + for (const ligne of lignes) { + const numero = ligne.dataset.fonctionnalite; + expect(ligne.textContent.replace(/\s+/gu, ' ').trim(), numero).toBe(`${numero} ${t(cleDeFonctionnalite(numero))}`); + } + } + }); +}); diff --git a/src/interface/APropos.svelte b/src/interface/APropos.svelte index 7c8f749..434c959 100644 --- a/src/interface/APropos.svelte +++ b/src/interface/APropos.svelte @@ -2,27 +2,79 @@ License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) --> +{#snippet lien(nom)} + {t(cleDeLien(nom))} +{/snippet} +

{t('coquille.apropos.titre')}

+ +

{t('coquille.apropos.editeur')}

+

{@render lien('site')}

{t('coquille.apropos.auteur')}

{t('coquille.apropos.role')}

+

{@render lien('projet')}

+

{t('coquille.apropos.liens.note')}

{bloc}

@@ -55,6 +175,60 @@ {/if}
+ + +
+

{t('coquille.apropos.licence.choix')}

+
    +
  • {t('coquille.apropos.licence.agpl')}
  • +
  • {t('coquille.apropos.licence.liliq')}
  • +
+

{t('coquille.apropos.licence.spdx')} {t('coquille.apropos.licence.spdxValeur')}

+

{t('coquille.apropos.licence.textes')}

+

{t('coquille.apropos.licence.respecter')}

+
    +
  • {t('coquille.apropos.licence.obligation1')}
  • +
  • {t('coquille.apropos.licence.obligation2')}
  • +
  • {t('coquille.apropos.licence.obligation3')}
  • +
  • {t('coquille.apropos.licence.obligation4')}
  • +
  • {t('coquille.apropos.licence.obligation5')}
  • +
+

{t('coquille.apropos.licence.contributions')}

+

{@render lien('agpl')}{@render lien('liliq')}

+
+ lireLicence('agpl')} /> + lireLicence('liliq')} /> + {#if texteLicence !== null} + (texteLicence = null)} /> + {/if} +
+ {#if texteLicence !== null} +
{texteLicence.contenu}
+ {/if} +
+
+ + +

{t('coquille.apropos.attribution.texte')}

+
+ + +
+ {#each CATEGORIES as { code, fonctionnalites } (code)} +
+

{t(cleDeCategorie(code))}

+
    + {#each fonctionnalites as { numero } (numero)} +
  • + {t('coquille.apropos.numeroFonctionnalite', { numero })} + {t(cleDeFonctionnalite(numero))} +
  • + {/each} +
+
+ {/each} +
+
diff --git a/src/interface/App.navigateur.test.js b/src/interface/App.navigateur.test.js index f153a68..73ef158 100644 --- a/src/interface/App.navigateur.test.js +++ b/src/interface/App.navigateur.test.js @@ -542,13 +542,16 @@ describe('l’événement ouvert et sa navigation', () => { describe('« À propos » (§ 18.6)', () => { const panneau = (m) => dans(m, '[data-ecran="apropos"]'); + // Le panneau est plus haut que la fenêtre : il s'ouvre en haut, son titre + // visible. + const titre = (m) => dans(m, '[data-ecran="apropos"] > h1'); test('le panneau s’ouvre depuis le bandeau sur la liste puis sur un événement ; « Copier » remet exactement le bloc affiché', async () => { const m = await monter({ fichiers: [fichier('bal', 'Bal des Grisailles')] }); const attendu = blocAPropos({ version: VERSION.affichee, plateforme: m.fs.nature, provenance: 'test', format: FORMAT }, t); dans(m, '[data-commande="apropos"]').click(); flushSync(); - expect(visible(panneau(m))).toBe(true); + expect(visible(titre(m))).toBe(true); const bloc = dans(m, '[data-bloc]'); expect(bloc.textContent).toBe(attendu); dans(m, '[data-commande="copier"]').click(); @@ -562,7 +565,7 @@ describe('« À propos » (§ 18.6)', () => { expect(ecran(m).dataset.ecran).toBe('evenement'); dans(m, '[data-commande="apropos"]').click(); flushSync(); - expect(visible(panneau(m))).toBe(true); + expect(visible(titre(m))).toBe(true); expect(dans(m, '[data-bloc]').textContent).toBe(attendu); }); diff --git a/src/interface/apropos.js b/src/interface/apropos.js index c4328cb..09edde5 100644 --- a/src/interface/apropos.js +++ b/src/interface/apropos.js @@ -5,11 +5,39 @@ // une ligne, que l'opérateur copie dans un courriel : il porte la version // affichée, celle que nomment le changelog et le nom du livrable. Sa // composition est une seule clé de la table de la coquille : la langue -// témoin l'encadre une fois, en entier. La version et la provenance à l'écran se définissent -// dans l'application (version.js), que le papier lit aussi : ce module les -// réexporte. +// témoin l'encadre une fois, en entier. La version et la provenance à +// l'écran se définissent dans l'application (version.js), que le papier lit +// aussi : ce module les réexporte. Le panneau porte aussi des liens vers +// l'extérieur, que LIENS énumère. export { provenanceVisible, versionVisible } from '../application/version.js'; +/** + * Les liens du panneau « À propos » (§ 2, § 18.6), dans leur ordre : chacun + * son nom, que porte data-lien et dont cleDeLien tire le libellé, et son + * adresse https, sous la forme exacte que Chromium passe au gestionnaire + * d'ouverture de la coquille. La coquille (electron/main.js) n'ouvre au + * navigateur du système que ces adresses-là ; le web les ouvre dans un + * nouvel onglet. + */ +export const LIENS = Object.freeze({ + site: 'https://technolibre.ca/', + projet: 'https://github.com/TechnoLibre/gestion_table_tournante_libre', + agpl: 'https://www.gnu.org/licenses/agpl-3.0.fr.html', + liliq: 'https://forge.gouv.qc.ca/licence/liliq-r+/', +}); + +/** + * La clé du libellé d'un lien. + * + * @param {string} nom un nom de LIENS + * @returns {string} + * @throws {RangeError} un nom hors de LIENS + */ +export function cleDeLien(nom) { + if (!Object.hasOwn(LIENS, nom)) throw new RangeError(`À propos : lien inconnu ${JSON.stringify(nom)}`); + return `coquille.apropos.lien.${nom}`; +} + /** * Bloc d'une ligne du panneau « À propos » (§ 18.6) : nom, version affichée, * plateforme, provenance, version de format, séparés par « · ». La diff --git a/src/interface/apropos.test.js b/src/interface/apropos.test.js index 0606f92..1f3ca2b 100644 --- a/src/interface/apropos.test.js +++ b/src/interface/apropos.test.js @@ -3,7 +3,7 @@ // Le bloc « À propos » (§ 18.6) : une ligne que l'opérateur copie dans un // courriel — nom, version affichée, plateforme, provenance, version de -// format. Ce qui tient lieu de version à l'écran, et la +// format. Les liens du panneau, sa licence et son attribution. Ce qui tient lieu de version à l'écran, et la // provenance, s'éprouvent avec leur définition (src/application/version.js), // que ce module réexporte. import assert from 'node:assert/strict'; @@ -13,7 +13,7 @@ import { TABLES_APPLICATION } from '../application/libelles.js'; import { MARQUE_TEMOIN, creerTraduction } from '../application/traduction.js'; import { FORMAT } from '../stockage/document.js'; import { VERSION } from '../version.genere.js'; -import { blocAPropos } from './apropos.js'; +import { LIENS, blocAPropos, cleDeLien } from './apropos.js'; import { TABLES_INTERFACE, libelleProvenance } from './libelles.js'; const { t } = creerTraduction([...TABLES_APPLICATION, ...TABLES_INTERFACE]); @@ -78,6 +78,65 @@ describe('blocAPropos (§ 18.6)', () => { }); }); +describe('les liens du panneau « À propos » (§ 2, § 18.6)', () => { + test('le site de TechnoLibre, le projet, l’AGPLv3 et la LiLiQ-R+, dans cet ordre, chacun en https, sous la forme que rend l’analyse d’une URL', () => { + assert.deepEqual(Object.entries(LIENS), [ + ['site', 'https://technolibre.ca/'], + ['projet', 'https://github.com/TechnoLibre/gestion_table_tournante_libre'], + ['agpl', 'https://www.gnu.org/licenses/agpl-3.0.fr.html'], + ['liliq', 'https://forge.gouv.qc.ca/licence/liliq-r+/'], + ]); + assert.ok(Object.isFrozen(LIENS)); + for (const adresse of Object.values(LIENS)) { + assert.equal(new URL(adresse).href, adresse); + assert.equal(new URL(adresse).protocol, 'https:', adresse); + } + }); + + test('chaque lien a son libellé ; un nom hors de LIENS lève RangeError', () => { + for (const nom of Object.keys(LIENS)) { + assert.equal(cleDeLien(nom), `coquille.apropos.lien.${nom}`); + assert.ok(t(cleDeLien(nom)).length > 0, nom); + } + for (const faux of ['autre', 'toString', '']) assert.throws(() => cleDeLien(faux), RangeError, faux); + }); +}); + +describe('la licence et l’attribution du panneau « À propos » (§ 18.6)', () => { + test('la licence nomme les deux licences, l’identifiant SPDX, et les obligations sous la licence choisie', () => { + const texte = [ + t('coquille.apropos.licence.choix'), + ...['agpl', 'liliq'].map((nom) => t(`coquille.apropos.licence.${nom}`)), + t('coquille.apropos.licence.spdx'), + t('coquille.apropos.licence.spdxValeur'), + t('coquille.apropos.licence.textes'), + t('coquille.apropos.licence.respecter'), + ...[1, 2, 3, 4, 5].map((rang) => t(`coquille.apropos.licence.obligation${rang}`)), + t('coquille.apropos.licence.contributions'), + ].join('\n'); + for (const attendu of [ + 'AGPL-3.0-or-later', + 'LiLiQ-R+', + 'AGPL-3.0-or-later OR LiLiQ-Rplus-1.1', + 'LICENSES/', + 'réciprocité forte', + 'code source', + 'réseau', + 'ces deux licences', + ]) { + assert.ok(texte.includes(attendu), attendu); + } + assert.equal(t('coquille.apropos.licence.spdxValeur'), 'AGPL-3.0-or-later OR LiLiQ-Rplus-1.1'); + }); + + test('l’attribution invite à montrer le logo et le lien vers technolibre.ca, et dit qu’elle n’ajoute aucune condition', () => { + const texte = t('coquille.apropos.attribution.texte'); + assert.ok(texte.includes('https://technolibre.ca'), texte); + assert.ok(texte.includes('logo de TechnoLibre'), texte); + assert.ok(texte.includes('une demande, et non d\u{2019}une condition supplémentaire'), texte); + }); +}); + describe('la version de l’interface vient des dépendances (§ 13.4, § 18.6)', () => { test('App.svelte ne lit pas la version engendrée : la version affichée arrive par sa propriété produitVersion, et la forme Windows n’y entre pas', () => { const source = readFileSync(new URL('./App.svelte', import.meta.url), 'utf8'); diff --git a/src/interface/fonctionnalites.js b/src/interface/fonctionnalites.js new file mode 100644 index 0000000..5599bc5 --- /dev/null +++ b/src/interface/fonctionnalites.js @@ -0,0 +1,115 @@ +// © 2026 TechnoLibre (http://www.technolibre.ca) +// License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) + +// Le sommaire des fonctionnalités que porte le panneau « À propos » (§ 2.2, +// § 18.6) : des catégories dans l'ordre de lecture, chacune un code de trois +// capitales et ses fonctionnalités, chacune un numéro — le code, un tiret, +// deux chiffres — et ses renvois aux sections de la spécification. Les +// intitulés sont des libellés de la coquille (libelles/coquille.js), sous +// cleDeCategorie et cleDeFonctionnalite. +// +// Le sommaire s'écrit à la main (§ 19.8), comme le tableau du § 2.2 de +// spec.md, qui porte les mêmes numéros, intitulés et renvois ; une épreuve +// les compare. Un numéro ne se réutilise jamais : une fonctionnalité retirée +// laisse le sien dans RETIRES, et une fonctionnalité nouvelle prend le plus +// grand numéro de sa catégorie, retirés compris, plus un. + +// Une fonctionnalité gelée : son numéro et ses renvois, numéros de section +// sans « § ». +const f = (numero, ...renvois) => Object.freeze({ numero, renvois: Object.freeze(renvois) }); +const categorie = (code, ...fonctionnalites) => Object.freeze({ code, fonctionnalites: Object.freeze(fonctionnalites) }); + +/** Les catégories du sommaire, dans l'ordre de lecture du panneau. */ +export const CATEGORIES = Object.freeze([ + categorie( + 'PRE', + f('PRE-01', '10.1'), + f('PRE-02', '10.1'), + f('PRE-03', '10.1'), + f('PRE-04', '10.2'), + f('PRE-05', '10.2'), + f('PRE-06', '4.5'), + f('PRE-07', '4', '10.2'), + f('PRE-08', '4.4'), + f('PRE-09', '6.1'), + f('PRE-10', '2.1', '4.3'), + f('PRE-11', '4.5', '10.4'), + f('PRE-12', '10.1', '10.3'), + ), + categorie( + 'PLA', + f('PLA-01', '7.1', '7.7'), + f('PLA-02', '7.1', '7.3'), + f('PLA-03', '2.1', '5.8'), + f('PLA-04', '5.8'), + f('PLA-05', '5.9'), + f('PLA-06', '5.5', '5.6'), + f('PLA-07', '5.3', '5.7'), + f('PLA-08', '5.7'), + f('PLA-09', '5.10'), + f('PLA-10', '5.7'), + f('PLA-11', '5.7'), + f('PLA-12', '12'), + f('PLA-13', '12.10'), + f('PLA-14', '9'), + f('PLA-15', '5.8'), + f('PLA-16', '7.5'), + f('PLA-17', '7.7'), + ), + categorie( + 'PRO', + f('PRO-01', '11.1', '11.2'), + f('PRO-02', '11.3'), + f('PRO-03', '11.6'), + f('PRO-04', '11.6'), + f('PRO-05', '11.7'), + f('PRO-06', '11.7'), + f('PRO-07', '11.7'), + f('PRO-08', '11.7'), + ), + categorie( + 'FIC', + f('FIC-01', '8.1', '8.6'), + f('FIC-02', '8.2'), + f('FIC-03', '8.3'), + f('FIC-04', '8.4'), + f('FIC-05', '9'), + f('FIC-06', '8.7'), + f('FIC-07', '8.8'), + f('FIC-08', '8.6'), + f('FIC-09', '2'), + ), + categorie( + 'INT', + f('INT-01', '2.1'), + f('INT-02', '15'), + f('INT-03', '14.5', '18.6'), + f('INT-04', '18.6'), + f('INT-05', '14.5'), + f('INT-06', '18.6'), + f('INT-07', '2.2', '18.6'), + ), +]); + +/** Les numéros retirés du sommaire, qu'aucune fonctionnalité ne reprend. */ +export const RETIRES = Object.freeze([]); + +/** + * La clé du libellé d'une catégorie. + * + * @param {string} code « PRE » + * @returns {string} « coquille.apropos.categorie.pre » + */ +export function cleDeCategorie(code) { + return `coquille.apropos.categorie.${code.toLowerCase()}`; +} + +/** + * La clé de l'intitulé d'une fonctionnalité. + * + * @param {string} numero « PRE-03 » + * @returns {string} « coquille.apropos.fonctionnalite.pre03 » + */ +export function cleDeFonctionnalite(numero) { + return `coquille.apropos.fonctionnalite.${numero.toLowerCase().replace('-', '')}`; +} diff --git a/src/interface/fonctionnalites.test.js b/src/interface/fonctionnalites.test.js new file mode 100644 index 0000000..8f8f60a --- /dev/null +++ b/src/interface/fonctionnalites.test.js @@ -0,0 +1,204 @@ +// © 2026 TechnoLibre (http://www.technolibre.ca) +// License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) + +// Le sommaire des fonctionnalités (§ 2.2, § 18.6) : la forme des numéros, +// leur unicité, la règle qui interdit de réutiliser un numéro retiré, un +// libellé par catégorie et par fonctionnalité, et la concordance avec le +// tableau du § 2.2 de spec.md — mêmes catégories, mêmes numéros dans le même +// ordre, mêmes intitulés, mêmes renvois, mêmes numéros retirés —, chaque +// renvoi désignant une section qui existe. spec.md se lit par le disque : il +// ne voyage pas avec l'application. +import assert from 'node:assert/strict'; +import { readFileSync } from 'node:fs'; +import { describe, test } from '../../test/lanceur.js'; +import { TABLES_APPLICATION } from '../application/libelles.js'; +import { creerTraduction } from '../application/traduction.js'; +import { CATEGORIES, RETIRES, cleDeCategorie, cleDeFonctionnalite } from './fonctionnalites.js'; +import { TABLES_INTERFACE } from './libelles.js'; + +const { t } = creerTraduction([...TABLES_APPLICATION, ...TABLES_INTERFACE]); +const SPEC = readFileSync(new URL('../../spec.md', import.meta.url), 'utf8'); + +const NUMERO = /^([A-Z]{3})-(\d{2})$/; +const numeros = () => CATEGORIES.flatMap(({ fonctionnalites }) => fonctionnalites.map(({ numero }) => numero)); + +// Les numéros des sections de spec.md, d'après ses intitulés : « ## 2. … » +// donne 2, « ### 2.1 … » donne 2.1. +function sectionsDe(texte) { + return new Set([...texte.matchAll(/^#{2,4} (\d+(?:\.\d+)*)\.? /gmu)].map(([, numero]) => numero)); +} + +// Le texte du § 2.2 : de son intitulé à l'intitulé suivant de niveau 2 ou 3 ; +// null sans lui. +function paragrapheSommaire(texte) { + const debut = texte.search(/^### 2\.2 /mu); + if (debut === -1) return null; + const corps = texte.indexOf('\n', debut) + 1; + const suite = texte.slice(corps).search(/^#{2,3} /mu); + return suite === -1 ? texte.slice(debut) : texte.slice(debut, corps + suite); +} + +// Ce que le § 2.2 porte : ses catégories dans l'ordre — libellé, code, et +// chaque ligne de leur tableau, numéro, intitulé et renvois sans « § » — et +// ses numéros retirés ; null sans le paragraphe. +function lireSommaire(texte) { + const paragraphe = paragrapheSommaire(texte); + if (paragraphe === null) return null; + const categories = []; + let retires = null; + for (const ligne of paragraphe.split('\n')) { + const categorie = /^\*\*(.+?)\*\* — `([A-Z]{3})`$/u.exec(ligne); + if (categorie !== null) { + categories.push({ libelle: categorie[1], code: categorie[2], lignes: [] }); + continue; + } + const rang = /^\| `([^`]+)` \| (.+?) \| (.+?) \|$/u.exec(ligne); + if (rang !== null) { + const renvois = rang[3].split(', ').map((renvoi) => renvoi.replace(/^§ /u, '')); + categories.at(-1)?.lignes.push({ numero: rang[1], intitule: rang[2], renvois }); + continue; + } + const retire = /^\*\*Numéros retirés\*\* : (.+)\.$/u.exec(ligne); + if (retire !== null) retires = retire[1] === 'aucun' ? [] : retire[1].split(', ').map((n) => n.replaceAll('`', '')); + } + return { categories, retires }; +} + +// Les différences entre le sommaire de l'application et le § 2.2 d'un texte +// de spécification : chacune une phrase, dans l'ordre du sommaire ; [] quand +// ils concordent. Les libellés écrivent l'apostrophe typographique, la +// spécification l'apostrophe droite : les intitulés se comparent sous la +// seconde. +function ecartsAuSommaire(texte, categories, retires, traduireTypographie) { + const traduire = (cle) => traduireTypographie(cle).replaceAll('\u{2019}', "'"); + const lu = lireSommaire(texte); + if (lu === null) return ['§ 2.2 absent']; + const sections = sectionsDe(texte); + const fautes = []; + const attendues = categories.map(({ code }) => code).join(' '); + const trouvees = lu.categories.map(({ code }) => code).join(' '); + if (attendues !== trouvees) fautes.push(`catégories : ${trouvees} au lieu de ${attendues}`); + for (const { code, fonctionnalites } of categories) { + const lue = lu.categories.find((c) => c.code === code); + if (lue === undefined) continue; + if (lue.libelle !== traduire(cleDeCategorie(code))) fautes.push(`${code} : libellé « ${lue.libelle} »`); + const attendus = fonctionnalites.map(({ numero }) => numero).join(' '); + const trouves = lue.lignes.map(({ numero }) => numero).join(' '); + if (attendus !== trouves) fautes.push(`${code} : numéros ${trouves} au lieu de ${attendus}`); + for (const { numero, renvois } of fonctionnalites) { + const ligne = lue.lignes.find((l) => l.numero === numero); + if (ligne === undefined) continue; + if (ligne.intitule !== traduire(cleDeFonctionnalite(numero))) fautes.push(`${numero} : intitulé « ${ligne.intitule} »`); + if (ligne.renvois.join(', ') !== renvois.join(', ')) fautes.push(`${numero} : renvois ${ligne.renvois.join(', ')}`); + for (const renvoi of renvois) if (!sections.has(renvoi)) fautes.push(`${numero} : § ${renvoi} absent`); + } + } + if (JSON.stringify(lu.retires) !== JSON.stringify([...retires])) fautes.push(`numéros retirés : ${JSON.stringify(lu.retires)}`); + return fautes; +} + +describe('le sommaire des fonctionnalités : les numéros (§ 2.2)', () => { + test('chaque catégorie a un code de trois capitales, unique, et un libellé ; chaque numéro porte le code de sa catégorie et deux chiffres', () => { + assert.ok(CATEGORIES.length >= 5, `${CATEGORIES.length} catégories`); + const codes = CATEGORIES.map(({ code }) => code); + assert.equal(new Set(codes).size, codes.length, codes.join(' ')); + for (const { code, fonctionnalites } of CATEGORIES) { + assert.match(code, /^[A-Z]{3}$/u); + assert.ok(t(cleDeCategorie(code)).length > 0, code); + assert.ok(fonctionnalites.length > 0, `${code} sans fonctionnalité`); + for (const { numero } of fonctionnalites) assert.equal(NUMERO.exec(numero)?.[1], code, numero); + } + }); + + test('un numéro est unique dans tout le sommaire, et aucun numéro retiré n’y reparaît', () => { + const tous = numeros(); + assert.ok(tous.length > 30, `${tous.length} fonctionnalités`); + assert.equal(new Set(tous).size, tous.length); + assert.deepEqual(tous.filter((numero) => RETIRES.includes(numero)), []); + assert.equal(new Set(RETIRES).size, RETIRES.length); + for (const numero of RETIRES) assert.match(numero, NUMERO); + }); + + test('dans chaque catégorie, les numéros actifs et retirés couvrent 01 à leur maximum sans trou : un numéro retiré du sommaire passe aux retirés, et le suivant prend le maximum plus un', () => { + for (const { code, fonctionnalites } of CATEGORIES) { + const rangs = [...fonctionnalites.map(({ numero }) => numero), ...RETIRES.filter((n) => n.startsWith(`${code}-`))] + .map((numero) => Number(NUMERO.exec(numero)[2])) + .sort((a, b) => a - b); + assert.deepEqual(rangs, rangs.map((_, rang) => rang + 1), code); + } + }); + + test('chaque fonctionnalité a son intitulé et au moins un renvoi de la forme d’un numéro de section', () => { + for (const { fonctionnalites } of CATEGORIES) { + for (const { numero, renvois } of fonctionnalites) { + assert.equal(cleDeFonctionnalite(numero), `coquille.apropos.fonctionnalite.${numero.toLowerCase().replace('-', '')}`); + assert.ok(t(cleDeFonctionnalite(numero)).length > 0, numero); + assert.ok(renvois.length > 0, numero); + for (const renvoi of renvois) assert.match(renvoi, /^\d+(?:\.\d+)*$/u, numero); + } + } + }); + + test('le sommaire, ses catégories et leurs listes sont gelés', () => { + assert.ok(Object.isFrozen(CATEGORIES) && Object.isFrozen(RETIRES)); + for (const categorie of CATEGORIES) { + assert.ok(Object.isFrozen(categorie) && Object.isFrozen(categorie.fonctionnalites), categorie.code); + for (const f of categorie.fonctionnalites) assert.ok(Object.isFrozen(f) && Object.isFrozen(f.renvois), f.numero); + } + }); +}); + +describe('le sommaire des fonctionnalités : la concordance avec spec.md (§ 2.2, § 19.8)', () => { + test('le § 2.2 porte les catégories, les numéros, les intitulés, les renvois et les numéros retirés du sommaire, et chaque renvoi désigne une section', () => { + assert.deepEqual(ecartsAuSommaire(SPEC, CATEGORIES, RETIRES, t), []); + }); + + test('la garde relève une catégorie, un numéro, un intitulé, un renvoi et un retrait qui diffèrent, et un renvoi vers une section absente', () => { + const categories = [ + { code: 'AAA', fonctionnalites: [{ numero: 'AAA-01', renvois: ['1'] }, { numero: 'AAA-02', renvois: ['1.1', '9'] }] }, + { code: 'BBB', fonctionnalites: [{ numero: 'BBB-01', renvois: ['1.1'] }] }, + ]; + const libelles = new Map([ + ['coquille.apropos.categorie.aaa', 'Première'], + ['coquille.apropos.categorie.bbb', 'Seconde'], + ['coquille.apropos.fonctionnalite.aaa01', 'Faire une chose'], + ['coquille.apropos.fonctionnalite.aaa02', 'Faire une autre chose'], + ['coquille.apropos.fonctionnalite.bbb01', 'Faire la dernière chose'], + ]); + const traduire = (cle) => libelles.get(cle); + const juste = [ + '## 1. Objet', + '### 1.1 Détail', + '### 2.2 Les fonctionnalités', + '**Première** — `AAA`', + '| `AAA-01` | Faire une chose | § 1 |', + '| `AAA-02` | Faire une autre chose | § 1.1, § 9 |', + '**Seconde** — `BBB`', + '| `BBB-01` | Faire la dernière chose | § 1.1 |', + '**Numéros retirés** : `AAA-03`.', + '## 9. Suite', + '| `ZZZ-01` | Hors du paragraphe | § 1 |', + '', + ].join('\n'); + assert.deepEqual(ecartsAuSommaire(juste, categories, ['AAA-03'], traduire), []); + const fausse = juste + .replace('**Seconde**', '**Autre**') + .replace('| `AAA-02` | Faire une autre chose | § 1.1, § 9 |', '| `AAA-02` | Faire autre chose | § 1.1, § 8 |') + .replace('`BBB-01`', '`BBB-02`') + .replace('`AAA-03`', 'aucun'); + assert.deepEqual(ecartsAuSommaire(fausse, categories, ['AAA-03'], traduire), [ + 'AAA-02 : intitulé « Faire autre chose »', + 'AAA-02 : renvois 1.1, 8', + 'BBB : libellé « Autre »', + 'BBB : numéros BBB-02 au lieu de BBB-01', + 'numéros retirés : []', + ]); + assert.deepEqual(ecartsAuSommaire(juste.replace('## 9. Suite', '## 8. Suite'), categories, ['AAA-03'], traduire), [ + 'AAA-02 : § 9 absent', + ]); + assert.deepEqual(ecartsAuSommaire(juste.replace('**Seconde** — `BBB`', '**Seconde** — `CCC`'), categories, ['AAA-03'], traduire), [ + 'catégories : AAA CCC au lieu de AAA BBB', + ]); + assert.deepEqual(ecartsAuSommaire('## 1. Objet\n', categories, [], traduire), ['§ 2.2 absent']); + }); +}); diff --git a/src/interface/libelles/coquille.js b/src/interface/libelles/coquille.js index 4be0239..673ba30 100644 --- a/src/interface/libelles/coquille.js +++ b/src/interface/libelles/coquille.js @@ -1,13 +1,15 @@ // © 2026 TechnoLibre (http://www.technolibre.ca) // License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) -// Les textes de la coquille (§ 8.4, § 18.6, § 19.2) : le nom de +// Les textes de la coquille (§ 2.2, § 8.4, § 18.6, § 19.2) : le nom de // l'application, le titre du bandeau et de la fenêtre, la provenance de la // construction par mode de Vite, le libellé de mode, l'annonce de format, le // réglage de thème, « Liste des événements », le panneau « Paramètres », le -// panneau « À propos » et son bloc, et le titre de chaque section de -// l'événement, que la navigation et chaque section reprennent. Un mode sans clé s'affiche sous son propre nom -// (libelles.js). Chaque clé commence par « coquille. ». +// panneau « À propos » — son bloc, le logo, les liens, la licence, +// l'attribution et le sommaire des fonctionnalités —, et le titre de chaque +// section de l'événement, que la navigation et chaque section reprennent. Un +// mode sans clé s'affiche sous son propre nom (libelles.js). Chaque clé +// commence par « coquille. ». export const TABLE = new Map([ ['coquille.nom', 'Gestion table tournante Libre'], ['coquille.titre', ({ version }, texte) => `${texte('coquille.nom')} \u{2014} ${version}`], @@ -81,6 +83,131 @@ export const TABLE = new Map([ ['coquille.apropos.copie', 'Bloc copié dans le presse-papiers'], ['coquille.apropos.copieRefusee', 'Le presse-papiers a refusé la copie'], + // Le logo de TechnoLibre : le nom du bouton qui ouvre son menu, les deux + // téléchargements et l'issue d'un enregistrement. + ['coquille.apropos.logo.menu', 'Télécharger le logo de TechnoLibre'], + ['coquille.apropos.logo.telechargerSvg', 'Télécharger en SVG'], + ['coquille.apropos.logo.telechargerPng', 'Télécharger en PNG'], + ['coquille.apropos.logo.enregistre', ({ chemin }) => `Logo enregistré : ${chemin}`], + + // Les liens, par leur nom dans LIENS (apropos.js), et la phrase qui dit ce + // qu'un clic fait. + ['coquille.apropos.lien.site', 'https://technolibre.ca'], + ['coquille.apropos.lien.projet', 'Code source du projet'], + ['coquille.apropos.lien.agpl', 'AGPLv3, texte officiel'], + ['coquille.apropos.lien.liliq', 'LiLiQ-R+, texte officiel'], + ['coquille.apropos.liens.note', 'Un lien s\u{2019}ouvre dans votre navigateur ; le logiciel n\u{2019}envoie rien.'], + + // La licence : le choix entre les deux, l'identifiant SPDX, où lire les + // textes complets, ce que la licence choisie demande, les contributions ; + // puis la lecture des textes complets, livrés avec le logiciel. + ['coquille.apropos.licence.titre', 'Licence'], + ['coquille.apropos.licence.choix', 'Ce projet est distribué, au choix de l\u{2019}utilisateur, sous l\u{2019}une des licences suivantes :'], + ['coquille.apropos.licence.agpl', 'GNU Affero General Public License v3.0 ou ultérieure (AGPL-3.0-or-later)'], + ['coquille.apropos.licence.liliq', 'Licence Libre du Québec \u{2013} Réciprocité forte v1.1 (LiLiQ-R+)'], + ['coquille.apropos.licence.spdx', 'Identifiant SPDX :'], + ['coquille.apropos.licence.spdxValeur', 'AGPL-3.0-or-later OR LiLiQ-Rplus-1.1'], + [ + 'coquille.apropos.licence.textes', + 'Textes complets : dossier LICENSES/ des sources, et lisibles ici, sans réseau.', + ], + ['coquille.apropos.licence.respecter', 'Pour respecter la licence choisie :'], + ['coquille.apropos.licence.obligation1', 'conservez les avis de copyright et de licence existants ;'], + ['coquille.apropos.licence.obligation2', 'indiquez clairement vos modifications et leur date ;'], + [ + 'coquille.apropos.licence.obligation3', + 'toute version modifiée doit rester sous une licence à réciprocité forte (celle choisie ou une licence compatible) ;', + ], + ['coquille.apropos.licence.obligation4', 'si vous distribuez le logiciel, fournissez le code source correspondant ;'], + [ + 'coquille.apropos.licence.obligation5', + 'sous l\u{2019}AGPL, si vous offrez une version modifiée à des utilisateurs par un réseau (SaaS, instance web), ' + + 'vous devez leur donner accès à son code source.', + ], + ['coquille.apropos.licence.contributions', 'Les contributions à ce projet sont acceptées sous ces deux licences.'], + ['coquille.apropos.licence.lireAgpl', 'Lire l\u{2019}AGPL-3.0-or-later'], + ['coquille.apropos.licence.lireLiliq', 'Lire la LiLiQ-R+ 1.1'], + ['coquille.apropos.licence.fermerTexte', 'Fermer le texte'], + + // L'attribution, une demande de courtoisie. + ['coquille.apropos.attribution.titre', 'Attribution'], + [ + 'coquille.apropos.attribution.texte', + 'Si vous utilisez ce logiciel, modifié ou non, nous vous invitons à afficher le logo de TechnoLibre sur les badges ' + + 'des participants, puis sur votre site web avec un lien vers https://technolibre.ca. Il s\u{2019}agit d\u{2019}une ' + + 'demande, et non d\u{2019}une condition supplémentaire : vos droits et obligations sont définis uniquement ' + + 'par la licence que vous avez choisie.', + ], + + // Le sommaire des fonctionnalités (fonctionnalites.js) : son titre, la + // règle des numéros, le libellé de chaque catégorie sous son code, et + // l'intitulé de chaque fonctionnalité sous son numéro, sans tiret. + ['coquille.apropos.fonctionnalites.titre', 'Fonctionnalités'], + [ + 'coquille.apropos.fonctionnalites.explication', + 'Chaque fonctionnalité garde son numéro, que la spécification porte aussi ; un numéro retiré ne sert plus.', + ], + // Le numéro d'une fonctionnalité s'écrit tel quel, dans toute langue. + ['coquille.apropos.numeroFonctionnalite', ({ numero }) => numero], + ['coquille.apropos.categorie.pre', 'Préparer'], + ['coquille.apropos.categorie.pla', 'Placer'], + ['coquille.apropos.categorie.pro', 'Produire'], + ['coquille.apropos.categorie.fic', 'Fichiers et sécurité'], + ['coquille.apropos.categorie.int', 'Interface'], + ['coquille.apropos.fonctionnalite.pre01', 'Importer la liste des participants en CSV, après un aperçu'], + ['coquille.apropos.fonctionnalite.pre02', 'Réexporter les lignes refusées d\u{2019}un import'], + ['coquille.apropos.fonctionnalite.pre03', 'Fondre les orthographes d\u{2019}une même appartenance, jamais en silence'], + ['coquille.apropos.fonctionnalite.pre04', 'Saisir et corriger les participants à la main'], + ['coquille.apropos.fonctionnalite.pre05', 'Exporter la liste des participants en CSV, dans la forme qu\u{2019}il importe'], + ['coquille.apropos.fonctionnalite.pre06', 'Étiqueter les personnes'], + ['coquille.apropos.fonctionnalite.pre07', 'Dire la présence de chacun, tour par tour'], + ['coquille.apropos.fonctionnalite.pre08', 'Exclure une personne, puis la réintégrer'], + ['coquille.apropos.fonctionnalite.pre09', 'Créer les tables, avec un nombre de places par défaut et des surcharges'], + ['coquille.apropos.fonctionnalite.pre10', 'Fixer le nombre de tours'], + ['coquille.apropos.fonctionnalite.pre11', 'Donner des objectifs aux tables, à l\u{2019}écran ou en CSV, et les exporter'], + ['coquille.apropos.fonctionnalite.pre12', 'Télécharger les modèles CSV et les fichiers d\u{2019}exemple'], + ['coquille.apropos.fonctionnalite.pla01', 'Disposer les tables sur un plan de salle à l\u{2019}échelle'], + ['coquille.apropos.fonctionnalite.pla02', 'Déplacer et échanger les personnes sur le plan, au pointeur, au doigt ou par menu'], + ['coquille.apropos.fonctionnalite.pla03', 'Désigner les animateurs, table par table'], + ['coquille.apropos.fonctionnalite.pla04', 'Réserver des places à la main'], + ['coquille.apropos.fonctionnalite.pla05', 'Refuser un geste impossible en nommant sa cause et son remède'], + ['coquille.apropos.fonctionnalite.pla06', 'Lire le diagnostic avant toute recherche, avec le plafond et le plancher'], + ['coquille.apropos.fonctionnalite.pla07', 'Choisir les critères et l\u{2019}ordre des priorités'], + ['coquille.apropos.fonctionnalite.pla08', 'Générer plusieurs propositions comparables, reproductibles par leur graine'], + ['coquille.apropos.fonctionnalite.pla09', 'Calculer les propositions en parallèle, sur les cœurs du poste'], + ['coquille.apropos.fonctionnalite.pla10', 'Repartir d\u{2019}une proposition et en figer des tours'], + ['coquille.apropos.fonctionnalite.pla11', 'Classer les propositions, et garder les meilleures'], + ['coquille.apropos.fonctionnalite.pla12', 'Mesurer un placement sur la page de qualité'], + ['coquille.apropos.fonctionnalite.pla13', 'Comparer deux placements par leur manque'], + ['coquille.apropos.fonctionnalite.pla14', 'Retenir un placement'], + ['coquille.apropos.fonctionnalite.pla15', 'Ajuster le placement retenu, qui suit les présences'], + ['coquille.apropos.fonctionnalite.pla16', 'Signaler les tables en conflit sur le plan'], + ['coquille.apropos.fonctionnalite.pla17', 'Inscrire le numéro de chaque table sur son plateau'], + ['coquille.apropos.fonctionnalite.pro01', 'Produire la planche de badges en PDF, sur A4 ou Lettre'], + ['coquille.apropos.fonctionnalite.pro02', 'Vérifier le découpage par la feuille de contrôle'], + ['coquille.apropos.fonctionnalite.pro03', 'Ordonner les badges pour l\u{2019}accueil'], + ['coquille.apropos.fonctionnalite.pro04', 'Ouvrir le dossier où la planche se dépose'], + ['coquille.apropos.fonctionnalite.pro05', 'Imprimer la liste d\u{2019}accueil'], + ['coquille.apropos.fonctionnalite.pro06', 'Imprimer une feuille par table'], + ['coquille.apropos.fonctionnalite.pro07', 'Imprimer le plan de salle, tour par tour'], + ['coquille.apropos.fonctionnalite.pro08', 'Marquer BROUILLON ce qui n\u{2019}est pas retenu'], + ['coquille.apropos.fonctionnalite.fic01', 'Garder chaque événement dans des fichiers ordinaires, listés au premier écran'], + ['coquille.apropos.fonctionnalite.fic02', 'Enregistrer chaque geste avec son entrée d\u{2019}historique'], + ['coquille.apropos.fonctionnalite.fic03', 'Revenir à un instant de l\u{2019}historique'], + ['coquille.apropos.fonctionnalite.fic04', 'Ouvrir en lecture par défaut, modifier sur demande'], + ['coquille.apropos.fonctionnalite.fic05', 'Bloquer un plan distribué'], + ['coquille.apropos.fonctionnalite.fic06', 'Copier, renommer, importer et supprimer un événement, vers une corbeille'], + ['coquille.apropos.fonctionnalite.fic07', 'Résister à une panne, et reprendre un fichier abîmé'], + ['coquille.apropos.fonctionnalite.fic08', 'Choisir le dossier de travail'], + ['coquille.apropos.fonctionnalite.fic09', 'Travailler hors ligne, sans rien envoyer'], + ['coquille.apropos.fonctionnalite.int01', 'Grouper les sections en trois phases : Préparer, Placer, Produire'], + ['coquille.apropos.fonctionnalite.int02', 'Charger une démonstration'], + ['coquille.apropos.fonctionnalite.int03', 'Choisir le thème clair ou sombre'], + ['coquille.apropos.fonctionnalite.int04', 'Régler la taille du texte de l\u{2019}écran'], + ['coquille.apropos.fonctionnalite.int05', 'Agir au clavier, avec des contrastes vérifiés dans les deux thèmes'], + ['coquille.apropos.fonctionnalite.int06', 'Voir la version partout, et la copier depuis « À propos »'], + ['coquille.apropos.fonctionnalite.int07', 'Lire les licences, les liens et ce sommaire dans « À propos »'], + // Les sections de l'événement, dans l'ordre du § 2.1 (sections.js), et // leur navigation. ['coquille.navigation', 'Sections de l\u{2019}événement'], diff --git a/test/arborescence.test.js b/test/arborescence.test.js index c9db4d4..afce32a 100644 --- a/test/arborescence.test.js +++ b/test/arborescence.test.js @@ -3766,13 +3766,17 @@ const SCRIPTS_NOMMES = [ { fichier: 'scripts/windows/lancer.ps1', raison: 'lance le projet sous Windows' }, ]; -// Les données de la police embarquée, à leur seule place : les deux -// fichiers de police, que Vite incruste, et leur provenance, que lit -// test/polices.test.js. Ce sont des données, qui ne calculent rien. +// Les données nommées, chacune à sa seule place : les deux fichiers de la +// police embarquée, que Vite incruste, et leur provenance, que lit +// test/polices.test.js ; les deux fichiers du logo de TechnoLibre, que Vite +// incruste aussi, et qui viennent de l'éditeur. Ce sont des données, qui ne +// calculent rien. const DONNEES_NOMMEES = [ { fichier: 'src/polices/NotoSans-Regular.ttf', raison: 'la police embarquée, graisse normale (§ 11.1, § 14.15)' }, { fichier: 'src/polices/NotoSans-Bold.ttf', raison: 'la police embarquée, graisse grasse (§ 11.1, § 14.15)' }, { fichier: 'src/polices/PROVENANCE', raison: 'version amont, adresse et empreinte de chaque fichier de la police' }, + { fichier: 'src/actifs/full_logo_technolibre_2023.svg', raison: 'le logo de TechnoLibre, marque de l’éditeur, tel qu’il le fournit (§ 18.6)' }, + { fichier: 'src/actifs/full_logo_technolibre_2023.png', raison: 'le logo de TechnoLibre, marque de l’éditeur, tel qu’il le fournit (§ 18.6)' }, ]; // Fichiers que le disque porte sans qu'ils soient du projet : l'index de @@ -4249,7 +4253,7 @@ describe('arborescence : un seul chemin de code pour les réservations (§ 5.2)' }); describe('arborescence : une seule langue (§ 13.2)', () => { - test('sous src/, electron/ et scripts/, rien que du JavaScript, des composants Svelte, des feuilles de style, des données JSON, les scripts d’installation nommés et les données nommées de la police', () => { + test('sous src/, electron/ et scripts/, rien que du JavaScript, des composants Svelte, des feuilles de style, des données JSON, les scripts d’installation nommés et les données nommées, la police et le logo', () => { assert.deepEqual(releverLangages(RACINE), []); }); diff --git a/test/construction.long.test.js b/test/construction.long.test.js index 0c297ad..9aca7da 100644 --- a/test/construction.long.test.js +++ b/test/construction.long.test.js @@ -14,14 +14,16 @@ // les modules et le code de ses morceaux, qui passent par les mêmes relevés. // // Les sorties (§ 11.1, § 14.15) : la police embarquée voyage dans deux -// morceaux différés, un par graisse, incrustée octet pour octet ; pdf-lib et +// morceaux différés, un par graisse, incrustée octet pour octet ; le logo de +// TechnoLibre et les textes des deux licences du logiciel voyagent chacun dans +// leur morceau différé, le PNG du logo incrusté octet pour octet ; pdf-lib et // fontkit, quand la page les importe, tiennent chacun leur morceau, sous le // seuil ; aucun de ces morceaux n'est chargé ni préchargé au lancement ; les -// avis de licence sont copiés dans www/licences/, et chaque paquet des -// morceaux construits y a le sien, sous la licence de son package.json. Les -// deux fichiers de la police sont aussi émis dans www/, octet pour octet, -// et nommés par la feuille construite : jetons.css en fait la police de -// l'interface. +// avis de licence et les textes des deux licences sont copiés dans +// www/licences/, et chaque paquet des morceaux construits y a le sien, sous +// la licence de son package.json. Les deux fichiers de la police sont aussi +// émis dans www/, octet pour octet, et nommés par la feuille construite : +// jetons.css en fait la police de l'interface. import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { mkdtempSync, readdirSync, readFileSync, rmSync } from 'node:fs'; @@ -518,7 +520,7 @@ describe('construction : les sorties (§ 11.1, § 14.15)', () => { ); }); - test('la police voyage dans deux morceaux différés, octet pour octet, et ses deux fichiers sont émis dans www/, nommés par la feuille construite ; aucun morceau des sorties n’est chargé ni préchargé au lancement ; les avis de licence sont dans www/licences/, et chaque paquet construit y a le sien', async () => { + test('la police voyage dans deux morceaux différés, octet pour octet, et ses deux fichiers sont émis dans www/, nommés par la feuille construite ; le logo et les textes des licences voyagent chacun dans un morceau différé, le PNG octet pour octet ; aucun morceau des sorties n’est chargé ni préchargé au lancement ; les avis et les textes des licences sont dans www/licences/, et chaque paquet construit y a le sien', async () => { const sortie = mkdtempSync(join(tmpdir(), 'construction-sorties-')); const travailleur = releveDuTravailleur(); try { @@ -547,6 +549,36 @@ describe('construction : les sorties (§ 11.1, § 14.15)', () => { } assert.notEqual(morceauxDePolice[0], morceauxDePolice[1]); + // Le logo et les textes des licences (§ 18.6) : chacun dans un seul + // morceau, différé, que chargerLogo et chargerTexteLicence importent à + // la demande, avec les fichiers qu'il incruste ; le PNG du logo y est + // une URL data:, dont le décodage est le fichier de src/actifs. + const sansRequete = (id) => id.replace(/\?.*$/, ''); + const morceauxDActifs = []; + for (const [module, incrustes] of [ + ['src/actifs/donnees_logo.js', ['src/actifs/full_logo_technolibre_2023.svg', 'src/actifs/full_logo_technolibre_2023.png']], + ['src/actifs/textes_licences.js', ['public/licences/AGPL-3.0-or-later.txt', 'public/licences/LiLiQ-Rplus-1.1.txt']], + ]) { + const id = join(RACINE, ...module.split('/')); + const porteurs = morceaux.filter((m) => m.moduleIds.includes(id)); + assert.equal(porteurs.length, 1, `${module} dans ${porteurs.length} morceaux`); + const [morceau] = porteurs; + assert.ok(morceau.isDynamicEntry && !morceau.isEntry, `${morceau.fileName} n'est pas un morceau différé`); + for (const fichier of incrustes) { + const idFichier = join(RACINE, ...fichier.split('/')); + assert.ok(morceau.moduleIds.some((m) => sansRequete(m) === idFichier), `${fichier} absent de ${morceau.fileName}`); + } + morceauxDActifs.push(morceau.fileName); + } + const morceauDuLogo = morceaux.find((m) => m.fileName === morceauxDActifs[0]); + const logos = [...morceauDuLogo.code.matchAll(/data:image\/png;base64,([A-Za-z0-9+/]+=*)/g)].map((m) => m[1]); + assert.equal(logos.length, 1, `${morceauDuLogo.fileName} : ${logos.length} PNG incrustés`); + assert.equal( + sha256(Buffer.from(logos[0], 'base64')), + sha256(readFileSync(join(RACINE, 'src', 'actifs', 'full_logo_technolibre_2023.png'))), + 'full_logo_technolibre_2023.png', + ); + // Les morceaux des sorties : la police, et tout morceau qui porte un // module de pdf-lib, de fontkit ou de ce qu'ils tirent. Quand la page // les importe, fontkit et pdf-lib tiennent chacun un morceau à part. @@ -557,7 +589,7 @@ describe('construction : les sorties (§ 11.1, § 14.15)', () => { assert.ok(basename(morceau.fileName).startsWith(`${attendu}-`), `${morceau.fileName} : ${[...nomsDePaquets]}`); assert.ok(!(nomsDePaquets.has('@pdf-lib/fontkit') && nomsDePaquets.has('pdf-lib')), morceau.fileName); } - const desSorties = new Set([...morceauxDePolice, ...deLaProduction.map((m) => m.fileName)]); + const desSorties = new Set([...morceauxDePolice, ...morceauxDActifs, ...deLaProduction.map((m) => m.fileName)]); // Au lancement, la page charge les scripts du HTML et les imports // statiques de son point d'entrée, et précharge les modulepreload. @@ -578,8 +610,9 @@ describe('construction : les sorties (§ 11.1, § 14.15)', () => { const auLancement = [...statiques, ...prechargements, ...scriptsDe(html).map((s) => (s.src ?? '').replace(/^\.\//, ''))]; assert.deepEqual(auLancement.filter((nom) => desSorties.has(nom)), []); - // Les avis : copiés tels quels de public/licences/. - for (const avis of ['NotoSans-OFL.txt', 'TIERS.txt']) { + // Les avis et les textes des deux licences du logiciel : copiés tels + // quels de public/licences/, d'où l'exécutable les emporte. + for (const avis of ['NotoSans-OFL.txt', 'TIERS.txt', 'AGPL-3.0-or-later.txt', 'LiLiQ-Rplus-1.1.txt']) { assert.equal( readFileSync(join(sortie, 'licences', avis), 'utf8'), readFileSync(join(RACINE, 'public', 'licences', avis), 'utf8'), diff --git a/test/coquille.test.js b/test/coquille.test.js index c79e80b..54b00e2 100644 --- a/test/coquille.test.js +++ b/test/coquille.test.js @@ -27,6 +27,7 @@ import { fileURLToPath, pathToFileURL } from 'node:url'; import { PRIMITIVES } from '../electron/fichiers.js'; import { CANAL_IMPRESSION, FORMATS_DE_PAGE, imprimer, optionsImpression, servirImpression } from '../electron/impression.js'; import { PAPIERS } from '../src/geometrie/papiers.js'; +import { LIENS } from '../src/interface/apropos.js'; import { describe, test } from './lanceur.js'; const RACINE = fileURLToPath(new URL('..', import.meta.url)); @@ -50,6 +51,23 @@ const SCENARIOS = { vide: { PORTABLE_EXECUTABLE_DIR: '' }, }; +// Les adresses que la page demande d'ouvrir dans une nouvelle fenêtre, puis +// de naviguer : les liens du panneau « À propos », puis des voisines que la +// coquille n'ouvre pas — un autre schéma, sans la barre finale, un autre +// chemin, un hôte qui prolonge le sien, une autre page du même site, un +// fichier local, une adresse inventée. +const LIENS_DE_LA_PAGE = Object.values(LIENS); +const ADRESSES_VOISINES = [ + 'http://technolibre.ca/', + 'https://technolibre.ca', + 'https://technolibre.ca/autre', + 'https://technolibre.ca.exemple.invalid/', + 'https://www.gnu.org/licenses/agpl-3.0.html', + 'file:///page.html', + 'https://exemple.invalid/', +]; +const ADRESSES_DE_LA_PAGE = [...LIENS_DE_LA_PAGE, ...ADRESSES_VOISINES]; + // Délai de l'exécution de la coquille. Le factice ne joue la page qu'une // fois le processus sans rien à faire ; un minuteur ou un écouteur laissé // actif l'en empêche, et l'exécution ne finit jamais. Le délai reste sous @@ -105,7 +123,14 @@ function executerLaCoquille(scenario) { const resultat = spawnSync(process.execPath, ['--import', FACTICE, PRINCIPAL], { cwd: ailleurs, encoding: 'utf8', - env: { ...environnement, TMPDIR: temporaire, TEMP: temporaire, TMP: temporaire, ...SCENARIOS[scenario] }, + env: { + ...environnement, + TMPDIR: temporaire, + TEMP: temporaire, + TMP: temporaire, + GTT_ADRESSES_DE_LA_PAGE: JSON.stringify(ADRESSES_DE_LA_PAGE), + ...SCENARIOS[scenario], + }, timeout: DELAI_MS, killSignal: 'SIGKILL', }); @@ -189,13 +214,24 @@ describe('coquille : processus principal', () => { } }); - test("la page n'ouvre aucune fenêtre et ne navigue nulle part", () => { + test("la page n'ouvre aucune fenêtre et ne navigue nulle part, quelle que soit l'adresse", () => { const { ouvertures, navigations } = journalDeLaCoquille(); - assert.deepEqual(ouvertures, [{ action: 'deny' }]); - assert.ok(navigations.length > 0, 'aucun écouteur de will-navigate'); + assert.deepEqual(ouvertures, ADRESSES_DE_LA_PAGE.map(() => ({ action: 'deny' }))); + assert.ok(navigations.length >= ADRESSES_DE_LA_PAGE.length, 'aucun écouteur de will-navigate'); assert.deepEqual(navigations, navigations.map(() => true)); }); + test('les liens du panneau « À propos », et eux seuls, passent au navigateur du système, dans leur ordre (§ 2, § 18.6)', () => { + assert.equal(LIENS_DE_LA_PAGE.length, 4); + assert.deepEqual(journalDeLaCoquille().externes, LIENS_DE_LA_PAGE); + }); + + test('les adresses que la coquille ouvre sont exactement les liens du panneau « À propos »', () => { + const texte = readFileSync(PRINCIPAL, 'utf8'); + const adresses = [...texte.matchAll(/'(https?:\/\/[^']*)'/gu)].map(([, adresse]) => adresse); + assert.deepEqual(adresses.sort(), [...LIENS_DE_LA_PAGE].sort()); + }); + test('le profil de Chromium est un dossier neuf sous le dossier temporaire, nommé par le pid de la séance, posé avant whenReady, retiré à la sortie (§ 8.6)', () => { const { journal, pid, temporaire } = coquille(); assert.equal(journal.setPath.length, 1, JSON.stringify(journal.setPath)); diff --git a/test/electron_factice.js b/test/electron_factice.js index fbe4775..d8e2560 100644 --- a/test/electron_factice.js +++ b/test/electron_factice.js @@ -8,18 +8,20 @@ // Chargé avant electron/main.js, ce module fait résoudre le spécificateur // « electron » vers lui-même : le processus principal s'exécute contre les // fausses API exportées ici, qui consignent chaque appel. Quand le processus -// n'a plus rien à faire, le module joue le rôle de la page : il exécute -// electron/preload.cjs dans une fonction qui reçoit require, module et -// exports, et appelle chaque fonction du pont exposé, qui atteint les -// gestionnaires posés par le processus principal ; puis gtt.copier, avec un -// texte d'épreuve, et gtt.fichiers.verrouiller sur la racine documents, deux -// verrous réels que la page ne rend pas ; le contenu du second est récrit au -// nom d'une autre séance, comme après une reprise ; puis gtt.imprimer, une -// fois par jeu d'options d'IMPRESSIONS_DE_LA_PAGE, que le processus principal -// porte au print de la fenêtre qui l'a demandé. Il joue ensuite la sortie -// de l'application — before-quit, will-quit, quit —, relève la présence de -// ces deux verrous et de celui d'une autre séance, autre.gtt.verrou, avant et -// après la sortie, puis imprime le journal en JSON sur la sortie standard. +// n'a plus rien à faire, le module joue le rôle de la page : il demande +// l'ouverture d'une nouvelle fenêtre, puis la navigation, vers chacune des +// ADRESSES_DE_LA_PAGE ; il exécute electron/preload.cjs dans une fonction +// qui reçoit require, module et exports, et appelle chaque fonction du pont +// exposé, qui atteint les gestionnaires posés par le processus principal ; +// puis gtt.copier, avec un texte d'épreuve, et gtt.fichiers.verrouiller +// sur la racine documents, deux verrous réels que la page ne rend pas ; le +// contenu du second est récrit au nom d'une autre séance, comme après une +// reprise ; puis gtt.imprimer, une fois par jeu d'options +// d'IMPRESSIONS_DE_LA_PAGE, que le processus principal porte au print de la +// fenêtre qui l'a demandé. Il joue ensuite la sortie de l'application +// — before-quit, will-quit, quit —, relève la présence de ces deux verrous +// et de celui d'une autre séance, autre.gtt.verrou, avant et après la +// sortie, puis imprime le journal en JSON sur la sortie standard. // // Seul require est restreint, à electron, comme dans un rendu en bac à // sable. Les globales de Node du processus d'épreuve, dont process et Buffer, @@ -38,11 +40,12 @@ // désigne par TMPDIR, et par TEMP et TMP sous Windows —, et des Documents et // un AppData qui y vivent ; app.getName, le nom de produit de package.json, // comme Electron. Les dialogues rendent une annulation ; l'explorateur -// consigne le dossier qu'on lui demande d'ouvrir, et réussit ; le -// presse-papiers consigne chaque texte qu'il reçoit ; le print d'une fenêtre -// consigne ses options et répond à son rappel, dans une microtâche, par -// l'issue suivante d'ISSUES_DE_PRINT. Un appel de la page parvient à son -// gestionnaire avec, pour expéditeur, le contenu de la fenêtre. +// consigne le dossier qu'on lui demande d'ouvrir, et réussit, le navigateur +// du système chaque adresse qu'on lui passe ; le presse-papiers consigne +// chaque texte qu'il reçoit ; le print d'une fenêtre consigne ses options et +// répond à son rappel, dans une microtâche, par l'issue suivante +// d'ISSUES_DE_PRINT. Un appel de la page parvient à son gestionnaire avec, +// pour expéditeur, le contenu de la fenêtre. import { existsSync, readFileSync, writeFileSync } from 'node:fs'; import { registerHooks } from 'node:module'; import { tmpdir } from 'node:os'; @@ -90,6 +93,11 @@ const ISSUES_DE_PRINT = [ [false, 'failed'], ]; const NOM_PRODUIT = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8')).productName; +// Les adresses que la page demande d'ouvrir dans une nouvelle fenêtre, puis +// de naviguer, dans l'ordre : le tableau JSON de GTT_ADRESSES_DE_LA_PAGE, +// que l'épreuve pose, ou à défaut une adresse externe inventée. +const ADRESSES_DE_LA_PAGE = + process.env.GTT_ADRESSES_DE_LA_PAGE === undefined ? ['https://exemple.invalid/'] : JSON.parse(process.env.GTT_ADRESSES_DE_LA_PAGE); // Ce que rend app.getPath, par nom. const TEMPORAIRE = tmpdir(); @@ -149,10 +157,13 @@ const journal = { pressePapiers: [], // Options de chaque webContents.print. impressions: [], - // Réponse du gestionnaire d'ouverture de chaque fenêtre à une adresse - // externe. + // Réponse du gestionnaire d'ouverture de chaque fenêtre à chacune des + // ADRESSES_DE_LA_PAGE, dans leur ordre. ouvertures: [], - // Pour chaque écouteur de will-navigate : la navigation est-elle annulée ? + // Adresse de chaque shell.openExternal. + externes: [], + // Pour chaque écouteur de will-navigate et chacune des + // ADRESSES_DE_LA_PAGE : la navigation est-elle annulée ? navigations: [], // Ce que fait le préchargement : modules requis, objets exposés, membres // de gtt.fichiers, et pour chacun les canaux qu'il invoque et sa réponse ; @@ -286,6 +297,9 @@ export const shell = { journal.explorateur.push(chemin); return ''; }, + async openExternal(adresse) { + journal.externes.push(adresse); + }, }; export const clipboard = { @@ -412,14 +426,15 @@ function sortir() { } async function jouerLaPage() { - const externe = 'https://exemple.invalid/'; for (const page of pageDeFenetre) { - journal.ouvertures.push(page.ouverture === null ? null : page.ouverture({ url: externe })); - for (const { evenement, ecouteur } of page.ecouteurs) { - if (evenement !== 'will-navigate') continue; - let annulee = false; - ecouteur({ url: externe, preventDefault: () => (annulee = true) }, externe); - journal.navigations.push(annulee); + for (const adresse of ADRESSES_DE_LA_PAGE) { + journal.ouvertures.push(page.ouverture === null ? null : page.ouverture({ url: adresse })); + for (const { evenement, ecouteur } of page.ecouteurs) { + if (evenement !== 'will-navigate') continue; + let annulee = false; + ecouteur({ url: adresse, preventDefault: () => (annulee = true) }, adresse); + journal.navigations.push(annulee); + } } } try { diff --git a/test/navigateur/designations.js b/test/navigateur/designations.js index 9a48cf7..5fa34e2 100644 --- a/test/navigateur/designations.js +++ b/test/navigateur/designations.js @@ -36,6 +36,7 @@ const ENTREES = [ ['data-bloc', 'à propos : le bloc de version à copier', ['']], ['data-cartouche', 'aperçu : le cartouche de repérage d’une page du plan imprimé', ['']], ['data-case', 'qualité : une case d’une grille de graphique, par « ligne:colonne »', null], + ['data-categorie', 'à propos : une catégorie du sommaire des fonctionnalités, par son code', null], ['data-cellule', 'import : une cellule de l’aperçu, par son champ', null], ['data-champ', 'un champ de saisie ou un sélecteur, par son nom', null], ['data-chargement', 'accueil : le signe d’un calcul en cours', ['']], @@ -106,6 +107,7 @@ const ENTREES = [ ['data-filigrane', 'aperçu : le filigrane BROUILLON d’une feuille', ['']], ['data-fichier', 'import : le fichier lu', ['']], ['data-focus-initial', 'plan : le siège qui reçoit le focus à l’ouverture du panneau', null], + ['data-fonctionnalite', 'à propos : une fonctionnalité du sommaire, par son numéro', null], ['data-fusion', 'import : un groupe d’orthographes fondu', ['']], ['data-fusions', 'import : les groupes d’orthographes', ['']], ['data-fusions-etiquettes', 'import : les étiquettes fondues, à part des appartenances', ['']], @@ -130,6 +132,7 @@ const ENTREES = [ ['data-legende-etiquettes', 'participants : la légende des étiquettes', ['']], ['data-legende-pastille', 'plan : la pastille de la légende', ['']], ['data-legende-regle', 'plan : une entrée de la légende, par sa règle', null], + ['data-lien', 'à propos : un lien vers l’extérieur, par son nom dans LIENS', null], ['data-ligne', 'import : une ligne de l’aperçu, par son rang', null], ['data-ligne-graphique', 'qualité : une ligne de barres, par l’identifiant de ce qu’elle porte', null], ['data-ligne-imprimee', 'aperçu : une ligne d’une liste imprimée, par son rang dans la liste', null], @@ -137,6 +140,7 @@ const ENTREES = [ ['data-liste', 'plan : la liste de noms d’une table', null], ['data-liste-imprimee', 'aperçu : une liste imprimée — l’accueil, ou une table —, par son rang dans le document', null], ['data-liste-travail', 'plan : une liste de travail', ['pressentis', 'reserves', 'titres']], + ['data-logo-enregistre', 'à propos : le chemin où le logo est enregistré', ['']], ['data-marque', 'une marque porteuse d’information, par son nom au registre', null], ['data-meilleure', 'la meilleure proposition : accueil ou génération', ['']], ['data-meilleure-collisions', 'génération : les collisions de la meilleure proposition', ['']], @@ -233,6 +237,7 @@ const ENTREES = [ ['data-table-panneau', 'plan : la table d’un panneau', null], ['data-terme', 'un terme expliqué par une infobulle', null], ['data-texte', 'import : le texte d’une ligne', ['']], + ['data-texte-licence', 'à propos : le texte complet d’une licence, par son nom', null], ['data-theme', ' : le thème, clair ou sombre, que pose le script d’App', null], ['data-theme-choix', 'paramètres : un choix de thème', null], ['data-titre', 'plan : un titre non pourvu d’une liste de travail', null],