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

70 lines
3.1 KiB
TypeScript
Raw Normal View History

import * as angular from "angular";
2017-03-08 19:43:53 +00:00
import 'core-js';
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 { ContextPathSelectComponent } from './directives/ui/context-path-select/context-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';
import { AppPublicViewComponent } from './directives/ui/app-public-view/app-public-view.component';
import { VisibilityIndicatorComponent } from './directives/ui/visibility-indicator/visibility-indicator.component';
import { CorTableComponent } from './directives/ui/cor-table/cor-table.component';
import { CorTableColumn } from './directives/ui/cor-table/cor-table-col.component';
import { ChannelIconComponent } from './directives/ui/channel-icon/channel-icon.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';
import { DataFileServiceImpl } from './services/datafile/datafile.service.impl';
/**
* 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,
ContextPathSelectComponent,
ManageTriggerCustomGitComponent,
ManageTriggerGithostComponent,
2017-02-20 02:35:46 +00:00
LinearWorkflowComponent,
2017-02-21 23:59:26 +00:00
LinearWorkflowSectionComponent,
AppPublicViewComponent,
VisibilityIndicatorComponent,
CorTableComponent,
CorTableColumn,
ChannelIconComponent,
],
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,
DataFileServiceImpl,
],
})
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)
.factory("fileReaderFactory", () => () => new FileReader())
.constant('NAME_PATTERNS', NAME_PATTERNS)
.constant('INJECTED_CONFIG', INJECTED_CONFIG)
.constant('INJECTED_FEATURES', INJECTED_FEATURES)
2017-03-08 23:34:06 +00:00
.constant('INJECTED_ENDPOINTS', INJECTED_ENDPOINTS);