forked from moonshine-software/doc
-
Notifications
You must be signed in to change notification settings - Fork 0
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 moonshine-software#534 from DissNik/release-2.22
Release 2.22
- Loading branch information
Showing
25 changed files
with
575 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
<x-moonshine::tabs | ||
:tabs="[ | ||
'tab_1' => 'Tab 1', | ||
'tab_2' => 'Tab 2' | ||
]" | ||
> | ||
<x-slot:tab_1> | ||
{{ fake()->text() }} | ||
</x-slot:tab_1> | ||
<x-slot:tab_2> | ||
{{ fake()->text() }} | ||
</x-slot:tab_2> | ||
</x-moonshine::tabs> |
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
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
24 changes: 24 additions & 0 deletions
24
resources/views/pages/en/components/shared/decoration_icon.blade.php
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 @@ | ||
<x-p> | ||
The <code>icon()</code> method allows you to add an icon. | ||
</x-p> | ||
|
||
<x-code language="php"> | ||
use MoonShine\Decorations\{{ $decoration }}; | ||
|
||
//... | ||
|
||
public function components(): array | ||
{ | ||
return [ | ||
{{ $decoration }}::make('{{ $decoration }}') | ||
->icon('heroicons.outline.users') // [tl! focus] | ||
]; | ||
} | ||
|
||
//... | ||
</x-code> | ||
|
||
@include('pages.en.shared.alert_icons') | ||
|
||
<x-image theme="light" src="{{ asset('screenshots/' . str($decoration)->snake('_')->append('_icon.png')) }}"></x-image> | ||
<x-image theme="dark" src="{{ asset('screenshots/' . str($decoration)->snake('_')->append('_icon_dark.png')) }}"></x-image> |
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
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
Oops, something went wrong.