tickle/modules/utils/index.mjs
2023-06-07 18:51:18 +02:00

126 lines
3.5 KiB
JavaScript

//@ts-check
import { changeTitle } from "./changeTitle.mjs";
//import { createCustomElement } from "./createCustomElement.mjs";
import { createTrackedResponse } from "./createTrackedResponse.mjs";
import { decodeContentLength } from "./decodeContentLength.mjs";
import { deferredPromise } from "./deferredPromise.mjs";
import { documentMode } from "./documentMode.mjs";
import { documentState } from "./documentState.mjs";
import { fetchContentLength } from "./fetchContentLength.mjs";
import { fetchHeaders } from "./fetchHeaders.mjs";
import { fetchMarkdown } from "./fetchMarkdown.mjs";
import { fetchText } from "./fetchText.mjs";
import { generateDomFromString } from "./generateDomFromString.mjs";
import {
getCurrentHashUrl,
hasCurrentHashUrl,
hasNoHashUrl,
} from "./getCurrentHashUrl.mjs";
import { getElementByCSSSelector } from "./getElementByCSSSelector.mjs";
import { getElementById } from "./getElementById.mjs";
import { getFirstTitleContent } from "./getFirstTitleContent.mjs";
import { getPageUniqueId } from "./getPageUniqueId.mjs";
import { getReasonableUuid } from "./getReasonableUuid.mjs";
import { identity, awaitedIdentity } from "./identity.mjs";
import { html } from "./html.mjs";
import { isExternalUrl } from "./isExternalUrl.mjs";
import { isLocalHost } from "./isLocalHost.mjs";
import { isNotNull } from "./isNotNull.mjs";
import { makeBoundConsole } from "./makeBoundConsole.mjs";
import { makeEventEmitter } from "./makeEventEmitter.mjs";
import { makeFileLoader, makeFileLoadersTracker } from "./makeFileLoader.mjs";
import { makeFileSizeFetcher } from "./makeFileSizeFetcher.mjs";
import { makeSignal } from "./makeSignal.mjs";
import { markdownToMarkup } from "./markdownToMarkup.mjs";
import { markupToDom } from "./markupToDom.mjs";
import { memoize } from "./memoize.mjs";
import { noOp } from "./noOp.mjs";
import { not } from "./not.mjs";
import {
onDocumentKeyUp,
onDocumentKeyDown,
onDocumentKey,
} from "./onDocumentKey.mjs";
import {
basename,
filename,
stripExtension,
dirName,
extension,
metadata,
} from "./path.mjs";
import { percentFromProgress } from "./percentFromProgress.mjs";
import { print, makeTemplate } from "./print.mjs";
import {
querySelectorDoc,
querySelectorParent,
querySelectorAll,
} from "./querySelectorAll.mjs";
import { retryPromise } from "./retryPromise.mjs";
import { rewriteLocalUrls } from "./rewriteLocalUrls.mjs";
import { today } from "./today.mjs";
import { UnreachableCaseError } from "./UnreachableCaseError.mjs";
import { wait } from "./wait.mjs";
import { waitIfLocalHost } from "./waitIfLocalHost.mjs";
export {
changeTitle,
createTrackedResponse,
decodeContentLength,
deferredPromise,
documentMode,
documentState,
fetchContentLength,
fetchHeaders,
fetchMarkdown,
fetchText,
generateDomFromString,
getCurrentHashUrl,
hasCurrentHashUrl,
hasNoHashUrl,
getElementByCSSSelector,
getElementById,
getFirstTitleContent,
getPageUniqueId,
getReasonableUuid,
html,
identity,
awaitedIdentity,
isExternalUrl,
isLocalHost,
isNotNull,
makeBoundConsole,
makeEventEmitter,
makeFileLoader,
makeFileLoadersTracker,
makeFileSizeFetcher,
makeSignal,
markdownToMarkup,
markupToDom,
memoize,
not,
noOp,
onDocumentKeyUp,
onDocumentKeyDown,
onDocumentKey,
basename,
filename,
stripExtension,
dirName,
extension,
metadata,
percentFromProgress,
print,
makeTemplate,
querySelectorDoc,
querySelectorParent,
querySelectorAll,
retryPromise,
rewriteLocalUrls,
today,
UnreachableCaseError,
wait,
waitIfLocalHost,
};