2017-02-17 02:55:52 -08:00
|
|
|
import * as angular from "angular";
|
2017-03-08 11:43:53 -08:00
|
|
|
import 'core-js';
|
2017-02-17 02:55:52 -08:00
|
|
|
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 15:46:43 -08:00
|
|
|
import { DockerfilePathSelectComponent } from './directives/ui/dockerfile-path-select/dockerfile-path-select.component';
|
2017-03-21 17:24:11 -04:00
|
|
|
import { ContextPathSelectComponent } from './directives/ui/context-path-select/context-path-select.component';
|
2017-02-17 17:08:33 -08:00
|
|
|
import { ManageTriggerCustomGitComponent } from './directives/ui/manage-trigger-custom-git/manage-trigger-custom-git.component';
|
2017-02-18 01:45:00 -08:00
|
|
|
import { ManageTriggerGithostComponent } from './directives/ui/manage-trigger-githost/manage-trigger-githost.component';
|
2017-02-19 18:35:46 -08:00
|
|
|
import { LinearWorkflowComponent } from './directives/ui/linear-workflow/linear-workflow.component';
|
2017-02-21 15:59:26 -08:00
|
|
|
import { LinearWorkflowSectionComponent } from './directives/ui/linear-workflow/linear-workflow-section.component';
|
2017-02-19 18:41:48 -08:00
|
|
|
import { QuayConfig } from './quay-config.module';
|
|
|
|
import { QuayRun } from './quay-run.module';
|
2017-03-05 20:47:23 -08:00
|
|
|
import { BuildServiceImpl } from './services/build/build.service.impl';
|
2017-03-06 00:02:57 -08:00
|
|
|
import { AvatarServiceImpl } from './services/avatar/avatar.service.impl';
|
2017-03-07 11:25:18 -08:00
|
|
|
import { DockerfileServiceImpl } from './services/dockerfile/dockerfile.service.impl';
|
2017-03-11 16:48:05 -08:00
|
|
|
import { DataFileServiceImpl } from './services/datafile/datafile.service.impl';
|
2017-01-19 00:53:38 -08:00
|
|
|
|
2017-02-17 02:55:52 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Main application module.
|
|
|
|
*/
|
|
|
|
@NgModule({
|
2017-02-19 18:35:46 -08:00
|
|
|
imports: [
|
|
|
|
QuayRoutes,
|
|
|
|
QuayConfig,
|
2017-02-19 18:41:48 -08:00
|
|
|
QuayRun,
|
2017-02-19 18:35:46 -08:00
|
|
|
],
|
2017-02-17 02:55:52 -08:00
|
|
|
declarations: [
|
|
|
|
RegexMatchViewComponent,
|
2017-02-17 15:46:43 -08:00
|
|
|
DockerfilePathSelectComponent,
|
2017-03-21 17:24:11 -04:00
|
|
|
ContextPathSelectComponent,
|
2017-02-17 17:08:33 -08:00
|
|
|
ManageTriggerCustomGitComponent,
|
2017-02-18 01:45:00 -08:00
|
|
|
ManageTriggerGithostComponent,
|
2017-02-19 18:35:46 -08:00
|
|
|
LinearWorkflowComponent,
|
2017-02-21 15:59:26 -08:00
|
|
|
LinearWorkflowSectionComponent,
|
2017-02-17 02:55:52 -08:00
|
|
|
],
|
|
|
|
providers: [
|
|
|
|
ViewArrayImpl,
|
2017-03-05 20:47:23 -08:00
|
|
|
BuildServiceImpl,
|
2017-03-06 00:02:57 -08:00
|
|
|
AvatarServiceImpl,
|
2017-03-07 11:25:18 -08:00
|
|
|
DockerfileServiceImpl,
|
2017-03-11 16:48:05 -08:00
|
|
|
DataFileServiceImpl,
|
2017-02-17 02:55:52 -08:00
|
|
|
],
|
|
|
|
})
|
|
|
|
export class quay {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2017-02-19 18:35:46 -08:00
|
|
|
// TODO: Make injected values into services and move to NgModule.providers, as constants are not supported in Angular 2
|
2017-02-17 02:55:52 -08:00
|
|
|
angular
|
|
|
|
.module(quay.name)
|
2017-03-09 01:26:19 -08:00
|
|
|
.factory("fileReaderFactory", () => () => new FileReader())
|
2017-01-20 16:24:55 -08:00
|
|
|
.constant('NAME_PATTERNS', NAME_PATTERNS)
|
2017-01-23 12:34:22 -08:00
|
|
|
.constant('INJECTED_CONFIG', INJECTED_CONFIG)
|
|
|
|
.constant('INJECTED_FEATURES', INJECTED_FEATURES)
|
2017-03-08 18:34:06 -05:00
|
|
|
.constant('INJECTED_ENDPOINTS', INJECTED_ENDPOINTS);
|