mirror of
https://github.com/webxoss/webxoss-client.git
synced 2024-11-20 05:49:55 +01:00
Revert "[April Fool] add WXB cards support"
This reverts commit 714b956e65
.
This commit is contained in:
parent
714b956e65
commit
2bdbb3f5d7
13 changed files with 15 additions and 69 deletions
2
DeckEditor/Deck.min.js
vendored
2
DeckEditor/Deck.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -543,36 +543,6 @@ WxidRule.parse = function (words) {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////
|
|
||||||
//
|
|
||||||
// ID规则: WxbidRule.
|
|
||||||
// April Fool
|
|
||||||
//
|
|
||||||
///////////////////////////////////////////////////////////////
|
|
||||||
var WxbidRule = {};
|
|
||||||
WxbidRule.parseWord = function (word) {
|
|
||||||
var match = word.match(/^(wxb)-?(\d{0,3}?)$/);
|
|
||||||
if (!match) return null;
|
|
||||||
return match[1] + '-' + match[2];
|
|
||||||
}
|
|
||||||
WxbidRule.parse = function (words) {
|
|
||||||
var idLimits = [];
|
|
||||||
for (var i = 0; i < words.length; i++) {
|
|
||||||
var word = words[i];
|
|
||||||
var limit = this.parseWord(word);
|
|
||||||
if (!limit) continue;
|
|
||||||
idLimits.push(limit);
|
|
||||||
words.splice(i,1);
|
|
||||||
i--;
|
|
||||||
}
|
|
||||||
return function filter (info) {
|
|
||||||
if (!idLimits.length) return true;
|
|
||||||
return idLimits.some(function (limit) {
|
|
||||||
return info.wxbid && info.wxbid.toLowerCase().indexOf(limit) === 0;
|
|
||||||
});
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// 卡名规则: NameRule.
|
// 卡名规则: NameRule.
|
||||||
|
|
|
@ -21,7 +21,6 @@ function Searcher () {
|
||||||
NumberRule,
|
NumberRule,
|
||||||
IllustRule,
|
IllustRule,
|
||||||
WxidRule,
|
WxidRule,
|
||||||
WxbidRule,
|
|
||||||
NameRule
|
NameRule
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
<script src="../CardInfo.js"></script>
|
<script src="../CardInfo.js"></script>
|
||||||
<script src="../CardInfo_ru.js"></script>
|
<script src="../CardInfo_ru.js"></script>
|
||||||
<script src="../CardInfo_ko.js"></script>
|
<script src="../CardInfo_ko.js"></script>
|
||||||
<script src="../WXB.js"></script>
|
|
||||||
<link rel="stylesheet" type="text/css" href="editor.css">
|
<link rel="stylesheet" type="text/css" href="editor.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@ CardDetail.prototype.show = function (pid) {
|
||||||
this.eTable.setAttribute('lang',Localize.getLanguage());
|
this.eTable.setAttribute('lang',Localize.getLanguage());
|
||||||
this.eTableBody.innerHTML = '';
|
this.eTableBody.innerHTML = '';
|
||||||
var info = CardInfo[pid];
|
var info = CardInfo[pid];
|
||||||
this.eWxid.textContent = info.wxbid || info.wxid;
|
this.eWxid.textContent = info.wxid;
|
||||||
this.eName.innerHTML = '';
|
this.eName.innerHTML = '';
|
||||||
var link = newElement('a');
|
var link = newElement('a');
|
||||||
link.target = '_blank';
|
link.target = '_blank';
|
||||||
|
|
2
ImageAndDetail.min.js
vendored
2
ImageAndDetail.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -29,9 +29,6 @@ function ImageManager (dir) {
|
||||||
|
|
||||||
ImageManager.prototype.getUrlByPid = function (pid) {
|
ImageManager.prototype.getUrlByPid = function (pid) {
|
||||||
if (!pid) return this.black.src;
|
if (!pid) return this.black.src;
|
||||||
if (CardInfo[pid].wxbid) {
|
|
||||||
return this.dir + 'images/WXB/' + CardInfo[pid].wxbid + '.jpg';
|
|
||||||
}
|
|
||||||
var url = window.ImageFileCache.getUrlByPid(pid);
|
var url = window.ImageFileCache.getUrlByPid(pid);
|
||||||
if (url) return url;
|
if (url) return url;
|
||||||
url = this.dir + 'images/' + ('0000' + pid).slice(-4) + '.jpg';
|
url = this.dir + 'images/' + ('0000' + pid).slice(-4) + '.jpg';
|
||||||
|
|
12
Localize.js
12
Localize.js
|
@ -227,7 +227,7 @@ var map_zh_CN = {
|
||||||
// textContent: 'WEBXOSS需要您的帮助!',
|
// textContent: 'WEBXOSS需要您的帮助!',
|
||||||
// href: 'about.html#support'
|
// href: 'about.html#support'
|
||||||
// },
|
// },
|
||||||
'link-version': '<幻水姬 大白鲨>',
|
'link-version': '<决死的记忆 莉露>',
|
||||||
'label-nickname': '您的昵称:',
|
'label-nickname': '您的昵称:',
|
||||||
'input-nickame': {
|
'input-nickame': {
|
||||||
placeholder: '昵称'
|
placeholder: '昵称'
|
||||||
|
@ -593,7 +593,7 @@ var map_en = {
|
||||||
// textContent: 'WEBXOSS NEEDS YOUR HELP!',
|
// textContent: 'WEBXOSS NEEDS YOUR HELP!',
|
||||||
// href: 'about_en.html#support'
|
// href: 'about_en.html#support'
|
||||||
// },
|
// },
|
||||||
'link-version': '<Gurehozame, Water Phantom Princess>',
|
'link-version': '<Ril, Memory of Desperation>',
|
||||||
'label-nickname': 'Nickname:',
|
'label-nickname': 'Nickname:',
|
||||||
'input-nickame': {
|
'input-nickame': {
|
||||||
placeholder: 'nickname'
|
placeholder: 'nickname'
|
||||||
|
@ -974,7 +974,7 @@ var map_jp = {
|
||||||
// textContent: 'WEBXOSS NEEDS YOUR HELP!',
|
// textContent: 'WEBXOSS NEEDS YOUR HELP!',
|
||||||
// href: 'about_en.html#support'
|
// href: 'about_en.html#support'
|
||||||
// },
|
// },
|
||||||
'link-version': '<幻水姫 グレホザメ>',
|
'link-version': '<決死の記憶 リル>',
|
||||||
// 'label-nickname': 'あなたのニックネーム:',
|
// 'label-nickname': 'あなたのニックネーム:',
|
||||||
'label-nickname': 'ニックネーム:',
|
'label-nickname': 'ニックネーム:',
|
||||||
'input-nickame': {
|
'input-nickame': {
|
||||||
|
@ -1348,7 +1348,7 @@ var map_ru = {
|
||||||
// textContent: 'WEBXOSS НУЖДАЕТСЯ В ПОМОЩИ!',
|
// textContent: 'WEBXOSS НУЖДАЕТСЯ В ПОМОЩИ!',
|
||||||
// href: 'supporters_en.html'
|
// href: 'supporters_en.html'
|
||||||
// },
|
// },
|
||||||
'link-version': '<Gurehozame, Water Phantom Princess>',
|
'link-version': '<Ril, Memory of Desperation>',
|
||||||
'label-nickname': 'Никнейм:',
|
'label-nickname': 'Никнейм:',
|
||||||
'input-nickame': {
|
'input-nickame': {
|
||||||
placeholder: 'никнейм'
|
placeholder: 'никнейм'
|
||||||
|
@ -1714,7 +1714,7 @@ var map_it = {
|
||||||
// textContent: 'WEBXOSS HA BISOGNO DEL TUO AIUTO!',
|
// textContent: 'WEBXOSS HA BISOGNO DEL TUO AIUTO!',
|
||||||
// href: 'about_en.html#support'
|
// href: 'about_en.html#support'
|
||||||
// },
|
// },
|
||||||
'link-version': '<Gurehozame, Water Phantom Princess>',
|
'link-version': '<Ril, Memory of Desperation>',
|
||||||
'label-nickname': 'Nickname:',
|
'label-nickname': 'Nickname:',
|
||||||
'input-nickame': {
|
'input-nickame': {
|
||||||
placeholder: 'nickname'
|
placeholder: 'nickname'
|
||||||
|
@ -2096,7 +2096,7 @@ var map_ko = {
|
||||||
// textContent: 'WEBXOSS NEEDS YOUR HELP!',
|
// textContent: 'WEBXOSS NEEDS YOUR HELP!',
|
||||||
// href: 'about_en.html#support'
|
// href: 'about_en.html#support'
|
||||||
// },
|
// },
|
||||||
'link-version': '<환수희 구레호자메>',
|
'link-version': '<결사의 기억 릴>',
|
||||||
// 'label-nickname': 'あなたのニックネーム:',
|
// 'label-nickname': 'あなたのニックネーム:',
|
||||||
'label-nickname': '닉네임:',
|
'label-nickname': '닉네임:',
|
||||||
'input-nickame': {
|
'input-nickame': {
|
||||||
|
|
4
Localize.min.js
vendored
4
Localize.min.js
vendored
File diff suppressed because one or more lines are too long
18
WXB.js
18
WXB.js
|
@ -1,18 +0,0 @@
|
||||||
(function (argument) {
|
|
||||||
var wxids = ['WX01-027','WX05-019','WX02-021','WX01-029','WX05-023','WX11-030','WX03-018','WX01-033','WX06-020','WX02-025','WX03-020','WX05-027','WX04-037','WX10-038','WX11-038','WX09-023','PR-213','WX06-026','WX10-042','SP07-011','WX09-031','WX05-043','WX11-084','WD13-014','WD01-009','WX12-040','WD01-011','WX04-060','WD01-013','WX12-043','WX06-042','PR-071','WX04-071','WX01-076','WX01-077','WX10-067','WX05-062','WX10-072','WX01-097','WX07-073','WX09-054','WX06-052','WX01-101','WX10-100'];
|
|
||||||
var infos = Object.keys(CardInfo).map(function (pid) {
|
|
||||||
return CardInfo[pid];
|
|
||||||
});
|
|
||||||
wxids.forEach(function (wxid, index) {
|
|
||||||
var info = infos.filter(function (info) {
|
|
||||||
return info.wxid === wxid;
|
|
||||||
})[0];
|
|
||||||
if (!info) return;
|
|
||||||
var cid = info.cid;
|
|
||||||
infos.forEach(function (info) {
|
|
||||||
if (info.cid === cid) {
|
|
||||||
info.wxbid = 'WXB-' + ('000' + (index + 1)).slice(-3);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
})();
|
|
|
@ -257,7 +257,6 @@
|
||||||
<script src="./CardInfo.js" defer="defer"></script>
|
<script src="./CardInfo.js" defer="defer"></script>
|
||||||
<script src="./CardInfo_ru.js" defer="defer"></script>
|
<script src="./CardInfo_ru.js" defer="defer"></script>
|
||||||
<script src="./CardInfo_ko.js" defer="defer"></script>
|
<script src="./CardInfo_ko.js" defer="defer"></script>
|
||||||
<script src="./WXB.js" defer="defer"></script>
|
|
||||||
|
|
||||||
<script src="./Localize.min.js" defer="defer"></script>
|
<script src="./Localize.min.js" defer="defer"></script>
|
||||||
<script src="./ImageAndDetail.min.js" defer="defer"></script>
|
<script src="./ImageAndDetail.min.js" defer="defer"></script>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Cards:
|
Cards:
|
||||||
Newly Added: WXB.
|
Newly Added: WD17 && WD18.
|
||||||
Pre-built Deck: WD01~WD18
|
Pre-built Deck: WD01~WD18
|
||||||
Booster Packs: WX01~WX14
|
Booster Packs: WX01~WX14
|
||||||
PR Cards:
|
PR Cards:
|
||||||
|
@ -28,8 +28,9 @@ Cards:
|
||||||
Total: 1934 cards
|
Total: 1934 cards
|
||||||
|
|
||||||
Versions:
|
Versions:
|
||||||
<幻水姫 グレホザメ> (2017-04-01)
|
<決死の記憶 リル> (2017-03-05)
|
||||||
+ Add cards: WXB cards. (Tip: search "WXB")
|
+ Add cards: WD17 && WD18
|
||||||
|
+ New deck editor for mobile
|
||||||
|
|
||||||
<纺织者> (2016-12-10)
|
<纺织者> (2016-12-10)
|
||||||
+ Add cards: WX14, SP17~SP19, PR cards before WX15
|
+ Add cards: WX14, SP17~SP19, PR cards before WX15
|
||||||
|
|
|
@ -11,7 +11,6 @@ css.css
|
||||||
CardInfo.js
|
CardInfo.js
|
||||||
CardInfo_ru.js
|
CardInfo_ru.js
|
||||||
CardInfo_ko.js
|
CardInfo_ko.js
|
||||||
WXB.js
|
|
||||||
|
|
||||||
# DeckEditor #
|
# DeckEditor #
|
||||||
DeckEditor/
|
DeckEditor/
|
||||||
|
|
Loading…
Reference in a new issue