Friendiiverse/App/ApiStatic.js

24 lines
591 B
JavaScript
Raw Normal View History

2023-04-25 23:35:34 +02:00
var ApiStatic = {Servers: {}, Featured: {},};
2023-04-29 00:06:16 +02:00
[ "https://mastodon.uno",
"https://livellosegreto.it",
"https://sociale.network",
"https://mastodon.social",
].forEach(function(Serv){
2023-04-26 15:33:51 +02:00
ApiStatic.Servers[Serv] = {ServerSoftware: "Mastodon"};
2023-04-25 23:35:34 +02:00
});
2023-04-29 00:06:16 +02:00
[ "https://misskey.social",
"https://misskey.io"
].forEach(function(Serv){
2023-04-26 15:33:51 +02:00
ApiStatic.Servers[Serv] = {ServerSoftware: "Misskey"};
2023-04-25 23:35:34 +02:00
});
2023-04-29 00:06:16 +02:00
2023-04-25 23:35:34 +02:00
ApiStatic.Featured.Servers = [];
2023-04-26 15:33:51 +02:00
Object.keys(ApiStatic.Servers).forEach(function(Url){
var Serv = ApiStatic.Servers[Url];
Serv.Type = 'Server';
Serv.Url = Url;
ApiStatic.Featured.Servers.push(Serv);
2023-04-25 23:35:34 +02:00
});