-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: janusweb
action: commit
revision:
path_from:
revision_from: 2e906a1856ca2a7ca1a0dad61b3168fee3e1375a:
path_to:
revision_to:

git.thebackupbox.net

janusweb

git://git.thebackupbox.net/janusweb

commit 2e906a1856ca2a7ca1a0dad61b3168fee3e1375a
Author: James Baicoianu <james_github@baicoianu.com>
Date:   Wed Oct 6 02:04:16 2021 -0700

    Ready Player Me avatar selector fixes

diff --git a/media/assets/webui/apps/avatar/avatar.js b/media/assets/webui/apps/avatar/avatar.js

index 6f630648454ab9d969374b7101e209a57243810e..

index ..445a6894ae612641d6e85e6ae1d2b872175840c8 100644

--- a/media/assets/webui/apps/avatar/avatar.js
+++ b/media/assets/webui/apps/avatar/avatar.js
@@ -49,12 +49,12 @@ elation.elements.define('janus-avatar-picker', class extends elation.elements.ba
         <ui-tab label="Chibis">
           <collection-jsonapi id="avatarlist" endpoint="${this.src}"></collection-jsonapi>
           <ui-list name="avatar" selectable="1" collection="avatarlist" itemcomponent="janus-avatar-picker-item"></ui-list>
-          <ui-button name="confirm" disabled="1">Confirm</ui-button>
         </ui-tab>
         <ui-tab label="Ready Player Me">
-          <iframe src="https://demo.readyplayer.me/avatar">
+          <iframe src="https://demo.readyplayer.me/avatar"></iframe>
         </ui-tab>
       </ui-tabs>
+      <ui-button name="confirm" disabled="1">Confirm</ui-button>
     `;
     if (!this.hidereset) {
       tpl += '<ui-button name="reset">Reset</ui-button>';
@@ -151,17 +151,18 @@ elation.elements.define('janus-avatar-picker', class extends elation.elements.ba
       let avatarurl = ev.data;
       let avatarstr = `
 <FireBoxRoom>
-<assets>
-<assetobject id="body" src="${avatarurl}" />
-<assetobject id="avatar_animations" src="https://assets.metacade.com/james/readyplayerme/animations.glb" />
-</assets>
-<room>
-<ghost body_id="body" />
-</room>
+  <assets>
+    <assetobject id="body" src="${avatarurl}" />
+    <assetobject id="avatar_animations" src="https://assets.metacade.com/james/readyplayerme/animations.glb" />
+  </assets>
+  <room>
+    <ghost body_id="body" />
+  </room>
 </FireBoxRoom>
 `;
 console.log(avatarstr);
-player.setAvatar(avatarstr);
+      player.setAvatar(avatarstr);
+      this.handleAvatarSelect({data: { url: 'data:text/plain,' + avatarstr } });
     }
   }
 });

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 14:37:21 2024