mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 16:47:32 +00:00
chore: move the go code into a subfolder
This commit is contained in:
14
apps/api/internal/qrcode/readme.md
Normal file
14
apps/api/internal/qrcode/readme.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# QR Code to SVG
|
||||
|
||||
This package is a copy of https://github.com/aaronarduino/goqrsvg with the difference of creating the svg with `class` attribute instead of inline `style`:
|
||||
|
||||
```go
|
||||
s.Rect(currX, currY, qs.blockSize, qs.blockSize, "class=\"color\"")
|
||||
```
|
||||
|
||||
and not
|
||||
```go
|
||||
s.Rect(currX, currY, qs.blockSize, qs.blockSize, "fill:black;stroke:none")
|
||||
```
|
||||
|
||||
This allows the svg to be styled by css more easily and does not compromise Content Security Policy (CSP).
|
Reference in New Issue
Block a user