mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-24 18:48:14 +03:00
Added users-by-countries statistics
This commit is contained in:
parent
39b587fc9b
commit
8db89f9a41
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 |
BIN
repository-pics/statistics``.png
Normal file
BIN
repository-pics/statistics``.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 50 KiB |
|
@ -17,8 +17,6 @@ type LauncherState =
|
|||
|
||||
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 _i18n: any;
|
||||
|
||||
|
@ -280,12 +278,20 @@ export class LauncherUI
|
|||
|
||||
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(body => {
|
||||
$('#__layout').remove();
|
||||
$(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-news').remove();
|
||||
});
|
||||
|
|
|
@ -29,6 +29,8 @@ export class constants
|
|||
]
|
||||
};
|
||||
|
||||
// TODO: dirs pathes
|
||||
|
||||
public static readonly appDir = path.resolve(__dirname, '..', '..', '..');
|
||||
public static readonly shadersDir = path.join(this.appDir, 'public', 'shaders');
|
||||
|
||||
|
|
Loading…
Reference in a new issue