Skip to content

Commit 76c6fa8

Browse files
committed
Remove apiPage config.
1 parent c331b64 commit 76c6fa8

File tree

4 files changed

+13
-21
lines changed

4 files changed

+13
-21
lines changed

src/lib/assets/configuration.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,6 @@
5353
}
5454
]
5555
},
56-
"apiPage": {
57-
"cards": [
58-
{
59-
"header": "Setting Up the PIC-SURE API",
60-
"body": "Step-by-step instructions to get started using the PIC-SURE API",
61-
"link": "/analyze/example"
62-
}
63-
]
64-
},
6556
"explorePage": {
6657
"additionalColumns": [
6758
{
@@ -122,6 +113,13 @@
122113
"stats": ["Variables", "Participants", "Data Sources"]
123114
},
124115
"analysisPage": {
116+
"cards": [
117+
{
118+
"header": "Setting Up the PIC-SURE API",
119+
"body": "Step-by-step instructions to get started using the PIC-SURE API",
120+
"link": "/analyze/example"
121+
}
122+
],
125123
"instructions": {
126124
"connection": "To connect to the PIC-SURE Application Programming Interface (API), you will need your personal access token. Copy your token and save as a text file called \"token.txt\" in the working directory of your chosen analysis workspace.",
127125
"execution": "To start your analysis, copy and execute the following code in your preferred analysis environment to connect to the PIC-SURE API. Note that you will need your personal access token to complete the connection."

src/lib/configuration.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import type { ExpectedResultType } from './models/query/Query';
44
import * as configJson from './assets/configuration.json' assert { type: 'json' };
55
import { ExportType } from './models/Variant';
66
import type {
7-
ApiPageConfig,
87
ExplorePageConfig,
98
FooterConfig,
109
HelpConfig,
@@ -41,7 +40,6 @@ export const branding: Branding = {
4140
},
4241
sitemap: [] as SiteMapConfig[],
4342
footer: {} as FooterConfig,
44-
apiPage: {} as ApiPageConfig,
4543
explorePage: {
4644
tourSearchTerm: import.meta.env?.EXPLORE_TOUR_SEARCH_TERM || 'age',
4745
} as ExplorePageConfig,
@@ -54,7 +52,6 @@ export const branding: Branding = {
5452

5553
export const initializeBranding = () => {
5654
branding.applicationName = configJson.applicationName;
57-
branding.apiPage = configJson.apiPage;
5855
branding.explorePage = { ...branding.explorePage, ...configJson.explorePage };
5956
branding.landing = configJson.landing;
6057
branding.login = configJson.login;

src/lib/types.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,6 @@ export interface FooterConfig {
3030
}>;
3131
}
3232

33-
export interface ApiPageConfig {
34-
cards: Array<{
35-
header: string;
36-
body: string;
37-
link: string;
38-
}>;
39-
}
40-
4133
export interface ExplorePageConfig {
4234
additionalColumns: Column[];
4335
tourSearchTerm: string;
@@ -90,6 +82,11 @@ export interface PrivacyConfig {
9082
}
9183

9284
export interface AnalysisConfig {
85+
cards: Array<{
86+
header: string;
87+
body: string;
88+
link: string;
89+
}>;
9390
instructions: {
9491
connection: string;
9592
execution: string;

src/routes/(picsure)/(authorized)/analyze/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
</TabGroup>
4141
</section>
4242
<section id="info-cards" class="w-full flex flex-wrap flex-row justify-center mt-6">
43-
{#each branding.apiPage.cards as card}
43+
{#each branding.analysisConfig.cards as card}
4444
<a
4545
href={card.link}
4646
target={card.link.startsWith('http') ? '_blank' : '_self'}

0 commit comments

Comments
 (0)