feat: QR Codes (#226)

* code gen updates

* qrcode support

* remove opacity on toast

* update item view to use tab-like pages

* adjust view for cards

* fix old API calls for ioutils

* move embed

* extract QR code

* add docs for QR codes

* add QR code
This commit is contained in:
Hayden 2023-01-18 20:44:06 -09:00 committed by GitHub
parent f532b39c46
commit c19fe94c08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
88 changed files with 3151 additions and 6454 deletions

View file

@ -2,7 +2,6 @@ package main
import (
"fmt"
"io/ioutil"
"os"
"regexp"
)
@ -31,7 +30,7 @@ func main() {
}
text := "/* post-processed by ./scripts/process-types.go */\n"
data, err := ioutil.ReadFile(path)
data, err := os.ReadFile(path)
if err != nil {
fmt.Println(err)
os.Exit(1)
@ -63,7 +62,7 @@ func main() {
text = regex.ReplaceAllString(text, replace)
}
err = ioutil.WriteFile(path, []byte(text), 0644)
err = os.WriteFile(path, []byte(text), 0644)
if err != nil {
fmt.Println(err)
os.Exit(1)