2019-07-15 14:54:19 +00:00
|
|
|
// angular modules
|
2022-02-03 11:00:09 +00:00
|
|
|
import { NgModule, APP_INITIALIZER, ModuleWithProviders, Injector, Optional, SkipSelf,InjectionToken } from '@angular/core';
|
2019-07-15 14:54:19 +00: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 08:52:40 +00:00
|
|
|
import { OAuthModule, AuthConfig, OAuthService, OAuthStorage } from 'angular-oauth2-oidc';
|
|
|
|
import { StoreModule, Store } from '@ngrx/store';
|
2019-07-15 14:54:19 +00:00
|
|
|
import { EffectsModule } from '@ngrx/effects';
|
|
|
|
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
|
2020-01-22 08:52:40 +00:00
|
|
|
import { UploadxModule } from 'ngx-uploadx';
|
2021-03-05 11:37:10 +00:00
|
|
|
import { ClipboardModule } from 'ngx-clipboard';
|
2019-07-15 14:54:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
// routing module
|
|
|
|
import { AppCommonRoutingModule } from './common-routing.module';
|
|
|
|
|
2020-01-22 08:52:40 +00:00
|
|
|
import { MODULE_NAME } from './module-name';
|
2019-07-15 14:54:19 +00:00
|
|
|
|
|
|
|
//components
|
|
|
|
import { SafePipe } from './shared/safe.pipe';
|
2020-01-22 08:52:40 +00:00
|
|
|
import { AuthConfigFactory, IAuthconfigFactory } from './shared/authconfigFactory';
|
|
|
|
import { AppComponent } from './components/app/app.component';
|
2019-07-15 14:54:19 +00: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 12:37:38 +00:00
|
|
|
import { NotImplementedComponent } from './components/not-implemented/not-implemented.component';
|
2019-07-15 14:54:19 +00: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 08:52:40 +00:00
|
|
|
import { MenuBackgroundComponent } from './components/menu-background/menu-background.component';
|
2020-05-13 10:30:09 +00:00
|
|
|
import { HasPackageDirective} from './components/has-package/has-package.directive';
|
2022-03-16 13:20:28 +00:00
|
|
|
import { PackageExistsDirective} from './components/package-exists/package-exists.directive';
|
2023-02-08 10:25:00 +00:00
|
|
|
import { HasClaimDirective } from './components/has-claim/has-claim.directive';
|
|
|
|
import { HasRoleDirective } from './components/has-role/has-role.directive';
|
2020-06-12 10:24:08 +00:00
|
|
|
import { UserMenuComponent} from './components/user-menu/user-menu.component';
|
2021-02-15 10:34:21 +00:00
|
|
|
import { ThumbnailComponent } from './components/thumbnail/thumbnail.component';
|
2020-03-04 09:28:42 +00:00
|
|
|
import { Alert } from './enumerations/alert.enum';
|
2020-01-22 08:52:40 +00:00
|
|
|
import { IEventMessage } from './models/event.message';
|
2019-07-17 09:51:14 +00:00
|
|
|
import { IItem, Item } from './models/item';
|
2020-02-04 12:54:53 +00:00
|
|
|
import { WeatherCurrentObservation } from './models/weatherCurrentObservation';
|
2020-01-22 08:52:40 +00:00
|
|
|
import { IItemType } from './models/item.type';
|
2023-09-11 19:59:34 +00:00
|
|
|
import { IItemLinkType} from './models/itemlink.type';
|
|
|
|
import {IUrlType} from './models/url.type';
|
2020-01-22 08:52:40 +00:00
|
|
|
import { IItemTypes } from './models/item.types';
|
|
|
|
import { IItemTask, ItemTask } from './models/itemTask';
|
|
|
|
import { IListItem } from './models/list.item';
|
2020-06-29 13:44:23 +00:00
|
|
|
import { ITypeaheadItem } from './models/typeahead.item'
|
|
|
|
import { IJsonline } from './models/json-line';
|
|
|
|
import { ISenMLItem } from './models/senml-item';
|
2020-05-13 10:30:09 +00:00
|
|
|
import { IPackage,IPackages } from './models/package';
|
2020-01-22 08:52:40 +00:00
|
|
|
import { IUser } from './models/user';
|
2020-02-19 10:15:31 +00:00
|
|
|
import { IQueryState } from './models/query.state';
|
2020-06-29 13:44:23 +00:00
|
|
|
import { IDataLayer } from './models/data.layer';
|
2020-10-06 06:22:10 +00:00
|
|
|
import { IColor,IGradientstop} from './models/gradient';
|
2019-07-17 09:51:14 +00: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 10:33:33 +00:00
|
|
|
import { SecureOAuthStorage} from './shared/secureOAuthStorage';
|
2020-10-06 06:22:10 +00:00
|
|
|
import { GradientComponent } from './components/gradient/gradient.component';
|
|
|
|
import { GradientSelectComponent } from './components/gradient-select/gradient-select.component';
|
2020-12-09 20:45:38 +00:00
|
|
|
import { AppMenuComponent } from './components/app-menu/app-menu.component';
|
2021-02-11 10:44:34 +00:00
|
|
|
import { NotificationMenuComponent} from './components/notification-menu/notification-menu.component';
|
2021-02-16 15:49:23 +00:00
|
|
|
import { HelpMenuComponent} from './components/help-menu/help-menu.component';
|
2021-01-27 06:08:31 +00:00
|
|
|
import { BackButtonComponent } from './components/back-button/back-button.component';
|
2021-03-01 15:56:48 +00:00
|
|
|
import { EditImageModalComponent } from './components/edit-image-modal/edit-image-modal.component';
|
2021-02-25 16:17:52 +00:00
|
|
|
import { AvatarComponent } from './components/avatar/avatar.component';
|
2023-09-11 19:59:34 +00:00
|
|
|
import { ItemLinkComponent } from './components/item-link/item-link.component';
|
2021-02-25 16:17:52 +00:00
|
|
|
import { AvatarModule } from 'ngx-avatar';
|
2021-03-01 15:56:48 +00:00
|
|
|
import { ImageCropperModule } from 'ngx-image-cropper';
|
|
|
|
|
2022-02-03 11:00:09 +00:00
|
|
|
export const FM_COMMON_STARTPAGE = new InjectionToken<string>('fm-common-startpage');
|
2019-07-12 11:07:31 +00:00
|
|
|
|
2019-11-12 21:50:57 +00:00
|
|
|
export {
|
2019-07-16 14:15:40 +00:00
|
|
|
SafePipe,
|
|
|
|
AuthCallbackComponent,
|
2019-11-04 17:47:15 +00:00
|
|
|
AppComponent,
|
2019-07-16 14:15:40 +00:00
|
|
|
SessionClearedComponent,
|
|
|
|
ResumableFileUploadComponent,
|
|
|
|
NotFoundComponent,
|
2019-11-08 12:37:38 +00:00
|
|
|
NotImplementedComponent,
|
2019-07-16 14:15:40 +00:00
|
|
|
SidePanelComponent,
|
|
|
|
TimespanComponent,
|
2019-07-17 09:51:14 +00:00
|
|
|
TagInputComponent,
|
2020-06-12 10:24:08 +00:00
|
|
|
UserMenuComponent,
|
2021-02-15 10:34:21 +00:00
|
|
|
ThumbnailComponent,
|
2020-05-13 10:30:09 +00:00
|
|
|
HasPackageDirective,
|
2022-03-16 13:20:28 +00:00
|
|
|
PackageExistsDirective,
|
2020-06-23 15:51:47 +00:00
|
|
|
HasClaimDirective,
|
2023-02-08 10:25:00 +00:00
|
|
|
HasRoleDirective,
|
2020-03-04 09:28:42 +00:00
|
|
|
Alert,
|
2019-07-17 09:51:14 +00:00
|
|
|
IEventMessage,
|
|
|
|
IItem,
|
|
|
|
Item,
|
|
|
|
IItemType,
|
2023-09-11 19:59:34 +00:00
|
|
|
IItemLinkType,
|
|
|
|
IUrlType,
|
2019-07-17 09:51:14 +00:00
|
|
|
IItemTypes,
|
|
|
|
IItemTask,
|
|
|
|
ItemTask,
|
|
|
|
IListItem,
|
|
|
|
ITypeaheadItem,
|
|
|
|
IUser,
|
2020-02-19 10:15:31 +00:00
|
|
|
IQueryState,
|
2020-05-13 10:30:09 +00:00
|
|
|
IPackage,
|
|
|
|
IPackages,
|
2019-07-17 09:51:14 +00:00
|
|
|
commonActions,
|
2019-12-19 12:32:51 +00:00
|
|
|
commonReducers,
|
|
|
|
IAuthconfigFactory,
|
2020-01-08 10:37:37 +00:00
|
|
|
AuthConfigFactory,
|
2020-01-22 10:33:33 +00:00
|
|
|
MenuBackgroundComponent,
|
2020-02-04 12:54:53 +00:00
|
|
|
SecureOAuthStorage,
|
2020-06-29 13:44:23 +00:00
|
|
|
WeatherCurrentObservation,
|
|
|
|
IJsonline,
|
2020-06-29 13:51:08 +00:00
|
|
|
ISenMLItem,
|
2020-10-06 06:22:10 +00:00
|
|
|
IDataLayer,
|
|
|
|
IColor,
|
2021-01-27 06:34:10 +00:00
|
|
|
IGradientstop,
|
2021-02-25 16:17:52 +00:00
|
|
|
BackButtonComponent,
|
2021-03-02 08:35:39 +00:00
|
|
|
AvatarComponent,
|
2023-09-11 19:59:34 +00:00
|
|
|
ItemLinkComponent,
|
2021-10-05 11:46:10 +00:00
|
|
|
EditImageModalComponent,
|
|
|
|
GradientComponent,
|
|
|
|
GradientSelectComponent
|
2019-07-16 14:15:40 +00:00
|
|
|
};
|
|
|
|
|
2019-07-12 11:07:31 +00:00
|
|
|
@NgModule({
|
|
|
|
imports: [
|
2019-07-15 14:54:19 +00:00
|
|
|
CommonModule,
|
|
|
|
HttpClientModule,
|
|
|
|
AppCommonRoutingModule,
|
2020-01-22 08:52:40 +00:00
|
|
|
StoreModule.forFeature(MODULE_NAME, commonReducers.reducer),
|
2019-07-17 09:51:14 +00:00
|
|
|
EffectsModule.forFeature([commonEffects.AppCommonEffects]),
|
2019-07-15 14:54:19 +00:00
|
|
|
OAuthModule.forRoot(),
|
|
|
|
NgbModule,
|
2019-07-18 16:59:42 +00:00
|
|
|
FormsModule,
|
2021-02-25 16:17:52 +00:00
|
|
|
UploadxModule,
|
2021-03-05 11:37:10 +00:00
|
|
|
ClipboardModule,
|
2021-03-01 15:56:48 +00:00
|
|
|
AvatarModule,
|
|
|
|
ImageCropperModule
|
2019-07-15 14:54:19 +00:00
|
|
|
],
|
|
|
|
declarations: [
|
2019-11-04 17:47:15 +00:00
|
|
|
AppComponent,
|
2019-07-15 14:54:19 +00:00
|
|
|
AuthCallbackComponent,
|
|
|
|
SidePanelComponent,
|
|
|
|
SafePipe,
|
|
|
|
NotFoundComponent,
|
2019-11-08 12:37:38 +00:00
|
|
|
NotImplementedComponent,
|
2019-07-15 14:54:19 +00:00
|
|
|
ResumableFileUploadComponent,
|
|
|
|
TimespanComponent,
|
|
|
|
TagInputComponent,
|
2020-01-08 10:37:37 +00:00
|
|
|
SessionClearedComponent,
|
2020-05-13 10:30:09 +00:00
|
|
|
MenuBackgroundComponent,
|
2020-06-12 10:24:08 +00:00
|
|
|
HasPackageDirective,
|
2022-03-16 13:20:28 +00:00
|
|
|
PackageExistsDirective,
|
2020-06-23 15:51:47 +00:00
|
|
|
HasClaimDirective,
|
2023-02-08 10:25:00 +00:00
|
|
|
HasRoleDirective,
|
2020-10-05 12:58:47 +00:00
|
|
|
UserMenuComponent,
|
2020-10-06 06:22:10 +00:00
|
|
|
GradientComponent,
|
2020-12-09 20:45:38 +00:00
|
|
|
GradientSelectComponent,
|
2021-01-27 06:08:31 +00:00
|
|
|
AppMenuComponent,
|
2021-02-11 10:44:34 +00:00
|
|
|
NotificationMenuComponent,
|
2021-02-16 15:49:23 +00:00
|
|
|
HelpMenuComponent,
|
2021-02-15 10:34:21 +00:00
|
|
|
BackButtonComponent,
|
2021-02-25 18:57:09 +00:00
|
|
|
ThumbnailComponent,
|
2021-03-01 15:56:48 +00:00
|
|
|
EditImageModalComponent,
|
2023-09-11 19:59:34 +00:00
|
|
|
AvatarComponent,
|
|
|
|
ItemLinkComponent
|
2019-07-12 11:07:31 +00:00
|
|
|
],
|
2019-10-30 16:56:56 +00:00
|
|
|
exports: [
|
|
|
|
NgbModule,
|
|
|
|
UploadxModule,
|
2021-03-05 11:37:10 +00:00
|
|
|
ClipboardModule,
|
2019-10-30 17:13:32 +00:00
|
|
|
CommonModule,
|
2019-11-04 17:47:15 +00:00
|
|
|
AppComponent,
|
2020-01-22 08:52:40 +00:00
|
|
|
ResumableFileUploadComponent,
|
2019-10-28 13:18:25 +00:00
|
|
|
AuthCallbackComponent,
|
|
|
|
SidePanelComponent,
|
|
|
|
SafePipe,
|
|
|
|
NotFoundComponent,
|
2019-11-08 12:37:38 +00:00
|
|
|
NotImplementedComponent,
|
2019-10-28 13:18:25 +00:00
|
|
|
ResumableFileUploadComponent,
|
|
|
|
TimespanComponent,
|
|
|
|
TagInputComponent,
|
2020-01-08 10:37:37 +00:00
|
|
|
SessionClearedComponent,
|
2020-05-13 10:30:09 +00:00
|
|
|
MenuBackgroundComponent,
|
2020-06-12 10:24:08 +00:00
|
|
|
HasPackageDirective,
|
2022-03-16 13:20:28 +00:00
|
|
|
PackageExistsDirective,
|
2020-06-23 15:51:47 +00:00
|
|
|
HasClaimDirective,
|
2023-02-08 10:25:00 +00:00
|
|
|
HasRoleDirective,
|
2020-10-05 12:58:47 +00:00
|
|
|
UserMenuComponent,
|
2020-10-06 06:22:10 +00:00
|
|
|
GradientComponent,
|
2021-01-27 06:26:31 +00:00
|
|
|
GradientSelectComponent,
|
2021-02-15 10:34:21 +00:00
|
|
|
BackButtonComponent,
|
2021-02-25 16:17:52 +00:00
|
|
|
ThumbnailComponent,
|
2021-03-02 08:35:39 +00:00
|
|
|
AvatarComponent,
|
2023-09-11 19:59:34 +00:00
|
|
|
ItemLinkComponent,
|
2021-03-02 08:35:39 +00:00
|
|
|
EditImageModalComponent
|
2020-01-22 08:52:40 +00:00
|
|
|
]
|
2019-07-12 11:07:31 +00:00
|
|
|
})
|
2019-07-15 14:54:19 +00:00
|
|
|
export class AppCommonModule {
|
|
|
|
}
|