-
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
Tailwind improvements #73
Merged
Merged
Changes from all commits
Commits
Show all changes
11 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 bbbc30a
feat: tailwind improvements
Kodylow 97f82a3
feat: minor tailwind improvements
Kodylow 4b99180
fix: move tailwind common text styles into index.css
Kodylow 0ec9a56
fix: constant wallet selection button width
elsirion 6c6e6ad
fix: don't mention FM version, we have compatibility now
elsirion 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
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
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
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,44 @@ | ||
use leptos::*; | ||
|
||
use crate::components::SubmitForm; | ||
use crate::utils::empty_view; | ||
|
||
#[component] | ||
pub fn CreateWallet<F>(on_select: F) -> impl IntoView | ||
where | ||
F: Fn(String) + 'static + Copy, | ||
{ | ||
let (loading, set_loading) = create_signal(false); | ||
let (show_create_wallet_form, set_show_create_wallet_form) = create_signal(false); | ||
let select = move |name: String| { | ||
set_loading.set(true); | ||
on_select(name); | ||
}; | ||
|
||
view! { | ||
<div class="flex justify-center"> | ||
<Show when=move || !show_create_wallet_form.get() fallback=|| empty_view() > | ||
<button | ||
class="mt-4 px-4 py-2 bg-blue-500 text-white font-bold rounded hover:bg-blue-700 focus:outline-none focus:shadow-outline min-w-[200px]" | ||
on:click=move |_| { | ||
set_show_create_wallet_form.set(true); | ||
} | ||
> | ||
"Create a new wallet" | ||
</button> | ||
</Show> | ||
<Show when=move || show_create_wallet_form.get() fallback=|| empty_view() > | ||
<SubmitForm | ||
description="Enter a name for the new wallet".into() | ||
on_submit=move |name| { | ||
set_show_create_wallet_form.set(false); | ||
select(name); | ||
} | ||
placeholder="Wallet Name".into() | ||
submit_label="Create".into() | ||
loading=loading | ||
/> | ||
</Show> | ||
</div> | ||
} | ||
} |
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.
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.
Great refactor!