Working on test panel, updated database administrative interface.

Co-authored-by: dudleycu <dudleyc.twitch@gmail.com>
master
Joshua Sigona 3 years ago
parent 749c109309
commit 224ce6542e
  1. 15
      src/App.js
  2. 2
      src/TestPanel.js
  3. 5
      src/style.css

@ -595,7 +595,9 @@ function AdminPanel(p) {
<Link to={process.env.PUBLIC_URL+"/admin/roles"}>Roles</Link><br/>
<Link to={process.env.PUBLIC_URL+"/admin/users"}>Users</Link><br/>
<hr/>
<Link to={process.env.PUBLIC_URL+"/admin/database_audit"}>Database Audit</Link><br/></Table></Box></div>
<Link to={process.env.PUBLIC_URL+"/admin/database_audit"}>Database Audit</Link><br/>
<Link to={process.env.PUBLIC_URL+"/admin/database_manager"}>Database Manager</Link><br/>
</Table></Box></div>
<div className="w-75">
<Route path={process.env.PUBLIC_URL+"/admin/class"}>
<TableEditor BACKENDURL={GetBackendURL(p)} path="/class"/>
@ -669,6 +671,11 @@ function AdminPanel(p) {
<Route path={process.env.PUBLIC_URL+"/admin/database_audit"}>
<TableEditor BACKENDURL={GetBackendURL(p)} path="/database_audit"/>
</Route>
<Route path={process.env.PUBLIC_URL+"/admin/database_manager"}>
<button style={{backgroundColor:"navy"}}>Apply TEST Database to LIVE Database</button><br/><br/>
<button style={{backgroundColor:"maroon"}}>Reset TEST database using current LIVE Database</button><br/><br/>
<button style={{backgroundColor:"darkgreen"}}>Backup current TEST and LIVE Database</button><br/><br/>
</Route>
</div>
</div>
}
@ -836,7 +843,7 @@ function App() {
const [className,setClassName] = useState("RANGER")
const [secondaryClassName,setSecondaryClassName] = useState("FORCE")
const [bp,setBP] = useState(1344)
const [bp,setBP] = useState(9999)
const [hp,setHP] = useState(289)
const [pp,setPP] = useState(100)
const [def,setDef] = useState(402)
@ -884,7 +891,7 @@ function App() {
const [modalOpen,setModalOpen] = useState(true)
const [BACKENDURL,setBACKENDURL]=useState(process.env.REACT_APP_GITPOD_WORKSPACE_URL||process.env.REACT_APP_BACKENDURL||'https://projectdivar.com:4504')
const [BACKENDURL]=useState(process.env.REACT_APP_GITPOD_WORKSPACE_URL||process.env.REACT_APP_BACKENDURL||'https://projectdivar.com:4504')
const [TESTMODE,setTESTMODE] = useState(false)
return (
@ -897,7 +904,7 @@ function App() {
</Route>
<Route path={process.env.PUBLIC_URL+"/test"}>
<TestHeader/>
<TestPanel/>
<TestPanel bp={bp} />
</Route>
<Route path={process.env.PUBLIC_URL+"/formula"}>
<DamageCalculator/>

@ -30,7 +30,7 @@ function TestPanel(p) {
</div>
<div>
<
</div>
<table className="basicInfo">

@ -380,14 +380,13 @@ em {
white-space: normal;
left: 1em;
}
.xtooltip {
.xTooltip {
margin: 0 10px 0 0;
display: inline;
cursor: help;
}
div.xtooltip div {
[class*="BaseToolTop"] {
min-width: 200px;
background-color: rgba(38,53,63,0.9);
}
.tooltip:hover span {
visibility: visible;

Loading…
Cancel
Save