mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 05:37:53 +00:00
9dd520f17b
Use timeouts to make the generic search's item indexing not block up the page. Updated tests accordingly.
58 lines
1.8 KiB
JSON
58 lines
1.8 KiB
JSON
{
|
|
"name": "Search",
|
|
"description": "Allows the user to search through the file tree.",
|
|
"extensions": {
|
|
"constants": [
|
|
{
|
|
"key": "GENERIC_SEARCH_ROOTS",
|
|
"value": [ "ROOT" ],
|
|
"priority": "fallback"
|
|
}
|
|
],
|
|
"controllers": [
|
|
{
|
|
"key": "SearchController",
|
|
"implementation": "controllers/SearchController.js",
|
|
"depends": [ "$scope", "searchService" ]
|
|
},
|
|
{
|
|
"key": "SearchItemController",
|
|
"implementation": "controllers/SearchItemController.js",
|
|
"depends": [ "$scope" ]
|
|
}
|
|
],
|
|
"templates": [
|
|
{
|
|
"key": "search",
|
|
"templateUrl": "templates/search.html",
|
|
"uses": [ "controls", "forms" ]
|
|
}
|
|
],
|
|
"representations": [
|
|
{
|
|
"key": "search-item",
|
|
"templateUrl": "templates/search-item.html"
|
|
}
|
|
],
|
|
"components": [
|
|
{
|
|
"provides": "searchService",
|
|
"type": "provider",
|
|
"implementation": "services/GenericSearchProvider.js",
|
|
"depends": [ "$q", "$timeout", "objectService", "workerService", "GENERIC_SEARCH_ROOTS" ]
|
|
},
|
|
{
|
|
"provides": "searchService",
|
|
"type": "aggregator",
|
|
"implementation": "services/SearchAggregator.js",
|
|
"depends": [ "$q" ]
|
|
}
|
|
],
|
|
"workers": [
|
|
{
|
|
"key": "genericSearchWorker",
|
|
"scriptUrl": "services/GenericSearchWorker.js"
|
|
}
|
|
]
|
|
}
|
|
} |