VENOM-10: Moved to new Module Structure

Fixed File-Endings
Added Entity-System
This commit is contained in:
Maurice Grönwoldt 2021-01-03 16:59:11 +01:00
commit eb6770204a
101 changed files with 1271 additions and 891 deletions

View file

@ -1,18 +1,18 @@
<?php <?php
use Venom\Core\Config; use Venom\Core\Config;
use Venom\Core\DatabaseHandler; use Venom\Core\Database\Database;
$config = Config::getInstance(); $config = Config::getInstance();
$config->setVersion(1.0); $config->setVersion(1.0);
$config->setDatabase([ $config->setDatabase([
DatabaseHandler::DB_TYPE => 'mysql', //please change only if you know what you're doing! this can break a lot. Database::DB_TYPE => 'mysql', //please change only if you know what you're doing! this can break a lot.
DatabaseHandler::DB_HOST => '127.0.0.1', Database::DB_HOST => '127.0.0.1',
DatabaseHandler::DB_PORT => '3306', //default port is 3306 Database::DB_PORT => '3306', //default port is 3306
DatabaseHandler::DB_USER => 'venom', Database::DB_USER => 'venom',
DatabaseHandler::DB_PASSWORD => 'venomPassword', Database::DB_PASSWORD => 'venomPassword',
DatabaseHandler::DB_DB => 'venomCMS', Database::DB_DB => 'venomCMS',
DatabaseHandler::DB_EXTRA => '' // need to start with ';' Database::DB_EXTRA => '' // need to start with ';'
]); ]);
/** /**

0
base/lang.base.php Normal file → Executable file
View file

View file

@ -1,9 +1,4 @@
<?php <?php
//register modules -> need to have the Module Class at parent with the init function ;) //register modules -> only apply Module Path! like Meta now the ModuleLoader search for /modules/Meta/module.php!
$modules = []; $modules = [];
// register controllers that can handle templates ;) need to have a render function for this
$controllers = [
'test' => \Controllers\TestController::class,
];

18
base/router.base.php Normal file → Executable file
View file

@ -11,19 +11,5 @@ if (!isset($venom)) {
exit(1); exit(1);
} }
$router = new Router('defaultRouter', 1.0, 'api/'); $router = new Router(Router::DEFAULT_ROUTER, 1.0, 'api/');
$router->addRoutes([ $venom->addRouter($router);
'/test' => [
'cl' => Route::class,
'roles' => ['ROLE_GUEST'],
'routes' => [
'*' => [
"GET" => 'getAll'
],
'1' => [
"GET" => 'getAll'
]
]
],
]);
$venom->addRouter('defaultRouter', $router);

0
conf/.gitkeep Normal file → Executable file
View file

View file

@ -46,7 +46,7 @@ create table if not exists users
password varchar(255) not null, password varchar(255) not null,
token varchar(255) not null, token varchar(255) not null,
salt varchar(255) not null, salt varchar(255) not null,
roles text default 'ROLE_GUEST' not null, roleId text default '0' not null,
isActive tinyint(1) default 1 null isActive tinyint(1) default 1 null
) )
comment 'User File'; comment 'User File';

0
lang/example.php Normal file → Executable file
View file

0
public/.htaccess Normal file → Executable file
View file

0
public/content/.gitkeep Normal file → Executable file
View file

0
public/theme/admin/css/admin-panel.css Normal file → Executable file
View file

0
public/theme/admin/css/login.css Normal file → Executable file
View file

0
public/theme/admin/css/style.css Normal file → Executable file
View file

0
public/theme/admin/icon-sprite.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Before After
Before After

0
public/theme/admin/images/logo.svg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

Before After
Before After

0
public/theme/admin/js/components.js Normal file → Executable file
View file

0
public/theme/admin/js/components.min.js vendored Normal file → Executable file
View file

0
public/theme/admin/js/scripts.js Normal file → Executable file
View file

0
public/theme/admin/js/scripts.min.js vendored Normal file → Executable file
View file

0
public/theme/default/css/test.css Normal file → Executable file
View file

0
public/theme/default/js/test.js Normal file → Executable file
View file

Some files were not shown because too many files have changed in this diff Show more