merge tasks + trajectories into one repo, restructure
Browse filesOne repo, two sibling trees keyed by task ID:
tasks/<task-id>/ # canonical task definitions
trajectories/<task-id>/<contributor>_<model>_<date>/ # one harbor job
trial-N/ # renamed from harbor's random IDs
Trajectories are now grouped by *task* first (easy comparison across agents
on the same task), with each run path encoding contributor + model + date in
one slug derived from harbor metadata.
Changes:
- Pulled all of ApolloTeam/fullstackbench-tasks under tasks/ (2 task defs,
~860K). The old fullstackbench-tasks repo is now redundant.
- Restructured existing rollouts:
eric/screenshot2-claude/ -> trajectories/screenshot2-add-expense-sparse/
eric_claude-opus-4-7_2026-05-09/
eric/screenshot2-gemini/ -> trajectories/screenshot2-add-expense-sparse/
eric_gemini-3.1-pro-preview_2026-05-09/
- Renamed trial dirs from harbor's `<task>__<random>` to `trial-N`
(sorted by started_at).
- Dropped redundant metadata.yaml (path encodes everything now).
- push_trajectories.py: derives the full remote path from harbor metadata —
drops `--job-name`, just `--person` + `--jobs-dir`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- README.md +48 -40
- eric/screenshot2-claude/metadata.yaml +0 -2
- eric/screenshot2-gemini/metadata.yaml +0 -2
- push_trajectories.py +56 -22
- tasks/README.md +93 -0
- tasks/screenshot2-add-expense-sparse/environment/Dockerfile +28 -0
- tasks/screenshot2-add-expense-sparse/environment/app/README.md +24 -0
- tasks/screenshot2-add-expense-sparse/environment/app/backend/app/__init__.py +35 -0
- tasks/screenshot2-add-expense-sparse/environment/app/backend/app/models.py +98 -0
- tasks/screenshot2-add-expense-sparse/environment/app/backend/app/routes.py +308 -0
- tasks/screenshot2-add-expense-sparse/environment/app/backend/requirements.txt +4 -0
- tasks/screenshot2-add-expense-sparse/environment/app/backend/run.py +6 -0
- tasks/screenshot2-add-expense-sparse/environment/app/frontend/.gitignore +24 -0
- tasks/screenshot2-add-expense-sparse/environment/app/frontend/README.md +16 -0
- tasks/screenshot2-add-expense-sparse/environment/app/frontend/eslint.config.js +29 -0
- tasks/screenshot2-add-expense-sparse/environment/app/frontend/index.html +13 -0
- tasks/screenshot2-add-expense-sparse/environment/app/frontend/package-lock.json +2657 -0
- tasks/screenshot2-add-expense-sparse/environment/app/frontend/package.json +28 -0
- tasks/screenshot2-add-expense-sparse/environment/app/frontend/public/favicon.svg +1 -0
- tasks/screenshot2-add-expense-sparse/environment/app/frontend/public/icons.svg +24 -0
- tasks/screenshot2-add-expense-sparse/environment/app/frontend/src/App.css +638 -0
- tasks/screenshot2-add-expense-sparse/environment/app/frontend/src/App.jsx +28 -0
- tasks/screenshot2-add-expense-sparse/environment/app/frontend/src/api.js +73 -0
- tasks/screenshot2-add-expense-sparse/environment/app/frontend/src/assets/hero.png +3 -0
- tasks/screenshot2-add-expense-sparse/environment/app/frontend/src/assets/react.svg +1 -0
- tasks/screenshot2-add-expense-sparse/environment/app/frontend/src/assets/vite.svg +1 -0
- tasks/screenshot2-add-expense-sparse/environment/app/frontend/src/components/CreateGroup.jsx +113 -0
- tasks/screenshot2-add-expense-sparse/environment/app/frontend/src/components/Dashboard.jsx +165 -0
- tasks/screenshot2-add-expense-sparse/environment/app/frontend/src/components/GroupDetail.jsx +280 -0
- tasks/screenshot2-add-expense-sparse/environment/app/frontend/src/index.css +111 -0
- tasks/screenshot2-add-expense-sparse/environment/app/frontend/src/main.jsx +13 -0
- tasks/screenshot2-add-expense-sparse/environment/app/frontend/vite.config.js +7 -0
- tasks/screenshot2-add-expense-sparse/environment/app/manifest.yaml +4 -0
- tasks/screenshot2-add-expense-sparse/environment/app/run.sh +28 -0
- tasks/screenshot2-add-expense-sparse/environment/pristine/AddExpense.jsx +201 -0
- tasks/screenshot2-add-expense-sparse/environment/pristine/App.jsx +28 -0
- tasks/screenshot2-add-expense-sparse/environment/reference.png +3 -0
- tasks/screenshot2-add-expense-sparse/instruction.md +9 -0
- tasks/screenshot2-add-expense-sparse/solution/solve.sh +5 -0
- tasks/screenshot2-add-expense-sparse/task.toml +17 -0
- tasks/screenshot2-add-expense-sparse/tests/seed.py +28 -0
- tasks/screenshot2-add-expense-sparse/tests/test.sh +54 -0
- tasks/screenshot2-add-expense-sparse/tests/test_addexpense_sparse.py +148 -0
- tasks/screenshot42-taskmanager-projectdetail/environment/Dockerfile +28 -0
- tasks/screenshot42-taskmanager-projectdetail/environment/app/README.md +69 -0
- tasks/screenshot42-taskmanager-projectdetail/environment/app/backend/app/__init__.py +34 -0
- tasks/screenshot42-taskmanager-projectdetail/environment/app/backend/app/models.py +185 -0
- tasks/screenshot42-taskmanager-projectdetail/environment/app/backend/app/routes.py +641 -0
- tasks/screenshot42-taskmanager-projectdetail/environment/app/backend/requirements.txt +4 -0
- tasks/screenshot42-taskmanager-projectdetail/environment/app/backend/run.py +6 -0
|
@@ -1,63 +1,77 @@
|
|
| 1 |
# fullstackbench-trajectories
|
| 2 |
|
| 3 |
-
|
| 4 |
|
| 5 |
## Layout
|
| 6 |
|
| 7 |
```
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
├──
|
| 11 |
-
├──
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
```
|
| 26 |
|
| 27 |
-
|
| 28 |
|
| 29 |
-
|
|
|
|
|
|
|
| 30 |
|
| 31 |
```bash
|
| 32 |
hf download ApolloTeam/fullstackbench-trajectories \
|
| 33 |
--repo-type dataset \
|
| 34 |
-
--include "
|
| 35 |
-
--
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
```
|
| 37 |
|
| 38 |
-
Inspect a trial
|
| 39 |
```bash
|
| 40 |
jq '.steps[] | {source, message, metrics}' \
|
| 41 |
-
|
| 42 |
```
|
| 43 |
|
| 44 |
## Convert to a queryable Dataset
|
| 45 |
|
| 46 |
-
`harbor traces export` flattens ATIF trajectories into the standard `{conversations, agent, model, task, result, instruction, verifier_output, ...}` schema as a `datasets.Dataset`:
|
| 47 |
-
|
| 48 |
```bash
|
| 49 |
-
harbor traces export -p ./
|
|
|
|
| 50 |
```
|
| 51 |
|
| 52 |
Or programmatically:
|
| 53 |
```python
|
| 54 |
from harbor.utils.traces_utils import export_traces
|
| 55 |
-
ds = export_traces(root="./
|
| 56 |
include_instruction=True, include_verifier_output=True)
|
| 57 |
```
|
| 58 |
|
| 59 |
-
`task` is the registry-style id like `loki/screenshot2-add-expense-sparse` — **strip the `loki/` prefix** to get the directory in [fullstackbench-tasks](https://huggingface.co/datasets/ApolloTeam/fullstackbench-tasks).
|
| 60 |
-
|
| 61 |
## Add your own trajectories
|
| 62 |
|
| 63 |
```bash
|
|
@@ -65,26 +79,20 @@ hf download ApolloTeam/fullstackbench-trajectories push_trajectories.py \
|
|
| 65 |
--repo-type dataset --local-dir .
|
| 66 |
|
| 67 |
python push_trajectories.py \
|
| 68 |
-
--jobs-dir ./jobs/<your-
|
| 69 |
--person <slug> \
|
| 70 |
-
--job-name <matches --job-name from harbor run> \
|
| 71 |
--repo ApolloTeam/fullstackbench-trajectories
|
| 72 |
```
|
| 73 |
|
| 74 |
-
|
| 75 |
|
| 76 |
## Re-run a task
|
| 77 |
|
| 78 |
```bash
|
| 79 |
-
hf download ApolloTeam/fullstackbench-tasks \
|
| 80 |
-
--repo-type dataset \
|
| 81 |
-
--include "screenshot2-add-expense-sparse/*" \
|
| 82 |
-
--local-dir ./tasks
|
| 83 |
-
|
| 84 |
harbor run -p ./tasks/screenshot2-add-expense-sparse \
|
| 85 |
--agent claude-code -m anthropic/claude-opus-4-7 \
|
| 86 |
-k 2 -n 2 \
|
| 87 |
-
--jobs-dir ./jobs/my-rerun
|
| 88 |
```
|
| 89 |
|
| 90 |
Then push using the wrapper above.
|
|
@@ -92,5 +100,5 @@ Then push using the wrapper above.
|
|
| 92 |
## Prerequisites
|
| 93 |
|
| 94 |
- `hf` CLI logged in (`hf auth login`)
|
| 95 |
-
- Python with `huggingface_hub` (
|
| 96 |
- For re-running: Docker daemon running locally
|
|
|
|
| 1 |
# fullstackbench-trajectories
|
| 2 |
|
| 3 |
+
FullStackBench tasks and the agent trajectories that ran them. One repo, two sibling trees keyed by the same task ID.
|
| 4 |
|
| 5 |
## Layout
|
| 6 |
|
| 7 |
```
|
| 8 |
+
tasks/
|
| 9 |
+
└── <task-id>/ # task definition
|
| 10 |
+
├── environment/ # docker-compose, source app, fixtures
|
| 11 |
+
├── tests/ # verifier scripts
|
| 12 |
+
└── solution/ # reference impl (if applicable)
|
| 13 |
+
|
| 14 |
+
trajectories/
|
| 15 |
+
└── <task-id>/ # mirrors tasks/ key
|
| 16 |
+
└── <contributor>_<model>_<date>/ # one harbor job run
|
| 17 |
+
├── config.json # job-level harbor config
|
| 18 |
+
├── result.json # job-level aggregate stats
|
| 19 |
+
├── job.log
|
| 20 |
+
├── trial-0/ # one per harbor `-k` replicate
|
| 21 |
+
│ ├── config.json
|
| 22 |
+
│ ├── result.json # per-trial reward + token totals
|
| 23 |
+
│ ├── trial.log
|
| 24 |
+
│ ├── agent/
|
| 25 |
+
│ │ ├── trajectory.json # ★ ATIF canonical
|
| 26 |
+
│ │ └── ... # agent-native logs
|
| 27 |
+
│ ├── verifier/
|
| 28 |
+
│ │ ├── test-stdout.txt
|
| 29 |
+
│ │ └── test-stderr.txt
|
| 30 |
+
│ └── artifacts/ # screenshots, container logs
|
| 31 |
+
└── trial-1/
|
| 32 |
```
|
| 33 |
|
| 34 |
+
Canonical task IDs (from FullStackBench) keep their original names — e.g. `screenshot2-add-expense-sparse`. Contributor-authored variants use `<author>_<descriptor>_<date>` — e.g. `eric_screenshot2-add-expense_2026-05-15`.
|
| 35 |
|
| 36 |
+
`agent/trajectory.json` is the [ATIF](https://harborframework.com) format — full fidelity per-step `metrics` (`prompt_tokens`, `completion_tokens`, `cached_tokens`, `cost_usd`), `tool_calls`, `reasoning_content`, timestamps, multimodal `observation`.
|
| 37 |
+
|
| 38 |
+
## Browse one task's runs
|
| 39 |
|
| 40 |
```bash
|
| 41 |
hf download ApolloTeam/fullstackbench-trajectories \
|
| 42 |
--repo-type dataset \
|
| 43 |
+
--include "trajectories/screenshot2-add-expense-sparse/**" \
|
| 44 |
+
--include "tasks/screenshot2-add-expense-sparse/**" \
|
| 45 |
+
--local-dir ./fsb
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
Compare agents on the same task:
|
| 49 |
+
```bash
|
| 50 |
+
ls fsb/trajectories/screenshot2-add-expense-sparse/
|
| 51 |
+
# eric_claude-opus-4-7_2026-05-09
|
| 52 |
+
# eric_gemini-3.1-pro-preview_2026-05-09
|
| 53 |
```
|
| 54 |
|
| 55 |
+
Inspect a trial:
|
| 56 |
```bash
|
| 57 |
jq '.steps[] | {source, message, metrics}' \
|
| 58 |
+
fsb/trajectories/screenshot2-add-expense-sparse/*/trial-0/agent/trajectory.json
|
| 59 |
```
|
| 60 |
|
| 61 |
## Convert to a queryable Dataset
|
| 62 |
|
|
|
|
|
|
|
| 63 |
```bash
|
| 64 |
+
harbor traces export -p ./fsb/trajectories/screenshot2-add-expense-sparse \
|
| 65 |
+
--instruction-metadata --verifier-metadata
|
| 66 |
```
|
| 67 |
|
| 68 |
Or programmatically:
|
| 69 |
```python
|
| 70 |
from harbor.utils.traces_utils import export_traces
|
| 71 |
+
ds = export_traces(root="./fsb/trajectories/screenshot2-add-expense-sparse",
|
| 72 |
include_instruction=True, include_verifier_output=True)
|
| 73 |
```
|
| 74 |
|
|
|
|
|
|
|
| 75 |
## Add your own trajectories
|
| 76 |
|
| 77 |
```bash
|
|
|
|
| 79 |
--repo-type dataset --local-dir .
|
| 80 |
|
| 81 |
python push_trajectories.py \
|
| 82 |
+
--jobs-dir ./jobs/<your-run> \
|
| 83 |
--person <slug> \
|
|
|
|
| 84 |
--repo ApolloTeam/fullstackbench-trajectories
|
| 85 |
```
|
| 86 |
|
| 87 |
+
The path is derived from harbor's metadata: `trajectories/<task-id>/<person>_<model>_<date>/`. Re-pushing the same triple overwrites.
|
| 88 |
|
| 89 |
## Re-run a task
|
| 90 |
|
| 91 |
```bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
harbor run -p ./tasks/screenshot2-add-expense-sparse \
|
| 93 |
--agent claude-code -m anthropic/claude-opus-4-7 \
|
| 94 |
-k 2 -n 2 \
|
| 95 |
+
--jobs-dir ./jobs/my-rerun
|
| 96 |
```
|
| 97 |
|
| 98 |
Then push using the wrapper above.
|
|
|
|
| 100 |
## Prerequisites
|
| 101 |
|
| 102 |
- `hf` CLI logged in (`hf auth login`)
|
| 103 |
+
- Python with `huggingface_hub` (+ `harbor` for `traces export`)
|
| 104 |
- For re-running: Docker daemon running locally
|
|
@@ -1,2 +0,0 @@
|
|
| 1 |
-
person: eric
|
| 2 |
-
job_name: screenshot2-claude
|
|
|
|
|
|
|
|
|
|
@@ -1,2 +0,0 @@
|
|
| 1 |
-
person: eric
|
| 2 |
-
job_name: screenshot2-gemini
|
|
|
|
|
|
|
|
|
|
@@ -1,24 +1,28 @@
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
-
"""Push a Harbor job directory
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
contributor provenance.
|
| 9 |
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
-
|
| 14 |
|
| 15 |
Example:
|
| 16 |
python push_trajectories.py \\
|
| 17 |
--jobs-dir ~/Local/harbor-spike/jobs/screenshot2-claude \\
|
| 18 |
-
--person eric
|
| 19 |
--repo ApolloTeam/fullstackbench-trajectories
|
| 20 |
"""
|
| 21 |
import argparse
|
|
|
|
|
|
|
| 22 |
import shutil
|
| 23 |
import tempfile
|
| 24 |
from pathlib import Path
|
|
@@ -26,11 +30,28 @@ from pathlib import Path
|
|
| 26 |
from huggingface_hub import HfApi
|
| 27 |
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
def main() -> None:
|
| 30 |
ap = argparse.ArgumentParser()
|
| 31 |
ap.add_argument("--jobs-dir", required=True, help="Harbor job dir to upload")
|
| 32 |
ap.add_argument("--person", required=True, help="Contributor slug, e.g. 'eric'")
|
| 33 |
-
ap.add_argument("--job-name", required=True, help="Identifier; matches harbor --job-name")
|
| 34 |
ap.add_argument("--repo", required=True, help="HF dataset repo id (org/name)")
|
| 35 |
args = ap.parse_args()
|
| 36 |
|
|
@@ -38,24 +59,37 @@ def main() -> None:
|
|
| 38 |
if not src.is_dir():
|
| 39 |
raise SystemExit(f"--jobs-dir not a directory: {src}")
|
| 40 |
|
| 41 |
-
|
| 42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
with tempfile.TemporaryDirectory() as tmp:
|
| 45 |
-
staging = Path(tmp) /
|
| 46 |
-
|
| 47 |
-
(
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
| 51 |
repo_id=args.repo,
|
| 52 |
repo_type="dataset",
|
| 53 |
folder_path=str(staging),
|
| 54 |
-
path_in_repo=
|
| 55 |
-
commit_message=f"push {
|
| 56 |
)
|
| 57 |
|
| 58 |
-
print(f"pushed {src} -> {args.repo} :: {
|
| 59 |
|
| 60 |
|
| 61 |
if __name__ == "__main__":
|
|
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
+
"""Push a Harbor job directory into the merged tasks+trajectories repo.
|
| 3 |
|
| 4 |
+
Lands at:
|
| 5 |
+
trajectories/<task-id>/<contributor>_<model>_<date>/
|
| 6 |
+
config.json result.json job.log
|
| 7 |
+
trial-0/ trial-1/ ...
|
|
|
|
| 8 |
|
| 9 |
+
`<task-id>` is harbor's task_name with any provider prefix stripped
|
| 10 |
+
(`loki/screenshot2-add-expense-sparse` -> `screenshot2-add-expense-sparse`).
|
| 11 |
+
`<model>` and `<date>` are pulled from each trial's `result.json`. Trial dirs
|
| 12 |
+
are renamed from harbor's random `<task>__<trial-id>` to sequential `trial-N`
|
| 13 |
+
(sorted by `started_at`).
|
| 14 |
|
| 15 |
+
Re-pushing the same `<contributor>_<model>_<date>` overwrites.
|
| 16 |
|
| 17 |
Example:
|
| 18 |
python push_trajectories.py \\
|
| 19 |
--jobs-dir ~/Local/harbor-spike/jobs/screenshot2-claude \\
|
| 20 |
+
--person eric \\
|
| 21 |
--repo ApolloTeam/fullstackbench-trajectories
|
| 22 |
"""
|
| 23 |
import argparse
|
| 24 |
+
import json
|
| 25 |
+
import re
|
| 26 |
import shutil
|
| 27 |
import tempfile
|
| 28 |
from pathlib import Path
|
|
|
|
| 30 |
from huggingface_hub import HfApi
|
| 31 |
|
| 32 |
|
| 33 |
+
def _slug(name: str) -> str:
|
| 34 |
+
return re.sub(r"[^a-zA-Z0-9._-]+", "-", name).strip("-")
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
def _trial_meta(trial_dir: Path) -> dict | None:
|
| 38 |
+
"""Pull task_id, model, started_at from a harbor trial's result.json."""
|
| 39 |
+
rj = trial_dir / "result.json"
|
| 40 |
+
if not rj.exists() or not (trial_dir / "agent").exists():
|
| 41 |
+
return None
|
| 42 |
+
r = json.loads(rj.read_text())
|
| 43 |
+
return {
|
| 44 |
+
"dir": trial_dir,
|
| 45 |
+
"started_at": r.get("started_at") or "",
|
| 46 |
+
"model": ((r.get("agent_info") or {}).get("model_info") or {}).get("name"),
|
| 47 |
+
"task_id": (r.get("task_name") or "").split("/")[-1],
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
|
| 51 |
def main() -> None:
|
| 52 |
ap = argparse.ArgumentParser()
|
| 53 |
ap.add_argument("--jobs-dir", required=True, help="Harbor job dir to upload")
|
| 54 |
ap.add_argument("--person", required=True, help="Contributor slug, e.g. 'eric'")
|
|
|
|
| 55 |
ap.add_argument("--repo", required=True, help="HF dataset repo id (org/name)")
|
| 56 |
args = ap.parse_args()
|
| 57 |
|
|
|
|
| 59 |
if not src.is_dir():
|
| 60 |
raise SystemExit(f"--jobs-dir not a directory: {src}")
|
| 61 |
|
| 62 |
+
trials = sorted(
|
| 63 |
+
(m for m in (_trial_meta(p) for p in src.iterdir() if p.is_dir()) if m),
|
| 64 |
+
key=lambda m: m["started_at"],
|
| 65 |
+
)
|
| 66 |
+
if not trials:
|
| 67 |
+
raise SystemExit(f"no harbor trial dirs found under {src}")
|
| 68 |
+
|
| 69 |
+
t0 = trials[0]
|
| 70 |
+
if not (t0["model"] and t0["task_id"] and t0["started_at"]):
|
| 71 |
+
raise SystemExit(f"missing metadata in {t0['dir']}: {t0}")
|
| 72 |
+
run = f"{args.person}_{_slug(t0['model'])}_{t0['started_at'][:10]}"
|
| 73 |
+
remote = f"trajectories/{t0['task_id']}/{run}"
|
| 74 |
|
| 75 |
with tempfile.TemporaryDirectory() as tmp:
|
| 76 |
+
staging = Path(tmp) / run
|
| 77 |
+
staging.mkdir()
|
| 78 |
+
for name in ("config.json", "result.json", "job.log"):
|
| 79 |
+
if (src / name).exists():
|
| 80 |
+
shutil.copy(src / name, staging / name)
|
| 81 |
+
for i, tm in enumerate(trials):
|
| 82 |
+
shutil.copytree(tm["dir"], staging / f"trial-{i}")
|
| 83 |
+
|
| 84 |
+
HfApi().upload_folder(
|
| 85 |
repo_id=args.repo,
|
| 86 |
repo_type="dataset",
|
| 87 |
folder_path=str(staging),
|
| 88 |
+
path_in_repo=remote,
|
| 89 |
+
commit_message=f"push {remote}",
|
| 90 |
)
|
| 91 |
|
| 92 |
+
print(f"pushed {src} -> {args.repo} :: {remote}/ ({len(trials)} trials)")
|
| 93 |
|
| 94 |
|
| 95 |
if __name__ == "__main__":
|
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# fullstackbench-tasks
|
| 2 |
+
|
| 3 |
+
Harbor task definitions used to benchmark coding agents in the FullStackBench / Loki research program. Each top-level directory is one self-contained task — Dockerfile, golden app, verifier, instruction — runnable via `harbor run`.
|
| 4 |
+
|
| 5 |
+
## Prerequisites
|
| 6 |
+
|
| 7 |
+
- `hf` CLI logged in to an ApolloTeam-member account (`hf auth login`)
|
| 8 |
+
- Working install of [Harbor](https://github.com/laude-institute/harbor) — provides the `harbor` CLI (ask the Loki team if you don't already have it set up)
|
| 9 |
+
- Docker daemon running locally
|
| 10 |
+
- ~4 GB free disk per task for the container image
|
| 11 |
+
|
| 12 |
+
> This repo is **private** — open the URL in a browser only if you're logged in to HF as an ApolloTeam member. For programmatic README fetch use `hf download ApolloTeam/fullstackbench-tasks README.md --repo-type dataset --local-dir .`.
|
| 13 |
+
|
| 14 |
+
## Layout
|
| 15 |
+
|
| 16 |
+
```
|
| 17 |
+
<task-name>/
|
| 18 |
+
task.toml # identity, timeouts, resource limits
|
| 19 |
+
instruction.md # what the agent is asked to do
|
| 20 |
+
environment/
|
| 21 |
+
Dockerfile # builds golden app + verifier + agent workdir
|
| 22 |
+
app/ # golden backend + frontend (the reference impl)
|
| 23 |
+
pristine/ # ablated component(s) — the gap the agent must fill
|
| 24 |
+
reference.png # screenshot baseline (for visual tasks)
|
| 25 |
+
tests/
|
| 26 |
+
test.sh # boots app, seeds DB, runs verifier
|
| 27 |
+
test_*.py # Playwright structural checks
|
| 28 |
+
seed.py # test data fixture
|
| 29 |
+
solution/
|
| 30 |
+
solve.sh # oracle solution (writes the golden file in-place)
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
Tasks are fully self-contained — the Dockerfile bakes everything needed; no host-path dependencies.
|
| 34 |
+
|
| 35 |
+
## List tasks
|
| 36 |
+
|
| 37 |
+
```bash
|
| 38 |
+
hf api repos/ApolloTeam/fullstackbench-tasks/tree/main --repo-type dataset \
|
| 39 |
+
| jq -r '.[] | select(.type=="directory") | .path'
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
Or browse in the [HF file viewer](https://huggingface.co/datasets/ApolloTeam/fullstackbench-tasks/tree/main).
|
| 43 |
+
|
| 44 |
+
## Download one task
|
| 45 |
+
|
| 46 |
+
```bash
|
| 47 |
+
hf download ApolloTeam/fullstackbench-tasks \
|
| 48 |
+
--repo-type dataset \
|
| 49 |
+
--include "screenshot2-add-expense-sparse/*" \
|
| 50 |
+
--local-dir ./tasks
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
## Run a task with Harbor
|
| 54 |
+
|
| 55 |
+
```bash
|
| 56 |
+
harbor run -p ./tasks/screenshot2-add-expense-sparse \
|
| 57 |
+
--agent claude-code \
|
| 58 |
+
-m anthropic/claude-opus-4-7 \
|
| 59 |
+
-k 2 -n 2 \
|
| 60 |
+
--jobs-dir ./jobs/screenshot2-claude-rerun \
|
| 61 |
+
--job-name screenshot2-claude-rerun
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
- `-k N` — trials per task
|
| 65 |
+
- `-n N` — concurrent docker containers
|
| 66 |
+
- `--job-name` — should match the value you'll pass to `push_trajectories.py` later, since it becomes the config_name suffix
|
| 67 |
+
|
| 68 |
+
After the run finishes, push the trajectories to the sister repo:
|
| 69 |
+
|
| 70 |
+
```bash
|
| 71 |
+
# Grab the bundled wrapper from the trajectories repo
|
| 72 |
+
hf download ApolloTeam/fullstackbench-trajectories \
|
| 73 |
+
--repo-type dataset --include "push_trajectories.py" --local-dir .
|
| 74 |
+
|
| 75 |
+
# Push your job's trajectories — becomes its own config in the dataset
|
| 76 |
+
~/Local/harbor-spike/.venv/bin/python push_trajectories.py \
|
| 77 |
+
--jobs-dir ./jobs/screenshot2-claude-rerun \
|
| 78 |
+
--person <your-slug> --project fullstackbench \
|
| 79 |
+
--experiment-group screenshot-deltas \
|
| 80 |
+
--job-name screenshot2-claude-rerun --date 20260520 \
|
| 81 |
+
--repo ApolloTeam/fullstackbench-trajectories
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
See [ApolloTeam/fullstackbench-trajectories](https://huggingface.co/datasets/ApolloTeam/fullstackbench-trajectories) for the full schema and query patterns.
|
| 85 |
+
|
| 86 |
+
## Task identifier convention
|
| 87 |
+
|
| 88 |
+
`task.toml` declares `name = "loki/<task-name>"`. That string becomes the `task` column on every trajectory row, so it's the join key between this repo and the trajectories repo.
|
| 89 |
+
|
| 90 |
+
## Current tasks
|
| 91 |
+
|
| 92 |
+
- `screenshot2-add-expense-sparse` — Implement an AddExpense route from a sparse spec + screenshot reference. Tests visual-prior overrides (gemini ignores image, claude reads it).
|
| 93 |
+
- `screenshot42-taskmanager-projectdetail` — Rebuild a 377-line Kanban ProjectDetail component from a screenshot. Tests multi-axis layout + interaction reproduction.
|
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:22-bookworm
|
| 2 |
+
|
| 3 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 4 |
+
python3 python3-pip python3-venv \
|
| 5 |
+
curl ca-certificates procps lsof bash \
|
| 6 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 7 |
+
|
| 8 |
+
RUN python3 -m venv /opt/venv && \
|
| 9 |
+
/opt/venv/bin/pip install --no-cache-dir \
|
| 10 |
+
pytest==8.4.1 \
|
| 11 |
+
pytest-json-ctrf==0.3.5 \
|
| 12 |
+
playwright==1.48.0 \
|
| 13 |
+
requests==2.32.3
|
| 14 |
+
RUN /opt/venv/bin/playwright install --with-deps chromium
|
| 15 |
+
|
| 16 |
+
ENV PATH="/opt/venv/bin:${PATH}"
|
| 17 |
+
|
| 18 |
+
COPY reference.png /app/reference.png
|
| 19 |
+
|
| 20 |
+
COPY app/. /app/
|
| 21 |
+
|
| 22 |
+
RUN /opt/venv/bin/pip install --no-cache-dir -r /app/backend/requirements.txt
|
| 23 |
+
RUN cd /app/frontend && npm install --silent
|
| 24 |
+
|
| 25 |
+
COPY pristine/AddExpense.jsx /opt/golden-reference/AddExpense.jsx
|
| 26 |
+
COPY pristine/App.jsx /opt/golden-reference/App.jsx
|
| 27 |
+
|
| 28 |
+
WORKDIR /app
|
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Splitwise Reference
|
| 2 |
+
|
| 3 |
+
The ground-truth implementation. All other clones are evaluated against this.
|
| 4 |
+
|
| 5 |
+
## Setup
|
| 6 |
+
|
| 7 |
+
```bash
|
| 8 |
+
# Create and activate venv
|
| 9 |
+
python3 -m venv .venv
|
| 10 |
+
source .venv/bin/activate
|
| 11 |
+
pip install -r backend/requirements.txt
|
| 12 |
+
|
| 13 |
+
# Install frontend dependencies
|
| 14 |
+
cd frontend && npm install && cd ..
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
## Run
|
| 18 |
+
|
| 19 |
+
```bash
|
| 20 |
+
./run.sh
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
- Backend: http://localhost:5001
|
| 24 |
+
- Frontend: http://localhost:5173
|
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
from flask import Flask
|
| 3 |
+
from flask_cors import CORS
|
| 4 |
+
from flask_sqlalchemy import SQLAlchemy
|
| 5 |
+
from flask_migrate import Migrate
|
| 6 |
+
|
| 7 |
+
db = SQLAlchemy()
|
| 8 |
+
migrate = Migrate()
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
def create_app():
|
| 12 |
+
app = Flask(__name__, instance_relative_config=True)
|
| 13 |
+
|
| 14 |
+
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///" + os.path.join(
|
| 15 |
+
app.instance_path, "spliteasy.db"
|
| 16 |
+
)
|
| 17 |
+
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
|
| 18 |
+
|
| 19 |
+
# Ensure instance folder exists
|
| 20 |
+
os.makedirs(app.instance_path, exist_ok=True)
|
| 21 |
+
|
| 22 |
+
db.init_app(app)
|
| 23 |
+
migrate.init_app(app, db)
|
| 24 |
+
CORS(app)
|
| 25 |
+
|
| 26 |
+
from app.routes import api_bp
|
| 27 |
+
|
| 28 |
+
app.register_blueprint(api_bp)
|
| 29 |
+
|
| 30 |
+
with app.app_context():
|
| 31 |
+
from app import models # noqa: F401
|
| 32 |
+
|
| 33 |
+
db.create_all()
|
| 34 |
+
|
| 35 |
+
return app
|
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from datetime import datetime, timezone
|
| 2 |
+
from app import db
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
class User(db.Model):
|
| 6 |
+
__tablename__ = "users"
|
| 7 |
+
|
| 8 |
+
id = db.Column(db.Integer, primary_key=True)
|
| 9 |
+
name = db.Column(db.String(120), nullable=False)
|
| 10 |
+
email = db.Column(db.String(120), unique=True, nullable=False)
|
| 11 |
+
|
| 12 |
+
def to_dict(self):
|
| 13 |
+
return {"id": self.id, "name": self.name, "email": self.email}
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
class Group(db.Model):
|
| 17 |
+
__tablename__ = "groups"
|
| 18 |
+
|
| 19 |
+
id = db.Column(db.Integer, primary_key=True)
|
| 20 |
+
name = db.Column(db.String(120), nullable=False)
|
| 21 |
+
created_at = db.Column(
|
| 22 |
+
db.DateTime, nullable=False, default=lambda: datetime.now(timezone.utc)
|
| 23 |
+
)
|
| 24 |
+
|
| 25 |
+
members = db.relationship("GroupMember", backref="group", lazy=True, cascade="all, delete-orphan")
|
| 26 |
+
expenses = db.relationship("Expense", backref="group", lazy=True, cascade="all, delete-orphan")
|
| 27 |
+
|
| 28 |
+
def to_dict(self, include_members=False, include_expenses=False):
|
| 29 |
+
data = {
|
| 30 |
+
"id": self.id,
|
| 31 |
+
"name": self.name,
|
| 32 |
+
"created_at": self.created_at.isoformat(),
|
| 33 |
+
}
|
| 34 |
+
if include_members:
|
| 35 |
+
data["members"] = [m.user.to_dict() for m in self.members]
|
| 36 |
+
if include_expenses:
|
| 37 |
+
data["expenses"] = [e.to_dict() for e in self.expenses]
|
| 38 |
+
return data
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
class GroupMember(db.Model):
|
| 42 |
+
__tablename__ = "group_members"
|
| 43 |
+
|
| 44 |
+
id = db.Column(db.Integer, primary_key=True)
|
| 45 |
+
group_id = db.Column(db.Integer, db.ForeignKey("groups.id"), nullable=False)
|
| 46 |
+
user_id = db.Column(db.Integer, db.ForeignKey("users.id"), nullable=False)
|
| 47 |
+
|
| 48 |
+
user = db.relationship("User", lazy=True)
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
class Expense(db.Model):
|
| 52 |
+
__tablename__ = "expenses"
|
| 53 |
+
|
| 54 |
+
id = db.Column(db.Integer, primary_key=True)
|
| 55 |
+
group_id = db.Column(db.Integer, db.ForeignKey("groups.id"), nullable=False)
|
| 56 |
+
paid_by = db.Column(db.Integer, db.ForeignKey("users.id"), nullable=False)
|
| 57 |
+
description = db.Column(db.String(255), nullable=False)
|
| 58 |
+
amount = db.Column(db.Float, nullable=False)
|
| 59 |
+
is_settlement = db.Column(db.Boolean, default=False)
|
| 60 |
+
created_at = db.Column(
|
| 61 |
+
db.DateTime, nullable=False, default=lambda: datetime.now(timezone.utc)
|
| 62 |
+
)
|
| 63 |
+
|
| 64 |
+
payer = db.relationship("User", lazy=True)
|
| 65 |
+
splits = db.relationship("ExpenseSplit", backref="expense", lazy=True, cascade="all, delete-orphan")
|
| 66 |
+
|
| 67 |
+
def to_dict(self):
|
| 68 |
+
return {
|
| 69 |
+
"id": self.id,
|
| 70 |
+
"group_id": self.group_id,
|
| 71 |
+
"paid_by": self.paid_by,
|
| 72 |
+
"payer_name": self.payer.name,
|
| 73 |
+
"description": self.description,
|
| 74 |
+
"amount": self.amount,
|
| 75 |
+
"is_settlement": self.is_settlement,
|
| 76 |
+
"created_at": self.created_at.isoformat(),
|
| 77 |
+
"splits": [s.to_dict() for s in self.splits],
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
class ExpenseSplit(db.Model):
|
| 82 |
+
__tablename__ = "expense_splits"
|
| 83 |
+
|
| 84 |
+
id = db.Column(db.Integer, primary_key=True)
|
| 85 |
+
expense_id = db.Column(db.Integer, db.ForeignKey("expenses.id"), nullable=False)
|
| 86 |
+
user_id = db.Column(db.Integer, db.ForeignKey("users.id"), nullable=False)
|
| 87 |
+
amount = db.Column(db.Float, nullable=False)
|
| 88 |
+
|
| 89 |
+
user = db.relationship("User", lazy=True)
|
| 90 |
+
|
| 91 |
+
def to_dict(self):
|
| 92 |
+
return {
|
| 93 |
+
"id": self.id,
|
| 94 |
+
"expense_id": self.expense_id,
|
| 95 |
+
"user_id": self.user_id,
|
| 96 |
+
"user_name": self.user.name,
|
| 97 |
+
"amount": self.amount,
|
| 98 |
+
}
|
|
@@ -0,0 +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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from collections import defaultdict
|
| 2 |
+
from flask import Blueprint, request, jsonify
|
| 3 |
+
from app import db
|
| 4 |
+
from app.models import User, Group, GroupMember, Expense, ExpenseSplit
|
| 5 |
+
|
| 6 |
+
api_bp = Blueprint("api", __name__)
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
# ---------------------------------------------------------------------------
|
| 10 |
+
# Users
|
| 11 |
+
# ---------------------------------------------------------------------------
|
| 12 |
+
|
| 13 |
+
@api_bp.route("/api/users", methods=["POST"])
|
| 14 |
+
def create_user():
|
| 15 |
+
data = request.get_json()
|
| 16 |
+
if not data or not data.get("name") or not data.get("email"):
|
| 17 |
+
return jsonify({"error": "name and email are required"}), 400
|
| 18 |
+
|
| 19 |
+
if User.query.filter_by(email=data["email"]).first():
|
| 20 |
+
return jsonify({"error": "A user with that email already exists"}), 409
|
| 21 |
+
|
| 22 |
+
user = User(name=data["name"], email=data["email"])
|
| 23 |
+
db.session.add(user)
|
| 24 |
+
db.session.commit()
|
| 25 |
+
return jsonify(user.to_dict()), 201
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
@api_bp.route("/api/users", methods=["GET"])
|
| 29 |
+
def list_users():
|
| 30 |
+
users = User.query.all()
|
| 31 |
+
return jsonify([u.to_dict() for u in users])
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
# ---------------------------------------------------------------------------
|
| 35 |
+
# Groups
|
| 36 |
+
# ---------------------------------------------------------------------------
|
| 37 |
+
|
| 38 |
+
@api_bp.route("/api/groups", methods=["POST"])
|
| 39 |
+
def create_group():
|
| 40 |
+
data = request.get_json()
|
| 41 |
+
if not data or not data.get("name"):
|
| 42 |
+
return jsonify({"error": "name is required"}), 400
|
| 43 |
+
|
| 44 |
+
member_ids = data.get("member_ids", [])
|
| 45 |
+
users = User.query.filter(User.id.in_(member_ids)).all()
|
| 46 |
+
if len(users) != len(member_ids):
|
| 47 |
+
return jsonify({"error": "One or more member_ids are invalid"}), 400
|
| 48 |
+
|
| 49 |
+
group = Group(name=data["name"])
|
| 50 |
+
db.session.add(group)
|
| 51 |
+
db.session.flush() # get group.id
|
| 52 |
+
|
| 53 |
+
for user in users:
|
| 54 |
+
db.session.add(GroupMember(group_id=group.id, user_id=user.id))
|
| 55 |
+
|
| 56 |
+
db.session.commit()
|
| 57 |
+
return jsonify(group.to_dict(include_members=True)), 201
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
@api_bp.route("/api/groups", methods=["GET"])
|
| 61 |
+
def list_groups():
|
| 62 |
+
groups = Group.query.all()
|
| 63 |
+
return jsonify([g.to_dict(include_members=True) for g in groups])
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
@api_bp.route("/api/groups/<int:group_id>", methods=["GET"])
|
| 67 |
+
def get_group(group_id):
|
| 68 |
+
group = Group.query.get(group_id)
|
| 69 |
+
if not group:
|
| 70 |
+
return jsonify({"error": "Group not found"}), 404
|
| 71 |
+
|
| 72 |
+
data = group.to_dict(include_members=True, include_expenses=True)
|
| 73 |
+
# Also include balances for convenience
|
| 74 |
+
data["balances"] = _compute_balances(group)
|
| 75 |
+
return jsonify(data)
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
# ---------------------------------------------------------------------------
|
| 79 |
+
# Expenses
|
| 80 |
+
# ---------------------------------------------------------------------------
|
| 81 |
+
|
| 82 |
+
@api_bp.route("/api/groups/<int:group_id>/expenses", methods=["POST"])
|
| 83 |
+
def create_expense(group_id):
|
| 84 |
+
group = Group.query.get(group_id)
|
| 85 |
+
if not group:
|
| 86 |
+
return jsonify({"error": "Group not found"}), 404
|
| 87 |
+
|
| 88 |
+
data = request.get_json()
|
| 89 |
+
if not data:
|
| 90 |
+
return jsonify({"error": "Request body is required"}), 400
|
| 91 |
+
|
| 92 |
+
paid_by = data.get("paid_by")
|
| 93 |
+
description = data.get("description")
|
| 94 |
+
amount = data.get("amount")
|
| 95 |
+
split_among = data.get("split_among", [])
|
| 96 |
+
|
| 97 |
+
if not paid_by or not description or amount is None:
|
| 98 |
+
return jsonify({"error": "paid_by, description, and amount are required"}), 400
|
| 99 |
+
|
| 100 |
+
if amount <= 0:
|
| 101 |
+
return jsonify({"error": "amount must be positive"}), 400
|
| 102 |
+
|
| 103 |
+
# Validate payer is in the group
|
| 104 |
+
member_user_ids = {m.user_id for m in group.members}
|
| 105 |
+
if paid_by not in member_user_ids:
|
| 106 |
+
return jsonify({"error": "paid_by user is not a member of this group"}), 400
|
| 107 |
+
|
| 108 |
+
# Default: split among all group members if not specified
|
| 109 |
+
if not split_among:
|
| 110 |
+
split_among = list(member_user_ids)
|
| 111 |
+
|
| 112 |
+
# Validate all split_among users are in the group
|
| 113 |
+
for uid in split_among:
|
| 114 |
+
if uid not in member_user_ids:
|
| 115 |
+
return jsonify({"error": f"User {uid} is not a member of this group"}), 400
|
| 116 |
+
|
| 117 |
+
expense = Expense(
|
| 118 |
+
group_id=group_id,
|
| 119 |
+
paid_by=paid_by,
|
| 120 |
+
description=description,
|
| 121 |
+
amount=amount,
|
| 122 |
+
)
|
| 123 |
+
db.session.add(expense)
|
| 124 |
+
db.session.flush()
|
| 125 |
+
|
| 126 |
+
# Even split
|
| 127 |
+
split_amount = round(amount / len(split_among), 2)
|
| 128 |
+
# Handle rounding: give remainder to the first person
|
| 129 |
+
remainder = round(amount - split_amount * len(split_among), 2)
|
| 130 |
+
|
| 131 |
+
for i, uid in enumerate(split_among):
|
| 132 |
+
share = split_amount + (remainder if i == 0 else 0)
|
| 133 |
+
db.session.add(
|
| 134 |
+
ExpenseSplit(expense_id=expense.id, user_id=uid, amount=share)
|
| 135 |
+
)
|
| 136 |
+
|
| 137 |
+
db.session.commit()
|
| 138 |
+
return jsonify(expense.to_dict()), 201
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
@api_bp.route("/api/expenses/<int:expense_id>", methods=["DELETE"])
|
| 142 |
+
def delete_expense(expense_id):
|
| 143 |
+
expense = Expense.query.get(expense_id)
|
| 144 |
+
if not expense:
|
| 145 |
+
return jsonify({"error": "Expense not found"}), 404
|
| 146 |
+
|
| 147 |
+
db.session.delete(expense)
|
| 148 |
+
db.session.commit()
|
| 149 |
+
return jsonify({"message": "Expense deleted"}), 200
|
| 150 |
+
|
| 151 |
+
|
| 152 |
+
# ---------------------------------------------------------------------------
|
| 153 |
+
# Balances
|
| 154 |
+
# ---------------------------------------------------------------------------
|
| 155 |
+
|
| 156 |
+
@api_bp.route("/api/groups/<int:group_id>/balances", methods=["GET"])
|
| 157 |
+
def get_balances(group_id):
|
| 158 |
+
group = Group.query.get(group_id)
|
| 159 |
+
if not group:
|
| 160 |
+
return jsonify({"error": "Group not found"}), 404
|
| 161 |
+
|
| 162 |
+
balances = _compute_balances(group)
|
| 163 |
+
return jsonify(balances)
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
def _compute_balances(group):
|
| 167 |
+
"""Compute simplified debts within a group.
|
| 168 |
+
|
| 169 |
+
For every expense the payer effectively lends each other split-member
|
| 170 |
+
their share. We accumulate a net balance per user (positive = is owed
|
| 171 |
+
money, negative = owes money) then greedily simplify.
|
| 172 |
+
"""
|
| 173 |
+
# net_balance[user_id] = how much the group owes this user overall
|
| 174 |
+
# positive means others owe them, negative means they owe others
|
| 175 |
+
net_balance: dict[int, float] = defaultdict(float)
|
| 176 |
+
|
| 177 |
+
for expense in group.expenses:
|
| 178 |
+
payer_id = expense.paid_by
|
| 179 |
+
for split in expense.splits:
|
| 180 |
+
if split.user_id == payer_id:
|
| 181 |
+
continue
|
| 182 |
+
# payer covered split.amount on behalf of split.user_id
|
| 183 |
+
net_balance[payer_id] += split.amount
|
| 184 |
+
net_balance[split.user_id] -= split.amount
|
| 185 |
+
|
| 186 |
+
# Build a list of (user_id, balance) excluding zeros
|
| 187 |
+
creditors = [] # people who are owed money (positive balance)
|
| 188 |
+
debtors = [] # people who owe money (negative balance)
|
| 189 |
+
|
| 190 |
+
for uid, bal in net_balance.items():
|
| 191 |
+
bal = round(bal, 2)
|
| 192 |
+
if bal > 0.001:
|
| 193 |
+
creditors.append([uid, bal])
|
| 194 |
+
elif bal < -0.001:
|
| 195 |
+
debtors.append([uid, -bal]) # store as positive amount owed
|
| 196 |
+
|
| 197 |
+
# Sort descending so we pair largest debtor with largest creditor first
|
| 198 |
+
creditors.sort(key=lambda x: -x[1])
|
| 199 |
+
debtors.sort(key=lambda x: -x[1])
|
| 200 |
+
|
| 201 |
+
# Greedy simplification
|
| 202 |
+
transactions = []
|
| 203 |
+
i, j = 0, 0
|
| 204 |
+
while i < len(debtors) and j < len(creditors):
|
| 205 |
+
debtor_id, debt = debtors[i]
|
| 206 |
+
creditor_id, credit = creditors[j]
|
| 207 |
+
settle = round(min(debt, credit), 2)
|
| 208 |
+
|
| 209 |
+
if settle > 0.001:
|
| 210 |
+
debtor = User.query.get(debtor_id)
|
| 211 |
+
creditor = User.query.get(creditor_id)
|
| 212 |
+
transactions.append(
|
| 213 |
+
{
|
| 214 |
+
"from_user_id": debtor_id,
|
| 215 |
+
"from_user_name": debtor.name if debtor else str(debtor_id),
|
| 216 |
+
"to_user_id": creditor_id,
|
| 217 |
+
"to_user_name": creditor.name if creditor else str(creditor_id),
|
| 218 |
+
"amount": settle,
|
| 219 |
+
}
|
| 220 |
+
)
|
| 221 |
+
|
| 222 |
+
debtors[i][1] = round(debt - settle, 2)
|
| 223 |
+
creditors[j][1] = round(credit - settle, 2)
|
| 224 |
+
|
| 225 |
+
if debtors[i][1] < 0.01:
|
| 226 |
+
i += 1
|
| 227 |
+
if creditors[j][1] < 0.01:
|
| 228 |
+
j += 1
|
| 229 |
+
|
| 230 |
+
# Also return per-user net balances for display purposes
|
| 231 |
+
user_balances = []
|
| 232 |
+
for uid, bal in net_balance.items():
|
| 233 |
+
bal = round(bal, 2)
|
| 234 |
+
if abs(bal) > 0.001:
|
| 235 |
+
user = User.query.get(uid)
|
| 236 |
+
user_balances.append(
|
| 237 |
+
{
|
| 238 |
+
"user_id": uid,
|
| 239 |
+
"user_name": user.name if user else str(uid),
|
| 240 |
+
"balance": bal,
|
| 241 |
+
}
|
| 242 |
+
)
|
| 243 |
+
|
| 244 |
+
return {"transactions": transactions, "user_balances": user_balances}
|
| 245 |
+
|
| 246 |
+
|
| 247 |
+
# ---------------------------------------------------------------------------
|
| 248 |
+
# Settle
|
| 249 |
+
# ---------------------------------------------------------------------------
|
| 250 |
+
|
| 251 |
+
@api_bp.route("/api/groups/<int:group_id>/settle", methods=["POST"])
|
| 252 |
+
def settle(group_id):
|
| 253 |
+
group = Group.query.get(group_id)
|
| 254 |
+
if not group:
|
| 255 |
+
return jsonify({"error": "Group not found"}), 404
|
| 256 |
+
|
| 257 |
+
data = request.get_json()
|
| 258 |
+
if not data:
|
| 259 |
+
return jsonify({"error": "Request body is required"}), 400
|
| 260 |
+
|
| 261 |
+
payer_id = data.get("payer_id")
|
| 262 |
+
payee_id = data.get("payee_id")
|
| 263 |
+
amount = data.get("amount")
|
| 264 |
+
|
| 265 |
+
if not payer_id or not payee_id or amount is None:
|
| 266 |
+
return jsonify({"error": "payer_id, payee_id, and amount are required"}), 400
|
| 267 |
+
|
| 268 |
+
if amount <= 0:
|
| 269 |
+
return jsonify({"error": "amount must be positive"}), 400
|
| 270 |
+
|
| 271 |
+
member_user_ids = {m.user_id for m in group.members}
|
| 272 |
+
if payer_id not in member_user_ids or payee_id not in member_user_ids:
|
| 273 |
+
return jsonify({"error": "Both users must be members of this group"}), 400
|
| 274 |
+
|
| 275 |
+
payer = User.query.get(payer_id)
|
| 276 |
+
payee = User.query.get(payee_id)
|
| 277 |
+
|
| 278 |
+
# A settlement is modeled as an expense where the payer paid the payee.
|
| 279 |
+
# The split is entirely on the payee (the person receiving the money is
|
| 280 |
+
# the one whose debt is reduced).
|
| 281 |
+
expense = Expense(
|
| 282 |
+
group_id=group_id,
|
| 283 |
+
paid_by=payer_id,
|
| 284 |
+
description=f"Settlement: {payer.name} paid {payee.name}",
|
| 285 |
+
amount=amount,
|
| 286 |
+
is_settlement=True,
|
| 287 |
+
)
|
| 288 |
+
db.session.add(expense)
|
| 289 |
+
db.session.flush()
|
| 290 |
+
|
| 291 |
+
# The entire amount is "owed" by the payee to the payer, which cancels
|
| 292 |
+
# out an existing debt from payer to payee.
|
| 293 |
+
db.session.add(
|
| 294 |
+
ExpenseSplit(expense_id=expense.id, user_id=payee_id, amount=amount)
|
| 295 |
+
)
|
| 296 |
+
|
| 297 |
+
db.session.commit()
|
| 298 |
+
return jsonify(expense.to_dict()), 201
|
| 299 |
+
|
| 300 |
+
|
| 301 |
+
@api_bp.route("/api/reset", methods=["POST"])
|
| 302 |
+
def reset_db():
|
| 303 |
+
"""Drop all data for testing. Not for production use."""
|
| 304 |
+
meta = db.metadata
|
| 305 |
+
for table in reversed(meta.sorted_tables):
|
| 306 |
+
db.session.execute(table.delete())
|
| 307 |
+
db.session.commit()
|
| 308 |
+
return jsonify({"status": "reset"}), 200
|
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
flask
|
| 2 |
+
flask-cors
|
| 3 |
+
flask-sqlalchemy
|
| 4 |
+
flask-migrate
|
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from app import create_app
|
| 2 |
+
|
| 3 |
+
app = create_app()
|
| 4 |
+
|
| 5 |
+
if __name__ == "__main__":
|
| 6 |
+
app.run(debug=True, port=5001)
|
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Logs
|
| 2 |
+
logs
|
| 3 |
+
*.log
|
| 4 |
+
npm-debug.log*
|
| 5 |
+
yarn-debug.log*
|
| 6 |
+
yarn-error.log*
|
| 7 |
+
pnpm-debug.log*
|
| 8 |
+
lerna-debug.log*
|
| 9 |
+
|
| 10 |
+
node_modules
|
| 11 |
+
dist
|
| 12 |
+
dist-ssr
|
| 13 |
+
*.local
|
| 14 |
+
|
| 15 |
+
# Editor directories and files
|
| 16 |
+
.vscode/*
|
| 17 |
+
!.vscode/extensions.json
|
| 18 |
+
.idea
|
| 19 |
+
.DS_Store
|
| 20 |
+
*.suo
|
| 21 |
+
*.ntvs*
|
| 22 |
+
*.njsproj
|
| 23 |
+
*.sln
|
| 24 |
+
*.sw?
|
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# React + Vite
|
| 2 |
+
|
| 3 |
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
| 4 |
+
|
| 5 |
+
Currently, two official plugins are available:
|
| 6 |
+
|
| 7 |
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs)
|
| 8 |
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/)
|
| 9 |
+
|
| 10 |
+
## React Compiler
|
| 11 |
+
|
| 12 |
+
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
|
| 13 |
+
|
| 14 |
+
## Expanding the ESLint configuration
|
| 15 |
+
|
| 16 |
+
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.
|
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import js from '@eslint/js'
|
| 2 |
+
import globals from 'globals'
|
| 3 |
+
import reactHooks from 'eslint-plugin-react-hooks'
|
| 4 |
+
import reactRefresh from 'eslint-plugin-react-refresh'
|
| 5 |
+
import { defineConfig, globalIgnores } from 'eslint/config'
|
| 6 |
+
|
| 7 |
+
export default defineConfig([
|
| 8 |
+
globalIgnores(['dist']),
|
| 9 |
+
{
|
| 10 |
+
files: ['**/*.{js,jsx}'],
|
| 11 |
+
extends: [
|
| 12 |
+
js.configs.recommended,
|
| 13 |
+
reactHooks.configs.flat.recommended,
|
| 14 |
+
reactRefresh.configs.vite,
|
| 15 |
+
],
|
| 16 |
+
languageOptions: {
|
| 17 |
+
ecmaVersion: 2020,
|
| 18 |
+
globals: globals.browser,
|
| 19 |
+
parserOptions: {
|
| 20 |
+
ecmaVersion: 'latest',
|
| 21 |
+
ecmaFeatures: { jsx: true },
|
| 22 |
+
sourceType: 'module',
|
| 23 |
+
},
|
| 24 |
+
},
|
| 25 |
+
rules: {
|
| 26 |
+
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
|
| 27 |
+
},
|
| 28 |
+
},
|
| 29 |
+
])
|
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8" />
|
| 5 |
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 7 |
+
<title>SplitEasy</title>
|
| 8 |
+
</head>
|
| 9 |
+
<body>
|
| 10 |
+
<div id="root"></div>
|
| 11 |
+
<script type="module" src="/src/main.jsx"></script>
|
| 12 |
+
</body>
|
| 13 |
+
</html>
|
|
@@ -0,0 +1,2657 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "frontend",
|
| 3 |
+
"version": "0.0.0",
|
| 4 |
+
"lockfileVersion": 3,
|
| 5 |
+
"requires": true,
|
| 6 |
+
"packages": {
|
| 7 |
+
"": {
|
| 8 |
+
"name": "frontend",
|
| 9 |
+
"version": "0.0.0",
|
| 10 |
+
"dependencies": {
|
| 11 |
+
"react": "^19.2.4",
|
| 12 |
+
"react-dom": "^19.2.4",
|
| 13 |
+
"react-router-dom": "^7.13.1"
|
| 14 |
+
},
|
| 15 |
+
"devDependencies": {
|
| 16 |
+
"@eslint/js": "^9.39.4",
|
| 17 |
+
"@types/react": "^19.2.14",
|
| 18 |
+
"@types/react-dom": "^19.2.3",
|
| 19 |
+
"@vitejs/plugin-react": "^6.0.0",
|
| 20 |
+
"eslint": "^9.39.4",
|
| 21 |
+
"eslint-plugin-react-hooks": "^7.0.1",
|
| 22 |
+
"eslint-plugin-react-refresh": "^0.5.2",
|
| 23 |
+
"globals": "^17.4.0",
|
| 24 |
+
"vite": "^8.0.0"
|
| 25 |
+
}
|
| 26 |
+
},
|
| 27 |
+
"node_modules/@babel/code-frame": {
|
| 28 |
+
"version": "7.29.0",
|
| 29 |
+
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz",
|
| 30 |
+
"integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==",
|
| 31 |
+
"dev": true,
|
| 32 |
+
"license": "MIT",
|
| 33 |
+
"dependencies": {
|
| 34 |
+
"@babel/helper-validator-identifier": "^7.28.5",
|
| 35 |
+
"js-tokens": "^4.0.0",
|
| 36 |
+
"picocolors": "^1.1.1"
|
| 37 |
+
},
|
| 38 |
+
"engines": {
|
| 39 |
+
"node": ">=6.9.0"
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
"node_modules/@babel/compat-data": {
|
| 43 |
+
"version": "7.29.0",
|
| 44 |
+
"resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.0.tgz",
|
| 45 |
+
"integrity": "sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==",
|
| 46 |
+
"dev": true,
|
| 47 |
+
"license": "MIT",
|
| 48 |
+
"engines": {
|
| 49 |
+
"node": ">=6.9.0"
|
| 50 |
+
}
|
| 51 |
+
},
|
| 52 |
+
"node_modules/@babel/core": {
|
| 53 |
+
"version": "7.29.0",
|
| 54 |
+
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz",
|
| 55 |
+
"integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==",
|
| 56 |
+
"dev": true,
|
| 57 |
+
"license": "MIT",
|
| 58 |
+
"dependencies": {
|
| 59 |
+
"@babel/code-frame": "^7.29.0",
|
| 60 |
+
"@babel/generator": "^7.29.0",
|
| 61 |
+
"@babel/helper-compilation-targets": "^7.28.6",
|
| 62 |
+
"@babel/helper-module-transforms": "^7.28.6",
|
| 63 |
+
"@babel/helpers": "^7.28.6",
|
| 64 |
+
"@babel/parser": "^7.29.0",
|
| 65 |
+
"@babel/template": "^7.28.6",
|
| 66 |
+
"@babel/traverse": "^7.29.0",
|
| 67 |
+
"@babel/types": "^7.29.0",
|
| 68 |
+
"@jridgewell/remapping": "^2.3.5",
|
| 69 |
+
"convert-source-map": "^2.0.0",
|
| 70 |
+
"debug": "^4.1.0",
|
| 71 |
+
"gensync": "^1.0.0-beta.2",
|
| 72 |
+
"json5": "^2.2.3",
|
| 73 |
+
"semver": "^6.3.1"
|
| 74 |
+
},
|
| 75 |
+
"engines": {
|
| 76 |
+
"node": ">=6.9.0"
|
| 77 |
+
},
|
| 78 |
+
"funding": {
|
| 79 |
+
"type": "opencollective",
|
| 80 |
+
"url": "https://opencollective.com/babel"
|
| 81 |
+
}
|
| 82 |
+
},
|
| 83 |
+
"node_modules/@babel/generator": {
|
| 84 |
+
"version": "7.29.1",
|
| 85 |
+
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz",
|
| 86 |
+
"integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==",
|
| 87 |
+
"dev": true,
|
| 88 |
+
"license": "MIT",
|
| 89 |
+
"dependencies": {
|
| 90 |
+
"@babel/parser": "^7.29.0",
|
| 91 |
+
"@babel/types": "^7.29.0",
|
| 92 |
+
"@jridgewell/gen-mapping": "^0.3.12",
|
| 93 |
+
"@jridgewell/trace-mapping": "^0.3.28",
|
| 94 |
+
"jsesc": "^3.0.2"
|
| 95 |
+
},
|
| 96 |
+
"engines": {
|
| 97 |
+
"node": ">=6.9.0"
|
| 98 |
+
}
|
| 99 |
+
},
|
| 100 |
+
"node_modules/@babel/helper-compilation-targets": {
|
| 101 |
+
"version": "7.28.6",
|
| 102 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz",
|
| 103 |
+
"integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==",
|
| 104 |
+
"dev": true,
|
| 105 |
+
"license": "MIT",
|
| 106 |
+
"dependencies": {
|
| 107 |
+
"@babel/compat-data": "^7.28.6",
|
| 108 |
+
"@babel/helper-validator-option": "^7.27.1",
|
| 109 |
+
"browserslist": "^4.24.0",
|
| 110 |
+
"lru-cache": "^5.1.1",
|
| 111 |
+
"semver": "^6.3.1"
|
| 112 |
+
},
|
| 113 |
+
"engines": {
|
| 114 |
+
"node": ">=6.9.0"
|
| 115 |
+
}
|
| 116 |
+
},
|
| 117 |
+
"node_modules/@babel/helper-globals": {
|
| 118 |
+
"version": "7.28.0",
|
| 119 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz",
|
| 120 |
+
"integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",
|
| 121 |
+
"dev": true,
|
| 122 |
+
"license": "MIT",
|
| 123 |
+
"engines": {
|
| 124 |
+
"node": ">=6.9.0"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"node_modules/@babel/helper-module-imports": {
|
| 128 |
+
"version": "7.28.6",
|
| 129 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz",
|
| 130 |
+
"integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==",
|
| 131 |
+
"dev": true,
|
| 132 |
+
"license": "MIT",
|
| 133 |
+
"dependencies": {
|
| 134 |
+
"@babel/traverse": "^7.28.6",
|
| 135 |
+
"@babel/types": "^7.28.6"
|
| 136 |
+
},
|
| 137 |
+
"engines": {
|
| 138 |
+
"node": ">=6.9.0"
|
| 139 |
+
}
|
| 140 |
+
},
|
| 141 |
+
"node_modules/@babel/helper-module-transforms": {
|
| 142 |
+
"version": "7.28.6",
|
| 143 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz",
|
| 144 |
+
"integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==",
|
| 145 |
+
"dev": true,
|
| 146 |
+
"license": "MIT",
|
| 147 |
+
"dependencies": {
|
| 148 |
+
"@babel/helper-module-imports": "^7.28.6",
|
| 149 |
+
"@babel/helper-validator-identifier": "^7.28.5",
|
| 150 |
+
"@babel/traverse": "^7.28.6"
|
| 151 |
+
},
|
| 152 |
+
"engines": {
|
| 153 |
+
"node": ">=6.9.0"
|
| 154 |
+
},
|
| 155 |
+
"peerDependencies": {
|
| 156 |
+
"@babel/core": "^7.0.0"
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
"node_modules/@babel/helper-string-parser": {
|
| 160 |
+
"version": "7.27.1",
|
| 161 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",
|
| 162 |
+
"integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",
|
| 163 |
+
"dev": true,
|
| 164 |
+
"license": "MIT",
|
| 165 |
+
"engines": {
|
| 166 |
+
"node": ">=6.9.0"
|
| 167 |
+
}
|
| 168 |
+
},
|
| 169 |
+
"node_modules/@babel/helper-validator-identifier": {
|
| 170 |
+
"version": "7.28.5",
|
| 171 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",
|
| 172 |
+
"integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",
|
| 173 |
+
"dev": true,
|
| 174 |
+
"license": "MIT",
|
| 175 |
+
"engines": {
|
| 176 |
+
"node": ">=6.9.0"
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"node_modules/@babel/helper-validator-option": {
|
| 180 |
+
"version": "7.27.1",
|
| 181 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz",
|
| 182 |
+
"integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==",
|
| 183 |
+
"dev": true,
|
| 184 |
+
"license": "MIT",
|
| 185 |
+
"engines": {
|
| 186 |
+
"node": ">=6.9.0"
|
| 187 |
+
}
|
| 188 |
+
},
|
| 189 |
+
"node_modules/@babel/helpers": {
|
| 190 |
+
"version": "7.29.2",
|
| 191 |
+
"resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.2.tgz",
|
| 192 |
+
"integrity": "sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==",
|
| 193 |
+
"dev": true,
|
| 194 |
+
"license": "MIT",
|
| 195 |
+
"dependencies": {
|
| 196 |
+
"@babel/template": "^7.28.6",
|
| 197 |
+
"@babel/types": "^7.29.0"
|
| 198 |
+
},
|
| 199 |
+
"engines": {
|
| 200 |
+
"node": ">=6.9.0"
|
| 201 |
+
}
|
| 202 |
+
},
|
| 203 |
+
"node_modules/@babel/parser": {
|
| 204 |
+
"version": "7.29.2",
|
| 205 |
+
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.2.tgz",
|
| 206 |
+
"integrity": "sha512-4GgRzy/+fsBa72/RZVJmGKPmZu9Byn8o4MoLpmNe1m8ZfYnz5emHLQz3U4gLud6Zwl0RZIcgiLD7Uq7ySFuDLA==",
|
| 207 |
+
"dev": true,
|
| 208 |
+
"license": "MIT",
|
| 209 |
+
"dependencies": {
|
| 210 |
+
"@babel/types": "^7.29.0"
|
| 211 |
+
},
|
| 212 |
+
"bin": {
|
| 213 |
+
"parser": "bin/babel-parser.js"
|
| 214 |
+
},
|
| 215 |
+
"engines": {
|
| 216 |
+
"node": ">=6.0.0"
|
| 217 |
+
}
|
| 218 |
+
},
|
| 219 |
+
"node_modules/@babel/template": {
|
| 220 |
+
"version": "7.28.6",
|
| 221 |
+
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz",
|
| 222 |
+
"integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==",
|
| 223 |
+
"dev": true,
|
| 224 |
+
"license": "MIT",
|
| 225 |
+
"dependencies": {
|
| 226 |
+
"@babel/code-frame": "^7.28.6",
|
| 227 |
+
"@babel/parser": "^7.28.6",
|
| 228 |
+
"@babel/types": "^7.28.6"
|
| 229 |
+
},
|
| 230 |
+
"engines": {
|
| 231 |
+
"node": ">=6.9.0"
|
| 232 |
+
}
|
| 233 |
+
},
|
| 234 |
+
"node_modules/@babel/traverse": {
|
| 235 |
+
"version": "7.29.0",
|
| 236 |
+
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz",
|
| 237 |
+
"integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==",
|
| 238 |
+
"dev": true,
|
| 239 |
+
"license": "MIT",
|
| 240 |
+
"dependencies": {
|
| 241 |
+
"@babel/code-frame": "^7.29.0",
|
| 242 |
+
"@babel/generator": "^7.29.0",
|
| 243 |
+
"@babel/helper-globals": "^7.28.0",
|
| 244 |
+
"@babel/parser": "^7.29.0",
|
| 245 |
+
"@babel/template": "^7.28.6",
|
| 246 |
+
"@babel/types": "^7.29.0",
|
| 247 |
+
"debug": "^4.3.1"
|
| 248 |
+
},
|
| 249 |
+
"engines": {
|
| 250 |
+
"node": ">=6.9.0"
|
| 251 |
+
}
|
| 252 |
+
},
|
| 253 |
+
"node_modules/@babel/types": {
|
| 254 |
+
"version": "7.29.0",
|
| 255 |
+
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz",
|
| 256 |
+
"integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==",
|
| 257 |
+
"dev": true,
|
| 258 |
+
"license": "MIT",
|
| 259 |
+
"dependencies": {
|
| 260 |
+
"@babel/helper-string-parser": "^7.27.1",
|
| 261 |
+
"@babel/helper-validator-identifier": "^7.28.5"
|
| 262 |
+
},
|
| 263 |
+
"engines": {
|
| 264 |
+
"node": ">=6.9.0"
|
| 265 |
+
}
|
| 266 |
+
},
|
| 267 |
+
"node_modules/@emnapi/core": {
|
| 268 |
+
"version": "1.9.1",
|
| 269 |
+
"resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.9.1.tgz",
|
| 270 |
+
"integrity": "sha512-mukuNALVsoix/w1BJwFzwXBN/dHeejQtuVzcDsfOEsdpCumXb/E9j8w11h5S54tT1xhifGfbbSm/ICrObRb3KA==",
|
| 271 |
+
"dev": true,
|
| 272 |
+
"license": "MIT",
|
| 273 |
+
"optional": true,
|
| 274 |
+
"dependencies": {
|
| 275 |
+
"@emnapi/wasi-threads": "1.2.0",
|
| 276 |
+
"tslib": "^2.4.0"
|
| 277 |
+
}
|
| 278 |
+
},
|
| 279 |
+
"node_modules/@emnapi/runtime": {
|
| 280 |
+
"version": "1.9.1",
|
| 281 |
+
"resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.9.1.tgz",
|
| 282 |
+
"integrity": "sha512-VYi5+ZVLhpgK4hQ0TAjiQiZ6ol0oe4mBx7mVv7IflsiEp0OWoVsp/+f9Vc1hOhE0TtkORVrI1GvzyreqpgWtkA==",
|
| 283 |
+
"dev": true,
|
| 284 |
+
"license": "MIT",
|
| 285 |
+
"optional": true,
|
| 286 |
+
"dependencies": {
|
| 287 |
+
"tslib": "^2.4.0"
|
| 288 |
+
}
|
| 289 |
+
},
|
| 290 |
+
"node_modules/@emnapi/wasi-threads": {
|
| 291 |
+
"version": "1.2.0",
|
| 292 |
+
"resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.0.tgz",
|
| 293 |
+
"integrity": "sha512-N10dEJNSsUx41Z6pZsXU8FjPjpBEplgH24sfkmITrBED1/U2Esum9F3lfLrMjKHHjmi557zQn7kR9R+XWXu5Rg==",
|
| 294 |
+
"dev": true,
|
| 295 |
+
"license": "MIT",
|
| 296 |
+
"optional": true,
|
| 297 |
+
"dependencies": {
|
| 298 |
+
"tslib": "^2.4.0"
|
| 299 |
+
}
|
| 300 |
+
},
|
| 301 |
+
"node_modules/@eslint-community/eslint-utils": {
|
| 302 |
+
"version": "4.9.1",
|
| 303 |
+
"resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz",
|
| 304 |
+
"integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==",
|
| 305 |
+
"dev": true,
|
| 306 |
+
"license": "MIT",
|
| 307 |
+
"dependencies": {
|
| 308 |
+
"eslint-visitor-keys": "^3.4.3"
|
| 309 |
+
},
|
| 310 |
+
"engines": {
|
| 311 |
+
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
| 312 |
+
},
|
| 313 |
+
"funding": {
|
| 314 |
+
"url": "https://opencollective.com/eslint"
|
| 315 |
+
},
|
| 316 |
+
"peerDependencies": {
|
| 317 |
+
"eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
|
| 318 |
+
}
|
| 319 |
+
},
|
| 320 |
+
"node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": {
|
| 321 |
+
"version": "3.4.3",
|
| 322 |
+
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
|
| 323 |
+
"integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
|
| 324 |
+
"dev": true,
|
| 325 |
+
"license": "Apache-2.0",
|
| 326 |
+
"engines": {
|
| 327 |
+
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
| 328 |
+
},
|
| 329 |
+
"funding": {
|
| 330 |
+
"url": "https://opencollective.com/eslint"
|
| 331 |
+
}
|
| 332 |
+
},
|
| 333 |
+
"node_modules/@eslint-community/regexpp": {
|
| 334 |
+
"version": "4.12.2",
|
| 335 |
+
"resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz",
|
| 336 |
+
"integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==",
|
| 337 |
+
"dev": true,
|
| 338 |
+
"license": "MIT",
|
| 339 |
+
"engines": {
|
| 340 |
+
"node": "^12.0.0 || ^14.0.0 || >=16.0.0"
|
| 341 |
+
}
|
| 342 |
+
},
|
| 343 |
+
"node_modules/@eslint/config-array": {
|
| 344 |
+
"version": "0.21.2",
|
| 345 |
+
"resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.2.tgz",
|
| 346 |
+
"integrity": "sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==",
|
| 347 |
+
"dev": true,
|
| 348 |
+
"license": "Apache-2.0",
|
| 349 |
+
"dependencies": {
|
| 350 |
+
"@eslint/object-schema": "^2.1.7",
|
| 351 |
+
"debug": "^4.3.1",
|
| 352 |
+
"minimatch": "^3.1.5"
|
| 353 |
+
},
|
| 354 |
+
"engines": {
|
| 355 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 356 |
+
}
|
| 357 |
+
},
|
| 358 |
+
"node_modules/@eslint/config-helpers": {
|
| 359 |
+
"version": "0.4.2",
|
| 360 |
+
"resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz",
|
| 361 |
+
"integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==",
|
| 362 |
+
"dev": true,
|
| 363 |
+
"license": "Apache-2.0",
|
| 364 |
+
"dependencies": {
|
| 365 |
+
"@eslint/core": "^0.17.0"
|
| 366 |
+
},
|
| 367 |
+
"engines": {
|
| 368 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 369 |
+
}
|
| 370 |
+
},
|
| 371 |
+
"node_modules/@eslint/core": {
|
| 372 |
+
"version": "0.17.0",
|
| 373 |
+
"resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz",
|
| 374 |
+
"integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==",
|
| 375 |
+
"dev": true,
|
| 376 |
+
"license": "Apache-2.0",
|
| 377 |
+
"dependencies": {
|
| 378 |
+
"@types/json-schema": "^7.0.15"
|
| 379 |
+
},
|
| 380 |
+
"engines": {
|
| 381 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 382 |
+
}
|
| 383 |
+
},
|
| 384 |
+
"node_modules/@eslint/eslintrc": {
|
| 385 |
+
"version": "3.3.5",
|
| 386 |
+
"resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.5.tgz",
|
| 387 |
+
"integrity": "sha512-4IlJx0X0qftVsN5E+/vGujTRIFtwuLbNsVUe7TO6zYPDR1O6nFwvwhIKEKSrl6dZchmYBITazxKoUYOjdtjlRg==",
|
| 388 |
+
"dev": true,
|
| 389 |
+
"license": "MIT",
|
| 390 |
+
"dependencies": {
|
| 391 |
+
"ajv": "^6.14.0",
|
| 392 |
+
"debug": "^4.3.2",
|
| 393 |
+
"espree": "^10.0.1",
|
| 394 |
+
"globals": "^14.0.0",
|
| 395 |
+
"ignore": "^5.2.0",
|
| 396 |
+
"import-fresh": "^3.2.1",
|
| 397 |
+
"js-yaml": "^4.1.1",
|
| 398 |
+
"minimatch": "^3.1.5",
|
| 399 |
+
"strip-json-comments": "^3.1.1"
|
| 400 |
+
},
|
| 401 |
+
"engines": {
|
| 402 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 403 |
+
},
|
| 404 |
+
"funding": {
|
| 405 |
+
"url": "https://opencollective.com/eslint"
|
| 406 |
+
}
|
| 407 |
+
},
|
| 408 |
+
"node_modules/@eslint/eslintrc/node_modules/globals": {
|
| 409 |
+
"version": "14.0.0",
|
| 410 |
+
"resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz",
|
| 411 |
+
"integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==",
|
| 412 |
+
"dev": true,
|
| 413 |
+
"license": "MIT",
|
| 414 |
+
"engines": {
|
| 415 |
+
"node": ">=18"
|
| 416 |
+
},
|
| 417 |
+
"funding": {
|
| 418 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 419 |
+
}
|
| 420 |
+
},
|
| 421 |
+
"node_modules/@eslint/js": {
|
| 422 |
+
"version": "9.39.4",
|
| 423 |
+
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.4.tgz",
|
| 424 |
+
"integrity": "sha512-nE7DEIchvtiFTwBw4Lfbu59PG+kCofhjsKaCWzxTpt4lfRjRMqG6uMBzKXuEcyXhOHoUp9riAm7/aWYGhXZ9cw==",
|
| 425 |
+
"dev": true,
|
| 426 |
+
"license": "MIT",
|
| 427 |
+
"engines": {
|
| 428 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 429 |
+
},
|
| 430 |
+
"funding": {
|
| 431 |
+
"url": "https://eslint.org/donate"
|
| 432 |
+
}
|
| 433 |
+
},
|
| 434 |
+
"node_modules/@eslint/object-schema": {
|
| 435 |
+
"version": "2.1.7",
|
| 436 |
+
"resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz",
|
| 437 |
+
"integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==",
|
| 438 |
+
"dev": true,
|
| 439 |
+
"license": "Apache-2.0",
|
| 440 |
+
"engines": {
|
| 441 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 442 |
+
}
|
| 443 |
+
},
|
| 444 |
+
"node_modules/@eslint/plugin-kit": {
|
| 445 |
+
"version": "0.4.1",
|
| 446 |
+
"resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz",
|
| 447 |
+
"integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==",
|
| 448 |
+
"dev": true,
|
| 449 |
+
"license": "Apache-2.0",
|
| 450 |
+
"dependencies": {
|
| 451 |
+
"@eslint/core": "^0.17.0",
|
| 452 |
+
"levn": "^0.4.1"
|
| 453 |
+
},
|
| 454 |
+
"engines": {
|
| 455 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 456 |
+
}
|
| 457 |
+
},
|
| 458 |
+
"node_modules/@humanfs/core": {
|
| 459 |
+
"version": "0.19.1",
|
| 460 |
+
"resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz",
|
| 461 |
+
"integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==",
|
| 462 |
+
"dev": true,
|
| 463 |
+
"license": "Apache-2.0",
|
| 464 |
+
"engines": {
|
| 465 |
+
"node": ">=18.18.0"
|
| 466 |
+
}
|
| 467 |
+
},
|
| 468 |
+
"node_modules/@humanfs/node": {
|
| 469 |
+
"version": "0.16.7",
|
| 470 |
+
"resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz",
|
| 471 |
+
"integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==",
|
| 472 |
+
"dev": true,
|
| 473 |
+
"license": "Apache-2.0",
|
| 474 |
+
"dependencies": {
|
| 475 |
+
"@humanfs/core": "^0.19.1",
|
| 476 |
+
"@humanwhocodes/retry": "^0.4.0"
|
| 477 |
+
},
|
| 478 |
+
"engines": {
|
| 479 |
+
"node": ">=18.18.0"
|
| 480 |
+
}
|
| 481 |
+
},
|
| 482 |
+
"node_modules/@humanwhocodes/module-importer": {
|
| 483 |
+
"version": "1.0.1",
|
| 484 |
+
"resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
|
| 485 |
+
"integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
|
| 486 |
+
"dev": true,
|
| 487 |
+
"license": "Apache-2.0",
|
| 488 |
+
"engines": {
|
| 489 |
+
"node": ">=12.22"
|
| 490 |
+
},
|
| 491 |
+
"funding": {
|
| 492 |
+
"type": "github",
|
| 493 |
+
"url": "https://github.com/sponsors/nzakas"
|
| 494 |
+
}
|
| 495 |
+
},
|
| 496 |
+
"node_modules/@humanwhocodes/retry": {
|
| 497 |
+
"version": "0.4.3",
|
| 498 |
+
"resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",
|
| 499 |
+
"integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==",
|
| 500 |
+
"dev": true,
|
| 501 |
+
"license": "Apache-2.0",
|
| 502 |
+
"engines": {
|
| 503 |
+
"node": ">=18.18"
|
| 504 |
+
},
|
| 505 |
+
"funding": {
|
| 506 |
+
"type": "github",
|
| 507 |
+
"url": "https://github.com/sponsors/nzakas"
|
| 508 |
+
}
|
| 509 |
+
},
|
| 510 |
+
"node_modules/@jridgewell/gen-mapping": {
|
| 511 |
+
"version": "0.3.13",
|
| 512 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
|
| 513 |
+
"integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
|
| 514 |
+
"dev": true,
|
| 515 |
+
"license": "MIT",
|
| 516 |
+
"dependencies": {
|
| 517 |
+
"@jridgewell/sourcemap-codec": "^1.5.0",
|
| 518 |
+
"@jridgewell/trace-mapping": "^0.3.24"
|
| 519 |
+
}
|
| 520 |
+
},
|
| 521 |
+
"node_modules/@jridgewell/remapping": {
|
| 522 |
+
"version": "2.3.5",
|
| 523 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
|
| 524 |
+
"integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
|
| 525 |
+
"dev": true,
|
| 526 |
+
"license": "MIT",
|
| 527 |
+
"dependencies": {
|
| 528 |
+
"@jridgewell/gen-mapping": "^0.3.5",
|
| 529 |
+
"@jridgewell/trace-mapping": "^0.3.24"
|
| 530 |
+
}
|
| 531 |
+
},
|
| 532 |
+
"node_modules/@jridgewell/resolve-uri": {
|
| 533 |
+
"version": "3.1.2",
|
| 534 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
|
| 535 |
+
"integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
|
| 536 |
+
"dev": true,
|
| 537 |
+
"license": "MIT",
|
| 538 |
+
"engines": {
|
| 539 |
+
"node": ">=6.0.0"
|
| 540 |
+
}
|
| 541 |
+
},
|
| 542 |
+
"node_modules/@jridgewell/sourcemap-codec": {
|
| 543 |
+
"version": "1.5.5",
|
| 544 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
|
| 545 |
+
"integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
|
| 546 |
+
"dev": true,
|
| 547 |
+
"license": "MIT"
|
| 548 |
+
},
|
| 549 |
+
"node_modules/@jridgewell/trace-mapping": {
|
| 550 |
+
"version": "0.3.31",
|
| 551 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
|
| 552 |
+
"integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
|
| 553 |
+
"dev": true,
|
| 554 |
+
"license": "MIT",
|
| 555 |
+
"dependencies": {
|
| 556 |
+
"@jridgewell/resolve-uri": "^3.1.0",
|
| 557 |
+
"@jridgewell/sourcemap-codec": "^1.4.14"
|
| 558 |
+
}
|
| 559 |
+
},
|
| 560 |
+
"node_modules/@napi-rs/wasm-runtime": {
|
| 561 |
+
"version": "1.1.1",
|
| 562 |
+
"resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.1.tgz",
|
| 563 |
+
"integrity": "sha512-p64ah1M1ld8xjWv3qbvFwHiFVWrq1yFvV4f7w+mzaqiR4IlSgkqhcRdHwsGgomwzBH51sRY4NEowLxnaBjcW/A==",
|
| 564 |
+
"dev": true,
|
| 565 |
+
"license": "MIT",
|
| 566 |
+
"optional": true,
|
| 567 |
+
"dependencies": {
|
| 568 |
+
"@emnapi/core": "^1.7.1",
|
| 569 |
+
"@emnapi/runtime": "^1.7.1",
|
| 570 |
+
"@tybys/wasm-util": "^0.10.1"
|
| 571 |
+
},
|
| 572 |
+
"funding": {
|
| 573 |
+
"type": "github",
|
| 574 |
+
"url": "https://github.com/sponsors/Brooooooklyn"
|
| 575 |
+
}
|
| 576 |
+
},
|
| 577 |
+
"node_modules/@oxc-project/types": {
|
| 578 |
+
"version": "0.122.0",
|
| 579 |
+
"resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.122.0.tgz",
|
| 580 |
+
"integrity": "sha512-oLAl5kBpV4w69UtFZ9xqcmTi+GENWOcPF7FCrczTiBbmC0ibXxCwyvZGbO39rCVEuLGAZM84DH0pUIyyv/YJzA==",
|
| 581 |
+
"dev": true,
|
| 582 |
+
"license": "MIT",
|
| 583 |
+
"funding": {
|
| 584 |
+
"url": "https://github.com/sponsors/Boshen"
|
| 585 |
+
}
|
| 586 |
+
},
|
| 587 |
+
"node_modules/@rolldown/binding-android-arm64": {
|
| 588 |
+
"version": "1.0.0-rc.12",
|
| 589 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.0-rc.12.tgz",
|
| 590 |
+
"integrity": "sha512-pv1y2Fv0JybcykuiiD3qBOBdz6RteYojRFY1d+b95WVuzx211CRh+ytI/+9iVyWQ6koTh5dawe4S/yRfOFjgaA==",
|
| 591 |
+
"cpu": [
|
| 592 |
+
"arm64"
|
| 593 |
+
],
|
| 594 |
+
"dev": true,
|
| 595 |
+
"license": "MIT",
|
| 596 |
+
"optional": true,
|
| 597 |
+
"os": [
|
| 598 |
+
"android"
|
| 599 |
+
],
|
| 600 |
+
"engines": {
|
| 601 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 602 |
+
}
|
| 603 |
+
},
|
| 604 |
+
"node_modules/@rolldown/binding-darwin-arm64": {
|
| 605 |
+
"version": "1.0.0-rc.12",
|
| 606 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.0-rc.12.tgz",
|
| 607 |
+
"integrity": "sha512-cFYr6zTG/3PXXF3pUO+umXxt1wkRK/0AYT8lDwuqvRC+LuKYWSAQAQZjCWDQpAH172ZV6ieYrNnFzVVcnSflAg==",
|
| 608 |
+
"cpu": [
|
| 609 |
+
"arm64"
|
| 610 |
+
],
|
| 611 |
+
"dev": true,
|
| 612 |
+
"license": "MIT",
|
| 613 |
+
"optional": true,
|
| 614 |
+
"os": [
|
| 615 |
+
"darwin"
|
| 616 |
+
],
|
| 617 |
+
"engines": {
|
| 618 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 619 |
+
}
|
| 620 |
+
},
|
| 621 |
+
"node_modules/@rolldown/binding-darwin-x64": {
|
| 622 |
+
"version": "1.0.0-rc.12",
|
| 623 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.0-rc.12.tgz",
|
| 624 |
+
"integrity": "sha512-ZCsYknnHzeXYps0lGBz8JrF37GpE9bFVefrlmDrAQhOEi4IOIlcoU1+FwHEtyXGx2VkYAvhu7dyBf75EJQffBw==",
|
| 625 |
+
"cpu": [
|
| 626 |
+
"x64"
|
| 627 |
+
],
|
| 628 |
+
"dev": true,
|
| 629 |
+
"license": "MIT",
|
| 630 |
+
"optional": true,
|
| 631 |
+
"os": [
|
| 632 |
+
"darwin"
|
| 633 |
+
],
|
| 634 |
+
"engines": {
|
| 635 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 636 |
+
}
|
| 637 |
+
},
|
| 638 |
+
"node_modules/@rolldown/binding-freebsd-x64": {
|
| 639 |
+
"version": "1.0.0-rc.12",
|
| 640 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.0-rc.12.tgz",
|
| 641 |
+
"integrity": "sha512-dMLeprcVsyJsKolRXyoTH3NL6qtsT0Y2xeuEA8WQJquWFXkEC4bcu1rLZZSnZRMtAqwtrF/Ib9Ddtpa/Gkge9Q==",
|
| 642 |
+
"cpu": [
|
| 643 |
+
"x64"
|
| 644 |
+
],
|
| 645 |
+
"dev": true,
|
| 646 |
+
"license": "MIT",
|
| 647 |
+
"optional": true,
|
| 648 |
+
"os": [
|
| 649 |
+
"freebsd"
|
| 650 |
+
],
|
| 651 |
+
"engines": {
|
| 652 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 653 |
+
}
|
| 654 |
+
},
|
| 655 |
+
"node_modules/@rolldown/binding-linux-arm-gnueabihf": {
|
| 656 |
+
"version": "1.0.0-rc.12",
|
| 657 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.0-rc.12.tgz",
|
| 658 |
+
"integrity": "sha512-YqWjAgGC/9M1lz3GR1r1rP79nMgo3mQiiA+Hfo+pvKFK1fAJ1bCi0ZQVh8noOqNacuY1qIcfyVfP6HoyBRZ85Q==",
|
| 659 |
+
"cpu": [
|
| 660 |
+
"arm"
|
| 661 |
+
],
|
| 662 |
+
"dev": true,
|
| 663 |
+
"license": "MIT",
|
| 664 |
+
"optional": true,
|
| 665 |
+
"os": [
|
| 666 |
+
"linux"
|
| 667 |
+
],
|
| 668 |
+
"engines": {
|
| 669 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 670 |
+
}
|
| 671 |
+
},
|
| 672 |
+
"node_modules/@rolldown/binding-linux-arm64-gnu": {
|
| 673 |
+
"version": "1.0.0-rc.12",
|
| 674 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.0-rc.12.tgz",
|
| 675 |
+
"integrity": "sha512-/I5AS4cIroLpslsmzXfwbe5OmWvSsrFuEw3mwvbQ1kDxJ822hFHIx+vsN/TAzNVyepI/j/GSzrtCIwQPeKCLIg==",
|
| 676 |
+
"cpu": [
|
| 677 |
+
"arm64"
|
| 678 |
+
],
|
| 679 |
+
"dev": true,
|
| 680 |
+
"license": "MIT",
|
| 681 |
+
"optional": true,
|
| 682 |
+
"os": [
|
| 683 |
+
"linux"
|
| 684 |
+
],
|
| 685 |
+
"engines": {
|
| 686 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 687 |
+
}
|
| 688 |
+
},
|
| 689 |
+
"node_modules/@rolldown/binding-linux-arm64-musl": {
|
| 690 |
+
"version": "1.0.0-rc.12",
|
| 691 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.0-rc.12.tgz",
|
| 692 |
+
"integrity": "sha512-V6/wZztnBqlx5hJQqNWwFdxIKN0m38p8Jas+VoSfgH54HSj9tKTt1dZvG6JRHcjh6D7TvrJPWFGaY9UBVOaWPw==",
|
| 693 |
+
"cpu": [
|
| 694 |
+
"arm64"
|
| 695 |
+
],
|
| 696 |
+
"dev": true,
|
| 697 |
+
"license": "MIT",
|
| 698 |
+
"optional": true,
|
| 699 |
+
"os": [
|
| 700 |
+
"linux"
|
| 701 |
+
],
|
| 702 |
+
"engines": {
|
| 703 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 704 |
+
}
|
| 705 |
+
},
|
| 706 |
+
"node_modules/@rolldown/binding-linux-ppc64-gnu": {
|
| 707 |
+
"version": "1.0.0-rc.12",
|
| 708 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.0-rc.12.tgz",
|
| 709 |
+
"integrity": "sha512-AP3E9BpcUYliZCxa3w5Kwj9OtEVDYK6sVoUzy4vTOJsjPOgdaJZKFmN4oOlX0Wp0RPV2ETfmIra9x1xuayFB7g==",
|
| 710 |
+
"cpu": [
|
| 711 |
+
"ppc64"
|
| 712 |
+
],
|
| 713 |
+
"dev": true,
|
| 714 |
+
"license": "MIT",
|
| 715 |
+
"optional": true,
|
| 716 |
+
"os": [
|
| 717 |
+
"linux"
|
| 718 |
+
],
|
| 719 |
+
"engines": {
|
| 720 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 721 |
+
}
|
| 722 |
+
},
|
| 723 |
+
"node_modules/@rolldown/binding-linux-s390x-gnu": {
|
| 724 |
+
"version": "1.0.0-rc.12",
|
| 725 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.0-rc.12.tgz",
|
| 726 |
+
"integrity": "sha512-nWwpvUSPkoFmZo0kQazZYOrT7J5DGOJ/+QHHzjvNlooDZED8oH82Yg67HvehPPLAg5fUff7TfWFHQS8IV1n3og==",
|
| 727 |
+
"cpu": [
|
| 728 |
+
"s390x"
|
| 729 |
+
],
|
| 730 |
+
"dev": true,
|
| 731 |
+
"license": "MIT",
|
| 732 |
+
"optional": true,
|
| 733 |
+
"os": [
|
| 734 |
+
"linux"
|
| 735 |
+
],
|
| 736 |
+
"engines": {
|
| 737 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 738 |
+
}
|
| 739 |
+
},
|
| 740 |
+
"node_modules/@rolldown/binding-linux-x64-gnu": {
|
| 741 |
+
"version": "1.0.0-rc.12",
|
| 742 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.0-rc.12.tgz",
|
| 743 |
+
"integrity": "sha512-RNrafz5bcwRy+O9e6P8Z/OCAJW/A+qtBczIqVYwTs14pf4iV1/+eKEjdOUta93q2TsT/FI0XYDP3TCky38LMAg==",
|
| 744 |
+
"cpu": [
|
| 745 |
+
"x64"
|
| 746 |
+
],
|
| 747 |
+
"dev": true,
|
| 748 |
+
"license": "MIT",
|
| 749 |
+
"optional": true,
|
| 750 |
+
"os": [
|
| 751 |
+
"linux"
|
| 752 |
+
],
|
| 753 |
+
"engines": {
|
| 754 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 755 |
+
}
|
| 756 |
+
},
|
| 757 |
+
"node_modules/@rolldown/binding-linux-x64-musl": {
|
| 758 |
+
"version": "1.0.0-rc.12",
|
| 759 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.0-rc.12.tgz",
|
| 760 |
+
"integrity": "sha512-Jpw/0iwoKWx3LJ2rc1yjFrj+T7iHZn2JDg1Yny1ma0luviFS4mhAIcd1LFNxK3EYu3DHWCps0ydXQ5i/rrJ2ig==",
|
| 761 |
+
"cpu": [
|
| 762 |
+
"x64"
|
| 763 |
+
],
|
| 764 |
+
"dev": true,
|
| 765 |
+
"license": "MIT",
|
| 766 |
+
"optional": true,
|
| 767 |
+
"os": [
|
| 768 |
+
"linux"
|
| 769 |
+
],
|
| 770 |
+
"engines": {
|
| 771 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 772 |
+
}
|
| 773 |
+
},
|
| 774 |
+
"node_modules/@rolldown/binding-openharmony-arm64": {
|
| 775 |
+
"version": "1.0.0-rc.12",
|
| 776 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.0-rc.12.tgz",
|
| 777 |
+
"integrity": "sha512-vRugONE4yMfVn0+7lUKdKvN4D5YusEiPilaoO2sgUWpCvrncvWgPMzK00ZFFJuiPgLwgFNP5eSiUlv2tfc+lpA==",
|
| 778 |
+
"cpu": [
|
| 779 |
+
"arm64"
|
| 780 |
+
],
|
| 781 |
+
"dev": true,
|
| 782 |
+
"license": "MIT",
|
| 783 |
+
"optional": true,
|
| 784 |
+
"os": [
|
| 785 |
+
"openharmony"
|
| 786 |
+
],
|
| 787 |
+
"engines": {
|
| 788 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 789 |
+
}
|
| 790 |
+
},
|
| 791 |
+
"node_modules/@rolldown/binding-wasm32-wasi": {
|
| 792 |
+
"version": "1.0.0-rc.12",
|
| 793 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.0-rc.12.tgz",
|
| 794 |
+
"integrity": "sha512-ykGiLr/6kkiHc0XnBfmFJuCjr5ZYKKofkx+chJWDjitX+KsJuAmrzWhwyOMSHzPhzOHOy7u9HlFoa5MoAOJ/Zg==",
|
| 795 |
+
"cpu": [
|
| 796 |
+
"wasm32"
|
| 797 |
+
],
|
| 798 |
+
"dev": true,
|
| 799 |
+
"license": "MIT",
|
| 800 |
+
"optional": true,
|
| 801 |
+
"dependencies": {
|
| 802 |
+
"@napi-rs/wasm-runtime": "^1.1.1"
|
| 803 |
+
},
|
| 804 |
+
"engines": {
|
| 805 |
+
"node": ">=14.0.0"
|
| 806 |
+
}
|
| 807 |
+
},
|
| 808 |
+
"node_modules/@rolldown/binding-win32-arm64-msvc": {
|
| 809 |
+
"version": "1.0.0-rc.12",
|
| 810 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.0-rc.12.tgz",
|
| 811 |
+
"integrity": "sha512-5eOND4duWkwx1AzCxadcOrNeighiLwMInEADT0YM7xeEOOFcovWZCq8dadXgcRHSf3Ulh1kFo/qvzoFiCLOL1Q==",
|
| 812 |
+
"cpu": [
|
| 813 |
+
"arm64"
|
| 814 |
+
],
|
| 815 |
+
"dev": true,
|
| 816 |
+
"license": "MIT",
|
| 817 |
+
"optional": true,
|
| 818 |
+
"os": [
|
| 819 |
+
"win32"
|
| 820 |
+
],
|
| 821 |
+
"engines": {
|
| 822 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 823 |
+
}
|
| 824 |
+
},
|
| 825 |
+
"node_modules/@rolldown/binding-win32-x64-msvc": {
|
| 826 |
+
"version": "1.0.0-rc.12",
|
| 827 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.0-rc.12.tgz",
|
| 828 |
+
"integrity": "sha512-PyqoipaswDLAZtot351MLhrlrh6lcZPo2LSYE+VDxbVk24LVKAGOuE4hb8xZQmrPAuEtTZW8E6D2zc5EUZX4Lw==",
|
| 829 |
+
"cpu": [
|
| 830 |
+
"x64"
|
| 831 |
+
],
|
| 832 |
+
"dev": true,
|
| 833 |
+
"license": "MIT",
|
| 834 |
+
"optional": true,
|
| 835 |
+
"os": [
|
| 836 |
+
"win32"
|
| 837 |
+
],
|
| 838 |
+
"engines": {
|
| 839 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 840 |
+
}
|
| 841 |
+
},
|
| 842 |
+
"node_modules/@rolldown/pluginutils": {
|
| 843 |
+
"version": "1.0.0-rc.7",
|
| 844 |
+
"resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.7.tgz",
|
| 845 |
+
"integrity": "sha512-qujRfC8sFVInYSPPMLQByRh7zhwkGFS4+tyMQ83srV1qrxL4g8E2tyxVVyxd0+8QeBM1mIk9KbWxkegRr76XzA==",
|
| 846 |
+
"dev": true,
|
| 847 |
+
"license": "MIT"
|
| 848 |
+
},
|
| 849 |
+
"node_modules/@tybys/wasm-util": {
|
| 850 |
+
"version": "0.10.1",
|
| 851 |
+
"resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz",
|
| 852 |
+
"integrity": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==",
|
| 853 |
+
"dev": true,
|
| 854 |
+
"license": "MIT",
|
| 855 |
+
"optional": true,
|
| 856 |
+
"dependencies": {
|
| 857 |
+
"tslib": "^2.4.0"
|
| 858 |
+
}
|
| 859 |
+
},
|
| 860 |
+
"node_modules/@types/estree": {
|
| 861 |
+
"version": "1.0.8",
|
| 862 |
+
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
|
| 863 |
+
"integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",
|
| 864 |
+
"dev": true,
|
| 865 |
+
"license": "MIT"
|
| 866 |
+
},
|
| 867 |
+
"node_modules/@types/json-schema": {
|
| 868 |
+
"version": "7.0.15",
|
| 869 |
+
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
|
| 870 |
+
"integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
|
| 871 |
+
"dev": true,
|
| 872 |
+
"license": "MIT"
|
| 873 |
+
},
|
| 874 |
+
"node_modules/@types/react": {
|
| 875 |
+
"version": "19.2.14",
|
| 876 |
+
"resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz",
|
| 877 |
+
"integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==",
|
| 878 |
+
"dev": true,
|
| 879 |
+
"license": "MIT",
|
| 880 |
+
"dependencies": {
|
| 881 |
+
"csstype": "^3.2.2"
|
| 882 |
+
}
|
| 883 |
+
},
|
| 884 |
+
"node_modules/@types/react-dom": {
|
| 885 |
+
"version": "19.2.3",
|
| 886 |
+
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz",
|
| 887 |
+
"integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==",
|
| 888 |
+
"dev": true,
|
| 889 |
+
"license": "MIT",
|
| 890 |
+
"peerDependencies": {
|
| 891 |
+
"@types/react": "^19.2.0"
|
| 892 |
+
}
|
| 893 |
+
},
|
| 894 |
+
"node_modules/@vitejs/plugin-react": {
|
| 895 |
+
"version": "6.0.1",
|
| 896 |
+
"resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.0.1.tgz",
|
| 897 |
+
"integrity": "sha512-l9X/E3cDb+xY3SWzlG1MOGt2usfEHGMNIaegaUGFsLkb3RCn/k8/TOXBcab+OndDI4TBtktT8/9BwwW8Vi9KUQ==",
|
| 898 |
+
"dev": true,
|
| 899 |
+
"license": "MIT",
|
| 900 |
+
"dependencies": {
|
| 901 |
+
"@rolldown/pluginutils": "1.0.0-rc.7"
|
| 902 |
+
},
|
| 903 |
+
"engines": {
|
| 904 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 905 |
+
},
|
| 906 |
+
"peerDependencies": {
|
| 907 |
+
"@rolldown/plugin-babel": "^0.1.7 || ^0.2.0",
|
| 908 |
+
"babel-plugin-react-compiler": "^1.0.0",
|
| 909 |
+
"vite": "^8.0.0"
|
| 910 |
+
},
|
| 911 |
+
"peerDependenciesMeta": {
|
| 912 |
+
"@rolldown/plugin-babel": {
|
| 913 |
+
"optional": true
|
| 914 |
+
},
|
| 915 |
+
"babel-plugin-react-compiler": {
|
| 916 |
+
"optional": true
|
| 917 |
+
}
|
| 918 |
+
}
|
| 919 |
+
},
|
| 920 |
+
"node_modules/acorn": {
|
| 921 |
+
"version": "8.16.0",
|
| 922 |
+
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz",
|
| 923 |
+
"integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==",
|
| 924 |
+
"dev": true,
|
| 925 |
+
"license": "MIT",
|
| 926 |
+
"bin": {
|
| 927 |
+
"acorn": "bin/acorn"
|
| 928 |
+
},
|
| 929 |
+
"engines": {
|
| 930 |
+
"node": ">=0.4.0"
|
| 931 |
+
}
|
| 932 |
+
},
|
| 933 |
+
"node_modules/acorn-jsx": {
|
| 934 |
+
"version": "5.3.2",
|
| 935 |
+
"resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
|
| 936 |
+
"integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
|
| 937 |
+
"dev": true,
|
| 938 |
+
"license": "MIT",
|
| 939 |
+
"peerDependencies": {
|
| 940 |
+
"acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
|
| 941 |
+
}
|
| 942 |
+
},
|
| 943 |
+
"node_modules/ajv": {
|
| 944 |
+
"version": "6.14.0",
|
| 945 |
+
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz",
|
| 946 |
+
"integrity": "sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw==",
|
| 947 |
+
"dev": true,
|
| 948 |
+
"license": "MIT",
|
| 949 |
+
"dependencies": {
|
| 950 |
+
"fast-deep-equal": "^3.1.1",
|
| 951 |
+
"fast-json-stable-stringify": "^2.0.0",
|
| 952 |
+
"json-schema-traverse": "^0.4.1",
|
| 953 |
+
"uri-js": "^4.2.2"
|
| 954 |
+
},
|
| 955 |
+
"funding": {
|
| 956 |
+
"type": "github",
|
| 957 |
+
"url": "https://github.com/sponsors/epoberezkin"
|
| 958 |
+
}
|
| 959 |
+
},
|
| 960 |
+
"node_modules/ansi-styles": {
|
| 961 |
+
"version": "4.3.0",
|
| 962 |
+
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
| 963 |
+
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
|
| 964 |
+
"dev": true,
|
| 965 |
+
"license": "MIT",
|
| 966 |
+
"dependencies": {
|
| 967 |
+
"color-convert": "^2.0.1"
|
| 968 |
+
},
|
| 969 |
+
"engines": {
|
| 970 |
+
"node": ">=8"
|
| 971 |
+
},
|
| 972 |
+
"funding": {
|
| 973 |
+
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
| 974 |
+
}
|
| 975 |
+
},
|
| 976 |
+
"node_modules/argparse": {
|
| 977 |
+
"version": "2.0.1",
|
| 978 |
+
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
|
| 979 |
+
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
|
| 980 |
+
"dev": true,
|
| 981 |
+
"license": "Python-2.0"
|
| 982 |
+
},
|
| 983 |
+
"node_modules/balanced-match": {
|
| 984 |
+
"version": "1.0.2",
|
| 985 |
+
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
|
| 986 |
+
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
|
| 987 |
+
"dev": true,
|
| 988 |
+
"license": "MIT"
|
| 989 |
+
},
|
| 990 |
+
"node_modules/baseline-browser-mapping": {
|
| 991 |
+
"version": "2.10.11",
|
| 992 |
+
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.11.tgz",
|
| 993 |
+
"integrity": "sha512-DAKrHphkJyiGuau/cFieRYhcTFeK/lBuD++C7cZ6KZHbMhBrisoi+EvhQ5RZrIfV5qwsW8kgQ07JIC+MDJRAhg==",
|
| 994 |
+
"dev": true,
|
| 995 |
+
"license": "Apache-2.0",
|
| 996 |
+
"bin": {
|
| 997 |
+
"baseline-browser-mapping": "dist/cli.cjs"
|
| 998 |
+
},
|
| 999 |
+
"engines": {
|
| 1000 |
+
"node": ">=6.0.0"
|
| 1001 |
+
}
|
| 1002 |
+
},
|
| 1003 |
+
"node_modules/brace-expansion": {
|
| 1004 |
+
"version": "1.1.13",
|
| 1005 |
+
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.13.tgz",
|
| 1006 |
+
"integrity": "sha512-9ZLprWS6EENmhEOpjCYW2c8VkmOvckIJZfkr7rBW6dObmfgJ/L1GpSYW5Hpo9lDz4D1+n0Ckz8rU7FwHDQiG/w==",
|
| 1007 |
+
"dev": true,
|
| 1008 |
+
"license": "MIT",
|
| 1009 |
+
"dependencies": {
|
| 1010 |
+
"balanced-match": "^1.0.0",
|
| 1011 |
+
"concat-map": "0.0.1"
|
| 1012 |
+
}
|
| 1013 |
+
},
|
| 1014 |
+
"node_modules/browserslist": {
|
| 1015 |
+
"version": "4.28.1",
|
| 1016 |
+
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz",
|
| 1017 |
+
"integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==",
|
| 1018 |
+
"dev": true,
|
| 1019 |
+
"funding": [
|
| 1020 |
+
{
|
| 1021 |
+
"type": "opencollective",
|
| 1022 |
+
"url": "https://opencollective.com/browserslist"
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"type": "tidelift",
|
| 1026 |
+
"url": "https://tidelift.com/funding/github/npm/browserslist"
|
| 1027 |
+
},
|
| 1028 |
+
{
|
| 1029 |
+
"type": "github",
|
| 1030 |
+
"url": "https://github.com/sponsors/ai"
|
| 1031 |
+
}
|
| 1032 |
+
],
|
| 1033 |
+
"license": "MIT",
|
| 1034 |
+
"dependencies": {
|
| 1035 |
+
"baseline-browser-mapping": "^2.9.0",
|
| 1036 |
+
"caniuse-lite": "^1.0.30001759",
|
| 1037 |
+
"electron-to-chromium": "^1.5.263",
|
| 1038 |
+
"node-releases": "^2.0.27",
|
| 1039 |
+
"update-browserslist-db": "^1.2.0"
|
| 1040 |
+
},
|
| 1041 |
+
"bin": {
|
| 1042 |
+
"browserslist": "cli.js"
|
| 1043 |
+
},
|
| 1044 |
+
"engines": {
|
| 1045 |
+
"node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
|
| 1046 |
+
}
|
| 1047 |
+
},
|
| 1048 |
+
"node_modules/callsites": {
|
| 1049 |
+
"version": "3.1.0",
|
| 1050 |
+
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
|
| 1051 |
+
"integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
|
| 1052 |
+
"dev": true,
|
| 1053 |
+
"license": "MIT",
|
| 1054 |
+
"engines": {
|
| 1055 |
+
"node": ">=6"
|
| 1056 |
+
}
|
| 1057 |
+
},
|
| 1058 |
+
"node_modules/caniuse-lite": {
|
| 1059 |
+
"version": "1.0.30001781",
|
| 1060 |
+
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001781.tgz",
|
| 1061 |
+
"integrity": "sha512-RdwNCyMsNBftLjW6w01z8bKEvT6e/5tpPVEgtn22TiLGlstHOVecsX2KHFkD5e/vRnIE4EGzpuIODb3mtswtkw==",
|
| 1062 |
+
"dev": true,
|
| 1063 |
+
"funding": [
|
| 1064 |
+
{
|
| 1065 |
+
"type": "opencollective",
|
| 1066 |
+
"url": "https://opencollective.com/browserslist"
|
| 1067 |
+
},
|
| 1068 |
+
{
|
| 1069 |
+
"type": "tidelift",
|
| 1070 |
+
"url": "https://tidelift.com/funding/github/npm/caniuse-lite"
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"type": "github",
|
| 1074 |
+
"url": "https://github.com/sponsors/ai"
|
| 1075 |
+
}
|
| 1076 |
+
],
|
| 1077 |
+
"license": "CC-BY-4.0"
|
| 1078 |
+
},
|
| 1079 |
+
"node_modules/chalk": {
|
| 1080 |
+
"version": "4.1.2",
|
| 1081 |
+
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
|
| 1082 |
+
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
|
| 1083 |
+
"dev": true,
|
| 1084 |
+
"license": "MIT",
|
| 1085 |
+
"dependencies": {
|
| 1086 |
+
"ansi-styles": "^4.1.0",
|
| 1087 |
+
"supports-color": "^7.1.0"
|
| 1088 |
+
},
|
| 1089 |
+
"engines": {
|
| 1090 |
+
"node": ">=10"
|
| 1091 |
+
},
|
| 1092 |
+
"funding": {
|
| 1093 |
+
"url": "https://github.com/chalk/chalk?sponsor=1"
|
| 1094 |
+
}
|
| 1095 |
+
},
|
| 1096 |
+
"node_modules/color-convert": {
|
| 1097 |
+
"version": "2.0.1",
|
| 1098 |
+
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
| 1099 |
+
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
|
| 1100 |
+
"dev": true,
|
| 1101 |
+
"license": "MIT",
|
| 1102 |
+
"dependencies": {
|
| 1103 |
+
"color-name": "~1.1.4"
|
| 1104 |
+
},
|
| 1105 |
+
"engines": {
|
| 1106 |
+
"node": ">=7.0.0"
|
| 1107 |
+
}
|
| 1108 |
+
},
|
| 1109 |
+
"node_modules/color-name": {
|
| 1110 |
+
"version": "1.1.4",
|
| 1111 |
+
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
| 1112 |
+
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
|
| 1113 |
+
"dev": true,
|
| 1114 |
+
"license": "MIT"
|
| 1115 |
+
},
|
| 1116 |
+
"node_modules/concat-map": {
|
| 1117 |
+
"version": "0.0.1",
|
| 1118 |
+
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
| 1119 |
+
"integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
|
| 1120 |
+
"dev": true,
|
| 1121 |
+
"license": "MIT"
|
| 1122 |
+
},
|
| 1123 |
+
"node_modules/convert-source-map": {
|
| 1124 |
+
"version": "2.0.0",
|
| 1125 |
+
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
|
| 1126 |
+
"integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
|
| 1127 |
+
"dev": true,
|
| 1128 |
+
"license": "MIT"
|
| 1129 |
+
},
|
| 1130 |
+
"node_modules/cookie": {
|
| 1131 |
+
"version": "1.1.1",
|
| 1132 |
+
"resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz",
|
| 1133 |
+
"integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==",
|
| 1134 |
+
"license": "MIT",
|
| 1135 |
+
"engines": {
|
| 1136 |
+
"node": ">=18"
|
| 1137 |
+
},
|
| 1138 |
+
"funding": {
|
| 1139 |
+
"type": "opencollective",
|
| 1140 |
+
"url": "https://opencollective.com/express"
|
| 1141 |
+
}
|
| 1142 |
+
},
|
| 1143 |
+
"node_modules/cross-spawn": {
|
| 1144 |
+
"version": "7.0.6",
|
| 1145 |
+
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
|
| 1146 |
+
"integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
|
| 1147 |
+
"dev": true,
|
| 1148 |
+
"license": "MIT",
|
| 1149 |
+
"dependencies": {
|
| 1150 |
+
"path-key": "^3.1.0",
|
| 1151 |
+
"shebang-command": "^2.0.0",
|
| 1152 |
+
"which": "^2.0.1"
|
| 1153 |
+
},
|
| 1154 |
+
"engines": {
|
| 1155 |
+
"node": ">= 8"
|
| 1156 |
+
}
|
| 1157 |
+
},
|
| 1158 |
+
"node_modules/csstype": {
|
| 1159 |
+
"version": "3.2.3",
|
| 1160 |
+
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
|
| 1161 |
+
"integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
|
| 1162 |
+
"dev": true,
|
| 1163 |
+
"license": "MIT"
|
| 1164 |
+
},
|
| 1165 |
+
"node_modules/debug": {
|
| 1166 |
+
"version": "4.4.3",
|
| 1167 |
+
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
|
| 1168 |
+
"integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
|
| 1169 |
+
"dev": true,
|
| 1170 |
+
"license": "MIT",
|
| 1171 |
+
"dependencies": {
|
| 1172 |
+
"ms": "^2.1.3"
|
| 1173 |
+
},
|
| 1174 |
+
"engines": {
|
| 1175 |
+
"node": ">=6.0"
|
| 1176 |
+
},
|
| 1177 |
+
"peerDependenciesMeta": {
|
| 1178 |
+
"supports-color": {
|
| 1179 |
+
"optional": true
|
| 1180 |
+
}
|
| 1181 |
+
}
|
| 1182 |
+
},
|
| 1183 |
+
"node_modules/deep-is": {
|
| 1184 |
+
"version": "0.1.4",
|
| 1185 |
+
"resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
|
| 1186 |
+
"integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
|
| 1187 |
+
"dev": true,
|
| 1188 |
+
"license": "MIT"
|
| 1189 |
+
},
|
| 1190 |
+
"node_modules/detect-libc": {
|
| 1191 |
+
"version": "2.1.2",
|
| 1192 |
+
"resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
|
| 1193 |
+
"integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
|
| 1194 |
+
"dev": true,
|
| 1195 |
+
"license": "Apache-2.0",
|
| 1196 |
+
"engines": {
|
| 1197 |
+
"node": ">=8"
|
| 1198 |
+
}
|
| 1199 |
+
},
|
| 1200 |
+
"node_modules/electron-to-chromium": {
|
| 1201 |
+
"version": "1.5.328",
|
| 1202 |
+
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.328.tgz",
|
| 1203 |
+
"integrity": "sha512-QNQ5l45DzYytThO21403XN3FvK0hOkWDG8viNf6jqS42msJ8I4tGDSpBCgvDRRPnkffafiwAym2X2eHeGD2V0w==",
|
| 1204 |
+
"dev": true,
|
| 1205 |
+
"license": "ISC"
|
| 1206 |
+
},
|
| 1207 |
+
"node_modules/escalade": {
|
| 1208 |
+
"version": "3.2.0",
|
| 1209 |
+
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
|
| 1210 |
+
"integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
|
| 1211 |
+
"dev": true,
|
| 1212 |
+
"license": "MIT",
|
| 1213 |
+
"engines": {
|
| 1214 |
+
"node": ">=6"
|
| 1215 |
+
}
|
| 1216 |
+
},
|
| 1217 |
+
"node_modules/escape-string-regexp": {
|
| 1218 |
+
"version": "4.0.0",
|
| 1219 |
+
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
|
| 1220 |
+
"integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
|
| 1221 |
+
"dev": true,
|
| 1222 |
+
"license": "MIT",
|
| 1223 |
+
"engines": {
|
| 1224 |
+
"node": ">=10"
|
| 1225 |
+
},
|
| 1226 |
+
"funding": {
|
| 1227 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 1228 |
+
}
|
| 1229 |
+
},
|
| 1230 |
+
"node_modules/eslint": {
|
| 1231 |
+
"version": "9.39.4",
|
| 1232 |
+
"resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.4.tgz",
|
| 1233 |
+
"integrity": "sha512-XoMjdBOwe/esVgEvLmNsD3IRHkm7fbKIUGvrleloJXUZgDHig2IPWNniv+GwjyJXzuNqVjlr5+4yVUZjycJwfQ==",
|
| 1234 |
+
"dev": true,
|
| 1235 |
+
"license": "MIT",
|
| 1236 |
+
"dependencies": {
|
| 1237 |
+
"@eslint-community/eslint-utils": "^4.8.0",
|
| 1238 |
+
"@eslint-community/regexpp": "^4.12.1",
|
| 1239 |
+
"@eslint/config-array": "^0.21.2",
|
| 1240 |
+
"@eslint/config-helpers": "^0.4.2",
|
| 1241 |
+
"@eslint/core": "^0.17.0",
|
| 1242 |
+
"@eslint/eslintrc": "^3.3.5",
|
| 1243 |
+
"@eslint/js": "9.39.4",
|
| 1244 |
+
"@eslint/plugin-kit": "^0.4.1",
|
| 1245 |
+
"@humanfs/node": "^0.16.6",
|
| 1246 |
+
"@humanwhocodes/module-importer": "^1.0.1",
|
| 1247 |
+
"@humanwhocodes/retry": "^0.4.2",
|
| 1248 |
+
"@types/estree": "^1.0.6",
|
| 1249 |
+
"ajv": "^6.14.0",
|
| 1250 |
+
"chalk": "^4.0.0",
|
| 1251 |
+
"cross-spawn": "^7.0.6",
|
| 1252 |
+
"debug": "^4.3.2",
|
| 1253 |
+
"escape-string-regexp": "^4.0.0",
|
| 1254 |
+
"eslint-scope": "^8.4.0",
|
| 1255 |
+
"eslint-visitor-keys": "^4.2.1",
|
| 1256 |
+
"espree": "^10.4.0",
|
| 1257 |
+
"esquery": "^1.5.0",
|
| 1258 |
+
"esutils": "^2.0.2",
|
| 1259 |
+
"fast-deep-equal": "^3.1.3",
|
| 1260 |
+
"file-entry-cache": "^8.0.0",
|
| 1261 |
+
"find-up": "^5.0.0",
|
| 1262 |
+
"glob-parent": "^6.0.2",
|
| 1263 |
+
"ignore": "^5.2.0",
|
| 1264 |
+
"imurmurhash": "^0.1.4",
|
| 1265 |
+
"is-glob": "^4.0.0",
|
| 1266 |
+
"json-stable-stringify-without-jsonify": "^1.0.1",
|
| 1267 |
+
"lodash.merge": "^4.6.2",
|
| 1268 |
+
"minimatch": "^3.1.5",
|
| 1269 |
+
"natural-compare": "^1.4.0",
|
| 1270 |
+
"optionator": "^0.9.3"
|
| 1271 |
+
},
|
| 1272 |
+
"bin": {
|
| 1273 |
+
"eslint": "bin/eslint.js"
|
| 1274 |
+
},
|
| 1275 |
+
"engines": {
|
| 1276 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 1277 |
+
},
|
| 1278 |
+
"funding": {
|
| 1279 |
+
"url": "https://eslint.org/donate"
|
| 1280 |
+
},
|
| 1281 |
+
"peerDependencies": {
|
| 1282 |
+
"jiti": "*"
|
| 1283 |
+
},
|
| 1284 |
+
"peerDependenciesMeta": {
|
| 1285 |
+
"jiti": {
|
| 1286 |
+
"optional": true
|
| 1287 |
+
}
|
| 1288 |
+
}
|
| 1289 |
+
},
|
| 1290 |
+
"node_modules/eslint-plugin-react-hooks": {
|
| 1291 |
+
"version": "7.0.1",
|
| 1292 |
+
"resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.0.1.tgz",
|
| 1293 |
+
"integrity": "sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==",
|
| 1294 |
+
"dev": true,
|
| 1295 |
+
"license": "MIT",
|
| 1296 |
+
"dependencies": {
|
| 1297 |
+
"@babel/core": "^7.24.4",
|
| 1298 |
+
"@babel/parser": "^7.24.4",
|
| 1299 |
+
"hermes-parser": "^0.25.1",
|
| 1300 |
+
"zod": "^3.25.0 || ^4.0.0",
|
| 1301 |
+
"zod-validation-error": "^3.5.0 || ^4.0.0"
|
| 1302 |
+
},
|
| 1303 |
+
"engines": {
|
| 1304 |
+
"node": ">=18"
|
| 1305 |
+
},
|
| 1306 |
+
"peerDependencies": {
|
| 1307 |
+
"eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0"
|
| 1308 |
+
}
|
| 1309 |
+
},
|
| 1310 |
+
"node_modules/eslint-plugin-react-refresh": {
|
| 1311 |
+
"version": "0.5.2",
|
| 1312 |
+
"resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.5.2.tgz",
|
| 1313 |
+
"integrity": "sha512-hmgTH57GfzoTFjVN0yBwTggnsVUF2tcqi7RJZHqi9lIezSs4eFyAMktA68YD4r5kNw1mxyY4dmkyoFDb3FIqrA==",
|
| 1314 |
+
"dev": true,
|
| 1315 |
+
"license": "MIT",
|
| 1316 |
+
"peerDependencies": {
|
| 1317 |
+
"eslint": "^9 || ^10"
|
| 1318 |
+
}
|
| 1319 |
+
},
|
| 1320 |
+
"node_modules/eslint-scope": {
|
| 1321 |
+
"version": "8.4.0",
|
| 1322 |
+
"resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz",
|
| 1323 |
+
"integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==",
|
| 1324 |
+
"dev": true,
|
| 1325 |
+
"license": "BSD-2-Clause",
|
| 1326 |
+
"dependencies": {
|
| 1327 |
+
"esrecurse": "^4.3.0",
|
| 1328 |
+
"estraverse": "^5.2.0"
|
| 1329 |
+
},
|
| 1330 |
+
"engines": {
|
| 1331 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 1332 |
+
},
|
| 1333 |
+
"funding": {
|
| 1334 |
+
"url": "https://opencollective.com/eslint"
|
| 1335 |
+
}
|
| 1336 |
+
},
|
| 1337 |
+
"node_modules/eslint-visitor-keys": {
|
| 1338 |
+
"version": "4.2.1",
|
| 1339 |
+
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",
|
| 1340 |
+
"integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==",
|
| 1341 |
+
"dev": true,
|
| 1342 |
+
"license": "Apache-2.0",
|
| 1343 |
+
"engines": {
|
| 1344 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 1345 |
+
},
|
| 1346 |
+
"funding": {
|
| 1347 |
+
"url": "https://opencollective.com/eslint"
|
| 1348 |
+
}
|
| 1349 |
+
},
|
| 1350 |
+
"node_modules/espree": {
|
| 1351 |
+
"version": "10.4.0",
|
| 1352 |
+
"resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz",
|
| 1353 |
+
"integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==",
|
| 1354 |
+
"dev": true,
|
| 1355 |
+
"license": "BSD-2-Clause",
|
| 1356 |
+
"dependencies": {
|
| 1357 |
+
"acorn": "^8.15.0",
|
| 1358 |
+
"acorn-jsx": "^5.3.2",
|
| 1359 |
+
"eslint-visitor-keys": "^4.2.1"
|
| 1360 |
+
},
|
| 1361 |
+
"engines": {
|
| 1362 |
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
| 1363 |
+
},
|
| 1364 |
+
"funding": {
|
| 1365 |
+
"url": "https://opencollective.com/eslint"
|
| 1366 |
+
}
|
| 1367 |
+
},
|
| 1368 |
+
"node_modules/esquery": {
|
| 1369 |
+
"version": "1.7.0",
|
| 1370 |
+
"resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz",
|
| 1371 |
+
"integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==",
|
| 1372 |
+
"dev": true,
|
| 1373 |
+
"license": "BSD-3-Clause",
|
| 1374 |
+
"dependencies": {
|
| 1375 |
+
"estraverse": "^5.1.0"
|
| 1376 |
+
},
|
| 1377 |
+
"engines": {
|
| 1378 |
+
"node": ">=0.10"
|
| 1379 |
+
}
|
| 1380 |
+
},
|
| 1381 |
+
"node_modules/esrecurse": {
|
| 1382 |
+
"version": "4.3.0",
|
| 1383 |
+
"resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
|
| 1384 |
+
"integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
|
| 1385 |
+
"dev": true,
|
| 1386 |
+
"license": "BSD-2-Clause",
|
| 1387 |
+
"dependencies": {
|
| 1388 |
+
"estraverse": "^5.2.0"
|
| 1389 |
+
},
|
| 1390 |
+
"engines": {
|
| 1391 |
+
"node": ">=4.0"
|
| 1392 |
+
}
|
| 1393 |
+
},
|
| 1394 |
+
"node_modules/estraverse": {
|
| 1395 |
+
"version": "5.3.0",
|
| 1396 |
+
"resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
|
| 1397 |
+
"integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
|
| 1398 |
+
"dev": true,
|
| 1399 |
+
"license": "BSD-2-Clause",
|
| 1400 |
+
"engines": {
|
| 1401 |
+
"node": ">=4.0"
|
| 1402 |
+
}
|
| 1403 |
+
},
|
| 1404 |
+
"node_modules/esutils": {
|
| 1405 |
+
"version": "2.0.3",
|
| 1406 |
+
"resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
|
| 1407 |
+
"integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
|
| 1408 |
+
"dev": true,
|
| 1409 |
+
"license": "BSD-2-Clause",
|
| 1410 |
+
"engines": {
|
| 1411 |
+
"node": ">=0.10.0"
|
| 1412 |
+
}
|
| 1413 |
+
},
|
| 1414 |
+
"node_modules/fast-deep-equal": {
|
| 1415 |
+
"version": "3.1.3",
|
| 1416 |
+
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
|
| 1417 |
+
"integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
|
| 1418 |
+
"dev": true,
|
| 1419 |
+
"license": "MIT"
|
| 1420 |
+
},
|
| 1421 |
+
"node_modules/fast-json-stable-stringify": {
|
| 1422 |
+
"version": "2.1.0",
|
| 1423 |
+
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
|
| 1424 |
+
"integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
|
| 1425 |
+
"dev": true,
|
| 1426 |
+
"license": "MIT"
|
| 1427 |
+
},
|
| 1428 |
+
"node_modules/fast-levenshtein": {
|
| 1429 |
+
"version": "2.0.6",
|
| 1430 |
+
"resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
|
| 1431 |
+
"integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
|
| 1432 |
+
"dev": true,
|
| 1433 |
+
"license": "MIT"
|
| 1434 |
+
},
|
| 1435 |
+
"node_modules/fdir": {
|
| 1436 |
+
"version": "6.5.0",
|
| 1437 |
+
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
|
| 1438 |
+
"integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
|
| 1439 |
+
"dev": true,
|
| 1440 |
+
"license": "MIT",
|
| 1441 |
+
"engines": {
|
| 1442 |
+
"node": ">=12.0.0"
|
| 1443 |
+
},
|
| 1444 |
+
"peerDependencies": {
|
| 1445 |
+
"picomatch": "^3 || ^4"
|
| 1446 |
+
},
|
| 1447 |
+
"peerDependenciesMeta": {
|
| 1448 |
+
"picomatch": {
|
| 1449 |
+
"optional": true
|
| 1450 |
+
}
|
| 1451 |
+
}
|
| 1452 |
+
},
|
| 1453 |
+
"node_modules/file-entry-cache": {
|
| 1454 |
+
"version": "8.0.0",
|
| 1455 |
+
"resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",
|
| 1456 |
+
"integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==",
|
| 1457 |
+
"dev": true,
|
| 1458 |
+
"license": "MIT",
|
| 1459 |
+
"dependencies": {
|
| 1460 |
+
"flat-cache": "^4.0.0"
|
| 1461 |
+
},
|
| 1462 |
+
"engines": {
|
| 1463 |
+
"node": ">=16.0.0"
|
| 1464 |
+
}
|
| 1465 |
+
},
|
| 1466 |
+
"node_modules/find-up": {
|
| 1467 |
+
"version": "5.0.0",
|
| 1468 |
+
"resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
|
| 1469 |
+
"integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
|
| 1470 |
+
"dev": true,
|
| 1471 |
+
"license": "MIT",
|
| 1472 |
+
"dependencies": {
|
| 1473 |
+
"locate-path": "^6.0.0",
|
| 1474 |
+
"path-exists": "^4.0.0"
|
| 1475 |
+
},
|
| 1476 |
+
"engines": {
|
| 1477 |
+
"node": ">=10"
|
| 1478 |
+
},
|
| 1479 |
+
"funding": {
|
| 1480 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 1481 |
+
}
|
| 1482 |
+
},
|
| 1483 |
+
"node_modules/flat-cache": {
|
| 1484 |
+
"version": "4.0.1",
|
| 1485 |
+
"resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz",
|
| 1486 |
+
"integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==",
|
| 1487 |
+
"dev": true,
|
| 1488 |
+
"license": "MIT",
|
| 1489 |
+
"dependencies": {
|
| 1490 |
+
"flatted": "^3.2.9",
|
| 1491 |
+
"keyv": "^4.5.4"
|
| 1492 |
+
},
|
| 1493 |
+
"engines": {
|
| 1494 |
+
"node": ">=16"
|
| 1495 |
+
}
|
| 1496 |
+
},
|
| 1497 |
+
"node_modules/flatted": {
|
| 1498 |
+
"version": "3.4.2",
|
| 1499 |
+
"resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz",
|
| 1500 |
+
"integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==",
|
| 1501 |
+
"dev": true,
|
| 1502 |
+
"license": "ISC"
|
| 1503 |
+
},
|
| 1504 |
+
"node_modules/fsevents": {
|
| 1505 |
+
"version": "2.3.3",
|
| 1506 |
+
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
|
| 1507 |
+
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
|
| 1508 |
+
"dev": true,
|
| 1509 |
+
"hasInstallScript": true,
|
| 1510 |
+
"license": "MIT",
|
| 1511 |
+
"optional": true,
|
| 1512 |
+
"os": [
|
| 1513 |
+
"darwin"
|
| 1514 |
+
],
|
| 1515 |
+
"engines": {
|
| 1516 |
+
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
|
| 1517 |
+
}
|
| 1518 |
+
},
|
| 1519 |
+
"node_modules/gensync": {
|
| 1520 |
+
"version": "1.0.0-beta.2",
|
| 1521 |
+
"resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
|
| 1522 |
+
"integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
|
| 1523 |
+
"dev": true,
|
| 1524 |
+
"license": "MIT",
|
| 1525 |
+
"engines": {
|
| 1526 |
+
"node": ">=6.9.0"
|
| 1527 |
+
}
|
| 1528 |
+
},
|
| 1529 |
+
"node_modules/glob-parent": {
|
| 1530 |
+
"version": "6.0.2",
|
| 1531 |
+
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
|
| 1532 |
+
"integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
|
| 1533 |
+
"dev": true,
|
| 1534 |
+
"license": "ISC",
|
| 1535 |
+
"dependencies": {
|
| 1536 |
+
"is-glob": "^4.0.3"
|
| 1537 |
+
},
|
| 1538 |
+
"engines": {
|
| 1539 |
+
"node": ">=10.13.0"
|
| 1540 |
+
}
|
| 1541 |
+
},
|
| 1542 |
+
"node_modules/globals": {
|
| 1543 |
+
"version": "17.4.0",
|
| 1544 |
+
"resolved": "https://registry.npmjs.org/globals/-/globals-17.4.0.tgz",
|
| 1545 |
+
"integrity": "sha512-hjrNztw/VajQwOLsMNT1cbJiH2muO3OROCHnbehc8eY5JyD2gqz4AcMHPqgaOR59DjgUjYAYLeH699g/eWi2jw==",
|
| 1546 |
+
"dev": true,
|
| 1547 |
+
"license": "MIT",
|
| 1548 |
+
"engines": {
|
| 1549 |
+
"node": ">=18"
|
| 1550 |
+
},
|
| 1551 |
+
"funding": {
|
| 1552 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 1553 |
+
}
|
| 1554 |
+
},
|
| 1555 |
+
"node_modules/has-flag": {
|
| 1556 |
+
"version": "4.0.0",
|
| 1557 |
+
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
|
| 1558 |
+
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
| 1559 |
+
"dev": true,
|
| 1560 |
+
"license": "MIT",
|
| 1561 |
+
"engines": {
|
| 1562 |
+
"node": ">=8"
|
| 1563 |
+
}
|
| 1564 |
+
},
|
| 1565 |
+
"node_modules/hermes-estree": {
|
| 1566 |
+
"version": "0.25.1",
|
| 1567 |
+
"resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz",
|
| 1568 |
+
"integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==",
|
| 1569 |
+
"dev": true,
|
| 1570 |
+
"license": "MIT"
|
| 1571 |
+
},
|
| 1572 |
+
"node_modules/hermes-parser": {
|
| 1573 |
+
"version": "0.25.1",
|
| 1574 |
+
"resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz",
|
| 1575 |
+
"integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==",
|
| 1576 |
+
"dev": true,
|
| 1577 |
+
"license": "MIT",
|
| 1578 |
+
"dependencies": {
|
| 1579 |
+
"hermes-estree": "0.25.1"
|
| 1580 |
+
}
|
| 1581 |
+
},
|
| 1582 |
+
"node_modules/ignore": {
|
| 1583 |
+
"version": "5.3.2",
|
| 1584 |
+
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
|
| 1585 |
+
"integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
|
| 1586 |
+
"dev": true,
|
| 1587 |
+
"license": "MIT",
|
| 1588 |
+
"engines": {
|
| 1589 |
+
"node": ">= 4"
|
| 1590 |
+
}
|
| 1591 |
+
},
|
| 1592 |
+
"node_modules/import-fresh": {
|
| 1593 |
+
"version": "3.3.1",
|
| 1594 |
+
"resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",
|
| 1595 |
+
"integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",
|
| 1596 |
+
"dev": true,
|
| 1597 |
+
"license": "MIT",
|
| 1598 |
+
"dependencies": {
|
| 1599 |
+
"parent-module": "^1.0.0",
|
| 1600 |
+
"resolve-from": "^4.0.0"
|
| 1601 |
+
},
|
| 1602 |
+
"engines": {
|
| 1603 |
+
"node": ">=6"
|
| 1604 |
+
},
|
| 1605 |
+
"funding": {
|
| 1606 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 1607 |
+
}
|
| 1608 |
+
},
|
| 1609 |
+
"node_modules/imurmurhash": {
|
| 1610 |
+
"version": "0.1.4",
|
| 1611 |
+
"resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
|
| 1612 |
+
"integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
|
| 1613 |
+
"dev": true,
|
| 1614 |
+
"license": "MIT",
|
| 1615 |
+
"engines": {
|
| 1616 |
+
"node": ">=0.8.19"
|
| 1617 |
+
}
|
| 1618 |
+
},
|
| 1619 |
+
"node_modules/is-extglob": {
|
| 1620 |
+
"version": "2.1.1",
|
| 1621 |
+
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
|
| 1622 |
+
"integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
|
| 1623 |
+
"dev": true,
|
| 1624 |
+
"license": "MIT",
|
| 1625 |
+
"engines": {
|
| 1626 |
+
"node": ">=0.10.0"
|
| 1627 |
+
}
|
| 1628 |
+
},
|
| 1629 |
+
"node_modules/is-glob": {
|
| 1630 |
+
"version": "4.0.3",
|
| 1631 |
+
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
|
| 1632 |
+
"integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
|
| 1633 |
+
"dev": true,
|
| 1634 |
+
"license": "MIT",
|
| 1635 |
+
"dependencies": {
|
| 1636 |
+
"is-extglob": "^2.1.1"
|
| 1637 |
+
},
|
| 1638 |
+
"engines": {
|
| 1639 |
+
"node": ">=0.10.0"
|
| 1640 |
+
}
|
| 1641 |
+
},
|
| 1642 |
+
"node_modules/isexe": {
|
| 1643 |
+
"version": "2.0.0",
|
| 1644 |
+
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
|
| 1645 |
+
"integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
|
| 1646 |
+
"dev": true,
|
| 1647 |
+
"license": "ISC"
|
| 1648 |
+
},
|
| 1649 |
+
"node_modules/js-tokens": {
|
| 1650 |
+
"version": "4.0.0",
|
| 1651 |
+
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
| 1652 |
+
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
|
| 1653 |
+
"dev": true,
|
| 1654 |
+
"license": "MIT"
|
| 1655 |
+
},
|
| 1656 |
+
"node_modules/js-yaml": {
|
| 1657 |
+
"version": "4.1.1",
|
| 1658 |
+
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",
|
| 1659 |
+
"integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",
|
| 1660 |
+
"dev": true,
|
| 1661 |
+
"license": "MIT",
|
| 1662 |
+
"dependencies": {
|
| 1663 |
+
"argparse": "^2.0.1"
|
| 1664 |
+
},
|
| 1665 |
+
"bin": {
|
| 1666 |
+
"js-yaml": "bin/js-yaml.js"
|
| 1667 |
+
}
|
| 1668 |
+
},
|
| 1669 |
+
"node_modules/jsesc": {
|
| 1670 |
+
"version": "3.1.0",
|
| 1671 |
+
"resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
|
| 1672 |
+
"integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
|
| 1673 |
+
"dev": true,
|
| 1674 |
+
"license": "MIT",
|
| 1675 |
+
"bin": {
|
| 1676 |
+
"jsesc": "bin/jsesc"
|
| 1677 |
+
},
|
| 1678 |
+
"engines": {
|
| 1679 |
+
"node": ">=6"
|
| 1680 |
+
}
|
| 1681 |
+
},
|
| 1682 |
+
"node_modules/json-buffer": {
|
| 1683 |
+
"version": "3.0.1",
|
| 1684 |
+
"resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
|
| 1685 |
+
"integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
|
| 1686 |
+
"dev": true,
|
| 1687 |
+
"license": "MIT"
|
| 1688 |
+
},
|
| 1689 |
+
"node_modules/json-schema-traverse": {
|
| 1690 |
+
"version": "0.4.1",
|
| 1691 |
+
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
|
| 1692 |
+
"integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
|
| 1693 |
+
"dev": true,
|
| 1694 |
+
"license": "MIT"
|
| 1695 |
+
},
|
| 1696 |
+
"node_modules/json-stable-stringify-without-jsonify": {
|
| 1697 |
+
"version": "1.0.1",
|
| 1698 |
+
"resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
|
| 1699 |
+
"integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
|
| 1700 |
+
"dev": true,
|
| 1701 |
+
"license": "MIT"
|
| 1702 |
+
},
|
| 1703 |
+
"node_modules/json5": {
|
| 1704 |
+
"version": "2.2.3",
|
| 1705 |
+
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
|
| 1706 |
+
"integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
|
| 1707 |
+
"dev": true,
|
| 1708 |
+
"license": "MIT",
|
| 1709 |
+
"bin": {
|
| 1710 |
+
"json5": "lib/cli.js"
|
| 1711 |
+
},
|
| 1712 |
+
"engines": {
|
| 1713 |
+
"node": ">=6"
|
| 1714 |
+
}
|
| 1715 |
+
},
|
| 1716 |
+
"node_modules/keyv": {
|
| 1717 |
+
"version": "4.5.4",
|
| 1718 |
+
"resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",
|
| 1719 |
+
"integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",
|
| 1720 |
+
"dev": true,
|
| 1721 |
+
"license": "MIT",
|
| 1722 |
+
"dependencies": {
|
| 1723 |
+
"json-buffer": "3.0.1"
|
| 1724 |
+
}
|
| 1725 |
+
},
|
| 1726 |
+
"node_modules/levn": {
|
| 1727 |
+
"version": "0.4.1",
|
| 1728 |
+
"resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
|
| 1729 |
+
"integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
|
| 1730 |
+
"dev": true,
|
| 1731 |
+
"license": "MIT",
|
| 1732 |
+
"dependencies": {
|
| 1733 |
+
"prelude-ls": "^1.2.1",
|
| 1734 |
+
"type-check": "~0.4.0"
|
| 1735 |
+
},
|
| 1736 |
+
"engines": {
|
| 1737 |
+
"node": ">= 0.8.0"
|
| 1738 |
+
}
|
| 1739 |
+
},
|
| 1740 |
+
"node_modules/lightningcss": {
|
| 1741 |
+
"version": "1.32.0",
|
| 1742 |
+
"resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz",
|
| 1743 |
+
"integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==",
|
| 1744 |
+
"dev": true,
|
| 1745 |
+
"license": "MPL-2.0",
|
| 1746 |
+
"dependencies": {
|
| 1747 |
+
"detect-libc": "^2.0.3"
|
| 1748 |
+
},
|
| 1749 |
+
"engines": {
|
| 1750 |
+
"node": ">= 12.0.0"
|
| 1751 |
+
},
|
| 1752 |
+
"funding": {
|
| 1753 |
+
"type": "opencollective",
|
| 1754 |
+
"url": "https://opencollective.com/parcel"
|
| 1755 |
+
},
|
| 1756 |
+
"optionalDependencies": {
|
| 1757 |
+
"lightningcss-android-arm64": "1.32.0",
|
| 1758 |
+
"lightningcss-darwin-arm64": "1.32.0",
|
| 1759 |
+
"lightningcss-darwin-x64": "1.32.0",
|
| 1760 |
+
"lightningcss-freebsd-x64": "1.32.0",
|
| 1761 |
+
"lightningcss-linux-arm-gnueabihf": "1.32.0",
|
| 1762 |
+
"lightningcss-linux-arm64-gnu": "1.32.0",
|
| 1763 |
+
"lightningcss-linux-arm64-musl": "1.32.0",
|
| 1764 |
+
"lightningcss-linux-x64-gnu": "1.32.0",
|
| 1765 |
+
"lightningcss-linux-x64-musl": "1.32.0",
|
| 1766 |
+
"lightningcss-win32-arm64-msvc": "1.32.0",
|
| 1767 |
+
"lightningcss-win32-x64-msvc": "1.32.0"
|
| 1768 |
+
}
|
| 1769 |
+
},
|
| 1770 |
+
"node_modules/lightningcss-android-arm64": {
|
| 1771 |
+
"version": "1.32.0",
|
| 1772 |
+
"resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz",
|
| 1773 |
+
"integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==",
|
| 1774 |
+
"cpu": [
|
| 1775 |
+
"arm64"
|
| 1776 |
+
],
|
| 1777 |
+
"dev": true,
|
| 1778 |
+
"license": "MPL-2.0",
|
| 1779 |
+
"optional": true,
|
| 1780 |
+
"os": [
|
| 1781 |
+
"android"
|
| 1782 |
+
],
|
| 1783 |
+
"engines": {
|
| 1784 |
+
"node": ">= 12.0.0"
|
| 1785 |
+
},
|
| 1786 |
+
"funding": {
|
| 1787 |
+
"type": "opencollective",
|
| 1788 |
+
"url": "https://opencollective.com/parcel"
|
| 1789 |
+
}
|
| 1790 |
+
},
|
| 1791 |
+
"node_modules/lightningcss-darwin-arm64": {
|
| 1792 |
+
"version": "1.32.0",
|
| 1793 |
+
"resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz",
|
| 1794 |
+
"integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==",
|
| 1795 |
+
"cpu": [
|
| 1796 |
+
"arm64"
|
| 1797 |
+
],
|
| 1798 |
+
"dev": true,
|
| 1799 |
+
"license": "MPL-2.0",
|
| 1800 |
+
"optional": true,
|
| 1801 |
+
"os": [
|
| 1802 |
+
"darwin"
|
| 1803 |
+
],
|
| 1804 |
+
"engines": {
|
| 1805 |
+
"node": ">= 12.0.0"
|
| 1806 |
+
},
|
| 1807 |
+
"funding": {
|
| 1808 |
+
"type": "opencollective",
|
| 1809 |
+
"url": "https://opencollective.com/parcel"
|
| 1810 |
+
}
|
| 1811 |
+
},
|
| 1812 |
+
"node_modules/lightningcss-darwin-x64": {
|
| 1813 |
+
"version": "1.32.0",
|
| 1814 |
+
"resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz",
|
| 1815 |
+
"integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==",
|
| 1816 |
+
"cpu": [
|
| 1817 |
+
"x64"
|
| 1818 |
+
],
|
| 1819 |
+
"dev": true,
|
| 1820 |
+
"license": "MPL-2.0",
|
| 1821 |
+
"optional": true,
|
| 1822 |
+
"os": [
|
| 1823 |
+
"darwin"
|
| 1824 |
+
],
|
| 1825 |
+
"engines": {
|
| 1826 |
+
"node": ">= 12.0.0"
|
| 1827 |
+
},
|
| 1828 |
+
"funding": {
|
| 1829 |
+
"type": "opencollective",
|
| 1830 |
+
"url": "https://opencollective.com/parcel"
|
| 1831 |
+
}
|
| 1832 |
+
},
|
| 1833 |
+
"node_modules/lightningcss-freebsd-x64": {
|
| 1834 |
+
"version": "1.32.0",
|
| 1835 |
+
"resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz",
|
| 1836 |
+
"integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==",
|
| 1837 |
+
"cpu": [
|
| 1838 |
+
"x64"
|
| 1839 |
+
],
|
| 1840 |
+
"dev": true,
|
| 1841 |
+
"license": "MPL-2.0",
|
| 1842 |
+
"optional": true,
|
| 1843 |
+
"os": [
|
| 1844 |
+
"freebsd"
|
| 1845 |
+
],
|
| 1846 |
+
"engines": {
|
| 1847 |
+
"node": ">= 12.0.0"
|
| 1848 |
+
},
|
| 1849 |
+
"funding": {
|
| 1850 |
+
"type": "opencollective",
|
| 1851 |
+
"url": "https://opencollective.com/parcel"
|
| 1852 |
+
}
|
| 1853 |
+
},
|
| 1854 |
+
"node_modules/lightningcss-linux-arm-gnueabihf": {
|
| 1855 |
+
"version": "1.32.0",
|
| 1856 |
+
"resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz",
|
| 1857 |
+
"integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==",
|
| 1858 |
+
"cpu": [
|
| 1859 |
+
"arm"
|
| 1860 |
+
],
|
| 1861 |
+
"dev": true,
|
| 1862 |
+
"license": "MPL-2.0",
|
| 1863 |
+
"optional": true,
|
| 1864 |
+
"os": [
|
| 1865 |
+
"linux"
|
| 1866 |
+
],
|
| 1867 |
+
"engines": {
|
| 1868 |
+
"node": ">= 12.0.0"
|
| 1869 |
+
},
|
| 1870 |
+
"funding": {
|
| 1871 |
+
"type": "opencollective",
|
| 1872 |
+
"url": "https://opencollective.com/parcel"
|
| 1873 |
+
}
|
| 1874 |
+
},
|
| 1875 |
+
"node_modules/lightningcss-linux-arm64-gnu": {
|
| 1876 |
+
"version": "1.32.0",
|
| 1877 |
+
"resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz",
|
| 1878 |
+
"integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==",
|
| 1879 |
+
"cpu": [
|
| 1880 |
+
"arm64"
|
| 1881 |
+
],
|
| 1882 |
+
"dev": true,
|
| 1883 |
+
"license": "MPL-2.0",
|
| 1884 |
+
"optional": true,
|
| 1885 |
+
"os": [
|
| 1886 |
+
"linux"
|
| 1887 |
+
],
|
| 1888 |
+
"engines": {
|
| 1889 |
+
"node": ">= 12.0.0"
|
| 1890 |
+
},
|
| 1891 |
+
"funding": {
|
| 1892 |
+
"type": "opencollective",
|
| 1893 |
+
"url": "https://opencollective.com/parcel"
|
| 1894 |
+
}
|
| 1895 |
+
},
|
| 1896 |
+
"node_modules/lightningcss-linux-arm64-musl": {
|
| 1897 |
+
"version": "1.32.0",
|
| 1898 |
+
"resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz",
|
| 1899 |
+
"integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==",
|
| 1900 |
+
"cpu": [
|
| 1901 |
+
"arm64"
|
| 1902 |
+
],
|
| 1903 |
+
"dev": true,
|
| 1904 |
+
"license": "MPL-2.0",
|
| 1905 |
+
"optional": true,
|
| 1906 |
+
"os": [
|
| 1907 |
+
"linux"
|
| 1908 |
+
],
|
| 1909 |
+
"engines": {
|
| 1910 |
+
"node": ">= 12.0.0"
|
| 1911 |
+
},
|
| 1912 |
+
"funding": {
|
| 1913 |
+
"type": "opencollective",
|
| 1914 |
+
"url": "https://opencollective.com/parcel"
|
| 1915 |
+
}
|
| 1916 |
+
},
|
| 1917 |
+
"node_modules/lightningcss-linux-x64-gnu": {
|
| 1918 |
+
"version": "1.32.0",
|
| 1919 |
+
"resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz",
|
| 1920 |
+
"integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==",
|
| 1921 |
+
"cpu": [
|
| 1922 |
+
"x64"
|
| 1923 |
+
],
|
| 1924 |
+
"dev": true,
|
| 1925 |
+
"license": "MPL-2.0",
|
| 1926 |
+
"optional": true,
|
| 1927 |
+
"os": [
|
| 1928 |
+
"linux"
|
| 1929 |
+
],
|
| 1930 |
+
"engines": {
|
| 1931 |
+
"node": ">= 12.0.0"
|
| 1932 |
+
},
|
| 1933 |
+
"funding": {
|
| 1934 |
+
"type": "opencollective",
|
| 1935 |
+
"url": "https://opencollective.com/parcel"
|
| 1936 |
+
}
|
| 1937 |
+
},
|
| 1938 |
+
"node_modules/lightningcss-linux-x64-musl": {
|
| 1939 |
+
"version": "1.32.0",
|
| 1940 |
+
"resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz",
|
| 1941 |
+
"integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==",
|
| 1942 |
+
"cpu": [
|
| 1943 |
+
"x64"
|
| 1944 |
+
],
|
| 1945 |
+
"dev": true,
|
| 1946 |
+
"license": "MPL-2.0",
|
| 1947 |
+
"optional": true,
|
| 1948 |
+
"os": [
|
| 1949 |
+
"linux"
|
| 1950 |
+
],
|
| 1951 |
+
"engines": {
|
| 1952 |
+
"node": ">= 12.0.0"
|
| 1953 |
+
},
|
| 1954 |
+
"funding": {
|
| 1955 |
+
"type": "opencollective",
|
| 1956 |
+
"url": "https://opencollective.com/parcel"
|
| 1957 |
+
}
|
| 1958 |
+
},
|
| 1959 |
+
"node_modules/lightningcss-win32-arm64-msvc": {
|
| 1960 |
+
"version": "1.32.0",
|
| 1961 |
+
"resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz",
|
| 1962 |
+
"integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==",
|
| 1963 |
+
"cpu": [
|
| 1964 |
+
"arm64"
|
| 1965 |
+
],
|
| 1966 |
+
"dev": true,
|
| 1967 |
+
"license": "MPL-2.0",
|
| 1968 |
+
"optional": true,
|
| 1969 |
+
"os": [
|
| 1970 |
+
"win32"
|
| 1971 |
+
],
|
| 1972 |
+
"engines": {
|
| 1973 |
+
"node": ">= 12.0.0"
|
| 1974 |
+
},
|
| 1975 |
+
"funding": {
|
| 1976 |
+
"type": "opencollective",
|
| 1977 |
+
"url": "https://opencollective.com/parcel"
|
| 1978 |
+
}
|
| 1979 |
+
},
|
| 1980 |
+
"node_modules/lightningcss-win32-x64-msvc": {
|
| 1981 |
+
"version": "1.32.0",
|
| 1982 |
+
"resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz",
|
| 1983 |
+
"integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==",
|
| 1984 |
+
"cpu": [
|
| 1985 |
+
"x64"
|
| 1986 |
+
],
|
| 1987 |
+
"dev": true,
|
| 1988 |
+
"license": "MPL-2.0",
|
| 1989 |
+
"optional": true,
|
| 1990 |
+
"os": [
|
| 1991 |
+
"win32"
|
| 1992 |
+
],
|
| 1993 |
+
"engines": {
|
| 1994 |
+
"node": ">= 12.0.0"
|
| 1995 |
+
},
|
| 1996 |
+
"funding": {
|
| 1997 |
+
"type": "opencollective",
|
| 1998 |
+
"url": "https://opencollective.com/parcel"
|
| 1999 |
+
}
|
| 2000 |
+
},
|
| 2001 |
+
"node_modules/locate-path": {
|
| 2002 |
+
"version": "6.0.0",
|
| 2003 |
+
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
|
| 2004 |
+
"integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
|
| 2005 |
+
"dev": true,
|
| 2006 |
+
"license": "MIT",
|
| 2007 |
+
"dependencies": {
|
| 2008 |
+
"p-locate": "^5.0.0"
|
| 2009 |
+
},
|
| 2010 |
+
"engines": {
|
| 2011 |
+
"node": ">=10"
|
| 2012 |
+
},
|
| 2013 |
+
"funding": {
|
| 2014 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 2015 |
+
}
|
| 2016 |
+
},
|
| 2017 |
+
"node_modules/lodash.merge": {
|
| 2018 |
+
"version": "4.6.2",
|
| 2019 |
+
"resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
|
| 2020 |
+
"integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
|
| 2021 |
+
"dev": true,
|
| 2022 |
+
"license": "MIT"
|
| 2023 |
+
},
|
| 2024 |
+
"node_modules/lru-cache": {
|
| 2025 |
+
"version": "5.1.1",
|
| 2026 |
+
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
|
| 2027 |
+
"integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
|
| 2028 |
+
"dev": true,
|
| 2029 |
+
"license": "ISC",
|
| 2030 |
+
"dependencies": {
|
| 2031 |
+
"yallist": "^3.0.2"
|
| 2032 |
+
}
|
| 2033 |
+
},
|
| 2034 |
+
"node_modules/minimatch": {
|
| 2035 |
+
"version": "3.1.5",
|
| 2036 |
+
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",
|
| 2037 |
+
"integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",
|
| 2038 |
+
"dev": true,
|
| 2039 |
+
"license": "ISC",
|
| 2040 |
+
"dependencies": {
|
| 2041 |
+
"brace-expansion": "^1.1.7"
|
| 2042 |
+
},
|
| 2043 |
+
"engines": {
|
| 2044 |
+
"node": "*"
|
| 2045 |
+
}
|
| 2046 |
+
},
|
| 2047 |
+
"node_modules/ms": {
|
| 2048 |
+
"version": "2.1.3",
|
| 2049 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
| 2050 |
+
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
| 2051 |
+
"dev": true,
|
| 2052 |
+
"license": "MIT"
|
| 2053 |
+
},
|
| 2054 |
+
"node_modules/nanoid": {
|
| 2055 |
+
"version": "3.3.11",
|
| 2056 |
+
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
|
| 2057 |
+
"integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
|
| 2058 |
+
"dev": true,
|
| 2059 |
+
"funding": [
|
| 2060 |
+
{
|
| 2061 |
+
"type": "github",
|
| 2062 |
+
"url": "https://github.com/sponsors/ai"
|
| 2063 |
+
}
|
| 2064 |
+
],
|
| 2065 |
+
"license": "MIT",
|
| 2066 |
+
"bin": {
|
| 2067 |
+
"nanoid": "bin/nanoid.cjs"
|
| 2068 |
+
},
|
| 2069 |
+
"engines": {
|
| 2070 |
+
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
|
| 2071 |
+
}
|
| 2072 |
+
},
|
| 2073 |
+
"node_modules/natural-compare": {
|
| 2074 |
+
"version": "1.4.0",
|
| 2075 |
+
"resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
|
| 2076 |
+
"integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
|
| 2077 |
+
"dev": true,
|
| 2078 |
+
"license": "MIT"
|
| 2079 |
+
},
|
| 2080 |
+
"node_modules/node-releases": {
|
| 2081 |
+
"version": "2.0.36",
|
| 2082 |
+
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.36.tgz",
|
| 2083 |
+
"integrity": "sha512-TdC8FSgHz8Mwtw9g5L4gR/Sh9XhSP/0DEkQxfEFXOpiul5IiHgHan2VhYYb6agDSfp4KuvltmGApc8HMgUrIkA==",
|
| 2084 |
+
"dev": true,
|
| 2085 |
+
"license": "MIT"
|
| 2086 |
+
},
|
| 2087 |
+
"node_modules/optionator": {
|
| 2088 |
+
"version": "0.9.4",
|
| 2089 |
+
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
|
| 2090 |
+
"integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",
|
| 2091 |
+
"dev": true,
|
| 2092 |
+
"license": "MIT",
|
| 2093 |
+
"dependencies": {
|
| 2094 |
+
"deep-is": "^0.1.3",
|
| 2095 |
+
"fast-levenshtein": "^2.0.6",
|
| 2096 |
+
"levn": "^0.4.1",
|
| 2097 |
+
"prelude-ls": "^1.2.1",
|
| 2098 |
+
"type-check": "^0.4.0",
|
| 2099 |
+
"word-wrap": "^1.2.5"
|
| 2100 |
+
},
|
| 2101 |
+
"engines": {
|
| 2102 |
+
"node": ">= 0.8.0"
|
| 2103 |
+
}
|
| 2104 |
+
},
|
| 2105 |
+
"node_modules/p-limit": {
|
| 2106 |
+
"version": "3.1.0",
|
| 2107 |
+
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
|
| 2108 |
+
"integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
|
| 2109 |
+
"dev": true,
|
| 2110 |
+
"license": "MIT",
|
| 2111 |
+
"dependencies": {
|
| 2112 |
+
"yocto-queue": "^0.1.0"
|
| 2113 |
+
},
|
| 2114 |
+
"engines": {
|
| 2115 |
+
"node": ">=10"
|
| 2116 |
+
},
|
| 2117 |
+
"funding": {
|
| 2118 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 2119 |
+
}
|
| 2120 |
+
},
|
| 2121 |
+
"node_modules/p-locate": {
|
| 2122 |
+
"version": "5.0.0",
|
| 2123 |
+
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
|
| 2124 |
+
"integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
|
| 2125 |
+
"dev": true,
|
| 2126 |
+
"license": "MIT",
|
| 2127 |
+
"dependencies": {
|
| 2128 |
+
"p-limit": "^3.0.2"
|
| 2129 |
+
},
|
| 2130 |
+
"engines": {
|
| 2131 |
+
"node": ">=10"
|
| 2132 |
+
},
|
| 2133 |
+
"funding": {
|
| 2134 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 2135 |
+
}
|
| 2136 |
+
},
|
| 2137 |
+
"node_modules/parent-module": {
|
| 2138 |
+
"version": "1.0.1",
|
| 2139 |
+
"resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
|
| 2140 |
+
"integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
|
| 2141 |
+
"dev": true,
|
| 2142 |
+
"license": "MIT",
|
| 2143 |
+
"dependencies": {
|
| 2144 |
+
"callsites": "^3.0.0"
|
| 2145 |
+
},
|
| 2146 |
+
"engines": {
|
| 2147 |
+
"node": ">=6"
|
| 2148 |
+
}
|
| 2149 |
+
},
|
| 2150 |
+
"node_modules/path-exists": {
|
| 2151 |
+
"version": "4.0.0",
|
| 2152 |
+
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
|
| 2153 |
+
"integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
|
| 2154 |
+
"dev": true,
|
| 2155 |
+
"license": "MIT",
|
| 2156 |
+
"engines": {
|
| 2157 |
+
"node": ">=8"
|
| 2158 |
+
}
|
| 2159 |
+
},
|
| 2160 |
+
"node_modules/path-key": {
|
| 2161 |
+
"version": "3.1.1",
|
| 2162 |
+
"resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
|
| 2163 |
+
"integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
|
| 2164 |
+
"dev": true,
|
| 2165 |
+
"license": "MIT",
|
| 2166 |
+
"engines": {
|
| 2167 |
+
"node": ">=8"
|
| 2168 |
+
}
|
| 2169 |
+
},
|
| 2170 |
+
"node_modules/picocolors": {
|
| 2171 |
+
"version": "1.1.1",
|
| 2172 |
+
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
|
| 2173 |
+
"integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
|
| 2174 |
+
"dev": true,
|
| 2175 |
+
"license": "ISC"
|
| 2176 |
+
},
|
| 2177 |
+
"node_modules/picomatch": {
|
| 2178 |
+
"version": "4.0.4",
|
| 2179 |
+
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
|
| 2180 |
+
"integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
|
| 2181 |
+
"dev": true,
|
| 2182 |
+
"license": "MIT",
|
| 2183 |
+
"engines": {
|
| 2184 |
+
"node": ">=12"
|
| 2185 |
+
},
|
| 2186 |
+
"funding": {
|
| 2187 |
+
"url": "https://github.com/sponsors/jonschlinkert"
|
| 2188 |
+
}
|
| 2189 |
+
},
|
| 2190 |
+
"node_modules/postcss": {
|
| 2191 |
+
"version": "8.5.8",
|
| 2192 |
+
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.8.tgz",
|
| 2193 |
+
"integrity": "sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==",
|
| 2194 |
+
"dev": true,
|
| 2195 |
+
"funding": [
|
| 2196 |
+
{
|
| 2197 |
+
"type": "opencollective",
|
| 2198 |
+
"url": "https://opencollective.com/postcss/"
|
| 2199 |
+
},
|
| 2200 |
+
{
|
| 2201 |
+
"type": "tidelift",
|
| 2202 |
+
"url": "https://tidelift.com/funding/github/npm/postcss"
|
| 2203 |
+
},
|
| 2204 |
+
{
|
| 2205 |
+
"type": "github",
|
| 2206 |
+
"url": "https://github.com/sponsors/ai"
|
| 2207 |
+
}
|
| 2208 |
+
],
|
| 2209 |
+
"license": "MIT",
|
| 2210 |
+
"dependencies": {
|
| 2211 |
+
"nanoid": "^3.3.11",
|
| 2212 |
+
"picocolors": "^1.1.1",
|
| 2213 |
+
"source-map-js": "^1.2.1"
|
| 2214 |
+
},
|
| 2215 |
+
"engines": {
|
| 2216 |
+
"node": "^10 || ^12 || >=14"
|
| 2217 |
+
}
|
| 2218 |
+
},
|
| 2219 |
+
"node_modules/prelude-ls": {
|
| 2220 |
+
"version": "1.2.1",
|
| 2221 |
+
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
|
| 2222 |
+
"integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
|
| 2223 |
+
"dev": true,
|
| 2224 |
+
"license": "MIT",
|
| 2225 |
+
"engines": {
|
| 2226 |
+
"node": ">= 0.8.0"
|
| 2227 |
+
}
|
| 2228 |
+
},
|
| 2229 |
+
"node_modules/punycode": {
|
| 2230 |
+
"version": "2.3.1",
|
| 2231 |
+
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
|
| 2232 |
+
"integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
|
| 2233 |
+
"dev": true,
|
| 2234 |
+
"license": "MIT",
|
| 2235 |
+
"engines": {
|
| 2236 |
+
"node": ">=6"
|
| 2237 |
+
}
|
| 2238 |
+
},
|
| 2239 |
+
"node_modules/react": {
|
| 2240 |
+
"version": "19.2.4",
|
| 2241 |
+
"resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz",
|
| 2242 |
+
"integrity": "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==",
|
| 2243 |
+
"license": "MIT",
|
| 2244 |
+
"engines": {
|
| 2245 |
+
"node": ">=0.10.0"
|
| 2246 |
+
}
|
| 2247 |
+
},
|
| 2248 |
+
"node_modules/react-dom": {
|
| 2249 |
+
"version": "19.2.4",
|
| 2250 |
+
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.4.tgz",
|
| 2251 |
+
"integrity": "sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ==",
|
| 2252 |
+
"license": "MIT",
|
| 2253 |
+
"dependencies": {
|
| 2254 |
+
"scheduler": "^0.27.0"
|
| 2255 |
+
},
|
| 2256 |
+
"peerDependencies": {
|
| 2257 |
+
"react": "^19.2.4"
|
| 2258 |
+
}
|
| 2259 |
+
},
|
| 2260 |
+
"node_modules/react-router": {
|
| 2261 |
+
"version": "7.13.2",
|
| 2262 |
+
"resolved": "https://registry.npmjs.org/react-router/-/react-router-7.13.2.tgz",
|
| 2263 |
+
"integrity": "sha512-tX1Aee+ArlKQP+NIUd7SE6Li+CiGKwQtbS+FfRxPX6Pe4vHOo6nr9d++u5cwg+Z8K/x8tP+7qLmujDtfrAoUJA==",
|
| 2264 |
+
"license": "MIT",
|
| 2265 |
+
"dependencies": {
|
| 2266 |
+
"cookie": "^1.0.1",
|
| 2267 |
+
"set-cookie-parser": "^2.6.0"
|
| 2268 |
+
},
|
| 2269 |
+
"engines": {
|
| 2270 |
+
"node": ">=20.0.0"
|
| 2271 |
+
},
|
| 2272 |
+
"peerDependencies": {
|
| 2273 |
+
"react": ">=18",
|
| 2274 |
+
"react-dom": ">=18"
|
| 2275 |
+
},
|
| 2276 |
+
"peerDependenciesMeta": {
|
| 2277 |
+
"react-dom": {
|
| 2278 |
+
"optional": true
|
| 2279 |
+
}
|
| 2280 |
+
}
|
| 2281 |
+
},
|
| 2282 |
+
"node_modules/react-router-dom": {
|
| 2283 |
+
"version": "7.13.2",
|
| 2284 |
+
"resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.13.2.tgz",
|
| 2285 |
+
"integrity": "sha512-aR7SUORwTqAW0JDeiWF07e9SBE9qGpByR9I8kJT5h/FrBKxPMS6TiC7rmVO+gC0q52Bx7JnjWe8Z1sR9faN4YA==",
|
| 2286 |
+
"license": "MIT",
|
| 2287 |
+
"dependencies": {
|
| 2288 |
+
"react-router": "7.13.2"
|
| 2289 |
+
},
|
| 2290 |
+
"engines": {
|
| 2291 |
+
"node": ">=20.0.0"
|
| 2292 |
+
},
|
| 2293 |
+
"peerDependencies": {
|
| 2294 |
+
"react": ">=18",
|
| 2295 |
+
"react-dom": ">=18"
|
| 2296 |
+
}
|
| 2297 |
+
},
|
| 2298 |
+
"node_modules/resolve-from": {
|
| 2299 |
+
"version": "4.0.0",
|
| 2300 |
+
"resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
|
| 2301 |
+
"integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
|
| 2302 |
+
"dev": true,
|
| 2303 |
+
"license": "MIT",
|
| 2304 |
+
"engines": {
|
| 2305 |
+
"node": ">=4"
|
| 2306 |
+
}
|
| 2307 |
+
},
|
| 2308 |
+
"node_modules/rolldown": {
|
| 2309 |
+
"version": "1.0.0-rc.12",
|
| 2310 |
+
"resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.0-rc.12.tgz",
|
| 2311 |
+
"integrity": "sha512-yP4USLIMYrwpPHEFB5JGH1uxhcslv6/hL0OyvTuY+3qlOSJvZ7ntYnoWpehBxufkgN0cvXxppuTu5hHa/zPh+A==",
|
| 2312 |
+
"dev": true,
|
| 2313 |
+
"license": "MIT",
|
| 2314 |
+
"dependencies": {
|
| 2315 |
+
"@oxc-project/types": "=0.122.0",
|
| 2316 |
+
"@rolldown/pluginutils": "1.0.0-rc.12"
|
| 2317 |
+
},
|
| 2318 |
+
"bin": {
|
| 2319 |
+
"rolldown": "bin/cli.mjs"
|
| 2320 |
+
},
|
| 2321 |
+
"engines": {
|
| 2322 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 2323 |
+
},
|
| 2324 |
+
"optionalDependencies": {
|
| 2325 |
+
"@rolldown/binding-android-arm64": "1.0.0-rc.12",
|
| 2326 |
+
"@rolldown/binding-darwin-arm64": "1.0.0-rc.12",
|
| 2327 |
+
"@rolldown/binding-darwin-x64": "1.0.0-rc.12",
|
| 2328 |
+
"@rolldown/binding-freebsd-x64": "1.0.0-rc.12",
|
| 2329 |
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-rc.12",
|
| 2330 |
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-rc.12",
|
| 2331 |
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-rc.12",
|
| 2332 |
+
"@rolldown/binding-linux-ppc64-gnu": "1.0.0-rc.12",
|
| 2333 |
+
"@rolldown/binding-linux-s390x-gnu": "1.0.0-rc.12",
|
| 2334 |
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-rc.12",
|
| 2335 |
+
"@rolldown/binding-linux-x64-musl": "1.0.0-rc.12",
|
| 2336 |
+
"@rolldown/binding-openharmony-arm64": "1.0.0-rc.12",
|
| 2337 |
+
"@rolldown/binding-wasm32-wasi": "1.0.0-rc.12",
|
| 2338 |
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-rc.12",
|
| 2339 |
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-rc.12"
|
| 2340 |
+
}
|
| 2341 |
+
},
|
| 2342 |
+
"node_modules/rolldown/node_modules/@rolldown/pluginutils": {
|
| 2343 |
+
"version": "1.0.0-rc.12",
|
| 2344 |
+
"resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.12.tgz",
|
| 2345 |
+
"integrity": "sha512-HHMwmarRKvoFsJorqYlFeFRzXZqCt2ETQlEDOb9aqssrnVBB1/+xgTGtuTrIk5vzLNX1MjMtTf7W9z3tsSbrxw==",
|
| 2346 |
+
"dev": true,
|
| 2347 |
+
"license": "MIT"
|
| 2348 |
+
},
|
| 2349 |
+
"node_modules/scheduler": {
|
| 2350 |
+
"version": "0.27.0",
|
| 2351 |
+
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
|
| 2352 |
+
"integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",
|
| 2353 |
+
"license": "MIT"
|
| 2354 |
+
},
|
| 2355 |
+
"node_modules/semver": {
|
| 2356 |
+
"version": "6.3.1",
|
| 2357 |
+
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
|
| 2358 |
+
"integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
|
| 2359 |
+
"dev": true,
|
| 2360 |
+
"license": "ISC",
|
| 2361 |
+
"bin": {
|
| 2362 |
+
"semver": "bin/semver.js"
|
| 2363 |
+
}
|
| 2364 |
+
},
|
| 2365 |
+
"node_modules/set-cookie-parser": {
|
| 2366 |
+
"version": "2.7.2",
|
| 2367 |
+
"resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.2.tgz",
|
| 2368 |
+
"integrity": "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==",
|
| 2369 |
+
"license": "MIT"
|
| 2370 |
+
},
|
| 2371 |
+
"node_modules/shebang-command": {
|
| 2372 |
+
"version": "2.0.0",
|
| 2373 |
+
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
|
| 2374 |
+
"integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
|
| 2375 |
+
"dev": true,
|
| 2376 |
+
"license": "MIT",
|
| 2377 |
+
"dependencies": {
|
| 2378 |
+
"shebang-regex": "^3.0.0"
|
| 2379 |
+
},
|
| 2380 |
+
"engines": {
|
| 2381 |
+
"node": ">=8"
|
| 2382 |
+
}
|
| 2383 |
+
},
|
| 2384 |
+
"node_modules/shebang-regex": {
|
| 2385 |
+
"version": "3.0.0",
|
| 2386 |
+
"resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
|
| 2387 |
+
"integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
|
| 2388 |
+
"dev": true,
|
| 2389 |
+
"license": "MIT",
|
| 2390 |
+
"engines": {
|
| 2391 |
+
"node": ">=8"
|
| 2392 |
+
}
|
| 2393 |
+
},
|
| 2394 |
+
"node_modules/source-map-js": {
|
| 2395 |
+
"version": "1.2.1",
|
| 2396 |
+
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
|
| 2397 |
+
"integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
|
| 2398 |
+
"dev": true,
|
| 2399 |
+
"license": "BSD-3-Clause",
|
| 2400 |
+
"engines": {
|
| 2401 |
+
"node": ">=0.10.0"
|
| 2402 |
+
}
|
| 2403 |
+
},
|
| 2404 |
+
"node_modules/strip-json-comments": {
|
| 2405 |
+
"version": "3.1.1",
|
| 2406 |
+
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
|
| 2407 |
+
"integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
|
| 2408 |
+
"dev": true,
|
| 2409 |
+
"license": "MIT",
|
| 2410 |
+
"engines": {
|
| 2411 |
+
"node": ">=8"
|
| 2412 |
+
},
|
| 2413 |
+
"funding": {
|
| 2414 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 2415 |
+
}
|
| 2416 |
+
},
|
| 2417 |
+
"node_modules/supports-color": {
|
| 2418 |
+
"version": "7.2.0",
|
| 2419 |
+
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
| 2420 |
+
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
|
| 2421 |
+
"dev": true,
|
| 2422 |
+
"license": "MIT",
|
| 2423 |
+
"dependencies": {
|
| 2424 |
+
"has-flag": "^4.0.0"
|
| 2425 |
+
},
|
| 2426 |
+
"engines": {
|
| 2427 |
+
"node": ">=8"
|
| 2428 |
+
}
|
| 2429 |
+
},
|
| 2430 |
+
"node_modules/tinyglobby": {
|
| 2431 |
+
"version": "0.2.15",
|
| 2432 |
+
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",
|
| 2433 |
+
"integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",
|
| 2434 |
+
"dev": true,
|
| 2435 |
+
"license": "MIT",
|
| 2436 |
+
"dependencies": {
|
| 2437 |
+
"fdir": "^6.5.0",
|
| 2438 |
+
"picomatch": "^4.0.3"
|
| 2439 |
+
},
|
| 2440 |
+
"engines": {
|
| 2441 |
+
"node": ">=12.0.0"
|
| 2442 |
+
},
|
| 2443 |
+
"funding": {
|
| 2444 |
+
"url": "https://github.com/sponsors/SuperchupuDev"
|
| 2445 |
+
}
|
| 2446 |
+
},
|
| 2447 |
+
"node_modules/tslib": {
|
| 2448 |
+
"version": "2.8.1",
|
| 2449 |
+
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
| 2450 |
+
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
|
| 2451 |
+
"dev": true,
|
| 2452 |
+
"license": "0BSD",
|
| 2453 |
+
"optional": true
|
| 2454 |
+
},
|
| 2455 |
+
"node_modules/type-check": {
|
| 2456 |
+
"version": "0.4.0",
|
| 2457 |
+
"resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
|
| 2458 |
+
"integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
|
| 2459 |
+
"dev": true,
|
| 2460 |
+
"license": "MIT",
|
| 2461 |
+
"dependencies": {
|
| 2462 |
+
"prelude-ls": "^1.2.1"
|
| 2463 |
+
},
|
| 2464 |
+
"engines": {
|
| 2465 |
+
"node": ">= 0.8.0"
|
| 2466 |
+
}
|
| 2467 |
+
},
|
| 2468 |
+
"node_modules/update-browserslist-db": {
|
| 2469 |
+
"version": "1.2.3",
|
| 2470 |
+
"resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz",
|
| 2471 |
+
"integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==",
|
| 2472 |
+
"dev": true,
|
| 2473 |
+
"funding": [
|
| 2474 |
+
{
|
| 2475 |
+
"type": "opencollective",
|
| 2476 |
+
"url": "https://opencollective.com/browserslist"
|
| 2477 |
+
},
|
| 2478 |
+
{
|
| 2479 |
+
"type": "tidelift",
|
| 2480 |
+
"url": "https://tidelift.com/funding/github/npm/browserslist"
|
| 2481 |
+
},
|
| 2482 |
+
{
|
| 2483 |
+
"type": "github",
|
| 2484 |
+
"url": "https://github.com/sponsors/ai"
|
| 2485 |
+
}
|
| 2486 |
+
],
|
| 2487 |
+
"license": "MIT",
|
| 2488 |
+
"dependencies": {
|
| 2489 |
+
"escalade": "^3.2.0",
|
| 2490 |
+
"picocolors": "^1.1.1"
|
| 2491 |
+
},
|
| 2492 |
+
"bin": {
|
| 2493 |
+
"update-browserslist-db": "cli.js"
|
| 2494 |
+
},
|
| 2495 |
+
"peerDependencies": {
|
| 2496 |
+
"browserslist": ">= 4.21.0"
|
| 2497 |
+
}
|
| 2498 |
+
},
|
| 2499 |
+
"node_modules/uri-js": {
|
| 2500 |
+
"version": "4.4.1",
|
| 2501 |
+
"resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
|
| 2502 |
+
"integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
|
| 2503 |
+
"dev": true,
|
| 2504 |
+
"license": "BSD-2-Clause",
|
| 2505 |
+
"dependencies": {
|
| 2506 |
+
"punycode": "^2.1.0"
|
| 2507 |
+
}
|
| 2508 |
+
},
|
| 2509 |
+
"node_modules/vite": {
|
| 2510 |
+
"version": "8.0.3",
|
| 2511 |
+
"resolved": "https://registry.npmjs.org/vite/-/vite-8.0.3.tgz",
|
| 2512 |
+
"integrity": "sha512-B9ifbFudT1TFhfltfaIPgjo9Z3mDynBTJSUYxTjOQruf/zHH+ezCQKcoqO+h7a9Pw9Nm/OtlXAiGT1axBgwqrQ==",
|
| 2513 |
+
"dev": true,
|
| 2514 |
+
"license": "MIT",
|
| 2515 |
+
"dependencies": {
|
| 2516 |
+
"lightningcss": "^1.32.0",
|
| 2517 |
+
"picomatch": "^4.0.4",
|
| 2518 |
+
"postcss": "^8.5.8",
|
| 2519 |
+
"rolldown": "1.0.0-rc.12",
|
| 2520 |
+
"tinyglobby": "^0.2.15"
|
| 2521 |
+
},
|
| 2522 |
+
"bin": {
|
| 2523 |
+
"vite": "bin/vite.js"
|
| 2524 |
+
},
|
| 2525 |
+
"engines": {
|
| 2526 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 2527 |
+
},
|
| 2528 |
+
"funding": {
|
| 2529 |
+
"url": "https://github.com/vitejs/vite?sponsor=1"
|
| 2530 |
+
},
|
| 2531 |
+
"optionalDependencies": {
|
| 2532 |
+
"fsevents": "~2.3.3"
|
| 2533 |
+
},
|
| 2534 |
+
"peerDependencies": {
|
| 2535 |
+
"@types/node": "^20.19.0 || >=22.12.0",
|
| 2536 |
+
"@vitejs/devtools": "^0.1.0",
|
| 2537 |
+
"esbuild": "^0.27.0",
|
| 2538 |
+
"jiti": ">=1.21.0",
|
| 2539 |
+
"less": "^4.0.0",
|
| 2540 |
+
"sass": "^1.70.0",
|
| 2541 |
+
"sass-embedded": "^1.70.0",
|
| 2542 |
+
"stylus": ">=0.54.8",
|
| 2543 |
+
"sugarss": "^5.0.0",
|
| 2544 |
+
"terser": "^5.16.0",
|
| 2545 |
+
"tsx": "^4.8.1",
|
| 2546 |
+
"yaml": "^2.4.2"
|
| 2547 |
+
},
|
| 2548 |
+
"peerDependenciesMeta": {
|
| 2549 |
+
"@types/node": {
|
| 2550 |
+
"optional": true
|
| 2551 |
+
},
|
| 2552 |
+
"@vitejs/devtools": {
|
| 2553 |
+
"optional": true
|
| 2554 |
+
},
|
| 2555 |
+
"esbuild": {
|
| 2556 |
+
"optional": true
|
| 2557 |
+
},
|
| 2558 |
+
"jiti": {
|
| 2559 |
+
"optional": true
|
| 2560 |
+
},
|
| 2561 |
+
"less": {
|
| 2562 |
+
"optional": true
|
| 2563 |
+
},
|
| 2564 |
+
"sass": {
|
| 2565 |
+
"optional": true
|
| 2566 |
+
},
|
| 2567 |
+
"sass-embedded": {
|
| 2568 |
+
"optional": true
|
| 2569 |
+
},
|
| 2570 |
+
"stylus": {
|
| 2571 |
+
"optional": true
|
| 2572 |
+
},
|
| 2573 |
+
"sugarss": {
|
| 2574 |
+
"optional": true
|
| 2575 |
+
},
|
| 2576 |
+
"terser": {
|
| 2577 |
+
"optional": true
|
| 2578 |
+
},
|
| 2579 |
+
"tsx": {
|
| 2580 |
+
"optional": true
|
| 2581 |
+
},
|
| 2582 |
+
"yaml": {
|
| 2583 |
+
"optional": true
|
| 2584 |
+
}
|
| 2585 |
+
}
|
| 2586 |
+
},
|
| 2587 |
+
"node_modules/which": {
|
| 2588 |
+
"version": "2.0.2",
|
| 2589 |
+
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
|
| 2590 |
+
"integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
|
| 2591 |
+
"dev": true,
|
| 2592 |
+
"license": "ISC",
|
| 2593 |
+
"dependencies": {
|
| 2594 |
+
"isexe": "^2.0.0"
|
| 2595 |
+
},
|
| 2596 |
+
"bin": {
|
| 2597 |
+
"node-which": "bin/node-which"
|
| 2598 |
+
},
|
| 2599 |
+
"engines": {
|
| 2600 |
+
"node": ">= 8"
|
| 2601 |
+
}
|
| 2602 |
+
},
|
| 2603 |
+
"node_modules/word-wrap": {
|
| 2604 |
+
"version": "1.2.5",
|
| 2605 |
+
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
|
| 2606 |
+
"integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
|
| 2607 |
+
"dev": true,
|
| 2608 |
+
"license": "MIT",
|
| 2609 |
+
"engines": {
|
| 2610 |
+
"node": ">=0.10.0"
|
| 2611 |
+
}
|
| 2612 |
+
},
|
| 2613 |
+
"node_modules/yallist": {
|
| 2614 |
+
"version": "3.1.1",
|
| 2615 |
+
"resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
|
| 2616 |
+
"integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
|
| 2617 |
+
"dev": true,
|
| 2618 |
+
"license": "ISC"
|
| 2619 |
+
},
|
| 2620 |
+
"node_modules/yocto-queue": {
|
| 2621 |
+
"version": "0.1.0",
|
| 2622 |
+
"resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
|
| 2623 |
+
"integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
|
| 2624 |
+
"dev": true,
|
| 2625 |
+
"license": "MIT",
|
| 2626 |
+
"engines": {
|
| 2627 |
+
"node": ">=10"
|
| 2628 |
+
},
|
| 2629 |
+
"funding": {
|
| 2630 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 2631 |
+
}
|
| 2632 |
+
},
|
| 2633 |
+
"node_modules/zod": {
|
| 2634 |
+
"version": "4.3.6",
|
| 2635 |
+
"resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz",
|
| 2636 |
+
"integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==",
|
| 2637 |
+
"dev": true,
|
| 2638 |
+
"license": "MIT",
|
| 2639 |
+
"funding": {
|
| 2640 |
+
"url": "https://github.com/sponsors/colinhacks"
|
| 2641 |
+
}
|
| 2642 |
+
},
|
| 2643 |
+
"node_modules/zod-validation-error": {
|
| 2644 |
+
"version": "4.0.2",
|
| 2645 |
+
"resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz",
|
| 2646 |
+
"integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==",
|
| 2647 |
+
"dev": true,
|
| 2648 |
+
"license": "MIT",
|
| 2649 |
+
"engines": {
|
| 2650 |
+
"node": ">=18.0.0"
|
| 2651 |
+
},
|
| 2652 |
+
"peerDependencies": {
|
| 2653 |
+
"zod": "^3.25.0 || ^4.0.0"
|
| 2654 |
+
}
|
| 2655 |
+
}
|
| 2656 |
+
}
|
| 2657 |
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "frontend",
|
| 3 |
+
"private": true,
|
| 4 |
+
"version": "0.0.0",
|
| 5 |
+
"type": "module",
|
| 6 |
+
"scripts": {
|
| 7 |
+
"dev": "vite",
|
| 8 |
+
"build": "vite build",
|
| 9 |
+
"lint": "eslint .",
|
| 10 |
+
"preview": "vite preview"
|
| 11 |
+
},
|
| 12 |
+
"dependencies": {
|
| 13 |
+
"react": "^19.2.4",
|
| 14 |
+
"react-dom": "^19.2.4",
|
| 15 |
+
"react-router-dom": "^7.13.1"
|
| 16 |
+
},
|
| 17 |
+
"devDependencies": {
|
| 18 |
+
"@eslint/js": "^9.39.4",
|
| 19 |
+
"@types/react": "^19.2.14",
|
| 20 |
+
"@types/react-dom": "^19.2.3",
|
| 21 |
+
"@vitejs/plugin-react": "^6.0.0",
|
| 22 |
+
"eslint": "^9.39.4",
|
| 23 |
+
"eslint-plugin-react-hooks": "^7.0.1",
|
| 24 |
+
"eslint-plugin-react-refresh": "^0.5.2",
|
| 25 |
+
"globals": "^17.4.0",
|
| 26 |
+
"vite": "^8.0.0"
|
| 27 |
+
}
|
| 28 |
+
}
|
|
|
|
|
|
@@ -0,0 +1,638 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* ===== Reset & Base ===== */
|
| 2 |
+
*,
|
| 3 |
+
*::before,
|
| 4 |
+
*::after {
|
| 5 |
+
box-sizing: border-box;
|
| 6 |
+
margin: 0;
|
| 7 |
+
padding: 0;
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
:root {
|
| 11 |
+
--primary: #1cc29f;
|
| 12 |
+
--primary-dark: #17a88a;
|
| 13 |
+
--primary-light: #e8f8f4;
|
| 14 |
+
--danger: #e74c3c;
|
| 15 |
+
--danger-light: #fdecea;
|
| 16 |
+
--orange: #e67e22;
|
| 17 |
+
--orange-light: #fef5ec;
|
| 18 |
+
--bg: #f5f7fa;
|
| 19 |
+
--white: #ffffff;
|
| 20 |
+
--text: #333333;
|
| 21 |
+
--text-light: #6b7280;
|
| 22 |
+
--text-lighter: #9ca3af;
|
| 23 |
+
--border: #e5e7eb;
|
| 24 |
+
--border-light: #f0f0f0;
|
| 25 |
+
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
|
| 26 |
+
--shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
| 27 |
+
--shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
|
| 28 |
+
--radius: 10px;
|
| 29 |
+
--radius-sm: 6px;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
body {
|
| 33 |
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
| 34 |
+
'Helvetica Neue', Arial, sans-serif;
|
| 35 |
+
background: var(--bg);
|
| 36 |
+
color: var(--text);
|
| 37 |
+
line-height: 1.6;
|
| 38 |
+
-webkit-font-smoothing: antialiased;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
a {
|
| 42 |
+
color: var(--primary);
|
| 43 |
+
text-decoration: none;
|
| 44 |
+
}
|
| 45 |
+
a:hover {
|
| 46 |
+
color: var(--primary-dark);
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
/* ===== App Layout ===== */
|
| 50 |
+
.app {
|
| 51 |
+
min-height: 100vh;
|
| 52 |
+
display: flex;
|
| 53 |
+
flex-direction: column;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
.app-header {
|
| 57 |
+
background: var(--white);
|
| 58 |
+
border-bottom: 1px solid var(--border);
|
| 59 |
+
padding: 0 24px;
|
| 60 |
+
height: 60px;
|
| 61 |
+
display: flex;
|
| 62 |
+
align-items: center;
|
| 63 |
+
position: sticky;
|
| 64 |
+
top: 0;
|
| 65 |
+
z-index: 100;
|
| 66 |
+
box-shadow: var(--shadow-sm);
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
.logo {
|
| 70 |
+
display: flex;
|
| 71 |
+
align-items: center;
|
| 72 |
+
gap: 10px;
|
| 73 |
+
text-decoration: none;
|
| 74 |
+
}
|
| 75 |
+
.logo-icon {
|
| 76 |
+
background: var(--primary);
|
| 77 |
+
color: white;
|
| 78 |
+
width: 36px;
|
| 79 |
+
height: 36px;
|
| 80 |
+
border-radius: 8px;
|
| 81 |
+
display: flex;
|
| 82 |
+
align-items: center;
|
| 83 |
+
justify-content: center;
|
| 84 |
+
font-weight: 800;
|
| 85 |
+
font-size: 20px;
|
| 86 |
+
}
|
| 87 |
+
.logo-text {
|
| 88 |
+
font-size: 22px;
|
| 89 |
+
font-weight: 700;
|
| 90 |
+
color: var(--text);
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
.app-main {
|
| 94 |
+
flex: 1;
|
| 95 |
+
max-width: 960px;
|
| 96 |
+
width: 100%;
|
| 97 |
+
margin: 0 auto;
|
| 98 |
+
padding: 32px 24px;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
/* ===== Cards ===== */
|
| 102 |
+
.card {
|
| 103 |
+
background: var(--white);
|
| 104 |
+
border-radius: var(--radius);
|
| 105 |
+
box-shadow: var(--shadow-sm);
|
| 106 |
+
border: 1px solid var(--border);
|
| 107 |
+
overflow: hidden;
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
.card-header {
|
| 111 |
+
padding: 20px 24px;
|
| 112 |
+
border-bottom: 1px solid var(--border-light);
|
| 113 |
+
display: flex;
|
| 114 |
+
align-items: center;
|
| 115 |
+
justify-content: space-between;
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
+
.card-header h2 {
|
| 119 |
+
font-size: 18px;
|
| 120 |
+
font-weight: 600;
|
| 121 |
+
color: var(--text);
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
.card-body {
|
| 125 |
+
padding: 20px 24px;
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
/* ===== Buttons ===== */
|
| 129 |
+
.btn {
|
| 130 |
+
display: inline-flex;
|
| 131 |
+
align-items: center;
|
| 132 |
+
justify-content: center;
|
| 133 |
+
gap: 6px;
|
| 134 |
+
padding: 10px 20px;
|
| 135 |
+
border-radius: var(--radius-sm);
|
| 136 |
+
font-size: 14px;
|
| 137 |
+
font-weight: 600;
|
| 138 |
+
border: none;
|
| 139 |
+
cursor: pointer;
|
| 140 |
+
transition: all 0.2s ease;
|
| 141 |
+
text-decoration: none;
|
| 142 |
+
}
|
| 143 |
+
.btn:disabled {
|
| 144 |
+
opacity: 0.5;
|
| 145 |
+
cursor: not-allowed;
|
| 146 |
+
}
|
| 147 |
+
.btn-primary {
|
| 148 |
+
background: var(--primary);
|
| 149 |
+
color: white;
|
| 150 |
+
}
|
| 151 |
+
.btn-primary:hover:not(:disabled) {
|
| 152 |
+
background: var(--primary-dark);
|
| 153 |
+
color: white;
|
| 154 |
+
box-shadow: var(--shadow);
|
| 155 |
+
}
|
| 156 |
+
.btn-secondary {
|
| 157 |
+
background: var(--bg);
|
| 158 |
+
color: var(--text);
|
| 159 |
+
border: 1px solid var(--border);
|
| 160 |
+
}
|
| 161 |
+
.btn-secondary:hover:not(:disabled) {
|
| 162 |
+
background: var(--border-light);
|
| 163 |
+
}
|
| 164 |
+
.btn-danger {
|
| 165 |
+
background: var(--danger-light);
|
| 166 |
+
color: var(--danger);
|
| 167 |
+
border: 1px solid transparent;
|
| 168 |
+
}
|
| 169 |
+
.btn-danger:hover:not(:disabled) {
|
| 170 |
+
background: var(--danger);
|
| 171 |
+
color: white;
|
| 172 |
+
}
|
| 173 |
+
.btn-sm {
|
| 174 |
+
padding: 6px 12px;
|
| 175 |
+
font-size: 13px;
|
| 176 |
+
}
|
| 177 |
+
.btn-orange {
|
| 178 |
+
background: var(--orange);
|
| 179 |
+
color: white;
|
| 180 |
+
}
|
| 181 |
+
.btn-orange:hover:not(:disabled) {
|
| 182 |
+
background: #cf6d17;
|
| 183 |
+
color: white;
|
| 184 |
+
}
|
| 185 |
+
|
| 186 |
+
/* ===== Forms ===== */
|
| 187 |
+
.form-group {
|
| 188 |
+
margin-bottom: 18px;
|
| 189 |
+
}
|
| 190 |
+
.form-group label {
|
| 191 |
+
display: block;
|
| 192 |
+
font-size: 14px;
|
| 193 |
+
font-weight: 600;
|
| 194 |
+
color: var(--text);
|
| 195 |
+
margin-bottom: 6px;
|
| 196 |
+
}
|
| 197 |
+
.form-input {
|
| 198 |
+
width: 100%;
|
| 199 |
+
padding: 10px 14px;
|
| 200 |
+
border: 1px solid var(--border);
|
| 201 |
+
border-radius: var(--radius-sm);
|
| 202 |
+
font-size: 15px;
|
| 203 |
+
color: var(--text);
|
| 204 |
+
background: var(--white);
|
| 205 |
+
transition: border-color 0.2s, box-shadow 0.2s;
|
| 206 |
+
}
|
| 207 |
+
.form-input:focus {
|
| 208 |
+
outline: none;
|
| 209 |
+
border-color: var(--primary);
|
| 210 |
+
box-shadow: 0 0 0 3px rgba(28, 194, 159, 0.15);
|
| 211 |
+
}
|
| 212 |
+
.form-input::placeholder {
|
| 213 |
+
color: var(--text-lighter);
|
| 214 |
+
}
|
| 215 |
+
select.form-input {
|
| 216 |
+
cursor: pointer;
|
| 217 |
+
}
|
| 218 |
+
|
| 219 |
+
.inline-form {
|
| 220 |
+
display: flex;
|
| 221 |
+
gap: 10px;
|
| 222 |
+
align-items: flex-end;
|
| 223 |
+
}
|
| 224 |
+
.inline-form .form-group {
|
| 225 |
+
margin-bottom: 0;
|
| 226 |
+
flex: 1;
|
| 227 |
+
}
|
| 228 |
+
|
| 229 |
+
/* ===== Checkbox List ===== */
|
| 230 |
+
.checkbox-list {
|
| 231 |
+
display: flex;
|
| 232 |
+
flex-wrap: wrap;
|
| 233 |
+
gap: 8px;
|
| 234 |
+
}
|
| 235 |
+
.checkbox-item {
|
| 236 |
+
display: flex;
|
| 237 |
+
align-items: center;
|
| 238 |
+
gap: 8px;
|
| 239 |
+
padding: 8px 14px;
|
| 240 |
+
background: var(--bg);
|
| 241 |
+
border: 1px solid var(--border);
|
| 242 |
+
border-radius: var(--radius-sm);
|
| 243 |
+
cursor: pointer;
|
| 244 |
+
transition: all 0.15s;
|
| 245 |
+
font-size: 14px;
|
| 246 |
+
}
|
| 247 |
+
.checkbox-item:hover {
|
| 248 |
+
border-color: var(--primary);
|
| 249 |
+
}
|
| 250 |
+
.checkbox-item.checked {
|
| 251 |
+
background: var(--primary-light);
|
| 252 |
+
border-color: var(--primary);
|
| 253 |
+
color: var(--primary-dark);
|
| 254 |
+
}
|
| 255 |
+
.checkbox-item input[type='checkbox'] {
|
| 256 |
+
accent-color: var(--primary);
|
| 257 |
+
width: 16px;
|
| 258 |
+
height: 16px;
|
| 259 |
+
cursor: pointer;
|
| 260 |
+
}
|
| 261 |
+
|
| 262 |
+
/* ===== Dashboard ===== */
|
| 263 |
+
.dashboard-grid {
|
| 264 |
+
display: grid;
|
| 265 |
+
grid-template-columns: 1fr 320px;
|
| 266 |
+
gap: 24px;
|
| 267 |
+
align-items: start;
|
| 268 |
+
}
|
| 269 |
+
@media (max-width: 768px) {
|
| 270 |
+
.dashboard-grid {
|
| 271 |
+
grid-template-columns: 1fr;
|
| 272 |
+
}
|
| 273 |
+
}
|
| 274 |
+
|
| 275 |
+
.section-title {
|
| 276 |
+
font-size: 14px;
|
| 277 |
+
font-weight: 600;
|
| 278 |
+
text-transform: uppercase;
|
| 279 |
+
letter-spacing: 0.5px;
|
| 280 |
+
color: var(--text-light);
|
| 281 |
+
margin-bottom: 14px;
|
| 282 |
+
}
|
| 283 |
+
|
| 284 |
+
.groups-list {
|
| 285 |
+
display: flex;
|
| 286 |
+
flex-direction: column;
|
| 287 |
+
gap: 12px;
|
| 288 |
+
}
|
| 289 |
+
|
| 290 |
+
.group-card {
|
| 291 |
+
display: flex;
|
| 292 |
+
align-items: center;
|
| 293 |
+
gap: 16px;
|
| 294 |
+
padding: 18px 20px;
|
| 295 |
+
background: var(--white);
|
| 296 |
+
border-radius: var(--radius);
|
| 297 |
+
border: 1px solid var(--border);
|
| 298 |
+
text-decoration: none;
|
| 299 |
+
color: var(--text);
|
| 300 |
+
transition: all 0.2s;
|
| 301 |
+
box-shadow: var(--shadow-sm);
|
| 302 |
+
}
|
| 303 |
+
.group-card:hover {
|
| 304 |
+
box-shadow: var(--shadow);
|
| 305 |
+
border-color: var(--primary);
|
| 306 |
+
color: var(--text);
|
| 307 |
+
transform: translateY(-1px);
|
| 308 |
+
}
|
| 309 |
+
.group-card-icon {
|
| 310 |
+
width: 44px;
|
| 311 |
+
height: 44px;
|
| 312 |
+
border-radius: 10px;
|
| 313 |
+
background: linear-gradient(135deg, var(--primary), var(--primary-dark));
|
| 314 |
+
display: flex;
|
| 315 |
+
align-items: center;
|
| 316 |
+
justify-content: center;
|
| 317 |
+
color: white;
|
| 318 |
+
font-weight: 700;
|
| 319 |
+
font-size: 18px;
|
| 320 |
+
flex-shrink: 0;
|
| 321 |
+
}
|
| 322 |
+
.group-card-info {
|
| 323 |
+
flex: 1;
|
| 324 |
+
min-width: 0;
|
| 325 |
+
}
|
| 326 |
+
.group-card-name {
|
| 327 |
+
font-weight: 600;
|
| 328 |
+
font-size: 16px;
|
| 329 |
+
margin-bottom: 2px;
|
| 330 |
+
}
|
| 331 |
+
.group-card-members {
|
| 332 |
+
font-size: 13px;
|
| 333 |
+
color: var(--text-light);
|
| 334 |
+
}
|
| 335 |
+
.group-card-arrow {
|
| 336 |
+
color: var(--text-lighter);
|
| 337 |
+
font-size: 18px;
|
| 338 |
+
}
|
| 339 |
+
|
| 340 |
+
.sidebar .card {
|
| 341 |
+
margin-bottom: 16px;
|
| 342 |
+
}
|
| 343 |
+
|
| 344 |
+
.user-list {
|
| 345 |
+
list-style: none;
|
| 346 |
+
padding: 0;
|
| 347 |
+
}
|
| 348 |
+
.user-list li {
|
| 349 |
+
padding: 10px 0;
|
| 350 |
+
border-bottom: 1px solid var(--border-light);
|
| 351 |
+
display: flex;
|
| 352 |
+
align-items: center;
|
| 353 |
+
gap: 10px;
|
| 354 |
+
font-size: 14px;
|
| 355 |
+
}
|
| 356 |
+
.user-list li:last-child {
|
| 357 |
+
border-bottom: none;
|
| 358 |
+
}
|
| 359 |
+
.user-avatar {
|
| 360 |
+
width: 32px;
|
| 361 |
+
height: 32px;
|
| 362 |
+
border-radius: 50%;
|
| 363 |
+
background: var(--primary-light);
|
| 364 |
+
color: var(--primary-dark);
|
| 365 |
+
display: flex;
|
| 366 |
+
align-items: center;
|
| 367 |
+
justify-content: center;
|
| 368 |
+
font-weight: 600;
|
| 369 |
+
font-size: 13px;
|
| 370 |
+
flex-shrink: 0;
|
| 371 |
+
}
|
| 372 |
+
.user-info-name {
|
| 373 |
+
font-weight: 500;
|
| 374 |
+
}
|
| 375 |
+
.user-info-email {
|
| 376 |
+
font-size: 12px;
|
| 377 |
+
color: var(--text-light);
|
| 378 |
+
}
|
| 379 |
+
|
| 380 |
+
/* ===== Empty State ===== */
|
| 381 |
+
.empty-state {
|
| 382 |
+
text-align: center;
|
| 383 |
+
padding: 40px 20px;
|
| 384 |
+
color: var(--text-light);
|
| 385 |
+
}
|
| 386 |
+
.empty-state-icon {
|
| 387 |
+
font-size: 48px;
|
| 388 |
+
margin-bottom: 12px;
|
| 389 |
+
opacity: 0.5;
|
| 390 |
+
}
|
| 391 |
+
.empty-state p {
|
| 392 |
+
font-size: 15px;
|
| 393 |
+
}
|
| 394 |
+
|
| 395 |
+
/* ===== Group Detail ===== */
|
| 396 |
+
.group-header {
|
| 397 |
+
display: flex;
|
| 398 |
+
align-items: center;
|
| 399 |
+
justify-content: space-between;
|
| 400 |
+
margin-bottom: 24px;
|
| 401 |
+
flex-wrap: wrap;
|
| 402 |
+
gap: 16px;
|
| 403 |
+
}
|
| 404 |
+
.group-header h1 {
|
| 405 |
+
font-size: 28px;
|
| 406 |
+
font-weight: 700;
|
| 407 |
+
}
|
| 408 |
+
.group-header-actions {
|
| 409 |
+
display: flex;
|
| 410 |
+
gap: 10px;
|
| 411 |
+
flex-wrap: wrap;
|
| 412 |
+
}
|
| 413 |
+
|
| 414 |
+
.members-bar {
|
| 415 |
+
display: flex;
|
| 416 |
+
align-items: center;
|
| 417 |
+
gap: 8px;
|
| 418 |
+
margin-bottom: 24px;
|
| 419 |
+
flex-wrap: wrap;
|
| 420 |
+
}
|
| 421 |
+
.member-chip {
|
| 422 |
+
display: inline-flex;
|
| 423 |
+
align-items: center;
|
| 424 |
+
gap: 6px;
|
| 425 |
+
padding: 6px 12px;
|
| 426 |
+
background: var(--primary-light);
|
| 427 |
+
color: var(--primary-dark);
|
| 428 |
+
border-radius: 20px;
|
| 429 |
+
font-size: 13px;
|
| 430 |
+
font-weight: 500;
|
| 431 |
+
}
|
| 432 |
+
.member-chip .user-avatar {
|
| 433 |
+
width: 24px;
|
| 434 |
+
height: 24px;
|
| 435 |
+
font-size: 11px;
|
| 436 |
+
}
|
| 437 |
+
|
| 438 |
+
.detail-grid {
|
| 439 |
+
display: grid;
|
| 440 |
+
grid-template-columns: 1fr 1fr;
|
| 441 |
+
gap: 24px;
|
| 442 |
+
margin-bottom: 24px;
|
| 443 |
+
}
|
| 444 |
+
@media (max-width: 768px) {
|
| 445 |
+
.detail-grid {
|
| 446 |
+
grid-template-columns: 1fr;
|
| 447 |
+
}
|
| 448 |
+
}
|
| 449 |
+
|
| 450 |
+
/* ===== Balances ===== */
|
| 451 |
+
.balance-item {
|
| 452 |
+
display: flex;
|
| 453 |
+
align-items: center;
|
| 454 |
+
justify-content: space-between;
|
| 455 |
+
padding: 12px 0;
|
| 456 |
+
border-bottom: 1px solid var(--border-light);
|
| 457 |
+
font-size: 14px;
|
| 458 |
+
}
|
| 459 |
+
.balance-item:last-child {
|
| 460 |
+
border-bottom: none;
|
| 461 |
+
}
|
| 462 |
+
.balance-owes {
|
| 463 |
+
color: var(--danger);
|
| 464 |
+
font-weight: 600;
|
| 465 |
+
}
|
| 466 |
+
.balance-owed {
|
| 467 |
+
color: var(--primary);
|
| 468 |
+
font-weight: 600;
|
| 469 |
+
}
|
| 470 |
+
.balance-arrow {
|
| 471 |
+
color: var(--text-lighter);
|
| 472 |
+
margin: 0 6px;
|
| 473 |
+
}
|
| 474 |
+
.balance-amount-negative {
|
| 475 |
+
color: var(--orange);
|
| 476 |
+
font-weight: 700;
|
| 477 |
+
font-size: 15px;
|
| 478 |
+
}
|
| 479 |
+
.balance-amount-positive {
|
| 480 |
+
color: var(--primary);
|
| 481 |
+
font-weight: 700;
|
| 482 |
+
font-size: 15px;
|
| 483 |
+
}
|
| 484 |
+
|
| 485 |
+
/* ===== Expenses ===== */
|
| 486 |
+
.expense-item {
|
| 487 |
+
display: flex;
|
| 488 |
+
align-items: center;
|
| 489 |
+
gap: 14px;
|
| 490 |
+
padding: 14px 0;
|
| 491 |
+
border-bottom: 1px solid var(--border-light);
|
| 492 |
+
}
|
| 493 |
+
.expense-item:last-child {
|
| 494 |
+
border-bottom: none;
|
| 495 |
+
}
|
| 496 |
+
.expense-icon {
|
| 497 |
+
width: 40px;
|
| 498 |
+
height: 40px;
|
| 499 |
+
border-radius: 8px;
|
| 500 |
+
background: var(--bg);
|
| 501 |
+
display: flex;
|
| 502 |
+
align-items: center;
|
| 503 |
+
justify-content: center;
|
| 504 |
+
font-size: 18px;
|
| 505 |
+
flex-shrink: 0;
|
| 506 |
+
color: var(--text-light);
|
| 507 |
+
border: 1px solid var(--border);
|
| 508 |
+
}
|
| 509 |
+
.expense-info {
|
| 510 |
+
flex: 1;
|
| 511 |
+
min-width: 0;
|
| 512 |
+
}
|
| 513 |
+
.expense-desc {
|
| 514 |
+
font-weight: 600;
|
| 515 |
+
font-size: 15px;
|
| 516 |
+
margin-bottom: 2px;
|
| 517 |
+
}
|
| 518 |
+
.expense-meta {
|
| 519 |
+
font-size: 13px;
|
| 520 |
+
color: var(--text-light);
|
| 521 |
+
}
|
| 522 |
+
.expense-amount {
|
| 523 |
+
font-weight: 700;
|
| 524 |
+
font-size: 16px;
|
| 525 |
+
color: var(--text);
|
| 526 |
+
white-space: nowrap;
|
| 527 |
+
}
|
| 528 |
+
.expense-actions {
|
| 529 |
+
display: flex;
|
| 530 |
+
align-items: center;
|
| 531 |
+
gap: 8px;
|
| 532 |
+
}
|
| 533 |
+
|
| 534 |
+
/* ===== Settle Modal ===== */
|
| 535 |
+
.settle-overlay {
|
| 536 |
+
position: fixed;
|
| 537 |
+
top: 0;
|
| 538 |
+
left: 0;
|
| 539 |
+
right: 0;
|
| 540 |
+
bottom: 0;
|
| 541 |
+
background: rgba(0, 0, 0, 0.4);
|
| 542 |
+
display: flex;
|
| 543 |
+
align-items: center;
|
| 544 |
+
justify-content: center;
|
| 545 |
+
z-index: 200;
|
| 546 |
+
animation: fadeIn 0.2s;
|
| 547 |
+
}
|
| 548 |
+
.settle-modal {
|
| 549 |
+
background: var(--white);
|
| 550 |
+
border-radius: var(--radius);
|
| 551 |
+
box-shadow: var(--shadow-lg);
|
| 552 |
+
width: 100%;
|
| 553 |
+
max-width: 420px;
|
| 554 |
+
margin: 20px;
|
| 555 |
+
animation: slideUp 0.25s;
|
| 556 |
+
}
|
| 557 |
+
.settle-modal .card-header {
|
| 558 |
+
border-bottom: 1px solid var(--border-light);
|
| 559 |
+
}
|
| 560 |
+
.settle-modal .card-body {
|
| 561 |
+
padding: 24px;
|
| 562 |
+
}
|
| 563 |
+
.settle-actions {
|
| 564 |
+
display: flex;
|
| 565 |
+
gap: 10px;
|
| 566 |
+
justify-content: flex-end;
|
| 567 |
+
padding-top: 8px;
|
| 568 |
+
}
|
| 569 |
+
|
| 570 |
+
@keyframes fadeIn {
|
| 571 |
+
from { opacity: 0; }
|
| 572 |
+
to { opacity: 1; }
|
| 573 |
+
}
|
| 574 |
+
@keyframes slideUp {
|
| 575 |
+
from { transform: translateY(20px); opacity: 0; }
|
| 576 |
+
to { transform: translateY(0); opacity: 1; }
|
| 577 |
+
}
|
| 578 |
+
|
| 579 |
+
/* ===== Create Group / Add Expense Page ===== */
|
| 580 |
+
.page-form {
|
| 581 |
+
max-width: 560px;
|
| 582 |
+
margin: 0 auto;
|
| 583 |
+
}
|
| 584 |
+
.page-form h1 {
|
| 585 |
+
font-size: 24px;
|
| 586 |
+
font-weight: 700;
|
| 587 |
+
margin-bottom: 24px;
|
| 588 |
+
}
|
| 589 |
+
.page-form .card-body {
|
| 590 |
+
padding: 28px;
|
| 591 |
+
}
|
| 592 |
+
.form-actions {
|
| 593 |
+
display: flex;
|
| 594 |
+
gap: 12px;
|
| 595 |
+
justify-content: flex-end;
|
| 596 |
+
margin-top: 24px;
|
| 597 |
+
}
|
| 598 |
+
|
| 599 |
+
/* ===== Back Link ===== */
|
| 600 |
+
.back-link {
|
| 601 |
+
display: inline-flex;
|
| 602 |
+
align-items: center;
|
| 603 |
+
gap: 6px;
|
| 604 |
+
font-size: 14px;
|
| 605 |
+
color: var(--text-light);
|
| 606 |
+
margin-bottom: 20px;
|
| 607 |
+
text-decoration: none;
|
| 608 |
+
}
|
| 609 |
+
.back-link:hover {
|
| 610 |
+
color: var(--primary);
|
| 611 |
+
}
|
| 612 |
+
|
| 613 |
+
/* ===== Loading & Error ===== */
|
| 614 |
+
.loading {
|
| 615 |
+
text-align: center;
|
| 616 |
+
padding: 40px;
|
| 617 |
+
color: var(--text-light);
|
| 618 |
+
font-size: 15px;
|
| 619 |
+
}
|
| 620 |
+
|
| 621 |
+
.error-msg {
|
| 622 |
+
background: var(--danger-light);
|
| 623 |
+
color: var(--danger);
|
| 624 |
+
padding: 12px 16px;
|
| 625 |
+
border-radius: var(--radius-sm);
|
| 626 |
+
font-size: 14px;
|
| 627 |
+
margin-bottom: 16px;
|
| 628 |
+
border: 1px solid rgba(231, 76, 60, 0.2);
|
| 629 |
+
}
|
| 630 |
+
|
| 631 |
+
.success-msg {
|
| 632 |
+
background: var(--primary-light);
|
| 633 |
+
color: var(--primary-dark);
|
| 634 |
+
padding: 12px 16px;
|
| 635 |
+
border-radius: var(--radius-sm);
|
| 636 |
+
font-size: 14px;
|
| 637 |
+
margin-bottom: 16px;
|
| 638 |
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { Routes, Route, Link } from 'react-router-dom';
|
| 2 |
+
import Dashboard from './components/Dashboard';
|
| 3 |
+
import GroupDetail from './components/GroupDetail';
|
| 4 |
+
import CreateGroup from './components/CreateGroup';
|
| 5 |
+
import AddExpense from './components/AddExpense';
|
| 6 |
+
|
| 7 |
+
function App() {
|
| 8 |
+
return (
|
| 9 |
+
<div className="app">
|
| 10 |
+
<header className="app-header">
|
| 11 |
+
<Link to="/" className="logo">
|
| 12 |
+
<span className="logo-icon">S</span>
|
| 13 |
+
<span className="logo-text">SplitEasy</span>
|
| 14 |
+
</Link>
|
| 15 |
+
</header>
|
| 16 |
+
<main className="app-main">
|
| 17 |
+
<Routes>
|
| 18 |
+
<Route path="/" element={<Dashboard />} />
|
| 19 |
+
<Route path="/groups/:id" element={<GroupDetail />} />
|
| 20 |
+
<Route path="/create-group" element={<CreateGroup />} />
|
| 21 |
+
<Route path="/add-expense/:groupId" element={<AddExpense />} />
|
| 22 |
+
</Routes>
|
| 23 |
+
</main>
|
| 24 |
+
</div>
|
| 25 |
+
);
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
export default App;
|
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Use VITE_API_URL if set (e.g. by dashboard proxy), otherwise fall back to direct localhost.
|
| 2 |
+
const BASE_URL = import.meta.env.VITE_API_URL || `http://localhost:${import.meta.env.VITE_API_PORT || 5001}/api`;
|
| 3 |
+
|
| 4 |
+
async function request(path, options = {}) {
|
| 5 |
+
const res = await fetch(`${BASE_URL}${path}`, {
|
| 6 |
+
headers: { 'Content-Type': 'application/json' },
|
| 7 |
+
...options,
|
| 8 |
+
});
|
| 9 |
+
if (!res.ok) {
|
| 10 |
+
const err = await res.json().catch(() => ({ error: res.statusText }));
|
| 11 |
+
throw new Error(err.error || 'Request failed');
|
| 12 |
+
}
|
| 13 |
+
return res.json();
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
export function getUsers() {
|
| 17 |
+
return request('/users');
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
export function createUser(name, email) {
|
| 21 |
+
return request('/users', {
|
| 22 |
+
method: 'POST',
|
| 23 |
+
body: JSON.stringify({ name, email }),
|
| 24 |
+
});
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
export function getGroups() {
|
| 28 |
+
return request('/groups');
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
export function createGroup(name, memberIds) {
|
| 32 |
+
return request('/groups', {
|
| 33 |
+
method: 'POST',
|
| 34 |
+
body: JSON.stringify({ name, member_ids: memberIds }),
|
| 35 |
+
});
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
export function getGroupDetail(groupId) {
|
| 39 |
+
return request(`/groups/${groupId}`);
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
export function getGroupBalances(groupId) {
|
| 43 |
+
return request(`/groups/${groupId}/balances`);
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
export function createExpense(groupId, description, amount, paidById, splitAmong) {
|
| 47 |
+
return request(`/groups/${groupId}/expenses`, {
|
| 48 |
+
method: 'POST',
|
| 49 |
+
body: JSON.stringify({
|
| 50 |
+
description,
|
| 51 |
+
amount: parseFloat(amount),
|
| 52 |
+
paid_by: paidById,
|
| 53 |
+
split_among: splitAmong,
|
| 54 |
+
}),
|
| 55 |
+
});
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
export function deleteExpense(groupId, expenseId) {
|
| 59 |
+
return request(`/expenses/${expenseId}`, {
|
| 60 |
+
method: 'DELETE',
|
| 61 |
+
});
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
export function settleUp(groupId, payerId, payeeId, amount) {
|
| 65 |
+
return request(`/groups/${groupId}/settle`, {
|
| 66 |
+
method: 'POST',
|
| 67 |
+
body: JSON.stringify({
|
| 68 |
+
payer_id: payerId,
|
| 69 |
+
payee_id: payeeId,
|
| 70 |
+
amount: parseFloat(amount),
|
| 71 |
+
}),
|
| 72 |
+
});
|
| 73 |
+
}
|
|
Git LFS Details
|
|
|
|
|
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { useState, useEffect } from 'react';
|
| 2 |
+
import { useNavigate, Link } from 'react-router-dom';
|
| 3 |
+
import { getUsers, createGroup } from '../api';
|
| 4 |
+
|
| 5 |
+
export default function CreateGroup() {
|
| 6 |
+
const navigate = useNavigate();
|
| 7 |
+
const [users, setUsers] = useState([]);
|
| 8 |
+
const [name, setName] = useState('');
|
| 9 |
+
const [selectedIds, setSelectedIds] = useState([]);
|
| 10 |
+
const [error, setError] = useState('');
|
| 11 |
+
const [loading, setLoading] = useState(false);
|
| 12 |
+
|
| 13 |
+
useEffect(() => {
|
| 14 |
+
getUsers()
|
| 15 |
+
.then(setUsers)
|
| 16 |
+
.catch((e) => setError(e.message));
|
| 17 |
+
}, []);
|
| 18 |
+
|
| 19 |
+
function toggleUser(id) {
|
| 20 |
+
setSelectedIds((prev) =>
|
| 21 |
+
prev.includes(id) ? prev.filter((x) => x !== id) : [...prev, id]
|
| 22 |
+
);
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
async function handleSubmit(e) {
|
| 26 |
+
e.preventDefault();
|
| 27 |
+
setError('');
|
| 28 |
+
if (!name.trim()) {
|
| 29 |
+
setError('Group name is required');
|
| 30 |
+
return;
|
| 31 |
+
}
|
| 32 |
+
if (selectedIds.length < 2) {
|
| 33 |
+
setError('Select at least 2 members');
|
| 34 |
+
return;
|
| 35 |
+
}
|
| 36 |
+
setLoading(true);
|
| 37 |
+
try {
|
| 38 |
+
await createGroup(name.trim(), selectedIds);
|
| 39 |
+
navigate('/');
|
| 40 |
+
} catch (e) {
|
| 41 |
+
setError(e.message);
|
| 42 |
+
} finally {
|
| 43 |
+
setLoading(false);
|
| 44 |
+
}
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
return (
|
| 48 |
+
<div className="page-form">
|
| 49 |
+
<Link to="/" className="back-link">
|
| 50 |
+
← Back to Dashboard
|
| 51 |
+
</Link>
|
| 52 |
+
<h1>Create Group</h1>
|
| 53 |
+
|
| 54 |
+
<div className="card">
|
| 55 |
+
<div className="card-body">
|
| 56 |
+
{error && <div className="error-msg">{error}</div>}
|
| 57 |
+
|
| 58 |
+
<form onSubmit={handleSubmit}>
|
| 59 |
+
<div className="form-group">
|
| 60 |
+
<label>Group Name</label>
|
| 61 |
+
<input
|
| 62 |
+
className="form-input"
|
| 63 |
+
type="text"
|
| 64 |
+
placeholder="e.g. Trip to Hawaii"
|
| 65 |
+
value={name}
|
| 66 |
+
onChange={(e) => setName(e.target.value)}
|
| 67 |
+
required
|
| 68 |
+
/>
|
| 69 |
+
</div>
|
| 70 |
+
|
| 71 |
+
<div className="form-group">
|
| 72 |
+
<label>Select Members</label>
|
| 73 |
+
{users.length === 0 ? (
|
| 74 |
+
<p style={{ color: 'var(--text-light)', fontSize: 14 }}>
|
| 75 |
+
No users available. Add users from the dashboard first.
|
| 76 |
+
</p>
|
| 77 |
+
) : (
|
| 78 |
+
<div className="checkbox-list">
|
| 79 |
+
{users.map((u) => (
|
| 80 |
+
<label
|
| 81 |
+
key={u.id}
|
| 82 |
+
className={`checkbox-item ${selectedIds.includes(u.id) ? 'checked' : ''}`}
|
| 83 |
+
>
|
| 84 |
+
<input
|
| 85 |
+
type="checkbox"
|
| 86 |
+
checked={selectedIds.includes(u.id)}
|
| 87 |
+
onChange={() => toggleUser(u.id)}
|
| 88 |
+
/>
|
| 89 |
+
{u.name}
|
| 90 |
+
</label>
|
| 91 |
+
))}
|
| 92 |
+
</div>
|
| 93 |
+
)}
|
| 94 |
+
</div>
|
| 95 |
+
|
| 96 |
+
<div className="form-actions">
|
| 97 |
+
<Link to="/" className="btn btn-secondary">
|
| 98 |
+
Cancel
|
| 99 |
+
</Link>
|
| 100 |
+
<button
|
| 101 |
+
type="submit"
|
| 102 |
+
className="btn btn-primary"
|
| 103 |
+
disabled={loading}
|
| 104 |
+
>
|
| 105 |
+
{loading ? 'Creating...' : 'Create Group'}
|
| 106 |
+
</button>
|
| 107 |
+
</div>
|
| 108 |
+
</form>
|
| 109 |
+
</div>
|
| 110 |
+
</div>
|
| 111 |
+
</div>
|
| 112 |
+
);
|
| 113 |
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { useState, useEffect } from 'react';
|
| 2 |
+
import { Link } from 'react-router-dom';
|
| 3 |
+
import { getUsers, createUser, getGroups } from '../api';
|
| 4 |
+
|
| 5 |
+
export default function Dashboard() {
|
| 6 |
+
const [users, setUsers] = useState([]);
|
| 7 |
+
const [groups, setGroups] = useState([]);
|
| 8 |
+
const [name, setName] = useState('');
|
| 9 |
+
const [email, setEmail] = useState('');
|
| 10 |
+
const [error, setError] = useState('');
|
| 11 |
+
const [loading, setLoading] = useState(true);
|
| 12 |
+
|
| 13 |
+
useEffect(() => {
|
| 14 |
+
loadData();
|
| 15 |
+
}, []);
|
| 16 |
+
|
| 17 |
+
async function loadData() {
|
| 18 |
+
try {
|
| 19 |
+
const [u, g] = await Promise.all([getUsers(), getGroups()]);
|
| 20 |
+
setUsers(u);
|
| 21 |
+
setGroups(g);
|
| 22 |
+
} catch (e) {
|
| 23 |
+
setError(e.message);
|
| 24 |
+
} finally {
|
| 25 |
+
setLoading(false);
|
| 26 |
+
}
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
async function handleAddUser(e) {
|
| 30 |
+
e.preventDefault();
|
| 31 |
+
setError('');
|
| 32 |
+
if (!name.trim() || !email.trim()) return;
|
| 33 |
+
try {
|
| 34 |
+
const user = await createUser(name.trim(), email.trim());
|
| 35 |
+
setUsers((prev) => [...prev, user]);
|
| 36 |
+
setName('');
|
| 37 |
+
setEmail('');
|
| 38 |
+
} catch (e) {
|
| 39 |
+
setError(e.message);
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
if (loading) return <div className="loading">Loading...</div>;
|
| 44 |
+
|
| 45 |
+
return (
|
| 46 |
+
<div>
|
| 47 |
+
<div
|
| 48 |
+
style={{
|
| 49 |
+
display: 'flex',
|
| 50 |
+
alignItems: 'center',
|
| 51 |
+
justifyContent: 'space-between',
|
| 52 |
+
marginBottom: 24,
|
| 53 |
+
}}
|
| 54 |
+
>
|
| 55 |
+
<h1 style={{ fontSize: 28, fontWeight: 700 }}>Dashboard</h1>
|
| 56 |
+
<Link to="/create-group" className="btn btn-primary">
|
| 57 |
+
+ New Group
|
| 58 |
+
</Link>
|
| 59 |
+
</div>
|
| 60 |
+
|
| 61 |
+
{error && <div className="error-msg">{error}</div>}
|
| 62 |
+
|
| 63 |
+
<div className="dashboard-grid">
|
| 64 |
+
<div>
|
| 65 |
+
<div className="section-title">Groups</div>
|
| 66 |
+
{groups.length === 0 ? (
|
| 67 |
+
<div className="card">
|
| 68 |
+
<div className="empty-state">
|
| 69 |
+
<div className="empty-state-icon">G</div>
|
| 70 |
+
<p>No groups yet. Create one to get started!</p>
|
| 71 |
+
</div>
|
| 72 |
+
</div>
|
| 73 |
+
) : (
|
| 74 |
+
<div className="groups-list">
|
| 75 |
+
{groups.map((g) => (
|
| 76 |
+
<Link
|
| 77 |
+
key={g.id}
|
| 78 |
+
to={`/groups/${g.id}`}
|
| 79 |
+
className="group-card"
|
| 80 |
+
>
|
| 81 |
+
<div className="group-card-icon">
|
| 82 |
+
{g.name.charAt(0).toUpperCase()}
|
| 83 |
+
</div>
|
| 84 |
+
<div className="group-card-info">
|
| 85 |
+
<div className="group-card-name">{g.name}</div>
|
| 86 |
+
<div className="group-card-members">
|
| 87 |
+
{g.members
|
| 88 |
+
? `${g.members.length} member${g.members.length !== 1 ? 's' : ''}`
|
| 89 |
+
: ''}
|
| 90 |
+
</div>
|
| 91 |
+
</div>
|
| 92 |
+
<div className="group-card-arrow">›</div>
|
| 93 |
+
</Link>
|
| 94 |
+
))}
|
| 95 |
+
</div>
|
| 96 |
+
)}
|
| 97 |
+
</div>
|
| 98 |
+
|
| 99 |
+
<div className="sidebar">
|
| 100 |
+
<div className="card">
|
| 101 |
+
<div className="card-header">
|
| 102 |
+
<h2>Add User</h2>
|
| 103 |
+
</div>
|
| 104 |
+
<div className="card-body">
|
| 105 |
+
<form onSubmit={handleAddUser}>
|
| 106 |
+
<div className="form-group">
|
| 107 |
+
<label>Name</label>
|
| 108 |
+
<input
|
| 109 |
+
className="form-input"
|
| 110 |
+
type="text"
|
| 111 |
+
placeholder="John Doe"
|
| 112 |
+
value={name}
|
| 113 |
+
onChange={(e) => setName(e.target.value)}
|
| 114 |
+
required
|
| 115 |
+
/>
|
| 116 |
+
</div>
|
| 117 |
+
<div className="form-group">
|
| 118 |
+
<label>Email</label>
|
| 119 |
+
<input
|
| 120 |
+
className="form-input"
|
| 121 |
+
type="email"
|
| 122 |
+
placeholder="john@example.com"
|
| 123 |
+
value={email}
|
| 124 |
+
onChange={(e) => setEmail(e.target.value)}
|
| 125 |
+
required
|
| 126 |
+
/>
|
| 127 |
+
</div>
|
| 128 |
+
<button className="btn btn-primary" style={{ width: '100%' }}>
|
| 129 |
+
Add User
|
| 130 |
+
</button>
|
| 131 |
+
</form>
|
| 132 |
+
</div>
|
| 133 |
+
</div>
|
| 134 |
+
|
| 135 |
+
<div className="card">
|
| 136 |
+
<div className="card-header">
|
| 137 |
+
<h2>Users ({users.length})</h2>
|
| 138 |
+
</div>
|
| 139 |
+
<div className="card-body">
|
| 140 |
+
{users.length === 0 ? (
|
| 141 |
+
<p style={{ color: 'var(--text-light)', fontSize: 14 }}>
|
| 142 |
+
No users yet.
|
| 143 |
+
</p>
|
| 144 |
+
) : (
|
| 145 |
+
<ul className="user-list">
|
| 146 |
+
{users.map((u) => (
|
| 147 |
+
<li key={u.id}>
|
| 148 |
+
<div className="user-avatar">
|
| 149 |
+
{u.name.charAt(0).toUpperCase()}
|
| 150 |
+
</div>
|
| 151 |
+
<div>
|
| 152 |
+
<div className="user-info-name">{u.name}</div>
|
| 153 |
+
<div className="user-info-email">{u.email}</div>
|
| 154 |
+
</div>
|
| 155 |
+
</li>
|
| 156 |
+
))}
|
| 157 |
+
</ul>
|
| 158 |
+
)}
|
| 159 |
+
</div>
|
| 160 |
+
</div>
|
| 161 |
+
</div>
|
| 162 |
+
</div>
|
| 163 |
+
</div>
|
| 164 |
+
);
|
| 165 |
+
}
|
|
@@ -0,0 +1,280 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { useState, useEffect, useCallback } from 'react';
|
| 2 |
+
import { useParams, Link } from 'react-router-dom';
|
| 3 |
+
import {
|
| 4 |
+
getGroupDetail,
|
| 5 |
+
getGroupBalances,
|
| 6 |
+
deleteExpense,
|
| 7 |
+
settleUp,
|
| 8 |
+
} from '../api';
|
| 9 |
+
|
| 10 |
+
export default function GroupDetail() {
|
| 11 |
+
const { id } = useParams();
|
| 12 |
+
const [group, setGroup] = useState(null);
|
| 13 |
+
const [balances, setBalances] = useState([]);
|
| 14 |
+
const [loading, setLoading] = useState(true);
|
| 15 |
+
const [error, setError] = useState('');
|
| 16 |
+
const [showSettle, setShowSettle] = useState(false);
|
| 17 |
+
const [settlePayer, setSettlePayer] = useState('');
|
| 18 |
+
const [settlePayee, setSettlePayee] = useState('');
|
| 19 |
+
const [settleAmount, setSettleAmount] = useState('');
|
| 20 |
+
const [settleLoading, setSettleLoading] = useState(false);
|
| 21 |
+
|
| 22 |
+
const loadData = useCallback(async () => {
|
| 23 |
+
try {
|
| 24 |
+
const [g, b] = await Promise.all([
|
| 25 |
+
getGroupDetail(id),
|
| 26 |
+
getGroupBalances(id),
|
| 27 |
+
]);
|
| 28 |
+
setGroup(g);
|
| 29 |
+
setBalances(b.transactions || []);
|
| 30 |
+
} catch (e) {
|
| 31 |
+
setError(e.message);
|
| 32 |
+
} finally {
|
| 33 |
+
setLoading(false);
|
| 34 |
+
}
|
| 35 |
+
}, [id]);
|
| 36 |
+
|
| 37 |
+
useEffect(() => {
|
| 38 |
+
loadData();
|
| 39 |
+
}, [loadData]);
|
| 40 |
+
|
| 41 |
+
async function handleDelete(expenseId) {
|
| 42 |
+
if (!confirm('Delete this expense?')) return;
|
| 43 |
+
try {
|
| 44 |
+
await deleteExpense(id, expenseId);
|
| 45 |
+
await loadData();
|
| 46 |
+
} catch (e) {
|
| 47 |
+
setError(e.message);
|
| 48 |
+
}
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
async function handleSettle(e) {
|
| 52 |
+
e.preventDefault();
|
| 53 |
+
if (!settlePayer || !settlePayee || !settleAmount) return;
|
| 54 |
+
if (settlePayer === settlePayee) {
|
| 55 |
+
setError('Payer and payee must be different');
|
| 56 |
+
return;
|
| 57 |
+
}
|
| 58 |
+
setSettleLoading(true);
|
| 59 |
+
setError('');
|
| 60 |
+
try {
|
| 61 |
+
await settleUp(id, parseInt(settlePayer), parseInt(settlePayee), settleAmount);
|
| 62 |
+
setShowSettle(false);
|
| 63 |
+
setSettlePayer('');
|
| 64 |
+
setSettlePayee('');
|
| 65 |
+
setSettleAmount('');
|
| 66 |
+
await loadData();
|
| 67 |
+
} catch (e) {
|
| 68 |
+
setError(e.message);
|
| 69 |
+
} finally {
|
| 70 |
+
setSettleLoading(false);
|
| 71 |
+
}
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
if (loading) return <div className="loading">Loading...</div>;
|
| 75 |
+
if (!group) return <div className="error-msg">Group not found</div>;
|
| 76 |
+
|
| 77 |
+
const members = group.members || [];
|
| 78 |
+
const expenses = group.expenses || [];
|
| 79 |
+
|
| 80 |
+
function getMemberName(memberId) {
|
| 81 |
+
const m = members.find((m) => m.id === memberId);
|
| 82 |
+
return m ? m.name : `User #${memberId}`;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
function formatDate(dateStr) {
|
| 86 |
+
if (!dateStr) return '';
|
| 87 |
+
const d = new Date(dateStr);
|
| 88 |
+
return d.toLocaleDateString('en-US', {
|
| 89 |
+
month: 'short',
|
| 90 |
+
day: 'numeric',
|
| 91 |
+
year: 'numeric',
|
| 92 |
+
});
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
return (
|
| 96 |
+
<div>
|
| 97 |
+
<Link to="/" className="back-link">
|
| 98 |
+
← Back to Dashboard
|
| 99 |
+
</Link>
|
| 100 |
+
|
| 101 |
+
{error && <div className="error-msg">{error}</div>}
|
| 102 |
+
|
| 103 |
+
<div className="group-header">
|
| 104 |
+
<h1>{group.name}</h1>
|
| 105 |
+
<div className="group-header-actions">
|
| 106 |
+
<Link to={`/add-expense/${id}`} className="btn btn-primary">
|
| 107 |
+
+ Add Expense
|
| 108 |
+
</Link>
|
| 109 |
+
<button
|
| 110 |
+
className="btn btn-orange"
|
| 111 |
+
onClick={() => setShowSettle(true)}
|
| 112 |
+
>
|
| 113 |
+
Settle Up
|
| 114 |
+
</button>
|
| 115 |
+
</div>
|
| 116 |
+
</div>
|
| 117 |
+
|
| 118 |
+
<div className="members-bar">
|
| 119 |
+
{members.map((m) => (
|
| 120 |
+
<div key={m.id} className="member-chip">
|
| 121 |
+
<div className="user-avatar">
|
| 122 |
+
{m.name.charAt(0).toUpperCase()}
|
| 123 |
+
</div>
|
| 124 |
+
{m.name}
|
| 125 |
+
</div>
|
| 126 |
+
))}
|
| 127 |
+
</div>
|
| 128 |
+
|
| 129 |
+
<div className="detail-grid">
|
| 130 |
+
<div className="card">
|
| 131 |
+
<div className="card-header">
|
| 132 |
+
<h2>Balances</h2>
|
| 133 |
+
</div>
|
| 134 |
+
<div className="card-body">
|
| 135 |
+
{balances.length === 0 ? (
|
| 136 |
+
<p style={{ color: 'var(--text-light)', fontSize: 14 }}>
|
| 137 |
+
No balances to show. Add an expense to get started.
|
| 138 |
+
</p>
|
| 139 |
+
) : (
|
| 140 |
+
balances.map((b, i) => (
|
| 141 |
+
<div key={i} className="balance-item">
|
| 142 |
+
<div>
|
| 143 |
+
<span className="balance-owes">
|
| 144 |
+
{b.from_user_name || b.from_name || getMemberName(b.from_user_id || b.from_id || b.from)}
|
| 145 |
+
</span>
|
| 146 |
+
<span className="balance-arrow"> → </span>
|
| 147 |
+
<span className="balance-owed">
|
| 148 |
+
{b.to_user_name || b.to_name || getMemberName(b.to_user_id || b.to_id || b.to)}
|
| 149 |
+
</span>
|
| 150 |
+
</div>
|
| 151 |
+
<div className="balance-amount-negative">
|
| 152 |
+
${parseFloat(b.amount).toFixed(2)}
|
| 153 |
+
</div>
|
| 154 |
+
</div>
|
| 155 |
+
))
|
| 156 |
+
)}
|
| 157 |
+
</div>
|
| 158 |
+
</div>
|
| 159 |
+
|
| 160 |
+
<div className="card">
|
| 161 |
+
<div className="card-header">
|
| 162 |
+
<h2>Expenses ({expenses.length})</h2>
|
| 163 |
+
</div>
|
| 164 |
+
<div className="card-body">
|
| 165 |
+
{expenses.length === 0 ? (
|
| 166 |
+
<p style={{ color: 'var(--text-light)', fontSize: 14 }}>
|
| 167 |
+
No expenses yet.
|
| 168 |
+
</p>
|
| 169 |
+
) : (
|
| 170 |
+
expenses.map((exp) => (
|
| 171 |
+
<div key={exp.id} className="expense-item">
|
| 172 |
+
<div className="expense-icon">$</div>
|
| 173 |
+
<div className="expense-info">
|
| 174 |
+
<div className="expense-desc">{exp.description}</div>
|
| 175 |
+
<div className="expense-meta">
|
| 176 |
+
Paid by{' '}
|
| 177 |
+
<strong>
|
| 178 |
+
{exp.paid_by_name || getMemberName(exp.paid_by_id || exp.paid_by)}
|
| 179 |
+
</strong>{' '}
|
| 180 |
+
{exp.created_at && `on ${formatDate(exp.created_at)}`}
|
| 181 |
+
</div>
|
| 182 |
+
</div>
|
| 183 |
+
<div className="expense-actions">
|
| 184 |
+
<span className="expense-amount">
|
| 185 |
+
${parseFloat(exp.amount).toFixed(2)}
|
| 186 |
+
</span>
|
| 187 |
+
<button
|
| 188 |
+
className="btn btn-danger btn-sm"
|
| 189 |
+
onClick={() => handleDelete(exp.id)}
|
| 190 |
+
>
|
| 191 |
+
Delete
|
| 192 |
+
</button>
|
| 193 |
+
</div>
|
| 194 |
+
</div>
|
| 195 |
+
))
|
| 196 |
+
)}
|
| 197 |
+
</div>
|
| 198 |
+
</div>
|
| 199 |
+
</div>
|
| 200 |
+
|
| 201 |
+
{showSettle && (
|
| 202 |
+
<div className="settle-overlay" onClick={() => setShowSettle(false)}>
|
| 203 |
+
<div
|
| 204 |
+
className="settle-modal"
|
| 205 |
+
onClick={(e) => e.stopPropagation()}
|
| 206 |
+
>
|
| 207 |
+
<div className="card-header">
|
| 208 |
+
<h2>Settle Up</h2>
|
| 209 |
+
</div>
|
| 210 |
+
<div className="card-body">
|
| 211 |
+
<form onSubmit={handleSettle}>
|
| 212 |
+
<div className="form-group">
|
| 213 |
+
<label>Who is paying?</label>
|
| 214 |
+
<select
|
| 215 |
+
className="form-input"
|
| 216 |
+
value={settlePayer}
|
| 217 |
+
onChange={(e) => setSettlePayer(e.target.value)}
|
| 218 |
+
required
|
| 219 |
+
>
|
| 220 |
+
<option value="">Select payer...</option>
|
| 221 |
+
{members.map((m) => (
|
| 222 |
+
<option key={m.id} value={m.id}>
|
| 223 |
+
{m.name}
|
| 224 |
+
</option>
|
| 225 |
+
))}
|
| 226 |
+
</select>
|
| 227 |
+
</div>
|
| 228 |
+
<div className="form-group">
|
| 229 |
+
<label>Who is receiving?</label>
|
| 230 |
+
<select
|
| 231 |
+
className="form-input"
|
| 232 |
+
value={settlePayee}
|
| 233 |
+
onChange={(e) => setSettlePayee(e.target.value)}
|
| 234 |
+
required
|
| 235 |
+
>
|
| 236 |
+
<option value="">Select payee...</option>
|
| 237 |
+
{members.map((m) => (
|
| 238 |
+
<option key={m.id} value={m.id}>
|
| 239 |
+
{m.name}
|
| 240 |
+
</option>
|
| 241 |
+
))}
|
| 242 |
+
</select>
|
| 243 |
+
</div>
|
| 244 |
+
<div className="form-group">
|
| 245 |
+
<label>Amount</label>
|
| 246 |
+
<input
|
| 247 |
+
className="form-input"
|
| 248 |
+
type="number"
|
| 249 |
+
step="0.01"
|
| 250 |
+
min="0.01"
|
| 251 |
+
placeholder="0.00"
|
| 252 |
+
value={settleAmount}
|
| 253 |
+
onChange={(e) => setSettleAmount(e.target.value)}
|
| 254 |
+
required
|
| 255 |
+
/>
|
| 256 |
+
</div>
|
| 257 |
+
<div className="settle-actions">
|
| 258 |
+
<button
|
| 259 |
+
type="button"
|
| 260 |
+
className="btn btn-secondary"
|
| 261 |
+
onClick={() => setShowSettle(false)}
|
| 262 |
+
>
|
| 263 |
+
Cancel
|
| 264 |
+
</button>
|
| 265 |
+
<button
|
| 266 |
+
type="submit"
|
| 267 |
+
className="btn btn-primary"
|
| 268 |
+
disabled={settleLoading}
|
| 269 |
+
>
|
| 270 |
+
{settleLoading ? 'Settling...' : 'Settle Up'}
|
| 271 |
+
</button>
|
| 272 |
+
</div>
|
| 273 |
+
</form>
|
| 274 |
+
</div>
|
| 275 |
+
</div>
|
| 276 |
+
</div>
|
| 277 |
+
)}
|
| 278 |
+
</div>
|
| 279 |
+
);
|
| 280 |
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
:root {
|
| 2 |
+
--text: #6b6375;
|
| 3 |
+
--text-h: #08060d;
|
| 4 |
+
--bg: #fff;
|
| 5 |
+
--border: #e5e4e7;
|
| 6 |
+
--code-bg: #f4f3ec;
|
| 7 |
+
--accent: #aa3bff;
|
| 8 |
+
--accent-bg: rgba(170, 59, 255, 0.1);
|
| 9 |
+
--accent-border: rgba(170, 59, 255, 0.5);
|
| 10 |
+
--social-bg: rgba(244, 243, 236, 0.5);
|
| 11 |
+
--shadow:
|
| 12 |
+
rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px;
|
| 13 |
+
|
| 14 |
+
--sans: system-ui, 'Segoe UI', Roboto, sans-serif;
|
| 15 |
+
--heading: system-ui, 'Segoe UI', Roboto, sans-serif;
|
| 16 |
+
--mono: ui-monospace, Consolas, monospace;
|
| 17 |
+
|
| 18 |
+
font: 18px/145% var(--sans);
|
| 19 |
+
letter-spacing: 0.18px;
|
| 20 |
+
color-scheme: light dark;
|
| 21 |
+
color: var(--text);
|
| 22 |
+
background: var(--bg);
|
| 23 |
+
font-synthesis: none;
|
| 24 |
+
text-rendering: optimizeLegibility;
|
| 25 |
+
-webkit-font-smoothing: antialiased;
|
| 26 |
+
-moz-osx-font-smoothing: grayscale;
|
| 27 |
+
|
| 28 |
+
@media (max-width: 1024px) {
|
| 29 |
+
font-size: 16px;
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
@media (prefers-color-scheme: dark) {
|
| 34 |
+
:root {
|
| 35 |
+
--text: #9ca3af;
|
| 36 |
+
--text-h: #f3f4f6;
|
| 37 |
+
--bg: #16171d;
|
| 38 |
+
--border: #2e303a;
|
| 39 |
+
--code-bg: #1f2028;
|
| 40 |
+
--accent: #c084fc;
|
| 41 |
+
--accent-bg: rgba(192, 132, 252, 0.15);
|
| 42 |
+
--accent-border: rgba(192, 132, 252, 0.5);
|
| 43 |
+
--social-bg: rgba(47, 48, 58, 0.5);
|
| 44 |
+
--shadow:
|
| 45 |
+
rgba(0, 0, 0, 0.4) 0 10px 15px -3px, rgba(0, 0, 0, 0.25) 0 4px 6px -2px;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
#social .button-icon {
|
| 49 |
+
filter: invert(1) brightness(2);
|
| 50 |
+
}
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
body {
|
| 54 |
+
margin: 0;
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
#root {
|
| 58 |
+
width: 1126px;
|
| 59 |
+
max-width: 100%;
|
| 60 |
+
margin: 0 auto;
|
| 61 |
+
text-align: center;
|
| 62 |
+
border-inline: 1px solid var(--border);
|
| 63 |
+
min-height: 100svh;
|
| 64 |
+
display: flex;
|
| 65 |
+
flex-direction: column;
|
| 66 |
+
box-sizing: border-box;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
h1,
|
| 70 |
+
h2 {
|
| 71 |
+
font-family: var(--heading);
|
| 72 |
+
font-weight: 500;
|
| 73 |
+
color: var(--text-h);
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
h1 {
|
| 77 |
+
font-size: 56px;
|
| 78 |
+
letter-spacing: -1.68px;
|
| 79 |
+
margin: 32px 0;
|
| 80 |
+
@media (max-width: 1024px) {
|
| 81 |
+
font-size: 36px;
|
| 82 |
+
margin: 20px 0;
|
| 83 |
+
}
|
| 84 |
+
}
|
| 85 |
+
h2 {
|
| 86 |
+
font-size: 24px;
|
| 87 |
+
line-height: 118%;
|
| 88 |
+
letter-spacing: -0.24px;
|
| 89 |
+
margin: 0 0 8px;
|
| 90 |
+
@media (max-width: 1024px) {
|
| 91 |
+
font-size: 20px;
|
| 92 |
+
}
|
| 93 |
+
}
|
| 94 |
+
p {
|
| 95 |
+
margin: 0;
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
code,
|
| 99 |
+
.counter {
|
| 100 |
+
font-family: var(--mono);
|
| 101 |
+
display: inline-flex;
|
| 102 |
+
border-radius: 4px;
|
| 103 |
+
color: var(--text-h);
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
code {
|
| 107 |
+
font-size: 15px;
|
| 108 |
+
line-height: 135%;
|
| 109 |
+
padding: 4px 8px;
|
| 110 |
+
background: var(--code-bg);
|
| 111 |
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { StrictMode } from 'react';
|
| 2 |
+
import { createRoot } from 'react-dom/client';
|
| 3 |
+
import { BrowserRouter } from 'react-router-dom';
|
| 4 |
+
import App from './App.jsx';
|
| 5 |
+
import './App.css';
|
| 6 |
+
|
| 7 |
+
createRoot(document.getElementById('root')).render(
|
| 8 |
+
<StrictMode>
|
| 9 |
+
<BrowserRouter basename={import.meta.env.BASE_URL}>
|
| 10 |
+
<App />
|
| 11 |
+
</BrowserRouter>
|
| 12 |
+
</StrictMode>
|
| 13 |
+
);
|
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { defineConfig } from 'vite'
|
| 2 |
+
import react from '@vitejs/plugin-react'
|
| 3 |
+
|
| 4 |
+
// https://vite.dev/config/
|
| 5 |
+
export default defineConfig({
|
| 6 |
+
plugins: [react()],
|
| 7 |
+
})
|
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
frameworks:
|
| 2 |
+
frontend: "React 19 + React Router"
|
| 3 |
+
backend: "Flask + SQLAlchemy"
|
| 4 |
+
database: "SQLite"
|
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
|
| 3 |
+
DIR="$(cd "$(dirname "$0")" && pwd)"
|
| 4 |
+
|
| 5 |
+
PIDS=()
|
| 6 |
+
cleanup() {
|
| 7 |
+
for pid in "${PIDS[@]}"; do
|
| 8 |
+
kill "$pid" 2>/dev/null
|
| 9 |
+
done
|
| 10 |
+
}
|
| 11 |
+
trap cleanup EXIT
|
| 12 |
+
|
| 13 |
+
# Start backend
|
| 14 |
+
(
|
| 15 |
+
source "$DIR/.venv/bin/activate"
|
| 16 |
+
cd "$DIR/backend"
|
| 17 |
+
python run.py
|
| 18 |
+
) &
|
| 19 |
+
PIDS+=($!)
|
| 20 |
+
|
| 21 |
+
# Start frontend
|
| 22 |
+
(
|
| 23 |
+
cd "$DIR/frontend"
|
| 24 |
+
npm run dev
|
| 25 |
+
) &
|
| 26 |
+
PIDS+=($!)
|
| 27 |
+
|
| 28 |
+
wait
|
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { useState, useEffect } from 'react';
|
| 2 |
+
import { useParams, useNavigate, Link } from 'react-router-dom';
|
| 3 |
+
import { getGroupDetail, createExpense } from '../api';
|
| 4 |
+
|
| 5 |
+
// VARIANT (screenshot2): deliberate visual quirks vs. golden:
|
| 6 |
+
// - Summary panel above the form
|
| 7 |
+
// - Amount field BEFORE Description (swapped)
|
| 8 |
+
// - "Split among" members in a 2-column grid
|
| 9 |
+
// - Primary "Add Expense" button on the LEFT, Cancel on the RIGHT (swapped)
|
| 10 |
+
|
| 11 |
+
export default function AddExpense() {
|
| 12 |
+
const { groupId } = useParams();
|
| 13 |
+
const navigate = useNavigate();
|
| 14 |
+
const [group, setGroup] = useState(null);
|
| 15 |
+
const [description, setDescription] = useState('');
|
| 16 |
+
const [amount, setAmount] = useState('');
|
| 17 |
+
const [paidBy, setPaidBy] = useState('');
|
| 18 |
+
const [splitAmong, setSplitAmong] = useState([]);
|
| 19 |
+
const [error, setError] = useState('');
|
| 20 |
+
const [loading, setLoading] = useState(false);
|
| 21 |
+
|
| 22 |
+
useEffect(() => {
|
| 23 |
+
getGroupDetail(groupId)
|
| 24 |
+
.then((g) => {
|
| 25 |
+
setGroup(g);
|
| 26 |
+
const members = g.members || [];
|
| 27 |
+
setSplitAmong(members.map((m) => m.id));
|
| 28 |
+
if (members.length > 0) setPaidBy(String(members[0].id));
|
| 29 |
+
})
|
| 30 |
+
.catch((e) => setError(e.message));
|
| 31 |
+
}, [groupId]);
|
| 32 |
+
|
| 33 |
+
function toggleSplit(id) {
|
| 34 |
+
setSplitAmong((prev) =>
|
| 35 |
+
prev.includes(id) ? prev.filter((x) => x !== id) : [...prev, id]
|
| 36 |
+
);
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
async function handleSubmit(e) {
|
| 40 |
+
e.preventDefault();
|
| 41 |
+
setError('');
|
| 42 |
+
if (!description.trim() || !amount || !paidBy) {
|
| 43 |
+
setError('All fields are required');
|
| 44 |
+
return;
|
| 45 |
+
}
|
| 46 |
+
if (splitAmong.length === 0) {
|
| 47 |
+
setError('Select at least one person to split with');
|
| 48 |
+
return;
|
| 49 |
+
}
|
| 50 |
+
setLoading(true);
|
| 51 |
+
try {
|
| 52 |
+
await createExpense(
|
| 53 |
+
groupId,
|
| 54 |
+
description.trim(),
|
| 55 |
+
amount,
|
| 56 |
+
parseInt(paidBy),
|
| 57 |
+
splitAmong
|
| 58 |
+
);
|
| 59 |
+
navigate(`/groups/${groupId}`);
|
| 60 |
+
} catch (e) {
|
| 61 |
+
setError(e.message);
|
| 62 |
+
} finally {
|
| 63 |
+
setLoading(false);
|
| 64 |
+
}
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
if (!group) {
|
| 68 |
+
return error ? (
|
| 69 |
+
<div className="error-msg">{error}</div>
|
| 70 |
+
) : (
|
| 71 |
+
<div className="loading">Loading...</div>
|
| 72 |
+
);
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
const members = group.members || [];
|
| 76 |
+
|
| 77 |
+
return (
|
| 78 |
+
<div className="page-form">
|
| 79 |
+
<Link to={`/groups/${groupId}`} className="back-link">
|
| 80 |
+
← Back to {group.name}
|
| 81 |
+
</Link>
|
| 82 |
+
<h1>Add Expense</h1>
|
| 83 |
+
|
| 84 |
+
<div
|
| 85 |
+
data-testid="summary-panel"
|
| 86 |
+
style={{
|
| 87 |
+
padding: '12px 16px',
|
| 88 |
+
background: 'var(--bg-soft, #f4f5f9)',
|
| 89 |
+
borderRadius: 8,
|
| 90 |
+
marginBottom: 16,
|
| 91 |
+
fontSize: 14,
|
| 92 |
+
color: 'var(--text-light, #555)',
|
| 93 |
+
}}
|
| 94 |
+
>
|
| 95 |
+
<strong>{group.name}</strong> · {members.length} members
|
| 96 |
+
</div>
|
| 97 |
+
|
| 98 |
+
<div className="card">
|
| 99 |
+
<div className="card-body">
|
| 100 |
+
{error && <div className="error-msg">{error}</div>}
|
| 101 |
+
|
| 102 |
+
<form onSubmit={handleSubmit}>
|
| 103 |
+
<div className="form-group">
|
| 104 |
+
<label>Amount ($)</label>
|
| 105 |
+
<input
|
| 106 |
+
className="form-input"
|
| 107 |
+
type="number"
|
| 108 |
+
step="0.01"
|
| 109 |
+
min="0.01"
|
| 110 |
+
placeholder="0.00"
|
| 111 |
+
value={amount}
|
| 112 |
+
onChange={(e) => setAmount(e.target.value)}
|
| 113 |
+
required
|
| 114 |
+
/>
|
| 115 |
+
</div>
|
| 116 |
+
|
| 117 |
+
<div className="form-group">
|
| 118 |
+
<label>Description</label>
|
| 119 |
+
<input
|
| 120 |
+
className="form-input"
|
| 121 |
+
type="text"
|
| 122 |
+
placeholder="e.g. Dinner at the restaurant"
|
| 123 |
+
value={description}
|
| 124 |
+
onChange={(e) => setDescription(e.target.value)}
|
| 125 |
+
required
|
| 126 |
+
/>
|
| 127 |
+
</div>
|
| 128 |
+
|
| 129 |
+
<div className="form-group">
|
| 130 |
+
<label>Paid by</label>
|
| 131 |
+
<select
|
| 132 |
+
className="form-input"
|
| 133 |
+
value={paidBy}
|
| 134 |
+
onChange={(e) => setPaidBy(e.target.value)}
|
| 135 |
+
required
|
| 136 |
+
>
|
| 137 |
+
<option value="">Select who paid...</option>
|
| 138 |
+
{members.map((m) => (
|
| 139 |
+
<option key={m.id} value={m.id}>
|
| 140 |
+
{m.name}
|
| 141 |
+
</option>
|
| 142 |
+
))}
|
| 143 |
+
</select>
|
| 144 |
+
</div>
|
| 145 |
+
|
| 146 |
+
<div className="form-group">
|
| 147 |
+
<label>Split among</label>
|
| 148 |
+
<div
|
| 149 |
+
className="checkbox-list"
|
| 150 |
+
style={{
|
| 151 |
+
display: 'grid',
|
| 152 |
+
gridTemplateColumns: 'repeat(2, 1fr)',
|
| 153 |
+
gap: 8,
|
| 154 |
+
}}
|
| 155 |
+
>
|
| 156 |
+
{members.map((m) => (
|
| 157 |
+
<label
|
| 158 |
+
key={m.id}
|
| 159 |
+
className={`checkbox-item ${splitAmong.includes(m.id) ? 'checked' : ''}`}
|
| 160 |
+
>
|
| 161 |
+
<input
|
| 162 |
+
type="checkbox"
|
| 163 |
+
checked={splitAmong.includes(m.id)}
|
| 164 |
+
onChange={() => toggleSplit(m.id)}
|
| 165 |
+
/>
|
| 166 |
+
{m.name}
|
| 167 |
+
</label>
|
| 168 |
+
))}
|
| 169 |
+
</div>
|
| 170 |
+
{splitAmong.length > 0 && amount && (
|
| 171 |
+
<p
|
| 172 |
+
style={{
|
| 173 |
+
marginTop: 10,
|
| 174 |
+
fontSize: 13,
|
| 175 |
+
color: 'var(--text-light)',
|
| 176 |
+
}}
|
| 177 |
+
>
|
| 178 |
+
${(parseFloat(amount) / splitAmong.length).toFixed(2)} per
|
| 179 |
+
person
|
| 180 |
+
</p>
|
| 181 |
+
)}
|
| 182 |
+
</div>
|
| 183 |
+
|
| 184 |
+
<div className="form-actions">
|
| 185 |
+
<button
|
| 186 |
+
type="submit"
|
| 187 |
+
className="btn btn-primary"
|
| 188 |
+
disabled={loading}
|
| 189 |
+
>
|
| 190 |
+
{loading ? 'Adding...' : 'Add Expense'}
|
| 191 |
+
</button>
|
| 192 |
+
<Link to={`/groups/${groupId}`} className="btn btn-secondary">
|
| 193 |
+
Cancel
|
| 194 |
+
</Link>
|
| 195 |
+
</div>
|
| 196 |
+
</form>
|
| 197 |
+
</div>
|
| 198 |
+
</div>
|
| 199 |
+
</div>
|
| 200 |
+
);
|
| 201 |
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { Routes, Route, Link } from 'react-router-dom';
|
| 2 |
+
import Dashboard from './components/Dashboard';
|
| 3 |
+
import GroupDetail from './components/GroupDetail';
|
| 4 |
+
import CreateGroup from './components/CreateGroup';
|
| 5 |
+
import AddExpense from './components/AddExpense';
|
| 6 |
+
|
| 7 |
+
function App() {
|
| 8 |
+
return (
|
| 9 |
+
<div className="app">
|
| 10 |
+
<header className="app-header">
|
| 11 |
+
<Link to="/" className="logo">
|
| 12 |
+
<span className="logo-icon">S</span>
|
| 13 |
+
<span className="logo-text">SplitEasy</span>
|
| 14 |
+
</Link>
|
| 15 |
+
</header>
|
| 16 |
+
<main className="app-main">
|
| 17 |
+
<Routes>
|
| 18 |
+
<Route path="/" element={<Dashboard />} />
|
| 19 |
+
<Route path="/groups/:id" element={<GroupDetail />} />
|
| 20 |
+
<Route path="/create-group" element={<CreateGroup />} />
|
| 21 |
+
<Route path="/add-expense/:groupId" element={<AddExpense />} />
|
| 22 |
+
</Routes>
|
| 23 |
+
</main>
|
| 24 |
+
</div>
|
| 25 |
+
);
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
export default App;
|
|
Git LFS Details
|
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Implement the missing route
|
| 2 |
+
|
| 3 |
+
The React + Flask app at `/app/` is missing the `/add-expense/:groupId` route. A screenshot of the desired page is at **`/app/reference.png`**.
|
| 4 |
+
|
| 5 |
+
Implement `/app/frontend/src/components/AddExpense.jsx` and add the matching `<Route>` in `/app/frontend/src/App.jsx` so the page renders to match the reference.
|
| 6 |
+
|
| 7 |
+
The frontend already has helpers `getGroupDetail(id)` and `createExpense(groupId, description, amount, paidById, splitAmongIds)` exported from `/app/frontend/src/api.js`. On submit, navigate back to `/groups/<groupId>`.
|
| 8 |
+
|
| 9 |
+
Dependencies are pre-installed. Do not start any servers — the verifier handles that.
|
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
cp /opt/golden-reference/AddExpense.jsx /app/frontend/src/components/AddExpense.jsx
|
| 4 |
+
cp /opt/golden-reference/App.jsx /app/frontend/src/App.jsx
|
| 5 |
+
echo "Oracle restored screenshot2 variant."
|
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version = "1.0"
|
| 2 |
+
|
| 3 |
+
[task]
|
| 4 |
+
name = "loki/screenshot2-add-expense-sparse"
|
| 5 |
+
description = "Implement /add-expense/:groupId from a screenshot reference. The instruction is deliberately sparse — visual layout details (field order, button order, members grid, summary panel) are only in the image."
|
| 6 |
+
|
| 7 |
+
[verifier]
|
| 8 |
+
timeout_sec = 420.0
|
| 9 |
+
|
| 10 |
+
[agent]
|
| 11 |
+
timeout_sec = 1800.0
|
| 12 |
+
|
| 13 |
+
[environment]
|
| 14 |
+
build_timeout_sec = 1800.0
|
| 15 |
+
cpus = 2
|
| 16 |
+
memory_mb = 4096
|
| 17 |
+
storage_mb = 20480
|
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Seed the spliteasy backend with 3 users and 1 group."""
|
| 2 |
+
import sys
|
| 3 |
+
import requests
|
| 4 |
+
|
| 5 |
+
BASE = "http://127.0.0.1:5001"
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
def post(path, payload):
|
| 9 |
+
r = requests.post(f"{BASE}{path}", json=payload, timeout=10)
|
| 10 |
+
if r.status_code >= 400:
|
| 11 |
+
print(f"[seed] POST {path} -> {r.status_code} {r.text}", file=sys.stderr)
|
| 12 |
+
sys.exit(1)
|
| 13 |
+
return r.json()
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def main():
|
| 17 |
+
users = [
|
| 18 |
+
{"name": "Alice", "email": "alice@x.io"},
|
| 19 |
+
{"name": "Bob", "email": "bob@x.io"},
|
| 20 |
+
{"name": "Carol", "email": "carol@x.io"},
|
| 21 |
+
]
|
| 22 |
+
user_ids = [post("/api/users", u)["id"] for u in users]
|
| 23 |
+
group = post("/api/groups", {"name": "Tahoe Trip", "member_ids": user_ids})
|
| 24 |
+
print(f"[seed] created group id={group['id']} with members={user_ids}")
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
if __name__ == "__main__":
|
| 28 |
+
main()
|
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
# Boot agent's app, seed data, run Playwright structural checks.
|
| 3 |
+
set -uo pipefail
|
| 4 |
+
|
| 5 |
+
mkdir -p /logs/verifier /logs/artifacts
|
| 6 |
+
|
| 7 |
+
for p in 5001 5173; do
|
| 8 |
+
pids=$(lsof -ti :$p 2>/dev/null || true)
|
| 9 |
+
if [ -n "$pids" ]; then
|
| 10 |
+
echo "[test.sh] pre-clearing port $p (pids: $pids)"
|
| 11 |
+
echo "$pids" | xargs -r kill -9 2>/dev/null || true
|
| 12 |
+
fi
|
| 13 |
+
done
|
| 14 |
+
rm -f /app/backend/instance/*.db /app/backend/*.db 2>/dev/null || true
|
| 15 |
+
|
| 16 |
+
echo "[test.sh] starting backend (Flask :5001)..."
|
| 17 |
+
FLASK_DEBUG=0 nohup /opt/venv/bin/python /app/backend/run.py > /logs/artifacts/backend.log 2>&1 &
|
| 18 |
+
BACKEND_PID=$!
|
| 19 |
+
|
| 20 |
+
echo "[test.sh] starting frontend (Vite :5173)..."
|
| 21 |
+
( cd /app/frontend && nohup npm run dev -- --host 127.0.0.1 --port 5173 > /logs/artifacts/frontend.log 2>&1 & echo $! > /tmp/vite.pid )
|
| 22 |
+
|
| 23 |
+
cleanup() {
|
| 24 |
+
kill "$BACKEND_PID" 2>/dev/null || true
|
| 25 |
+
if [ -f /tmp/vite.pid ]; then kill "$(cat /tmp/vite.pid)" 2>/dev/null || true; fi
|
| 26 |
+
for p in 5001 5173; do
|
| 27 |
+
pids=$(lsof -ti :$p 2>/dev/null || true)
|
| 28 |
+
[ -n "$pids" ] && echo "$pids" | xargs -r kill -9 2>/dev/null || true
|
| 29 |
+
done
|
| 30 |
+
}
|
| 31 |
+
trap cleanup EXIT
|
| 32 |
+
|
| 33 |
+
for i in $(seq 1 60); do
|
| 34 |
+
curl -fsS http://127.0.0.1:5001/api/groups -o /dev/null 2>/dev/null && { echo "[test.sh] backend up after ${i}s"; break; }
|
| 35 |
+
sleep 1
|
| 36 |
+
done
|
| 37 |
+
for i in $(seq 1 90); do
|
| 38 |
+
curl -fsS http://127.0.0.1:5173/ -o /dev/null 2>/dev/null && { echo "[test.sh] frontend up after ${i}s"; break; }
|
| 39 |
+
sleep 1
|
| 40 |
+
done
|
| 41 |
+
|
| 42 |
+
echo "[test.sh] seeding..."
|
| 43 |
+
/opt/venv/bin/python /tests/seed.py || { echo 0 > /logs/verifier/reward.txt; exit 0; }
|
| 44 |
+
|
| 45 |
+
echo "[test.sh] running pytest..."
|
| 46 |
+
/opt/venv/bin/pytest --ctrf /logs/verifier/ctrf.json /tests/test_addexpense_sparse.py -rA
|
| 47 |
+
PYTEST_RC=$?
|
| 48 |
+
|
| 49 |
+
if [ $PYTEST_RC -eq 0 ]; then
|
| 50 |
+
echo 1 > /logs/verifier/reward.txt
|
| 51 |
+
else
|
| 52 |
+
echo 0 > /logs/verifier/reward.txt
|
| 53 |
+
fi
|
| 54 |
+
exit 0
|
|
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Verifier for the screenshot2 sparse-spec variant of /add-expense/:groupId.
|
| 2 |
+
|
| 3 |
+
The agent gets a deliberately under-specified text instruction; the visual
|
| 4 |
+
quirks are only in /app/reference.png. These tests assert the visual
|
| 5 |
+
quirks present in the reference, beyond just functional correctness.
|
| 6 |
+
"""
|
| 7 |
+
from pathlib import Path
|
| 8 |
+
|
| 9 |
+
import pytest
|
| 10 |
+
from playwright.sync_api import sync_playwright
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
URL = "http://127.0.0.1:5173/add-expense/1"
|
| 14 |
+
ARTIFACTS = Path("/logs/artifacts")
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
@pytest.fixture(scope="module")
|
| 18 |
+
def page():
|
| 19 |
+
ARTIFACTS.mkdir(parents=True, exist_ok=True)
|
| 20 |
+
page_errors: list[str] = []
|
| 21 |
+
with sync_playwright() as p:
|
| 22 |
+
browser = p.chromium.launch(headless=True)
|
| 23 |
+
ctx = browser.new_context(viewport={"width": 1280, "height": 800})
|
| 24 |
+
page = ctx.new_page()
|
| 25 |
+
page.on("pageerror", lambda e: page_errors.append(str(e)))
|
| 26 |
+
page.goto(URL, wait_until="networkidle", timeout=30_000)
|
| 27 |
+
try:
|
| 28 |
+
page.wait_for_selector("h1", timeout=10_000)
|
| 29 |
+
except Exception:
|
| 30 |
+
pass
|
| 31 |
+
page.screenshot(path=str(ARTIFACTS / "agent-app.png"), full_page=True)
|
| 32 |
+
(ARTIFACTS / "pageerrors.log").write_text("\n".join(page_errors))
|
| 33 |
+
yield page
|
| 34 |
+
browser.close()
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
# ---------- functional baseline (same as screenshot1) ----------
|
| 38 |
+
|
| 39 |
+
def test_no_page_errors():
|
| 40 |
+
errs = (ARTIFACTS / "pageerrors.log").read_text() if (ARTIFACTS / "pageerrors.log").exists() else ""
|
| 41 |
+
assert not errs.strip(), f"Page errors:\n{errs}"
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
def test_h1_add_expense(page):
|
| 45 |
+
h1 = page.locator("h1").first
|
| 46 |
+
assert h1.is_visible()
|
| 47 |
+
assert "Add Expense" in h1.inner_text()
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
def test_back_link_to_group(page):
|
| 51 |
+
assert page.locator('a[href$="/groups/1"]').count() > 0
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
def test_form_inputs_present(page):
|
| 55 |
+
assert page.locator('input[type="text"]').count() >= 1, "Description text input missing"
|
| 56 |
+
assert page.locator('input[type="number"]').count() >= 1, "Amount number input missing"
|
| 57 |
+
assert page.locator('select').count() >= 1, "Paid-by select missing"
|
| 58 |
+
assert page.locator('input[type="checkbox"]').count() == 3, "Expected 3 split-among checkboxes"
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
def test_submit_button(page):
|
| 62 |
+
assert page.get_by_role("button", name="Add Expense").count() >= 1
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
# ---------- VARIANT-SPECIFIC quirks (only derivable from the screenshot) ----------
|
| 66 |
+
|
| 67 |
+
def test_quirk_summary_panel_above_form(page):
|
| 68 |
+
"""A summary line showing the group name + member count appears between h1 and the form."""
|
| 69 |
+
body = page.locator("body").inner_text()
|
| 70 |
+
# Summary mentions "Tahoe Trip" AND "3 members" (in some form, e.g. "3 members" or "members: 3")
|
| 71 |
+
assert "Tahoe Trip" in body, "Summary should mention group name 'Tahoe Trip'"
|
| 72 |
+
# Count "3" appearance — at minimum the summary should show the member count.
|
| 73 |
+
# Be lenient: accept "3 member" anywhere in body OR a li/div mentioning member count.
|
| 74 |
+
assert "3 member" in body.lower() or "members · 3" in body.lower() or "· 3" in body, (
|
| 75 |
+
f"Summary should mention 3 members. Body excerpt: {body[:600]!r}"
|
| 76 |
+
)
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
def test_quirk_amount_before_description(page):
|
| 80 |
+
"""In DOM order, the Amount input appears before the Description input."""
|
| 81 |
+
inputs = page.locator('input[type="number"], input[type="text"]')
|
| 82 |
+
n = inputs.count()
|
| 83 |
+
assert n >= 2, f"Expected at least 2 inputs, got {n}"
|
| 84 |
+
# Iterate in DOM order — first matching input should be the Amount (number).
|
| 85 |
+
first_type = inputs.nth(0).get_attribute("type")
|
| 86 |
+
assert first_type == "number", (
|
| 87 |
+
f"In the reference layout, the Amount field (type=number) precedes Description (type=text). "
|
| 88 |
+
f"Got first input type={first_type!r}."
|
| 89 |
+
)
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
def test_quirk_submit_before_cancel(page):
|
| 93 |
+
"""In DOM order within form-actions, the primary submit button appears before the Cancel link."""
|
| 94 |
+
# Find the primary submit button and the cancel link, compare their bounding boxes by Y then X.
|
| 95 |
+
submit = page.get_by_role("button", name="Add Expense").first
|
| 96 |
+
cancel = page.locator('a:has-text("Cancel")').first
|
| 97 |
+
assert submit.count() > 0, "Missing 'Add Expense' submit button"
|
| 98 |
+
assert cancel.count() > 0, "Missing 'Cancel' link"
|
| 99 |
+
sb = submit.bounding_box()
|
| 100 |
+
cb = cancel.bounding_box()
|
| 101 |
+
assert sb is not None and cb is not None, "Could not measure submit/cancel positions"
|
| 102 |
+
# Variant: submit on the LEFT, cancel on the RIGHT (same row, submit.x < cancel.x).
|
| 103 |
+
# If they're on different rows, fall back to DOM order via JS evaluate.
|
| 104 |
+
same_row = abs(sb["y"] - cb["y"]) < 30
|
| 105 |
+
if same_row:
|
| 106 |
+
assert sb["x"] < cb["x"], (
|
| 107 |
+
f"Variant has 'Add Expense' on the LEFT and 'Cancel' on the RIGHT; "
|
| 108 |
+
f"got submit.x={sb['x']} cancel.x={cb['x']}"
|
| 109 |
+
)
|
| 110 |
+
else:
|
| 111 |
+
# DOM-order fallback
|
| 112 |
+
order = page.evaluate(
|
| 113 |
+
"""() => {
|
| 114 |
+
const sub = [...document.querySelectorAll('button')].find(b => b.textContent.trim().startsWith('Add Expense') || b.textContent.trim().startsWith('Adding'));
|
| 115 |
+
const can = [...document.querySelectorAll('a')].find(a => a.textContent.trim() === 'Cancel');
|
| 116 |
+
if (!sub || !can) return null;
|
| 117 |
+
const cmp = sub.compareDocumentPosition(can);
|
| 118 |
+
// 0x04 means can FOLLOWS sub
|
| 119 |
+
return (cmp & 4) ? 'submit-first' : 'cancel-first';
|
| 120 |
+
}"""
|
| 121 |
+
)
|
| 122 |
+
assert order == "submit-first", f"Variant requires submit-before-cancel in DOM, got {order!r}"
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
def test_quirk_split_among_two_columns(page):
|
| 126 |
+
"""The three Split-among checkboxes are arranged in 2 columns (one row of 2, second row of 1, or similar)."""
|
| 127 |
+
boxes = page.locator('input[type="checkbox"]').evaluate_all(
|
| 128 |
+
"""nodes => nodes.map(n => {
|
| 129 |
+
const r = n.closest('label, div')?.getBoundingClientRect() || n.getBoundingClientRect();
|
| 130 |
+
return { x: r.x, y: r.y, w: r.width };
|
| 131 |
+
})"""
|
| 132 |
+
)
|
| 133 |
+
assert len(boxes) == 3, f"Expected 3 checkboxes, got {len(boxes)}"
|
| 134 |
+
# In a 2-col grid the first 2 share roughly the same Y; in a 1-col list, each Y is distinct.
|
| 135 |
+
ys = sorted(b["y"] for b in boxes)
|
| 136 |
+
rows = []
|
| 137 |
+
cur = [ys[0]]
|
| 138 |
+
for y in ys[1:]:
|
| 139 |
+
if abs(y - cur[-1]) < 20:
|
| 140 |
+
cur.append(y)
|
| 141 |
+
else:
|
| 142 |
+
rows.append(cur); cur = [y]
|
| 143 |
+
rows.append(cur)
|
| 144 |
+
max_per_row = max(len(r) for r in rows)
|
| 145 |
+
assert max_per_row >= 2, (
|
| 146 |
+
f"Variant uses a 2-column grid for split-among; "
|
| 147 |
+
f"got {max_per_row} checkbox(es) per row across rows {rows!r}"
|
| 148 |
+
)
|
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:22-bookworm
|
| 2 |
+
|
| 3 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 4 |
+
python3 python3-pip python3-venv \
|
| 5 |
+
curl ca-certificates procps lsof bash \
|
| 6 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 7 |
+
|
| 8 |
+
RUN python3 -m venv /opt/venv && \
|
| 9 |
+
/opt/venv/bin/pip install --no-cache-dir \
|
| 10 |
+
pytest==8.4.1 \
|
| 11 |
+
pytest-json-ctrf==0.3.5 \
|
| 12 |
+
playwright==1.48.0 \
|
| 13 |
+
requests==2.32.3
|
| 14 |
+
RUN /opt/venv/bin/playwright install --with-deps chromium
|
| 15 |
+
|
| 16 |
+
ENV PATH="/opt/venv/bin:${PATH}"
|
| 17 |
+
|
| 18 |
+
COPY reference.png /app/reference.png
|
| 19 |
+
|
| 20 |
+
COPY app/. /app/
|
| 21 |
+
|
| 22 |
+
RUN /opt/venv/bin/pip install --no-cache-dir -r /app/backend/requirements.txt
|
| 23 |
+
RUN cd /app/frontend && npm install --silent
|
| 24 |
+
|
| 25 |
+
COPY pristine/ProjectDetail.golden.jsx /opt/golden-reference/ProjectDetail.jsx
|
| 26 |
+
COPY pristine/App.golden.jsx /opt/golden-reference/App.jsx
|
| 27 |
+
|
| 28 |
+
WORKDIR /app
|
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TaskFlow — Golden (Reference)
|
| 2 |
+
|
| 3 |
+
The ground-truth task management application. All clones are evaluated against this.
|
| 4 |
+
|
| 5 |
+
## Features
|
| 6 |
+
|
| 7 |
+
- **Users**: Create and list users with name/email
|
| 8 |
+
- **Projects**: Create projects with members, descriptions, and admin/member roles
|
| 9 |
+
- **Project Archiving**: Soft-delete projects with `archived` flag
|
| 10 |
+
- **Tasks**: Full CRUD with title, description, status, priority, assignee, due date
|
| 11 |
+
- **Kanban Board**: Tasks displayed in todo/in_progress/done columns
|
| 12 |
+
- **Tags**: Many-to-many tag system with color support and full CRUD
|
| 13 |
+
- **Comments**: Threaded comments on tasks
|
| 14 |
+
- **Activity Log**: Automatic audit trail tracking all task changes (status, priority, assignment, tags)
|
| 15 |
+
- **Project Statistics**: Aggregated completion rates, overdue counts, per-member breakdowns
|
| 16 |
+
- **Task Filtering**: Filter by status, priority, assignee, and tag with sort options
|
| 17 |
+
- **Search**: Full-text search across task titles and descriptions
|
| 18 |
+
|
| 19 |
+
## Data Model
|
| 20 |
+
|
| 21 |
+
| Model | Fields |
|
| 22 |
+
|---|---|
|
| 23 |
+
| User | id, name, email |
|
| 24 |
+
| Project | id, name, description, archived, created_at |
|
| 25 |
+
| ProjectMember | id, project_id, user_id, role (admin/member) |
|
| 26 |
+
| Tag | id, name, color |
|
| 27 |
+
| task_tags | task_id, tag_id (M2M join) |
|
| 28 |
+
| Task | id, project_id, title, description, status, priority, assigned_to, created_by, due_date, created_at |
|
| 29 |
+
| Comment | id, task_id, user_id, text, created_at |
|
| 30 |
+
| Activity | id, task_id, user_id, action, field, old_value, new_value, created_at |
|
| 31 |
+
|
| 32 |
+
## API Endpoints
|
| 33 |
+
|
| 34 |
+
| Method | Path | Description |
|
| 35 |
+
|---|---|---|
|
| 36 |
+
| POST/GET | `/api/users` | Create/list users |
|
| 37 |
+
| POST/GET | `/api/tags` | Create/list tags |
|
| 38 |
+
| PUT/DELETE | `/api/tags/:id` | Update/delete tag |
|
| 39 |
+
| POST/GET | `/api/projects` | Create/list projects |
|
| 40 |
+
| GET/PUT | `/api/projects/:id` | Get/update project |
|
| 41 |
+
| GET | `/api/projects/:id/stats` | Project statistics |
|
| 42 |
+
| GET | `/api/projects/:id/activities` | Project activity feed |
|
| 43 |
+
| POST/DELETE | `/api/projects/:id/members` | Add/remove members |
|
| 44 |
+
| POST/GET | `/api/projects/:id/tasks` | Create/list tasks (with filters) |
|
| 45 |
+
| GET/PUT/DELETE | `/api/tasks/:id` | Get/update/delete task |
|
| 46 |
+
| POST/DELETE | `/api/tasks/:id/tags` | Add/remove task tags |
|
| 47 |
+
| POST/GET | `/api/tasks/:id/comments` | Create/list comments |
|
| 48 |
+
| GET | `/api/tasks/:id/activities` | Task activity log |
|
| 49 |
+
| GET | `/api/search?q=` | Search tasks |
|
| 50 |
+
| POST | `/api/reset` | Reset database |
|
| 51 |
+
|
| 52 |
+
## Setup
|
| 53 |
+
|
| 54 |
+
```bash
|
| 55 |
+
cd apps/task-manager/golden
|
| 56 |
+
uv venv .venv
|
| 57 |
+
source .venv/bin/activate
|
| 58 |
+
uv pip install -r backend/requirements.txt
|
| 59 |
+
cd frontend && npm install && cd ..
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
## Run
|
| 63 |
+
|
| 64 |
+
```bash
|
| 65 |
+
./run.sh
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
- Backend: http://localhost:5101
|
| 69 |
+
- Frontend: http://localhost:5273
|
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
from flask import Flask
|
| 3 |
+
from flask_cors import CORS
|
| 4 |
+
from flask_sqlalchemy import SQLAlchemy
|
| 5 |
+
from flask_migrate import Migrate
|
| 6 |
+
|
| 7 |
+
db = SQLAlchemy()
|
| 8 |
+
migrate = Migrate()
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
def create_app():
|
| 12 |
+
app = Flask(__name__, instance_relative_config=True)
|
| 13 |
+
|
| 14 |
+
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///" + os.path.join(
|
| 15 |
+
app.instance_path, "taskmanager.db"
|
| 16 |
+
)
|
| 17 |
+
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
|
| 18 |
+
|
| 19 |
+
os.makedirs(app.instance_path, exist_ok=True)
|
| 20 |
+
|
| 21 |
+
db.init_app(app)
|
| 22 |
+
migrate.init_app(app, db)
|
| 23 |
+
CORS(app)
|
| 24 |
+
|
| 25 |
+
from app.routes import api_bp
|
| 26 |
+
|
| 27 |
+
app.register_blueprint(api_bp)
|
| 28 |
+
|
| 29 |
+
with app.app_context():
|
| 30 |
+
from app import models # noqa: F401
|
| 31 |
+
|
| 32 |
+
db.create_all()
|
| 33 |
+
|
| 34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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from datetime import datetime, timezone
|
| 2 |
+
from app import db
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
class User(db.Model):
|
| 6 |
+
__tablename__ = "users"
|
| 7 |
+
|
| 8 |
+
id = db.Column(db.Integer, primary_key=True)
|
| 9 |
+
name = db.Column(db.String(120), nullable=False)
|
| 10 |
+
email = db.Column(db.String(120), unique=True, nullable=False)
|
| 11 |
+
|
| 12 |
+
def to_dict(self):
|
| 13 |
+
return {"id": self.id, "name": self.name, "email": self.email}
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
class Project(db.Model):
|
| 17 |
+
__tablename__ = "projects"
|
| 18 |
+
|
| 19 |
+
id = db.Column(db.Integer, primary_key=True)
|
| 20 |
+
name = db.Column(db.String(120), nullable=False)
|
| 21 |
+
description = db.Column(db.String(500), nullable=True, default="")
|
| 22 |
+
archived = db.Column(db.Boolean, nullable=False, default=False)
|
| 23 |
+
created_at = db.Column(
|
| 24 |
+
db.DateTime, nullable=False, default=lambda: datetime.now(timezone.utc)
|
| 25 |
+
)
|
| 26 |
+
|
| 27 |
+
members = db.relationship(
|
| 28 |
+
"ProjectMember", backref="project", lazy=True, cascade="all, delete-orphan"
|
| 29 |
+
)
|
| 30 |
+
tasks = db.relationship(
|
| 31 |
+
"Task", backref="project", lazy=True, cascade="all, delete-orphan"
|
| 32 |
+
)
|
| 33 |
+
|
| 34 |
+
def to_dict(self, include_members=False, include_tasks=False):
|
| 35 |
+
data = {
|
| 36 |
+
"id": self.id,
|
| 37 |
+
"name": self.name,
|
| 38 |
+
"description": self.description,
|
| 39 |
+
"archived": self.archived,
|
| 40 |
+
"created_at": self.created_at.isoformat(),
|
| 41 |
+
}
|
| 42 |
+
if include_members:
|
| 43 |
+
data["members"] = [m.user.to_dict() for m in self.members]
|
| 44 |
+
if include_tasks:
|
| 45 |
+
data["tasks"] = [t.to_dict() for t in self.tasks]
|
| 46 |
+
return data
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
class ProjectMember(db.Model):
|
| 50 |
+
__tablename__ = "project_members"
|
| 51 |
+
|
| 52 |
+
id = db.Column(db.Integer, primary_key=True)
|
| 53 |
+
project_id = db.Column(db.Integer, db.ForeignKey("projects.id"), nullable=False)
|
| 54 |
+
user_id = db.Column(db.Integer, db.ForeignKey("users.id"), nullable=False)
|
| 55 |
+
role = db.Column(db.String(20), nullable=False, default="member")
|
| 56 |
+
|
| 57 |
+
user = db.relationship("User", lazy=True)
|
| 58 |
+
|
| 59 |
+
def to_dict(self):
|
| 60 |
+
data = self.user.to_dict()
|
| 61 |
+
data["role"] = self.role
|
| 62 |
+
return data
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
class Tag(db.Model):
|
| 66 |
+
__tablename__ = "tags"
|
| 67 |
+
|
| 68 |
+
id = db.Column(db.Integer, primary_key=True)
|
| 69 |
+
name = db.Column(db.String(50), nullable=False, unique=True)
|
| 70 |
+
color = db.Column(db.String(7), nullable=False, default="#6b7280")
|
| 71 |
+
|
| 72 |
+
def to_dict(self):
|
| 73 |
+
return {"id": self.id, "name": self.name, "color": self.color}
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
task_tags = db.Table(
|
| 77 |
+
"task_tags",
|
| 78 |
+
db.Column("task_id", db.Integer, db.ForeignKey("tasks.id"), primary_key=True),
|
| 79 |
+
db.Column("tag_id", db.Integer, db.ForeignKey("tags.id"), primary_key=True),
|
| 80 |
+
)
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
class Task(db.Model):
|
| 84 |
+
__tablename__ = "tasks"
|
| 85 |
+
|
| 86 |
+
id = db.Column(db.Integer, primary_key=True)
|
| 87 |
+
project_id = db.Column(db.Integer, db.ForeignKey("projects.id"), nullable=False)
|
| 88 |
+
title = db.Column(db.String(255), nullable=False)
|
| 89 |
+
description = db.Column(db.Text, nullable=True, default="")
|
| 90 |
+
status = db.Column(db.String(20), nullable=False, default="todo")
|
| 91 |
+
priority = db.Column(db.String(10), nullable=False, default="medium")
|
| 92 |
+
assigned_to = db.Column(db.Integer, db.ForeignKey("users.id"), nullable=True)
|
| 93 |
+
created_by = db.Column(db.Integer, db.ForeignKey("users.id"), nullable=False)
|
| 94 |
+
due_date = db.Column(db.DateTime, nullable=True)
|
| 95 |
+
created_at = db.Column(
|
| 96 |
+
db.DateTime, nullable=False, default=lambda: datetime.now(timezone.utc)
|
| 97 |
+
)
|
| 98 |
+
|
| 99 |
+
assignee = db.relationship("User", foreign_keys=[assigned_to], lazy=True)
|
| 100 |
+
creator = db.relationship("User", foreign_keys=[created_by], lazy=True)
|
| 101 |
+
comments = db.relationship(
|
| 102 |
+
"Comment", backref="task", lazy=True, cascade="all, delete-orphan"
|
| 103 |
+
)
|
| 104 |
+
tags = db.relationship("Tag", secondary=task_tags, lazy=True, backref="tasks")
|
| 105 |
+
activities = db.relationship(
|
| 106 |
+
"Activity", backref="task", lazy=True, cascade="all, delete-orphan",
|
| 107 |
+
order_by="Activity.created_at.desc()"
|
| 108 |
+
)
|
| 109 |
+
|
| 110 |
+
def to_dict(self, include_comments=False, include_activities=False):
|
| 111 |
+
data = {
|
| 112 |
+
"id": self.id,
|
| 113 |
+
"project_id": self.project_id,
|
| 114 |
+
"title": self.title,
|
| 115 |
+
"description": self.description,
|
| 116 |
+
"status": self.status,
|
| 117 |
+
"priority": self.priority,
|
| 118 |
+
"assigned_to": self.assigned_to,
|
| 119 |
+
"assigned_to_name": self.assignee.name if self.assignee else None,
|
| 120 |
+
"created_by": self.created_by,
|
| 121 |
+
"created_by_name": self.creator.name if self.creator else None,
|
| 122 |
+
"due_date": self.due_date.isoformat() if self.due_date else None,
|
| 123 |
+
"created_at": self.created_at.isoformat(),
|
| 124 |
+
"comment_count": len(self.comments),
|
| 125 |
+
"tags": [t.to_dict() for t in self.tags],
|
| 126 |
+
}
|
| 127 |
+
if include_comments:
|
| 128 |
+
data["comments"] = [c.to_dict() for c in self.comments]
|
| 129 |
+
if include_activities:
|
| 130 |
+
data["activities"] = [a.to_dict() for a in self.activities]
|
| 131 |
+
return data
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
class Comment(db.Model):
|
| 135 |
+
__tablename__ = "comments"
|
| 136 |
+
|
| 137 |
+
id = db.Column(db.Integer, primary_key=True)
|
| 138 |
+
task_id = db.Column(db.Integer, db.ForeignKey("tasks.id"), nullable=False)
|
| 139 |
+
user_id = db.Column(db.Integer, db.ForeignKey("users.id"), nullable=False)
|
| 140 |
+
text = db.Column(db.Text, nullable=False)
|
| 141 |
+
created_at = db.Column(
|
| 142 |
+
db.DateTime, nullable=False, default=lambda: datetime.now(timezone.utc)
|
| 143 |
+
)
|
| 144 |
+
|
| 145 |
+
user = db.relationship("User", lazy=True)
|
| 146 |
+
|
| 147 |
+
def to_dict(self):
|
| 148 |
+
return {
|
| 149 |
+
"id": self.id,
|
| 150 |
+
"task_id": self.task_id,
|
| 151 |
+
"user_id": self.user_id,
|
| 152 |
+
"user_name": self.user.name if self.user else None,
|
| 153 |
+
"text": self.text,
|
| 154 |
+
"created_at": self.created_at.isoformat(),
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
|
| 158 |
+
class Activity(db.Model):
|
| 159 |
+
__tablename__ = "activities"
|
| 160 |
+
|
| 161 |
+
id = db.Column(db.Integer, primary_key=True)
|
| 162 |
+
task_id = db.Column(db.Integer, db.ForeignKey("tasks.id"), nullable=False)
|
| 163 |
+
user_id = db.Column(db.Integer, db.ForeignKey("users.id"), nullable=True)
|
| 164 |
+
action = db.Column(db.String(50), nullable=False)
|
| 165 |
+
field = db.Column(db.String(50), nullable=True)
|
| 166 |
+
old_value = db.Column(db.String(255), nullable=True)
|
| 167 |
+
new_value = db.Column(db.String(255), nullable=True)
|
| 168 |
+
created_at = db.Column(
|
| 169 |
+
db.DateTime, nullable=False, default=lambda: datetime.now(timezone.utc)
|
| 170 |
+
)
|
| 171 |
+
|
| 172 |
+
user = db.relationship("User", lazy=True)
|
| 173 |
+
|
| 174 |
+
def to_dict(self):
|
| 175 |
+
return {
|
| 176 |
+
"id": self.id,
|
| 177 |
+
"task_id": self.task_id,
|
| 178 |
+
"user_id": self.user_id,
|
| 179 |
+
"user_name": self.user.name if self.user else None,
|
| 180 |
+
"action": self.action,
|
| 181 |
+
"field": self.field,
|
| 182 |
+
"old_value": self.old_value,
|
| 183 |
+
"new_value": self.new_value,
|
| 184 |
+
"created_at": self.created_at.isoformat(),
|
| 185 |
+
}
|
|
@@ -0,0 +1,641 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from datetime import datetime, timezone
|
| 2 |
+
from flask import Blueprint, request, jsonify
|
| 3 |
+
from app import db
|
| 4 |
+
from app.models import User, Project, ProjectMember, Task, Comment, Tag, Activity, task_tags
|
| 5 |
+
|
| 6 |
+
api_bp = Blueprint("api", __name__)
|
| 7 |
+
|
| 8 |
+
VALID_STATUSES = {"todo", "in_progress", "done"}
|
| 9 |
+
VALID_PRIORITIES = {"low", "medium", "high"}
|
| 10 |
+
VALID_ROLES = {"admin", "member"}
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
def _log_activity(task_id, user_id, action, field=None, old_value=None, new_value=None):
|
| 14 |
+
activity = Activity(
|
| 15 |
+
task_id=task_id,
|
| 16 |
+
user_id=user_id,
|
| 17 |
+
action=action,
|
| 18 |
+
field=field,
|
| 19 |
+
old_value=str(old_value) if old_value is not None else None,
|
| 20 |
+
new_value=str(new_value) if new_value is not None else None,
|
| 21 |
+
)
|
| 22 |
+
db.session.add(activity)
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
# ---------------------------------------------------------------------------
|
| 26 |
+
# Users
|
| 27 |
+
# ---------------------------------------------------------------------------
|
| 28 |
+
|
| 29 |
+
@api_bp.route("/api/users", methods=["POST"])
|
| 30 |
+
def create_user():
|
| 31 |
+
data = request.get_json()
|
| 32 |
+
if not data or not data.get("name") or not data.get("email"):
|
| 33 |
+
return jsonify({"error": "name and email are required"}), 400
|
| 34 |
+
|
| 35 |
+
if User.query.filter_by(email=data["email"]).first():
|
| 36 |
+
return jsonify({"error": "A user with that email already exists"}), 409
|
| 37 |
+
|
| 38 |
+
user = User(name=data["name"], email=data["email"])
|
| 39 |
+
db.session.add(user)
|
| 40 |
+
db.session.commit()
|
| 41 |
+
return jsonify(user.to_dict()), 201
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
@api_bp.route("/api/users", methods=["GET"])
|
| 45 |
+
def list_users():
|
| 46 |
+
users = User.query.all()
|
| 47 |
+
return jsonify([u.to_dict() for u in users])
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
# ---------------------------------------------------------------------------
|
| 51 |
+
# Tags
|
| 52 |
+
# ---------------------------------------------------------------------------
|
| 53 |
+
|
| 54 |
+
@api_bp.route("/api/tags", methods=["POST"])
|
| 55 |
+
def create_tag():
|
| 56 |
+
data = request.get_json()
|
| 57 |
+
if not data or not data.get("name"):
|
| 58 |
+
return jsonify({"error": "name is required"}), 400
|
| 59 |
+
|
| 60 |
+
if Tag.query.filter_by(name=data["name"]).first():
|
| 61 |
+
return jsonify({"error": "A tag with that name already exists"}), 409
|
| 62 |
+
|
| 63 |
+
tag = Tag(
|
| 64 |
+
name=data["name"],
|
| 65 |
+
color=data.get("color", "#6b7280"),
|
| 66 |
+
)
|
| 67 |
+
db.session.add(tag)
|
| 68 |
+
db.session.commit()
|
| 69 |
+
return jsonify(tag.to_dict()), 201
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
@api_bp.route("/api/tags", methods=["GET"])
|
| 73 |
+
def list_tags():
|
| 74 |
+
tags = Tag.query.all()
|
| 75 |
+
return jsonify([t.to_dict() for t in tags])
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
@api_bp.route("/api/tags/<int:tag_id>", methods=["PUT"])
|
| 79 |
+
def update_tag(tag_id):
|
| 80 |
+
tag = Tag.query.get(tag_id)
|
| 81 |
+
if not tag:
|
| 82 |
+
return jsonify({"error": "Tag not found"}), 404
|
| 83 |
+
|
| 84 |
+
data = request.get_json()
|
| 85 |
+
if not data:
|
| 86 |
+
return jsonify({"error": "Request body is required"}), 400
|
| 87 |
+
|
| 88 |
+
if "name" in data:
|
| 89 |
+
existing = Tag.query.filter_by(name=data["name"]).first()
|
| 90 |
+
if existing and existing.id != tag_id:
|
| 91 |
+
return jsonify({"error": "A tag with that name already exists"}), 409
|
| 92 |
+
tag.name = data["name"]
|
| 93 |
+
if "color" in data:
|
| 94 |
+
tag.color = data["color"]
|
| 95 |
+
|
| 96 |
+
db.session.commit()
|
| 97 |
+
return jsonify(tag.to_dict())
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
@api_bp.route("/api/tags/<int:tag_id>", methods=["DELETE"])
|
| 101 |
+
def delete_tag(tag_id):
|
| 102 |
+
tag = Tag.query.get(tag_id)
|
| 103 |
+
if not tag:
|
| 104 |
+
return jsonify({"error": "Tag not found"}), 404
|
| 105 |
+
|
| 106 |
+
db.session.delete(tag)
|
| 107 |
+
db.session.commit()
|
| 108 |
+
return jsonify({"message": "Tag deleted"}), 200
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
# ---------------------------------------------------------------------------
|
| 112 |
+
# Projects
|
| 113 |
+
# ---------------------------------------------------------------------------
|
| 114 |
+
|
| 115 |
+
@api_bp.route("/api/projects", methods=["POST"])
|
| 116 |
+
def create_project():
|
| 117 |
+
data = request.get_json()
|
| 118 |
+
if not data or not data.get("name"):
|
| 119 |
+
return jsonify({"error": "name is required"}), 400
|
| 120 |
+
|
| 121 |
+
member_ids = data.get("member_ids", [])
|
| 122 |
+
users = User.query.filter(User.id.in_(member_ids)).all()
|
| 123 |
+
if len(users) != len(member_ids):
|
| 124 |
+
return jsonify({"error": "One or more member_ids are invalid"}), 400
|
| 125 |
+
|
| 126 |
+
project = Project(
|
| 127 |
+
name=data["name"],
|
| 128 |
+
description=data.get("description", ""),
|
| 129 |
+
)
|
| 130 |
+
db.session.add(project)
|
| 131 |
+
db.session.flush()
|
| 132 |
+
|
| 133 |
+
for i, user in enumerate(users):
|
| 134 |
+
role = "admin" if i == 0 else "member"
|
| 135 |
+
db.session.add(ProjectMember(project_id=project.id, user_id=user.id, role=role))
|
| 136 |
+
|
| 137 |
+
db.session.commit()
|
| 138 |
+
return jsonify(project.to_dict(include_members=True)), 201
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
@api_bp.route("/api/projects", methods=["GET"])
|
| 142 |
+
def list_projects():
|
| 143 |
+
include_archived = request.args.get("include_archived", "false").lower() == "true"
|
| 144 |
+
query = Project.query
|
| 145 |
+
if not include_archived:
|
| 146 |
+
query = query.filter_by(archived=False)
|
| 147 |
+
projects = query.all()
|
| 148 |
+
return jsonify([p.to_dict(include_members=True) for p in projects])
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
@api_bp.route("/api/projects/<int:project_id>", methods=["GET"])
|
| 152 |
+
def get_project(project_id):
|
| 153 |
+
project = Project.query.get(project_id)
|
| 154 |
+
if not project:
|
| 155 |
+
return jsonify({"error": "Project not found"}), 404
|
| 156 |
+
|
| 157 |
+
data = project.to_dict(include_members=True, include_tasks=True)
|
| 158 |
+
return jsonify(data)
|
| 159 |
+
|
| 160 |
+
|
| 161 |
+
@api_bp.route("/api/projects/<int:project_id>", methods=["PUT"])
|
| 162 |
+
def update_project(project_id):
|
| 163 |
+
project = Project.query.get(project_id)
|
| 164 |
+
if not project:
|
| 165 |
+
return jsonify({"error": "Project not found"}), 404
|
| 166 |
+
|
| 167 |
+
data = request.get_json()
|
| 168 |
+
if not data:
|
| 169 |
+
return jsonify({"error": "Request body is required"}), 400
|
| 170 |
+
|
| 171 |
+
if "name" in data:
|
| 172 |
+
if not data["name"]:
|
| 173 |
+
return jsonify({"error": "name cannot be empty"}), 400
|
| 174 |
+
project.name = data["name"]
|
| 175 |
+
if "description" in data:
|
| 176 |
+
project.description = data["description"]
|
| 177 |
+
if "archived" in data:
|
| 178 |
+
project.archived = bool(data["archived"])
|
| 179 |
+
|
| 180 |
+
db.session.commit()
|
| 181 |
+
return jsonify(project.to_dict(include_members=True))
|
| 182 |
+
|
| 183 |
+
|
| 184 |
+
@api_bp.route("/api/projects/<int:project_id>/members", methods=["POST"])
|
| 185 |
+
def add_project_member(project_id):
|
| 186 |
+
project = Project.query.get(project_id)
|
| 187 |
+
if not project:
|
| 188 |
+
return jsonify({"error": "Project not found"}), 404
|
| 189 |
+
|
| 190 |
+
data = request.get_json()
|
| 191 |
+
if not data or not data.get("user_id"):
|
| 192 |
+
return jsonify({"error": "user_id is required"}), 400
|
| 193 |
+
|
| 194 |
+
user = User.query.get(data["user_id"])
|
| 195 |
+
if not user:
|
| 196 |
+
return jsonify({"error": "User not found"}), 404
|
| 197 |
+
|
| 198 |
+
existing = ProjectMember.query.filter_by(
|
| 199 |
+
project_id=project_id, user_id=data["user_id"]
|
| 200 |
+
).first()
|
| 201 |
+
if existing:
|
| 202 |
+
return jsonify({"error": "User is already a member of this project"}), 409
|
| 203 |
+
|
| 204 |
+
role = data.get("role", "member")
|
| 205 |
+
if role not in VALID_ROLES:
|
| 206 |
+
return jsonify({"error": f"Invalid role. Must be one of: {', '.join(VALID_ROLES)}"}), 400
|
| 207 |
+
|
| 208 |
+
member = ProjectMember(project_id=project_id, user_id=data["user_id"], role=role)
|
| 209 |
+
db.session.add(member)
|
| 210 |
+
db.session.commit()
|
| 211 |
+
return jsonify(member.to_dict()), 201
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
@api_bp.route("/api/projects/<int:project_id>/members/<int:user_id>", methods=["DELETE"])
|
| 215 |
+
def remove_project_member(project_id, user_id):
|
| 216 |
+
member = ProjectMember.query.filter_by(
|
| 217 |
+
project_id=project_id, user_id=user_id
|
| 218 |
+
).first()
|
| 219 |
+
if not member:
|
| 220 |
+
return jsonify({"error": "Member not found"}), 404
|
| 221 |
+
|
| 222 |
+
db.session.delete(member)
|
| 223 |
+
db.session.commit()
|
| 224 |
+
return jsonify({"message": "Member removed"}), 200
|
| 225 |
+
|
| 226 |
+
|
| 227 |
+
# ---------------------------------------------------------------------------
|
| 228 |
+
# Project Statistics
|
| 229 |
+
# ---------------------------------------------------------------------------
|
| 230 |
+
|
| 231 |
+
@api_bp.route("/api/projects/<int:project_id>/stats", methods=["GET"])
|
| 232 |
+
def get_project_stats(project_id):
|
| 233 |
+
project = Project.query.get(project_id)
|
| 234 |
+
if not project:
|
| 235 |
+
return jsonify({"error": "Project not found"}), 404
|
| 236 |
+
|
| 237 |
+
tasks = Task.query.filter_by(project_id=project_id).all()
|
| 238 |
+
total = len(tasks)
|
| 239 |
+
|
| 240 |
+
by_status = {"todo": 0, "in_progress": 0, "done": 0}
|
| 241 |
+
by_priority = {"low": 0, "medium": 0, "high": 0}
|
| 242 |
+
by_member = {}
|
| 243 |
+
overdue = 0
|
| 244 |
+
now = datetime.now(timezone.utc)
|
| 245 |
+
|
| 246 |
+
for task in tasks:
|
| 247 |
+
by_status[task.status] = by_status.get(task.status, 0) + 1
|
| 248 |
+
by_priority[task.priority] = by_priority.get(task.priority, 0) + 1
|
| 249 |
+
|
| 250 |
+
if task.assigned_to:
|
| 251 |
+
name = task.assignee.name if task.assignee else str(task.assigned_to)
|
| 252 |
+
if name not in by_member:
|
| 253 |
+
by_member[name] = {"total": 0, "done": 0}
|
| 254 |
+
by_member[name]["total"] += 1
|
| 255 |
+
if task.status == "done":
|
| 256 |
+
by_member[name]["done"] += 1
|
| 257 |
+
|
| 258 |
+
if task.due_date and task.due_date < now and task.status != "done":
|
| 259 |
+
overdue += 1
|
| 260 |
+
|
| 261 |
+
completion_rate = round((by_status.get("done", 0) / total * 100), 1) if total > 0 else 0
|
| 262 |
+
|
| 263 |
+
return jsonify({
|
| 264 |
+
"total_tasks": total,
|
| 265 |
+
"completion_rate": completion_rate,
|
| 266 |
+
"overdue_count": overdue,
|
| 267 |
+
"by_status": by_status,
|
| 268 |
+
"by_priority": by_priority,
|
| 269 |
+
"by_member": by_member,
|
| 270 |
+
})
|
| 271 |
+
|
| 272 |
+
|
| 273 |
+
# ---------------------------------------------------------------------------
|
| 274 |
+
# Tasks
|
| 275 |
+
# ---------------------------------------------------------------------------
|
| 276 |
+
|
| 277 |
+
@api_bp.route("/api/projects/<int:project_id>/tasks", methods=["GET"])
|
| 278 |
+
def list_tasks(project_id):
|
| 279 |
+
project = Project.query.get(project_id)
|
| 280 |
+
if not project:
|
| 281 |
+
return jsonify({"error": "Project not found"}), 404
|
| 282 |
+
|
| 283 |
+
query = Task.query.filter_by(project_id=project_id)
|
| 284 |
+
|
| 285 |
+
status = request.args.get("status")
|
| 286 |
+
if status and status in VALID_STATUSES:
|
| 287 |
+
query = query.filter_by(status=status)
|
| 288 |
+
|
| 289 |
+
priority = request.args.get("priority")
|
| 290 |
+
if priority and priority in VALID_PRIORITIES:
|
| 291 |
+
query = query.filter_by(priority=priority)
|
| 292 |
+
|
| 293 |
+
assigned_to = request.args.get("assigned_to")
|
| 294 |
+
if assigned_to:
|
| 295 |
+
try:
|
| 296 |
+
query = query.filter_by(assigned_to=int(assigned_to))
|
| 297 |
+
except ValueError:
|
| 298 |
+
pass
|
| 299 |
+
|
| 300 |
+
tag_name = request.args.get("tag")
|
| 301 |
+
if tag_name:
|
| 302 |
+
query = query.filter(Task.tags.any(Tag.name == tag_name))
|
| 303 |
+
|
| 304 |
+
sort = request.args.get("sort", "created_at")
|
| 305 |
+
if sort == "due_date":
|
| 306 |
+
query = query.order_by(Task.due_date.asc().nullslast())
|
| 307 |
+
elif sort == "priority":
|
| 308 |
+
priority_order = db.case(
|
| 309 |
+
(Task.priority == "high", 0),
|
| 310 |
+
(Task.priority == "medium", 1),
|
| 311 |
+
(Task.priority == "low", 2),
|
| 312 |
+
)
|
| 313 |
+
query = query.order_by(priority_order)
|
| 314 |
+
else:
|
| 315 |
+
query = query.order_by(Task.created_at.desc())
|
| 316 |
+
|
| 317 |
+
tasks = query.all()
|
| 318 |
+
return jsonify([t.to_dict() for t in tasks])
|
| 319 |
+
|
| 320 |
+
|
| 321 |
+
@api_bp.route("/api/projects/<int:project_id>/tasks", methods=["POST"])
|
| 322 |
+
def create_task(project_id):
|
| 323 |
+
project = Project.query.get(project_id)
|
| 324 |
+
if not project:
|
| 325 |
+
return jsonify({"error": "Project not found"}), 404
|
| 326 |
+
|
| 327 |
+
data = request.get_json()
|
| 328 |
+
if not data:
|
| 329 |
+
return jsonify({"error": "Request body is required"}), 400
|
| 330 |
+
|
| 331 |
+
title = data.get("title")
|
| 332 |
+
created_by = data.get("created_by")
|
| 333 |
+
|
| 334 |
+
if not title or not created_by:
|
| 335 |
+
return jsonify({"error": "title and created_by are required"}), 400
|
| 336 |
+
|
| 337 |
+
member_user_ids = {m.user_id for m in project.members}
|
| 338 |
+
if created_by not in member_user_ids:
|
| 339 |
+
return jsonify({"error": "created_by user is not a member of this project"}), 400
|
| 340 |
+
|
| 341 |
+
assigned_to = data.get("assigned_to")
|
| 342 |
+
if assigned_to and assigned_to not in member_user_ids:
|
| 343 |
+
return jsonify({"error": "assigned_to user is not a member of this project"}), 400
|
| 344 |
+
|
| 345 |
+
status = data.get("status", "todo")
|
| 346 |
+
if status not in VALID_STATUSES:
|
| 347 |
+
return jsonify({"error": f"Invalid status. Must be one of: {', '.join(VALID_STATUSES)}"}), 400
|
| 348 |
+
|
| 349 |
+
priority = data.get("priority", "medium")
|
| 350 |
+
if priority not in VALID_PRIORITIES:
|
| 351 |
+
return jsonify({"error": f"Invalid priority. Must be one of: {', '.join(VALID_PRIORITIES)}"}), 400
|
| 352 |
+
|
| 353 |
+
due_date = None
|
| 354 |
+
if data.get("due_date"):
|
| 355 |
+
try:
|
| 356 |
+
due_date = datetime.fromisoformat(data["due_date"]).replace(tzinfo=timezone.utc)
|
| 357 |
+
except ValueError:
|
| 358 |
+
return jsonify({"error": "Invalid due_date format. Use ISO format."}), 400
|
| 359 |
+
|
| 360 |
+
task = Task(
|
| 361 |
+
project_id=project_id,
|
| 362 |
+
title=title,
|
| 363 |
+
description=data.get("description", ""),
|
| 364 |
+
status=status,
|
| 365 |
+
priority=priority,
|
| 366 |
+
assigned_to=assigned_to,
|
| 367 |
+
created_by=created_by,
|
| 368 |
+
due_date=due_date,
|
| 369 |
+
)
|
| 370 |
+
|
| 371 |
+
tag_ids = data.get("tag_ids", [])
|
| 372 |
+
if tag_ids:
|
| 373 |
+
tags = Tag.query.filter(Tag.id.in_(tag_ids)).all()
|
| 374 |
+
task.tags = tags
|
| 375 |
+
|
| 376 |
+
db.session.add(task)
|
| 377 |
+
db.session.flush()
|
| 378 |
+
|
| 379 |
+
_log_activity(task.id, created_by, "created")
|
| 380 |
+
db.session.commit()
|
| 381 |
+
return jsonify(task.to_dict()), 201
|
| 382 |
+
|
| 383 |
+
|
| 384 |
+
@api_bp.route("/api/tasks/<int:task_id>", methods=["GET"])
|
| 385 |
+
def get_task(task_id):
|
| 386 |
+
task = Task.query.get(task_id)
|
| 387 |
+
if not task:
|
| 388 |
+
return jsonify({"error": "Task not found"}), 404
|
| 389 |
+
return jsonify(task.to_dict(include_comments=True, include_activities=True))
|
| 390 |
+
|
| 391 |
+
|
| 392 |
+
@api_bp.route("/api/tasks/<int:task_id>", methods=["PUT"])
|
| 393 |
+
def update_task(task_id):
|
| 394 |
+
task = Task.query.get(task_id)
|
| 395 |
+
if not task:
|
| 396 |
+
return jsonify({"error": "Task not found"}), 404
|
| 397 |
+
|
| 398 |
+
data = request.get_json()
|
| 399 |
+
if not data:
|
| 400 |
+
return jsonify({"error": "Request body is required"}), 400
|
| 401 |
+
|
| 402 |
+
user_id = data.get("updated_by")
|
| 403 |
+
|
| 404 |
+
if "title" in data:
|
| 405 |
+
if not data["title"]:
|
| 406 |
+
return jsonify({"error": "title cannot be empty"}), 400
|
| 407 |
+
old = task.title
|
| 408 |
+
task.title = data["title"]
|
| 409 |
+
if old != data["title"]:
|
| 410 |
+
_log_activity(task_id, user_id, "updated", "title", old, data["title"])
|
| 411 |
+
|
| 412 |
+
if "description" in data:
|
| 413 |
+
old = task.description
|
| 414 |
+
task.description = data["description"]
|
| 415 |
+
if old != data["description"]:
|
| 416 |
+
_log_activity(task_id, user_id, "updated", "description", old[:50] if old else None, data["description"][:50] if data["description"] else None)
|
| 417 |
+
|
| 418 |
+
if "status" in data:
|
| 419 |
+
if data["status"] not in VALID_STATUSES:
|
| 420 |
+
return jsonify({"error": f"Invalid status. Must be one of: {', '.join(VALID_STATUSES)}"}), 400
|
| 421 |
+
old = task.status
|
| 422 |
+
task.status = data["status"]
|
| 423 |
+
if old != data["status"]:
|
| 424 |
+
_log_activity(task_id, user_id, "updated", "status", old, data["status"])
|
| 425 |
+
|
| 426 |
+
if "priority" in data:
|
| 427 |
+
if data["priority"] not in VALID_PRIORITIES:
|
| 428 |
+
return jsonify({"error": f"Invalid priority. Must be one of: {', '.join(VALID_PRIORITIES)}"}), 400
|
| 429 |
+
old = task.priority
|
| 430 |
+
task.priority = data["priority"]
|
| 431 |
+
if old != data["priority"]:
|
| 432 |
+
_log_activity(task_id, user_id, "updated", "priority", old, data["priority"])
|
| 433 |
+
|
| 434 |
+
if "assigned_to" in data:
|
| 435 |
+
if data["assigned_to"] is not None:
|
| 436 |
+
member_user_ids = {m.user_id for m in task.project.members}
|
| 437 |
+
if data["assigned_to"] not in member_user_ids:
|
| 438 |
+
return jsonify({"error": "assigned_to user is not a member of this project"}), 400
|
| 439 |
+
old = task.assigned_to
|
| 440 |
+
task.assigned_to = data["assigned_to"]
|
| 441 |
+
if old != data["assigned_to"]:
|
| 442 |
+
old_name = User.query.get(old).name if old else "Unassigned"
|
| 443 |
+
new_name = User.query.get(data["assigned_to"]).name if data["assigned_to"] else "Unassigned"
|
| 444 |
+
_log_activity(task_id, user_id, "updated", "assigned_to", old_name, new_name)
|
| 445 |
+
|
| 446 |
+
if "due_date" in data:
|
| 447 |
+
old = task.due_date.isoformat() if task.due_date else None
|
| 448 |
+
if data["due_date"] is None:
|
| 449 |
+
task.due_date = None
|
| 450 |
+
else:
|
| 451 |
+
try:
|
| 452 |
+
task.due_date = datetime.fromisoformat(data["due_date"]).replace(tzinfo=timezone.utc)
|
| 453 |
+
except ValueError:
|
| 454 |
+
return jsonify({"error": "Invalid due_date format. Use ISO format."}), 400
|
| 455 |
+
new = task.due_date.isoformat() if task.due_date else None
|
| 456 |
+
if old != new:
|
| 457 |
+
_log_activity(task_id, user_id, "updated", "due_date", old, new)
|
| 458 |
+
|
| 459 |
+
if "tag_ids" in data:
|
| 460 |
+
old_tags = {t.name for t in task.tags}
|
| 461 |
+
tags = Tag.query.filter(Tag.id.in_(data["tag_ids"])).all()
|
| 462 |
+
task.tags = tags
|
| 463 |
+
new_tags = {t.name for t in tags}
|
| 464 |
+
added = new_tags - old_tags
|
| 465 |
+
removed = old_tags - new_tags
|
| 466 |
+
if added:
|
| 467 |
+
_log_activity(task_id, user_id, "tags_added", "tags", None, ", ".join(added))
|
| 468 |
+
if removed:
|
| 469 |
+
_log_activity(task_id, user_id, "tags_removed", "tags", ", ".join(removed), None)
|
| 470 |
+
|
| 471 |
+
db.session.commit()
|
| 472 |
+
return jsonify(task.to_dict())
|
| 473 |
+
|
| 474 |
+
|
| 475 |
+
@api_bp.route("/api/tasks/<int:task_id>", methods=["DELETE"])
|
| 476 |
+
def delete_task(task_id):
|
| 477 |
+
task = Task.query.get(task_id)
|
| 478 |
+
if not task:
|
| 479 |
+
return jsonify({"error": "Task not found"}), 404
|
| 480 |
+
|
| 481 |
+
db.session.delete(task)
|
| 482 |
+
db.session.commit()
|
| 483 |
+
return jsonify({"message": "Task deleted"}), 200
|
| 484 |
+
|
| 485 |
+
|
| 486 |
+
# ---------------------------------------------------------------------------
|
| 487 |
+
# Task Tags (convenience endpoints)
|
| 488 |
+
# ---------------------------------------------------------------------------
|
| 489 |
+
|
| 490 |
+
@api_bp.route("/api/tasks/<int:task_id>/tags", methods=["POST"])
|
| 491 |
+
def add_task_tag(task_id):
|
| 492 |
+
task = Task.query.get(task_id)
|
| 493 |
+
if not task:
|
| 494 |
+
return jsonify({"error": "Task not found"}), 404
|
| 495 |
+
|
| 496 |
+
data = request.get_json()
|
| 497 |
+
if not data or not data.get("tag_id"):
|
| 498 |
+
return jsonify({"error": "tag_id is required"}), 400
|
| 499 |
+
|
| 500 |
+
tag = Tag.query.get(data["tag_id"])
|
| 501 |
+
if not tag:
|
| 502 |
+
return jsonify({"error": "Tag not found"}), 404
|
| 503 |
+
|
| 504 |
+
if tag in task.tags:
|
| 505 |
+
return jsonify({"error": "Tag already attached"}), 409
|
| 506 |
+
|
| 507 |
+
task.tags.append(tag)
|
| 508 |
+
_log_activity(task_id, data.get("user_id"), "tags_added", "tags", None, tag.name)
|
| 509 |
+
db.session.commit()
|
| 510 |
+
return jsonify(task.to_dict()), 200
|
| 511 |
+
|
| 512 |
+
|
| 513 |
+
@api_bp.route("/api/tasks/<int:task_id>/tags/<int:tag_id>", methods=["DELETE"])
|
| 514 |
+
def remove_task_tag(task_id, tag_id):
|
| 515 |
+
task = Task.query.get(task_id)
|
| 516 |
+
if not task:
|
| 517 |
+
return jsonify({"error": "Task not found"}), 404
|
| 518 |
+
|
| 519 |
+
tag = Tag.query.get(tag_id)
|
| 520 |
+
if not tag or tag not in task.tags:
|
| 521 |
+
return jsonify({"error": "Tag not found on this task"}), 404
|
| 522 |
+
|
| 523 |
+
task.tags.remove(tag)
|
| 524 |
+
_log_activity(task_id, None, "tags_removed", "tags", tag.name, None)
|
| 525 |
+
db.session.commit()
|
| 526 |
+
return jsonify(task.to_dict()), 200
|
| 527 |
+
|
| 528 |
+
|
| 529 |
+
# ---------------------------------------------------------------------------
|
| 530 |
+
# Comments
|
| 531 |
+
# ---------------------------------------------------------------------------
|
| 532 |
+
|
| 533 |
+
@api_bp.route("/api/tasks/<int:task_id>/comments", methods=["POST"])
|
| 534 |
+
def create_comment(task_id):
|
| 535 |
+
task = Task.query.get(task_id)
|
| 536 |
+
if not task:
|
| 537 |
+
return jsonify({"error": "Task not found"}), 404
|
| 538 |
+
|
| 539 |
+
data = request.get_json()
|
| 540 |
+
if not data:
|
| 541 |
+
return jsonify({"error": "Request body is required"}), 400
|
| 542 |
+
|
| 543 |
+
user_id = data.get("user_id")
|
| 544 |
+
text = data.get("text")
|
| 545 |
+
|
| 546 |
+
if not user_id or not text:
|
| 547 |
+
return jsonify({"error": "user_id and text are required"}), 400
|
| 548 |
+
|
| 549 |
+
user = User.query.get(user_id)
|
| 550 |
+
if not user:
|
| 551 |
+
return jsonify({"error": "User not found"}), 404
|
| 552 |
+
|
| 553 |
+
comment = Comment(
|
| 554 |
+
task_id=task_id,
|
| 555 |
+
user_id=user_id,
|
| 556 |
+
text=text,
|
| 557 |
+
)
|
| 558 |
+
db.session.add(comment)
|
| 559 |
+
_log_activity(task_id, user_id, "commented")
|
| 560 |
+
db.session.commit()
|
| 561 |
+
return jsonify(comment.to_dict()), 201
|
| 562 |
+
|
| 563 |
+
|
| 564 |
+
@api_bp.route("/api/tasks/<int:task_id>/comments", methods=["GET"])
|
| 565 |
+
def list_comments(task_id):
|
| 566 |
+
task = Task.query.get(task_id)
|
| 567 |
+
if not task:
|
| 568 |
+
return jsonify({"error": "Task not found"}), 404
|
| 569 |
+
return jsonify([c.to_dict() for c in task.comments])
|
| 570 |
+
|
| 571 |
+
|
| 572 |
+
# ---------------------------------------------------------------------------
|
| 573 |
+
# Activity Log
|
| 574 |
+
# ---------------------------------------------------------------------------
|
| 575 |
+
|
| 576 |
+
@api_bp.route("/api/tasks/<int:task_id>/activities", methods=["GET"])
|
| 577 |
+
def list_activities(task_id):
|
| 578 |
+
task = Task.query.get(task_id)
|
| 579 |
+
if not task:
|
| 580 |
+
return jsonify({"error": "Task not found"}), 404
|
| 581 |
+
activities = Activity.query.filter_by(task_id=task_id).order_by(Activity.created_at.desc()).all()
|
| 582 |
+
return jsonify([a.to_dict() for a in activities])
|
| 583 |
+
|
| 584 |
+
|
| 585 |
+
@api_bp.route("/api/projects/<int:project_id>/activities", methods=["GET"])
|
| 586 |
+
def list_project_activities(project_id):
|
| 587 |
+
project = Project.query.get(project_id)
|
| 588 |
+
if not project:
|
| 589 |
+
return jsonify({"error": "Project not found"}), 404
|
| 590 |
+
|
| 591 |
+
task_ids = [t.id for t in project.tasks]
|
| 592 |
+
if not task_ids:
|
| 593 |
+
return jsonify([])
|
| 594 |
+
|
| 595 |
+
limit = request.args.get("limit", 20, type=int)
|
| 596 |
+
activities = (
|
| 597 |
+
Activity.query
|
| 598 |
+
.filter(Activity.task_id.in_(task_ids))
|
| 599 |
+
.order_by(Activity.created_at.desc())
|
| 600 |
+
.limit(limit)
|
| 601 |
+
.all()
|
| 602 |
+
)
|
| 603 |
+
result = []
|
| 604 |
+
for a in activities:
|
| 605 |
+
d = a.to_dict()
|
| 606 |
+
d["task_title"] = a.task.title if a.task else None
|
| 607 |
+
result.append(d)
|
| 608 |
+
return jsonify(result)
|
| 609 |
+
|
| 610 |
+
|
| 611 |
+
# ---------------------------------------------------------------------------
|
| 612 |
+
# Search
|
| 613 |
+
# ---------------------------------------------------------------------------
|
| 614 |
+
|
| 615 |
+
@api_bp.route("/api/search", methods=["GET"])
|
| 616 |
+
def search_tasks():
|
| 617 |
+
q = request.args.get("q", "").strip()
|
| 618 |
+
if not q:
|
| 619 |
+
return jsonify([])
|
| 620 |
+
|
| 621 |
+
tasks = Task.query.filter(
|
| 622 |
+
db.or_(
|
| 623 |
+
Task.title.ilike(f"%{q}%"),
|
| 624 |
+
Task.description.ilike(f"%{q}%"),
|
| 625 |
+
)
|
| 626 |
+
).order_by(Task.created_at.desc()).limit(50).all()
|
| 627 |
+
|
| 628 |
+
return jsonify([t.to_dict() for t in tasks])
|
| 629 |
+
|
| 630 |
+
|
| 631 |
+
# ---------------------------------------------------------------------------
|
| 632 |
+
# Reset
|
| 633 |
+
# ---------------------------------------------------------------------------
|
| 634 |
+
|
| 635 |
+
@api_bp.route("/api/reset", methods=["POST"])
|
| 636 |
+
def reset_db():
|
| 637 |
+
meta = db.metadata
|
| 638 |
+
for table in reversed(meta.sorted_tables):
|
| 639 |
+
db.session.execute(table.delete())
|
| 640 |
+
db.session.commit()
|
| 641 |
+
return jsonify({"status": "reset"}), 200
|
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
flask
|
| 2 |
+
flask-cors
|
| 3 |
+
flask-sqlalchemy
|
| 4 |
+
flask-migrate
|
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from app import create_app
|
| 2 |
+
|
| 3 |
+
app = create_app()
|
| 4 |
+
|
| 5 |
+
if __name__ == "__main__":
|
| 6 |
+
app.run(debug=True, port=5101)
|