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,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
Apache License
|
|
2
2
|
Version 2.0, January 2004
|
|
3
3
|
http://www.apache.org/licenses/
|
|
4
4
|
|
|
@@ -174,28 +174,3 @@
|
|
|
174
174
|
of your accepting any such warranty or additional liability.
|
|
175
175
|
|
|
176
176
|
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright [yyyy] [name of copyright owner]
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|
package/dist/index.js
CHANGED
|
@@ -39,7 +39,7 @@ var __toModule = (module2) => {
|
|
|
39
39
|
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
//
|
|
42
|
+
// src/index.ts
|
|
43
43
|
__export(exports, {
|
|
44
44
|
run: () => run
|
|
45
45
|
});
|
|
@@ -48,11 +48,11 @@ var import_commander = __toModule(require("commander"));
|
|
|
48
48
|
var import_prompts = __toModule(require("prompts"));
|
|
49
49
|
var import_path4 = __toModule(require("path"));
|
|
50
50
|
|
|
51
|
-
//
|
|
51
|
+
// package.json
|
|
52
52
|
var name = "create-tina-app";
|
|
53
|
-
var version = "0.1.
|
|
53
|
+
var version = "0.1.7";
|
|
54
54
|
|
|
55
|
-
//
|
|
55
|
+
// src/util/fileUtil.ts
|
|
56
56
|
var import_fs = __toModule(require("fs"));
|
|
57
57
|
var import_path = __toModule(require("path"));
|
|
58
58
|
var import_chalk = __toModule(require("chalk"));
|
|
@@ -112,7 +112,7 @@ function isFolderEmpty(root, name2) {
|
|
|
112
112
|
return true;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
//
|
|
115
|
+
// src/util/install.ts
|
|
116
116
|
var import_chalk2 = __toModule(require("chalk"));
|
|
117
117
|
var import_cross_spawn = __toModule(require("cross-spawn"));
|
|
118
118
|
function install(root, dependencies, { useYarn, isOnline, devDependencies }) {
|
|
@@ -170,10 +170,10 @@ function install(root, dependencies, { useYarn, isOnline, devDependencies }) {
|
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
//
|
|
173
|
+
// src/index.ts
|
|
174
174
|
var import_chalk5 = __toModule(require("chalk"));
|
|
175
175
|
|
|
176
|
-
//
|
|
176
|
+
// src/util/git.ts
|
|
177
177
|
var import_child_process = __toModule(require("child_process"));
|
|
178
178
|
var import_path2 = __toModule(require("path"));
|
|
179
179
|
var import_rimraf = __toModule(require("rimraf"));
|
|
@@ -230,10 +230,10 @@ function tryGitInit(root) {
|
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
//
|
|
233
|
+
// src/index.ts
|
|
234
234
|
var import_process = __toModule(require("process"));
|
|
235
235
|
|
|
236
|
-
//
|
|
236
|
+
// src/util/examples.ts
|
|
237
237
|
var import_got = __toModule(require("got"));
|
|
238
238
|
var import_stream = __toModule(require("stream"));
|
|
239
239
|
var import_util = __toModule(require("util"));
|
|
@@ -259,7 +259,7 @@ function downloadAndExtractRepo(root, { username, name: name2, branch, filePath
|
|
|
259
259
|
return pipeline(import_got.default.stream(`https://codeload.github.com/${username}/${name2}/tar.gz/${branch}`), import_tar.default.extract({ cwd: root, strip: filePath ? filePath.split("/").length + 1 : 1 }, [`${name2}-${branch}${filePath ? `/${filePath}` : ""}`]));
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
//
|
|
262
|
+
// src/examples.ts
|
|
263
263
|
var import_chalk4 = __toModule(require("chalk"));
|
|
264
264
|
var import_fs_extra2 = __toModule(require("fs-extra"));
|
|
265
265
|
var import_path3 = __toModule(require("path"));
|
|
@@ -296,13 +296,21 @@ var downloadExample = async (example, root) => {
|
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
298
|
|
|
299
|
-
//
|
|
299
|
+
// src/util/preRunChecks.ts
|
|
300
|
+
var preRunChecks = () => {
|
|
301
|
+
if (process.version.startsWith("v15")) {
|
|
302
|
+
console.warn("WARNING: Version 15 of Node.js is not supported in create-tina-app, please update to the latest LTS version. See https://nodejs.org/en/download/ for more details");
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
// src/index.ts
|
|
300
307
|
var program = new import_commander.Command(name);
|
|
301
308
|
var projectName = "";
|
|
302
309
|
program.version(version).option("-e, --example <example>", "Choose which example to start from").option("-d, --dir <dir>", "Choose which directory to run this script from").option("--noTelemetry", "Disable anonymous telemetry that is collected").arguments("[project-directory]").usage(`${import_chalk5.default.green("<project-directory>")} [options]`).action((name2) => {
|
|
303
310
|
projectName = name2;
|
|
304
311
|
});
|
|
305
312
|
var run = async () => {
|
|
313
|
+
preRunChecks();
|
|
306
314
|
program.parse(process.argv);
|
|
307
315
|
const opts = program.opts();
|
|
308
316
|
if (opts.dir) {
|
|
@@ -10,6 +10,4 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
10
10
|
See the License for the specific language governing permissions and
|
|
11
11
|
limitations under the License.
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
|
-
/// <reference types="next" />
|
|
15
|
-
/// <reference types="next/types/global" />
|
|
13
|
+
export declare const preRunChecks: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-tina-app",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -18,11 +18,6 @@
|
|
|
18
18
|
}
|
|
19
19
|
]
|
|
20
20
|
},
|
|
21
|
-
"scripts": {
|
|
22
|
-
"types": "yarn tsc",
|
|
23
|
-
"build": "echo \"Run `yarn build` from the root of the repository instead\"",
|
|
24
|
-
"test-run-bin": "yarn create-tina-app"
|
|
25
|
-
},
|
|
26
21
|
"publishConfig": {
|
|
27
22
|
"registry": "https://registry.npmjs.org"
|
|
28
23
|
},
|
|
@@ -31,22 +26,28 @@
|
|
|
31
26
|
"directory": "packages/create-tina-app"
|
|
32
27
|
},
|
|
33
28
|
"devDependencies": {
|
|
29
|
+
"@tinacms/scripts": "0.51.1",
|
|
34
30
|
"@types/fs-extra": "^9.0.13",
|
|
35
31
|
"@types/node": "^16.11.7",
|
|
36
32
|
"@types/prompts": "^2.0.14",
|
|
37
33
|
"@types/tar": "4.0.3",
|
|
38
|
-
"typescript": "
|
|
34
|
+
"typescript": "4.3.5"
|
|
39
35
|
},
|
|
40
36
|
"dependencies": {
|
|
41
|
-
"@tinacms/metrics": "0.0.
|
|
37
|
+
"@tinacms/metrics": "0.0.3",
|
|
42
38
|
"chalk": "^4.1.2",
|
|
43
39
|
"commander": "^8.3.0",
|
|
44
40
|
"cross-spawn": "^7.0.3",
|
|
45
41
|
"esm": "3.2.25",
|
|
46
42
|
"fs-extra": "^10.0.0",
|
|
47
|
-
"got": "^11.8.
|
|
43
|
+
"got": "^11.8.5",
|
|
48
44
|
"prompts": "^2.4.2",
|
|
49
45
|
"rimraf": "^3.0.2",
|
|
50
|
-
"tar": "4.4.
|
|
46
|
+
"tar": "4.4.18"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"types": "pnpm tsc",
|
|
50
|
+
"build": "tinacms-scripts build",
|
|
51
|
+
"test-run-bin": "yarn create-tina-app"
|
|
51
52
|
}
|
|
52
53
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# create-tina-app
|
|
2
|
-
|
|
3
|
-
## 0.1.4
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- a05546eb4: Added basic open source telemetry
|
|
8
|
-
|
|
9
|
-
See [this discussion](https://github.com/tinacms/tinacms/discussions/2451) for more information and how to opt out.
|
|
10
|
-
|
|
11
|
-
- Updated dependencies [8bf0ac832]
|
|
12
|
-
- Updated dependencies [a05546eb4]
|
|
13
|
-
- @tinacms/metrics@0.0.2
|
|
14
|
-
|
|
15
|
-
## 0.1.3
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
- d0ac25b73: Update link for bare bones starter
|
|
20
|
-
|
|
21
|
-
## 0.1.2
|
|
22
|
-
|
|
23
|
-
### Patch Changes
|
|
24
|
-
|
|
25
|
-
- 371fc73dd: remove tailwind site builder from list of starters
|
|
26
|
-
|
|
27
|
-
## 0.1.1
|
|
28
|
-
|
|
29
|
-
### Patch Changes
|
|
30
|
-
|
|
31
|
-
- 127b0ae5d: Use the github URL instead of the local copy
|
|
32
|
-
- 10a36f3a0: Fix issue where startup time was very slow
|
|
33
|
-
|
|
34
|
-
## 0.1.0
|
|
35
|
-
|
|
36
|
-
### Minor Changes
|
|
37
|
-
|
|
38
|
-
- e792dd0fd: Added basic Create Tina App
|
|
@@ -1,427 +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 { TinaTemplate } from '@tinacms/cli'
|
|
15
|
-
|
|
16
|
-
export const PageTemplate: TinaTemplate = {
|
|
17
|
-
name: 'homepage',
|
|
18
|
-
label: 'Homepage',
|
|
19
|
-
fields: [
|
|
20
|
-
{
|
|
21
|
-
name: 'nav',
|
|
22
|
-
type: 'object',
|
|
23
|
-
label: 'Navbar',
|
|
24
|
-
fields: [
|
|
25
|
-
{
|
|
26
|
-
label: 'Wordmark',
|
|
27
|
-
name: 'wordmark',
|
|
28
|
-
type: 'object',
|
|
29
|
-
fields: [
|
|
30
|
-
{
|
|
31
|
-
label: 'Icon',
|
|
32
|
-
name: 'icon',
|
|
33
|
-
type: 'object',
|
|
34
|
-
fields: [
|
|
35
|
-
{
|
|
36
|
-
name: 'color',
|
|
37
|
-
label: 'Color',
|
|
38
|
-
type: 'string',
|
|
39
|
-
options: [
|
|
40
|
-
'primary',
|
|
41
|
-
'blue',
|
|
42
|
-
'teal',
|
|
43
|
-
'green',
|
|
44
|
-
'red',
|
|
45
|
-
'pink',
|
|
46
|
-
'purple',
|
|
47
|
-
'orange',
|
|
48
|
-
'yellow',
|
|
49
|
-
],
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
name: 'name',
|
|
53
|
-
label: 'Icon',
|
|
54
|
-
type: 'string',
|
|
55
|
-
options: [
|
|
56
|
-
'random',
|
|
57
|
-
'FiAperture',
|
|
58
|
-
'BiCodeBlock',
|
|
59
|
-
'BiLike',
|
|
60
|
-
'BiMapAlt',
|
|
61
|
-
'BiPalette',
|
|
62
|
-
'BiPieChartAlt2',
|
|
63
|
-
'BiPin',
|
|
64
|
-
'BiShield',
|
|
65
|
-
'BiSlider',
|
|
66
|
-
'BiStore',
|
|
67
|
-
'BiTennisBall',
|
|
68
|
-
'BiTestTube',
|
|
69
|
-
'BiTrophy',
|
|
70
|
-
'BiUserCircle',
|
|
71
|
-
'BiBeer',
|
|
72
|
-
'BiChat',
|
|
73
|
-
'BiCloud',
|
|
74
|
-
'BiCoffeeTogo',
|
|
75
|
-
'BiWorld',
|
|
76
|
-
],
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
name: 'style',
|
|
80
|
-
label: 'Style',
|
|
81
|
-
type: 'string',
|
|
82
|
-
options: ['circle', 'float'],
|
|
83
|
-
},
|
|
84
|
-
],
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
label: 'Name',
|
|
88
|
-
name: 'name',
|
|
89
|
-
type: 'string',
|
|
90
|
-
},
|
|
91
|
-
],
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
label: 'Nav Items',
|
|
95
|
-
name: 'items',
|
|
96
|
-
type: 'object',
|
|
97
|
-
list: true,
|
|
98
|
-
fields: [
|
|
99
|
-
{
|
|
100
|
-
label: 'Label',
|
|
101
|
-
name: 'label',
|
|
102
|
-
type: 'string',
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
label: 'Link',
|
|
106
|
-
name: 'link',
|
|
107
|
-
type: 'string',
|
|
108
|
-
},
|
|
109
|
-
],
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
name: 'blocks',
|
|
115
|
-
type: 'object',
|
|
116
|
-
label: 'Page Sections',
|
|
117
|
-
list: true,
|
|
118
|
-
templates: [
|
|
119
|
-
{
|
|
120
|
-
name: 'hero',
|
|
121
|
-
label: 'Hero',
|
|
122
|
-
fields: [
|
|
123
|
-
{
|
|
124
|
-
name: 'tagline',
|
|
125
|
-
label: 'Tagline',
|
|
126
|
-
type: 'string',
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
name: 'headline',
|
|
130
|
-
label: 'Headline',
|
|
131
|
-
type: 'string',
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
name: 'paragraph',
|
|
135
|
-
label: 'Paragraph',
|
|
136
|
-
type: 'string',
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
name: 'string',
|
|
140
|
-
label: 'Text',
|
|
141
|
-
type: 'object',
|
|
142
|
-
fields: [
|
|
143
|
-
{
|
|
144
|
-
name: 'color',
|
|
145
|
-
label: 'Color',
|
|
146
|
-
type: 'string',
|
|
147
|
-
options: ['default', 'tint', 'primary'],
|
|
148
|
-
},
|
|
149
|
-
],
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
name: 'image',
|
|
153
|
-
label: 'Image',
|
|
154
|
-
type: 'object',
|
|
155
|
-
fields: [
|
|
156
|
-
{
|
|
157
|
-
name: 'src',
|
|
158
|
-
label: 'Image Source',
|
|
159
|
-
type: 'string',
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
name: 'alt',
|
|
163
|
-
label: 'Alt Text',
|
|
164
|
-
type: 'string',
|
|
165
|
-
},
|
|
166
|
-
],
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
label: 'Actions',
|
|
170
|
-
name: 'actions',
|
|
171
|
-
type: 'object',
|
|
172
|
-
list: true,
|
|
173
|
-
fields: [
|
|
174
|
-
{
|
|
175
|
-
label: 'Label',
|
|
176
|
-
name: 'label',
|
|
177
|
-
type: 'string',
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
label: 'Type',
|
|
181
|
-
name: 'type',
|
|
182
|
-
type: 'string',
|
|
183
|
-
options: ['button', 'link'],
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
label: 'Icon',
|
|
187
|
-
name: 'icon',
|
|
188
|
-
type: 'boolean',
|
|
189
|
-
},
|
|
190
|
-
],
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
name: 'style',
|
|
194
|
-
label: 'Style',
|
|
195
|
-
type: 'object',
|
|
196
|
-
fields: [
|
|
197
|
-
{
|
|
198
|
-
name: 'color',
|
|
199
|
-
label: 'Color',
|
|
200
|
-
type: 'string',
|
|
201
|
-
options: ['default', 'tint', 'primary'],
|
|
202
|
-
},
|
|
203
|
-
],
|
|
204
|
-
},
|
|
205
|
-
],
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
name: 'testimonial',
|
|
209
|
-
label: 'Testimonial',
|
|
210
|
-
fields: [
|
|
211
|
-
{
|
|
212
|
-
name: 'quote',
|
|
213
|
-
label: 'Quote',
|
|
214
|
-
type: 'string',
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
name: 'author',
|
|
218
|
-
label: 'Author',
|
|
219
|
-
type: 'string',
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
name: 'style',
|
|
223
|
-
label: 'Style',
|
|
224
|
-
type: 'object',
|
|
225
|
-
fields: [
|
|
226
|
-
{
|
|
227
|
-
name: 'color',
|
|
228
|
-
label: 'Color',
|
|
229
|
-
type: 'string',
|
|
230
|
-
options: ['default', 'tint', 'primary'],
|
|
231
|
-
},
|
|
232
|
-
],
|
|
233
|
-
},
|
|
234
|
-
],
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
name: 'features',
|
|
238
|
-
label: 'Features',
|
|
239
|
-
fields: [
|
|
240
|
-
{
|
|
241
|
-
label: 'Features',
|
|
242
|
-
name: 'items',
|
|
243
|
-
type: 'object',
|
|
244
|
-
list: true,
|
|
245
|
-
fields: [
|
|
246
|
-
{
|
|
247
|
-
label: 'Icon',
|
|
248
|
-
name: 'icon',
|
|
249
|
-
type: 'object',
|
|
250
|
-
fields: [
|
|
251
|
-
{
|
|
252
|
-
name: 'color',
|
|
253
|
-
label: 'Color',
|
|
254
|
-
type: 'string',
|
|
255
|
-
options: [
|
|
256
|
-
'primary',
|
|
257
|
-
'blue',
|
|
258
|
-
'teal',
|
|
259
|
-
'green',
|
|
260
|
-
'red',
|
|
261
|
-
'pink',
|
|
262
|
-
'purple',
|
|
263
|
-
'orange',
|
|
264
|
-
'yellow',
|
|
265
|
-
],
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
name: 'name',
|
|
269
|
-
label: 'Icon',
|
|
270
|
-
type: 'string',
|
|
271
|
-
options: [
|
|
272
|
-
'random',
|
|
273
|
-
'Aperture',
|
|
274
|
-
'BiCodeBlock',
|
|
275
|
-
'BiLike',
|
|
276
|
-
'BiMapAlt',
|
|
277
|
-
'BiPalette',
|
|
278
|
-
'BiPieChartAlt2',
|
|
279
|
-
'BiPin',
|
|
280
|
-
'BiShield',
|
|
281
|
-
'BiSlider',
|
|
282
|
-
'BiStore',
|
|
283
|
-
'BiTennisBall',
|
|
284
|
-
'BiTestTube',
|
|
285
|
-
'BiTrophy',
|
|
286
|
-
'BiUserCircle',
|
|
287
|
-
'BiBeer',
|
|
288
|
-
'BiChat',
|
|
289
|
-
'BiCloud',
|
|
290
|
-
'BiCoffeeTogo',
|
|
291
|
-
'BiWorld',
|
|
292
|
-
],
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
name: 'style',
|
|
296
|
-
label: 'Style',
|
|
297
|
-
type: 'string',
|
|
298
|
-
options: ['circle', 'float'],
|
|
299
|
-
},
|
|
300
|
-
],
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
name: 'title',
|
|
304
|
-
label: 'Title',
|
|
305
|
-
type: 'string',
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
name: 'text',
|
|
309
|
-
label: 'Text',
|
|
310
|
-
type: 'string',
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
label: 'Actions',
|
|
314
|
-
name: 'actions',
|
|
315
|
-
type: 'object',
|
|
316
|
-
list: true,
|
|
317
|
-
fields: [
|
|
318
|
-
{
|
|
319
|
-
label: 'Label',
|
|
320
|
-
name: 'label',
|
|
321
|
-
type: 'string',
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
label: 'Type',
|
|
325
|
-
name: 'type',
|
|
326
|
-
type: 'string',
|
|
327
|
-
options: ['button', 'link'],
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
label: 'Icon',
|
|
331
|
-
name: 'icon',
|
|
332
|
-
type: 'boolean',
|
|
333
|
-
},
|
|
334
|
-
],
|
|
335
|
-
},
|
|
336
|
-
],
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
name: 'style',
|
|
340
|
-
label: 'Style',
|
|
341
|
-
type: 'object',
|
|
342
|
-
fields: [
|
|
343
|
-
{
|
|
344
|
-
name: 'color',
|
|
345
|
-
label: 'Color',
|
|
346
|
-
type: 'string',
|
|
347
|
-
options: ['default', 'tint', 'primary'],
|
|
348
|
-
},
|
|
349
|
-
],
|
|
350
|
-
},
|
|
351
|
-
],
|
|
352
|
-
},
|
|
353
|
-
],
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
label: 'Nav List',
|
|
357
|
-
name: 'navlist',
|
|
358
|
-
type: 'object',
|
|
359
|
-
list: true,
|
|
360
|
-
templates: [
|
|
361
|
-
{
|
|
362
|
-
name: 'nav',
|
|
363
|
-
label: 'Foooter nav',
|
|
364
|
-
fields: [
|
|
365
|
-
{
|
|
366
|
-
name: 'title',
|
|
367
|
-
label: 'Title',
|
|
368
|
-
type: 'string',
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
name: 'items',
|
|
372
|
-
label: 'Nav Items',
|
|
373
|
-
type: 'object',
|
|
374
|
-
list: true,
|
|
375
|
-
fields: [
|
|
376
|
-
{
|
|
377
|
-
name: 'label',
|
|
378
|
-
label: 'Label',
|
|
379
|
-
type: 'string',
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
name: 'link',
|
|
383
|
-
label: 'Link',
|
|
384
|
-
type: 'string',
|
|
385
|
-
},
|
|
386
|
-
],
|
|
387
|
-
},
|
|
388
|
-
],
|
|
389
|
-
},
|
|
390
|
-
],
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
name: 'footer',
|
|
394
|
-
label: 'Footer',
|
|
395
|
-
type: 'object',
|
|
396
|
-
fields: [
|
|
397
|
-
{
|
|
398
|
-
name: 'social',
|
|
399
|
-
label: 'Social Media',
|
|
400
|
-
type: 'object',
|
|
401
|
-
fields: [
|
|
402
|
-
{
|
|
403
|
-
name: 'facebook',
|
|
404
|
-
label: 'Facebook',
|
|
405
|
-
type: 'string',
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
name: 'twitter',
|
|
409
|
-
label: 'Twitter',
|
|
410
|
-
type: 'string',
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
name: 'instagram',
|
|
414
|
-
label: 'Instagram',
|
|
415
|
-
type: 'string',
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
name: 'github',
|
|
419
|
-
label: 'Github',
|
|
420
|
-
type: 'string',
|
|
421
|
-
},
|
|
422
|
-
],
|
|
423
|
-
},
|
|
424
|
-
],
|
|
425
|
-
},
|
|
426
|
-
],
|
|
427
|
-
}
|
|
@@ -1,42 +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 { TinaTemplate } from '@tinacms/cli'
|
|
15
|
-
|
|
16
|
-
export const ThemeTemplate: TinaTemplate = {
|
|
17
|
-
name: 'theme',
|
|
18
|
-
label: 'Theme',
|
|
19
|
-
fields: [
|
|
20
|
-
{
|
|
21
|
-
name: 'color',
|
|
22
|
-
label: 'Primary Color',
|
|
23
|
-
type: 'string',
|
|
24
|
-
options: [
|
|
25
|
-
'blue',
|
|
26
|
-
'teal',
|
|
27
|
-
'green',
|
|
28
|
-
'red',
|
|
29
|
-
'pink',
|
|
30
|
-
'purple',
|
|
31
|
-
'orange',
|
|
32
|
-
'yellow',
|
|
33
|
-
],
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
name: 'btnStyle',
|
|
37
|
-
label: 'Button Style',
|
|
38
|
-
type: 'string',
|
|
39
|
-
options: ['round', 'rounded', 'square'],
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
}
|