ad9167360d
* Import: Implement "add to album" in backend #246 Signed-off-by: Michael Mayer <michael@liquidbytes.net> * Import: Implement "add to album" in frontend #246 Signed-off-by: Michael Mayer <michael@liquidbytes.net> * Add OriginalName to photo search result Signed-off-by: Michael Mayer <michael@liquidbytes.net> * Add json tags to PhotoName and PhotoPath Signed-off-by: Michael Mayer <michael@liquidbytes.net> * Photo: Use EstimateCountry() in UpdateLocation() Signed-off-by: Michael Mayer <michael@liquidbytes.net> * Photo: Set OriginalName earlier while indexing Signed-off-by: Michael Mayer <michael@liquidbytes.net> * Ignore whitespace when stripping sequence from filename #335 Signed-off-by: Michael Mayer <michael@liquidbytes.net> * Fix labels count for SQLite Signed-off-by: Michael Mayer <michael@liquidbytes.net> * Import: Show name of new albums #246 Signed-off-by: Michael Mayer <michael@liquidbytes.net> * Frontend: Add acceptance test files Co-authored-by: Michael Mayer <michael@liquidbytes.net>
48 lines
969 B
Go
48 lines
969 B
Go
package entity
|
|
|
|
import "github.com/photoprism/photoprism/internal/classify"
|
|
|
|
const (
|
|
// data sources
|
|
SrcAuto = ""
|
|
SrcManual = "manual"
|
|
SrcEstimate = "estimate"
|
|
SrcName = "name"
|
|
SrcMeta = "meta"
|
|
SrcXmp = "xmp"
|
|
SrcYaml = "yaml"
|
|
SrcLocation = classify.SrcLocation
|
|
SrcImage = classify.SrcImage
|
|
|
|
// sort orders
|
|
SortOrderRelevance = "relevance"
|
|
SortOrderNewest = "newest"
|
|
SortOrderOldest = "oldest"
|
|
SortOrderImported = "imported"
|
|
SortOrderSimilar = "similar"
|
|
SortOrderName = "name"
|
|
|
|
// unknown values
|
|
YearUnknown = -1
|
|
MonthUnknown = -1
|
|
TitleUnknown = "Unknown"
|
|
|
|
TypeDefault = ""
|
|
TypeAlbum = "album"
|
|
TypeFolder = "folder"
|
|
TypeMoment = "moment"
|
|
TypeMonth = "month"
|
|
TypeImage = "image"
|
|
TypeLive = "live"
|
|
TypeVideo = "video"
|
|
TypeRaw = "raw"
|
|
TypeText = "text"
|
|
|
|
RootDefault = ""
|
|
RootImport = "import"
|
|
RootPath = "/"
|
|
|
|
Updated = "updated"
|
|
Created = "created"
|
|
Deleted = "deleted"
|
|
)
|