This repository has been archived by the owner on Mar 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from sayasuhendra/main
Added optional User Management and Developer Menu Component for desktop and mobile.
- Loading branch information
Showing
10 changed files
with
167 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<div class="ml-3 relative"> | ||
<x-jet-dropdown align="right" width="48"> | ||
<x-slot name="trigger"> | ||
<span class="inline-flex rounded-md"> | ||
<button type="button" class="inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-500 bg-white hover:bg-gray-50 hover:text-gray-700 focus:outline-none focus:bg-gray-50 active:bg-gray-50 transition"> | ||
{{ __('Developer Menu') }} | ||
<svg class="ml-2 -mr-0.5 h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"> | ||
<path fill-rule="evenodd" d="M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z" clip-rule="evenodd" /> | ||
</svg> | ||
</button> | ||
</span> | ||
</x-slot> | ||
|
||
<x-slot name="content"> | ||
<x-jet-dropdown-link href="{{ route('developers.permissions') }}"> | ||
{{ __('Permissions') }} | ||
</x-jet-dropdown-link> | ||
<x-jet-dropdown-link href="{{ route('developers.menus') }}"> | ||
{{ __('Menus') }} | ||
</x-jet-dropdown-link> | ||
</x-slot> | ||
</x-jet-dropdown> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="border-t border-gray-200"></div> | ||
|
||
<div class="block px-4 py-2 text-xs text-gray-400"> | ||
{{ __('Developer Menu') }} | ||
</div> | ||
<div class="border-t border-gray-100"></div> | ||
<x-jet-responsive-nav-link href="{{ route('developers.permissions') }}"> | ||
{{ __('Permissions') }} | ||
</x-jet-responsive-nav-link> | ||
<x-jet-responsive-nav-link href="{{ route('developers.menus') }}"> | ||
{{ __('Menus') }} | ||
</x-jet-responsive-nav-link> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<div class="ml-3 relative"> | ||
<x-jet-dropdown align="right" width="48"> | ||
<x-slot name="trigger"> | ||
<span class="inline-flex rounded-md"> | ||
<button type="button" class="inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-500 bg-white hover:bg-gray-50 hover:text-gray-700 focus:outline-none focus:bg-gray-50 active:bg-gray-50 transition"> | ||
{{ __('User Management') }} | ||
<svg class="ml-2 -mr-0.5 h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"> | ||
<path fill-rule="evenodd" d="M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z" clip-rule="evenodd" /> | ||
</svg> | ||
</button> | ||
</span> | ||
</x-slot> | ||
|
||
<x-slot name="content"> | ||
<x-jet-dropdown-link href="{{ route('users.index') }}"> | ||
{{ __('Manage Users') }} | ||
</x-jet-dropdown-link> | ||
<x-jet-dropdown-link href="{{ route('users.roles') }}"> | ||
{{ __('Manage Roles') }} | ||
</x-jet-dropdown-link> | ||
</x-slot> | ||
</x-jet-dropdown> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="border-t border-gray-200"></div> | ||
|
||
<div class="block px-4 py-2 text-xs text-gray-400"> | ||
{{ __('User Management') }} | ||
</div> | ||
<x-jet-responsive-nav-link href="{{ route('users.index') }}"> | ||
{{ __('Manage Users') }} | ||
</x-jet-responsive-nav-link> | ||
<x-jet-responsive-nav-link href="{{ route('users.roles') }}"> | ||
{{ __('Manage Roles') }} | ||
</x-jet-responsive-nav-link> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace LLoadoutInforce\Http\Livewire; | ||
|
||
use Livewire\Component; | ||
|
||
class DeveloperMenus extends Component | ||
{ | ||
public function render() | ||
{ | ||
return view('LLoadoutInforce-views::menu-ui.developer-desktop'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace LLoadoutInforce\Http\Livewire; | ||
|
||
use Livewire\Component; | ||
|
||
class DeveloperMenusMobile extends Component | ||
{ | ||
public function render() | ||
{ | ||
return view('LLoadoutInforce-views::menu-ui.developer-mobile'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace LLoadoutInforce\Http\Livewire; | ||
|
||
use Livewire\Component; | ||
|
||
class UserManagementMenus extends Component | ||
{ | ||
public function render() | ||
{ | ||
return view('LLoadoutInforce-views::menu-ui.user-desktop'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace LLoadoutInforce\Http\Livewire; | ||
|
||
use Livewire\Component; | ||
|
||
class UserManagementMenusMobile extends Component | ||
{ | ||
public function render() | ||
{ | ||
return view('LLoadoutInforce-views::menu-ui.user-mobile'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters