Failed to execute template. Cause: [Access denied when checking [script] access to [xwiki:Collaboratory.UX.HbpSkin.WebHome] for user [xwiki:XWiki.Admin]]. Click on this message for details.

Context Search - HBP Wiki

IAM21 instance, do not create collab nor modify a team, your changes will be lost


Context Search

Version 26.62 by bougault on 2022/11/17 09:52

  import {LitElement, html} from 'https://cdn.jsdelivr.net/gh/lit/dist@2/core/lit-core.min.js';
  class UnifiedSearch extends LitElement {
    static properties = {
      searchText: { type: String },
      favoritesFilter: { type: Boolean },
      administratorFilter: { type: Boolean },
      editorFilter: { type: Boolean },
      viewerFilter: { type: Boolean },
      publicFilter: { type: Boolean },
      privateFilter: { type: Boolean },
    }
    constructor() {
      super();
      this.searchText = "";
      this.favoritesFilter = false;
      this.administratorFilter = true;
      this.editorFilter = false;
      this.viewerFilter = false;
      this.publicFilter = false;
      this.privateFilter = false;
    }
    toggleFilter(filterName) {
      this[filterName] = !this[filterName];
      console.log(this.administratorFilter);
    }
    setSearchText(e) {
      this.searchText = e.target.value;
    }
    handleSearch() {
      console.log(this.searchText);
    }
    render() {
      return html`
` } } customElements.define('clb-unified-search', UnifiedSearch);