Added faker and removed some placeholder data
This commit is contained in:
@@ -1,44 +0,0 @@
|
||||
import { FollowedStreams } from '../types';
|
||||
|
||||
const streams: FollowedStreams = {
|
||||
data: [
|
||||
{
|
||||
id: '41375541868',
|
||||
user_id: '459331509',
|
||||
user_login: 'auronplay',
|
||||
user_name: 'auronplay',
|
||||
game_id: '494131',
|
||||
game_name: 'Little Nightmares',
|
||||
type: 'live',
|
||||
title: 'hablamos y le damos a Little Nightmares 1',
|
||||
viewer_count: 78365,
|
||||
started_at: '2021-03-10T15:04:21Z',
|
||||
language: 'es',
|
||||
thumbnail_url: 'https://static-cdn.jtvnw.net/previews-ttv/live_user_auronplay-250x250.jpg',
|
||||
tag_ids: [],
|
||||
is_mature: false,
|
||||
},
|
||||
{
|
||||
id: '41375541869',
|
||||
user_id: '459331510',
|
||||
user_login: 'xqcow',
|
||||
user_name: 'xqcow',
|
||||
game_id: '494131',
|
||||
game_name: 'Just Chatting',
|
||||
type: 'live',
|
||||
title: 'slam',
|
||||
viewer_count: 56230,
|
||||
started_at: '2022-09-29T14:04:21Z',
|
||||
language: 'en',
|
||||
thumbnail_url: 'https://static-cdn.jtvnw.net/previews-ttv/live_user_xqcow-250x250.jpg',
|
||||
tag_ids: [],
|
||||
is_mature: false,
|
||||
},
|
||||
],
|
||||
pagination: {
|
||||
cursor:
|
||||
'eyJiIjp7IkN1cnNvciI6ImV5SnpJam8zT0RNMk5TNDBORFF4TlRjMU1UY3hOU3dpWkNJNlptRnNjMlVzSW5RaU9uUnlkV1Y5In0sImEiOnsiQ3Vyc29yIjoiZXlKeklqb3hOVGs0TkM0MU56RXhNekExTVRZNU1ESXNJbVFpT21aaGJITmxMQ0owSWpwMGNuVmxmUT09In19',
|
||||
},
|
||||
};
|
||||
|
||||
export default streams;
|
@@ -1,28 +0,0 @@
|
||||
import { UserFollows } from '../types';
|
||||
|
||||
export const following: UserFollows = {
|
||||
total: 4,
|
||||
data: [
|
||||
{
|
||||
from_id: '171003792',
|
||||
from_login: 'niku',
|
||||
from_name: 'niku',
|
||||
to_id: '23161357',
|
||||
to_name: 'LIRIK',
|
||||
to_login: 'lirik',
|
||||
followed_at: '2017-08-22T22:55:24Z',
|
||||
},
|
||||
{
|
||||
from_id: '171003792',
|
||||
from_login: 'niku',
|
||||
from_name: 'niku',
|
||||
to_id: '23161358',
|
||||
to_name: 'Cowser',
|
||||
to_login: 'cowser',
|
||||
followed_at: '2017-08-22T22:55:24Z',
|
||||
},
|
||||
],
|
||||
pagination: {
|
||||
cursor: 'eyJiIjpudWxsLCJhIjoiMTUwMzQ0MTc3NjQyNDQyMjAwMCJ9',
|
||||
},
|
||||
};
|
@@ -1,12 +0,0 @@
|
||||
export const categories = {
|
||||
data: [
|
||||
{
|
||||
id: '33214',
|
||||
name: 'Just Chatting',
|
||||
box_art_url: 'https://static-cdn.jtvnw.net/ttv-boxart/509658-144x192.jpg',
|
||||
},
|
||||
],
|
||||
pagination: {
|
||||
cursor: 'eyJiIjpudWxsLCJhIjp7IkN',
|
||||
},
|
||||
};
|
9
client/placeholder/chatMessages.ts
Normal file
9
client/placeholder/chatMessages.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { ChatMessage } from "../types"
|
||||
import { faker } from "@faker-js/faker"
|
||||
|
||||
export const createRandomMessage = (): ChatMessage => {
|
||||
return {
|
||||
author: faker.name.firstName(),
|
||||
content: faker.lorem.words(10),
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user