Compare commits

...
Sign in to create a new pull request.
Author SHA1 Message Date
engineerTrooper
6523e77742 VENOM: Entity fixed JSON
EntityManger added return value
EntityManager added getFirst
Fixed Some Admin shit :)
2021-01-04 22:24:32 +01:00
eb6770204a VENOM-10: Moved to new Module Structure
Fixed File-Endings
Added Entity-System
2021-01-03 16:59:11 +01:00
engineerTrooper
32a78ed1b9 VENOM: Hardcode WIP (versustunez) 2020-12-22 18:07:13 +01:00
engineerTrooper
7b90160c48 VENOM-10: Fix Hamburger 2020-12-16 17:05:38 +01:00
engineerTrooper
6f93d0d4dd VENOM-10: Added Missing Css 2020-12-16 16:35:12 +01:00
engineerTrooper
3c9be5efba VENOM: fixed Routing to class SeoController 2020-12-16 16:16:54 +01:00
engineerTrooper
430681d84f VENOM-10: fixed menu symbol to hamburger symbol (visible in tablet and mobile view) 2020-12-16 16:16:10 +01:00
engineerTrooper
196ff0b1f1 VENOM: Fix Router cannot find Route if Trailing Slash is existing (VersusTuneZ)
FIX Typos
Change Folder
WIP
2020-12-13 01:26:02 +01:00
85549fbd43 VENOM-10: Clean Up Code 2020-12-08 18:37:59 +01:00
engineerTrooper
7d540d809a VENOM-2: added app-container, added nav-button at mobile and tablets screens 2020-12-08 16:41:59 +01:00
engineerTrooper
147cd09d13 VENOM-2: deleted class overview 2020-12-08 16:41:23 +01:00
engineerTrooper
6bac93205c VENOM-2: added v-input parameters 2020-12-08 16:40:23 +01:00
engineerTrooper
e29163165f VENOM-2: changed code to V-Utils via VTepl (50%) -> result: minified code 2020-12-08 16:38:43 +01:00
engineerTrooper
aacf885c56 VENOM-2: changed code to V-Utils via VTepl -> result: minified code, added classes and flexbox, fixed data display at v-table 2020-12-08 16:38:01 +01:00
engineerTrooper
1e4e71ad9c VENOM-10: added new function isMobileDevice 2020-12-08 16:33:34 +01:00
engineerTrooper
2d9fbc3b99 VENOM-2: update minimized files 2020-12-08 16:32:59 +01:00
147189288f VENOM-10: Moved Modules to Own File to avoid User have to add it!
FIXED composer.json
2020-12-06 12:30:12 +01:00
engineerTrooper
f9dd03193e VENOM-10: added files x.tpl, x.php Modules 2020-12-03 17:58:36 +01:00
3d92f5347a VENOM: FIX PHP8! 2020-11-30 09:01:31 +01:00
5c44d50989 VENOM-10: WIP 2020-11-18 17:50:01 +01:00
8d246aa381 Fix missing TYPE on fucking INPUTS 2020-11-17 22:37:33 +01:00
a34201ffc2 Fix Some errors
Fix Input-Fields (not all fixed <3 pls dome)
2020-11-17 22:34:04 +01:00
engineerTrooper
f7b7b6c956 VENOM-10: added textarea with style and style correction on v-selects 2020-11-17 15:13:58 +01:00
engineerTrooper
9519236662 VENOM-10: added, fake tables with display:grid. create v-table as html dom element 2020-11-15 19:19:23 +01:00
engineerTrooper
162cc4b0a4 VENOM-10 : added design (first step) 2020-11-01 18:59:05 +01:00
Maurice Grönwoldt
8b87c7d2f7 VENOM-2: do new login <3 2020-10-21 17:14:08 +02:00
597be3ce2e added logo (pls move to theme folder!)
added svg logo from webinterface
2020-10-06 16:40:10 +02:00
Maurice Grönwoldt
0baed1a7fc VENOM-2: Fixed Login, fixed missing scripts.min.js, 2020-10-05 20:38:36 +02:00
engineerTrooper
a2931d93f7 VENOM-2 : WIP 2020-10-05 20:02:43 +02:00
Maurice Grönwoldt
c7984873c0 fixed login
added example login
2020-09-25 22:33:35 +02:00
Maurice Grönwoldt
f00bdc99ec fixed security login 2020-09-25 21:51:39 +02:00
Maurice Grönwoldt
2db5aa8693 cherry-picked changes Meta-Generator from engineer-trooper 2020-09-25 21:39:05 +02:00
Maurice Grönwoldt
f7fa124535 WIP 2020-09-25 21:33:54 +02:00
100 changed files with 3608 additions and 257 deletions

