humalis 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +85 -201
- package/LICENSE.en.md +86 -0
- package/NOTICE +6 -3
- package/README.en.md +1 -1
- package/README.md +1 -1
- package/dist/analyse/ecran.js +1 -1
- package/dist/cibles/statique/elements-js.js +1 -1
- package/dist/cibles/statique/widgets.js +1 -1
- package/dist/cibles/web/widgets.js +1 -1
- package/dist/parser/miseEnPage.js +1 -1
- package/dist/vocabulaire/table-ecran.js +3 -3
- package/package.json +4 -3
package/LICENSE
CHANGED
|
@@ -1,202 +1,86 @@
|
|
|
1
|
+
Licence Humalis — version 1.0
|
|
1
2
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
or contributory patent infringement, then any patent licenses
|
|
87
|
-
granted to You under this License for that Work shall terminate
|
|
88
|
-
as of the date such litigation is filed.
|
|
89
|
-
|
|
90
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
-
modifications, and in Source or Object form, provided that You
|
|
93
|
-
meet the following conditions:
|
|
94
|
-
|
|
95
|
-
(a) You must give any other recipients of the Work or
|
|
96
|
-
Derivative Works a copy of this License; and
|
|
97
|
-
|
|
98
|
-
(b) You must cause any modified files to carry prominent notices
|
|
99
|
-
stating that You changed the files; and
|
|
100
|
-
|
|
101
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
-
that You distribute, all copyright, patent, trademark, and
|
|
103
|
-
attribution notices from the Source form of the Work,
|
|
104
|
-
excluding those notices that do not pertain to any part of
|
|
105
|
-
the Derivative Works; and
|
|
106
|
-
|
|
107
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
-
distribution, then any Derivative Works that You distribute must
|
|
109
|
-
include a readable copy of the attribution notices contained
|
|
110
|
-
within such NOTICE file, excluding those notices that do not
|
|
111
|
-
pertain to any part of the Derivative Works, in at least one
|
|
112
|
-
of the following places: within a NOTICE text file distributed
|
|
113
|
-
as part of the Derivative Works; within the Source form or
|
|
114
|
-
documentation, if provided along with the Derivative Works; or,
|
|
115
|
-
within a display generated by the Derivative Works, if and
|
|
116
|
-
wherever such third-party notices normally appear. The contents
|
|
117
|
-
of the NOTICE file are for informational purposes only and
|
|
118
|
-
do not modify the License. You may add Your own attribution
|
|
119
|
-
notices within Derivative Works that You distribute, alongside
|
|
120
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
-
that such additional attribution notices cannot be construed
|
|
122
|
-
as modifying the License.
|
|
123
|
-
|
|
124
|
-
You may add Your own copyright statement to Your modifications and
|
|
125
|
-
may provide additional or different license terms and conditions
|
|
126
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
-
the conditions stated in this License.
|
|
130
|
-
|
|
131
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
-
this License, without any additional terms or conditions.
|
|
135
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
-
the terms of any separate license agreement you may have executed
|
|
137
|
-
with Licensor regarding such Contributions.
|
|
138
|
-
|
|
139
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
-
except as required for reasonable and customary use in describing the
|
|
142
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
-
|
|
144
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
-
implied, including, without limitation, any warranties or conditions
|
|
149
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
-
appropriateness of using or redistributing the Work and assume any
|
|
152
|
-
risks associated with Your exercise of permissions under this License.
|
|
153
|
-
|
|
154
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
-
unless required by applicable law (such as deliberate and grossly
|
|
157
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
-
liable to You for damages, including any direct, indirect, special,
|
|
159
|
-
incidental, or consequential damages of any character arising as a
|
|
160
|
-
result of this License or out of the use or inability to use the
|
|
161
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
-
other commercial damages or losses), even if such Contributor
|
|
164
|
-
has been advised of the possibility of such damages.
|
|
165
|
-
|
|
166
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
-
or other liability obligations and/or rights consistent with this
|
|
170
|
-
License. However, in accepting such obligations, You may act only
|
|
171
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
-
defend, and hold each Contributor harmless for any liability
|
|
174
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
-
of your accepting any such warranty or additional liability.
|
|
176
|
-
|
|
177
|
-
END OF TERMS AND CONDITIONS
|
|
178
|
-
|
|
179
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
-
|
|
181
|
-
To apply the Apache License to your work, attach the following
|
|
182
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
-
replaced with your own identifying information. (Don't include
|
|
184
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
-
comment syntax for the file format. We also recommend that a
|
|
186
|
-
file or class name and description of purpose be included on the
|
|
187
|
-
same "printed page" as the copyright notice for easier
|
|
188
|
-
identification within third-party archives.
|
|
189
|
-
|
|
190
|
-
Copyright [yyyy] [name of copyright owner]
|
|
191
|
-
|
|
192
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
-
you may not use this file except in compliance with the License.
|
|
194
|
-
You may obtain a copy of the License at
|
|
195
|
-
|
|
196
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
-
|
|
198
|
-
Unless required by applicable law or agreed to in writing, software
|
|
199
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
-
See the License for the specific language governing permissions and
|
|
202
|
-
limitations under the License.
|
|
3
|
+
Copyright © 2026 Les auteurs de Humalis. Humalis a été créé par emch04.
|
|
4
|
+
Le texte français de cette licence fait foi ; toute traduction n'est donnée qu'à titre d'information.
|
|
5
|
+
|
|
6
|
+
1. Définitions
|
|
7
|
+
|
|
8
|
+
- Le Logiciel : le compilateur Humalis, ses outils en ligne de commande, son extension d'éditeur,
|
|
9
|
+
son code source, sa documentation et les fichiers distribués sous cette licence, à l'exclusion des
|
|
10
|
+
composants de tiers régis par leur propre licence.
|
|
11
|
+
- Une Application : un logiciel créé avec le Logiciel, c'est-à-dire les fichiers écrits en Humalis et
|
|
12
|
+
tout ce que le compilateur génère à partir d'eux, y compris les fichiers d'aide que le compilateur
|
|
13
|
+
copie dans les projets qu'il produit.
|
|
14
|
+
- La Commercialisation du Logiciel : vendre, louer ou concéder contre paiement le Logiciel lui-même
|
|
15
|
+
(une copie, une version modifiée ou renommée), ou le présenter comme son propre produit.
|
|
16
|
+
Ne sont pas une Commercialisation du Logiciel :
|
|
17
|
+
- vendre une Application faite avec Humalis ;
|
|
18
|
+
- vendre ses services pour créer des Applications avec Humalis ;
|
|
19
|
+
- proposer, gratuitement ou contre paiement, une plateforme ou un service qui utilise le Logiciel
|
|
20
|
+
pour créer, héberger ou faire fonctionner des Applications pour ses utilisateurs, y compris quand
|
|
21
|
+
ces utilisateurs écrivent eux-mêmes en Humalis ;
|
|
22
|
+
- enseigner Humalis, écrire ou vendre des livres, des cours ou des formations sur Humalis.
|
|
23
|
+
- Une Modification : tout changement apporté au Logiciel, y compris une copie dérivée (« fork »).
|
|
24
|
+
|
|
25
|
+
2. Ce que tu as le droit de faire
|
|
26
|
+
|
|
27
|
+
Gratuitement, partout dans le monde, à condition de respecter cette licence, tu peux :
|
|
28
|
+
(a) télécharger, lire, exécuter et utiliser le Logiciel, à titre personnel, éducatif, de recherche,
|
|
29
|
+
ou dans une entreprise, y compris pour créer des applications commerciales ;
|
|
30
|
+
(b) modifier le Logiciel ;
|
|
31
|
+
(c) créer, déployer, distribuer et vendre des Applications, sans rien devoir aux auteurs de Humalis ;
|
|
32
|
+
(d) partager gratuitement le Logiciel, tel quel ou modifié, aux conditions suivantes :
|
|
33
|
+
- joindre cette licence et les mentions de droits d'auteur ;
|
|
34
|
+
- pour une version modifiée : indiquer clairement qu'elle est modifiée, ne pas l'appeler
|
|
35
|
+
« Humalis » ni laisser croire qu'elle est la version officielle, et la partager sous cette
|
|
36
|
+
même licence (elle ne peut donc pas non plus être vendue).
|
|
37
|
+
|
|
38
|
+
3. Ce qui est interdit
|
|
39
|
+
|
|
40
|
+
Sans l'accord écrit préalable des auteurs de Humalis, tu ne peux pas :
|
|
41
|
+
(a) commercialiser le Logiciel, y compris une version modifiée ou renommée ;
|
|
42
|
+
(b) partager une Modification du Logiciel sans respecter les conditions de l'article 2 (d), ou la
|
|
43
|
+
partager sous une autre licence ;
|
|
44
|
+
(c) retirer, falsifier ou masquer les mentions de droits d'auteur, d'attribution ou de licence ;
|
|
45
|
+
(d) utiliser le nom « Humalis », son logo ou ses marques d'une façon qui laisse croire à un soutien ou
|
|
46
|
+
à un statut officiel ;
|
|
47
|
+
(e) accorder des droits sur le Logiciel à d'autres conditions que celles de cette licence.
|
|
48
|
+
|
|
49
|
+
4. Ce que tu crées t'appartient
|
|
50
|
+
|
|
51
|
+
Les auteurs de Humalis ne revendiquent aucun droit sur les Applications. Tu peux les modifier, les
|
|
52
|
+
distribuer et les vendre librement. Les fichiers d'aide que le compilateur copie dans une Application
|
|
53
|
+
en font partie : tu peux les utiliser, les modifier, les distribuer et les vendre avec elle, sans
|
|
54
|
+
autre condition. Les interdictions de l'article 3 ne s'appliquent jamais à une Application.
|
|
55
|
+
|
|
56
|
+
5. Contributions
|
|
57
|
+
|
|
58
|
+
Proposer une modification ne transfère aucun droit de propriété. Les contributions ne sont acceptées
|
|
59
|
+
que selon des conditions écrites séparées.
|
|
60
|
+
|
|
61
|
+
6. Propriété et marques
|
|
62
|
+
|
|
63
|
+
Tous les droits non accordés expressément sont réservés. Cette licence ne transfère aucun droit de
|
|
64
|
+
propriété, de brevet ou de marque.
|
|
65
|
+
|
|
66
|
+
7. Fin des droits
|
|
67
|
+
|
|
68
|
+
Tes droits prennent fin si tu enfreins gravement cette licence et ne corriges pas l'infraction dans
|
|
69
|
+
les 30 jours suivant un avertissement écrit, lorsque la correction est possible. Les Applications que
|
|
70
|
+
tu as déjà créées restent à toi.
|
|
71
|
+
|
|
72
|
+
8. Aucune garantie
|
|
73
|
+
|
|
74
|
+
Dans les limites permises par la loi, le Logiciel est fourni « tel quel », sans garantie d'aucune
|
|
75
|
+
sorte, et les auteurs de Humalis ne sont responsables d'aucun dommage indirect lié à son utilisation.
|
|
76
|
+
Rien dans cette licence n'exclut une responsabilité que la loi interdit d'exclure.
|
|
77
|
+
|
|
78
|
+
9. Droit applicable
|
|
79
|
+
|
|
80
|
+
Cette licence est régie par le droit français.
|
|
81
|
+
|
|
82
|
+
10. Versions précédentes et composants de tiers
|
|
83
|
+
|
|
84
|
+
Cette licence ne s'applique qu'aux versions publiées sous elle. Les versions publiées sous la licence
|
|
85
|
+
Apache 2.0 (1.0.0 à 1.0.3) restent sous cette licence. Les composants de tiers gardent leur propre
|
|
86
|
+
licence.
|
package/LICENSE.en.md
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
Humalis License — version 1.0 (English translation)
|
|
2
|
+
|
|
3
|
+
This is a translation for information only. The French text in the LICENSE file is the only
|
|
4
|
+
authoritative version.
|
|
5
|
+
|
|
6
|
+
Copyright © 2026 The Humalis authors ("Les auteurs de Humalis"). Humalis was created by
|
|
7
|
+
emch04.
|
|
8
|
+
|
|
9
|
+
1. Definitions
|
|
10
|
+
|
|
11
|
+
- The Software: the Humalis compiler, its command-line tools, its editor extension, its source code,
|
|
12
|
+
its documentation and the files distributed under this license, excluding third-party components
|
|
13
|
+
governed by their own licenses.
|
|
14
|
+
- An Application: software created with the Software, that is, the files written in Humalis and
|
|
15
|
+
everything the compiler generates from them, including the helper files the compiler copies into
|
|
16
|
+
the projects it produces.
|
|
17
|
+
- Commercialisation of the Software: selling, renting or licensing for a fee the Software itself (a
|
|
18
|
+
copy, a modified or renamed version), or presenting it as one's own product.
|
|
19
|
+
The following are not Commercialisation of the Software:
|
|
20
|
+
- selling an Application made with Humalis;
|
|
21
|
+
- selling one's services to create Applications with Humalis;
|
|
22
|
+
- offering, free of charge or for a fee, a platform or service that uses the Software to create,
|
|
23
|
+
host or run Applications for its users, including when those users write Humalis themselves;
|
|
24
|
+
- teaching Humalis, writing or selling books, courses or training about Humalis.
|
|
25
|
+
- A Modification: any change made to the Software, including a derived copy ("fork").
|
|
26
|
+
|
|
27
|
+
2. What you may do
|
|
28
|
+
|
|
29
|
+
Free of charge, worldwide, provided you comply with this license, you may:
|
|
30
|
+
(a) download, read, run and use the Software, for personal, educational or research purposes, or in
|
|
31
|
+
a company, including to create commercial applications;
|
|
32
|
+
(b) modify the Software;
|
|
33
|
+
(c) create, deploy, distribute and sell Applications, owing nothing to the Humalis authors;
|
|
34
|
+
(d) share the Software free of charge, unmodified or modified, under the following conditions:
|
|
35
|
+
- include this license and the copyright notices;
|
|
36
|
+
- for a modified version: state clearly that it is modified, do not call it "Humalis" or imply
|
|
37
|
+
that it is the official version, and share it under this same license (so it cannot be sold
|
|
38
|
+
either).
|
|
39
|
+
|
|
40
|
+
3. What is prohibited
|
|
41
|
+
|
|
42
|
+
Without the prior written permission of the Humalis authors, you may not:
|
|
43
|
+
(a) commercialise the Software, including a modified or renamed version;
|
|
44
|
+
(b) share a Modification of the Software without meeting the conditions of article 2 (d), or share
|
|
45
|
+
it under another license;
|
|
46
|
+
(c) remove, falsify or obscure copyright, attribution or license notices;
|
|
47
|
+
(d) use the "Humalis" name, logo or trademarks in a way that suggests sponsorship or official status;
|
|
48
|
+
(e) grant rights in the Software on terms other than those of this license.
|
|
49
|
+
|
|
50
|
+
4. What you create belongs to you
|
|
51
|
+
|
|
52
|
+
The Humalis authors claim no rights in Applications. You may modify, distribute and sell them freely.
|
|
53
|
+
The helper files the compiler copies into an Application are part of it: you may use, modify,
|
|
54
|
+
distribute and sell them with it, without any other condition. The prohibitions of article 3 never
|
|
55
|
+
apply to an Application.
|
|
56
|
+
|
|
57
|
+
5. Contributions
|
|
58
|
+
|
|
59
|
+
Proposing a change does not transfer any ownership. Contributions are accepted only under separate
|
|
60
|
+
written terms.
|
|
61
|
+
|
|
62
|
+
6. Ownership and trademarks
|
|
63
|
+
|
|
64
|
+
All rights not expressly granted are reserved. This license transfers no ownership, patent or
|
|
65
|
+
trademark rights.
|
|
66
|
+
|
|
67
|
+
7. Termination
|
|
68
|
+
|
|
69
|
+
Your rights end if you seriously breach this license and do not cure the breach within 30 days of a
|
|
70
|
+
written notice, where a cure is possible. The Applications you have already created remain yours.
|
|
71
|
+
|
|
72
|
+
8. No warranty
|
|
73
|
+
|
|
74
|
+
To the extent permitted by law, the Software is provided "as is", without warranty of any kind, and
|
|
75
|
+
the Humalis authors are not liable for any indirect damage arising from its use. Nothing in this
|
|
76
|
+
license excludes liability that the law does not allow to be excluded.
|
|
77
|
+
|
|
78
|
+
9. Governing law
|
|
79
|
+
|
|
80
|
+
This license is governed by French law.
|
|
81
|
+
|
|
82
|
+
10. Previous versions and third-party components
|
|
83
|
+
|
|
84
|
+
This license applies only to the versions released under it. The versions released under the Apache
|
|
85
|
+
License 2.0 (1.0.0 to 1.0.3) remain under that license. Third-party components keep their own
|
|
86
|
+
licenses.
|
package/NOTICE
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
Humalis
|
|
2
2
|
Copyright 2026 Les auteurs de Humalis
|
|
3
3
|
|
|
4
|
-
Humalis a été créé par
|
|
4
|
+
Humalis a été créé par emch04.
|
|
5
5
|
|
|
6
|
-
Ce logiciel est distribué sous la
|
|
7
|
-
fichier LICENSE,
|
|
6
|
+
Ce logiciel est distribué sous la Licence Humalis, version 1.0 : voir le
|
|
7
|
+
fichier LICENSE (texte français, qui fait foi) et LICENSE.en.md (traduction
|
|
8
|
+
anglaise). Tout le monde peut l'utiliser, le modifier et le partager
|
|
9
|
+
gratuitement ; personne ne peut vendre Humalis lui-même. Les versions 1.0.0 à
|
|
10
|
+
1.0.3 restent sous la licence Apache 2.0.
|
|
8
11
|
|
|
9
12
|
Le nom « Humalis » et son logo ne sont pas couverts par cette licence
|
|
10
13
|
(article 6) : ils ne peuvent pas servir à présenter un autre produit
|
package/README.en.md
CHANGED
|
@@ -140,6 +140,6 @@ The [`llms.txt`](llms.txt) file, shipped with the package, sums up the grammar,
|
|
|
140
140
|
|
|
141
141
|
## Licence
|
|
142
142
|
|
|
143
|
-
[
|
|
143
|
+
[Humalis License](LICENSE.en.md) (the French text in [`LICENSE`](LICENSE) is authoritative): you may use, modify and share Humalis free of charge, but not sell it. Copyright 2026 The Humalis authors ("Les auteurs de Humalis"); Humalis was created by emch04 (see [`NOTICE`](NOTICE)).
|
|
144
144
|
|
|
145
145
|
The code Humalis produces (sites, apps, servers) belongs to you, with no obligations. The "Humalis" name and logo are not covered by the licence.
|
package/README.md
CHANGED
|
@@ -138,6 +138,6 @@ Le fichier [`llms.txt`](llms.txt), livré avec le paquet, résume la grammaire,
|
|
|
138
138
|
|
|
139
139
|
## Licence
|
|
140
140
|
|
|
141
|
-
[
|
|
141
|
+
[Licence Humalis](LICENSE) : tu peux utiliser, modifier et partager Humalis gratuitement, mais pas le vendre. Copyright 2026 Les auteurs de Humalis ; Humalis a été créé par emch04 (voir [`NOTICE`](NOTICE)).
|
|
142
142
|
|
|
143
143
|
Le code que Humalis produit (sites, applications, serveurs) t'appartient, sans aucune obligation. Le nom « Humalis » et son logo ne sont pas couverts par la licence.
|
package/dist/analyse/ecran.js
CHANGED
|
@@ -38,7 +38,7 @@ export function verifierElementEcran(element, s) {
|
|
|
38
38
|
break;
|
|
39
39
|
case 'avatar':
|
|
40
40
|
if (texte !== undefined && texte.trim() === '')
|
|
41
|
-
s.erreur('un avatar prend le nom de la personne : avatar "
|
|
41
|
+
s.erreur('un avatar prend le nom de la personne : avatar "Camille Martin".', ligne);
|
|
42
42
|
break;
|
|
43
43
|
case 'progression': {
|
|
44
44
|
const type = s.typeDe(contenu);
|
|
@@ -60,7 +60,7 @@ ${formes}
|
|
|
60
60
|
parties.push(`
|
|
61
61
|
// ─── L'avatar : la photo, ou les initiales ──────────────────────────────
|
|
62
62
|
|
|
63
|
-
/** «
|
|
63
|
+
/** « Camille Martin » donne « CM ». */
|
|
64
64
|
function initiales(nom) {
|
|
65
65
|
const mots = String(nom).trim().split(/\\s+/).filter(Boolean);
|
|
66
66
|
return ((mots[0]?.[0] ?? '') + (mots.length > 1 ? (mots[mots.length - 1][0] ?? '') : '')).toUpperCase();
|
|
@@ -81,7 +81,7 @@ export function arbreWidget(genre, a) {
|
|
|
81
81
|
throw new Error('le choix d’un fichier n’est pas encore produit pour le site statique');
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
/** Les initiales d'un nom : «
|
|
84
|
+
/** Les initiales d'un nom : « Camille Martin » donne « CM » (le même calcul que humalis.initiales). */
|
|
85
85
|
export function initiales(nom) {
|
|
86
86
|
const mots = nom.trim().split(/\s+/).filter(Boolean);
|
|
87
87
|
return ((mots[0]?.[0] ?? '') + (mots.length > 1 ? (mots[mots.length - 1][0] ?? '') : '')).toUpperCase();
|
|
@@ -185,7 +185,7 @@ export function dependancesDeDeveloppement(codes) {
|
|
|
185
185
|
}
|
|
186
186
|
const AVATAR_TSX = `import { useState } from 'react';
|
|
187
187
|
|
|
188
|
-
/** Les initiales d'un nom : «
|
|
188
|
+
/** Les initiales d'un nom : « Camille Martin » donne « CM ». */
|
|
189
189
|
function initiales(nom: string): string {
|
|
190
190
|
const mots = nom.trim().split(/\\s+/).filter(Boolean);
|
|
191
191
|
return ((mots[0]?.[0] ?? '') + (mots.length > 1 ? (mots[mots.length - 1][0] ?? '') : '')).toUpperCase();
|
|
@@ -30,7 +30,7 @@ export function analyserStylePropre(flux, propriete) {
|
|
|
30
30
|
return { propriete: nom, valeur: '5' };
|
|
31
31
|
// « photo "{p.photo}" » : un texte, avec ses {variables}.
|
|
32
32
|
if (nom === 'photo') {
|
|
33
|
-
const jeton = flux.attendre('CHAINE', undefined, 'l’image entre guillemets : avec photo "
|
|
33
|
+
const jeton = flux.attendre('CHAINE', undefined, 'l’image entre guillemets : avec photo "camille.jpg"');
|
|
34
34
|
return { propriete: nom, valeur: jeton.valeur, parties: jeton.parties ?? [] };
|
|
35
35
|
}
|
|
36
36
|
const media = analyserOptionMedia(flux, nom);
|
|
@@ -238,8 +238,8 @@ export const ENTREES_ECRAN = [
|
|
|
238
238
|
}),
|
|
239
239
|
elementEcran({
|
|
240
240
|
mot: 'avatar',
|
|
241
|
-
description: 'Le visage d’une personne : sa photo (« avec photo "
|
|
242
|
-
exemple: PAGE(' avatar "
|
|
241
|
+
description: 'Le visage d’une personne : sa photo (« avec photo "camille.jpg" ») ou, sans photo, ses initiales sur un fond de couleur.',
|
|
242
|
+
exemple: PAGE(' avatar "Camille Martin"\n avatar "Le Fleuve" avec photo "logo.png" et taille grande'),
|
|
243
243
|
web: '<span role="img" aria-label="…"> avec <img> ou les initiales',
|
|
244
244
|
mobile: '<View> avec <Image> ou <Text>',
|
|
245
245
|
statique: '<span class="humalis-avatar" role="img">',
|
|
@@ -366,7 +366,7 @@ export const ENTREES_ECRAN = [
|
|
|
366
366
|
optionEcran('description', 'Le texte lu par un lecteur d’écran quand l’élément n’a pas de texte visible : « avec description "Panier" ».', PAGE(' icone "panier" avec description "Panier"'), ['icone', 'avatar', 'progression', 'etoiles', 'compteur', 'qr', 'chargement', 'badge', 'image', 'audio']),
|
|
367
367
|
optionEcran('decoratif', 'Une image purement décorative, ignorée par le lecteur d’écran : « avec decoratif ».', PAGE(' titre "Accueil"\n image "filet.png" avec decoratif'), ['image', 'icone']),
|
|
368
368
|
optionEcran('niveau', 'Le niveau d’un sous-titre, de 2 à 6 : « avec niveau 3 ».', PAGE(' titre "Accueil"\n soustitre "Détails" avec niveau 3'), ['soustitre']),
|
|
369
|
-
optionEcran('photo', 'L’image d’un avatar : « avec photo "
|
|
369
|
+
optionEcran('photo', 'L’image d’un avatar : « avec photo "camille.jpg" », ou « avec photo "{p.photo}" » pour une image qui vient d’une donnée.', PAGE(' avatar "Camille Martin" avec photo "camille.jpg"'), ['avatar']),
|
|
370
370
|
optionEcran('modifiable', 'Des étoiles sur lesquelles on clique pour changer la variable : « etoiles note avec modifiable ».', PAGE(' variable note = 3\n etoiles note avec modifiable'), ['etoiles']),
|
|
371
371
|
optionEcran('ouvert', 'Un onglet ou un deroulant ouvert au départ : « deroulant "Détails" avec ouvert : ».', PAGE(' deroulant "Détails" avec ouvert :\n texte "a"'), ['onglet', 'deroulant']),
|
|
372
372
|
optionEcran('plusieurs', 'Un accordéon dont plusieurs deroulant peuvent être ouverts en même temps.', PAGE(' accordeon avec plusieurs :\n deroulant "A" :\n texte "a"\n deroulant "B" :\n texte "b"'), ['accordeon']),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "humalis",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Un seul langage, en français, pour créer une application complète : web, mobile, desktop et serveur",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"dist",
|
|
11
11
|
"llms.txt",
|
|
12
12
|
"NOTICE",
|
|
13
|
+
"LICENSE.en.md",
|
|
13
14
|
"README.en.md",
|
|
14
15
|
"docs/guide.md",
|
|
15
16
|
"docs/guide.en.md",
|
|
@@ -61,8 +62,8 @@
|
|
|
61
62
|
"compiler",
|
|
62
63
|
"french"
|
|
63
64
|
],
|
|
64
|
-
"license": "
|
|
65
|
-
"author": "
|
|
65
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
66
|
+
"author": "emch04",
|
|
66
67
|
"repository": {
|
|
67
68
|
"type": "git",
|
|
68
69
|
"url": "git+https://github.com/emch04/humalis.git"
|