Skip to content

Commit

Permalink
Merge pull request #608 from nasirkhan/dev
Browse files Browse the repository at this point in the history
 Fixed the FOUC for frontend #607
  • Loading branch information
nasirkhan authored Jul 2, 2024
2 parents 2692578 + b26f210 commit 2171f0f
Show file tree
Hide file tree
Showing 25 changed files with 513 additions and 616 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,7 @@
<div class="card">
<div class="card-body">

<x-backend.section-header>
<i class="{{ $module_icon }}"></i> {{ __($module_title) }} <small
class="text-muted">{{ __($module_action) }}</small>

<x-slot name="toolbar">
@can('add_' . $module_name)
<x-backend.buttons.create title="{{ __('Create') }} {{ ucwords(Str::singular($module_name)) }}"
small="true" route='{{ route("backend.$module_name.create") }}' />
@endcan

@can('restore_' . $module_name)
<div class="btn-group">
<button class="btn btn-secondary btn-sm dropdown-toggle" data-coreui-toggle="dropdown"
type="button" aria-expanded="false">
<i class="fas fa-cog"></i>
</button>
<ul class="dropdown-menu">
<li>
<a class="dropdown-item" href='{{ route("backend.$module_name.trashed") }}'>
<i class="fas fa-eye-slash"></i> @lang('View trash')
</a>
</li>
<!-- <li>
<hr class="dropdown-divider">
</li> -->
</ul>
</div>
@endcan
</x-slot>
</x-backend.section-header>
<x-backend.section-header :module_name="$module_name" :module_title="$module_title" :module_icon="$module_icon" :module_action="$module_action" />

<div class="row mt-4">
<div class="col">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,7 @@
<div class="card">
<div class="card-body">

<x-backend.section-header>
<i class="{{ $module_icon }}"></i> {{ __($module_title) }} <small
class="text-muted">{{ __($module_action) }}</small>

<x-slot name="toolbar">
@can('add_' . $module_name)
<x-backend.buttons.create title="{{ __('Create') }} {{ ucwords(Str::singular($module_name)) }}"
small="true" route='{{ route("backend.$module_name.create") }}' />
@endcan

@can('restore_' . $module_name)
<div class="btn-group">
<button class="btn btn-secondary btn-sm dropdown-toggle" data-coreui-toggle="dropdown"
type="button" aria-expanded="false">
<i class="fas fa-cog"></i>
</button>
<ul class="dropdown-menu">
<li>
<a class="dropdown-item" href='{{ route("backend.$module_name.trashed") }}'>
<i class="fas fa-eye-slash"></i> @lang('View trash')
</a>
</li>
<!-- <li>
<hr class="dropdown-divider">
</li> -->
</ul>
</div>
@endcan
</x-slot>
</x-backend.section-header>
<x-backend.section-header :module_name="$module_name" :module_title="$module_title" :module_icon="$module_icon" :module_action="$module_action" />

<div class="row mt-4">
<div class="col">
Expand Down
31 changes: 1 addition & 30 deletions Modules/Post/Resources/views/backend/posts/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,7 @@
<div class="card">
<div class="card-body">

<x-backend.section-header>
<i class="{{ $module_icon }}"></i> {{ __($module_title) }} <small
class="text-muted">{{ __($module_action) }}</small>

<x-slot name="toolbar">
@can('add_' . $module_name)
<x-backend.buttons.create title="{{ __('Create') }} {{ ucwords(Str::singular($module_name)) }}"
small="true" route='{{ route("backend.$module_name.create") }}' />
@endcan

@can('restore_' . $module_name)
<div class="btn-group">
<button class="btn btn-secondary btn-sm dropdown-toggle" data-coreui-toggle="dropdown"
type="button" aria-expanded="false">
<i class="fas fa-cog"></i>
</button>
<ul class="dropdown-menu">
<li>
<a class="dropdown-item" href='{{ route("backend.$module_name.trashed") }}'>
<i class="fas fa-eye-slash"></i> @lang('View trash')
</a>
</li>
<!-- <li>
<hr class="dropdown-divider">
</li> -->
</ul>
</div>
@endcan
</x-slot>
</x-backend.section-header>
<x-backend.section-header :module_name="$module_name" :module_title="$module_title" :module_icon="$module_icon" :module_action="$module_action" />

<div class="row mt-4">
<div class="col">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,7 @@
<div class="card">
<div class="card-body">

