This commit is contained in:
2026-08-28 12:33:02 +03:00
parent e504de8705
commit cc89c4a10c
11 changed files with 16 additions and 63 deletions
+11 -4
View File
@@ -1,8 +1,15 @@
# dx 4
run
### run
- frontend `bun dev --host`
- backend `cd ./backend-php/; ./dev.ps1` or `cat ./dev.ps1 | sh` if you are in other os
`bun dev --host` and `cd ./backend-php/; ./dev.ps1` or `cat ./dev.ps1 | sh` if you are in other os
### IMPORTANT
# IMPORTANT
change `API_BASE_URL` in `src/App.jsx`
- main
- change `API_BASE_URL` in `src/App.jsx`
- dx4dashboard
- change `base` in `vite.config.ts`
- change `API_BASE_URL` and `CLIENT_FRONTEND_URL` in `src/App.jsx`
- backend
- change `ADMIN_PASS` and `API_PATH` in `admin_api.php`
-11
View File
@@ -1,11 +0,0 @@
todo md
<!--
- [ ] write changes engine in php
- [ ] predict all possible unexpected situation (write here)
- lesson starts with
- 0
- -1
- -2
- lessons on saturday / sunday 💀💀
- missing lesson (like 1,2, 4; also don't forger about this in editor)
- [x] start develop editor ui -->
BIN
View File
Binary file not shown.
+2
View File
@@ -1,2 +1,4 @@
api.lock
_api.lock
data.db
-1
View File
@@ -3,7 +3,6 @@ include 'k-api.php';
const ADMIN_PASS = "superdengipassword4";
const SECRET_KEY = "dengisecretkey_monay_ivan_pletnev";
const API_PATH = "./";
function db()
+1 -1
View File
@@ -8,7 +8,7 @@ function db()
return $pdo;
};
function findClosestDateSort($array, $targetDate)
function findClosestDateSort(array $array, string $targetDate)
{
if (empty($array) || !preg_match('/^\d{1,2}-\d{1,2}-\d{2}$/', $targetDate)) {
return null;
-2
View File
@@ -1,2 +0,0 @@
<?php
echo 'test';
-23
View File
@@ -1,23 +0,0 @@
# save as Count-Word.ps1
param(
[string]$Root = ".",
[string]$Word = "dengi"
)
$pattern = "\b" + [regex]::Escape($Word) + "\b"
$count = 0
Get-ChildItem -Path $Root -Recurse -File -ErrorAction SilentlyContinue |
Where-Object { $_.FullName -notmatch "\\dist(\\|$)" } |
ForEach-Object {
try {
# ïðî÷èòàòü òåêñòîâûé ôàéë; åñëè íå òåêñòîâûé — ïðîïóñòèòü
$text = Get-Content -LiteralPath $_.FullName -ErrorAction Stop -Raw -Encoding UTF8
} catch {
try { $text = Get-Content -LiteralPath $_.FullName -ErrorAction Stop -Raw -Encoding Default } catch { return }
}
$matches = [regex]::Matches($text, $pattern, "IgnoreCase")
$count += $matches.Count
}
Write-Output $count
View File
-5
View File
@@ -1,5 +0,0 @@
# main ideas
# editor ideas
- when typing `n-n` (example `1-5`), automaticly copies everything
-14
View File
@@ -1,14 +0,0 @@
# todox
- [x] autologin
- [x] copy link
- [x] auto day switcher (basic)
- [x] today lessons ended
## later `(dx 1.1)`
- [ ] light while lesson or before it begins
- [ ] auto day switcher v2
- [ ] when no lessons today
- [ ] class ui [only for `-1` prems]
- [ ] adminEditor