context fix
This commit is contained in:
parent
a0bda05d1f
commit
7b5c827635
@ -312,7 +312,7 @@
|
|||||||
if (dateFrom) params.append('from', new Date(dateFrom).toISOString());
|
if (dateFrom) params.append('from', new Date(dateFrom).toISOString());
|
||||||
if (dateTo) params.append('to', new Date(dateTo).toISOString());
|
if (dateTo) params.append('to', new Date(dateTo).toISOString());
|
||||||
|
|
||||||
const response = await axios.get('/api/data?' + params.toString());
|
const response = await axios.get('/hb/api/data?' + params.toString());
|
||||||
const data = response.data;
|
const data = response.data;
|
||||||
|
|
||||||
updateStats(data);
|
updateStats(data);
|
||||||
|
|||||||
@ -55,7 +55,7 @@
|
|||||||
<div class="error-container">
|
<div class="error-container">
|
||||||
<h1>⚠️ Chyba</h1>
|
<h1>⚠️ Chyba</h1>
|
||||||
<p>%MESSAGE%</p>
|
<p>%MESSAGE%</p>
|
||||||
<a href="/">Zpět na přihlášení</a>
|
<a href="/hb/dashboard">Zpět na přihlášení</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -94,7 +94,7 @@
|
|||||||
function submitLogin(event) {
|
function submitLogin(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
const apiKey = document.getElementById('apiKey').value;
|
const apiKey = document.getElementById('apiKey').value;
|
||||||
window.location.href = '/?apiKey=' + encodeURIComponent(apiKey);
|
window.location.href = '/hb/dashboard?apiKey=' + encodeURIComponent(apiKey);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user