chore: enable strict mode (#1569)

* chore: enable strict mode

* refactor: remove sync data access from PatchDbService

* launchable even when no LAN url

Co-authored-by: Matt Hill <matthewonthemoon@gmail.com>
This commit is contained in:
Alex Inkin
2022-07-22 18:51:08 +03:00
committed by GitHub
parent 9a01a0df8e
commit 7b8a0eadf3
130 changed files with 1130 additions and 1045 deletions

View File

@@ -12,15 +12,13 @@ var convert = new Convert({
styleUrls: ['./logs.page.scss'],
})
export class LogsPage {
@ViewChild(IonContent) private content: IonContent
@ViewChild(IonContent) private content?: IonContent
loading = true
loadingMore = false
logs: string
needInfinite = true
startCursor: string
endCursor: string
startCursor?: string
endCursor?: string
limit = 200
scrollToBottomButton = false
isOnBottom = true
constructor(private readonly api: ApiService) {}
@@ -52,7 +50,7 @@ export class LogsPage {
// scroll down
scrollBy(0, afterContainerHeight - beforeContainerHeight)
this.content.scrollToPoint(
this.content?.scrollToPoint(
0,
afterContainerHeight - beforeContainerHeight,
)
@@ -117,7 +115,7 @@ export class LogsPage {
}
scrollToBottom() {
this.content.scrollToBottom(500)
this.content?.scrollToBottom(500)
}
async loadData(e: any): Promise<void> {