format code & add additional assets

This commit is contained in:
2026-03-10 16:48:10 +00:00
parent 77e4e444d4
commit 7a201808e3
11 changed files with 37 additions and 41 deletions

View File

@@ -1,10 +1,10 @@
package main
import (
"encoding/base64"
_ "embed"
"github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2"
"encoding/base64"
"github.com/diamondburned/gotk4/pkg/gdk/v4"
"github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2"
)
//go:embed debug.png
@@ -87,7 +87,6 @@ var connectB64 string = base64.StdEncoding.EncodeToString(connectBytes)
var commentBytes []byte
var commentB64 string = base64.StdEncoding.EncodeToString(commentBytes)
//go:embed assets/information.png
var informationBytes []byte
var informationB64 string = base64.StdEncoding.EncodeToString(informationBytes)
@@ -245,7 +244,6 @@ func init() {
clientAssets["connect"] = gdk.NewTextureForPixbuf(loader.Pixbuf())
loader = gdkpixbuf.NewPixbufLoader()
commentData, _ := base64.StdEncoding.DecodeString(commentB64)
@@ -254,7 +252,6 @@ func init() {
clientAssets["comment"] = gdk.NewTextureForPixbuf(loader.Pixbuf())
loader = gdkpixbuf.NewPixbufLoader()
informationData, _ := base64.StdEncoding.DecodeString(informationB64)

BIN
assets/information.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 778 B

BIN
assets/jabber.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 730 B

View File

@@ -25,8 +25,8 @@ import (
_ "embed"
"encoding/xml"
"github.com/kr/pretty"
"runtime"
"io"
"runtime"
)
var loadedConfig lambdaConfig

View File

@@ -14,7 +14,6 @@ type ReceivedCarbon struct {
Forwarded stanza.Forwarded
}
type SentCarbon struct {
stanza.MsgExtension
XMLName xml.Name `xml:"urn:xmpp:carbons:2 sent"`