mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 16:15:42 -06:00
11 lines
369 B
TypeScript
11 lines
369 B
TypeScript
export const getPlugins = state => {
|
|
const regex = new RegExp(state.searchQuery, 'i');
|
|
|
|
return state.plugins.filter(item => {
|
|
return regex.test(item.name) || regex.test(item.info.author.name) || regex.test(item.info.description);
|
|
});
|
|
};
|
|
|
|
export const getPluginsSearchQuery = state => state.searchQuery;
|
|
export const getLayoutMode = state => state.layoutMode;
|