-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip changed security * wip security * Fix styling * added presspanelprovider * wip security * added press * Fix styling * add preset for pree * added press * Fix styling * Fix styling * added expiry and trainings * preset press auth * changeds command in expiries and trainings * install both packages * Fix styling * Update monorepo-split-packages.yml --------- Co-authored-by: Kim-the-Diamond <Kim-the-Diamond@users.noreply.github.com> Co-authored-by: mooxbot <mooxbot@users.noreply.github.com>
- Loading branch information
1 parent
3993f2b
commit 900c582
Showing
3,155 changed files
with
1,366,374 additions
and
33 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
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,43 @@ | ||
<?php | ||
|
||
use Valet\Drivers\LaravelValetDriver; | ||
|
||
class LocalValetDriver extends LaravelValetDriver | ||
{ | ||
/** | ||
* Determine if the driver serves the request. | ||
*/ | ||
public function serves(string $sitePath, string $siteName, string $uri): bool | ||
{ | ||
return true; | ||
} | ||
|
||
/** | ||
* Get the fully resolved path to the application's front controller. | ||
*/ | ||
public function frontControllerPath(string $sitePath, string $siteName, string $uri): ?string | ||
{ | ||
$public = '/public'; | ||
$wpslug = '/wp'; | ||
|
||
if (str_contains($uri, $wpslug.'/') || str_ends_with($uri, $wpslug)) { | ||
|
||
if (str_contains($uri, '/wp-admin')) { | ||
|
||
if (str_ends_with($uri, '/wp-admin/') || str_ends_with($uri, '/wp-admin') || str_ends_with($uri, '/wp-admin/index.php')) { | ||
return $sitePath.$public.$wpslug.'/wp-admin/index.php'; | ||
} | ||
|
||
return $sitePath.$public.$uri; | ||
} | ||
|
||
if (str_contains($uri, 'wp-login.php')) { | ||
return $sitePath.$public.$wpslug.'/wp-login.php'; | ||
} | ||
|
||
return $sitePath.$public.$wpslug.'/index.php'; | ||
} | ||
|
||
return $sitePath.$public.'/index.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,48 @@ | ||
<?php | ||
|
||
use Valet\Drivers\LaravelValetDriver; | ||
|
||
class LocalValetDriver extends LaravelValetDriver | ||
{ | ||
/** | ||
* Determine if the driver serves the request. | ||
*/ | ||
public function serves(string $sitePath, string $siteName, string $uri): bool | ||
{ | ||
return true; | ||
} | ||
|
||
/** | ||
* Get the fully resolved path to the application's front controller. | ||
*/ | ||
public function frontControllerPath(string $sitePath, string $siteName, string $uri): ?string | ||
{ | ||
$public = '/public'; | ||
$wpslug = '/wp'; | ||
|
||
if (str_contains($uri, $wpslug.'/') || str_ends_with($uri, $wpslug)) { | ||
|
||
if (str_contains($uri, '/wp-admin')) { | ||
|
||
if (str_ends_with($uri, '/wp-admin/') || str_ends_with($uri, '/wp-admin') || str_ends_with($uri, '/wp-admin/index.php')) { | ||
return $this->convertForWindows($sitePath.$public.$wpslug.'/wp-admin/index.php'); | ||
} | ||
|
||
return $this->convertForWindows($sitePath.$public.$uri); | ||
} | ||
|
||
if (str_contains($uri, 'wp-login.php')) { | ||
return $this->convertForWindows($sitePath.$public.$wpslug.'/wp-login.php'); | ||
} | ||
|
||
return $this->convertForWindows($sitePath.$public.$wpslug.'/index.php'); | ||
} | ||
|
||
return $this->convertForWindows($sitePath.$public.'/index.php'); | ||
} | ||
|
||
public function convertForWindows($url) | ||
{ | ||
return str_replace('/', '\\', $url); | ||
} | ||
} |
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,48 @@ | ||
<?php | ||
|
||
use Valet\Drivers\LaravelValetDriver; | ||
|
||
class LocalValetDriver extends LaravelValetDriver | ||
{ | ||
/** | ||
* Determine if the driver serves the request. | ||
*/ | ||
public function serves(string $sitePath, string $siteName, string $uri): bool | ||
{ | ||
return true; | ||
} | ||
|
||
/** | ||
* Get the fully resolved path to the application's front controller. | ||
*/ | ||
public function frontControllerPath(string $sitePath, string $siteName, string $uri): ?string | ||
{ | ||
$public = '/public'; | ||
$wpslug = '/wp'; | ||
|
||
if (str_contains($uri, $wpslug.'/') || str_ends_with($uri, $wpslug)) { | ||
|
||
if (str_contains($uri, '/wp-admin')) { | ||
|
||
if (str_ends_with($uri, '/wp-admin/') || str_ends_with($uri, '/wp-admin') || str_ends_with($uri, '/wp-admin/index.php')) { | ||
return $this->convertForWindows($sitePath.$public.$wpslug.'/wp-admin/index.php'); | ||
} | ||
|
||
return $this->convertForWindows($sitePath.$public.$uri); | ||
} | ||
|
||
if (str_contains($uri, 'wp-login.php')) { | ||
return $this->convertForWindows($sitePath.$public.$wpslug.'/wp-login.php'); | ||
} | ||
|
||
return $this->convertForWindows($sitePath.$public.$wpslug.'/index.php'); | ||
} | ||
|
||
return $this->convertForWindows($sitePath.$public.'/index.php'); | ||
} | ||
|
||
public function convertForWindows($url) | ||
{ | ||
return str_replace('/', '\\', $url); | ||
} | ||
} |
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,79 @@ | ||
<?php | ||
|
||
namespace App\Providers\Filament; | ||
|
||
use Filament\Http\Middleware\Authenticate; | ||
use Filament\Http\Middleware\DisableBladeIconComponents; | ||
use Filament\Http\Middleware\DispatchServingFilamentEvent; | ||
use Filament\Pages; | ||
use Filament\Panel; | ||
use Filament\PanelProvider; | ||
use Filament\Support\Colors\Color; | ||
use Filament\Widgets; | ||
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse; | ||
use Illuminate\Cookie\Middleware\EncryptCookies; | ||
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken; | ||
use Illuminate\Routing\Middleware\SubstituteBindings; | ||
use Illuminate\Session\Middleware\AuthenticateSession; | ||
use Illuminate\Session\Middleware\StartSession; | ||
use Illuminate\View\Middleware\ShareErrorsFromSession; | ||
use Moox\Security\Services\Login; | ||
use Moox\Security\Services\RequestPasswordReset; | ||
use Moox\Security\Services\ResetPassword; | ||
|
||
class PressPanelProvider extends PanelProvider | ||
{ | ||
public function panel(Panel $panel): Panel | ||
{ | ||
return $panel | ||
->id('press') | ||
->path('press') | ||
->authGuard('press') | ||
->passwordReset(RequestPasswordReset::class, ResetPassword::class) | ||
->login(Login::class) | ||
->colors([ | ||
'primary' => Color::Amber, | ||
]) | ||
->discoverResources(in: app_path('Filament/Press/Resources'), for: 'App\\Filament\\Press\\Resources') | ||
->discoverPages(in: app_path('Filament/Press/Pages'), for: 'App\\Filament\\Press\\Pages') | ||
->pages([ | ||
Pages\Dashboard::class, | ||
]) | ||
->discoverWidgets(in: app_path('Filament/Press/Widgets'), for: 'App\\Filament\\Press\\Widgets') | ||
->widgets([ | ||
Widgets\AccountWidget::class, | ||
Widgets\FilamentInfoWidget::class, | ||
]) | ||
->middleware([ | ||
EncryptCookies::class, | ||
AddQueuedCookiesToResponse::class, | ||
StartSession::class, | ||
AuthenticateSession::class, | ||
ShareErrorsFromSession::class, | ||
VerifyCsrfToken::class, | ||
SubstituteBindings::class, | ||
DisableBladeIconComponents::class, | ||
DispatchServingFilamentEvent::class, | ||
]) | ||
->authMiddleware([ | ||
Authenticate::class, | ||
]) | ||
->plugins([ | ||
\Moox\Press\WpPostPlugin::make(), | ||
\Moox\Press\WpPagePlugin::make(), | ||
\Moox\Press\WpMediaPlugin::make(), | ||
\Moox\Press\WpCategoryPlugin::make(), | ||
\Moox\Press\WpTagPlugin::make(), | ||
\Moox\Press\WpUserPlugin::make(), | ||
\Moox\Press\WpOptionPlugin::make(), | ||
|
||
\Moox\Expiry\ExpiryPlugin::make(), | ||
|
||
\Moox\Training\TrainingPlugin::make(), | ||
\Moox\Training\TrainingInvitationPlugin::make(), | ||
\Moox\Training\TrainingDatePlugin::make(), | ||
\Moox\Training\TrainingTypePlugin::make(), | ||
|
||
]); | ||
} | ||
} |
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.