This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/static/js/quay.module.ts

49 lines
1.9 KiB
TypeScript
Raw Normal View History

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";
import { DockerfilePathSelectComponent } from './directives/ui/dockerfile-path-select/dockerfile-path-select.component';
import { ManageTriggerCustomGitComponent } from './directives/ui/manage-trigger-custom-git/manage-trigger-custom-git.component';
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';
/**
* 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
],
declarations: [
RegexMatchViewComponent,
DockerfilePathSelectComponent,
ManageTriggerCustomGitComponent,
ManageTriggerGithostComponent,
2017-02-20 02:35:46 +00:00
LinearWorkflowComponent,
2017-02-21 23:59:26 +00:00
LinearWorkflowSectionComponent,
],
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
angular
.module(quay.name)
.constant('NAME_PATTERNS', NAME_PATTERNS)
.constant('INJECTED_CONFIG', INJECTED_CONFIG)
.constant('INJECTED_FEATURES', INJECTED_FEATURES)
.constant('INJECTED_ENDPOINTS', INJECTED_ENDPOINTS);