mirror of
https://github.com/Unkn0wnCat/matrix-veles.git
synced 2025-08-03 00:28:50 +02:00
webui: Add dashboard widgets
This commit is contained in:
parent
2d68e30ad2
commit
00f4208ad2
29 changed files with 1443 additions and 174 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue