2017-02-17 10:55:52 +00:00
|
|
|
import * as angular from "angular";
|
2017-03-08 19:43:53 +00:00
|
|
|
import 'core-js';
|
2017-02-17 10:55:52 +00: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 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-03-06 04:47:23 +00:00
|
|
|
import { BuildServiceImpl } from './services/build/build.service.impl';
|
2017-03-06 08:02:57 +00:00
|
|
|
import { AvatarServiceImpl } from './services/avatar/avatar.service.impl';
|
2017-03-07 19:25:18 +00:00
|
|
|
import { DockerfileServiceImpl } from './services/dockerfile/dockerfile.service.impl';
|
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,
|
2017-03-06 04:47:23 +00:00
|
|
|
BuildServiceImpl,
|
2017-03-06 08:02:57 +00:00
|
|
|
AvatarServiceImpl,
|
2017-03-07 19:25:18 +00:00
|
|
|
DockerfileServiceImpl,
|
2017-02-17 10:55:52 +00:00
|
|
|
],
|
|
|
|
})
|
|
|
|
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-03-09 09:26:19 +00:00
|
|
|
.factory("fileReaderFactory", () => () => new FileReader())
|
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);
|