Skip to content

Commit 33d8a56

Browse files
committed
Get Image fix for Production + rebuild + Heroku
1 parent 3bc2f49 commit 33d8a56

20 files changed

+57
-54
lines changed

backend/docker/create_image.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
cd ../../frontend
44

5-
npm install
5+
# npm install
66

77
ng build --prod --base-href="/new/"
88

9+
rm -r ../backend/src/main/resources/public/new/*
10+
911
cp -r dist/frontend/* ../backend/src/main/resources/public/new/
1012

1113
cd ../backend/docker

backend/src/main/resources/public/new/index.html

Lines changed: 4 additions & 4 deletions
Large diffs are not rendered by default.

backend/src/main/resources/public/new/main.21b05d1ae8953ccf.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

backend/src/main/resources/public/new/main.7bafc258ee226a6c.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

backend/src/main/resources/public/new/main.8b525f4aa798a348.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

backend/src/main/resources/public/new/main.99dc72018ec0334d.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

backend/src/main/resources/public/new/main.a7a3c27dc5399545.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/src/main/resources/public/new/main.f905f3e442c72289.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

backend/src/main/resources/public/new/styles.411581a70064ef3d.css

Lines changed: 0 additions & 10 deletions
This file was deleted.

frontend/src/app/components/admin/admin.component.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
<body class="bg-232323">
42

53
<header class="fixed-top"></header>
@@ -41,7 +39,7 @@ <h2 class="mt-2 mb-1">Usuarios encontrados</h2>
4139
<div *ngFor="let user of usersList" class="col-md-12">
4240
<div class="d-flex lineUser">
4341

44-
<img *ngIf="hasImage()" class="userFinder" src="/user/{{user.id}}/image">
42+
<img *ngIf="hasImage()" class="userFinder" [src]="userService.getUserImage(user.id, 0)">
4543
<img *ngIf="!hasImage()" class="userFinder" src="/assets/images/no_profile_photo.jpg">
4644

4745
<span class="d-flex align-items-center partner-name">{{user.name}}</span>
@@ -77,23 +75,23 @@ <h2 class="mt-2 mb-1">Torneos encontrados</h2>
7775
<span id="elements">
7876
<div *ngIf="isAdmin()" class="row">
7977

80-
<div *ngFor="let Tournament of tournaments" class="col-md-12">
78+
<div *ngFor="let tournament of tournaments" class="col-md-12">
8179
<div class="d-flex lineTournament">
8280

83-
<img *ngIf="Tournament.image" class="tournamentFinder" src="/api/tournaments/{{Tournament?.id}}/image">
84-
<img *ngIf="!Tournament.image" class="tournamentFinder" src="/assets/images/product_02.jpg">
81+
<img *ngIf="tournament.image" class="tournamentFinder" [src]="tournamentService.getTournamentImage(tournament?.id, 0)">
82+
<img *ngIf="!tournament.image" class="tournamentFinder" src="/assets/images/product_02.jpg">
8583

86-
<span class="d-flex align-items-center partner-name">{{Tournament.tournamentName}}</span>
84+
<span class="d-flex align-items-center partner-name">{{tournament.tournamentName}}</span>
8785
<button class="btn btn-danger binUsers" title="Perma delate users"
88-
(click)="removeTournament(Tournament.id)">Remove</button>
86+
(click)="removeTournament(tournament.id)">Remove</button>
8987

9088
</div>
9189
</div>
9290
</div>
9391

9492
<div *ngIf="hasMoreTournaments" class="row">
9593
<div class="d-flex justify-content-center">
96-
<a class="cargar-mas mb-5" (click)="getTournaments()">Cargar más</a>
94+
<a class="cargar-mas" (click)="getTournaments()">Cargar más</a>
9795
</div>
9896
</div>
9997
</span>

0 commit comments

Comments
 (0)