mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
7919401ba9
refs https://github.com/TryGhost/Ghost/issues/8479 - remove unused `ed-image-manager` util - remove `markdown` attribute from Post model
25 lines
908 B
JavaScript
25 lines
908 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}`; },
|
|
html(i) { return `<p>HTML for post ${i}.</p>`; },
|
|
plaintext(i) { return `Plaintext for post ${i}.`; },
|
|
featureImage(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: []
|
|
});
|