This commit is contained in:
Alex Yatskov 2016-12-17 19:30:26 -08:00
parent 15e1cf3358
commit 5c755043fa
6 changed files with 9 additions and 9 deletions

View File

@ -231,7 +231,7 @@ class Database {
for (const tag in tagMeta || {}) { for (const tag in tagMeta || {}) {
const meta = tagMeta[tag]; const meta = tagMeta[tag];
rows.push({ rows.push({
tag, name: tag,
category: meta.category, category: meta.category,
notes: meta.notes, notes: meta.notes,
order: meta.order, order: meta.order,
@ -252,8 +252,8 @@ class Database {
reading, reading,
tags, tags,
rules, rules,
score,
glossary, glossary,
score: parseInt(score),
dictionary: title dictionary: title
}); });
} }

View File

@ -70,7 +70,7 @@ templates['kanji.html'] = template({"1":function(container,depth0,helpers,partia
+ "\" title=\"" + "\" title=\""
+ alias4(((helper = (helper = helpers.notes || (depth0 != null ? depth0.notes : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"notes","hash":{},"data":data}) : helper))) + alias4(((helper = (helper = helpers.notes || (depth0 != null ? depth0.notes : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"notes","hash":{},"data":data}) : helper)))
+ "\">" + "\">"
+ alias4(((helper = (helper = helpers.tag || (depth0 != null ? depth0.tag : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"tag","hash":{},"data":data}) : helper))) + alias4(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"name","hash":{},"data":data}) : helper)))
+ "</span>\n"; + "</span>\n";
},"8":function(container,depth0,helpers,partials,data) { },"8":function(container,depth0,helpers,partials,data) {
return " <li><span>" return " <li><span>"
@ -194,7 +194,7 @@ templates['term.html'] = template({"1":function(container,depth0,helpers,partial
+ "\" title=\"" + "\" title=\""
+ alias4(((helper = (helper = helpers.notes || (depth0 != null ? depth0.notes : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"notes","hash":{},"data":data}) : helper))) + alias4(((helper = (helper = helpers.notes || (depth0 != null ? depth0.notes : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"notes","hash":{},"data":data}) : helper)))
+ "\">" + "\">"
+ alias4(((helper = (helper = helpers.tag || (depth0 != null ? depth0.tag : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"tag","hash":{},"data":data}) : helper))) + alias4(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"name","hash":{},"data":data}) : helper)))
+ "</span>\n"; + "</span>\n";
},"15":function(container,depth0,helpers,partials,data) { },"15":function(container,depth0,helpers,partials,data) {
return " <li><span>" return " <li><span>"

View File

@ -140,7 +140,7 @@ class Translator {
const tagItems = []; const tagItems = [];
for (const tag of definition.tags) { for (const tag of definition.tags) {
const tagItem = { const tagItem = {
tag, name: tag,
category: 'default', category: 'default',
order: Number.MAX_SAFE_INTEGER, order: Number.MAX_SAFE_INTEGER,
notes: '' notes: ''
@ -168,7 +168,7 @@ class Translator {
const tagItems = []; const tagItems = [];
for (const tag of definition.tags) { for (const tag of definition.tags) {
const tagItem = { const tagItem = {
tag, name: tag,
category: 'default', category: 'default',
order: Number.MAX_SAFE_INTEGER, order: Number.MAX_SAFE_INTEGER,
notes: '' notes: ''

View File

@ -97,7 +97,7 @@ function sortTermDefs(definitions) {
} }
function applyTagMeta(tag, meta) { function applyTagMeta(tag, meta) {
const symbol = tag.tag.split(':')[0]; const symbol = tag.name.split(':')[0];
for (const prop in meta[symbol] || {}) { for (const prop in meta[symbol] || {}) {
tag[prop] = meta[symbol][prop]; tag[prop] = meta[symbol][prop];
} }

View File

@ -30,7 +30,7 @@
<div class="kanji-tags"> <div class="kanji-tags">
{{#each tags}} {{#each tags}}
<span class="tag tag-{{category}}" title="{{notes}}">{{tag}}</span> <span class="tag tag-{{category}}" title="{{notes}}">{{name}}</span>
{{/each}} {{/each}}
</div> </div>

View File

@ -23,7 +23,7 @@
<div class="term-tags"> <div class="term-tags">
{{#each tags}} {{#each tags}}
<span class="tag tag-{{category}}" title="{{notes}}">{{tag}}</span> <span class="tag tag-{{category}}" title="{{notes}}">{{name}}</span>
{{/each}} {{/each}}
</div> </div>