|
|
@ -25,7 +25,6 @@ import md5 from 'md5'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const cookies = require('cookie-handler'); |
|
|
|
const cookies = require('cookie-handler'); |
|
|
|
|
|
|
|
|
|
|
|
const axios = require('axios'); |
|
|
|
const axios = require('axios'); |
|
|
|
const parse = require('csv-parse/lib/sync') |
|
|
|
const parse = require('csv-parse/lib/sync') |
|
|
|
|
|
|
|
|
|
|
@ -864,8 +863,8 @@ function App() { |
|
|
|
const [DATAID,setDATAID] = useState({GetData:()=>{}}) |
|
|
|
const [DATAID,setDATAID] = useState({GetData:()=>{}}) |
|
|
|
const [update,setUpdate] = useState(false) |
|
|
|
const [update,setUpdate] = useState(false) |
|
|
|
|
|
|
|
|
|
|
|
const [LOGGEDINUSER,setLOGGEDINUSER] = useState("") |
|
|
|
const [LOGGEDINUSER,setLOGGEDINUSER] = useState(cookies.get("username")) |
|
|
|
const [LOGGEDINHASH,setLOGGEDINHASH] = useState("") |
|
|
|
const [LOGGEDINHASH,setLOGGEDINHASH] = useState(cookies.get("password")) |
|
|
|
|
|
|
|
|
|
|
|
const PANELPATHWBUILD = process.env.PUBLIC_URL+"/test/:BUILDID" |
|
|
|
const PANELPATHWBUILD = process.env.PUBLIC_URL+"/test/:BUILDID" |
|
|
|
const PANELPATH = process.env.PUBLIC_URL+"/test" |
|
|
|
const PANELPATH = process.env.PUBLIC_URL+"/test" |
|
|
@ -919,7 +918,11 @@ function App() { |
|
|
|
<AdminPanel setUpdate={setUpdate} setTESTMODE={setTESTMODE} BACKENDURL={BACKENDURL} TESTMODE={TESTMODE} DATA={GetData}/> |
|
|
|
<AdminPanel setUpdate={setUpdate} setTESTMODE={setTESTMODE} BACKENDURL={BACKENDURL} TESTMODE={TESTMODE} DATA={GetData}/> |
|
|
|
</Route> |
|
|
|
</Route> |
|
|
|
<Route path={PANELPATHWBUILD}> |
|
|
|
<Route path={PANELPATHWBUILD}> |
|
|
|
<TestHeader/> |
|
|
|
<TestHeader |
|
|
|
|
|
|
|
LOGGEDINUSER={LOGGEDINUSER} |
|
|
|
|
|
|
|
LOGGEDINHASH={LOGGEDINHASH} |
|
|
|
|
|
|
|
BACKENDURL={GetBackendURL(BACKENDURL)} |
|
|
|
|
|
|
|
/> |
|
|
|
<TestPanel |
|
|
|
<TestPanel |
|
|
|
APP_TITLE={APP_TITLE} |
|
|
|
APP_TITLE={APP_TITLE} |
|
|
|
path={PANELPATHWBUILD} |
|
|
|
path={PANELPATHWBUILD} |
|
|
@ -952,7 +955,11 @@ function App() { |
|
|
|
/> |
|
|
|
/> |
|
|
|
</Route> |
|
|
|
</Route> |
|
|
|
<Route path={PANELPATH}> |
|
|
|
<Route path={PANELPATH}> |
|
|
|
<TestHeader/> |
|
|
|
<TestHeader |
|
|
|
|
|
|
|
LOGGEDINUSER={LOGGEDINUSER} |
|
|
|
|
|
|
|
LOGGEDINHASH={LOGGEDINHASH} |
|
|
|
|
|
|
|
BACKENDURL={GetBackendURL(BACKENDURL)} |
|
|
|
|
|
|
|
/> |
|
|
|
<TestPanel |
|
|
|
<TestPanel |
|
|
|
APP_TITLE={APP_TITLE} |
|
|
|
APP_TITLE={APP_TITLE} |
|
|
|
path={PANELPATH} |
|
|
|
path={PANELPATH} |
|
|
@ -988,14 +995,22 @@ function App() { |
|
|
|
<Helmet> |
|
|
|
<Helmet> |
|
|
|
<title>{APP_TITLE+" - Login"}</title> |
|
|
|
<title>{APP_TITLE+" - Login"}</title> |
|
|
|
</Helmet> |
|
|
|
</Helmet> |
|
|
|
<TestHeader/> |
|
|
|
<TestHeader |
|
|
|
|
|
|
|
LOGGEDINUSER={LOGGEDINUSER} |
|
|
|
|
|
|
|
LOGGEDINHASH={LOGGEDINHASH} |
|
|
|
|
|
|
|
BACKENDURL={GetBackendURL(BACKENDURL)} |
|
|
|
|
|
|
|
/> |
|
|
|
<LoginForm BACKENDURL={BACKENDURL} TESTMODE={TESTMODE} LOGGEDINUSER={LOGGEDINUSER} LOGGEDINHASH={LOGGEDINHASH} setLOGGEDINHASH={setLOGGEDINHASH} setLOGGEDINUSER={setLOGGEDINUSER}/> |
|
|
|
<LoginForm BACKENDURL={BACKENDURL} TESTMODE={TESTMODE} LOGGEDINUSER={LOGGEDINUSER} LOGGEDINHASH={LOGGEDINHASH} setLOGGEDINHASH={setLOGGEDINHASH} setLOGGEDINUSER={setLOGGEDINUSER}/> |
|
|
|
</Route> |
|
|
|
</Route> |
|
|
|
<Route path={process.env.PUBLIC_URL+"/register"}> |
|
|
|
<Route path={process.env.PUBLIC_URL+"/register"}> |
|
|
|
<Helmet> |
|
|
|
<Helmet> |
|
|
|
<title>{APP_TITLE+" - Register"}</title> |
|
|
|
<title>{APP_TITLE+" - Register"}</title> |
|
|
|
</Helmet> |
|
|
|
</Helmet> |
|
|
|
<TestHeader/> |
|
|
|
<TestHeader |
|
|
|
|
|
|
|
LOGGEDINUSER={LOGGEDINUSER} |
|
|
|
|
|
|
|
LOGGEDINHASH={LOGGEDINHASH} |
|
|
|
|
|
|
|
BACKENDURL={GetBackendURL(BACKENDURL)} |
|
|
|
|
|
|
|
/> |
|
|
|
<RegisterForm BACKENDURL={BACKENDURL} TESTMODE={TESTMODE} LOGGEDINUSER={LOGGEDINUSER} LOGGEDINHASH={LOGGEDINHASH} setLOGGEDINHASH={setLOGGEDINHASH} setLOGGEDINUSER={setLOGGEDINUSER}/> |
|
|
|
<RegisterForm BACKENDURL={BACKENDURL} TESTMODE={TESTMODE} LOGGEDINUSER={LOGGEDINUSER} LOGGEDINHASH={LOGGEDINHASH} setLOGGEDINHASH={setLOGGEDINHASH} setLOGGEDINUSER={setLOGGEDINUSER}/> |
|
|
|
</Route> |
|
|
|
</Route> |
|
|
|
<Route path={process.env.PUBLIC_URL+"/formula"}> |
|
|
|
<Route path={process.env.PUBLIC_URL+"/formula"}> |
|
|
|