Fix typo, add screenshots

This commit is contained in:
Wancat
2022-10-19 11:22:42 +08:00
parent 2449e9b96a
commit 48051a5874
5 changed files with 27 additions and 3 deletions

View File

@@ -6,9 +6,9 @@
## Feature
### Transaction Template
### Create Transaction from Template
add your transaction template in `tx/` (in Go's template syntax), and create transaction from them on the fly.
Add your transaction template in `tx/` (in Go's template syntax), and create transaction from them in the browser.
Examples:
@@ -30,6 +30,16 @@ Cash expenses
Checkout `tx/` folder for more examples.
![new action](screenshots/action.png)
Adjust your transaction
![confirm](screenshots/confirm.png)
Result page
![result](screenshots/success.png)
### Ledger Scripts
Run some commonly used ledger commands.
@@ -44,6 +54,8 @@ var SCRIPTS = map[string][]string{
}
```
Rebuild binary everytime you make a change to `config.go`
Execute them and see the result in the browser.
![execute result](screenshots/exec.png)
@@ -53,6 +65,18 @@ Execute them and see the result in the browser.
Requirements:
* go
* ledger (Only required when you use scripts)
Install requirements on Debian / Ubuntu based distro:
```
sudo apt install golang ledger
```
Install requirements on Arch based distro:
```
sudo pacman -S golang ledger
```
Clone the repo
```
git clone https://github.com/lancatlin/ledger-quicknote.git

BIN
screenshots/action.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
screenshots/confirm.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
screenshots/success.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>Comfirm new Tx</h1>
<h1>Confirm new Tx</h1>
<form action="/submit" method="POST">
<textarea name="tx" rows="15" cols="40">{{ .Tx }}</textarea><br>
<input type="submit">