Correction form review and checks

This commit is contained in:
GRL 2021-06-22 10:10:03 +02:00
parent 267a0bbe4d
commit 8a1c57c434
2 changed files with 10 additions and 7 deletions

View File

@ -2,9 +2,11 @@
import {ConsoleGlobalMessageManagerFocusStore, ConsoleGlobalMessageManagerVisibleStore } from "../../Stores/ConsoleGlobalMessageManagerStore";
import {onMount} from "svelte";
import type {Game} from "../../Phaser/Game/Game";
import {GameManager} from "../../Phaser/Game/GameManager";
import type {GameManager} from "../../Phaser/Game/GameManager";
import type {PlayGlobalMessageInterface} from "../../Connexion/ConnexionModels";
import {AdminMessageEventTypes} from "../../Connexion/AdminMessagesService";
import type {GameScene} from "../../Phaser/Game/GameScene";
import type {Quill} from "quill";
//toolbar
export const toolbarOptions = [
@ -33,12 +35,12 @@
export let game: Game;
export let gameManager: GameManager;
let gameScene;
let gameScene: GameScene;
if (gameManager.currentGameSceneName) {
gameScene = gameManager.getCurrentGameScene(game.scene.getScene(gameManager.currentGameSceneName));
}
let quill;
let INPUT_CONSOLE_MESSAGE;
let quill: Quill;
let INPUT_CONSOLE_MESSAGE: HTMLDivElement;
const MESSAGE_TYPE = AdminMessageEventTypes.admin;

View File

@ -1,11 +1,12 @@
<script lang="ts">
import {HtmlUtils} from "../../WebRtc/HtmlUtils";
import type {Game} from "../../Phaser/Game/Game";
import {GameManager} from "../../Phaser/Game/GameManager";
import type {GameManager} from "../../Phaser/Game/GameManager";
import {ConsoleGlobalMessageManagerFocusStore, ConsoleGlobalMessageManagerVisibleStore} from "../../Stores/ConsoleGlobalMessageManagerStore";
import {AdminMessageEventTypes} from "../../Connexion/AdminMessagesService";
import type {PlayGlobalMessageInterface} from "../../Connexion/ConnexionModels";
import uploadFile from "../images/music-file.svg";
import type {GameScene} from "../../Phaser/Game/GameScene";
interface EventTargetFiles extends EventTarget {
files: Array<File>;
@ -14,11 +15,11 @@
export let game: Game;
export let gameManager: GameManager;
let gameScene;
let gameScene: GameScene;
if (gameManager.currentGameSceneName) {
gameScene = gameManager.getCurrentGameScene(game.scene.getScene(gameManager.currentGameSceneName));
}
let fileinput;
let fileinput: HTMLInputElement;
let filename: string;
let filesize: string;
let errorfile: boolean;