Merge branch 'master' of github.com:TicketsBot/GoPanel

This commit is contained in:
rxdn 2023-04-13 17:48:16 +01:00
commit 2567c99007
4 changed files with 5 additions and 7 deletions

View File

@ -506,7 +506,7 @@ func (p *panelBody) verifyNamingScheme() bool {
}
// Validate placeholders used
validPlaceholders := []string{"id", "username", "nickname"}
validPlaceholders := []string{"id", "username", "nickname", "id_padded"}
for _, match := range placeholderPattern.FindAllStringSubmatch(*p.NamingScheme, -1) {
if len(match) < 2 { // Infallible
return false

View File

@ -45,7 +45,7 @@
<span slot="header">Tickets</span>
<div slot="content" class="col-1">
<div class="row">
<ChannelDropdown label="Archive Channel" col4 channels={channels} withNull={true}
<ChannelDropdown label="Transcripts Channel" col4 channels={channels} withNull={true}
bind:value={data.archive_channel}/>
<Dropdown label="Overflow Category" col4 bind:value={data.overflow_category_id}>
<option value=-1>Disabled</option>

View File

@ -86,7 +86,7 @@
align-items: center;
width: 100%;
cursor: pointer;
padding: 5px 0 5px 0;
padding: 5px 4%;
}
.sidebar-element:hover {
@ -107,7 +107,6 @@
align-items: center;
color: white !important;
font-size: 18px;
margin-left: 4%;
text-decoration: none;
}
@ -172,7 +171,6 @@
:global(.sidebar-link) {
width: unset;
margin-left: 0 !important;
}
.user-element {

View File

@ -10,7 +10,7 @@ type CustomEmbed struct {
Title *string `json:"title" validate:"omitempty,min=1,max=255"`
Description *string `json:"description" validate:"omitempty,min=1,max=4096"`
Url *string `json:"url" validate:"omitempty,url,max=255"`
Colour Colour `json:"colour" validate:"required,gte=0,lte=16777215"`
Colour Colour `json:"colour" validate:"gte=0,lte=16777215"`
Author Author `json:"author" validate:"dive"`
ImageUrl *string `json:"image_url" validate:"omitempty,url,max=255"`
ThumbnailUrl *string `json:"thumbnail_url" validate:"omitempty,url,max=255"`