Skip to content

Commit

Permalink
Merge pull request #32 from cryptogarageinc/feature/webpack
Browse files Browse the repository at this point in the history
feat: change to webpack
  • Loading branch information
k-matsuzawa authored Nov 15, 2022
2 parents 7620f62 + 2a4f288 commit af2bf35
Show file tree
Hide file tree
Showing 18 changed files with 1,595 additions and 3,021 deletions.
128 changes: 0 additions & 128 deletions .github/workflows/package-prod.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules
dist
.cache
18 changes: 7 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
# ledger-liquid-xpubkey-viewer

## Run
## build

```bash
yarn
yarn start
```
1. npm install

## Operation
2. npm run build

# github pages

- [xpubkey viewer](https://cryptogarageinc.github.io/ledger-liquid-xpubkey-viewer/dist/)

1. ledger connect. (Open ledger liquid Test Hless application.)
2. click connect button. (or open application)
3. set authorization key. (default: test pubkey.)
4. input bip32 path.
5. click generate button on xpubkey.
9 changes: 0 additions & 9 deletions dev_script/appVersion.js

This file was deleted.

14 changes: 0 additions & 14 deletions dev_script/build.js

This file was deleted.

12 changes: 0 additions & 12 deletions dev_script/package/notarize/entitlements.mac.plist

This file was deleted.

23 changes: 0 additions & 23 deletions dev_script/package/notarize/notarize.js

This file was deleted.

104 changes: 104 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Ledger Liquid Xpubkey Viewer</title>
<style>
#main {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 120vh;
font-family: sans-serif;
}
.bip32path {
width: 200px;
}
.xpubkey {
width: 500px;
}
#authPubkey,#authkeyResult,#connectResponse,#checkTestAuthkeyResult {
width: 420px;
}
#authkey-input {
vertical-align: middle;
margin: auto;
}
#requestAuthkey {
vertical-align: top;
margin-top: 13px;
}
h1 {
font-size: 32px;
}
h2 {
font-size: 20px;
font-weight: bold;
}
h3 {
font-size: 16px;
margin-bottom: 0px;
padding-bottom: 0px;
}
.xpubkey-label {
font-size: 12px;
display: inline-block;
width: 8em;
}
</style>
</head>
<body>
<div class="connect">
<h2 id="app-name">ConnectApp: -</h2>
<div class="connect-status">
<input type="button" id="connect" value="connect" />
<input type="text" id="connectResponse" value="disconnect" readonly />
</div>
</div>
<hr/>
<div class="xpub">
<h3 class="xpub-title">xpubkey</h3>
<div class="xpub-input">
<div>
<div class="xpubkey-label">LBTC xpub key</div>
<input type="text" class="bip32path" id="lbtcBip32path" value="m/44h/1776h/0h" />
<input type="button" id="requestLbtcXpubkey" value="generate" />
</div>
<div class="xpub-output">
<textarea rows="2" id="lbtcXpubkey" class="xpubkey" readonly></textarea>
</div>
<div>
<div class="xpubkey-label">JPYS xpub key</div>
<input type="text" class="bip32path" id="jpysBip32path" value="m/44h/1784h/0h" />
<input type="button" id="requestJpysXpubkey" value="generate" />
</div>
<div class="xpub-output">
<textarea rows="2" id="jpysXpubkey" class="xpubkey" readonly></textarea>
</div>
</div>
</div>
<hr/>
<div class="authkey">
<h3 class="authkey-title">set authorization pubkey</h3>
<div class="authkey-input">
<textarea rows="3" id="authPubkey"></textarea>
<input type="button" id="requestAuthkey" value="request" />
</div>
<div class="authkey-output">
<input type="text" id="authkeyResult" value="" readonly />
</div>
</div>

<hr/>
<div class="checkAuthkey">
<h3 class="authkey-title">check testing authorization pubkey</h3>
<div class="authkey-input">
<input type="text" id="checkTestAuthkeyResult" value="" readonly />
<input type="button" id="requestCheckTestAuthkey" value="request" />
</div>
</div>

<script src="./main.js"></script>
</body>
</html>
Loading

0 comments on commit af2bf35

Please sign in to comment.