Fix global search on phone maybe?

This commit is contained in:
Simon Pocrnjič 2024-11-22 09:16:40 +01:00
parent 09fcac7cb5
commit 77e0066ded
2 changed files with 79 additions and 73 deletions

142
composer.lock generated
View File

@ -1536,16 +1536,16 @@
},
{
"name": "laravel/framework",
"version": "v11.32.0",
"version": "v11.33.2",
"source": {
"type": "git",
"url": "https://github.com/laravel/framework.git",
"reference": "bc2aad63f83ee5089be7b21cf29d645ccf31e927"
"reference": "6b9832751cf8eed18b3c73df5071f78f0682aa5d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/bc2aad63f83ee5089be7b21cf29d645ccf31e927",
"reference": "bc2aad63f83ee5089be7b21cf29d645ccf31e927",
"url": "https://api.github.com/repos/laravel/framework/zipball/6b9832751cf8eed18b3c73df5071f78f0682aa5d",
"reference": "6b9832751cf8eed18b3c73df5071f78f0682aa5d",
"shasum": ""
},
"require": {
@ -1565,7 +1565,7 @@
"guzzlehttp/guzzle": "^7.8",
"guzzlehttp/uri-template": "^1.0",
"laravel/prompts": "^0.1.18|^0.2.0|^0.3.0",
"laravel/serializable-closure": "^1.3",
"laravel/serializable-closure": "^1.3|^2.0",
"league/commonmark": "^2.2.1",
"league/flysystem": "^3.8.0",
"monolog/monolog": "^3.0",
@ -1648,9 +1648,9 @@
"league/flysystem-path-prefixing": "^3.3",
"league/flysystem-read-only": "^3.3",
"league/flysystem-sftp-v3": "^3.0",
"mockery/mockery": "^1.6",
"mockery/mockery": "^1.6.10",
"nyholm/psr7": "^1.2",
"orchestra/testbench-core": "^9.5",
"orchestra/testbench-core": "^9.6",
"pda/pheanstalk": "^5.0",
"phpstan/phpstan": "^1.11.5",
"phpunit/phpunit": "^10.5|^11.0",
@ -1741,20 +1741,20 @@
"issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework"
},
"time": "2024-11-15T17:04:33+00:00"
"time": "2024-11-19T22:47:13+00:00"
},
{
"name": "laravel/jetstream",
"version": "v5.3.2",
"version": "v5.3.3",
"source": {
"type": "git",
"url": "https://github.com/laravel/jetstream.git",
"reference": "e5b9ef610bf13fb3b6053893f711227213833f35"
"reference": "16859ea11a0bbce631c19d95ca0e172322e52e30"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/jetstream/zipball/e5b9ef610bf13fb3b6053893f711227213833f35",
"reference": "e5b9ef610bf13fb3b6053893f711227213833f35",
"url": "https://api.github.com/repos/laravel/jetstream/zipball/16859ea11a0bbce631c19d95ca0e172322e52e30",
"reference": "16859ea11a0bbce631c19d95ca0e172322e52e30",
"shasum": ""
},
"require": {
@ -1808,7 +1808,7 @@
"issues": "https://github.com/laravel/jetstream/issues",
"source": "https://github.com/laravel/jetstream"
},
"time": "2024-11-11T20:18:18+00:00"
"time": "2024-11-13T13:59:38+00:00"
},
{
"name": "laravel/prompts",
@ -1871,16 +1871,16 @@
},
{
"name": "laravel/sanctum",
"version": "v4.0.3",
"version": "v4.0.4",
"source": {
"type": "git",
"url": "https://github.com/laravel/sanctum.git",
"reference": "54aea9d13743ae8a6cdd3c28dbef128a17adecab"
"reference": "819782c75aaf2b08da1765503893bd2b8023d3b3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/sanctum/zipball/54aea9d13743ae8a6cdd3c28dbef128a17adecab",
"reference": "54aea9d13743ae8a6cdd3c28dbef128a17adecab",
"url": "https://api.github.com/repos/laravel/sanctum/zipball/819782c75aaf2b08da1765503893bd2b8023d3b3",
"reference": "819782c75aaf2b08da1765503893bd2b8023d3b3",
"shasum": ""
},
"require": {
@ -1931,7 +1931,7 @@
"issues": "https://github.com/laravel/sanctum/issues",
"source": "https://github.com/laravel/sanctum"
},
"time": "2024-09-27T14:55:41+00:00"
"time": "2024-11-15T14:47:23+00:00"
},
{
"name": "laravel/scout",
@ -2016,32 +2016,32 @@
},
{
"name": "laravel/serializable-closure",
"version": "v1.3.6",
"version": "v2.0.0",
"source": {
"type": "git",
"url": "https://github.com/laravel/serializable-closure.git",
"reference": "f865a58ea3a0107c336b7045104c75243fa59d96"
"reference": "0d8d3d8086984996df86596a86dea60398093a81"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/serializable-closure/zipball/f865a58ea3a0107c336b7045104c75243fa59d96",
"reference": "f865a58ea3a0107c336b7045104c75243fa59d96",
"url": "https://api.github.com/repos/laravel/serializable-closure/zipball/0d8d3d8086984996df86596a86dea60398093a81",
"reference": "0d8d3d8086984996df86596a86dea60398093a81",
"shasum": ""
},
"require": {
"php": "^7.3|^8.0"
"php": "^8.1"
},
"require-dev": {
"illuminate/support": "^8.0|^9.0|^10.0|^11.0",
"nesbot/carbon": "^2.61|^3.0",
"pestphp/pest": "^1.21.3",
"phpstan/phpstan": "^1.8.2",
"symfony/var-dumper": "^5.4.11|^6.2.0|^7.0.0"
"illuminate/support": "^10.0|^11.0",
"nesbot/carbon": "^2.67|^3.0",
"pestphp/pest": "^2.36",
"phpstan/phpstan": "^2.0",
"symfony/var-dumper": "^6.2.0|^7.0.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
"dev-master": "2.x-dev"
}
},
"autoload": {
@ -2073,7 +2073,7 @@
"issues": "https://github.com/laravel/serializable-closure/issues",
"source": "https://github.com/laravel/serializable-closure"
},
"time": "2024-11-11T17:06:04+00:00"
"time": "2024-11-19T01:38:44+00:00"
},
{
"name": "laravel/tinker",
@ -3065,31 +3065,31 @@
},
{
"name": "nunomaduro/termwind",
"version": "v2.2.0",
"version": "v2.3.0",
"source": {
"type": "git",
"url": "https://github.com/nunomaduro/termwind.git",
"reference": "42c84e4e8090766bbd6445d06cd6e57650626ea3"
"reference": "52915afe6a1044e8b9cee1bcff836fb63acf9cda"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nunomaduro/termwind/zipball/42c84e4e8090766bbd6445d06cd6e57650626ea3",
"reference": "42c84e4e8090766bbd6445d06cd6e57650626ea3",
"url": "https://api.github.com/repos/nunomaduro/termwind/zipball/52915afe6a1044e8b9cee1bcff836fb63acf9cda",
"reference": "52915afe6a1044e8b9cee1bcff836fb63acf9cda",
"shasum": ""
},
"require": {
"ext-mbstring": "*",
"php": "^8.2",
"symfony/console": "^7.1.5"
"symfony/console": "^7.1.8"
},
"require-dev": {
"illuminate/console": "^11.28.0",
"laravel/pint": "^1.18.1",
"illuminate/console": "^11.33.2",
"laravel/pint": "^1.18.2",
"mockery/mockery": "^1.6.12",
"pestphp/pest": "^2.36.0",
"phpstan/phpstan": "^1.12.6",
"phpstan/phpstan": "^1.12.11",
"phpstan/phpstan-strict-rules": "^1.6.1",
"symfony/var-dumper": "^7.1.5",
"symfony/var-dumper": "^7.1.8",
"thecodingmachine/phpstan-strict-rules": "^1.0.0"
},
"type": "library",
@ -3132,7 +3132,7 @@
],
"support": {
"issues": "https://github.com/nunomaduro/termwind/issues",
"source": "https://github.com/nunomaduro/termwind/tree/v2.2.0"
"source": "https://github.com/nunomaduro/termwind/tree/v2.3.0"
},
"funding": [
{
@ -3148,7 +3148,7 @@
"type": "github"
}
],
"time": "2024-10-15T16:15:16+00:00"
"time": "2024-11-21T10:39:51+00:00"
},
{
"name": "paragonie/constant_time_encoding",
@ -4230,16 +4230,16 @@
},
{
"name": "spatie/laravel-package-tools",
"version": "1.16.5",
"version": "1.16.6",
"source": {
"type": "git",
"url": "https://github.com/spatie/laravel-package-tools.git",
"reference": "c7413972cf22ffdff97b68499c22baa04eddb6a2"
"reference": "1f26942dc1e5c49eacfced34fdbc29ed234bd7b3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/c7413972cf22ffdff97b68499c22baa04eddb6a2",
"reference": "c7413972cf22ffdff97b68499c22baa04eddb6a2",
"url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/1f26942dc1e5c49eacfced34fdbc29ed234bd7b3",
"reference": "1f26942dc1e5c49eacfced34fdbc29ed234bd7b3",
"shasum": ""
},
"require": {
@ -4278,7 +4278,7 @@
],
"support": {
"issues": "https://github.com/spatie/laravel-package-tools/issues",
"source": "https://github.com/spatie/laravel-package-tools/tree/1.16.5"
"source": "https://github.com/spatie/laravel-package-tools/tree/1.16.6"
},
"funding": [
{
@ -4286,7 +4286,7 @@
"type": "github"
}
],
"time": "2024-08-27T18:56:10+00:00"
"time": "2024-11-18T15:02:02+00:00"
},
{
"name": "symfony/clock",
@ -6516,16 +6516,16 @@
},
{
"name": "tightenco/ziggy",
"version": "v2.4.0",
"version": "v2.4.1",
"source": {
"type": "git",
"url": "https://github.com/tighten/ziggy.git",
"reference": "e5d51d2a58c23a2932d80938990fa6a7623cbe46"
"reference": "8e002298678fd4d61155bb1d6e3837048235bff7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/tighten/ziggy/zipball/e5d51d2a58c23a2932d80938990fa6a7623cbe46",
"reference": "e5d51d2a58c23a2932d80938990fa6a7623cbe46",
"url": "https://api.github.com/repos/tighten/ziggy/zipball/8e002298678fd4d61155bb1d6e3837048235bff7",
"reference": "8e002298678fd4d61155bb1d6e3837048235bff7",
"shasum": ""
},
"require": {
@ -6580,9 +6580,9 @@
],
"support": {
"issues": "https://github.com/tighten/ziggy/issues",
"source": "https://github.com/tighten/ziggy/tree/v2.4.0"
"source": "https://github.com/tighten/ziggy/tree/v2.4.1"
},
"time": "2024-11-09T17:21:59+00:00"
"time": "2024-11-21T15:51:20+00:00"
},
{
"name": "tijsverkoyen/css-to-inline-styles",
@ -6723,16 +6723,16 @@
},
{
"name": "voku/portable-ascii",
"version": "2.0.1",
"version": "2.0.3",
"source": {
"type": "git",
"url": "https://github.com/voku/portable-ascii.git",
"reference": "b56450eed252f6801410d810c8e1727224ae0743"
"reference": "b1d923f88091c6bf09699efcd7c8a1b1bfd7351d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/voku/portable-ascii/zipball/b56450eed252f6801410d810c8e1727224ae0743",
"reference": "b56450eed252f6801410d810c8e1727224ae0743",
"url": "https://api.github.com/repos/voku/portable-ascii/zipball/b1d923f88091c6bf09699efcd7c8a1b1bfd7351d",
"reference": "b1d923f88091c6bf09699efcd7c8a1b1bfd7351d",
"shasum": ""
},
"require": {
@ -6757,7 +6757,7 @@
"authors": [
{
"name": "Lars Moelleken",
"homepage": "http://www.moelleken.org/"
"homepage": "https://www.moelleken.org/"
}
],
"description": "Portable ASCII library - performance optimized (ascii) string functions for php.",
@ -6769,7 +6769,7 @@
],
"support": {
"issues": "https://github.com/voku/portable-ascii/issues",
"source": "https://github.com/voku/portable-ascii/tree/2.0.1"
"source": "https://github.com/voku/portable-ascii/tree/2.0.3"
},
"funding": [
{
@ -6793,7 +6793,7 @@
"type": "tidelift"
}
],
"time": "2022-03-08T17:03:00+00:00"
"time": "2024-11-21T01:49:47+00:00"
},
{
"name": "webmozart/assert",
@ -6857,16 +6857,16 @@
"packages-dev": [
{
"name": "fakerphp/faker",
"version": "v1.24.0",
"version": "v1.24.1",
"source": {
"type": "git",
"url": "https://github.com/FakerPHP/Faker.git",
"reference": "a136842a532bac9ecd8a1c723852b09915d7db50"
"reference": "e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/FakerPHP/Faker/zipball/a136842a532bac9ecd8a1c723852b09915d7db50",
"reference": "a136842a532bac9ecd8a1c723852b09915d7db50",
"url": "https://api.github.com/repos/FakerPHP/Faker/zipball/e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5",
"reference": "e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5",
"shasum": ""
},
"require": {
@ -6914,9 +6914,9 @@
],
"support": {
"issues": "https://github.com/FakerPHP/Faker/issues",
"source": "https://github.com/FakerPHP/Faker/tree/v1.24.0"
"source": "https://github.com/FakerPHP/Faker/tree/v1.24.1"
},
"time": "2024-11-07T15:11:20+00:00"
"time": "2024-11-21T13:46:39+00:00"
},
{
"name": "filp/whoops",
@ -7042,16 +7042,16 @@
},
{
"name": "laravel/pint",
"version": "v1.18.1",
"version": "v1.18.2",
"source": {
"type": "git",
"url": "https://github.com/laravel/pint.git",
"reference": "35c00c05ec43e6b46d295efc0f4386ceb30d50d9"
"reference": "f55daaf7eb6c2f49ddf6702fb42e3091c64d8a64"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/pint/zipball/35c00c05ec43e6b46d295efc0f4386ceb30d50d9",
"reference": "35c00c05ec43e6b46d295efc0f4386ceb30d50d9",
"url": "https://api.github.com/repos/laravel/pint/zipball/f55daaf7eb6c2f49ddf6702fb42e3091c64d8a64",
"reference": "f55daaf7eb6c2f49ddf6702fb42e3091c64d8a64",
"shasum": ""
},
"require": {
@ -7104,7 +7104,7 @@
"issues": "https://github.com/laravel/pint/issues",
"source": "https://github.com/laravel/pint"
},
"time": "2024-09-24T17:22:50+00:00"
"time": "2024-11-20T09:33:46+00:00"
},
{
"name": "laravel/sail",

View File

@ -43,7 +43,7 @@ const onSearchBlue = () => {
setTimeout(() => querySearchList.value = true, 300)
}
watch(querySearch, debounce((value) => {
const searchDebounce = debounce((value) => {
axios.get(
route('search'),
{
@ -65,7 +65,11 @@ watch(querySearch, debounce((value) => {
.finally(function(){
});
}, 300));
}, 300);
watch(querySearch, (value) => {
searchDebounce(value);
});
</script>
@ -122,6 +126,7 @@ watch(querySearch, debounce((value) => {
size="md"
@focus="onSearchFocus"
@blur="onSearchBlue"
@input.stop="true"
>
<template #prefix>
<SearchIcon />
@ -320,6 +325,7 @@ watch(querySearch, debounce((value) => {
size="md"
@focus="onSearchFocus"
@blur="onSearchBlue"
@input.stop="true"
>
<template #prefix>
<SearchIcon />