PLA now starts at the root of the HTML request, favicon setup

This commit is contained in:
Deon George 2023-01-27 16:29:02 +11:00
parent d0242ce3d8
commit 58e171aea1
7 changed files with 8 additions and 6 deletions

View File

@ -17,7 +17,7 @@ class RouteServiceProvider extends ServiceProvider
* *
* @var string * @var string
*/ */
public const HOME = '/home'; public const HOME = '/';
/** /**
* The controller namespace for the application. * The controller namespace for the application.

View File

@ -13,8 +13,8 @@ return [
| |
*/ */
'name' => env('APP_NAME', 'phpLDAPadmin'), 'name' => 'PLA',
'name_html_long' => env('APP_NAME_HTML_LONG', '<b>php</b>LDAPadmin'), 'name_html_long' => '<b>php</b>LDAPadmin',
'version' => trim(file_get_contents(__DIR__.'/../public/VERSION')), 'version' => trim(file_get_contents(__DIR__.'/../public/VERSION')),
/* /*

Binary file not shown.

Before

Width:  |  Height:  |  Size: 902 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 0 B

After

Width:  |  Height:  |  Size: 902 B

View File

@ -13,11 +13,12 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Language" content="en"> <meta http-equiv="Content-Language" content="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>{{ config('app.name') }} - @yield('htmlheader_title','Your title here')</title> <title>{{ config('app.name') }} - @yield('htmlheader_title','🥇 The BEST ldap admin tool!')</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no" />
<meta name="description" content="phpLDAPadmin - A web interface into LDAP data management"> <meta name="description" content="phpLDAPadmin - A web interface into LDAP data management">
<meta name="msapplication-tap-highlight" content="no"> <meta name="msapplication-tap-highlight" content="no">
<link rel="shortcut icon" href="{{ config('app.favicon','favicon.ico') }}" />
<!-- CSRF Token --> <!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}"> <meta name="csrf-token" content="{{ csrf_token() }}">

View File

@ -1,5 +1,6 @@
@extends('architect::layouts.app') @extends('architect::layouts.app')
{{--
@section('htmlheader_title') @section('htmlheader_title')
@lang('Home') @lang('Home')
@endsection @endsection
@ -8,6 +9,7 @@
@endsection @endsection
@section('page_icon') @section('page_icon')
@endsection @endsection
--}}
@section('main-content') @section('main-content')
<div class="card card-solid"> <div class="card card-solid">

View File

@ -26,12 +26,11 @@ Route::group(['prefix' => LaravelLocalization::setLocale()], function() {
'register' => FALSE, 'register' => FALSE,
]); ]);
Route::get('home',[HomeController::class,'home']); Route::get('/',[HomeController::class,'home']);
Route::get('info',[HomeController::class,'info']); Route::get('info',[HomeController::class,'info']);
Route::post('dn',[HomeController::class,'dn_frame']); Route::post('dn',[HomeController::class,'dn_frame']);
}); });
Route::redirect('/','home');
Route::get('logout',[LoginController::class,'logout']); Route::get('logout',[LoginController::class,'logout']);
Route::group(['prefix'=>'user'],function() { Route::group(['prefix'=>'user'],function() {