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/roles"}>Roles</Link><br/>
<Link to={process.env.PUBLIC_URL+"/admin/users"}>Users</Link><br/> <Link to={process.env.PUBLIC_URL+"/admin/users"}>Users</Link><br/>
<hr/> <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"> <div className="w-75">
<Route path={process.env.PUBLIC_URL+"/admin/class"}> <Route path={process.env.PUBLIC_URL+"/admin/class"}>
<TableEditor BACKENDURL={GetBackendURL(p)} path="/class"/> <TableEditor BACKENDURL={GetBackendURL(p)} path="/class"/>
@ -669,6 +671,11 @@ function AdminPanel(p) {
<Route path={process.env.PUBLIC_URL+"/admin/database_audit"}> <Route path={process.env.PUBLIC_URL+"/admin/database_audit"}>
<TableEditor BACKENDURL={GetBackendURL(p)} path="/database_audit"/> <TableEditor BACKENDURL={GetBackendURL(p)} path="/database_audit"/>
</Route> </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>
</div> </div>
} }
@ -836,7 +843,7 @@ function App() {
const [className,setClassName] = useState("RANGER") const [className,setClassName] = useState("RANGER")
const [secondaryClassName,setSecondaryClassName] = useState("FORCE") const [secondaryClassName,setSecondaryClassName] = useState("FORCE")
const [bp,setBP] = useState(1344) const [bp,setBP] = useState(9999)
const [hp,setHP] = useState(289) const [hp,setHP] = useState(289)
const [pp,setPP] = useState(100) const [pp,setPP] = useState(100)
const [def,setDef] = useState(402) const [def,setDef] = useState(402)
@ -884,7 +891,7 @@ function App() {
const [modalOpen,setModalOpen] = useState(true) 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) const [TESTMODE,setTESTMODE] = useState(false)
return ( return (
@ -897,7 +904,7 @@ function App() {
</Route> </Route>
<Route path={process.env.PUBLIC_URL+"/test"}> <Route path={process.env.PUBLIC_URL+"/test"}>
<TestHeader/> <TestHeader/>
<TestPanel/> <TestPanel bp={bp} />
</Route> </Route>
<Route path={process.env.PUBLIC_URL+"/formula"}> <Route path={process.env.PUBLIC_URL+"/formula"}>
<DamageCalculator/> <DamageCalculator/>

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

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

Loading…
Cancel
Save