From 7e7dd5244e8d26485ad7950a89c04c98c4fef83f Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 11 Mar 2019 21:00:02 +0400 Subject: Initial commit/ --- frontend/app/data/dataGenerator.js | 45 +++++++ frontend/app/data/img/Image1.png | Bin 0 -> 1364956 bytes frontend/app/data/img/Image10.png | Bin 0 -> 1373683 bytes frontend/app/data/img/Image11.png | Bin 0 -> 1634438 bytes frontend/app/data/img/Image12.png | Bin 0 -> 1586933 bytes frontend/app/data/img/Image2.png | Bin 0 -> 1554760 bytes frontend/app/data/img/Image3.png | Bin 0 -> 1762312 bytes frontend/app/data/img/Image4.png | Bin 0 -> 1043931 bytes frontend/app/data/img/Image5.png | Bin 0 -> 1474852 bytes frontend/app/data/img/Image6.png | Bin 0 -> 1307144 bytes frontend/app/data/img/Image7.png | Bin 0 -> 1925115 bytes frontend/app/data/img/Image8.png | Bin 0 -> 1399177 bytes frontend/app/data/img/Image9.png | Bin 0 -> 732000 bytes frontend/app/data/img/avatars/Image1.png | Bin 0 -> 221949 bytes frontend/app/data/img/avatars/Image10.png | Bin 0 -> 264326 bytes frontend/app/data/img/avatars/Image11.png | Bin 0 -> 211892 bytes frontend/app/data/img/avatars/Image12.png | Bin 0 -> 195780 bytes frontend/app/data/img/avatars/Image2.png | Bin 0 -> 198751 bytes frontend/app/data/img/avatars/Image3.png | Bin 0 -> 206014 bytes frontend/app/data/img/avatars/Image4.png | Bin 0 -> 148659 bytes frontend/app/data/img/avatars/Image5.png | Bin 0 -> 188015 bytes frontend/app/data/img/avatars/Image6.png | Bin 0 -> 187966 bytes frontend/app/data/img/avatars/Image7.png | Bin 0 -> 167809 bytes frontend/app/data/img/avatars/Image8.png | Bin 0 -> 188909 bytes frontend/app/data/img/avatars/Image9.png | Bin 0 -> 187464 bytes frontend/app/data/img/photo1.png | Bin 0 -> 1604075 bytes frontend/app/data/img/photo17.png | Bin 0 -> 761786 bytes frontend/app/data/img/photo18.png | Bin 0 -> 763599 bytes frontend/app/data/img/photo19.png | Bin 0 -> 673692 bytes frontend/app/data/img/photo2.png | Bin 0 -> 563966 bytes frontend/app/data/img/photo20.png | Bin 0 -> 801144 bytes frontend/app/data/img/photo3.png | Bin 0 -> 434811 bytes frontend/app/data/img/photo32.jpg | Bin 0 -> 38005 bytes frontend/app/data/img/photo4.png | Bin 0 -> 732549 bytes frontend/app/data/img/photo45.png | Bin 0 -> 142446 bytes frontend/app/data/img/photo46.png | Bin 0 -> 90263 bytes frontend/app/data/img/photo47.png | Bin 0 -> 130838 bytes frontend/app/data/img/photo48.png | Bin 0 -> 172662 bytes frontend/app/data/img/photo49.png | Bin 0 -> 183762 bytes frontend/app/data/img/photo5.png | Bin 0 -> 851007 bytes frontend/app/data/img/photo6.png | Bin 0 -> 1020990 bytes frontend/app/data/index.js | 52 ++++++++ frontend/app/data/raw/articles.js | 173 ++++++++++++++++++++++++++ frontend/app/data/raw/cards.js | 40 ++++++ frontend/app/data/raw/conversations.js | 85 +++++++++++++ frontend/app/data/raw/notifications.js | 59 +++++++++ frontend/app/data/raw/users.js | 194 ++++++++++++++++++++++++++++++ 47 files changed, 648 insertions(+) create mode 100644 frontend/app/data/dataGenerator.js create mode 100755 frontend/app/data/img/Image1.png create mode 100755 frontend/app/data/img/Image10.png create mode 100755 frontend/app/data/img/Image11.png create mode 100755 frontend/app/data/img/Image12.png create mode 100755 frontend/app/data/img/Image2.png create mode 100755 frontend/app/data/img/Image3.png create mode 100755 frontend/app/data/img/Image4.png create mode 100755 frontend/app/data/img/Image5.png create mode 100755 frontend/app/data/img/Image6.png create mode 100755 frontend/app/data/img/Image7.png create mode 100755 frontend/app/data/img/Image8.png create mode 100755 frontend/app/data/img/Image9.png create mode 100755 frontend/app/data/img/avatars/Image1.png create mode 100755 frontend/app/data/img/avatars/Image10.png create mode 100755 frontend/app/data/img/avatars/Image11.png create mode 100755 frontend/app/data/img/avatars/Image12.png create mode 100755 frontend/app/data/img/avatars/Image2.png create mode 100755 frontend/app/data/img/avatars/Image3.png create mode 100755 frontend/app/data/img/avatars/Image4.png create mode 100755 frontend/app/data/img/avatars/Image5.png create mode 100755 frontend/app/data/img/avatars/Image6.png create mode 100755 frontend/app/data/img/avatars/Image7.png create mode 100755 frontend/app/data/img/avatars/Image8.png create mode 100755 frontend/app/data/img/avatars/Image9.png create mode 100644 frontend/app/data/img/photo1.png create mode 100644 frontend/app/data/img/photo17.png create mode 100644 frontend/app/data/img/photo18.png create mode 100644 frontend/app/data/img/photo19.png create mode 100644 frontend/app/data/img/photo2.png create mode 100644 frontend/app/data/img/photo20.png create mode 100644 frontend/app/data/img/photo3.png create mode 100644 frontend/app/data/img/photo32.jpg create mode 100644 frontend/app/data/img/photo4.png create mode 100644 frontend/app/data/img/photo45.png create mode 100644 frontend/app/data/img/photo46.png create mode 100644 frontend/app/data/img/photo47.png create mode 100644 frontend/app/data/img/photo48.png create mode 100644 frontend/app/data/img/photo49.png create mode 100644 frontend/app/data/img/photo5.png create mode 100644 frontend/app/data/img/photo6.png create mode 100644 frontend/app/data/index.js create mode 100644 frontend/app/data/raw/articles.js create mode 100644 frontend/app/data/raw/cards.js create mode 100644 frontend/app/data/raw/conversations.js create mode 100644 frontend/app/data/raw/notifications.js create mode 100644 frontend/app/data/raw/users.js (limited to 'frontend/app/data') diff --git a/frontend/app/data/dataGenerator.js b/frontend/app/data/dataGenerator.js new file mode 100644 index 0000000..1a171cf --- /dev/null +++ b/frontend/app/data/dataGenerator.js @@ -0,0 +1,45 @@ +import _ from 'lodash'; +import users from './raw/users'; +import articles from './raw/articles'; +import notifications from './raw/notifications'; +import conversations from './raw/conversations'; + +const populateArticles = () => { + articles.forEach(article => { + const userArticle = article; + const userId = articles.indexOf(article) % users.length; + userArticle.user = _.find(users, x => x.id === userId) || users[0]; + userArticle.comments.map(comment => { + const userComment = comment; + const commentUserId = article.comments.indexOf(comment) % users.length; + userComment.user = _.find(users, x => x.id === commentUserId) || users[0]; + return userComment; + }); + return userArticle; + }); +}; + +const populateNotifications = () => { + notifications.map(notification => { + const userNotification = notification; + const userId = notifications.indexOf(notification) % users.length; + userNotification.user = _.find(users, x => x.id === userId) || users[0]; + return userNotification; + }); +}; + +const populateConversations = () => { + conversations.map(conversation => { + const userConversation = conversation; + userConversation.withUser = _.find(users, x => x.id === conversation.withUserId) || users[0]; + return userConversation; + }); +}; + +const populate = () => { + populateArticles(); + populateNotifications(); + populateConversations(); +}; + +export default populate; diff --git a/frontend/app/data/img/Image1.png b/frontend/app/data/img/Image1.png new file mode 100755 index 0000000..51a7b11 Binary files /dev/null and b/frontend/app/data/img/Image1.png differ diff --git a/frontend/app/data/img/Image10.png b/frontend/app/data/img/Image10.png new file mode 100755 index 0000000..1d5a19b Binary files /dev/null and b/frontend/app/data/img/Image10.png differ diff --git a/frontend/app/data/img/Image11.png b/frontend/app/data/img/Image11.png new file mode 100755 index 0000000..a604b67 Binary files /dev/null and b/frontend/app/data/img/Image11.png differ diff --git a/frontend/app/data/img/Image12.png b/frontend/app/data/img/Image12.png new file mode 100755 index 0000000..8883ccf Binary files /dev/null and b/frontend/app/data/img/Image12.png differ diff --git a/frontend/app/data/img/Image2.png b/frontend/app/data/img/Image2.png new file mode 100755 index 0000000..0774f0a Binary files /dev/null and b/frontend/app/data/img/Image2.png differ diff --git a/frontend/app/data/img/Image3.png b/frontend/app/data/img/Image3.png new file mode 100755 index 0000000..3451fe3 Binary files /dev/null and b/frontend/app/data/img/Image3.png differ diff --git a/frontend/app/data/img/Image4.png b/frontend/app/data/img/Image4.png new file mode 100755 index 0000000..2cc648c Binary files /dev/null and b/frontend/app/data/img/Image4.png differ diff --git a/frontend/app/data/img/Image5.png b/frontend/app/data/img/Image5.png new file mode 100755 index 0000000..b407820 Binary files /dev/null and b/frontend/app/data/img/Image5.png differ diff --git a/frontend/app/data/img/Image6.png b/frontend/app/data/img/Image6.png new file mode 100755 index 0000000..886ad46 Binary files /dev/null and b/frontend/app/data/img/Image6.png differ diff --git a/frontend/app/data/img/Image7.png b/frontend/app/data/img/Image7.png new file mode 100755 index 0000000..c4ed0be Binary files /dev/null and b/frontend/app/data/img/Image7.png differ diff --git a/frontend/app/data/img/Image8.png b/frontend/app/data/img/Image8.png new file mode 100755 index 0000000..e9e67b1 Binary files /dev/null and b/frontend/app/data/img/Image8.png differ diff --git a/frontend/app/data/img/Image9.png b/frontend/app/data/img/Image9.png new file mode 100755 index 0000000..fd5112a Binary files /dev/null and b/frontend/app/data/img/Image9.png differ diff --git a/frontend/app/data/img/avatars/Image1.png b/frontend/app/data/img/avatars/Image1.png new file mode 100755 index 0000000..7e3754a Binary files /dev/null and b/frontend/app/data/img/avatars/Image1.png differ diff --git a/frontend/app/data/img/avatars/Image10.png b/frontend/app/data/img/avatars/Image10.png new file mode 100755 index 0000000..2b5c16d Binary files /dev/null and b/frontend/app/data/img/avatars/Image10.png differ diff --git a/frontend/app/data/img/avatars/Image11.png b/frontend/app/data/img/avatars/Image11.png new file mode 100755 index 0000000..3907308 Binary files /dev/null and b/frontend/app/data/img/avatars/Image11.png differ diff --git a/frontend/app/data/img/avatars/Image12.png b/frontend/app/data/img/avatars/Image12.png new file mode 100755 index 0000000..5429eeb Binary files /dev/null and b/frontend/app/data/img/avatars/Image12.png differ diff --git a/frontend/app/data/img/avatars/Image2.png b/frontend/app/data/img/avatars/Image2.png new file mode 100755 index 0000000..fb2123b Binary files /dev/null and b/frontend/app/data/img/avatars/Image2.png differ diff --git a/frontend/app/data/img/avatars/Image3.png b/frontend/app/data/img/avatars/Image3.png new file mode 100755 index 0000000..823e5e1 Binary files /dev/null and b/frontend/app/data/img/avatars/Image3.png differ diff --git a/frontend/app/data/img/avatars/Image4.png b/frontend/app/data/img/avatars/Image4.png new file mode 100755 index 0000000..86b24ba Binary files /dev/null and b/frontend/app/data/img/avatars/Image4.png differ diff --git a/frontend/app/data/img/avatars/Image5.png b/frontend/app/data/img/avatars/Image5.png new file mode 100755 index 0000000..508f7ab Binary files /dev/null and b/frontend/app/data/img/avatars/Image5.png differ diff --git a/frontend/app/data/img/avatars/Image6.png b/frontend/app/data/img/avatars/Image6.png new file mode 100755 index 0000000..d08e3d0 Binary files /dev/null and b/frontend/app/data/img/avatars/Image6.png differ diff --git a/frontend/app/data/img/avatars/Image7.png b/frontend/app/data/img/avatars/Image7.png new file mode 100755 index 0000000..30330de Binary files /dev/null and b/frontend/app/data/img/avatars/Image7.png differ diff --git a/frontend/app/data/img/avatars/Image8.png b/frontend/app/data/img/avatars/Image8.png new file mode 100755 index 0000000..840aab5 Binary files /dev/null and b/frontend/app/data/img/avatars/Image8.png differ diff --git a/frontend/app/data/img/avatars/Image9.png b/frontend/app/data/img/avatars/Image9.png new file mode 100755 index 0000000..d111f6d Binary files /dev/null and b/frontend/app/data/img/avatars/Image9.png differ diff --git a/frontend/app/data/img/photo1.png b/frontend/app/data/img/photo1.png new file mode 100644 index 0000000..a49e452 Binary files /dev/null and b/frontend/app/data/img/photo1.png differ diff --git a/frontend/app/data/img/photo17.png b/frontend/app/data/img/photo17.png new file mode 100644 index 0000000..2575aef Binary files /dev/null and b/frontend/app/data/img/photo17.png differ diff --git a/frontend/app/data/img/photo18.png b/frontend/app/data/img/photo18.png new file mode 100644 index 0000000..2f4d60f Binary files /dev/null and b/frontend/app/data/img/photo18.png differ diff --git a/frontend/app/data/img/photo19.png b/frontend/app/data/img/photo19.png new file mode 100644 index 0000000..a893ed0 Binary files /dev/null and b/frontend/app/data/img/photo19.png differ diff --git a/frontend/app/data/img/photo2.png b/frontend/app/data/img/photo2.png new file mode 100644 index 0000000..96cbcee Binary files /dev/null and b/frontend/app/data/img/photo2.png differ diff --git a/frontend/app/data/img/photo20.png b/frontend/app/data/img/photo20.png new file mode 100644 index 0000000..8c10cf2 Binary files /dev/null and b/frontend/app/data/img/photo20.png differ diff --git a/frontend/app/data/img/photo3.png b/frontend/app/data/img/photo3.png new file mode 100644 index 0000000..7197a4a Binary files /dev/null and b/frontend/app/data/img/photo3.png differ diff --git a/frontend/app/data/img/photo32.jpg b/frontend/app/data/img/photo32.jpg new file mode 100644 index 0000000..6237110 Binary files /dev/null and b/frontend/app/data/img/photo32.jpg differ diff --git a/frontend/app/data/img/photo4.png b/frontend/app/data/img/photo4.png new file mode 100644 index 0000000..59d901b Binary files /dev/null and b/frontend/app/data/img/photo4.png differ diff --git a/frontend/app/data/img/photo45.png b/frontend/app/data/img/photo45.png new file mode 100644 index 0000000..f403555 Binary files /dev/null and b/frontend/app/data/img/photo45.png differ diff --git a/frontend/app/data/img/photo46.png b/frontend/app/data/img/photo46.png new file mode 100644 index 0000000..2c9ae21 Binary files /dev/null and b/frontend/app/data/img/photo46.png differ diff --git a/frontend/app/data/img/photo47.png b/frontend/app/data/img/photo47.png new file mode 100644 index 0000000..4fc232b Binary files /dev/null and b/frontend/app/data/img/photo47.png differ diff --git a/frontend/app/data/img/photo48.png b/frontend/app/data/img/photo48.png new file mode 100644 index 0000000..881c554 Binary files /dev/null and b/frontend/app/data/img/photo48.png differ diff --git a/frontend/app/data/img/photo49.png b/frontend/app/data/img/photo49.png new file mode 100644 index 0000000..db0f107 Binary files /dev/null and b/frontend/app/data/img/photo49.png differ diff --git a/frontend/app/data/img/photo5.png b/frontend/app/data/img/photo5.png new file mode 100644 index 0000000..ba61c08 Binary files /dev/null and b/frontend/app/data/img/photo5.png differ diff --git a/frontend/app/data/img/photo6.png b/frontend/app/data/img/photo6.png new file mode 100644 index 0000000..8c93751 Binary files /dev/null and b/frontend/app/data/img/photo6.png differ diff --git a/frontend/app/data/index.js b/frontend/app/data/index.js new file mode 100644 index 0000000..2c5abb0 --- /dev/null +++ b/frontend/app/data/index.js @@ -0,0 +1,52 @@ +import _ from 'lodash'; +import populate from './dataGenerator'; +import users from './raw/users'; +import articles from './raw/articles'; +import notifications from './raw/notifications'; +import conversations from './raw/conversations'; +import cards from './raw/cards'; + +class DataProvider { + getUser(id = 1) { + return _.find(users, x => x.id === id); + } + + getUsers() { + return users; + } + + getNotifications() { + return notifications; + } + + getArticles(type = 'article') { + return _.filter(articles, x => x.type === type); + } + + getArticle(id) { + return _.find(articles, x => x.id === id); + } + + + getConversation(userId = 1) { + return _.find(conversations, x => x.withUser.id === userId); + } + + getChatList() { + return conversations; + } + + getComments(postId = 1) { + return this.getArticle(postId).comments; + } + + getCards() { + return cards; + } + + populateData() { + populate(); + } +} + +export const data = new DataProvider(); diff --git a/frontend/app/data/raw/articles.js b/frontend/app/data/raw/articles.js new file mode 100644 index 0000000..38bff3b --- /dev/null +++ b/frontend/app/data/raw/articles.js @@ -0,0 +1,173 @@ +const articles = [{ + id: 1, + photo: require('../img/photo1.png'), + type: 'article', + time: -300, + header: 'Plants Of Our Nature', + text: 'Ferns are a very old group of plants. They first appeared on Earth in the middle Devonian Era about 360 million years ago, just before the Carboniferous Era. Most of the modern fern families we see today first appeared in the Late Cretaceous about 45 or 50 million years ago – during the age of the dinosaurs!', + comments: [{ + id: 1, + text: 'Aliquam sit amet diam in magna bibendum imperdiet. Nullam orci pede, venenatis non, sodales sed, tincidunt eu, felis. Fusce posuere felis sed lacus. Morbi sem mauris, laoreet ut, rhoncus aliquet, pulvinar sed, nisl. Nunc rhoncus dui vel sem.', + time: 0, + }, { + id: 2, + text: 'Quisque ut erat. Curabitur gravida nisi at nibh.', + time: -311, + }, { + id: 3, + text: 'Etiam pretium iaculis justo. In hac habitasse platea dictumst. Etiam faucibus cursus urna. Ut tellus. Nulla ut erat id mauris vulputate elementum.', + time: -622, + }, { + id: 4, + text: 'In est risus, auctor sed, tristique in, tempus sit amet, sem.', + time: -933, + }, { + id: 5, + text: 'In hac habitasse platea dictumst.', + time: -1244, + }, { + id: 6, + text: 'In hac habitasse platea dictumst. Morbi vestibulum, velit id pretium iaculis, diam erat fermentum justo, nec condimentum neque sapien placerat ante. Nulla justo.', + time: -1555, + }, { + id: 7, + text: 'Vivamus vel nulla eget eros elementum pellentesque. Quisque porta volutpat erat.', + time: -1866, + }, { + id: 8, + text: 'Duis mattis egestas metus. Aenean fermentum. Donec ut mauris eget massa tempor convallis. Nulla neque libero, convallis eget, eleifend luctus, ultricies eu, nibh.', + time: -2177, + }], +}, { + id: 2, + photo: require('../img/photo2.png'), + type: 'article', + time: -1373, + header: 'Balloon Trip', + text: 'Mostly it’s about hot air - for without that balloons are just big empty bags with baskets on the bottom. ' + + 'The Montgolfier brothers had great hopes when they made the first manned flight. ' + + 'They thought balloons would take off as an available means of commercial flight. ' + + 'Instead, they have remained the province of sport, adventure and enjoyment. ' + + 'Modern balloons are a lot more sophisticated than their ancestors, ' + + 'but they still retain the essential characteristics which makes them so attractive. ' + + 'A plane is claustrophobic and very noisy. Balloons are so gentle and majestic and silent when the burner’s not working.', + comments: [], +}, { + id: 3, + photo: require('../img/photo3.png'), + type: 'article', + time: -2446, + header: 'Sea World', + text: 'The worlds oceans cover two thirds of our planet. As we take a dive from the rocks or paddle out from the beach, we are entering a place which is teeming with marine life. ' + + 'From fish to crabs to octopuses or even sea creatures that have not yet been discovered, the oceans and its coastlines are an amazing and interesting foray of water wildlife.', + comments: [], +}, { + id: 4, + photo: require('../img/photo4.png'), + type: 'article', + time: -3519, + header: 'Flowers', + text: 'Flowers did not always exist; they first appeared 140 million years ago. Before that, ferns and cone bearing trees dominated the earth. ' + + 'Several centuries ago in Holland, tulips were more valuable than gold. ' + + 'Broccoli is actually a flower. Some plants such as orchids do not need soil to grow-they get all of their nutrients from the air.', + comments: [], +}, { + id: 5, + photo: require('../img/photo5.png'), + type: 'article', + time: -4592, + header: 'Birds Of Our Planet', + text: 'Birds have feathers, wings, lay eggs and are warm blooded. There are around 10000 different species of birds worldwide. ' + + 'The Ostrich is the largest bird in the world. It also lays the largest eggs and has the fastest maximum running speed (97 kph). ' + + 'Scientists believe that birds evolved from theropod dinosaurs. Birds have hollow bones which help them fly. ' + + 'Some bird species are intelligent enough to create and use tools.', + comments: [], +}, { + id: 6, + photo: require('../img/photo6.png'), + type: 'article', + time: -5665, + header: 'Mountains', + text: 'Mountains make up about one-fifth of the world\'s landscape, and provide homes to at least one-tenth of the world\'s people. ' + + 'The tallest known mountain in the solar system is Olympus Mons, located on Mars. ' + + 'There are mountains under the surface of the sea! ' + + 'Mountains occur more often in oceans than on land; some islands are the peaks of mountains coming out of the water.', + comments: [], +}, { + id: 7, + photo: require('../img/photo45.png'), + type: 'fact', + time: -5665, + header: 'Smile and Frown', + text: 'It takes 17 muscles to smile and 43 to frown.', + comments: [], +}, { + id: 8, + photo: require('../img/photo46.png'), + type: 'fact', + time: -8373, + header: 'Interesting Fact', + text: 'Dolphins sleep with one eye open.', + comments: [], +}, { + id: 9, + photo: require('../img/photo47.png'), + type: 'fact', + time: -565, + header: 'Elephant', + text: 'Elephant is one of the few mammals that can\'t jump.', + comments: [], +}, { + id: 10, + photo: require('../img/photo48.png'), + type: 'fact', + time: -52365, + header: 'Cold Water', + text: 'Cold water weighs less than hot water.', + comments: [], +}, { + id: 11, + photo: require('../img/photo49.png'), + type: 'fact', + time: -1295, + header: 'Our Eyes', + text: 'You blink over 10,000,000 times a year.', + comments: [], +}, { + id: 12, + photo: require('../img/photo17.png'), + type: 'post', + time: -300, + title: 'My Little Kitten', + text: 'I have got a cat. Her name is Matilda. She is quite old for a cat. She is eleven years old. Matilda is very' + + ' fluffy. Her back is black and her belly and chest are white. She also has a black muzzle with long white whiskers. ' + + 'Her legs and paws are white. Matilda has big eyes. Her eyes are light green, but they become yellow in bright sunlight. I love my cat.', + comments: [], +}, { + id: 13, + photo: require('../img/photo18.png'), + type: 'post', + time: -1373, + header: 'Interesting Fact', + text: 'One chef prepared a delicious cake with apples and named it in honor of his beloved Charlotte.', + comments: [], +}, { + id: 14, + photo: require('../img/photo19.png'), + type: 'post', + time: -2446, + header: 'Music In Our Life', + text: 'The scientists say that they can define your character if they know what music you like.', + comments: [], +}, { + id: 15, + photo: require('../img/photo20.png'), + type: 'post', + time: -3519, + header: 'Exciting Adventure', + text: 'My trip to Spain last summer. I think that it was the most interesting trip in my life.', + comments: [], +}, +]; + +export default articles; diff --git a/frontend/app/data/raw/cards.js b/frontend/app/data/raw/cards.js new file mode 100644 index 0000000..7533e89 --- /dev/null +++ b/frontend/app/data/raw/cards.js @@ -0,0 +1,40 @@ +const cards = + [{ + id: 1, + name: 'Cindee Seton', + bank: 'CitiBank', + amount: 440, + date: '07/19', + cardNo: '3538********8699', + type: 'visa', + currency: 'usd', + }, { + id: 2, + name: 'Cindee Seton', + bank: 'CitiBank', + amount: 1740, + date: '07/19', + cardNo: '5602********1161', + type: 'mastercard', + currency: 'eur', + }, { + id: 3, + name: 'Cindee Seton', + bank: 'CitiBank', + amount: 2120, + date: '09/24', + cardNo: '3379********5427', + type: 'axp', + currency: 'usd', + }, { + id: 4, + name: 'Cindee Seton', + bank: 'CitiBank', + amount: 3150, + date: '02/21', + cardNo: '4911********8396', + type: 'visa', + currency: 'eur', + }]; + +export default cards; diff --git a/frontend/app/data/raw/conversations.js b/frontend/app/data/raw/conversations.js new file mode 100644 index 0000000..2e778e7 --- /dev/null +++ b/frontend/app/data/raw/conversations.js @@ -0,0 +1,85 @@ +export const Conversations = [ + { + withUserId: 1, + messages: [ + { + id: 0, + type: 'out', + time: -300, + text: 'Hey, how’ve you been?', + }, + { + id: 1, + time: -240, + type: 'in', + text: 'Yeah, not bad, actually I finally got a call back from that job that I interviewed for, and guess what? I got it!', + }, + { + id: 2, + time: -230, + type: 'out', + text: 'Awesome! Yeah, well done, that’s really great to hear. Do you start right away?', + }, + { + id: 3, + time: -100, + type: 'out', + text: 'Well, uhm yes and no, I go in for training tomorrow, but I don’t really start until next week. ' + + 'Do you have some time this weekend, maybe we could get together?', + }, + { + id: 4, + time: -45, + type: 'in', + text: 'I’ve got a lot planned this weekend, just running around, doing loads of stuff, but Friday’s pretty open.', + }, + { + id: 5, + time: -5, + type: 'out', + text: 'That works pretty well for me!', + }], + }, + { + withUserId: 5, + messages: [ + { + id: 0, + type: 'out', + time: -300, + text: 'I have no idea what to buy for Mary for her birthday.', + }, + { + id: 1, + time: -240, + type: 'in', + text: 'Me, neither! Would you like to go in and buy her a gift together?', + }, + { + id: 2, + time: -100, + type: 'out', + text: 'If I remember right, she likes music, skiing, and reading', + }, + { + id: 3, + time: -45, + type: 'out', + text: 'You know, maybe we could get her some concert tickets. Who would know her favorite groups?', + }, + { + id: 4, + time: -25, + type: 'in', + text: 'Her roommate, Malia, might know what her favorite groups are.', + }, + { + id: 5, + time: -5, + type: 'out', + text: 'Cool! Let\'s give Malia a call and ask her for her help right now', + }], + }, +]; + +export default Conversations; diff --git a/frontend/app/data/raw/notifications.js b/frontend/app/data/raw/notifications.js new file mode 100644 index 0000000..967bec0 --- /dev/null +++ b/frontend/app/data/raw/notifications.js @@ -0,0 +1,59 @@ +const notifications = [ + { + id: 1, + type: 'follow', + description: 'liked profile page for Dribbble App Design Concept', + time: -1, + }, { + id: 2, + type: 'like', + description: 'liked a photo on your album', + time: -271, + attach: require('../img/Image8.png'), + }, { + id: 3, + type: 'like', + description: 'liked a photo on your album', + time: -541, + attach: require('../img/Image8.png'), + }, { + id: 4, + type: 'like', + description: 'liked profile page for Dribbble App Design Concept', + time: -811, + }, { + id: 5, + type: 'like', + description: 'liked profile page for Dribbble App Design Concept', + time: -1081, + }, { + id: 6, + type: 'follow', + description: 'followed you UI/UX Designer and Interaction Designer', + time: -1351, + }, { + id: 7, + type: 'follow', + description: 'liked a photo on your album', + time: -1621, + attach: require('../img/Image8.png'), + }, { + id: 8, + type: 'follow', + description: 'followed you iOS Developer and Graphic Designer', + time: -1891, + }, { + id: 9, + type: 'follow', + description: 'liked profile page for Dribbble App Design Concept', + time: -2161, + }, { + id: 10, + type: 'like', + description: 'liked a photo on your album', + time: -2431, + attach: require('../img/Image8.png'), + }, +]; + +export default notifications; diff --git a/frontend/app/data/raw/users.js b/frontend/app/data/raw/users.js new file mode 100644 index 0000000..d7e651a --- /dev/null +++ b/frontend/app/data/raw/users.js @@ -0,0 +1,194 @@ +const images = [ + require('../img/Image10.png'), + require('../img/Image11.png'), + require('../img/Image2.png'), + require('../img/Image3.png'), + require('../img/Image4.png'), + require('../img/Image1.png'), + require('../img/Image12.png'), + require('../img/Image8.png'), + require('../img/Image6.png'), + require('../img/Image9.png'), + require('../img/Image5.png'), + require('../img/Image7.png'), +]; + +const users = [{ + id: 1, + firstName: 'Helen', + lastName: 'Gilbert', + phone: '+1 415 670 90 34', + country: 'Belarus', + email: 'h.gilbert@akveo.com', + password: '123456', + newPassword: '12345678', + confirmPassword: '12345678', + photo: require('../img/avatars/Image9.png'), + postCount: 86, + followersCount: 22102, + followingCount: 536, + images, + +}, +{ + id: 2, + firstName: 'Emilie', + lastName: 'McDiarmid', + email: 'emcdiarmid1@yale.edu', + country: 'China', + password: 'YyKgJ8A3b4b', + newPassword: 'DpCRPYW7Fgy', + confirmPassword: 'DpCRPYW7Fgy', + postCount: 95, + phone: '86-(261)670-4133', + followingCount: 975, + followersCount: 1703, + images, + photo: require('../img/avatars/Image1.png'), +}, +{ + id: 3, + firstName: 'Sandra', + lastName: 'Paver', + email: 'spaver2@ox.ac.uk', + country: 'Greece', + password: '0BCeHRlt84Zo', + newPassword: '61BaifSE20w', + confirmPassword: '61BaifSE20w', + postCount: 60, + phone: '30-(524)246-5851', + followingCount: 736, + followersCount: 1534, + images, + photo: require('../img/avatars/Image3.png'), +}, +{ + id: 4, + firstName: 'Nancy', + lastName: 'O\'Crevan', + email: 'nocrevan3@zimbio.com', + country: 'China', + password: 'W0NxvHo2C', + newPassword: 'vj4ueTKK', + confirmPassword: 'vj4ueTKK', + postCount: 78, + phone: '86-(499)721-5796', + followingCount: 86, + followersCount: 3303, + images, + photo: require('../img/avatars/Image4.png'), +}, +{ + id: 5, + firstName: 'Clayton', + lastName: 'O\'Mullaney', + email: 'cmullaney4@tripadvisor.com', + country: 'Philippines', + password: 'ZlzECwoN', + newPassword: 'N9l5KLpBW', + confirmPassword: 'N9l5KLpBW', + postCount: 37, + phone: '63-(210)188-9126', + followingCount: 745, + followersCount: 2703, + images, + photo: require('../img/avatars/Image5.png'), +}, +{ + id: 6, + firstName: 'Carlee', + lastName: 'Aubry', + email: 'caubry5@nytimes.com', + country: 'China', + password: 'jUIz9PNbU', + newPassword: 'nJRP3MdIh4U', + confirmPassword: 'nJRP3MdIh4U', + postCount: 89, + phone: '86-(939)186-9659', + followingCount: 444, + followersCount: 8432, + images, + photo: require('../img/avatars/Image6.png'), +}, +{ + id: 7, + firstName: 'Patrick', + lastName: 'Holden', + email: 'p.holden6@woothemes.com', + country: 'Indonesia', + password: 'inOEsoAlnh', + newPassword: '60z2bgL', + confirmPassword: '60z2bgL', + postCount: 48, + phone: '62-(373)613-7229', + followingCount: 731, + followersCount: 18230, + images, + photo: require('../img/avatars/Image7.png'), +}, +{ + id: 8, + firstName: 'Edward', + lastName: 'Storton', + email: 'estorton7@google.ca', + country: 'Nigeria', + password: 'e1H56GRP', + newPassword: 't2a1FbI8oCo', + confirmPassword: 't2a1FbI8oCo', + postCount: 100, + phone: '234-(135)610-8989', + followingCount: 667, + followersCount: 4234, + images, + photo: require('../img/avatars/Image8.png'), +}, +{ + id: 9, + firstName: 'Carole', + lastName: 'Blundon', + email: 'cblundon8@google.pl', + country: 'United States', + password: 't9xI6skPz', + newPassword: 'y84Jquaxg8', + confirmPassword: 'y84Jquaxg8', + postCount: 74, + phone: '1-(913)904-8423', + followingCount: 750, + followersCount: 1032, + images, + photo: require('../img/avatars/Image10.png'), +}, +{ + id: 10, + firstName: 'Bryce', + lastName: 'Curle', + email: 'bcurled@paginegialle.it', + country: 'Indonesia', + password: 'ACCsjlPq', + newPassword: 'm05jBM1S88', + confirmPassword: 'm05jBM1S88', + postCount: 54, + phone: '62-(688)911-5487', + followingCount: 343, + followersCount: 3721, + images, + photo: require('../img/avatars/Image11.png'), +}, +{ + id: 11, + firstName: 'Babara', + lastName: 'Greasty', + email: 'bgreastya@netlog.com', + country: 'Russia', + password: '0SuOdS8XQK', + newPassword: 'f49mZd49eGHm', + confirmPassword: 'f49mZd49eGHm', + postCount: 58, + phone: '7-(121)282-0448', + followingCount: 165, + followersCount: 5433, + images, + photo: require('../img/avatars/Image12.png'), +}]; + +export default users; -- cgit v1.2.3