GithubHelp home page GithubHelp logo

emoji-codes's Introduction

Emoji Codes

A React component to quickly add emojis to text fields using emoji codes, intended for use as a Chrome extension for Facebook Messenger. It looks and behaves similarly to the emoji autocomplete menu in Slack.

The component listens for changes on an editable <div>. When a : and some letters matching to an emoji code are typed in the field, the autocomplete menu will appear. An emoji can be selected by clicking on it or by using โ†‘ and โ†“ to navigate and pressing Enter or Tab. The menu can be dismissed with the Esc key. Emoji lookup is powered by emoji-mart-lite.

emoji-codes's People

Contributors

hxqlin avatar

Stargazers

Kenneth Sinder avatar

Watchers

 avatar

emoji-codes's Issues

Update README.md

Add description of project and instructions for how to run the app for development and load it as a Chrome extension.

Make the extension work in Messenger on all urls

Right now, the emoji picker is only usable on urls matching https://www.facebook.com/messages/* and https://www.messenger.com/*, but it should work for the smaller Messenger tabs across https://www.facebook.com/ too.

Hide the emoji picker if the editor loses focus

Steps to reproduce:

  1. Click editor field and type in emoji code so that emoji picker becomes visible
  2. Click outside of the editor

The emoji picker should become hidden but it stays visible.

Modularize App.less

App.less has all the LESS for the project. The styling for the components should be split into another file and imported as needed.

No shrug emoji and potentially other missing emojis

The emojiIndex provided by emoji-mart-lite doesn't have the shrug emoji, possibly because it's not considered native? Using emoji-mart's emojiIndex does have the shrug emoji, but there's also emojis that don't have native representations and get displayed as the ๐Ÿฉณ character. The emoji-mart package is also bigger; from https://github.com/vaskevich/emoji-mart-lite:

emoji-mart bundle sizes: 488k (minified), 84k (when gzipped)
emoji-mart-lite bundle sizes: 170k (minified), 45k (when gzipped)

Add visual indicator of which emoji is selected in the list

When a mouse is hovered over an emoji in the list, there should be a visual indication of which emoji; probably different styling for the selected item. The behaviour should be the same as when an emoji is selected with the keyboard.

Prep extension for Chrome Web Store

https://developer.chrome.com/webstore/publish

  • A detailed description of your application. Write your description to entice users to download your app.
  • A 128x128 icon to display in the store. You may re-use your app icon here.
  • At least one 1280x800 or 640x400 screenshot or YouTube video to show off what your app does.
  • A 440x280 small tile icon that will be displayed on the Chrome Web Store wall.
  • The primary category where your app should be listed.
  • Your app's language to help users find it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.