• mrsdizzie's avatar
    Support unicode emojis and remove emojify.js (#11032) · 4563eb87
    mrsdizzie authored
    * Support unicode emojis and remove emojify.js
    
    This PR replaces all use of emojify.js and adds unicode emoji support to various areas of gitea.
    
    This works in a few ways:
    
    First it adds emoji parsing support into gitea itself. This allows us to
    
     * Render emojis from valid alias (😄)
     * Detect unicode emojis and let us put them in their own class with proper aria-labels and styling
     * Easily allow for custom "emoji"
     * Support all emoji rendering and features without javascript
     * Uses plain unicode and lets the system render in appropriate emoji font
     * Doesn't leave us relying on external sources for updates/fixes/features
    
    That same list of emoji is also used to create a json file which replaces the part of emojify.js that populates the emoji search tribute. This file is about 35KB with GZIP turned on and I've set it to load after the page renders to not hinder page load time (and this removes loading emojify.js also)
    
    For cus...
    4563eb87
.eslintrc 1.59 KB