From 58a96c4b5c4478ac0f737c3ae83e10d87f40506f Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Tue, 17 Oct 2023 18:04:13 +0000 Subject: [PATCH] - WIP on Lean's autoload component --- .../lean-console/lean-console-bw.css | 0 meta/definitions/software.php | 13 ++++++++++++- view/lean-console/base/layout.phtml | 4 +++- 3 files changed, 15 insertions(+), 2 deletions(-) rename view/lean-console/base/asset/lean.css => asset/lean-console/lean-console-bw.css (100%) diff --git a/view/lean-console/base/asset/lean.css b/asset/lean-console/lean-console-bw.css similarity index 100% rename from view/lean-console/base/asset/lean.css rename to asset/lean-console/lean-console-bw.css diff --git a/meta/definitions/software.php b/meta/definitions/software.php index 34ba1ff..d954ed1 100644 --- a/meta/definitions/software.php +++ b/meta/definitions/software.php @@ -2,6 +2,8 @@ use Lean\Console\Lib\DatabaseMigrations; +$path = dirname(__DIR__, 2); + return [ 'lean.console' => [ 'picea' => [ @@ -9,10 +11,19 @@ return [ 'view' => [ [ - 'path' => getenv("PROJECT_PATH") . implode(DIRECTORY_SEPARATOR, [ "", "vendor", "mcnd" , "lean-console" , "view" ]), + 'path' => implode(DIRECTORY_SEPARATOR, [ $path , "view", '' ]), 'order' => 99, ], ], + + 'asset' => [ + 'source' => [ + [ + 'path' => implode(DIRECTORY_SEPARATOR, [ $path, "asset", '' ]), + 'order' => 10 + ] + ], + ], ], 'ulmus' => [], diff --git a/view/lean-console/base/layout.phtml b/view/lean-console/base/layout.phtml index f2423b5..8630a1a 100644 --- a/view/lean-console/base/layout.phtml +++ b/view/lean-console/base/layout.phtml @@ -14,7 +14,9 @@ {{ title() }} {% section "head" %}{% endsection %}