7eaa7170ec
refs https://github.com/TryGhost/Ghost/issues/7860 - load 30 posts per page - clean up unnecessary styles, match class name to component name - start moving towards desired content/styles end goal
25 lines
900 B
JavaScript
25 lines
900 B
JavaScript
import {Factory, faker} from 'ember-cli-mirage';
|
|
|
|
export default Factory.extend({
|
|
uuid(i) { return `post-${i}`; },
|
|
title(i) { return `Post ${i}`; },
|
|
description(i) { return `Title for post ${i}.`; },
|
|
slug(i) { return `post-${i}`; },
|
|
markdown(i) { return `Markdown for post ${i}.`; },
|
|
html(i) { return `<p>HTML for post ${i}.</p>`; },
|
|
image(i) { return `/content/images/2015/10/post-${i}.jpg`; },
|
|
featured: false,
|
|
page: false,
|
|
status(i) { return faker.list.cycle('draft', 'published', 'scheduled')(i); },
|
|
metaDescription(i) { return `Meta description for post ${i}.`; },
|
|
metaTitle(i) { return `Meta Title for post ${i}`; },
|
|
authorId: 1,
|
|
updatedAt: '2015-10-19T16:25:07.756Z',
|
|
updatedBy: 1,
|
|
publishedAt: '2015-12-19T16:25:07.000Z',
|
|
publishedBy: 1,
|
|
createdAt: '2015-09-11T09:44:29.871Z',
|
|
createdBy: 1,
|
|
tags: []
|
|
});
|