diff --git a/module/discord/guild-icon.go b/module/discord/guild-icon.go deleted file mode 100644 index cb96a38..0000000 --- a/module/discord/guild-icon.go +++ /dev/null @@ -1,17 +0,0 @@ -package discord - -import ( - "bytes" - "github.com/bwmarrin/discordgo" - "image" -) - -func getGuildIcon(s *discordgo.Session, guild *discordgo.UserGuild) (image.Image, error) { - body, err := s.RequestWithBucketID("GET", discordgo.EndpointGuildIcon(guild.ID, guild.Icon), nil, discordgo.EndpointGuildIcon(guild.ID, "")) - if err != nil { - return nil, nil - } - - img, _, err := image.Decode(bytes.NewReader(body)) - return img, err -} diff --git a/module/discord/pages/index.go.html b/module/discord/pages/index.go.html index db36031..8eb21b8 100644 --- a/module/discord/pages/index.go.html +++ b/module/discord/pages/index.go.html @@ -39,87 +39,88 @@ -

Discord | Melon Tools

+

Discord | Melon Tools

{{with .User}} -

My User: {{.Username}}#{{.Discriminator}}

- +

My User: {{.Username}}#{{.Discriminator}}

+ {{end}}
{{with .User.PublicFlags}} -

My Flags:

- +

My Flags:

+ {{end}}

Connections ({{len .Connections}}):

@@ -127,11 +128,11 @@

Guilds ({{len .Guilds}}):

{{range $k, $v := .Guilds}} -
-
-
{{$v.Name}}
-
@*{{$v.ID}}
-
+
+
+
{{$v.Name}}
+
@*{{$v.ID}}
+
{{end}}
diff --git a/module/gitea/pages/index.go.html b/module/gitea/pages/index.go.html index 4bbadb6..2682802 100644 --- a/module/gitea/pages/index.go.html +++ b/module/gitea/pages/index.go.html @@ -22,7 +22,7 @@ -

Gitea | Melon Tools

+

Gitea | Melon Tools

Select repository source:

@@ -31,29 +31,29 @@ {{.Username}} (my user account) {{range .Orgs}} -
  • - {{.Name}} -
  • +
  • + {{.Name}} +
  • {{end}}
    {{if .ShowOrg}} -
    -

    Select repository:

    - -
    +
    +

    Select repository:

    + +
    {{end}} {{if .ShowRepo}} -
    -

    Repository details:

    -

    Go import: go get {{.SelModule}}@v0.0.0-{{.CommitTime}}-{{.CommitHash}}

    -
    +
    +

    Repository details:

    +

    Go import: go get {{.SelModule}}@v0.0.0-{{.CommitTime}}-{{.CommitHash}}

    +
    {{end}}