From 485aadb8b0a001bd1585c6159a2e2527d9f43ff0 Mon Sep 17 00:00:00 2001 From: Chris Amico Date: Mon, 18 Nov 2024 09:24:33 -0500 Subject: [PATCH] Remove text loading remnants --- src/lib/load/document.ts | 2 -- src/routes/(app)/documents/[id]-[slug]/+page.ts | 3 +-- src/routes/embed/documents/[id]-[slug]/+page.ts | 3 +-- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/lib/load/document.ts b/src/lib/load/document.ts index 953ecf389..6bf28bcb7 100644 --- a/src/lib/load/document.ts +++ b/src/lib/load/document.ts @@ -25,7 +25,6 @@ export default async function load({ fetch, params, url }: Load) { let mode: ViewerMode = (url.searchParams.get("mode") as ViewerMode) ?? "document"; - const text = { updated: 0, pages: [] }; // await documents.text(document, fetch); const asset_url = await documents.assetUrl(document, fetch); if (!documents.MODES.has(mode)) { @@ -34,7 +33,6 @@ export default async function load({ fetch, params, url }: Load) { return { document, - text, asset_url, mode, }; diff --git a/src/routes/(app)/documents/[id]-[slug]/+page.ts b/src/routes/(app)/documents/[id]-[slug]/+page.ts index 289fc3d8a..3f86b3942 100644 --- a/src/routes/(app)/documents/[id]-[slug]/+page.ts +++ b/src/routes/(app)/documents/[id]-[slug]/+page.ts @@ -16,7 +16,7 @@ import { getQuery } from "$lib/utils/search"; /** @type {import('./$types').PageLoad} */ export async function load({ fetch, params, parent, depends, url }) { - const { document, text, asset_url, mode } = await loadDocument({ + const { document, asset_url, mode } = await loadDocument({ fetch, params, url, @@ -47,7 +47,6 @@ export async function load({ fetch, params, parent, depends, url }) { return { document, mode, - text, asset_url, action, pinnedAddons, diff --git a/src/routes/embed/documents/[id]-[slug]/+page.ts b/src/routes/embed/documents/[id]-[slug]/+page.ts index c3ddfe22d..6001fa11c 100644 --- a/src/routes/embed/documents/[id]-[slug]/+page.ts +++ b/src/routes/embed/documents/[id]-[slug]/+page.ts @@ -9,7 +9,7 @@ import * as documents from "$lib/api/documents"; /** @type {import('./$types').PageLoad} */ export async function load({ fetch, url, params, depends }) { - let { document, text, asset_url, mode } = await loadDocument({ + let { document, asset_url, mode } = await loadDocument({ fetch, url, params, @@ -30,7 +30,6 @@ export async function load({ fetch, url, params, depends }) { return { document, mode, - text, asset_url, settings, query,