From 91011ca53f6222fc31ac6c7788d5bcc92e636c08 Mon Sep 17 00:00:00 2001 From: Mistry Date: Wed, 13 Mar 2024 16:07:41 -0400 Subject: [PATCH] Horizontal table of contents implementation --- package.json | 2 +- src/components/story/horizontal-menu.vue | 168 +++++++++++++++++++++++ src/components/story/introduction.vue | 1 - src/components/story/story-content.vue | 37 ++++- src/components/story/story.vue | 13 +- src/definitions.ts | 1 + 6 files changed, 213 insertions(+), 9 deletions(-) create mode 100644 src/components/story/horizontal-menu.vue diff --git a/package.json b/package.json index 8c43c9d..0d88531 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ramp-storylines_demo-scenarios-pcar", "description": "A user-configurable story product featuring interactive maps, charts and dynamic multimedia content alongside text.", - "version": "3.1.0", + "version": "3.1.2", "private": false, "license": "MIT", "repository": "https://github.com/ramp4-pcar4/story-ramp", diff --git a/src/components/story/horizontal-menu.vue b/src/components/story/horizontal-menu.vue new file mode 100644 index 0000000..08740c9 --- /dev/null +++ b/src/components/story/horizontal-menu.vue @@ -0,0 +1,168 @@ + + + + + diff --git a/src/components/story/introduction.vue b/src/components/story/introduction.vue index bbdac9c..1035f6b 100644 --- a/src/components/story/introduction.vue +++ b/src/components/story/introduction.vue @@ -96,7 +96,6 @@ onMounted(() => { // obtain logo from ZIP file if it exists if (props.configFileStructure) { const logo = props.config.logo?.src; - if (logo) { const logoSrc = `${logo.substring(logo.indexOf('/') + 1)}`; const logoFile = props.configFileStructure.zip.file(logoSrc); diff --git a/src/components/story/story-content.vue b/src/components/story/story-content.vue index 600a257..4bd5878 100644 --- a/src/components/story/story-content.vue +++ b/src/components/story/story-content.vue @@ -1,12 +1,23 @@