Giter Site home page Giter Site logo

d4l-data4life / covapp Goto Github PK

View Code? Open in Web Editor NEW
98.0 15.0 48.0 2.39 MB

The app lets everyone assess their symptoms using a questionnaire. The app also informs users about next steps, for example, precautionary measures or contacting healthcare providers and health authorities.

Home Page: https://www.d4l.io/blog/covapp-corona-test-app-open-sourcing/

License: Other

JavaScript 1.77% CSS 8.20% TypeScript 89.20% HTML 0.83%
covapp coronavirus covid-19 charite questionnaire webcomponents stenciljs typescript

covapp's Issues

Fallback language failed

If 'en' is not part of the SUPPORTED_LANGUAGES-Const in .env, the fallback language breaks the app if the the default language of the browser is 'en'.

Bug fix for issue with app.css in stencil.config.ts, color customization not working!

There's a bug in the stencil.config.ts file which prevents any color customization!

The following code at line 14 f.:

globalStyle: process.env.LAYOUT === 'OFFICIAL_COLLABORATION_BZGA' ? 'src/global/app-collaboration-bzga.css' : 'src/global/app.css',

should be replaced by:

globalStyle: 'src/custom/styles/app.css',

Took me a day to finally track down the problem and find the solution.
Hope this is helpful for others who run into the same issue! :)

Build not working

Hi, I tried to set it up.
But it is running into errors:

npm run start

> [email protected] prestart C:\Develop\GitHub\CovOpen\covapp-1
> npm run prepare-customization


> [email protected] prepare-customization C:\Develop\GitHub\CovOpen\covapp-1
> node ./scripts/prepare-customization.js


> [email protected] start C:\Develop\GitHub\CovOpen\covapp-1
> stencil build --dev --watch --serve --no-open

[28:33.2]  @stencil/core v1.11.3
[28:37.1]  build, app, dev mode, started ...
[28:37.1]  transpile started ...
[28:45.8]  transpile finished in 8.69 s

[ ERROR ]  Component Tag Name "ia-recommendation" Must Be Unique
           Please update the components so "ia-recommendation" is only used once:
           ./src/components/recommendation/recommendation.tsx ./src/components/views/recommendation/recommendation.tsx

[28:45.8]  build failed, watching for changes... in 8.71 s

[28:45.8]  http://localhost:3333/

After removing the module:

npm run start

> [email protected] prestart C:\Develop\GitHub\CovOpen\covapp-1
> npm run prepare-customization


> [email protected] prepare-customization C:\Develop\GitHub\CovOpen\covapp-1
> node ./scripts/prepare-customization.js


> [email protected] start C:\Develop\GitHub\CovOpen\covapp-1
> stencil build --dev --watch --serve --no-open

[27:12.4]  @stencil/core v1.11.3
[27:18.5]  build, app, dev mode, started ...
[27:18.5]  transpile started ...
[27:26.1]  transpile finished in 7.54 s

[ ERROR ]  TypeScript: ./src/global/fhir/response.ts:1:10
           Module '"../../../../../../../Develop/GitHub/CovOpen/covapp-1/src/global/fhir"' has no exported member
           'CATEGORIES_VALUESET'.

      L1:  import { CATEGORIES_VALUESET } from '.';
      L2:  import { KeyValue } from '../../components/qr-code/utils';

[ ERROR ]  TypeScript: ./src/global/fhir/response.ts:9:3
           Module '"../../../../../../../Develop/GitHub/CovOpen/covapp-1/src/global/fhir/types"' has no exported member
           'FHIRValueCoding'.

      L8:  FHIRQuestionnaireResponse,
      L9:  FHIRValueCoding,
     L10:  FHIRValueDate,

[ ERROR ]  TypeScript: ./src/global/fhir/response.ts:10:3
           Module '"../../../../../../../Develop/GitHub/CovOpen/covapp-1/src/global/fhir/types"' has no exported member
           'FHIRValueDate'. Did you mean 'FHIRValueSet'?

      L9:    FHIRValueCoding,
     L10:    FHIRValueDate,
     L11:  } from './types';

[ ERROR ]  TypeScript: ./src/global/fhir/response.ts:86:7
           Property 'type' is missing in type '{ linkId: string; text: any; item: any[]; }' but required in type
           'FHIRQuestionnaireItem'.

     L86:    let item: FHIRQuestionnaireItem = {
     L87:      linkId: answers[0].key[0],

[ ERROR ]  TypeScript: ./src/global/fhir/response.ts:102:31
           Property 'split' does not exist on type 'string | number'.Property 'split' does not exist on type 'number'.

    L101:  answerItem = {
    L102:    valueDate: answer.value.split('.').join('-'),
    L103:  };

[ ERROR ]  TypeScript: ./src/global/fhir/response.ts:116:5
           Type '{ linkId: string; text: any; answer: any[]; }' is not assignable to type
           'FHIRQuestionnaireItem'.Object literal may only specify known properties, and 'answer' does not exist in
           type 'FHIRQuestionnaireItem'.

    L115:    text: LANGUAGE_RESOURCES[language].translation[`q_${answer.key}_text`],
    L116:    answer: [answerItem],
    L117:  };

[ ERROR ]  TypeScript: ./src/global/fhir/response.ts:124:19
           Property 'AGE' does not exist on type '{ POSTAL_CODE: string; ABOVE_65: string; HOUSING: string; CARING:
           string; WORKSPACE: string; CONTACT_DATE: string; OUT_OF_BREATH: string; SYMPTOM_DATE: string; DATA_DONATION:
           string; }'.

    L123:  switch (answer.key) {
    L124:    case QUESTION.AGE:
    L125:      return 'http://fhir.data4life.care/covid-19/r4/CodeSystem/age-group';

[27:26.1]  build failed, watching for changes... in 7.57 s

[27:26.1]  http://localhost:3333/

Incorrect date format on US iPhone when setting the app language to German

To reproduce this issue:

  1. Use an iPhone configured for the US market. Could potentially be reproduced on a German iPhone configured for US language settings too.
  2. Install the CovPass app from the US app store
  3. In the Settings app, configure the CovPass app to use "German" as the preferred language

CovPass-SettingsGerman

  1. Open the CovPass app. Notice that the date of the certificate is shown in Month/Day/Year format (the default for US english) instead of the expected Day.Month.Year format.
    CovPass-WrongDateFormat

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.