-
{
+ const { DOCS_URL_ROOT } = useAppConfigContext();
+ return (
+
+
div:not(:last-child) {
- border-right: 1px solid #dcdde1;
- }
+ > div:not(:last-child) {
+ border-right: 1px solid #dcdde1;
+ }
- /* breakpoint where buttons will soft wrap and look worse with icon on second line */
- @container callouts (width < 840px) {
- grid-template-columns: 1fr;
- row-gap: 20px;
- padding: 0 5%;
+ /* breakpoint where buttons will soft wrap and look worse with icon on second line */
+ @container callouts (width < 840px) {
+ grid-template-columns: 1fr;
+ row-gap: 20px;
+ padding: 0 5%;
- > div:not(:last-child) {
- border-right: none;
- border-bottom: 1px solid #dcdde1;
+ > div:not(:last-child) {
+ border-right: none;
+ border-bottom: 1px solid #dcdde1;
+ }
}
- }
- `}
- >
-
- The Data Access Compliance Office (DACO) handles approval for access to controlled
- molecular data in the ARGO Data Platform.
-
+
+ The Data Access Compliance Office (DACO) handles approval for access to controlled
+ molecular data in the ARGO Data Platform.
+
-
- Instructions for programs to submit clinical and molecular data.
-
+
+ Instructions for programs to submit clinical and molecular data.
+
-
- ARGO RPDC uniformly analyzes molecular data against the{' '}
- GRCh38 Human Reference Genome.
-
+
+ ARGO RPDC uniformly analyzes molecular data against the{' '}
+ GRCh38 Human Reference Genome.
+
+
-
-);
+ );
+};
export default function Home() {
return (
diff --git a/src/global/constants.ts b/src/global/constants.ts
index fa4d37c6..4bb81d21 100644
--- a/src/global/constants.ts
+++ b/src/global/constants.ts
@@ -19,3 +19,7 @@
export const EGO_JWT_KEY = 'EGO_JWT';
export const LOGIN_NONCE = 'LOGIN_NONCE';
+
+export const BUILD_TIME_VARIABLES = {
+ RUNTIME_CONFIG_URL: process.env.NEXT_PUBLIC_RUNTIME_CONFIG_URL || '',
+};
diff --git a/src/global/urls.ts b/src/global/urls.ts
deleted file mode 100644
index bedeea38..00000000
--- a/src/global/urls.ts
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Copyright (c) 2023 The Ontario Institute for Cancer Research. All rights reserved
- *
- * This program and the accompanying materials are made available under the terms of
- * the GNU Affero General Public License v3.0. You should have received a copy of the
- * GNU Affero General Public License along with this program.
- * If not, see
.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
- * SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
- * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
- * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
- * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-import { getAppConfig } from '@/global/config';
-import urljoin from 'url-join';
-
-const { DOCS_URL_ROOT, PLATFORM_UI_ROOT, EGO_API_ROOT, EGO_CLIENT_ID } = getAppConfig();
-
-// ARGO
-export const ARGO_ROOT = 'https://www.icgc-argo.org';
-export const ARGO_PRIVACY_PAGE = urljoin(ARGO_ROOT, '/page/2/privacy');
-export const ARGO_TERMS_PAGE = urljoin(ARGO_ROOT, '/page/1/terms-and-conditions');
-export const ARGO_PUBLICATION_PAGE = urljoin(ARGO_ROOT, '/page/77/e3-publication-policy');
-
-// Docs
-export const DOCS_DATA_ACCESS_PAGE = urljoin(DOCS_URL_ROOT, '/docs/data-access/daco/applying');
-export const DOCS_DATA_DOWNLOAD_PAGE = urljoin(DOCS_URL_ROOT, '/docs/data-access/data-download');
-export const DOCS_API_TOKEN_PAGE = urljoin(
- DOCS_URL_ROOT,
- '/docs/data-access/user-profile-and-api-token',
-);
-export const DOCS_SUBMISSION_OVERVIEW_PAGE = urljoin(
- DOCS_URL_ROOT,
- '/docs/submission/submission-overview',
-);
-export const DOCS_REGISTERING_SAMPLES_PAGE = urljoin(
- DOCS_URL_ROOT,
- '/docs/submission/registering-samples',
-);
-export const DOCS_SUBMITTING_CLINICAL_DATA_PAGE = urljoin(
- DOCS_URL_ROOT,
- '/docs/submission/submitting-clinical-data',
-);
-export const DOCS_SUBMITTING_MOLECULAR_DATA_PAGE = urljoin(
- DOCS_URL_ROOT,
- '/docs/submission/submitting-molecular-data',
-);
-
-export { DOCS_URL_ROOT };
-
-// Daco
-export const DACO_ROOT = 'https://daco.icgc-argo.org/';
-
-// Platform
-export { PLATFORM_UI_ROOT };
-
-// Ego
-export const EGO_LOGIN_URL = urljoin(
- EGO_API_ROOT,
- '/api/oauth/login/google',
- `?client_id=${EGO_CLIENT_ID}`,
-);
diff --git a/src/lib/egoJwt.ts b/src/lib/egoJwt.ts
index 97f92c87..2271d922 100644
--- a/src/lib/egoJwt.ts
+++ b/src/lib/egoJwt.ts
@@ -21,9 +21,8 @@
import memoize from 'lodash/memoize';
import createEgoUtils from '@icgc-argo/ego-token-utils';
-import { getAppConfig } from '@/global/config';
-const TokenUtils = createEgoUtils(getAppConfig().EGO_PUBLIC_KEY);
+const TokenUtils = createEgoUtils('');
export const decodeToken = memoize((egoJwt?: string) =>
egoJwt ? TokenUtils.decodeToken(egoJwt) : null,