trmnl_preview 0.14.2 → 0.16.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 (72) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -0
  3. data/README.md +31 -0
  4. data/db/data/and_x_more.yml +86 -0
  5. data/db/data/locales/cs.yml +339 -0
  6. data/db/data/locales/da.yml +339 -0
  7. data/db/data/locales/de-AT.yml +341 -0
  8. data/db/data/locales/de.yml +341 -0
  9. data/db/data/locales/en-AU.yml +79 -0
  10. data/db/data/locales/en-GB.yml +79 -0
  11. data/db/data/locales/en.yml +341 -0
  12. data/db/data/locales/es-ES.yml +341 -0
  13. data/db/data/locales/fr.yml +339 -0
  14. data/db/data/locales/he.yml +339 -0
  15. data/db/data/locales/hu.yml +339 -0
  16. data/db/data/locales/id.yml +339 -0
  17. data/db/data/locales/is.yml +339 -0
  18. data/db/data/locales/it.yml +341 -0
  19. data/db/data/locales/ja.yml +342 -0
  20. data/db/data/locales/ko.yml +337 -0
  21. data/db/data/locales/lt.yml +340 -0
  22. data/db/data/locales/nl.yml +339 -0
  23. data/db/data/locales/no.yml +4 -0
  24. data/db/data/locales/pl.yml +342 -0
  25. data/db/data/locales/pt-BR.yml +340 -0
  26. data/db/data/locales/raw.yml +256 -0
  27. data/db/data/locales/ro.yml +339 -0
  28. data/db/data/locales/ru.yml +342 -0
  29. data/db/data/locales/sk.yml +339 -0
  30. data/db/data/locales/sv.yml +340 -0
  31. data/db/data/locales/uk.yml +339 -0
  32. data/db/data/locales/zh-CN.yml +338 -0
  33. data/db/data/locales/zh-HK.yml +338 -0
  34. data/lib/trmnlp/app.rb +5 -4
  35. data/lib/trmnlp/async_callback.rb +75 -0
  36. data/lib/trmnlp/cli.rb +2 -0
  37. data/lib/trmnlp/commands/lint.rb +18 -3
  38. data/lib/trmnlp/commands/serve.rb +3 -0
  39. data/lib/trmnlp/config/plugin.rb +52 -12
  40. data/lib/trmnlp/config/project.rb +14 -4
  41. data/lib/trmnlp/context.rb +17 -2
  42. data/lib/trmnlp/firefox_driver.rb +0 -3
  43. data/lib/trmnlp/framework_version.rb +9 -0
  44. data/lib/trmnlp/image_quantizer.rb +28 -15
  45. data/lib/trmnlp/lint/checks/image_links_reachable.rb +6 -1
  46. data/lib/trmnlp/lint/checks/limited_inline_styles.rb +12 -5
  47. data/lib/trmnlp/lint/checks/no_custom_filters.rb +27 -0
  48. data/lib/trmnlp/lint/diagnostic.rb +97 -0
  49. data/lib/trmnlp/lint/source.rb +53 -0
  50. data/lib/trmnlp/lint.rb +3 -1
  51. data/lib/trmnlp/merged_plugin_locals.rb +57 -0
  52. data/lib/trmnlp/outbound_request.rb +99 -0
  53. data/lib/trmnlp/paths.rb +11 -6
  54. data/lib/trmnlp/poller.rb +83 -44
  55. data/lib/trmnlp/rails_helpers.rb +41 -0
  56. data/lib/trmnlp/renderer.rb +37 -11
  57. data/lib/trmnlp/screen_generator.rb +14 -2
  58. data/lib/trmnlp/screenshot.rb +29 -4
  59. data/lib/trmnlp/select_field_choices.rb +25 -0
  60. data/lib/trmnlp/transform_pipeline.rb +47 -6
  61. data/lib/trmnlp/transform_state.rb +48 -0
  62. data/lib/trmnlp/user_data_assembler.rb +63 -25
  63. data/lib/trmnlp/version.rb +1 -1
  64. data/lib/trmnlp/watcher.rb +2 -1
  65. data/lib/trmnlp/webhook_payload.rb +74 -0
  66. data/lib/trmnlp/webhook_receiver.rb +78 -0
  67. data/lib/trmnlp.rb +1 -1
  68. data/trmnl_preview.gemspec +3 -0
  69. data/web/public/index.js +18 -6
  70. data/web/views/index.erb +7 -0
  71. data/web/views/render_html.erb +36 -0
  72. metadata +83 -1
