bugfixing
This commit is contained in:
@@ -2,13 +2,14 @@ import {Component, OnInit} from '@angular/core';
|
|||||||
import {distinctUntilChanged, map, switchMap, tap} from 'rxjs/operators';
|
import {distinctUntilChanged, map, switchMap, tap} from 'rxjs/operators';
|
||||||
import {ShowService} from '../../shows/services/show.service';
|
import {ShowService} from '../../shows/services/show.service';
|
||||||
import {SongService} from '../../songs/services/song.service';
|
import {SongService} from '../../songs/services/song.service';
|
||||||
import {Section, TextRenderingService} from '../../songs/services/text-rendering.service';
|
|
||||||
import {Song} from '../../songs/services/song';
|
import {Song} from '../../songs/services/song';
|
||||||
import {GlobalSettingsService} from '../../../services/global-settings.service';
|
import {GlobalSettingsService} from '../../../services/global-settings.service';
|
||||||
import {Config} from '../../../services/config';
|
import {Config} from '../../../services/config';
|
||||||
import {Observable} from 'rxjs';
|
import {Observable} from 'rxjs';
|
||||||
import {ConfigService} from '../../../services/config.service';
|
import {ConfigService} from '../../../services/config.service';
|
||||||
import {songSwitch} from '../../../widget-modules/components/song-text/animation';
|
import {songSwitch} from '../../../widget-modules/components/song-text/animation';
|
||||||
|
import {Section} from '../../songs/services/section';
|
||||||
|
import {TextRenderingService} from '../../songs/services/text-rendering.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-monitor',
|
selector: 'app-monitor',
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import {Show} from '../../shows/services/show';
|
|||||||
import {ShowSongService} from '../../shows/services/show-song.service';
|
import {ShowSongService} from '../../shows/services/show-song.service';
|
||||||
import {SongService} from '../../songs/services/song.service';
|
import {SongService} from '../../songs/services/song.service';
|
||||||
import {Song} from '../../songs/services/song';
|
import {Song} from '../../songs/services/song';
|
||||||
import {Section, TextRenderingService} from '../../songs/services/text-rendering.service';
|
|
||||||
import {faDesktop} from '@fortawesome/free-solid-svg-icons/faDesktop';
|
import {faDesktop} from '@fortawesome/free-solid-svg-icons/faDesktop';
|
||||||
import {ShowService} from '../../shows/services/show.service';
|
import {ShowService} from '../../shows/services/show.service';
|
||||||
import {ShowSong} from '../../shows/services/show-song';
|
import {ShowSong} from '../../shows/services/show-song';
|
||||||
@@ -13,6 +12,8 @@ import {FormControl} from '@angular/forms';
|
|||||||
import {distinctUntilChanged, map} from 'rxjs/operators';
|
import {distinctUntilChanged, map} from 'rxjs/operators';
|
||||||
import {fade} from '../../../animations';
|
import {fade} from '../../../animations';
|
||||||
import {delay} from '../../../services/delay';
|
import {delay} from '../../../services/delay';
|
||||||
|
import {TextRenderingService} from '../../songs/services/text-rendering.service';
|
||||||
|
import {Section} from '../../songs/services/section';
|
||||||
|
|
||||||
export interface PresentationSong {
|
export interface PresentationSong {
|
||||||
id: string;
|
id: string;
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import {ShowService} from './show.service';
|
|||||||
import {ShowTypePipe} from '../../../widget-modules/pipes/show-type-translater/show-type.pipe';
|
import {ShowTypePipe} from '../../../widget-modules/pipes/show-type-translater/show-type.pipe';
|
||||||
import {first} from 'rxjs/operators';
|
import {first} from 'rxjs/operators';
|
||||||
import {ShowSongService} from './show-song.service';
|
import {ShowSongService} from './show-song.service';
|
||||||
import {Line, LineType, Section, TextRenderingService} from '../../songs/services/text-rendering.service';
|
|
||||||
import {Song} from '../../songs/services/song';
|
import {Song} from '../../songs/services/song';
|
||||||
import {SongService} from '../../songs/services/song.service';
|
import {SongService} from '../../songs/services/song.service';
|
||||||
import {ShowSong} from './show-song';
|
import {ShowSong} from './show-song';
|
||||||
@@ -14,6 +13,10 @@ import {UserService} from '../../../services/user/user.service';
|
|||||||
import {User} from '../../../services/user/user';
|
import {User} from '../../../services/user/user';
|
||||||
import {ConfigService} from '../../../services/config.service';
|
import {ConfigService} from '../../../services/config.service';
|
||||||
import {Config} from '../../../services/config';
|
import {Config} from '../../../services/config';
|
||||||
|
import {TextRenderingService} from '../../songs/services/text-rendering.service';
|
||||||
|
import {Section} from '../../songs/services/section';
|
||||||
|
import {LineType} from '../../songs/services/line-type';
|
||||||
|
import {Line} from '../../songs/services/line';
|
||||||
|
|
||||||
export interface DownloadOptions {
|
export interface DownloadOptions {
|
||||||
copyright?: boolean;
|
copyright?: boolean;
|
||||||
|
|||||||
7
src/app/modules/songs/services/chord.ts
Normal file
7
src/app/modules/songs/services/chord.ts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
export interface Chord {
|
||||||
|
chord: string;
|
||||||
|
length: number;
|
||||||
|
position: number;
|
||||||
|
slashChord?: string;
|
||||||
|
add?: string;
|
||||||
|
}
|
||||||
4
src/app/modules/songs/services/line-type.ts
Normal file
4
src/app/modules/songs/services/line-type.ts
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
export enum LineType {
|
||||||
|
chord,
|
||||||
|
text,
|
||||||
|
}
|
||||||
8
src/app/modules/songs/services/line.ts
Normal file
8
src/app/modules/songs/services/line.ts
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
import {LineType} from './line-type';
|
||||||
|
import {Chord} from './chord';
|
||||||
|
|
||||||
|
export interface Line {
|
||||||
|
type: LineType;
|
||||||
|
text: string;
|
||||||
|
chords?: Chord[];
|
||||||
|
}
|
||||||
5
src/app/modules/songs/services/section-type.ts
Normal file
5
src/app/modules/songs/services/section-type.ts
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
export enum SectionType {
|
||||||
|
Verse,
|
||||||
|
Chorus,
|
||||||
|
Bridge,
|
||||||
|
}
|
||||||
8
src/app/modules/songs/services/section.ts
Normal file
8
src/app/modules/songs/services/section.ts
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
import {SectionType} from './section-type';
|
||||||
|
import {Line} from './line';
|
||||||
|
|
||||||
|
export interface Section {
|
||||||
|
type: SectionType;
|
||||||
|
number: number;
|
||||||
|
lines: Line[];
|
||||||
|
}
|
||||||
@@ -1,37 +1,11 @@
|
|||||||
import {Injectable} from '@angular/core';
|
import {Injectable} from '@angular/core';
|
||||||
import {TransposeService} from './transpose.service';
|
import {TransposeService} from './transpose.service';
|
||||||
import {TransposeMode} from './transpose-mode';
|
import {TransposeMode} from './transpose-mode';
|
||||||
|
import {SectionType} from './section-type';
|
||||||
export enum SectionType {
|
import {Section} from './section';
|
||||||
Verse,
|
import {LineType} from './line-type';
|
||||||
Chorus,
|
import {Chord} from './chord';
|
||||||
Bridge,
|
import {Line} from './line';
|
||||||
}
|
|
||||||
|
|
||||||
export enum LineType {
|
|
||||||
chord,
|
|
||||||
text,
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Chord {
|
|
||||||
chord: string;
|
|
||||||
length: number;
|
|
||||||
position: number;
|
|
||||||
slashChord?: string;
|
|
||||||
add?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Line {
|
|
||||||
type: LineType;
|
|
||||||
text: string;
|
|
||||||
chords?: Chord[];
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Section {
|
|
||||||
type: SectionType;
|
|
||||||
number: number;
|
|
||||||
lines: Line[];
|
|
||||||
}
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
import {Injectable} from '@angular/core';
|
import {Injectable} from '@angular/core';
|
||||||
import {Chord, Line, LineType} from './text-rendering.service';
|
|
||||||
import {getScaleType, scaleMapping} from './key.helper';
|
import {getScaleType, scaleMapping} from './key.helper';
|
||||||
|
import {LineType} from './line-type';
|
||||||
|
import {Chord} from './chord';
|
||||||
|
import {Line} from './line';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
import {Component, ElementRef, EventEmitter, Input, OnInit, Output, QueryList, ViewChildren} from '@angular/core';
|
import {Component, ElementRef, EventEmitter, Input, OnInit, Output, QueryList, ViewChildren} from '@angular/core';
|
||||||
import {
|
import {TextRenderingService} from '../../../modules/songs/services/text-rendering.service';
|
||||||
Line,
|
|
||||||
LineType,
|
|
||||||
Section,
|
|
||||||
SectionType,
|
|
||||||
TextRenderingService
|
|
||||||
} from '../../../modules/songs/services/text-rendering.service';
|
|
||||||
import {faGripLines} from '@fortawesome/free-solid-svg-icons/faGripLines';
|
import {faGripLines} from '@fortawesome/free-solid-svg-icons/faGripLines';
|
||||||
import {songSwitch} from './animation';
|
import {songSwitch} from './animation';
|
||||||
import {TransposeMode} from '../../../modules/songs/services/transpose-mode';
|
import {TransposeMode} from '../../../modules/songs/services/transpose-mode';
|
||||||
|
import {SectionType} from '../../../modules/songs/services/section-type';
|
||||||
|
import {LineType} from '../../../modules/songs/services/line-type';
|
||||||
|
import {Section} from '../../../modules/songs/services/section';
|
||||||
|
import {Line} from '../../../modules/songs/services/line';
|
||||||
|
|
||||||
export type ChordMode = 'show' | 'hide' | 'onlyFirst'
|
export type ChordMode = 'show' | 'hide' | 'onlyFirst'
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {Pipe, PipeTransform} from '@angular/core';
|
import {Pipe, PipeTransform} from '@angular/core';
|
||||||
import {SectionType} from '../../../modules/songs/services/text-rendering.service';
|
import {SectionType} from '../../../modules/songs/services/section-type';
|
||||||
|
|
||||||
@Pipe({
|
@Pipe({
|
||||||
name: 'sectionType'
|
name: 'sectionType'
|
||||||
|
|||||||
Reference in New Issue
Block a user