diff --git a/front/src/Api/iframe/Ui/MenuItem.ts b/front/src/Api/iframe/Ui/MenuItem.ts index 443bb68e..aa61d749 100644 --- a/front/src/Api/iframe/Ui/MenuItem.ts +++ b/front/src/Api/iframe/Ui/MenuItem.ts @@ -2,7 +2,6 @@ import type { MenuItemClickedEvent } from "../../Events/ui/MenuItemClickedEvent" import { iframeListener } from "../../IframeListener"; export function sendMenuClickedEvent(menuItem: string) { - console.log("Menu " + menuItem); iframeListener.postMessage({ type: "menuItemClicked", data: { diff --git a/front/src/Api/iframe/ui.ts b/front/src/Api/iframe/ui.ts index f4af2cbb..ab5b2007 100644 --- a/front/src/Api/iframe/ui.ts +++ b/front/src/Api/iframe/ui.ts @@ -51,7 +51,6 @@ export class WorkAdventureUiCommands extends IframeApiContribution { - console.log("BOUM : " + event.menuItem); const callback = menuCallbacks.get(event.menuItem); if (callback) { callback(event.menuItem); diff --git a/front/src/Components/App.svelte b/front/src/Components/App.svelte index d896cece..fddefc96 100644 --- a/front/src/Components/App.svelte +++ b/front/src/Components/App.svelte @@ -38,6 +38,8 @@ import LayoutManager from "./LayoutManager/LayoutManager.svelte"; import {audioManagerVisibilityStore} from "../Stores/AudioManagerStore"; import AudioManager from "./AudioManager/AudioManager.svelte" + import { showReportScreenStore } from "../Stores/ShowReportScreenStore"; + import ReportMenu from "./ReportMenu/ReportMenu.svelte"; export let game: Game; @@ -94,6 +96,11 @@ {/if} + {#if $showReportScreenStore} +
+ +
+ {/if} {#if $menuIconVisiblilityStore}
diff --git a/front/src/Components/ReportMenu/BlockSubMenu.svelte b/front/src/Components/ReportMenu/BlockSubMenu.svelte new file mode 100644 index 00000000..18957774 --- /dev/null +++ b/front/src/Components/ReportMenu/BlockSubMenu.svelte @@ -0,0 +1,42 @@ + + +
+

Block

+

Block any communication from and to this user. This can be reverted.

+ +
+ + + \ No newline at end of file diff --git a/front/src/Components/ReportMenu/ReportMenu.svelte b/front/src/Components/ReportMenu/ReportMenu.svelte new file mode 100644 index 00000000..394ca54e --- /dev/null +++ b/front/src/Components/ReportMenu/ReportMenu.svelte @@ -0,0 +1,112 @@ + + +
+
+

Moderate {userName}

+
+ +
+
+
+
+ +
+
+ +
+
+
+ {#if blockActive} + + {:else if reportActive} + + {:else } +

ERROR : There is no action selected.

+ {/if} +
+
+ + \ No newline at end of file diff --git a/front/src/Components/ReportMenu/ReportSubMenu.svelte b/front/src/Components/ReportMenu/ReportSubMenu.svelte new file mode 100644 index 00000000..e9b63ea4 --- /dev/null +++ b/front/src/Components/ReportMenu/ReportSubMenu.svelte @@ -0,0 +1,44 @@ + + +
+

Report

+

Send a report message to the administrators of this room. They may later ban this user.

+
+
+ + +
+
+ +
+
+
+ + \ No newline at end of file