JSON canvas initial
This commit is contained in:
@@ -49,6 +49,11 @@ type searchPageData struct {
|
||||
RenderMS int64
|
||||
}
|
||||
|
||||
// ShowPageChrome satisfies the shared layout's contract (see layoutData). The
|
||||
// results page is always ordinary chrome — it is never the editor and never a
|
||||
// canvas — but EditMode is honoured so the two views cannot drift apart.
|
||||
func (d searchPageData) ShowPageChrome() bool { return !d.EditMode }
|
||||
|
||||
// indexEntry is the shared scoreable core of both folder and file index
|
||||
// entries: a forward-slash relative path plus its pre-tokenized basename so
|
||||
// the per-query scoring loop avoids redoing the lowercasing and tokenization
|
||||
|
||||
Reference in New Issue
Block a user