cleanup
This commit is contained in:
@@ -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
@@ -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 -->
|
||||
Binary file not shown.
@@ -1,2 +1,4 @@
|
||||
api.lock
|
||||
_api.lock
|
||||
_api.lock
|
||||
|
||||
data.db
|
||||
@@ -3,7 +3,6 @@ include 'k-api.php';
|
||||
|
||||
|
||||
const ADMIN_PASS = "superdengipassword4";
|
||||
const SECRET_KEY = "dengisecretkey_monay_ivan_pletnev";
|
||||
const API_PATH = "./";
|
||||
|
||||
function db()
|
||||
@@ -28,7 +27,7 @@ function relativePathToUrl($rel)
|
||||
|
||||
|
||||
function FastDBReq(PDO $db, string $sql, array $params = []): array
|
||||
{
|
||||
{
|
||||
try {
|
||||
$stmt = $db->prepare($sql);
|
||||
$stmt->execute($params);
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
<?php
|
||||
echo 'test';
|
||||
@@ -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
|
||||
@@ -1,5 +0,0 @@
|
||||
# main ideas
|
||||
|
||||
# editor ideas
|
||||
|
||||
- when typing `n-n` (example `1-5`), automaticly copies everything
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user