mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
implement dictionary search card
This commit is contained in:
parent
e0f1ae0dd0
commit
48939503f7
3 changed files with 25 additions and 0 deletions
|
@ -202,6 +202,16 @@ function createSearchResultPage(context, result, doodle){
|
|||
}
|
||||
})
|
||||
|
||||
break;
|
||||
case SEARCH_CARD_TYPES.DATA_DICTIONARY:
|
||||
res = createEmbed("default", context, {
|
||||
description: `**${result.dictionary.term}**\n-# ${result.dictionary.phonetics} • ${result.dictionary.word_type}\n\n${result.dictionary.definition}\n\n-# ${result.dictionary.attribution}`,
|
||||
footer: {
|
||||
iconUrl: STATICS.googledictionary,
|
||||
text: `Dictionary • ${context.application.name}`
|
||||
}
|
||||
})
|
||||
|
||||
break;
|
||||
case SEARCH_CARD_TYPES.PIVOT_IMAGES:
|
||||
res = createEmbed("default", context, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue