diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/cli.js | 2 | ||||
-rw-r--r-- | src/util/colors.js | 2 | ||||
-rw-r--r-- | src/util/find.js | 2 | ||||
-rw-r--r-- | src/util/html.js | 2 | ||||
-rw-r--r-- | src/util/io.js | 2 | ||||
-rw-r--r-- | src/util/link.js | 2 | ||||
-rw-r--r-- | src/util/magic-constants.js | 2 | ||||
-rw-r--r-- | src/util/node-utils.js | 2 | ||||
-rw-r--r-- | src/util/replacer.js | 2 | ||||
-rw-r--r-- | src/util/serialize.js | 2 | ||||
-rw-r--r-- | src/util/sugar.js | 2 | ||||
-rw-r--r-- | src/util/urls.js | 2 | ||||
-rw-r--r-- | src/util/wiki-data.js | 2 |
13 files changed, 26 insertions, 0 deletions
diff --git a/src/util/cli.js b/src/util/cli.js index e073bed8..159d526b 100644 --- a/src/util/cli.js +++ b/src/util/cli.js @@ -1,3 +1,5 @@ +// @format +// // Utility functions for CLI- and de8ugging-rel8ted stuff. // // A 8unch of these depend on process.stdout 8eing availa8le, so they won't diff --git a/src/util/colors.js b/src/util/colors.js index 4450a49f..8d6b24df 100644 --- a/src/util/colors.js +++ b/src/util/colors.js @@ -1,3 +1,5 @@ +// @format +// // Color and theming utility functions! Handy. // Graciously stolen from https://stackoverflow.com/a/54071699! ::::) diff --git a/src/util/find.js b/src/util/find.js index 49a3a19a..6ee0583c 100644 --- a/src/util/find.js +++ b/src/util/find.js @@ -1,3 +1,5 @@ +// @format + import { color, logError, logWarn } from "./cli.js"; import { inspect } from "util"; diff --git a/src/util/html.js b/src/util/html.js index ceca5966..913dc7b2 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -1,3 +1,5 @@ +// @format +// // Some really simple functions for formatting HTML content. // COMPREHENSIVE! diff --git a/src/util/io.js b/src/util/io.js index c17e2633..6ea1e221 100644 --- a/src/util/io.js +++ b/src/util/io.js @@ -1,3 +1,5 @@ +// @format +// // Utility functions for interacting with files and other external data // interfacey constructs. diff --git a/src/util/link.js b/src/util/link.js index 0e3be3e5..4095b17d 100644 --- a/src/util/link.js +++ b/src/util/link.js @@ -1,3 +1,5 @@ +// @format +// // This file is essentially one level of a8straction a8ove urls.js (and the // urlSpec it gets its paths from). It's a 8unch of utility functions which // take certain types of wiki data o8jects (colloquially known as "things") diff --git a/src/util/magic-constants.js b/src/util/magic-constants.js index c59e14aa..a7b29332 100644 --- a/src/util/magic-constants.js +++ b/src/util/magic-constants.js @@ -1,3 +1,5 @@ +// @format +// // Magic constants only! These are hard-coded, and any use of them should be // considered a flaw in the codebase - areas where we use hard-coded behavior // to support one use of the wiki software (i.e. HSMusic, usually), rather than diff --git a/src/util/node-utils.js b/src/util/node-utils.js index 889a276c..f638e4ad 100644 --- a/src/util/node-utils.js +++ b/src/util/node-utils.js @@ -1,3 +1,5 @@ +// @format +// // Utility functions which are only relevant to particular Node.js constructs. import { fileURLToPath } from "url"; diff --git a/src/util/replacer.js b/src/util/replacer.js index 311f7633..10603b6c 100644 --- a/src/util/replacer.js +++ b/src/util/replacer.js @@ -1,3 +1,5 @@ +// @format + import { logError, logWarn } from "./cli.js"; import { escapeRegex } from "./sugar.js"; diff --git a/src/util/serialize.js b/src/util/serialize.js index 57736cf4..ab864836 100644 --- a/src/util/serialize.js +++ b/src/util/serialize.js @@ -1,3 +1,5 @@ +// @format + export function serializeLink(thing) { const ret = {}; ret.name = thing.name; diff --git a/src/util/sugar.js b/src/util/sugar.js index 70672bfd..a4504daa 100644 --- a/src/util/sugar.js +++ b/src/util/sugar.js @@ -1,3 +1,5 @@ +// @format +// // Syntactic sugar! (Mostly.) // Generic functions - these are useful just a8out everywhere. // diff --git a/src/util/urls.js b/src/util/urls.js index 8fc2aba7..4e398082 100644 --- a/src/util/urls.js +++ b/src/util/urls.js @@ -1,3 +1,5 @@ +// @format +// // Code that deals with URLs (really the pathnames that get referenced all // throughout the gener8ted HTML). Most nota8ly here is generateURLs, which // is in charge of pre-gener8ting a complete network of template strings diff --git a/src/util/wiki-data.js b/src/util/wiki-data.js index f7610fdb..7e16580d 100644 --- a/src/util/wiki-data.js +++ b/src/util/wiki-data.js @@ -1,3 +1,5 @@ +// @format +// // Utility functions for interacting with wiki data. // Generic value operations |