mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
Updated global search component to new format
This commit is contained in:
parent
ffc9c28ad5
commit
35f73bb474
@ -1,11 +1,13 @@
|
||||
import {htmlToDom} from "../services/dom";
|
||||
import {debounce} from "../services/util";
|
||||
import {KeyboardNavigationHandler} from "../services/keyboard-navigation";
|
||||
import {Component} from "./component";
|
||||
|
||||
/**
|
||||
* @extends {Component}
|
||||
* Global (header) search box handling.
|
||||
* Mainly to show live results preview.
|
||||
*/
|
||||
class GlobalSearch {
|
||||
export class GlobalSearch extends Component {
|
||||
|
||||
setup() {
|
||||
this.container = this.$el;
|
||||
@ -77,6 +79,4 @@ class GlobalSearch {
|
||||
this.suggestions.classList.remove('search-suggestions-animation');
|
||||
this.suggestionResultsWrap.innerHTML = '';
|
||||
}
|
||||
}
|
||||
|
||||
export default GlobalSearch;
|
||||
}
|
@ -25,6 +25,7 @@ export {EntitySelector} from "./entity-selector.js"
|
||||
export {EntitySelectorPopup} from "./entity-selector-popup.js"
|
||||
export {EventEmitSelect} from "./event-emit-select.js"
|
||||
export {ExpandToggle} from "./expand-toggle.js"
|
||||
export {GlobalSearch} from "./global-search.js"
|
||||
export {HeaderMobileToggle} from "./header-mobile-toggle.js"
|
||||
export {ImageManager} from "./image-manager.js"
|
||||
export {ImagePicker} from "./image-picker.js"
|
||||
@ -38,7 +39,7 @@ export {PageDisplay} from "./page-display.js"
|
||||
export {PageEditor} from "./page-editor.js"
|
||||
export {PagePicker} from "./page-picker.js"
|
||||
export {PermissionsTable} from "./permissions-table.js"
|
||||
export {Pointer} from "./pointer.js";
|
||||
export {Pointer} from "./pointer.js"
|
||||
export {Popup} from "./popup.js"
|
||||
export {SettingAppColorPicker} from "./setting-app-color-picker.js"
|
||||
export {SettingColorPicker} from "./setting-color-picker.js"
|
||||
@ -54,5 +55,5 @@ export {TemplateManager} from "./template-manager.js"
|
||||
export {ToggleSwitch} from "./toggle-switch.js"
|
||||
export {TriLayout} from "./tri-layout.js"
|
||||
export {UserSelect} from "./user-select.js"
|
||||
export {WebhookEvents} from "./webhook-events";
|
||||
export {WebhookEvents} from "./webhook-events"
|
||||
export {WysiwygEditor} from "./wysiwyg-editor.js"
|
||||
|
Loading…
Reference in New Issue
Block a user