Skip to content

Commit

Permalink
Merge pull request #986 from RADAR-base/release-0.7.6-alpha
Browse files Browse the repository at this point in the history
Release 0.7.6-alpha
  • Loading branch information
mpgxvii committed Mar 27, 2020
2 parents 4393f1a + 63a35ea commit b11a5c9
Show file tree
Hide file tree
Showing 9 changed files with 299 additions and 241 deletions.
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget android-versionCode="543" id="org.phidatalab.radar_armt" ios-CFBundleIdentifier="org.phidatalab.radar-armt" ios-CFBundleVersion="1" version="0.7.5" xmlns:android="http://schemas.android.com/apk/res/android">
<widget android-versionCode="544" id="org.phidatalab.radar_armt" ios-CFBundleIdentifier="org.phidatalab.radar-armt" ios-CFBundleVersion="1" version="0.7.6-alpha" xmlns:android="http://schemas.android.com/apk/res/android">
<name>RADAR Questionnaire</name>
<description>An application that collects active data for research.</description>
<author email="radar-base@kcl.ac.uk" href="http://radar-base.org/">RADAR-Base</author>
Expand Down
42 changes: 21 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,24 @@
"@angular/forms": "^7.2.13",
"@angular/router": "^7.2.13",
"@auth0/angular-jwt": "^3.0.0",
"@ionic-native/android-permissions": "^5.22.0",
"@ionic-native/app-version": "^5.22.0",
"@ionic-native/background-mode": "^5.21.6",
"@ionic-native/barcode-scanner": "^5.21.5",
"@ionic-native/core": "^5.17.1",
"@ionic-native/device": "^5.21.6",
"@ionic-native/dialogs": "^5.22.0",
"@ionic-native/file": "^5.22.0",
"@ionic-native/firebase": "^5.21.5",
"@ionic-native/globalization": "^5.19.1",
"@ionic-native/insomnia": "^5.21.6",
"@ionic-native/keyboard": "^5.20.0",
"@ionic-native/local-notifications": "^5.21.5",
"@ionic-native/mobile-accessibility": "5.22.0",
"@ionic-native/splash-screen": "^5.21.6",
"@ionic-native/vibration": "^5.21.6",
"@ionic-native/status-bar": "^5.21.6",
"@ionic-native/web-intent": "^5.19.1",
"@ionic-native/android-permissions": "^5.23.0",
"@ionic-native/app-version": "^5.23.0",
"@ionic-native/background-mode": "^5.23.0",
"@ionic-native/barcode-scanner": "^5.23.0",
"@ionic-native/core": "^5.23.0",
"@ionic-native/device": "^5.23.0",
"@ionic-native/dialogs": "^5.23.0",
"@ionic-native/file": "^5.23.0",
"@ionic-native/firebase": "^5.23.0",
"@ionic-native/globalization": "^5.23.0",
"@ionic-native/insomnia": "^5.23.0",
"@ionic-native/keyboard": "^5.23.0",
"@ionic-native/local-notifications": "^5.23.0",
"@ionic-native/mobile-accessibility": "^5.23.0",
"@ionic-native/splash-screen": "^5.23.0",
"@ionic-native/vibration": "^5.23.0",
"@ionic-native/status-bar": "^5.23.0",
"@ionic-native/web-intent": "^5.23.0",
"@ionic/storage": "^2.2.0",
"angular-svg-round-progressbar": "^3.0.1",
"autoprefixer": "^9.7.4",
Expand Down Expand Up @@ -111,7 +111,7 @@
"phonegap-plugin-barcodescanner": "^8.1.0",
"phonegap-plugin-mobile-accessibility": "^1.0.5",
"rxjs": "^6.5.4",
"semver": "^6.3.0",
"semver": "^7.1.3",
"smoothscroll-polyfill": "^0.4.4",
"uuid": "^3.4.0",
"yaml": "^1.7.2",
Expand All @@ -124,7 +124,7 @@
"@angular/http": "^7.2.13",
"@angular/platform-browser": "^7.2.13",
"@angular/platform-browser-dynamic": "^7.2.13",
"@angular/platform-server": "^9.0.0",
"@angular/platform-server": "^9.0.5",
"@ionic/app-scripts": "^3.2.4",
"@types/jasmine": "^3.5.0",
"@types/jasminewd2": "^2.0.8",
Expand Down Expand Up @@ -164,7 +164,7 @@
"rxjs-compat": "^6.5.3",
"rxjs-tslint": "0.1.5",
"stylefmt": "^6.0.3",
"stylelint": "^12.0.0",
"stylelint": "^13.2.0",
"stylelint-config-standard": "^20.0.0",
"tslint": "^5.20.1",
"tslint-angular": "^3.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class TaskCalendarComponent implements OnChanges {

