1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-13 16:44:36 +02:00

Using clean JSON instead of YAML #123 #117

This commit is contained in:
Awilum
2019-04-24 16:30:07 +03:00
parent f0667e4452
commit 8abffeb86c
12 changed files with 253 additions and 183 deletions

View File

@@ -0,0 +1,13 @@
{
"name": "Default",
"version": "1.0.0",
"description": "Default theme for Flextype",
"author": {
"name": "Sergey Romanenko",
"email": "awilum@yandex.ru",
"url": "https://github.com/Awilum"
},
"homepage": "https://github.com/flextype/flextype",
"bugs": "https://github.com/flextype/flextype/issues",
"license": "MIT"
}

View File

@@ -1,10 +0,0 @@
name: Default
version: 1.0.0
description: Default theme for Flextype
author:
name: Sergey Romanenko
email: awilum@yandex.ru
url: https://github.com/Awilum
homepage: https://github.com/flextype/flextype
bugs: https://github.com/flextype/flextype/issues
license: MIT

View File

@@ -0,0 +1,67 @@
{
"title": "About",
"default_field": "title",
"sections": {
"main": {
"title": "Main",
"fields": {
"title": {
"title": "admin_title",
"type": "text",
"size": "col-12"
},
"content": {
"title": "admin_content",
"type": "html",
"size": "col-12"
},
"image": {
"title": "admin_media",
"type": "media_select",
"size": "col-3"
}
}
},
"seo": {
"title": "Seo",
"fields": {
"description": {
"title": "admin_description",
"type": "textarea",
"size": "col-12"
}
}
},
"menu": {
"title": "Menu",
"fields": {
"menu_item_title": {
"title": "admin_menu_item_title",
"type": "text",
"size": "col-4"
},
"menu_item_url": {
"title": "admin_menu_item_url",
"type": "text",
"size": "col-4"
},
"menu_item_target": {
"title": "admin_menu_item_target",
"type": "select",
"options": {
"blank": "_blank",
"self": "_self",
"parent": "_parent",
"top": "_top"
},
"size": "col-4"
},
"menu_item_order": {
"title": "admin_menu_item_order",
"type": "text",
"size": "col-4"
}
}
}
}
}

View File

@@ -1,49 +0,0 @@
title: About
default_field: title
sections:
main:
title: 'Main'
fields:
title:
title: admin_title
type: text
size: col-12
content:
title: admin_content
type: html
size: col-12
image:
title: admin_media
type: media_select
size: col-3
seo:
title: 'Seo'
fields:
description:
title: admin_description
type: textarea
size: col-12
menu:
title: 'Menu'
fields:
menu_item_title:
title: admin_menu_item_title
type: text
size: col-4
menu_item_url:
title: admin_menu_item_url
type: text
size: col-4
menu_item_target:
title: admin_menu_item_target
type: select
options:
blank: '_blank'
self: '_self'
parent: '_parent'
top: '_top'
size: col-4
menu_item_order:
title: admin_menu_item_order
type: text
size: col-4

View File

@@ -0,0 +1,36 @@
{
"title": "Blog Post",
"default_field": "title",
"sections": {
"main": {
"title": "Main",
"fields": {
"title": {
"title": "admin_title",
"type": "text",
"size": "col-12"
},
"summary": {
"title": "admin_summary",
"type": "html",
"size": "col-12"
},
"content": {
"title": "admin_content",
"type": "html",
"size": "col-12"
}
}
},
"seo": {
"title": "Seo",
"fields": {
"description": {
"title": "admin_description",
"type": "textarea",
"size": "col-12"
}
}
}
}
}

View File

@@ -1,25 +0,0 @@
title: 'Blog Post'
default_field: title
sections:
main:
title: 'Main'
fields:
title:
title: admin_title
type: text
size: col-12
summary:
title: admin_summary
type: html
size: col-12
content:
title: admin_content
type: html
size: col-12
seo:
title: 'Seo'
fields:
description:
title: admin_description
type: textarea
size: col-12

View File

