diff --git a/src/App.vue b/src/App.vue index 5a01caf..ddca830 100644 --- a/src/App.vue +++ b/src/App.vue @@ -47,7 +47,6 @@ export default { this.$API.load().then(() => { this.l = this.$API.loading; this.f = this.$API.failed; - console.log('s', this.l,this.f); }).catch(() => { console.log('e', this.l,this.f); }) diff --git a/src/api/AdminApi.js b/src/api/AdminApi.js index eb348f3..6a1b1c6 100644 --- a/src/api/AdminApi.js +++ b/src/api/AdminApi.js @@ -19,7 +19,6 @@ export default class AdminApi { async load(stages) { console.log(`[AdminAPI] request permissions`); - console.log(document.cookie); if (document.cookie.indexOf("steam64=") === -1) return; stages.add("permitions") await Promise.all([ diff --git a/src/api/GlobalApi.js b/src/api/GlobalApi.js index e9f382a..ed9b8da 100644 --- a/src/api/GlobalApi.js +++ b/src/api/GlobalApi.js @@ -31,6 +31,7 @@ export default class GlobalApi { load_stages = new Stages(); constructor() { + document.title = "Факты 13"; } async fillThis(value) { @@ -78,6 +79,7 @@ export default class GlobalApi { async load() { this.loading = true; + document.title = `Загрузка - Факты 13`; await Promise.all( [this.fillThis('statistic'), this.fillThis('uniq'), @@ -85,12 +87,14 @@ export default class GlobalApi { this.admin.load(this.load_stages), this.player.load(this.load_stages)] ).then(() => { - console.log("end loading"); + console.log("[Loader] success end"); this.loading = false; + document.title = `Факты 13`; }).catch(() => { this.loading = false; this.failed = true; - console.log("some error in loading"); + document.title = `Факты 13 УМЕРЛИ`; + console.log("[Loader] some error in loading"); }); } diff --git a/src/api/Stages.js b/src/api/Stages.js index 3134935..ff1d7af 100644 --- a/src/api/Stages.js +++ b/src/api/Stages.js @@ -18,4 +18,8 @@ export default class Stages { default: return s; } } + + percent() { + return 100 - this.stages.length * 100 / 5; + } } \ No newline at end of file diff --git a/src/assets/sounds/right_behind_you.mp3 b/src/assets/sounds/right_behind_you.mp3 new file mode 100644 index 0000000..7325897 Binary files /dev/null and b/src/assets/sounds/right_behind_you.mp3 differ diff --git a/src/components/Others/LoaderPage.vue b/src/components/Others/LoaderPage.vue index 10d9dcb..60a2fd8 100644 --- a/src/components/Others/LoaderPage.vue +++ b/src/components/Others/LoaderPage.vue @@ -1,7 +1,7 @@ @@ -23,7 +23,7 @@ export default {