Skip to content

Commit

Permalink
Add a PWA manifest.json so that TrackBear can be downloaded as a PWA
Browse files Browse the repository at this point in the history
  • Loading branch information
dispatchrabbi committed Oct 5, 2024
1 parent c30a139 commit c50390d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Types of changes include:

## Upcoming/Unreleased

- NEW: You can now install TrackBear as an app on your computer or phone. Look for "Add to Home Screen" or "Install TrackBear" buttons; the way to install TrackBear will differ by OS and browser.
- NEW: Added an Enter Progress button to the sidebar so that it's more obvious how to do that.

## 0.15.1
Expand Down
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ These are in no particular order. Which isn't to say they _aren't_ in any order.
- [X] Graphs: Add "save as image" functionality
- [X] Profiles: Add opt-in public-facing profile
- [X] Profiles: Add ability to put projects and goals on your profile
- [ ] General: Make TrackBear a PWA
- [X] General: Make TrackBear a PWA
- [X] Bug fixes
- [X] Fix small-number (scene/page/chapter) issues in goal stats
- [ ] Ensure that project starting balances are counted in lifetime stats
Expand Down
7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/images/brown-bear.png" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Jost:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<link rel="manifest" href="manifest.json" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Jost:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TrackBear</title>
Expand Down
20 changes: 20 additions & 0 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "TrackBear",
"icons": [
{
"src": "images/brown-bear.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "images/brown-bear.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": "/",
"display_override": ["standalone", "minimal-ui", "browser"],
"display": "standalone",
"theme_color": "#6366f1",
"orientation": "natural"
}

0 comments on commit c50390d

Please sign in to comment.