20 changed files with 188 additions and 56 deletions
@ -0,0 +1,21 @@ |
|||||
|
export default class Stages { |
||||
|
stages = []; |
||||
|
|
||||
|
add(s) { |
||||
|
this.stages.push(s) |
||||
|
} |
||||
|
|
||||
|
remove(s) { |
||||
|
const p = this.stages.indexOf(s); |
||||
|
if (p !== -1) this.stages.splice(p) |
||||
|
} |
||||
|
|
||||
|
human(s) { |
||||
|
switch (s) { |
||||
|
case 'servers':return 'информация о серверах...'; |
||||
|
case 'uniq': return 'уникальные игроки...'; |
||||
|
case 'statistic': return 'сейчас играют...'; |
||||
|
default: return s; |
||||
|
} |
||||
|
} |
||||
|
} |
After Width: | Height: | Size: 142 KiB |
@ -0,0 +1,13 @@ |
|||||
|
<template> |
||||
|
<BackgroundImage :fail="true" :blur_px="0"/> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
|
||||
|
import BackgroundImage from "@/components/Others/BackgroundImage.vue"; |
||||
|
|
||||
|
export default { |
||||
|
name: "FailLoad", |
||||
|
components: {BackgroundImage} |
||||
|
} |
||||
|
</script> |
@ -0,0 +1,32 @@ |
|||||
|
<template> |
||||
|
<md-dialog :md-active.sync="this.l" class="bbb"> |
||||
|
<md-progress-spinner :md-diameter="200" :md-stroke="10" md-mode="indeterminate"/> |
||||
|
<h1 style="color: #fd8846">Загрузка</h1> |
||||
|
<p v-for="stage in this.$API.load_stages.stages" :key="stage" style="text-align: center; margin: 0%">{{$API.load_stages.human(stage)}}</p> |
||||
|
</md-dialog> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
export default { |
||||
|
name: 'LoaderPage', |
||||
|
data: () => ({ |
||||
|
l: true |
||||
|
}), |
||||
|
methods: { |
||||
|
setL(v) { |
||||
|
this.l = v; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
.md-progress-spinner { |
||||
|
stroke: #fd8846 !important; |
||||
|
margin: 60px; |
||||
|
} |
||||
|
|
||||
|
.bbb { |
||||
|
background: black; |
||||
|
} |
||||
|
</style> |
Loading…
Reference in new issue