myems-web/src/data/chat/messages.js

Summary

Maintainability
F
3 days
Test Coverage
import chatImg1 from '../../assets/img/chat/1.jpg';
import chatImg2 from '../../assets/img/chat/2.jpg';
import chatImg3 from '../../assets/img/chat/3.jpg';
import chatImg4 from '../../assets/img/chat/4.jpg';
import chatImg5 from '../../assets/img/chat/5.jpg';
import chatImg6 from '../../assets/img/chat/6.jpg';
import chatImg7 from '../../assets/img/chat/7.jpg';
import chatImg8 from '../../assets/img/chat/8.jpg';
import chatImg9 from '../../assets/img/chat/9.jpg';
import chatImg10 from '../../assets/img/chat/10.jpg';
import chatImg11 from '../../assets/img/chat/11.jpg';
import chatImg12 from '../../assets/img/chat/12.jpg';

export default [
  {
    id: 0,
    content: [
      {
        senderUserId: 1,
        message:
          'Yes, in an organization stature, this is a must. Besides, we need to quickly establish all other professional appearances, e.g., having a website where members’ profile will be displayed along with additional organizational information. Providing services to existing members is more important than attracting new members at this moment, in my opinion..',
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      },
      {
        senderUserId: 1,
        message: 'What are you  doing?',
        time: {
          day: 'Thu',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      },
      {
        senderUserId: 3,
        message: {
          text: `I took this pic`,
          attachment: chatImg1
        },
        status: 'seen',
        time: {
          day: 'Tue',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      },
      {
        senderUserId: 3,
        message: 'Nothing!',
        status: 'seen',
        time: {
          day: 'Wed',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      },
      {
        senderUserId: 1,
        message: 'How are you?',
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 6, 2019'
        }
      },
      {
        senderUserId: 3,
        message: 'Fine',
        status: 'delivered',
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 6, 2019'
        }
      },
      {
        senderUserId: 3,
        message: {
          text: `Check out my pics`,
          attachment: [chatImg7, chatImg8, chatImg9, chatImg10, chatImg11, chatImg12]
        },
        status: 'sent',
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 7, 2019'
        }
      },

      {
        senderUserId: 1,
        message: 'I took some excellent images yesterday.',
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 7, 2019'
        }
      },
      {
        senderUserId: 3,
        message: 'Give me the images.',
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 8, 2019'
        }
      },
      {
        senderUserId: 1,
        message: {
          attachment: [chatImg1, chatImg2, chatImg3, chatImg4, chatImg5, chatImg6]
        },
        messageType: 'attachment',
        attachment: '6 photos',
        time: {
          day: 'Tue',
          hour: '11:54 AM',
          date: 'May 8, 2019'
        }
      }
    ]
  },
  {
    id: 1,
    content: [
      {
        senderUserId: 13,
        message:
          'In an organization stature, this is a must. Besides, we need to quickly establish all other professional appearances, e.g. having a website where members’ profile will be displayed along with other organizations information. Providing services to existing members is more important than attracting new members at this moment, in my opinion.',
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      },
      {
        senderUserId: 3,
        message: 'Your are right 👍',
        status: 'seen',
        time: {
          day: 'Sun',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      },
      {
        senderUserId: 2,
        message: 'We should divide the tasks among all other members.',
        status: 'seen',
        time: {
          day: 'Sun',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      },
      {
        senderUserId: 4,
        message: 'I will make a list of all the tasks.',
        status: 'seen',
        time: {
          day: 'Sun',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      },
      {
        senderUserId: 3,
        message: 'I can help you to do this.',
        status: 'seen',
        time: {
          day: 'Sun',
          hour: '11:54 AM',
          date: 'May 7, 2019'
        }
      },
      {
        senderUserId: 1,
        message: 'It will be a great opportunity if I can contribute to this task 😊',
        status: 'seen',
        time: {
          day: 'Sun',
          hour: '11:54 AM',
          date: 'May 7, 2019'
        }
      },
      {
        senderUserId: 5,
        message: `Wow, it will be great!`,
        status: 'seen',
        time: {
          day: 'Sun',
          hour: '11:54 AM',
          date: 'May 7, 2019'
        }
      },
      {
        senderUserId: 5,
        message: `<a href="#!" class="text-primary">@Emma</a> What do you think about the plan?`,
        status: 'seen',
        time: {
          day: 'Sun',
          hour: '11:54 AM',
          date: 'May 7, 2019'
        }
      }
    ]
  },
  {
    id: 2,
    content: [
      {
        senderUserId: 3,
        message: 'Hello',
        status: 'seen',
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      },
      {
        senderUserId: 3,
        message: '🙂',
        status: 'seen',
        time: {
          day: 'Sun',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      }
    ]
  },
  {
    id: 3,
    content: [
      {
        senderUserId: 3,
        message: 'Hello',
        status: 'sent',
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      },
      {
        senderUserId: 13,
        message: 'What are you doing?',
        time: {
          day: 'Sat',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      }
    ]
  },
  {
    id: 4,
    content: [
      {
        senderUserId: 4,
        message: "What's Up!",
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      },
      {
        senderUserId: 3,
        message: 'Hey!',
        status: 'sent',
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      },
      {
        senderUserId: 4,
        message: 'How are you?',
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      }
    ]
  },
  {
    id: 5,
    content: [
      {
        senderUserId: 5,
        message: "What's Up!",
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      },
      {
        senderUserId: 3,
        message: 'Hey!',
        status: 'sent',
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      },
      {
        senderUserId: 3,
        message: '👋',
        status: 'sent',
        time: {
          day: 'Wed',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      }
    ]
  },
  {
    id: 6,
    content: [
      {
        senderUserId: 10,
        message: "What's Up!",
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      },
      {
        senderUserId: 3,
        message: 'Hey!',
        status: 'sent',
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      },
      {
        senderUserId: 10,
        message: 'Hello!',
        time: {
          day: 'Fri',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      }
    ]
  },
  {
    id: 7,
    content: [
      {
        senderUserId: 11,
        message: 'I got my visa',
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      },
      {
        senderUserId: 11,
        message: `Let's have fun`,
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      },
      {
        senderUserId: 3,
        message: '😮',
        status: 'sent',
        time: {
          day: 'Sun',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      }
    ]
  },
  {
    id: 8,
    content: [
      {
        senderUserId: 12,
        message: "What's Up!",
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      },
      {
        senderUserId: 3,
        message: 'Hey!',
        status: 'sent',
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      },
      {
        senderUserId: 12,
        message: 'Hello!',
        time: {
          day: 'Wed',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      }
    ]
  },
  {
    id: 9,
    content: [
      {
        senderUserId: 22,
        message: "What's Up!",
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      },
      {
        senderUserId: 3,
        message: 'Hey!',
        status: 'sent',
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      },
      {
        senderUserId: 3,
        message:
          'Yes, in an organization stature, this is a must. Besides, we need to quickly establish all other professional appearances, e.g., having a website where members’ profile will be displayed along with additional organizational information. Providing services to existing members is more important than attracting new members at this moment, in my opinion..',

        status: 'sent',
        time: {
          day: 'Mon',
          hour: '11:54 AM',
          date: 'May 5, 2019'
        }
      }
    ]
  },
  {
    id: 10,
    content: []
  }
];