From d6876ac0334fe15ba83acb602dcd48fb5314e0fe Mon Sep 17 00:00:00 2001 From: maxime Date: Tue, 9 Jan 2024 00:39:48 +0100 Subject: [PATCH] format and add back to home button in editor --- front/components/editor/BasketCourt.tsx | 1 - front/components/editor/SavingState.tsx | 3 ++- front/model/Team.ts | 2 +- front/style/editor.css | 2 -- front/style/new_tactic_panel.css | 1 - front/views/Editor.tsx | 6 +++++- src/App/Controller/UserController.php | 2 +- src/Core/Gateway/TeamGateway.php | 3 +-- src/Core/Model/TeamModel.php | 3 +-- 9 files changed, 11 insertions(+), 12 deletions(-) diff --git a/front/components/editor/BasketCourt.tsx b/front/components/editor/BasketCourt.tsx index 1e3d916..525e232 100644 --- a/front/components/editor/BasketCourt.tsx +++ b/front/components/editor/BasketCourt.tsx @@ -9,7 +9,6 @@ import { } from "react" import CourtPlayer from "./CourtPlayer" - import { Player } from "../../model/tactic/Player" import { Action, ActionKind } from "../../model/tactic/Action" import ArrowAction from "../actions/ArrowAction" diff --git a/front/components/editor/SavingState.tsx b/front/components/editor/SavingState.tsx index ed699b4..b62358c 100644 --- a/front/components/editor/SavingState.tsx +++ b/front/components/editor/SavingState.tsx @@ -6,7 +6,8 @@ export interface SaveState { export class SaveStates { static readonly Guest: SaveState = { className: "save-state-guest", - message: "vous n'etes pas connectés, les changements seront sauvegardés sur votre navigateur.", + message: + "vous n'etes pas connectés, les changements seront sauvegardés sur votre navigateur.", } static readonly Ok: SaveState = { className: "save-state-ok", diff --git a/front/model/Team.ts b/front/model/Team.ts index 99d530b..4d0885e 100644 --- a/front/model/Team.ts +++ b/front/model/Team.ts @@ -1,4 +1,4 @@ -import {User} from "./User"; +import { User } from "./User" export interface TeamInfo { id: number diff --git a/front/style/editor.css b/front/style/editor.css index d81f38a..5ba7596 100644 --- a/front/style/editor.css +++ b/front/style/editor.css @@ -47,8 +47,6 @@ height: 100%; } - - #allies-rack, #opponent-rack { width: 125px; diff --git a/front/style/new_tactic_panel.css b/front/style/new_tactic_panel.css index b1043d8..f3cabeb 100644 --- a/front/style/new_tactic_panel.css +++ b/front/style/new_tactic_panel.css @@ -108,4 +108,3 @@ user-select: none; font-family: var(--text-main-font); } - diff --git a/front/views/Editor.tsx b/front/views/Editor.tsx index e1f0edd..cee7b98 100644 --- a/front/views/Editor.tsx +++ b/front/views/Editor.tsx @@ -32,6 +32,7 @@ import { CourtAction } from "./editor/CourtAction" import { BasketCourt } from "../components/editor/BasketCourt" import { ratioWithinBase } from "../components/arrows/Pos" import { Action, ActionKind } from "../model/tactic/Action" +import {BASE} from "../Constants"; const ERROR_STYLE: CSSProperties = { borderColor: "red", @@ -394,8 +395,11 @@ function EditorView({ return (
+
- +
$name, ]); } - + /** * @return ViewHttpResponse account settings page */ diff --git a/src/Core/Gateway/TeamGateway.php b/src/Core/Gateway/TeamGateway.php index fe0b2bb..02b1746 100644 --- a/src/Core/Gateway/TeamGateway.php +++ b/src/Core/Gateway/TeamGateway.php @@ -105,8 +105,7 @@ class TeamGateway { * @param string $newSecondColor * @return void */ - public function editTeam(int $idTeam, string $newName, string $newPicture, string $newMainColor, string $newSecondColor) - { + public function editTeam(int $idTeam, string $newName, string $newPicture, string $newMainColor, string $newSecondColor) { $this->con->exec( "UPDATE team SET name = :newName, diff --git a/src/Core/Model/TeamModel.php b/src/Core/Model/TeamModel.php index d6c97ce..2bfe36e 100644 --- a/src/Core/Model/TeamModel.php +++ b/src/Core/Model/TeamModel.php @@ -126,8 +126,7 @@ class TeamModel { * @param string $newSecondColor * @return void */ - public function editTeam(int $idTeam, string $newName, string $newPicture, string $newMainColor, string $newSecondColor) - { + public function editTeam(int $idTeam, string $newName, string $newPicture, string $newMainColor, string $newSecondColor) { $this->teams->editTeam($idTeam, $newName, $newPicture, $newMainColor, $newSecondColor); }