From ccad0b51dabd75afe443217ba8543bd2a2bceda6 Mon Sep 17 00:00:00 2001 From: Ethan Date: Fri, 8 Dec 2023 16:27:05 -0500 Subject: [PATCH 1/8] Refactor category and pathway rendering in Pathway.vue --- src/web/src/pages/Pathway.vue | 44 +++++++++++++++++------------------ 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/web/src/pages/Pathway.vue b/src/web/src/pages/Pathway.vue index bbad23709..a9739a319 100644 --- a/src/web/src/pages/Pathway.vue +++ b/src/web/src/pages/Pathway.vue @@ -73,32 +73,29 @@

- {{ categoryObj["Category Name"][0] }} + + + {{ categoryObj['Category Name'][0] }} + +

- - -
- -
-
- - - {{ pathway["Name"][0] }} - + + + +
+ +
+
+ + + {{ pathway['Name'][0] }} + +
-
- + + @@ -282,6 +279,9 @@ export default { }, }, methods: { + cleanId(str) { + return str.replace(/\s+/g, '-'); + }, listAlphabet() { this.cateShow = false; this.alphShow = true; From fe0840dfbb7b179a229edac3011c8ffb4652ce19 Mon Sep 17 00:00:00 2001 From: Ethan Date: Fri, 8 Dec 2023 16:29:31 -0500 Subject: [PATCH 2/8] Refactor pathway alphabet list in Pathway.vue --- src/web/src/pages/Pathway.vue | 45 ++++++++++++++++------------------- 1 file changed, 21 insertions(+), 24 deletions(-) diff --git a/src/web/src/pages/Pathway.vue b/src/web/src/pages/Pathway.vue index a9739a319..1f5d77128 100644 --- a/src/web/src/pages/Pathway.vue +++ b/src/web/src/pages/Pathway.vue @@ -107,41 +107,38 @@ md="6" v-show="alphShow" > - + >

- {{ alphabetObj["Category Name"][0] }} + + + {{ alphabetObj['Category Name'][0] }} + +

- - -
- -
-
- - - {{ pathway["Name"][0] }} - + + + +
+ +
+
+ + + {{ pathway['Name'][0] }} + +
-
- + + From b5a55032bbf4afec6bbc39d03bb3c9216e8d613d Mon Sep 17 00:00:00 2001 From: Ethan Date: Fri, 8 Dec 2023 16:43:55 -0500 Subject: [PATCH 3/8] Refactor pathway component layout and styles --- src/web/src/pages/Pathway.vue | 76 +++++++++++++++++++++++++++++------ 1 file changed, 63 insertions(+), 13 deletions(-) diff --git a/src/web/src/pages/Pathway.vue b/src/web/src/pages/Pathway.vue index 1f5d77128..bf5005773 100644 --- a/src/web/src/pages/Pathway.vue +++ b/src/web/src/pages/Pathway.vue @@ -101,17 +101,17 @@ - - + + @@ -314,6 +314,7 @@ export default {