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