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 @@
+
+
+
+
+
+
+
+
{{ 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 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 }}
+
+
+
+
\ 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({
-
{{ globalStore.captureErrorMessage }}
Please log in to continue.
From 818d713d99ad926850aa80421229f6fa7c9a5ccc Mon Sep 17 00:00:00 2001
From: tinykite
Date: Tue, 13 Aug 2024 13:24:27 -0500
Subject: [PATCH 05/10] Add additional UI for testing
---
perma_web/frontend/components/CreateLink.vue | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/perma_web/frontend/components/CreateLink.vue b/perma_web/frontend/components/CreateLink.vue
index 2ed1cda33..776947ea7 100644
--- a/perma_web/frontend/components/CreateLink.vue
+++ b/perma_web/frontend/components/CreateLink.vue
@@ -228,18 +228,30 @@ onBeforeUnmount(() => {
-
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
From 8c0ac009b540bf1ed318376d45c2bc3a81cf5e8d Mon Sep 17 00:00:00 2001
From: tinykite
Date: Tue, 13 Aug 2024 13:54:40 -0500
Subject: [PATCH 06/10] Adjust styles
---
perma_web/frontend/components/IconButton.vue | 2 +-
perma_web/static/css/style-responsive.scss | 10 ++++++++--
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/perma_web/frontend/components/IconButton.vue b/perma_web/frontend/components/IconButton.vue
index 92beb6ba0..2b3d8c8d5 100644
--- a/perma_web/frontend/components/IconButton.vue
+++ b/perma_web/frontend/components/IconButton.vue
@@ -34,7 +34,7 @@ const isChevron = props.icon === "chevron-down" || props.icon === "chevron-up";
props.iconFamily === 'fontAwesome' ? `icon-${props.icon}` : ''
}`"
>
-
+
diff --git a/perma_web/static/css/style-responsive.scss b/perma_web/static/css/style-responsive.scss
index 4f7d0db9f..fbc341d7a 100644
--- a/perma_web/static/css/style-responsive.scss
+++ b/perma_web/static/css/style-responsive.scss
@@ -5878,7 +5878,6 @@ Example: calc(4rem / 16) is equal to 4px or 0.25rem */
font-size: 2rem;
background: none;
border: none;
- margin-inline: 0.5rem;
padding: 0;
&:hover, &:focus {
@@ -5886,6 +5885,14 @@ Example: calc(4rem / 16) is equal to 4px or 0.25rem */
}
}
+.c-button--icon:not(:last-child) {
+ margin-inline-end: 1rem;
+}
+
+.c-button__chevron {
+ margin-inline: 1rem;
+}
+
.c-button--link, .c-button--privateLink {
padding: 0;
background: none;
@@ -5946,7 +5953,6 @@ Example: calc(4rem / 16) is equal to 4px or 0.25rem */
}
.c-sectionHeading__iconButton {
- margin-right: 4px;
grid-column: -1 / -1;
justify-self: end;
}
From 62b751f0fc78013567755b56021807ac40134948 Mon Sep 17 00:00:00 2001
From: tinykite
Date: Tue, 13 Aug 2024 14:46:43 -0500
Subject: [PATCH 07/10] Add missing aria-hidden attribute
---
perma_web/frontend/components/SectionHeading.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/perma_web/frontend/components/SectionHeading.vue b/perma_web/frontend/components/SectionHeading.vue
index 6f3b281bc..8e9320f62 100644
--- a/perma_web/frontend/components/SectionHeading.vue
+++ b/perma_web/frontend/components/SectionHeading.vue
@@ -15,7 +15,7 @@ const props = defineProps({
-
+
From 59926109be9907f62be6a9ee529ec92d0a7437ed Mon Sep 17 00:00:00 2001
From: tinykite
Date: Wed, 14 Aug 2024 09:18:10 -0500
Subject: [PATCH 08/10] Move components
---
perma_web/frontend/components/App.vue | 3 ++
perma_web/frontend/components/CreateLink.vue | 29 -------------
.../frontend/components/PermaLinkDetails.vue | 43 ++++++++++++++++++-
3 files changed, 44 insertions(+), 31 deletions(-)
diff --git a/perma_web/frontend/components/App.vue b/perma_web/frontend/components/App.vue
index fe0d1030a..e2155c997 100644
--- a/perma_web/frontend/components/App.vue
+++ b/perma_web/frontend/components/App.vue
@@ -1,9 +1,11 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
From 3df12e55ff0b3d314cfc1bd1bdd7bc54376172cc Mon Sep 17 00:00:00 2001
From: tinykite
Date: Wed, 14 Aug 2024 09:43:21 -0500
Subject: [PATCH 09/10] Translate px size to rems
---
perma_web/static/css/style-responsive.scss | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/perma_web/static/css/style-responsive.scss b/perma_web/static/css/style-responsive.scss
index fbc341d7a..829362378 100644
--- a/perma_web/static/css/style-responsive.scss
+++ b/perma_web/static/css/style-responsive.scss
@@ -5939,14 +5939,14 @@ Example: calc(4rem / 16) is equal to 4px or 0.25rem */
grid-template-columns: auto auto 1fr;
align-items: center;
justify-content: start;
- gap: 6px;
+ gap: 0.6rem;
border-top: 2px solid $color-blue;
padding-top: $grid;
padding-bottom: $grid * 2;
}
.c-sectionHeading__name {
- font-size: 22px;
+ font-size: 2.2rem;
color: $color-blue;
font-family: $font-hed-alt;
font-weight: 700;
From 182a9c98c730cb190a32e2346f561910b993f76d Mon Sep 17 00:00:00 2001
From: tinykite
Date: Wed, 14 Aug 2024 09:44:58 -0500
Subject: [PATCH 10/10] Refactor legacy css into logical properties
---
perma_web/static/css/style-responsive.scss | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/perma_web/static/css/style-responsive.scss b/perma_web/static/css/style-responsive.scss
index 829362378..02283b386 100644
--- a/perma_web/static/css/style-responsive.scss
+++ b/perma_web/static/css/style-responsive.scss
@@ -5940,9 +5940,9 @@ Example: calc(4rem / 16) is equal to 4px or 0.25rem */
align-items: center;
justify-content: start;
gap: 0.6rem;
- border-top: 2px solid $color-blue;
- padding-top: $grid;
- padding-bottom: $grid * 2;
+ border-block-start: 2px solid $color-blue;
+ padding-block-start: $grid;
+ padding-block-end: $grid * 2;
}
.c-sectionHeading__name {