This code allows you to show a pop-up to print a "PDF" (rendered html) without first having to open the PDF viewer and requiring the user to press the print button.
This file contains hidden or 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
@import '/vendor/filament/filament/resources/css/theme.css'; | |
@config 'tailwind.config.js'; | |
body { | |
/* @apply !bg-primary-50 dark:!bg-gray-950;*/ | |
} | |
.fi-sidebar { | |
/* @apply bg-white border-r shadow-sm p-4 !important; */ |
This file contains hidden or 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
<?php | |
namespace App\Providers\Filament; | |
use Filament\Panel; | |
use Filament\View\PanelsRenderHook; | |
use Illuminate\Support\Facades\Blade; | |
public function panel(Panel $panel): Panel | |
{ |
This file contains hidden or 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
$ git clone [email protected]:xxxxx/xxxx.git my-awesome-proj | |
Cloning into 'my-awesome-proj'... | |
ssh: connect to host github.com port 22: Connection timed out | |
fatal: Could not read from remote repository. | |
$ # This should also timeout | |
$ ssh -T [email protected] | |
ssh: connect to host github.com port 22: Connection timed out | |
$ # but this might work |
This file contains hidden or 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
@php | |
$user = filament()->auth()->user(); | |
$items = filament()->getUserMenuItems(); | |
$profileItem = $items['profile'] ?? $items['account'] ?? null; | |
$profileItemUrl = $profileItem?->getUrl(); | |
$profilePage = filament()->getProfilePage(); | |
$hasProfileItem = filament()->hasProfile() || filled($profileItemUrl); | |
$logoutItem = $items['logout'] ?? null; |
This file contains hidden or 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
[ | |
{ | |
"id": 1, | |
"state_id": 1, | |
"ibge_code": 1100015, | |
"name": "Alta Floresta D´oeste" | |
}, | |
{ | |
"id": 2, | |
"state_id": 1, |
This file contains hidden or 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
{ | |
"workbench.iconTheme": "symbols", | |
"git.autofetch": true, | |
"[dart]": { | |
"editor.formatOnSave": true, | |
"editor.formatOnType": true, | |
"editor.rulers": [80], | |
"editor.selectionHighlight": false, | |
"editor.suggest.snippetsPreventQuickSuggestions": false, | |
"editor.suggestSelection": "first", |
This file contains hidden or 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
<?php | |
// app/providers/Filament/AdminPanelProvider.php | |
->spa() | |
->spaUrlExceptions(['*/lang/*']) | |
->middleware([SetLang::class]) | |
->renderHook( | |
name: PanelsRenderHook::USER_MENU_PROFILE_AFTER, | |
hook: fn (): View => view(view: 'filament.hooks.lang-switcher'), |
This file contains hidden or 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
<?php | |
namespace App\Providers; | |
use Filament\Actions; | |
use Filament\Forms; | |
use Filament\Infolists; | |
use Filament\Notifications\Notification; | |
use Filament\Pages; | |
use Filament\Support\Enums\MaxWidth; |
This file contains hidden or 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
@import '/vendor/filament/filament/resources/css/theme.css'; | |
@config 'tailwind.config.js'; | |
/** Romulo Theme */ | |
/* | |
.fi-sidebar { | |
@apply bg-white dark:bg-gray-900 border-r dark:border-white/10 shadow-sm p-0 !important; | |
} |
NewerOlder