mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-26 17:24:45 +00:00
* [ACA-19] join/cancel join library actions * [ACA-19] show the info drawer * [ACA-19] custom icon for join library * [ACA-19] css to 'see' custom icon for extension * [ACA-19] reformat with prettier * [ACA-19] better role display * [ACA-19] simplify cancel request rule * [ACA-19] refactor and use toggle join/cancel join component & directive * [ACA-19] reformat with Prettier * [ACA-19] fix title for svgIcon * [ACA-19] fix translation * [ACA-19] unit test
139 lines
5.3 KiB
TypeScript
139 lines
5.3 KiB
TypeScript
/*!
|
|
* @license
|
|
* Alfresco Example Content Application
|
|
*
|
|
* Copyright (C) 2005 - 2018 Alfresco Software Limited
|
|
*
|
|
* This file is part of the Alfresco Example Content Application.
|
|
* If the software was purchased under a paid Alfresco license, the terms of
|
|
* the paid license agreement will prevail. Otherwise, the software is
|
|
* provided under the following open source license terms:
|
|
*
|
|
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
import { NgModule } from '@angular/core';
|
|
import { RouterModule, RouteReuseStrategy } from '@angular/router';
|
|
import {
|
|
BrowserAnimationsModule,
|
|
NoopAnimationsModule
|
|
} from '@angular/platform-browser/animations';
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
import {
|
|
TRANSLATION_PROVIDER,
|
|
CoreModule,
|
|
AppConfigService,
|
|
DebugAppConfigService
|
|
} from '@alfresco/adf-core';
|
|
import { ContentModule } from '@alfresco/adf-content-services';
|
|
|
|
import { AppComponent } from './app.component';
|
|
import { APP_ROUTES } from './app.routes';
|
|
|
|
import { FilesComponent } from './components/files/files.component';
|
|
import { LibrariesComponent } from './components/libraries/libraries.component';
|
|
import { FavoriteLibrariesComponent } from './components/favorite-libraries/favorite-libraries.component';
|
|
import { NodeVersionsDialogComponent } from './dialogs/node-versions/node-versions.dialog';
|
|
import { LibraryDialogComponent } from './dialogs/library/library.dialog';
|
|
|
|
import { AppStoreModule } from './store/app-store.module';
|
|
import { MaterialModule } from './material.module';
|
|
import { AppExtensionsModule } from './extensions.module';
|
|
import { CoreExtensionsModule } from './extensions/core.extensions.module';
|
|
import { AppRouteReuseStrategy } from './app.routes.strategy';
|
|
import { AppInfoDrawerModule } from './components/info-drawer/info.drawer.module';
|
|
import { DirectivesModule } from './directives/directives.module';
|
|
import { ContextMenuModule } from './components/context-menu/context-menu.module';
|
|
import { ExtensionsModule } from '@alfresco/adf-extensions';
|
|
import { AppToolbarModule } from './components/toolbar/toolbar.module';
|
|
import { AppSharedModule } from './components/shared/shared.module';
|
|
import { AppCreateMenuModule } from './components/create-menu/create-menu.module';
|
|
import { AppSidenavModule } from './components/sidenav/sidenav.module';
|
|
import { AppPermissionsModule } from './components/permissions/permissions.module';
|
|
import { AppCommonModule } from './components/common/common.module';
|
|
import { AppLayoutModule } from './components/layout/layout.module';
|
|
import { AppCurrentUserModule } from './components/current-user/current-user.module';
|
|
import { AppSearchInputModule } from './components/search/search-input.module';
|
|
import { AppSearchResultsModule } from './components/search/search-results.module';
|
|
import { AppLoginModule } from './components/login/login.module';
|
|
import { AppHeaderModule } from './components/header/header.module';
|
|
import { environment } from '../environments/environment';
|
|
import { LibraryMembershipDirective } from './directives/library-membership.directive';
|
|
import { ToggleJoinLibraryComponent } from './components/toolbar/toggle-join-library/toggle-join-library.component';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
BrowserModule,
|
|
environment.e2e ? NoopAnimationsModule : BrowserAnimationsModule,
|
|
FormsModule,
|
|
ReactiveFormsModule,
|
|
RouterModule.forRoot(APP_ROUTES, {
|
|
useHash: true,
|
|
enableTracing: false // enable for debug only
|
|
}),
|
|
MaterialModule,
|
|
CoreModule.forRoot(),
|
|
ContentModule.forRoot(),
|
|
AppStoreModule,
|
|
CoreExtensionsModule.forRoot(),
|
|
ExtensionsModule,
|
|
AppExtensionsModule,
|
|
AppLoginModule,
|
|
AppCommonModule,
|
|
AppLayoutModule,
|
|
AppCurrentUserModule,
|
|
DirectivesModule,
|
|
ContextMenuModule,
|
|
AppInfoDrawerModule,
|
|
AppToolbarModule,
|
|
AppSharedModule,
|
|
AppSidenavModule,
|
|
AppCreateMenuModule,
|
|
AppPermissionsModule,
|
|
AppSearchInputModule,
|
|
AppSearchResultsModule,
|
|
AppHeaderModule
|
|
],
|
|
declarations: [
|
|
AppComponent,
|
|
FilesComponent,
|
|
LibrariesComponent,
|
|
FavoriteLibrariesComponent,
|
|
NodeVersionsDialogComponent,
|
|
LibraryDialogComponent,
|
|
LibraryMembershipDirective,
|
|
ToggleJoinLibraryComponent
|
|
],
|
|
providers: [
|
|
{ provide: RouteReuseStrategy, useClass: AppRouteReuseStrategy },
|
|
{ provide: AppConfigService, useClass: DebugAppConfigService },
|
|
{
|
|
provide: TRANSLATION_PROVIDER,
|
|
multi: true,
|
|
useValue: {
|
|
name: 'app',
|
|
source: 'assets'
|
|
}
|
|
}
|
|
],
|
|
entryComponents: [
|
|
LibraryDialogComponent,
|
|
NodeVersionsDialogComponent,
|
|
ToggleJoinLibraryComponent
|
|
],
|
|
bootstrap: [AppComponent]
|
|
})
|
|
export class AppModule {}
|