Add popup menus for actions

This commit is contained in:
2024-10-01 22:31:51 +02:00
parent 3caca13e5c
commit 88abeaa896
4 changed files with 163 additions and 28 deletions

View File

@ -31,8 +31,14 @@ class TreeList implements Countable
private function parseNode(Node $node, array $path, string|int|null $key): void
{
if (str_contains($key, '/')) {
$ekey = urlencode($key);
} else {
$ekey = $key;
}
$level = count($path);
$entryKey = join("/", $path) . (is_null($key) ? "/" : (is_int($key) ? sprintf("/%d", $key) : sprintf("/%s", $key)));
$entryKey = join("/", $path) . (is_null($key) ? "/" : (is_int($key) ? sprintf("/%d", $key) : sprintf("/%s", $ekey)));
$entry = new Entry(depth: $level, key: $key, node: $node);