Api fixes and progress

This commit is contained in:
2023-04-20 18:13:47 +02:00
parent f6e2dff546
commit 279691e9a1
6 changed files with 91 additions and 39 deletions

View File

@@ -1,18 +1,35 @@
var FakeApi = {
//
Friendiiverse: {
Featured: {
Featured: [],
Categories: [],
},
},
Mastodon: {
//"timelines/public":
},
};
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",
});
FakeApi.Friendiiverse.Featured.Categories.push({
Banner: "https://picsum.photos/seed/fediverse.Banner/320/180",
Icon: "https://picsum.photos/seed/fediverse.Icon/64",
Name: "#fediverse",
});
FakeApi.Mastodon.Account = {
"avatar": "https://picsum.photos/64",
"url": "https://mastodon.example.com/@Tester",
avatar: "https://picsum.photos/seed/Tester.Icon/64",
display_name: "The Tester",
url: "https://mastodon.example.com/@Tester",
};
FakeApi.Mastodon.Status = {
"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",
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",
};