|
@ -6,13 +6,17 @@ |
|
|
<hr> |
|
|
<hr> |
|
|
<div v-if="player['ban'] !== null"> |
|
|
<div v-if="player['ban'] !== null"> |
|
|
<p class="profile-text" style="display: inline">Статус Бана: </p> |
|
|
<p class="profile-text" style="display: inline">Статус Бана: </p> |
|
|
<p class="profile-text" style="color: brown">Забанен</p> |
|
|
<p class="profile-text" style="color: brown; display: inline">Забанен</p> |
|
|
<p class="profile-text">Выдал бан: русский путин</p> |
|
|
<p class="profile-text">Причина бана: {{player['ban']['ban_reason']}}</p> |
|
|
<p class="profile-text">Дата окончания бана: 14.88.1488</p> |
|
|
<p class="profile-text" style="display: inline">Выдал бан: {{player['ban']['banned_by']}}</p> |
|
|
|
|
|
<!--<SteamSvg :h="'5%'" :w="'5%'" :url="player['ban']['admin_info']['steam_url']" :inline="true"/> |
|
|
|
|
|
<DiscordSvg :h="'5%'" :w="'5%'" :url="'https://tf2.pblr-nyk.pro/unban'" :inline="true"/>--> |
|
|
|
|
|
<p class="profile-text" v-if="player['ban']['ban_length'] > 0">Дата окончания бана: {{new Date(player['ban']['ban_utime'] * 1000 + player['ban']['ban_length'] * 60 * 1000).toLocaleString()}}</p> |
|
|
|
|
|
<p class="profile-text">Бан навсегда</p> |
|
|
</div> |
|
|
</div> |
|
|
<div v-if="player['permition'] === null"> |
|
|
<div v-if="player['permition'] === null"> |
|
|
<p class="profile-text" style="display: inline">Статус VIP : </p> |
|
|
<p class="profile-text" style="display: inline">Статус VIP : </p> |
|
|
<p class="profile-text" style="color: crimson"> слыш купи</p> |
|
|
<p class="profile-text" style="color: crimson;display: inline"> слыш купи</p> |
|
|
</div> |
|
|
</div> |
|
|
<div v-else> |
|
|
<div v-else> |
|
|
<p class="profile-text" style="display: inline">Статус {{player['permition']['status']}} : </p> |
|
|
<p class="profile-text" style="display: inline">Статус {{player['permition']['status']}} : </p> |
|
@ -20,7 +24,7 @@ |
|
|
<p class="profile-text" v-else style="color: #fd8846; display: inline">Имеется</p> |
|
|
<p class="profile-text" v-else style="color: #fd8846; display: inline">Имеется</p> |
|
|
<p class="profile-text">Дата окончания : </p> |
|
|
<p class="profile-text">Дата окончания : </p> |
|
|
<p class="profile-text" v-if="player['permition']['amount'] === 0" style="display: inline">Навсегда</p> |
|
|
<p class="profile-text" v-if="player['permition']['amount'] === 0" style="display: inline">Навсегда</p> |
|
|
<p class="profile-text" v-else style="display: inline">22.22.2032</p> |
|
|
<p class="profile-text" v-else style="display: inline">{{new Date((player['permition']['u_timestamp'] + player['permition']['amount']) * 1000).toLocaleDateString()}}</p> |
|
|
</div> |
|
|
</div> |
|
|
<hr> |
|
|
<hr> |
|
|
<md-menu md-direction="bottom-start" md-size="auto"> |
|
|
<md-menu md-direction="bottom-start" md-size="auto"> |
|
@ -36,13 +40,28 @@ |
|
|
<md-menu-item v-for="l in getLastPlay()" :key="l[0]+'l'">{{l[0]}} - {{l[1]}}</md-menu-item> |
|
|
<md-menu-item v-for="l in getLastPlay()" :key="l[0]+'l'">{{l[0]}} - {{l[1]}}</md-menu-item> |
|
|
</md-menu-content> |
|
|
</md-menu-content> |
|
|
</md-menu> |
|
|
</md-menu> |
|
|
|
|
|
<br> |
|
|
|
|
|
<md-menu md-direction="bottom-start" md-size="auto" v-if="player['donates'].length > 0"> |
|
|
|
|
|
<md-button class="md-raised" style="color: #131213; font-family: tf2build; background: #fd8846" md-menu-trigger>Покупки VIP</md-button> |
|
|
|
|
|
<md-menu-content> |
|
|
|
|
|
<md-menu-item v-for="d in player['donates']" :key="d['utime']+'d'">{{new Date(d['utime'] * 1000).toLocaleDateString()}} | {{d['status']}}</md-menu-item> |
|
|
|
|
|
</md-menu-content> |
|
|
|
|
|
</md-menu> |
|
|
|
|
|
<br> |
|
|
|
|
|
<md-menu md-direction="bottom-start" md-size="auto" v-if="false"> |
|
|
|
|
|
<md-button class="md-raised" style="color: #131213; font-family: tf2build; background: #fd8846" md-menu-trigger>История Банов</md-button> |
|
|
|
|
|
<md-menu-content> |
|
|
|
|
|
<md-menu-item v-for="d in []" :key="d['utime']+'d'">{{new Date(d['utime'] * 1000).toLocaleDateString()}} | {{d['status']}}</md-menu-item> |
|
|
|
|
|
</md-menu-content> |
|
|
|
|
|
</md-menu> |
|
|
</div> |
|
|
</div> |
|
|
<div :class="`md-layout-item md-size-${f_size} md-small-size-100`"> |
|
|
<div :class="`md-layout-item md-size-${f_size} md-small-size-100`"> |
|
|
<div style="justify-content: right; display: flex; padding: 10% 0%"> |
|
|
<div style="justify-content: right; display: flex; padding: 10% 0%"> |
|
|
<img :src="getAvatar()" style="border-radius: 15px;"> |
|
|
<img :src="getAvatar()" style="border-radius: 15px;"> |
|
|
</div> |
|
|
</div> |
|
|
<p class="profile-text" style="text-align: right" v-if="this.player['play_on'] !== null">Убийств : 20</p> |
|
|
<p class="profile-text" style="text-align: right; cursor: pointer;" v-if="this.player['play_on'] !== null && 'ip' in this.player['play_on']" v-on:click="showIP()">IP : {{player_ip}}</p> |
|
|
<p class="profile-text" style="text-align: right" v-if="this.player['play_on'] !== null">Смертей : {{'похуй'}}</p> |
|
|
<p class="profile-text" style="text-align: right" v-if="this.player['play_on'] !== null && 'kills' in this.player['play_on']">Убийств : {{this.player['play_on']['kills']}}</p> |
|
|
|
|
|
<p class="profile-text" style="text-align: right" v-if="this.player['play_on'] !== null && 'deads' in this.player['play_on']">Смертей : {{this.player['play_on']['deads']}}</p> |
|
|
<p class="profile-text" style="text-align: right">Наиграно : {{getTotalPlaytime()}}</p> |
|
|
<p class="profile-text" style="text-align: right">Наиграно : {{getTotalPlaytime()}}</p> |
|
|
<div style="justify-content: right; display: flex"> |
|
|
<div style="justify-content: right; display: flex"> |
|
|
<DiscordSvg :h="'10%'" :w="'40'" style="margin-left: 5%"/> |
|
|
<DiscordSvg :h="'10%'" :w="'40'" style="margin-left: 5%"/> |
|
@ -51,10 +70,6 @@ |
|
|
</div> |
|
|
</div> |
|
|
<br> |
|
|
<br> |
|
|
<hr width="50%"> |
|
|
<hr width="50%"> |
|
|
<div> |
|
|
|
|
|
<p>ban history</p> |
|
|
|
|
|
<p>buy history</p> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
@ -62,6 +77,7 @@ |
|
|
<script> |
|
|
<script> |
|
|
import DiscordSvg from "@/components/Others/CustomSvg/DiscordSvg.vue"; |
|
|
import DiscordSvg from "@/components/Others/CustomSvg/DiscordSvg.vue"; |
|
|
import SteamSvg from "@/components/Others/CustomSvg/SteamSvg.vue"; |
|
|
import SteamSvg from "@/components/Others/CustomSvg/SteamSvg.vue"; |
|
|
|
|
|
import axios from "axios"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: "ProfileContainer", |
|
|
name: "ProfileContainer", |
|
@ -73,6 +89,9 @@ export default { |
|
|
default: 45 |
|
|
default: 45 |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
data: () => ({ |
|
|
|
|
|
player_ip: "Показать" |
|
|
|
|
|
}), |
|
|
methods: { |
|
|
methods: { |
|
|
getAvatar() { |
|
|
getAvatar() { |
|
|
try { |
|
|
try { |
|
@ -92,6 +111,22 @@ export default { |
|
|
}, |
|
|
}, |
|
|
getLastPlay() { |
|
|
getLastPlay() { |
|
|
return this.$API.player.getLastplayList(this.player); |
|
|
return this.$API.player.getLastplayList(this.player); |
|
|
|
|
|
}, |
|
|
|
|
|
showIP() { |
|
|
|
|
|
if (this.player_ip.indexOf(":") !== -1) { |
|
|
|
|
|
this.player_ip = "Показать"; |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
axios.options("api/crypto").then((response) => { |
|
|
|
|
|
this.player_ip = "ждем..."; |
|
|
|
|
|
if (response.status === 200) { |
|
|
|
|
|
axios.post("api/crypto/decrypt", {"ip":this.player['play_on']['ip']}).then(response => { |
|
|
|
|
|
this.player_ip = response.data['ip']; |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
this.player_ip = "хаха нет"; |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|