Merge branch 'master' of https://codefirst.iut.uca.fr/git/Crypteam/Cryptid into deduc2
continuous-integration/drone/push Build is passing Details

pull/98/head
Pierre Ferreira 1 year ago
commit 216c11905b

@ -47,7 +47,7 @@ steps:
password: password:
from_secret: SECRET_REGISTRY_PASSWORD from_secret: SECRET_REGISTRY_PASSWORD
environment: environment:
REACT_APP_BASE_PATH: "/containers/Crypteam-website" BASEPATH: "/containers/Crypteam-website"
#depends_on: [ build ] #depends_on: [ build ]

@ -30,3 +30,4 @@ EXPOSE 80
# Définissez ENTRYPOINT pour démarrer Nginx lorsque le conteneur est lancé # Définissez ENTRYPOINT pour démarrer Nginx lorsque le conteneur est lancé
ENTRYPOINT ["nginx", "-g", "daemon off;"] ENTRYPOINT ["nginx", "-g", "daemon off;"]
#

@ -41,10 +41,10 @@ import messagesEn from './Translations/en.json';
/* Gestion d' erreur */ /* Gestion d' erreur */
import ErrorBoundary from './Error/ErrorBoundary'; import ErrorBoundary from './Error/ErrorBoundary';
import ErrorPage from './Error/ErrorPage'; import ErrorPage from './Error/ErrorPage';
const basePath = process.env.REACT_APP_BASE_PATH || '';
import DeducCheck from './Pages/DeducCheck'; import DeducCheck from './Pages/DeducCheck';
const basePath = process.env.REACT_APP_BASE_PATH || '/containers/Crypteam-website';
const messages = { const messages = {
fr: messagesFr, fr: messagesFr,
en: messagesEn, en: messagesEn,

@ -67,8 +67,7 @@ let cptBug = 0
let cptUseEffect = 0 let cptUseEffect = 0
let testPlayers: Player[] = [] let testPlayers: Player[] = []
const basePath = process.env.REACT_APP_BASE_PATH || ''; const basePath = process.env.REACT_APP_BASE_PATH || '/containers/Crypteam-website';
const MyGraphComponent: React.FC<MyGraphComponentProps> = ({onNodeClick, handleShowTurnBar, handleTurnBarTextChange, playerTouched, setPlayerTouched, changecptTour, solo, isDaily, isEasy, addToHistory, showLast, setNetwork, setNetworkEnigme, setPlayerIndex, askedWrong, setAskedWrong, importToPdf, setImportToPdf}) => { const MyGraphComponent: React.FC<MyGraphComponentProps> = ({onNodeClick, handleShowTurnBar, handleTurnBarTextChange, playerTouched, setPlayerTouched, changecptTour, solo, isDaily, isEasy, addToHistory, showLast, setNetwork, setNetworkEnigme, setPlayerIndex, askedWrong, setAskedWrong, importToPdf, setImportToPdf}) => {
let cptTour: number = 0 let cptTour: number = 0
@ -1020,7 +1019,7 @@ const MyGraphComponent: React.FC<MyGraphComponentProps> = ({onNodeClick, handleS
catch(error){ catch(error){
console.log(error); console.log(error);
} }
navigate(`${basePath}/endgame?solo=true+${isDaily}`) navigate(`${basePath}/endgame?solo=true&daily=${isDaily}`)
} }
} }

@ -20,7 +20,7 @@ interface LobbyContainerProps {
//? mettre un "nbplayermax" si le nombre de joueur max peut etre fixé ? //? mettre un "nbplayermax" si le nombre de joueur max peut etre fixé ?
} }
const basePath = process.env.REACT_APP_BASE_PATH || ''; const basePath = process.env.REACT_APP_BASE_PATH || '/containers/Crypteam-website';
const LobbyContainer: React.FC<LobbyContainerProps> = ({roomNum, HeadPlayer, nbPlayer, setFirst, started}) => { const LobbyContainer: React.FC<LobbyContainerProps> = ({roomNum, HeadPlayer, nbPlayer, setFirst, started}) => {
const theme=useTheme(); const theme=useTheme();

@ -25,8 +25,7 @@ import { useTheme } from '../Style/ThemeContext';
import { useAuth } from '../Contexts/AuthContext'; import { useAuth } from '../Contexts/AuthContext';
import { useNavigate } from 'react-router-dom'; import { useNavigate } from 'react-router-dom';
const basePath = process.env.REACT_APP_BASE_PATH || ''; const basePath = process.env.REACT_APP_BASE_PATH || '/containers/Crypteam-website';
// @ts-ignore // @ts-ignore
function AppNavbar({changeLocale}) { function AppNavbar({changeLocale}) {
@ -53,13 +52,13 @@ function AppNavbar({changeLocale}) {
<Navbar.Toggle aria-controls="basic-navbar-nav" /> <Navbar.Toggle aria-controls="basic-navbar-nav" />
<Navbar.Collapse id="basic-navbar-nav"> <Navbar.Collapse id="basic-navbar-nav">
<Nav className="me-auto"> <Nav className="me-auto">
<Nav.Link href="/" style={{ color: theme.colors.text }}> <Nav.Link href={`${basePath}/`} style={{ color: theme.colors.text }}>
Jouer Jouer
</Nav.Link> </Nav.Link>
<Nav.Link href="/presentation" style={{ color: theme.colors.text }}> <Nav.Link href={`${basePath}/presentation`} style={{ color: theme.colors.text }}>
Présentation Présentation
</Nav.Link> </Nav.Link>
<Nav.Link href="/info" style={{ color: theme.colors.text }}> <Nav.Link href={`${basePath}/info`} style={{ color: theme.colors.text }}>
Info Info
</Nav.Link> </Nav.Link>
</Nav> </Nav>

@ -6,8 +6,7 @@ import './ErrorStyle.css';
import { FormattedMessage } from 'react-intl'; import { FormattedMessage } from 'react-intl';
import { Button } from 'react-bootstrap'; import { Button } from 'react-bootstrap';
const basePath = process.env.REACT_APP_BASE_PATH || ''; const basePath = process.env.REACT_APP_BASE_PATH || '/containers/Crypteam-website';
//@ts-ignore //@ts-ignore
function ErrorPage({ code = "", msg = "Something is wrong"}) { function ErrorPage({ code = "", msg = "Something is wrong"}) {

@ -13,6 +13,9 @@ import { socket } from '../SocketConfig';
import JSONParser from '../JSONParser'; import JSONParser from '../JSONParser';
const basePath = process.env.REACT_APP_BASE_PATH || '/containers/Crypteam-website';
// @ts-ignore // @ts-ignore
function Home() { function Home() {
const theme=useTheme(); const theme=useTheme();
@ -100,7 +103,7 @@ function Home() {
{/* <h3> <u><FormattedMessage id="game.illustratedBy"/></u><br/> Kwanchai Moriya</h3> */} {/* <h3> <u><FormattedMessage id="game.illustratedBy"/></u><br/> Kwanchai Moriya</h3> */}
{/* <button>Jouer au jeu</button> */} {/* <button>Jouer au jeu</button> */}
<br/> <br/>
<Link to="/play" className='button' <Link to={`${basePath}/`} className='button'
style={{ style={{
backgroundColor: theme.colors.primary, backgroundColor: theme.colors.primary,
borderColor: theme.colors.secondary borderColor: theme.colors.secondary

@ -142,16 +142,38 @@
z-index: 1; z-index: 1;
bottom: 2%; bottom: 2%;
left: 2%; left: 2%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
/* justify-content: end; */
padding: 15px 25px; padding: 15px 25px;
background-color: #d9d9d9; border: solid;
border-radius: 15px; border-width: 0.5px 0.5px 5px 0.5px;
border-color: whitesmoke lightgray gray whitesmoke;
border-radius: 0 5% 15px 0;
height: 250px; height: 250px;
width: 20%; width: 20%;
direction: rtl;
overflow-y: auto; overflow-y: auto;
} }
.historique div{
direction: ltr;
}
.historique::-webkit-scrollbar {
width: 10px;
}
.historique::-webkit-scrollbar-thumb {
background-color: lightgray;
border-radius: 5px;
}
.historique::-webkit-scrollbar-track {
background-color: whitesmoke;
}
.historique::-webkit-scrollbar-corner {
background-color: whitesmoke;
}

@ -52,7 +52,7 @@ import Indice from '../model/Indices/Indice';
let cptNavigation = 0 let cptNavigation = 0
const basePath = process.env.REACT_APP_BASE_PATH || ''; const basePath = process.env.REACT_APP_BASE_PATH || '/containers/Crypteam-website';
//@ts-ignore //@ts-ignore
const InGame = ({locale, changeLocale}) => { const InGame = ({locale, changeLocale}) => {
@ -68,7 +68,7 @@ const InGame = ({locale, changeLocale}) => {
if (cptNavigation % 2 == 0){ if (cptNavigation % 2 == 0){
if (navigationType.toString() == "POP"){ if (navigationType.toString() == "POP"){
socket.emit("player quit") socket.emit("player quit")
navigate(`${basePath}/play`) navigate(`/${basePath}/play`)
} }
} }

@ -50,8 +50,7 @@ import { DataSet } from 'vis-network';
let gameStarted = false let gameStarted = false
let firstLaunch = true let firstLaunch = true
const basePath = process.env.REACT_APP_BASE_PATH || ''; const basePath = process.env.REACT_APP_BASE_PATH || '/containers/Crypteam-website';
function Lobby() { function Lobby() {
const theme=useTheme(); const theme=useTheme();

@ -5,7 +5,7 @@ import { useAuth } from '../Contexts/AuthContext';
import AuthService from '../services/AuthService'; import AuthService from '../services/AuthService';
import '../Style/Global.css'; import '../Style/Global.css';
const basePath = process.env.REACT_APP_BASE_PATH || ''; const basePath = process.env.REACT_APP_BASE_PATH || '/containers/Crypteam-website';
const SignIn = () => { const SignIn = () => {
const navigate = useNavigate(); const navigate = useNavigate();

@ -34,8 +34,7 @@ import Lobbies from './Lobbies';
let cptNavigation = 0 let cptNavigation = 0
const basePath = process.env.REACT_APP_BASE_PATH || ''; const basePath = process.env.REACT_APP_BASE_PATH || '/containers/Crypteam-website';
function NewPlay() { function NewPlay() {

@ -32,8 +32,7 @@ import Info from '../res/icon/infoGreen.png';
let cptNavigation = 0 let cptNavigation = 0
const basePath = process.env.REACT_APP_BASE_PATH || ''; const basePath = process.env.REACT_APP_BASE_PATH || '/containers/Crypteam-website';
function Play() { function Play() {
let first = true let first = true

@ -25,7 +25,7 @@ import Form from 'react-bootstrap/Form';
import ProgressBar from 'react-bootstrap/ProgressBar'; import ProgressBar from 'react-bootstrap/ProgressBar';
const basePath = process.env.REACT_APP_BASE_PATH || ''; const basePath = process.env.REACT_APP_BASE_PATH || '/containers/Crypteam-website';
//@ts-ignore //@ts-ignore
const Profile = () => { const Profile = () => {

@ -4,7 +4,7 @@ import { useNavigate } from 'react-router-dom';
import AuthService from '../services/AuthService'; import AuthService from '../services/AuthService';
import '../Style/Global.css'; import '../Style/Global.css';
const basePath = process.env.REACT_APP_BASE_PATH || ''; const basePath = process.env.REACT_APP_BASE_PATH || '/containers/Crypteam-website';
const SignUp = () => { const SignUp = () => {

Loading…
Cancel
Save