-
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.
- Loading branch information
0 parents
commit 5d0b5bb
Showing
11 changed files
with
4,355 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules/ | ||
.vscode/ | ||
.DS_Store |
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,59 @@ | ||
# Cobhin-Tracks | ||
|
||
A simple chrome extension built which tracks covid 19 vaccine for a given pin code in India. This application is powered by the APIsetu open apis for covid 19 vaccine (cowin) | ||
|
||
## Features | ||
|
||
- Track vaccination availability on click of a button by just entering your pin code. (The feature is right now available for only 18+) | ||
- Caching of pin code. No need to enter pin code repeatedly. Just click `track` to get updates. | ||
|
||
|
||
## Getting Started | ||
|
||
### To install in Chrome | ||
|
||
- Get a local copy of the codebase from [here](https://github.com/somangshu/cobhin-tracks.git) | ||
- Head over to chrome://extensions | ||
- Toggle "Developer mode" on. | ||
- Click `Load unpacked`. | ||
- Upload the `cobhin-tracks/dist` folder to chrome | ||
- The extension should now be available for use | ||
|
||
**To get started with development, follow the instructions below** | ||
|
||
To get a local copy up and running follow these simple steps. | ||
|
||
- git clone the repo | ||
|
||
``` | ||
git clone https://github.com/somangshu/cobhin-tracks.git && cd cobhin-tracks | ||
``` | ||
|
||
- Install all the required packages with | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
- Build from webpack | ||
|
||
``` | ||
npm run build | ||
``` | ||
|
||
### Automated Tests | ||
|
||
- Currently, there are no automated tests avaailable for this project. This will be implemented at a later date. | ||
|
||
### Roadmap | ||
|
||
- chrome.alarms for reccursive/automated tracking | ||
- Sound notification if a slot if avilable | ||
|
||
## Authors | ||
|
||
👤 **Somangshu Goswami** | ||
|
||
- Github: [@somangshu](https://github.com/somangshu) | ||
- StackOverflow: [@somangshu-goswami](https://stackoverflow.com/users/5826265/somangshu-goswami?tab=profile) | ||
- Linkedin: [somangshu-goswami](https://www.linkedin.com/in/somangshu-goswami/) |
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,3 @@ | ||
chrome.alarms.onAlarm.addListener(function(alarm) { | ||
alert('beep') | ||
}); |
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,36 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | ||
<title>Document</title> | ||
<link rel="stylesheet" href="./styles.css" /> | ||
</head> | ||
<body class="container"> | ||
<form class="form-data" autocomplete="on"> | ||
<div class="enter-country"> | ||
Enter pincode you need vaccination at | ||
</div> | ||
<div> | ||
<input type="text" class="pin-code" /> | ||
</div> | ||
<button class="search-btn">Track</button> | ||
</form> | ||
<div class="result"> | ||
<div class="loading">loading...</div> | ||
<div class="errors"></div> | ||
<div class="data"></div> | ||
<div class="result-container"> | ||
<p><span class="cases"></span></p> | ||
<p><span class="cases noSlots"></span></p> | ||
<p> | ||
<strong>Available at: </strong> <span class="recovered"></span> | ||
</p> | ||
<p><strong>Slots: </strong><span class="deaths"></span></p> | ||
</div> | ||
</div> | ||
|
||
<script src="main.js"></script> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
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,17 @@ | ||
{ | ||
"manifest_version": 2, | ||
"name": "Cobhin-tracks", | ||
"version": "0.1.0", | ||
|
||
"permissions": ["<all_urls>", "alarms", "storage"], | ||
|
||
"background": { | ||
"scripts": ["background.js"], | ||
"persistent": false | ||
}, | ||
|
||
"browser_action": { | ||
"default_icon": "logovac.png", | ||
"default_popup": "index.html" | ||
} | ||
} |
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,8 @@ | ||
.container { | ||
margin: 1.5em; | ||
text-align: center; | ||
} | ||
|
||
.result { | ||
margin-top: 1em; | ||
} |
Oops, something went wrong.