@gen3/frontend 0.10.88 → 0.10.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +61 -47
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/components/Providers/Gen3Provider.d.ts +4 -1
- package/dist/dts/components/Providers/Gen3Provider.d.ts.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCard.d.ts.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCard.js +2 -2
- package/dist/dts/features/Analysis/AnalysisCard.js.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCardCompact.d.ts.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCardCompact.js +2 -2
- package/dist/dts/features/Analysis/AnalysisCardCompact.js.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +8 -6
- package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCenter.d.ts.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCenter.js +2 -2
- package/dist/dts/features/Analysis/AnalysisCenter.js.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCenterWithSections.stories.d.ts.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCenterWithSections.stories.js +1 -0
- package/dist/dts/features/Analysis/AnalysisCenterWithSections.stories.js.map +1 -1
- package/dist/dts/features/Analysis/types.d.ts +1 -0
- package/dist/dts/features/Analysis/types.d.ts.map +1 -1
- package/dist/dts/features/Analysis/types.js.map +1 -1
- package/dist/dts/features/Authz/AuthzAdminProvider.d.ts +44 -0
- package/dist/dts/features/Authz/AuthzAdminProvider.d.ts.map +1 -0
- package/dist/dts/features/Authz/AuthzAdminProvider.js +55 -0
- package/dist/dts/features/Authz/AuthzAdminProvider.js.map +1 -0
- package/dist/dts/features/DataLibrary/tables/DatalistContentsPanel.js +1 -1
- package/dist/dts/features/DataLibrary/tables/DatalistContentsPanel.js.map +1 -1
- package/dist/dts/features/Discovery/ActionBar/AddToDataLibrary.d.ts +4 -0
- package/dist/dts/features/Discovery/ActionBar/AddToDataLibrary.d.ts.map +1 -0
- package/dist/dts/features/Discovery/ActionBar/AddToDataLibrary.js +124 -0
- package/dist/dts/features/Discovery/ActionBar/AddToDataLibrary.js.map +1 -0
- package/dist/dts/features/{Navigation/TopBar.stories.d.ts → Discovery/ActionBar/AddToDataLibrary.stories.d.ts} +2 -3
- package/dist/dts/features/Discovery/ActionBar/AddToDataLibrary.stories.d.ts.map +1 -0
- package/dist/dts/features/Discovery/ActionBar/AddToDataLibrary.stories.js +54 -0
- package/dist/dts/features/Discovery/ActionBar/AddToDataLibrary.stories.js.map +1 -0
- package/dist/dts/features/Discovery/ActionBar/DataLibraryActionButton.stories.d.ts +13 -0
- package/dist/dts/features/Discovery/ActionBar/DataLibraryActionButton.stories.d.ts.map +1 -0
- package/dist/dts/features/Discovery/ActionBar/DataLibraryActionButton.stories.js +15 -0
- package/dist/dts/features/Discovery/ActionBar/DataLibraryActionButton.stories.js.map +1 -0
- package/dist/dts/features/Discovery/ActionBar/registeredActions.d.ts +1 -0
- package/dist/dts/features/Discovery/ActionBar/registeredActions.d.ts.map +1 -0
- package/dist/dts/features/Discovery/ActionBar/registeredActions.js +86 -0
- package/dist/dts/features/Discovery/ActionBar/registeredActions.js.map +1 -0
- package/dist/dts/index.d.ts +2 -2
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/index.js +2 -2
- package/dist/dts/index.js.map +1 -1
- package/dist/dts/lib/common/analysisToolFramework.d.ts +6 -0
- package/dist/dts/lib/common/analysisToolFramework.d.ts.map +1 -0
- package/dist/dts/lib/common/analysisToolFramework.js +21 -0
- package/dist/dts/lib/common/analysisToolFramework.js.map +1 -0
- package/dist/dts/lib/common/staticProps.d.ts.map +1 -1
- package/dist/dts/lib/common/staticProps.js +4 -4
- package/dist/dts/lib/common/staticProps.js.map +1 -1
- package/dist/dts/lib/common/types.d.ts +8 -0
- package/dist/dts/lib/common/types.d.ts.map +1 -0
- package/dist/dts/lib/common/types.js +2 -0
- package/dist/dts/lib/common/types.js.map +1 -0
- package/dist/dts/lib/content/constants.d.ts.map +1 -1
- package/dist/dts/lib/content/constants.js +1 -1
- package/dist/dts/lib/content/constants.js.map +1 -1
- package/dist/dts/lib/content/filesystem.js +4 -6
- package/dist/dts/lib/content/filesystem.js.map +1 -1
- package/dist/dts/lib/content/index.d.ts +9 -2
- package/dist/dts/lib/content/index.d.ts.map +1 -1
- package/dist/dts/lib/content/index.js +26 -7
- package/dist/dts/lib/content/index.js.map +1 -1
- package/dist/dts/pages/Analysis/data.d.ts.map +1 -1
- package/dist/dts/pages/Analysis/data.js +1 -1
- package/dist/dts/pages/Analysis/data.js.map +1 -1
- package/dist/dts/pages/Crosswalk/data.d.ts.map +1 -1
- package/dist/dts/pages/Crosswalk/data.js +1 -1
- package/dist/dts/pages/Crosswalk/data.js.map +1 -1
- package/dist/dts/pages/DataDictionary/data.d.ts.map +1 -1
- package/dist/dts/pages/DataDictionary/data.js +1 -1
- package/dist/dts/pages/DataDictionary/data.js.map +1 -1
- package/dist/dts/pages/DataLibrary/data.d.ts.map +1 -1
- package/dist/dts/pages/DataLibrary/data.js +1 -1
- package/dist/dts/pages/DataLibrary/data.js.map +1 -1
- package/dist/dts/pages/Discovery/data.d.ts.map +1 -1
- package/dist/dts/pages/Discovery/data.js +1 -1
- package/dist/dts/pages/Discovery/data.js.map +1 -1
- package/dist/dts/pages/Explorer/data.d.ts.map +1 -1
- package/dist/dts/pages/Explorer/data.js +2 -2
- package/dist/dts/pages/Explorer/data.js.map +1 -1
- package/dist/dts/pages/Landing/data.d.ts +2 -2
- package/dist/dts/pages/Landing/data.d.ts.map +1 -1
- package/dist/dts/pages/Landing/data.js +2 -2
- package/dist/dts/pages/Landing/data.js.map +1 -1
- package/dist/dts/pages/Landing/index.d.ts +1 -1
- package/dist/dts/pages/Landing/index.d.ts.map +1 -1
- package/dist/dts/pages/Landing/index.js +1 -1
- package/dist/dts/pages/Landing/index.js.map +1 -1
- package/dist/dts/pages/Landing/resource.js +1 -1
- package/dist/dts/pages/Landing/resource.js.map +1 -1
- package/dist/dts/pages/Login/data.js +1 -1
- package/dist/dts/pages/Login/data.js.map +1 -1
- package/dist/dts/pages/Profile/data.js +1 -1
- package/dist/dts/pages/Profile/data.js.map +1 -1
- package/dist/dts/pages/Query/data.js +1 -1
- package/dist/dts/pages/Query/data.js.map +1 -1
- package/dist/dts/pages/Submission/data.d.ts.map +1 -1
- package/dist/dts/pages/Submission/data.js +1 -1
- package/dist/dts/pages/Submission/data.js.map +1 -1
- package/dist/dts/pages/Workspace/data.d.ts.map +1 -1
- package/dist/dts/pages/Workspace/data.js +1 -1
- package/dist/dts/pages/Workspace/data.js.map +1 -1
- package/dist/dts/pages/admin/Workspace/data.js +1 -1
- package/dist/dts/pages/admin/Workspace/data.js.map +1 -1
- package/dist/dts/pages/admin/analysis/data.js +1 -1
- package/dist/dts/pages/admin/analysis/data.js.map +1 -1
- package/dist/dts/pages/admin/authz/data.js +1 -1
- package/dist/dts/pages/admin/authz/data.js.map +1 -1
- package/dist/esm/index.js +60 -46
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +17 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/dts/features/Navigation/TopBar.d.ts +0 -24
- package/dist/dts/features/Navigation/TopBar.d.ts.map +0 -1
- package/dist/dts/features/Navigation/TopBar.js +0 -56
- package/dist/dts/features/Navigation/TopBar.js.map +0 -1
- package/dist/dts/features/Navigation/TopBar.stories.d.ts.map +0 -1
- package/dist/dts/features/Navigation/TopBar.stories.js +0 -30
- package/dist/dts/features/Navigation/TopBar.stories.js.map +0 -1
package/dist/cjs/index.js
CHANGED
|
@@ -11997,7 +11997,7 @@ const TextDescription = ({ description })=>{
|
|
|
11997
11997
|
});
|
|
11998
11998
|
};
|
|
11999
11999
|
|
|
12000
|
-
const AnalysisCard = ({ title, description, type, icon, image, hasDemo, loginRequired, href })=>{
|
|
12000
|
+
const AnalysisCard = ({ title, description, type, icon, image, hasDemo, loginRequired, href, btnText })=>{
|
|
12001
12001
|
return /*#__PURE__*/ jsxRuntime.jsx(core$1.Stack, {
|
|
12002
12002
|
children: /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
12003
12003
|
className: "rounded-sm bg-base-max",
|
|
@@ -12065,7 +12065,7 @@ const AnalysisCard = ({ title, description, type, icon, image, hasDemo, loginReq
|
|
|
12065
12065
|
root: 'bg-accent text-accent-contrast hover:bg-accent-darker p-2 rounded-sm',
|
|
12066
12066
|
label: 'text-sm font-semibold'
|
|
12067
12067
|
},
|
|
12068
|
-
label: `Run ${type === 'application' ? 'App' : 'Notebook'}`
|
|
12068
|
+
label: btnText ? btnText : `Run ${type === 'application' ? 'App' : 'Notebook'}`
|
|
12069
12069
|
}),
|
|
12070
12070
|
hasDemo && /*#__PURE__*/ jsxRuntime.jsx("button", {
|
|
12071
12071
|
className: "ml-2 p-1.5 rounded-sm text-sm font-semibold",
|
|
@@ -12149,7 +12149,7 @@ const AnalysisCenter = ({ tools, showFilterAndSort = false })=>{
|
|
|
12149
12149
|
/*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
12150
12150
|
children: /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
12151
12151
|
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 p-1 mx-4 overflow-y-scroll",
|
|
12152
|
-
children: tools.map(({ title, description, type, icon, image, hasDemo, loginRequired, href }, key)=>{
|
|
12152
|
+
children: tools.map(({ title, description, type, icon, image, hasDemo, loginRequired, href, btnText }, key)=>{
|
|
12153
12153
|
return /*#__PURE__*/ jsxRuntime.jsx(AnalysisCard, {
|
|
12154
12154
|
title,
|
|
12155
12155
|
description,
|
|
@@ -12159,7 +12159,8 @@ const AnalysisCenter = ({ tools, showFilterAndSort = false })=>{
|
|
|
12159
12159
|
hasDemo,
|
|
12160
12160
|
loginRequired,
|
|
12161
12161
|
href,
|
|
12162
|
-
cardType: 'regular'
|
|
12162
|
+
cardType: 'regular',
|
|
12163
|
+
btnText
|
|
12163
12164
|
}, title);
|
|
12164
12165
|
})
|
|
12165
12166
|
})
|
|
@@ -12168,7 +12169,7 @@ const AnalysisCenter = ({ tools, showFilterAndSort = false })=>{
|
|
|
12168
12169
|
});
|
|
12169
12170
|
};
|
|
12170
12171
|
|
|
12171
|
-
const AnalysisCardCompact = ({ title, description, type = 'application', icon, hasDemo = false, loginRequired = false, href, count, countUnits })=>{
|
|
12172
|
+
const AnalysisCardCompact = ({ title, description, type = 'application', icon, hasDemo = false, loginRequired = false, href, count, countUnits, btnText })=>{
|
|
12172
12173
|
return /*#__PURE__*/ jsxRuntime.jsxs(core$1.Stack, {
|
|
12173
12174
|
gap: "xs",
|
|
12174
12175
|
classNames: {
|
|
@@ -12226,12 +12227,9 @@ const AnalysisCardCompact = ({ title, description, type = 'application', icon, h
|
|
|
12226
12227
|
/*#__PURE__*/ jsxRuntime.jsxs(core$1.Group, {
|
|
12227
12228
|
className: "mb-6",
|
|
12228
12229
|
children: [
|
|
12229
|
-
/*#__PURE__*/ jsxRuntime.
|
|
12230
|
+
/*#__PURE__*/ jsxRuntime.jsx(core$1.Button, {
|
|
12230
12231
|
color: "primary.4",
|
|
12231
|
-
children:
|
|
12232
|
-
"Run ",
|
|
12233
|
-
type === 'application' ? 'App' : 'Notebook'
|
|
12234
|
-
]
|
|
12232
|
+
children: btnText ? btnText : `Run ${type === 'application' ? 'App' : 'Notebook'}`
|
|
12235
12233
|
}),
|
|
12236
12234
|
hasDemo && /*#__PURE__*/ jsxRuntime.jsx(core$1.Button, {
|
|
12237
12235
|
variant: "outline",
|
|
@@ -12312,7 +12310,7 @@ const myGlob = (dir, filter)=>{
|
|
|
12312
12310
|
const files = fs.readdirSync(dir);
|
|
12313
12311
|
return files.filter((file)=>file.search(filter) !== -1);
|
|
12314
12312
|
} catch (error) {
|
|
12315
|
-
console.log('
|
|
12313
|
+
console.log('myGlob error', error, dir);
|
|
12316
12314
|
}
|
|
12317
12315
|
return [];
|
|
12318
12316
|
};
|
|
@@ -12324,15 +12322,15 @@ class FilesystemContent {
|
|
|
12324
12322
|
try {
|
|
12325
12323
|
return await JSON.parse(fs.readFileSync(path.join(this.rootPath, filepath)).toString('utf8'));
|
|
12326
12324
|
} catch (err) {
|
|
12327
|
-
throw new Error(`Cannot process ${filepath}`);
|
|
12325
|
+
throw new Error(`Cannot process ${filepath} `);
|
|
12328
12326
|
}
|
|
12329
12327
|
}
|
|
12330
12328
|
async getAll(filepath, filter) {
|
|
12331
12329
|
try {
|
|
12332
12330
|
const files = myGlob(path.join(this.rootPath, filepath), filter);
|
|
12333
|
-
return Promise.all(files.map((file)=>this.get(path.join(
|
|
12331
|
+
return Promise.all(files.map((file)=>this.get(path.join(filepath, file))));
|
|
12334
12332
|
} catch (err) {
|
|
12335
|
-
throw new Error(`getAllCannot process ${filepath}/${filter}`);
|
|
12333
|
+
throw new Error(`getAllCannot process ${path.join(this.rootPath, filepath)}/${filter}`);
|
|
12336
12334
|
}
|
|
12337
12335
|
}
|
|
12338
12336
|
}
|
|
@@ -12351,30 +12349,46 @@ class ContentDatabase {
|
|
|
12351
12349
|
}
|
|
12352
12350
|
}
|
|
12353
12351
|
|
|
12354
|
-
const GEN3_FRONTEND_CONFIGURATION_ROOT = process.env.GEN3_FRONTEND_CONFIGURATION_ROOT || './';
|
|
12352
|
+
const GEN3_FRONTEND_CONFIGURATION_ROOT = process.env.GEN3_FRONTEND_CONFIGURATION_ROOT || './config/';
|
|
12355
12353
|
|
|
12356
|
-
|
|
12357
|
-
|
|
12358
|
-
|
|
12359
|
-
|
|
12360
|
-
|
|
12361
|
-
|
|
12362
|
-
|
|
12363
|
-
|
|
12364
|
-
}
|
|
12365
|
-
|
|
12354
|
+
class ContentSource {
|
|
12355
|
+
static{
|
|
12356
|
+
this.instance = null;
|
|
12357
|
+
}
|
|
12358
|
+
constructor(){
|
|
12359
|
+
const config = {
|
|
12360
|
+
store: new FilesystemContent({
|
|
12361
|
+
rootPath: GEN3_FRONTEND_CONFIGURATION_ROOT
|
|
12362
|
+
})
|
|
12363
|
+
};
|
|
12364
|
+
this.contentDatabase = new ContentDatabase(config);
|
|
12365
|
+
}
|
|
12366
|
+
static getInstance() {
|
|
12367
|
+
if (!ContentSource.instance) {
|
|
12368
|
+
ContentSource.instance = new ContentSource();
|
|
12369
|
+
}
|
|
12370
|
+
return ContentSource.instance;
|
|
12371
|
+
}
|
|
12372
|
+
// Add methods to access the ContentDatabase functionality
|
|
12373
|
+
// For example:
|
|
12374
|
+
getContentDatabase() {
|
|
12375
|
+
return this.contentDatabase;
|
|
12376
|
+
}
|
|
12377
|
+
}
|
|
12378
|
+
// Export a singleton instance
|
|
12379
|
+
var ContentSource$1 = ContentSource.getInstance();
|
|
12366
12380
|
|
|
12367
12381
|
/**
|
|
12368
12382
|
* Retrieves navigation page layout properties from configuration.
|
|
12369
12383
|
* Note: GEN3_COMMONS_NAME depends on siteConfig.json value in the data commons package
|
|
12370
12384
|
* @returns A Promise resolving to an object containing header and footer props.
|
|
12371
12385
|
*/ const getNavPageLayoutPropsFromConfig = async ()=>{
|
|
12372
|
-
const navigationConfigJSON = await ContentSource.get(
|
|
12386
|
+
const navigationConfigJSON = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/navigation.json`);
|
|
12373
12387
|
let bannerConfigJSON = [];
|
|
12374
12388
|
try {
|
|
12375
|
-
bannerConfigJSON = await ContentSource.get(
|
|
12389
|
+
bannerConfigJSON = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/banner.json`);
|
|
12376
12390
|
} catch (e) {
|
|
12377
|
-
console.warn('No banner config found at: ',
|
|
12391
|
+
console.warn('No banner config found at: ', `${core.GEN3_COMMONS_NAME}/banner.json`);
|
|
12378
12392
|
}
|
|
12379
12393
|
const { topBar, navigation, type = 'original' } = navigationConfigJSON;
|
|
12380
12394
|
const headerProps = {
|
|
@@ -12383,7 +12397,7 @@ const ContentSource = setup();
|
|
|
12383
12397
|
banners: bannerConfigJSON,
|
|
12384
12398
|
type
|
|
12385
12399
|
};
|
|
12386
|
-
const footerProps = await ContentSource.get(
|
|
12400
|
+
const footerProps = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/footer.json`);
|
|
12387
12401
|
return {
|
|
12388
12402
|
headerProps,
|
|
12389
12403
|
footerProps,
|
|
@@ -15322,7 +15336,7 @@ const DiscoveryPage = ({ headerProps, footerProps, discoveryConfig })=>{
|
|
|
15322
15336
|
|
|
15323
15337
|
const DiscoveryPageGetServerSideProps = async ()=>{
|
|
15324
15338
|
try {
|
|
15325
|
-
const discoveryConfig = await ContentSource.get(
|
|
15339
|
+
const discoveryConfig = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/discovery.json`);
|
|
15326
15340
|
return {
|
|
15327
15341
|
props: {
|
|
15328
15342
|
...await getNavPageLayoutPropsFromConfig(),
|
|
@@ -15371,7 +15385,7 @@ const QueryPage = ({ headerProps, footerProps, queryProps })=>{
|
|
|
15371
15385
|
};
|
|
15372
15386
|
|
|
15373
15387
|
const QueryPageGetServerSideProps = async ()=>{
|
|
15374
|
-
const queryProps = await ContentSource.get(
|
|
15388
|
+
const queryProps = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/query.json`);
|
|
15375
15389
|
return {
|
|
15376
15390
|
props: {
|
|
15377
15391
|
...await getNavPageLayoutPropsFromConfig(),
|
|
@@ -15546,9 +15560,9 @@ const LandingPage = ({ headerProps, footerProps, landingPage })=>{
|
|
|
15546
15560
|
};
|
|
15547
15561
|
|
|
15548
15562
|
// should move this thing into _app.tsx and make a dedicated layout component after https://github.com/vercel/next.js/discussions/10949 is addressed
|
|
15549
|
-
const
|
|
15563
|
+
const LandingPageGetServerSideProps = async ()=>{
|
|
15550
15564
|
const navPageLayoutProps = await getNavPageLayoutPropsFromConfig();
|
|
15551
|
-
const landingPage = await ContentSource.get(
|
|
15565
|
+
const landingPage = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/landingPage.json`);
|
|
15552
15566
|
return {
|
|
15553
15567
|
props: {
|
|
15554
15568
|
...navPageLayoutProps,
|
|
@@ -15627,7 +15641,7 @@ const GetSharedFieldMapping = async (cohortBuilderConfiguration)=>{
|
|
|
15627
15641
|
};
|
|
15628
15642
|
const ExplorerPageGetServerSideProps = async ()=>{
|
|
15629
15643
|
try {
|
|
15630
|
-
const cohortBuilderConfiguration = await ContentSource.get(
|
|
15644
|
+
const cohortBuilderConfiguration = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/explorer.json`);
|
|
15631
15645
|
if (lodash.isArray(cohortBuilderConfiguration)) {
|
|
15632
15646
|
// older config layout
|
|
15633
15647
|
// TODO: remove this
|
|
@@ -15662,7 +15676,7 @@ const ExplorerPageGetServerSideProps = async ()=>{
|
|
|
15662
15676
|
const ExplorerPageGetServerSidePropsForConfigId = async (context)=>{
|
|
15663
15677
|
const configId = context.query.configId;
|
|
15664
15678
|
try {
|
|
15665
|
-
const cohortBuilderConfiguration = await ContentSource.get(
|
|
15679
|
+
const cohortBuilderConfiguration = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/explorer/${configId}.json`);
|
|
15666
15680
|
if (lodash.isArray(cohortBuilderConfiguration)) {
|
|
15667
15681
|
// older config layout
|
|
15668
15682
|
// TODO: remove this
|
|
@@ -16622,7 +16636,7 @@ const ProfilePage = ({ headerProps, footerProps, profileConfig })=>{
|
|
|
16622
16636
|
};
|
|
16623
16637
|
|
|
16624
16638
|
const ProfilePageGetServerSideProps = async ()=>{
|
|
16625
|
-
const profileConfig = await ContentSource.get(
|
|
16639
|
+
const profileConfig = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/profile.json`);
|
|
16626
16640
|
return {
|
|
16627
16641
|
props: {
|
|
16628
16642
|
...await getNavPageLayoutPropsFromConfig(),
|
|
@@ -16649,7 +16663,7 @@ const LoginPage = ({ headerProps, footerProps, loginConfig })=>{
|
|
|
16649
16663
|
};
|
|
16650
16664
|
|
|
16651
16665
|
const LoginPageGetServerSideProps = async ()=>{
|
|
16652
|
-
const loginConfig = await ContentSource.get(
|
|
16666
|
+
const loginConfig = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/login.json`);
|
|
16653
16667
|
return {
|
|
16654
16668
|
props: {
|
|
16655
16669
|
...await getNavPageLayoutPropsFromConfig(),
|
|
@@ -16680,7 +16694,7 @@ const DictionaryPage = ({ headerProps, footerProps, config })=>{
|
|
|
16680
16694
|
|
|
16681
16695
|
const DictionaryPageGetServerSideProps = async ()=>{
|
|
16682
16696
|
try {
|
|
16683
|
-
const cohortBuilderProps = await ContentSource.get(
|
|
16697
|
+
const cohortBuilderProps = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/dictionary.json`);
|
|
16684
16698
|
return {
|
|
16685
16699
|
props: {
|
|
16686
16700
|
...await getNavPageLayoutPropsFromConfig(),
|
|
@@ -17403,7 +17417,7 @@ const AuthzPage = ({ headerProps, footerProps, authz })=>{
|
|
|
17403
17417
|
};
|
|
17404
17418
|
|
|
17405
17419
|
const AdminAuthZPageGetServerSideProps = async ()=>{
|
|
17406
|
-
const rootPath =
|
|
17420
|
+
const rootPath = `${core.GEN3_COMMONS_NAME}/`;
|
|
17407
17421
|
const filepath = 'user.yaml';
|
|
17408
17422
|
let data = {};
|
|
17409
17423
|
try {
|
|
@@ -17731,7 +17745,7 @@ const SubmissionPage = ({ submissionConfig, headerProps, footerProps })=>{
|
|
|
17731
17745
|
|
|
17732
17746
|
const SubmissionPageGetServerSideProps = async ()=>{
|
|
17733
17747
|
try {
|
|
17734
|
-
const submissionConfig = await ContentSource.get(
|
|
17748
|
+
const submissionConfig = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/submission.json`);
|
|
17735
17749
|
return {
|
|
17736
17750
|
props: {
|
|
17737
17751
|
...await getNavPageLayoutPropsFromConfig(),
|
|
@@ -17796,7 +17810,7 @@ const WorkspaceNoAccessPage = ({ headerProps, footerProps })=>{
|
|
|
17796
17810
|
};
|
|
17797
17811
|
|
|
17798
17812
|
const WorkspacePageGetServerSideProps = async (_context)=>{
|
|
17799
|
-
const workspaceProps = await ContentSource.get(
|
|
17813
|
+
const workspaceProps = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/workspace.json`);
|
|
17800
17814
|
try {
|
|
17801
17815
|
return {
|
|
17802
17816
|
props: {
|
|
@@ -17858,7 +17872,7 @@ const AnalysisPage = ({ headerProps, footerProps, tools, sections, classNames })
|
|
|
17858
17872
|
|
|
17859
17873
|
const AnalysisPageGetServerSideProps = async ()=>{
|
|
17860
17874
|
try {
|
|
17861
|
-
const analysisConfig = await ContentSource.get(
|
|
17875
|
+
const analysisConfig = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/analysisTools.json`);
|
|
17862
17876
|
return {
|
|
17863
17877
|
props: {
|
|
17864
17878
|
...await getNavPageLayoutPropsFromConfig(),
|
|
@@ -18493,7 +18507,7 @@ const AnalysisEditorPage = ({ headerProps, footerProps, analysisFile })=>{
|
|
|
18493
18507
|
};
|
|
18494
18508
|
|
|
18495
18509
|
const AnalysisEditorPageGetServerSideProps = async ()=>{
|
|
18496
|
-
// const rootPath =
|
|
18510
|
+
// const rootPath = `${GEN3_COMMONS_NAME}/`;
|
|
18497
18511
|
// const filepath = 'user.yaml';
|
|
18498
18512
|
// let data: Record<string, any> = {};
|
|
18499
18513
|
// try {
|
|
@@ -20401,7 +20415,7 @@ const DataLibraryPage = ({ headerProps, footerProps, config })=>{
|
|
|
20401
20415
|
|
|
20402
20416
|
const DataLibraryPageGetServerSideProps = async ()=>{
|
|
20403
20417
|
try {
|
|
20404
|
-
const datalibraryConfig = await ContentSource.get(
|
|
20418
|
+
const datalibraryConfig = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/dataLibrary.json`);
|
|
20405
20419
|
return {
|
|
20406
20420
|
props: {
|
|
20407
20421
|
...await getNavPageLayoutPropsFromConfig(),
|
|
@@ -20693,7 +20707,7 @@ const CrosswalkPage = ({ headerProps, footerProps, config })=>{
|
|
|
20693
20707
|
|
|
20694
20708
|
const CrosswalkPageGetServerSideProps = async ()=>{
|
|
20695
20709
|
try {
|
|
20696
|
-
const initialConfig = await ContentSource.get(
|
|
20710
|
+
const initialConfig = await ContentSource$1.getContentDatabase().get(`${core.GEN3_COMMONS_NAME}/crosswalk.json`);
|
|
20697
20711
|
const regex = /->/g;
|
|
20698
20712
|
const processedConfig = {
|
|
20699
20713
|
showSubmittedIdInTable: initialConfig.showSubmittedIdInTable,
|
|
@@ -21050,7 +21064,7 @@ exports.CohortManager = CohortManager;
|
|
|
21050
21064
|
exports.CollapsableSidebar = CollapsableSidebar;
|
|
21051
21065
|
exports.ColorThemePage = ColorThemePage;
|
|
21052
21066
|
exports.ColorThemePageGetServerSideProps = ColorThemePageGetServerSideProps;
|
|
21053
|
-
exports.ContentSource = ContentSource;
|
|
21067
|
+
exports.ContentSource = ContentSource$1;
|
|
21054
21068
|
exports.CreateCredentialsAPIKeyModal = CreateCredentialsAPIKeyModal;
|
|
21055
21069
|
exports.CrosswalkPage = CrosswalkPage;
|
|
21056
21070
|
exports.CrosswalkPageGetServerSideProps = CrosswalkPageGetServerSideProps;
|
|
@@ -21084,7 +21098,7 @@ exports.GqlQueryEditor = GqlQueryEditor$1;
|
|
|
21084
21098
|
exports.Header = Header;
|
|
21085
21099
|
exports.HoverLink = HoverLink;
|
|
21086
21100
|
exports.LandingPage = LandingPage;
|
|
21087
|
-
exports.
|
|
21101
|
+
exports.LandingPageGetServerSideProps = LandingPageGetServerSideProps;
|
|
21088
21102
|
exports.LoginButton = LoginButton$1;
|
|
21089
21103
|
exports.LoginPage = LoginPage;
|
|
21090
21104
|
exports.LoginPageGetServerSideProps = LoginPageGetServerSideProps;
|