-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathveda.config.js
164 lines (155 loc) · 4.04 KB
/
veda.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
const dotEnvConfig = require('dotenv').config();
const { parsed: config } = dotEnvConfig;
function checkEnvFlag(value) {
return (value ?? '').toLowerCase() === 'true';
}
let mainNavItems = [
{
id: 'test',
title: 'Test',
type: 'dropdown',
children: [
{
id: 'dropdown-menu-item-1',
title: 'dropdown menu item 1',
to: '/stories',
type: 'internalLink'
}
]
},
{
id: 'another-test',
title: 'Another Test',
type: 'dropdown',
children: [
{
id: 'dropdown-menu-item-2',
title: 'dropdown menu item 2',
to: '/stories',
type: 'internalLink'
}
]
},
{
id: 'data-catalog',
title: 'Data Catalog',
to: '/data-catalog',
type: 'internalLink'
},
{
id: 'exploration',
title: 'Exploration',
to: '/exploration',
type: 'internalLink'
},
{
id: 'stories',
title: 'Stories',
to: '/stories',
type: 'internalLink'
}
];
if (!!config.HUB_URL && !!config.HUB_NAME)
mainNavItems = [
...mainNavItems,
{
id: 'hub',
title: process.env.HUB_NAME,
href: process.env.HUB_URL,
type: 'externalLink'
}
];
let subNavItems = [
{
id: 'about',
title: 'About',
to: '/about',
type: 'internalLink'
}
];
const defaultGuidance = {
left: {
title: 'Official websites use .gov',
text: 'A **.gov** website belongs to an official government organization in the United States.',
iconAlt: 'Dot gov icon',
icon: '/img/icon-dot-gov.svg'
},
right: {
title: 'Secure .gov websites use HTTPS',
text: "A **lock icon** or **https://** means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.",
iconAlt: 'HTTPS icon',
icon: '/img/icon-https.svg'
}
};
if (config.GOOGLE_FORM) {
subNavItems = [
...subNavItems,
{
id: 'contact-us',
title: 'Contact us',
actionId: 'open-google-form',
type: 'action'
}
];
}
module.exports = {
datasets: './datasets/*.data.mdx',
stories: './stories/*.stories.mdx',
pageOverrides: {
aboutContent: './about.mdx',
'sandbox-override': './sandbox-override.mdx',
'/disclaimer': './custom-pages/disclaimer.mdx',
'/custom-page': './custom-pages/custom.mdx',
'/aparam/:id': './custom-pages/aparam.mdx'
},
strings: {
stories: {
one: 'Story',
other: 'Stories'
}
},
banner: {
headerText: 'An official website of the United States government',
headerActionText: "Here's how you know",
ariaLabel: 'Banner for official government website',
flagImgSrc: '/img/us_flag_small.png',
flagImgAlt: 'US flag',
leftGuidance: defaultGuidance.left,
rightGuidance: defaultGuidance.right,
className: '',
defaultIsOpen: false,
contentId: 'gov-banner-content'
},
siteAlert: {
content: `[Discover insights on how the COVID-19 pandemic](stories/life-of-water) impacted air quality worldwide, observed through NASA's satellite data.`,
expires: '2026-08-03T12:00:00-04:00',
type: 'info',
slim: true,
showIcon: true
},
navItems: {
mainNavItems,
subNavItems
},
cookieConsentForm: {
title: 'Cookie Consent',
copy: 'We use cookies to enhance your browsing experience and to help us understand how our website is used. These cookies allow us to collect data on site usage and improve our services based on your interactions. To learn more about it, see our [Privacy Policy](https://www.nasa.gov/privacy/#cookies)',
theme: {
card: {
backgroundColor: '#2276ac',
sideBarColor: '#175074',
textColor: 'White',
linkColor: '#175074'
},
acceptButton: {
default: { backgroundColor: '#175074', textColor: 'white' },
hover: { backgroundColor: '#2c3e50', textColor: '#white' }
},
declineButton: {
default: { borderColor: '#175074', textColor: '#175074' },
hover: { borderColor: '#2c3e50', textColor: '#2c3e50' }
},
iconColor: { default: 'White', hover: '#175074' }
}
}
};