create-tina-app 0.0.1 → 0.1.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 (64) hide show
  1. package/CHANGELOG.md +6 -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 +180 -43
  6. package/examples/basic/.tina/__generated__/_graphql.json +2304 -0
  7. package/examples/basic/.tina/__generated__/_lookup.json +56 -0
  8. package/examples/basic/.tina/__generated__/_schema.json +57 -0
  9. package/examples/basic/.tina/__generated__/config/schema.json +38 -0
  10. package/examples/basic/.tina/__generated__/schema.gql +159 -0
  11. package/examples/basic/.tina/__generated__/types.ts +285 -0
  12. package/examples/basic/.tina/schema.ts +40 -0
  13. package/examples/basic/README.md +24 -0
  14. package/examples/basic/components/Layout.js +28 -0
  15. package/examples/basic/content/page/home.mdx +2 -0
  16. package/examples/basic/content/post/HelloWorld.md +7 -0
  17. package/examples/basic/next.config.js +1 -0
  18. package/examples/basic/package.json +23 -0
  19. package/examples/basic/pages/_app.js +33 -0
  20. package/examples/basic/pages/admin/[[...slug]].js +3 -0
  21. package/examples/basic/pages/index.js +30 -0
  22. package/examples/basic/pages/posts/[slug].js +64 -0
  23. package/examples/basic/pages/posts/index.js +44 -0
  24. package/examples/basic/public/favicon.ico +0 -0
  25. package/examples/basic/public/vercel.svg +4 -0
  26. package/examples/tina-tailwind-sidebar-demo/.tina/PageTemplate.ts +427 -0
  27. package/examples/tina-tailwind-sidebar-demo/.tina/ThemeTemplate.ts +42 -0
  28. package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/_graphql.json +4180 -0
  29. package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/_lookup.json +68 -0
  30. package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/_schema.json +851 -0
  31. package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/config/schema.json +479 -0
  32. package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/schema.gql +391 -0
  33. package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/types.ts +520 -0
  34. package/examples/tina-tailwind-sidebar-demo/.tina/schema.ts +35 -0
  35. package/examples/tina-tailwind-sidebar-demo/CHANGELOG.md +95 -0
  36. package/examples/tina-tailwind-sidebar-demo/LICENSE +201 -0
  37. package/examples/tina-tailwind-sidebar-demo/README.md +10 -0
  38. package/examples/tina-tailwind-sidebar-demo/components/PageBlocks.tsx +25 -0
  39. package/examples/tina-tailwind-sidebar-demo/components/actions.js +114 -0
  40. package/examples/tina-tailwind-sidebar-demo/components/features.tsx +171 -0
  41. package/examples/tina-tailwind-sidebar-demo/components/footer.tsx +247 -0
  42. package/examples/tina-tailwind-sidebar-demo/components/hero.js +156 -0
  43. package/examples/tina-tailwind-sidebar-demo/components/icon.js +264 -0
  44. package/examples/tina-tailwind-sidebar-demo/components/modal.js +79 -0
  45. package/examples/tina-tailwind-sidebar-demo/components/nav.tsx +121 -0
  46. package/examples/tina-tailwind-sidebar-demo/components/section.js +53 -0
  47. package/examples/tina-tailwind-sidebar-demo/components/testimonial.tsx +87 -0
  48. package/examples/tina-tailwind-sidebar-demo/components/theme.tsx +81 -0
  49. package/examples/tina-tailwind-sidebar-demo/components/tina-wrapper.js +85 -0
  50. package/examples/tina-tailwind-sidebar-demo/content/data/homepage.json +186 -0
  51. package/examples/tina-tailwind-sidebar-demo/content/theme/NormalTheme.json +5 -0
  52. package/examples/tina-tailwind-sidebar-demo/graphql.config.js +24 -0
  53. package/examples/tina-tailwind-sidebar-demo/next-env.d.ts +15 -0
  54. package/examples/tina-tailwind-sidebar-demo/package.json +42 -0
  55. package/examples/tina-tailwind-sidebar-demo/pages/_app.js +48 -0
  56. package/examples/tina-tailwind-sidebar-demo/pages/admin.tsx +26 -0
  57. package/examples/tina-tailwind-sidebar-demo/pages/index.tsx +186 -0
  58. package/examples/tina-tailwind-sidebar-demo/postcss.config.js +19 -0
  59. package/examples/tina-tailwind-sidebar-demo/public/canal.jpg +0 -0
  60. package/examples/tina-tailwind-sidebar-demo/public/index.html +42 -0
  61. package/examples/tina-tailwind-sidebar-demo/styles.css +20 -0
  62. package/examples/tina-tailwind-sidebar-demo/tailwind.config.js +83 -0
  63. package/examples/tina-tailwind-sidebar-demo/tsconfig.json +19 -0
  64. package/package.json +7 -3
