2019-07-15 16:54:19 +02:00
|
|
|
// angular modules
|
2020-01-22 09:52:40 +01:00
|
|
|
import { NgModule, APP_INITIALIZER, ModuleWithProviders, Injector, Optional, SkipSelf } from '@angular/core';
|
2019-07-15 16:54:19 +02:00
|
|
|
import { CommonModule, DatePipe } from '@angular/common';
|
|
|
|
import { HttpClientModule, HttpClient, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
|
|
import { FormsModule } from '@angular/forms';
|
|
|
|
|
|
|
|
// external modules
|
2020-01-22 09:52:40 +01:00
|
|
|
import { OAuthModule, AuthConfig, OAuthService, OAuthStorage } from 'angular-oauth2-oidc';
|
|
|
|
import { StoreModule, Store } from '@ngrx/store';
|
2019-07-15 16:54:19 +02:00
|
|
|
import { EffectsModule } from '@ngrx/effects';
|
|
|
|
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
|
2020-01-22 09:52:40 +01:00
|
|
|
import { UploadxModule } from 'ngx-uploadx';
|
2019-07-15 16:54:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
// routing module
|
|
|
|
import { AppCommonRoutingModule } from './common-routing.module';
|
|
|
|
|
2020-01-22 09:52:40 +01:00
|
|
|
import { MODULE_NAME } from './module-name';
|
2019-07-15 16:54:19 +02:00
|
|
|
|
|
|
|
//components
|
|
|
|
import { SafePipe } from './shared/safe.pipe';
|
2020-01-22 09:52:40 +01:00
|
|
|
import { AuthConfigFactory, IAuthconfigFactory } from './shared/authconfigFactory';
|
|
|
|
import { AppComponent } from './components/app/app.component';
|
2019-07-15 16:54:19 +02:00
|
|
|
import { AuthCallbackComponent } from './components/auth-callback/auth-callback.component';
|
|
|
|
import { SessionClearedComponent } from './components/session-cleared/session-cleared.component';
|
|
|
|
import { ResumableFileUploadComponent } from './components/resumable-file-upload/resumable-file-upload.component';
|
|
|
|
import { NotFoundComponent } from './components/not-found/not-found.component';
|
2019-11-08 13:37:38 +01:00
|
|
|
import { NotImplementedComponent } from './components/not-implemented/not-implemented.component';
|
2019-07-15 16:54:19 +02:00
|
|
|
import { SidePanelComponent } from './components/side-panel/side-panel.component';
|
|
|
|
import { TimespanComponent } from './components/timespan/timespan.component';
|
|
|
|
import { TagInputComponent } from './components/tag-input/tag-input.component';
|
2020-01-22 09:52:40 +01:00
|
|
|
import { MenuBackgroundComponent } from './components/menu-background/menu-background.component';
|
2020-05-13 12:30:09 +02:00
|
|
|
import { HasPackageDirective} from './components/has-package/has-package.directive';
|
2020-06-23 17:51:47 +02:00
|
|
|
import { HasClaimDirective} from './components/has-claim/has-claim.directive';
|
2020-06-12 12:24:08 +02:00
|
|
|
import { UserMenuComponent} from './components/user-menu/user-menu.component';
|
2020-03-04 10:28:42 +01:00
|
|
|
import { Alert } from './enumerations/alert.enum';
|
2020-01-22 09:52:40 +01:00
|
|
|
import { IEventMessage } from './models/event.message';
|
2019-07-17 11:51:14 +02:00
|
|
|
import { IItem, Item } from './models/item';
|
2020-02-04 13:54:53 +01:00
|
|
|
import { WeatherCurrentObservation } from './models/weatherCurrentObservation';
|
2020-01-22 09:52:40 +01:00
|
|
|
import { IItemType } from './models/item.type';
|
|
|
|
import { IItemTypes } from './models/item.types';
|
|
|
|
import { IItemTask, ItemTask } from './models/itemTask';
|
|
|
|
import { IListItem } from './models/list.item';
|
2020-06-29 15:44:23 +02:00
|
|
|
import { ITypeaheadItem } from './models/typeahead.item'
|
|
|
|
import { IJsonline } from './models/json-line';
|
|
|
|
import { ISenMLItem } from './models/senml-item';
|
2020-05-13 12:30:09 +02:00
|
|
|
import { IPackage,IPackages } from './models/package';
|
2020-01-22 09:52:40 +01:00
|
|
|
import { IUser } from './models/user';
|
2020-02-19 11:15:31 +01:00
|
|
|
import { IQueryState } from './models/query.state';
|
2020-06-29 15:44:23 +02:00
|
|
|
import { IDataLayer } from './models/data.layer';
|
2020-10-06 08:22:10 +02:00
|
|
|
import { IColor,IGradientstop} from './models/gradient';
|
2019-07-17 11:51:14 +02:00
|
|
|
import * as commonActions from './actions/app-common.actions';
|
|
|
|
import * as commonReducers from './reducers/app-common.reducer';
|
|
|
|
import * as commonEffects from './effects/app-common.effects';
|
2020-01-22 11:33:33 +01:00
|
|
|
import { SecureOAuthStorage} from './shared/secureOAuthStorage';
|
2020-10-06 08:22:10 +02:00
|
|
|
import { GradientComponent } from './components/gradient/gradient.component';
|
|
|
|
import { GradientSelectComponent } from './components/gradient-select/gradient-select.component';
|
2019-07-12 13:07:31 +02:00
|
|
|
|
2019-11-12 22:50:57 +01:00
|
|
|
export {
|
2019-07-16 16:15:40 +02:00
|
|
|
SafePipe,
|
|
|
|
AuthCallbackComponent,
|
2019-11-04 18:47:15 +01:00
|
|
|
AppComponent,
|
2019-07-16 16:15:40 +02:00
|
|
|
SessionClearedComponent,
|
|
|
|
ResumableFileUploadComponent,
|
|
|
|
NotFoundComponent,
|
2019-11-08 13:37:38 +01:00
|
|
|
NotImplementedComponent,
|
2019-07-16 16:15:40 +02:00
|
|
|
SidePanelComponent,
|
|
|
|
TimespanComponent,
|
2019-07-17 11:51:14 +02:00
|
|
|
TagInputComponent,
|
2020-06-12 12:24:08 +02:00
|
|
|
UserMenuComponent,
|
2020-05-13 12:30:09 +02:00
|
|
|
HasPackageDirective,
|
2020-06-23 17:51:47 +02:00
|
|
|
HasClaimDirective,
|
2020-03-04 10:28:42 +01:00
|
|
|
Alert,
|
2019-07-17 11:51:14 +02:00
|
|
|
IEventMessage,
|
|
|
|
IItem,
|
|
|
|
Item,
|
|
|
|
IItemType,
|
|
|
|
IItemTypes,
|
|
|
|
IItemTask,
|
|
|
|
ItemTask,
|
|
|
|
IListItem,
|
|
|
|
ITypeaheadItem,
|
|
|
|
IUser,
|
2020-02-19 11:15:31 +01:00
|
|
|
IQueryState,
|
2020-05-13 12:30:09 +02:00
|
|
|
IPackage,
|
|
|
|
IPackages,
|
2019-07-17 11:51:14 +02:00
|
|
|
commonActions,
|
2019-12-19 13:32:51 +01:00
|
|
|
commonReducers,
|
|
|
|
IAuthconfigFactory,
|
2020-01-08 11:37:37 +01:00
|
|
|
AuthConfigFactory,
|
2020-01-22 11:33:33 +01:00
|
|
|
MenuBackgroundComponent,
|
2020-02-04 13:54:53 +01:00
|
|
|
SecureOAuthStorage,
|
2020-06-29 15:44:23 +02:00
|
|
|
WeatherCurrentObservation,
|
|
|
|
IJsonline,
|
2020-06-29 15:51:08 +02:00
|
|
|
ISenMLItem,
|
2020-10-06 08:22:10 +02:00
|
|
|
IDataLayer,
|
|
|
|
IColor,
|
|
|
|
IGradientstop
|
2019-07-16 16:15:40 +02:00
|
|
|
};
|
|
|
|
|
2019-07-12 13:07:31 +02:00
|
|
|
@NgModule({
|
|
|
|
imports: [
|
2019-07-15 16:54:19 +02:00
|
|
|
CommonModule,
|
|
|
|
HttpClientModule,
|
|
|
|
AppCommonRoutingModule,
|
2020-01-22 09:52:40 +01:00
|
|
|
StoreModule.forFeature(MODULE_NAME, commonReducers.reducer),
|
2019-07-17 11:51:14 +02:00
|
|
|
EffectsModule.forFeature([commonEffects.AppCommonEffects]),
|
2019-07-15 16:54:19 +02:00
|
|
|
OAuthModule.forRoot(),
|
|
|
|
NgbModule,
|
2019-07-18 18:59:42 +02:00
|
|
|
FormsModule,
|
|
|
|
UploadxModule
|
2019-07-15 16:54:19 +02:00
|
|
|
],
|
|
|
|
declarations: [
|
2019-11-04 18:47:15 +01:00
|
|
|
AppComponent,
|
2019-07-15 16:54:19 +02:00
|
|
|
AuthCallbackComponent,
|
|
|
|
SidePanelComponent,
|
|
|
|
SafePipe,
|
|
|
|
NotFoundComponent,
|
2019-11-08 13:37:38 +01:00
|
|
|
NotImplementedComponent,
|
2019-07-15 16:54:19 +02:00
|
|
|
ResumableFileUploadComponent,
|
|
|
|
TimespanComponent,
|
|
|
|
TagInputComponent,
|
2020-01-08 11:37:37 +01:00
|
|
|
SessionClearedComponent,
|
2020-05-13 12:30:09 +02:00
|
|
|
MenuBackgroundComponent,
|
2020-06-12 12:24:08 +02:00
|
|
|
HasPackageDirective,
|
2020-06-23 17:51:47 +02:00
|
|
|
HasClaimDirective,
|
2020-10-05 14:58:47 +02:00
|
|
|
UserMenuComponent,
|
2020-10-06 08:22:10 +02:00
|
|
|
GradientComponent,
|
|
|
|
GradientSelectComponent
|
2019-07-12 13:07:31 +02:00
|
|
|
],
|
2019-10-30 17:56:56 +01:00
|
|
|
exports: [
|
|
|
|
NgbModule,
|
|
|
|
UploadxModule,
|
2019-10-30 18:13:32 +01:00
|
|
|
CommonModule,
|
2019-11-04 18:47:15 +01:00
|
|
|
AppComponent,
|
2020-01-22 09:52:40 +01:00
|
|
|
ResumableFileUploadComponent,
|
2019-10-28 14:18:25 +01:00
|
|
|
AuthCallbackComponent,
|
|
|
|
SidePanelComponent,
|
|
|
|
SafePipe,
|
|
|
|
NotFoundComponent,
|
2019-11-08 13:37:38 +01:00
|
|
|
NotImplementedComponent,
|
2019-10-28 14:18:25 +01:00
|
|
|
ResumableFileUploadComponent,
|
|
|
|
TimespanComponent,
|
|
|
|
TagInputComponent,
|
2020-01-08 11:37:37 +01:00
|
|
|
SessionClearedComponent,
|
2020-05-13 12:30:09 +02:00
|
|
|
MenuBackgroundComponent,
|
2020-06-12 12:24:08 +02:00
|
|
|
HasPackageDirective,
|
2020-06-23 17:51:47 +02:00
|
|
|
HasClaimDirective,
|
2020-10-05 14:58:47 +02:00
|
|
|
UserMenuComponent,
|
2020-10-06 08:22:10 +02:00
|
|
|
GradientComponent,
|
|
|
|
GradientSelectComponent
|
2020-01-22 09:52:40 +01:00
|
|
|
]
|
2019-07-12 13:07:31 +02:00
|
|
|
})
|
2019-07-15 16:54:19 +02:00
|
|
|
export class AppCommonModule {
|
|
|
|
}
|