Add grid view, image to tag (#641)

* Add grid view for tags
* Add tag page
* Import/export tags
* Add tag name uniqueness checks
* Fix styling on missing marker previews
* Add trace loglevel
* Add SQL trace
* Add filter options for tags
* Add tag sort by options
* Add tag page keyboard shortcuts
This commit is contained in:
WithoutPants
2020-07-07 10:35:43 +10:00
committed by GitHub
parent 54430dbc11
commit 244ae54f3f
55 changed files with 1526 additions and 228 deletions

View File

@@ -65,6 +65,8 @@ func logLevelFromString(level string) logrus.Level {
ret = logrus.WarnLevel
} else if level == "Error" {
ret = logrus.ErrorLevel
} else if level == "Trace" {
ret = logrus.TraceLevel
}
return ret
@@ -178,6 +180,15 @@ func Trace(args ...interface{}) {
logger.Trace(args...)
}
func Tracef(format string, args ...interface{}) {
logger.Tracef(format, args...)
l := &LogItem{
Type: "trace",
Message: fmt.Sprintf(format, args...),
}
addLogItem(l)
}
func Debug(args ...interface{}) {
logger.Debug(args...)
l := &LogItem{