mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-21 15:56:10 +08:00
feat(babel6): 2,743 lint errors
This commit is contained in:
parent
1def854603
commit
05515c847c
File diff suppressed because one or more lines are too long
2
internal_packages/composer-emoji/lib/emoji-data.json
Normal file
2
internal_packages/composer-emoji/lib/emoji-data.json
Normal file
File diff suppressed because one or more lines are too long
|
@ -1,13 +1,14 @@
|
|||
import NylasStore from 'nylas-store';
|
||||
import Rx from 'rx-lite';
|
||||
import _ from 'underscore';
|
||||
import fs from 'fs';
|
||||
|
||||
import {DatabaseStore} from 'nylas-exports';
|
||||
import EmojiActions from './emoji-actions';
|
||||
import emojiData from './emoji-data';
|
||||
|
||||
const EmojiJSONBlobKey = 'emoji';
|
||||
|
||||
let emojiData;
|
||||
|
||||
class EmojiStore extends NylasStore {
|
||||
constructor(props) {
|
||||
|
@ -41,6 +42,7 @@ class EmojiStore extends NylasStore {
|
|||
}
|
||||
|
||||
getImagePath(emojiName) {
|
||||
emojiData = emojiData || JSON.parse(fs.readFileSync('./emoji-data', {encoding: "utf8"}));
|
||||
for (const emoji of emojiData) {
|
||||
if (emoji.short_names.indexOf(emojiName) !== -1) {
|
||||
if (process.platform === "darwin") {
|
||||
|
@ -49,6 +51,7 @@ class EmojiStore extends NylasStore {
|
|||
return `images/composer-emoji/twitter/${emoji.image}`;
|
||||
}
|
||||
}
|
||||
return ''
|
||||
}
|
||||
|
||||
_onUseEmoji = (emoji) => {
|
||||
|
|
Loading…
Reference in a new issue