UI incompleto

This commit is contained in:
2021-07-29 22:05:48 -04:00
parent 4374392af1
commit fb18129826
48 changed files with 1063 additions and 0 deletions

View File

@ -0,0 +1,4 @@
<?php
return [
'debug' => $_ENV['DEBUG'] ?? false
];

View File

@ -0,0 +1,27 @@
<?php
use Psr\Container\ContainerInterface as Container;
return [
'folders' => function(Container $c) {
$arr = [
'base' => dirname(__DIR__, 2)
];
$arr['resources'] = implode(DIRECTORY_SEPARATOR, [
$arr['base'],
'resources'
]);
$arr['routes'] = implode(DIRECTORY_SEPARATOR, [
$arr['resources'],
'routes'
]);
$arr['cache'] = implode(DIRECTORY_SEPARATOR, [
$arr['base'],
'cache'
]);
$arr['templates'] = implode(DIRECTORY_SEPARATOR, [
$arr['resources'],
'views'
]);
return (object) $arr;
}
];

View File

@ -0,0 +1,22 @@
<?php
use Psr\Container\ContainerInterface as Container;
return [
'urls' => function(Container $c) {
$arr = ['base' => $_ENV['BASE_URL'] ?? '/'];
$arr['assets'] = str_replace('//', '/', implode('/', [
$arr['base'],
'assets'
]));
$arr['images'] = implode('/', [
$arr['assets'],
'images'
]);
$arr['scripts'] = implode('/', [
$arr['assets'],
'scripts'
]);
$arr['api'] = $_ENV['API_URL'] ?? 'http://localhost:9001';
return (object) $arr;
}
];