mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
feature modules (#636)
* permission manager module * permissions module * common module * layout and search modules * trashcan module, lazy load * fix context menu module * lint fix * recent files module * favorites module (lazy) * shared files module (lazy) * shared link module (lazy) * lazy loaading fixes
This commit is contained in:
committed by
Cilibiu Bogdan
parent
f44838ac42
commit
eb97b18f95
1455
docs/extending.md
1455
docs/extending.md
File diff suppressed because it is too large
Load Diff
@@ -39,26 +39,13 @@ import { ContentModule } from '@alfresco/adf-content-services';
|
|||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
import { APP_ROUTES } from './app.routes';
|
import { APP_ROUTES } from './app.routes';
|
||||||
|
|
||||||
import { GenericErrorComponent } from './components/generic-error/generic-error.component';
|
|
||||||
import { FilesComponent } from './components/files/files.component';
|
import { FilesComponent } from './components/files/files.component';
|
||||||
import { FavoritesComponent } from './components/favorites/favorites.component';
|
|
||||||
import { LibrariesComponent } from './components/libraries/libraries.component';
|
import { LibrariesComponent } from './components/libraries/libraries.component';
|
||||||
import { RecentFilesComponent } from './components/recent-files/recent-files.component';
|
|
||||||
import { SharedFilesComponent } from './components/shared-files/shared-files.component';
|
|
||||||
import { TrashcanComponent } from './components/trashcan/trashcan.component';
|
|
||||||
import { LayoutComponent } from './components/layout/layout.component';
|
|
||||||
import { SidenavViewsManagerDirective } from './components/layout/sidenav-views-manager.directive';
|
|
||||||
import { CurrentUserComponent } from './components/current-user/current-user.component';
|
|
||||||
import { SearchInputComponent } from './components/search/search-input/search-input.component';
|
|
||||||
import { SearchInputControlComponent } from './components/search/search-input-control/search-input-control.component';
|
|
||||||
import { LocationLinkComponent } from './components/location-link/location-link.component';
|
|
||||||
import { SharedLinkViewComponent } from './components/shared-link-view/shared-link-view.component';
|
|
||||||
import { NodeVersionsDialogComponent } from './dialogs/node-versions/node-versions.dialog';
|
import { NodeVersionsDialogComponent } from './dialogs/node-versions/node-versions.dialog';
|
||||||
import { LibraryDialogComponent } from './dialogs/library/library.dialog';
|
import { LibraryDialogComponent } from './dialogs/library/library.dialog';
|
||||||
import { ContentManagementService } from './services/content-management.service';
|
import { ContentManagementService } from './services/content-management.service';
|
||||||
import { NodeActionsService } from './services/node-actions.service';
|
import { NodeActionsService } from './services/node-actions.service';
|
||||||
import { NodePermissionService } from './services/node-permission.service';
|
import { NodePermissionService } from './services/node-permission.service';
|
||||||
import { SearchResultsComponent } from './components/search/search-results/search-results.component';
|
|
||||||
import { ProfileResolver } from './services/profile.resolver';
|
import { ProfileResolver } from './services/profile.resolver';
|
||||||
import { ExperimentalGuard } from './services/experimental-guard.service';
|
import { ExperimentalGuard } from './services/experimental-guard.service';
|
||||||
|
|
||||||
@@ -67,9 +54,6 @@ import { MaterialModule } from './material.module';
|
|||||||
import { ContentApiService } from './services/content-api.service';
|
import { ContentApiService } from './services/content-api.service';
|
||||||
import { AppExtensionsModule } from './extensions.module';
|
import { AppExtensionsModule } from './extensions.module';
|
||||||
import { CoreExtensionsModule } from './extensions/core.extensions.module';
|
import { CoreExtensionsModule } from './extensions/core.extensions.module';
|
||||||
import { SearchResultsRowComponent } from './components/search/search-results-row/search-results-row.component';
|
|
||||||
import { NodePermissionsDialogComponent } from './dialogs/node-permissions/node-permissions.dialog';
|
|
||||||
import { PermissionsManagerComponent } from './components/permission-manager/permissions-manager.component';
|
|
||||||
import { AppRouteReuseStrategy } from './app.routes.strategy';
|
import { AppRouteReuseStrategy } from './app.routes.strategy';
|
||||||
import { AppInfoDrawerModule } from './components/info-drawer/info.drawer.module';
|
import { AppInfoDrawerModule } from './components/info-drawer/info.drawer.module';
|
||||||
import { DirectivesModule } from './directives/directives.module';
|
import { DirectivesModule } from './directives/directives.module';
|
||||||
@@ -78,6 +62,13 @@ import { ExtensionsModule } from '@alfresco/adf-extensions';
|
|||||||
import { AppToolbarModule } from './components/toolbar/toolbar.module';
|
import { AppToolbarModule } from './components/toolbar/toolbar.module';
|
||||||
import { AppCreateMenuModule } from './components/create-menu/create-menu.module';
|
import { AppCreateMenuModule } from './components/create-menu/create-menu.module';
|
||||||
import { AppSidenavModule } from './components/sidenav/sidenav.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';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
@@ -96,36 +87,26 @@ import { AppSidenavModule } from './components/sidenav/sidenav.module';
|
|||||||
CoreExtensionsModule.forRoot(),
|
CoreExtensionsModule.forRoot(),
|
||||||
ExtensionsModule.forRoot(),
|
ExtensionsModule.forRoot(),
|
||||||
AppExtensionsModule,
|
AppExtensionsModule,
|
||||||
|
AppLoginModule,
|
||||||
|
AppCommonModule,
|
||||||
|
AppLayoutModule,
|
||||||
|
AppCurrentUserModule,
|
||||||
DirectivesModule,
|
DirectivesModule,
|
||||||
ContextMenuModule.forRoot(),
|
ContextMenuModule.forRoot(),
|
||||||
AppInfoDrawerModule,
|
AppInfoDrawerModule,
|
||||||
AppToolbarModule,
|
AppToolbarModule,
|
||||||
AppSidenavModule,
|
AppSidenavModule,
|
||||||
AppCreateMenuModule
|
AppCreateMenuModule,
|
||||||
|
AppPermissionsModule,
|
||||||
|
AppSearchInputModule,
|
||||||
|
AppSearchResultsModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
AppComponent,
|
AppComponent,
|
||||||
GenericErrorComponent,
|
|
||||||
LayoutComponent,
|
|
||||||
SidenavViewsManagerDirective,
|
|
||||||
CurrentUserComponent,
|
|
||||||
SearchInputComponent,
|
|
||||||
SearchInputControlComponent,
|
|
||||||
FilesComponent,
|
FilesComponent,
|
||||||
FavoritesComponent,
|
|
||||||
LibrariesComponent,
|
LibrariesComponent,
|
||||||
RecentFilesComponent,
|
|
||||||
SharedFilesComponent,
|
|
||||||
TrashcanComponent,
|
|
||||||
LocationLinkComponent,
|
|
||||||
SearchResultsRowComponent,
|
|
||||||
NodeVersionsDialogComponent,
|
NodeVersionsDialogComponent,
|
||||||
LibraryDialogComponent,
|
LibraryDialogComponent
|
||||||
NodePermissionsDialogComponent,
|
|
||||||
PermissionsManagerComponent,
|
|
||||||
SearchResultsComponent,
|
|
||||||
SharedLinkViewComponent
|
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: RouteReuseStrategy, useClass: AppRouteReuseStrategy },
|
{ provide: RouteReuseStrategy, useClass: AppRouteReuseStrategy },
|
||||||
@@ -145,11 +126,7 @@ import { AppSidenavModule } from './components/sidenav/sidenav.module';
|
|||||||
ExperimentalGuard,
|
ExperimentalGuard,
|
||||||
ContentApiService
|
ContentApiService
|
||||||
],
|
],
|
||||||
entryComponents: [
|
entryComponents: [LibraryDialogComponent, NodeVersionsDialogComponent],
|
||||||
LibraryDialogComponent,
|
|
||||||
NodeVersionsDialogComponent,
|
|
||||||
NodePermissionsDialogComponent
|
|
||||||
],
|
|
||||||
bootstrap: [AppComponent]
|
bootstrap: [AppComponent]
|
||||||
})
|
})
|
||||||
export class AppModule {}
|
export class AppModule {}
|
||||||
|
@@ -25,26 +25,18 @@
|
|||||||
|
|
||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
import { AuthGuardEcm } from '@alfresco/adf-core';
|
import { AuthGuardEcm } from '@alfresco/adf-core';
|
||||||
import { SharedLinkViewComponent } from './components/shared-link-view/shared-link-view.component';
|
|
||||||
|
|
||||||
import { LayoutComponent } from './components/layout/layout.component';
|
import { LayoutComponent } from './components/layout/layout.component';
|
||||||
|
|
||||||
import { FilesComponent } from './components/files/files.component';
|
import { FilesComponent } from './components/files/files.component';
|
||||||
import { FavoritesComponent } from './components/favorites/favorites.component';
|
|
||||||
import { LibrariesComponent } from './components/libraries/libraries.component';
|
import { LibrariesComponent } from './components/libraries/libraries.component';
|
||||||
import { RecentFilesComponent } from './components/recent-files/recent-files.component';
|
import { GenericErrorComponent } from './components/common/generic-error/generic-error.component';
|
||||||
import { SharedFilesComponent } from './components/shared-files/shared-files.component';
|
|
||||||
import { TrashcanComponent } from './components/trashcan/trashcan.component';
|
|
||||||
|
|
||||||
import { GenericErrorComponent } from './components/generic-error/generic-error.component';
|
|
||||||
import { SearchResultsComponent } from './components/search/search-results/search-results.component';
|
import { SearchResultsComponent } from './components/search/search-results/search-results.component';
|
||||||
|
|
||||||
import { ProfileResolver } from './services/profile.resolver';
|
import { ProfileResolver } from './services/profile.resolver';
|
||||||
|
import { LoginComponent } from './components/login/login.component';
|
||||||
|
|
||||||
export const APP_ROUTES: Routes = [
|
export const APP_ROUTES: Routes = [
|
||||||
{
|
{
|
||||||
path: 'login',
|
path: 'login',
|
||||||
loadChildren: 'src/app/components/login/login.module#AppLoginModule',
|
component: LoginComponent,
|
||||||
data: {
|
data: {
|
||||||
title: 'APP.SIGN_IN'
|
title: 'APP.SIGN_IN'
|
||||||
}
|
}
|
||||||
@@ -52,17 +44,12 @@ export const APP_ROUTES: Routes = [
|
|||||||
{
|
{
|
||||||
path: 'settings',
|
path: 'settings',
|
||||||
loadChildren:
|
loadChildren:
|
||||||
'src/app/components/settings/settings.module#AppSettingsModule',
|
'src/app/components/settings/settings.module#AppSettingsModule'
|
||||||
data: {
|
|
||||||
title: 'Settings'
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'preview/s/:id',
|
path: 'preview/s/:id',
|
||||||
component: SharedLinkViewComponent,
|
loadChildren:
|
||||||
data: {
|
'src/app/components/shared-link-view/shared-link-view.module#AppSharedLinkViewModule'
|
||||||
title: 'APP.PREVIEW.TITLE'
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
@@ -76,16 +63,11 @@ export const APP_ROUTES: Routes = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'favorites',
|
path: 'favorites',
|
||||||
data: {
|
|
||||||
sortingPreferenceKey: 'favorites'
|
|
||||||
},
|
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
component: FavoritesComponent,
|
loadChildren:
|
||||||
data: {
|
'src/app/components/favorites/favorites.module#AppFavoritesModule'
|
||||||
title: 'APP.BROWSE.FAVORITES.TITLE'
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'preview/:nodeId',
|
path: 'preview/:nodeId',
|
||||||
@@ -101,15 +83,13 @@ export const APP_ROUTES: Routes = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'libraries',
|
path: 'libraries',
|
||||||
data: {
|
|
||||||
sortingPreferenceKey: 'libraries'
|
|
||||||
},
|
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
component: LibrariesComponent,
|
component: LibrariesComponent,
|
||||||
data: {
|
data: {
|
||||||
title: 'APP.BROWSE.LIBRARIES.TITLE'
|
title: 'APP.BROWSE.LIBRARIES.TITLE',
|
||||||
|
sortingPreferenceKey: 'libraries'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -183,10 +163,8 @@ export const APP_ROUTES: Routes = [
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
component: RecentFilesComponent,
|
loadChildren:
|
||||||
data: {
|
'src/app/components/recent-files/recent-files.module#AppRecentFilesModule'
|
||||||
title: 'APP.BROWSE.RECENT.TITLE'
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'preview/:nodeId',
|
path: 'preview/:nodeId',
|
||||||
@@ -202,16 +180,11 @@ export const APP_ROUTES: Routes = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'shared',
|
path: 'shared',
|
||||||
data: {
|
|
||||||
sortingPreferenceKey: 'shared-files'
|
|
||||||
},
|
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
component: SharedFilesComponent,
|
loadChildren:
|
||||||
data: {
|
'src/app/components/shared-files/shared-files.module#AppSharedFilesModule'
|
||||||
title: 'APP.BROWSE.SHARED.TITLE'
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'preview/:nodeId',
|
path: 'preview/:nodeId',
|
||||||
@@ -227,18 +200,12 @@ export const APP_ROUTES: Routes = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'trashcan',
|
path: 'trashcan',
|
||||||
component: TrashcanComponent,
|
loadChildren:
|
||||||
data: {
|
'src/app/components/trashcan/trashcan.module#AppTrashcanModule'
|
||||||
title: 'APP.BROWSE.TRASHCAN.TITLE',
|
|
||||||
sortingPreferenceKey: 'trashcan'
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'about',
|
path: 'about',
|
||||||
loadChildren: 'src/app/components/about/about.module#AboutModule',
|
loadChildren: 'src/app/components/about/about.module#AboutModule'
|
||||||
data: {
|
|
||||||
title: 'APP.BROWSE.ABOUT.TITLE'
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'search',
|
path: 'search',
|
||||||
|
@@ -32,7 +32,10 @@ import { CoreModule } from '@alfresco/adf-core';
|
|||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
component: AboutComponent
|
component: AboutComponent,
|
||||||
|
data: {
|
||||||
|
title: 'APP.BROWSE.ABOUT.TITLE'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
37
src/app/components/common/common.module.ts
Normal file
37
src/app/components/common/common.module.ts
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
/*!
|
||||||
|
* @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 { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { GenericErrorComponent } from './generic-error/generic-error.component';
|
||||||
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
|
import { LocationLinkComponent } from './location-link/location-link.component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [CommonModule, CoreModule.forChild()],
|
||||||
|
declarations: [GenericErrorComponent, LocationLinkComponent],
|
||||||
|
exports: [GenericErrorComponent, LocationLinkComponent]
|
||||||
|
})
|
||||||
|
export class AppCommonModule {}
|
@@ -35,9 +35,9 @@ import { PathInfo, MinimalNodeEntity } from 'alfresco-js-api';
|
|||||||
import { Observable, BehaviorSubject, of } from 'rxjs';
|
import { Observable, BehaviorSubject, of } from 'rxjs';
|
||||||
|
|
||||||
import { Store } from '@ngrx/store';
|
import { Store } from '@ngrx/store';
|
||||||
import { AppStore } from '../../store/states/app.state';
|
import { AppStore } from '../../../store/states/app.state';
|
||||||
import { NavigateToParentFolder } from '../../store/actions';
|
import { NavigateToParentFolder } from '../../../store/actions';
|
||||||
import { ContentApiService } from '../../services/content-api.service';
|
import { ContentApiService } from '../../../services/content-api.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'aca-location-link',
|
selector: 'aca-location-link',
|
@@ -30,7 +30,6 @@ import {
|
|||||||
MatIconModule,
|
MatIconModule,
|
||||||
MatButtonModule
|
MatButtonModule
|
||||||
} from '@angular/material';
|
} from '@angular/material';
|
||||||
import { BrowserModule } from '@angular/platform-browser';
|
|
||||||
import { CoreModule } from '@alfresco/adf-core';
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
import { CoreExtensionsModule } from '../../extensions/core.extensions.module';
|
import { CoreExtensionsModule } from '../../extensions/core.extensions.module';
|
||||||
|
|
||||||
@@ -47,7 +46,6 @@ import { OutsideEventDirective } from './context-menu-outside-event.directive';
|
|||||||
MatListModule,
|
MatListModule,
|
||||||
MatIconModule,
|
MatIconModule,
|
||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
BrowserModule,
|
|
||||||
CoreExtensionsModule.forChild(),
|
CoreExtensionsModule.forChild(),
|
||||||
CoreModule.forChild(),
|
CoreModule.forChild(),
|
||||||
ExtensionsModule.forChild()
|
ExtensionsModule.forChild()
|
||||||
|
37
src/app/components/current-user/current-user.module.ts
Normal file
37
src/app/components/current-user/current-user.module.ts
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
/*!
|
||||||
|
* @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 { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
|
import { CurrentUserComponent } from './current-user.component';
|
||||||
|
import { RouterModule } from '@angular/router';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [CommonModule, CoreModule.forChild(), RouterModule],
|
||||||
|
declarations: [CurrentUserComponent],
|
||||||
|
exports: [CurrentUserComponent]
|
||||||
|
})
|
||||||
|
export class AppCurrentUserModule {}
|
64
src/app/components/favorites/favorites.module.ts
Normal file
64
src/app/components/favorites/favorites.module.ts
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
/*!
|
||||||
|
* @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 { NgModule } from '@angular/core';
|
||||||
|
import { FavoritesComponent } from './favorites.component';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
|
import { RouterModule, Routes } from '@angular/router';
|
||||||
|
import { ContentModule } from '@alfresco/adf-content-services';
|
||||||
|
import { DirectivesModule } from '../../directives/directives.module';
|
||||||
|
import { AppCommonModule } from '../common/common.module';
|
||||||
|
import { AppToolbarModule } from '../toolbar/toolbar.module';
|
||||||
|
import { ContextMenuModule } from '../context-menu/context-menu.module';
|
||||||
|
import { AppInfoDrawerModule } from '../info-drawer/info.drawer.module';
|
||||||
|
|
||||||
|
const routes: Routes = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: FavoritesComponent,
|
||||||
|
data: {
|
||||||
|
title: 'APP.BROWSE.FAVORITES.TITLE',
|
||||||
|
sortingPreferenceKey: 'favorites'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
CoreModule.forChild(),
|
||||||
|
RouterModule.forChild(routes),
|
||||||
|
ContentModule.forChild(),
|
||||||
|
DirectivesModule,
|
||||||
|
AppCommonModule,
|
||||||
|
AppToolbarModule,
|
||||||
|
ContextMenuModule.forChild(),
|
||||||
|
AppInfoDrawerModule
|
||||||
|
],
|
||||||
|
declarations: [FavoritesComponent],
|
||||||
|
exports: [FavoritesComponent]
|
||||||
|
})
|
||||||
|
export class AppFavoritesModule {}
|
52
src/app/components/layout/layout.module.ts
Normal file
52
src/app/components/layout/layout.module.ts
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
/*!
|
||||||
|
* @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 { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
|
import { LayoutComponent } from './layout.component';
|
||||||
|
import { SidenavViewsManagerDirective } from './sidenav-views-manager.directive';
|
||||||
|
import { ContentModule } from '@alfresco/adf-content-services';
|
||||||
|
import { RouterModule } from '@angular/router';
|
||||||
|
import { AppSidenavModule } from '../sidenav/sidenav.module';
|
||||||
|
import { AppCommonModule } from '../common/common.module';
|
||||||
|
import { AppCurrentUserModule } from '../current-user/current-user.module';
|
||||||
|
import { AppSearchInputModule } from '../search/search-input.module';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
RouterModule,
|
||||||
|
CoreModule.forChild(),
|
||||||
|
ContentModule.forChild(),
|
||||||
|
AppCommonModule,
|
||||||
|
AppSidenavModule,
|
||||||
|
AppCurrentUserModule,
|
||||||
|
AppSearchInputModule
|
||||||
|
],
|
||||||
|
declarations: [LayoutComponent, SidenavViewsManagerDirective],
|
||||||
|
exports: [LayoutComponent]
|
||||||
|
})
|
||||||
|
export class AppLayoutModule {}
|
@@ -27,17 +27,9 @@ import { NgModule } from '@angular/core';
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { CoreModule } from '@alfresco/adf-core';
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
import { LoginComponent } from './login.component';
|
import { LoginComponent } from './login.component';
|
||||||
import { Routes, RouterModule } from '@angular/router';
|
|
||||||
|
|
||||||
const routes: Routes = [
|
|
||||||
{
|
|
||||||
path: '',
|
|
||||||
component: LoginComponent
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [CommonModule, CoreModule.forChild(), RouterModule.forChild(routes)],
|
imports: [CommonModule, CoreModule.forChild()],
|
||||||
declarations: [LoginComponent]
|
declarations: [LoginComponent]
|
||||||
})
|
})
|
||||||
export class AppLoginModule {}
|
export class AppLoginModule {}
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<header mat-dialog-title>{{'PERMISSIONS.DIALOG.TITLE' | translate}}</header>
|
<header mat-dialog-title>{{'PERMISSIONS.DIALOG.TITLE' | translate}}</header>
|
||||||
<section mat-dialog-content>
|
<section mat-dialog-content>
|
||||||
<aca-permissions-manager [nodeId]="nodeId"></aca-permissions-manager>
|
<app-permission-manager [nodeId]="nodeId"></app-permission-manager>
|
||||||
</section>
|
</section>
|
||||||
<footer mat-dialog-actions>
|
<footer mat-dialog-actions>
|
||||||
<button mat-button color="primary" [mat-dialog-close]="true" cdkFocusInitial>{{'PERMISSIONS.DIALOG.CLOSE' | translate}}</button>
|
<button mat-button color="primary" [mat-dialog-close]="true" cdkFocusInitial>{{'PERMISSIONS.DIALOG.CLOSE' | translate}}</button>
|
@@ -1,4 +1,4 @@
|
|||||||
@mixin aca-permissions-manager-theme($theme) {
|
@mixin app-permission-manager-theme($theme) {
|
||||||
$foreground: map-get($theme, foreground);
|
$foreground: map-get($theme, foreground);
|
||||||
$accent: map-get($theme, accent);
|
$accent: map-get($theme, accent);
|
||||||
|
|
@@ -23,22 +23,22 @@
|
|||||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, Input, OnInit, ViewChild } from '@angular/core';
|
|
||||||
import {
|
import {
|
||||||
NodePermissionDialogService,
|
NodePermissionDialogService,
|
||||||
PermissionListComponent
|
PermissionListComponent
|
||||||
} from '@alfresco/adf-content-services';
|
} from '@alfresco/adf-content-services';
|
||||||
import { MinimalNodeEntryEntity } from 'alfresco-js-api';
|
import { Component, Input, OnInit, ViewChild } from '@angular/core';
|
||||||
import { Store } from '@ngrx/store';
|
|
||||||
import { AppStore } from '../../store/states/app.state';
|
|
||||||
import { SnackbarErrorAction } from '../../store/actions/snackbar.actions';
|
|
||||||
import { NodePermissionsDialogComponent } from '../../dialogs/node-permissions/node-permissions.dialog';
|
|
||||||
import { MatDialog } from '@angular/material';
|
import { MatDialog } from '@angular/material';
|
||||||
import { ContentApiService } from '../../services/content-api.service';
|
import { Store } from '@ngrx/store';
|
||||||
|
import { MinimalNodeEntryEntity } from 'alfresco-js-api';
|
||||||
|
import { ContentApiService } from '../../../services/content-api.service';
|
||||||
|
import { SnackbarErrorAction } from '../../../store/actions/snackbar.actions';
|
||||||
|
import { AppStore } from '../../../store/states/app.state';
|
||||||
|
import { NodePermissionsDialogComponent } from '../permission-dialog/node-permissions.dialog';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'aca-permissions-manager',
|
selector: 'app-permission-manager',
|
||||||
templateUrl: './permissions-manager.component.html'
|
templateUrl: './permission-manager.component.html'
|
||||||
})
|
})
|
||||||
export class PermissionsManagerComponent implements OnInit {
|
export class PermissionsManagerComponent implements OnInit {
|
||||||
@ViewChild('permissionList')
|
@ViewChild('permissionList')
|
39
src/app/components/permissions/permissions.module.ts
Normal file
39
src/app/components/permissions/permissions.module.ts
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
/*!
|
||||||
|
* @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 { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
|
import { ContentModule } from '@alfresco/adf-content-services';
|
||||||
|
import { NodePermissionsDialogComponent } from './permission-dialog/node-permissions.dialog';
|
||||||
|
import { PermissionsManagerComponent } from './permission-manager/permission-manager.component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [CommonModule, CoreModule.forChild(), ContentModule.forChild()],
|
||||||
|
declarations: [PermissionsManagerComponent, NodePermissionsDialogComponent],
|
||||||
|
exports: [PermissionsManagerComponent, NodePermissionsDialogComponent],
|
||||||
|
entryComponents: [NodePermissionsDialogComponent]
|
||||||
|
})
|
||||||
|
export class AppPermissionsModule {}
|
63
src/app/components/recent-files/recent-files.module.ts
Normal file
63
src/app/components/recent-files/recent-files.module.ts
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
/*!
|
||||||
|
* @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 { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
|
import { RouterModule, Routes } from '@angular/router';
|
||||||
|
import { ContentModule } from '@alfresco/adf-content-services';
|
||||||
|
import { DirectivesModule } from '../../directives/directives.module';
|
||||||
|
import { AppCommonModule } from '../common/common.module';
|
||||||
|
import { AppToolbarModule } from '../toolbar/toolbar.module';
|
||||||
|
import { ContextMenuModule } from '../context-menu/context-menu.module';
|
||||||
|
import { RecentFilesComponent } from './recent-files.component';
|
||||||
|
import { AppInfoDrawerModule } from '../info-drawer/info.drawer.module';
|
||||||
|
|
||||||
|
const routes: Routes = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: RecentFilesComponent,
|
||||||
|
data: {
|
||||||
|
title: 'APP.BROWSE.RECENT.TITLE'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
CoreModule.forChild(),
|
||||||
|
RouterModule.forChild(routes),
|
||||||
|
ContentModule.forChild(),
|
||||||
|
DirectivesModule,
|
||||||
|
AppCommonModule,
|
||||||
|
AppToolbarModule,
|
||||||
|
ContextMenuModule.forChild(),
|
||||||
|
AppInfoDrawerModule
|
||||||
|
],
|
||||||
|
declarations: [RecentFilesComponent],
|
||||||
|
exports: [RecentFilesComponent]
|
||||||
|
})
|
||||||
|
export class AppRecentFilesModule {}
|
38
src/app/components/search/search-input.module.ts
Normal file
38
src/app/components/search/search-input.module.ts
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
/*!
|
||||||
|
* @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 { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
|
import { SearchInputComponent } from './search-input/search-input.component';
|
||||||
|
import { SearchInputControlComponent } from './search-input-control/search-input-control.component';
|
||||||
|
import { ContentModule } from '@alfresco/adf-content-services';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [CommonModule, CoreModule.forChild(), ContentModule.forChild()],
|
||||||
|
declarations: [SearchInputComponent, SearchInputControlComponent],
|
||||||
|
exports: [SearchInputComponent, SearchInputControlComponent]
|
||||||
|
})
|
||||||
|
export class AppSearchInputModule {}
|
48
src/app/components/search/search-results.module.ts
Normal file
48
src/app/components/search/search-results.module.ts
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
/*!
|
||||||
|
* @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 { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
|
import { ContentModule } from '@alfresco/adf-content-services';
|
||||||
|
import { SearchResultsComponent } from './search-results/search-results.component';
|
||||||
|
import { SearchResultsRowComponent } from './search-results-row/search-results-row.component';
|
||||||
|
import { AppInfoDrawerModule } from '../info-drawer/info.drawer.module';
|
||||||
|
import { AppToolbarModule } from '../toolbar/toolbar.module';
|
||||||
|
import { AppCommonModule } from '../common/common.module';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
CoreModule.forChild(),
|
||||||
|
ContentModule.forChild(),
|
||||||
|
AppCommonModule,
|
||||||
|
AppInfoDrawerModule,
|
||||||
|
AppToolbarModule
|
||||||
|
],
|
||||||
|
declarations: [SearchResultsComponent, SearchResultsRowComponent],
|
||||||
|
exports: [SearchResultsComponent, SearchResultsRowComponent]
|
||||||
|
})
|
||||||
|
export class AppSearchResultsModule {}
|
@@ -32,7 +32,10 @@ import { CoreModule } from '@alfresco/adf-core';
|
|||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
component: SettingsComponent
|
component: SettingsComponent,
|
||||||
|
data: {
|
||||||
|
title: 'Settings'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
64
src/app/components/shared-files/shared-files.module.ts
Normal file
64
src/app/components/shared-files/shared-files.module.ts
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
/*!
|
||||||
|
* @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 { NgModule } from '@angular/core';
|
||||||
|
import { SharedFilesComponent } from './shared-files.component';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
|
import { RouterModule, Routes } from '@angular/router';
|
||||||
|
import { ContentModule } from '@alfresco/adf-content-services';
|
||||||
|
import { DirectivesModule } from '../../directives/directives.module';
|
||||||
|
import { AppCommonModule } from '../common/common.module';
|
||||||
|
import { AppToolbarModule } from '../toolbar/toolbar.module';
|
||||||
|
import { ContextMenuModule } from '../context-menu/context-menu.module';
|
||||||
|
import { AppInfoDrawerModule } from '../info-drawer/info.drawer.module';
|
||||||
|
|
||||||
|
const routes: Routes = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: SharedFilesComponent,
|
||||||
|
data: {
|
||||||
|
title: 'APP.BROWSE.SHARED.TITLE',
|
||||||
|
sortingPreferenceKey: 'shared-files'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
CoreModule.forChild(),
|
||||||
|
RouterModule.forChild(routes),
|
||||||
|
ContentModule.forChild(),
|
||||||
|
DirectivesModule,
|
||||||
|
AppCommonModule,
|
||||||
|
AppToolbarModule,
|
||||||
|
ContextMenuModule.forChild(),
|
||||||
|
AppInfoDrawerModule
|
||||||
|
],
|
||||||
|
declarations: [SharedFilesComponent],
|
||||||
|
exports: [SharedFilesComponent]
|
||||||
|
})
|
||||||
|
export class AppSharedFilesModule {}
|
@@ -0,0 +1,59 @@
|
|||||||
|
/*!
|
||||||
|
* @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 { NgModule } from '@angular/core';
|
||||||
|
import { SharedLinkViewComponent } from './shared-link-view.component';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
|
import { RouterModule, Routes } from '@angular/router';
|
||||||
|
import { DirectivesModule } from '../../directives/directives.module';
|
||||||
|
import { AppCommonModule } from '../common/common.module';
|
||||||
|
import { AppToolbarModule } from '../toolbar/toolbar.module';
|
||||||
|
import { AppInfoDrawerModule } from '../info-drawer/info.drawer.module';
|
||||||
|
|
||||||
|
const routes: Routes = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: SharedLinkViewComponent,
|
||||||
|
data: {
|
||||||
|
title: 'APP.PREVIEW.TITLE'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
CoreModule.forChild(),
|
||||||
|
RouterModule.forChild(routes),
|
||||||
|
DirectivesModule,
|
||||||
|
AppCommonModule,
|
||||||
|
AppToolbarModule,
|
||||||
|
AppInfoDrawerModule
|
||||||
|
],
|
||||||
|
declarations: [SharedLinkViewComponent],
|
||||||
|
exports: [SharedLinkViewComponent]
|
||||||
|
})
|
||||||
|
export class AppSharedLinkViewModule {}
|
62
src/app/components/trashcan/trashcan.module.ts
Normal file
62
src/app/components/trashcan/trashcan.module.ts
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
/*!
|
||||||
|
* @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 { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
|
import { TrashcanComponent } from './trashcan.component';
|
||||||
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
import { ContentModule } from '@alfresco/adf-content-services';
|
||||||
|
import { AppCommonModule } from '../common/common.module';
|
||||||
|
import { AppToolbarModule } from '../toolbar/toolbar.module';
|
||||||
|
import { DirectivesModule } from '../../directives/directives.module';
|
||||||
|
import { ContextMenuModule } from '../context-menu/context-menu.module';
|
||||||
|
|
||||||
|
const routes: Routes = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: TrashcanComponent,
|
||||||
|
data: {
|
||||||
|
title: 'APP.BROWSE.TRASHCAN.TITLE',
|
||||||
|
sortingPreferenceKey: 'trashcan'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
CoreModule.forChild(),
|
||||||
|
RouterModule.forChild(routes),
|
||||||
|
ContentModule.forChild(),
|
||||||
|
DirectivesModule,
|
||||||
|
AppCommonModule,
|
||||||
|
AppToolbarModule,
|
||||||
|
ContextMenuModule.forChild()
|
||||||
|
],
|
||||||
|
declarations: [TrashcanComponent],
|
||||||
|
exports: [TrashcanComponent]
|
||||||
|
})
|
||||||
|
export class AppTrashcanModule {}
|
@@ -27,7 +27,6 @@ import { AuthGuardEcm, CoreModule } from '@alfresco/adf-core';
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { APP_INITIALIZER, ModuleWithProviders, NgModule } from '@angular/core';
|
import { APP_INITIALIZER, ModuleWithProviders, NgModule } from '@angular/core';
|
||||||
import { LayoutComponent } from '../components/layout/layout.component';
|
import { LayoutComponent } from '../components/layout/layout.component';
|
||||||
import { TrashcanComponent } from '../components/trashcan/trashcan.component';
|
|
||||||
import * as app from './evaluators/app.evaluators';
|
import * as app from './evaluators/app.evaluators';
|
||||||
import * as nav from './evaluators/navigation.evaluators';
|
import * as nav from './evaluators/navigation.evaluators';
|
||||||
import { AppExtensionService } from './extension.service';
|
import { AppExtensionService } from './extension.service';
|
||||||
@@ -70,7 +69,6 @@ export class CoreExtensionsModule {
|
|||||||
constructor(extensions: ExtensionService) {
|
constructor(extensions: ExtensionService) {
|
||||||
extensions.setComponents({
|
extensions.setComponents({
|
||||||
'app.layout.main': LayoutComponent,
|
'app.layout.main': LayoutComponent,
|
||||||
'app.components.trashcan': TrashcanComponent,
|
|
||||||
'app.components.tabs.metadata': MetadataTabComponent,
|
'app.components.tabs.metadata': MetadataTabComponent,
|
||||||
'app.components.tabs.comments': CommentsTabComponent,
|
'app.components.tabs.comments': CommentsTabComponent,
|
||||||
'app.components.tabs.versions': VersionsTabComponent,
|
'app.components.tabs.versions': VersionsTabComponent,
|
||||||
|
@@ -58,9 +58,9 @@ import { ContentApiService } from './content-api.service';
|
|||||||
import { sharedUrl } from '../store/selectors/app.selectors';
|
import { sharedUrl } from '../store/selectors/app.selectors';
|
||||||
import { NodeActionsService } from './node-actions.service';
|
import { NodeActionsService } from './node-actions.service';
|
||||||
import { TranslationService } from '@alfresco/adf-core';
|
import { TranslationService } from '@alfresco/adf-core';
|
||||||
import { NodePermissionsDialogComponent } from '../dialogs/node-permissions/node-permissions.dialog';
|
|
||||||
import { NodeVersionsDialogComponent } from '../dialogs/node-versions/node-versions.dialog';
|
import { NodeVersionsDialogComponent } from '../dialogs/node-versions/node-versions.dialog';
|
||||||
import { take, map, tap, mergeMap, catchError } from 'rxjs/operators';
|
import { take, map, tap, mergeMap, catchError } from 'rxjs/operators';
|
||||||
|
import { NodePermissionsDialogComponent } from '../components/permissions/permission-dialog/node-permissions.dialog';
|
||||||
|
|
||||||
interface RestoredNode {
|
interface RestoredNode {
|
||||||
status: number;
|
status: number;
|
||||||
|
@@ -3,11 +3,11 @@
|
|||||||
|
|
||||||
@import '../components/sidenav/sidenav.component.theme';
|
@import '../components/sidenav/sidenav.component.theme';
|
||||||
@import '../components/about/about.component.theme';
|
@import '../components/about/about.component.theme';
|
||||||
@import '../components/generic-error/generic-error.component.theme';
|
@import '../components/common/generic-error/generic-error.component.theme';
|
||||||
@import '../components/search/search-input/search-input.component.theme';
|
@import '../components/search/search-input/search-input.component.theme';
|
||||||
@import '../components/settings/settings.component.theme';
|
@import '../components/settings/settings.component.theme';
|
||||||
@import '../components/current-user/current-user.component.theme';
|
@import '../components/current-user/current-user.component.theme';
|
||||||
@import '../components/permission-manager/permissions-manager.component.theme';
|
@import '../components/permissions/permission-manager/permission-manager.component.theme';
|
||||||
@import '../components/context-menu/context-menu.component.theme';
|
@import '../components/context-menu/context-menu.component.theme';
|
||||||
@import '../dialogs/node-versions/node-versions.dialog.theme';
|
@import '../dialogs/node-versions/node-versions.dialog.theme';
|
||||||
|
|
||||||
@@ -87,7 +87,7 @@ $custom-theme: mat-light-theme($custom-theme-primary, $custom-theme-accent);
|
|||||||
@include aca-layout-theme($theme);
|
@include aca-layout-theme($theme);
|
||||||
@include aca-search-input-theme($theme);
|
@include aca-search-input-theme($theme);
|
||||||
@include aca-generic-error-theme($theme);
|
@include aca-generic-error-theme($theme);
|
||||||
@include aca-permissions-manager-theme($theme);
|
@include app-permission-manager-theme($theme);
|
||||||
@include aca-node-versions-dialog-theme($theme);
|
@include aca-node-versions-dialog-theme($theme);
|
||||||
@include aca-settings-theme($theme);
|
@include aca-settings-theme($theme);
|
||||||
@include snackbar-theme($theme);
|
@include snackbar-theme($theme);
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -1,42 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "../../../extension.schema.json",
|
|
||||||
"$version": "1.0.0",
|
|
||||||
"$name": "plugin2",
|
|
||||||
"$description": "demo plugin",
|
|
||||||
|
|
||||||
"routes": [
|
|
||||||
{
|
|
||||||
"id": "plugin2.routes.about",
|
|
||||||
"path": "ext/bin",
|
|
||||||
"component": "app.components.trashcan",
|
|
||||||
"data": {
|
|
||||||
"title": "Custom Trashcan"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
|
|
||||||
"features": {
|
|
||||||
"navbar": [
|
|
||||||
{
|
|
||||||
"id": "plugin2.navbar.group1",
|
|
||||||
"disabled": true,
|
|
||||||
"items": [
|
|
||||||
{
|
|
||||||
"id": "plugin2.navbar.group1.link1",
|
|
||||||
"icon": "build",
|
|
||||||
"title": "Trashcan (native)",
|
|
||||||
"description": "Uses native application route",
|
|
||||||
"route": "trashcan"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "plugin2.navbar.group1.link2",
|
|
||||||
"icon": "build",
|
|
||||||
"title": "Trashcan (custom)",
|
|
||||||
"description": "Uses custom defined route",
|
|
||||||
"route": "plugin2.routes.about"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user