Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Latest commit

 

History

History
86 lines (57 loc) · 3.22 KB

File metadata and controls

86 lines (57 loc) · 3.22 KB

Frontend of Finding-imposter

Our frontend using Vue.JS created with starport from tendermint there is 2 main pages, user page and doctor page.

Table of contents

  1. Normal user page
    1. Log list and check-in/out section
    2. Quarantine list section
    3. Covid list and report section
  2. Doctor page
    1. Doctor login
    2. Covid list and approve/reject section

User page

This page is the user's page. User's device will open this page after scan QR code. This page contain every function of user as the list below.

  • Check in and Check out.
  • Quarantine.
  • Covid.

user_page

Log section

In this section user could see their check-in and check-out log and could press check in button to commit check in. The location will be assigned automatically

  1. For checking-in click http://localhost:8080/main?id=5faf9e8c6e770822234c3dde

Id is represented the place, we don't allow user to input by themselves but could access via scan our pre-generated QR code

You need to login with mnemonic before checkin QR_code

Find out more places from https://web-swacp72spq-as.a.run.app/place

  1. After user press check in button the application will

    1. Automatically create log transaction with status CHECKIN, timestamp and other required information.
    2. store account into local storage
  2. After user press check out button the application will

    1. Automatically create log transaction with account from local storage, status CHECKOUT, timestamp and other required information.

log

check-in flow chart

check-out flow chart

Quarantine section

In this section our web application will query with account in the local storage and show all quarantine needed for the user.

quarantine

Covid section

Same as log and quarantine, this section will list all covid related transaction and provide the self-report covid button.

After user press the self-report button the application will

  1. Generate new account.
  2. Create covid transaction with timestamp, status PENDING and address from user local storage.
  3. save account to local storage.

covid

report flow chart

Doctor page

This page is for Doctor who verified by trusted third party to see is it any covid pending to approve or reject.

doctor-page

In this state doctor must create the doctor transaction to verify he/she is a doctor. If there is no doctor transaction relate to his/her account he/she will not see as a doctor.

Doctor login page

This page is the first page of the doctor. The verfied doctor must provide nmemonic password in order to access doctor function.

doctor-login

Approval and Reject

This section consist of two parts, one for list pending covid transaction and one for approve/reject each transaction.

doctor-covid

Approve flow chart Table of contents