add dictionary tags
This commit is contained in:
parent
f7d7b1bd84
commit
a5efe50322
@ -54,6 +54,13 @@ class Translator {
|
|||||||
let definitions = [];
|
let definitions = [];
|
||||||
for (const deinflection of deinflections) {
|
for (const deinflection of deinflections) {
|
||||||
for (const definition of deinflection.definitions) {
|
for (const definition of deinflection.definitions) {
|
||||||
|
const tags = definition.tags.map(tag => buildTag(tag, definition.tagMeta));
|
||||||
|
tags.push(sanitizeTag({
|
||||||
|
name: definition.dictionary,
|
||||||
|
category: 'dictionary',
|
||||||
|
order: 100
|
||||||
|
}));
|
||||||
|
|
||||||
definitions.push({
|
definitions.push({
|
||||||
source: deinflection.source,
|
source: deinflection.source,
|
||||||
reasons: deinflection.reasons,
|
reasons: deinflection.reasons,
|
||||||
@ -63,7 +70,7 @@ class Translator {
|
|||||||
expression: definition.expression,
|
expression: definition.expression,
|
||||||
reading: definition.reading,
|
reading: definition.reading,
|
||||||
glossary: definition.glossary,
|
glossary: definition.glossary,
|
||||||
tags: sortTags(definition.tags.map(tag => buildTag(tag, definition.tagMeta)))
|
tags: sortTags(tags)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -75,6 +75,10 @@ body {
|
|||||||
background-color: #d9534f;
|
background-color: #d9534f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tag-dictionary {
|
||||||
|
background-color: #aa66cc;
|
||||||
|
}
|
||||||
|
|
||||||
.action-bar {
|
.action-bar {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user