- Merged latest work
This commit is contained in:
parent
e898c6a23e
commit
0de4a9d05a
|
@ -21,7 +21,7 @@
|
||||||
"lean" : {
|
"lean" : {
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"definitions" : [
|
"definitions" : [
|
||||||
{ "\\Lean\\Console\\Lean" : "definitions" }
|
"meta/definitions/software.php"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,7 @@ class Git implements FormInterface
|
||||||
|
|
||||||
$handle = popen("$command", 'r');
|
$handle = popen("$command", 'r');
|
||||||
|
|
||||||
while ( false !== $output = fgets($handle, 2096) ){
|
while ( false !== $output = fgets($handle, 1024) ){
|
||||||
yield trim($output);
|
yield trim($output);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,10 @@ namespace Lean\Console;
|
||||||
|
|
||||||
use Psr\Container\ContainerInterface;
|
use Psr\Container\ContainerInterface;
|
||||||
|
|
||||||
|
#[\Deprecated]
|
||||||
abstract class Lean
|
abstract class Lean
|
||||||
{
|
{
|
||||||
|
#[\Deprecated]
|
||||||
public static function definitions() : array
|
public static function definitions() : array
|
||||||
{
|
{
|
||||||
return require(dirname(__DIR__) . "/meta/definitions/software.php");
|
return require(dirname(__DIR__) . "/meta/definitions/software.php");
|
||||||
|
|
|
@ -6,8 +6,7 @@ use Psr\Container\ContainerInterface;
|
||||||
|
|
||||||
use Storage\Session;
|
use Storage\Session;
|
||||||
|
|
||||||
use Notes\Tell\Attribute\Language,
|
use Lean\Console\Form;
|
||||||
Notes\Route\Attribute\Object\Route;
|
|
||||||
|
|
||||||
use Notes\Security\Attribute\{ Security, Taxus };
|
use Notes\Security\Attribute\{ Security, Taxus };
|
||||||
|
|
||||||
|
@ -30,6 +29,12 @@ trait ConsoleControllerTrait
|
||||||
|
|
||||||
public function version() : string
|
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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,13 +10,11 @@
|
||||||
<meta name="theme-color" content="#ffffff">
|
<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="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>
|
<title>{{ title() }}</title>
|
||||||
|
|
||||||
<link rel="stylesheet" href='{% asset "static/lean-console/lean-console-bw.css" %}'>
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
{# include "lean-console/lean-console-bw.css" #}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
{% section "head" %}{% endsection %}
|
{% section "head" %}{% endsection %}
|
||||||
|
|
Loading…
Reference in New Issue