People: Add overview page with search and context menu #22

This commit is contained in:
Michael Mayer
2021-09-17 14:26:12 +02:00
parent 9260c93df0
commit ece15c6ade
55 changed files with 1463 additions and 578 deletions

View File

@@ -3,11 +3,12 @@ package form
import "strings"
type Selection struct {
Files []string `json:"files"`
Photos []string `json:"photos"`
Albums []string `json:"albums"`
Labels []string `json:"labels"`
Places []string `json:"places"`
Files []string `json:"files"`
Photos []string `json:"photos"`
Albums []string `json:"albums"`
Labels []string `json:"labels"`
Places []string `json:"places"`
Subjects []string `json:"subjects"`
}
func (f Selection) Empty() bool {
@@ -22,6 +23,8 @@ func (f Selection) Empty() bool {
return false
case len(f.Places) > 0:
return false
case len(f.Subjects) > 0:
return false
}
return true
@@ -36,6 +39,7 @@ func (f Selection) All() []string {
all = append(all, f.Albums...)
all = append(all, f.Labels...)
all = append(all, f.Places...)
all = append(all, f.Subjects...)
return all
}