diff --git a/config/kompass.php b/config/kompass.php index cf5b944..faedfe7 100644 --- a/config/kompass.php +++ b/config/kompass.php @@ -135,6 +135,8 @@ 'adminmenu' => Livewire\Menu::class, 'blocks.blocks-table' => Livewire\BlocksTable::class, 'blocks.blocks-data' => Livewire\BlocksData::class, + 'pages.posts-table' => Livewire\PostsTable::class, + 'pages.posts-show' => Livewire\PostsData::class, 'pages.pages-table' => Livewire\PagesTable::class, 'pages.pages-show' => Livewire\PagesData::class, 'menus.menus-table' => Livewire\MenuTable::class, diff --git a/resources/js/main.js b/resources/js/main.js index 3ecf2f4..a4110fe 100755 --- a/resources/js/main.js +++ b/resources/js/main.js @@ -3,20 +3,28 @@ import '/resources/css/kompass.css' import click_to_edit from './alpine/click_to_edit' -// import * as livewiresortable from './livewire.sortable'; +import * as livewiresortable from './livewire.sortable'; -// import * as editorjs from './editorjs'; +import * as editorjs from './editorjs'; +// const { livewiresortable } = import('./livewire.sortable'); +// const { editorjs } = import('./editorjs'); -document.addEventListener('livewire:initialized', () => { - const { livewiresortable } = import('./livewire.sortable'); +// document.addEventListener('livewire:init', () => { +// livewiresortable(); +// editorjs() +// console.log('go'); - const { editorjs } = import('./editorjs'); -}) +// }) +// Alpine.start(); +// Livewire.start(); +// if (document.getElementsByClassName('kompass-admin-dashboard')) { -// livewiresortable(); -// if (document.getElementById('parent')) { -// const { app } = import('./plugins/lite-yt-embed') -// app(); +// livewiresortable(); +// editorjs() + +// console.log('goss'); +// // const { app } = import('./plugins/lite-yt-embed') +// // app(); // } window.click_to_edit = click_to_edit; \ No newline at end of file diff --git a/resources/views/admin/dashboard.blade.php b/resources/views/admin/dashboard.blade.php index 000f513..310dede 100644 --- a/resources/views/admin/dashboard.blade.php +++ b/resources/views/admin/dashboard.blade.php @@ -28,7 +28,9 @@ - +
+ Whoops, your device has lost connection. The web page you are viewing is offline. +
diff --git a/resources/views/admin/layouts/app.blade.php b/resources/views/admin/layouts/app.blade.php index 256c52c..f934b47 100644 --- a/resources/views/admin/layouts/app.blade.php +++ b/resources/views/admin/layouts/app.blade.php @@ -37,7 +37,7 @@ @if(isset($seo->description)) @endif - + @livewireStyles @kompassCss @@ -82,33 +82,24 @@+ {{ __($value) }} + | + @endforeach + + + + + @foreach ($posts as $key => $post) +|
---|---|
+ @if ($key == 0) + + @endif + @if ($key == 1) + @switch($post->$value) + @case('published') + + + + + + @break + + @case('password') + + + + + + @break + + @default + + + + + + @endswitch + @endif + {{ __($post->$value) }} + @if ($key == 0) + + @endif + @if ($key == 1) + + @endif + | + @endforeach + ++ + | + @endforeach +