theo_lafond_react_ci_cd 0.0.0

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.
Files changed (63) hide show
  1. package/babel.config.cjs +6 -0
  2. package/cypress.config.js +12 -0
  3. package/dist/App.css +35 -0
  4. package/dist/App.js +147 -0
  5. package/dist/assets/react.svg +1 -0
  6. package/dist/components/PersonForm.css +63 -0
  7. package/dist/components/PersonForm.js +312 -0
  8. package/dist/domain/module.js +33 -0
  9. package/dist/domain/services/personService.js +126 -0
  10. package/dist/domain/validator.js +143 -0
  11. package/dist/index.css +64 -0
  12. package/dist/index.js +13 -0
  13. package/dist/main.js +11 -0
  14. package/dist/pages/Home.css +57 -0
  15. package/dist/pages/Home.js +102 -0
  16. package/dist/pages/Register.css +28 -0
  17. package/dist/pages/Register.js +40 -0
  18. package/dist/utils/errorMessages.js +46 -0
  19. package/eslint.config.js +29 -0
  20. package/jest.config.cjs +9 -0
  21. package/jsdoc.json +8 -0
  22. package/package.json +50 -0
  23. package/public/docs/App.jsx.html +114 -0
  24. package/public/docs/components_PersonForm.jsx.html +282 -0
  25. package/public/docs/domain_module.js.html +81 -0
  26. package/public/docs/domain_personService.js.html +69 -0
  27. package/public/docs/domain_validator.js.html +190 -0
  28. package/public/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
  29. package/public/docs/fonts/OpenSans-Bold-webfont.svg +1830 -0
  30. package/public/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
  31. package/public/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  32. package/public/docs/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
  33. package/public/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  34. package/public/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
  35. package/public/docs/fonts/OpenSans-Italic-webfont.svg +1830 -0
  36. package/public/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
  37. package/public/docs/fonts/OpenSans-Light-webfont.eot +0 -0
  38. package/public/docs/fonts/OpenSans-Light-webfont.svg +1831 -0
  39. package/public/docs/fonts/OpenSans-Light-webfont.woff +0 -0
  40. package/public/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  41. package/public/docs/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
  42. package/public/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  43. package/public/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
  44. package/public/docs/fonts/OpenSans-Regular-webfont.svg +1831 -0
  45. package/public/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
  46. package/public/docs/global.html +2439 -0
  47. package/public/docs/module-App.html +362 -0
  48. package/public/docs/module-Home.html +373 -0
  49. package/public/docs/module-PersonForm.html +723 -0
  50. package/public/docs/module-Register.html +281 -0
  51. package/public/docs/module.js.html +81 -0
  52. package/public/docs/pages_Home.jsx.html +106 -0
  53. package/public/docs/pages_Register.jsx.html +78 -0
  54. package/public/docs/scripts/linenumber.js +25 -0
  55. package/public/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  56. package/public/docs/scripts/prettify/lang-css.js +2 -0
  57. package/public/docs/scripts/prettify/prettify.js +28 -0
  58. package/public/docs/styles/jsdoc-default.css +358 -0
  59. package/public/docs/styles/prettify-jsdoc.css +111 -0
  60. package/public/docs/styles/prettify-tomorrow.css +132 -0
  61. package/public/docs/utils_errorMessages.js.html +87 -0
  62. package/public/docs/validator.js.html +179 -0
  63. package/public/vite.svg +1 -0
