release polish; dx4 1.0 beta

This commit is contained in:
2025-11-10 15:12:56 +03:00
parent 4d01725955
commit 641a12bb0f
4 changed files with 461 additions and 466 deletions
+4 -2
View File
@@ -1,3 +1,7 @@
// CHANGE TO YOUR API DESTINATION
// export const API_BASE_URL = "http://192.168.3.10:8321/api.php";
// export const API_BASE_URL = "http://localhost:8321/api.php"
export const API_BASE_URL = "http://x90620bx.beget.tech/dx4back/dengidengi.php"
import { atom, useAtom } from "jotai";
import { atomWithStorage } from "jotai/utils";
@@ -7,7 +11,6 @@ import { DengiCaching } from "./trash/dengiCashingSystem";
import { ifstyle } from "./trash/helpers";
import { LoginPage } from "./pages/LoginPage";
import { DX4App } from "./pages/DX4AppPage";
export const API_BASE_URL = "http://192.168.3.10:8321/api.php";
const classIDAtom = atomWithStorage("class-id", "");
const adminAtom = atomWithStorage("admin-id", "");
@@ -17,7 +20,6 @@ const pickmeModeAtom = atomWithStorage("pickmeMode", false);
const EditorPage = lazy(() => import("./pages/editor"));
const TestPage = lazy(() => import("./pages/test"));
const dengi_cash = new DengiCaching();
// KATAMAZ DENGI ROUTER 4 PRO MAX ULTIMATE
+3 -3
View File
@@ -98,8 +98,8 @@ export function DX4App({
if (
lessonsEndedTriggered.current ||
typeof rasp[1] != "object" ||
rasp[1].lenght <= 0 //||
//apiFormatDate(selectedDate) !== apiFormatDate(new Date())
rasp[1].lenght <= 0 ||
apiFormatDate(selectedDate) !== apiFormatDate(new Date())
)
return;
try {
@@ -107,7 +107,7 @@ export function DX4App({
const tEnd = rasp[1].at(-1)["t-end"];
if (!/\d{1,2}:\d{2}$/.test(tEnd)) return; // not time type
if (isTimeBeforeNow(tEnd)) {
console.log(true);
//console.log(true);
const d = new Date(selectedDate);
d.setDate(d.getDate() + 1);
setSelectedDate(d);