mirror of
https://github.com/nasa/openmct.git
synced 2024-12-22 14:32:22 +00:00
4f4af87285
(Temporariliy removed the elasticsearch provider from bundle.json) Added a timestamp parameter to the query so that the aggregator can tell when the results were last updated. Created a separate function for getting the results list. GenericSearch now converts back from models to domain objects after the web worker does its work.
61 lines
1.9 KiB
JSON
61 lines
1.9 KiB
JSON
{
|
|
"name": "Search View",
|
|
"description": "Allows the user to search through the file tree.",
|
|
"extensions": {
|
|
"views": [
|
|
{
|
|
"key": "search",
|
|
"name": "Search",
|
|
"glyph": "5",
|
|
"description": "Search functionality.",
|
|
"templateUrl": "templates/search.html"
|
|
}
|
|
],
|
|
"controllers": [
|
|
{
|
|
"key": "SearchController",
|
|
"implementation": "controllers/SearchController.js",
|
|
"depends": [ "$scope", "searchService", "objectService" ]
|
|
},
|
|
{
|
|
"key": "SearchbarController",
|
|
"implementation": "controllers/SearchbarController.js",
|
|
"depends": [ "$scope", "searchService" ]
|
|
}
|
|
],
|
|
"templates": [
|
|
{
|
|
"key": "searchbar",
|
|
"templateUrl": "templates/searchbar.html",
|
|
"uses": [ "composition" ]
|
|
}
|
|
],
|
|
"representations": [
|
|
{
|
|
"key": "searchbar-item",
|
|
"templateUrl": "templates/searchbar-item.html",
|
|
"uses": [ "composition" ]
|
|
}
|
|
],
|
|
"components": [
|
|
{
|
|
"provides": "searchService",
|
|
"type": "provider",
|
|
"implementation": "providers/GenericSearchProvider.js",
|
|
"depends": [ "$rootScope", "$timeout", "objectService", "workerService" ]
|
|
},
|
|
{
|
|
"provides": "searchService",
|
|
"type": "aggregator",
|
|
"implementation": "SearchAggregator.js"
|
|
}
|
|
],
|
|
"workers": [
|
|
{
|
|
"key": "genericSearchWorker",
|
|
"scriptUrl": "workers/GenericSearchWorker.js",
|
|
"depends": [ "objectService" ]
|
|
}
|
|
]
|
|
}
|
|
} |