0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Merge pull request #2810 from shindakun/fixtureupdate

Update ember post fixture data.
This commit is contained in:
Hannah Wolfe 2014-05-25 15:37:10 +03:00
commit d1d0db8644
2 changed files with 4560 additions and 4709 deletions

View file

@ -1,12 +1,13 @@
Fixtures for the Ghost blogging platform, intended to be generated with http://www.json-generator.com/ Fixtures for the Ghost blogging platform, intended to be generated with http://www.json-generator.com/
The generator's index() starts a 0, remove first 'post' to match expected data format.
{ {
posts: [ posts: [
'{{repeat(30)}}', '{{repeat(31)}}',
{ {
id: '{{index()}}', id: '{{index()}}',
uuid: '{{guid()}}', uuid: '{{guid()}}',
status: '{{random("published ", "draft")}}', status: '{{random("published", "draft")}}',
title: '{{lorem( integer(1, 10), "words")}}', title: '{{lorem( integer(1, 10), "words")}}',
slug: function(tag, index){ slug: function(tag, index){
return this.title.replace(/ /g, '-'); return this.title.replace(/ /g, '-');
@ -17,12 +18,12 @@ Fixtures for the Ghost blogging platform, intended to be generated with http://w
}, },
image: null, image: null,
featured: '{{integer(0, 1)}}', featured: '{{integer(0, 1)}}',
page: '{{integer(0, 10)}}', page: '{{integer(0, 1)}}',
language: "en_US", language: "en_US",
meta_title: null, meta_title: null,
meta_description: null, meta_description: null,
author: { author: {
id: '{{integer(0, 10)}}', id: '{{integer(1, 10)}}',
uuid: '{{guid()}}', uuid: '{{guid()}}',
name: '{{firstName()}} {{surname()}}', name: '{{firstName()}} {{surname()}}',
slug: function(tag, index){ slug: function(tag, index){
@ -44,7 +45,7 @@ Fixtures for the Ghost blogging platform, intended to be generated with http://w
}, },
created_at: '{{date(new Date(2012, 0, 1), new Date(), "YYYY-MM-ddThh:mm:ss.ff Z")}}', created_at: '{{date(new Date(2012, 0, 1), new Date(), "YYYY-MM-ddThh:mm:ss.ff Z")}}',
created_by: { created_by: {
id: '{{integer(0, 10)}}', id: '{{integer(1, 10)}}',
uuid: '{{guid()}}', uuid: '{{guid()}}',
name: '{{firstName()}} {{surname()}}', name: '{{firstName()}} {{surname()}}',
slug: function(tag, index){ slug: function(tag, index){
@ -66,7 +67,7 @@ Fixtures for the Ghost blogging platform, intended to be generated with http://w
}, },
updated_at: '{{date(new Date(2012, 0, 1), new Date(), "YYYY-MM-ddThh:mm:ss.ff Z")}}', updated_at: '{{date(new Date(2012, 0, 1), new Date(), "YYYY-MM-ddThh:mm:ss.ff Z")}}',
updated_by: { updated_by: {
id: '{{integer(0, 10)}}', id: '{{integer(1, 10)}}',
uuid: '{{guid()}}', uuid: '{{guid()}}',
name: '{{firstName()}} {{surname()}}', name: '{{firstName()}} {{surname()}}',
slug: function(tag, index){ slug: function(tag, index){
@ -88,7 +89,7 @@ Fixtures for the Ghost blogging platform, intended to be generated with http://w
}, },
published_at: '{{date(new Date(2012, 0, 1), new Date(), "YYYY-MM-ddThh:mm:ss.ff Z")}}', published_at: '{{date(new Date(2012, 0, 1), new Date(), "YYYY-MM-ddThh:mm:ss.ff Z")}}',
published_by: { published_by: {
id: '{{integer(0, 10)}}', id: '{{integer(1, 10)}}',
uuid: '{{guid()}}', uuid: '{{guid()}}',
name: '{{firstName()}} {{surname()}}', name: '{{firstName()}} {{surname()}}',
slug: function(tag, index){ slug: function(tag, index){
@ -111,7 +112,7 @@ Fixtures for the Ghost blogging platform, intended to be generated with http://w
tags: [ tags: [
'{{repeat(0, 10)}}', '{{repeat(0, 10)}}',
{ {
id: '{{integer(0, 100)}}', id: '{{integer(1, 100)}}',
uuid: '{{guid()}}', uuid: '{{guid()}}',
name: '{{lorem( integer(1, 3), "words")}}', name: '{{lorem( integer(1, 3), "words")}}',
slug: function(tag, index){ slug: function(tag, index){
@ -128,4 +129,4 @@ Fixtures for the Ghost blogging platform, intended to be generated with http://w
} }
] ]
}] }]
} }

File diff suppressed because it is too large Load diff