Skip to content

Commit

Permalink
Merge pull request #78 from teomrd/pwa-ify
Browse files Browse the repository at this point in the history
Pwa ify
  • Loading branch information
teomrd authored Nov 8, 2024
2 parents a9dc104 + e2d9ce6 commit 90a84cb
Show file tree
Hide file tree
Showing 17 changed files with 60 additions and 5 deletions.
Binary file added src/assets/images/icons/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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 src/js/components/organisms/markdown/markDownViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const markDownViewer = (() => {
},
autoLink: function () {
const autoLinks = storage.parse("__auto-links__");
if (!autoLinks) return;
// Regular expression to match any words starting with the given patterns
const replacingPatterns = Object.keys(autoLinks)
.map((pattern) => `${pattern}\\w+`)
Expand Down
1 change: 0 additions & 1 deletion src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ const main = async () => {
markDownViewer.init();

globalThis.addEventListener("hashchange", actOnURLStateChange);
actOnURLStateChange();

registerServiceWorker();

Expand Down
63 changes: 59 additions & 4 deletions src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,43 @@
{
"name": "✍️ MiroPad",
"id": "miropad",
"description": "Note-keeping app for the browser & the mobile",
"short_name": "MiroPad",
"theme_color": "#111518",
"background_color": "#000",
"display": "fullscreen",
"display_override": ["window-controls-overlay"],
"display_override": [
"window-controls-overlay"
],
"protocol_handlers": [
{
"protocol": "web+miropad",
"url": "/miropad"
}
],
"shortcuts": [
{
"name": "Start note-keeping in ZEN mode",
"short_name": "Start Zen",
"description": "Automatically get in zen-mode for note keeping",
"url": "/?zen=true",
"icons": [
{
"src": "images/icons/maskable_icon.png",
"sizes": "196x196"
}
]
}
],
"orientation": "portrait",
"Scope": "https://teomrd.github.io/miropad/",
"start_url": "https://teomrd.github.io/miropad/",
"start_url": "https://teomrd.github.io/miropad",
"icons": [
{
"src": "images/icons/maskable_icon.png",
"sizes": "196x196",
"type": "image/png",
"purpose": "any maskable"
"purpose": "maskable"
},
{
"src": "images/icons/icon-72x72.png",
Expand Down Expand Up @@ -56,5 +80,36 @@
"type": "image/png"
}
],
"splash_pages": null
"screenshots": [
{
"src": "images/screenshots/screenshot-375x667.png",
"sizes": "375x667",
"type": "image/png",
"description": "A screenshot of the home page"
},
{
"src": "images/screenshots/screenshot-1280x720.png",
"sizes": "1280x720",
"type": "image/png",
"description": "A screenshot of the home page",
"form_factor": "wide"
}
],
"splash_pages": null,
"share_target": {
"method": "GET",
"params": {
"title": "MiroPad",
"text": "Share a MiroPad note",
"url": "https://teomrd.github.io/miropad"
},
"action": "https://teomrd.github.io/miropad"
},
"dir": "auto",
"lang": "en",
"categories": [
"personalization",
"productivity",
"utilities"
]
}
Binary file removed static/icons/icon-128x128.png
Binary file not shown.
Binary file removed static/icons/icon-144x144.png
Binary file not shown.
Binary file removed static/icons/icon-152x152.png
Binary file not shown.
Binary file removed static/icons/icon-192x192.png
Binary file not shown.
Binary file removed static/icons/icon-384x384.png
Binary file not shown.
Binary file removed static/icons/icon-512x512.png
Binary file not shown.
Binary file removed static/icons/icon-72x72.png
Binary file not shown.
Binary file removed static/icons/icon-96x96.png
Binary file not shown.
Binary file removed static/icons/maskable_icon.png
Binary file not shown.

0 comments on commit 90a84cb

Please sign in to comment.