Skip to content

Commit 6b10a2b

Browse files
committed
ThemeContainsPark
1 parent 7c4cbfd commit 6b10a2b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

models/user/user.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,3 +1294,18 @@ func GetOrderByName() string {
12941294
}
12951295
return "name"
12961296
}
1297+
1298+
// user customer funtions
1299+
func contain(s []string, e string) bool {
1300+
for _, a := range s {
1301+
if a == e {
1302+
return true
1303+
}
1304+
}
1305+
return false
1306+
}
1307+
1308+
func (u *User) ThemeContainsPark() bool {
1309+
ars := []string{"plex", "aquamarine", "dark", "dracula", "hotline", "organizr", "space-gray", "hotpink", "onedark", "overseerr", "nord"}
1310+
return contain(ars, u.Theme)
1311+
}

0 commit comments

Comments
 (0)