https://github.com/nobonobo/vecty-components
Component Set for Vecty
https://github.com/nobonobo/vecty-components
frontend go gopherjs vecty
Last synced: 28 days ago
JSON representation
Component Set for Vecty
- Host: GitHub
- URL: https://github.com/nobonobo/vecty-components
- Owner: nobonobo
- License: mit
- Created: 2018-11-07T14:08:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-15T10:33:43.000Z (over 6 years ago)
- Last Synced: 2025-01-31T15:46:53.993Z (3 months ago)
- Topics: frontend, go, gopherjs, vecty
- Language: Go
- Size: 73.2 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vecty-components
Component set for [Vecty](https://github.com/gopherjs/vecty)
## Supported environment
- GOOS=js GOARCH=wasm Go1.11~
- GopherJS## Dependency
```sh
make deps
```- go get github.com/gopherjs/gopherjs
- go get github.com/gowasm/gopherwasm
- go get github.com/gowasm/vecty
- go get github.com/gopherjs/vecty
- go get github.com/skip2/go-qrcode
- go get github.com/vincent-petithory/dataurl
- go get github.com/dave/wasmgo## Sample
GopherJS version
```sh
make run
```open http://localhost:8080
WebAssembly version
```sh
make wasm
```
(automatic open http://localhost:8080)## Components
### Camera
- WebRTC getUserMedia
### QR Scanner
- nimiq/qr-scanner wrapper
### QR code
- QR code renderer
### Toggle
- iOS like toggle switch
### Spinner
- Simple SVG base spinner