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 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

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

@@ -222,7 +222,7 @@ func switchToTab(jid string, w *gtk.Window) {
ver_text.RemoveCSSClass("visitor") ver_text.RemoveCSSClass("visitor")
} else if result.Error != nil && result.Error.Type != "" { } else if result.Error != nil && result.Error.Type != "" {
ver_text.SetText("Got error trying to get version") ver_text.SetText("Got error trying to get version")
ver_text.SetTooltipText(result.Error.Reason + ": "+result.Error.Text) ver_text.SetTooltipText(result.Error.Reason + ": " + result.Error.Text)
ver_text.RemoveCSSClass("visitor") ver_text.RemoveCSSClass("visitor")
ver_text.AddCSSClass("error") ver_text.AddCSSClass("error")
} }

View File

@@ -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

View File

@@ -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"`