json_flit 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (174) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -0
  3. data/Gemfile.lock +29 -3
  4. data/README.md +3 -5
  5. data/demo/.ruby-version +1 -0
  6. data/demo/Gemfile +73 -0
  7. data/demo/Gemfile.lock +218 -0
  8. data/demo/Procfile.dev +3 -0
  9. data/demo/README.md +24 -0
  10. data/demo/Rakefile +6 -0
  11. data/demo/app/assets/builds/.keep +0 -0
  12. data/demo/app/assets/fonts/Lato-Regular.ttf +0 -0
  13. data/demo/app/assets/fonts/MetalMania-Regular.ttf +0 -0
  14. data/demo/app/assets/images/.keep +0 -0
  15. data/demo/app/assets/images/image1.jpg +0 -0
  16. data/demo/app/assets/images/image10.jpg +0 -0
  17. data/demo/app/assets/images/image11.jpg +0 -0
  18. data/demo/app/assets/images/image12.jpg +0 -0
  19. data/demo/app/assets/images/image13.jpg +0 -0
  20. data/demo/app/assets/images/image14.jpg +0 -0
  21. data/demo/app/assets/images/image15.jpg +0 -0
  22. data/demo/app/assets/images/image16.jpg +0 -0
  23. data/demo/app/assets/images/image17.jpg +0 -0
  24. data/demo/app/assets/images/image2.jpg +0 -0
  25. data/demo/app/assets/images/image3.jpg +0 -0
  26. data/demo/app/assets/images/image4.jpg +0 -0
  27. data/demo/app/assets/images/image5.jpg +0 -0
  28. data/demo/app/assets/images/image6.jpg +0 -0
  29. data/demo/app/assets/images/image7.jpg +0 -0
  30. data/demo/app/assets/images/image8.jpg +0 -0
  31. data/demo/app/assets/images/image9.jpg +0 -0
  32. data/demo/app/assets/images/profile.jpg +0 -0
  33. data/demo/app/assets/images/visa.svg +1 -0
  34. data/demo/app/assets/pages/align.json +182 -0
  35. data/demo/app/assets/pages/animated_align.json +50 -0
  36. data/demo/app/assets/pages/animated_container.json +56 -0
  37. data/demo/app/assets/pages/animated_cross_fade.json +63 -0
  38. data/demo/app/assets/pages/animated_default_text_style.json +53 -0
  39. data/demo/app/assets/pages/animated_opacity.json +49 -0
  40. data/demo/app/assets/pages/animated_padding.json +50 -0
  41. data/demo/app/assets/pages/animated_physical_model.json +73 -0
  42. data/demo/app/assets/pages/animated_positioned.json +54 -0
  43. data/demo/app/assets/pages/animated_positioned_directional.json +60 -0
  44. data/demo/app/assets/pages/animated_size.json +61 -0
  45. data/demo/app/assets/pages/animated_switcher.json +62 -0
  46. data/demo/app/assets/pages/animated_theme.json +52 -0
  47. data/demo/app/assets/pages/aspect_ratio.json +124 -0
  48. data/demo/app/assets/pages/asset_images.json +667 -0
  49. data/demo/app/assets/pages/bank_example.json +913 -0
  50. data/demo/app/assets/pages/baseline.json +81 -0
  51. data/demo/app/assets/pages/buttons.json +139 -0
  52. data/demo/app/assets/pages/card.json +121 -0
  53. data/demo/app/assets/pages/center.json +25 -0
  54. data/demo/app/assets/pages/checkbox.json +77 -0
  55. data/demo/app/assets/pages/circular_progress_indicator.json +45 -0
  56. data/demo/app/assets/pages/clips.json +156 -0
  57. data/demo/app/assets/pages/conditional.json +197 -0
  58. data/demo/app/assets/pages/cupertino_switch.yaml +72 -0
  59. data/demo/app/assets/pages/decorated_box.json +38 -0
  60. data/demo/app/assets/pages/directionality.json +31 -0
  61. data/demo/app/assets/pages/dynamic.json +299 -0
  62. data/demo/app/assets/pages/fitted_box.json +41 -0
  63. data/demo/app/assets/pages/for_each.json +130 -0
  64. data/demo/app/assets/pages/form.json +276 -0
  65. data/demo/app/assets/pages/fractional_translation.json +31 -0
  66. data/demo/app/assets/pages/fractionally_sized_box.json +34 -0
  67. data/demo/app/assets/pages/gestures.json +83 -0
  68. data/demo/app/assets/pages/grid_view.json +217 -0
  69. data/demo/app/assets/pages/image_page.json +32 -0
  70. data/demo/app/assets/pages/images.json +89 -0
  71. data/demo/app/assets/pages/indexed_stack.json +101 -0
  72. data/demo/app/assets/pages/input_error.json +64 -0
  73. data/demo/app/assets/pages/interactive_viewer.json +30 -0
  74. data/demo/app/assets/pages/intrinsic_height.json +63 -0
  75. data/demo/app/assets/pages/intrinsic_width.json +63 -0
  76. data/demo/app/assets/pages/issue_10.json +23 -0
  77. data/demo/app/assets/pages/issue_109.json +65 -0
  78. data/demo/app/assets/pages/issue_11.json +23 -0
  79. data/demo/app/assets/pages/issue_12.json +34 -0
  80. data/demo/app/assets/pages/issue_20_list.json +31 -0
  81. data/demo/app/assets/pages/issue_20_single.json +31 -0
  82. data/demo/app/assets/pages/issue_30.json +35 -0
  83. data/demo/app/assets/pages/layout_builder.json +403 -0
  84. data/demo/app/assets/pages/length.json +125 -0
  85. data/demo/app/assets/pages/limited_box.json +33 -0
  86. data/demo/app/assets/pages/linear_progress_indicator.json +25 -0
  87. data/demo/app/assets/pages/list_view.json +410 -0
  88. data/demo/app/assets/pages/measured.json +266 -0
  89. data/demo/app/assets/pages/offstage.json +50 -0
  90. data/demo/app/assets/pages/opacity.json +136 -0
  91. data/demo/app/assets/pages/overflow_box.json +52 -0
  92. data/demo/app/assets/pages/placeholder.json +57 -0
  93. data/demo/app/assets/pages/popup_menu_button.json +38 -0
  94. data/demo/app/assets/pages/radio.json +60 -0
  95. data/demo/app/assets/pages/rich_text.json +45 -0
  96. data/demo/app/assets/pages/scroll_view.json +974 -0
  97. data/demo/app/assets/pages/semantics.json +212 -0
  98. data/demo/app/assets/pages/set_default_value.json +77 -0
  99. data/demo/app/assets/pages/simple_page.json +25 -0
  100. data/demo/app/assets/pages/slivers.json +268 -0
  101. data/demo/app/assets/pages/switch.json +77 -0
  102. data/demo/app/assets/pages/theme.json +228 -0
  103. data/demo/app/assets/pages/tooltip.json +77 -0
  104. data/demo/app/assets/pages/tween_animation.json +43 -0
  105. data/demo/app/assets/pages/variables.json +64 -0
  106. data/demo/app/assets/pages/wrap.json +117 -0
  107. data/demo/app/assets/stylesheets/application.css +1 -0
  108. data/demo/app/assets/stylesheets/application.tailwind.css +13 -0
  109. data/demo/app/assets/widgets/issue_24.json +42 -0
  110. data/demo/app/channels/application_cable/channel.rb +4 -0
  111. data/demo/app/channels/application_cable/connection.rb +4 -0
  112. data/demo/app/controllers/application_controller.rb +2 -0
  113. data/demo/app/controllers/concerns/.keep +0 -0
  114. data/demo/app/controllers/welcome_controller.rb +22 -0
  115. data/demo/app/helpers/application_helper.rb +2 -0
  116. data/demo/app/helpers/welcome_helper.rb +2 -0
  117. data/demo/app/javascript/application.js +3 -0
  118. data/demo/app/javascript/controllers/application.js +9 -0
  119. data/demo/app/javascript/controllers/hello_controller.js +7 -0
  120. data/demo/app/javascript/controllers/index.js +8 -0
  121. data/demo/app/jobs/application_job.rb +7 -0
  122. data/demo/app/mailers/application_mailer.rb +4 -0
  123. data/demo/app/models/application_record.rb +3 -0
  124. data/demo/app/models/concerns/.keep +0 -0
  125. data/demo/app/views/layouts/application.html.erb +16 -0
  126. data/demo/app/views/layouts/mailer.html.erb +13 -0
  127. data/demo/app/views/layouts/mailer.text.erb +1 -0
  128. data/demo/app/views/welcome/index.html.erb +5 -0
  129. data/demo/app/views/welcome/show.html.erb +6 -0
  130. data/demo/bin/bundle +109 -0
  131. data/demo/bin/dev +8 -0
  132. data/demo/bin/rails +4 -0
  133. data/demo/bin/rake +4 -0
  134. data/demo/bin/setup +33 -0
  135. data/demo/config/application.rb +37 -0
  136. data/demo/config/boot.rb +4 -0
  137. data/demo/config/cable.yml +11 -0
  138. data/demo/config/credentials.yml.enc +1 -0
  139. data/demo/config/database.yml +25 -0
  140. data/demo/config/environment.rb +5 -0
  141. data/demo/config/environments/development.rb +68 -0
  142. data/demo/config/environments/production.rb +87 -0
  143. data/demo/config/environments/test.rb +60 -0
  144. data/demo/config/initializers/assets.rb +12 -0
  145. data/demo/config/initializers/content_security_policy.rb +25 -0
  146. data/demo/config/initializers/filter_parameter_logging.rb +8 -0
  147. data/demo/config/initializers/inflections.rb +16 -0
  148. data/demo/config/initializers/permissions_policy.rb +11 -0
  149. data/demo/config/locales/en.yml +33 -0
  150. data/demo/config/puma.rb +43 -0
  151. data/demo/config/routes.rb +5 -0
  152. data/demo/config/storage.yml +34 -0
  153. data/demo/config/tailwind.config.js +22 -0
  154. data/demo/config.ru +6 -0
  155. data/demo/db/development.sqlite3 +0 -0
  156. data/demo/db/seeds.rb +7 -0
  157. data/demo/lib/assets/.keep +0 -0
  158. data/demo/lib/tasks/.keep +0 -0
  159. data/demo/log/.keep +0 -0
  160. data/demo/public/404.html +67 -0
  161. data/demo/public/422.html +67 -0
  162. data/demo/public/500.html +66 -0
  163. data/demo/public/apple-touch-icon-precomposed.png +0 -0
  164. data/demo/public/apple-touch-icon.png +0 -0
  165. data/demo/public/favicon.ico +0 -0
  166. data/demo/public/robots.txt +1 -0
  167. data/demo/storage/.keep +0 -0
  168. data/demo/tmp/.keep +0 -0
  169. data/demo/tmp/pids/.keep +0 -0
  170. data/demo/tmp/storage/.keep +0 -0
  171. data/demo/vendor/.keep +0 -0
  172. data/lib/json_flit/registry.rb +144 -0
  173. data/lib/json_flit/version.rb +1 -1
  174. metadata +185 -3
