Changeset e007fcd for components
- Timestamp:
- 07/16/22 21:31:18 (2 years ago)
- Branches:
- main
- Children:
- e903234
- Parents:
- 55701f0
- Location:
- components
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
components/Header.jsx
r55701f0 re007fcd 116 116 ...playerState.player, 117 117 displayName: res.data?.displayName, 118 sesssion_id: res.data?.session_id, 118 username: res.data?.username, 119 session_id: res.data?.session_id, 119 120 credits: res.data?.credits, 120 121 })); -
components/LoginScreen.jsx
r55701f0 re007fcd 139 139 <div> 140 140 <span>Username:</span> 141 <input ref={ref} type="text" onChange={(e) => {onChangeUsername(e)}} onKeyUp={(e) => keyUp(e)} value={styleState.style.loginScreenInfo.username} placeholder=" your username..."/>141 <input ref={ref} type="text" onChange={(e) => {onChangeUsername(e)}} onKeyUp={(e) => keyUp(e)} value={styleState.style.loginScreenInfo.username} placeholder="johndoe"/> 142 142 <span>Password:</span> 143 <input type="password" onChange={(e) => {onChangePassword(e)}} onKeyUp={(e) => keyUp(e)} value={styleState.style.loginScreenInfo.password} placeholder=" your password..."/>143 <input type="password" onChange={(e) => {onChangePassword(e)}} onKeyUp={(e) => keyUp(e)} value={styleState.style.loginScreenInfo.password} placeholder="****************"/> 144 144 <div style={{width: '100%', display: 'flex', flexDirection: 'row', justifyContent: 'space-between'}}> 145 145 <button className="primaryButton" onClick={() => closeForm()}>Close Form</button> -
components/RegisterScreen.jsx
r55701f0 re007fcd 28 28 } 29 29 }, 10); 30 31 function onChangeEmail(e) { 32 dispatch(setStyle({ 33 ...styleState.style, 34 registerScreenInfo: { 35 ...styleState.style.registerScreenInfo, 36 email: e.target.value, 37 } 38 })) 39 } 30 40 31 41 function onChangeUsername(e) { … … 86 96 axios.post('/api/postgre', { 87 97 action: 'register', 98 email: styleState.style.registerScreenInfo.email, 88 99 username: styleState.style.registerScreenInfo.username, 89 100 displayName: styleState.style.registerScreenInfo.displayName, … … 109 120 notification: { 110 121 show: true, 111 text: 'Successfully registered! Please Log In now.',122 text: 'Successfully registered! Please check your email and activate your account.', 112 123 status: 'success', 113 124 }, … … 130 141 {styleState.style.inlineAlertText.length > 0 && <span className="inlineAlert">{styleState.style.inlineAlertText}</span>} 131 142 <div> 143 <span>Email:</span> 144 <input ref={ref} type="text" onChange={(e) => {onChangeEmail(e)}} onKeyUp={(e) => keyUp(e)} value={styleState.style.registerScreenInfo.email} placeholder="john.doe@gmail.com"/> 132 145 <span>Username:</span> 133 <input ref={ref} type="text" onChange={(e) => {onChangeUsername(e)}} onKeyUp={(e) => keyUp(e)} value={styleState.style.registerScreenInfo.username} placeholder="your username..."/>146 <input type="text" onChange={(e) => {onChangeUsername(e)}} onKeyUp={(e) => keyUp(e)} value={styleState.style.registerScreenInfo.username} placeholder="johndoe"/> 134 147 <span>Display Name:</span> 135 <input type="text" onChange={(e) => {onChangeDisplayName(e)}} onKeyUp={(e) => keyUp(e)} value={styleState.style.registerScreenInfo.displayName} placeholder=" your display name..."/>148 <input type="text" onChange={(e) => {onChangeDisplayName(e)}} onKeyUp={(e) => keyUp(e)} value={styleState.style.registerScreenInfo.displayName} placeholder="John Doe"/> 136 149 <span>Password:</span> 137 <input type="password" onChange={(e) => {onChangePassword(e)}} onKeyUp={(e) => keyUp(e)} value={styleState.style.registerScreenInfo.password} placeholder=" your password..."/>150 <input type="password" onChange={(e) => {onChangePassword(e)}} onKeyUp={(e) => keyUp(e)} value={styleState.style.registerScreenInfo.password} placeholder="***************"/> 138 151 <div style={{width: '100%', display: 'flex', flexDirection: 'row', justifyContent: 'space-between'}}> 139 152 <button className="primaryButton" onClick={() => closeForm()}>Close Form</button> -
components/blackjack/BlackjackHeader.jsx
r55701f0 re007fcd 60 60 axios.get(`/api/blackjack?action=update_state&session_id=${localStorage.CAESSINO_SESSION_ID}`).then(newRes => { 61 61 if (newRes.data?.success) { 62 console.log(newRes.data); 63 62 64 dispatch(setBlackjackGame(newRes.data?.blackjackGame)) 63 65 -
components/poker/PokerHeader.jsx
r55701f0 re007fcd 34 34 axios.get(`/api/poker?action=get_player_info_on_enter&session_id=${localStorage.CAESSINO_SESSION_ID}`).then(res => { 35 35 if (res.data?.success) { 36 dispatch(setPlayer({ 37 ...playerState.player, 38 displayName: res.data?.displayName, 39 username: res.data?.username, 40 session_id: res.data?.session_id, 41 credits: res.data?.credits, 42 })) 43 36 44 if (interval !== null) clearInterval(interval); 37 45 -
components/poker/sections/PickATable.jsx
r55701f0 re007fcd 32 32 33 33 function createATable() { 34 axios.get(`/api/poker?action=create_a_table&session_id=${localStorage.CAESSINO_SESSION_ID}&displayName=${playerState.player.displayName}&tableName=${styleState.poker.inputControls.tableName} `);34 axios.get(`/api/poker?action=create_a_table&session_id=${localStorage.CAESSINO_SESSION_ID}&displayName=${playerState.player.displayName}&tableName=${styleState.poker.inputControls.tableName}&username=${playerState.player.username}`); 35 35 } 36 36 37 37 function joinATable(e) { 38 axios.get(`/api/poker?action=join_a_table&session_id=${localStorage.CAESSINO_SESSION_ID}&tableId=${e.target?.dataset?.table}&displayName=${playerState.player.displayName} `);38 axios.get(`/api/poker?action=join_a_table&session_id=${localStorage.CAESSINO_SESSION_ID}&tableId=${e.target?.dataset?.table}&displayName=${playerState.player.displayName}&username=${playerState.player.username}`); 39 39 } 40 40 -
components/roulette/RouletteHeader.jsx
r55701f0 re007fcd 7 7 import { AiOutlineArrowLeft } from 'react-icons/ai' 8 8 9 import { useEffect } from 'react'9 import { useEffect, useState } from 'react' 10 10 import { useDispatch, useSelector } from 'react-redux' 11 11 … … 86 86 } 87 87 88 if (newRes.data?.extraAction && newRes.data?.extraAction !== "spin_wheel") {88 if (newRes.data?.extraAction !== "spin_wheel" && newRes.data?.extraAction2 !== "keep_alert") { 89 89 dispatch(setStyle({ 90 90 ...styleState.style,
Note:
See TracChangeset
for help on using the changeset viewer.