Skip to content

Commit

Permalink
Push from local
Browse files Browse the repository at this point in the history
  • Loading branch information
somangshu committed May 6, 2021
0 parents commit 5d0b5bb
Show file tree
Hide file tree
Showing 11 changed files with 4,355 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
.vscode/
.DS_Store
59 changes: 59 additions & 0 deletions README.md
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/)
3 changes: 3 additions & 0 deletions dist/background.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
chrome.alarms.onAlarm.addListener(function(alarm) {
alert('beep')
});
36 changes: 36 additions & 0 deletions dist/index.html
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>
Binary file added dist/logovac.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions dist/main.js

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions dist/manifest.json
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"
}
}
8 changes: 8 additions & 0 deletions dist/styles.css
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;
}
Loading

0 comments on commit 5d0b5bb

Please sign in to comment.