This repository was archived by the owner on Oct 15, 2022. It is now read-only.
Commit 549ee53
Roman numerals (#4413)
* First shot at improving roman numeral IA.
Added a new converter.
Added new default settings.
Added some tests.
* Added un upper bound on arabic numbers.
* Remove some typo…
* Added some new triggers.
Allowed uncorrect roman number to load the UI anyway.
Fixed a test.
* Added new triggers.
Fixed regular expressions involved in the UI configuration.
Added new tests.
* Renamed file.
* Variables defined outside the handle function.
* Modified template.
* Init logic now runs only once.
* Added a prefix to ensure there are no collisions.
* Fixed tests.
* Added more agressive validation on user inputs.
* Fixed a test case for aggressive validation. The ia doesn't trigger is
the input is invalid with respect to roman numeral system.
* Removed forEach operation (replaced with a for loop).
Removed firstLetterUpperCase in favor of DDG util capitalize.
* Fixed design on narrow screens.
* Added a new test (roman man => undef).
* Fixed regular expressions to avoid displaying if roman or arabic is used
without numbers.
* Added warnings when inputs are out of range.
* Added a state variable for warnings.
* Empty if removed.
* Fixed regexps.
* Fixed subtitle.
* Css fixed. Both for mobile and desktop.
* Fixed tests.
* Use horizontal layout on desktop, vertical on mobile1 parent 2287be9 commit 549ee53
5 files changed
+480
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
18 | 38 | | |
19 | | - | |
| 39 | + | |
| 40 | + | |
20 | 41 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 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 | + | |
27 | 67 | | |
28 | | - | |
29 | 68 | | |
30 | | - | |
| 69 | + | |
31 | 70 | | |
32 | | - | |
33 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
34 | 76 | | |
35 | 77 | | |
36 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
37 | 82 | | |
38 | 83 | | |
39 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 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 | + | |
0 commit comments