webui: Add dashboard widgets

This commit is contained in:
Kevin Kandlbinder 2022-03-29 15:33:58 +02:00
parent 2d68e30ad2
commit 00f4208ad2
29 changed files with 1443 additions and 174 deletions

View file

@ -5,6 +5,7 @@ import "github.com/Unkn0wnCat/matrix-veles/internal/config"
type Room struct {
ID string `json:"id"`
Active bool `json:"active"`
Name string `json:"name"`
RoomID string `json:"roomId"`
Debug bool `json:"debug"`
AdminPowerLevel int `json:"adminPowerLevel"`
@ -25,7 +26,8 @@ func MakeRoom(room *config.RoomConfig) *Room {
}
return &Room{
ID: room.ID.String(),
ID: room.ID.Hex(),
Name: room.Name,
Active: room.Active,
RoomID: room.RoomID,
Debug: room.Debug,