DEV: discourse-emojis 1.0.32 (#31669)

This gems bring a whole improved fluentui emoji set. Each image has been
recomputed to optimise the size of the emoji and remove useless margins.

For this reason the version has been bumped.

Other changes:
- not loading rake task dependencies in production
- renamed yo_yo/yo-yo to yoyo
This commit is contained in:
Joffrey JAFFEUX
2025-03-06 10:35:04 +01:00
committed by GitHub
parent 3b8b21631b
commit 9dd26a3954
6 changed files with 18 additions and 15 deletions
+2 -2
View File
@@ -126,7 +126,7 @@ GEM
diffy (3.4.3)
digest (3.2.0)
digest-xxhash (0.2.9)
discourse-emojis (1.0.30)
discourse-emojis (1.0.32)
discourse-fonts (0.0.18)
discourse-seed-fu (2.3.12)
activerecord (>= 3.1)
@@ -838,7 +838,7 @@ CHECKSUMS
diffy (3.4.3) sha256=4264b9e7db00d1cd426fcd32e36565779163cedc2340a95b0e6f025e71f9aaa7
digest (3.2.0) sha256=fa2e7092ec683f65d82fadde5ff4ca3b32e23ee0b19f1fc1a5e09993ad2d3991
digest-xxhash (0.2.9) sha256=a989d8309c03c4136a4bea9981ec0a146a2750de7f3dfb7b5624a3038aa598d7
discourse-emojis (1.0.30) sha256=494a276a769644c22f07b303a167818e178fc74360fbd22ad7e6160fe188a90d
discourse-emojis (1.0.32) sha256=fa2d6adf74593238021eea601fac7b56aee6b5073a6dfbccf977c6f4f942498b
discourse-fonts (0.0.18) sha256=a7d25c13edd3325ae40010ca277530d69fc7952a05aa7b2ff07c1d07412b72a1
discourse-seed-fu (2.3.12) sha256=4f61d95c11ed54609046cd04eb3a51b531c5fa863fa86d1bea7d74264e5c75e4
discourse_dev_assets (0.0.5) sha256=a09a801a210aa3f7247dd382dfd73b389d4bd02be86be675eca2d451f9898285
@@ -1,10 +1,12 @@
import { IMAGE_VERSION as v } from "pretty-text/emoji/version";
export default {
"/emojis.json": {
favorites: [
{
name: "grinning",
tonable: false,
url: "/images/emoji/twitter/grinning.png?v=13",
url: `/images/emoji/twitter/grinning.png?v=${v}`,
group: "smileys_\u0026_emotion",
search_aliases: ["smiley_cat", "star_struck"],
},
@@ -13,14 +15,14 @@ export default {
{
name: "grinning",
tonable: false,
url: "/images/emoji/twitter/grinning.png?v=13",
url: `/images/emoji/twitter/grinning.png?v=${v}`,
group: "smileys_\u0026_emotion",
search_aliases: ["smiley_cat", "star_struck"],
},
{
name: "smiley_cat",
tonable: false,
url: "/images/emoji/twitter/smiley_cat.png?v=13",
url: `/images/emoji/twitter/smiley_cat.png?v=${v}`,
group: "smileys_\u0026_emotion",
},
],
@@ -28,14 +30,14 @@ export default {
{
name: "raised_hands",
tonable: true,
url: "/images/emoji/twitter/raised_hands.png?v=13",
url: `/images/emoji/twitter/raised_hands.png?v=${v}`,
group: "people_&_body",
search_aliases: [],
},
{
name: "man_rowing_boat",
tonable: true,
url: "/images/emoji/twitter/man_rowing_boat.png?v=13",
url: `/images/emoji/twitter/man_rowing_boat.png?v=${v}`,
group: "people_&_body",
search_aliases: [],
},
@@ -44,7 +46,7 @@ export default {
{
name: "womans_clothes",
tonable: false,
url: "/images/emoji/twitter/womans_clothes.png?v=13",
url: `/images/emoji/twitter/womans_clothes.png?v=${v}`,
group: "objects",
search_aliases: [],
},
@@ -1,3 +1,4 @@
import { IMAGE_VERSION as v } from "pretty-text/emoji/version";
import { module, test } from "qunit";
import { setupRenderingTest } from "discourse/tests/helpers/component-test";
import { testMarkdown } from "discourse/tests/helpers/rich-editor-helper";
@@ -11,14 +12,14 @@ module(
emoji: [
[
"Hey :tada:!",
'<p>Hey <img class="emoji" alt=":tada:" title=":tada:" src="/images/emoji/twitter/tada.png?v=13" contenteditable="false" draggable="true">!</p>',
`<p>Hey <img class="emoji" alt=":tada:" title=":tada:" src="/images/emoji/twitter/tada.png?v=${v}" contenteditable="false" draggable="true">!</p>`,
"Hey :tada:!",
],
],
"emoji in heading": [
[
"# Heading :information_source:",
'<h1>Heading <img class="emoji" alt=":information_source:" title=":information_source:" src="/images/emoji/twitter/information_source.png?v=13" contenteditable="false" draggable="true"></h1>',
`<h1>Heading <img class="emoji" alt=":information_source:" title=":information_source:" src="/images/emoji/twitter/information_source.png?v=${v}" contenteditable="false" draggable="true"></h1>`,
"# Heading :information_source:",
],
],
@@ -1102,7 +1102,7 @@ export const emojis = new Set([
"sled",
"curling_stone",
"bullseye",
"yo_yo",
"yoyo",
"kite",
"water_pistol",
"pool_8_ball",
@@ -2667,7 +2667,7 @@ export const aliases = {
running_shirt: ["running_shirt_with_sash"],
skis: ["ski"],
bullseye: ["dart"],
"yo-yo": ["yo_yo"],
yoyo: ["yo_yo", "yo-yo"],
water_pistol: ["gun"],
pool_8_ball: ["8ball"],
puzzle_piece: ["jigsaw"],
@@ -5562,7 +5562,7 @@ export const replacements = {
"🛷": "sled",
"🥌": "curling_stone",
"🎯": "bullseye",
"🪀": "yo_yo",
"🪀": "yoyo",
"🪁": "kite",
"🔫": "water_pistol",
"🎱": "pool_8_ball",
@@ -1,4 +1,4 @@
// DO NOT EDIT THIS FILE!!!
// Update it by running `rake javascript:update_constants`
export const IMAGE_VERSION = "13";
export const IMAGE_VERSION = "14";
+1 -1
View File
@@ -2,7 +2,7 @@
class Emoji
# update this to clear the cache
EMOJI_VERSION = "13"
EMOJI_VERSION = "14"
FITZPATRICK_SCALE = %w[1f3fb 1f3fc 1f3fd 1f3fe 1f3ff]