Updates from hell

This commit is contained in:
ahwelp
2020-09-18 22:31:26 -03:00
parent df312bdc1b
commit aef7351b61
8 changed files with 127 additions and 71 deletions
+20
View File
@@ -87,4 +87,24 @@ class Output {
$class->setView($instance->view)->render();
}
public static function addMenu($route, $name, $icon = '', $attributes = [], $weight = 0){
global $SIDEBAR;
$SIDEBAR->add($route, $name, $icon, $attributes, $weight);
}
public static function addSubmenu($key, $name, $icon = '', $attributes = [], $weight = 0){
global $SIDEBAR;
$SIDEBAR->create_submenu($key, $name, $icon, $attributes , $weight);
}
public static function addOnSubmenu($key, $route, $name, $icon = '', $attributes = [], $weight = 0){
global $SIDEBAR;
$SIDEBAR->add_on_new($key, $route, $name, $icon, $attributes, $weight);
}
public static function icon($icon){
return "<i class='$icon' aria-hidden='true'></i>";
}
}
@@ -7,19 +7,17 @@
<body>
<div id="wrapper">
<!-- Sidebar -->
<!-- Sidebar -->
<nav id="sidebar-wrapper">
<div class="logo" style="">
<img src='/media/logo_white.png' alt="logo" />
</div>
<!-- <div class="search-nav" style="">
<div class="search-nav" style="">
<input class="form-control" type="text" placeholder="Busca"/>
</div> -->
<hr />
</div>
{{elements}}
<ul id="side-second-menu" class="hidden nav">
</ul>
</nav>
@@ -29,7 +27,8 @@
<!-- Page Content -->
<div id="main-page-wrapper">
<header style='min-height: 50px; background-color: #000;'>
<header class='navbar navbar-default navbar-fixed-top' style='min-height: 50px; background-color: #000;'>
<ul class="nav navbar-nav navbar-left">
<li class="tooltip-sidebar-toggle">
<a href="" id="menu-toggle">
@@ -37,21 +36,31 @@
</a>
</li>
</ul>
<!-- <ul id='menu-usuario' class="nav navbar-nav navbar-right nav-dropdown">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" data-method="reload">
<i class="fa fa-user" aria-hidden="true"></i> <span class="caret"></span>
<ul class="nav navbar-top-links navbar-right">
<!--{{usermenu}}-->
<li class="nav-item dropdown no-arrow">
<a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-user fa-fw"></i>
</a>
{{usermenu}}
<div class="dropdown-menu dropdown-menu-right" >
<a class="dropdown-item" href="#">Profile</a>
<a class="dropdown-item" href="#"><i class=""></i>Settings</a>
<a class="dropdown-item" href="#"><i class=""></i>Activity Log</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#" ><i class=""></i>Logout</a>
</div>
</li>
</ul> -->
</ul>
</header>
<div id="progress" class="progress hidden" >
<div class="progress-bar progress-bar-striped progress-bar-animated active" style="width: 100%;"></div>
</div>
<!-- BreadCrumbs -->
<!-- BreadCrumbs -->
<div class='breadcrumb'>{{breadcrumb}}</div>
<!-- /BreadCrumbs -->
<div id="page-content-wrapper">
+11
View File
@@ -0,0 +1,11 @@
<?php
use RR\Response as R;
class WellcomeController{
function welcome(){
R::json(Array('message' => Lang::getString('welcome', 'welcome')))->send()->done();
}
}
+48 -28
View File
@@ -34,6 +34,7 @@ body{
/*
-------------------------------------------------------
*/
textarea{
resize: vertical;
min-height: 200px
@@ -55,6 +56,13 @@ textarea{
white-space: nowrap;
}
/* BreadCrumbs -------------------------------- */
.breadcrumb{
width:100%;
background-color:#ddd;
}
/*
_____ _____ _____ ______ ____ _____
/ ____|_ _| __ \| ____| _ \ /\ | __ \
@@ -78,7 +86,6 @@ textarea{
}
#sidebar-wrapper {
/*z-index: 1000;*/
position: fixed;
left: 250px;
width: 0;
@@ -107,9 +114,12 @@ textarea{
margin-right: -250px;
}
/*
-------------------------------------------------------
*/
.nav-item .in{
display: block !important;
}
/* ------------------------------------------------------- */
.logo{
text-align: center;
margin-top: 15px;
@@ -118,31 +128,40 @@ textarea{
.logo > img {
width:50%;
}
/*
-------------------------------------------------------
*/
/*
-------------------------------------------------------
*/
/*-------------------------------------------------------*/
.search-nav{
padding: 10px;
text-align: center;
margin-bottom:15px;
}
.search-nav > input{
margin: 0 auto;
width: 95%;
border-radius: 0px;
}
/*
-------------------------------------------------------
*/
/*
*-----------------------------------------------------
*Sidebar responsiveness
*/
#side-second-menu{
display:none;
}
#side-menu li, #side-second-menu li{
width:100%;
}
#side-menu li a, #side-second-menu li a{
font-size: 1.1em;
}
#side-menu li i, #side-second-menu li i{
margin-right: 10px;
}
.nav-dropdown{
margin-right: 20px !important;
}
/* Sidebar responsiveness */
@media(min-width:768px) {
#wrapper {
padding-left: 250px;
@@ -171,15 +190,7 @@ textarea{
}
}
/*
_ _ ______ ^ _____ ______ _____
| | | | ____| / \ | __ \| ____| __ \
| |__| | |__ / \ | | | | |__ | |__) |
| __ | __| / /_\ \ | | | | __| | _ /
| | | | |____ / _____ \| |__| | |____| | \ \
|_| |_|______/_/ \_\_____/|______|_| \_\
*/
/* Header ---------------------------*/
#navbar-top{
min-height: 50px;
@@ -203,6 +214,10 @@ textarea{
/* HELPER ---------------------------- */
.hidden{
display:none;
}
.round-ball{
border-radius: 60px !important;
font-size: 1.5em;
@@ -211,3 +226,8 @@ textarea{
bottom: 20px;
right: 20px;
}
@media print {
#sidebar-wrapper, #header{ display: none !important; }
#wrapper { padding-left: 0px; }
}
+12 -17
View File
@@ -1,29 +1,24 @@
#side-menu li a{
color: #fff !important;
font-size: 1.1em;
#side-menu li a, #side-second-menu li a{
color: #ffffff;
}
.sidebar-wrapper{
}
#side-menu li a:focus, #side-menu li a:hover {
color: #000 !important;
}
.nav-dropdown{
margin-right: 20px !important;
#side-menu li a:focus,
#side-menu li a:hover,
#side-second-menu li a:focus,
#side-second-menu li a:hover
{
color: #000000 !important;
background-color: #fff !important;
}
.nav-dropdown .dropdown-toggle{
color: #fff !important;
color: #ffffff !important;
}
.nav-dropdown .dropdown-toggle:focus,
.nav-dropdown .dropdown-toggle > l1 > a:focus,
.nav-dropdown .dropdown-toggle:hover,
.nav-dropdown .dropdown-toggle > l1 > a:hover{
color: #000 !important;
color: #000000 !important;
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -16,7 +16,7 @@ spl_autoload_register(function ($class_name) {
return include strtolower($path . $fileName . '.php');
}
include $path . $fileName . '.php';
@include $path . $fileName . '.php';
});
class Connection {