remove "hieu-le/active", better admin style

This commit is contained in:
Arno Kaimbacher 2019-04-23 17:15:48 +02:00
parent 0f5e345467
commit 1d96d77e5a
4 changed files with 17 additions and 75 deletions

View File

@ -13,7 +13,6 @@
"dimsav/laravel-translatable": "9.*", "dimsav/laravel-translatable": "9.*",
"felixkiss/uniquewith-validator": "^3.1", "felixkiss/uniquewith-validator": "^3.1",
"fideloper/proxy": "^4.0", "fideloper/proxy": "^4.0",
"hieu-le/active": "^3.5",
"laravel/framework": "5.6.*", "laravel/framework": "5.6.*",
"laravel/tinker": "^1.0", "laravel/tinker": "^1.0",
"laravelcollective/html": "^5.6", "laravelcollective/html": "^5.6",

65
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "35e771d8a4e73ec0c3768490092f9391", "content-hash": "de1a156be429662930ce19e40e833c5f",
"packages": [ "packages": [
{ {
"name": "davejamesmiller/laravel-breadcrumbs", "name": "davejamesmiller/laravel-breadcrumbs",
@ -543,69 +543,6 @@
], ],
"time": "2019-01-10T14:06:47+00:00" "time": "2019-01-10T14:06:47+00:00"
}, },
{
"name": "hieu-le/active",
"version": "3.5.1",
"source": {
"type": "git",
"url": "https://github.com/letrunghieu/active.git",
"reference": "42d0f50be74b89d730bb4c0ee8c32447630506c6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/letrunghieu/active/zipball/42d0f50be74b89d730bb4c0ee8c32447630506c6",
"reference": "42d0f50be74b89d730bb4c0ee8c32447630506c6",
"shasum": ""
},
"require": {
"laravel/framework": "^5.5",
"php": ">=7.0"
},
"require-dev": {
"codeclimate/php-test-reporter": "dev-master",
"orchestra/testbench": "^3.1",
"phpunit/phpunit": "~6.0"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"HieuLe\\Active\\ActiveServiceProvider"
],
"aliases": {
"Active": "HieuLe\\Active\\Facades\\Active"
}
}
},
"autoload": {
"psr-4": {
"HieuLe\\Active\\": "src/",
"HieuLe\\ActiveTest\\": "tests/"
},
"files": [
"src/helpers.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Hieu Le",
"email": "letrunghieu.cse09@gmail.com",
"homepage": "https://www.hieule.info"
}
],
"description": "The helper class for Laravel (4/5) applications to get active class base on current route",
"homepage": "https://www.hieule.info/tag/laravel-active/",
"keywords": [
"active",
"laravel",
"routing"
],
"time": "2017-09-07T02:36:51+00:00"
},
{ {
"name": "jakub-onderka/php-console-color", "name": "jakub-onderka/php-console-color",
"version": "v0.2", "version": "v0.2",

View File

@ -129,8 +129,12 @@ The content `<div>` is where all your content goes.
margin: 0; margin: 0;
color: #333; color: #333;
text-align: left; text-align: left;
padding: 0.4em 2em 0; padding: 0.4em 2em;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
}
#main > .header {
background: #202b33;
color: #fff;
} }
.header h1 { .header h1 {
margin: 0.2em 0; margin: 0.2em 0;
@ -216,9 +220,11 @@ The content `<div>` is where all your content goes.
} }
.site-logo{ .site-logo{
color: #fff; color: #fff;
font-size: 1.4em; font-size: 1.0em;
padding: 0.6em 0.4em; padding: 0.4em 0.4em;
margin: 0;
} }
.site-logo strong{ .site-logo strong{
@ -229,9 +235,9 @@ The content `<div>` is where all your content goes.
text-align: right; text-align: right;
} }
.user-info{ /* .user-info{
padding: 1.6em 0.4em; padding: 0.6em 0.4em;
} } */
.user-info a{ .user-info a{
text-decoration: none; text-decoration: none;

View File

@ -31,7 +31,7 @@
<div id="menu"> <div id="menu">
<nav class="pure-menu sidebar-menu"> <nav class="pure-menu sidebar-menu">
<h1 class="site-logo">Admin<strong>Rdr</strong></h1> <h1 class="site-logo">Admin<strong>Rdr</strong></h1>
<div class="menu-item-divided"></div> {{-- <div class="menu-item-divided"></div> --}}
{{-- <h2 class="pure-menu-heading">Home</h2> --}} {{-- <h2 class="pure-menu-heading">Home</h2> --}}
<ul class=" pure-menu-list sidebar-menu"> <ul class=" pure-menu-list sidebar-menu">
@ -42,7 +42,7 @@
</li> --}} </li> --}}
<li class="pure-menu-item {{ active_class(Route::is('settings.dashboard')) }}"> <li class="pure-menu-item {{ Route::is('settings.dashboard') ? 'active' : '' }}">
<a href="{{ route('settings.dashboard') }}"> <a href="{{ route('settings.dashboard') }}">
<i class="fa fa-tachometer-alt"></i> <i class="fa fa-tachometer-alt"></i>
<span>Reports</span> <span>Reports</span>
@ -52,7 +52,7 @@
@permission('settings') @permission('settings')
<li class="treeview"> <li class="treeview">
<h2 class="pure-menu-heading">Settings <span class="fas fa-angle-down"></h2> <h2 class="pure-menu-heading">Settings <span class="fas fa-angle-down"></h2>
<ul class="pure-menu-list treeview-menu {{ active_class(Route::is('settings.*'), 'menu-open') }}" style="display: none; {{ active_class(Route::is('settings.*'), 'display: block;') }}"> <ul class="pure-menu-list treeview-menu {{ Route::is('settings.*') ? 'menu-open' : '' }} style="display: none; {{ Route::is('settings.*') ? 'display: block;' : '' }}">
<li class="pure-menu-item {{ Route::is('settings.document*') ? 'active' : '' }}"> <li class="pure-menu-item {{ Route::is('settings.document*') ? 'active' : '' }}">
<a class="pure-menu-link" href="{{ route('settings.document') }}"><i class="fa fa-database"></i> Datasets</a> <a class="pure-menu-link" href="{{ route('settings.document') }}"><i class="fa fa-database"></i> Datasets</a>
</li> </li>
@ -141,7 +141,7 @@
<span>{{ trans('menus.backend.access.title') }}</span> <span>{{ trans('menus.backend.access.title') }}</span>
<i class="fa fa-angle-left pull-right"></i> <i class="fa fa-angle-left pull-right"></i>
</a> --}} </a> --}}
<ul class="pure-menu-list treeview-menu {{ active_class(Route::is('access.*'), 'menu-open') }}" style="display: none; {{ active_class(Route::is('access.*'), 'display: block;') }}"> <ul class="pure-menu-list treeview-menu {{ Route::is('access.*') ? 'menu-open' : '' }}" style="display: none; {{ Route::is('access.*') ? 'display: block;' : '' }}">
@if (Auth::guest()) @if (Auth::guest())
<li class="pure-menu-item {{ Route::currentRouteName() == 'login' ? 'active' : '' }}"> <li class="pure-menu-item {{ Route::currentRouteName() == 'login' ? 'active' : '' }}">
<a class="pure-menu-link" href="{{ route('login') }}">LOGIN</a> <a class="pure-menu-link" href="{{ route('login') }}">LOGIN</a>