constructor(
private localization: LocalizationService,
private logger: LogService,
private logger: LogService
) {}

ngOnChanges() {
Expand All @@ -46,7 +46,8 @@ export class TaskCalendarComponent implements OnChanges {
// NOTE: Compare current time with the start times of the tasks and
// find out in between which tasks it should be shown in the interface
const todaysTasks = this.tasks.get(this.currentDate)
this.timeIndex = todaysTasks.findIndex(t => t.timestamp >= now)
if (todaysTasks)
this.timeIndex = todaysTasks.findIndex(t => t.timestamp >= now)
}

clicked(task) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
*ngSwitchCase="'text'"
(valueChange)="onValueChange($event)"
[type]="question.text_validation_type_or_show_slider_number"
[currentlyShown]="currentlyShown"
></text-input>

<radio-input
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ng-container *ngIf="showDatePicker">
<ng-container *ngIf="showDatePicker && currentlyShown">
<wheel-selector
[values]="datePickerValues"
[selection]="defaultDatePickerValue"
Expand All @@ -7,7 +7,7 @@
></wheel-selector>
</ng-container>

<ng-container *ngIf="showTimePicker">
<ng-container *ngIf="showTimePicker && currentlyShown">
<wheel-selector
[values]="timePickerValues"
[selection]="defaultTimePickerValue"
Expand All @@ -16,7 +16,7 @@
></wheel-selector>
</ng-container>

<ng-container *ngIf="showDurationPicker">
<ng-container *ngIf="showDurationPicker && currentlyShown">
<wheel-selector
[values]="durationPickerValues"
[selection]="defaultDurationPickerValue"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export class TextInputComponent implements OnInit {
valueChange: EventEmitter<string> = new EventEmitter<string>()
@Input()
type: string
@Input()
currentlyShown: boolean

showDatePicker: boolean
showTimePicker: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
</ion-slide>
<ion-slide *ngFor="let question of questions; let i = index">
<question
*ngIf="i >= currentQuestionId - 10 && i <= currentQuestionId + 10"
[question]="question"
[questionIndex]="i"
[currentIndex]="currentQuestionId"
Expand Down
48 changes: 24 additions & 24 deletions src/assets/data/localisations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const Localisations = {
'Bedankt voor uw deelname aan dit onderzoek. Laten we starten met het registratie-proces.',
pl:
'Dziękujemy za wzięcie udziału w badaniu. Przejdź przez proces rejestracji, byś mógł zacząć korzystać z aplikacji',
hb: '.תודה שאתם משתתף במחקר זה. בוא נתחיל את הליך ההרשמה באפליקציה'
hb: 'תודה על השתתפותך במחקר. בוא נתחיל את תהליך ההרשמה.'
},
ENROL_REGISTRATION: {
da: 'Registrering',
Expand Down Expand Up @@ -73,7 +73,7 @@ export const Localisations = {
pl:
'Zanim będziesz mógł korzystać z aplikacji, musisz się zarejestrować. Możesz zeskanować kod QR lub wpisać Token',
hb:
'לפני שתוכל להתחיל להשתמש באפליקציה, אנחנו צריכים שתרשם אליה. תוכל לעשות זאת באמצעות קוד QR או הזנת טוקן'
'לפני שתוכל להתשתמש באפליקציה אנו צריכים שתרשם אליה. תוכל לעשות זאת באמצעות קוד QR או הזנת טוקן.'
},
ENROL_REGISTRATION_SCAN_DESC: {
da:
Expand All @@ -91,7 +91,7 @@ export const Localisations = {
pl:
'Kliknij przycisk Skanuj i skieruj aparat telefonu na kod QR, który otrzymałeś od badacza. Przykładowy kod QR znajduje się poniżej.',
hb:
'.לחץ על כפתור הסריקה וכוון את הממלצה לקוד QR, שניתן לך מהחוקר. דוגמה לקוד QR מוצגת מטה'
'לחץ על כפתור הסריקה וכוון את המצלמה לכיוון קוד הQR שניתן לך על ידי החוקרים. דוגמה לקוד QR מוצגת למטה.'
},
ENROL_REGISTRATION_TOKEN_DESC: {
da:
Expand All @@ -109,7 +109,7 @@ export const Localisations = {
pl:
'Wprowadź Token. Powinien być widoczny poniżej kodu QR w Mahagement Portal. Jeśli go tam nie znajdziesz, zeskanuj kod QR.',
hb:
'הזן את הטוקן. זה אמור להיות זמין לך תחת הקוד QR בפורטל ניהול. אם הוא לא זמין, בבקשה סרוק את הקוד QR.'
'הזן את הטוקן. הוא אמור להיות זמין מתחת לקוד הQR בפורטל הניהול. אם הוא לא זמין בבקשה סרוק את קוד הQR.'
},
ENROL_PREFERENCES: {
da: 'Præferencer',
Expand Down Expand Up @@ -147,7 +147,7 @@ export const Localisations = {
it: 'Registrazione Completa',
nl: 'Registratie Compleet',
pl: 'Rejestracja zakończona',
hb: 'הרשמה הושלמה'
hb: 'ההרשמה הושלמה'
},
ENROL_REGISTRATION_COMPLETE_DESC: {
da:
Expand All @@ -164,7 +164,7 @@ export const Localisations = {
"U bent nu succesvol ingeschreven voor het onderzoek. Klik op 'Voltooid' om uw vragenlijstschema en meldingen te genereren.",
pl:
'Z powodzeniem zarejestrowałeś się w badaniu. Kliknij „Zakończone”, aby wygenerować harmonogram kwestionariusza i powiadomienia',
hb: `.נרשמת בהצלחה למחקר. לחץ על 'סיום' כדי להתחיל ליצור את לוח הזמנים וההודעות שלך`
hb: `נרשמת בהצלחה למחקר. לחץ "סיום" כדי ליצור את לוח הזמנים וההתראות שלך .`
},
FINISH_THANKS: {
da: 'Tak fordi du udfyldte spørgeskemaet.',
Expand All @@ -184,7 +184,7 @@ export const Localisations = {
it: 'Ricorda, hai ancora delle attività in sospeso!',
nl: 'Denk eraan, je hebt nog steeds taken openstaan!',
pl: 'Pamiętaj, że zostały Ci jeszcze zadania do dokończenia!',
hb: 'זכור יש לך משימות לא גמורות'
hb: 'זכור, עדיין יש לך משימות לא גמורות'
},
FINISH_COMPLETED_IN_CLINIC: {
da: 'Afsluttet i klinik?',
Expand Down Expand Up @@ -403,7 +403,7 @@ export const Localisations = {
it: 'Reset app',
nl: 'Reset app',
pl: 'Zresetuj aplikację',
hb: 'לאפס את היישום'
hb: 'אפס אפליקציה'
},
SETTINGS_RESET_ALERT_DESC: {
da: 'Du er ved at nulstille appen.',
Expand Down Expand Up @@ -491,7 +491,7 @@ export const Localisations = {
it: 'Registra le Notifiche',
nl: 'Logmeldingen',
pl: 'Powiadomienia z dziennika',
hb: 'נעל התראות'
hb: 'תיעוד התראות'
},
SETTINGS_SEND_CACHED_DATA: {
da: 'Send Cachelagrede Data',
Expand Down Expand Up @@ -581,7 +581,7 @@ export const Localisations = {
it: 'Polacco',
nl: 'Pools',
pl: 'Polski',
hb: 'פולני'
hb: 'פולנית'
},
LANGUAGE_HEBREW: {
da: 'Hebrew',
Expand Down Expand Up @@ -621,7 +621,7 @@ export const Localisations = {
it: 'Inserisci Il Token',
nl: 'Token Invoeren',
pl: 'Wprowadź Token',
hb: 'הזן טוק'
hb: 'הזן טוקן'
},
BTN_SUBMIT: {
da: 'Indsend',
Expand Down Expand Up @@ -901,7 +901,7 @@ export const Localisations = {
it: 'Notifica di prova',
nl: 'Testmelding',
pl: 'powiadomienie o badaniu',
hb: 'בצע התראת מבח'
hb: 'התראת מבחן'
},
NOTIFICATION_TEST_REMINDER_NOW_DESC: {
da: 'Dette er en test anmeldelse.',
Expand All @@ -925,7 +925,7 @@ export const Localisations = {
nl:
'Vergeet u s.v.p. niet om de RADAR-CNS vragenlijst uiterlijk morgen in te vullen?',
pl: 'Ankietę RADAR-CNS powinieneś wypełnić jutro – prosimy pamiętaj',
hb: 'יש להשלים את שאלון RADAR-CNS מחר- נא לזכור'
hb: 'נא לזכור ששאלון RADAR-CNS צריך להיענות מחר בבוקר'
},
NOTIFICATION_REMINDER_SOON_DESC: {
da: 'Husk at sætte lidt tid af i morgen, til at svare på et par spørgsmål.',
Expand Down Expand Up @@ -1012,7 +1012,7 @@ export const Localisations = {
'Je hebt deze gemist. Maak je geen zorgen! De volgende vragenlijst zal binnenkort verschijnen.',
pl:
'Pominąłeś to pytanie. Nie przejmuj się! Następna ankieta będzie dostępna wkrótce.',
hb: '.פספסת את זאת. אל תדאג! מועד השאלון הבא יהיה בקרוב'
hb: 'פספסת את שאלון זה. אל תדאג! השאלון הבא יהיה בקרוב'
},
NOTIFICATION_REMINDER_FORGOTTEN_ALERT_LASTOFNIGHT_DESC: {
da:
Expand All @@ -1023,7 +1023,7 @@ export const Localisations = {
it: "Hai perso l'ultimo. Non preoccuparti! Buonanotte.",
nl: 'Je hebt de laatste gemist. Maak je geen zorgen! Goede nacht.',
pl: 'Pominąłeś ostatnie pytanie. Nie przejmuj się! Dobranoc.',
hb: 'פספסת את האחרונה. אל תדאג! שיהיה לך לילה טוב'
hb: 'פספסת את השאלון האחרון. אל תדאג! שיהיה לך לילה טוב'
},
MEASURE_PROGRESS: {
da: 'Fremgang',
Expand Down Expand Up @@ -1081,7 +1081,7 @@ export const Localisations = {
pl:
'przygotowane dla Ciebie przez RADAR-Base. Aby uzyskać więcej informacji kliknij <a href="http://radar-base.org">aquí</a>.',
hb:
'נעשה באהבה בשבילך על ידי קונצרסיום RADAR-Base.למידע נוסף לחץ- k <a href=http://radar-base.org>here</a>.'
'נעשה עבורך באהבה על ידי קונצרסיום RADAR-Base. למידע נוסף לחץ- http://radar-base.org'
},
TASK_CALENDAR_TITLE: {
da: 'Dagens opgaver',
Expand All @@ -1101,7 +1101,7 @@ export const Localisations = {
it: 'Richiede un posto tranquillo',
nl: 'Vereist een rustige omgeving',
pl: 'Wymaga cichego otoczenia',
hb: 'דורשת מקום שקט'
hb: 'דורש מקום שקט'
},
TASK_PROGRESS_TITLE: {
da: 'I dag',
Expand Down Expand Up @@ -1161,7 +1161,7 @@ export const Localisations = {
it: 'Ben fatto!',
nl: 'Goed gedaan!',
pl: 'Gratulacje!',
hb: 'הכבוד'
hb: 'כל הכבוד!'
},
TASK_BAR_AFFIRMATION_2: {
da: 'Alle opgaver er gennemført.',
Expand All @@ -1181,7 +1181,7 @@ export const Localisations = {
it: 'Resisti! ',
nl: 'Wacht! ',
pl: 'Czekaj! ',
hb: '!כל הכבוד '
hb: 'החזק מעמד!'
},
TASK_BAR_TASK_LEFT_2: {
da: 'Der er stadig et par spørgsmål tilbage',
Expand All @@ -1201,7 +1201,7 @@ export const Localisations = {
it: 'Relax!',
nl: 'Ontspan!',
pl: 'Spokojnie!',
hb: '!תרגע'
hb: 'הירגע!'
},
TASK_BAR_NO_TASK_2: {
da: 'Der er ingen opgaver I dag.',
Expand Down Expand Up @@ -1323,7 +1323,7 @@ export const Localisations = {
it: 'Tentativi rimanenti',
nl: 'Pogingen blijven',
pl: 'Pozostało prób',
hb: 'נסיונות שנותר'
hb: 'ניסיונותו שנותרו'
},
AUDIO_TASK_HAPPY_ALERT: {
da: 'Indsend optagelse?',
Expand All @@ -1333,7 +1333,7 @@ export const Localisations = {
it: 'Invia la registrazione?',
nl: 'Opname verzenden?',
pl: 'Dodaj nagranie',
hb: 'שלח הקלטה'
hb: 'לשלוח הקלטה?'
},
CONFIG_ERROR_DESC: {
da: 'Config opdatering mislykkes. Prøve igen?',
Expand All @@ -1343,7 +1343,7 @@ export const Localisations = {
it: "Errore nell'aggiornamento della configurazione. Riprovare?",
nl: 'Config-update mislukt. Opnieuw?',
pl: 'Nieudana konfiguracja akutualizacji. Powtórzyć?',
hb: '?עדכון קונפיג נכשל. לנסות שוב'
hb: 'עדכון קונפיגורציה נכשל. לנסות שוב?'
},
SPLASH_STATUS_UPDATING_CONFIG: {
da: 'Opdaterer underretninger og planlæg...',
Expand All @@ -1363,6 +1363,6 @@ export const Localisations = {
it: 'Invio dei registri dei questionari persi ...',
nl: 'Logboeken gemiste vragenlijst verzenden...',
pl: 'Wyślij brakujące dzienniki kwestionariusza',
hb: '... שליחת יומני שאלון שהוחמצו'
hb: 'שליחת שאלונים שהוחמצו...'
}
}
Loading

0 comments on commit b11a5c9

Please sign in to comment.