From 0b7f33849a730b620cc25aeffeac2c4e2b48ecef Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 25 Feb 2018 17:03:39 +0900 Subject: [PATCH] Improve emojis --- package.json | 2 +- .../common/views/components/autocomplete.vue | 49 ++++++++++++++----- .../app/common/views/components/post-html.ts | 4 +- .../common/views/directives/autocomplete.ts | 2 +- webpack/webpack.config.ts | 2 +- 5 files changed, 42 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 828435e228..d20a46c4d3 100644 --- a/package.json +++ b/package.json @@ -96,6 +96,7 @@ "deepcopy": "0.6.3", "diskusage": "0.2.4", "elasticsearch": "14.1.0", + "emojilib": "^2.2.12", "escape-regexp": "0.0.1", "eslint": "4.18.0", "eslint-plugin-vue": "4.2.2", @@ -137,7 +138,6 @@ "multer": "1.3.0", "nprogress": "0.2.0", "os-utils": "0.0.14", - "pictograph": "2.2.0", "progress-bar-webpack-plugin": "^1.11.0", "prominence": "0.2.0", "proxy-addr": "2.0.3", diff --git a/src/web/app/common/views/components/autocomplete.vue b/src/web/app/common/views/components/autocomplete.vue index b068ecc4fa..f31a624746 100644 --- a/src/web/app/common/views/components/autocomplete.vue +++ b/src/web/app/common/views/components/autocomplete.vue @@ -8,9 +8,10 @@
    -
  1. - {{ pictograph.dic[emoji] }} - +
  2. + {{ emoji.emoji }} + + ({{ emoji.alias }})
@@ -18,9 +19,30 @@