create-tina-app 0.1.2 → 0.1.5
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/CHANGELOG.md +25 -0
- package/dist/index.js +50 -16
- package/{examples/tina-tailwind-sidebar-demo/next-env.d.ts → dist/util/preRunChecks.d.ts} +1 -3
- package/package.json +2 -1
- 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/LICENSE +0 -201
- 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 -42
- 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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# create-tina-app
|
|
2
2
|
|
|
3
|
+
## 0.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9f609eb09: Warn user when using node version 15
|
|
8
|
+
- @tinacms/metrics@0.0.2
|
|
9
|
+
|
|
10
|
+
## 0.1.4
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- a05546eb4: Added basic open source telemetry
|
|
15
|
+
|
|
16
|
+
See [this discussion](https://github.com/tinacms/tinacms/discussions/2451) for more information and how to opt out.
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [8bf0ac832]
|
|
19
|
+
- Updated dependencies [a05546eb4]
|
|
20
|
+
- @tinacms/metrics@0.0.2
|
|
21
|
+
|
|
22
|
+
## 0.1.3
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- d0ac25b73: Update link for bare bones starter
|
|
27
|
+
|
|
3
28
|
## 0.1.2
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
var __create = Object.create;
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12
|
+
var __spreadValues = (a, b) => {
|
|
13
|
+
for (var prop in b || (b = {}))
|
|
14
|
+
if (__hasOwnProp.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
if (__getOwnPropSymbols)
|
|
17
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
18
|
+
if (__propIsEnum.call(b, prop))
|
|
19
|
+
__defNormalProp(a, prop, b[prop]);
|
|
20
|
+
}
|
|
21
|
+
return a;
|
|
22
|
+
};
|
|
23
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
7
24
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
25
|
var __export = (target, all) => {
|
|
9
26
|
__markAsModule(target);
|
|
@@ -22,19 +39,20 @@ var __toModule = (module2) => {
|
|
|
22
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);
|
|
23
40
|
};
|
|
24
41
|
|
|
25
|
-
// pnp:/
|
|
42
|
+
// pnp:/home/runner/work/tinacms/tinacms/packages/create-tina-app/src/index.ts
|
|
26
43
|
__export(exports, {
|
|
27
44
|
run: () => run
|
|
28
45
|
});
|
|
46
|
+
var import_metrics = __toModule(require("@tinacms/metrics"));
|
|
29
47
|
var import_commander = __toModule(require("commander"));
|
|
30
48
|
var import_prompts = __toModule(require("prompts"));
|
|
31
49
|
var import_path4 = __toModule(require("path"));
|
|
32
50
|
|
|
33
|
-
// pnp:/
|
|
51
|
+
// pnp:/home/runner/work/tinacms/tinacms/packages/create-tina-app/package.json
|
|
34
52
|
var name = "create-tina-app";
|
|
35
|
-
var version = "0.1.
|
|
53
|
+
var version = "0.1.5";
|
|
36
54
|
|
|
37
|
-
// pnp:/
|
|
55
|
+
// pnp:/home/runner/work/tinacms/tinacms/packages/create-tina-app/src/util/fileUtil.ts
|
|
38
56
|
var import_fs = __toModule(require("fs"));
|
|
39
57
|
var import_path = __toModule(require("path"));
|
|
40
58
|
var import_chalk = __toModule(require("chalk"));
|
|
@@ -94,7 +112,7 @@ function isFolderEmpty(root, name2) {
|
|
|
94
112
|
return true;
|
|
95
113
|
}
|
|
96
114
|
|
|
97
|
-
// pnp:/
|
|
115
|
+
// pnp:/home/runner/work/tinacms/tinacms/packages/create-tina-app/src/util/install.ts
|
|
98
116
|
var import_chalk2 = __toModule(require("chalk"));
|
|
99
117
|
var import_cross_spawn = __toModule(require("cross-spawn"));
|
|
100
118
|
function install(root, dependencies, { useYarn, isOnline, devDependencies }) {
|
|
@@ -140,7 +158,7 @@ function install(root, dependencies, { useYarn, isOnline, devDependencies }) {
|
|
|
140
158
|
}
|
|
141
159
|
const child = (0, import_cross_spawn.default)(command, args, {
|
|
142
160
|
stdio: "inherit",
|
|
143
|
-
env: {
|
|
161
|
+
env: __spreadProps(__spreadValues({}, process.env), { ADBLOCK: "1", DISABLE_OPENCOLLECTIVE: "1" })
|
|
144
162
|
});
|
|
145
163
|
child.on("close", (code) => {
|
|
146
164
|
if (code !== 0) {
|
|
@@ -152,10 +170,10 @@ function install(root, dependencies, { useYarn, isOnline, devDependencies }) {
|
|
|
152
170
|
});
|
|
153
171
|
}
|
|
154
172
|
|
|
155
|
-
// pnp:/
|
|
173
|
+
// pnp:/home/runner/work/tinacms/tinacms/packages/create-tina-app/src/index.ts
|
|
156
174
|
var import_chalk5 = __toModule(require("chalk"));
|
|
157
175
|
|
|
158
|
-
// pnp:/
|
|
176
|
+
// pnp:/home/runner/work/tinacms/tinacms/packages/create-tina-app/src/util/git.ts
|
|
159
177
|
var import_child_process = __toModule(require("child_process"));
|
|
160
178
|
var import_path2 = __toModule(require("path"));
|
|
161
179
|
var import_rimraf = __toModule(require("rimraf"));
|
|
@@ -212,10 +230,10 @@ function tryGitInit(root) {
|
|
|
212
230
|
}
|
|
213
231
|
}
|
|
214
232
|
|
|
215
|
-
// pnp:/
|
|
233
|
+
// pnp:/home/runner/work/tinacms/tinacms/packages/create-tina-app/src/index.ts
|
|
216
234
|
var import_process = __toModule(require("process"));
|
|
217
235
|
|
|
218
|
-
// pnp:/
|
|
236
|
+
// pnp:/home/runner/work/tinacms/tinacms/packages/create-tina-app/src/util/examples.ts
|
|
219
237
|
var import_got = __toModule(require("got"));
|
|
220
238
|
var import_stream = __toModule(require("stream"));
|
|
221
239
|
var import_util = __toModule(require("util"));
|
|
@@ -241,7 +259,7 @@ function downloadAndExtractRepo(root, { username, name: name2, branch, filePath
|
|
|
241
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}` : ""}`]));
|
|
242
260
|
}
|
|
243
261
|
|
|
244
|
-
// pnp:/
|
|
262
|
+
// pnp:/home/runner/work/tinacms/tinacms/packages/create-tina-app/src/examples.ts
|
|
245
263
|
var import_chalk4 = __toModule(require("chalk"));
|
|
246
264
|
var import_fs_extra2 = __toModule(require("fs-extra"));
|
|
247
265
|
var import_path3 = __toModule(require("path"));
|
|
@@ -250,7 +268,7 @@ var EXAMPLES = [
|
|
|
250
268
|
title: "Bare bones starter",
|
|
251
269
|
value: "basic",
|
|
252
270
|
isInternal: false,
|
|
253
|
-
gitURL: "https://github.com/tinacms/tina-
|
|
271
|
+
gitURL: "https://github.com/tinacms/tina-barebones-starter"
|
|
254
272
|
},
|
|
255
273
|
{
|
|
256
274
|
title: "Tailwind Starter",
|
|
@@ -278,18 +296,27 @@ var downloadExample = async (example, root) => {
|
|
|
278
296
|
}
|
|
279
297
|
};
|
|
280
298
|
|
|
281
|
-
// pnp:/
|
|
299
|
+
// pnp:/home/runner/work/tinacms/tinacms/packages/create-tina-app/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
|
+
// pnp:/home/runner/work/tinacms/tinacms/packages/create-tina-app/src/index.ts
|
|
282
307
|
var program = new import_commander.Command(name);
|
|
283
308
|
var projectName = "";
|
|
284
|
-
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").arguments("[project-directory]").usage(`${import_chalk5.default.green("<project-directory>")} [options]`).action((name2) => {
|
|
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) => {
|
|
285
310
|
projectName = name2;
|
|
286
311
|
});
|
|
287
312
|
var run = async () => {
|
|
313
|
+
preRunChecks();
|
|
288
314
|
program.parse(process.argv);
|
|
289
315
|
const opts = program.opts();
|
|
290
316
|
if (opts.dir) {
|
|
291
317
|
process.chdir(opts.dir);
|
|
292
318
|
}
|
|
319
|
+
const telemetry = new import_metrics.Telemetry({ disabled: opts == null ? void 0 : opts.noTelemetry });
|
|
293
320
|
let example = opts.example;
|
|
294
321
|
const res = await (0, import_prompts.default)({
|
|
295
322
|
message: "Which package manager would you like to use?",
|
|
@@ -329,6 +356,13 @@ var run = async () => {
|
|
|
329
356
|
if (!chosenExample) {
|
|
330
357
|
console.error(`The example provided is not a valid example. Please provide one of the following; ${EXAMPLES.map((x) => x.value)}`);
|
|
331
358
|
}
|
|
359
|
+
await telemetry.submitRecord({
|
|
360
|
+
event: {
|
|
361
|
+
name: "create-tina-app:invoke",
|
|
362
|
+
example,
|
|
363
|
+
useYarn: Boolean(useYarn)
|
|
364
|
+
}
|
|
365
|
+
});
|
|
332
366
|
const root = import_path4.default.join(process.cwd(), dirName);
|
|
333
367
|
if (!await isWriteable(import_path4.default.dirname(root))) {
|
|
334
368
|
console.error("The application path is not writable, please check folder permissions and try again.");
|
|
@@ -360,10 +394,10 @@ var run = async () => {
|
|
|
360
394
|
console.log(import_chalk5.default.bold(" Next steps:"));
|
|
361
395
|
console.log();
|
|
362
396
|
console.log("- Go to http://localhost:3000/admin to enter edit-mode");
|
|
363
|
-
console.log("- Edit some content on http://localhost:3000 (See https://tina.io/using-tina-editor )");
|
|
397
|
+
console.log("- Edit some content on http://localhost:3000 (See https://tina.io/docs/using-tina-editor )");
|
|
364
398
|
console.log("- Check out our concept docs, to learn how Tina powers the starters under the hood. (See https://tina.io/docs/schema/)");
|
|
365
399
|
console.log("- Learn how Tina can be extended to create new field components. (See https://tina.io/docs/advanced/extending-tina/) ");
|
|
366
|
-
console.log("- Make your site editable with Tina on production. (See https://tina.io/docs/tina-cloud/
|
|
400
|
+
console.log("- Make your site editable with Tina on production. (See https://tina.io/docs/tina-cloud/)");
|
|
367
401
|
};
|
|
368
402
|
run();
|
|
369
403
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -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.5",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"typescript": "^4.3.5"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
+
"@tinacms/metrics": "0.0.2",
|
|
41
42
|
"chalk": "^4.1.2",
|
|
42
43
|
"commander": "^8.3.0",
|
|
43
44
|
"cross-spawn": "^7.0.3",
|
|
@@ -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
|
-
}
|