Include user password support.

master
Joshua Sigona 3 years ago
parent e3468fcb17
commit a7c34fdb00
  1. 2
      src/App.js
  2. 13
      src/TestPanel.js

@ -889,6 +889,7 @@ function App() {
statDisplayAtk={statDisplayAtk}
GetData={GetData}
LOGGEDINUSER={LOGGEDINUSER}
LOGGEDINHASH={LOGGEDINHASH}
BACKENDURL={GetBackendURL(BACKENDURL)}
/>
</Route>
@ -921,6 +922,7 @@ function App() {
statDisplayAtk={statDisplayAtk}
GetData={GetData}
LOGGEDINUSER={LOGGEDINUSER}
LOGGEDINHASH={LOGGEDINHASH}
BACKENDURL={GetBackendURL(BACKENDURL)}
/>
</Route>

@ -296,7 +296,7 @@ let { BUILDID } = useParams()
let history = useHistory();
let location = useLocation();
const { GetData,LOGGEDINUSER,BACKENDURL,APP_TITLE } = p
const { GetData,LOGGEDINUSER,LOGGEDINHASH,BACKENDURL,APP_TITLE } = p
const [bpGraphMax,setbpGraphMax] = useState(1000)
const [hpGraphMax,sethpGraphMax] = useState(1000)
@ -333,10 +333,6 @@ const [classNameSetter,setClassNameSetter] = useState(0)
const [points,setPoints] = useState([])
const [skillPointData,setSkillPointData] = useState([])
useEffect(()=>{
console.log(skillPointData)
},[skillPointData])
function SaveData() {
var saveObj = {
level:level,
@ -352,6 +348,7 @@ function SaveData() {
axios.post(BACKENDURL+"/submitBuild",{
id:BUILDID,
username:LOGGEDINUSER,
pass:LOGGEDINHASH,
creator:author,
build_name:buildName,
class1:className,
@ -367,9 +364,11 @@ function SaveData() {
})
}
function LoadData() {
function LoadData(build) {
if (build) {
}
}
function rarityCheck(v) {
return v!==undefined?v.rarity!==undefined?" r"+v.rarity:"":""
@ -407,7 +406,7 @@ useEffect(()=>{
},[className,GetData])
useEffect(()=>{
console.log(BUILDID)
LoadData(BUILDID)
},[BUILDID])
//console.log(p.GetData("class",p.className,"icon"))

Loading…
Cancel
Save