update firebase

This commit is contained in:
2021-07-04 20:49:35 +02:00
parent 1605be82a3
commit f720d472c8
6 changed files with 672 additions and 508 deletions

1170
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -27,7 +27,7 @@
"@fortawesome/fontawesome-svg-core": "^1.2.28", "@fortawesome/fontawesome-svg-core": "^1.2.28",
"@fortawesome/free-solid-svg-icons": "^5.13.0", "@fortawesome/free-solid-svg-icons": "^5.13.0",
"docx": "^6.0.3", "docx": "^6.0.3",
"firebase": "^7.24.0", "firebase": "^8.7.0",
"ngx-mat-select-search": "^3.3.0", "ngx-mat-select-search": "^3.3.0",
"ngx-perfect-scrollbar": "^10.1.1", "ngx-perfect-scrollbar": "^10.1.1",
"ngx-swiper-wrapper": "^10.0.0", "ngx-swiper-wrapper": "^10.0.0",

View File

@@ -1,4 +1,5 @@
<div class="list-item" *ngIf="show"> <div class="list-item" *ngIf="show">
<div>{{ show.date.toDate() | date: "dd.MM.yyyy" }}</div> <div>{{ show.date.toDate() | date: "dd.MM.yyyy" }}</div>
<div><app-user-name [userId]="show.owner"></app-user-name></div>
<div>{{ show.showType | showType }}</div> <div>{{ show.showType | showType }}</div>
</div> </div>

View File

@@ -3,7 +3,7 @@
.list-item { .list-item {
padding: 5px 20px; padding: 5px 20px;
display: grid; display: grid;
grid-template-columns: 1fr 2fr; grid-template-columns: 100px 200px auto;
min-height: 34px; min-height: 34px;
& > div { & > div {

View File

@@ -18,7 +18,7 @@ export class ListComponent {
} }
public getPublicShows(songs: Show[]): Show[] { public getPublicShows(songs: Show[]): Show[] {
return songs.filter(_ => _.published); return songs.filter(_ => _.published).sort((a, b) => (b.date < a.date ? -1 : b.date > a.date ? 1 : 0));
} }
public getPrivateSongs(songs: Show[]): Show[] { public getPrivateSongs(songs: Show[]): Show[] {

View File

@@ -1,3 +1,4 @@
<!doctype html>
<html lang="de"> <html lang="de">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
@@ -88,7 +89,7 @@
<div id="load-bg"> <div id="load-bg">
<svg height="1024" version="1.1" viewBox="0 0 270.93 270.93" width="1024" xmlns="http://www.w3.org/2000/svg"> <svg height="1024" viewBox="0 0 270.93 270.93" width="1024" xmlns="http://www.w3.org/2000/svg">
<defs> <defs>
</defs> </defs>
<g fill="#fff"> <g fill="#fff">