Commit f5f0b60
authored
Create/implement separate hello.js for hello.html config (#728)
* Create/implement separate hello.js for hello.html config
Currently configuration is mostly in a YAML file embedded in the
lab's HTML. This means that the lab configuration cannot be shared
between locales (translations), which is annoying.
We can't easily load YAML or JSON from a separate file when
running or testing locally. However, we *can* easily load a
separate file if it's in JavaScript format.
This switches the configuration of lab hello.html so it uses the
configuration in hello.js.
Signed-off-by: David A. Wheeler <[email protected]>
* Simplify hello.js
Signed-off-by: David A. Wheeler <[email protected]>
* hello.js: Provide Japanese translation examples
This does not *implement* translations, but at least this
includes some translations (which we hope to use in a later
change).
Signed-off-by: David A. Wheeler <[email protected]>
* Auto-report info and info2 differences
To make it easier to move from YAML, automatically detect
differences between info and info2. We can create a JavaScript
file that looks clean but is *supposed* to be identical, and
once done, eliminate the old version. This will help ensure
we don't make mistakes during the transition.
Signed-off-by: David A. Wheeler <[email protected]>
* Note in markdown the beginning of transition from YAML
Signed-off-by: David A. Wheeler <[email protected]>
---------
Signed-off-by: David A. Wheeler <[email protected]>1 parent 6bc30a6 commit f5f0b60
4 files changed
+199
-105
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
94 | | - | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
| |||
174 | 177 | | |
175 | 178 | | |
176 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
177 | 212 | | |
178 | 213 | | |
179 | 214 | | |
| |||
546 | 581 | | |
547 | 582 | | |
548 | 583 | | |
549 | | - | |
| 584 | + | |
550 | 585 | | |
551 | 586 | | |
552 | | - | |
| 587 | + | |
553 | 588 | | |
554 | 589 | | |
555 | 590 | | |
| |||
563 | 598 | | |
564 | 599 | | |
565 | 600 | | |
566 | | - | |
567 | | - | |
| 601 | + | |
| 602 | + | |
568 | 603 | | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
569 | 610 | | |
570 | 611 | | |
571 | 612 | | |
| |||
603 | 644 | | |
604 | 645 | | |
605 | 646 | | |
606 | | - | |
607 | | - | |
| 647 | + | |
| 648 | + | |
608 | 649 | | |
609 | 650 | | |
610 | 651 | | |
611 | 652 | | |
612 | 653 | | |
613 | | - | |
| 654 | + | |
614 | 655 | | |
615 | 656 | | |
616 | 657 | | |
| |||
683 | 724 | | |
684 | 725 | | |
685 | 726 | | |
686 | | - | |
| 727 | + | |
| 728 | + | |
687 | 729 | | |
688 | | - | |
689 | | - | |
| 730 | + | |
690 | 731 | | |
691 | 732 | | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
692 | 737 | | |
693 | 738 | | |
694 | | - | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
695 | 742 | | |
696 | 743 | | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
697 | 757 | | |
698 | 758 | | |
699 | 759 | | |
| |||
732 | 792 | | |
733 | 793 | | |
734 | 794 | | |
735 | | - | |
| 795 | + | |
| 796 | + | |
736 | 797 | | |
737 | 798 | | |
738 | 799 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
95 | 108 | | |
96 | 109 | | |
97 | 110 | | |
| |||
746 | 759 | | |
747 | 760 | | |
748 | 761 | | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
749 | 781 | | |
750 | 782 | | |
751 | 783 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
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 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | 25 | | |
117 | 26 | | |
118 | 27 | | |
| |||
0 commit comments