Correction following test
This commit is contained in:
parent
d6bd883c94
commit
2ebf05f7d6
@ -38,7 +38,7 @@
|
|||||||
import LayoutManager from "./LayoutManager/LayoutManager.svelte";
|
import LayoutManager from "./LayoutManager/LayoutManager.svelte";
|
||||||
import {audioManagerVisibilityStore} from "../Stores/AudioManagerStore";
|
import {audioManagerVisibilityStore} from "../Stores/AudioManagerStore";
|
||||||
import AudioManager from "./AudioManager/AudioManager.svelte"
|
import AudioManager from "./AudioManager/AudioManager.svelte"
|
||||||
import { showReportScreenStore } from "../Stores/ShowReportScreenStore";
|
import { showReportScreenStore, userReportEmpty } from "../Stores/ShowReportScreenStore";
|
||||||
import ReportMenu from "./ReportMenu/ReportMenu.svelte";
|
import ReportMenu from "./ReportMenu/ReportMenu.svelte";
|
||||||
|
|
||||||
export let game: Game;
|
export let game: Game;
|
||||||
@ -96,7 +96,7 @@
|
|||||||
<LayoutManager></LayoutManager>
|
<LayoutManager></LayoutManager>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if $showReportScreenStore}
|
{#if $showReportScreenStore !== userReportEmpty}
|
||||||
<div>
|
<div>
|
||||||
<ReportMenu></ReportMenu>
|
<ReportMenu></ReportMenu>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,31 +12,31 @@
|
|||||||
<section class="container-overflow">
|
<section class="container-overflow">
|
||||||
<section>
|
<section>
|
||||||
<p>
|
<p>
|
||||||
The WorkAdventure team is always available to help you.
|
The WorkAdventure team is always happy to give you some guidance and advice.
|
||||||
If you have any questions, problems, new features or improvements ideas, or if you just want to give us your feedback,
|
If you have any question, issue, new features or improvements you'd like to see or if you'd like to give us some feedback,
|
||||||
do not hesitate to contact us.
|
please don't hesitate to reach out!
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Our Office</h3>
|
<h3>Our Office</h3>
|
||||||
<p>
|
<p>
|
||||||
The WorkAdventure team has its own offices in ... WorkAdventure!
|
Let's grab a coffee and have a chat on our virtual office .... on WorkAdventure. Our team loves meeting new people!
|
||||||
Do not hesitate to come see and talk to us.
|
|
||||||
</p>
|
</p>
|
||||||
<a class="nes-pointer" href="https://play.staging.workadventu.re/@tcm/workadventure/wa-village" target="_blank">Visit us</a>
|
<a class="nes-pointer" href="https://play.staging.workadventu.re/@tcm/workadventure/wa-village" target="_blank">Visit us</a>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Our Mail</h3>
|
<h3>Our Mail</h3>
|
||||||
<p>Although we offer a solution to reduce their use, we have an email address that allows us to receive all your requests.</p>
|
<p>You'd rather send us an email? Please, feel free to do so, although we hope we could meet you on our virtual office soon enough.</p>
|
||||||
<a class="nes-pointer" href="mailto:hello@workadventu.re" target="_blank">hello@workadventu.re</a>
|
<a class="nes-pointer" href="mailto:hello@workadventu.re" target="_blank">hello@workadventu.re</a>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Our web site</h3>
|
<h3>Our web site</h3>
|
||||||
<p>If you want to know more about us, follow the link to our web site.</p>
|
<p>Do you want to know more about us? Just follow the link to our website.</p>
|
||||||
<a class="nes-pointer" href="https://workadventu.re/about-us" target="_blank">About us</a>
|
<a class="nes-pointer" href="https://workadventu.re/about-us" target="_blank">About us</a>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Our social media</h3>
|
<h3>Our social media</h3>
|
||||||
|
<p>Follow us and keep you updated on the latest news and upcoming new features!</p>
|
||||||
<a href="https://discord.gg/YGtngdh9gt" target="_blank">
|
<a href="https://discord.gg/YGtngdh9gt" target="_blank">
|
||||||
<img class="nes-pointer" src="{discordImg}" alt="{'Discord'}">
|
<img class="nes-pointer" src="{discordImg}" alt="{'Discord'}">
|
||||||
</a>
|
</a>
|
||||||
@ -75,11 +75,14 @@
|
|||||||
section {
|
section {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 4px 5px;
|
padding: 4px 5px;
|
||||||
margin-bottom: 25px;
|
margin-bottom: 15px;
|
||||||
|
|
||||||
p {
|
p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
img {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
height: 50px;
|
height: 50px;
|
||||||
|
@ -1,15 +1,11 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
|
||||||
function goToGettingStarted() {
|
function goToGettingStarted() {
|
||||||
//The redirection must be only on workadventu.re domain
|
|
||||||
//To day the domain staging cannot be use by customer
|
|
||||||
const sparkHost = "https://workadventu.re/getting-started";
|
const sparkHost = "https://workadventu.re/getting-started";
|
||||||
window.open(sparkHost, "_blank");
|
window.open(sparkHost, "_blank");
|
||||||
}
|
}
|
||||||
|
|
||||||
function goToBuildingMap() {
|
function goToBuildingMap() {
|
||||||
//The redirection must be only on workadventu.re domain
|
|
||||||
//The scripting API function could change on other domain and that could break map created with the old function
|
|
||||||
const sparkHost = "https://workadventu.re/map-building";
|
const sparkHost = "https://workadventu.re/map-building";
|
||||||
window.open(sparkHost, "_blank");
|
window.open(sparkHost, "_blank");
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
import GlobalMessageSubMenu from "./GlobalMessagesSubMenu.svelte";
|
import GlobalMessageSubMenu from "./GlobalMessagesSubMenu.svelte";
|
||||||
import ContactSubMenu from "./ContactSubMenu.svelte";
|
import ContactSubMenu from "./ContactSubMenu.svelte";
|
||||||
import {menuVisiblilityStore, SubMenusInterface, subMenusStore} from "../../Stores/MenuStore";
|
import {menuVisiblilityStore, SubMenusInterface, subMenusStore} from "../../Stores/MenuStore";
|
||||||
//import {userIsAdminStore} from "../../Stores/GameStore";
|
import {userIsAdminStore} from "../../Stores/GameStore";
|
||||||
import {onMount} from "svelte";
|
import {onMount} from "svelte";
|
||||||
import {get} from "svelte/store";
|
import {get} from "svelte/store";
|
||||||
import {sendMenuClickedEvent} from "../../Api/iframe/Ui/MenuItem";
|
import {sendMenuClickedEvent} from "../../Api/iframe/Ui/MenuItem";
|
||||||
@ -16,10 +16,13 @@
|
|||||||
let activeComponent: typeof SettingsSubMenu = SettingsSubMenu;
|
let activeComponent: typeof SettingsSubMenu = SettingsSubMenu;
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
//TODO: Uncomment before final push to merge
|
if(!get(userIsAdminStore)) {
|
||||||
/*if(!get(userIsAdminStore)) {
|
|
||||||
subMenusStore.removeMenu(SubMenusInterface.globalMessages);
|
subMenusStore.removeMenu(SubMenusInterface.globalMessages);
|
||||||
}*/
|
}
|
||||||
|
|
||||||
|
//Until we can add iframe to a menu and change contact for self-hosted version
|
||||||
|
//we remove the contact sub-menu
|
||||||
|
subMenusStore.removeMenu(SubMenusInterface.contact);
|
||||||
|
|
||||||
switchMenu(SubMenusInterface.settings);
|
switchMenu(SubMenusInterface.settings);
|
||||||
})
|
})
|
||||||
@ -94,7 +97,7 @@
|
|||||||
|
|
||||||
font-family: "Press Start 2P";
|
font-family: "Press Start 2P";
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
height: 70vh;
|
height: 80vh;
|
||||||
width: 75vw;
|
width: 75vw;
|
||||||
top: 10vh;
|
top: 10vh;
|
||||||
|
|
||||||
@ -129,7 +132,7 @@
|
|||||||
@media only screen and (max-width: 800px) {
|
@media only screen and (max-width: 800px) {
|
||||||
div.menu-container-main {
|
div.menu-container-main {
|
||||||
--size-first-columns-grid: 120px;
|
--size-first-columns-grid: 120px;
|
||||||
//height: calc(100vh - 110px);
|
height: 70vh;
|
||||||
top: 55px;
|
top: 55px;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
font-size: 0.5em;
|
font-size: 0.5em;
|
||||||
|
@ -93,13 +93,12 @@ function changeNotification() {
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
div.settings-main {
|
div.settings-main {
|
||||||
height: calc(100% - 56px);
|
height: calc(100% - 40px);
|
||||||
display: grid;
|
|
||||||
grid-template-rows: 25% 25% 25% 20%;
|
|
||||||
|
|
||||||
section {
|
section {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 20px 20px 0;
|
padding: 20px 20px 0;
|
||||||
|
margin-bottom: 20px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
div.nes-select select:focus {
|
div.nes-select select:focus {
|
||||||
@ -132,7 +131,7 @@ function changeNotification() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
section.settings-section-noSaveOption {
|
section.settings-section-noSaveOption {
|
||||||
margin-top: 20px;
|
height: 80px;
|
||||||
grid-template-columns: none;
|
grid-template-columns: none;
|
||||||
grid-template-rows: calc(100% / var(--nb-noSaveOptions)) calc(100% / var(--nb-noSaveOptions)); //Same size for every sub-element;
|
grid-template-rows: calc(100% / var(--nb-noSaveOptions)) calc(100% / var(--nb-noSaveOptions)); //Same size for every sub-element;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import {blackListManager} from "../../WebRtc/BlackListManager";
|
import {blackListManager} from "../../WebRtc/BlackListManager";
|
||||||
import {showReportScreenStore} from "../../Stores/ShowReportScreenStore";
|
import {showReportScreenStore, userReportEmpty} from "../../Stores/ShowReportScreenStore";
|
||||||
import {onMount} from "svelte";
|
import {onMount} from "svelte";
|
||||||
|
|
||||||
export let userUUID: string | undefined;
|
export let userUUID: string | undefined;
|
||||||
@ -9,7 +9,7 @@
|
|||||||
onMount(() => {
|
onMount(() => {
|
||||||
if (userUUID === undefined) {
|
if (userUUID === undefined) {
|
||||||
userIsBlocked = false;
|
userIsBlocked = false;
|
||||||
throw new Error("There is no user to block");
|
console.error("There is no user to block");
|
||||||
} else {
|
} else {
|
||||||
userIsBlocked = blackListManager.isBlackListed(userUUID);
|
userIsBlocked = blackListManager.isBlackListed(userUUID);
|
||||||
}
|
}
|
||||||
@ -17,12 +17,13 @@
|
|||||||
|
|
||||||
function blockUser(): void {
|
function blockUser(): void {
|
||||||
if (userUUID === undefined) {
|
if (userUUID === undefined) {
|
||||||
throw new Error("There is no user to block");
|
console.error("There is no user to block");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
blackListManager.isBlackListed(userUUID)
|
blackListManager.isBlackListed(userUUID)
|
||||||
? blackListManager.cancelBlackList(userUUID)
|
? blackListManager.cancelBlackList(userUUID)
|
||||||
: blackListManager.blackList(userUUID);
|
: blackListManager.blackList(userUUID);
|
||||||
showReportScreenStore.set(null); //close the report menu
|
showReportScreenStore.set(userReportEmpty); //close the report menu
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -1,31 +1,32 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import {showReportScreenStore} from "../../Stores/ShowReportScreenStore";
|
import {showReportScreenStore, userReportEmpty} from "../../Stores/ShowReportScreenStore";
|
||||||
import BlockSubMenu from "./BlockSubMenu.svelte";
|
import BlockSubMenu from "./BlockSubMenu.svelte";
|
||||||
import ReportSubMenu from "./ReportSubMenu.svelte";
|
import ReportSubMenu from "./ReportSubMenu.svelte";
|
||||||
import {onDestroy, onMount} from "svelte";
|
import {onDestroy, onMount} from "svelte";
|
||||||
import type {Unsubscriber} from "svelte/store";
|
import type {Unsubscriber} from "svelte/store";
|
||||||
import {playersStore} from "../../Stores/PlayersStore";
|
import {playersStore} from "../../Stores/PlayersStore";
|
||||||
//import {connectionManager} from "../../Connexion/ConnectionManager";
|
import {connectionManager} from "../../Connexion/ConnectionManager";
|
||||||
//import {GameConnexionTypes} from "../../Url/UrlManager";
|
import {GameConnexionTypes} from "../../Url/UrlManager";
|
||||||
|
import {get} from "svelte/store";
|
||||||
|
|
||||||
let blockActive = true;
|
let blockActive = true;
|
||||||
let reportActive = !blockActive;
|
let reportActive = !blockActive;
|
||||||
let anonymous: boolean = false;
|
let anonymous: boolean = false;
|
||||||
let userUUID: string | undefined = '';
|
let userUUID: string | undefined = playersStore.getPlayerById(get(showReportScreenStore).userId)?.userUuid;
|
||||||
let userName = "No name";
|
let userName = "No name";
|
||||||
let unsubscriber: Unsubscriber
|
let unsubscriber: Unsubscriber
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
unsubscriber = showReportScreenStore.subscribe((reportSreenStore) => {
|
unsubscriber = showReportScreenStore.subscribe((reportScreenStore) => {
|
||||||
if (reportSreenStore != null) {
|
if (reportScreenStore != null) {
|
||||||
userName = reportSreenStore.userName;
|
userName = reportScreenStore.userName;
|
||||||
userUUID = playersStore.getPlayerById(reportSreenStore.userId)?.userUuid;
|
userUUID = playersStore.getPlayerById(reportScreenStore.userId)?.userUuid;
|
||||||
if (userUUID === undefined) {
|
if (userUUID === undefined) {
|
||||||
throw new Error("Could not find UUID for user with ID " + reportSreenStore.userId);
|
console.error("Could not find UUID for user with ID " + reportScreenStore.userId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
//anonymous = connectionManager.getConnexionType === GameConnexionTypes.anonymous;
|
anonymous = connectionManager.getConnexionType === GameConnexionTypes.anonymous;
|
||||||
})
|
})
|
||||||
|
|
||||||
onDestroy(() => {
|
onDestroy(() => {
|
||||||
@ -35,7 +36,7 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
function close() {
|
function close() {
|
||||||
showReportScreenStore.set(null);
|
showReportScreenStore.set(userReportEmpty);
|
||||||
}
|
}
|
||||||
|
|
||||||
function activateBlock() {
|
function activateBlock() {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import {showReportScreenStore} from "../../Stores/ShowReportScreenStore";
|
import {showReportScreenStore, userReportEmpty} from "../../Stores/ShowReportScreenStore";
|
||||||
import {gameManager} from "../../Phaser/Game/GameManager";
|
import {gameManager} from "../../Phaser/Game/GameManager";
|
||||||
|
|
||||||
export let userUUID: string | undefined;
|
export let userUUID: string | undefined;
|
||||||
@ -12,10 +12,11 @@
|
|||||||
} else {
|
} else {
|
||||||
hiddenError = false;
|
hiddenError = false;
|
||||||
if( userUUID === undefined) {
|
if( userUUID === undefined) {
|
||||||
throw ('User UUID is not valid.');
|
console.error('User UUID is not valid.');
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
gameManager.getCurrentGameScene().connection?.emitReportPlayerMessage(userUUID, reportMessage);
|
gameManager.getCurrentGameScene().connection?.emitReportPlayerMessage(userUUID, reportMessage);
|
||||||
showReportScreenStore.set(null)
|
showReportScreenStore.set(userReportEmpty)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
import { writable } from "svelte/store";
|
import { writable } from "svelte/store";
|
||||||
|
|
||||||
export const showReportScreenStore = writable<{ userId: number; userName: string } | null>(null);
|
export const userReportEmpty = {
|
||||||
|
userId: 0,
|
||||||
|
userName: "Empty",
|
||||||
|
};
|
||||||
|
|
||||||
|
export const showReportScreenStore = writable<{ userId: number; userName: string }>(userReportEmpty);
|
||||||
|
Loading…
Reference in New Issue
Block a user