vote4hk / warsinhk Goto Github PK
View Code? Open in Web Editor NEWStatic website for wars.vote4.hk
Home Page: https://wars.vote4.hk
License: MIT License
Static website for wars.vote4.hk
Home Page: https://wars.vote4.hk
License: MIT License
Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.
I'm submitting a ...
Do you want to request a feature or report a bug?
A bug. (I would say an enhancement but that seems not to be an option here)
What is the current behavior?
When a location is clicked, the map zooms to level 15 disregarding current zoom level.
The map should focus on the new location without zooming out.
When user zooms in a location, the user is interested in the surrounding area. When he clicks on a nearby location, the map shouldn't zoom out.
Since the high risk locations is dense already, zooming out will present the users with even denser locations. User often has to zoom back in.
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
Currently the max zoom level is set at 15 when clicking on a location. Suggest to use option like:
{
maxZoom: Math.max(15, this.map.getZoom())
}
Hi, we are currently having on a research for COVID-19. But we couldn't find the latest csv for "Confirmed cases", please help.
Thank you very much.
Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.
I'm submitting a ...
Do you want to request a feature or report a bug?
In each case card, add a share button to share individual case. The link should be wars.vote4.hk/cases/<case_no>
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.
I'm submitting a ...
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
the app crashes on high-risk map page
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
go to https://wars.vote4.hk/en/high-risk/
click on case #275
page is blank and shows error below
Uncaught (in promise) Error: Invalid LatLng object: (NaN, 114.131)
at new N (leaflet-src.js:1333)
at U (leaflet-src.js:1406)
at e.initialize (leaflet-src.js:7071)
at new e (leaflet-src.js:349)
at Object.t.marker (leaflet-src.js:7336)
at i.dataPointToMarker (highRiskMap.js:240)
at Array.map (<anonymous>)
at n.<anonymous> (highRiskMap.js:261)
at u (runtime.js:69)
at Generator._invoke (runtime.js:288)
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.
I'm submitting a ...
Do you want to request a feature or report a bug?
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.
I'm submitting a ...
What is the current behavior?
The English translation has many cases of awkward phrasing and odd usage in general.
In the High-Risk Areas page, the text in the legend is so long, it causes the legend to cover most of the map on mobile. This makes the map difficult to use in mobile.
What is the expected behavior?
Better translations
Please tell us about your environment:
Doesn't matter, it's a translation fix, so strings only.
Other information
I shall submit a pull request myself to fix this as soon as possible.
Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.
I'm submitting a ...
Do you want to request a feature or report a bug?
Add asymptomatic figures at the summary (hex code: #4f5096)
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.
I'm submitting a ...
What is the current behavior?
Failed to build on node10
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
Probably this is because we are using string.matchAll
which is a node12 function. We better find an alternative for this.
Hi, we are doing a research on local COVID-19 database.
We see the case can be classified by group (e.g. Dancing/Singing Cluster)
But we couldn't find the csv for CHP number of those group, could you please kindly help?
Thank you in advance!
Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.
Case page should accept query strings which accept preset view/ search filter keys/ groups
Example applications:
When user clicks 「確診」in index page, it can land on cases page with 「確診」filtered in the search bar
When user clicks the map in index page, it can land on cases page with the sub-districts filtered in the search bar
Do you want to request a feature or report a bug?
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
hello @lifehome , happy lunar new year,
Our research (with @wmml1234567890 ) on COVID-19 is still running, but we are lacking the CSV file for 2022, could you please offer a help?
Thank you for your kindly attention
Originally posted by @JakeSLLeung in #244 (comment)
hello,
As mentioned, we hope to get the link of csv file for 2022, would you please offer a help to our research? Thank you very much.
I'm submitting a ...
Do you want to request a feature or report a bug?
As a user, I want to go to the corresponding source/ consulate page for further information.
As a user, I also want the information from the airline companies of the special pandemic arrangement, so that I can find travel-related information easily.
What is the expected behaviour?
What is the motivation/use case for changing the behaviour?
Small change to chip component with no library change.
A new tab in Global Case tab list
I can work on it if you guys think these are good to have feature. :)
Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.
I'm submitting a ...
Do you want to request a feature or report a bug?
Add attribute in WarsCaseCard component
What is the current behavior?
Use a function to scroll when loading element the first time
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
What is the motivation / use case for changing the behavior?
It doesn't need a library and it works on most of the browser (except IE on XP)
Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.
I'm submitting a ...
Do you want to request a feature or report a bug?
When user type 'asymptomatic' 「無病徵」in the search bar, it will filter the corresponding cases
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
I'm submitting a ...
What is the current behavior?
The cases list just freezes until new cases are loaded in.
What is the expected behavior?
Something should indicate that the page is actually loading...
Other information
I'll submit a pull request to fix this.
Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.
I'm submitting a ...
Do you want to request a feature or report a bug?
A bug.
What is the current behavior?
The frontpage stated that there is only 5 new cases on the frontpage summary (as rendered on 23rd March, 2020) while I counted 39 cases confirmed on 23rd March in the Cases page.
The frontpage summary (captured at 14:53, 24th March, 2020):
The cases page (captured at 14:57, 24th March, 2020) shows at least the first 6 cases to be confirmed on 23rd. The page is long, but I counted 39 total cases:
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
As demonstrated above.
What is the expected behavior?
The figures should be consistent with the cases list, or there are other display issue that caused the misunderstanding.
What is the motivation / use case for changing the behavior?
To better communicate the epidemic situation.
Please tell us about your environment:
Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.
I'm submitting a ...
Do you want to request a feature or report a bug?
Report a bug,
What is the current behavior?
All are reproduced in Chrome in Google Pixel 3a.
The page is slow when the user toggles between avatar or card views.
In avatar view, the page is lag if user opens/closes a few cards
Suggestions:
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
Me and my friend (Designer) are willing to contribute in this project.
I'm submitting a ...
Reason
Detailed explanation
All the data will be sourced from WHO daily report.
https://www.who.int/emergencies/diseases/novel-coronavirus-2019/situation-reports/
Content to be included in the page:
Trend, global ranking, heat map (maybe), open for discussion.
Sketch
This is definitely a draft, without any style and concrete content.
If you guys are ok with the idea, my designer friend is going to help in redesigning the page.
I'm submitting a ...
What is the current behavior?
Currently, there is a lot of redundant data in the table of cases - items like names of hospitals, patient status, case type, residency, citizenship and classification are typed out in both English and Chinese, which is a waste of space, and should be replaced with a common ID.
Also, the source URLs can become fairly long; it would be a good idea to pass every URL through a URL shortener.
This may be a tiny problem at the moment, but it will save significant amounts of bandwidth when the number of cases increase significantly - which is very likely for COVID-19.
What is the expected behavior?
The database - which we serve to every single device that views the cases page - should be more compact.
Other information
At the moment, status and classification are the only two columns with a common ID already in the table; I will submit a pull request that modifies CaseCard.js to use the language-agnostic columns, and removes the columns from the query in cases.js. This tiny change saves about 60KB with 411 cases.
Also, the classification for case 377 is incorrectly capitalized.
Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.
I'm submitting a ...
Do you want to request a feature or report a bug?
A bug.
In the high risk map, when a location is clicked, a popup will open. When user click on the map, the popup will be closed. When the same location is clicked again, the map zooms out instead of focusing on the location.
Scenario 1
Scenario 2
Scenario 1
The popup should close but the map should not zoom out
Scenario 2
The location should be focused
The map is jumping to unexpected area. User needs to zoom in to the area the he was viewing. That is quite inconvenient.
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
The issue is caused by the state activeDataPoint
not being cleared when the popup is closed. Suggest to fix it either by listening on the popupclose
event to clear activeDataPoint
. Or by checking if the popup is currently open in the getActiveHandler
method.
Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.
I'm submitting a ...
Do you want to request a feature or report a bug?
https://wars.vote4.hk/cases/1
Even I visit a Chinese individual page, the page first show English language and then jump to Chinese language, while SEO is in English
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.
I'm submitting a ...
Do you want to request a feature or report a bug?
Add case per 1M people in https://wars.vote4.hk/world, just like https://www.google.com/covid19-map/
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
Using such approach may make not to set the value on time before navigating to other page
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.