Refactored project structure

This commit is contained in:
squidfunk
2021-11-14 16:09:09 +01:00
parent ad1b964aaa
commit 88ba609ee1
52 changed files with 721 additions and 459 deletions

View File

@@ -40,7 +40,10 @@ import {
} from "rxjs"
import { feature } from "~/_"
import { resetHeaderState, setHeaderState } from "~/actions"
import {
resetHeaderState,
setHeaderState
} from "~/actions"
import {
Viewport,
watchElementSize,

View File

@@ -38,8 +38,8 @@ import {
} from "~/actions"
import {
Viewport,
getElement,
getElementSize,
getOptionalElement,
watchViewportAt
} from "~/browser"
@@ -131,7 +131,7 @@ export function mountHeaderTitle(
})
/* Obtain headline, if any */
const headline = getElement<HTMLHeadingElement>("article h1")
const headline = getOptionalElement<HTMLHeadingElement>("article h1")
if (typeof headline === "undefined")
return NEVER