diff --git a/docker-compose.yaml b/docker-compose.yaml
index a33706c0..23302041 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -29,6 +29,7 @@ services:
PUSHER_URL: //pusher.workadventure.localhost
UPLOADER_URL: //uploader.workadventure.localhost
ADMIN_URL: //workadventure.localhost
+ ICON_URL: //icon.workadventure.localhost
STARTUP_COMMAND_1: ./templater.sh
STARTUP_COMMAND_2: yarn install
STUN_SERVER: "stun:stun.l.google.com:19302"
@@ -177,6 +178,17 @@ services:
- "traefik.http.routers.redisinsight-ssl.tls=true"
- "traefik.http.routers.redisinsight-ssl.service=redisinsight"
+ icon:
+ image: matthiasluedtke/iconserver:v3.13.0
+ labels:
+ - "traefik.http.routers.icon.rule=Host(`icon.workadventure.localhost`)"
+ - "traefik.http.routers.icon.entryPoints=web"
+ - "traefik.http.services.icon.loadbalancer.server.port=8080"
+ - "traefik.http.routers.icon-ssl.rule=Host(`icon.workadventure.localhost`)"
+ - "traefik.http.routers.icon-ssl.entryPoints=websecure"
+ - "traefik.http.routers.icon-ssl.tls=true"
+ - "traefik.http.routers.icon-ssl.service=icon"
+
# coturn:
# image: coturn/coturn:4.5.2
# command:
diff --git a/front/Dockerfile b/front/Dockerfile
index 5d048c1c..b12b2ee7 100644
--- a/front/Dockerfile
+++ b/front/Dockerfile
@@ -18,6 +18,7 @@ ARG DEBUG_MODE
ARG JITSI_URL
ARG JITSI_PRIVATE_MODE
ARG PUSHER_URL
+ARG ICON_URL
ARG ADMIN_URL
ARG STUN_SERVER
ARG TURN_SERVER
@@ -40,6 +41,7 @@ RUN \
JITSI_URL=$JITSI_URL \
JITSI_PRIVATE_MODE=$JITSI_PRIVATE_MODE \
PUSHER_URL=$PUSHER_URL \
+ ICON_URL=$ICON_URL \
ADMIN_URL=$ADMIN_URL \
STUN_SERVER=$STUN_SERVER \
TURN_SERVER=$TURN_SERVER \
diff --git a/front/src/Components/EmoteMenu/EmoteMenu.svelte b/front/src/Components/EmoteMenu/EmoteMenu.svelte
index cf56f73f..aaa0d473 100644
--- a/front/src/Components/EmoteMenu/EmoteMenu.svelte
+++ b/front/src/Components/EmoteMenu/EmoteMenu.svelte
@@ -19,13 +19,18 @@
},
theme: 'dark',
emojisPerRow: isMobile() ? 6 : 8,
- autoFocusSearch: false
+ autoFocusSearch: false,
+ style: 'twemoji',
});
//the timeout is here to prevent the menu from flashing
setTimeout(() => picker.showPicker(emojiContainer), 100);
picker.on("emoji", (selection) => {
- emoteStore.set(selection.emoji);
+ emoteStore.set({
+ unicode: selection.emoji,
+ url: selection.url,
+ name: selection.name
+ });
});
picker.on("hidden", () => {
diff --git a/front/src/Components/Menu/MenuIcon.svelte b/front/src/Components/Menu/MenuIcon.svelte
index 08eb8692..066ac11a 100644
--- a/front/src/Components/Menu/MenuIcon.svelte
+++ b/front/src/Components/Menu/MenuIcon.svelte
@@ -1,25 +1,19 @@
-
+