diff --git a/repository-pics/statistics.png b/repository-pics/statistics.png index 712c45f..19f06b6 100644 Binary files a/repository-pics/statistics.png and b/repository-pics/statistics.png differ diff --git a/repository-pics/statistics``.png b/repository-pics/statistics``.png new file mode 100644 index 0000000..bd928f3 Binary files /dev/null and b/repository-pics/statistics``.png differ diff --git a/src/ts/lib/LauncherUI.ts b/src/ts/lib/LauncherUI.ts index 268795f..7924196 100644 --- a/src/ts/lib/LauncherUI.ts +++ b/src/ts/lib/LauncherUI.ts @@ -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(); }); diff --git a/src/ts/lib/constants.ts b/src/ts/lib/constants.ts index c0200bb..04c272c 100644 --- a/src/ts/lib/constants.ts +++ b/src/ts/lib/constants.ts @@ -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');