forked from openshift/origin-web-catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
67 lines (60 loc) · 4.36 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import * as angular from 'angular';
import './styles/main.less';
// Aphabetical order please
require('./constants');
// Filters
import {projectUrlFilter} from './filters/projectUrl';
// Components, Alphabetical order please
import {BuilderAppService} from './services/builder-app.service';
import {catalogParameters} from './components/catalog-parameters/catalog-parameters.component';
import {catalogSearch} from './components/catalog-search/catalog-search.component';
import {CatalogService} from './services/catalog.service';
import {createFromBuilder} from './components/create-from-builder/create-from-builder.component';
import {landingPage} from './components/landing-page/landing-page.component';
import {orderService} from './components/order-service/order-service.component';
import {overlayPanel} from './components/overlay-panel/overlay-panel.component';
import {projectsSummary} from './components/projects-summary/projects-summary.component';
import {saasList} from './components/saas-list/saas-list.component';
import {selectProject} from './components/select-project/select-project.component';
import {servicesView} from './components/services-view/services-view.component';
import {RecentlyViewedServiceItems} from './services/recently-viewed-service-items.service.ts';
import {catalogFilter} from './components/catalog-filter/catalog-filter.component';
export const webCatalog: string = 'webCatalog';
angular
.module(webCatalog, ['patternfly', 'ngAnimate', 'ui.bootstrap', 'angularMoment', 'ui.select', 'schemaForm'])
.service('BuilderAppService', BuilderAppService)
.service('Catalog', CatalogService)
.service('RecentlyViewedServiceItems', RecentlyViewedServiceItems)
.filter('projectUrl', projectUrlFilter)
.component('catalogParameters', catalogParameters)
.component('catalogSearch', catalogSearch)
.component('createFromBuilder', createFromBuilder)
.component('landingPage', landingPage)
.component('orderService', orderService)
.component('overlayPanel', overlayPanel)
.component('projectsSummary', projectsSummary)
.component('saasList', saasList)
.component('selectProject', selectProject)
.component('servicesView', servicesView)
.component('catalogFilter', catalogFilter)
.run(['$templateCache', function($templateCache: any) {
$templateCache.put('catalog-search/catalog-search-result.html', require('./components/catalog-search/catalog-search-result.html'));
$templateCache.put('create-from-builder/create-from-builder-configure.html', require('./components/create-from-builder/create-from-builder-configure.html'));
$templateCache.put('create-from-builder/create-from-builder-bind.html', require('./components/create-from-builder/create-from-builder-bind.html'));
$templateCache.put('create-from-builder/create-from-builder-results.html', require('./components/create-from-builder/create-from-builder-results.html'));
$templateCache.put('order-service/order-service-plans.html', require('./components/order-service/order-service-plans.html'));
$templateCache.put('order-service/order-service-configure.html', require('./components/order-service/order-service-configure.html'));
$templateCache.put('order-service/order-service-bind.html', require('./components/order-service/order-service-bind.html'));
$templateCache.put('order-service/order-service-bind-parameters.html', require('./components/order-service/order-service-bind-parameters.html'));
$templateCache.put('order-service/order-service-review.html', require('./components/order-service/order-service-review.html'));
// Override the default angular-schema-form-bootstrap decorators for custom
// styles to support horizontal forms (and eventually valueFrom parameters).
// Adapted from files in node_modules/angular-schema-form-bootstrap/src
// See https://github.com/json-schema-form/angular-schema-form-bootstrap/issues/22
//
$templateCache.put('decorators/bootstrap/array.html', require('./decorators/bootstrap/array.html'));
$templateCache.put('decorators/bootstrap/checkbox.html', require('./decorators/bootstrap/checkbox.html'));
$templateCache.put('decorators/bootstrap/checkboxes.html', require('./decorators/bootstrap/checkboxes.html'));
$templateCache.put('decorators/bootstrap/default.html', require('./decorators/bootstrap/default.html'));
$templateCache.put('decorators/bootstrap/select.html', require('./decorators/bootstrap/select.html'));
}]);