Skip to content

Commit 2ab114f

Browse files
committed
feature #1390 Replace AJAX search with Live component (ker0x)
This PR was merged into the main branch. Discussion ---------- Replace AJAX search with Live component This pull request proposes to replace the AJAX search with a live component example Commits ------- 4d810b7 Replace AJAX search with Live component
2 parents de31ae9 + 4d810b7 commit 2ab114f

39 files changed

+457
-249
lines changed

assets/controllers.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
{
2-
"controllers": [],
2+
"controllers": {
3+
"@symfony/ux-live-component": {
4+
"live": {
5+
"enabled": true,
6+
"fetch": "eager",
7+
"autoimport": {
8+
"@symfony/ux-live-component/styles/live.css": true
9+
}
10+
}
11+
}
12+
},
313
"entrypoints": []
414
}

assets/js/jquery.instantSearch.js

Lines changed: 0 additions & 106 deletions
This file was deleted.

assets/search.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"symfony/string": "^6.2",
4040
"symfony/translation": "^6.2",
4141
"symfony/twig-bundle": "^6.2",
42+
"symfony/ux-live-component": "^2.6",
4243
"symfony/validator": "^6.2",
4344
"symfony/webpack-encore-bundle": "^1.13",
4445
"symfony/yaml": "^6.2",

0 commit comments

Comments
 (0)