2017-02-17 10:55:52 +00:00
|
|
|
import * as angular from "angular";
|
|
|
|
import { ViewArrayImpl } from "./services/view-array/view-array.impl";
|
|
|
|
import { NAME_PATTERNS } from "./constants/name-patterns.constant";
|
|
|
|
import { INJECTED_CONFIG, INJECTED_FEATURES, INJECTED_ENDPOINTS } from "./constants/injected-values.constant";
|
|
|
|
import { RegexMatchViewComponent } from "./directives/ui/regex-match-view/regex-match-view.component";
|
|
|
|
import { NgModule } from "angular-ts-decorators";
|
|
|
|
import { QuayRoutes } from "./quay-routes.module";
|
2017-02-17 23:46:43 +00:00
|
|
|
import { DockerfilePathSelectComponent } from './directives/ui/dockerfile-path-select/dockerfile-path-select.component';
|
2017-02-18 01:08:33 +00:00
|
|
|
import { ManageTriggerCustomGitComponent } from './directives/ui/manage-trigger-custom-git/manage-trigger-custom-git.component';
|
2017-02-18 09:45:00 +00:00
|
|
|
import { ManageTriggerGithostComponent } from './directives/ui/manage-trigger-githost/manage-trigger-githost.component';
|
2017-02-20 02:35:46 +00:00
|
|
|
import { LinearWorkflowComponent } from './directives/ui/linear-workflow/linear-workflow.component';
|
2017-02-21 23:59:26 +00:00
|
|
|
import { LinearWorkflowSectionComponent } from './directives/ui/linear-workflow/linear-workflow-section.component';
|
2017-02-20 02:41:48 +00:00
|
|
|
import { QuayConfig } from './quay-config.module';
|
|
|
|
import { QuayRun } from './quay-run.module';
|
2017-01-19 08:53:38 +00:00
|
|
|
|
2017-02-17 10:55:52 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Main application module.
|
|
|
|
*/
|
|
|
|
@NgModule({
|
2017-02-20 02:35:46 +00:00
|
|
|
imports: [
|
|
|
|
QuayRoutes,
|
|
|
|
QuayConfig,
|
2017-02-20 02:41:48 +00:00
|
|
|
QuayRun,
|
2017-02-20 02:35:46 +00:00
|
|
|
],
|
2017-02-17 10:55:52 +00:00
|
|
|
declarations: [
|
|
|
|
RegexMatchViewComponent,
|
2017-02-17 23:46:43 +00:00
|
|
|
DockerfilePathSelectComponent,
|
2017-02-18 01:08:33 +00:00
|
|
|
ManageTriggerCustomGitComponent,
|
2017-02-18 09:45:00 +00:00
|
|
|
ManageTriggerGithostComponent,
|
2017-02-20 02:35:46 +00:00
|
|
|
LinearWorkflowComponent,
|
2017-02-21 23:59:26 +00:00
|
|
|
LinearWorkflowSectionComponent,
|
2017-02-17 10:55:52 +00:00
|
|
|
],
|
|
|
|
providers: [
|
|
|
|
ViewArrayImpl,
|
|
|
|
],
|
|
|
|
})
|
|
|
|
export class quay {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2017-02-20 02:35:46 +00:00
|
|
|
// TODO: Make injected values into services and move to NgModule.providers, as constants are not supported in Angular 2
|
2017-02-17 10:55:52 +00:00
|
|
|
angular
|
|
|
|
.module(quay.name)
|
2017-01-21 00:24:55 +00:00
|
|
|
.constant('NAME_PATTERNS', NAME_PATTERNS)
|
2017-01-23 20:34:22 +00:00
|
|
|
.constant('INJECTED_CONFIG', INJECTED_CONFIG)
|
|
|
|
.constant('INJECTED_FEATURES', INJECTED_FEATURES)
|
2017-02-17 10:55:52 +00:00
|
|
|
.constant('INJECTED_ENDPOINTS', INJECTED_ENDPOINTS);
|