format and add back to home button in editor
continuous-integration/drone/push Build is passing Details

pull/92/head
maxime 1 year ago
parent 3a437a7ad1
commit d6876ac033

@ -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"

@ -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",

@ -1,4 +1,4 @@
import {User} from "./User";
import { User } from "./User"
export interface TeamInfo {
id: number

@ -47,8 +47,6 @@
height: 100%;
}
#allies-rack,
#opponent-rack {
width: 125px;

@ -108,4 +108,3 @@
user-select: none;
font-family: var(--text-main-font);
}

@ -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 (
<div id="main-div">
<div id="topbar-div">
<button onClick={() => (location.pathname = BASE + "/")}>
Home
</button>
<div id="topbar-left">
<SavingState state={saveState} />
<SavingState state={saveState}/>
</div>
<div id="title-input-div">
<TitleInput

@ -49,7 +49,7 @@ class UserController {
"username" => $name,
]);
}
/**
* @return ViewHttpResponse account settings page
*/

@ -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,

@ -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);
}

Loading…
Cancel
Save