trmnl_preview 0.27.0 → 0.28.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/db/data/framework_classes.yml +78 -2
- data/db/data/framework_prefixes.yml +252 -43
- data/lib/trmnlp/browser_pool.rb +0 -2
- data/lib/trmnlp/firefox_driver.rb +8 -0
- data/lib/trmnlp/lint/checks/arbitrary_values_in_range.rb +17 -3
- data/lib/trmnlp/lint/checks/framework_prefixes_exist.rb +14 -4
- data/lib/trmnlp/lint/checks/gray_text_has_one_bit_class.rb +39 -0
- data/lib/trmnlp/lint/checks/no_refresh_rate_field.rb +47 -0
- data/lib/trmnlp/lint/checks/no_style_restyling_framework.rb +62 -0
- data/lib/trmnlp/lint/checks/select_options_split_label_and_value.rb +38 -0
- data/lib/trmnlp/lint/diagnostic.rb +30 -1
- data/lib/trmnlp/lint/source.rb +8 -7
- data/lib/trmnlp/lint.rb +8 -0
- data/lib/trmnlp/version.rb +1 -1
- metadata +5 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 73458f9c8bc2782cf56c7e5e2ceb2e9b06e16fdc865ee68787a90cd11ab3930d
|
|
4
|
+
data.tar.gz: 59de88bc00c8168785fe2117b008eed21f4fac9b85d5ef32546882787060624b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 58865958ff6709443c7a8789757ce6b7951088561229edf1771db2c80c4dab318dabc6be36f81a75200878adc85111b025d0a36fb90ba74d72dae8adfaa5be7f
|
|
7
|
+
data.tar.gz: 4e8e15211854ebae382e7f8deaacda24217e2e1a6f77c7aafafe0199e57c0919c4ac170ec7a38953fe2a5e59ac334b469e229b5bb19d0955cfeceace62f9df83
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
# Changelog
|
|
3
3
|
|
|
4
|
+
## 0.28.0
|
|
5
|
+
|
|
6
|
+
- `trmnlp test`, `serve` and `build --png` close their headless Firefox when they exit. Each run left one running, with nothing left to stop it, and a loop of runs could fill memory and swap.
|
|
7
|
+
- `trmnlp lint` reports a custom field that sets how often the content changes (`no_refresh_rate_field`), such as a "New passage: Daily / Every 6 hours" select. The refresh rate and the playlist already decide that.
|
|
8
|
+
- `trmnlp lint` reports `<style>` rules that redo framework work (`no_style_restyling_framework`): `font-size` in px or pt (use the element sizes with `lg:` steps), `-webkit-line-clamp` (use `data-clamp`) and `@media (orientation …)` (use `portrait:`). CSS for SVG text and charts is left alone.
|
|
9
|
+
- `trmnlp lint` reports small gray text with no `1bit:` class (`gray_text_has_one_bit_class`), such as `label--small text--gray-30`. On a 1-bit screen it breaks up into dots; `1bit:text--black` keeps it readable.
|
|
10
|
+
- `trmnlp lint` reports a select option written as one quoted string, `'Voyager 1: voyager1'` (`select_options_split_label_and_value`). TRMNL saves such an option as its lowercased label, `voyager_1:_voyager1`, so the markup never sees `voyager1`.
|
|
11
|
+
- `trmnlp lint` reports a margin or padding class with a bracket value (`arbitrary_values_in_range`), such as `mt--[2px]` or `lg:px--[3px]`, and a bracket value in percent, such as `w--[40%]`. No Framework 3 release generates either, so TRMNL ignores the class and says nothing; margin and padding come only in spacing steps such as `mt--1` for 4px.
|
|
12
|
+
- `trmnlp lint` reports a screen prefix on a bare `title`, `label` or `description` (`framework_prefixes_exist`), such as `lg:title`. No Framework release defines one, unlike `lg:value`, so TRMNL ignores the class and the text keeps its size; the message names the prefixed base size, such as `lg:title--base`. A finding's location no longer also points at longer classes that start with it, such as `lg:title--small`.
|
|
13
|
+
|
|
4
14
|
## 0.27.0
|
|
5
15
|
|
|
6
16
|
- `trmnlp lint` reports a webhook recipe with no `copyable_webhook_url` custom field (`webhook_url_shown`), as TRMNL's recipe review does. Without it, people who install the recipe have no field to copy their webhook URL from.
|
|
@@ -1,47 +1,66 @@
|
|
|
1
|
-
# Mirrored from each Framework release's plugins.css: its value
|
|
2
|
-
#
|
|
1
|
+
# Mirrored from each Framework release's plugins.css: its value, label, title, description
|
|
2
|
+
# and content elements and their value--, label--, title--, description--, text-- and
|
|
3
|
+
# content-- classes. A list holds until the next release listed.
|
|
3
4
|
# Refresh with `rake framework:classes` — do not edit manually.
|
|
4
5
|
0.0.1:
|
|
6
|
+
- content
|
|
5
7
|
- content--center
|
|
6
8
|
- content--large
|
|
7
9
|
- content--long
|
|
10
|
+
- description
|
|
11
|
+
- label
|
|
8
12
|
- label--outline
|
|
9
13
|
- label--simple
|
|
10
14
|
- label--small
|
|
11
15
|
- label--underline
|
|
12
16
|
- label--underline-2
|
|
17
|
+
- title
|
|
13
18
|
- title--small
|
|
19
|
+
- value
|
|
14
20
|
- value--large
|
|
15
21
|
- value--small
|
|
16
22
|
- value--xsmall
|
|
17
23
|
0.0.2:
|
|
24
|
+
- content
|
|
18
25
|
- content--center
|
|
19
26
|
- content--large
|
|
20
27
|
- content--long
|
|
28
|
+
- description
|
|
29
|
+
- label
|
|
21
30
|
- label--small
|
|
22
31
|
- label--underline
|
|
23
32
|
- label--underline-2
|
|
33
|
+
- title
|
|
24
34
|
- title--small
|
|
35
|
+
- value
|
|
25
36
|
- value--large
|
|
26
37
|
- value--small
|
|
27
38
|
- value--xsmall
|
|
28
39
|
0.0.3:
|
|
40
|
+
- content
|
|
29
41
|
- content--center
|
|
30
42
|
- content--large
|
|
31
43
|
- content--long
|
|
32
44
|
- content--small
|
|
45
|
+
- description
|
|
46
|
+
- label
|
|
33
47
|
- label--small
|
|
34
48
|
- label--underline
|
|
35
49
|
- label--underline-2
|
|
50
|
+
- title
|
|
36
51
|
- title--small
|
|
52
|
+
- value
|
|
37
53
|
- value--large
|
|
38
54
|
- value--small
|
|
39
55
|
- value--xsmall
|
|
40
56
|
0.0.5:
|
|
57
|
+
- content
|
|
41
58
|
- content--center
|
|
42
59
|
- content--large
|
|
43
60
|
- content--long
|
|
44
61
|
- content--small
|
|
62
|
+
- description
|
|
63
|
+
- label
|
|
45
64
|
- label--large
|
|
46
65
|
- label--outline
|
|
47
66
|
- label--small
|
|
@@ -50,15 +69,20 @@
|
|
|
50
69
|
- text--center
|
|
51
70
|
- text--left
|
|
52
71
|
- text--right
|
|
72
|
+
- title
|
|
53
73
|
- title--small
|
|
74
|
+
- value
|
|
54
75
|
- value--large
|
|
55
76
|
- value--small
|
|
56
77
|
- value--xlarge
|
|
57
78
|
- value--xsmall
|
|
58
79
|
- value--xxlarge
|
|
59
80
|
0.0.6:
|
|
81
|
+
- content
|
|
60
82
|
- content--center
|
|
61
83
|
- content--small
|
|
84
|
+
- description
|
|
85
|
+
- label
|
|
62
86
|
- label--large
|
|
63
87
|
- label--outline
|
|
64
88
|
- label--small
|
|
@@ -67,15 +91,20 @@
|
|
|
67
91
|
- text--center
|
|
68
92
|
- text--left
|
|
69
93
|
- text--right
|
|
94
|
+
- title
|
|
70
95
|
- title--small
|
|
96
|
+
- value
|
|
71
97
|
- value--large
|
|
72
98
|
- value--small
|
|
73
99
|
- value--xlarge
|
|
74
100
|
- value--xsmall
|
|
75
101
|
- value--xxlarge
|
|
76
102
|
0.0.7:
|
|
103
|
+
- content
|
|
77
104
|
- content--center
|
|
78
105
|
- content--small
|
|
106
|
+
- description
|
|
107
|
+
- label
|
|
79
108
|
- label--large
|
|
80
109
|
- label--outline
|
|
81
110
|
- label--small
|
|
@@ -84,7 +113,9 @@
|
|
|
84
113
|
- text--center
|
|
85
114
|
- text--left
|
|
86
115
|
- text--right
|
|
116
|
+
- title
|
|
87
117
|
- title--small
|
|
118
|
+
- value
|
|
88
119
|
- value--large
|
|
89
120
|
- value--small
|
|
90
121
|
- value--tnums
|
|
@@ -94,8 +125,11 @@
|
|
|
94
125
|
- value--xxsmall
|
|
95
126
|
- value--xxxlarge
|
|
96
127
|
1.0.0:
|
|
128
|
+
- content
|
|
97
129
|
- content--center
|
|
98
130
|
- content--small
|
|
131
|
+
- description
|
|
132
|
+
- label
|
|
99
133
|
- label--gray-out
|
|
100
134
|
- label--inverted
|
|
101
135
|
- label--large
|
|
@@ -106,7 +140,9 @@
|
|
|
106
140
|
- text--center
|
|
107
141
|
- text--left
|
|
108
142
|
- text--right
|
|
143
|
+
- title
|
|
109
144
|
- title--small
|
|
145
|
+
- value
|
|
110
146
|
- value--large
|
|
111
147
|
- value--small
|
|
112
148
|
- value--tnums
|
|
@@ -116,8 +152,11 @@
|
|
|
116
152
|
- value--xxsmall
|
|
117
153
|
- value--xxxlarge
|
|
118
154
|
1.0.1:
|
|
155
|
+
- content
|
|
119
156
|
- content--center
|
|
120
157
|
- content--small
|
|
158
|
+
- description
|
|
159
|
+
- label
|
|
121
160
|
- label--gray-out
|
|
122
161
|
- label--inverted
|
|
123
162
|
- label--large
|
|
@@ -129,7 +168,9 @@
|
|
|
129
168
|
- text--justify
|
|
130
169
|
- text--left
|
|
131
170
|
- text--right
|
|
171
|
+
- title
|
|
132
172
|
- title--small
|
|
173
|
+
- value
|
|
133
174
|
- value--large
|
|
134
175
|
- value--small
|
|
135
176
|
- value--tnums
|
|
@@ -139,8 +180,11 @@
|
|
|
139
180
|
- value--xxsmall
|
|
140
181
|
- value--xxxlarge
|
|
141
182
|
1.0.2:
|
|
183
|
+
- content
|
|
142
184
|
- content--center
|
|
143
185
|
- content--small
|
|
186
|
+
- description
|
|
187
|
+
- label
|
|
144
188
|
- label--gray-out
|
|
145
189
|
- label--inverted
|
|
146
190
|
- label--large
|
|
@@ -161,7 +205,9 @@
|
|
|
161
205
|
- text--left
|
|
162
206
|
- text--right
|
|
163
207
|
- text--white
|
|
208
|
+
- title
|
|
164
209
|
- title--small
|
|
210
|
+
- value
|
|
165
211
|
- value--large
|
|
166
212
|
- value--small
|
|
167
213
|
- value--tnums
|
|
@@ -171,11 +217,14 @@
|
|
|
171
217
|
- value--xxsmall
|
|
172
218
|
- value--xxxlarge
|
|
173
219
|
1.1.0:
|
|
220
|
+
- content
|
|
174
221
|
- content--center
|
|
175
222
|
- content--large
|
|
176
223
|
- content--left
|
|
177
224
|
- content--right
|
|
178
225
|
- content--small
|
|
226
|
+
- description
|
|
227
|
+
- label
|
|
179
228
|
- label--gray-out
|
|
180
229
|
- label--inverted
|
|
181
230
|
- label--large
|
|
@@ -196,7 +245,9 @@
|
|
|
196
245
|
- text--left
|
|
197
246
|
- text--right
|
|
198
247
|
- text--white
|
|
248
|
+
- title
|
|
199
249
|
- title--small
|
|
250
|
+
- value
|
|
200
251
|
- value--large
|
|
201
252
|
- value--small
|
|
202
253
|
- value--tnums
|
|
@@ -206,11 +257,14 @@
|
|
|
206
257
|
- value--xxsmall
|
|
207
258
|
- value--xxxlarge
|
|
208
259
|
2.0.0:
|
|
260
|
+
- content
|
|
209
261
|
- content--center
|
|
210
262
|
- content--large
|
|
211
263
|
- content--left
|
|
212
264
|
- content--right
|
|
213
265
|
- content--small
|
|
266
|
+
- description
|
|
267
|
+
- label
|
|
214
268
|
- label--gray
|
|
215
269
|
- label--gray-out
|
|
216
270
|
- label--inverted
|
|
@@ -245,7 +299,9 @@
|
|
|
245
299
|
- text--left
|
|
246
300
|
- text--right
|
|
247
301
|
- text--white
|
|
302
|
+
- title
|
|
248
303
|
- title--small
|
|
304
|
+
- value
|
|
249
305
|
- value--large
|
|
250
306
|
- value--small
|
|
251
307
|
- value--tnums
|
|
@@ -255,6 +311,7 @@
|
|
|
255
311
|
- value--xxsmall
|
|
256
312
|
- value--xxxlarge
|
|
257
313
|
2.3.0:
|
|
314
|
+
- content
|
|
258
315
|
- content--base
|
|
259
316
|
- content--center
|
|
260
317
|
- content--large
|
|
@@ -264,10 +321,12 @@
|
|
|
264
321
|
- content--xlarge
|
|
265
322
|
- content--xxlarge
|
|
266
323
|
- content--xxxlarge
|
|
324
|
+
- description
|
|
267
325
|
- description--base
|
|
268
326
|
- description--large
|
|
269
327
|
- description--xlarge
|
|
270
328
|
- description--xxlarge
|
|
329
|
+
- label
|
|
271
330
|
- label--base
|
|
272
331
|
- label--gray
|
|
273
332
|
- label--gray-out
|
|
@@ -306,11 +365,13 @@
|
|
|
306
365
|
- text--left
|
|
307
366
|
- text--right
|
|
308
367
|
- text--white
|
|
368
|
+
- title
|
|
309
369
|
- title--base
|
|
310
370
|
- title--large
|
|
311
371
|
- title--small
|
|
312
372
|
- title--xlarge
|
|
313
373
|
- title--xxlarge
|
|
374
|
+
- value
|
|
314
375
|
- value--base
|
|
315
376
|
- value--giga
|
|
316
377
|
- value--large
|
|
@@ -325,6 +386,7 @@
|
|
|
325
386
|
- value--xxsmall
|
|
326
387
|
- value--xxxlarge
|
|
327
388
|
3.0.0:
|
|
389
|
+
- content
|
|
328
390
|
- content--base
|
|
329
391
|
- content--center
|
|
330
392
|
- content--large
|
|
@@ -334,10 +396,12 @@
|
|
|
334
396
|
- content--xlarge
|
|
335
397
|
- content--xxlarge
|
|
336
398
|
- content--xxxlarge
|
|
399
|
+
- description
|
|
337
400
|
- description--base
|
|
338
401
|
- description--large
|
|
339
402
|
- description--xlarge
|
|
340
403
|
- description--xxlarge
|
|
404
|
+
- label
|
|
341
405
|
- label--base
|
|
342
406
|
- label--error
|
|
343
407
|
- label--filled
|
|
@@ -538,11 +602,13 @@
|
|
|
538
602
|
- text--yellow-65
|
|
539
603
|
- text--yellow-70
|
|
540
604
|
- text--yellow-75
|
|
605
|
+
- title
|
|
541
606
|
- title--base
|
|
542
607
|
- title--large
|
|
543
608
|
- title--small
|
|
544
609
|
- title--xlarge
|
|
545
610
|
- title--xxlarge
|
|
611
|
+
- value
|
|
546
612
|
- value--base
|
|
547
613
|
- value--giga
|
|
548
614
|
- value--large
|
|
@@ -557,6 +623,7 @@
|
|
|
557
623
|
- value--xxsmall
|
|
558
624
|
- value--xxxlarge
|
|
559
625
|
3.0.4:
|
|
626
|
+
- content
|
|
560
627
|
- content--base
|
|
561
628
|
- content--center
|
|
562
629
|
- content--large
|
|
@@ -566,10 +633,12 @@
|
|
|
566
633
|
- content--xlarge
|
|
567
634
|
- content--xxlarge
|
|
568
635
|
- content--xxxlarge
|
|
636
|
+
- description
|
|
569
637
|
- description--base
|
|
570
638
|
- description--large
|
|
571
639
|
- description--xlarge
|
|
572
640
|
- description--xxlarge
|
|
641
|
+
- label
|
|
573
642
|
- label--base
|
|
574
643
|
- label--error
|
|
575
644
|
- label--filled
|
|
@@ -780,11 +849,13 @@
|
|
|
780
849
|
- text--yellow-65
|
|
781
850
|
- text--yellow-70
|
|
782
851
|
- text--yellow-75
|
|
852
|
+
- title
|
|
783
853
|
- title--base
|
|
784
854
|
- title--large
|
|
785
855
|
- title--small
|
|
786
856
|
- title--xlarge
|
|
787
857
|
- title--xxlarge
|
|
858
|
+
- value
|
|
788
859
|
- value--base
|
|
789
860
|
- value--giga
|
|
790
861
|
- value--large
|
|
@@ -799,6 +870,7 @@
|
|
|
799
870
|
- value--xxsmall
|
|
800
871
|
- value--xxxlarge
|
|
801
872
|
3.2.0:
|
|
873
|
+
- content
|
|
802
874
|
- content--base
|
|
803
875
|
- content--center
|
|
804
876
|
- content--large
|
|
@@ -808,10 +880,12 @@
|
|
|
808
880
|
- content--xlarge
|
|
809
881
|
- content--xxlarge
|
|
810
882
|
- content--xxxlarge
|
|
883
|
+
- description
|
|
811
884
|
- description--base
|
|
812
885
|
- description--large
|
|
813
886
|
- description--xlarge
|
|
814
887
|
- description--xxlarge
|
|
888
|
+
- label
|
|
815
889
|
- label--base
|
|
816
890
|
- label--error
|
|
817
891
|
- label--filled
|
|
@@ -1023,11 +1097,13 @@
|
|
|
1023
1097
|
- text--yellow-65
|
|
1024
1098
|
- text--yellow-70
|
|
1025
1099
|
- text--yellow-75
|
|
1100
|
+
- title
|
|
1026
1101
|
- title--base
|
|
1027
1102
|
- title--large
|
|
1028
1103
|
- title--small
|
|
1029
1104
|
- title--xlarge
|
|
1030
1105
|
- title--xxlarge
|
|
1106
|
+
- value
|
|
1031
1107
|
- value--base
|
|
1032
1108
|
- value--giga
|
|
1033
1109
|
- value--large
|