|
|
@ -1,3 +1,5 @@ |
|
|
|
|
|
|
|
import { siteConfig } from './config.ts'; |
|
|
|
|
|
|
|
|
|
|
|
const formatter = Intl.NumberFormat('en-US', { |
|
|
|
const formatter = Intl.NumberFormat('en-US', { |
|
|
|
notation: 'compact', |
|
|
|
notation: 'compact', |
|
|
|
}); |
|
|
|
}); |
|
|
@ -14,6 +16,16 @@ export async function getDiscordInfo(): Promise<{ |
|
|
|
return discordStats; |
|
|
|
return discordStats; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (import.meta.env.DEV) { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
url: 'https://roadmap.sh/discord', |
|
|
|
|
|
|
|
total: 27000, |
|
|
|
|
|
|
|
totalFormatted: '27k', |
|
|
|
|
|
|
|
online: 49, |
|
|
|
|
|
|
|
onlineFormatted: '3.44k', |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const response = await fetch( |
|
|
|
const response = await fetch( |
|
|
|
'https://discord.com/api/v9/invites/cJpEt5Qbwa?with_counts=true', |
|
|
|
'https://discord.com/api/v9/invites/cJpEt5Qbwa?with_counts=true', |
|
|
|
); |
|
|
|
); |
|
|
|