cleanup config

This commit is contained in:
2026-09-01 20:26:39 +03:00
parent e63223ae62
commit 22e3776892
6 changed files with 9 additions and 13 deletions
+1 -1
View File
@@ -16,6 +16,6 @@
- change `base` in `vite.config.ts` - change `base` in `vite.config.ts`
- change `API_BASE_URL` and `CLIENT_FRONTEND_URL` in `src/App.jsx` - change `API_BASE_URL` and `CLIENT_FRONTEND_URL` in `src/App.jsx`
- **backend !!** - **backend !!**
- change `ADMIN_PASS` and `API_PATH` in `admin_api.php` - change `ADMIN_PASS` in `admin_api.php`
- change `$password` in `adm/phpliteadmin.config.php` - change `$password` in `adm/phpliteadmin.config.php`
- **block http requests to `data.db`!!!** - **block http requests to `data.db`!!!**
+2 -1
View File
@@ -1,8 +1,9 @@
<?php <?php
include 'k-api.php'; include 'k-api.php';
// CHANGE THIS
const ADMIN_PASS = "superdengipassword4"; const ADMIN_PASS = "superdengipassword4";
const API_PATH = "./"; const API_PATH = "./";
function db() function db()
+1 -4
View File
@@ -1,11 +1,8 @@
// CHANGE TO YOUR API DESTINATION // CHANGE TO YOUR API DESTINATION
export const API_BASE_URL = "http://localhost:8321/admin_api.php"; export const API_BASE_URL = "http://localhost:8321/admin_api.php";
// export const API_BASE_URL = "http://192.168.3.10:8321/admin_api.php";
// export const API_BASE_URL = "http://x90620bx.beget.tech/dx4back/admin_api.php"
// TYPE: url/dx4/ // TYPE: url/dx4/
export const CLIENT_FRONTEND_URL = "http://localhost:5173/dx4/"; export const CLIENT_FRONTEND_URL = "http://localhost:5173/";
// export const CLIENT_FRONTEND_URL = "http://x90620bx.beget.tech/dx4/";
import { atom, useAtom } from "jotai"; import { atom, useAtom } from "jotai";
import { atomWithStorage } from "jotai/utils"; import { atomWithStorage } from "jotai/utils";
+1 -1
View File
@@ -11,5 +11,5 @@ export default defineConfig({
}), }),
tailwindcss(), tailwindcss(),
], ],
base: "/dx4dashboard", base: "/",
}); });
-2
View File
@@ -1,7 +1,5 @@
// CHANGE TO YOUR API DESTINATION // CHANGE TO YOUR API DESTINATION
export const API_BASE_URL = "http://localhost:8321/api.php"; export const API_BASE_URL = "http://localhost:8321/api.php";
// export const API_BASE_URL = "http://192.168.3.10:8321/api.php";
// export const API_BASE_URL = "http://x90620bx.beget.tech/dx4back/api.php"
import { atom, useAtom } from "jotai"; import { atom, useAtom } from "jotai";
import { atomWithStorage } from "jotai/utils"; import { atomWithStorage } from "jotai/utils";
+4 -4
View File
@@ -5,7 +5,7 @@ import { VitePWA } from "vite-plugin-pwa";
// https://vite.dev/config/ // https://vite.dev/config/
export default defineConfig({ export default defineConfig({
base: "/dx4/", base: "/",
plugins: [ plugins: [
react({ react({
babel: { babel: {
@@ -19,11 +19,11 @@ export default defineConfig({
name: "dx 4", name: "dx 4",
short_name: "dx4", short_name: "dx4",
description: "dnevnik-x app", description: "dnevnik-x app",
theme_color: "#eee", theme_color: "#000",
background_color: "#000", background_color: "#000",
display: "standalone", display: "standalone",
scope: "/dx4/", scope: "/",
start_url: "/dx4/", start_url: "/",
icons: [ icons: [
{ {
src: "icons/windows11/SmallTile.scale-100.png", src: "icons/windows11/SmallTile.scale-100.png",