@@ -0,0 +1,362 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>JSDoc: Module: App</title>
6
+
7
+ <script src="scripts/prettify/prettify.js"> </script>
8
+ <script src="scripts/prettify/lang-css.js"> </script>
9
+ <!--[if lt IE 9]>
10
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11
+ <![endif]-->
12
+ <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
13
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
14
+ </head>
15
+
16
+ <body>
17
+
18
+ <div id="main">
19
+
20
+ <h1 class="page-title">Module: App</h1>
21
+
22
+
23
+
24
+
25
+
26
+
27
+ <section>
28
+
29
+ <header>
30
+
31
+
32
+
33
+
34
+
35
+ </header>
36
+
37
+ <article>
38
+ <div class="container-overview">
39
+
40
+
41
+ <div class="description">Main App Component
42
+
43
+ Handles routing, state management for registered persons, and localStorage persistence.</div>
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+ <dl class="details">
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+ <dt class="tag-source">Source:</dt>
91
+ <dd class="tag-source"><ul class="dummy"><li>
92
+ <a href="App.jsx.html">App.jsx</a>, <a href="App.jsx.html#line7">line 7</a>
93
+ </li></ul></dd>
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+ </dl>
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+ <h5>Returns:</h5>
118
+
119
+
120
+ <div class="param-desc">
121
+ The main application component with routes
122
+ </div>
123
+
124
+
125
+
126
+ <dl>
127
+ <dt>
128
+ Type
129
+ </dt>
130
+ <dd>
131
+
132
+ <span class="param-type">JSX.Element</span>
133
+
134
+
135
+ </dd>
136
+ </dl>
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+ </div>
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+ <h3 class="subsection-title">Methods</h3>
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+ <h4 class="name" id="~addPerson"><span class="type-signature">(private, inner) </span>addPerson<span class="signature">(person)</span><span class="type-signature"></span></h4>
172
+
173
+
174
+
175
+
176
+
177
+
178
+ <div class="description">
179
+ Adds a person to the application state and persists it to localStorage.
180
+
181
+ Delegates business validation (e.g., email uniqueness)
182
+ to the domain service (addPersonService).
183
+ </div>
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+ <h5>Parameters:</h5>
194
+
195
+
196
+ <table class="params">
197
+ <thead>
198
+ <tr>
199
+
200
+ <th>Name</th>
201
+
202
+
203
+ <th>Type</th>
204
+
205
+
206
+
207
+
208
+
209
+ <th class="last">Description</th>
210
+ </tr>
211
+ </thead>
212
+
213
+ <tbody>
214
+
215
+
216
+ <tr>
217
+
218
+ <td class="name"><code>person</code></td>
219
+
220
+
221
+ <td class="type">
222
+
223
+
224
+ <span class="param-type">Object</span>
225
+
226
+
227
+
228
+ </td>
229
+
230
+
231
+
232
+
233
+
234
+ <td class="description last">Person object to add</td>
235
+ </tr>
236
+
237
+
238
+ </tbody>
239
+ </table>
240
+
241
+
242
+
243
+
244
+
245
+
246
+ <dl class="details">
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+ <dt class="tag-source">Source:</dt>
274
+ <dd class="tag-source"><ul class="dummy"><li>
275
+ <a href="App.jsx.html">App.jsx</a>, <a href="App.jsx.html#line36">line 36</a>
276
+ </li></ul></dd>
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+ </dl>
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+ <h5>Throws:</h5>
299
+
300
+
301
+
302
+ <dl>
303
+ <dt>
304
+ <div class="param-desc">
305
+ Propagates errors thrown by addPersonService
306
+ </div>
307
+ </dt>
308
+ <dd></dd>
309
+ <dt>
310
+ <dl>
311
+ <dt>
312
+ Type
313
+ </dt>
314
+ <dd>
315
+
316
+ <span class="param-type">Error</span>
317
+
318
+
319
+ </dd>
320
+ </dl>
321
+ </dt>
322
+ <dd></dd>
323
+ </dl>
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+ </article>
341
+
342
+ </section>
343
+
344
+
345
+
346
+
347
+ </div>
348
+
349
+ <nav>
350
+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-App.html">App</a></li><li><a href="module-Home.html">Home</a></li><li><a href="module-PersonForm.html">PersonForm</a></li><li><a href="module-Register.html">Register</a></li></ul><h3>Global</h3><ul><li><a href="global.html#addPerson">addPerson</a></li><li><a href="global.html#calculateAge">calculateAge</a></li><li><a href="global.html#errorMessages">errorMessages</a></li><li><a href="global.html#getErrorMessage">getErrorMessage</a></li><li><a href="global.html#validateAge">validateAge</a></li><li><a href="global.html#validateCity">validateCity</a></li><li><a href="global.html#validateEmail">validateEmail</a></li><li><a href="global.html#validateName">validateName</a></li><li><a href="global.html#validatePerson">validatePerson</a></li><li><a href="global.html#validateZipCode">validateZipCode</a></li></ul>
351
+ </nav>
352
+
353
+ <br class="clear">
354
+
355
+ <footer>
356
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Feb 20 2026 09:18:58 GMT+0100 (heure normale d’Europe centrale)
357
+ </footer>
358
+
359
+ <script> prettyPrint(); </script>
360
+ <script src="scripts/linenumber.js"> </script>
361
+ </body>
362
+ </html>
@@ -0,0 +1,373 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>JSDoc: Module: Home</title>
6
+
7
+ <script src="scripts/prettify/prettify.js"> </script>
8
+ <script src="scripts/prettify/lang-css.js"> </script>
9
+ <!--[if lt IE 9]>
10
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11
+ <![endif]-->
12
+ <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
13
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
14
+ </head>
15
+
16
+ <body>
17
+
18
+ <div id="main">
19
+
20
+ <h1 class="page-title">Module: Home</h1>
21
+
22
+
23
+
24
+
25
+
26
+
27
+ <section>
28
+
29
+ <header>
30
+
31
+
32
+
33
+
34
+
35
+ </header>
36
+
37
+ <article>
38
+ <div class="container-overview">
39
+
40
+
41
+ <div class="description">Home Component
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+ <h5>Parameters:</h5>
58
+
59
+
60
+ <table class="params">
61
+ <thead>
62
+ <tr>
63
+
64
+ <th>Name</th>
65
+
66
+
67
+ <th>Type</th>
68
+
69
+
70
+
71
+
72
+
73
+ <th class="last">Description</th>
74
+ </tr>
75
+ </thead>
76
+
77
+ <tbody>
78
+
79
+
80
+ <tr>
81
+
82
+ <td class="name"><code>props</code></td>
83
+
84
+
85
+ <td class="type">
86
+
87
+
88
+ <span class="param-type">Object</span>
89
+
90
+
91
+
92
+ </td>
93
+
94
+
95
+
96
+
97
+
98
+ <td class="description last">
99
+ <h6>Properties</h6>
100
+
101
+
102
+ <table class="params">
103
+ <thead>
104
+ <tr>
105
+
106
+ <th>Name</th>
107
+
108
+
109
+ <th>Type</th>
110
+
111
+
112
+
113
+
114
+
115
+ <th class="last">Description</th>
116
+ </tr>
117
+ </thead>
118
+
119
+ <tbody>
120
+
121
+
122
+ <tr>
123
+
124
+ <td class="name"><code>persons</code></td>
125
+
126
+
127
+ <td class="type">
128
+
129
+
130
+ <span class="param-type">Array.&lt;Object></span>
131
+
132
+
133
+
134
+ </td>
135
+
136
+
137
+
138
+
139
+
140
+ <td class="description last">Array of person objects to display</td>
141
+ </tr>
142
+
143
+
144
+ </tbody>
145
+ </table>
146
+
147
+ </td>
148
+ </tr>
149
+
150
+
151
+ </tbody>
152
+ </table>
153
+
154
+
155
+
156
+
157
+
158
+
159
+ <dl class="details">
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+ <dt class="tag-source">Source:</dt>
187
+ <dd class="tag-source"><ul class="dummy"><li>
188
+ <a href="pages_Home.jsx.html">pages/Home.jsx</a>, <a href="pages_Home.jsx.html#line5">line 5</a>
189
+ </li></ul></dd>
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+ </dl>
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+ <h5>Returns:</h5>
214
+
215
+
216
+
217
+
218
+ <dl>
219
+ <dt>
220
+ Type
221
+ </dt>
222
+ <dd>
223
+
224
+ <span class="param-type">JSX.Element</span>
225
+
226
+
227
+ </dd>
228
+ </dl>
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+ </div>
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+ <h3 class="subsection-title">Methods</h3>
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+ <h4 class="name" id="~handleGoToForm"><span class="type-signature">(private, inner) </span>handleGoToForm<span class="signature">()</span><span class="type-signature"></span></h4>
264
+
265
+
266
+
267
+
268
+
269
+
270
+ <div class="description">
271
+ Navigate to the registration form.
272
+ </div>
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+ <dl class="details">
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+ <dt class="tag-source">Source:</dt>
314
+ <dd class="tag-source"><ul class="dummy"><li>
315
+ <a href="pages_Home.jsx.html">pages/Home.jsx</a>, <a href="pages_Home.jsx.html#line21">line 21</a>
316
+ </li></ul></dd>
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+ </dl>
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+ </article>
352
+
353
+ </section>
354
+
355
+
356
+
357
+
358
+ </div>
359
+
360
+ <nav>
361
+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-App.html">App</a></li><li><a href="module-Home.html">Home</a></li><li><a href="module-PersonForm.html">PersonForm</a></li><li><a href="module-Register.html">Register</a></li></ul><h3>Global</h3><ul><li><a href="global.html#addPerson">addPerson</a></li><li><a href="global.html#calculateAge">calculateAge</a></li><li><a href="global.html#errorMessages">errorMessages</a></li><li><a href="global.html#getErrorMessage">getErrorMessage</a></li><li><a href="global.html#validateAge">validateAge</a></li><li><a href="global.html#validateCity">validateCity</a></li><li><a href="global.html#validateEmail">validateEmail</a></li><li><a href="global.html#validateName">validateName</a></li><li><a href="global.html#validatePerson">validatePerson</a></li><li><a href="global.html#validateZipCode">validateZipCode</a></li></ul>
362
+ </nav>
363
+
364
+ <br class="clear">
365
+
366
+ <footer>
367
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Feb 20 2026 09:18:59 GMT+0100 (heure normale d’Europe centrale)
368
+ </footer>
369
+
370
+ <script> prettyPrint(); </script>
371
+ <script src="scripts/linenumber.js"> </script>
372
+ </body>
373
+ </html>