Formatting + moved search index fetching to top level

This commit is contained in:
squidfunk
2021-02-24 18:02:09 +01:00
parent cb723d4bef
commit d6317dc514
69 changed files with 404 additions and 328 deletions

View File

@@ -30,9 +30,8 @@ import { mapTo } from "rxjs/operators"
/**
* Watch document
*
* Documents must be implemented as subjects, so all downstream observables are
* automatically updated when a new document is emitted. This enabled features
* like instant loading.
* Documents are implemented as subjects, so all downstream observables are
* automatically updated when a new document is emitted.
*
* @returns Document subject
*/

View File

@@ -21,9 +21,16 @@
*/
import { Observable, fromEvent, merge } from "rxjs"
import { distinctUntilChanged, map, startWith } from "rxjs/operators"
import {
distinctUntilChanged,
map,
startWith
} from "rxjs/operators"
import { getElementContentSize, getElementSize } from "../size"
import {
getElementContentSize,
getElementSize
} from "../size"
/* ----------------------------------------------------------------------------
* Types

View File

@@ -29,10 +29,10 @@ import { Subject } from "rxjs"
/**
* Retrieve location
*
* This function will return a `URL` object (and not `Location`) in order to
* normalize typings across the application. Furthermore, locations need to be
* tracked without setting them and `Location` is a singleton which represents
* the current location.
* This function returns a `URL` object (and not `Location`) to normalize the
* typings across the application. Furthermore, locations need to be tracked
* without setting them and `Location` is a singleton which represents the
* current location.
*
* @returns URL
*/