@@ -0,0 +1,125 @@
1
+ {
2
+ "type": "set_value",
3
+ "args": {
4
+ "double": 20.5,
5
+ "int": 10,
6
+ "list": [
7
+ 1,
8
+ 2,
9
+ 3
10
+ ],
11
+ "map": {
12
+ "foo": "bar",
13
+ "baz": "biz",
14
+ "fiz": "wiz",
15
+ "miz": "siz"
16
+ },
17
+ "string": "String"
18
+ },
19
+ "child": {
20
+ "type": "scaffold",
21
+ "args": {
22
+ "appBar": {
23
+ "type": "app_bar",
24
+ "args": {
25
+ "title": {
26
+ "type": "text",
27
+ "args": {
28
+ "text": "Length"
29
+ }
30
+ }
31
+ }
32
+ },
33
+ "body": {
34
+ "type": "list_view",
35
+ "children": [
36
+ {
37
+ "type": "list_tile",
38
+ "args": {
39
+ "subtitle": {
40
+ "type": "text",
41
+ "args": {
42
+ "text": "${length(string)}"
43
+ }
44
+ },
45
+ "title": {
46
+ "type": "text",
47
+ "args": {
48
+ "text": "String (5)"
49
+ }
50
+ }
51
+ }
52
+ },
53
+ {
54
+ "type": "list_tile",
55
+ "args": {
56
+ "subtitle": {
57
+ "type": "text",
58
+ "args": {
59
+ "text": "${length(int)}"
60
+ }
61
+ },
62
+ "title": {
63
+ "type": "text",
64
+ "args": {
65
+ "text": "int (10)"
66
+ }
67
+ }
68
+ }
69
+ },
70
+ {
71
+ "type": "list_tile",
72
+ "args": {
73
+ "subtitle": {
74
+ "type": "text",
75
+ "args": {
76
+ "text": "${length(double)}"
77
+ }
78
+ },
79
+ "title": {
80
+ "type": "text",
81
+ "args": {
82
+ "text": "double (20)"
83
+ }
84
+ }
85
+ }
86
+ },
87
+ {
88
+ "type": "list_tile",
89
+ "args": {
90
+ "subtitle": {
91
+ "type": "text",
92
+ "args": {
93
+ "text": "${length(map)}"
94
+ }
95
+ },
96
+ "title": {
97
+ "type": "text",
98
+ "args": {
99
+ "text": "Map (4)"
100
+ }
101
+ }
102
+ }
103
+ },
104
+ {
105
+ "type": "list_tile",
106
+ "args": {
107
+ "subtitle": {
108
+ "type": "text",
109
+ "args": {
110
+ "text": "${length(list)}"
111
+ }
112
+ },
113
+ "title": {
114
+ "type": "text",
115
+ "args": {
116
+ "text": "List (3)"
117
+ }
118
+ }
119
+ }
120
+ }
121
+ ]
122
+ }
123
+ }
124
+ }
125
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "type": "scaffold",
3
+ "args": {
4
+ "appBar": {
5
+ "type": "app_bar",
6
+ "args": {
7
+ "title": {
8
+ "type": "text",
9
+ "args": {
10
+ "text": "LimitedBox"
11
+ }
12
+ }
13
+ }
14
+ },
15
+ "body": {
16
+ "type": "list_view",
17
+ "children": [
18
+ {
19
+ "type": "limited_box",
20
+ "args": {
21
+ "maxHeight": 200.0
22
+ },
23
+ "child": {
24
+ "type": "container",
25
+ "args": {
26
+ "color": "#000"
27
+ }
28
+ }
29
+ }
30
+ ]
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "type": "scaffold",
3
+ "args": {
4
+ "appBar": {
5
+ "type": "app_bar",
6
+ "args": {
7
+ "title": {
8
+ "type": "text",
9
+ "args": {
10
+ "text": "Linear Progress Indicator"
11
+ }
12
+ }
13
+ }
14
+ },
15
+ "body": {
16
+ "type": "center",
17
+ "child": {
18
+ "type": "linear_progress_indicator",
19
+ "args": {
20
+ "valueColor": "#00f"
21
+ }
22
+ }
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,410 @@
1
+ {
2
+ "type": "scaffold",
3
+ "args": {
4
+ "appBar": {
5
+ "type": "app_bar",
6
+ "args": {
7
+ "title": {
8
+ "type": "text",
9
+ "args": {
10
+ "text": "List View"
11
+ }
12
+ }
13
+ }
14
+ },
15
+ "body": {
16
+ "type": "list_view",
17
+ "children": [{
18
+ "type": "list_tile",
19
+ "args": {
20
+ "title": {
21
+ "type": "text",
22
+ "args": {
23
+ "text": "One"
24
+ }
25
+ }
26
+ }
27
+ }, {
28
+ "type": "list_tile",
29
+ "args": {
30
+ "title": {
31
+ "type": "text",
32
+ "args": {
33
+ "text": "Two"
34
+ }
35
+ }
36
+ }
37
+ }, {
38
+ "type": "list_tile",
39
+ "args": {
40
+ "title": {
41
+ "type": "text",
42
+ "args": {
43
+ "text": "Three"
44
+ }
45
+ }
46
+ }
47
+ }, {
48
+ "type": "list_tile",
49
+ "args": {
50
+ "title": {
51
+ "type": "text",
52
+ "args": {
53
+ "text": "Four"
54
+ }
55
+ }
56
+ }
57
+ }, {
58
+ "type": "list_tile",
59
+ "args": {
60
+ "title": {
61
+ "type": "text",
62
+ "args": {
63
+ "text": "Five"
64
+ }
65
+ }
66
+ }
67
+ }, {
68
+ "type": "list_tile",
69
+ "args": {
70
+ "title": {
71
+ "type": "text",
72
+ "args": {
73
+ "text": "Six"
74
+ }
75
+ }
76
+ }
77
+ }, {
78
+ "type": "list_tile",
79
+ "args": {
80
+ "title": {
81
+ "type": "text",
82
+ "args": {
83
+ "text": "Seven"
84
+ }
85
+ }
86
+ }
87
+ }, {
88
+ "type": "list_tile",
89
+ "args": {
90
+ "title": {
91
+ "type": "text",
92
+ "args": {
93
+ "text": "Eight"
94
+ }
95
+ }
96
+ }
97
+ }, {
98
+ "type": "list_tile",
99
+ "args": {
100
+ "title": {
101
+ "type": "text",
102
+ "args": {
103
+ "text": "Nine"
104
+ }
105
+ }
106
+ }
107
+ }, {
108
+ "type": "list_tile",
109
+ "args": {
110
+ "title": {
111
+ "type": "text",
112
+ "args": {
113
+ "text": "Ten"
114
+ }
115
+ }
116
+ }
117
+ }, {
118
+ "type": "list_tile",
119
+ "args": {
120
+ "title": {
121
+ "type": "text",
122
+ "args": {
123
+ "text": "Eleven"
124
+ }
125
+ }
126
+ }
127
+ }, {
128
+ "type": "list_tile",
129
+ "args": {
130
+ "title": {
131
+ "type": "text",
132
+ "args": {
133
+ "text": "Twelve"
134
+ }
135
+ }
136
+ }
137
+ }, {
138
+ "type": "list_tile",
139
+ "args": {
140
+ "title": {
141
+ "type": "text",
142
+ "args": {
143
+ "text": "Thirteen"
144
+ }
145
+ }
146
+ }
147
+ }, {
148
+ "type": "list_tile",
149
+ "args": {
150
+ "title": {
151
+ "type": "text",
152
+ "args": {
153
+ "text": "Fourteen"
154
+ }
155
+ }
156
+ }
157
+ }, {
158
+ "type": "list_tile",
159
+ "args": {
160
+ "title": {
161
+ "type": "text",
162
+ "args": {
163
+ "text": "Fifteen"
164
+ }
165
+ }
166
+ }
167
+ }, {
168
+ "type": "list_tile",
169
+ "args": {
170
+ "title": {
171
+ "type": "text",
172
+ "args": {
173
+ "text": "Sixteen"
174
+ }
175
+ }
176
+ }
177
+ }, {
178
+ "type": "list_tile",
179
+ "args": {
180
+ "title": {
181
+ "type": "text",
182
+ "args": {
183
+ "text": "Seventeen"
184
+ }
185
+ }
186
+ }
187
+ }, {
188
+ "type": "list_tile",
189
+ "args": {
190
+ "title": {
191
+ "type": "text",
192
+ "args": {
193
+ "text": "Eighteen"
194
+ }
195
+ }
196
+ }
197
+ }, {
198
+ "type": "list_tile",
199
+ "args": {
200
+ "title": {
201
+ "type": "text",
202
+ "args": {
203
+ "text": "Nineteen"
204
+ }
205
+ }
206
+ }
207
+ }, {
208
+ "type": "list_tile",
209
+ "args": {
210
+ "title": {
211
+ "type": "text",
212
+ "args": {
213
+ "text": "Twenty"
214
+ }
215
+ }
216
+ }
217
+ }, {
218
+ "type": "list_tile",
219
+ "args": {
220
+ "title": {
221
+ "type": "text",
222
+ "args": {
223
+ "text": "Twenty One"
224
+ }
225
+ }
226
+ }
227
+ }, {
228
+ "type": "list_tile",
229
+ "args": {
230
+ "title": {
231
+ "type": "text",
232
+ "args": {
233
+ "text": "Twenty Two"
234
+ }
235
+ }
236
+ }
237
+ }, {
238
+ "type": "list_tile",
239
+ "args": {
240
+ "title": {
241
+ "type": "text",
242
+ "args": {
243
+ "text": "Twenty Three"
244
+ }
245
+ }
246
+ }
247
+ }, {
248
+ "type": "list_tile",
249
+ "args": {
250
+ "title": {
251
+ "type": "text",
252
+ "args": {
253
+ "text": "Twenty Four"
254
+ }
255
+ }
256
+ }
257
+ }, {
258
+ "type": "list_tile",
259
+ "args": {
260
+ "title": {
261
+ "type": "text",
262
+ "args": {
263
+ "text": "Twenty Five"
264
+ }
265
+ }
266
+ }
267
+ }, {
268
+ "type": "list_tile",
269
+ "args": {
270
+ "title": {
271
+ "type": "text",
272
+ "args": {
273
+ "text": "Twenty Six"
274
+ }
275
+ }
276
+ }
277
+ }, {
278
+ "type": "list_tile",
279
+ "args": {
280
+ "title": {
281
+ "type": "text",
282
+ "args": {
283
+ "text": "Twenty Seven"
284
+ }
285
+ }
286
+ }
287
+ }, {
288
+ "type": "list_tile",
289
+ "args": {
290
+ "title": {
291
+ "type": "text",
292
+ "args": {
293
+ "text": "Twenty Eight"
294
+ }
295
+ }
296
+ }
297
+ }, {
298
+ "type": "list_tile",
299
+ "args": {
300
+ "title": {
301
+ "type": "text",
302
+ "args": {
303
+ "text": "Twenty Nine"
304
+ }
305
+ }
306
+ }
307
+ }, {
308
+ "type": "list_tile",
309
+ "args": {
310
+ "title": {
311
+ "type": "text",
312
+ "args": {
313
+ "text": "Thirty"
314
+ }
315
+ }
316
+ }
317
+ }, {
318
+ "type": "list_tile",
319
+ "args": {
320
+ "title": {
321
+ "type": "text",
322
+ "args": {
323
+ "text": "Thirty One"
324
+ }
325
+ }
326
+ }
327
+ }, {
328
+ "type": "list_tile",
329
+ "args": {
330
+ "title": {
331
+ "type": "text",
332
+ "args": {
333
+ "text": "Thirty Two"
334
+ }
335
+ }
336
+ }
337
+ }, {
338
+ "type": "list_tile",
339
+ "args": {
340
+ "title": {
341
+ "type": "text",
342
+ "args": {
343
+ "text": "Thirty Three"
344
+ }
345
+ }
346
+ }
347
+ }, {
348
+ "type": "list_tile",
349
+ "args": {
350
+ "title": {
351
+ "type": "text",
352
+ "args": {
353
+ "text": "Thirty Four"
354
+ }
355
+ }
356
+ }
357
+ }, {
358
+ "type": "list_tile",
359
+ "args": {
360
+ "title": {
361
+ "type": "text",
362
+ "args": {
363
+ "text": "Thirty Five"
364
+ }
365
+ }
366
+ }
367
+ }, {
368
+ "type": "list_tile",
369
+ "args": {
370
+ "title": {
371
+ "type": "text",
372
+ "args": {
373
+ "text": "Thirty Six"
374
+ }
375
+ }
376
+ }
377
+ }, {
378
+ "type": "list_tile",
379
+ "args": {
380
+ "title": {
381
+ "type": "text",
382
+ "args": {
383
+ "text": "Thirty Seven"
384
+ }
385
+ }
386
+ }
387
+ }, {
388
+ "type": "list_tile",
389
+ "args": {
390
+ "title": {
391
+ "type": "text",
392
+ "args": {
393
+ "text": "Thirty Eight"
394
+ }
395
+ }
396
+ }
397
+ }, {
398
+ "type": "list_tile",
399
+ "args": {
400
+ "title": {
401
+ "type": "text",
402
+ "args": {
403
+ "text": "Thirty Nine"
404
+ }
405
+ }
406
+ }
407
+ }]
408
+ }
409
+ }
410
+ }