Skip to content

Commit

Permalink
Internal type map updated, not in use yet though
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Feb 6, 2025
1 parent c2ff8b3 commit f6ef22a
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions modules/frontend/render.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package frontend

type typeinfo struct {
Name string
Icon string
Name string `json:"name"`
Icon string `json:"icon"`
BackgroundColor string `json:"background-color"`
}

var typeInfos = map[string]typeinfo{
"User": {
Name: "User",
"Person": {
Name: "Person",
Icon: "icons/person-fill.svg",
},
"Group": {
Expand All @@ -22,15 +23,15 @@ var typeInfos = map[string]typeinfo{
Name: "Machine",
Icon: "icons/tv-fill.svg",
},
"ManagedServiceAccount": {
"ms-DS-Managed-Service-Account": {
Name: "Managed Service Account",
Icon: "icons/manage_accounts_black_24dp.svg",
},
"GroupManagedServiceAccount": {
"ms-DS-Group-Managed-Service-Account": {
Name: "Group Managed Service Account",
Icon: "icons/manage_accounts_black_24dp.svg",
},
"ForeignSecurityPrincipal": {
"Foreign-Security-Principal": {
Name: "Foreign Security Principal",
Icon: "icons/badge_black_24dp.svg",
},
Expand All @@ -50,23 +51,23 @@ var typeInfos = map[string]typeinfo{
Name: "Executable",
Icon: "icons/binary-code-binary-svgrepo-com.svg",
},
"GroupPolicyContainer": {
"Group-Policy-Container": {
Name: "Group Policy Container",
Icon: "icons/gpo.svg",
},
"OrganizationalUnit": {
"Organizational-Unit": {
Name: "Organizational Unit",
Icon: "icons/source_black_24dp.svg",
},
"Container": {
Name: "Container",
Icon: "icons/folder_black_24dp.svg",
},
"CertificateTemplate": {
"MS-PKI-Certificate-Template": {
Name: "Certificate Template",
Icon: "icons/certificate.svg",
},
"DNSNode": {
"DNS-Node": {
Name: "DNS Node",
Icon: "icons/source_black_24dp.svg",
},
Expand Down

0 comments on commit f6ef22a

Please sign in to comment.