Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
128-checkboxes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Samuel Åkesson
128-checkboxes
Commits
ad2d9f85
Commit
ad2d9f85
authored
6 months ago
by
Samuel Åkesson
Browse files
Options
Downloads
Patches
Plain Diff
minimal PWA reached!
parent
e5901b90
No related branches found
No related tags found
No related merge requests found
Pipeline
#1130
passed
6 months ago
Stage: deploy
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
static/index.html
+0
-1
0 additions, 1 deletion
static/index.html
static/manifest.webmanifest
+1
-1
1 addition, 1 deletion
static/manifest.webmanifest
static/sw.js
+0
-30
0 additions, 30 deletions
static/sw.js
with
1 addition
and
32 deletions
static/index.html
+
0
−
1
View file @
ad2d9f85
...
@@ -9,7 +9,6 @@
...
@@ -9,7 +9,6 @@
<script
src=
"main.js"
defer
></script>
<script
src=
"main.js"
defer
></script>
<link
rel=
"manifest"
href=
"manifest.webmanifest"
/>
<link
rel=
"manifest"
href=
"manifest.webmanifest"
/>
<!-- <script src="sw.js" defer></script> -->
</head>
</head>
<body>
<body>
<main>
<main>
...
...
This diff is collapsed.
Click to expand it.
static/manifest.webmanifest
+
1
−
1
View file @
ad2d9f85
{
{
"name": "128 checkboxes",
"name": "128 checkboxes",
"start_url": "/",
"start_url": "/
checkboxes
",
"icons": [
"icons": [
{
{
"src": "favicon.png",
"src": "favicon.png",
...
...
This diff is collapsed.
Click to expand it.
static/sw.js
deleted
100644 → 0
+
0
−
30
View file @
e5901b90
const
CACHE_KEY
=
"
checkboxes
"
;
const
cacheList
=
[
"
/
"
,
"
index.html
"
,
"
style.css
"
,
"
favicon.png
"
,
"
main.js
"
];
self
.
addEventListener
(
"
install
"
,
(
e
)
=>
{
e
.
waitUntil
(
caches
.
open
(
CACHE_KEY
)
.
then
((
cache
)
=>
cache
.
addAll
(
cacheList
))
.
then
(()
=>
self
.
skipWaiting
()),
);
});
self
.
addEventListener
(
"
activate
"
,
(
e
)
=>
{
e
.
waitUntil
(
caches
.
keys
()
.
then
((
cacheNames
)
=>
Promise
.
all
(
cacheNames
.
map
((
name
)
=>
name
!==
CACHE_KEY
&&
caches
.
delete
(
name
)),
),
)
.
then
(()
=>
self
.
clients
.
claim
()),
);
});
self
.
addEventListener
(
"
fetch
"
,
(
e
)
=>
{
e
.
respondWith
(
caches
.
match
(
e
.
request
).
then
((
response
)
=>
response
||
fetch
(
e
.
request
)),
);
});
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment