Merge branch 'develop' into feature-discussion
This commit is contained in:
commit
f837f1a31f
@ -20,7 +20,7 @@ import {parse} from "query-string";
|
|||||||
import {jwtTokenManager} from "../Services/JWTTokenManager";
|
import {jwtTokenManager} from "../Services/JWTTokenManager";
|
||||||
import {adminApi, CharacterTexture, FetchMemberDataByUuidResponse} from "../Services/AdminApi";
|
import {adminApi, CharacterTexture, FetchMemberDataByUuidResponse} from "../Services/AdminApi";
|
||||||
import {SocketManager, socketManager} from "../Services/SocketManager";
|
import {SocketManager, socketManager} from "../Services/SocketManager";
|
||||||
import {emitInBatch, resetPing} from "../Services/IoSocketHelpers";
|
import {emitInBatch, pongMaxInterval, refresLogoutTimerOnPong, resetPing} from "../Services/IoSocketHelpers";
|
||||||
import {clientEventsEmitter} from "../Services/ClientEventsEmitter";
|
import {clientEventsEmitter} from "../Services/ClientEventsEmitter";
|
||||||
import {ADMIN_API_TOKEN, ADMIN_API_URL} from "../Enum/EnvironmentVariable";
|
import {ADMIN_API_TOKEN, ADMIN_API_URL} from "../Enum/EnvironmentVariable";
|
||||||
|
|
||||||
@ -240,6 +240,7 @@ export class IoSocketController {
|
|||||||
const client = this.initClient(ws); //todo: into the upgrade instead?
|
const client = this.initClient(ws); //todo: into the upgrade instead?
|
||||||
socketManager.handleJoinRoom(client);
|
socketManager.handleJoinRoom(client);
|
||||||
resetPing(client);
|
resetPing(client);
|
||||||
|
refresLogoutTimerOnPong(ws as ExSocketInterface);
|
||||||
|
|
||||||
//get data information and show messages
|
//get data information and show messages
|
||||||
if (ADMIN_API_URL) {
|
if (ADMIN_API_URL) {
|
||||||
@ -292,6 +293,9 @@ export class IoSocketController {
|
|||||||
drain: (ws) => {
|
drain: (ws) => {
|
||||||
console.log('WebSocket backpressure: ' + ws.getBufferedAmount());
|
console.log('WebSocket backpressure: ' + ws.getBufferedAmount());
|
||||||
},
|
},
|
||||||
|
pong(ws) {
|
||||||
|
refresLogoutTimerOnPong(ws as ExSocketInterface);
|
||||||
|
},
|
||||||
close: (ws, code, message) => {
|
close: (ws, code, message) => {
|
||||||
const Client = (ws as ExSocketInterface);
|
const Client = (ws as ExSocketInterface);
|
||||||
try {
|
try {
|
||||||
|
@ -26,6 +26,7 @@ export interface ExSocketInterface extends WebSocket, Identificable {
|
|||||||
batchedMessages: BatchMessage;
|
batchedMessages: BatchMessage;
|
||||||
batchTimeout: NodeJS.Timeout|null;
|
batchTimeout: NodeJS.Timeout|null;
|
||||||
pingTimeout: NodeJS.Timeout|null;
|
pingTimeout: NodeJS.Timeout|null;
|
||||||
|
pongTimeout: NodeJS.Timeout|null;
|
||||||
disconnecting: boolean,
|
disconnecting: boolean,
|
||||||
tags: string[],
|
tags: string[],
|
||||||
textures: CharacterTexture[],
|
textures: CharacterTexture[],
|
||||||
|
@ -48,3 +48,12 @@ export function emitError(Client: ExSocketInterface, message: string): void {
|
|||||||
}
|
}
|
||||||
console.warn(message);
|
console.warn(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const pongMaxInterval = 30000; // the maximum duration (in ms) between pongs before we shutdown the connexion.
|
||||||
|
|
||||||
|
export function refresLogoutTimerOnPong(ws: ExSocketInterface): void {
|
||||||
|
if(ws.pongTimeout) clearTimeout(ws.pongTimeout);
|
||||||
|
ws.pongTimeout = setTimeout(() => {
|
||||||
|
ws.close();
|
||||||
|
}, pongMaxInterval);
|
||||||
|
}
|
||||||
|
@ -57,7 +57,7 @@ class CoWebsiteManager {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.fire();
|
this.fire();
|
||||||
}, animationTime)
|
}, animationTime)
|
||||||
});
|
}).catch(() => this.closeCoWebsite());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -70,7 +70,7 @@ class CoWebsiteManager {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.fire();
|
this.fire();
|
||||||
}, animationTime)
|
}, animationTime)
|
||||||
});
|
}).catch(() => this.closeCoWebsite());
|
||||||
}
|
}
|
||||||
|
|
||||||
public closeCoWebsite(): Promise<void> {
|
public closeCoWebsite(): Promise<void> {
|
||||||
|
9
website/dist/choose-map.html
vendored
9
website/dist/choose-map.html
vendored
@ -36,6 +36,15 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="choose-map">
|
<body class="choose-map">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col">
|
||||||
|
<a href="/" class="d-block mt-3 pixel-text">
|
||||||
|
<< BACK TO HOMEPAGE
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="container-fluid container-lg section pt-5">
|
<div class="container-fluid container-lg section pt-5">
|
||||||
<h1 class="text-center pixel-title">CHOOSE YOUR MAP !</h1>
|
<h1 class="text-center pixel-title">CHOOSE YOUR MAP !</h1>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
11
website/dist/create-map.html
vendored
11
website/dist/create-map.html
vendored
@ -36,6 +36,15 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="create-map">
|
<body class="create-map">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col">
|
||||||
|
<a href="/" class="d-block mt-3 pixel-text">
|
||||||
|
<< BACK TO HOMEPAGE
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="container-fluid container-lg section pt-5">
|
<div class="container-fluid container-lg section pt-5">
|
||||||
<h1 class="text-center pixel-title">CREATE YOUR MAP !</h1>
|
<h1 class="text-center pixel-title">CREATE YOUR MAP !</h1>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -44,7 +53,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
< class="col">
|
<div class="col">
|
||||||
<h2 id="tools-you-will-need" class="pixel-title">Tools you will need</h2>
|
<h2 id="tools-you-will-need" class="pixel-title">Tools you will need</h2>
|
||||||
<p>In order to build your own map for WorkAdventure, you need:</p>
|
<p>In order to build your own map for WorkAdventure, you need:</p>
|
||||||
<ul>
|
<ul>
|
||||||
|
41
website/dist/index.html
vendored
41
website/dist/index.html
vendored
@ -33,12 +33,12 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||||
<meta name="title" content="Workadventure" />
|
<meta name="title" content="Workadventure" />
|
||||||
<meta name="description" content="You are impatient to discover this new world? Click on 'Play online' and meet new people or share this adventure with your colleagues and friends by clicking on 'Private mode'" />
|
<meta name="description" content="You are impatient to discover this new world? Click on 'Work online' and meet new people or share this adventure with your colleagues and friends by clicking on 'Work in private'" />
|
||||||
<!-- Open Graph / Facebook -->
|
<!-- Open Graph / Facebook -->
|
||||||
<meta property="og:url" content="https://workadventu.re/" />
|
<meta property="og:url" content="https://workadventu.re/" />
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:title" content="Workadventure" />
|
<meta property="og:title" content="Workadventure" />
|
||||||
<meta property="og:description" content="You are impatient to discover this new world? Click on 'Play online' and meet new people or share this adventure with your colleagues and friends by clicking on 'Private mode'" />
|
<meta property="og:description" content="You are impatient to discover this new world? Click on 'Work online' and meet new people or share this adventure with your colleagues and friends by clicking on 'Work in private'" />
|
||||||
<meta property="og:image" content="https://workadventu.re/static/images/meta-tags-image.jpg" />
|
<meta property="og:image" content="https://workadventu.re/static/images/meta-tags-image.jpg" />
|
||||||
<meta property="og:image:type" content="image/jpeg" />
|
<meta property="og:image:type" content="image/jpeg" />
|
||||||
<meta property="og:image:alt" content="workadventure" />
|
<meta property="og:image:alt" content="workadventure" />
|
||||||
@ -46,7 +46,7 @@
|
|||||||
<meta name="twitter:site" content="@coding_machine">
|
<meta name="twitter:site" content="@coding_machine">
|
||||||
<meta name="twitter:url" content="https://workadventu.re/" />
|
<meta name="twitter:url" content="https://workadventu.re/" />
|
||||||
<meta name="twitter:title" content="Workadventure" />
|
<meta name="twitter:title" content="Workadventure" />
|
||||||
<meta name="twitter:description" content="You are impatient to discover this new world? Click on 'Play online' and meet new people or share this adventure with your colleagues and friends by clicking on 'Private mode'" />
|
<meta name="twitter:description" content="You are impatient to discover this new world? Click on 'Work online' and meet new people or share this adventure with your colleagues and friends by clicking on 'Work in private'" />
|
||||||
<meta name="twitter:image" content="https://workadventu.re/static/images/meta-tags-image.jpg" />
|
<meta name="twitter:image" content="https://workadventu.re/static/images/meta-tags-image.jpg" />
|
||||||
<link rel="stylesheet" href="main.css">
|
<link rel="stylesheet" href="main.css">
|
||||||
<script src="bundle.js"></script>
|
<script src="bundle.js"></script>
|
||||||
@ -97,17 +97,17 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="title title-main text-center">
|
<div class="title title-main text-center">
|
||||||
<h1>Your workplace<br/>but better</h1>
|
<h1>Your workplace<br/>but better</h1>
|
||||||
<h3>You are impatient to discover this new world? Click on "Play online" and meet new people or share this adventure with your colleagues and friends by clicking on "Private mode"</h3>
|
<h3>You are impatient to discover this new world? Click on "Work online" and meet new people or share this adventure with your colleagues and friends by clicking on "Work in private"</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="row buttons-row justify-content-md-center pt-5">
|
<div class="row buttons-row justify-content-md-center pt-5">
|
||||||
<div class="col col-lg-3">
|
<div class="col col-lg-3">
|
||||||
<a class="custom-link start" href="/choose-map.html" title="PRIVATE MODE">
|
<a class="custom-link start" href="/choose-map.html" title="WORK IN PRIVATE">
|
||||||
PRIVATE MODE
|
WORK IN PRIVATE
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col col-lg-3">
|
<div class="col col-lg-3">
|
||||||
<a class="custom-link play" target="_BLANK" onclick="startGame()" title="PLAY ONLINE">
|
<a class="custom-link play" target="_BLANK" onclick="startGame()" title="WORK ONLINE">
|
||||||
PLAY ONLINE
|
WORK ONLINE
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -165,10 +165,10 @@
|
|||||||
<div class="bubble bubble-4 b-revert" style="height: 254px;">
|
<div class="bubble bubble-4 b-revert" style="height: 254px;">
|
||||||
<div>
|
<div>
|
||||||
<p>You can also create a private room with your friends or your team ! </p>
|
<p>You can also create a private room with your friends or your team ! </p>
|
||||||
<p class="bubble-legend">To try, press button private mode</p>
|
<p class="bubble-legend">To try, press button work in private</p>
|
||||||
<p class="bubble-action"><a href="/choose-map.html">
|
<p class="bubble-action"><a href="/choose-map.html">
|
||||||
<img src="static/images/playicon.png" />
|
<img src="static/images/playicon.png" />
|
||||||
START IN PRIVATE MODE
|
START WORKING IN PRIVATE
|
||||||
</a></p>
|
</a></p>
|
||||||
<p>
|
<p>
|
||||||
Don’t forget to activate your mic and camera, let’s play
|
Don’t forget to activate your mic and camera, let’s play
|
||||||
@ -287,23 +287,23 @@
|
|||||||
<div class="container-fluid container-lg">
|
<div class="container-fluid container-lg">
|
||||||
<div class="row justify-content-md-center">
|
<div class="row justify-content-md-center">
|
||||||
<div class="col-12 col-md-12 text-center">
|
<div class="col-12 col-md-12 text-center">
|
||||||
<h3>How to play</h3>
|
<h3>HOW IT WORKS</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-md-4 text-center my-3 my-md-0">
|
<div class="col-12 col-md-4 text-center my-3 my-md-0">
|
||||||
<div class="image-item">
|
<div class="image-item">
|
||||||
<h2>Choose your map</h2>
|
<h2>CHOOSE YOUR WORKSPACE</h2>
|
||||||
<div class="step-image"><img src="static/images/maps/office.png"></div>
|
<div class="step-image"><img src="static/images/maps/office.png"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-md-4 text-center my-3 my-md-0">
|
<div class="col-12 col-md-4 text-center my-3 my-md-0">
|
||||||
<div class="image-item">
|
<div class="image-item">
|
||||||
<h2>Select your character</h2>
|
<h2>SELECT YOUR WOKA</h2>
|
||||||
<div class="step-image"><img src="static/images/choose_character.png"></div>
|
<div class="step-image"><img src="static/images/choose_character.png"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-md-4 text-center my-3 my-md-0">
|
<div class="col-12 col-md-4 text-center my-3 my-md-0">
|
||||||
<div class="image-item">
|
<div class="image-item">
|
||||||
<h2>Let's go explore and talk !</h2>
|
<h2>LET'S GO TO YOUR OFFICE</h2>
|
||||||
<div class="step-image"><img src="static/images/interact.png"></div>
|
<div class="step-image"><img src="static/images/interact.png"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -313,13 +313,14 @@
|
|||||||
<div class="section bg-white">
|
<div class="section bg-white">
|
||||||
<div class="container-fluid container-lg">
|
<div class="container-fluid container-lg">
|
||||||
<div class="col-12 credits">
|
<div class="col-12 credits">
|
||||||
<h2>Future features</h2>
|
<h2>CURRENT FEATURES</h2>
|
||||||
<h3>We have already thought of new features:</h3>
|
<!-- <h3>We have already thought of new features:</h3>-->
|
||||||
<p>Share files with others</p>
|
<p>Instant interaction with up to 4 people</p>
|
||||||
<p>Lock group conversations</p>
|
|
||||||
<p>Share screen with others</p>
|
<p>Share screen with others</p>
|
||||||
<p>Interact with objects</p>
|
<p>Organize a workshop and meeting with up to 60 people</p>
|
||||||
<h3>And you, what would you want?</h3>
|
<p>Design your own digital space</p>
|
||||||
|
<p>... and infinite possibilities</p>
|
||||||
|
<h3>You need more? Do not hesitate to tell us!</h3>
|
||||||
<div class="row justify-content-md-center pt-5" style="margin-top: 65px;">
|
<div class="row justify-content-md-center pt-5" style="margin-top: 65px;">
|
||||||
<div class="col col-lg-3">
|
<div class="col col-lg-3">
|
||||||
<a class="custom-link contribute" target="_BLANK" href="https://docs.google.com/forms/d/e/1FAIpQLSdxvajEyqsn4X0ai0SoDAcdsa_JQPIfiP2Tp9PDzkfZA54v9Q/viewform" title="FEEDBACK">
|
<a class="custom-link contribute" target="_BLANK" href="https://docs.google.com/forms/d/e/1FAIpQLSdxvajEyqsn4X0ai0SoDAcdsa_JQPIfiP2Tp9PDzkfZA54v9Q/viewform" title="FEEDBACK">
|
||||||
|
@ -148,7 +148,7 @@ header {
|
|||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 7px;
|
bottom: 7px;
|
||||||
padding: 1.125rem;
|
padding: 1.125rem 0.5rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
transition: all .1s cubic-bezier(0.000, -0.600, 1.000, 1.650); /* custom */
|
transition: all .1s cubic-bezier(0.000, -0.600, 1.000, 1.650); /* custom */
|
||||||
@ -431,7 +431,7 @@ img{
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
min-height: 6rem;
|
min-height: 6rem;
|
||||||
font-family: 'Karmatic Arcade';
|
font-family: 'Karmatic Arcade';
|
||||||
font-size: 22px;
|
font-size: 24px;
|
||||||
margin-bottom: 1.25rem;
|
margin-bottom: 1.25rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -503,6 +503,9 @@ img{
|
|||||||
.pixel-title{
|
.pixel-title{
|
||||||
font-family: "Karmatic Arcade" !important;
|
font-family: "Karmatic Arcade" !important;
|
||||||
}
|
}
|
||||||
|
.pixel-text{
|
||||||
|
font-family: "VCR OSD Mono" !important;
|
||||||
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
|
Loading…
Reference in New Issue
Block a user