release polish; dx4 1.0 beta
This commit is contained in:
@@ -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
|
||||
- [@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
|
||||
|
||||
## 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.
|
||||
# IMPORTANT
|
||||
change `API_BASE_URL` in `src/App.jsx`
|
||||
+4
-2
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
+3
-6
@@ -5,6 +5,7 @@ import { VitePWA } from "vite-plugin-pwa";
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
base:"/dx4/",
|
||||
plugins: [
|
||||
react(),
|
||||
tailwindcss(),
|
||||
@@ -17,10 +18,8 @@ export default defineConfig({
|
||||
theme_color: "#000",
|
||||
background_color: "#000",
|
||||
display: "standalone",
|
||||
scope: "/",
|
||||
start_url: "/",
|
||||
icons: [
|
||||
{
|
||||
scope: "/dx4/",
|
||||
start_url: "/dx4/",
|
||||
icons: [
|
||||
{
|
||||
src: "icons/windows11/SmallTile.scale-100.png",
|
||||
@@ -472,8 +471,6 @@ export default defineConfig({
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
workbox: {
|
||||
globPatterns: ["**/*.{js,css,html,ico,png,svg,json}"],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user