-
Notifications
You must be signed in to change notification settings - Fork 10
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: chrome extension support #72
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d0fac91
feat: chrome extension support
Kodylow 524c9c1
fix: move inline script into separate initWebimint.js
Kodylow 7db3308
fix: min width of app
Kodylow b925aaf
fix: use sed not grep + -euo
Kodylow e9c422e
fix: sed -i
Kodylow df3307b
fix: post_build handling for trunk serve
Kodylow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[files] | ||
extend-exclude = ["bun.lockb"] |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta name="version" content="{{buildVersion}}"> | ||
<link data-trunk rel="tailwind-css" href="./index.css"/> | ||
<link data-trunk rel="rust" data-wasm-opt="z"/> | ||
<link data-trunk rel="copy-dir" href="./assets/"/> | ||
<link data-trunk rel="copy-file" href="./service-worker.js"/> | ||
<link data-trunk rel="copy-file" href="./manifest.json"/> | ||
<link data-trunk rel="copy-file" href="./favicon.ico"/> | ||
</head> | ||
<body></body> | ||
<head> | ||
<meta name="version" content="{{buildVersion}}" /> | ||
<link data-trunk rel="tailwind-css" href="./index.css" /> | ||
<link data-trunk rel="rust" data-wasm-opt="z" /> | ||
<link data-trunk rel="copy-dir" href="./assets/" /> | ||
<link data-trunk rel="copy-file" href="./service-worker.js" /> | ||
<link data-trunk rel="copy-file" href="./manifest.json" /> | ||
<link data-trunk rel="copy-file" href="./favicon.ico" /> | ||
</head> | ||
<body></body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,42 @@ | ||
{ | ||
"name": "Webimint Fedimint Client", | ||
"short_name": "Webimint", | ||
"start_url": "/", | ||
"display": "standalone", | ||
"background_color": "#ffffff", | ||
"theme_color": "#ffffff", | ||
"icons": [ | ||
{ | ||
"src": "\/assets\/icons\/android-icon-36x36.png", | ||
"sizes": "36x36", | ||
"type": "image\/png", | ||
"density": "0.75" | ||
"manifest_version": 3, | ||
"__chrome__manifest_version": 3, | ||
"name": "Webimint Fedimint Client", | ||
"short_name": "Webimint", | ||
"version": "0.1.0", | ||
"description": "Webimint is an experimental Fedimint wallet using the Leptos web framework.", | ||
"action": { | ||
"default_popup": "index.html", | ||
"default_icon": { | ||
"48": "/assets/icons/android-icon-48x48.png", | ||
"96": "/assets/icons/android-icon-96x96.png", | ||
"192": "/assets/icons/android-icon-192x192.png" | ||
} | ||
}, | ||
{ | ||
"src": "\/assets\/icons\/android-icon-48x48.png", | ||
"sizes": "48x48", | ||
"type": "image\/png", | ||
"density": "1.0" | ||
"background": { | ||
"service_worker": "service-worker.js" | ||
}, | ||
{ | ||
"src": "\/assets\/icons\/android-icon-72x72.png", | ||
"sizes": "72x72", | ||
"type": "image\/png", | ||
"density": "1.5" | ||
"permissions": ["storage", "activeTab"], | ||
"content_scripts": [ | ||
{ | ||
"matches": ["<all_urls>"], | ||
"js": ["webimint-{{buildVersion}}.js"] | ||
} | ||
], | ||
"__chrome__host_permissions": ["*://*/*"], | ||
"content_security_policy": { | ||
"extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self';" | ||
}, | ||
{ | ||
"src": "\/assets\/icons\/android-icon-96x96.png", | ||
"sizes": "96x96", | ||
"type": "image\/png", | ||
"density": "2.0" | ||
}, | ||
{ | ||
"src": "\/assets\/icons\/android-icon-144x144.png", | ||
"sizes": "144x144", | ||
"type": "image\/png", | ||
"density": "3.0" | ||
}, | ||
{ | ||
"src": "\/assets\/icons\/android-icon-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image\/png", | ||
"density": "4.0" | ||
"start_url": "/", | ||
"display": "standalone", | ||
"background_color": "#ffffff", | ||
"theme_color": "#ffffff", | ||
"icons": { | ||
"36": "/assets/icons/android-icon-36x36.png", | ||
"48": "/assets/icons/android-icon-48x48.png", | ||
"72": "/assets/icons/android-icon-72x72.png", | ||
"96": "/assets/icons/android-icon-96x96.png", | ||
"144": "/assets/icons/android-icon-144x144.png", | ||
"192": "/assets/icons/android-icon-192x192.png" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do I even want to know if this was written by GPT? 😆 What a glorious bash script!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup haha, but it works
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Let's have a LLM at junior dev level at best, that sometimes hallucinates, code in a write-only language, what should possibly go wrong" 🤣 (I'm no stranger to this though https://github.com/elsirion/fedimint-observer/blob/181aa61e3be51993bd531d9b072375f2f0113618/src/federation/query.html#L1)