Skip to content

Commit

Permalink
fix: client error keys
Browse files Browse the repository at this point in the history
  • Loading branch information
oriolagobat committed Nov 22, 2023
1 parent bdda9a2 commit 8ad0785
Show file tree
Hide file tree
Showing 14 changed files with 2,403 additions and 275 deletions.
Binary file added app/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/icons/icon-128.webp
Binary file not shown.
Binary file added app/icons/icon-192.webp
Binary file not shown.
Binary file added app/icons/icon-256.webp
Binary file not shown.
Binary file added app/icons/icon-48.webp
Binary file not shown.
Binary file added app/icons/icon-512.webp
Binary file not shown.
Binary file added app/icons/icon-72.webp
Binary file not shown.
Binary file added app/icons/icon-96.webp
Binary file not shown.
2,615 changes: 2,348 additions & 267 deletions app/package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@angular/router": "^16.0.0",
"@capacitor/android": "^5.5.1",
"@capacitor/app": "5.0.6",
"@capacitor/assets": "^3.0.1",
"@capacitor/camera": "^5.0.7",
"@capacitor/core": "^5.5.0",
"@capacitor/device": "^5.0.6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ export class RefugesDetailPage implements OnInit {

private async handleClientError() {
const alert = await this.alertController.create({
header: this.translateService.instant('ERRORS.CLIENT_ERROR.HEADER'),
subHeader: this.translateService.instant('ERRORS.CLIENT_ERROR.SUBHEADER'),
message: this.translateService.instant('ERRORS.CLIENT_ERROR.MESSAGE'),
header: this.translateService.instant('HOME.CLIENT_ERROR.HEADER'),
subHeader: this.translateService.instant('HOME.CLIENT_ERROR.SUBHEADER'),
message: this.translateService.instant('HOME.CLIENT_ERROR.MESSAGE'),
buttons: [
{
text: this.translateService.instant('ERRORS.CLIENT_ERROR.EXIT'),
text: this.translateService.instant('HOME.CLIENT_ERROR.EXIT'),
handler: () => {
this.alertController.dismiss().then();
this.fetchRefuge(this.getRefugeIdFromUrl());
Expand Down
8 changes: 4 additions & 4 deletions app/src/app/pages/refuges/refuge-list/refuges-list.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ export class RefugesListPage implements OnInit {

private async handleClientError() {
const alert = await this.alertController.create({
header: this.translateService.instant('ERRORS.CLIENT_ERROR.HEADER'),
subHeader: this.translateService.instant('ERRORS.CLIENT_ERROR.SUBHEADER'),
message: this.translateService.instant('ERRORS.CLIENT_ERROR.MESSAGE'),
header: this.translateService.instant('HOME.CLIENT_ERROR.HEADER'),
subHeader: this.translateService.instant('HOME.CLIENT_ERROR.SUBHEADER'),
message: this.translateService.instant('HOME.CLIENT_ERROR.MESSAGE'),
buttons: [
{
text: this.translateService.instant('ERRORS.CLIENT_ERROR.EXIT'),
text: this.translateService.instant('HOME.CLIENT_ERROR.EXIT'),
handler: () => {
this.alertController.dismiss().then();
},
Expand Down
46 changes: 46 additions & 0 deletions app/src/manifest.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"icons": [
{
"src": "../../icons/icon-48.webp",
"type": "image/png",
"sizes": "48x48",
"purpose": "any maskable"
},
{
"src": "../../icons/icon-72.webp",
"type": "image/png",
"sizes": "72x72",
"purpose": "any maskable"
},
{
"src": "../../icons/icon-96.webp",
"type": "image/png",
"sizes": "96x96",
"purpose": "any maskable"
},
{
"src": "../../icons/icon-128.webp",
"type": "image/png",
"sizes": "128x128",
"purpose": "any maskable"
},
{
"src": "../../icons/icon-192.webp",
"type": "image/png",
"sizes": "192x192",
"purpose": "any maskable"
},
{
"src": "../../icons/icon-256.webp",
"type": "image/png",
"sizes": "256x256",
"purpose": "any maskable"
},
{
"src": "../../icons/icon-512.webp",
"type": "image/png",
"sizes": "512x512",
"purpose": "any maskable"
}
]
}

0 comments on commit 8ad0785

Please sign in to comment.