Sha256: f040ef684e16c31fb09a238e1487a5ccf35d7a38bec3d2cee1403ecae1b210e8

Contents?: true

Size: 707 Bytes

Versions: 7

Compression:

Stored size: 707 Bytes

Contents

(function (window) {

  window.muEmojis = window.muEmojis || {};

  window.muEmojis.object = {};

  function compareEmojis(a, b) {
    return a.order < b.order ? -1 : (a.order == b.order ? 0 : 1);
  }

  function fullEmoji(emoji) {
    return {
      name: emoji.n,
      category: emoji.ca,
      sprite_category: emoji.sc,
      order: emoji.o,
      shortname: emoji.s,
      shortname_alternates: emoji.ss,
      diversity: emoji.d,
      diversities: emoji.ds,
      keywords: emoji.k,
      code_points: {
        base: emoji.co
      }
    }
  }

  window.muEmojis.fullEmoji = fullEmoji;
  window.muEmojis.list = Object.values(window.muEmojis.object).map(fullEmoji).sort(compareEmojis);

})(window);

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
mumukit-content-type-1.11.1 vendor/bundle/ruby/2.6.0/gems/mumuki-emojis-1.1.1/app/assets/javascripts/mumuki-emojis-availables.js
mumuki-emojis-1.1.1 app/assets/javascripts/mumuki-emojis-availables.js
mumuki-emojis-1.1.0 app/assets/javascripts/mumuki-emojis-availables.js
mumuki-emojis-1.0.3 app/assets/javascripts/mumuki-emojis-availables.js
mumuki-emojis-1.0.2 app/assets/javascripts/mumuki-emojis-availables.js
mumuki-emojis-1.0.1 app/assets/javascripts/mumuki-emojis-availables.js
mumuki-emojis-1.0.0 app/assets/javascripts/mumuki-emojis-availables.js