Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions pages/datasets/[datasetid]/access/login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,25 @@ const handleLogin = async () => {
the drop-down list.
</p>

<p>
Please note that there are certain Identity Providers that are
available by default from CILogon which are ineligible for use
with this request because they allow self-attestation. These
include (but are not limited to):
</p>

<ul>
<li>ORCid</li>

<li>GitHub</li>

<li>Google</li>

<li>Microsoft</li>

<li>Yahoo</li>
</ul>

<p>
If you do not see your institution in the list of
participating Identity Providers please contact the
Expand All @@ -143,6 +162,7 @@ const handleLogin = async () => {
type="info"
secondary
class="my-3"
:disabled="true"
@click="handleLogin"
>
Log in
Expand Down
67 changes: 59 additions & 8 deletions pages/datasets/[datasetid]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import sanitizeHtml from "sanitize-html";
// import { fetchAllDashboardConnectors } from "~/stores/dashboard";
import { parse } from "marked";
import type { Dataset, WithContext } from "schema-dts";

// Temp AI-READI Study ID From ENV
const aireadiStudyId: string = nuxtConfig().public.AIREADI_STUDY_UUID;
const config = useRuntimeConfig();
Expand Down Expand Up @@ -246,10 +247,54 @@ const onTabChange = () => {
totalDownloadApprovalSpinner.value = false;
}, 700);
};

const showModal = ref(false);

const toggleShowModal = () => {
showModal.value = !showModal.value;
};
</script>

<template>
<main class="h-screen overflow-auto bg-gradient-to-b from-white to-blue-50">
<n-modal :show="showModal" preset="dialog" display-directive="show">
<template #header>Important Project Update</template>

<template #icon>
<Icon name="material-symbols:info" color="#fff600" size="30" />
</template>

<p>
Thank you for using the FAIRHub portal! We would like to inform you of
of a pending dataset release and major updates to the Portal.
</p>

<p>
We have updated our login workflow. Under the new system you will need
to login with a valid institutional ID and once again complete the
entire data attestation workflow to obtain access to our updated
dataset. Once you have authenticated using this new process you will not
be required to re-attest.
</p>

<p>
We are also ending support for SFTP downloads and introducing two new
options to obtain your data: AzCopy and Rclone. Instructions and
documentation will be provided to you when you log in to obtain your
needed download credentials.
</p>

<p>
Finally, we will shortly be releasing our updated dataset. Until this
release we will not be processing any additional requests for download.
</p>

<p>
We thank you for your patience as we roll out these improvements. Please
check back soon.
</p>
</n-modal>

<div
class="mx-auto mt-10 flex w-full max-w-screen-xl flex-col-reverse items-center justify-between px-3 sm:flex-row"
>
Expand Down Expand Up @@ -297,14 +342,20 @@ const onTabChange = () => {
</n-alert>

<n-flex v-else>
<NuxtLink :to="`/datasets/${dataset?.id}/access`">
<n-button size="large" type="info" secondary class="my-3">
<template #icon>
<Icon name="line-md:download-loop" />
</template>
Access this dataset
</n-button>
</NuxtLink>
<!-- <NuxtLink :to="`/datasets/${dataset?.id}/access`"> -->
<n-button
size="large"
type="info"
secondary
class="my-3"
@click="toggleShowModal"
>
<template #icon>
<Icon name="line-md:download-loop" />
</template>
Access this dataset
</n-button>
<!-- </NuxtLink> -->

<NuxtLink :to="`https://docs.aireadi.org`" target="_blank">
<n-button size="large" type="info" tertiary class="my-3">
Expand Down
Loading