перевод лендинга на vue, добавление поддержки inertia
This commit is contained in:
+118
@@ -16706,6 +16706,15 @@ namespace Illuminate\Support\Facades {
|
||||
return \Illuminate\Http\Request::hasValidRelativeSignatureWhileIgnoring($ignoreQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \Inertia\ServiceProvider::registerRequestMacro()
|
||||
* @static
|
||||
*/
|
||||
public static function inertia()
|
||||
{
|
||||
return \Illuminate\Http\Request::inertia();
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* @see \Illuminate\Routing\ResponseFactory
|
||||
@@ -18107,6 +18116,16 @@ namespace Illuminate\Support\Facades {
|
||||
return $instance->tap($callback);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<array-key, mixed> $props
|
||||
* @see \Inertia\ServiceProvider::registerRouterMacro()
|
||||
* @static
|
||||
*/
|
||||
public static function inertia($uri, $component, $props = [])
|
||||
{
|
||||
return \Illuminate\Routing\Router::inertia($uri, $component, $props);
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* @method static \Illuminate\Console\Scheduling\PendingEventAttributes withoutOverlapping(int $expiresAt = 1440)
|
||||
@@ -23386,6 +23405,105 @@ namespace Illuminate\Http {
|
||||
return \Illuminate\Http\Request::hasValidRelativeSignatureWhileIgnoring($ignoreQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \Inertia\ServiceProvider::registerRequestMacro()
|
||||
* @static
|
||||
*/
|
||||
public static function inertia()
|
||||
{
|
||||
return \Illuminate\Http\Request::inertia();
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
*/
|
||||
class RedirectResponse extends \Symfony\Component\HttpFoundation\RedirectResponse {
|
||||
/**
|
||||
* @see \Inertia\ServiceProvider::registerRedirectMacro()
|
||||
* @static
|
||||
*/
|
||||
public static function preserveFragment()
|
||||
{
|
||||
return \Illuminate\Http\RedirectResponse::preserveFragment();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
namespace Illuminate\Routing {
|
||||
/**
|
||||
* @mixin \Illuminate\Routing\RouteRegistrar
|
||||
*/
|
||||
class Router {
|
||||
/**
|
||||
* @param array<array-key, mixed> $props
|
||||
* @see \Inertia\ServiceProvider::registerRouterMacro()
|
||||
* @static
|
||||
*/
|
||||
public static function inertia($uri, $component, $props = [])
|
||||
{
|
||||
return \Illuminate\Routing\Router::inertia($uri, $component, $props);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
namespace Illuminate\Testing {
|
||||
/**
|
||||
* @template TResponse of \Symfony\Component\HttpFoundation\Response
|
||||
* @mixin \Illuminate\Http\Response
|
||||
*/
|
||||
class TestResponse {
|
||||
/**
|
||||
* @see \Inertia\Testing\TestResponseMacros::assertInertia()
|
||||
* @param \Closure|null $callback
|
||||
* @static
|
||||
*/
|
||||
public static function assertInertia($callback = null)
|
||||
{
|
||||
return \Illuminate\Testing\TestResponse::assertInertia($callback);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \Inertia\Testing\TestResponseMacros::inertiaPage()
|
||||
* @static
|
||||
*/
|
||||
public static function inertiaPage()
|
||||
{
|
||||
return \Illuminate\Testing\TestResponse::inertiaPage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \Inertia\Testing\TestResponseMacros::inertiaProps()
|
||||
* @param string|null $propName
|
||||
* @static
|
||||
*/
|
||||
public static function inertiaProps($propName = null)
|
||||
{
|
||||
return \Illuminate\Testing\TestResponse::inertiaProps($propName);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \Inertia\Testing\TestResponseMacros::assertInertiaFlash()
|
||||
* @param string $key
|
||||
* @param mixed|null $expected
|
||||
* @static
|
||||
*/
|
||||
public static function assertInertiaFlash($key, $expected = null)
|
||||
{
|
||||
return \Illuminate\Testing\TestResponse::assertInertiaFlash($key, $expected);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \Inertia\Testing\TestResponseMacros::assertInertiaFlashMissing()
|
||||
* @param string $key
|
||||
* @static
|
||||
*/
|
||||
public static function assertInertiaFlashMissing($key)
|
||||
{
|
||||
return \Illuminate\Testing\TestResponse::assertInertiaFlashMissing($key);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user