Skip to content

Commit

Permalink
Merge pull request #268 from biblioverse/search-lexer
Browse files Browse the repository at this point in the history
Search & Filtering refactor
  • Loading branch information
SergioMendolia authored Jan 8, 2025
2 parents aa9f05f + 554c1a7 commit a97cb53
Show file tree
Hide file tree
Showing 170 changed files with 4,074 additions and 2,397 deletions.
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ Explain your PR here
- [ ] Tests are passing
- [ ] New tests have been written
- [ ] Documentation has been updated
- [ ] Translations have been updated
- [ ] Breaking changes have been avoided or documented

5 changes: 4 additions & 1 deletion assets/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ import * as bootstrap from 'bootstrap'


window.addEventListener('manager:flush', () => {
location.reload()
setTimeout(function (){location.reload()}, 500)
});

const toastElList = document.querySelectorAll('.toast')
const toastList = [...toastElList].map(toastEl => new bootstrap.Toast(toastEl).show())

const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]')
const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl))
23 changes: 23 additions & 0 deletions assets/controllers/search-controller.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { Controller } from '@hotwired/stimulus';
import { getComponent } from '@symfony/ux-live-component';

export default class extends Controller {
static targets = [ "search", "query", "suggestions" ]
async initialize() {
this.component = await getComponent(this.element);

}

connect() {
}

redirect() {
const path = window.location.pathname
if(!path.includes('/all')) {
document.getElementById('js-main').innerHTML = ''

history.pushState({}, '', '/all')
}
}

}
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"ext-imagick": "*",
"ext-zip": "*",
"acseo/typesense-bundle": "dev-master",
"andanteproject/page-filter-form-bundle": "^1.0",
"beberlei/doctrineextensions": "^1.3",
"devdot/monolog-parser": "^1.6",
"doctrine/annotations": "^2.0",
Expand All @@ -28,7 +27,7 @@
"knplabs/knp-menu-bundle": "^3.2",
"knplabs/knp-paginator-bundle": "^6.2",
"liip/imagine-bundle": "^2.10",
"orhanerday/open-ai": "^5.1",
"nikic/php-parser": "^5.4",
"phpdocumentor/reflection-docblock": "^5.3",
"phpstan/phpdoc-parser": "^2.0",
"rtheunissen/guzzle-log-middleware": "^2.0",
Expand Down
Loading

0 comments on commit a97cb53

Please sign in to comment.