Skip to content

Commit

Permalink
test pwa
Browse files Browse the repository at this point in the history
  • Loading branch information
refact0r committed Feb 5, 2023
1 parent a190c2a commit 1399f7a
Show file tree
Hide file tree
Showing 13 changed files with 1,576 additions and 13 deletions.
1,459 changes: 1,447 additions & 12 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"eslint-plugin-svelte3": "^3.2.1",
"prettier": "^2.4.1",
"prettier-plugin-svelte": "^2.4.0",
"pwa-asset-generator": "^6.2.1",
"sass": "^1.55.0",
"svelte": "^3.44.0",
"svelte-preprocess": "^4.10.1",
Expand Down
8 changes: 8 additions & 0 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@
<meta charset="utf-8" />
<meta name="description" content="an educational tool for checking grades" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

<meta name="application-name" content="Gradenight" />
<meta name="apple-mobile-web-app-title" content="Gradenight" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="theme-color" content="#13161b" />

<link rel="icon" href="/favicon.png" />
<link rel="manifest" href="/manifest.json" />
<link rel="apple-touch-icon" href="static/apple-icon-180.png" />

<link rel="stylesheet" href="/font/font.css" />
<link rel="stylesheet" href="/bootstrap-icons/bootstrap-icons.css" />
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
}
.week-assignments,
.days,
.improvement,
.assignments {
display: none;
}
Expand Down
7 changes: 7 additions & 0 deletions src/service-worker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/// <reference lib="webworker" />

import { build, files, version } from '$service-worker'

self.addEventListener('fetch', (event) => {
return
})
Binary file added static/apple-icon-180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/favicon-svelte.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/moon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
77 changes: 77 additions & 0 deletions static/icons/moon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/manifest-icon-192.maskable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/manifest-icon-512.maskable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions static/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "Gradenight",
"short_name": "Gradenight",
"start_url": "/",
"scope": "/",
"icons": [
{
"src": "static/manifest-icon-192.maskable.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
"src": "static/manifest-icon-192.maskable.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "static/manifest-icon-512.maskable.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
"src": "static/manifest-icon-512.maskable.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"theme_color": "#13161b",
"background_color": "#13161b",
"display": "minimal-ui"
}

0 comments on commit 1399f7a

Please sign in to comment.