onClick(action.callback)}>
+
onClick(action.callback)}>
{action.message}
{/each}
@@ -35,14 +35,10 @@
animation-timing-function: ease-in-out;
}
- div.nes-container.is-rounded {
+ div.nes-container {
padding: 8px 4px;
text-align: center;
- font-family: Lato;
- color: whitesmoke;
- background-color: rgb(0,0,0,0.5);
-
&.warning {
background-color: #ff9800eb;
color: #000;
diff --git a/front/src/Connexion/ConnectionManager.ts b/front/src/Connexion/ConnectionManager.ts
index 11f03a9e..becb2dc5 100644
--- a/front/src/Connexion/ConnectionManager.ts
+++ b/front/src/Connexion/ConnectionManager.ts
@@ -33,7 +33,19 @@ class ConnectionManager {
localUserStore.setAuthToken(null);
const state = localUserStore.generateState();
const nonce = localUserStore.generateNonce();
- window.location.assign(`http://${PUSHER_URL}/login-screen?state=${state}&nonce=${nonce}`);
+
+ let loginUrl = `${PUSHER_URL}/login-screen?state=${state}&nonce=${nonce}`
+
+ if (loginUrl.startsWith("/")) {
+ loginUrl = window.location.protocol +
+ "//" +
+ window.location.host +
+ loginUrl;
+ } else {
+ loginUrl = `http://` + loginUrl;
+ }
+
+ window.location.assign(loginUrl);
}
public logout() {
diff --git a/front/src/Phaser/Game/GameScene.ts b/front/src/Phaser/Game/GameScene.ts
index 5824cff8..b28ef01c 100644
--- a/front/src/Phaser/Game/GameScene.ts
+++ b/front/src/Phaser/Game/GameScene.ts
@@ -1122,20 +1122,26 @@ export class GameScene extends DirtyScene {
this.iframeSubscriptionList.push(iframeListener.unregisterIFrameStream.subscribe(() => {
const allProps = this.gameMap.getCurrentProperties();
if(allProps.get("openWebsite") == null) {
- layoutManager.removeActionButton('openWebsite', this.userInputManager);
+ layoutManagerActionStore.removeAction("openWebsite");
} else {
const openWebsiteFunction = () => {
coWebsiteManager.loadCoWebsite(allProps.get("openWebsite") as string, this.MapUrlFile, allProps.get('openWebsiteAllowApi') as boolean | undefined, allProps.get('openWebsitePolicy') as string | undefined);
- layoutManager.removeActionButton('openWebsite', this.userInputManager);
+ layoutManagerActionStore.removeAction("openWebsite");
+
};
let message = allProps.get(WEBSITE_MESSAGE_PROPERTIES);
if(message === undefined) {
message = 'Press SPACE or touch here to open web site';
}
- layoutManager.addActionButton('openWebsite', message.toString(), () => {
- openWebsiteFunction();
- }, this.userInputManager);
+
+ layoutManagerActionStore.addAction({
+ uuid: "openWebsite",
+ type: "message",
+ message: message,
+ callback: () => openWebsiteFunction(),
+ userInputManager: this.userInputManager,
+ });
}
}));
@@ -1886,7 +1892,7 @@ export class GameScene extends DirtyScene {
const allProps = this.gameMap.getCurrentProperties();
if(allProps.get("jitsiRoom") === undefined) {
- layoutManager.removeActionButton('jitsiRoom', this.userInputManager);
+ layoutManagerActionStore.removeAction("jitsi");
} else {
const openJitsiRoomFunction = () => {
const roomName = jitsiFactory.getRoomName(allProps.get("jitsiRoom") as string, this.instance);
@@ -1898,16 +1904,20 @@ export class GameScene extends DirtyScene {
} else {
this.startJitsi(roomName, undefined);
}
- layoutManager.removeActionButton('jitsiRoom', this.userInputManager);
+ layoutManagerActionStore.removeAction("jitsi");
}
let message = allProps.get(JITSI_MESSAGE_PROPERTIES);
if(message === undefined) {
message = 'Press SPACE or touch here to enter Jitsi Meet room';
}
- layoutManager.addActionButton('jitsiRoom', message.toString(), () => {
- openJitsiRoomFunction();
- }, this.userInputManager);
+ layoutManagerActionStore.addAction({
+ uuid: "jitsi",
+ type: "message",
+ message: message,
+ callback: () => openJitsiRoomFunction(),
+ userInputManager: this.userInputManager,
+ });
}
}