create-tina-app 0.0.1 → 0.1.3

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 (44) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +3 -0
  3. package/bin/create-tina-app +2 -2
  4. package/dist/examples.d.ts +27 -0
  5. package/dist/index.js +186 -43
  6. package/examples/tina-tailwind-sidebar-demo/.tina/PageTemplate.ts +427 -0
  7. package/examples/tina-tailwind-sidebar-demo/.tina/ThemeTemplate.ts +42 -0
  8. package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/_graphql.json +4180 -0
  9. package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/_lookup.json +68 -0
  10. package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/_schema.json +851 -0
  11. package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/config/schema.json +479 -0
  12. package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/schema.gql +391 -0
  13. package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/types.ts +520 -0
  14. package/examples/tina-tailwind-sidebar-demo/.tina/schema.ts +35 -0
  15. package/examples/tina-tailwind-sidebar-demo/CHANGELOG.md +95 -0
  16. package/examples/tina-tailwind-sidebar-demo/LICENSE +201 -0
  17. package/examples/tina-tailwind-sidebar-demo/README.md +10 -0
  18. package/examples/tina-tailwind-sidebar-demo/components/PageBlocks.tsx +25 -0
  19. package/examples/tina-tailwind-sidebar-demo/components/actions.js +114 -0
  20. package/examples/tina-tailwind-sidebar-demo/components/features.tsx +171 -0
  21. package/examples/tina-tailwind-sidebar-demo/components/footer.tsx +247 -0
  22. package/examples/tina-tailwind-sidebar-demo/components/hero.js +156 -0
  23. package/examples/tina-tailwind-sidebar-demo/components/icon.js +264 -0
  24. package/examples/tina-tailwind-sidebar-demo/components/modal.js +79 -0
  25. package/examples/tina-tailwind-sidebar-demo/components/nav.tsx +121 -0
  26. package/examples/tina-tailwind-sidebar-demo/components/section.js +53 -0
  27. package/examples/tina-tailwind-sidebar-demo/components/testimonial.tsx +87 -0
  28. package/examples/tina-tailwind-sidebar-demo/components/theme.tsx +81 -0
  29. package/examples/tina-tailwind-sidebar-demo/components/tina-wrapper.js +85 -0
  30. package/examples/tina-tailwind-sidebar-demo/content/data/homepage.json +186 -0
  31. package/examples/tina-tailwind-sidebar-demo/content/theme/NormalTheme.json +5 -0
  32. package/examples/tina-tailwind-sidebar-demo/graphql.config.js +24 -0
  33. package/examples/tina-tailwind-sidebar-demo/next-env.d.ts +15 -0
  34. package/examples/tina-tailwind-sidebar-demo/package.json +42 -0
  35. package/examples/tina-tailwind-sidebar-demo/pages/_app.js +48 -0
  36. package/examples/tina-tailwind-sidebar-demo/pages/admin.tsx +26 -0
  37. package/examples/tina-tailwind-sidebar-demo/pages/index.tsx +186 -0
  38. package/examples/tina-tailwind-sidebar-demo/postcss.config.js +19 -0
  39. package/examples/tina-tailwind-sidebar-demo/public/canal.jpg +0 -0
  40. package/examples/tina-tailwind-sidebar-demo/public/index.html +42 -0
  41. package/examples/tina-tailwind-sidebar-demo/styles.css +20 -0
  42. package/examples/tina-tailwind-sidebar-demo/tailwind.config.js +83 -0
  43. package/examples/tina-tailwind-sidebar-demo/tsconfig.json +19 -0
  44. package/package.json +7 -3
