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
+5 -9
View File
@@ -1,12 +1,8 @@
# React + Vite # dx 4
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. run
Currently, two official plugins are available: `bun dev --host` and `cd ./backend-php/; ./dev.ps1` or `cat ./dev.ps1 | sh` if you are in other os
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh # IMPORTANT
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh change `API_BASE_URL` in `src/App.jsx`
## Expanding the ESLint configuration
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project.
+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 { atom, useAtom } from "jotai";
import { atomWithStorage } from "jotai/utils"; import { atomWithStorage } from "jotai/utils";
@@ -7,7 +11,6 @@ import { DengiCaching } from "./trash/dengiCashingSystem";
import { ifstyle } from "./trash/helpers"; import { ifstyle } from "./trash/helpers";
import { LoginPage } from "./pages/LoginPage"; import { LoginPage } from "./pages/LoginPage";
import { DX4App } from "./pages/DX4AppPage"; import { DX4App } from "./pages/DX4AppPage";
export const API_BASE_URL = "http://192.168.3.10:8321/api.php";
const classIDAtom = atomWithStorage("class-id", ""); const classIDAtom = atomWithStorage("class-id", "");
const adminAtom = atomWithStorage("admin-id", ""); const adminAtom = atomWithStorage("admin-id", "");
@@ -17,7 +20,6 @@ const pickmeModeAtom = atomWithStorage("pickmeMode", false);
const EditorPage = lazy(() => import("./pages/editor")); const EditorPage = lazy(() => import("./pages/editor"));
const TestPage = lazy(() => import("./pages/test")); const TestPage = lazy(() => import("./pages/test"));
const dengi_cash = new DengiCaching(); const dengi_cash = new DengiCaching();
// KATAMAZ DENGI ROUTER 4 PRO MAX ULTIMATE // KATAMAZ DENGI ROUTER 4 PRO MAX ULTIMATE
+3 -3
View File
@@ -98,8 +98,8 @@ export function DX4App({
if ( if (
lessonsEndedTriggered.current || lessonsEndedTriggered.current ||
typeof rasp[1] != "object" || typeof rasp[1] != "object" ||
rasp[1].lenght <= 0 //|| rasp[1].lenght <= 0 ||
//apiFormatDate(selectedDate) !== apiFormatDate(new Date()) apiFormatDate(selectedDate) !== apiFormatDate(new Date())
) )
return; return;
try { try {
@@ -107,7 +107,7 @@ export function DX4App({
const tEnd = rasp[1].at(-1)["t-end"]; const tEnd = rasp[1].at(-1)["t-end"];
if (!/\d{1,2}:\d{2}$/.test(tEnd)) return; // not time type if (!/\d{1,2}:\d{2}$/.test(tEnd)) return; // not time type
if (isTimeBeforeNow(tEnd)) { if (isTimeBeforeNow(tEnd)) {
console.log(true); //console.log(true);
const d = new Date(selectedDate); const d = new Date(selectedDate);
d.setDate(d.getDate() + 1); d.setDate(d.getDate() + 1);
setSelectedDate(d); setSelectedDate(d);
+3 -6
View File
@@ -5,6 +5,7 @@ import { VitePWA } from "vite-plugin-pwa";
// https://vite.dev/config/ // https://vite.dev/config/
export default defineConfig({ export default defineConfig({
base:"/dx4/",
plugins: [ plugins: [
react(), react(),
tailwindcss(), tailwindcss(),
@@ -17,10 +18,8 @@ export default defineConfig({
theme_color: "#000", theme_color: "#000",
background_color: "#000", background_color: "#000",
display: "standalone", display: "standalone",
scope: "/", scope: "/dx4/",
start_url: "/", start_url: "/dx4/",
icons: [
{
icons: [ icons: [
{ {
src: "icons/windows11/SmallTile.scale-100.png", src: "icons/windows11/SmallTile.scale-100.png",
@@ -472,8 +471,6 @@ export default defineConfig({
}, },
], ],
}, },
],
},
workbox: { workbox: {
globPatterns: ["**/*.{js,css,html,ico,png,svg,json}"], globPatterns: ["**/*.{js,css,html,ico,png,svg,json}"],
}, },