From 87e17d60c7bc093ef6607d3d8721c8b9da442729 Mon Sep 17 00:00:00 2001 From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com> Date: Fri, 20 Oct 2023 01:19:04 +0200 Subject: [PATCH] Fixed config --- app/Providers/LivewireServiceProvider.php | 14 ++ config/app.php | 1 + config/livewire.php | 2 +- resources/views/home.blade.php | 285 +--------------------- 4 files changed, 19 insertions(+), 283 deletions(-) create mode 100644 app/Providers/LivewireServiceProvider.php diff --git a/app/Providers/LivewireServiceProvider.php b/app/Providers/LivewireServiceProvider.php new file mode 100644 index 0000000..c09c807 --- /dev/null +++ b/app/Providers/LivewireServiceProvider.php @@ -0,0 +1,14 @@ + $assetUrl]); + } +} \ No newline at end of file diff --git a/config/app.php b/config/app.php index 2d82abb..5d7e3da 100755 --- a/config/app.php +++ b/config/app.php @@ -181,6 +181,7 @@ return [ Illuminate\Validation\ValidationServiceProvider::class, Illuminate\View\ViewServiceProvider::class, Laravel\Socialite\SocialiteServiceProvider::class, + App\Providers\LivewireServiceProvider::class, diff --git a/config/livewire.php b/config/livewire.php index 60be6db..59f8d5c 100644 --- a/config/livewire.php +++ b/config/livewire.php @@ -54,7 +54,7 @@ return [ | */ - 'asset_url' => url(''), + 'asset_url' => null, /* |-------------------------------------------------------------------------- diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index 95be572..725e061 100755 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -1,283 +1,4 @@ - - - -@include('layouts.lang') - - - @php $GLOBALS['themeName'] = config('advanced-config.home_theme'); @endphp - - @if(env('CUSTOM_META_TAGS') == 'true' and config('advanced-config.title') != '') - {{ config('advanced-config.title') }} - @else - {{ config('app.name') }} - @endif - - - - - - - - - home_message!!}@endif'> - @if(file_exists(base_path("assets/linkstack/images/").findFile('avatar'))) - - @else - - @endif - - - - - - - home_message!!}@endif'> - @if(file_exists(base_path("assets/linkstack/images/").findFile('avatar'))) - - @else - - @endif - - - - - @if(file_exists(base_path("assets/linkstack/images/").findFile('favicon'))) - - @else - - @endif - - - - - - - - - - @include('layouts.fonts') - - - - - - - - - - - - @if(file_exists(base_path("assets/dashboard-themes/dashboard.css"))) - - @else - - @endif - - - - - - - - @php - $pages = DB::table('pages')->get(); - foreach($pages as $page){} - @endphp - - - - - - - -
-
-
-
- - -
-
-
-
-
-
- - @if(file_exists(base_path("assets/linkstack/images/").findFile('avatar'))) - avatar - @else -
- Logo -
- @endif - -

{{ config('app.name') }}

- -
- @if($message->home_message == "default") - {!!__('messages.HOME.MESSAGE')!!} - @else - {!!$message->home_message!!} - @endif -
- -
- @if (Route::has('login')) - @auth - {{__('messages.Dashboard')}} - @else - @if (Route::has('login')) - {{__('messages.Log in')}} - @endif - - @if ((env('ALLOW_REGISTRATION')) and !config('linkstack.single_user_mode')) - {{__('messages.Register')}} - @endif - @endauth - @endif -
- -
-
-
-
-
-
- -
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file +{{url('')}}
+{{resource_path('views/livewire')}}
+{{config('livewire.asset_url')}}
\ No newline at end of file