update tslint -> eslint
This commit is contained in:
@@ -2,15 +2,9 @@ import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {KeyPipe} from './key.pipe';
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [KeyPipe],
|
||||
exports: [
|
||||
KeyPipe
|
||||
],
|
||||
imports: [
|
||||
CommonModule
|
||||
]
|
||||
exports: [KeyPipe],
|
||||
imports: [CommonModule],
|
||||
})
|
||||
export class KeyTranslatorModule {
|
||||
}
|
||||
export class KeyTranslatorModule {}
|
||||
|
||||
@@ -3,6 +3,6 @@ import {KeyPipe} from './key.pipe';
|
||||
describe('KeyPipe', () => {
|
||||
it('create an instance', () => {
|
||||
const pipe = new KeyPipe();
|
||||
expect(pipe).toBeTruthy();
|
||||
void expect(pipe).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -2,12 +2,10 @@ import {Pipe, PipeTransform} from '@angular/core';
|
||||
import {scaleMapping} from '../../../modules/songs/services/key.helper';
|
||||
|
||||
@Pipe({
|
||||
name: 'key'
|
||||
name: 'key',
|
||||
})
|
||||
export class KeyPipe implements PipeTransform {
|
||||
|
||||
transform(key: string): string {
|
||||
public transform(key: string): string {
|
||||
return scaleMapping[key];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -2,15 +2,9 @@ import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {LegalOwnerPipe} from './legal-owner.pipe';
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [LegalOwnerPipe],
|
||||
exports: [
|
||||
LegalOwnerPipe
|
||||
],
|
||||
imports: [
|
||||
CommonModule
|
||||
]
|
||||
exports: [LegalOwnerPipe],
|
||||
imports: [CommonModule],
|
||||
})
|
||||
export class LegalOwnerTranslatorModule {
|
||||
}
|
||||
export class LegalOwnerTranslatorModule {}
|
||||
|
||||
@@ -3,6 +3,6 @@ import {LegalOwnerPipe} from './legal-owner.pipe';
|
||||
describe('LegalOwnerPipe', () => {
|
||||
it('create an instance', () => {
|
||||
const pipe = new LegalOwnerPipe();
|
||||
expect(pipe).toBeTruthy();
|
||||
void expect(pipe).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import {Pipe, PipeTransform} from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'legalOwner'
|
||||
name: 'legalOwner',
|
||||
})
|
||||
export class LegalOwnerPipe implements PipeTransform {
|
||||
|
||||
transform(legalOwnerKey: string): string {
|
||||
public transform(legalOwnerKey: string): string {
|
||||
switch (legalOwnerKey) {
|
||||
case 'CCLI':
|
||||
return 'CCLI';
|
||||
@@ -15,5 +14,4 @@ export class LegalOwnerPipe implements PipeTransform {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -2,15 +2,9 @@ import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {LegalTypePipe} from './legal-type.pipe';
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [LegalTypePipe],
|
||||
exports: [
|
||||
LegalTypePipe
|
||||
],
|
||||
imports: [
|
||||
CommonModule
|
||||
]
|
||||
exports: [LegalTypePipe],
|
||||
imports: [CommonModule],
|
||||
})
|
||||
export class LegalTypeTranslatorModule {
|
||||
}
|
||||
export class LegalTypeTranslatorModule {}
|
||||
|
||||
@@ -3,6 +3,6 @@ import {LegalTypePipe} from './legal-type.pipe';
|
||||
describe('LegalTypePipe', () => {
|
||||
it('create an instance', () => {
|
||||
const pipe = new LegalTypePipe();
|
||||
expect(pipe).toBeTruthy();
|
||||
void expect(pipe).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import {Pipe, PipeTransform} from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'legalType'
|
||||
name: 'legalType',
|
||||
})
|
||||
export class LegalTypePipe implements PipeTransform {
|
||||
|
||||
transform(legalTypeKey: string): string {
|
||||
public transform(legalTypeKey: string): string {
|
||||
switch (legalTypeKey) {
|
||||
case 'open':
|
||||
return 'Klärung erforderlich ';
|
||||
@@ -15,5 +14,4 @@ export class LegalTypePipe implements PipeTransform {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -2,15 +2,9 @@ import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {SectionTypePipe} from './section-type.pipe';
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [SectionTypePipe],
|
||||
exports: [
|
||||
SectionTypePipe
|
||||
],
|
||||
imports: [
|
||||
CommonModule
|
||||
]
|
||||
exports: [SectionTypePipe],
|
||||
imports: [CommonModule],
|
||||
})
|
||||
export class SectionTypeTranslatorModule {
|
||||
}
|
||||
export class SectionTypeTranslatorModule {}
|
||||
|
||||
@@ -3,6 +3,6 @@ import {SectionTypePipe} from './section-type.pipe';
|
||||
describe('SectionTypePipe', () => {
|
||||
it('create an instance', () => {
|
||||
const pipe = new SectionTypePipe();
|
||||
expect(pipe).toBeTruthy();
|
||||
void expect(pipe).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -2,11 +2,10 @@ import {Pipe, PipeTransform} from '@angular/core';
|
||||
import {SectionType} from '../../../modules/songs/services/section-type';
|
||||
|
||||
@Pipe({
|
||||
name: 'sectionType'
|
||||
name: 'sectionType',
|
||||
})
|
||||
export class SectionTypePipe implements PipeTransform {
|
||||
|
||||
transform(value: SectionType): string {
|
||||
public transform(value: SectionType): string {
|
||||
switch (value) {
|
||||
case SectionType.Verse:
|
||||
return 'Strophe';
|
||||
@@ -16,5 +15,4 @@ export class SectionTypePipe implements PipeTransform {
|
||||
return 'Bridge';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -2,15 +2,9 @@ import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {ShowTypePipe} from './show-type.pipe';
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [ShowTypePipe],
|
||||
exports: [
|
||||
ShowTypePipe
|
||||
],
|
||||
imports: [
|
||||
CommonModule
|
||||
]
|
||||
exports: [ShowTypePipe],
|
||||
imports: [CommonModule],
|
||||
})
|
||||
export class ShowTypeTranslaterModule {
|
||||
}
|
||||
export class ShowTypeTranslaterModule {}
|
||||
|
||||
@@ -3,6 +3,6 @@ import {ShowTypePipe} from './show-type.pipe';
|
||||
describe('ShowTypePipe', () => {
|
||||
it('create an instance', () => {
|
||||
const pipe = new ShowTypePipe();
|
||||
expect(pipe).toBeTruthy();
|
||||
void expect(pipe).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
import {Pipe, PipeTransform} from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'showType'
|
||||
name: 'showType',
|
||||
})
|
||||
export class ShowTypePipe implements PipeTransform {
|
||||
|
||||
transform(type: string): string {
|
||||
public transform(type: string): string {
|
||||
switch (type) {
|
||||
case 'service-worship':
|
||||
case 'service-worship':
|
||||
return 'Gottesdienst Anbetung';
|
||||
case 'service-praise':
|
||||
return 'Gottesdienst Lobpreis';
|
||||
@@ -15,18 +14,16 @@ export class ShowTypePipe implements PipeTransform {
|
||||
return 'großer Hauskreis';
|
||||
case 'home-group':
|
||||
return 'Hauskreis';
|
||||
case 'prayer-group':
|
||||
case 'prayer-group':
|
||||
return 'Gebetskreis';
|
||||
case 'teens-group':
|
||||
case 'teens-group':
|
||||
return 'Teeniekreis';
|
||||
case 'kids-group':
|
||||
case 'kids-group':
|
||||
return 'Kinderkreis';
|
||||
case 'misc-public':
|
||||
case 'misc-public':
|
||||
return 'sonstige öffentliche Veranstaltung';
|
||||
case 'misc-private':
|
||||
case 'misc-private':
|
||||
return 'sonstige private Veranstaltung';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -2,15 +2,9 @@ import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {SongTypePipe} from './song-type.pipe';
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [SongTypePipe],
|
||||
exports: [
|
||||
SongTypePipe
|
||||
],
|
||||
imports: [
|
||||
CommonModule
|
||||
]
|
||||
exports: [SongTypePipe],
|
||||
imports: [CommonModule],
|
||||
})
|
||||
export class SongTypeTranslaterModule {
|
||||
}
|
||||
export class SongTypeTranslaterModule {}
|
||||
|
||||
@@ -3,6 +3,6 @@ import {SongTypePipe} from './song-type.pipe';
|
||||
describe('SongTypePipe', () => {
|
||||
it('create an instance', () => {
|
||||
const pipe = new SongTypePipe();
|
||||
expect(pipe).toBeTruthy();
|
||||
void expect(pipe).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import {Pipe, PipeTransform} from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'songType'
|
||||
name: 'songType',
|
||||
})
|
||||
export class SongTypePipe implements PipeTransform {
|
||||
|
||||
transform(songTypeKey: string): string {
|
||||
public transform(songTypeKey: string): string {
|
||||
switch (songTypeKey) {
|
||||
case 'Worship':
|
||||
return 'Anbetung';
|
||||
@@ -15,5 +14,4 @@ export class SongTypePipe implements PipeTransform {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -2,15 +2,9 @@ import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {StatusPipe} from './status.pipe';
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [StatusPipe],
|
||||
exports: [
|
||||
StatusPipe
|
||||
],
|
||||
imports: [
|
||||
CommonModule
|
||||
]
|
||||
exports: [StatusPipe],
|
||||
imports: [CommonModule],
|
||||
})
|
||||
export class StatusTranslaterModule {
|
||||
}
|
||||
export class StatusTranslaterModule {}
|
||||
|
||||
@@ -3,6 +3,6 @@ import {StatusPipe} from './status.pipe';
|
||||
describe('StatusPipe', () => {
|
||||
it('create an instance', () => {
|
||||
const pipe = new StatusPipe();
|
||||
expect(pipe).toBeTruthy();
|
||||
void expect(pipe).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import {Pipe, PipeTransform} from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'status'
|
||||
name: 'status',
|
||||
})
|
||||
export class StatusPipe implements PipeTransform {
|
||||
|
||||
transform(songTypeKey: string): string {
|
||||
public transform(songTypeKey: string): string {
|
||||
switch (songTypeKey) {
|
||||
case 'draft':
|
||||
return 'Entwurf';
|
||||
@@ -17,5 +16,4 @@ export class StatusPipe implements PipeTransform {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user