feat: built stories component in profile

This commit is contained in:
MTG2000
2022-07-14 11:39:59 +03:00
parent adb11c3af7
commit 7cd6fc749c
12 changed files with 337 additions and 145 deletions

View File

@@ -95,6 +95,21 @@ export let posts = {
comments: generatePostComments(3),
},
{
id: 6,
title: 'The End Is Nigh',
body: postBody,
cover_image: getCoverImage(),
comments_count: 3,
createdAt: getDate(),
votes_count: 120,
excerpt: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. In odio libero accumsan...',
type: "Story",
tags: randomItems(3, ...tags),
author: getAuthor(),
comments: generatePostComments(3),
},
] as Story[],
bounties: [
{
@@ -113,7 +128,24 @@ export let posts = {
reward_amount: 200_000,
applications: getApplications(2),
}
},
{
type: "Bounty",
id: 51,
title: 'Wanted, Dead OR Alive!!',
body: postBody,
cover_image: getCoverImage(),
applicants_count: 31,
createdAt: getDate(),
votes_count: 120,
excerpt: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. In odio libero accumsan...',
tags: randomItems(3, ...tags),
author: getAuthor(),
deadline: "25 May",
reward_amount: 200_000,
applications: getApplications(2),
},
] as Bounty[],
questions: [
{
@@ -132,6 +164,22 @@ export let posts = {
author: getAuthor(),
comments: generatePostComments(3)
},
{
type: "Question",
id: 33,
title: 'What is a man but miserable pile of secrets?',
body: postBody,
answers_count: 3,
createdAt: getDate(),
votes_count: 70,
excerpt: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. In odio libero accumsan...',
tags: [
{ id: 1, title: "lnurl" },
{ id: 2, title: "webln" },
],
author: getAuthor(),
comments: generatePostComments(3)
},
] as Question[]
}

View File

@@ -1,4 +1,5 @@
import { User } from "src/graphql";
import { posts } from "./posts";
export const user: User = {
id: 123,
@@ -14,5 +15,6 @@ export const user: User = {
location: "Germany, Berlin",
role: "user",
twitter: "john-doe",
website: "https://mtg-dev.tech"
website: "https://mtg-dev.tech",
stories: posts.stories
}