tooot/demo/statuses.ts

266 lines
7.7 KiB
TypeScript
Raw Normal View History

2022-12-12 20:43:45 +01:00
const demoStatus: Mastodon.Status[] = [
2021-03-22 00:04:47 +01:00
{
id: '1',
2022-12-12 20:43:45 +01:00
uri: 'https://example.com',
2021-03-22 00:04:47 +01:00
created_at: new Date().toISOString(),
sensitive: false,
visibility: 'public',
replies_count: 9,
reblogs_count: 15,
favourites_count: 8,
favourited: true,
reblogged: false,
muted: false,
bookmarked: false,
content:
'<p>Would you like to try out this simple, beautiful and open-source mobile app for Mastodon? 😊</p>',
application: {
name: 'tooot',
website: 'https://tooot.app'
},
account: {
id: '999',
username: 'tooot📱',
acct: 'tooot@xmflsct.com',
display_name: 'tooot📱',
2022-12-12 20:43:45 +01:00
avatar: 'https://avatars.githubusercontent.com/u/77554750?s=200&v=4',
avatar_static: 'https://avatars.githubusercontent.com/u/77554750?s=200&v=4',
url: '',
header: '',
header_static: '',
locked: false,
discoverable: false,
created_at: new Date().toISOString(),
last_status_at: new Date().toISOString(),
statuses_count: 1,
followers_count: 1,
following_count: 1,
fields: [],
bot: false
2021-03-22 00:04:47 +01:00
},
media_attachments: [],
poll: {
id: '1',
2022-12-12 20:43:45 +01:00
expires_at: new Date().setDate(new Date().getDate() + 5).toString(),
2021-03-22 00:04:47 +01:00
expired: false,
multiple: false,
votes_count: 10,
2022-12-12 20:43:45 +01:00
voters_count: 2,
2021-03-22 00:04:47 +01:00
voted: false,
2022-12-12 20:43:45 +01:00
own_votes: undefined,
2021-03-22 00:04:47 +01:00
options: [
{
title: 'I would love to!',
votes_count: 6
},
{
title: 'Why not give it a go?',
votes_count: 4
}
],
emojis: []
},
2022-12-12 20:43:45 +01:00
mentions: [],
tags: [],
emojis: [],
pinned: false
2021-03-22 00:04:47 +01:00
},
{
id: '2',
2022-12-12 20:43:45 +01:00
uri: 'https://example.com',
created_at: new Date().setMinutes(new Date().getMinutes() - 2).toString(),
2021-03-22 00:04:47 +01:00
sensitive: false,
spoiler_text: '',
visibility: 'public',
replies_count: 5,
reblogs_count: 6,
favourites_count: 11,
favourited: true,
reblogged: false,
muted: false,
bookmarked: false,
content:
'<p>Mastodon is a free and open-source self-hosted social networking service. It allows anyone to host their own server node in the network, and its various separately operated user bases are federated across many different servers. These nodes are referred to as "instances" by Mastodon users.</p>',
2022-12-12 20:43:45 +01:00
application: { name: 'Web' },
2021-03-22 00:04:47 +01:00
account: {
id: '1000',
username: 'Mastodon',
acct: 'mastodon',
display_name: 'Mastodon',
2022-12-12 20:43:45 +01:00
avatar: 'https://mastodon.social/apple-touch-icon.png',
avatar_static: 'https://mastodon.social/apple-touch-icon.png',
url: '',
header: '',
header_static: '',
locked: false,
discoverable: false,
created_at: new Date().toISOString(),
last_status_at: new Date().toISOString(),
statuses_count: 1,
followers_count: 1,
following_count: 1,
fields: [],
bot: false
2021-03-22 00:04:47 +01:00
},
media_attachments: [],
card: {
url: 'https://joinmastodon.org/',
title: 'Giving social networking back to you - Mastodon',
description:
'Mastodon is an open source decentralized social network - by the people for the people. Join the federation and take back control of your social media!',
type: 'link',
2022-12-12 20:43:45 +01:00
image: 'https://mastodon.social/apple-touch-icon.png',
author_name: '',
author_url: '',
provider_name: '',
provider_url: '',
html: '<p></p>',
width: 100,
height: 100,
embed_url: 'https://example.com',
blurhash: ''
2021-03-22 00:04:47 +01:00
},
2022-12-12 20:43:45 +01:00
mentions: [],
tags: [],
emojis: [],
pinned: false
2021-03-22 00:04:47 +01:00
},
{
id: '3',
2022-12-12 20:43:45 +01:00
uri: '',
created_at: new Date().setHours(new Date().getHours() - 1).toString(),
sensitive: false,
2021-03-22 00:04:47 +01:00
spoiler_text: '',
visibility: 'public',
replies_count: 2,
2022-12-12 20:43:45 +01:00
reblogs_count: 1,
2021-03-22 00:04:47 +01:00
favourites_count: 3,
favourited: false,
reblogged: false,
muted: false,
bookmarked: true,
content:
'<p>These servers are connected as a federated social network, allowing users from different servers to interact with each other seamlessly. Once a Mastodon server knows another Mastodon server, it "federates" with the other Mastodon server. Mastodon is a part of the wider Fediverse, allowing its users to also interact with users on different open platforms that support the same protocol, such as PeerTube and Friendica.</p>',
2022-12-12 20:43:45 +01:00
application: { name: 'Web' },
2021-03-22 00:04:47 +01:00
account: {
id: '1001',
username: 'Fediverse',
acct: 'fediverse',
display_name: 'Fediverse',
2022-12-12 20:43:45 +01:00
avatar:
'https://e7.pngegg.com/pngimages/667/514/png-clipart-mastodon-fediverse-social-media-free-software-logo-social-media-blue-text.png',
2021-03-22 00:04:47 +01:00
avatar_static:
2022-12-12 20:43:45 +01:00
'https://e7.pngegg.com/pngimages/667/514/png-clipart-mastodon-fediverse-social-media-free-software-logo-social-media-blue-text.png',
url: '',
header: '',
header_static: '',
locked: false,
discoverable: false,
created_at: new Date().toISOString(),
last_status_at: new Date().toISOString(),
statuses_count: 1,
followers_count: 1,
following_count: 1,
fields: [],
bot: false
2021-03-22 00:04:47 +01:00
},
media_attachments: [],
2022-12-12 20:43:45 +01:00
mentions: [],
tags: [],
emojis: [],
pinned: false
2021-03-22 00:04:47 +01:00
},
{
id: '4',
2022-12-12 20:43:45 +01:00
uri: 'https://example.com',
2021-03-22 00:04:47 +01:00
created_at: '2021-01-24T08:50:00.901Z',
sensitive: false,
visibility: 'public',
replies_count: 0,
reblogs_count: 0,
favourites_count: 0,
favourited: true,
reblogged: false,
muted: false,
bookmarked: false,
content:
'<p>tooot is an open source, simple mobile client for Mastodon. Focusing on your connections while being able to explore the Fediverse.</p>',
application: {
name: 'tooot',
website: 'https://tooot.app'
},
account: {
id: '1002',
username: 'tooot📱',
acct: 'tooot@xmflsct.com',
display_name: 'tooot📱',
2022-12-12 20:43:45 +01:00
avatar: 'https://avatars.githubusercontent.com/u/77554750?s=200&v=4',
avatar_static: 'https://avatars.githubusercontent.com/u/77554750?s=200&v=4',
url: '',
header: '',
header_static: '',
locked: false,
discoverable: false,
created_at: new Date().toISOString(),
last_status_at: new Date().toISOString(),
statuses_count: 1,
followers_count: 1,
following_count: 1,
fields: [],
bot: false
2021-03-22 00:04:47 +01:00
},
media_attachments: [],
2022-12-12 20:43:45 +01:00
mentions: [],
tags: [],
emojis: [],
pinned: false
2021-03-22 00:04:47 +01:00
},
{
id: '5',
2022-12-12 20:43:45 +01:00
uri: 'https://example.com',
2021-03-22 00:04:47 +01:00
created_at: '2021-01-24T07:50:00.901Z',
sensitive: false,
visibility: 'public',
replies_count: 0,
reblogs_count: 0,
favourites_count: 0,
favourited: true,
reblogged: false,
muted: false,
bookmarked: false,
content:
'<p>- tooot supports multiple accounts<br />- tooot supports browsing external instance<br />- tooot aims to support multiple languages</p>',
application: {
name: 'tooot',
website: 'https://tooot.app'
},
account: {
id: '1003',
username: 'tooot📱',
acct: 'tooot@xmflsct.com',
display_name: 'tooot📱',
2022-12-12 20:43:45 +01:00
avatar: 'https://avatars.githubusercontent.com/u/77554750?s=200&v=4',
avatar_static: 'https://avatars.githubusercontent.com/u/77554750?s=200&v=4',
url: '',
header: '',
header_static: '',
locked: false,
discoverable: false,
created_at: new Date().toISOString(),
last_status_at: new Date().toISOString(),
statuses_count: 1,
followers_count: 1,
following_count: 1,
fields: [],
bot: false
2021-03-22 00:04:47 +01:00
},
media_attachments: [],
2022-12-12 20:43:45 +01:00
mentions: [],
tags: [],
emojis: [],
pinned: false
2021-03-22 00:04:47 +01:00
}
]
2022-12-12 20:43:45 +01:00
export default demoStatus