mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
Improve emoji search (#11768)
Co-authored-by: mpcjazz <mail@mpcjazz.com>
This commit is contained in:
parent
47d79042fd
commit
0b51219f50
7 changed files with 11643 additions and 9494 deletions
|
|
@ -117,6 +117,7 @@ func getEmojiConf(c *gin.Context) {
|
|||
"id": "custom",
|
||||
"title": "Custom",
|
||||
"title_zh_cn": "自定义",
|
||||
"title_ja_jp": "カスタム",
|
||||
}
|
||||
items := []map[string]interface{}{}
|
||||
custom["items"] = items
|
||||
|
|
@ -173,6 +174,7 @@ func addCustomEmoji(name string, items *[]map[string]interface{}) {
|
|||
"unicode": name,
|
||||
"description": nameWithoutExt,
|
||||
"description_zh_cn": nameWithoutExt,
|
||||
"description_ja_jp": nameWithoutExt,
|
||||
"keywords": nameWithoutExt,
|
||||
}
|
||||
*items = append(*items, emoji)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue