diff --git a/adminSiteServer/apiRouter.ts b/adminSiteServer/apiRouter.ts index 8756abe6683..8be002f9e29 100644 --- a/adminSiteServer/apiRouter.ts +++ b/adminSiteServer/apiRouter.ts @@ -77,7 +77,6 @@ import { DeployQueueServer } from "../baker/DeployQueueServer.js" import { FunctionalRouter } from "./FunctionalRouter.js" import { escape } from "mysql" import Papa from "papaparse" -import { ExplorerAdminServer } from "../explorerAdminServer/ExplorerAdminServer.js" import { postsTable, setTagsForPost, @@ -92,12 +91,10 @@ import { dataSource } from "../db/dataSource.js" import { createGdocAndInsertOwidGdocPostContent } from "../db/model/Gdoc/archieToGdoc.js" import { Link } from "../db/model/Link.js" import { In } from "typeorm" -import { GIT_CMS_DIR } from "../gitCms/GitCmsConstants.js" import { logErrorAndMaybeSendToBugsnag } from "../serverUtils/errorLog.js" import { GdocFactory } from "../db/model/Gdoc/GdocFactory.js" const apiRouter = new FunctionalRouter() -const explorerAdminServer = new ExplorerAdminServer(GIT_CMS_DIR) // Call this to trigger build and deployment of static charts on change const triggerStaticBuild = async (user: CurrentUser, commitMessage: string) => { diff --git a/adminSiteServer/app.tsx b/adminSiteServer/app.tsx index 579a1e0f202..f41ba9d5c0e 100644 --- a/adminSiteServer/app.tsx +++ b/adminSiteServer/app.tsx @@ -124,7 +124,6 @@ export class OwidAdminApp { ) }) - const adminExplorerServer = new ExplorerAdminServer(GIT_CMS_DIR) // Public preview of a Gdoc document app.get("/gdocs/:id/preview", async (req, res) => { try { diff --git a/baker/GrapherBaker.tsx b/baker/GrapherBaker.tsx index 01af44f259a..ad992c22d8c 100644 --- a/baker/GrapherBaker.tsx +++ b/baker/GrapherBaker.tsx @@ -54,7 +54,6 @@ import { getMergedGrapherConfigForVariable, } from "../db/model/Variable.js" import { getDatapageDataV2, getDatapageGdoc } from "../datapage/Datapage.js" -import { ExplorerProgram } from "../explorer/ExplorerProgram.js" import { Image } from "../db/model/Image.js" import { logErrorAndMaybeSendToBugsnag } from "../serverUtils/errorLog.js" diff --git a/datapage/Datapage.ts b/datapage/Datapage.ts index 836f51cdde3..5470e246fcc 100644 --- a/datapage/Datapage.ts +++ b/datapage/Datapage.ts @@ -11,7 +11,6 @@ import { getNextUpdateFromVariable, omitUndefinedValues, } from "@ourworldindata/utils" -import { ExplorerProgram } from "../explorer/ExplorerProgram.js" import { GdocPost } from "../db/model/Gdoc/GdocPost.js" import { GdocFactory } from "../db/model/Gdoc/GdocFactory.js" import { OwidGoogleAuth } from "../db/OwidGoogleAuth.js" diff --git a/site/gdocs/components/ArticleBlock.tsx b/site/gdocs/components/ArticleBlock.tsx index ed715022fec..b0c0b4a4a9c 100644 --- a/site/gdocs/components/ArticleBlock.tsx +++ b/site/gdocs/components/ArticleBlock.tsx @@ -20,7 +20,7 @@ import { convertHeadingTextToId } from "@ourworldindata/components" import SDGGrid from "./SDGGrid.js" import { BlockErrorBoundary, BlockErrorFallback } from "./BlockErrorBoundary.js" import { match } from "ts-pattern" -import { renderSpans, useLinkedChart } from "../utils.js" +import { renderSpans } from "../utils.js" import Paragraph from "./Paragraph.js" import TableOfContents from "./TableOfContents.js" import urlSlug from "url-slug"