From dc01c60e67ece0acb598c97177cac636a820e88f Mon Sep 17 00:00:00 2001 From: Benjamin Ifland Date: Mon, 25 Mar 2019 15:13:52 +0100 Subject: [PATCH] new song GUI --- WEB/src/app/app.module.ts | 4 +- .../songs/song-edit/song-edit.component.html | 55 ++----------------- .../songs/song-edit/song-edit.component.less | 12 +--- .../songs/song-edit/song-edit.component.ts | 46 ++-------------- .../app/components/songs/song-form/keys.ts | 36 ++++++++++++ .../songs/song-form/song-form.component.html | 53 ++++++++++++++++++ .../songs/song-form/song-form.component.less | 9 +++ .../songs/song-form/song-form.component.ts | 13 +++++ .../songs/song-new/song-new.component.html | 22 ++++++++ .../songs/song-new/song-new.component.less | 3 + .../songs/song-new/song-new.component.ts | 34 ++++++++++++ .../components/songs/song/song.component.html | 7 +-- .../components/songs/song/song.component.less | 6 +- .../components/songs/song/song.component.ts | 11 ++-- .../app/components/songs/songs.component.html | 5 +- .../app/components/songs/songs.component.ts | 6 +- .../songs/table/table.component.html | 3 +- .../songs/table/table.component.less | 12 ++++ .../components/songs/table/table.component.ts | 13 ++++- WEB/src/app/data/edit-song.service.ts | 35 ++++++++++-- WEB/src/app/data/songs.service.ts | 6 +- WEB/src/app/data/state.ts | 6 ++ WEB/src/app/services/animation.ts | 10 ++-- WEB/src/styles.less | 24 ++++---- 24 files changed, 293 insertions(+), 138 deletions(-) create mode 100644 WEB/src/app/components/songs/song-form/keys.ts create mode 100644 WEB/src/app/components/songs/song-form/song-form.component.html create mode 100644 WEB/src/app/components/songs/song-form/song-form.component.less create mode 100644 WEB/src/app/components/songs/song-form/song-form.component.ts create mode 100644 WEB/src/app/components/songs/song-new/song-new.component.html create mode 100644 WEB/src/app/components/songs/song-new/song-new.component.less create mode 100644 WEB/src/app/components/songs/song-new/song-new.component.ts create mode 100644 WEB/src/app/data/state.ts diff --git a/WEB/src/app/app.module.ts b/WEB/src/app/app.module.ts index df02245..f570c18 100644 --- a/WEB/src/app/app.module.ts +++ b/WEB/src/app/app.module.ts @@ -21,9 +21,11 @@ import { TableComponent } from './components/songs/table/table.component'; import { SongsComponent } from './components/songs/songs.component'; import { SongComponent } from './components/songs/song/song.component'; import { SongEditComponent } from './components/songs/song-edit/song-edit.component'; +import { SongNewComponent } from './components/songs/song-new/song-new.component'; +import { SongFormComponent } from './components/songs/song-form/song-form.component'; @NgModule({ - declarations: [AppComponent, SongsComponent, TableComponent, SongComponent, SongEditComponent], + declarations: [AppComponent, SongsComponent, TableComponent, SongComponent, SongEditComponent, SongNewComponent, SongFormComponent], imports: [ BrowserModule, BrowserAnimationsModule, diff --git a/WEB/src/app/components/songs/song-edit/song-edit.component.html b/WEB/src/app/components/songs/song-edit/song-edit.component.html index f63ed0c..fd81955 100644 --- a/WEB/src/app/components/songs/song-edit/song-edit.component.html +++ b/WEB/src/app/components/songs/song-edit/song-edit.component.html @@ -1,61 +1,18 @@
- +
-
Titel bearbeiten - Daten werden nach der Eingabe automatisch gespeichert + + Daten werden nach der Eingabe automatisch gespeichert +
-
- - - -
- - Lobpreis - Anbetung - - - Tonart - - - {{ key }} - - - - - - -
- - - - - - -
+