From 3189d5a996201589919394ae6828a5f7d5bad047 Mon Sep 17 00:00:00 2001 From: tinykite Date: Tue, 13 Aug 2024 10:16:24 -0500 Subject: [PATCH 01/10] Add CaptureDetails component --- perma_web/frontend/components/CaptureDetails.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 perma_web/frontend/components/CaptureDetails.vue diff --git a/perma_web/frontend/components/CaptureDetails.vue b/perma_web/frontend/components/CaptureDetails.vue new file mode 100644 index 000000000..986cae65c --- /dev/null +++ b/perma_web/frontend/components/CaptureDetails.vue @@ -0,0 +1,15 @@ + + + From eeaaad60ceb6d436d5876937cd9eda96b2d80f6e Mon Sep 17 00:00:00 2001 From: tinykite Date: Tue, 13 Aug 2024 10:20:58 -0500 Subject: [PATCH 02/10] Add SectionHeading component --- .../frontend/components/SectionHeading.vue | 26 +++++++++++++++++++ perma_web/static/css/style-responsive.scss | 16 ++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 perma_web/frontend/components/SectionHeading.vue diff --git a/perma_web/frontend/components/SectionHeading.vue b/perma_web/frontend/components/SectionHeading.vue new file mode 100644 index 000000000..539f9e23d --- /dev/null +++ b/perma_web/frontend/components/SectionHeading.vue @@ -0,0 +1,26 @@ + + + \ No newline at end of file diff --git a/perma_web/static/css/style-responsive.scss b/perma_web/static/css/style-responsive.scss index d2af57510..94f629f84 100644 --- a/perma_web/static/css/style-responsive.scss +++ b/perma_web/static/css/style-responsive.scss @@ -5925,6 +5925,22 @@ Example: calc(4rem / 16) is equal to 4px or 0.25rem */ } } +.c-sectionHeading { + display: flex; + align-items: center; + gap: 6px; + border-top: 2px solid $color-blue; + padding-top: $grid; + padding-bottom: $grid * 2; +} + +.c-sectionHeading__name { + font-size: 22px; + color: $color-blue; + font-family: $font-hed-alt; + font-weight: 700; +} + /* CSS transition classes automatically added/removed by Vue */ .fade-enter-active, .fade-leave-active { From 127820f0c5cced89da37dfbbdb24283dc5dd05ff Mon Sep 17 00:00:00 2001 From: tinykite Date: Tue, 13 Aug 2024 11:14:32 -0500 Subject: [PATCH 03/10] Adjust styles and rename component --- perma_web/frontend/components/CreateLink.vue | 22 ++++++++++++------- perma_web/frontend/components/IconButton.vue | 6 ++--- ...aptureDetails.vue => PermaLinkDetails.vue} | 0 .../frontend/components/SectionHeading.vue | 4 ++++ perma_web/static/css/style-responsive.scss | 12 +++++++++- 5 files changed, 32 insertions(+), 12 deletions(-) rename perma_web/frontend/components/{CaptureDetails.vue => PermaLinkDetails.vue} (100%) diff --git a/perma_web/frontend/components/CreateLink.vue b/perma_web/frontend/components/CreateLink.vue index feb743ca1..2ed1cda33 100644 --- a/perma_web/frontend/components/CreateLink.vue +++ b/perma_web/frontend/components/CreateLink.vue @@ -9,6 +9,8 @@ import LinkCount from './LinkCount.vue'; import FolderSelect from './FolderSelect.vue'; import { useStorage } from '@vueuse/core' import CreateLinkBatch from './CreateLinkBatch.vue'; +import PermaLinkDetails from './PermaLinkDetails.vue'; +import SectionHeading from './SectionHeading.vue'; import { getErrorFromNestedObject, getErrorFromResponseOrStatus, getErrorResponse, folderError, defaultError } from "../lib/errors" import IconButton from './IconButton.vue' import { showDevPlayground } from '../lib/consts' @@ -223,17 +225,21 @@ onBeforeUnmount(() => {

- + + + + diff --git a/perma_web/frontend/components/IconButton.vue b/perma_web/frontend/components/IconButton.vue index aa68bcf6d..92beb6ba0 100644 --- a/perma_web/frontend/components/IconButton.vue +++ b/perma_web/frontend/components/IconButton.vue @@ -34,9 +34,9 @@ const isChevron = props.icon === "chevron-down" || props.icon === "chevron-up"; props.iconFamily === 'fontAwesome' ? `icon-${props.icon}` : '' }`" > - {{ props.name }} diff --git a/perma_web/frontend/components/CaptureDetails.vue b/perma_web/frontend/components/PermaLinkDetails.vue similarity index 100% rename from perma_web/frontend/components/CaptureDetails.vue rename to perma_web/frontend/components/PermaLinkDetails.vue diff --git a/perma_web/frontend/components/SectionHeading.vue b/perma_web/frontend/components/SectionHeading.vue index 539f9e23d..6f3b281bc 100644 --- a/perma_web/frontend/components/SectionHeading.vue +++ b/perma_web/frontend/components/SectionHeading.vue @@ -22,5 +22,9 @@ const props = defineProps({

{{ props.name }}

+
+ + +
\ No newline at end of file diff --git a/perma_web/static/css/style-responsive.scss b/perma_web/static/css/style-responsive.scss index 94f629f84..4f7d0db9f 100644 --- a/perma_web/static/css/style-responsive.scss +++ b/perma_web/static/css/style-responsive.scss @@ -5872,6 +5872,8 @@ Example: calc(4rem / 16) is equal to 4px or 0.25rem */ } .c-button--icon { + display: flex; + align-items: center; color: rgba(0, 0, 0, 0.4); font-size: 2rem; background: none; @@ -5926,8 +5928,10 @@ Example: calc(4rem / 16) is equal to 4px or 0.25rem */ } .c-sectionHeading { - display: flex; + display: grid; + grid-template-columns: auto auto 1fr; align-items: center; + justify-content: start; gap: 6px; border-top: 2px solid $color-blue; padding-top: $grid; @@ -5941,6 +5945,12 @@ Example: calc(4rem / 16) is equal to 4px or 0.25rem */ font-weight: 700; } +.c-sectionHeading__iconButton { + margin-right: 4px; + grid-column: -1 / -1; + justify-self: end; +} + /* CSS transition classes automatically added/removed by Vue */ .fade-enter-active, .fade-leave-active { From 0f92cd76aeca45981471bb1b632ed3e571d2f01c Mon Sep 17 00:00:00 2001 From: tinykite Date: Tue, 13 Aug 2024 13:24:11 -0500 Subject: [PATCH 04/10] Remove upload testing UI --- perma_web/frontend/components/CaptureError.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/perma_web/frontend/components/CaptureError.vue b/perma_web/frontend/components/CaptureError.vue index cdb40bece..647693749 100644 --- a/perma_web/frontend/components/CaptureError.vue +++ b/perma_web/frontend/components/CaptureError.vue @@ -51,7 +51,6 @@ defineExpose({