migrate standalone pipes
This commit is contained in:
@@ -2,8 +2,8 @@ import {CUSTOM_ELEMENTS_SCHEMA, NgModule} from '@angular/core';
|
|||||||
import {CommonModule} from '@angular/common';
|
import {CommonModule} from '@angular/common';
|
||||||
import {GuestComponent} from './guest.component';
|
import {GuestComponent} from './guest.component';
|
||||||
import {RouterModule} from '@angular/router';
|
import {RouterModule} from '@angular/router';
|
||||||
import {ShowTypeTranslaterModule} from '../../widget-modules/pipes/show-type-translater/show-type-translater.module';
|
|
||||||
import {SongTextComponent} from '../../widget-modules/components/song-text/song-text.component';
|
import {SongTextComponent} from '../../widget-modules/components/song-text/song-text.component';
|
||||||
|
import {ShowTypePipe} from '../../widget-modules/pipes/show-type-translater/show-type.pipe';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [GuestComponent],
|
declarations: [GuestComponent],
|
||||||
@@ -16,7 +16,7 @@ import {SongTextComponent} from '../../widget-modules/components/song-text/song-
|
|||||||
},
|
},
|
||||||
]),
|
]),
|
||||||
SongTextComponent,
|
SongTextComponent,
|
||||||
ShowTypeTranslaterModule,
|
ShowTypePipe,
|
||||||
],
|
],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -7,8 +7,6 @@ import {RemoteComponent} from './remote/remote.component';
|
|||||||
import {CardModule} from '../../widget-modules/components/card/card.module';
|
import {CardModule} from '../../widget-modules/components/card/card.module';
|
||||||
import {MatFormFieldModule} from '@angular/material/form-field';
|
import {MatFormFieldModule} from '@angular/material/form-field';
|
||||||
import {MatSelectModule} from '@angular/material/select';
|
import {MatSelectModule} from '@angular/material/select';
|
||||||
import {ShowTypeTranslaterModule} from '../../widget-modules/pipes/show-type-translater/show-type-translater.module';
|
|
||||||
import {SectionTypeTranslatorModule} from '../../widget-modules/pipes/section-type-translator/section-type-translator.module';
|
|
||||||
import {LegalComponent} from './monitor/legal/legal.component';
|
import {LegalComponent} from './monitor/legal/legal.component';
|
||||||
import {MatButtonModule} from '@angular/material/button';
|
import {MatButtonModule} from '@angular/material/button';
|
||||||
import {FontAwesomeModule} from '@fortawesome/angular-fontawesome';
|
import {FontAwesomeModule} from '@fortawesome/angular-fontawesome';
|
||||||
@@ -20,6 +18,8 @@ import {MatInputModule} from '@angular/material/input';
|
|||||||
import {UserNameModule} from '../../services/user/user-name/user-name.module';
|
import {UserNameModule} from '../../services/user/user-name/user-name.module';
|
||||||
import {SongTextComponent} from '../../widget-modules/components/song-text/song-text.component';
|
import {SongTextComponent} from '../../widget-modules/components/song-text/song-text.component';
|
||||||
import {AddSongComponent} from '../../widget-modules/components/add-song/add-song.component';
|
import {AddSongComponent} from '../../widget-modules/components/add-song/add-song.component';
|
||||||
|
import {SectionTypePipe} from '../../widget-modules/pipes/section-type-translator/section-type.pipe';
|
||||||
|
import {ShowTypePipe} from '../../widget-modules/pipes/show-type-translater/show-type.pipe';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [MonitorComponent, RemoteComponent, LegalComponent, LogoComponent, SelectComponent],
|
declarations: [MonitorComponent, RemoteComponent, LegalComponent, LogoComponent, SelectComponent],
|
||||||
@@ -30,8 +30,8 @@ import {AddSongComponent} from '../../widget-modules/components/add-song/add-son
|
|||||||
CardModule,
|
CardModule,
|
||||||
MatFormFieldModule,
|
MatFormFieldModule,
|
||||||
MatSelectModule,
|
MatSelectModule,
|
||||||
ShowTypeTranslaterModule,
|
ShowTypePipe,
|
||||||
SectionTypeTranslatorModule,
|
SectionTypePipe,
|
||||||
SongTextComponent,
|
SongTextComponent,
|
||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
FontAwesomeModule,
|
FontAwesomeModule,
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ export class ShowComponent implements OnInit, OnDestroy {
|
|||||||
return show.order.map(_ => list.filter(f => f.id === _)[0]);
|
return show.order.map(_ => list.filter(f => f.id === _)[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public trackBy = (_: number, show: ShowSong) => show.id;
|
public trackBy = (_: number, show: ShowSong) => show?.id;
|
||||||
|
|
||||||
public async onChange(showId: string) {
|
public async onChange(showId: string) {
|
||||||
await this.router.navigateByUrl('/shows/' + showId + '/edit');
|
await this.router.navigateByUrl('/shows/' + showId + '/edit');
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ import {ButtonRowModule} from '../../widget-modules/components/button-row/button
|
|||||||
import {MatButtonModule} from '@angular/material/button';
|
import {MatButtonModule} from '@angular/material/button';
|
||||||
import {MatDatepickerModule} from '@angular/material/datepicker';
|
import {MatDatepickerModule} from '@angular/material/datepicker';
|
||||||
import {MatSelectModule} from '@angular/material/select';
|
import {MatSelectModule} from '@angular/material/select';
|
||||||
import {ShowTypeTranslaterModule} from '../../widget-modules/pipes/show-type-translater/show-type-translater.module';
|
|
||||||
import {MatNativeDateModule} from '@angular/material/core';
|
import {MatNativeDateModule} from '@angular/material/core';
|
||||||
import {ShowComponent} from './show/show.component';
|
import {ShowComponent} from './show/show.component';
|
||||||
import {SongComponent} from './show/song/song.component';
|
import {SongComponent} from './show/song/song.component';
|
||||||
@@ -28,7 +27,6 @@ import {UserNameModule} from '../../services/user/user-name/user-name.module';
|
|||||||
import {MatMenuModule} from '@angular/material/menu';
|
import {MatMenuModule} from '@angular/material/menu';
|
||||||
import {DragDropModule} from '@angular/cdk/drag-drop';
|
import {DragDropModule} from '@angular/cdk/drag-drop';
|
||||||
import {RoleModule} from '../../services/user/role.module';
|
import {RoleModule} from '../../services/user/role.module';
|
||||||
import {SortByModule} from '../../widget-modules/pipes/sort-by/sort-by.module';
|
|
||||||
import {MatTooltipModule} from '@angular/material/tooltip';
|
import {MatTooltipModule} from '@angular/material/tooltip';
|
||||||
import {FilterComponent} from './list/filter/filter.component';
|
import {FilterComponent} from './list/filter/filter.component';
|
||||||
import {EditComponent} from './edit/edit.component';
|
import {EditComponent} from './edit/edit.component';
|
||||||
@@ -36,6 +34,8 @@ import {ArchiveDialogComponent} from './dialog/archive-dialog/archive-dialog.com
|
|||||||
import {MatDialogModule} from '@angular/material/dialog';
|
import {MatDialogModule} from '@angular/material/dialog';
|
||||||
import {SongTextComponent} from '../../widget-modules/components/song-text/song-text.component';
|
import {SongTextComponent} from '../../widget-modules/components/song-text/song-text.component';
|
||||||
import {AddSongComponent} from '../../widget-modules/components/add-song/add-song.component';
|
import {AddSongComponent} from '../../widget-modules/components/add-song/add-song.component';
|
||||||
|
import {ShowTypePipe} from '../../widget-modules/pipes/show-type-translater/show-type.pipe';
|
||||||
|
import {SortByPipe} from '../../widget-modules/pipes/sort-by/sort-by.pipe';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [NewComponent, ListComponent, ListItemComponent, ShowComponent, SongComponent, FilterComponent, EditComponent, ArchiveDialogComponent],
|
declarations: [NewComponent, ListComponent, ListItemComponent, ShowComponent, SongComponent, FilterComponent, EditComponent, ArchiveDialogComponent],
|
||||||
@@ -53,7 +53,7 @@ import {AddSongComponent} from '../../widget-modules/components/add-song/add-son
|
|||||||
MatDatepickerModule,
|
MatDatepickerModule,
|
||||||
MatNativeDateModule,
|
MatNativeDateModule,
|
||||||
MatSelectModule,
|
MatSelectModule,
|
||||||
ShowTypeTranslaterModule,
|
ShowTypePipe,
|
||||||
FontAwesomeModule,
|
FontAwesomeModule,
|
||||||
MenuButtonModule,
|
MenuButtonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
@@ -66,7 +66,7 @@ import {AddSongComponent} from '../../widget-modules/components/add-song/add-son
|
|||||||
MatMenuModule,
|
MatMenuModule,
|
||||||
DragDropModule,
|
DragDropModule,
|
||||||
RoleModule,
|
RoleModule,
|
||||||
SortByModule,
|
SortByPipe,
|
||||||
MatTooltipModule,
|
MatTooltipModule,
|
||||||
MatDialogModule,
|
MatDialogModule,
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -3,20 +3,18 @@ import {CommonModule} from '@angular/common';
|
|||||||
import {SongListComponent} from './song-list.component';
|
import {SongListComponent} from './song-list.component';
|
||||||
import {CardModule} from '../../../widget-modules/components/card/card.module';
|
import {CardModule} from '../../../widget-modules/components/card/card.module';
|
||||||
import {RouterModule} from '@angular/router';
|
import {RouterModule} from '@angular/router';
|
||||||
import {
|
|
||||||
LegalTypeTranslatorModule,
|
|
||||||
} from '../../../widget-modules/pipes/legal-type-translator/legal-type-translator.module';
|
|
||||||
import {ListHeaderModule} from '../../../widget-modules/components/list-header/list-header.module';
|
import {ListHeaderModule} from '../../../widget-modules/components/list-header/list-header.module';
|
||||||
import {MatFormFieldModule} from '@angular/material/form-field';
|
import {MatFormFieldModule} from '@angular/material/form-field';
|
||||||
import {MatInputModule} from '@angular/material/input';
|
import {MatInputModule} from '@angular/material/input';
|
||||||
import {FilterComponent} from './filter/filter.component';
|
import {FilterComponent} from './filter/filter.component';
|
||||||
import {ReactiveFormsModule} from '@angular/forms';
|
import {ReactiveFormsModule} from '@angular/forms';
|
||||||
import {MatSelectModule} from '@angular/material/select';
|
import {MatSelectModule} from '@angular/material/select';
|
||||||
import {SongTypeTranslaterModule} from '../../../widget-modules/pipes/song-type-translater/song-type-translater.module';
|
|
||||||
import {FontAwesomeModule} from '@fortawesome/angular-fontawesome';
|
import {FontAwesomeModule} from '@fortawesome/angular-fontawesome';
|
||||||
import {MatTooltipModule} from '@angular/material/tooltip';
|
import {MatTooltipModule} from '@angular/material/tooltip';
|
||||||
import {RoleModule} from '../../../services/user/role.module';
|
import {RoleModule} from '../../../services/user/role.module';
|
||||||
import {KeyTranslatorModule} from '../../../widget-modules/pipes/key-translator/key-translator.module';
|
import {KeyPipe} from '../../../widget-modules/pipes/key-translator/key.pipe';
|
||||||
|
import {LegalTypePipe} from '../../../widget-modules/pipes/legal-type-translator/legal-type.pipe';
|
||||||
|
import {SongTypePipe} from '../../../widget-modules/pipes/song-type-translater/song-type.pipe';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [SongListComponent, FilterComponent],
|
declarations: [SongListComponent, FilterComponent],
|
||||||
@@ -26,18 +24,17 @@ import {KeyTranslatorModule} from '../../../widget-modules/pipes/key-translator/
|
|||||||
RouterModule,
|
RouterModule,
|
||||||
|
|
||||||
CardModule,
|
CardModule,
|
||||||
LegalTypeTranslatorModule,
|
LegalTypePipe,
|
||||||
ListHeaderModule,
|
ListHeaderModule,
|
||||||
MatFormFieldModule,
|
MatFormFieldModule,
|
||||||
MatInputModule,
|
MatInputModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
MatSelectModule,
|
MatSelectModule,
|
||||||
SongTypeTranslaterModule,
|
|
||||||
FontAwesomeModule,
|
FontAwesomeModule,
|
||||||
MatTooltipModule,
|
MatTooltipModule,
|
||||||
RoleModule,
|
RoleModule,
|
||||||
KeyTranslatorModule,
|
KeyPipe,
|
||||||
|
SongTypePipe,
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class SongListModule {
|
export class SongListModule {}
|
||||||
}
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import {NgModule} from '@angular/core';
|
|||||||
import {CommonModule} from '@angular/common';
|
import {CommonModule} from '@angular/common';
|
||||||
import {EditComponent} from './edit.component';
|
import {EditComponent} from './edit.component';
|
||||||
import {CardModule} from '../../../../widget-modules/components/card/card.module';
|
import {CardModule} from '../../../../widget-modules/components/card/card.module';
|
||||||
import {SongTypeTranslaterModule} from '../../../../widget-modules/pipes/song-type-translater/song-type-translater.module';
|
|
||||||
import {ReactiveFormsModule} from '@angular/forms';
|
import {ReactiveFormsModule} from '@angular/forms';
|
||||||
import {MatInputModule} from '@angular/material/input';
|
import {MatInputModule} from '@angular/material/input';
|
||||||
import {MatCheckboxModule} from '@angular/material/checkbox';
|
import {MatCheckboxModule} from '@angular/material/checkbox';
|
||||||
@@ -14,18 +13,19 @@ import {EditSongComponent} from './edit-song/edit-song.component';
|
|||||||
import {EditFileComponent} from './edit-file/edit-file.component';
|
import {EditFileComponent} from './edit-file/edit-file.component';
|
||||||
import {MatIconModule} from '@angular/material/icon';
|
import {MatIconModule} from '@angular/material/icon';
|
||||||
import {FileComponent} from './edit-file/file/file.component';
|
import {FileComponent} from './edit-file/file/file.component';
|
||||||
import {LegalOwnerTranslatorModule} from '../../../../widget-modules/pipes/legal-owner-translator/legal-owner-translator.module';
|
|
||||||
import {LegalTypeTranslatorModule} from '../../../../widget-modules/pipes/legal-type-translator/legal-type-translator.module';
|
|
||||||
import {KeyTranslatorModule} from '../../../../widget-modules/pipes/key-translator/key-translator.module';
|
|
||||||
import {MatChipsModule} from '@angular/material/chips';
|
import {MatChipsModule} from '@angular/material/chips';
|
||||||
import {FontAwesomeModule} from '@fortawesome/angular-fontawesome';
|
import {FontAwesomeModule} from '@fortawesome/angular-fontawesome';
|
||||||
import {StatusTranslaterModule} from '../../../../widget-modules/pipes/status-translater/status-translater.module';
|
|
||||||
import {ButtonModule} from '../../../../widget-modules/components/button/button.module';
|
import {ButtonModule} from '../../../../widget-modules/components/button/button.module';
|
||||||
import {MatTooltipModule} from '@angular/material/tooltip';
|
import {MatTooltipModule} from '@angular/material/tooltip';
|
||||||
import {SaveDialogComponent} from './edit-song/save-dialog/save-dialog.component';
|
import {SaveDialogComponent} from './edit-song/save-dialog/save-dialog.component';
|
||||||
import {MatDialogModule} from '@angular/material/dialog';
|
import {MatDialogModule} from '@angular/material/dialog';
|
||||||
import {HistoryComponent} from './history/history.component';
|
import {HistoryComponent} from './history/history.component';
|
||||||
import {SongTextComponent} from '../../../../widget-modules/components/song-text/song-text.component';
|
import {SongTextComponent} from '../../../../widget-modules/components/song-text/song-text.component';
|
||||||
|
import {KeyPipe} from '../../../../widget-modules/pipes/key-translator/key.pipe';
|
||||||
|
import {LegalOwnerPipe} from '../../../../widget-modules/pipes/legal-owner-translator/legal-owner.pipe';
|
||||||
|
import {LegalTypePipe} from '../../../../widget-modules/pipes/legal-type-translator/legal-type.pipe';
|
||||||
|
import {SongTypePipe} from '../../../../widget-modules/pipes/song-type-translater/song-type.pipe';
|
||||||
|
import {StatusPipe} from '../../../../widget-modules/pipes/status-translater/status.pipe';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [EditComponent, EditSongComponent, EditFileComponent, FileComponent, SaveDialogComponent, HistoryComponent],
|
declarations: [EditComponent, EditSongComponent, EditFileComponent, FileComponent, SaveDialogComponent, HistoryComponent],
|
||||||
@@ -34,7 +34,7 @@ import {SongTextComponent} from '../../../../widget-modules/components/song-text
|
|||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
CardModule,
|
CardModule,
|
||||||
SongTypeTranslaterModule,
|
SongTypePipe,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
RouterModule,
|
RouterModule,
|
||||||
|
|
||||||
@@ -45,12 +45,12 @@ import {SongTextComponent} from '../../../../widget-modules/components/song-text
|
|||||||
ButtonRowModule,
|
ButtonRowModule,
|
||||||
|
|
||||||
MatIconModule,
|
MatIconModule,
|
||||||
LegalOwnerTranslatorModule,
|
LegalOwnerPipe,
|
||||||
LegalTypeTranslatorModule,
|
LegalTypePipe,
|
||||||
KeyTranslatorModule,
|
KeyPipe,
|
||||||
MatChipsModule,
|
MatChipsModule,
|
||||||
FontAwesomeModule,
|
FontAwesomeModule,
|
||||||
StatusTranslaterModule,
|
StatusPipe,
|
||||||
ButtonModule,
|
ButtonModule,
|
||||||
MatTooltipModule,
|
MatTooltipModule,
|
||||||
MatDialogModule,
|
MatDialogModule,
|
||||||
|
|||||||
@@ -2,19 +2,19 @@ import {NgModule} from '@angular/core';
|
|||||||
import {CommonModule} from '@angular/common';
|
import {CommonModule} from '@angular/common';
|
||||||
import {SongComponent} from './song.component';
|
import {SongComponent} from './song.component';
|
||||||
import {CardModule} from '../../../widget-modules/components/card/card.module';
|
import {CardModule} from '../../../widget-modules/components/card/card.module';
|
||||||
import {SongTypeTranslaterModule} from '../../../widget-modules/pipes/song-type-translater/song-type-translater.module';
|
|
||||||
import {MatButtonModule} from '@angular/material/button';
|
import {MatButtonModule} from '@angular/material/button';
|
||||||
import {ButtonRowModule} from '../../../widget-modules/components/button-row/button-row.module';
|
import {ButtonRowModule} from '../../../widget-modules/components/button-row/button-row.module';
|
||||||
import {RouterModule} from '@angular/router';
|
import {RouterModule} from '@angular/router';
|
||||||
import {LegalOwnerTranslatorModule} from '../../../widget-modules/pipes/legal-owner-translator/legal-owner-translator.module';
|
|
||||||
import {MatChipsModule} from '@angular/material/chips';
|
import {MatChipsModule} from '@angular/material/chips';
|
||||||
import {RoleModule} from '../../../services/user/role.module';
|
import {RoleModule} from '../../../services/user/role.module';
|
||||||
import {StatusTranslaterModule} from '../../../widget-modules/pipes/status-translater/status-translater.module';
|
|
||||||
import {ButtonModule} from '../../../widget-modules/components/button/button.module';
|
import {ButtonModule} from '../../../widget-modules/components/button/button.module';
|
||||||
import {FileComponent} from './file/file.component';
|
import {FileComponent} from './file/file.component';
|
||||||
import {MatMenuModule} from '@angular/material/menu';
|
import {MatMenuModule} from '@angular/material/menu';
|
||||||
import {ShowTypeTranslaterModule} from '../../../widget-modules/pipes/show-type-translater/show-type-translater.module';
|
|
||||||
import {SongTextComponent} from '../../../widget-modules/components/song-text/song-text.component';
|
import {SongTextComponent} from '../../../widget-modules/components/song-text/song-text.component';
|
||||||
|
import {LegalOwnerPipe} from '../../../widget-modules/pipes/legal-owner-translator/legal-owner.pipe';
|
||||||
|
import {ShowTypePipe} from '../../../widget-modules/pipes/show-type-translater/show-type.pipe';
|
||||||
|
import {SongTypePipe} from '../../../widget-modules/pipes/song-type-translater/song-type.pipe';
|
||||||
|
import {StatusPipe} from '../../../widget-modules/pipes/status-translater/status.pipe';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [SongComponent, FileComponent],
|
declarations: [SongComponent, FileComponent],
|
||||||
@@ -24,17 +24,17 @@ import {SongTextComponent} from '../../../widget-modules/components/song-text/so
|
|||||||
CardModule,
|
CardModule,
|
||||||
RouterModule,
|
RouterModule,
|
||||||
|
|
||||||
SongTypeTranslaterModule,
|
SongTypePipe,
|
||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
ButtonRowModule,
|
ButtonRowModule,
|
||||||
LegalOwnerTranslatorModule,
|
LegalOwnerPipe,
|
||||||
SongTextComponent,
|
SongTextComponent,
|
||||||
MatChipsModule,
|
MatChipsModule,
|
||||||
RoleModule,
|
RoleModule,
|
||||||
StatusTranslaterModule,
|
StatusPipe,
|
||||||
ButtonModule,
|
ButtonModule,
|
||||||
MatMenuModule,
|
MatMenuModule,
|
||||||
ShowTypeTranslaterModule,
|
ShowTypePipe,
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class SongModule {}
|
export class SongModule {}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import {NewComponent} from './new/new.component';
|
|||||||
import {ButtonModule} from '../../widget-modules/components/button/button.module';
|
import {ButtonModule} from '../../widget-modules/components/button/button.module';
|
||||||
import {LogoModule} from '../../widget-modules/components/logo/logo.module';
|
import {LogoModule} from '../../widget-modules/components/logo/logo.module';
|
||||||
import {FontAwesomeModule} from '@fortawesome/angular-fontawesome';
|
import {FontAwesomeModule} from '@fortawesome/angular-fontawesome';
|
||||||
import {SortByModule} from '../../widget-modules/pipes/sort-by/sort-by.module';
|
import {SortByPipe} from '../../widget-modules/pipes/sort-by/sort-by.pipe';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [LoginComponent, AuthMessagePipe, InfoComponent, LogoutComponent, RolePipe, PasswordComponent, PasswordSendComponent, UsersComponent, UserComponent, NewComponent],
|
declarations: [LoginComponent, AuthMessagePipe, InfoComponent, LogoutComponent, RolePipe, PasswordComponent, PasswordSendComponent, UsersComponent, UserComponent, NewComponent],
|
||||||
@@ -41,8 +41,7 @@ import {SortByModule} from '../../widget-modules/pipes/sort-by/sort-by.module';
|
|||||||
ButtonModule,
|
ButtonModule,
|
||||||
LogoModule,
|
LogoModule,
|
||||||
FontAwesomeModule,
|
FontAwesomeModule,
|
||||||
SortByModule,
|
SortByPipe,
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class UserModule {
|
export class UserModule {}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
import {NgModule} from '@angular/core';
|
|
||||||
import {CommonModule} from '@angular/common';
|
|
||||||
import {KeyPipe} from './key.pipe';
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
declarations: [KeyPipe],
|
|
||||||
exports: [KeyPipe],
|
|
||||||
imports: [CommonModule],
|
|
||||||
})
|
|
||||||
export class KeyTranslatorModule {
|
|
||||||
}
|
|
||||||
@@ -3,7 +3,6 @@ import {scaleMapping} from '../../../modules/songs/services/key.helper';
|
|||||||
|
|
||||||
@Pipe({
|
@Pipe({
|
||||||
name: 'key',
|
name: 'key',
|
||||||
standalone: false,
|
|
||||||
})
|
})
|
||||||
export class KeyPipe implements PipeTransform {
|
export class KeyPipe implements PipeTransform {
|
||||||
public transform(key: string): string {
|
public transform(key: string): string {
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
import {NgModule} from '@angular/core';
|
|
||||||
import {CommonModule} from '@angular/common';
|
|
||||||
import {LegalOwnerPipe} from './legal-owner.pipe';
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
declarations: [LegalOwnerPipe],
|
|
||||||
exports: [LegalOwnerPipe],
|
|
||||||
imports: [CommonModule],
|
|
||||||
})
|
|
||||||
export class LegalOwnerTranslatorModule {
|
|
||||||
}
|
|
||||||
@@ -3,7 +3,6 @@ import {SongLegalOwner} from '../../../modules/songs/services/song.service';
|
|||||||
|
|
||||||
@Pipe({
|
@Pipe({
|
||||||
name: 'legalOwner',
|
name: 'legalOwner',
|
||||||
standalone: false,
|
|
||||||
})
|
})
|
||||||
export class LegalOwnerPipe implements PipeTransform {
|
export class LegalOwnerPipe implements PipeTransform {
|
||||||
public transform(legalOwnerKey: SongLegalOwner): string {
|
public transform(legalOwnerKey: SongLegalOwner): string {
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
import {NgModule} from '@angular/core';
|
|
||||||
import {CommonModule} from '@angular/common';
|
|
||||||
import {LegalTypePipe} from './legal-type.pipe';
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
declarations: [LegalTypePipe],
|
|
||||||
exports: [LegalTypePipe],
|
|
||||||
imports: [CommonModule],
|
|
||||||
})
|
|
||||||
export class LegalTypeTranslatorModule {
|
|
||||||
}
|
|
||||||
@@ -3,7 +3,6 @@ import {SongLegalType} from '../../../modules/songs/services/song.service';
|
|||||||
|
|
||||||
@Pipe({
|
@Pipe({
|
||||||
name: 'legalType',
|
name: 'legalType',
|
||||||
standalone: false,
|
|
||||||
})
|
})
|
||||||
export class LegalTypePipe implements PipeTransform {
|
export class LegalTypePipe implements PipeTransform {
|
||||||
public transform(legalTypeKey: SongLegalType): string {
|
public transform(legalTypeKey: SongLegalType): string {
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
import {NgModule} from '@angular/core';
|
|
||||||
import {CommonModule} from '@angular/common';
|
|
||||||
import {SectionTypePipe} from './section-type.pipe';
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
declarations: [SectionTypePipe],
|
|
||||||
exports: [SectionTypePipe],
|
|
||||||
imports: [CommonModule],
|
|
||||||
})
|
|
||||||
export class SectionTypeTranslatorModule {
|
|
||||||
}
|
|
||||||
@@ -3,7 +3,6 @@ import {SectionType} from '../../../modules/songs/services/section-type';
|
|||||||
|
|
||||||
@Pipe({
|
@Pipe({
|
||||||
name: 'sectionType',
|
name: 'sectionType',
|
||||||
standalone: false,
|
|
||||||
})
|
})
|
||||||
export class SectionTypePipe implements PipeTransform {
|
export class SectionTypePipe implements PipeTransform {
|
||||||
public transform(value: SectionType): string {
|
public transform(value: SectionType): string {
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
import {NgModule} from '@angular/core';
|
|
||||||
import {CommonModule} from '@angular/common';
|
|
||||||
import {ShowTypePipe} from './show-type.pipe';
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
declarations: [ShowTypePipe],
|
|
||||||
exports: [ShowTypePipe],
|
|
||||||
imports: [CommonModule],
|
|
||||||
})
|
|
||||||
export class ShowTypeTranslaterModule {
|
|
||||||
}
|
|
||||||
@@ -2,7 +2,6 @@ import {Pipe, PipeTransform} from '@angular/core';
|
|||||||
|
|
||||||
@Pipe({
|
@Pipe({
|
||||||
name: 'showType',
|
name: 'showType',
|
||||||
standalone: false,
|
|
||||||
})
|
})
|
||||||
export class ShowTypePipe implements PipeTransform {
|
export class ShowTypePipe implements PipeTransform {
|
||||||
public transform(type: string): string {
|
public transform(type: string): string {
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
import {NgModule} from '@angular/core';
|
|
||||||
import {CommonModule} from '@angular/common';
|
|
||||||
import {SongTypePipe} from './song-type.pipe';
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
declarations: [SongTypePipe],
|
|
||||||
exports: [SongTypePipe],
|
|
||||||
imports: [CommonModule],
|
|
||||||
})
|
|
||||||
export class SongTypeTranslaterModule {
|
|
||||||
}
|
|
||||||
@@ -3,7 +3,6 @@ import {SongType} from '../../../modules/songs/services/song.service';
|
|||||||
|
|
||||||
@Pipe({
|
@Pipe({
|
||||||
name: 'songType',
|
name: 'songType',
|
||||||
standalone: false,
|
|
||||||
})
|
})
|
||||||
export class SongTypePipe implements PipeTransform {
|
export class SongTypePipe implements PipeTransform {
|
||||||
public transform(songTypeKey: SongType): string {
|
public transform(songTypeKey: SongType): string {
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
import {NgModule} from '@angular/core';
|
|
||||||
import {CommonModule} from '@angular/common';
|
|
||||||
import {SortByPipe} from './sort-by.pipe';
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
declarations: [SortByPipe],
|
|
||||||
exports: [SortByPipe],
|
|
||||||
imports: [CommonModule],
|
|
||||||
})
|
|
||||||
export class SortByModule {
|
|
||||||
}
|
|
||||||
@@ -3,7 +3,6 @@ import {orderBy} from 'lodash';
|
|||||||
|
|
||||||
@Pipe({
|
@Pipe({
|
||||||
name: 'sortBy',
|
name: 'sortBy',
|
||||||
standalone: false,
|
|
||||||
})
|
})
|
||||||
export class SortByPipe implements PipeTransform {
|
export class SortByPipe implements PipeTransform {
|
||||||
public transform(value: unknown[] | null, order: 'asc' | 'desc' = 'asc', column = ''): unknown[] | null {
|
public transform(value: unknown[] | null, order: 'asc' | 'desc' = 'asc', column = ''): unknown[] | null {
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
import {NgModule} from '@angular/core';
|
|
||||||
import {CommonModule} from '@angular/common';
|
|
||||||
import {StatusPipe} from './status.pipe';
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
declarations: [StatusPipe],
|
|
||||||
exports: [StatusPipe],
|
|
||||||
imports: [CommonModule],
|
|
||||||
})
|
|
||||||
export class StatusTranslaterModule {
|
|
||||||
}
|
|
||||||
@@ -2,7 +2,6 @@ import {Pipe, PipeTransform} from '@angular/core';
|
|||||||
|
|
||||||
@Pipe({
|
@Pipe({
|
||||||
name: 'status',
|
name: 'status',
|
||||||
standalone: false,
|
|
||||||
})
|
})
|
||||||
export class StatusPipe implements PipeTransform {
|
export class StatusPipe implements PipeTransform {
|
||||||
public transform(songTypeKey: string): string {
|
public transform(songTypeKey: string): string {
|
||||||
|
|||||||
Reference in New Issue
Block a user