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

Pwa ify #78

Merged
merged 5 commits into from
Nov 8, 2024
Merged
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
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.