From a7b3c530a084759aaf6aaebe424a1c7817fb86ad Mon Sep 17 00:00:00 2001 From: DrMint <29893320+DrMint@users.noreply.github.com> Date: Wed, 13 Mar 2024 05:39:58 +0100 Subject: [PATCH] Remove spacer block --- TODO.md | 3 ++- .../Topbar/components/ParentPagesButton.astro | 1 - src/components/Blocks/Block.astro | 4 ---- .../Blocks/components/SpacerBlock.astro | 18 ------------------ .../RichText/components/RTBlock/RTBlock.astro | 4 ---- .../RTBlock/components/RTSpacer.astro | 14 -------------- 6 files changed, 2 insertions(+), 42 deletions(-) delete mode 100644 src/components/Blocks/components/SpacerBlock.astro delete mode 100644 src/components/RichText/components/RTBlock/components/RTSpacer.astro diff --git a/TODO.md b/TODO.md index f64a36f..c32e499 100644 --- a/TODO.md +++ b/TODO.md @@ -4,12 +4,13 @@ - [Collectibles] Create page for gallery - [Collectibles] Create page for scans -- Rich text, handle linebreak node type, remove spacer - Add hover/active styling for settings options in topbar + language override - Highlight currently selected language option in language override tooltip - Support for scene break blocks - [Folder] Add parent pages - When the tags overflow, the tag group name should be align start (see http://localhost:12499/en/pages/magnitude-negative-chapter-1) +- [SDK] create a initPayload() that return a payload sdk (and stop hard wirring to ENV or node-cache) +- [Payload] Compare current package.json with fresh install of create-payload-app ## Long term diff --git a/src/components/AppLayout/components/Topbar/components/ParentPagesButton.astro b/src/components/AppLayout/components/Topbar/components/ParentPagesButton.astro index 3e52b9e..087aa9f 100644 --- a/src/components/AppLayout/components/Topbar/components/ParentPagesButton.astro +++ b/src/components/AppLayout/components/Topbar/components/ParentPagesButton.astro @@ -23,7 +23,6 @@ const { t } = await getI18n(Astro.locals.currentLocale); ) : (
- {/* TODO: Translate */}

{t("header.nav.parentPages.tooltip")}

{parentPages.map((parentPage) => ( diff --git a/src/components/Blocks/Block.astro b/src/components/Blocks/Block.astro index 1d72b35..b87f742 100644 --- a/src/components/Blocks/Block.astro +++ b/src/components/Blocks/Block.astro @@ -3,13 +3,11 @@ import { isBlockLineBlock, type GenericBlock, isBlockCueBlock, - isBlockSpacerBlock, } from "src/shared/payload/payload-sdk"; import LineBlock from "./components/LineBlock.astro"; import CueBlock from "./components/CueBlock.astro"; import ErrorMessage from "components/ErrorMessage.astro"; -import SpacerBlock from "./components/SpacerBlock.astro"; interface Props { block: GenericBlock; @@ -25,8 +23,6 @@ const { block } = Astro.props; ) : isBlockCueBlock(block) ? ( - ) : isBlockSpacerBlock(block) ? ( - ) : ( = { - [SpacerSizes.Small]: 1, - [SpacerSizes.Medium]: 2, - [SpacerSizes.Large]: 4, - [SpacerSizes.XLarge]: 8, -}; ---- - -
diff --git a/src/components/RichText/components/RTBlock/RTBlock.astro b/src/components/RichText/components/RTBlock/RTBlock.astro index 9e3ea3b..403d87b 100644 --- a/src/components/RichText/components/RTBlock/RTBlock.astro +++ b/src/components/RichText/components/RTBlock/RTBlock.astro @@ -4,12 +4,10 @@ import RTSection from "./components/RTSection.astro"; import RTTranscript from "./components/RTTranscript.astro"; import { isBlockNodeSectionBlock, - isBlockNodeSpacerBlock, isBlockNodeTranscriptBlock, type RichTextBlockNode, } from "src/shared/payload/payload-sdk"; import ErrorMessage from "components/ErrorMessage.astro"; -import RTSpacer from "./components/RTSpacer.astro"; interface Props { node: RichTextBlockNode; @@ -24,8 +22,6 @@ const { node, context } = Astro.props; ) : isBlockNodeTranscriptBlock(node) ? ( - ) : isBlockNodeSpacerBlock(node) ? ( - ) : (