Compare commits

..

2 Commits

6 changed files with 17 additions and 14 deletions

View File

@ -28,11 +28,14 @@ public function boot()
$this->registerComponent();
$this->registerLivewire();
$this->registerHelpers();
define('DESIGN_PARAMETERS', Design::getParameters());
if (array_key_exists('title', DESIGN_PARAMETERS)) {
\Config::set('app.name', DESIGN_PARAMETERS['title']);
}
try {
define('DESIGN_PARAMETERS', Design::getParameters());
if (array_key_exists('title', DESIGN_PARAMETERS)) {
\Config::set('app.name', DESIGN_PARAMETERS['title']);
}
} catch (\Exception $e) {
define('DESIGN_PARAMETERS', []);
};
}
protected function registerViews()

View File

@ -24,7 +24,7 @@
if($json['total_commits'] > 0)
{
$result = shell_exec("cd /var/www/lk && git reset --hard HEAD && git pull && php artisan migrate && npm run build");
$result = shell_exec("cd /var/www/lk && git reset --hard HEAD && git pull");
//$result = shell_exec("cd /var/www/lk && git reset --hard HEAD && git pull");
echo "<p>$result</p>";
}

View File

@ -25,7 +25,7 @@
<div class="container">
<div class="col-auto col-sm-2 text-center">
<a class="navbar-brand">
@if(DESIGN_PARAMETERS['logo'])
@if(array_key_exists('logo', DESIGN_PARAMETERS))
<img src="{{ url('/storage/' . DESIGN_PARAMETERS['logo']) }}" alt="Logo" height="70">
@else
<img src={{ url('/images/logo.png') }} alt="Logo" height="70">

View File

@ -26,7 +26,7 @@
<div class="container d-flex flex-row">
<div class=" text-center">
<a class="navbar-brand">
@if(DESIGN_PARAMETERS['logo'])
@if(array_key_exists('logo', DESIGN_PARAMETERS))
<img src="{{ url('/storage/' . DESIGN_PARAMETERS['logo']) }}" alt="Logo" height="70">
@else
<img src={{ url('/images/logo.png') }} alt="Logo" height="70">

View File

@ -14,13 +14,13 @@
}
@endif
@if(DESIGN_PARAMETERS['text_color'] && 1==2)
@if(array_key_exists('text_color', DESIGN_PARAMETERS) && 1==2)
#app *{
color: {{ DESIGN_PARAMETERS['text_color'] }};
}
@endif
@if(DESIGN_PARAMETERS['primary_color'])
@if(array_key_exists('primary_color', DESIGN_PARAMETERS))
.form-control:focus, .form-select:focus {
border-color: {{ DESIGN_PARAMETERS['primary_color'] }}60;
box-shadow: 0 0 0 .25rem {{ DESIGN_PARAMETERS['primary_color'] }}40;
@ -71,7 +71,7 @@
}
@endif
@if(DESIGN_PARAMETERS['secondary_color'])
@if(array_key_exists('secondary_color', DESIGN_PARAMETERS))
.btn-secondary,
.btn-secondary:disabled {
background-color:
@ -83,13 +83,13 @@
}
@endif
@if(DESIGN_PARAMETERS['menu_btn_color'])
@if(array_key_exists('menu_btn_color', DESIGN_PARAMETERS))
#leftPanel .nav-link {
background-color: {{ DESIGN_PARAMETERS['menu_btn_color'] }};
}
@endif
@if(DESIGN_PARAMETERS['menu_btn_hover_color'])
@if(array_key_exists('menu_btn_hover_color',DESIGN_PARAMETERS))
#leftPanel .nav-link:hover {
background-color: {{ DESIGN_PARAMETERS['menu_btn_hover_color'] }};
}

View File

@ -60,7 +60,7 @@
<div class="cover-container d-flex w-100 h-100 p-3 mx-auto flex-column">
<header class="mb-auto">
<h3 class="float-md-start mb-0">
@if(DESIGN_PARAMETERS['logo'])
@if(array_key_exists('logo', DESIGN_PARAMETERS))
<img src="{{ url('/storage/' . DESIGN_PARAMETERS['logo']) }}" alt="Logo" height="100">
@else
<img src={{ url('/images/logo.png') }} alt="Logo" width="100">