@gen3/frontend 0.10.87 → 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 +76 -59
- 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.d.ts.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCenterWithSections.js +4 -4
- package/dist/dts/features/Analysis/AnalysisCenterWithSections.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 -6
- package/dist/dts/features/Analysis/AnalysisCenterWithSections.stories.js.map +1 -1
- package/dist/dts/features/Analysis/TextDescription.js +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/CohortBuilder/index.d.ts +2 -1
- package/dist/dts/features/CohortBuilder/index.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/index.js +2 -1
- package/dist/dts/features/CohortBuilder/index.js.map +1 -1
- 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 +74 -58
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +23 -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/esm/index.js
CHANGED
|
@@ -11952,11 +11952,11 @@ const TextDescription = ({ description })=>{
|
|
|
11952
11952
|
children: [
|
|
11953
11953
|
!extend ? /*#__PURE__*/ jsx(Text, {
|
|
11954
11954
|
ref: textRef,
|
|
11955
|
-
size: "
|
|
11955
|
+
size: "md",
|
|
11956
11956
|
lineClamp: 4,
|
|
11957
11957
|
children: description
|
|
11958
11958
|
}) : /*#__PURE__*/ jsx(Text, {
|
|
11959
|
-
size: "
|
|
11959
|
+
size: "md",
|
|
11960
11960
|
children: description
|
|
11961
11961
|
}),
|
|
11962
11962
|
isClamped && /*#__PURE__*/ jsx("button", {
|
|
@@ -11977,7 +11977,7 @@ const TextDescription = ({ description })=>{
|
|
|
11977
11977
|
});
|
|
11978
11978
|
};
|
|
11979
11979
|
|
|
11980
|
-
const AnalysisCard = ({ title, description, type, icon, image, hasDemo, loginRequired, href })=>{
|
|
11980
|
+
const AnalysisCard = ({ title, description, type, icon, image, hasDemo, loginRequired, href, btnText })=>{
|
|
11981
11981
|
return /*#__PURE__*/ jsx(Stack, {
|
|
11982
11982
|
children: /*#__PURE__*/ jsxs("div", {
|
|
11983
11983
|
className: "rounded-sm bg-base-max",
|
|
@@ -12045,7 +12045,7 @@ const AnalysisCard = ({ title, description, type, icon, image, hasDemo, loginReq
|
|
|
12045
12045
|
root: 'bg-accent text-accent-contrast hover:bg-accent-darker p-2 rounded-sm',
|
|
12046
12046
|
label: 'text-sm font-semibold'
|
|
12047
12047
|
},
|
|
12048
|
-
label: `Run ${type === 'application' ? 'App' : 'Notebook'}`
|
|
12048
|
+
label: btnText ? btnText : `Run ${type === 'application' ? 'App' : 'Notebook'}`
|
|
12049
12049
|
}),
|
|
12050
12050
|
hasDemo && /*#__PURE__*/ jsx("button", {
|
|
12051
12051
|
className: "ml-2 p-1.5 rounded-sm text-sm font-semibold",
|
|
@@ -12129,7 +12129,7 @@ const AnalysisCenter = ({ tools, showFilterAndSort = false })=>{
|
|
|
12129
12129
|
/*#__PURE__*/ jsx("div", {
|
|
12130
12130
|
children: /*#__PURE__*/ jsx("div", {
|
|
12131
12131
|
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 p-1 mx-4 overflow-y-scroll",
|
|
12132
|
-
children: tools.map(({ title, description, type, icon, image, hasDemo, loginRequired, href }, key)=>{
|
|
12132
|
+
children: tools.map(({ title, description, type, icon, image, hasDemo, loginRequired, href, btnText }, key)=>{
|
|
12133
12133
|
return /*#__PURE__*/ jsx(AnalysisCard, {
|
|
12134
12134
|
title,
|
|
12135
12135
|
description,
|
|
@@ -12139,7 +12139,8 @@ const AnalysisCenter = ({ tools, showFilterAndSort = false })=>{
|
|
|
12139
12139
|
hasDemo,
|
|
12140
12140
|
loginRequired,
|
|
12141
12141
|
href,
|
|
12142
|
-
cardType: 'regular'
|
|
12142
|
+
cardType: 'regular',
|
|
12143
|
+
btnText
|
|
12143
12144
|
}, title);
|
|
12144
12145
|
})
|
|
12145
12146
|
})
|
|
@@ -12148,7 +12149,7 @@ const AnalysisCenter = ({ tools, showFilterAndSort = false })=>{
|
|
|
12148
12149
|
});
|
|
12149
12150
|
};
|
|
12150
12151
|
|
|
12151
|
-
const AnalysisCardCompact = ({ title, description, type = 'application', icon, hasDemo = false, loginRequired = false, href, count, countUnits })=>{
|
|
12152
|
+
const AnalysisCardCompact = ({ title, description, type = 'application', icon, hasDemo = false, loginRequired = false, href, count, countUnits, btnText })=>{
|
|
12152
12153
|
return /*#__PURE__*/ jsxs(Stack, {
|
|
12153
12154
|
gap: "xs",
|
|
12154
12155
|
classNames: {
|
|
@@ -12156,12 +12157,12 @@ const AnalysisCardCompact = ({ title, description, type = 'application', icon, h
|
|
|
12156
12157
|
},
|
|
12157
12158
|
children: [
|
|
12158
12159
|
/*#__PURE__*/ jsx("div", {
|
|
12159
|
-
className: "rounded-t-lg bg-secondary border-b-4 border-accent-warm h-
|
|
12160
|
+
className: "rounded-t-lg bg-secondary border-b-4 border-accent-warm h-10"
|
|
12160
12161
|
}),
|
|
12161
12162
|
/*#__PURE__*/ jsx("div", {
|
|
12162
|
-
className: "flex relative -mt-10 z-10 p-
|
|
12163
|
+
className: "flex relative -mt-10 z-10 p-1 max-w-90",
|
|
12163
12164
|
children: /*#__PURE__*/ jsx("div", {
|
|
12164
|
-
className: "relative rounded-lg bg-base-lightest ml-5 border-4 border-base-light mx-
|
|
12165
|
+
className: "relative rounded-lg bg-base-lightest ml-5 border-4 border-base-light mx-1 w-1/4 aspect-square",
|
|
12165
12166
|
children: /*#__PURE__*/ jsx(Image$1, {
|
|
12166
12167
|
component: Image,
|
|
12167
12168
|
src: `${icon}`,
|
|
@@ -12173,7 +12174,7 @@ const AnalysisCardCompact = ({ title, description, type = 'application', icon, h
|
|
|
12173
12174
|
})
|
|
12174
12175
|
}),
|
|
12175
12176
|
/*#__PURE__*/ jsxs("div", {
|
|
12176
|
-
className: "flex flex-col ml-2 px-4
|
|
12177
|
+
className: "flex flex-col ml-2 px-4 h-4/6 justify-between",
|
|
12177
12178
|
children: [
|
|
12178
12179
|
/*#__PURE__*/ jsxs("div", {
|
|
12179
12180
|
className: "flex flex-col",
|
|
@@ -12181,11 +12182,11 @@ const AnalysisCardCompact = ({ title, description, type = 'application', icon, h
|
|
|
12181
12182
|
/*#__PURE__*/ jsx(Text, {
|
|
12182
12183
|
fw: "bold",
|
|
12183
12184
|
classNames: {
|
|
12184
|
-
root: 'font-header sm:text-
|
|
12185
|
+
root: 'font-header sm:text-lg lg:text-xl'
|
|
12185
12186
|
},
|
|
12186
12187
|
children: title
|
|
12187
12188
|
}),
|
|
12188
|
-
/*#__PURE__*/ jsxs(Text, {
|
|
12189
|
+
count && /*#__PURE__*/ jsxs(Text, {
|
|
12189
12190
|
size: "md",
|
|
12190
12191
|
fw: "semibold",
|
|
12191
12192
|
c: "base-contrast.5",
|
|
@@ -12196,7 +12197,7 @@ const AnalysisCardCompact = ({ title, description, type = 'application', icon, h
|
|
|
12196
12197
|
]
|
|
12197
12198
|
}),
|
|
12198
12199
|
/*#__PURE__*/ jsx("div", {
|
|
12199
|
-
className:
|
|
12200
|
+
className: count ? 'pt-2 min-h-20 h-full' : 'pt-7 min-h-20 h-full',
|
|
12200
12201
|
children: /*#__PURE__*/ jsx(TextDescription, {
|
|
12201
12202
|
description: description
|
|
12202
12203
|
})
|
|
@@ -12204,14 +12205,11 @@ const AnalysisCardCompact = ({ title, description, type = 'application', icon, h
|
|
|
12204
12205
|
]
|
|
12205
12206
|
}),
|
|
12206
12207
|
/*#__PURE__*/ jsxs(Group, {
|
|
12207
|
-
className: "mb-
|
|
12208
|
+
className: "mb-6",
|
|
12208
12209
|
children: [
|
|
12209
|
-
/*#__PURE__*/
|
|
12210
|
+
/*#__PURE__*/ jsx(Button, {
|
|
12210
12211
|
color: "primary.4",
|
|
12211
|
-
children:
|
|
12212
|
-
"Run ",
|
|
12213
|
-
type === 'application' ? 'App' : 'Notebook'
|
|
12214
|
-
]
|
|
12212
|
+
children: btnText ? btnText : `Run ${type === 'application' ? 'App' : 'Notebook'}`
|
|
12215
12213
|
}),
|
|
12216
12214
|
hasDemo && /*#__PURE__*/ jsx(Button, {
|
|
12217
12215
|
variant: "outline",
|
|
@@ -12244,8 +12242,8 @@ const AnalysisCardCompact = ({ title, description, type = 'application', icon, h
|
|
|
12244
12242
|
* @returns {ReactElement} A React element that renders the analysis panel with sections.
|
|
12245
12243
|
*/ const AnalysisCenterWithSections = ({ sections, classNames })=>{
|
|
12246
12244
|
const rootClassNamesDefaults = {
|
|
12247
|
-
title: 'font-header font-bold text-2xl uppercase',
|
|
12248
|
-
divider: 'text-accent w-[
|
|
12245
|
+
title: 'font-header font-bold text-2xl uppercase mt-2',
|
|
12246
|
+
divider: 'text-accent w-[70px] border-accent mb-4'
|
|
12249
12247
|
};
|
|
12250
12248
|
const mergedGlobalClassnames = mergeDefaultTailwindClassnames(rootClassNamesDefaults, classNames ?? {});
|
|
12251
12249
|
const sectionPanels = useMemo(()=>sections.map((section)=>{
|
|
@@ -12254,6 +12252,7 @@ const AnalysisCardCompact = ({ title, description, type = 'application', icon, h
|
|
|
12254
12252
|
gap: "xs",
|
|
12255
12253
|
children: [
|
|
12256
12254
|
/*#__PURE__*/ jsx(Text, {
|
|
12255
|
+
color: "primary.4",
|
|
12257
12256
|
classNames: {
|
|
12258
12257
|
root: sectionClassnames['title']
|
|
12259
12258
|
},
|
|
@@ -12281,6 +12280,7 @@ const AnalysisCardCompact = ({ title, description, type = 'application', icon, h
|
|
|
12281
12280
|
sections
|
|
12282
12281
|
]);
|
|
12283
12282
|
return /*#__PURE__*/ jsx(Stack, {
|
|
12283
|
+
gap: "xl",
|
|
12284
12284
|
children: sectionPanels
|
|
12285
12285
|
});
|
|
12286
12286
|
};
|
|
@@ -12290,7 +12290,7 @@ const myGlob = (dir, filter)=>{
|
|
|
12290
12290
|
const files = fs.readdirSync(dir);
|
|
12291
12291
|
return files.filter((file)=>file.search(filter) !== -1);
|
|
12292
12292
|
} catch (error) {
|
|
12293
|
-
console.log('
|
|
12293
|
+
console.log('myGlob error', error, dir);
|
|
12294
12294
|
}
|
|
12295
12295
|
return [];
|
|
12296
12296
|
};
|
|
@@ -12302,15 +12302,15 @@ class FilesystemContent {
|
|
|
12302
12302
|
try {
|
|
12303
12303
|
return await JSON.parse(fs.readFileSync(path.join(this.rootPath, filepath)).toString('utf8'));
|
|
12304
12304
|
} catch (err) {
|
|
12305
|
-
throw new Error(`Cannot process ${filepath}`);
|
|
12305
|
+
throw new Error(`Cannot process ${filepath} `);
|
|
12306
12306
|
}
|
|
12307
12307
|
}
|
|
12308
12308
|
async getAll(filepath, filter) {
|
|
12309
12309
|
try {
|
|
12310
12310
|
const files = myGlob(path.join(this.rootPath, filepath), filter);
|
|
12311
|
-
return Promise.all(files.map((file)=>this.get(path.join(
|
|
12311
|
+
return Promise.all(files.map((file)=>this.get(path.join(filepath, file))));
|
|
12312
12312
|
} catch (err) {
|
|
12313
|
-
throw new Error(`getAllCannot process ${filepath}/${filter}`);
|
|
12313
|
+
throw new Error(`getAllCannot process ${path.join(this.rootPath, filepath)}/${filter}`);
|
|
12314
12314
|
}
|
|
12315
12315
|
}
|
|
12316
12316
|
}
|
|
@@ -12329,30 +12329,46 @@ class ContentDatabase {
|
|
|
12329
12329
|
}
|
|
12330
12330
|
}
|
|
12331
12331
|
|
|
12332
|
-
const GEN3_FRONTEND_CONFIGURATION_ROOT = process.env.GEN3_FRONTEND_CONFIGURATION_ROOT || './';
|
|
12332
|
+
const GEN3_FRONTEND_CONFIGURATION_ROOT = process.env.GEN3_FRONTEND_CONFIGURATION_ROOT || './config/';
|
|
12333
12333
|
|
|
12334
|
-
|
|
12335
|
-
|
|
12336
|
-
|
|
12337
|
-
|
|
12338
|
-
|
|
12339
|
-
|
|
12340
|
-
|
|
12341
|
-
|
|
12342
|
-
}
|
|
12343
|
-
|
|
12334
|
+
class ContentSource {
|
|
12335
|
+
static{
|
|
12336
|
+
this.instance = null;
|
|
12337
|
+
}
|
|
12338
|
+
constructor(){
|
|
12339
|
+
const config = {
|
|
12340
|
+
store: new FilesystemContent({
|
|
12341
|
+
rootPath: GEN3_FRONTEND_CONFIGURATION_ROOT
|
|
12342
|
+
})
|
|
12343
|
+
};
|
|
12344
|
+
this.contentDatabase = new ContentDatabase(config);
|
|
12345
|
+
}
|
|
12346
|
+
static getInstance() {
|
|
12347
|
+
if (!ContentSource.instance) {
|
|
12348
|
+
ContentSource.instance = new ContentSource();
|
|
12349
|
+
}
|
|
12350
|
+
return ContentSource.instance;
|
|
12351
|
+
}
|
|
12352
|
+
// Add methods to access the ContentDatabase functionality
|
|
12353
|
+
// For example:
|
|
12354
|
+
getContentDatabase() {
|
|
12355
|
+
return this.contentDatabase;
|
|
12356
|
+
}
|
|
12357
|
+
}
|
|
12358
|
+
// Export a singleton instance
|
|
12359
|
+
var ContentSource$1 = ContentSource.getInstance();
|
|
12344
12360
|
|
|
12345
12361
|
/**
|
|
12346
12362
|
* Retrieves navigation page layout properties from configuration.
|
|
12347
12363
|
* Note: GEN3_COMMONS_NAME depends on siteConfig.json value in the data commons package
|
|
12348
12364
|
* @returns A Promise resolving to an object containing header and footer props.
|
|
12349
12365
|
*/ const getNavPageLayoutPropsFromConfig = async ()=>{
|
|
12350
|
-
const navigationConfigJSON = await ContentSource.get(
|
|
12366
|
+
const navigationConfigJSON = await ContentSource$1.getContentDatabase().get(`${GEN3_COMMONS_NAME}/navigation.json`);
|
|
12351
12367
|
let bannerConfigJSON = [];
|
|
12352
12368
|
try {
|
|
12353
|
-
bannerConfigJSON = await ContentSource.get(
|
|
12369
|
+
bannerConfigJSON = await ContentSource$1.getContentDatabase().get(`${GEN3_COMMONS_NAME}/banner.json`);
|
|
12354
12370
|
} catch (e) {
|
|
12355
|
-
console.warn('No banner config found at: ',
|
|
12371
|
+
console.warn('No banner config found at: ', `${GEN3_COMMONS_NAME}/banner.json`);
|
|
12356
12372
|
}
|
|
12357
12373
|
const { topBar, navigation, type = 'original' } = navigationConfigJSON;
|
|
12358
12374
|
const headerProps = {
|
|
@@ -12361,7 +12377,7 @@ const ContentSource = setup();
|
|
|
12361
12377
|
banners: bannerConfigJSON,
|
|
12362
12378
|
type
|
|
12363
12379
|
};
|
|
12364
|
-
const footerProps = await ContentSource.get(
|
|
12380
|
+
const footerProps = await ContentSource$1.getContentDatabase().get(`${GEN3_COMMONS_NAME}/footer.json`);
|
|
12365
12381
|
return {
|
|
12366
12382
|
headerProps,
|
|
12367
12383
|
footerProps,
|
|
@@ -15300,7 +15316,7 @@ const DiscoveryPage = ({ headerProps, footerProps, discoveryConfig })=>{
|
|
|
15300
15316
|
|
|
15301
15317
|
const DiscoveryPageGetServerSideProps = async ()=>{
|
|
15302
15318
|
try {
|
|
15303
|
-
const discoveryConfig = await ContentSource.get(
|
|
15319
|
+
const discoveryConfig = await ContentSource$1.getContentDatabase().get(`${GEN3_COMMONS_NAME}/discovery.json`);
|
|
15304
15320
|
return {
|
|
15305
15321
|
props: {
|
|
15306
15322
|
...await getNavPageLayoutPropsFromConfig(),
|
|
@@ -15349,7 +15365,7 @@ const QueryPage = ({ headerProps, footerProps, queryProps })=>{
|
|
|
15349
15365
|
};
|
|
15350
15366
|
|
|
15351
15367
|
const QueryPageGetServerSideProps = async ()=>{
|
|
15352
|
-
const queryProps = await ContentSource.get(
|
|
15368
|
+
const queryProps = await ContentSource$1.getContentDatabase().get(`${GEN3_COMMONS_NAME}/query.json`);
|
|
15353
15369
|
return {
|
|
15354
15370
|
props: {
|
|
15355
15371
|
...await getNavPageLayoutPropsFromConfig(),
|
|
@@ -15524,9 +15540,9 @@ const LandingPage = ({ headerProps, footerProps, landingPage })=>{
|
|
|
15524
15540
|
};
|
|
15525
15541
|
|
|
15526
15542
|
// should move this thing into _app.tsx and make a dedicated layout component after https://github.com/vercel/next.js/discussions/10949 is addressed
|
|
15527
|
-
const
|
|
15543
|
+
const LandingPageGetServerSideProps = async ()=>{
|
|
15528
15544
|
const navPageLayoutProps = await getNavPageLayoutPropsFromConfig();
|
|
15529
|
-
const landingPage = await ContentSource.get(
|
|
15545
|
+
const landingPage = await ContentSource$1.getContentDatabase().get(`${GEN3_COMMONS_NAME}/landingPage.json`);
|
|
15530
15546
|
return {
|
|
15531
15547
|
props: {
|
|
15532
15548
|
...navPageLayoutProps,
|
|
@@ -15605,7 +15621,7 @@ const GetSharedFieldMapping = async (cohortBuilderConfiguration)=>{
|
|
|
15605
15621
|
};
|
|
15606
15622
|
const ExplorerPageGetServerSideProps = async ()=>{
|
|
15607
15623
|
try {
|
|
15608
|
-
const cohortBuilderConfiguration = await ContentSource.get(
|
|
15624
|
+
const cohortBuilderConfiguration = await ContentSource$1.getContentDatabase().get(`${GEN3_COMMONS_NAME}/explorer.json`);
|
|
15609
15625
|
if (isArray(cohortBuilderConfiguration)) {
|
|
15610
15626
|
// older config layout
|
|
15611
15627
|
// TODO: remove this
|
|
@@ -15640,7 +15656,7 @@ const ExplorerPageGetServerSideProps = async ()=>{
|
|
|
15640
15656
|
const ExplorerPageGetServerSidePropsForConfigId = async (context)=>{
|
|
15641
15657
|
const configId = context.query.configId;
|
|
15642
15658
|
try {
|
|
15643
|
-
const cohortBuilderConfiguration = await ContentSource.get(
|
|
15659
|
+
const cohortBuilderConfiguration = await ContentSource$1.getContentDatabase().get(`${GEN3_COMMONS_NAME}/explorer/${configId}.json`);
|
|
15644
15660
|
if (isArray(cohortBuilderConfiguration)) {
|
|
15645
15661
|
// older config layout
|
|
15646
15662
|
// TODO: remove this
|
|
@@ -16600,7 +16616,7 @@ const ProfilePage = ({ headerProps, footerProps, profileConfig })=>{
|
|
|
16600
16616
|
};
|
|
16601
16617
|
|
|
16602
16618
|
const ProfilePageGetServerSideProps = async ()=>{
|
|
16603
|
-
const profileConfig = await ContentSource.get(
|
|
16619
|
+
const profileConfig = await ContentSource$1.getContentDatabase().get(`${GEN3_COMMONS_NAME}/profile.json`);
|
|
16604
16620
|
return {
|
|
16605
16621
|
props: {
|
|
16606
16622
|
...await getNavPageLayoutPropsFromConfig(),
|
|
@@ -16627,7 +16643,7 @@ const LoginPage = ({ headerProps, footerProps, loginConfig })=>{
|
|
|
16627
16643
|
};
|
|
16628
16644
|
|
|
16629
16645
|
const LoginPageGetServerSideProps = async ()=>{
|
|
16630
|
-
const loginConfig = await ContentSource.get(
|
|
16646
|
+
const loginConfig = await ContentSource$1.getContentDatabase().get(`${GEN3_COMMONS_NAME}/login.json`);
|
|
16631
16647
|
return {
|
|
16632
16648
|
props: {
|
|
16633
16649
|
...await getNavPageLayoutPropsFromConfig(),
|
|
@@ -16658,7 +16674,7 @@ const DictionaryPage = ({ headerProps, footerProps, config })=>{
|
|
|
16658
16674
|
|
|
16659
16675
|
const DictionaryPageGetServerSideProps = async ()=>{
|
|
16660
16676
|
try {
|
|
16661
|
-
const cohortBuilderProps = await ContentSource.get(
|
|
16677
|
+
const cohortBuilderProps = await ContentSource$1.getContentDatabase().get(`${GEN3_COMMONS_NAME}/dictionary.json`);
|
|
16662
16678
|
return {
|
|
16663
16679
|
props: {
|
|
16664
16680
|
...await getNavPageLayoutPropsFromConfig(),
|
|
@@ -17381,7 +17397,7 @@ const AuthzPage = ({ headerProps, footerProps, authz })=>{
|
|
|
17381
17397
|
};
|
|
17382
17398
|
|
|
17383
17399
|
const AdminAuthZPageGetServerSideProps = async ()=>{
|
|
17384
|
-
const rootPath =
|
|
17400
|
+
const rootPath = `${GEN3_COMMONS_NAME}/`;
|
|
17385
17401
|
const filepath = 'user.yaml';
|
|
17386
17402
|
let data = {};
|
|
17387
17403
|
try {
|
|
@@ -17709,7 +17725,7 @@ const SubmissionPage = ({ submissionConfig, headerProps, footerProps })=>{
|
|
|
17709
17725
|
|
|
17710
17726
|
const SubmissionPageGetServerSideProps = async ()=>{
|
|
17711
17727
|
try {
|
|
17712
|
-
const submissionConfig = await ContentSource.get(
|
|
17728
|
+
const submissionConfig = await ContentSource$1.getContentDatabase().get(`${GEN3_COMMONS_NAME}/submission.json`);
|
|
17713
17729
|
return {
|
|
17714
17730
|
props: {
|
|
17715
17731
|
...await getNavPageLayoutPropsFromConfig(),
|
|
@@ -17774,7 +17790,7 @@ const WorkspaceNoAccessPage = ({ headerProps, footerProps })=>{
|
|
|
17774
17790
|
};
|
|
17775
17791
|
|
|
17776
17792
|
const WorkspacePageGetServerSideProps = async (_context)=>{
|
|
17777
|
-
const workspaceProps = await ContentSource.get(
|
|
17793
|
+
const workspaceProps = await ContentSource$1.getContentDatabase().get(`${GEN3_COMMONS_NAME}/workspace.json`);
|
|
17778
17794
|
try {
|
|
17779
17795
|
return {
|
|
17780
17796
|
props: {
|
|
@@ -17836,7 +17852,7 @@ const AnalysisPage = ({ headerProps, footerProps, tools, sections, classNames })
|
|
|
17836
17852
|
|
|
17837
17853
|
const AnalysisPageGetServerSideProps = async ()=>{
|
|
17838
17854
|
try {
|
|
17839
|
-
const analysisConfig = await ContentSource.get(
|
|
17855
|
+
const analysisConfig = await ContentSource$1.getContentDatabase().get(`${GEN3_COMMONS_NAME}/analysisTools.json`);
|
|
17840
17856
|
return {
|
|
17841
17857
|
props: {
|
|
17842
17858
|
...await getNavPageLayoutPropsFromConfig(),
|
|
@@ -18471,7 +18487,7 @@ const AnalysisEditorPage = ({ headerProps, footerProps, analysisFile })=>{
|
|
|
18471
18487
|
};
|
|
18472
18488
|
|
|
18473
18489
|
const AnalysisEditorPageGetServerSideProps = async ()=>{
|
|
18474
|
-
// const rootPath =
|
|
18490
|
+
// const rootPath = `${GEN3_COMMONS_NAME}/`;
|
|
18475
18491
|
// const filepath = 'user.yaml';
|
|
18476
18492
|
// let data: Record<string, any> = {};
|
|
18477
18493
|
// try {
|
|
@@ -20379,7 +20395,7 @@ const DataLibraryPage = ({ headerProps, footerProps, config })=>{
|
|
|
20379
20395
|
|
|
20380
20396
|
const DataLibraryPageGetServerSideProps = async ()=>{
|
|
20381
20397
|
try {
|
|
20382
|
-
const datalibraryConfig = await ContentSource.get(
|
|
20398
|
+
const datalibraryConfig = await ContentSource$1.getContentDatabase().get(`${GEN3_COMMONS_NAME}/dataLibrary.json`);
|
|
20383
20399
|
return {
|
|
20384
20400
|
props: {
|
|
20385
20401
|
...await getNavPageLayoutPropsFromConfig(),
|
|
@@ -20671,7 +20687,7 @@ const CrosswalkPage = ({ headerProps, footerProps, config })=>{
|
|
|
20671
20687
|
|
|
20672
20688
|
const CrosswalkPageGetServerSideProps = async ()=>{
|
|
20673
20689
|
try {
|
|
20674
|
-
const initialConfig = await ContentSource.get(
|
|
20690
|
+
const initialConfig = await ContentSource$1.getContentDatabase().get(`${GEN3_COMMONS_NAME}/crosswalk.json`);
|
|
20675
20691
|
const regex = /->/g;
|
|
20676
20692
|
const processedConfig = {
|
|
20677
20693
|
showSubmittedIdInTable: initialConfig.showSubmittedIdInTable,
|
|
@@ -21009,5 +21025,5 @@ async function credentialsLogout(req, res) {
|
|
|
21009
21025
|
res.redirect(307, '/');
|
|
21010
21026
|
}
|
|
21011
21027
|
|
|
21012
|
-
export { AISearchPageGetServerSideProps, ActionButton, AdminAuthZPageGetServerSideProps, AiSearch, AISearchPage as AiSearchPage, AnalysisCenter, AnalysisCenterWithSections, AnalysisEditorPage, AnalysisEditorPageGetServerSideProps, AnalysisPage, AnalysisPageGetServerSideProps, AuthzPage, BaseModal, Charts, CohortBuilder, CollapsableSidebar, ColorThemePage, ColorThemePageGetServerSideProps, ContentSource, CreateCredentialsAPIKeyModal, CrosswalkPage, CrosswalkPageGetServerSideProps, Custom404Page, DataLibraryPage, DataLibraryPageGetServerSideProps, DictionaryPage, DictionaryPageGetServerSideProps, DiscoveryCellRendererFactory, DiscoveryProvider as DiscoveryConfigProvider, DiscoveryIndexPanel, DiscoveryPage, DiscoveryPageGetServerSideProps, DiscoveryRowRendererFactory, DropdownButton, EnumFacetChart, ErrorCard, ExplorerPage, ExplorerPageGetServerSideProps, ExplorerPageGetServerSidePropsForConfigId, ExplorerTableCellRendererFactory, ExplorerTableDetailsPanelFactory, FirstTimeModal, Footer, Gen3Button, Gen3ButtonReverse, Gen3Link, Gen3ModalsProvider, Gen3Provider, GqlQueryEditor$1 as GqlQueryEditor, Header, HoverLink, LandingPage,
|
|
21028
|
+
export { AISearchPageGetServerSideProps, ActionButton, AdminAuthZPageGetServerSideProps, AiSearch, AISearchPage as AiSearchPage, AnalysisCenter, AnalysisCenterWithSections, AnalysisEditorPage, AnalysisEditorPageGetServerSideProps, AnalysisPage, AnalysisPageGetServerSideProps, AuthzPage, BaseModal, Charts, CohortBuilder, CohortManager, CollapsableSidebar, ColorThemePage, ColorThemePageGetServerSideProps, ContentSource$1 as ContentSource, CreateCredentialsAPIKeyModal, CrosswalkPage, CrosswalkPageGetServerSideProps, Custom404Page, DataLibraryPage, DataLibraryPageGetServerSideProps, DictionaryPage, DictionaryPageGetServerSideProps, DiscoveryCellRendererFactory, DiscoveryProvider as DiscoveryConfigProvider, DiscoveryIndexPanel, DiscoveryPage, DiscoveryPageGetServerSideProps, DiscoveryRowRendererFactory, DropdownButton, EnumFacetChart, ErrorCard, ExplorerPage, ExplorerPageGetServerSideProps, ExplorerPageGetServerSidePropsForConfigId, ExplorerTableCellRendererFactory, ExplorerTableDetailsPanelFactory, FirstTimeModal, Footer, Gen3Button, Gen3ButtonReverse, Gen3Link, Gen3ModalsProvider, Gen3Provider, GqlQueryEditor$1 as GqlQueryEditor, Header, HoverLink, LandingPage, LandingPageGetServerSideProps, LoginButton$1 as LoginButton, LoginPage, LoginPageGetServerSideProps, LoginPanel, LoginProvidersPanel, MinutesToMilliseconds, NavPageLayout, NavigationBar, NavigationButton, NoAccessModal, NotebookLitePage, NotebookLitePageGetStaticProps, ProfilePage, ProfilePageGetServerSideProps, ProfileProvider, ProtectedContent, QueryPage, QueryPageGetServerSideProps, ReactECharts, ResourcesFilters, SPECIAL_CASE_FIELDS, SessionExpiredModal, StudyGroup, SubmissionPage, SubmissionPageGetServerSideProps, TagCloud, TailwindConfig, TopBar, UploadJSONButton, User, Workspace, WorkspaceNoAccessPage, WorkspaceNoAccessPageServerSideProps, WorkspacePage, WorkspacePageGetServerSideProps, capitalize, computeRowSpan, convertMinutesToMilliseconds, convertSecondsToMilliseconds, create10ColorAccessibleContrast, create10ColorPallet, createMantineTheme, credentialsLogin, credentialsLogout, extractObjectKey, focusStyles, getCurrentUnixTimestamp, getNavPageLayoutPropsFromConfig, getParamsValueAsString, getTagInfo, hasOwnProperty, isArrayOfString, isPropertyKey, isTextTransform$1 as isTextTransform, processLabel$1 as processLabel, processRangeKeyLabel, registerCohortBuilderDefaultPreviewRenderers, registerCohortDiscoveryApp, registerCohortSimilarityApp, registerDefaultDiscoveryDataLoaders, registerDiscoveryDefaultCellRenderers, registerDiscoveryDefaultStudyPreviewRenderers, registerExplorerDefaultCellRenderers, registerMetadataSchemaApp, removeKey$1 as removeKey, resourcePathFromProjectID, sessionLogout, sessionToken, stripTrailingSlash, toDisplayName, truncateString, unixTimeToString, useDiscoveryContext, userHasMethodForServiceOnResource$1 as userHasMethodForServiceOnResource };
|
|
21013
21029
|
//# sourceMappingURL=index.js.map
|