How to use the ember-inspector/utils/search-match function in ember-inspector

To help you get started, we’ve selected a few ember-inspector examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github emberjs / ember-inspector / app / controllers / view-tree.js View on Github external
      .filter((item) => searchMatch(get(item, 'value.name'), this.get('searchValue')));
  }),
github emberjs / ember-inspector / app / controllers / component-tree.js View on Github external
      let match = item => searchMatch(item.name, query) || item.childItems.some(match);
      renderItems = renderItems.filter(match);
github emberjs / ember-inspector / app / controllers / route-tree.js View on Github external
return this.model.filter(routeItem => {
      let currentRoute = this.currentRoute;
      let hideRoutes = this.get('options.hideRoutes');
      let hideSubstates = this.get('options.hideSubstates');

      if (hideRoutes && currentRoute) {
        return checkCurrentRoute(currentRoute, routeItem.value);
      }

      if (hideSubstates && isRouteSubstate(routeItem.value.name)) {
        return false;
      }

      if (!searchMatch(routeItem.value.name, this.searchValue)) {
        return false;
      }

      return true;
    });
  }),
github emberjs / ember-inspector / app / controllers / container-type.js View on Github external
      .filter((item) => searchMatch(get(item, 'name'), this.search));
  }),
github emberjs / ember-inspector / app / controllers / deprecations.js View on Github external
    return this.deprecations.filter(item => searchMatch(item.message, this.search));
  }),