- UI Revamp

- Some i18n added/fixed
- WIP on a new testing mechanism
This commit is contained in:
mcndave committed 2026-11-25 19:18:36 +00:00
1 parent f5014e1cee
commit 58c61a8f01
76 files changed
+1428 -313

No files matched your search

+18 -8
View File
@@ -1,5 +1,7 @@
<?php
use Psr\Container\ContainerInterface;
use Lean\Console\Lib\Testing\TestFetcher;
use Lean\Console\Lib\DatabaseMigrations;
$path = dirname(__DIR__, 2);
@@ -11,14 +13,14 @@ return [
'view' => [
[
'path' => implode(DIRECTORY_SEPARATOR, [ $path , "view", '' ]),
'path' => Lean\Lean::path($path, 'view'),
'order' => 99,
],
],
'asset' => [
[
'path' => implode(DIRECTORY_SEPARATOR, [ $path, "asset", '' ]),
'path' => Lean\Lean::path($path, 'asset'),
'order' => 10
],
],
@@ -26,29 +28,37 @@ return [
'ulmus' => [
'entities' => [
Lean\Console\Entity\Firewall::class => implode(DIRECTORY_SEPARATOR, [ $path , "src", "Entity", "Firewall" ]),
# Lean\Console\Entity::class => Lean\Lean::path($path, 'src', 'Entity'),
],
],
'tell' => [
'json' => [
[
'path' => implode(DIRECTORY_SEPARATOR, [ $path, "meta", "i18n", "" ]),
'path' => Lean\Lean::path($path, 'meta', 'i18n'),
'order' => 99,
],
]
],
'cli' => [
'Lean\\Console\\Cli' => implode(DIRECTORY_SEPARATOR, [ $path, "src", "Cli", "" ]),
'Lean\\Console\\Cli' => Lean\Lean::path($path, 'src', 'Cli'),
],
'routes' => ! getenv('DEBUG') ? [] : [
Lean\Console\Controller::class => implode(DIRECTORY_SEPARATOR, [ $path, "src", "Controller", "" ]),
'tests' => [
Lean\Console\Controller::class => Lean\Lean::path($path, 'src', 'Controller'),
],
'routes' => [
Lean\Console\Controller::class => Lean\Lean::path($path, 'src', 'Controller'),
],
],
DatabaseMigrations::class => function($c) {
DatabaseMigrations::class => function(ContainerInterface $c) {
return new DatabaseMigrations( $c->get(Lean\Lean::class)->getEntities() );
},
TestFetcher::class => function(ContainerInterface $c) {
return new TestFetcher($c->get(Lean\Lean::class)->getTests(), null, $c->get('routes.caching'));
},
];
+7 -1
View File
@@ -2,5 +2,11 @@
"title": "Caching -- LEAN",
"page-title": "LEAN - Caching",
"clear": "Clear",
"breadcrumb": "Caching"
"breadcrumb": "Caching",
"header": "",
"table": {
"name": "Compiled file",
"namespace": "Namespace",
"view": "View path"
}
}
+6 -3
View File
@@ -1,6 +1,6 @@
{
"lean": {
"label": "Lean",
"core": {
"label": "Core",
"dashboard": "Dashboard",
"update": "Update(s)"
},
@@ -27,8 +27,11 @@
"phpinfo": "PhpInfo"
},
"testing": {
"label": "Testing"
},
"request": {
"request": {
"label": "Request",
"routes": "Routes"
},
+9 -1
View File
@@ -31,7 +31,6 @@
"add": "Create",
"breadcrumb": "Insert",
"readonly": "This field is read-only",
"table": {
"column": "Column",
"type": "Data type",
@@ -39,5 +38,14 @@
"attributes": "Attributs",
"value": "Value"
}
},
"session": {
"header": "Sessions list",
"breadcrumb": "Sessions",
"count": "{$count} session(s)",
"table": {
"view": "View"
}
}
}
+5 -1
View File
@@ -2,5 +2,9 @@
"title": "Templating -- LEAN",
"page-title": "LEAN - Templating",
"breadcrumb": "Templating",
"header": "Views"
"header": "Views",
"filename": "Chemin du fichier",
"table": {
"empty": "Empty folder"
}
}
+6
View File
@@ -0,0 +1,6 @@
{
"title": "Testing -- LEAN",
"page-title": "LEAN - Testing",
"breadcrumb": "Testing",
"header": "Tests"
}
+3 -1
View File
@@ -3,6 +3,8 @@
"page-title": "LEAN - Update",
"git": {
"breadcrumb": "Update",
"header": "Git Status"
"header": "Source code versioning",
"status:nothing": "Empty",
"diff:nothing": "Empty"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"title": "Caching -- LEAN",
"page-title": "LEAN - Caching",
"clear": "Clear",
"breadcrumb": "Caching",
"header": "Caching des vues Picea",
"table": {
"name": "Fichier compilé",
"namespace": "Namespace",
"view": "Chemin de la vue"
}
}
+9 -3
View File
@@ -1,7 +1,8 @@
{
"lean": {
"label": "Lean",
"dashboard": "Dashboard"
"core": {
"label": "Noyau",
"dashboard": "Dashboard",
"update": "Mise(s) à jour"
},
"storage": {
@@ -26,6 +27,11 @@
"phpinfo": "PhpInfo"
},
"testing": {
"label": "Testing",
"tests": "Tests automatisés"
},
"request": {
"label": "Request",
"routes": "Routes"
+12 -6
View File
@@ -3,28 +3,34 @@
"page-title": "LEAN - Storage",
"database": {
"header": "List of databases",
"header": "Liste des bases de données",
"breadcrumb": "Bases de données",
"name": "Database",
"adapter": "Adapter",
"host": "Hostname:port",
"username": "Username",
"connection": "Connection",
"connection": "Connection <u>{$name}</u>",
"table": {
"header": "Tables details",
"fields": "{$count} fields",
"fields": "{$count} field(s)",
"entries": "{$count} entrie(s)",
"name": "Table Name",
"actions": "Actions",
"table-fields" : "Fields in table",
"create": "Create table",
"createAll": "Create all tables",
"query": "SQL Query"
"query": "SQL Query",
"uptodate": "Cette table est à jour"
}
},
"session": {
"header": "Liste des sessions",
"breadcrumb": "Sessions",
"count": "{$count} session(s)"
"count": "{$count} session(s)",
"table": {
"view": "Voir"
}
}
}
+8 -5
View File
@@ -1,7 +1,10 @@
{
"title" : "Console -- LEAN",
"page-title": "Console",
"breadcrumb" : {
"index" : "Negundo"
"title": "Mise(s)-à-jour -- LEAN",
"page-title": "LEAN - Mise(s)-à-jour",
"git": {
"breadcrumb": "Mise(s)-à-jour",
"header": "Versionnage du code",
"status:nothing": "Vide",
"diff:nothing": "Vide"
}
}
}