* initial implementation
 * this includes a complete reindexing of everything touching icons
 * this also means, no linking to red-rocket-site though, they index them differently
This commit is contained in:
Sarjuuk
2017-03-29 21:23:41 +02:00
parent 4651165e4d
commit ee568da6ec
51 changed files with 1796 additions and 211 deletions

View File

@@ -27,6 +27,11 @@ MarkupSourceMap[MARKUP_SOURCE_LIVE] = 'live';
MarkupSourceMap[MARKUP_SOURCE_PTR] = 'ptr';
MarkupSourceMap[MARKUP_SOURCE_BETA] = 'beta';
var MarkupDomainRegexMap = {
betaPtrLang: /^(beta|legion|wod|mop|ptr|www|ko|fr|de|cn|es|ru|pt|it)$/,
lang: /^(www|fr|de|es|ru)$/ // Aowowo - /^(www|ko|fr|de|cn|es|ru|pt|it)$/
};
var Markup = {
MODE_COMMENT: MARKUP_MODE_COMMENT,
MODE_REPLY: MARKUP_MODE_REPLY,
@@ -193,8 +198,8 @@ var Markup = {
unnamed: { req: true, valid: /^[0-9]+$/ },
diff: { req: false, valid: /^[0-9]+$/ },
icon: { req: false, valid: /^false$/ },
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
site: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
domain: { req: false, valid: MarkupDomainRegexMap.lang },
site: { req: false, valid: MarkupDomainRegexMap.lang },
tempname: { req: false }
},
@@ -347,8 +352,8 @@ var Markup = {
{
unnamed: { req: true, valid: /^[0-9]+$/ },
icon: { req: false, valid: /^false$/i },
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
site: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ }
domain: { req: false, valid: MarkupDomainRegexMap.lang },
site: { req: false, valid: MarkupDomainRegexMap.lang }
},
validate: function(attr)
{
@@ -444,8 +449,8 @@ var Markup = {
unnamed: { req: true, valid: /^[0-9]+$/ },
amount: { req: false, valid: /^[0-9\:]+$/ },
icon: { req: false, valid: /^false$/i },
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
site: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ }
domain: { req: false, valid: MarkupDomainRegexMap.lang },
site: { req: false, valid: MarkupDomainRegexMap.lang }
},
allowedClass: MARKUP_CLASS_STAFF,
validate: function(attr)
@@ -605,8 +610,8 @@ var Markup = {
attr:
{
unnamed: { req: true, valid: /^[0-9]+$/ },
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
site: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ }
domain: { req: false, valid: MarkupDomainRegexMap.lang },
site: { req: false, valid: MarkupDomainRegexMap.lang }
},
validate: function(attr)
{
@@ -645,8 +650,8 @@ var Markup = {
attr:
{
unnamed: { req: true, valid: /^[0-9]+$/ },
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
site: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ }
domain: { req: false, valid: MarkupDomainRegexMap.lang },
site: { req: false, valid: MarkupDomainRegexMap.lang }
},
validate: function(attr)
{
@@ -685,8 +690,8 @@ var Markup = {
attr:
{
unnamed: { req: true, valid: /^-?[0-9]+$/ },
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
site: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ }
domain: { req: false, valid: MarkupDomainRegexMap.lang },
site: { req: false, valid: MarkupDomainRegexMap.lang }
},
allowedClass: MARKUP_CLASS_STAFF,
validate: function(attr)
@@ -727,8 +732,8 @@ var Markup = {
attr:
{
unnamed: { req: true, valid: /^[0-9]+$/ },
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
site: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ }
domain: { req: false, valid: MarkupDomainRegexMap.lang },
site: { req: false, valid: MarkupDomainRegexMap.lang }
},
validate: function(attr)
{
@@ -921,7 +926,8 @@ var Markup = {
preset : { req: false, valid: /\S+/ }
},
allowedClass: MARKUP_CLASS_STAFF,
presets: {
presets:
{
boss: g_staticUrl + '/images/icons/boss.gif',
heroic: g_staticUrl + '/images/icons/heroic.gif'
},
@@ -980,6 +986,80 @@ var Markup = {
}
}
},
icondb:
{
empty: true,
allowInReplies: true,
attr:
{
unnamed: { req: true, valid: /^[0-9]+$/ },
block: { req: false, valid: /^(true|false)$/ },
size: { req: false, valid: /^(tiny|small|medium|large)$/ },
name: { req: false, valid: /^true$/ },
domain: { req: false, valid: MarkupDomainRegexMap.lang },
site: { req: false, valid: MarkupDomainRegexMap.lang },
diff: { req: false, valid: /^[0-9]+$/ },
tempname: { req: false }
},
validate: function(attr)
{
if ((attr.domain || attr.site) && Markup.dbpage)
return false;
return true
},
toHtml: function(attr) {
var size = attr.size ? attr.size : 'small';
var hasName = attr.name == 'true';
var id = attr.unnamed;
var domain = Markup._getDatabaseDomainInfo(attr);
var url = domain[0];
var href = url + '?icon=' + id;
var rel = [];
var tempname = null;
if (attr.diff);
rel.push('diff=' + attr.diff);
if (attr.tempname)
tempname = attr.tempname;
if (g_icons[id] && g_icons[id].name)
{
// href += '/' + $WH.urlize(g_icons[id].name); AoWoW - not used
var icon = g_icons[id];
if (hasName)
{
if (size == 'tiny')
return '<a href="' + href + '"' + (rel.length ? ' rel="' + rel.join('&') + '"' : '') + (!attr.icon ? ' class="icontiny"><img src="' + g_staticUrl + '/images/wow/icons/tiny/' + icon.icon.toLowerCase() + '.gif" align="absmiddle"' : '') + Markup._addGlobalAttributes(attr) + '> ' + Markup._safeHtml(icon.name) + '</a>'
else
{
var a = $WH.ce('a', { href: href });
var div = $WH.ce('div', null, a);
$WH.ae(a, Icon.create(icon.name, Icon.sizeIds[size], null, false, null, null, null, null, true));
a.innerHTML += Markup._safeHtml(icon.name);
return div.innerHTML;
}
}
else
{
var div = $WH.ce('div');
$WH.ae(div, Icon.create(icon.name, Icon.sizeIds[size], null, href, null, null, null, null, attr.block != 'true'));
return div.innerHTML;
}
}
return '<a href="' + href + '"' + (rel.length ? ' rel="' + rel.join('&') + '"' : '') + Markup._addGlobalAttributes(attr) + '>' + (tempname ? tempname : ('(' + LANG.types[29][0] + ' #' + id + ')')) + '</a>';
},
toText: function(attr)
{
var id = attr.unnamed;
if(g_icons[id] && g_icons[id].name)
return Markup._safeHtml(g_icons[id].name);
return LANG.types[29][0] + ' #' + id;
}
},
iconlist:
{
empty: false,
@@ -988,7 +1068,7 @@ var Markup = {
rtrim: true,
attr:
{
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ }
domain: { req: false, valid: MarkupDomainRegexMap.lang }
},
taglessSkip: true,
allowedClass: MARKUP_CLASS_STAFF,
@@ -1187,8 +1267,8 @@ var Markup = {
{
unnamed: { req: true, valid: /^[0-9]+$/ },
icon: { req: false, valid: /^false$/i },
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
site: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
domain: { req: false, valid: MarkupDomainRegexMap.lang },
site: { req: false, valid: MarkupDomainRegexMap.lang },
tempname: { req: false }
},
validate: function(attr)
@@ -1234,8 +1314,8 @@ var Markup = {
attr:
{
unnamed: { req: true, valid: /^-?[0-9]+$/ },
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
site: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ }
domain: { req: false, valid: MarkupDomainRegexMap.lang },
site: { req: false, valid: MarkupDomainRegexMap.lang }
},
validate: function(attr)
{
@@ -1656,8 +1736,8 @@ var Markup = {
attr:
{
unnamed: { req: true, valid: /^[0-9]+$/ },
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
site: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ }
domain: { req: false, valid: MarkupDomainRegexMap.lang },
site: { req: false, valid: MarkupDomainRegexMap.lang }
},
validate: function(attr)
{
@@ -1697,8 +1777,8 @@ var Markup = {
attr:
{
unnamed: { req: true, valid: /^[0-9]+$/ },
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
site: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ }
domain: { req: false, valid: MarkupDomainRegexMap.lang },
site: { req: false, valid: MarkupDomainRegexMap.lang }
},
validate: function(attr)
{
@@ -1820,8 +1900,8 @@ var Markup = {
{
unnamed: { req: true, valid: /^[0-9]+$/ },
icon: { req: false, valid: /^false$/ },
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
site: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ }
domain: { req: false, valid: MarkupDomainRegexMap.lang },
site: { req: false, valid: MarkupDomainRegexMap.lang }
},
validate: function(attr)
{
@@ -1881,8 +1961,8 @@ var Markup = {
{
unnamed: { req: true, valid: /^[0-9]+$/ },
icon: { req: false, valid: /^false$/ },
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
site: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ }
domain: { req: false, valid: MarkupDomainRegexMap.lang },
site: { req: false, valid: MarkupDomainRegexMap.lang }
},
validate: function(attr)
{
@@ -2045,8 +2125,8 @@ var Markup = {
unnamed: { req: true, valid: /^[0-9]+$/ },
gender: { req: false, valid: /^(0|1)$/ },
icon: { req: false, valid: /^false$/ },
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
site: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ }
domain: { req: false, valid: MarkupDomainRegexMap.lang },
site: { req: false, valid: MarkupDomainRegexMap.lang }
},
validate: function(attr)
{
@@ -2263,8 +2343,8 @@ var Markup = {
{
unnamed: { req: true, valid: /^[0-9]+$/ },
icon: { req: false, valid: /^false$/ },
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
site: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ }
domain: { req: false, valid: MarkupDomainRegexMap.lang },
site: { req: false, valid: MarkupDomainRegexMap.lang }
},
validate: function(attr)
{
@@ -2335,7 +2415,7 @@ var Markup = {
type: { req: false, valid: /\S+/ },
src2: { req: false, valid: /\S+/ },
type2: { req: false, valid: /\S+/ },
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ }
domain: { req: false, valid: MarkupDomainRegexMap.lang }
},
validate: function (attr)
{
@@ -2498,8 +2578,8 @@ var Markup = {
unnamed: { req: true, valid: /^[0-9]+$/ },
diff: { req: false, valid: /^[0-9]+$/ },
icon: { req: false, valid: /^false$/ },
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
site: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
domain: { req: false, valid: MarkupDomainRegexMap.lang },
site: { req: false, valid: MarkupDomainRegexMap.lang },
buff: { req: false, valid: /^true$/ },
tempname: { req: false }
},
@@ -2563,8 +2643,8 @@ var Markup = {
{
unnamed: { req: true, valid: /^[0-9]+$/ },
icon: { req: false, valid: /^false$/ },
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
site: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ }
domain: { req: false, valid: MarkupDomainRegexMap.lang },
site: { req: false, valid: MarkupDomainRegexMap.lang }
},
validate: function(attr)
{
@@ -3368,8 +3448,8 @@ var Markup = {
attr:
{
unnamed: { req: true, valid: /^[0-9]+$/ },
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
site: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ }
domain: { req: false, valid: MarkupDomainRegexMap.lang },
site: { req: false, valid: MarkupDomainRegexMap.lang }
},
validate: function(attr)
{
@@ -3408,8 +3488,8 @@ var Markup = {
attr:
{
unnamed: { req: true, valid: /^[0-9]+$/ },
domain: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ },
site: { req: false, valid: /^(beta|mop|ptr|www|de|es|fr|ru|pt)$/ }
domain: { req: false, valid: MarkupDomainRegexMap.lang },
site: { req: false, valid: MarkupDomainRegexMap.lang }
},
validate: function(attr)
{

View File

@@ -2259,7 +2259,7 @@ $WH.g_createButton = function(text, href, opts)
href = 'javascript:;';
if (typeof opts['float'] != 'undefined' && !opts['float'])
styles.push('float:inherit');
styles.push('float:right');
if (typeof opts.style == 'string')
styles.push(opts.style);
@@ -2267,7 +2267,7 @@ $WH.g_createButton = function(text, href, opts)
if (typeof opts.click == 'function' && !opts.disabled)
func = opts.click;
var btn = RedButton.create(text, !opts.disabled, func);
var btn = RedButton.create(text || '\0', !opts.disabled, func);
if (styles.length)
$(btn).attr('style', styles.join(';'));

View File

@@ -403,6 +403,22 @@ var fi_filters = {
{ id: 20, name: 'teamcontrib5v5', type: 'num' }
],
icons: [
{ id: 9999, name: 'sepuses' },
{ id: 13, name: 'used', type: 'num' },
{ id: 1, name: 'items', type: 'num' },
{ id: 2, name: 'spells', type: 'num' },
{ id: 3, name: 'achievements', type: 'num' },
// { id: 4, name: 'battlepets', type: 'num' },
// { id: 5, name: 'battlepetabilities', type: 'num' },
{ id: 6, name: 'currencies', type: 'num' },
// { id: 7, name: 'garrisonabilities', type: 'num' },
// { id: 8, name: 'garrisonbuildings', type: 'num' },
{ id: 9, name: 'hunterpets', type: 'num' },
// { id: 10, name: 'garrisonmissionthreats', type: 'num' },
{ id: 11, name: 'classes', type: 'num' }
],
// custom
enchantments: [
{ id: 1, name: 'sepgeneral' },

View File

@@ -4880,6 +4880,10 @@ function Listview(opt) {
this.createNote = this.template.createNote;
}
if (this.sortOptions == null && this.template.sortOptions != null) {
this.sortOptions = this.template.sortOptions;
}
if (this.customFilter == null && this.template.customFilter != null) {
this.customFilter = this.template.customFilter;
}
@@ -5042,12 +5046,23 @@ function Listview(opt) {
});
}
for (var i = 0, len = this.columns.length; i < len; ++i) {
var col = this.columns[i];
if (visibleCols[col.id] != null || (!col.hidden && hiddenCols[col.id] == null)) {
this.visibility.push(i);
if ($.isArray(this.sortOptions)) {
for (var i = 0, len = this.sortOptions.length; i < len; ++i) {
var sortOpt = this.sortOptions[i];
if (visibleCols[sortOpt.id] != null || (!sortOpt.hidden && hiddenCols[sortOpt.id] == null)) {
this.visibility.push(i);
}
}
}
else {
for (var i = 0, len = this.columns.length; i < len; ++i) {
var col = this.columns[i];
if (visibleCols[col.id] != null || (!col.hidden && hiddenCols[col.id] == null)) {
this.visibility.push(i);
}
}
}
// ************************
// Sort
@@ -5160,6 +5175,7 @@ Listview.MODE_CHECKBOX = 1;
Listview.MODE_DIV = 2;
Listview.MODE_TILED = 3;
Listview.MODE_CALENDAR = 4;
Listview.MODE_FLEXGRID = 5;
Listview.prototype = {
initialize: function() {
@@ -5204,6 +5220,29 @@ Listview.prototype = {
this.mainContainer.className = 'listview-mode-div';
}
}
else if (this.mode == Listview.MODE_FLEXGRID) {
/* iconDB todo evaluate */
this.mainContainer = this.mainDiv = $WH.ce('div', { className: 'listview-mode-flexgrid' });
this.mainContainer.setAttribute('data-cell-min-width', this.template.cellMinWidth);
if (this.clickable)
this.mainContainer.className += ' clickable';
var layout = $('.layout');
var totalWidth = parseInt(layout.css('max-width')) - (parseInt(layout.css('padding-left')) || 0) - (parseInt(layout.css('padding-right')) || 0);
var slots = Math.floor(totalWidth / this.template.cellMinWidth);
var extraStyle = '.listview-mode-flexgrid[data-cell-min-width="' + this.template.cellMinWidth + '"] > div {min-width:' + this.template.cellMinWidth + "px;width:" + (100 / slots) + "%}";
while (slots--)
{
if (slots)
{
extraStyle += "\n@media screen and (max-width: " + (((slots + 1) * this.template.cellMinWidth) - 1 + 40) + "px) {";
extraStyle += '\n .listview-mode-flexgrid[data-cell-min-width="' + this.template.cellMinWidth + '"] > div {width:' + (100 / slots) + "%}";
extraStyle += "\n}"
}
}
$("<style/>").text(extraStyle).appendTo(document.head)
}
else {
this.mainContainer = this.table = $WH.ce('table');
this.thead = $WH.ce('thead');
@@ -5229,6 +5268,9 @@ Listview.prototype = {
}
$WH.ae(this.mainContainer, colGroup);
if (this.sortOptions)
setTimeout((function() { this.updateSortArrow() }).bind(this), 0);
}
else {
if (!this.noStyle) {
@@ -5339,6 +5381,51 @@ Listview.prototype = {
$WH.ae(this.thead, tr);
},
createSortOptions: function(parent) {
if (!$.isArray(this.sortOptions))
return;
var div = $WH.ce('div');
div.className = 'listview-sort-options';
div.innerHTML = LANG.lvnote_sort;
var sp = $WH.ce('span');
sp.className = 'listview-sort-options-choices';
var activeSort = null;
if ($.isArray(this.sort))
activeSort = this.sort[0];
var a;
var sorts = [];
for (var i = 0; i < this.sortOptions.length; i++)
{
if (this.sortOptions[i].hidden)
continue;
a = $WH.ce('a');
a.href = 'javascript:;';
a.innerHTML = this.sortOptions[i].name;
a.onclick = this.sortGallery.bind(this, a, i + 1);
if (activeSort === i + 1)
a.className = 'active';
sorts.push(a)
}
for (i = 0; i < sorts.length; i++)
$WH.ae(sp, sorts[i]);
$WH.ae(div, sp);
$WH.aef(parent, div);
},
sortGallery: function(el, colNo) {
var btn = $(el);
btn.siblings('a').removeClass('active');
btn.addClass('active');
this.sortBy(colNo);
},
createBands: function() {
var
bandTop = $WH.ce('div'),
@@ -5370,6 +5457,8 @@ Listview.prototype = {
this.createNote(noteTop, noteBot);
}
this.createSortOptions(noteTop);
if (this.debug) {
$WH.ae(noteTop, $WH.ct(" ("));
var ids = $WH.ce('a');
@@ -5608,7 +5697,20 @@ Listview.prototype = {
},
refreshRows: function() {
var target = (this.mode == Listview.MODE_DIV ? this.mainContainer : this.tbody);
var target = null;
switch (this.mode) {
case Listview.MODE_DIV:
target = this.mainContainer;
break;
case Listview.MODE_FLEXGRID:
target = this.mainDiv;
break;
default:
target = this.tbody
}
if (!target)
return;
$WH.ee(target);
if (this.nRowsVisible == 0) {
@@ -5686,6 +5788,24 @@ Listview.prototype = {
$WH.ae(this.mainDiv, this.getDiv(i));
}
}
else if (this.mode == Listview.MODE_FLEXGRID) {
for (var j = 0; j < nItemsToDisplay; ++j) {
var
i = starti + j,
row = this.data[i];
if (!row) {
break;
}
if (row.__hidden || row.__deleted) {
++nItemsToDisplay;
continue;
}
$WH.ae(this.mainDiv, this.getDiv(i));
}
}
else if (this.mode == Listview.MODE_TILED) {
var
k = 0,
@@ -6344,7 +6464,8 @@ Listview.prototype = {
},
sortBy: function(colNo) {
if (colNo <= 0 || colNo > this.columns.length) {
var sorts = this.sortOptions || this.columns;
if (colNo <= 0 || colNo > sorts.length) {
return;
}
@@ -6353,7 +6474,7 @@ Listview.prototype = {
}
else {
var defaultSort = -1;
if (this.columns[colNo-1].type == 'text') {
if (sorts[colNo-1].type == 'text') {
defaultSort = 1;
}
@@ -6373,6 +6494,7 @@ Listview.prototype = {
Listview.sort = this.sort;
Listview.columns = this.columns;
Listview.sortOptions = this.sortOptions;
if (this.indexCreated) {
this.data.sort(Listview.sortIndexedRows.bind(this));
@@ -6425,10 +6547,11 @@ Listview.prototype = {
var sort = [];
var matches= _.match(/(\+|\-)[0-9]+/g);
if (matches != null) {
var sorts = this.sortOptions || this.columns;
for (var i = matches.length - 1; i >= 0; --i) {
var colNo = parseInt(matches[i]) | 0;
var _ = Math.abs(colNo);
if (_ <= 0 || _ > this.columns.length) {
if (_ <= 0 || _ > sorts.length) {
break;
}
this.addSort(sort, colNo);
@@ -6509,7 +6632,7 @@ Listview.prototype = {
},
updateSortArrow: function() {
if (!this.sort.length || !this.thead || this.mode == Listview.MODE_TILED || this.mode == Listview.MODE_CALENDAR) {
if (!this.sort.length || !this.thead || this.mode == Listview.MODE_CALENDAR /* || this.searchSort */) {
return;
}
@@ -6519,6 +6642,19 @@ Listview.prototype = {
return;
}
if (this.mode == Listview.MODE_TILED) {
if (!this.sortOptions)
return;
var a = $('.listview-sort-options a', this.noteTop).get(i);
if (this.lsa && this.lsa != a)
this.lsa.className = '';
a.className = this.sort[0] < 0 ? 'active sortdesc' : 'active sortasc';
this.lsa = a;
return;
}
if (this.mode == Listview.MODE_CHECKBOX && i < this.thead.firstChild.childNodes.length - 1) {
i += 1;
}
@@ -6874,7 +7010,7 @@ Listview.sortRows = function(a, b) {
Listview.sortIndexedRows = function(a, b) {
var
sort = Listview.sort,
cols = Listview.columns,
cols = Listview.sortOptions || Listview.columns,
res;
for (var idx in sort) {
@@ -11381,6 +11517,156 @@ Listview.templates = {
]
},
icongallery:
{
sort: [1],
mode: Listview.MODE_FLEXGRID,
clickable: false,
nItemsPerPage: 150,
cellMinWidth: 85,
poundable: 1,
sortOptions: [{
id: 'name',
name: LANG.name,
sortFunc: function(f, c) {
return $WH.stringCompare(f.name, c.name)
}
}],
columns: [],
value: 'name',
compute: function(_icon, td, tr) {
var cell = $WH.ce('div');
cell.className = 'icon-cell';
$(cell).mouseenter(function() {
setTimeout((function() { this.className += ' animate'; }).bind(this), 1);
}).mouseleave(function() {
this.className = this.className.replace(/ *animate\b/, '');
});
$WH.ae(cell, Icon.create(_icon.icon, 2, null, this.getItemLink(_icon)));
var overlay = $WH.ce('div', { className: 'icon-cell-overlay' });
$(overlay).mouseleave(function() {
$('.fa-check', this).removeClass('fa-check').addClass('fa-clipboard');
});
$WH.ae(overlay, Icon.create(_icon.icon, 2, null, this.getItemLink(_icon)));
var ovlName = $WH.ce('div', { className: 'icon-cell-overlay-name' });
var o = function()
{
this.focus();
this.select();
};
$WH.ae(ovlName, $WH.ce('input', {
type: 'text',
value: _icon.name,
onclick: o,
onfocus: o
}));
/* Aowow - we do not use FA
$WH.ae(ovlName, $WH.g_createButton(null, null, {
'class': 'fa fa-fw fa-clipboard',
'float': false,
'no-margin': true,
click: function() {
var v = $(this);
var y = v.siblings('input[type="text"]');
y.focus().select();
var w = false;
try
{
if (!document.execCommand('copy'))
w = true;
}
catch (u) { w = true; }
y.blur();
if (w)
{
v.css({ 'pointer-events': 'none' })
.removeClass('fa-clipboard')
.addClass('fa-exclamation-triangle')
.blur()
.effect('shake', { distance: 5 });
setTimeout(function() { $('.icon-cell-overlay-name .btn').fadeOut(1000) }, 600);
}
else
v.removeClass('fa-clipboard').addClass('fa-check');
}
}));
*/
$WH.ae(ovlName, $WH.ce('input', {
type: 'button',
className: 'button-copy',
onclick: function() {
var btn = $(this);
var iName = btn.siblings('input[type="text"]');
iName.focus().select();
var error = false;
try
{
if (!document.execCommand('copy'))
error = true;
}
catch (x) { error = true; }
iName.blur();
if (error)
{
btn.css({
'pointer-events': 'none',
'background-image': 'url(' + g_staticUrl + '/images/icons/report.png)'
}).blur();
setTimeout(function() { $('.icon-cell-overlay-name .button-copy').fadeOut(1000) }, 600);
}
else
btn.css('background-image', 'url(' + g_staticUrl + '/images/icons/tick.png)');
}
}));
/* end replacement */
$WH.ae(overlay, ovlName);
var t = $WH.ce('div', { className: 'icon-cell-overlay-counts' });
var types = [3, 6, 10, 17, 9, 13];
var c = 0;
for (var h = 0, m; m = types[h]; h++) {
var p = g_types[m] + 'count';
if (_icon[p]) {
c += _icon[p];
var g = g_types[m];
var s = _icon[p] == 1 ? LANG.types[m][1] : LANG.types[m][3];
$WH.ae(t, $WH.ce('div', null, $WH.ce('a', {
href: this.getItemLink(_icon) + '#used-by-' + g,
innerHTML: $WH.sprintf(LANG.entitycount, _icon[p], s)
})))
}
}
if (!c)
$WH.ae(t, $WH.ce('div', { innerHTML: LANG.unused }));
$WH.ae(overlay, t);
var k = $WH.ce('div', { className: 'icon-cell-overlay-placer' }, overlay);
$WH.ae(cell, k);
$WH.ae(td, cell);
},
sortFunc: function(a, b) {
return $WH.stringCompare(a.name, b.name);
},
getItemLink: function(icon) {
return "?icon=" + icon.id;
}
},
topusers:
{
sort: ['reputation'],
@@ -20873,6 +21159,10 @@ var Links = new function() {
item: 1
};
var extraTypes = {
29: 'icondb'
};
this.onShow = function() {
if (location.hash && location.hash != '#links') {
oldHash = location.hash;
@@ -20934,7 +21224,7 @@ var Links = new function() {
'wowheadurl': g_host +'?' + type + '=' + opt.typeId,
'armoryurl': 'http://us.battle.net/wow/en/' + type + '/' + opt.typeId,
'ingamelink': link,
'markuptag': '[' + type + '=' + opt.typeId + ']'
'markuptag': '[' + (extraTypes[opt.type] || type) + '=' + opt.typeId + ']'
};
dialog.show('links', {
@@ -21403,8 +21693,9 @@ AudioControls = function () {
function createButton(text, disabled) {
return $WH.g_createButton(text, null, {
disabled: disabled,
'float': false,
style: 'margin:0 12px; display:inline-block'
// 'float': false, Aowow - adapted style
// style: 'margin:0 12px; display:inline-block'
style: 'margin:0 12px; display:inline-block; float:inherit; '
});
}
};
@@ -22085,6 +22376,7 @@ var
g_skills = {},
g_gatheredcurrencies = {},
g_sounds = {},
g_icons = {},
g_enchantments = {},
g_emotes = {};
@@ -22106,6 +22398,7 @@ var g_types = {
15: 'skill',
17: 'currency',
19: 'sound',
29: 'icon',
501: 'emote',
502: 'enchantment'
};

View File

@@ -812,6 +812,20 @@ var mn_sounds = [
[50,"Zone Ambience","?sounds&filter=ty=50"],
[28,"Zone Music","?sounds&filter=ty=28"]
];
mn_icons = [
[3, "Erfolge", "?icons&filter=cr=3;crs=1;crv=0"],
// [4, "Kampfhaustiere", "?icons&filter=cr=4;crs=1;crv=0"],
// [5, "Kampfhaustier-Fähigkeiten", "?icons&filter=cr=5;crs=1;crv=0"],
[11, "Klassen", "?icons&filter=cr=11;crs=1;crv=0"],
[6, "Währungen", "?icons&filter=cr=6;crs=1;crv=0"],
// [7, "Garnisonsfähigkeiten", "?icons&filter=cr=7;crs=1;crv=0"],
// [8, "Garnisonsgebäude", "?icons&filter=cr=8;crs=1;crv=0"],
[1, "Gegenstände", "?icons&filter=cr=1;crs=1;crv=0"],
[9, "Begleiter", "?icons&filter=cr=9;crs=1;crv=0"],
[2, "Zauber", "?icons&filter=cr=2;crs=1;crv=0"],
// [10, "Bedrohungen", "?icons&filter=cr=10;crs=1;crv=0"],
[13, "Ungenutzt", "?icons&filter=cr=13;crs=3;crv=0"]
];
var mn_talentCalc = [
[6,"Todesritter","?talent#j",,{className:"c6",tinyIcon:"class_deathknight"}],
[11,"Druide","?talent#0",,{className:"c11",tinyIcon:"class_druid"}],
@@ -862,25 +876,30 @@ var mn_petCalc = [
[42,"Wurm","?petcalc#mm",,{tinyIcon:"Ability_Hunter_Pet_Worm"}]
];
var mn_database = [
[, "Gegenstände"],
[2,"Ausrüstungssets","?itemsets",mn_itemSets],
[0,"Gegenstände","?items",mn_items],
[101,"Verzauberungen","?enchantments",mn_enchantments],
[, "Charakter"],
[14,"Berufe & Fertigkeiten","?skills",mn_skills],
[8,"Begleiter","?pets",mn_pets],
[9,"Erfolge","?achievements",mn_achievements],
[12,"Klassen","?classes",mn_classes],
[10,"Titel","?titles",mn_titles],
[13,"Völker","?races",mn_races],
[1,"Zauber","?spells",mn_spells],
[100,"Emotes","?emotes",null],
[, "Welt"],
[7,"Fraktionen","?factions",mn_factions],
[6,"Gebiete","?zones",mn_zones],
[0,"Gegenstände","?items",mn_items],
[12,"Klassen","?classes",mn_classes],
[19,"Klänge","?sounds",mn_sounds],
[4,"NPCs","?npcs",mn_npcs],
[5,"Objekte","?objects",mn_objects],
[3,"Quests","?quests",mn_quests],
[10,"Titel","?titles",mn_titles],
[13,"Völker","?races",mn_races],
[15,"Währungen","?currencies",mn_currencies],
[11,"Weltereignisse","?events",mn_holidays],
[1,"Zauber","?spells",mn_spells],
[100,"Emotes","?emotes",null],
[101,"Verzauberungen","?enchantments",mn_enchantments]
[, "Anderes"],
[19,"Klänge","?sounds",mn_sounds],
[31, "Icons", "?icons", mn_icons]
];
var mn_tools = [
[0,"Talentrechner","?talent",mn_talentCalc],
@@ -2427,6 +2446,7 @@ var LANG = {
diet: "Ernährung",
dps: "DPS",
earned: "Errungen",
entitycount: "$1 $2",
enchant: "Verzaubern",
exp: "Erf.",
faction: "Fraktion",
@@ -2520,6 +2540,7 @@ var LANG = {
tp: "TP",
trending: "Aktuell",
type: "Art",
unused: "Ungenutzt",
up: "Hoch",
cooldown: "Abklingzeit",
duration: "Dauer",
@@ -2653,11 +2674,14 @@ var LANG = {
lvnodata_vi2: "Ihr könntet der Erste sein, der für diese Seite ein <a>Video</a> vorschlägt!",
lvnodata_vi3: "Bitte <a>meldet Euch an</a> um ein Video vorzuschlagen, oder <a>registriert Euch</a> falls Ihr noch nicht über einen Account verfügt.",
lvnote_sort: "Sortieren nach: ",
lvnote_tryfiltering: "Versucht es mit <a>gefilterten</a> Suchergebnissen.",
lvnote_trynarrowing: "Versucht, Eure Suche weiter einzugrenzen",
lvnote_upgradesfor: 'Sucht nach Verbesserungen für <a href="?item=$1" class="q$2"><b>$3</b></a>.',
lvnote_witherrors: "Einige Filter in Eurer Suche waren nicht gültig und wurden ignoriert.",
lvnote_entitiesfound: "$1 $2 gefunden ($3 angezeigt)",
lvnote_itemsfound: "$1 Gegenstände gefunden ($2 angezeigt)",
lvnote_itemsetsfound: "$1 Sets gefunden ($2 angezeigt)",
lvnote_npcsfound: "$1 NPCs gefunden ($2 angezeigt)",
@@ -3276,6 +3300,7 @@ var LANG = {
16: ["Statistik", "Statistik", "Statistiken", "Statistiken"],
17: ["Währung", "Währung", "Währungen", "Währungen"],
19: ["Klang", "Klang", "Klänge", "Klänge"],
29: ["Icon", "Icon", "Icons", "Icons"],
501: ["Emote", "Emote", "Emotes", "Emotes"],
502: ["Verzauberung", "Verzauberung", "Verzauberungen", "Verzauberungen"]
},
@@ -3951,6 +3976,23 @@ var LANG = {
teamcontrib5v5: "5v5 Arena-Teambeteiligung"
},
fiicons: { // derived from from LANG.filters_icons
sepgeneral: "Allgemein",
sepuses: "Verwendungen",
used: "Anzahl Verwendungen",
items: "Genutzt von Gegenstände",
spells: "Genutzt von Zauber",
achievements: "Genutzt von Erfolge",
// battlepets: "Genutzt von Kampfhaustiere",
// battlepetabilities: "Genutzt von Kampfhaustier-Fähigkeiten",
currencies: "Genutzt von Währungen",
// missionabilities: "Genutzt von Missionsfähigkeiten",
// garrisonbuildings: "Genutzt von Garnisonsgebäude",
hunterpets: "Genutzt von Begleiter",
// threats: "Genutzt von Bedrohungen",
classes: "Genutzt von Klassen"
},
// custom
fienchantments: {
id: "ID",

View File

@@ -858,6 +858,20 @@ var mn_sounds = [
[50,"Zone Ambience","?sounds&filter=ty=50"],
[28,"Zone Music","?sounds&filter=ty=28"]
];
mn_icons = [
[3, "Achievements", "?icons&filter=cr=3;crs=1;crv=0"],
// [4, "Battle Pets", "?icons&filter=cr=4;crs=1;crv=0"],
// [5, "Battle Pet Abilities", "?icons&filter=cr=5;crs=1;crv=0"],
[11, "Classes", "?icons&filter=cr=11;crs=1;crv=0"],
[6, "Currencies", "?icons&filter=cr=6;crs=1;crv=0"],
// [7, "Garrison Abilities", "?icons&filter=cr=7;crs=1;crv=0"],
// [8, "Garrison Buildings", "?icons&filter=cr=8;crs=1;crv=0"],
[1, "Items", "?icons&filter=cr=1;crs=1;crv=0"],
[9, "Hunter Pets", "?icons&filter=cr=9;crs=1;crv=0"],
[2, "Spells", "?icons&filter=cr=2;crs=1;crv=0"],
// [10, "Threats", "?icons&filter=cr=10;crs=1;crv=0"],
[13, "Unused", "?icons&filter=cr=13;crs=3;crv=0"]
];
var mn_talentCalc = [
[6,"Death Knight","?talent#j",,{className:"c6",tinyIcon:"class_deathknight"}],
[11,"Druid","?talent#0",,{className:"c11",tinyIcon:"class_druid"}],
@@ -908,25 +922,30 @@ var mn_petCalc = [
[42,"Worm","?petcalc#mm",,{tinyIcon:"Ability_Hunter_Pet_Worm"}]
];
var mn_database = [
[9,"Achievements","?achievements",mn_achievements],
[12,"Classes","?classes",mn_classes],
[15,"Currencies","?currencies",mn_currencies],
[7,"Factions","?factions",mn_factions],
[, "Items"],
[0,"Items","?items",mn_items],
[2,"Item Sets","?itemsets",mn_itemSets],
[4,"NPCs","?npcs",mn_npcs],
[5,"Objects","?objects",mn_objects],
[101,"Enchantments","?enchantments",mn_enchantments],
[, "Character"],
[9,"Achievements","?achievements",mn_achievements],
[12,"Classes","?classes",mn_classes],
[100,"Emotes","?emotes",null],
[8,"Hunter Pets","?pets",mn_pets],
[14,"Professions & Skills","?skills",mn_skills],
[3,"Quests","?quests",mn_quests],
[13,"Races","?races",mn_races],
[19,"Sounds","?sounds",mn_sounds],
[1,"Spells","?spells",mn_spells],
[10,"Titles","?titles",mn_titles],
[, "World"],
[15,"Currencies","?currencies",mn_currencies],
[7,"Factions","?factions",mn_factions],
[4,"NPCs","?npcs",mn_npcs],
[5,"Objects","?objects",mn_objects],
[3,"Quests","?quests",mn_quests],
[11,"World Events","?events",mn_holidays],
[6,"Zones","?zones",mn_zones],
[100,"Emotes","?emotes",null],
[101,"Enchantments","?enchantments",mn_enchantments]
[, "Other"],
[31, "Icons", "?icons", mn_icons],
[19,"Sounds","?sounds",mn_sounds]
];
var mn_tools = [
[0,"Talent Calculator","?talent",mn_talentCalc],
@@ -2475,6 +2494,7 @@ var LANG = {
dps: "DPS",
earned: "Earned",
enchant: "Enchant",
entitycount: "$1 $2",
exp: "Exp.",
faction: "Faction",
gains: "Gains",
@@ -2568,6 +2588,7 @@ var LANG = {
tp: "TP",
trending: "Trending",
type: "Type",
unused: "Unused",
up: "Up",
cooldown: "Cooldown",
duration: "Duration",
@@ -2701,11 +2722,14 @@ var LANG = {
lvnodata_vi2: "Be the first to <a>suggest a video</a> for this page!",
lvnodata_vi3: "Please <a>sign in</a> to suggest a video, or <a>sign up</a> if you don't already have an account.",
lvnote_sort: "Sort by: ",
lvnote_tryfiltering: "Try <a>filtering</a> your results",
lvnote_trynarrowing: "Try narrowing your search",
lvnote_upgradesfor: 'Finding upgrades for <a href="?item=$1" class="q$2"><b>$3</b></a>.',
lvnote_witherrors: "Some filters in your search were invalid and have been ignored.",
lvnote_entitiesfound: "$1 $2 found ($3 displayed)",
lvnote_itemsfound: "$1 items found ($2 displayed)",
lvnote_itemsetsfound: "$1 item sets found ($2 displayed)",
lvnote_npcsfound: "$1 NPCs found ($2 displayed)",
@@ -3324,6 +3348,7 @@ var LANG = {
16: ["Statistic", "statistic", "Statistics", "statistics"],
17: ["Currency", "currency", "Currencies", "currencies"],
19: ["Sound", "sound", "Sounds", "sounds"],
29: ["Icon", "icon", "Icons", "icons"],
501: ["Emote", "emote", "Emotes", "emotes"],
502: ["Enchantment", "enchantment", "Enchantments", "enchantments"]
},
@@ -3998,6 +4023,23 @@ var LANG = {
teamcontrib5v5: "5v5 arena team contribution"
},
fiicons: { // derived from from LANG.filters_icons
sepgeneral: "General",
sepuses: "Uses",
used: "Times Used",
items: "Used by Items",
spells: "Used by Spells",
achievements: "Used by Achievements",
// battlepets: "Used by Battle Pets",
// battlepetabilities: "Used by Battle Pet Abilities",
currencies: "Used by Currencies",
// missionabilities: "Used by Mission Abilities",
// garrisonbuildings: "Used by Garrison Buildings",
hunterpets: "Used by Hunter Pets",
// threats: "Used by Threats",
classes: "Used by Classes"
},
// custom
fienchantments: {
id: "ID",

View File

@@ -812,6 +812,20 @@ var mn_sounds = [
[50,"Zone Ambience","?sounds&filter=ty=50"],
[28,"Zone Music","?sounds&filter=ty=28"]
];
mn_icons = [
[3, "Logros", "?icons&filter=cr=3;crs=1;crv=0"],
// [4, "Mascotas de duelo", "?icons&filter=cr=4;crs=1;crv=0"],
// [5, "Habilidades de mascota de batalla", "?icons&filter=cr=5;crs=1;crv=0"],
[11, "Clases", "?icons&filter=cr=11;crs=1;crv=0"],
[6, "Monedas", "?icons&filter=cr=6;crs=1;crv=0"],
// [8, "Construcciones de Ciudadela", "/icons?filter=cr=8;crs=1;crv=0"],
[1, "Objetos", "?icons&filter=cr=1;crs=1;crv=0"],
[9, "Mascotas de cazador", "?icons&filter=cr=9;crs=1;crv=0"],
// [7, "Habilidades del cuartel", "?icons&filter=cr=7;crs=1;crv=0"],
[2, "Hechizos", "?icons&filter=cr=2;crs=1;crv=0"],
// [10, "Amenazas", "?icons&filter=cr=10;crs=1;crv=0"],
[13, "Sin uso", "?icons&filter=cr=13;crs=3;crv=0"]
];
var mn_talentCalc = [
[6,"Caballero de la muerte","?talent#j",,{className:"c6",tinyIcon:"class_deathknight"}],
[11,"Druida","?talent#0",,{className:"c11",tinyIcon:"class_druid"}],
@@ -862,25 +876,30 @@ var mn_petCalc = [
[42,"Gusano","?petcalc#mm",,{tinyIcon:"Ability_Hunter_Pet_Worm"}]
];
var mn_database = [
[9,"Logros","?achievements",mn_achievements],
[12,"Clases","?classes",mn_classes],
[15,"Monedas","?currencies", mn_currencies],
[7,"Facciones","?factions",mn_factions],
[8,"Mascotas de cazador","?pets",mn_pets],
[, "Objetos"],
[2,"Conjuntos de objetos","?itemsets",mn_itemSets],
[0,"Objetos","?items",mn_items],
[4,"PNJs","?npcs",mn_npcs],
[5,"Entidades","?objects",mn_objects],
[101,"Encantamientos","?enchantments",mn_enchantments],
[, "Personaje"],
[9,"Logros","?achievements",mn_achievements],
[12,"Clases","?classes",mn_classes],
[100,"Emociones","?emotes",null],
[8,"Mascotas de cazador","?pets",mn_pets],
[14,"Profesiones y habilidades","?skills",mn_skills],
[3,"Misiones","?quests",mn_quests],
[13,"Razas","?races",mn_races],
[1,"Hechizos","?spells",mn_spells],
[19,"Sonidos","?sounds",mn_sounds],
[10,"Títulos","?titles",mn_titles],
[, "Mundo"],
[15,"Monedas","?currencies", mn_currencies],
[7,"Facciones","?factions",mn_factions],
[4,"PNJs","?npcs",mn_npcs],
[5,"Entidades","?objects",mn_objects],
[3,"Misiones","?quests",mn_quests],
[11,"Eventos del mundo","?events",mn_holidays],
[6,"Zonas","?zones",mn_zones],
[100,"Emociones","?emotes",null],
[101,"Encantamientos","?enchantments",mn_enchantments]
[, "Otros"],
[31, "Iconos", "?icons", mn_icons],
[19,"Sonidos","?sounds",mn_sounds]
];
var mn_tools = [
[0,"Calculadora de talentos","?talent",mn_talentCalc],
@@ -2429,6 +2448,7 @@ var LANG = {
dps: "DPS",
earned: "Logrados",
enchant: "Encantar",
entitycount: "$1 $2",
exp: "Exp.",
faction: "Facción",
gains: "Ganancias",
@@ -2521,6 +2541,7 @@ var LANG = {
tp: "PI",
trending: "Tendencia",
type: "Tipo",
unused: "Sin uso",
up: "Arriba",
cooldown: "Reutilización",
duration: "Duración",
@@ -2654,11 +2675,14 @@ var LANG = {
lvnodata_vi2: "¡Sé el primero en <a>sugerir un vídeo</a> para esta página!",
lvnodata_vi3: "Por favor <a>inicia sesión</a> para sugerir un vídeo, o <a>crea tu cuenta</a> si aun no tienes una.",
lvnote_sort: "Ordenar por: ",
lvnote_tryfiltering: "Trata de <a>filtrar</a> tus resultados",
lvnote_trynarrowing: "Trata de ser más específica(o) en tu búsqueda",
lvnote_upgradesfor: 'Buscando mejoras para <a href="?item=$1" class="q$2"><b>$3</b></a>.',
lvnote_witherrors: "Algunos filtros en tus búsquedas eran inválidos y han sido ignorados.",
lvnote_entitiesfound: "Se encontraron $1 $2 (se muestran $3)",
lvnote_itemsfound: "$1 objetos encontrados (mostrando $2)",
lvnote_itemsetsfound: "$1 conjuntos de objetos encontrados (mostrando $2)",
lvnote_npcsfound: "$1 PNJs encontrados (mostrando $2)",
@@ -3277,6 +3301,7 @@ var LANG = {
16: ["Atributo", "atributo", "Atributos", "atributos"],
17: ["Monedas", "monedas", "Monedas", "monedas"],
19: ["Sonido", "sonido", "Sonidos", "sonidos"],
29: ["Icono", "icono", "Iconos", "íconos"],
501: ["Emoción", "emoción", "Emociones", "emociones"],
502: ["Encantamiento", "encantamiento", "Encantamientos", "encantamientos"]
},
@@ -3954,6 +3979,23 @@ var LANG = {
teamcontrib5v5: "Contribución de equipo de arena 5v5"
},
fiicons: { // derived from from LANG.filters_icons
sepgeneral: "General",
sepuses: "Usos",
used: "Veces Usado",
items: "Usado(a) por Objetos",
spells: "Usado(a) por Hechizos",
achievements: "Usado(a) por Logros",
// battlepets: "Usado(a) por Mascotas de duelo",
// battlepetabilities: "Usado(a) por Habilidades de mascota(s) de duelo",
currencies: "Usado(a) por Monedas",
// missionabilities: "Usado(a) por Aptitudes de misión",
// garrisonbuildings: "Usado(a) por Construcciones de Ciudadela",
hunterpets: "Usado(a) por Mascotas de cazador",
// threats: "Usado(a) por Amenazas",
classes: "Usado(a) por Clases"
},
// custom
fienchantments: {
id: "ID",

View File

@@ -812,6 +812,20 @@ var mn_sounds = [
[50,"Zone Ambience","?sounds&filter=ty=50"],
[28,"Zone Music","?sounds&filter=ty=28"]
];
mn_icons = [
[3, "Hauts faits", "?icons&filter=cr=3;crs=1;crv=0"],
// [4, "Mascottes de combat", "?icons&filter=cr=4;crs=1;crv=0"],
// [5, "Capacités de Familiers en Combat", "?icons&filter=cr=5;crs=1;crv=0"],
[11, "Classes", "?icons&filter=cr=11;crs=1;crv=0"],
[6, "Monnaies", "?icons&filter=cr=6;crs=1;crv=0"],
// [7, "Compétences de fief", "?icons&filter=cr=7;crs=1;crv=0"],
// [8, "Bâtiments de fief", "?icons&filter=cr=8;crs=1;crv=0"],
[1, "Objets", "?icons&filter=cr=1;crs=1;crv=0"],
[9, "Familiers de chasseur", "?icons&filter=cr=9;crs=1;crv=0"],
[2, "Sorts", "?icons&filter=cr=2;crs=1;crv=0"],
// [10, "Menaces", "?icons&filter=cr=10;crs=1;crv=0"],
[13, "Inutilisé", "?icons&filter=cr=13;crs=3;crv=0"]
];
var mn_talentCalc = [
[6,"Chevalier de la mort","?talent#j",,{className:"c6",tinyIcon:"class_deathknight"}],
[11,"Druide","?talent#0",,{className:"c11",tinyIcon:"class_druid"}],
@@ -862,25 +876,30 @@ var mn_petCalc = [
[42,"Ver","?petcalc#mm",,{tinyIcon:"Ability_Hunter_Pet_Worm"}]
];
var mn_database = [
[9,"Hauts faits","?achievements",mn_achievements],
[12,"Classes","?classes",mn_classes],
[15,"Monnaies","?currencies", mn_currencies],
[7,"Factions","?factions",mn_factions],
[8,"Familiers de chasseur","?pets",mn_pets],
[, "Objets"],
[2,"Ensembles d'objets","?itemsets",mn_itemSets],
[0,"Objets","?items",mn_items],
[4,"PNJs","?npcs",mn_npcs],
[5,"Entités","?objects",mn_objects],
[101,"Enchantements","?enchantments",mn_enchantments],
[, "Personnage"],
[9,"Hauts faits","?achievements",mn_achievements],
[12,"Classes","?classes",mn_classes],
[8,"Familiers de chasseur","?pets",mn_pets],
[14,"Métiers & compétences","?skills",mn_skills],
[3,"Quêtes","?quests",mn_quests],
[13,"Races","?races",mn_races],
[19,"Sons","?sounds", mn_sounds],
[1,"Sorts","?spells",mn_spells],
[10,"Titres","?titles",mn_titles],
[100,"Emotes","?emotes",null],
[, "Monde"],
[15,"Monnaies","?currencies", mn_currencies],
[7,"Factions","?factions",mn_factions],
[4,"PNJs","?npcs",mn_npcs],
[5,"Entités","?objects",mn_objects],
[3,"Quêtes","?quests",mn_quests],
[11,"Évènements mondiaux","?events",mn_holidays],
[6,"Zones","?zones",mn_zones],
[100,"Emotes","?emotes",null],
[101,"Enchantements","?enchantments",mn_enchantments]
[, "Autre"],
[31, "Icônes", ":wowhead.com/icons", mn_icons],
[19,"Sons","?sounds", mn_sounds]
];
var mn_tools = [
[0,"Calculateur de talents","?talent",mn_talentCalc],
@@ -2418,6 +2437,7 @@ var LANG = {
dps: "DPS",
earned: "Accomplis",
enchant: "Enchanter",
entitycount: "$1 $2",
exp: "Exp.",
faction: "Faction",
gains: "Gains",
@@ -2511,6 +2531,7 @@ var LANG = {
tp: "PE",
trending: "Tendance",
type: "Type",
unused: "Inutilisé",
up: "Vers le haut",
cooldown: "Recharge",
duration: "Durée",
@@ -2644,11 +2665,14 @@ var LANG = {
lvnodata_vi2: "Soyez le premier <a>suggérer un vidéo</a> pour cette page!",
lvnodata_vi3: "Veuillez vous <a>connecter</a> pour suggérer un vidéo ou <a>enregistrez vous</a> si vous n'avez pas de compte.",
lvnote_sort: "Trier par : ",
lvnote_tryfiltering: "Essayez de <a>filtrer</a> vos résultats",
lvnote_trynarrowing: "Essayez de restreindre votre recherche",
lvnote_upgradesfor: 'En train de trouver des améliorations pour <a href="?item=$1" class="q$2"><b>$3</b></a>.',
lvnote_witherrors: "Certains filtres dans votre recherche étaient invalides et on été ignorés.",
lvnote_entitiesfound: "$1 $2 trouvés ($3 affichés)",
lvnote_itemsfound: "$1 objets trouvés ($2 affichés)",
lvnote_itemsetsfound: "$1 ensembles d'objets trouvés ($2 affichés)",
lvnote_npcsfound: "$1 PNJs trouvés ($2 affichés)",
@@ -3267,6 +3291,7 @@ var LANG = {
16: ["Statistique", "statistique", "Statistiques", "statistiques"],
17: ["Monnaies", "monnaie", "Monnaies", "monnaies"],
19: ["Son", "Son", "Sons", "Sons"],
29: ["Icône", "icône", "Icônes", "icônes"],
501: ["Emote", "emote", "Emotes", "emotes"],
502: ["Enchantement", "enchantement", "Enchantements", "enchantements"]
},
@@ -3943,6 +3968,23 @@ var LANG = {
teamcontrib5v5: "Contribution d'un équipe d'aréna 5v5"
},
fiicons: { // derived from from LANG.filters_icons
sepgeneral: "Général",
sepuses: "Usages",
used: "Nombre d'utilisations",
items: "Utilisé par des Objets",
spells: "Utilisé par des Sorts",
achievements: "Utilisé par des Hauts faits",
// battlepets: "Utilisé par des Mascottes de combat",
// battlepetabilities: "Utilisé par des Capacités de Familiers en Combat",
currencies: "Utilisé par des Monnaies",
// missionabilities: "Utilisé par des Capacités de la mission",
// garrisonbuildings: "Utilisé par des Bâtiments de fief",
hunterpets: "Utilisé par des Familiers de chasseur",
// threats: "Utilisé par des Menaces",
classes: "Utilisé par des Classes"
},
// custom
fienchantments: {
id: "ID",

View File

@@ -812,6 +812,20 @@ var mn_sounds = [
[50,"Zone Ambience","?sounds&filter=ty=50"],
[28,"Zone Music","?sounds&filter=ty=28"]
];
mn_icons = [
[3, "Достижения", "?icons&filter=cr=3;crs=1;crv=0"],
// [4, "Боевые питомцы", "?icons&filter=cr=4;crs=1;crv=0"],
// [5, "Способности Боевого Питомца", "?icons&filter=cr=5;crs=1;crv=0"],
[11, "Классы", "?icons&filter=cr=11;crs=1;crv=0"],
[6, "Валюта", "?icons&filter=cr=6;crs=1;crv=0"],
// [7, "Способности Гарнизона", "?icons&filter=cr=7;crs=1;crv=0"],
// [8, "Здания гарнизона", "?icons&filter=cr=8;crs=1;crv=0"],
[1, "Предметы", "?icons&filter=cr=1;crs=1;crv=0"],
[9, "Питомцы охотников", "?icons&filter=cr=9;crs=1;crv=0"],
[2, "Заклинания", "?icons&filter=cr=2;crs=1;crv=0"],
// [10, "Угрозы", "?icons&filter=cr=10;crs=1;crv=0"],
[13, "Неиспользуемые", "?icons&filter=cr=13;crs=3;crv=0"]
];
var mn_talentCalc = [
[6,"Рыцарь смерти","?talent#j",,{className:"c6",tinyIcon:"class_deathknight"}],
[11,"Друид","?talent#0",,{className:"c11",tinyIcon:"class_druid"}],
@@ -862,25 +876,30 @@ var mn_petCalc = [
[42,"Червь","?petcalc#mm",,{tinyIcon:"Ability_Hunter_Pet_Worm"}]
];
var mn_database = [
[9,"Достижения","?achievements",mn_achievements],
[12,"Классы","?classes",mn_classes],
[15,"Валюта","?currencies", mn_currencies],
[7,"Фракции","?factions",mn_factions],
[8,"Питомцы охотников","?pets",mn_pets],
[, "Предметы"],
[2,"Комплекты","?itemsets",mn_itemSets],
[0,"Предметы","?items",mn_items],
[4,"НИП","?npcs",mn_npcs],
[5,"Объекты","?objects",mn_objects],
[101,"Улучшения","?enchantments",mn_enchantments],
[, "Персонаж"],
[9,"Достижения","?achievements",mn_achievements],
[12,"Классы","?classes",mn_classes],
[8,"Питомцы охотников","?pets",mn_pets],
[14,"Профессии и навыки","?skills",mn_skills],
[3,"Задания","?quests",mn_quests],
[13,"Расы","?races",mn_races],
[1,"Заклинания","?spells",mn_spells],
[10,"Звания","?titles",mn_titles],
[100,"Эмоции","?emotes",null],
[, "Игровой мир"],
[15,"Валюта","?currencies", mn_currencies],
[7,"Фракции","?factions",mn_factions],
[4,"НИП","?npcs",mn_npcs],
[5,"Объекты","?objects",mn_objects],
[3,"Задания","?quests",mn_quests],
[11,"Игровые события","?events",mn_holidays],
[6,"Местности","?zones",mn_zones],
[19,"Звуки","?sounds",mn_sounds],
[100,"Эмоции","?emotes",null],
[101,"Улучшения","?enchantments",mn_enchantments]
[, "Другое"],
[31, "Иконки", ":wowhead.com/icons", mn_icons],
[19,"Звуки","?sounds",mn_sounds]
];
var mn_tools = [
[0,"Расчёт талантов","?talent",mn_talentCalc],
@@ -2418,6 +2437,7 @@ var LANG = {
dps: "УВС",
earned: "Заработано",
enchant: "Чары",
entitycount: "$2: $1",
exp: "Опыт",
faction: "Фракция",
gains: "Бонус",
@@ -2511,6 +2531,7 @@ var LANG = {
tp: "Очков",
trending: "Актуальное",
type: "Тип",
unused: "Неиспользуемые",
up: "Выше",
cooldown: "Восстановление",
duration: "Длительность",
@@ -2644,11 +2665,14 @@ var LANG = {
lvnodata_vi2: "<a>Будьте первым</a>, кто предложит видео к этой странице!",
lvnodata_vi3: "<a>Войдите</a>, чтобы предложить видео, или <a>зарегистрируйтесь</a>, если у вас еще нет учетной записи.",
lvnote_sort: "Сортировать: ",
lvnote_tryfiltering: "Попробуйте <a>отфильтровать</a> результаты",
lvnote_trynarrowing: "Попытайтесь сузить поиск",
lvnote_upgradesfor: 'Предметы лучше, чем <a href="?item=$1" class="q$2"><b>$3</b></a>.',
lvnote_witherrors: "Некоторые фильтры в вашем поиске некорректны и были проигнорированы.",
lvnote_entitiesfound: "Найдено $2: $1 (показано: $3)",
lvnote_itemsfound: "Найдено предметов: $1 (показано: $2)",
lvnote_itemsetsfound: "Найдено комплектов: $1 (показано: $2)",
lvnote_npcsfound: "Найдено НИП: $1 (показано: $2)",
@@ -3267,6 +3291,7 @@ var LANG = {
16: ["Статистика", "характеристика", "Характеристики", "характеристики"],
17: ["Валюта", "валюта", "Валюта", "валюта"],
19: ["Звук", "звук", "Звуки", "звуки"],
29: ["Иконка", "иконка", "Иконки", "иконки"],
501: ["Эмоция", "эмоция", "Эмоции", "эмоции"],
502: ["Улучшение", "улучшение", "Улучшения", "улучшения"]
},
@@ -3944,6 +3969,23 @@ var LANG = {
teamcontrib5v5: "Очки команды арены 5х5"
},
fiicons: { // derived from from LANG.filters_icons
sepgeneral: "Общее",
sepuses: "Используется",
used: "Использовано (раз)",
items: "Используется Предметы",
spells: "Используется Заклинания",
achievements: "Используется Достижения",
battlepets: "Используется Боевые питомцы",
battlepetabilities: "Используется Способности Боевого Питомца",
currencies: "Используется Валюта",
missionabilities: "Используется Способности соратников/кораблей",
garrisonbuildings: "Используется Здания гарнизона",
hunterpets: "Используется Питомцы охотников",
threats: "Используется Угрозы",
classes: "Используется Классы"
},
// custom
fienchantments: {
id: "Номер",