tickle/modules/utils/index.mjs

126 lines
3.5 KiB
JavaScript
Raw Normal View History

2023-05-09 02:00:53 +00:00
//@ts-check
import { changeTitle } from "./changeTitle.mjs";
2023-05-13 15:26:48 +00:00
//import { createCustomElement } from "./createCustomElement.mjs";
2023-06-06 22:45:16 +00:00
import { createTrackedResponse } from "./createTrackedResponse.mjs";
import { decodeContentLength } from "./decodeContentLength.mjs";
import { deferredPromise } from "./deferredPromise.mjs";
2023-05-09 02:00:53 +00:00
import { documentMode } from "./documentMode.mjs";
import { documentState } from "./documentState.mjs";
2023-06-06 22:45:16 +00:00
import { fetchContentLength } from "./fetchContentLength.mjs";
import { fetchHeaders } from "./fetchHeaders.mjs";
2023-05-09 02:00:53 +00:00
import { fetchMarkdown } from "./fetchMarkdown.mjs";
import { fetchText } from "./fetchText.mjs";
import { generateDomFromString } from "./generateDomFromString.mjs";
import {
getCurrentHashUrl,
hasCurrentHashUrl,
hasNoHashUrl,
} from "./getCurrentHashUrl.mjs";
2023-05-13 15:26:48 +00:00
import { getElementByCSSSelector } from "./getElementByCSSSelector.mjs";
2023-05-09 02:00:53 +00:00
import { getElementById } from "./getElementById.mjs";
import { getFirstTitleContent } from "./getFirstTitleContent.mjs";
2023-06-07 16:51:18 +00:00
import { getPageUniqueId } from "./getPageUniqueId.mjs";
import { getReasonableUuid } from "./getReasonableUuid.mjs";
2023-05-09 02:00:53 +00:00
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";
2023-06-07 16:51:18 +00:00
import { makeBoundConsole } from "./makeBoundConsole.mjs";
2023-06-06 22:45:16 +00:00
import { makeEventEmitter } from "./makeEventEmitter.mjs";
import { makeFileLoader, makeFileLoadersTracker } from "./makeFileLoader.mjs";
import { makeFileSizeFetcher } from "./makeFileSizeFetcher.mjs";
import { makeSignal } from "./makeSignal.mjs";
2023-05-18 21:33:33 +00:00
import { markdownToMarkup } from "./markdownToMarkup.mjs";
import { markupToDom } from "./markupToDom.mjs";
import { memoize } from "./memoize.mjs";
2023-06-06 22:45:16 +00:00
import { noOp } from "./noOp.mjs";
2023-05-09 02:00:53 +00:00
import { not } from "./not.mjs";
import {
onDocumentKeyUp,
onDocumentKeyDown,
onDocumentKey,
} from "./onDocumentKey.mjs";
2023-06-07 16:51:18 +00:00
import {
basename,
filename,
stripExtension,
dirName,
extension,
metadata,
} from "./path.mjs";
2023-06-06 22:45:16 +00:00
import { percentFromProgress } from "./percentFromProgress.mjs";
2023-05-09 02:00:53 +00:00
import { print, makeTemplate } from "./print.mjs";
import {
querySelectorDoc,
querySelectorParent,
querySelectorAll,
} from "./querySelectorAll.mjs";
2023-06-06 22:45:16 +00:00
import { retryPromise } from "./retryPromise.mjs";
2023-05-09 02:00:53 +00:00
import { rewriteLocalUrls } from "./rewriteLocalUrls.mjs";
import { today } from "./today.mjs";
2023-06-06 22:45:16 +00:00
import { UnreachableCaseError } from "./UnreachableCaseError.mjs";
2023-05-09 02:00:53 +00:00
import { wait } from "./wait.mjs";
import { waitIfLocalHost } from "./waitIfLocalHost.mjs";
export {
changeTitle,
2023-06-06 22:45:16 +00:00
createTrackedResponse,
decodeContentLength,
deferredPromise,
2023-05-09 02:00:53 +00:00
documentMode,
documentState,
2023-06-06 22:45:16 +00:00
fetchContentLength,
fetchHeaders,
2023-05-09 02:00:53 +00:00
fetchMarkdown,
fetchText,
generateDomFromString,
getCurrentHashUrl,
hasCurrentHashUrl,
hasNoHashUrl,
2023-05-13 15:26:48 +00:00
getElementByCSSSelector,
2023-05-09 02:00:53 +00:00
getElementById,
getFirstTitleContent,
2023-06-07 16:51:18 +00:00
getPageUniqueId,
getReasonableUuid,
2023-05-09 02:00:53 +00:00
html,
identity,
awaitedIdentity,
isExternalUrl,
isLocalHost,
isNotNull,
2023-06-07 16:51:18 +00:00
makeBoundConsole,
2023-06-06 22:45:16 +00:00
makeEventEmitter,
makeFileLoader,
makeFileLoadersTracker,
makeFileSizeFetcher,
makeSignal,
2023-05-18 21:33:33 +00:00
markdownToMarkup,
markupToDom,
memoize,
2023-05-09 02:00:53 +00:00
not,
2023-06-06 22:45:16 +00:00
noOp,
2023-05-09 02:00:53 +00:00
onDocumentKeyUp,
onDocumentKeyDown,
onDocumentKey,
2023-06-07 16:51:18 +00:00
basename,
filename,
stripExtension,
dirName,
extension,
metadata,
2023-06-06 22:45:16 +00:00
percentFromProgress,
2023-05-09 02:00:53 +00:00
print,
makeTemplate,
querySelectorDoc,
querySelectorParent,
querySelectorAll,
2023-06-06 22:45:16 +00:00
retryPromise,
2023-05-09 02:00:53 +00:00
rewriteLocalUrls,
today,
2023-06-06 22:45:16 +00:00
UnreachableCaseError,
2023-05-09 02:00:53 +00:00
wait,
waitIfLocalHost,
};