- Anatomical Structure(s)
+ Focus
|
{{ anatomicalStructureText }}
@@ -100,24 +95,20 @@ export default {
.banner-wrapper {
position: relative;
- padding-bottom: 56.25%; /* 16:9 */
- height: 0;
width: 12rem;
+ height: auto;
}
.banner-wrapper .banner-asset {
- position: absolute;
- top: 0;
- left: 0;
width: 100%;
height: auto;
+ object-fit: contain;
}
.story-result {
display: flex;
flex-wrap: wrap;
- gap: 2rem;
- min-height: 10.875rem;
+ gap: 1rem;
width: 100%;
}
@@ -141,7 +132,6 @@ export default {
}
border: none;
padding: 0;
- padding-bottom: 1rem;
}
// The outermost bottom border of the table. Element UI adds psuedo elements to create the bottom table border that we must hide to remove
table:not([class^='el-table__'])::before {
diff --git a/components/CommunitySpotlight/CommunitySpotlightListings.vue b/components/CommunitySpotlight/CommunitySpotlightListings.vue
index 684ffeb7..7028188e 100644
--- a/components/CommunitySpotlight/CommunitySpotlightListings.vue
+++ b/components/CommunitySpotlight/CommunitySpotlightListings.vue
@@ -16,7 +16,7 @@
name: linkLocation
}"
>
- {{ linkText }} >
+ {{ linkText }}
@@ -63,7 +63,7 @@ export default {
// The community spotlight item component needs to use the properties off the actual success stories/fireside chats
getLinkedItem(communitySpotlightItem) {
const linkedItem = pathOr('', ['fields','linkedItem'], communitySpotlightItem)
- const anatomicalStructure = pathOr('', ['fields','anatomicalStructure'], communitySpotlightItem)
+ const anatomicalStructures = pathOr('', ['fields','anatomicalStructure'], communitySpotlightItem)
const spotlightTypeId = pathOr('', ['fields','itemType'], communitySpotlightItem)
const spotlightType = SPOTLIGHT_TYPE_MAPPING.find(item => {
return item.id == spotlightTypeId
@@ -71,7 +71,7 @@ export default {
return {
...linkedItem,
spotlightType,
- anatomicalStructure
+ anatomicalStructures
}
}
}
@@ -91,15 +91,11 @@ export default {
.btn-load-more {
background: none;
border: none;
- color: $darkBlue;
+ color: $purple;
cursor: pointer;
display: block;
- font-size: 1rem;
- font-weight: 700;
padding: 0;
- &:hover,
- &:active {
- text-decoration: underline;
- }
+ font-weight: 500;
+ text-decoration: underline;
}
diff --git a/components/CommunitySpotlightForm/CommunitySpotlightForm.vue b/components/CommunitySpotlightForm/CommunitySpotlightForm.vue
deleted file mode 100644
index 29dba10a..00000000
--- a/components/CommunitySpotlightForm/CommunitySpotlightForm.vue
+++ /dev/null
@@ -1,203 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- To help other users understand your research, an image or video can really help. We recommend images of 1200px by 675px and videos at 16:9.
-
- Select file
- jpeg/png/mp4 file with a size less than 5MB
-
-
-
-
-
- Http://
-
-
-
-
-
- Before your story is published on the SPARC Portal, it will be reviewed. The reviewer may contact you to clarify or seek additional information.
-
-
-
- Submit
-
-
- An error has occurred, please try again.
-
-
-
-
-
-
-
-
diff --git a/components/ConfirmationModal/ConfirmationModal.vue b/components/ConfirmationModal/ConfirmationModal.vue
new file mode 100644
index 00000000..2654fc6c
--- /dev/null
+++ b/components/ConfirmationModal/ConfirmationModal.vue
@@ -0,0 +1,73 @@
+
+
+
+ Confirmation required
+
+
+ Cancel
+ Remove
+
+
+
+
+
+
+
+
diff --git a/components/ContactUsForms/BugForm/BugForm.vue b/components/ContactUsForms/BugForm/BugForm.vue
index f24d9044..01938966 100644
--- a/components/ContactUsForms/BugForm/BugForm.vue
+++ b/components/ContactUsForms/BugForm/BugForm.vue
@@ -1,74 +1,38 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
Http://
-
+
-
-
- Feel free to attach a screenshot to help us better understand the problem. We recommend images of 600px by 600px.
+
+
+ To help others understand your issue an image can really help.
Select file
- jpg/png file with a size less than 5MB
+ jpg/png file with a size less than 5MB
-
-
-
-
-
-
-
+
-
-
-
+
-
-
-
+
-
-
- Let me know when you resolve this issue
-
-
+
+ Please check the box to proceed
+
+
-
-
- Subscribe to the SPARC Newsletter
-
-
+
@@ -131,81 +71,74 @@
diff --git a/components/ContactUsForms/CommunitySpotlightForm/CommunitySpotlightForm.vue b/components/ContactUsForms/CommunitySpotlightForm/CommunitySpotlightForm.vue
new file mode 100644
index 00000000..4dbe49cd
--- /dev/null
+++ b/components/ContactUsForms/CommunitySpotlightForm/CommunitySpotlightForm.vue
@@ -0,0 +1,271 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ To help others understand your story, an image can really help. We recommend images of 600px by 600px.
+
+ Select file
+ jpg/png file with a size less than 5MB
+
+
+
+
+
+ Http://
+
+
+
+
+
+
+
+
+
+
+ Please check the box to proceed
+
+
+
+
+
+ Before your story is published on the SPARC Portal, it will be reviewed. The reviewer may contact you to clarify or seek additional information.
+
+
+
+ Submit
+
+
+ An error has occurred, please try again.
+
+
+
+
+
+
+
+
diff --git a/components/ContactUsForms/FeedbackForm/FeedbackForm.vue b/components/ContactUsForms/FeedbackForm/FeedbackForm.vue
new file mode 100644
index 00000000..821cc681
--- /dev/null
+++ b/components/ContactUsForms/FeedbackForm/FeedbackForm.vue
@@ -0,0 +1,248 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Please check the box to proceed
+
+
+
+
+
+
+
+ Submit
+
+
+ An error has occurred, please try again.
+
+
+
+
+
+
+
+
diff --git a/components/ContactUsForms/GeneralForm/GeneralForm.vue b/components/ContactUsForms/GeneralForm/GeneralForm.vue
index 4958a94b..834fc597 100644
--- a/components/ContactUsForms/GeneralForm/GeneralForm.vue
+++ b/components/ContactUsForms/GeneralForm/GeneralForm.vue
@@ -1,45 +1,43 @@
+
+
+ Http://
+
+
+
-
-
-
+
@@ -47,27 +45,22 @@
v-model="form.message"
type="textarea"
:rows="3"
- placeholder="Description here"
+ placeholder="Enter your question or comment"
/>
-
-
-
+
-
-
-
+
-
-
-
+
-
-
- Subscribe to the SPARC Newsletter
-
-
+
+ Please check the box to proceed
+
+
+
+
@@ -81,121 +74,160 @@
diff --git a/components/ContactUsForms/InterestForm/InterestForm.vue b/components/ContactUsForms/InterestForm/InterestForm.vue
new file mode 100644
index 00000000..c1a6ba6d
--- /dev/null
+++ b/components/ContactUsForms/InterestForm/InterestForm.vue
@@ -0,0 +1,251 @@
+
+
+
+ Select all that apply.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Please check the box to proceed
+
+
+
+
+
+
+
+ Submit
+
+
+ An error has occurred, please try again.
+
+
+
+
+
+
+
+
diff --git a/components/ContactUsForms/NewsAndEventsForm/NewsAndEventsForm.vue b/components/ContactUsForms/NewsAndEventsForm/NewsAndEventsForm.vue
new file mode 100644
index 00000000..5cf275a3
--- /dev/null
+++ b/components/ContactUsForms/NewsAndEventsForm/NewsAndEventsForm.vue
@@ -0,0 +1,326 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ To help others understand your news or event, an image can really help. We recommend images of 600px by 600px.
+
+ Select file
+ jpg/png file with a size less than 5MB
+
+
+
+
+
+ Http://
+
+
+
+
+
+ Event specific details
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Please check the box to proceed
+
+
+
+
+
+ Before your news or event is published on the SPARC Portal, it will be reviewed. The reviewer may contact you to clarify or seek additional information.
+
+
+
+ Submit
+
+
+ An error has occurred, please try again.
+
+
+
+
+
+
+
+
diff --git a/components/ContactUsForms/ResearchForm/ResearchForm.vue b/components/ContactUsForms/ResearchForm/ResearchForm.vue
new file mode 100644
index 00000000..dae91c03
--- /dev/null
+++ b/components/ContactUsForms/ResearchForm/ResearchForm.vue
@@ -0,0 +1,288 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Http://
+
+
+
+
+
+
+
+
+
+
+ Please check the box to proceed
+
+
+
+
+
+
+
+ Submit
+
+
+ An error has occurred, please try again.
+
+
+
+
+
+
+
+
diff --git a/components/ContactUsForms/ToolsAndResourcesForm/ToolsAndResourcesForm.vue b/components/ContactUsForms/ToolsAndResourcesForm/ToolsAndResourcesForm.vue
new file mode 100644
index 00000000..4216a816
--- /dev/null
+++ b/components/ContactUsForms/ToolsAndResourcesForm/ToolsAndResourcesForm.vue
@@ -0,0 +1,456 @@
+
+
+
+
+
+
+
+
+ Http://
+
+
+
+
+ Select all that apply.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Http://
+
+
+
+
+
+
+
+
+
+ Http://
+
+
+
+
+
+
+
+
+
+
+ Please check the box to proceed
+
+
+
+
+
+ Before your tool or resource is published on the SPARC Portal, it will be reviewed. The reviewer may contact you to clarify or seek additional information.
+
+
+
+ Submit
+
+
+ An error has occurred, please try again.
+
+
+
+
+
+
+
+
diff --git a/components/ToolsAndResourcesForm/questions.js b/components/ContactUsForms/ToolsAndResourcesForm/questions.js
similarity index 70%
rename from components/ToolsAndResourcesForm/questions.js
rename to components/ContactUsForms/ToolsAndResourcesForm/questions.js
index 59adff79..0715ef6b 100644
--- a/components/ToolsAndResourcesForm/questions.js
+++ b/components/ContactUsForms/ToolsAndResourcesForm/questions.js
@@ -1,10 +1,4 @@
-export const sparcFunded = [
- 'Yes - Receive SPARC funding for bioelectronic medicine research',
- 'No - Receive other funding for bioelectronic medicine research',
- 'No - Not involved in bioelectronic medicine research'
-]
-
-export const levelOfInvolvement = [
+export const typeOfUser = [
'Principal Investigator',
'Co-Investigator or other Faculty Member',
'Research Scientist',
diff --git a/components/ContactUsForms/UserContactFormItem.vue b/components/ContactUsForms/UserContactFormItem.vue
new file mode 100644
index 00000000..31c40c41
--- /dev/null
+++ b/components/ContactUsForms/UserContactFormItem.vue
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Let me know when you resolve this issue
+
+
+
+
+
+ Please send me a copy of this message
+
+
+
+
+
+ Subscribe to the SPARC Newsletter
+
+
+
+
+
+
diff --git a/components/DataUseAgreementPopup/DataUseAgreementPopup.vue b/components/DataUseAgreementPopup/DataUseAgreementPopup.vue
index 185f521a..969f644e 100644
--- a/components/DataUseAgreementPopup/DataUseAgreementPopup.vue
+++ b/components/DataUseAgreementPopup/DataUseAgreementPopup.vue
@@ -4,72 +4,14 @@
:visible="dialogVisible"
@close-download-dialog="dialogVisible = false"
>
-
+
- Sign Data Use Agreement
+ {{ title }}
-
-
- NIH SPARC EMBARGOED DATA USE AGREEMENT
-
-
-
- The SPARC Portal (“Portal”) is a data sharing resource funded by the National Institutes of Health (NIH) Stimulating Peripheral Activity to Relieve Conditions (SPARC) program. The Portal is used to disseminate data, maps, computational studies, protocols, tools, and other digital resources, in order to accelerate development of therapeutic devices that modulate electrical activity in peripheral nerves. This therapeutic strategy, also known as bioelectronic medicine, could offer new treatment options for diverse diseases and conditions such as hypertension, heart failure, gastrointestinal disorders, type II diabetes, inflammatory disorders, and more. Data are made publicly available on the Portal and can be used under the terms of the CC-BY license (unless otherwise specified). The Portal contains data from a variety of researchers, including SPARC-funded researchers (“SPARC Data Generators”). The Portal also provides a mechanism to request and access data from SPARC Data Generators that is scheduled to become publicly available in the future (“Embargoed Data”), per the public release timeline defined in the SPARC Material Sharing Policy. All data on the Portal is assigned a contact person (“Corresponding Contributor”) from which access can be requested.
-
-
- This NIH SPARC Embargoed Data Use Agreement (“Agreement”) describes the terms and conditions for use of Embargoed Data if access is approved by a Corresponding Author. For purposes of this Agreement, Embargoed Data means all information furnished by SPARC Data Generators and their unfunded project collaborators that is accessible through the Portal, but not yet publicly available, including without limitation, unpublished plans, methods, software, data, results, and findings by SPARC Data Generators.
-
-
- After accepting the terms and conditions outlined below by executing this Agreement, individuals and organizations seeking access to data (“Data Users”) may request access to Embargoed Data residing in the Portal. Approval of a request to access Embargoed Data is at the sole discretion of the Corresponding Author.
-
-
- Data User agrees to:
-
-
- Not use Embargoed Data for any purpose other than for the research project described in the data access request.
-
-
- Not disclose or distribute Embargoed Data to parties external to the SPARC Data Generator, even if said parties are employees of the same institution or entity as the SPARC Data Generator or Data User.
-
-
- Not use Embargoed Data for any commercial purposes without first executing a license with the owner of the data.
-
-
- Use the same level of care in safeguarding Embargoed Data that is used with his/her/their own confidential information of a similar nature, but in no event less than reasonable care.
-
-
- Use the data in accordance with all applicable laws, rules and regulations, and policies.
-
-
- Promptly report to the Corresponding Author any use or disclosure of the data not provided for by this Agreement of which it becomes aware; emails should CC info@sparc.science and use the specific subject line “Potential Data Breach Notification”.
-
-
- Data User’s obligations of confidentiality and limited use under this Agreement do not extend to any information that:
-
-
- is or becomes publicly available, except through breach of this Agreement.
-
-
- Data User can demonstrate that he/she/they possessed prior to, or developed independently from, disclosure or development under this Agreement, and was not acquired directly or indirectly from the SPARC Data Generator.
-
-
- becomes available to Data User from third party (external to the SPARC Data Generator) that, to the knowledge of Data User, is not legally prohibited from disclosing Embargoed Data.
-
-
- Data User is required by law, regulation or court order to disclose, provided that the Corresponding Author is promptly notified of any such requirement to allow such owning Data User to seek a protective order or other modifications to the requirement.
-
-
- NIH MAKES NO REPRESENTATIONS AND EXTENDS NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR IMPLIED. THERE ARE NO EXPRESSED OR IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, OR THAT THE USE OF THE DATA WILL NOT INFRINGE ANY PATENT, COPYRIGHT, TRADEMARK, OR OTHER PROPRIETARY RIGHTS.
-
-
- Unless prohibited by law, Data User assumes all liability for claims for damages against him/her/them by third parties which may arise from his/her/their use of the data.
-
-
- Data User will accept the terms of this Agreement via electronic click.
-
-
+
+
-
+
- Sign and Submit
+ Accept and Submit
+
+
diff --git a/components/Error/400.vue b/components/Error/400.vue
index fa939d67..ddeff0d4 100644
--- a/components/Error/400.vue
+++ b/components/Error/400.vue
@@ -29,7 +29,8 @@
:to="{
name: 'contact-us',
query: {
- type: 'bug'
+ type: 'bug',
+ source_url: this.$nuxt.$route.fullPath
}
}"
>
diff --git a/components/Error/404.vue b/components/Error/404.vue
index a2665132..5ac81d56 100644
--- a/components/Error/404.vue
+++ b/components/Error/404.vue
@@ -29,7 +29,8 @@
:to="{
name: 'contact-us',
query: {
- type: 'bug'
+ type: 'bug',
+ source_url: this.$nuxt.$route.fullPath
}
}"
>
diff --git a/components/EventCard/EventCard.vue b/components/EventCard/EventCard.vue
index 9518ee8e..7e671f84 100644
--- a/components/EventCard/EventCard.vue
+++ b/components/EventCard/EventCard.vue
@@ -111,7 +111,7 @@ export default {
background: #fff;
border: 1px solid #dbdfe6;
color: $dark-sky;
- padding: 1em;
+ padding: 1.5em 1em;
&__image {
margin-bottom: 1rem;
overflow: hidden;
diff --git a/components/EventListItem/EventListItem.vue b/components/EventListItem/EventListItem.vue
index 221d1039..b9ba6415 100644
--- a/components/EventListItem/EventListItem.vue
+++ b/components/EventListItem/EventListItem.vue
@@ -1,5 +1,6 @@
-
+
+
@@ -14,10 +15,13 @@
}"
v-html="highlightMatches(item.fields.title, $route.query.search)"
/>
-
+
-
+
+
+
+
@@ -57,11 +61,11 @@ import { isEmpty, pathOr } from 'ramda'
import eventBannerImage from '@/components/EventBannerImage/EventBannerImage.vue'
import FormatDate from '@/mixins/format-date'
-import { isInternalLink } from '@/mixins/marked/index'
+import { isInternalLink, opensInNewTab } from '@/mixins/marked/index'
import { highlightMatches } from '../../pages/data/utils'
export default {
- name: 'EventCard',
+ name: 'EventListItem',
components: {
eventBannerImage
},
@@ -70,7 +74,40 @@ export default {
item: {
type: Object,
default: () => {}
+ },
+ showPastEventsDivider: {
+ type: Boolean,
+ default: false
+ }
+ },
+ data() {
+ return {
+ isDestinationLinkRetreived: false,
+ openInNewTab: false
+ }
+ },
+ async mounted() {
+ const url = pathOr("", ['fields', 'url'], this.item)
+ if (url.includes('bit.ly')) {
+ const bitlyId = url.replace("https://", "")
+ try {
+ const response = await this.$axios.post(process.env.bitly_expand_endpoint, { bitlink_id: bitlyId }, {
+ headers: {
+ Authorization: `Bearer ${process.env.BITLY_ACCESS_TOKEN}`,
+ 'Content-Type': 'application/json',
+ }
+ })
+ const newUrl = response.data.long_url
+ this.openInNewTab = !isInternalLink(newUrl)
+ } catch {
+ console.log("Error retreiving bitly link destination url")
+ this.openInNewTab = !isInternalLink(url)
+ }
+ }
+ else {
+ this.openInNewTab = !isInternalLink(url)
}
+ this.isDestinationLinkRetreived = true
},
computed: {
/**
@@ -106,13 +143,14 @@ export default {
},
methods: {
isInternalLink,
- highlightMatches
+ highlightMatches,
+ opensInNewTab
}
}
diff --git a/components/FacetMenu/TagsContainer.vue b/components/FacetMenu/TagsContainer.vue
index 70051249..5f556b01 100644
--- a/components/FacetMenu/TagsContainer.vue
+++ b/components/FacetMenu/TagsContainer.vue
@@ -37,7 +37,7 @@
closable
@close="deselectFacet(facet.id)"
>
- {{ facet.label }}
+ {{ facet.label.split('.').pop() }}
@@ -139,5 +139,8 @@ export default {
.purple-fill {
fill: $purple;
}
+ ::v-deep .popover {
+ background-color: #f9f2fc;
+ }
}
diff --git a/components/FacetMenu/ToolsAndResourcesFacetMenu.vue b/components/FacetMenu/ToolsAndResourcesFacetMenu.vue
index 430dbcc9..7b96797c 100644
--- a/components/FacetMenu/ToolsAndResourcesFacetMenu.vue
+++ b/components/FacetMenu/ToolsAndResourcesFacetMenu.vue
@@ -8,27 +8,31 @@
@deselect-all-facets="deselectAllFacets"
/>
+
+
\ No newline at end of file
diff --git a/components/Gallery/Gallery.vue b/components/Gallery/Gallery.vue
new file mode 100644
index 00000000..da105031
--- /dev/null
+++ b/components/Gallery/Gallery.vue
@@ -0,0 +1,245 @@
+
+
+
+
+
+
+
diff --git a/components/Gallery/GalleryItems/DatasetCard.vue b/components/Gallery/GalleryItems/DatasetCard.vue
new file mode 100644
index 00000000..afd02f61
--- /dev/null
+++ b/components/Gallery/GalleryItems/DatasetCard.vue
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+
+ {{ datasetTitle }}
+
+
+ Total Downloads: {{ numDownloads }}
+
+
+ Citations: {{ numCitations }}
+
+
+
+
+
+
+
+
+
diff --git a/components/Gallery/GalleryItems/FileViewerCard.vue b/components/Gallery/GalleryItems/FileViewerCard.vue
new file mode 100644
index 00000000..2e3e7fb8
--- /dev/null
+++ b/components/Gallery/GalleryItems/FileViewerCard.vue
@@ -0,0 +1,283 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ data.type }}
+
+
+
+
+ {{ data.title }}
+
+
+ View {{ data.type }}
+
+
+
+
+
+
+
+
diff --git a/components/Gallery/GalleryItems/HighlightCard.vue b/components/Gallery/GalleryItems/HighlightCard.vue
new file mode 100644
index 00000000..17485c85
--- /dev/null
+++ b/components/Gallery/GalleryItems/HighlightCard.vue
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
diff --git a/components/Gallery/GalleryItems/MetricsCard.vue b/components/Gallery/GalleryItems/MetricsCard.vue
new file mode 100644
index 00000000..df4214d6
--- /dev/null
+++ b/components/Gallery/GalleryItems/MetricsCard.vue
@@ -0,0 +1,65 @@
+
+
+
+
+ {{ data }}
+
+
+ {{ subData }}
+
+
+
+
+
+
+
diff --git a/components/ResourcesGallery/ResourceCard.vue b/components/Gallery/GalleryItems/ResourceCard.vue
similarity index 89%
rename from components/ResourcesGallery/ResourceCard.vue
rename to components/Gallery/GalleryItems/ResourceCard.vue
index c45fb167..b5b161a7 100644
--- a/components/ResourcesGallery/ResourceCard.vue
+++ b/components/Gallery/GalleryItems/ResourceCard.vue
@@ -1,5 +1,5 @@
-
+
@@ -37,10 +37,6 @@ export default {
type: Number,
default: 13.8
},
- showShadow: {
- type: Boolean,
- default: false
- },
title: {
type: String,
default: ''
@@ -71,9 +67,6 @@ export default {
},
},
computed: {
- shadow() {
- return this.showShadow ? 'always' : 'never'
- },
truncatedDescription() {
return this.description.length > 134 ?
`${this.description.substring(0, 134)}...` :
diff --git a/components/HomepageNews/HomepageNews.vue b/components/HomepageNews/HomepageNews.vue
new file mode 100644
index 00000000..f18ef0c9
--- /dev/null
+++ b/components/HomepageNews/HomepageNews.vue
@@ -0,0 +1,289 @@
+
+
+
+ News & Upcoming Events
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ eventDate(item) }}
+
+
+
+ {{ item.fields.location }}
+
+
+
+
+
+
+
+
+ Learn More
+
+
+
+
+ Learn More
+
+
+
+ View All News & Events
+
+
+
+
+
+
+
+
diff --git a/components/ImagesGallery/ImagesGallery.vue b/components/ImagesGallery/ImagesGallery.vue
index 4ffc4ec8..29fa1fcd 100644
--- a/components/ImagesGallery/ImagesGallery.vue
+++ b/components/ImagesGallery/ImagesGallery.vue
@@ -1,21 +1,30 @@
-
-
- Data collection:
- {{ description }}
-
-
-
-
-
+
+
+ There was an error loading the gallery items
+
+
+
+
+ Data collection:
+ {{ description }}
+
+
+
+
+
+ This dataset does not contain gallery items
+
@@ -23,34 +32,127 @@
-
-
-
diff --git a/components/LatestNewsAndEvents/LatestNewsAndEvents.vue b/components/LatestNewsAndEvents/LatestNewsAndEvents.vue
deleted file mode 100644
index 629e6ee3..00000000
--- a/components/LatestNewsAndEvents/LatestNewsAndEvents.vue
+++ /dev/null
@@ -1,204 +0,0 @@
-
-
- Stay up to date
-
-
- Latest News
-
-
-
-
-
- View All News >
-
-
-
-
-
- Events
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- View All Events >
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/components/LearnMoreCard/LearnMoreCard.vue b/components/LearnMoreCard/LearnMoreCard.vue
index 97b681d5..9fa56d2b 100644
--- a/components/LearnMoreCard/LearnMoreCard.vue
+++ b/components/LearnMoreCard/LearnMoreCard.vue
@@ -1,18 +1,15 @@
@@ -82,10 +48,8 @@ export default {
font-size: 1em !important;
}
}
-.about-link {
- color: $median;
-}
-.about-link:not(:hover) {
+
+.link1:not(:hover) {
text-decoration: none;
}
diff --git a/components/Loading/Loading.vue b/components/Loading/Loading.vue
new file mode 100644
index 00000000..028fc6d3
--- /dev/null
+++ b/components/Loading/Loading.vue
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
diff --git a/components/LoginModal/LoginModal.vue b/components/LoginModal/LoginModal.vue
index ba052666..f8f8ca57 100644
--- a/components/LoginModal/LoginModal.vue
+++ b/components/LoginModal/LoginModal.vue
@@ -6,11 +6,21 @@
>
- {{ fields.title }}
+ Sign into SPARC
-
+
+
+ SPARC Portal login authentication is provided by ORCID iD. Create a SPARC Portal account or sign in to your existing SPARC Portal account by using your existing ORCID iD credentials. If you do not have an existing ORCID iD, please register here for a free account.
+
+
+ Upon initial login to the SPARC Portal via ORCID iD, you will also be creating* an account on Pennsieve to unlock all the features the SPARC Portal has to offer.
+
+
+ Learn more here about why a Pennsieve account is being created for you and which features are enabled by the SPARC Portal login.
+
+
-
+
+ Use of the SPARC Portal, its data and resources, regardless of registration status, implies acceptance of the SPARC Data and Resource Center Privacy Policy and adherence to the SPARC Terms of Service and the SPARC Citation Policy. By signing in to SPARC, you are also accepting the Pennsieve Terms of Use and Pennsieve Privacy Policy.
+
* If you already have an account on Pennsieve, you will be able to link your newly created SPARC account to it by entering your existing Pennsieve account's e-mail address when prompted.
@@ -37,7 +49,6 @@
+
diff --git a/components/Metrics/UserBehaviors.vue b/components/Metrics/UserBehaviors.vue
new file mode 100644
index 00000000..00cd3e9e
--- /dev/null
+++ b/components/Metrics/UserBehaviors.vue
@@ -0,0 +1,300 @@
+
+
+
+ Page Views
+
+
+
+
+ User Types
+
+
+
+
+
+
+
+
+
diff --git a/components/NewsAndEventsForm/NewsAndEventsForm.vue b/components/NewsAndEventsForm/NewsAndEventsForm.vue
deleted file mode 100644
index e186495a..00000000
--- a/components/NewsAndEventsForm/NewsAndEventsForm.vue
+++ /dev/null
@@ -1,234 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- To help other users understand your news or event, an image can really help. We recommend images of 600px by 600px.
-
- Select file
- jpg/png file with a size less than 5MB
-
-
-
-
-
- Http://
-
-
-
-
-
- Event specific details
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Before your news or event is published on the SPARC Portal, it will be reviewed. The reviewer may contact you to clarify or seek additional information.
-
-
-
- Submit
-
-
- An error has occurred, please try again.
-
-
-
-
-
-
-
-
diff --git a/components/NewsEventsResourcesPage/NewsEventsResourcesPage.vue b/components/NewsEventsResourcesPage/NewsEventsResourcesPage.vue
index e9985478..4f87de87 100644
--- a/components/NewsEventsResourcesPage/NewsEventsResourcesPage.vue
+++ b/components/NewsEventsResourcesPage/NewsEventsResourcesPage.vue
@@ -1,11 +1,9 @@
-
- {{ heroTitle }}
-
- {{ heroSummary }}
-
+
@@ -153,8 +151,9 @@ export default {
.content {
& ::v-deep img,
& ::v-deep video {
+ display: block;
height: auto;
- margin: 0.5em 0;
+ margin: auto;
max-width: 100%;
}
}
@@ -174,6 +173,8 @@ export default {
text-transform: uppercase;
}
img {
+ display: block;
+ margin: auto;
height: auto;
max-width: 100%;
}
@@ -187,3 +188,13 @@ export default {
padding-bottom: 2rem;
}
+
+
diff --git a/components/NewsEventsResourcesPage/SubmitCommunitySection.vue b/components/NewsEventsResourcesPage/SubmitCommunitySection.vue
new file mode 100644
index 00000000..0d78d70a
--- /dev/null
+++ b/components/NewsEventsResourcesPage/SubmitCommunitySection.vue
@@ -0,0 +1,39 @@
+
+
+
+
+
diff --git a/components/NewsEventsResourcesPage/SubmitNewsSection.vue b/components/NewsEventsResourcesPage/SubmitNewsSection.vue
new file mode 100644
index 00000000..ebf4c133
--- /dev/null
+++ b/components/NewsEventsResourcesPage/SubmitNewsSection.vue
@@ -0,0 +1,39 @@
+
+
+
+
+
diff --git a/components/NewsListItem/NewsListItem.vue b/components/NewsListItem/NewsListItem.vue
index 0c13bf59..885d316c 100644
--- a/components/NewsListItem/NewsListItem.vue
+++ b/components/NewsListItem/NewsListItem.vue
@@ -1,5 +1,5 @@
-
+
@@ -19,10 +19,10 @@
-
+
@@ -39,7 +39,7 @@ import FormatDate from '@/mixins/format-date'
import EventBannerImage from '@/components/EventBannerImage/EventBannerImage.vue'
import SparcPill from '@/components/SparcPill/SparcPill.vue'
-import { isInternalLink } from '@/mixins/marked/index'
+import { isInternalLink, opensInNewTab } from '@/mixins/marked/index'
import { highlightMatches } from '~/pages/data/utils'
export default {
@@ -59,6 +59,35 @@ export default {
},
},
+ data() {
+ return {
+ isDestinationLinkRetreived: false,
+ openInNewTab: false
+ }
+ },
+ async mounted() {
+ const url = pathOr("", ['fields', 'url'], this.item)
+ if (url.includes('bit.ly')) {
+ const bitlyId = url.replace("https://", "")
+ try {
+ const response = await this.$axios.post(process.env.bitly_expand_endpoint, { bitlink_id: bitlyId }, {
+ headers: {
+ Authorization: `Bearer ${process.env.BITLY_ACCESS_TOKEN}`,
+ 'Content-Type': 'application/json',
+ }
+ })
+ const newUrl = response.data.long_url
+ this.openInNewTab = !isInternalLink(newUrl)
+ } catch {
+ console.log("Error retreiving bitly link destination url")
+ this.openInNewTab = !isInternalLink(url)
+ }
+ }
+ else {
+ this.openInNewTab = !isInternalLink(url)
+ }
+ this.isDestinationLinkRetreived = true
+ },
computed: {
/**
* Compute and formate start date
@@ -75,6 +104,7 @@ export default {
methods: {
isInternalLink,
+ opensInNewTab,
highlightMatches
}
}
diff --git a/components/NewsletterForm/NewsletterForm.vue b/components/NewsletterForm/NewsletterForm.vue
index 9e4defab..f6e73e26 100644
--- a/components/NewsletterForm/NewsletterForm.vue
+++ b/components/NewsletterForm/NewsletterForm.vue
@@ -3,7 +3,7 @@
|