@@ -0,0 +1,851 @@
1
+ {
2
+ "collections": [
3
+ {
4
+ "label": "Theme",
5
+ "name": "theme",
6
+ "path": "content/theme",
7
+ "format": "json",
8
+ "fields": [
9
+ {
10
+ "name": "color",
11
+ "label": "Primary Color",
12
+ "type": "string",
13
+ "options": [
14
+ "blue",
15
+ "teal",
16
+ "green",
17
+ "red",
18
+ "pink",
19
+ "purple",
20
+ "orange",
21
+ "yellow"
22
+ ],
23
+ "namespace": [
24
+ "theme",
25
+ "color"
26
+ ]
27
+ },
28
+ {
29
+ "name": "btnStyle",
30
+ "label": "Button Style",
31
+ "type": "string",
32
+ "options": [
33
+ "round",
34
+ "rounded",
35
+ "square"
36
+ ],
37
+ "namespace": [
38
+ "theme",
39
+ "btnStyle"
40
+ ]
41
+ }
42
+ ],
43
+ "namespace": [
44
+ "theme"
45
+ ]
46
+ },
47
+ {
48
+ "label": "Pages",
49
+ "name": "page",
50
+ "path": "content/data",
51
+ "format": "json",
52
+ "fields": [
53
+ {
54
+ "name": "nav",
55
+ "type": "object",
56
+ "label": "Navbar",
57
+ "fields": [
58
+ {
59
+ "label": "Wordmark",
60
+ "name": "wordmark",
61
+ "type": "object",
62
+ "fields": [
63
+ {
64
+ "label": "Icon",
65
+ "name": "icon",
66
+ "type": "object",
67
+ "fields": [
68
+ {
69
+ "name": "color",
70
+ "label": "Color",
71
+ "type": "string",
72
+ "options": [
73
+ "primary",
74
+ "blue",
75
+ "teal",
76
+ "green",
77
+ "red",
78
+ "pink",
79
+ "purple",
80
+ "orange",
81
+ "yellow"
82
+ ],
83
+ "namespace": [
84
+ "page",
85
+ "nav",
86
+ "wordmark",
87
+ "icon",
88
+ "color"
89
+ ]
90
+ },
91
+ {
92
+ "name": "name",
93
+ "label": "Icon",
94
+ "type": "string",
95
+ "options": [
96
+ "random",
97
+ "FiAperture",
98
+ "BiCodeBlock",
99
+ "BiLike",
100
+ "BiMapAlt",
101
+ "BiPalette",
102
+ "BiPieChartAlt2",
103
+ "BiPin",
104
+ "BiShield",
105
+ "BiSlider",
106
+ "BiStore",
107
+ "BiTennisBall",
108
+ "BiTestTube",
109
+ "BiTrophy",
110
+ "BiUserCircle",
111
+ "BiBeer",
112
+ "BiChat",
113
+ "BiCloud",
114
+ "BiCoffeeTogo",
115
+ "BiWorld"
116
+ ],
117
+ "namespace": [
118
+ "page",
119
+ "nav",
120
+ "wordmark",
121
+ "icon",
122
+ "name"
123
+ ]
124
+ },
125
+ {
126
+ "name": "style",
127
+ "label": "Style",
128
+ "type": "string",
129
+ "options": [
130
+ "circle",
131
+ "float"
132
+ ],
133
+ "namespace": [
134
+ "page",
135
+ "nav",
136
+ "wordmark",
137
+ "icon",
138
+ "style"
139
+ ]
140
+ }
141
+ ],
142
+ "namespace": [
143
+ "page",
144
+ "nav",
145
+ "wordmark",
146
+ "icon"
147
+ ]
148
+ },
149
+ {
150
+ "label": "Name",
151
+ "name": "name",
152
+ "type": "string",
153
+ "namespace": [
154
+ "page",
155
+ "nav",
156
+ "wordmark",
157
+ "name"
158
+ ]
159
+ }
160
+ ],
161
+ "namespace": [
162
+ "page",
163
+ "nav",
164
+ "wordmark"
165
+ ]
166
+ },
167
+ {
168
+ "label": "Nav Items",
169
+ "name": "items",
170
+ "type": "object",
171
+ "list": true,
172
+ "fields": [
173
+ {
174
+ "label": "Label",
175
+ "name": "label",
176
+ "type": "string",
177
+ "namespace": [
178
+ "page",
179
+ "nav",
180
+ "items",
181
+ "label"
182
+ ]
183
+ },
184
+ {
185
+ "label": "Link",
186
+ "name": "link",
187
+ "type": "string",
188
+ "namespace": [
189
+ "page",
190
+ "nav",
191
+ "items",
192
+ "link"
193
+ ]
194
+ }
195
+ ],
196
+ "namespace": [
197
+ "page",
198
+ "nav",
199
+ "items"
200
+ ]
201
+ }
202
+ ],
203
+ "namespace": [
204
+ "page",
205
+ "nav"
206
+ ]
207
+ },
208
+ {
209
+ "name": "blocks",
210
+ "type": "object",
211
+ "label": "Page Sections",
212
+ "list": true,
213
+ "templates": [
214
+ {
215
+ "name": "hero",
216
+ "label": "Hero",
217
+ "fields": [
218
+ {
219
+ "name": "tagline",
220
+ "label": "Tagline",
221
+ "type": "string",
222
+ "namespace": [
223
+ "page",
224
+ "blocks",
225
+ "hero",
226
+ "tagline"
227
+ ]
228
+ },
229
+ {
230
+ "name": "headline",
231
+ "label": "Headline",
232
+ "type": "string",
233
+ "namespace": [
234
+ "page",
235
+ "blocks",
236
+ "hero",
237
+ "headline"
238
+ ]
239
+ },
240
+ {
241
+ "name": "paragraph",
242
+ "label": "Paragraph",
243
+ "type": "string",
244
+ "namespace": [
245
+ "page",
246
+ "blocks",
247
+ "hero",
248
+ "paragraph"
249
+ ]
250
+ },
251
+ {
252
+ "name": "string",
253
+ "label": "Text",
254
+ "type": "object",
255
+ "fields": [
256
+ {
257
+ "name": "color",
258
+ "label": "Color",
259
+ "type": "string",
260
+ "options": [
261
+ "default",
262
+ "tint",
263
+ "primary"
264
+ ],
265
+ "namespace": [
266
+ "page",
267
+ "blocks",
268
+ "hero",
269
+ "string",
270
+ "color"
271
+ ]
272
+ }
273
+ ],
274
+ "namespace": [
275
+ "page",
276
+ "blocks",
277
+ "hero",
278
+ "string"
279
+ ]
280
+ },
281
+ {
282
+ "name": "image",
283
+ "label": "Image",
284
+ "type": "object",
285
+ "fields": [
286
+ {
287
+ "name": "src",
288
+ "label": "Image Source",
289
+ "type": "string",
290
+ "namespace": [
291
+ "page",
292
+ "blocks",
293
+ "hero",
294
+ "image",
295
+ "src"
296
+ ]
297
+ },
298
+ {
299
+ "name": "alt",
300
+ "label": "Alt Text",
301
+ "type": "string",
302
+ "namespace": [
303
+ "page",
304
+ "blocks",
305
+ "hero",
306
+ "image",
307
+ "alt"
308
+ ]
309
+ }
310
+ ],
311
+ "namespace": [
312
+ "page",
313
+ "blocks",
314
+ "hero",
315
+ "image"
316
+ ]
317
+ },
318
+ {
319
+ "label": "Actions",
320
+ "name": "actions",
321
+ "type": "object",
322
+ "list": true,
323
+ "fields": [
324
+ {
325
+ "label": "Label",
326
+ "name": "label",
327
+ "type": "string",
328
+ "namespace": [
329
+ "page",
330
+ "blocks",
331
+ "hero",
332
+ "actions",
333
+ "label"
334
+ ]
335
+ },
336
+ {
337
+ "label": "Type",
338
+ "name": "type",
339
+ "type": "string",
340
+ "options": [
341
+ "button",
342
+ "link"
343
+ ],
344
+ "namespace": [
345
+ "page",
346
+ "blocks",
347
+ "hero",
348
+ "actions",
349
+ "type"
350
+ ]
351
+ },
352
+ {
353
+ "label": "Icon",
354
+ "name": "icon",
355
+ "type": "boolean",
356
+ "namespace": [
357
+ "page",
358
+ "blocks",
359
+ "hero",
360
+ "actions",
361
+ "icon"
362
+ ]
363
+ }
364
+ ],
365
+ "namespace": [
366
+ "page",
367
+ "blocks",
368
+ "hero",
369
+ "actions"
370
+ ]
371
+ },
372
+ {
373
+ "name": "style",
374
+ "label": "Style",
375
+ "type": "object",
376
+ "fields": [
377
+ {
378
+ "name": "color",
379
+ "label": "Color",
380
+ "type": "string",
381
+ "options": [
382
+ "default",
383
+ "tint",
384
+ "primary"
385
+ ],
386
+ "namespace": [
387
+ "page",
388
+ "blocks",
389
+ "hero",
390
+ "style",
391
+ "color"
392
+ ]
393
+ }
394
+ ],
395
+ "namespace": [
396
+ "page",
397
+ "blocks",
398
+ "hero",
399
+ "style"
400
+ ]
401
+ }
402
+ ],
403
+ "namespace": [
404
+ "page",
405
+ "blocks",
406
+ "hero"
407
+ ]
408
+ },
409
+ {
410
+ "name": "testimonial",
411
+ "label": "Testimonial",
412
+ "fields": [
413
+ {
414
+ "name": "quote",
415
+ "label": "Quote",
416
+ "type": "string",
417
+ "namespace": [
418
+ "page",
419
+ "blocks",
420
+ "testimonial",
421
+ "quote"
422
+ ]
423
+ },
424
+ {
425
+ "name": "author",
426
+ "label": "Author",
427
+ "type": "string",
428
+ "namespace": [
429
+ "page",
430
+ "blocks",
431
+ "testimonial",
432
+ "author"
433
+ ]
434
+ },
435
+ {
436
+ "name": "style",
437
+ "label": "Style",
438
+ "type": "object",
439
+ "fields": [
440
+ {
441
+ "name": "color",
442
+ "label": "Color",
443
+ "type": "string",
444
+ "options": [
445
+ "default",
446
+ "tint",
447
+ "primary"
448
+ ],
449
+ "namespace": [
450
+ "page",
451
+ "blocks",
452
+ "testimonial",
453
+ "style",
454
+ "color"
455
+ ]
456
+ }
457
+ ],
458
+ "namespace": [
459
+ "page",
460
+ "blocks",
461
+ "testimonial",
462
+ "style"
463
+ ]
464
+ }
465
+ ],
466
+ "namespace": [
467
+ "page",
468
+ "blocks",
469
+ "testimonial"
470
+ ]
471
+ },
472
+ {
473
+ "name": "features",
474
+ "label": "Features",
475
+ "fields": [
476
+ {
477
+ "label": "Features",
478
+ "name": "items",
479
+ "type": "object",
480
+ "list": true,
481
+ "fields": [
482
+ {
483
+ "label": "Icon",
484
+ "name": "icon",
485
+ "type": "object",
486
+ "fields": [
487
+ {
488
+ "name": "color",
489
+ "label": "Color",
490
+ "type": "string",
491
+ "options": [
492
+ "primary",
493
+ "blue",
494
+ "teal",
495
+ "green",
496
+ "red",
497
+ "pink",
498
+ "purple",
499
+ "orange",
500
+ "yellow"
501
+ ],
502
+ "namespace": [
503
+ "page",
504
+ "blocks",
505
+ "features",
506
+ "items",
507
+ "icon",
508
+ "color"
509
+ ]
510
+ },
511
+ {
512
+ "name": "name",
513
+ "label": "Icon",
514
+ "type": "string",
515
+ "options": [
516
+ "random",
517
+ "Aperture",
518
+ "BiCodeBlock",
519
+ "BiLike",
520
+ "BiMapAlt",
521
+ "BiPalette",
522
+ "BiPieChartAlt2",
523
+ "BiPin",
524
+ "BiShield",
525
+ "BiSlider",
526
+ "BiStore",
527
+ "BiTennisBall",
528
+ "BiTestTube",
529
+ "BiTrophy",
530
+ "BiUserCircle",
531
+ "BiBeer",
532
+ "BiChat",
533
+ "BiCloud",
534
+ "BiCoffeeTogo",
535
+ "BiWorld"
536
+ ],
537
+ "namespace": [
538
+ "page",
539
+ "blocks",
540
+ "features",
541
+ "items",
542
+ "icon",
543
+ "name"
544
+ ]
545
+ },
546
+ {
547
+ "name": "style",
548
+ "label": "Style",
549
+ "type": "string",
550
+ "options": [
551
+ "circle",
552
+ "float"
553
+ ],
554
+ "namespace": [
555
+ "page",
556
+ "blocks",
557
+ "features",
558
+ "items",
559
+ "icon",
560
+ "style"
561
+ ]
562
+ }
563
+ ],
564
+ "namespace": [
565
+ "page",
566
+ "blocks",
567
+ "features",
568
+ "items",
569
+ "icon"
570
+ ]
571
+ },
572
+ {
573
+ "name": "title",
574
+ "label": "Title",
575
+ "type": "string",
576
+ "namespace": [
577
+ "page",
578
+ "blocks",
579
+ "features",
580
+ "items",
581
+ "title"
582
+ ]
583
+ },
584
+ {
585
+ "name": "text",
586
+ "label": "Text",
587
+ "type": "string",
588
+ "namespace": [
589
+ "page",
590
+ "blocks",
591
+ "features",
592
+ "items",
593
+ "text"
594
+ ]
595
+ },
596
+ {
597
+ "label": "Actions",
598
+ "name": "actions",
599
+ "type": "object",
600
+ "list": true,
601
+ "fields": [
602
+ {
603
+ "label": "Label",
604
+ "name": "label",
605
+ "type": "string",
606
+ "namespace": [
607
+ "page",
608
+ "blocks",
609
+ "features",
610
+ "items",
611
+ "actions",
612
+ "label"
613
+ ]
614
+ },
615
+ {
616
+ "label": "Type",
617
+ "name": "type",
618
+ "type": "string",
619
+ "options": [
620
+ "button",
621
+ "link"
622
+ ],
623
+ "namespace": [
624
+ "page",
625
+ "blocks",
626
+ "features",
627
+ "items",
628
+ "actions",
629
+ "type"
630
+ ]
631
+ },
632
+ {
633
+ "label": "Icon",
634
+ "name": "icon",
635
+ "type": "boolean",
636
+ "namespace": [
637
+ "page",
638
+ "blocks",
639
+ "features",
640
+ "items",
641
+ "actions",
642
+ "icon"
643
+ ]
644
+ }
645
+ ],
646
+ "namespace": [
647
+ "page",
648
+ "blocks",
649
+ "features",
650
+ "items",
651
+ "actions"
652
+ ]
653
+ }
654
+ ],
655
+ "namespace": [
656
+ "page",
657
+ "blocks",
658
+ "features",
659
+ "items"
660
+ ]
661
+ },
662
+ {
663
+ "name": "style",
664
+ "label": "Style",
665
+ "type": "object",
666
+ "fields": [
667
+ {
668
+ "name": "color",
669
+ "label": "Color",
670
+ "type": "string",
671
+ "options": [
672
+ "default",
673
+ "tint",
674
+ "primary"
675
+ ],
676
+ "namespace": [
677
+ "page",
678
+ "blocks",
679
+ "features",
680
+ "style",
681
+ "color"
682
+ ]
683
+ }
684
+ ],
685
+ "namespace": [
686
+ "page",
687
+ "blocks",
688
+ "features",
689
+ "style"
690
+ ]
691
+ }
692
+ ],
693
+ "namespace": [
694
+ "page",
695
+ "blocks",
696
+ "features"
697
+ ]
698
+ }
699
+ ],
700
+ "namespace": [
701
+ "page",
702
+ "blocks"
703
+ ]
704
+ },
705
+ {
706
+ "label": "Nav List",
707
+ "name": "navlist",
708
+ "type": "object",
709
+ "list": true,
710
+ "templates": [
711
+ {
712
+ "name": "nav",
713
+ "label": "Foooter nav",
714
+ "fields": [
715
+ {
716
+ "name": "title",
717
+ "label": "Title",
718
+ "type": "string",
719
+ "namespace": [
720
+ "page",
721
+ "navlist",
722
+ "nav",
723
+ "title"
724
+ ]
725
+ },
726
+ {
727
+ "name": "items",
728
+ "label": "Nav Items",
729
+ "type": "object",
730
+ "list": true,
731
+ "fields": [
732
+ {
733
+ "name": "label",
734
+ "label": "Label",
735
+ "type": "string",
736
+ "namespace": [
737
+ "page",
738
+ "navlist",
739
+ "nav",
740
+ "items",
741
+ "label"
742
+ ]
743
+ },
744
+ {
745
+ "name": "link",
746
+ "label": "Link",
747
+ "type": "string",
748
+ "namespace": [
749
+ "page",
750
+ "navlist",
751
+ "nav",
752
+ "items",
753
+ "link"
754
+ ]
755
+ }
756
+ ],
757
+ "namespace": [
758
+ "page",
759
+ "navlist",
760
+ "nav",
761
+ "items"
762
+ ]
763
+ }
764
+ ],
765
+ "namespace": [
766
+ "page",
767
+ "navlist",
768
+ "nav"
769
+ ]
770
+ }
771
+ ],
772
+ "namespace": [
773
+ "page",
774
+ "navlist"
775
+ ]
776
+ },
777
+ {
778
+ "name": "footer",
779
+ "label": "Footer",
780
+ "type": "object",
781
+ "fields": [
782
+ {
783
+ "name": "social",
784
+ "label": "Social Media",
785
+ "type": "object",
786
+ "fields": [
787
+ {
788
+ "name": "facebook",
789
+ "label": "Facebook",
790
+ "type": "string",
791
+ "namespace": [
792
+ "page",
793
+ "footer",
794
+ "social",
795
+ "facebook"
796
+ ]
797
+ },
798
+ {
799
+ "name": "twitter",
800
+ "label": "Twitter",
801
+ "type": "string",
802
+ "namespace": [
803
+ "page",
804
+ "footer",
805
+ "social",
806
+ "twitter"
807
+ ]
808
+ },
809
+ {
810
+ "name": "instagram",
811
+ "label": "Instagram",
812
+ "type": "string",
813
+ "namespace": [
814
+ "page",
815
+ "footer",
816
+ "social",
817
+ "instagram"
818
+ ]
819
+ },
820
+ {
821
+ "name": "github",
822
+ "label": "Github",
823
+ "type": "string",
824
+ "namespace": [
825
+ "page",
826
+ "footer",
827
+ "social",
828
+ "github"
829
+ ]
830
+ }
831
+ ],
832
+ "namespace": [
833
+ "page",
834
+ "footer",
835
+ "social"
836
+ ]
837
+ }
838
+ ],
839
+ "namespace": [
840
+ "page",
841
+ "footer"
842
+ ]
843
+ }
844
+ ],
845
+ "namespace": [
846
+ "page"
847
+ ]
848
+ }
849
+ ],
850
+ "namespace": []
851
+ }