Remove the former search form, filters and SlimSelect (F2)
- materio_sapi: MaterioSapiSearchForm, AjaxSearchForm and the /materio_sapi/search_form route removed, with the fieldset legend hook they needed. The search block is only the place where the Vue field mounts (placement and access unchanged). - materiotheme: filters removed from the search store and Base.vue (the parameter of former URLs is ignored), formhtml removed from main.js and SearchBlock.vue, filter styles and SlimSelect import removed. - slim-select uninstalled, with its postinstall patch step. - Production build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM
This commit is contained in:
@@ -381,12 +381,9 @@ export let _v_sitebranding_block, _v_user_block, _v_header_menu, _v_language_swi
|
||||
// console.log('router beforeEach to ', to)
|
||||
const id = 'block-materiosapisearchblock'
|
||||
let $search_block = document.getElementById(id)
|
||||
let formhtml = null
|
||||
if ($search_block) {
|
||||
// get the search form html to pass it as template to the vue
|
||||
// we gain display speed vs async downloaded data
|
||||
formhtml = $search_block.innerHTML
|
||||
} else {
|
||||
// The block is only a place in the page: the search form is the Vue
|
||||
// component SearchForm (F1).
|
||||
if (!$search_block) {
|
||||
// else create the empty block to fill it later with async data
|
||||
$search_block = document.createElement('div')
|
||||
$search_block.setAttribute('id', id)
|
||||
@@ -399,7 +396,7 @@ export let _v_sitebranding_block, _v_user_block, _v_header_menu, _v_language_swi
|
||||
_v_search_block = new Vue({
|
||||
store,
|
||||
i18n,
|
||||
render: h => h(VSearchBlock, { props: { blockid: id, formhtml: formhtml } })
|
||||
render: h => h(VSearchBlock, { props: { blockid: id } })
|
||||
}).$mount('#' + id)
|
||||
}
|
||||
function initVLeftContent () {
|
||||
|
||||
Reference in New Issue
Block a user