@@ -0,0 +1,57 @@
{
"title": "Blog",
"default_field": "title",
"sections": {
"main": {
"title": "Main",
"fields": {
"title": {
"title": "admin_title",
"type": "text",
"size": "col-12"
}
}
},
"seo": {
"title": "Seo",
"fields": {
"description": {
"title": "admin_description",
"type": "textarea",
"size": "col-12"
}
}
},
"menu": {
"title": "Menu",
"fields": {
"menu_item_title": {
"title": "admin_menu_item_title",
"type": "text",
"size": "col-4"
},
"menu_item_url": {
"title": "admin_menu_item_url",
"type": "text",
"size": "col-4"
},
"menu_item_target": {
"title": "admin_menu_item_target",
"type": "select",
"options": {
"blank": "_blank",
"self": "_self",
"parent": "_parent",
"top": "_top"
},
"size": "col-4"
},
"menu_item_order": {
"title": "admin_menu_item_order",
"type": "text",
"size": "col-4"
}
}
}
}
}

View File

@@ -1,41 +0,0 @@
title: Blog
default_field: title
sections:
main:
title: 'Main'
fields:
title:
title: admin_title
type: text
size: col-12
seo:
title: 'Seo'
fields:
description:
title: admin_description
type: textarea
size: col-12
menu:
title: 'Menu'
fields:
menu_item_title:
title: admin_menu_item_title
type: text
size: col-4
menu_item_url:
title: admin_menu_item_url
type: text
size: col-4
menu_item_target:
title: admin_menu_item_target
type: select
options:
blank: '_blank'
self: '_self'
parent: '_parent'
top: '_top'
size: col-4
menu_item_order:
title: admin_menu_item_order
type: text
size: col-4

View File

@@ -0,0 +1,77 @@
{
"title": "Default",
"default_field": "title",
"sections": {
"main": {
"title": "Main",
"fields": {
"title": {
"title": "admin_title",
"type": "text",
"size": "col-12"
},
"content": {
"title": "admin_content",
"type": "html",
"size": "col-12"
},
"template": {
"title": "admin_template",
"type": "template_select",
"size": "col-4"
},
"visibility": {
"title": "admin_visibility",
"type": "visibility_select",
"size": "col-4"
},
"date": {
"title": "admin_date",
"type": "text",
"size": "col-4"
}
}
},
"seo": {
"title": "Seo",
"fields": {
"description": {
"title": "admin_description",
"type": "textarea",
"size": "col-12"
}
}
},
"menu": {
"title": "Menu",
"fields": {
"menu_item_title": {
"title": "admin_menu_item_title",
"type": "text",
"size": "col-4"
},
"menu_item_url": {
"title": "admin_menu_item_url",
"type": "text",
"size": "col-4"
},
"menu_item_target": {
"title": "admin_menu_item_target",
"type": "select",
"options": {
"blank": "_blank",
"self": "_self",
"parent": "_parent",
"top": "_top"
},
"size": "col-4"
},
"menu_item_order": {
"title": "admin_menu_item_order",
"type": "text",
"size": "col-4"
}
}
}
}
}

View File

@@ -1,57 +0,0 @@
title: Default
default_field: title
sections:
main:
title: 'Main'
fields:
title:
title: admin_title
type: text
size: col-12
content:
title: admin_content
type: html
size: col-12
template:
title: admin_template
type: template_select
size: col-4
visibility:
title: admin_visibility
type: visibility_select
size: col-4
date:
title: admin_date
type: text
size: col-4
seo:
title: 'Seo'
fields:
description:
title: admin_description
type: textarea
size: col-12
menu:
title: 'Menu'
fields:
menu_item_title:
title: admin_menu_item_title
type: text
size: col-4
menu_item_url:
title: admin_menu_item_url
type: text
size: col-4
menu_item_target:
title: admin_menu_item_target
type: select
options:
blank: '_blank'
self: '_self'
parent: '_parent'
top: '_top'
size: col-4
menu_item_order:
title: admin_menu_item_order
type: text
size: col-4

View File

@@ -0,0 +1,3 @@
{
"enabled": true
}

View File

@@ -1 +0,0 @@
enabled: true