@@ -0,0 +1,479 @@
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
+ },
24
+ {
25
+ "name": "btnStyle",
26
+ "label": "Button Style",
27
+ "type": "string",
28
+ "options": [
29
+ "round",
30
+ "rounded",
31
+ "square"
32
+ ]
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ "label": "Pages",
38
+ "name": "page",
39
+ "path": "content/data",
40
+ "format": "json",
41
+ "fields": [
42
+ {
43
+ "name": "nav",
44
+ "type": "object",
45
+ "label": "Navbar",
46
+ "fields": [
47
+ {
48
+ "label": "Wordmark",
49
+ "name": "wordmark",
50
+ "type": "object",
51
+ "fields": [
52
+ {
53
+ "label": "Icon",
54
+ "name": "icon",
55
+ "type": "object",
56
+ "fields": [
57
+ {
58
+ "name": "color",
59
+ "label": "Color",
60
+ "type": "string",
61
+ "options": [
62
+ "primary",
63
+ "blue",
64
+ "teal",
65
+ "green",
66
+ "red",
67
+ "pink",
68
+ "purple",
69
+ "orange",
70
+ "yellow"
71
+ ]
72
+ },
73
+ {
74
+ "name": "name",
75
+ "label": "Icon",
76
+ "type": "string",
77
+ "options": [
78
+ "random",
79
+ "FiAperture",
80
+ "BiCodeBlock",
81
+ "BiLike",
82
+ "BiMapAlt",
83
+ "BiPalette",
84
+ "BiPieChartAlt2",
85
+ "BiPin",
86
+ "BiShield",
87
+ "BiSlider",
88
+ "BiStore",
89
+ "BiTennisBall",
90
+ "BiTestTube",
91
+ "BiTrophy",
92
+ "BiUserCircle",
93
+ "BiBeer",
94
+ "BiChat",
95
+ "BiCloud",
96
+ "BiCoffeeTogo",
97
+ "BiWorld"
98
+ ]
99
+ },
100
+ {
101
+ "name": "style",
102
+ "label": "Style",
103
+ "type": "string",
104
+ "options": [
105
+ "circle",
106
+ "float"
107
+ ]
108
+ }
109
+ ]
110
+ },
111
+ {
112
+ "label": "Name",
113
+ "name": "name",
114
+ "type": "string"
115
+ }
116
+ ]
117
+ },
118
+ {
119
+ "label": "Nav Items",
120
+ "name": "items",
121
+ "type": "object",
122
+ "list": true,
123
+ "fields": [
124
+ {
125
+ "label": "Label",
126
+ "name": "label",
127
+ "type": "string"
128
+ },
129
+ {
130
+ "label": "Link",
131
+ "name": "link",
132
+ "type": "string"
133
+ }
134
+ ]
135
+ }
136
+ ]
137
+ },
138
+ {
139
+ "name": "blocks",
140
+ "type": "object",
141
+ "label": "Page Sections",
142
+ "list": true,
143
+ "templates": [
144
+ {
145
+ "name": "hero",
146
+ "label": "Hero",
147
+ "fields": [
148
+ {
149
+ "name": "tagline",
150
+ "label": "Tagline",
151
+ "type": "string"
152
+ },
153
+ {
154
+ "name": "headline",
155
+ "label": "Headline",
156
+ "type": "string"
157
+ },
158
+ {
159
+ "name": "paragraph",
160
+ "label": "Paragraph",
161
+ "type": "string"
162
+ },
163
+ {
164
+ "name": "string",
165
+ "label": "Text",
166
+ "type": "object",
167
+ "fields": [
168
+ {
169
+ "name": "color",
170
+ "label": "Color",
171
+ "type": "string",
172
+ "options": [
173
+ "default",
174
+ "tint",
175
+ "primary"
176
+ ]
177
+ }
178
+ ]
179
+ },
180
+ {
181
+ "name": "image",
182
+ "label": "Image",
183
+ "type": "object",
184
+ "fields": [
185
+ {
186
+ "name": "src",
187
+ "label": "Image Source",
188
+ "type": "string"
189
+ },
190
+ {
191
+ "name": "alt",
192
+ "label": "Alt Text",
193
+ "type": "string"
194
+ }
195
+ ]
196
+ },
197
+ {
198
+ "label": "Actions",
199
+ "name": "actions",
200
+ "type": "object",
201
+ "list": true,
202
+ "fields": [
203
+ {
204
+ "label": "Label",
205
+ "name": "label",
206
+ "type": "string"
207
+ },
208
+ {
209
+ "label": "Type",
210
+ "name": "type",
211
+ "type": "string",
212
+ "options": [
213
+ "button",
214
+ "link"
215
+ ]
216
+ },
217
+ {
218
+ "label": "Icon",
219
+ "name": "icon",
220
+ "type": "boolean"
221
+ }
222
+ ]
223
+ },
224
+ {
225
+ "name": "style",
226
+ "label": "Style",
227
+ "type": "object",
228
+ "fields": [
229
+ {
230
+ "name": "color",
231
+ "label": "Color",
232
+ "type": "string",
233
+ "options": [
234
+ "default",
235
+ "tint",
236
+ "primary"
237
+ ]
238
+ }
239
+ ]
240
+ }
241
+ ]
242
+ },
243
+ {
244
+ "name": "testimonial",
245
+ "label": "Testimonial",
246
+ "fields": [
247
+ {
248
+ "name": "quote",
249
+ "label": "Quote",
250
+ "type": "string"
251
+ },
252
+ {
253
+ "name": "author",
254
+ "label": "Author",
255
+ "type": "string"
256
+ },
257
+ {
258
+ "name": "style",
259
+ "label": "Style",
260
+ "type": "object",
261
+ "fields": [
262
+ {
263
+ "name": "color",
264
+ "label": "Color",
265
+ "type": "string",
266
+ "options": [
267
+ "default",
268
+ "tint",
269
+ "primary"
270
+ ]
271
+ }
272
+ ]
273
+ }
274
+ ]
275
+ },
276
+ {
277
+ "name": "features",
278
+ "label": "Features",
279
+ "fields": [
280
+ {
281
+ "label": "Features",
282
+ "name": "items",
283
+ "type": "object",
284
+ "list": true,
285
+ "fields": [
286
+ {
287
+ "label": "Icon",
288
+ "name": "icon",
289
+ "type": "object",
290
+ "fields": [
291
+ {
292
+ "name": "color",
293
+ "label": "Color",
294
+ "type": "string",
295
+ "options": [
296
+ "primary",
297
+ "blue",
298
+ "teal",
299
+ "green",
300
+ "red",
301
+ "pink",
302
+ "purple",
303
+ "orange",
304
+ "yellow"
305
+ ]
306
+ },
307
+ {
308
+ "name": "name",
309
+ "label": "Icon",
310
+ "type": "string",
311
+ "options": [
312
+ "random",
313
+ "Aperture",
314
+ "BiCodeBlock",
315
+ "BiLike",
316
+ "BiMapAlt",
317
+ "BiPalette",
318
+ "BiPieChartAlt2",
319
+ "BiPin",
320
+ "BiShield",
321
+ "BiSlider",
322
+ "BiStore",
323
+ "BiTennisBall",
324
+ "BiTestTube",
325
+ "BiTrophy",
326
+ "BiUserCircle",
327
+ "BiBeer",
328
+ "BiChat",
329
+ "BiCloud",
330
+ "BiCoffeeTogo",
331
+ "BiWorld"
332
+ ]
333
+ },
334
+ {
335
+ "name": "style",
336
+ "label": "Style",
337
+ "type": "string",
338
+ "options": [
339
+ "circle",
340
+ "float"
341
+ ]
342
+ }
343
+ ]
344
+ },
345
+ {
346
+ "name": "title",
347
+ "label": "Title",
348
+ "type": "string"
349
+ },
350
+ {
351
+ "name": "text",
352
+ "label": "Text",
353
+ "type": "string"
354
+ },
355
+ {
356
+ "label": "Actions",
357
+ "name": "actions",
358
+ "type": "object",
359
+ "list": true,
360
+ "fields": [
361
+ {
362
+ "label": "Label",
363
+ "name": "label",
364
+ "type": "string"
365
+ },
366
+ {
367
+ "label": "Type",
368
+ "name": "type",
369
+ "type": "string",
370
+ "options": [
371
+ "button",
372
+ "link"
373
+ ]
374
+ },
375
+ {
376
+ "label": "Icon",
377
+ "name": "icon",
378
+ "type": "boolean"
379
+ }
380
+ ]
381
+ }
382
+ ]
383
+ },
384
+ {
385
+ "name": "style",
386
+ "label": "Style",
387
+ "type": "object",
388
+ "fields": [
389
+ {
390
+ "name": "color",
391
+ "label": "Color",
392
+ "type": "string",
393
+ "options": [
394
+ "default",
395
+ "tint",
396
+ "primary"
397
+ ]
398
+ }
399
+ ]
400
+ }
401
+ ]
402
+ }
403
+ ]
404
+ },
405
+ {
406
+ "label": "Nav List",
407
+ "name": "navlist",
408
+ "type": "object",
409
+ "list": true,
410
+ "templates": [
411
+ {
412
+ "name": "nav",
413
+ "label": "Foooter nav",
414
+ "fields": [
415
+ {
416
+ "name": "title",
417
+ "label": "Title",
418
+ "type": "string"
419
+ },
420
+ {
421
+ "name": "items",
422
+ "label": "Nav Items",
423
+ "type": "object",
424
+ "list": true,
425
+ "fields": [
426
+ {
427
+ "name": "label",
428
+ "label": "Label",
429
+ "type": "string"
430
+ },
431
+ {
432
+ "name": "link",
433
+ "label": "Link",
434
+ "type": "string"
435
+ }
436
+ ]
437
+ }
438
+ ]
439
+ }
440
+ ]
441
+ },
442
+ {
443
+ "name": "footer",
444
+ "label": "Footer",
445
+ "type": "object",
446
+ "fields": [
447
+ {
448
+ "name": "social",
449
+ "label": "Social Media",
450
+ "type": "object",
451
+ "fields": [
452
+ {
453
+ "name": "facebook",
454
+ "label": "Facebook",
455
+ "type": "string"
456
+ },
457
+ {
458
+ "name": "twitter",
459
+ "label": "Twitter",
460
+ "type": "string"
461
+ },
462
+ {
463
+ "name": "instagram",
464
+ "label": "Instagram",
465
+ "type": "string"
466
+ },
467
+ {
468
+ "name": "github",
469
+ "label": "Github",
470
+ "type": "string"
471
+ }
472
+ ]
473
+ }
474
+ ]
475
+ }
476
+ ]
477
+ }
478
+ ]
479
+ }