From 60e4765616e231fa67aa8174ce7e00837d646778 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 12 Sep 2024 14:33:17 -0300 Subject: write: repl: use universalUtilities --- src/write/build-modes/repl.js | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) (limited to 'src/write') diff --git a/src/write/build-modes/repl.js b/src/write/build-modes/repl.js index faba8a34..957d2c2d 100644 --- a/src/write/build-modes/repl.js +++ b/src/write/build-modes/repl.js @@ -50,17 +50,12 @@ export async function getContextAssignments({ mediaPath, mediaCachePath, + universalUtilities, + defaultLanguage, - languages, - missingImagePaths, - thumbsCache, - urls, - webRoutes, wikiData, - getSizeOfAdditionalFile, - getSizeOfImagePath, - niceShowAggregate, + niceShowAggregate: showAggregate, }) { let find; try { @@ -72,19 +67,15 @@ export async function getContextAssignments({ } const replContext = { + universalUtilities, + ...universalUtilities, + dataPath, mediaPath, mediaCachePath, - languages, - defaultLanguage, language: defaultLanguage, - missingImagePaths, - thumbsCache, - urls, - webRoutes, - wikiData, ...wikiData, WD: wikiData, @@ -104,9 +95,7 @@ export async function getContextAssignments({ find, bindFind, - getSizeOfAdditionalFile, - getSizeOfImagePath, - showAggregate: niceShowAggregate, + showAggregate, }; replContext.replContext = replContext; -- cgit 1.3.0-6-gf8a5