mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-5308] reduce various modules by switching to standalone (#3248)
* crate-form-template dialog * remove unused module * viewer profile component * trashcan component * remove test dependency on global material module * remove unused test imports * break CoreModule dependency * login component * remove app material module * remove languages from the config as not needed
This commit is contained in:
@@ -65,77 +65,6 @@
|
||||
"preserveState": true,
|
||||
"expandedSidenav": true
|
||||
},
|
||||
"languages": [
|
||||
{
|
||||
"key": "de",
|
||||
"label": "Deutsch"
|
||||
},
|
||||
{
|
||||
"key": "en",
|
||||
"label": "English"
|
||||
},
|
||||
{
|
||||
"key": "es",
|
||||
"label": "Español"
|
||||
},
|
||||
{
|
||||
"key": "fr",
|
||||
"label": "Français"
|
||||
},
|
||||
{
|
||||
"key": "it",
|
||||
"label": "Italiano"
|
||||
},
|
||||
{
|
||||
"key": "ja",
|
||||
"label": "日本語"
|
||||
},
|
||||
{
|
||||
"key": "nb",
|
||||
"label": "Bokmål"
|
||||
},
|
||||
{
|
||||
"key": "nl",
|
||||
"label": "Nederlands"
|
||||
},
|
||||
{
|
||||
"key": "pt-BR",
|
||||
"label": "Português (Brasil)"
|
||||
},
|
||||
{
|
||||
"key": "ru",
|
||||
"label": "Русский"
|
||||
},
|
||||
{
|
||||
"key": "zh-CN",
|
||||
"label": "中文简体"
|
||||
},
|
||||
{
|
||||
"key": "cs",
|
||||
"label": "Čeština"
|
||||
},
|
||||
{
|
||||
"key": "da",
|
||||
"label": "Dansk"
|
||||
},
|
||||
{
|
||||
"key": "fi",
|
||||
"label": "Suomi"
|
||||
},
|
||||
{
|
||||
"key": "pl",
|
||||
"label": "Polski"
|
||||
},
|
||||
{
|
||||
"key": "sv",
|
||||
"label": "Svenska"
|
||||
},
|
||||
{
|
||||
"key": "ar",
|
||||
"label": "العربية",
|
||||
"direction": "rtl"
|
||||
}
|
||||
],
|
||||
"mimeTypes": [
|
||||
{
|
||||
"value": "video/3gpp",
|
||||
|
@@ -64,7 +64,7 @@ import { STORE_INITIAL_APP_DATA } from '@alfresco/aca-shared/store';
|
||||
import { ShellModule, SHELL_APP_SERVICE, SHELL_AUTH_TOKEN } from '@alfresco/adf-core/shell';
|
||||
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
|
||||
import { APP_ROUTES } from './app.routes';
|
||||
import { AppLoginModule } from './components/login/login.module';
|
||||
import { LoginComponent } from './components/login/login.component';
|
||||
|
||||
registerLocaleData(localeFr);
|
||||
registerLocaleData(localeDe);
|
||||
@@ -90,7 +90,7 @@ registerLocaleData(localeSv);
|
||||
CoreModule.forRoot(),
|
||||
SharedModule,
|
||||
CoreExtensionsModule.forRoot(),
|
||||
AppLoginModule,
|
||||
LoginComponent,
|
||||
environment.e2e ? NoopAnimationsModule : BrowserAnimationsModule,
|
||||
!environment.production ? StoreDevtoolsModule.instrument({ maxAge: 25 }) : [],
|
||||
RouterModule.forRoot(APP_ROUTES, {
|
||||
|
@@ -22,9 +22,13 @@
|
||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { AppConfigModule, LoginModule } from '@alfresco/adf-core';
|
||||
import { Component } from '@angular/core';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
imports: [LoginModule, AppConfigModule, TranslateModule],
|
||||
templateUrl: './login.component.html'
|
||||
})
|
||||
export class LoginComponent {}
|
||||
|
@@ -1,36 +0,0 @@
|
||||
/*!
|
||||
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Alfresco Example Content Application
|
||||
*
|
||||
* 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
|
||||
* from Hyland Software. 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 { LoginComponent } from './login.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
@NgModule({
|
||||
imports: [CommonModule, CoreModule.forChild(), TranslateModule.forChild()],
|
||||
exports: [LoginComponent],
|
||||
declarations: [LoginComponent]
|
||||
})
|
||||
export class AppLoginModule {}
|
@@ -1,45 +0,0 @@
|
||||
/*!
|
||||
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Alfresco Example Content Application
|
||||
*
|
||||
* 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
|
||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { NgModule } from '@angular/core';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatDialogModule, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog';
|
||||
import { MatInputModule } from '@angular/material/input';
|
||||
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
|
||||
@NgModule({
|
||||
imports: [MatMenuModule, MatIconModule, MatButtonModule, MatDialogModule, MatInputModule, MatSnackBarModule, MatProgressBarModule, MatCardModule],
|
||||
exports: [MatMenuModule, MatIconModule, MatButtonModule, MatDialogModule, MatInputModule, MatSnackBarModule, MatProgressBarModule, MatCardModule],
|
||||
providers: [
|
||||
{
|
||||
provide: MAT_DIALOG_DEFAULT_OPTIONS,
|
||||
useValue: { closeOnNavigation: true, hasBackdrop: true, autoFocus: true }
|
||||
}
|
||||
]
|
||||
})
|
||||
export class MaterialModule {}
|
Reference in New Issue
Block a user