Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add PWA support #919

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions internal/view/assets/manifest.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "Shiori",
"short_name": "Shiori",
"display": "fullscreen",
"description": "Shiori is a simple bookmarks manager written in the Go language. Intended as a simple clone of Pocket. You can use it as a command line application or as a web application. This application is distributed as a single binary, which means it can be installed and used easily.",
"icons": [
{
"src": "/assets/res/apple-touch-icon-144x144.png",
"type": "image/png",
"sizes": "144x144"
},
{
"src": "/assets/res/apple-touch-icon-152x152.png",
"type": "image/png",
"sizes": "152x152",
"purpose": "maskable"
},
{
"src": "/assets/res/apple-touch-icon-512x512.png",
"type": "image/png",
"sizes": "512x512",
"purpose": "any"
}
],
"start_url": "/",
"share_target": {
"action": "/share-target/",
"method": "GET",
"params": {
"title": "title",
"text": "text",
"url": "url"
}
}
}
1 change: 1 addition & 0 deletions internal/view/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<link rel="icon" type="image/x-icon" href="assets/res/favicon.ico">

<link href="assets/css/style.css" rel="stylesheet">
<link rel="manifest" href="assets/manifest.webmanifest" />

<script src="assets/js/dayjs.min.js"></script>
<script src="assets/js/vue.min.js"></script>
Expand Down
1 change: 1 addition & 0 deletions internal/view/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<link rel="icon" type="image/x-icon" href="assets/res/favicon.ico">

<link href="assets/css/style.css" rel="stylesheet">
<link rel="manifest" href="assets/manifest.webmanifest" />

<script src="assets/js/vue.min.js"></script>
<script src="assets/js/url.min.js"></script>
Expand Down