5
.gitignore vendored
View file

@ -466,3 +466,8 @@ conf/modules.inc.php
conf/routers.inc.php conf/routers.inc.php
conf/lang.inc.php conf/lang.inc.php
logs/Exception.log logs/Exception.log
z_dome/
composer.lock
adminer.php

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);

View file

@ -5,11 +5,19 @@
"authors": [ "authors": [
{ {
"name": "Maurice Grönwoldt", "name": "Maurice Grönwoldt",
"email": "mauricegroenwoldt@gmail.com" "email": "mauricegroenwoldt@gmail.com",
"role": "founder"
},
{
"name": "Dominic Seela",
"email": "kontakt@engineertrooper.com",
"role": "friendly developer, supporter"
} }
], ],
"require": { "require": {
"ext-pdo": "*" "ext-pdo": "*",
"ext-http": "*",
"ext-json": "*"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {

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

View file

@ -7,6 +7,14 @@ create table if not exists seoData
) )
comment 'seo url mapping'; comment 'seo url mapping';
create table if not exists metaTagData
(
id int(255) auto_increment not null unique primary key,
content JSON not null,
isActive tinyint(1) default 1 null
)
comment 'Meta Tag File';
create table if not exists language create table if not exists language
( (
id int(255) auto_increment not null unique primary key, id int(255) auto_increment not null unique primary key,
@ -27,3 +35,26 @@ create table if not exists data
datatype enum ('content', 'form') datatype enum ('content', 'form')
) )
comment 'DataLoader File'; comment 'DataLoader File';
create table if not exists users
(
id int(255) auto_increment not null unique primary key,
username varchar(255) not null unique,
firstname varchar(255) not null,
lastname varchar(255) not null,
email varchar(255) not null,
password varchar(255) not null,
token varchar(255) not null,
salt varchar(255) not null,
roleId text default '0' not null,
isActive tinyint(1) default 1 null
)
comment 'User File';
create table if not exists roles
(
id int(255) auto_increment not null unique primary key,
name varchar(255) not null unique,
content JSON not null,
isActive tinyint(1) default 1 null
)

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

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

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

View file

@ -1,7 +0,0 @@
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (/[^.]*|\.)$ [NC]
RewriteRule .* index.php [L]

View file

@ -1,24 +0,0 @@
<?php
use Venom\Core\Config;
use Venom\Core\Setup;
use Venom\Venom;
require_once '../../vendor/autoload.php';
Setup::loadConfig(true);
Setup::loadLanguage();
$config = Config::getInstance();
if ($config->isMaintenance()) {
echo 'Currently not available';
exit;
}
//if devMode is on show all errors!
if ($config->isDevMode()) {
error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);
}
$venom = new Venom();
Setup::loadRouters($venom);
Setup::loadModules($venom);
$venom->run();

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

View file

@ -2,10 +2,12 @@
use Venom\Core\Config; use Venom\Core\Config;
use Venom\Core\Setup; use Venom\Core\Setup;
use Venom\Helper\URLHelper;
use Venom\Venom; use Venom\Venom;
require_once '../vendor/autoload.php'; require_once '../vendor/autoload.php';
Setup::loadConfig(false); session_start();
Setup::loadConfig(URLHelper::getInstance()->isAdminUrl());
Setup::loadLanguage(); Setup::loadLanguage();
$config = Config::getInstance(); $config = Config::getInstance();
@ -21,4 +23,4 @@ if ($config->isDevMode()) {
$venom = new Venom(); $venom = new Venom();
Setup::loadRouters($venom); Setup::loadRouters($venom);
Setup::loadModules($venom); Setup::loadModules($venom);
$venom->run(); $venom->inject();

View file

@ -0,0 +1 @@
main{display:flex;height:100vh;overflow:hidden}main h1{margin-top:30px;margin-bottom:20px}main h2{margin-top:35px;margin-bottom:25px}main h3{margin-top:20px;margin-bottom:15px}main h4{margin-top:15px;margin-bottom:10px}main.nav-open .menu{transform:translateX(0)}main.nav-open .app{transform:translateX(220px)}main.nav-open .app .nav-toggle span{transition:width .3s;width:0}main.nav-open .app .nav-toggle span:before{transform:translateY(8px) rotate(-135deg)}main.nav-open .app .nav-toggle span:after{transform:translateY(-8px) rotate(135deg)}.app{transform:translateX(0);transition:transform .4s;flex-grow:1;overflow-y:auto;margin:.6rem .8rem;width:100%;max-height:100%;background:rgba(27,27,27,.5);position:relative}.app .nav-toggle{position:absolute;cursor:pointer;left:1rem;height:25px;width:25px}.app .nav-toggle span{transform:translateY(21px)}.app .nav-toggle span,.app .nav-toggle span:after,.app .nav-toggle span:before{border-radius:1px;height:2px;width:25px;background:#fff;position:absolute;content:'';transition:transform .5s,width .4s ease-in}.app .nav-toggle span:before{top:-8px}.app .nav-toggle span:after{bottom:-8px}.menu{width:220px;background-color:#1b1b1b;box-shadow:0 3px 6px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23);height:100%;position:fixed;z-index:1;top:0;left:0;overflow-x:hidden;transition:.4s;transform:translateX(-220px);display:flex;flex-direction:column}.menu .logo{text-align:center;font-family:monospace}.menu div[data-link]{padding:.75rem .5rem;position:relative}.menu div[data-link]:after{background-color:#3949ab;content:"";position:absolute;left:0;bottom:0;height:3px;width:100%;transform:scaleX(0);transition:transform .4s;transform-origin:left}.menu div[data-link]:hover:after{transform:scaleX(1)}.menu div[data-link]:last-child{margin-top:auto}.menu div[data-link].active{font-weight:700}.content-area{width:calc(100% - 20px);padding-top:30px;margin:0 auto;display:block}.content-area header{display:block;text-align:center}.content-area header h2{margin:25px 0}.content-area .back-arrow{width:36px;height:36px}.content-area textarea{background:rgba(27,27,27,.5);color:#fff;margin:15px 0 0 0;font-family:sans-serif;font-size:1.1rem;min-width:100%}.content-area .modules div{padding:6px 20px 6px 0}.content-area .add-new,.content-area .overview{width:100%}.content-area .overview div[data-link]{margin-right:10px;padding:10px;background-color:rgba(0,0,0,.3)}.content-area .overview div[data-link]:hover{background-color:rgba(0,0,0,.5)}.content-area .overview .icon{display:inline-block}.content-area .add-new{padding-top:25px}@media only screen and (min-width:768px){.content-area{width:calc(100% - 40px)}.content-area .flexbox{display:flex}.content-area .overview{flex-grow:1;width:60%}.content-area .add-new{padding-top:0;flex-grow:1;width:40%}}@media only screen and (min-width:1024px){.content-area{max-width:860px;padding-top:0;margin:0 0 0 20px}}@media only screen and (min-width:1024px){main,main.nav-open{display:flex}main .app,main.nav-open .app{transform:translateX(0)}main .menu,main.nav-open .menu{position:relative;transform:translateX(0)}main .nav-toggle,main.nav-open .nav-toggle{display:none}}.role-edit .privileges .name{font-size:1.15rem}

View file

@ -0,0 +1 @@
body,html{display:flex;justify-content:center;align-items:center}.hide{display:none!important}#login-background{background-color:rgba(31,31,31,.25);-webkit-filter:blur(10px);filter:blur(10px);position:absolute;top:0;left:0;width:100%;height:100%}login{display:flex;position:relative;max-width:860px;width:90%;height:400px;padding:1rem;border-radius:10px 40px;overflow:hidden;box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23)}#login{z-index:1;display:flex;flex-direction:column;align-items:center;width:100%}#login .logo{width:50%;margin-bottom:20px}#login .error-message{background-color:#c51162;padding:1rem;font-size:.7rem;display:block;width:50%}#login .input-group{width:50%}#login a{text-decoration:none;color:#fff}#login a:hover{color:#3949ab}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg"><symbol viewBox="0 0 24 24" id="vt-add" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></symbol><symbol viewBox="0 0 24 24" id="vt-arrow-back" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></symbol><symbol viewBox="0 0 24 24" id="vt-check" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M19 3H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></symbol><symbol viewBox="0 0 24 24" id="vt-delete" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/><path d="M0 0h24v24H0z" fill="none"/></symbol><symbol viewBox="0 0 24 24" id="vt-edit" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 000-1.41l-2.34-2.34a.996.996 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></symbol><symbol viewBox="0 0 24 24" id="vt-visibility" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/></symbol></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.9 KiB

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