mirror of
https://github.com/nasa/openmct.git
synced 2024-12-22 14:32:22 +00:00
cd3c2312a5
The search view now behaves as it previously did. The search aggregator is set to just use ElasticSearch, but it works.
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" ]
|
|
},
|
|
{
|
|
"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/ElasticsearchSearchProvider.js",
|
|
"depends": [ "$http", "objectService", "ELASTIC_ROOT" ]
|
|
},
|
|
{
|
|
"provides": "searchService",
|
|
"type": "provider",
|
|
"implementation": "providers/EverythingSearchProvider.js",
|
|
"depends": [ "objectService" ]
|
|
},
|
|
{
|
|
"provides": "searchService",
|
|
"type": "aggregator",
|
|
"implementation": "SearchAggregator.js",
|
|
"depends": [ "$q" ]
|
|
}
|
|
]
|
|
}
|
|
} |