Added users-by-countries statistics

This commit is contained in:
Observer KRypt0n_ 2021-11-13 20:26:24 +02:00
parent 39b587fc9b
commit 8db89f9a41
No known key found for this signature in database
GPG key ID: DC5D4EC1303465DA
4 changed files with 11 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View file

@ -17,8 +17,6 @@ type LauncherState =
export class LauncherUI export class LauncherUI
{ {
public static readonly socialUri = `https://${constants.placeholders.lowercase.first}.${constants.placeholders.lowercase.company}.com/launcher/10/${LauncherLib.getConfig('lang.launcher')}?api_url=https%3A%2F%2Fapi-os-takumi.${constants.placeholders.lowercase.company}.com%2Fhk4e_global&prev=false`;
protected static _launcherState: LauncherState = 'game-launch-available'; protected static _launcherState: LauncherState = 'game-launch-available';
protected static _i18n: any; protected static _i18n: any;
@ -280,12 +278,20 @@ export class LauncherUI
public static updateSocial (): void public static updateSocial (): void
{ {
fetch(this.socialUri) const socialUri = `https://${constants.placeholders.lowercase.first}.${constants.placeholders.lowercase.company}.com/launcher/10/${LauncherLib.getConfig('lang.launcher')}?api_url=https%3A%2F%2Fapi-os-takumi.${constants.placeholders.lowercase.company}.com%2Fhk4e_global&prev=false`;
fetch(socialUri)
.then(res => res.text()) .then(res => res.text())
.then(body => { .then(body => {
$('#__layout').remove(); $('#__layout').remove();
$(body).find('#__layout').appendTo('#launchcontent'); $(body).find('#__layout').appendTo('#launchcontent');
// Next banner button
// TODO
/*$('#launchcontent .home__main .swiper-button-prev').on('click', () => {
});*/
$('#launchcontent .home__main .home-swiper-wrap').remove(); $('#launchcontent .home__main .home-swiper-wrap').remove();
$('#launchcontent .home__main .home-news').remove(); $('#launchcontent .home__main .home-news').remove();
}); });

View file

@ -29,6 +29,8 @@ export class constants
] ]
}; };
// TODO: dirs pathes
public static readonly appDir = path.resolve(__dirname, '..', '..', '..'); public static readonly appDir = path.resolve(__dirname, '..', '..', '..');
public static readonly shadersDir = path.join(this.appDir, 'public', 'shaders'); public static readonly shadersDir = path.join(this.appDir, 'public', 'shaders');