@@ -0,0 +1,341 @@
1
+ # Mirrored from trmnl-i18n custom_plugins and rails-i18n date, time, number.
2
+ # Refresh with `rake i18n:sync[trmnl_i18n_path,rails_i18n_path]` — do not edit manually.
3
+ de:
4
+ custom_plugins:
5
+ today: Heute
6
+ tomorrow: Morgen
7
+ updated: Aktualisiert
8
+ activity: Aktivität
9
+ done: Erledigt
10
+ due: Fällig
11
+ deutsche_bahn_departures:
12
+ departures: Abfahrten
13
+ time: Zeit
14
+ line: Linie
15
+ destination: Ziel
16
+ platform: Gleis
17
+ delay: Versp.
18
+ train: Zug
19
+ on_time: pünktl.
20
+ cancelled: fällt aus
21
+ minutes: Min.
22
+ refreshed: aktualisiert
23
+ simple_calendar:
24
+ title: Kalender
25
+ ym_format: "%B %Y"
26
+ chinese_korean:
27
+ leap_format: Schaltmonat %{month_label}
28
+ leap_format_short: LM%{alt_month}
29
+ ym_format: ", %{leap_month_label} %{heavenly_stem} %{earthly_branch}"
30
+ month_labels:
31
+ -
32
+ - M1
33
+ - M2
34
+ - M3
35
+ - M4
36
+ - M5
37
+ - M6
38
+ - M7
39
+ - M8
40
+ - M9
41
+ - M10
42
+ - M11
43
+ - M12
44
+ date_labels:
45
+ -
46
+ - '1'
47
+ - '2'
48
+ - '3'
49
+ - '4'
50
+ - '5'
51
+ - '6'
52
+ - '7'
53
+ - '8'
54
+ - '9'
55
+ - '10'
56
+ - '11'
57
+ - '12'
58
+ - '13'
59
+ - '14'
60
+ - '15'
61
+ - '16'
62
+ - '17'
63
+ - '18'
64
+ - '19'
65
+ - '20'
66
+ - '21'
67
+ - '22'
68
+ - '23'
69
+ - '24'
70
+ - '25'
71
+ - '26'
72
+ - '27'
73
+ - '28'
74
+ - '29'
75
+ - '30'
76
+ heavenly_stems:
77
+ - Holz
78
+ - Holz
79
+ - Feuer
80
+ - Feuer
81
+ - Erde
82
+ - Erde
83
+ - Metall
84
+ - Metall
85
+ - Wasser
86
+ - Wasser
87
+ earthly_branches:
88
+ - Ratte
89
+ - Ochse
90
+ - Tiger
91
+ - Hase
92
+ - Drache
93
+ - Schlange
94
+ - Pferd
95
+ - Ziege
96
+ - Affe
97
+ - Hahn
98
+ - Huhn
99
+ - Schwein
100
+ zodiac_animals:
101
+ - Rat
102
+ - Ox
103
+ - Tiger
104
+ - Rabbit
105
+ - Dragon
106
+ - Snake
107
+ - Horse
108
+ - Goat
109
+ - Monkey
110
+ - Rooster
111
+ - Dog
112
+ - Pig
113
+ solar_terms:
114
+ - Minor Cold
115
+ - Major Cold
116
+ - Start of Spring
117
+ - Rain Water
118
+ - Awakening of Insects
119
+ - Spring Equinox
120
+ - Pure Brightness
121
+ - Grain Rain
122
+ - Start of Summer
123
+ - Grain Buds
124
+ - Grain in Ear
125
+ - Summer Solstice
126
+ - Minor Heat
127
+ - Major Heat
128
+ - Start of Autumn
129
+ - End of Heat
130
+ - White Dew
131
+ - Autumn Equinox
132
+ - Cold Dew
133
+ - Frost's Descent
134
+ - Start of Winter
135
+ - Minor Snow
136
+ - Major Snow
137
+ - Winter Solstice
138
+ japanese:
139
+ rokuyo_terms:
140
+ - 先勝
141
+ - 友引
142
+ - 先負
143
+ - 仏滅
144
+ - 大安
145
+ - 赤口
146
+ nengo:
147
+ reiwa: Reiwa
148
+ ym_format: "%B %Y (%{nengo} %{alt_year})"
149
+ year_1: '1'
150
+ hebrew:
151
+ ym_format: ", %{month_label} %{alt_year}"
152
+ month_labels:
153
+ - Nisan
154
+ - Ijjar
155
+ - Siwan
156
+ - Tammus
157
+ - Aw
158
+ - Elul
159
+ - Tischri
160
+ - Cheschwan
161
+ - Kislew
162
+ - Tevet
163
+ - Schevat
164
+ - Adar
165
+ - Adar I
166
+ - Adar II
167
+ month_labels_abbr:
168
+ - Nis
169
+ - Ija
170
+ - Siw
171
+ - Tam
172
+ - Av
173
+ - Elu
174
+ - Tis
175
+ - Che
176
+ - Kis
177
+ - Tev
178
+ - Schv
179
+ - Ada
180
+ - Ad1
181
+ - Ad2
182
+ hijri:
183
+ ym_format: ", %{month_label} %{alt_year}"
184
+ month_labels:
185
+ -
186
+ - Muharram
187
+ - Safar
188
+ - Rabiʻ I
189
+ - Rabiʻ II
190
+ - Dschumada I
191
+ - Dschumada II
192
+ - Radschab
193
+ - Shaʻban
194
+ - Ramadan
195
+ - Shawwal
196
+ - Dhu l-qaʻda
197
+ - Dhu l-Hiddscha
198
+ bengali:
199
+ ym_format: ", %{month_label} %{alt_year}"
200
+ month_labels:
201
+ -
202
+ - Boishakh
203
+ - Joishtho
204
+ - Asharh
205
+ - Srabon
206
+ - Bhadro
207
+ - Ashwin
208
+ - Kartika
209
+ - Ogrohayon
210
+ - Poush
211
+ - Magh
212
+ - Falgun
213
+ - Choitro
214
+ indian:
215
+ ym_format: ", %{month_label} %{alt_year}"
216
+ month_labels:
217
+ -
218
+ - Chaitra
219
+ - Vaisakha
220
+ - Jyaishtha
221
+ - Ashadha
222
+ - Sravana
223
+ - Bhadrapada
224
+ - Ashvina
225
+ - Kartika
226
+ - Margasirsha
227
+ - Pausha
228
+ - Magha
229
+ - Phalguna
230
+ public_recipe_stats:
231
+ connections: ".input {$value :number} .match $value one {{{$value :number} Verbindung}}
232
+ * {{{$value :number} Verbindungen}}"
233
+ forks: ".input {$value :number} .match $value one {{{$value :number} fork}}
234
+ * {{{$value :number} forks}}"
235
+ installs: ".input {$value :number} .match $value zero {{Keine Installationen}}
236
+ one {{{$value :number} Installation}} * {{{$value :number} Installationen}}"
237
+ and_more: und {$value :number} weitere
238
+ error_keyword_title: Kein Ergebnis für “{$keyword}”.
239
+ error_keyword_subtitle: Versuche es mit einem anderen Suchbegriff.
240
+ error_new_title: Keine neue Blaupause gefunden.
241
+ error_new_subtitle: Das sollte nicht passieren.
242
+ error_self_title: Du hast noch keine Blaupause veröffentlicht.
243
+ error_self_subtitle: 'Erfahre, wie du deine erste Erweiterung veröffentlichen
244
+ kannst: https://help.trmnl.com/en/articles/9510536-private-plugins'
245
+ error_author_id_title: 'Der Benutzer #{$authorId} hat keine Blaupause veröffentlicht.'
246
+ error_author_id_subtitle: Keine Blaupause mit dieser ID gefunden.
247
+ error_recipe_ids_title: Keine Blaupausen-ID gefunden.
248
+ error_recipe_ids_subtitle: Füge eine Blaupausen-ID hinzu, um loszulegen.
249
+ horizontal_world_clock:
250
+ name: Weltzeituhr
251
+ language_learning_sentences:
252
+ from_to: "{$from :langName} bis {$to :langNameList}"
253
+ custom_next_holiday:
254
+ next_holiday: Nächster Feiertag
255
+ today_and_next: ".input {$nextDays :number} .match $nextDays one {{ {#mainLabel}Heute
256
+ ist{/mainLabel}{#br/}{#mainValue}{$name}{/mainValue}{#br/}{#subLabel}Morgen
257
+ ist {$nextName}.{/subLabel} }}* {{ {#mainLabel}Heute ist{/mainLabel}{#br/}{#mainValue}{$name}{/mainValue}{#br/}{#subLabel}Der
258
+ nächste Feiertag ist {$nextName} in {$nextDays} Tagen.{/subLabel} }}"
259
+ today_only: "{#mainLabel}Heute ist{/mainLabel}{#br/}{#mainValue}{$name}{/mainValue}"
260
+ next_only: ".input {$nextDays :number} .match $nextDays one {{ {#mainLabel}Morgen
261
+ ist{/mainLabel}{#br/}{#mainValue}{$nextName}{/mainValue} }}* {{ {#mainValue}{$nextDays}{/mainValue}{#mainLabel}
262
+ Tage bis{/mainLabel}{#br/}{#mainValue}{$nextName}{/mainValue} }}"
263
+ no_holidays: "{#subLabel}Ende der hinzugefügten Feiertage.{/subLabel}"
264
+ sun_chart: Sonnendiagramm
265
+ date:
266
+ abbr_day_names:
267
+ - So
268
+ - Mo
269
+ - Di
270
+ - Mi
271
+ - Do
272
+ - Fr
273
+ - Sa
274
+ abbr_month_names:
275
+ -
276
+ - Jan
277
+ - Feb
278
+ - Mär
279
+ - Apr
280
+ - Mai
281
+ - Jun
282
+ - Jul
283
+ - Aug
284
+ - Sep
285
+ - Okt
286
+ - Nov
287
+ - Dez
288
+ day_names:
289
+ - Sonntag
290
+ - Montag
291
+ - Dienstag
292
+ - Mittwoch
293
+ - Donnerstag
294
+ - Freitag
295
+ - Samstag
296
+ formats:
297
+ default: "%d.%m.%Y"
298
+ long: "%e. %B %Y"
299
+ short: "%e. %b"
300
+ month_names:
301
+ -
302
+ - Januar
303
+ - Februar
304
+ - März
305
+ - April
306
+ - Mai
307
+ - Juni
308
+ - Juli
309
+ - August
310
+ - September
311
+ - Oktober
312
+ - November
313
+ - Dezember
314
+ order:
315
+ - :day
316
+ - :month
317
+ - :year
318
+ time:
319
+ am: vormittags
320
+ formats:
321
+ default: "%A, %d. %B %Y, %H:%M Uhr"
322
+ long: "%A, %d. %B %Y, %H:%M Uhr"
323
+ short: "%d. %b, %H:%M Uhr"
324
+ pm: nachmittags
325
+ number:
326
+ currency:
327
+ format:
328
+ delimiter: "."
329
+ format: "%n %u"
330
+ precision: 2
331
+ separator: ","
332
+ significant: false
333
+ strip_insignificant_zeros: false
334
+ unit: "€"
335
+ format:
336
+ delimiter: "."
337
+ precision: 2
338
+ round_mode: default
339
+ separator: ","
340
+ significant: false
341
+ strip_insignificant_zeros: false
@@ -0,0 +1,79 @@
1
+ # Mirrored from trmnl-i18n custom_plugins and rails-i18n date, time, number.
2
+ # Refresh with `rake i18n:sync[trmnl_i18n_path,rails_i18n_path]` — do not edit manually.
3
+ en-AU:
4
+ date:
5
+ abbr_day_names:
6
+ - Sun
7
+ - Mon
8
+ - Tue
9
+ - Wed
10
+ - Thu
11
+ - Fri
12
+ - Sat
13
+ abbr_month_names:
14
+ -
15
+ - Jan
16
+ - Feb
17
+ - Mar
18
+ - Apr
19
+ - May
20
+ - Jun
21
+ - Jul
22
+ - Aug
23
+ - Sep
24
+ - Oct
25
+ - Nov
26
+ - Dec
27
+ day_names:
28
+ - Sunday
29
+ - Monday
30
+ - Tuesday
31
+ - Wednesday
32
+ - Thursday
33
+ - Friday
34
+ - Saturday
35
+ formats:
36
+ default: "%d-%m-%Y"
37
+ long: "%d %B, %Y"
38
+ short: "%d %b"
39
+ month_names:
40
+ -
41
+ - January
42
+ - February
43
+ - March
44
+ - April
45
+ - May
46
+ - June
47
+ - July
48
+ - August
49
+ - September
50
+ - October
51
+ - November
52
+ - December
53
+ order:
54
+ - :year
55
+ - :month
56
+ - :day
57
+ time:
58
+ am: am
59
+ formats:
60
+ default: "%a, %d %b %Y %H:%M:%S %z"
61
+ long: "%d %B, %Y %H:%M"
62
+ short: "%d %b %H:%M"
63
+ pm: pm
64
+ number:
65
+ currency:
66
+ format:
67
+ delimiter: ","
68
+ format: "%u%n"
69
+ precision: 2
70
+ separator: "."
71
+ significant: false
72
+ strip_insignificant_zeros: false
73
+ unit: "$"
74
+ format:
75
+ delimiter: ","
76
+ precision: 3
77
+ separator: "."
78
+ significant: false
79
+ strip_insignificant_zeros: false
@@ -0,0 +1,79 @@
1
+ # Mirrored from trmnl-i18n custom_plugins and rails-i18n date, time, number.
2
+ # Refresh with `rake i18n:sync[trmnl_i18n_path,rails_i18n_path]` — do not edit manually.
3
+ en-GB:
4
+ date:
5
+ abbr_day_names:
6
+ - Sun
7
+ - Mon
8
+ - Tue
9
+ - Wed
10
+ - Thu
11
+ - Fri
12
+ - Sat
13
+ abbr_month_names:
14
+ -
15
+ - Jan
16
+ - Feb
17
+ - Mar
18
+ - Apr
19
+ - May
20
+ - Jun
21
+ - Jul
22
+ - Aug
23
+ - Sep
24
+ - Oct
25
+ - Nov
26
+ - Dec
27
+ day_names:
28
+ - Sunday
29
+ - Monday
30
+ - Tuesday
31
+ - Wednesday
32
+ - Thursday
33
+ - Friday
34
+ - Saturday
35
+ formats:
36
+ default: "%d-%m-%Y"
37
+ long: "%d %B, %Y"
38
+ short: "%d %b"
39
+ month_names:
40
+ -
41
+ - January
42
+ - February
43
+ - March
44
+ - April
45
+ - May
46
+ - June
47
+ - July
48
+ - August
49
+ - September
50
+ - October
51
+ - November
52
+ - December
53
+ order:
54
+ - :day
55
+ - :month
56
+ - :year
57
+ time:
58
+ am: am
59
+ formats:
60
+ default: "%a, %d %b %Y %H:%M:%S %z"
61
+ long: "%d %B, %Y %H:%M"
62
+ short: "%d %b %H:%M"
63
+ pm: pm
64
+ number:
65
+ currency:
66
+ format:
67
+ delimiter: ","
68
+ format: "%u%n"
69
+ precision: 2
70
+ separator: "."
71
+ significant: false
72
+ strip_insignificant_zeros: false
73
+ unit: "£"
74
+ format:
75
+ delimiter: ","
76
+ precision: 3
77
+ separator: "."
78
+ significant: false
79
+ strip_insignificant_zeros: false