Result:
### PostList
In the backend:
Result:
## License
[MIT](http://opensource.org/licenses/MIT)
================================================
FILE: acf-export.json
================================================
[
{
"key": "group_5a32cdd1b53f1",
"title": "Page Fields",
"fields": [
{
"key": "field_5699475fcd949",
"label": "Layout Component",
"name": "page_layout_component",
"type": "select",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"choices": {
"Default": "Default",
"PageWithHeader": "PageWithHeader",
"PostList": "PostList",
"AboutPage": "AboutPage"
},
"default_value": [
"Default"
],
"allow_null": 0,
"multiple": 0,
"ui": 0,
"ajax": 0,
"return_format": "value",
"placeholder": ""
},
{
"key": "field_5a43baa53bf80",
"label": "Post Type",
"name": "post_type",
"type": "select",
"instructions": "",
"required": 0,
"conditional_logic": [
[
{
"field": "field_5699475fcd949",
"operator": "==",
"value": "PostList"
}
]
],
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"choices": {
"post": "Post",
"tutorial": "Tutorial"
},
"default_value": [
"post"
],
"allow_null": 0,
"multiple": 0,
"ui": 0,
"ajax": 0,
"return_format": "value",
"placeholder": ""
},
{
"key": "field_5a43c2c5ab175",
"label": "Post Item Component",
"name": "post_item_component",
"type": "select",
"instructions": "",
"required": 0,
"conditional_logic": [
[
{
"field": "field_5699475fcd949",
"operator": "==",
"value": "PostList"
}
]
],
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"choices": {
"PostListItem": "PostListItem",
"TutorialListItem": "TutorialListItem"
},
"default_value": [],
"allow_null": 0,
"multiple": 0,
"ui": 0,
"ajax": 0,
"return_format": "value",
"placeholder": ""
},
{
"key": "field_5a4423fc9061e",
"label": "About Image",
"name": "about_image",
"type": "image",
"instructions": "",
"required": 0,
"conditional_logic": [
[
{
"field": "field_5699475fcd949",
"operator": "==",
"value": "AboutPage"
}
]
],
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"return_format": "url",
"preview_size": "thumbnail",
"library": "all",
"min_width": "",
"min_height": "",
"min_size": "",
"max_width": "",
"max_height": "",
"max_size": "",
"mime_types": ""
}
],
"location": [
[
{
"param": "post_type",
"operator": "==",
"value": "page"
}
]
],
"menu_order": 0,
"position": "acf_after_title",
"style": "seamless",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": 1,
"description": ""
}
]
================================================
FILE: babel.config.js
================================================
module.exports = {
presets: ["@vue/app"]
};
================================================
FILE: config/sample-client.config.json
================================================
{
"wordexpressServerHost": "http://localhost:4000",
"theme": "basic"
}
================================================
FILE: jest.config.js
================================================
module.exports = {
moduleFileExtensions: ["js", "jsx", "json", "vue"],
transform: {
"^.+\\.vue$": "vue-jest",
".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$":
"jest-transform-stub",
"^.+\\.jsx?$": "babel-jest"
},
moduleNameMapper: {
"^@/(.*)$": "{{$formatDate(post.post_date)}}
Written {{$formatDate(post.post_date)}}
by