Skip to content

Commit

Permalink
remove report
Browse files Browse the repository at this point in the history
  • Loading branch information
bastyen committed Oct 9, 2024
1 parent eb2b94a commit 7bc6bf1
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 37 deletions.
1 change: 0 additions & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ platforms:
<uses-feature android:name="android.hardware.location.gps" />
<queries>
<package android:name="com.google.android.apps.maps" />
<package android:name="com.suricate" />
</queries>
</manifest>
Expand Down
4 changes: 0 additions & 4 deletions src/app/pages/home/home.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ <h1>{{'home.text' | translate}}</h1>
[value]="practiceValue"
(filterAndGo)="filterAndGo($event)"
></app-filter-button>
<app-filter-button
[value]="{id: 98, name: ('tabbar.report' | translate), pictogram: 'assets/warning-outline.svg', color: '#FFFFFF', textColor:'#3A73DC'}"
(filterAndGo)="goToReport()"
></app-filter-button>
<app-filter-button
[value]="{id: 99, name: ('tabbar.emergency' | translate), pictogram: 'assets/medical-outline.svg', color: '#FFFFFF', textColor:'#FF0000'}"
(filterAndGo)="goToEmergency()"
Expand Down
28 changes: 0 additions & 28 deletions src/app/pages/home/home.page.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { Component, OnDestroy, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { Platform } from '@ionic/angular';
import { Filter, FilterValue } from '@app/interfaces/interfaces';
import { SettingsService } from '@app/services/settings/settings.service';
import { environment } from '@env/environment';
import { Subscription } from 'rxjs';
import { cloneDeep } from 'lodash';
import { AppLauncher } from '@capacitor/app-launcher';

@Component({
selector: 'app-home',
Expand All @@ -23,7 +21,6 @@ export class HomePage implements OnInit, OnDestroy {
constructor(
private settings: SettingsService,
private router: Router,
private platform: Platform
) {}

ngOnInit() {
Expand All @@ -50,29 +47,4 @@ export class HomePage implements OnInit, OnDestroy {
public goToEmergency() {
this.router.navigate(['/tabs/emergency']);
}

public async goToReport() {
if (this.platform.is('android')) {
if (
(
await AppLauncher.canOpenUrl({
url: `com.suricate`
})
).value
) {
await AppLauncher.openUrl({
url: `com.suricate`
});
} else {
window.open(
`https://play.google.com/store/apps/details?id=com.suricate&hl=fr`,
'_blank'
);
}
} else if (this.platform.is('ios')) {
await AppLauncher.openUrl({
url: `https://apps.apple.com/fr/app/suricate-sports-de-nature/id1077352900`
});
}
}
}
1 change: 0 additions & 1 deletion src/assets/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"treks": "Randonnées",
"offline": "Offline",
"more": "Informationen",
"report": "Ein Problem melden",
"emergency": "Emergency"
},
"home": {
Expand Down
1 change: 0 additions & 1 deletion src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"treks": "Treks",
"offline": "Offline",
"more": "Informations",
"report": "Report a problem",
"emergency": "Emergency"
},
"home": {
Expand Down
1 change: 0 additions & 1 deletion src/assets/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"treks": "Randonnées",
"offline": "Hors ligne",
"more": "Informations",
"report": "Signalez un problème",
"emergency": "Contacter les secours"
},
"home": {
Expand Down
1 change: 0 additions & 1 deletion src/assets/i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"treks": "Escursione",
"offline": "Offline",
"more": "Informazioni",
"report": "Segnala un problema",
"emergency": "Emergency"
},
"home": {
Expand Down

0 comments on commit 7bc6bf1

Please sign in to comment.