format code & add additional assets
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/base64"
|
|
||||||
_ "embed"
|
_ "embed"
|
||||||
"github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2"
|
"encoding/base64"
|
||||||
"github.com/diamondburned/gotk4/pkg/gdk/v4"
|
"github.com/diamondburned/gotk4/pkg/gdk/v4"
|
||||||
|
"github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:embed debug.png
|
//go:embed debug.png
|
||||||
@@ -87,7 +87,6 @@ var connectB64 string = base64.StdEncoding.EncodeToString(connectBytes)
|
|||||||
var commentBytes []byte
|
var commentBytes []byte
|
||||||
var commentB64 string = base64.StdEncoding.EncodeToString(commentBytes)
|
var commentB64 string = base64.StdEncoding.EncodeToString(commentBytes)
|
||||||
|
|
||||||
|
|
||||||
//go:embed assets/information.png
|
//go:embed assets/information.png
|
||||||
var informationBytes []byte
|
var informationBytes []byte
|
||||||
var informationB64 string = base64.StdEncoding.EncodeToString(informationBytes)
|
var informationB64 string = base64.StdEncoding.EncodeToString(informationBytes)
|
||||||
@@ -245,7 +244,6 @@ func init() {
|
|||||||
|
|
||||||
clientAssets["connect"] = gdk.NewTextureForPixbuf(loader.Pixbuf())
|
clientAssets["connect"] = gdk.NewTextureForPixbuf(loader.Pixbuf())
|
||||||
|
|
||||||
|
|
||||||
loader = gdkpixbuf.NewPixbufLoader()
|
loader = gdkpixbuf.NewPixbufLoader()
|
||||||
|
|
||||||
commentData, _ := base64.StdEncoding.DecodeString(commentB64)
|
commentData, _ := base64.StdEncoding.DecodeString(commentB64)
|
||||||
@@ -254,7 +252,6 @@ func init() {
|
|||||||
|
|
||||||
clientAssets["comment"] = gdk.NewTextureForPixbuf(loader.Pixbuf())
|
clientAssets["comment"] = gdk.NewTextureForPixbuf(loader.Pixbuf())
|
||||||
|
|
||||||
|
|
||||||
loader = gdkpixbuf.NewPixbufLoader()
|
loader = gdkpixbuf.NewPixbufLoader()
|
||||||
|
|
||||||
informationData, _ := base64.StdEncoding.DecodeString(informationB64)
|
informationData, _ := base64.StdEncoding.DecodeString(informationB64)
|
||||||
|
|||||||
BIN
assets/information.png
Normal file
BIN
assets/information.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 778 B |
BIN
assets/jabber.png
Normal file
BIN
assets/jabber.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 730 B |
2
main.go
2
main.go
@@ -25,8 +25,8 @@ import (
|
|||||||
_ "embed"
|
_ "embed"
|
||||||
"encoding/xml"
|
"encoding/xml"
|
||||||
"github.com/kr/pretty"
|
"github.com/kr/pretty"
|
||||||
"runtime"
|
|
||||||
"io"
|
"io"
|
||||||
|
"runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
var loadedConfig lambdaConfig
|
var loadedConfig lambdaConfig
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ type ReceivedCarbon struct {
|
|||||||
Forwarded stanza.Forwarded
|
Forwarded stanza.Forwarded
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
type SentCarbon struct {
|
type SentCarbon struct {
|
||||||
stanza.MsgExtension
|
stanza.MsgExtension
|
||||||
XMLName xml.Name `xml:"urn:xmpp:carbons:2 sent"`
|
XMLName xml.Name `xml:"urn:xmpp:carbons:2 sent"`
|
||||||
|
|||||||
Reference in New Issue
Block a user