<x-backend.section-header>
<i class="{{ $module_icon }}"></i> {{ __($module_title) }} <small
class="text-muted">{{ __($module_action) }}</small>

<x-slot name="toolbar">
@can('add_' . $module_name)
<x-backend.buttons.create title="{{ __('Create') }} {{ ucwords(Str::singular($module_name)) }}"
small="true" route='{{ route("backend.$module_name.create") }}' />
@endcan

@can('restore_' . $module_name)
<div class="btn-group">
<button class="btn btn-secondary btn-sm dropdown-toggle" data-coreui-toggle="dropdown"
type="button" aria-expanded="false">
<i class="fas fa-cog"></i>
</button>
<ul class="dropdown-menu">
<li>
<a class="dropdown-item" href='{{ route("backend.$module_name.trashed") }}'>
<i class="fas fa-eye-slash"></i> @lang('View trash')
</a>
</li>
<!-- <li>
<hr class="dropdown-divider">
</li> -->
</ul>
</div>
@endcan
</x-slot>
</x-backend.section-header>
<x-backend.section-header :module_name="$module_name" :module_title="$module_title" :module_icon="$module_icon" :module_action="$module_action" />

<div class="row mt-4">
<div class="col">
Expand Down
31 changes: 1 addition & 30 deletions Modules/Tag/Resources/views/backend/tags/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,7 @@
<div class="card">
<div class="card-body">

<x-backend.section-header>
<i class="{{ $module_icon }}"></i> {{ __($module_title) }} <small
class="text-muted">{{ __($module_action) }}</small>

<x-slot name="toolbar">
@can('add_' . $module_name)
<x-backend.buttons.create title="{{ __('Create') }} {{ ucwords(Str::singular($module_name)) }}"
small="true" route='{{ route("backend.$module_name.create") }}' />
@endcan

@can('restore_' . $module_name)
<div class="btn-group">
<button class="btn btn-secondary btn-sm dropdown-toggle" data-coreui-toggle="dropdown"
type="button" aria-expanded="false">
<i class="fas fa-cog"></i>
</button>
<ul class="dropdown-menu">
<li>
<a class="dropdown-item" href='{{ route("backend.$module_name.trashed") }}'>
<i class="fas fa-eye-slash"></i> @lang('View trash')
</a>
</li>
<!-- <li>
<hr class="dropdown-divider">
</li> -->
</ul>
</div>
@endcan
</x-slot>
</x-backend.section-header>
<x-backend.section-header :module_name="$module_name" :module_title="$module_title" :module_icon="$module_icon" :module_action="$module_action" />

<div class="row mt-4">
<div class="col">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,7 @@
<div class="card">
<div class="card-body">

<x-backend.section-header>
<i class="{{ $module_icon }}"></i> {{ __($module_title) }} <small
class="text-muted">{{ __($module_action) }}</small>

<x-slot name="toolbar">
@can('add_' . $module_name)
<x-backend.buttons.create title="{{ __('Create') }} {{ ucwords(Str::singular($module_name)) }}"
small="true" route='{{ route("backend.$module_name.create") }}' />
@endcan

@can('restore_' . $module_name)
<div class="btn-group">
<button class="btn btn-secondary btn-sm dropdown-toggle" data-coreui-toggle="dropdown"
type="button" aria-expanded="false">
<i class="fas fa-cog"></i>
</button>
<ul class="dropdown-menu">
<li>
<a class="dropdown-item" href='{{ route("backend.$module_name.trashed") }}'>
<i class="fas fa-eye-slash"></i> @lang('View trash')
</a>
</li>
<!-- <li>
<hr class="dropdown-divider">
</li> -->
</ul>
</div>
@endcan
</x-slot>
</x-backend.section-header>
<x-backend.section-header :module_name="$module_name" :module_title="$module_title" :module_icon="$module_icon" :module_action="$module_action" />

<div class="row mt-4">
<div class="col">
Expand Down

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions public/build/assets/app-backend-CD5-cW4h.js

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions public/build/assets/app-backend-DPLsj8qH.js

This file was deleted.

1 change: 0 additions & 1 deletion public/build/assets/app-frontend-94qmPxMy.css

This file was deleted.

1 change: 1 addition & 0 deletions public/build/assets/app-frontend-C8Vl3I8H.css

Large diffs are not rendered by default.

Loading

0 comments on commit 2171f0f

Please sign in to comment.