-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- La schermata nuova è accessibile dalle impostazioni - Rinominata una delle due LoginUtilities in SignupUtilities per evitare confusione - Aggiunto Freepik nei riconoscimenti del readme - Rimossi assets relativi all'icona della fotocamera non più utilizzati
- Loading branch information
Showing
23 changed files
with
343 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export class SignupUtilities { | ||
public static getRuoloByEmail(email: string) :string { | ||
if (this.isValidEmail(email)) { | ||
if (email.endsWith("@paziente.it")) | ||
return "PAZIENTE"; | ||
else if (email.endsWith("@medico.it")) | ||
return "MEDICO"; | ||
else if (email.endsWith("@infermiere.it")) | ||
return "INFERMIERE"; | ||
else if (email.endsWith("@admin.it")) | ||
return "ADMIN"; | ||
else | ||
return "NON VALIDA"; | ||
} | ||
else | ||
return "NON VALIDA"; | ||
} | ||
|
||
private static isValidEmail(email: string): boolean { | ||
const emailRegex: RegExp = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; | ||
return emailRegex.test(email); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<ion-header class="ion-no-border" [translucent]="true"> | ||
<ion-toolbar class="legacy-toolbar"> | ||
<div class="container"> | ||
<ion-button class="back-button" fill="transparent" (click)="navigateBack()"> | ||
← | ||
</ion-button> | ||
<ion-label class="tab-name">Riconoscimenti</ion-label> | ||
</div> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content class="credits-content" [fullscreen]="true"> | ||
<ion-row style="height: 16.5%"></ion-row> | ||
<div class="card-container"> | ||
<ion-card class="select-card"> | ||
<ion-card-header> | ||
<ion-img class="card-icon" src="../../assets/icon/settings/credits/flaticon.png"></ion-img> | ||
<ion-row class="card-line"></ion-row> | ||
<ion-card-title class="card-title"> Flaticon </ion-card-title> | ||
<ion-card-subtitle style="display: flex; justify-content: center"> | ||
Icone | ||
</ion-card-subtitle> | ||
</ion-card-header> | ||
</ion-card> | ||
<ion-card class="select-card"> | ||
<ion-card-header> | ||
<ion-img class="card-icon" src="../../assets/icon/settings/credits/freepik.png"></ion-img> | ||
<ion-row class="card-line"></ion-row> | ||
<ion-card-title class="card-title"> Freepik </ion-card-title> | ||
<ion-card-subtitle style="display: flex; justify-content: center"> | ||
Icone | ||
</ion-card-subtitle> | ||
</ion-card-header> | ||
</ion-card> | ||
<ion-card class="select-card"> | ||
<ion-card-header> | ||
<ion-img class="card-icon" src="../../assets/icon/settings/credits/font-awesome.png"></ion-img> | ||
<ion-row class="card-line"></ion-row> | ||
<ion-card-title id="fontawesome">FontAwesome</ion-card-title> | ||
<ion-card-subtitle style="display: flex; justify-content: center"> | ||
Icone | ||
</ion-card-subtitle> | ||
</ion-card-header> | ||
</ion-card> | ||
<ion-card class="select-card"> | ||
<ion-card-header> | ||
<ion-img class="card-icon" src="../../assets/icon/settings/credits/lottiefiles.png"></ion-img> | ||
<ion-row class="card-line"></ion-row> | ||
<ion-card-title class="card-title"> LottieFiles </ion-card-title> | ||
<ion-card-subtitle style="display: flex; justify-content: center"> | ||
Animazioni | ||
</ion-card-subtitle> | ||
</ion-card-header> | ||
</ion-card> | ||
</div> | ||
</ion-content> | ||
|
||
<ion-footer id="footer"> | ||
<ion-toolbar> | ||
<ion-tabs class="bottom-bar"> | ||
<ion-tab-bar class="bottom-tab-bar" slot="bottom"> | ||
<ion-tab-button class="bottom-bar-buttons" (click)="goToHome()"> | ||
<ion-img class="bottom-bar-icons" src="../../assets/icon/bottom-bar/home.png"></ion-img> | ||
Home | ||
</ion-tab-button> | ||
<ion-tab-button class="bottom-bar-buttons" *ngIf="ruolo === 'PAZIENTE'" (click)="goToLogbook()"> | ||
<ion-img class="bottom-bar-icons" src="../../assets/icon/bottom-bar/logbook.png"></ion-img> | ||
Registro | ||
</ion-tab-button> | ||
<ion-tab-button class="bottom-bar-buttons" *ngIf="ruolo === 'PAZIENTE'" (click)="goToReservation()"> | ||
<ion-img class="bottom-bar-icons" src="../../assets/icon/bottom-bar/calendar.png"></ion-img> | ||
Prenota | ||
</ion-tab-button> | ||
<ion-tab-button class="bottom-bar-buttons" *ngIf="ruolo === 'PAZIENTE'" (click)="goToPatientSOS()"> | ||
<ion-img class="bottom-bar-icons" src="../../assets/icon/bottom-bar/sos.png"></ion-img> | ||
SOS | ||
</ion-tab-button> | ||
<ion-tab-button hidden class="bottom-bar-buttons" *ngIf="ruolo === 'INFERMIERE'" (click)="goToDrugs()"> | ||
<ion-img class="bottom-bar-icons" src="../../assets/icon/bottom-bar/drugs.png"></ion-img> | ||
Farmaci | ||
</ion-tab-button> | ||
<ion-tab-button hidden class="bottom-bar-buttons" *ngIf="ruolo === 'INFERMIERE'" (click)="goToShifts()"> | ||
<ion-img class="bottom-bar-icons" src="../../assets/icon/bottom-bar/calendar.png"></ion-img> | ||
Turni | ||
</ion-tab-button> | ||
<ion-tab-button class="bottom-bar-buttons" *ngIf="ruolo === 'INFERMIERE'" (click)="goToNurseSOS()"> | ||
<ion-img class="bottom-bar-icons" src="../../assets/icon/bottom-bar/sos.png"></ion-img> | ||
SOS | ||
</ion-tab-button> | ||
<ion-tab-button class="bottom-bar-buttons" *ngIf="ruolo === 'MEDICO'" (click)="goToNotifs()"> | ||
<ion-img class="bottom-bar-icons" src="../../assets/icon/bottom-bar/notifications.png"></ion-img> | ||
Notifiche | ||
</ion-tab-button> | ||
<ion-tab-button class="bottom-bar-buttons" *ngIf="ruolo === 'MEDICO'" (click)="goToPatients()"> | ||
<ion-img class="bottom-bar-icons" src="../../assets/icon/bottom-bar/patients.png"></ion-img> | ||
Pazienti | ||
</ion-tab-button> | ||
<ion-tab-button class="bottom-bar-buttons" *ngIf="ruolo === 'ADMIN'" (click)="goToRequests()"> | ||
<ion-img class="bottom-bar-icons" src="../../assets/icon/bottom-bar/requests.png"></ion-img> | ||
Richieste | ||
</ion-tab-button> | ||
<ion-tab-button class="bottom-bar-buttons" *ngIf="ruolo === 'ADMIN'" (click)="goToFunctions()"> | ||
<ion-img class="bottom-bar-icons" src="../../assets/icon/bottom-bar/functions.png"></ion-img> | ||
Funzioni | ||
</ion-tab-button> | ||
<ion-tab-button class="bottom-bar-buttons" *ngIf="ruolo === 'ADMIN'" (click)="goToReports()"> | ||
<ion-img class="bottom-bar-icons" src="../../assets/icon/bottom-bar/bug-report.png"></ion-img> | ||
Segnalazioni | ||
</ion-tab-button> | ||
</ion-tab-bar> | ||
</ion-tabs> | ||
</ion-toolbar> | ||
</ion-footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
.credits-content { | ||
.item-title { | ||
margin-left: 0.5em; | ||
font-size: x-large; | ||
font-weight: bold; | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.item-title-icon { | ||
width: 1.62em; | ||
height: auto; | ||
margin-right: 0.5em; | ||
} | ||
|
||
.card-container { | ||
margin-top: 1em; | ||
display: flex; | ||
flex-wrap: wrap; | ||
flex: 1; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
.select-card { | ||
margin-top: 1em; | ||
width: 10em; | ||
height: 10em; | ||
display: inline-flex; | ||
justify-content: center; | ||
align-items: center; | ||
border-radius: 10px; | ||
|
||
.card-icon { | ||
width: 3.5em; | ||
height: auto; | ||
margin: auto; | ||
} | ||
|
||
.card-line { | ||
flex-grow: 1; | ||
margin-top: 0.5em; | ||
border-bottom: 1px solid #ccc; | ||
} | ||
|
||
.card-title { | ||
color: #000; | ||
margin-left: auto; | ||
margin-right: auto; | ||
text-align: center; | ||
} | ||
|
||
#fontawesome { | ||
color: #000; | ||
margin-left: auto; | ||
margin-right: auto; | ||
text-align: center; | ||
font-size: large; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { CreditsPage } from './credits.page'; | ||
|
||
describe('CreditsPage', () => { | ||
let component: CreditsPage; | ||
let fixture: ComponentFixture<CreditsPage>; | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(CreditsPage); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.