create-tina-app 0.1.4 → 0.1.7
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.
- package/{examples/tina-tailwind-sidebar-demo/LICENSE → LICENSE} +1 -26
- package/dist/index.js +19 -11
- package/{examples/tina-tailwind-sidebar-demo/next-env.d.ts → dist/util/preRunChecks.d.ts} +1 -3
- package/package.json +11 -10
- package/CHANGELOG.md +0 -38
- package/examples/tina-tailwind-sidebar-demo/.tina/PageTemplate.ts +0 -427
- package/examples/tina-tailwind-sidebar-demo/.tina/ThemeTemplate.ts +0 -42
- package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/_graphql.json +0 -4180
- package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/_lookup.json +0 -68
- package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/_schema.json +0 -851
- package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/config/schema.json +0 -479
- package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/schema.gql +0 -391
- package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/types.ts +0 -520
- package/examples/tina-tailwind-sidebar-demo/.tina/schema.ts +0 -35
- package/examples/tina-tailwind-sidebar-demo/CHANGELOG.md +0 -95
- package/examples/tina-tailwind-sidebar-demo/README.md +0 -10
- package/examples/tina-tailwind-sidebar-demo/components/PageBlocks.tsx +0 -25
- package/examples/tina-tailwind-sidebar-demo/components/actions.js +0 -114
- package/examples/tina-tailwind-sidebar-demo/components/features.tsx +0 -171
- package/examples/tina-tailwind-sidebar-demo/components/footer.tsx +0 -247
- package/examples/tina-tailwind-sidebar-demo/components/hero.js +0 -156
- package/examples/tina-tailwind-sidebar-demo/components/icon.js +0 -264
- package/examples/tina-tailwind-sidebar-demo/components/modal.js +0 -79
- package/examples/tina-tailwind-sidebar-demo/components/nav.tsx +0 -121
- package/examples/tina-tailwind-sidebar-demo/components/section.js +0 -53
- package/examples/tina-tailwind-sidebar-demo/components/testimonial.tsx +0 -87
- package/examples/tina-tailwind-sidebar-demo/components/theme.tsx +0 -81
- package/examples/tina-tailwind-sidebar-demo/components/tina-wrapper.js +0 -85
- package/examples/tina-tailwind-sidebar-demo/content/data/homepage.json +0 -186
- package/examples/tina-tailwind-sidebar-demo/content/theme/NormalTheme.json +0 -5
- package/examples/tina-tailwind-sidebar-demo/graphql.config.js +0 -24
- package/examples/tina-tailwind-sidebar-demo/package.json +0 -41
- package/examples/tina-tailwind-sidebar-demo/pages/_app.js +0 -48
- package/examples/tina-tailwind-sidebar-demo/pages/admin.tsx +0 -26
- package/examples/tina-tailwind-sidebar-demo/pages/index.tsx +0 -186
- package/examples/tina-tailwind-sidebar-demo/postcss.config.js +0 -19
- package/examples/tina-tailwind-sidebar-demo/public/canal.jpg +0 -0
- package/examples/tina-tailwind-sidebar-demo/public/index.html +0 -42
- package/examples/tina-tailwind-sidebar-demo/styles.css +0 -20
- package/examples/tina-tailwind-sidebar-demo/tailwind.config.js +0 -83
- package/examples/tina-tailwind-sidebar-demo/tsconfig.json +0 -19
|
@@ -1,520 +0,0 @@
|
|
|
1
|
-
// DO NOT MODIFY THIS FILE. This file is automatically generated by Tina
|
|
2
|
-
export type Maybe<T> = T | null;
|
|
3
|
-
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
|
|
4
|
-
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
|
|
5
|
-
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
|
|
6
|
-
/** All built-in and custom scalars, mapped to their actual values */
|
|
7
|
-
export type Scalars = {
|
|
8
|
-
ID: string;
|
|
9
|
-
String: string;
|
|
10
|
-
Boolean: boolean;
|
|
11
|
-
Int: number;
|
|
12
|
-
Float: number;
|
|
13
|
-
/** References another document, used as a foreign key */
|
|
14
|
-
Reference: any;
|
|
15
|
-
JSON: any;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export type SystemInfo = {
|
|
21
|
-
__typename?: 'SystemInfo';
|
|
22
|
-
filename: Scalars['String'];
|
|
23
|
-
basename: Scalars['String'];
|
|
24
|
-
breadcrumbs: Array<Scalars['String']>;
|
|
25
|
-
path: Scalars['String'];
|
|
26
|
-
relativePath: Scalars['String'];
|
|
27
|
-
extension: Scalars['String'];
|
|
28
|
-
template: Scalars['String'];
|
|
29
|
-
collection: Collection;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
export type SystemInfoBreadcrumbsArgs = {
|
|
34
|
-
excludeExtension?: Maybe<Scalars['Boolean']>;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export type PageInfo = {
|
|
38
|
-
__typename?: 'PageInfo';
|
|
39
|
-
hasPreviousPage: Scalars['Boolean'];
|
|
40
|
-
hasNextPage: Scalars['Boolean'];
|
|
41
|
-
startCursor: Scalars['String'];
|
|
42
|
-
endCursor: Scalars['String'];
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export type Node = {
|
|
46
|
-
id: Scalars['ID'];
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export type Document = {
|
|
50
|
-
sys?: Maybe<SystemInfo>;
|
|
51
|
-
id: Scalars['ID'];
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
/** A relay-compliant pagination connection */
|
|
55
|
-
export type Connection = {
|
|
56
|
-
totalCount: Scalars['Int'];
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export type Query = {
|
|
60
|
-
__typename?: 'Query';
|
|
61
|
-
getCollection: Collection;
|
|
62
|
-
getCollections: Array<Collection>;
|
|
63
|
-
node: Node;
|
|
64
|
-
getDocument: DocumentNode;
|
|
65
|
-
getDocumentList: DocumentConnection;
|
|
66
|
-
getThemeDocument: ThemeDocument;
|
|
67
|
-
getThemeList: ThemeConnection;
|
|
68
|
-
getPageDocument: PageDocument;
|
|
69
|
-
getPageList: PageConnection;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
export type QueryGetCollectionArgs = {
|
|
74
|
-
collection?: Maybe<Scalars['String']>;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
export type QueryNodeArgs = {
|
|
79
|
-
id?: Maybe<Scalars['String']>;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
export type QueryGetDocumentArgs = {
|
|
84
|
-
collection?: Maybe<Scalars['String']>;
|
|
85
|
-
relativePath?: Maybe<Scalars['String']>;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
export type QueryGetDocumentListArgs = {
|
|
90
|
-
before?: Maybe<Scalars['String']>;
|
|
91
|
-
after?: Maybe<Scalars['String']>;
|
|
92
|
-
first?: Maybe<Scalars['Int']>;
|
|
93
|
-
last?: Maybe<Scalars['Int']>;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
export type QueryGetThemeDocumentArgs = {
|
|
98
|
-
relativePath?: Maybe<Scalars['String']>;
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
export type QueryGetThemeListArgs = {
|
|
103
|
-
before?: Maybe<Scalars['String']>;
|
|
104
|
-
after?: Maybe<Scalars['String']>;
|
|
105
|
-
first?: Maybe<Scalars['Int']>;
|
|
106
|
-
last?: Maybe<Scalars['Int']>;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
export type QueryGetPageDocumentArgs = {
|
|
111
|
-
relativePath?: Maybe<Scalars['String']>;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
export type QueryGetPageListArgs = {
|
|
116
|
-
before?: Maybe<Scalars['String']>;
|
|
117
|
-
after?: Maybe<Scalars['String']>;
|
|
118
|
-
first?: Maybe<Scalars['Int']>;
|
|
119
|
-
last?: Maybe<Scalars['Int']>;
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
export type DocumentConnectionEdges = {
|
|
123
|
-
__typename?: 'DocumentConnectionEdges';
|
|
124
|
-
cursor?: Maybe<Scalars['String']>;
|
|
125
|
-
node?: Maybe<DocumentNode>;
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
export type DocumentConnection = Connection & {
|
|
129
|
-
__typename?: 'DocumentConnection';
|
|
130
|
-
pageInfo?: Maybe<PageInfo>;
|
|
131
|
-
totalCount: Scalars['Int'];
|
|
132
|
-
edges?: Maybe<Array<Maybe<DocumentConnectionEdges>>>;
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
export type Collection = {
|
|
136
|
-
__typename?: 'Collection';
|
|
137
|
-
name: Scalars['String'];
|
|
138
|
-
slug: Scalars['String'];
|
|
139
|
-
label: Scalars['String'];
|
|
140
|
-
path: Scalars['String'];
|
|
141
|
-
format?: Maybe<Scalars['String']>;
|
|
142
|
-
matches?: Maybe<Scalars['String']>;
|
|
143
|
-
templates?: Maybe<Array<Maybe<Scalars['JSON']>>>;
|
|
144
|
-
fields?: Maybe<Array<Maybe<Scalars['JSON']>>>;
|
|
145
|
-
documents: DocumentConnection;
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
export type CollectionDocumentsArgs = {
|
|
150
|
-
before?: Maybe<Scalars['String']>;
|
|
151
|
-
after?: Maybe<Scalars['String']>;
|
|
152
|
-
first?: Maybe<Scalars['Int']>;
|
|
153
|
-
last?: Maybe<Scalars['Int']>;
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
export type DocumentNode = ThemeDocument | PageDocument;
|
|
157
|
-
|
|
158
|
-
export type Theme = {
|
|
159
|
-
__typename?: 'Theme';
|
|
160
|
-
color?: Maybe<Scalars['String']>;
|
|
161
|
-
btnStyle?: Maybe<Scalars['String']>;
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
export type ThemeDocument = Node & Document & {
|
|
165
|
-
__typename?: 'ThemeDocument';
|
|
166
|
-
id: Scalars['ID'];
|
|
167
|
-
sys: SystemInfo;
|
|
168
|
-
data: Theme;
|
|
169
|
-
form: Scalars['JSON'];
|
|
170
|
-
values: Scalars['JSON'];
|
|
171
|
-
dataJSON: Scalars['JSON'];
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
export type ThemeConnectionEdges = {
|
|
175
|
-
__typename?: 'ThemeConnectionEdges';
|
|
176
|
-
cursor?: Maybe<Scalars['String']>;
|
|
177
|
-
node?: Maybe<ThemeDocument>;
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
export type ThemeConnection = Connection & {
|
|
181
|
-
__typename?: 'ThemeConnection';
|
|
182
|
-
pageInfo?: Maybe<PageInfo>;
|
|
183
|
-
totalCount: Scalars['Int'];
|
|
184
|
-
edges?: Maybe<Array<Maybe<ThemeConnectionEdges>>>;
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
export type PageNavWordmarkIcon = {
|
|
188
|
-
__typename?: 'PageNavWordmarkIcon';
|
|
189
|
-
color?: Maybe<Scalars['String']>;
|
|
190
|
-
name?: Maybe<Scalars['String']>;
|
|
191
|
-
style?: Maybe<Scalars['String']>;
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
export type PageNavWordmark = {
|
|
195
|
-
__typename?: 'PageNavWordmark';
|
|
196
|
-
icon?: Maybe<PageNavWordmarkIcon>;
|
|
197
|
-
name?: Maybe<Scalars['String']>;
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
export type PageNavItems = {
|
|
201
|
-
__typename?: 'PageNavItems';
|
|
202
|
-
label?: Maybe<Scalars['String']>;
|
|
203
|
-
link?: Maybe<Scalars['String']>;
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
export type PageNav = {
|
|
207
|
-
__typename?: 'PageNav';
|
|
208
|
-
wordmark?: Maybe<PageNavWordmark>;
|
|
209
|
-
items?: Maybe<Array<Maybe<PageNavItems>>>;
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
export type PageBlocksHeroString = {
|
|
213
|
-
__typename?: 'PageBlocksHeroString';
|
|
214
|
-
color?: Maybe<Scalars['String']>;
|
|
215
|
-
};
|
|
216
|
-
|
|
217
|
-
export type PageBlocksHeroImage = {
|
|
218
|
-
__typename?: 'PageBlocksHeroImage';
|
|
219
|
-
src?: Maybe<Scalars['String']>;
|
|
220
|
-
alt?: Maybe<Scalars['String']>;
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
export type PageBlocksHeroActions = {
|
|
224
|
-
__typename?: 'PageBlocksHeroActions';
|
|
225
|
-
label?: Maybe<Scalars['String']>;
|
|
226
|
-
type?: Maybe<Scalars['String']>;
|
|
227
|
-
icon?: Maybe<Scalars['Boolean']>;
|
|
228
|
-
};
|
|
229
|
-
|
|
230
|
-
export type PageBlocksHeroStyle = {
|
|
231
|
-
__typename?: 'PageBlocksHeroStyle';
|
|
232
|
-
color?: Maybe<Scalars['String']>;
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
export type PageBlocksHero = {
|
|
236
|
-
__typename?: 'PageBlocksHero';
|
|
237
|
-
tagline?: Maybe<Scalars['String']>;
|
|
238
|
-
headline?: Maybe<Scalars['String']>;
|
|
239
|
-
paragraph?: Maybe<Scalars['String']>;
|
|
240
|
-
string?: Maybe<PageBlocksHeroString>;
|
|
241
|
-
image?: Maybe<PageBlocksHeroImage>;
|
|
242
|
-
actions?: Maybe<Array<Maybe<PageBlocksHeroActions>>>;
|
|
243
|
-
style?: Maybe<PageBlocksHeroStyle>;
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
export type PageBlocksTestimonialStyle = {
|
|
247
|
-
__typename?: 'PageBlocksTestimonialStyle';
|
|
248
|
-
color?: Maybe<Scalars['String']>;
|
|
249
|
-
};
|
|
250
|
-
|
|
251
|
-
export type PageBlocksTestimonial = {
|
|
252
|
-
__typename?: 'PageBlocksTestimonial';
|
|
253
|
-
quote?: Maybe<Scalars['String']>;
|
|
254
|
-
author?: Maybe<Scalars['String']>;
|
|
255
|
-
style?: Maybe<PageBlocksTestimonialStyle>;
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
export type PageBlocksFeaturesItemsIcon = {
|
|
259
|
-
__typename?: 'PageBlocksFeaturesItemsIcon';
|
|
260
|
-
color?: Maybe<Scalars['String']>;
|
|
261
|
-
name?: Maybe<Scalars['String']>;
|
|
262
|
-
style?: Maybe<Scalars['String']>;
|
|
263
|
-
};
|
|
264
|
-
|
|
265
|
-
export type PageBlocksFeaturesItemsActions = {
|
|
266
|
-
__typename?: 'PageBlocksFeaturesItemsActions';
|
|
267
|
-
label?: Maybe<Scalars['String']>;
|
|
268
|
-
type?: Maybe<Scalars['String']>;
|
|
269
|
-
icon?: Maybe<Scalars['Boolean']>;
|
|
270
|
-
};
|
|
271
|
-
|
|
272
|
-
export type PageBlocksFeaturesItems = {
|
|
273
|
-
__typename?: 'PageBlocksFeaturesItems';
|
|
274
|
-
icon?: Maybe<PageBlocksFeaturesItemsIcon>;
|
|
275
|
-
title?: Maybe<Scalars['String']>;
|
|
276
|
-
text?: Maybe<Scalars['String']>;
|
|
277
|
-
actions?: Maybe<Array<Maybe<PageBlocksFeaturesItemsActions>>>;
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
export type PageBlocksFeaturesStyle = {
|
|
281
|
-
__typename?: 'PageBlocksFeaturesStyle';
|
|
282
|
-
color?: Maybe<Scalars['String']>;
|
|
283
|
-
};
|
|
284
|
-
|
|
285
|
-
export type PageBlocksFeatures = {
|
|
286
|
-
__typename?: 'PageBlocksFeatures';
|
|
287
|
-
items?: Maybe<Array<Maybe<PageBlocksFeaturesItems>>>;
|
|
288
|
-
style?: Maybe<PageBlocksFeaturesStyle>;
|
|
289
|
-
};
|
|
290
|
-
|
|
291
|
-
export type PageBlocks = PageBlocksHero | PageBlocksTestimonial | PageBlocksFeatures;
|
|
292
|
-
|
|
293
|
-
export type PageNavlistNavItems = {
|
|
294
|
-
__typename?: 'PageNavlistNavItems';
|
|
295
|
-
label?: Maybe<Scalars['String']>;
|
|
296
|
-
link?: Maybe<Scalars['String']>;
|
|
297
|
-
};
|
|
298
|
-
|
|
299
|
-
export type PageNavlistNav = {
|
|
300
|
-
__typename?: 'PageNavlistNav';
|
|
301
|
-
title?: Maybe<Scalars['String']>;
|
|
302
|
-
items?: Maybe<Array<Maybe<PageNavlistNavItems>>>;
|
|
303
|
-
};
|
|
304
|
-
|
|
305
|
-
export type PageNavlist = PageNavlistNav;
|
|
306
|
-
|
|
307
|
-
export type PageFooterSocial = {
|
|
308
|
-
__typename?: 'PageFooterSocial';
|
|
309
|
-
facebook?: Maybe<Scalars['String']>;
|
|
310
|
-
twitter?: Maybe<Scalars['String']>;
|
|
311
|
-
instagram?: Maybe<Scalars['String']>;
|
|
312
|
-
github?: Maybe<Scalars['String']>;
|
|
313
|
-
};
|
|
314
|
-
|
|
315
|
-
export type PageFooter = {
|
|
316
|
-
__typename?: 'PageFooter';
|
|
317
|
-
social?: Maybe<PageFooterSocial>;
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
export type Page = {
|
|
321
|
-
__typename?: 'Page';
|
|
322
|
-
nav?: Maybe<PageNav>;
|
|
323
|
-
blocks?: Maybe<Array<Maybe<PageBlocks>>>;
|
|
324
|
-
navlist?: Maybe<Array<Maybe<PageNavlist>>>;
|
|
325
|
-
footer?: Maybe<PageFooter>;
|
|
326
|
-
};
|
|
327
|
-
|
|
328
|
-
export type PageDocument = Node & Document & {
|
|
329
|
-
__typename?: 'PageDocument';
|
|
330
|
-
id: Scalars['ID'];
|
|
331
|
-
sys: SystemInfo;
|
|
332
|
-
data: Page;
|
|
333
|
-
form: Scalars['JSON'];
|
|
334
|
-
values: Scalars['JSON'];
|
|
335
|
-
dataJSON: Scalars['JSON'];
|
|
336
|
-
};
|
|
337
|
-
|
|
338
|
-
export type PageConnectionEdges = {
|
|
339
|
-
__typename?: 'PageConnectionEdges';
|
|
340
|
-
cursor?: Maybe<Scalars['String']>;
|
|
341
|
-
node?: Maybe<PageDocument>;
|
|
342
|
-
};
|
|
343
|
-
|
|
344
|
-
export type PageConnection = Connection & {
|
|
345
|
-
__typename?: 'PageConnection';
|
|
346
|
-
pageInfo?: Maybe<PageInfo>;
|
|
347
|
-
totalCount: Scalars['Int'];
|
|
348
|
-
edges?: Maybe<Array<Maybe<PageConnectionEdges>>>;
|
|
349
|
-
};
|
|
350
|
-
|
|
351
|
-
export type Mutation = {
|
|
352
|
-
__typename?: 'Mutation';
|
|
353
|
-
addPendingDocument: DocumentNode;
|
|
354
|
-
updateDocument: DocumentNode;
|
|
355
|
-
updateThemeDocument: ThemeDocument;
|
|
356
|
-
updatePageDocument: PageDocument;
|
|
357
|
-
};
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
export type MutationAddPendingDocumentArgs = {
|
|
361
|
-
collection: Scalars['String'];
|
|
362
|
-
relativePath: Scalars['String'];
|
|
363
|
-
template?: Maybe<Scalars['String']>;
|
|
364
|
-
};
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
export type MutationUpdateDocumentArgs = {
|
|
368
|
-
collection: Scalars['String'];
|
|
369
|
-
relativePath: Scalars['String'];
|
|
370
|
-
params: DocumentMutation;
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
export type MutationUpdateThemeDocumentArgs = {
|
|
375
|
-
relativePath: Scalars['String'];
|
|
376
|
-
params: ThemeMutation;
|
|
377
|
-
};
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
export type MutationUpdatePageDocumentArgs = {
|
|
381
|
-
relativePath: Scalars['String'];
|
|
382
|
-
params: PageMutation;
|
|
383
|
-
};
|
|
384
|
-
|
|
385
|
-
export type DocumentMutation = {
|
|
386
|
-
theme?: Maybe<ThemeMutation>;
|
|
387
|
-
page?: Maybe<PageMutation>;
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
export type ThemeMutation = {
|
|
391
|
-
color?: Maybe<Scalars['String']>;
|
|
392
|
-
btnStyle?: Maybe<Scalars['String']>;
|
|
393
|
-
};
|
|
394
|
-
|
|
395
|
-
export type PageNavWordmarkIconMutation = {
|
|
396
|
-
color?: Maybe<Scalars['String']>;
|
|
397
|
-
name?: Maybe<Scalars['String']>;
|
|
398
|
-
style?: Maybe<Scalars['String']>;
|
|
399
|
-
};
|
|
400
|
-
|
|
401
|
-
export type PageNavWordmarkMutation = {
|
|
402
|
-
icon?: Maybe<PageNavWordmarkIconMutation>;
|
|
403
|
-
name?: Maybe<Scalars['String']>;
|
|
404
|
-
};
|
|
405
|
-
|
|
406
|
-
export type PageNavItemsMutation = {
|
|
407
|
-
label?: Maybe<Scalars['String']>;
|
|
408
|
-
link?: Maybe<Scalars['String']>;
|
|
409
|
-
};
|
|
410
|
-
|
|
411
|
-
export type PageNavMutation = {
|
|
412
|
-
wordmark?: Maybe<PageNavWordmarkMutation>;
|
|
413
|
-
items?: Maybe<Array<Maybe<PageNavItemsMutation>>>;
|
|
414
|
-
};
|
|
415
|
-
|
|
416
|
-
export type PageBlocksHeroStringMutation = {
|
|
417
|
-
color?: Maybe<Scalars['String']>;
|
|
418
|
-
};
|
|
419
|
-
|
|
420
|
-
export type PageBlocksHeroImageMutation = {
|
|
421
|
-
src?: Maybe<Scalars['String']>;
|
|
422
|
-
alt?: Maybe<Scalars['String']>;
|
|
423
|
-
};
|
|
424
|
-
|
|
425
|
-
export type PageBlocksHeroActionsMutation = {
|
|
426
|
-
label?: Maybe<Scalars['String']>;
|
|
427
|
-
type?: Maybe<Scalars['String']>;
|
|
428
|
-
icon?: Maybe<Scalars['Boolean']>;
|
|
429
|
-
};
|
|
430
|
-
|
|
431
|
-
export type PageBlocksHeroStyleMutation = {
|
|
432
|
-
color?: Maybe<Scalars['String']>;
|
|
433
|
-
};
|
|
434
|
-
|
|
435
|
-
export type PageBlocksHeroMutation = {
|
|
436
|
-
tagline?: Maybe<Scalars['String']>;
|
|
437
|
-
headline?: Maybe<Scalars['String']>;
|
|
438
|
-
paragraph?: Maybe<Scalars['String']>;
|
|
439
|
-
string?: Maybe<PageBlocksHeroStringMutation>;
|
|
440
|
-
image?: Maybe<PageBlocksHeroImageMutation>;
|
|
441
|
-
actions?: Maybe<Array<Maybe<PageBlocksHeroActionsMutation>>>;
|
|
442
|
-
style?: Maybe<PageBlocksHeroStyleMutation>;
|
|
443
|
-
};
|
|
444
|
-
|
|
445
|
-
export type PageBlocksTestimonialStyleMutation = {
|
|
446
|
-
color?: Maybe<Scalars['String']>;
|
|
447
|
-
};
|
|
448
|
-
|
|
449
|
-
export type PageBlocksTestimonialMutation = {
|
|
450
|
-
quote?: Maybe<Scalars['String']>;
|
|
451
|
-
author?: Maybe<Scalars['String']>;
|
|
452
|
-
style?: Maybe<PageBlocksTestimonialStyleMutation>;
|
|
453
|
-
};
|
|
454
|
-
|
|
455
|
-
export type PageBlocksFeaturesItemsIconMutation = {
|
|
456
|
-
color?: Maybe<Scalars['String']>;
|
|
457
|
-
name?: Maybe<Scalars['String']>;
|
|
458
|
-
style?: Maybe<Scalars['String']>;
|
|
459
|
-
};
|
|
460
|
-
|
|
461
|
-
export type PageBlocksFeaturesItemsActionsMutation = {
|
|
462
|
-
label?: Maybe<Scalars['String']>;
|
|
463
|
-
type?: Maybe<Scalars['String']>;
|
|
464
|
-
icon?: Maybe<Scalars['Boolean']>;
|
|
465
|
-
};
|
|
466
|
-
|
|
467
|
-
export type PageBlocksFeaturesItemsMutation = {
|
|
468
|
-
icon?: Maybe<PageBlocksFeaturesItemsIconMutation>;
|
|
469
|
-
title?: Maybe<Scalars['String']>;
|
|
470
|
-
text?: Maybe<Scalars['String']>;
|
|
471
|
-
actions?: Maybe<Array<Maybe<PageBlocksFeaturesItemsActionsMutation>>>;
|
|
472
|
-
};
|
|
473
|
-
|
|
474
|
-
export type PageBlocksFeaturesStyleMutation = {
|
|
475
|
-
color?: Maybe<Scalars['String']>;
|
|
476
|
-
};
|
|
477
|
-
|
|
478
|
-
export type PageBlocksFeaturesMutation = {
|
|
479
|
-
items?: Maybe<Array<Maybe<PageBlocksFeaturesItemsMutation>>>;
|
|
480
|
-
style?: Maybe<PageBlocksFeaturesStyleMutation>;
|
|
481
|
-
};
|
|
482
|
-
|
|
483
|
-
export type PageBlocksMutation = {
|
|
484
|
-
hero?: Maybe<PageBlocksHeroMutation>;
|
|
485
|
-
testimonial?: Maybe<PageBlocksTestimonialMutation>;
|
|
486
|
-
features?: Maybe<PageBlocksFeaturesMutation>;
|
|
487
|
-
};
|
|
488
|
-
|
|
489
|
-
export type PageNavlistNavItemsMutation = {
|
|
490
|
-
label?: Maybe<Scalars['String']>;
|
|
491
|
-
link?: Maybe<Scalars['String']>;
|
|
492
|
-
};
|
|
493
|
-
|
|
494
|
-
export type PageNavlistNavMutation = {
|
|
495
|
-
title?: Maybe<Scalars['String']>;
|
|
496
|
-
items?: Maybe<Array<Maybe<PageNavlistNavItemsMutation>>>;
|
|
497
|
-
};
|
|
498
|
-
|
|
499
|
-
export type PageNavlistMutation = {
|
|
500
|
-
nav?: Maybe<PageNavlistNavMutation>;
|
|
501
|
-
};
|
|
502
|
-
|
|
503
|
-
export type PageFooterSocialMutation = {
|
|
504
|
-
facebook?: Maybe<Scalars['String']>;
|
|
505
|
-
twitter?: Maybe<Scalars['String']>;
|
|
506
|
-
instagram?: Maybe<Scalars['String']>;
|
|
507
|
-
github?: Maybe<Scalars['String']>;
|
|
508
|
-
};
|
|
509
|
-
|
|
510
|
-
export type PageFooterMutation = {
|
|
511
|
-
social?: Maybe<PageFooterSocialMutation>;
|
|
512
|
-
};
|
|
513
|
-
|
|
514
|
-
export type PageMutation = {
|
|
515
|
-
nav?: Maybe<PageNavMutation>;
|
|
516
|
-
blocks?: Maybe<Array<Maybe<PageBlocksMutation>>>;
|
|
517
|
-
navlist?: Maybe<Array<Maybe<PageNavlistMutation>>>;
|
|
518
|
-
footer?: Maybe<PageFooterMutation>;
|
|
519
|
-
};
|
|
520
|
-
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Copyright 2021 Forestry.io Holdings, Inc.
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
you may not use this file except in compliance with the License.
|
|
5
|
-
You may obtain a copy of the License at
|
|
6
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software
|
|
8
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
9
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
10
|
-
See the License for the specific language governing permissions and
|
|
11
|
-
limitations under the License.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import { defineSchema } from '@tinacms/cli'
|
|
15
|
-
import { PageTemplate } from './PageTemplate'
|
|
16
|
-
import { ThemeTemplate } from './ThemeTemplate'
|
|
17
|
-
|
|
18
|
-
export default defineSchema({
|
|
19
|
-
collections: [
|
|
20
|
-
{
|
|
21
|
-
label: 'Theme',
|
|
22
|
-
name: 'theme',
|
|
23
|
-
path: 'content/theme',
|
|
24
|
-
format: 'json',
|
|
25
|
-
fields: ThemeTemplate.fields,
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
label: 'Pages',
|
|
29
|
-
name: 'page',
|
|
30
|
-
path: 'content/data',
|
|
31
|
-
format: 'json',
|
|
32
|
-
fields: PageTemplate.fields,
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
})
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
# tina-tailwind-sidebar-demo
|
|
2
|
-
|
|
3
|
-
## 0.1.11
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- react-tinacms-editor@0.52.4
|
|
8
|
-
- react-tinacms-inline@0.53.4
|
|
9
|
-
- tinacms@0.57.3
|
|
10
|
-
|
|
11
|
-
## 0.1.10
|
|
12
|
-
|
|
13
|
-
### Patch Changes
|
|
14
|
-
|
|
15
|
-
- Updated dependencies [7849c1233]
|
|
16
|
-
- tinacms@0.57.2
|
|
17
|
-
|
|
18
|
-
## 0.1.9
|
|
19
|
-
|
|
20
|
-
### Patch Changes
|
|
21
|
-
|
|
22
|
-
- Updated dependencies [9c0d48e09]
|
|
23
|
-
- tinacms@0.57.1
|
|
24
|
-
- react-tinacms-editor@0.52.3
|
|
25
|
-
- react-tinacms-inline@0.53.3
|
|
26
|
-
|
|
27
|
-
## 0.1.8
|
|
28
|
-
|
|
29
|
-
### Patch Changes
|
|
30
|
-
|
|
31
|
-
- b99baebf1: Add rich-text editor based on mdx, bump React dependency requirement to 16.14
|
|
32
|
-
- Updated dependencies [891623c7c]
|
|
33
|
-
- Updated dependencies [b99baebf1]
|
|
34
|
-
- Updated dependencies [d5e3adf37]
|
|
35
|
-
- tinacms@0.57.0
|
|
36
|
-
- react-tinacms-editor@0.52.2
|
|
37
|
-
- react-tinacms-inline@0.53.2
|
|
38
|
-
|
|
39
|
-
## 0.1.7
|
|
40
|
-
|
|
41
|
-
### Patch Changes
|
|
42
|
-
|
|
43
|
-
- Updated dependencies [67df49220]
|
|
44
|
-
- tinacms@0.56.3
|
|
45
|
-
- react-tinacms-editor@0.52.1
|
|
46
|
-
- react-tinacms-inline@0.53.1
|
|
47
|
-
|
|
48
|
-
## 0.1.6
|
|
49
|
-
|
|
50
|
-
### Patch Changes
|
|
51
|
-
|
|
52
|
-
- Updated dependencies [84a86358f]
|
|
53
|
-
- tinacms@0.56.2
|
|
54
|
-
|
|
55
|
-
## 0.1.5
|
|
56
|
-
|
|
57
|
-
### Patch Changes
|
|
58
|
-
|
|
59
|
-
- Updated dependencies [a05aa61bd]
|
|
60
|
-
- tinacms@0.56.1
|
|
61
|
-
|
|
62
|
-
## 0.1.4
|
|
63
|
-
|
|
64
|
-
### Patch Changes
|
|
65
|
-
|
|
66
|
-
- Updated dependencies [b59f23295]
|
|
67
|
-
- Updated dependencies [2908f8176]
|
|
68
|
-
- Updated dependencies [08ef183a0]
|
|
69
|
-
- Updated dependencies [c6e2dd69a]
|
|
70
|
-
- Updated dependencies [5df9fe543]
|
|
71
|
-
- Updated dependencies [3f9cad860]
|
|
72
|
-
- Updated dependencies [aa714b1fb]
|
|
73
|
-
- react-tinacms-editor@0.52.0
|
|
74
|
-
- react-tinacms-inline@0.53.0
|
|
75
|
-
- tinacms@0.56.0
|
|
76
|
-
|
|
77
|
-
## 0.1.3
|
|
78
|
-
|
|
79
|
-
### Patch Changes
|
|
80
|
-
|
|
81
|
-
- Updated dependencies [96ee3eb1]
|
|
82
|
-
- tina-graphql-gateway@0.3.0
|
|
83
|
-
|
|
84
|
-
## 0.1.2
|
|
85
|
-
|
|
86
|
-
### Patch Changes
|
|
87
|
-
|
|
88
|
-
- Updated dependencies [undefined]
|
|
89
|
-
- tina-graphql-gateway@0.2.23
|
|
90
|
-
|
|
91
|
-
## 0.1.1
|
|
92
|
-
|
|
93
|
-
### Patch Changes
|
|
94
|
-
|
|
95
|
-
- tina-graphql-gateway@0.2.22
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# Tina + Tailwind + Next.js Demo Project
|
|
2
|
-
|
|
3
|
-
## A demo built with [Tina](https://github.com/tinacms/tinacms), [Tailwind CSS](https://github.com/tailwindlabs/tailwindcss), and [Next.js](https://github.com/vercel/next.js/).
|
|
4
|
-
|
|
5
|
-
- 🖋️ Edit everything through an easy to navigate sidebar
|
|
6
|
-
- 🦉 Support for dark mode with a mode toggle in the navbar.
|
|
7
|
-
- 📓 Use as a reference or jumping off point for your own projects.
|
|
8
|
-
- 🖼️ Demo image [from Unsplash](https://unsplash.com/photos/3SfRHVfivdA)
|
|
9
|
-
|
|
10
|
-
> Editing is enabled by default and saving will prompt you with the raw _JSON_ and a link to the docs. You can disable editing by editing the `tinaOptions` object inside `index.js`. To learn how to work with a backend, [check out our docs](https://tina.io/docs/getting-started/backends/).
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { PageBlocks } from '../.tina/__generated__/types'
|
|
2
|
-
import { Features } from './features'
|
|
3
|
-
import { Hero } from './hero'
|
|
4
|
-
import { Testimonial } from './testimonial'
|
|
5
|
-
|
|
6
|
-
export const Blocks: React.FC<{
|
|
7
|
-
blocksData: PageBlocks[]
|
|
8
|
-
placeholder: JSX.Element
|
|
9
|
-
}> = ({ blocksData, placeholder }) => {
|
|
10
|
-
if (!blocksData || blocksData.length < 1) return placeholder
|
|
11
|
-
return (
|
|
12
|
-
<>
|
|
13
|
-
{blocksData.map((block, i) => {
|
|
14
|
-
switch (block.__typename) {
|
|
15
|
-
case 'PageBlocksFeatures':
|
|
16
|
-
return <Features key={i} {...block} />
|
|
17
|
-
case 'PageBlocksHero':
|
|
18
|
-
return <Hero key={i} {...block} />
|
|
19
|
-
case 'PageBlocksTestimonial':
|
|
20
|
-
return <Testimonial key={i} {...block} />
|
|
21
|
-
}
|
|
22
|
-
})}
|
|
23
|
-
</>
|
|
24
|
-
)
|
|
25
|
-
}
|