Friendiiverse/App/ApiFake.js

48 lines
1.4 KiB
JavaScript
Raw Permalink Normal View History

var FakeApi = {
2023-04-20 18:13:47 +02:00
Friendiiverse: {
Featured: {
Featured: [],
Categories: [],
},
},
Mastodon: {
//"timelines/public":
},
};
2023-04-20 15:17:00 +02:00
2023-04-25 15:00:41 +02:00
FakeApi.Friendiiverse.Featured.Featured.push({
//Banner: "https://picsum.photos/seed/Testing.Banner/320/180",
//Icon: "https://picsum.photos/seed/Testing.Icon/64",
Name: "mastodon.social",
Url: "https://mastodon.social",
__Display__: "DisplayMastodonTimeline",
});
2023-04-20 18:13:47 +02:00
FakeApi.Friendiiverse.Featured.Featured.push({
Banner: "https://picsum.photos/seed/Testing.Banner/320/180",
Icon: "https://picsum.photos/seed/Testing.Icon/64",
Name: "Testing Channel",
2023-04-22 10:06:31 +02:00
Url: "https://lemmy.example.com/c/Testing",
2023-04-20 18:13:47 +02:00
});
FakeApi.Friendiiverse.Featured.Categories.push({
Banner: "https://picsum.photos/seed/fediverse.Banner/320/180",
Icon: "https://picsum.photos/seed/fediverse.Icon/64",
Name: "#fediverse",
2023-04-22 10:06:31 +02:00
Url: "https://mastodon.example.com/hashtag/fediverse",
2023-04-20 18:13:47 +02:00
});
2023-04-20 15:17:00 +02:00
FakeApi.Mastodon.Account = {
2023-04-20 18:13:47 +02:00
avatar: "https://picsum.photos/seed/Tester.Icon/64",
display_name: "The Tester",
2023-04-20 22:08:38 +02:00
header: "https://picsum.photos/seed/Tester.Banner/320/180",
2023-04-20 18:13:47 +02:00
url: "https://mastodon.example.com/@Tester",
2023-04-20 15:17:00 +02:00
};
2023-04-22 10:06:31 +02:00
FakeApi.Friendiiverse.Featured.Featured.push(
2023-04-23 00:48:14 +02:00
ApiTransform(FakeApi.Mastodon.Account, 'Mastodon', 'Profile'));
2023-04-20 15:17:00 +02:00
FakeApi.Mastodon.Status = {
2023-04-20 18:13:47 +02:00
account: FakeApi.Mastodon.Account,
content: "<p>Lorem ipsum dolor sit amet...</p>",
created_at: "2023-01-01T13:00:00.123Z",
url: "https://mastodon.example.com/@Tester/1234567890",
2023-04-20 15:17:00 +02:00
};