- Merged latest work

This commit is contained in:
Dave M. 2023-11-03 20:21:27 -04:00
parent e898c6a23e
commit 0de4a9d05a
5 changed files with 14 additions and 9 deletions

View File

@ -21,7 +21,7 @@
"lean" : {
"autoload": {
"definitions" : [
{ "\\Lean\\Console\\Lean" : "definitions" }
"meta/definitions/software.php"
]
}
}

View File

@ -40,7 +40,7 @@ class Git implements FormInterface
$handle = popen("$command", 'r');
while ( false !== $output = fgets($handle, 2096) ){
while ( false !== $output = fgets($handle, 1024) ){
yield trim($output);
}

View File

@ -4,8 +4,10 @@ namespace Lean\Console;
use Psr\Container\ContainerInterface;
#[\Deprecated]
abstract class Lean
{
#[\Deprecated]
public static function definitions() : array
{
return require(dirname(__DIR__) . "/meta/definitions/software.php");

View File

@ -6,8 +6,7 @@ use Psr\Container\ContainerInterface;
use Storage\Session;
use Notes\Tell\Attribute\Language,
Notes\Route\Attribute\Object\Route;
use Lean\Console\Form;
use Notes\Security\Attribute\{ Security, Taxus };
@ -30,6 +29,12 @@ trait ConsoleControllerTrait
public function version() : string
{
return "0.4.1";
$version = iterator_to_array(
(new Form\Update\Git(getenv('PROJECT_PATH')))->run("/usr/bin/git describe --tags")
);
# dump($version);
return "1.5.0";
}
}

View File

@ -10,13 +10,11 @@
<meta name="theme-color" content="#ffffff">
<link rel="icon" href="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3E%3Ctext%20x='0'%20y='14'%3E🔳%3C/text%3E%3C/svg%3E" type="image/svg+xml" />
<link rel="stylesheet" href='{% asset:path "lean-console/lean-console-bw.css" %}'>
<title>{{ title() }}</title>
<link rel="stylesheet" href='{% asset "static/lean-console/lean-console-bw.css" %}'>
<style>
{# include "lean-console/lean-console-bw.css" #}
</style>
{% section "head" %}{% endsection %}