UNPKG

@newrelic/gatsby-theme-newrelic

Version:

[![Community Project header](https://github.com/newrelic/opensource-website/raw/master/src/images/categories/Community_Project.png)](https://opensource.newrelic.com/oss-category/#community-project)

61 lines (50 loc) 1.42 kB
const prefixStorageKey = (name) => ['gatsby-theme-newrelic', name].join(':'); const STORAGE_KEYS = { USER_ID: prefixStorageKey('userId'), LAST_ANNOUNCEMENT_DISMISSED: prefixStorageKey('lastAnnouncementDismissed'), }; const TRACKING_COOKIE_NAME = 'newrelic-gdpr-consent'; // Commented out to disable segment tracking and avoid edge function costs // const DEV_SEGMENT_WRITE_KEY = 'n9T9St8geATEFC1tmc0XH7XzEsOSVZCK'; const CAMEL_CASE = /^[a-z][a-zA-Z0-9]*$/; const TITLE_CASE = /^[A-Z\d][\w-]+( [A-Z\d][\w-]+)*$/; const SPLITS = { SIGNUP_BUTTON_TEXT: 'deven_signupbutton_text', }; const SPLIT_TRACKING_EVENTS = { SIGNUP_BUTTON_CLICK: 'DEVEN_signuptext_click', }; const FEEDBACK_FORM_TYPE = { general: 'userDocFeedback', install: 'userInstallFeedback', }; const NR_SITES = { DOCS: 'DOCS', COMMUNITY: 'COMMUNITY', LEARN: 'LEARN', }; const HEADER_LINKS = new Map(); HEADER_LINKS.set(NR_SITES.DOCS, { text: 'Docs', href: 'https://docs.newrelic.com/', }) .set(NR_SITES.COMMUNITY, { text: 'Community', href: 'https://support.newrelic.com/', }) .set(NR_SITES.LEARN, { text: 'Learn', href: 'https://learn.newrelic.com/', }); module.exports = { CAMEL_CASE, // DEV_SEGMENT_WRITE_KEY, // Commented out to disable segment tracking FEEDBACK_FORM_TYPE, HEADER_LINKS, NR_SITES, SPLITS, SPLIT_TRACKING_EVENTS, STORAGE_KEYS, TITLE_CASE, TRACKING_COOKIE_NAME, };