Skip to content

Commit ab57822

Browse files
authored
Refactor components (#36)
* refactor: NpubInput * refactor: BitcoinInput * refactor: FeeRateInput * refactor: NetworkInput * oops all pub(crate) * refactor: TimelockInput * fmt * refactor: EscrowTypeInput * refactor: NsecInput * refactor: TxidInput * fix(navbar): menu closes when clicking new page * ci: check dioxus format and cache binaries * refactor: TransactionInput * refactor: SignatureInput * refactor: EsploraInput * fmt * refactor: TransactionOutput * refactor: SignatureOutput * refactor: TxidInput with optional warning * col_span * refactor: AdressInput * final fixes * ci: fix dioxus caching
1 parent e272c9d commit ab57822

File tree

13 files changed

+844
-1294
lines changed

13 files changed

+844
-1294
lines changed

.github/workflows/ci.yml

+34
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: CI
22

3+
env:
4+
CARGO_TERM_COLOR: always
5+
DIOXUS_VERSION: 0.6.3
6+
37
on:
48
pull_request:
59
push:
@@ -19,6 +23,7 @@ jobs:
1923
path: |
2024
~/.cargo/registry
2125
~/.cargo/git
26+
~/.cargo/bin
2227
target
2328
key: cargo-${{ runner.os }}-formatting-v4-${{ hashFiles('**/Cargo.toml', '**/Cargo.lock') }}
2429
restore-keys: |
@@ -34,6 +39,35 @@ jobs:
3439
run: |
3540
cargo fmt -- --check
3641
42+
dioxus-format:
43+
name: Check Dioxus formatting
44+
runs-on: ubuntu-latest
45+
timeout-minutes: 60
46+
steps:
47+
- uses: actions/checkout@v4
48+
49+
- uses: dtolnay/rust-toolchain@stable
50+
with:
51+
targets: wasm32-unknown-unknown
52+
53+
- uses: actions/cache@v4
54+
with:
55+
path: |
56+
~/.cargo/registry
57+
~/.cargo/git
58+
~/.cargo/bin
59+
target
60+
key: cargo-${{ runner.os }}-rust-dioxus-v2-${{ hashFiles('**/Cargo.toml', '**/Cargo.lock') }}
61+
restore-keys: |
62+
cargo-${{ runner.os }}-rust-dioxus-v2-
63+
cargo-${{ runner.os }}-
64+
65+
- name: Install Dioxus
66+
run: cargo install dioxus-cli@${{ env.DIOXUS_VERSION }} --force
67+
68+
- name: Check Dioxus formatting
69+
run: dx fmt --check
70+
3771
docs:
3872
name: Check docs
3973
runs-on: ubuntu-latest

.github/workflows/gh-pages.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
pages: write
1919
steps:
2020
- uses: actions/checkout@v4
21+
2122
- uses: dtolnay/rust-toolchain@stable
2223
with:
2324
targets: wasm32-unknown-unknown
@@ -27,14 +28,15 @@ jobs:
2728
path: |
2829
~/.cargo/registry
2930
~/.cargo/git
31+
~/.cargo/bin
3032
target
3133
key: cargo-${{ runner.os }}-rust-dioxus-v2-${{ hashFiles('**/Cargo.toml', '**/Cargo.lock') }}
3234
restore-keys: |
3335
cargo-${{ runner.os }}-rust-dioxus-v2-
3436
cargo-${{ runner.os }}-
3537
3638
- name: Install Dioxus
37-
run: cargo install dioxus-cli@${{ env.DIOXUS_VERSION }}
39+
run: cargo install dioxus-cli@${{ env.DIOXUS_VERSION }} --force
3840

3941
- name: Build app
4042
run: dx bundle --release

assets/tailwind.css

+3-167
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)