Персонажи
Персонаж
|
Бан
|
Разбан
|
ГМ
|
Причина
|
{{ item.name }}
|
{{ item.banDate }}
|
{{ item.unbanDate }}
|
{{ item.bannedBy }}
|
{{ item.banReason }}
|
{{charLoadMsg}}
Аккаунты
Аккаунт
|
Бан
|
Разбан
|
ГМ
|
Причина
|
{{ item.account }}
|
{{ item.banDate }}
|
{{ item.unbanDate }}
|
{{ item.bannedBy }}
|
{{ item.banReason }}
|
{{authLoadMsg}}
IP
IP
|
Бан
|
Разбан
|
ГМ
|
Причина
|
{{ item.ip}}
|
{{ item.banDate }}
|
{{ item.unbanDate }}
|
{{ item.bannedBy }}
|
{{ item.banReason }}
|
{{listIpLoadMsg}}
var app = new Vue({
el: '#app',
data: {
banlistChar: [],
banlistAuth: [],
banlistIp: [],
charLoadMsg: 'Загрузка банлиста персонажей...',
authLoadMsg: 'Загрузка банлиста аккаунтов...',
listIpLoadMsg: 'Загрузка банлиста IP...'
},
created: function() {
fetch("https://service.rp-wow.ru/api/banlist/characters")
.then(r => r.json())
.then(d => {
if (!this.banlistChar.length) {
this.charLoadMsg = 'Забаненные персонажи отсутствуют.';
}
this.banlistChar = d;
});
fetch("https://service.rp-wow.ru/api/banlist/auth")
.then(r => r.json())
.then(d => {
if (!this.banlistAuth .length) {
this.authLoadMsg= 'Забаненные аккаунты отсутствуют.';
}
this.banlistAuth = d;
});
fetch("https://service.rp-wow.ru/api/banlist/ip")
.then(r => r.json())
.then(d => {
if (!this.banlistIp .length) {
this.listIpLoadMsg= 'Забаненные IP адреса отсутствуют.';
}
this.banlistIp = d;
});
},
})