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

View File

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