last step ?

This commit is contained in:
ogerly 2019-12-18 16:43:24 +01:00
parent c74bfde652
commit d2a17373b0
3 changed files with 1 additions and 18 deletions

View File

@ -8,8 +8,4 @@
} }
], ],
"editor.formatOnSave": false, "editor.formatOnSave": false,
"eslint.autoFixOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
} }

View File

@ -19,6 +19,7 @@ export default function create() {
visibility: 'public', visibility: 'public',
deleted: false, deleted: false,
categoryIds: [], categoryIds: [],
imageBlurred: false,
imageAspectRatio: 1.333, imageAspectRatio: 1.333,
} }
args = { args = {

View File

@ -361,7 +361,6 @@ const languages = ['de', 'en', 'es', 'fr', 'it', 'pt', 'pl']
language: sample(languages), language: sample(languages),
image: faker.image.unsplash.technology(300, 1500), image: faker.image.unsplash.technology(300, 1500),
categoryIds: ['cat1'], categoryIds: ['cat1'],
imageBlurred: false,
imageAspectRatio: 300 / 1500, imageAspectRatio: 300 / 1500,
}), }),
factory.create('Post', { factory.create('Post', {
@ -369,21 +368,18 @@ const languages = ['de', 'en', 'es', 'fr', 'it', 'pt', 'pl']
id: 'p3', id: 'p3',
language: sample(languages), language: sample(languages),
categoryIds: ['cat3'], categoryIds: ['cat3'],
imageBlurred: false,
}), }),
factory.create('Post', { factory.create('Post', {
author: dewey, author: dewey,
id: 'p4', id: 'p4',
language: sample(languages), language: sample(languages),
categoryIds: ['cat4'], categoryIds: ['cat4'],
imageBlurred: false,
}), }),
factory.create('Post', { factory.create('Post', {
author: louie, author: louie,
id: 'p5', id: 'p5',
language: sample(languages), language: sample(languages),
categoryIds: ['cat5'], categoryIds: ['cat5'],
imageBlurred: false,
}), }),
factory.create('Post', { factory.create('Post', {
authorId: 'u1', authorId: 'u1',
@ -391,7 +387,6 @@ const languages = ['de', 'en', 'es', 'fr', 'it', 'pt', 'pl']
language: sample(languages), language: sample(languages),
image: faker.image.unsplash.buildings(300, 857), image: faker.image.unsplash.buildings(300, 857),
categoryIds: ['cat6'], categoryIds: ['cat6'],
imageBlurred: false,
imageAspectRatio: 300 / 857, imageAspectRatio: 300 / 857,
}), }),
factory.create('Post', { factory.create('Post', {
@ -399,7 +394,6 @@ const languages = ['de', 'en', 'es', 'fr', 'it', 'pt', 'pl']
id: 'p9', id: 'p9',
language: sample(languages), language: sample(languages),
categoryIds: ['cat9'], categoryIds: ['cat9'],
imageBlurred: false,
}), }),
factory.create('Post', { factory.create('Post', {
author: dewey, author: dewey,
@ -413,7 +407,6 @@ const languages = ['de', 'en', 'es', 'fr', 'it', 'pt', 'pl']
language: sample(languages), language: sample(languages),
image: faker.image.unsplash.people(300, 901), image: faker.image.unsplash.people(300, 901),
categoryIds: ['cat11'], categoryIds: ['cat11'],
imageBlurred: false,
imageAspectRatio: 300 / 901, imageAspectRatio: 300 / 901,
}), }),
factory.create('Post', { factory.create('Post', {
@ -421,7 +414,6 @@ const languages = ['de', 'en', 'es', 'fr', 'it', 'pt', 'pl']
id: 'p13', id: 'p13',
language: sample(languages), language: sample(languages),
categoryIds: ['cat13'], categoryIds: ['cat13'],
imageBlurred: false,
}), }),
factory.create('Post', { factory.create('Post', {
author: jennyRostock, author: jennyRostock,
@ -429,7 +421,6 @@ const languages = ['de', 'en', 'es', 'fr', 'it', 'pt', 'pl']
language: sample(languages), language: sample(languages),
image: faker.image.unsplash.objects(300, 200), image: faker.image.unsplash.objects(300, 200),
categoryIds: ['cat14'], categoryIds: ['cat14'],
imageBlurred: false,
imageAspectRatio: 300 / 450, imageAspectRatio: 300 / 450,
}), }),
factory.create('Post', { factory.create('Post', {
@ -437,7 +428,6 @@ const languages = ['de', 'en', 'es', 'fr', 'it', 'pt', 'pl']
id: 'p15', id: 'p15',
language: sample(languages), language: sample(languages),
categoryIds: ['cat15'], categoryIds: ['cat15'],
imageBlurred: false,
}), }),
]) ])
@ -480,7 +470,6 @@ const languages = ['de', 'en', 'es', 'fr', 'it', 'pt', 'pl']
title: `Nature Philosophy Yoga`, title: `Nature Philosophy Yoga`,
content: hashtag1, content: hashtag1,
categoryIds: ['cat2'], categoryIds: ['cat2'],
imageBlurred: false,
imageAspectRatio: 300 / 200, imageAspectRatio: 300 / 200,
}, },
}), }),
@ -491,7 +480,6 @@ const languages = ['de', 'en', 'es', 'fr', 'it', 'pt', 'pl']
title: 'This is post #7', title: 'This is post #7',
content: `${mention1} ${faker.lorem.paragraph()}`, content: `${mention1} ${faker.lorem.paragraph()}`,
categoryIds: ['cat7'], categoryIds: ['cat7'],
imageBlurred: false,
imageAspectRatio: 300 / 180, imageAspectRatio: 300 / 180,
}, },
}), }),
@ -503,7 +491,6 @@ const languages = ['de', 'en', 'es', 'fr', 'it', 'pt', 'pl']
title: `Quantum Flow Theory explains Quantum Gravity`, title: `Quantum Flow Theory explains Quantum Gravity`,
content: hashtagAndMention1, content: hashtagAndMention1,
categoryIds: ['cat8'], categoryIds: ['cat8'],
imageBlurred: false,
imageAspectRatio: 300 / 900, imageAspectRatio: 300 / 900,
}, },
}), }),
@ -514,7 +501,6 @@ const languages = ['de', 'en', 'es', 'fr', 'it', 'pt', 'pl']
title: 'This is post #12', title: 'This is post #12',
content: `${mention2} ${faker.lorem.paragraph()}`, content: `${mention2} ${faker.lorem.paragraph()}`,
categoryIds: ['cat12'], categoryIds: ['cat12'],
imageBlurred: false,
imageAspectRatio: 300 / 200, imageAspectRatio: 300 / 200,
}, },
}), }),