Add emoji completion.
This commit is contained in:
parent
91991e2ac1
commit
2162ef20b0
4 changed files with 31 additions and 5 deletions
10
src/main.js
10
src/main.js
|
@ -102,3 +102,13 @@ window.fetch('/static/terms-of-service.html')
|
|||
.then((html) => {
|
||||
store.dispatch('setOption', { name: 'tos', value: html })
|
||||
})
|
||||
|
||||
window.fetch('/static/emoji.txt')
|
||||
.then((res) => res.text())
|
||||
.then((csv) => {
|
||||
const emoji = csv.split('\n').map((row) => {
|
||||
const values = row.split(', ')
|
||||
return { shortcode: values[0], url: values[1] }
|
||||
})
|
||||
store.dispatch('setOption', { name: 'emoji', value: emoji })
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue