added Term of Service option in Pages
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
|
export { getAnalyticsConfig } from './getAnalyticsConfig.js'
|
||||||
// Server-safe: config type + the helper that reads IDs from SiteIntegrations.
|
// Server-safe: config type + the helper that reads IDs from SiteIntegrations.
|
||||||
// The <Analytics> component is client-side — exported via ./client.
|
// The <Analytics> component is client-side — exported via ./client.
|
||||||
export type { AnalyticsConfig } from './types.js'
|
export type { AnalyticsConfig } from './types.js'
|
||||||
export { getAnalyticsConfig } from './getAnalyticsConfig.js'
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ const ROLE_LABELS: Record<SystemPageRole, string> = {
|
|||||||
cookiePolicy: 'Cookie Policy',
|
cookiePolicy: 'Cookie Policy',
|
||||||
homepage: 'Homepage',
|
homepage: 'Homepage',
|
||||||
privacyPolicy: 'Privacy Policy',
|
privacyPolicy: 'Privacy Policy',
|
||||||
|
termsOfService: 'Terms of Service',
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Admin descriptions per role. */
|
/** Admin descriptions per role. */
|
||||||
@@ -16,6 +17,7 @@ const ROLE_DESCRIPTIONS: Record<SystemPageRole, string> = {
|
|||||||
cookiePolicy: 'Page linked from the cookie consent banner.',
|
cookiePolicy: 'Page linked from the cookie consent banner.',
|
||||||
homepage: 'Page served at the locale root (e.g. /pl, /en).',
|
homepage: 'Page served at the locale root (e.g. /pl, /en).',
|
||||||
privacyPolicy: 'Page linked as the privacy policy.',
|
privacyPolicy: 'Page linked as the privacy policy.',
|
||||||
|
termsOfService: 'Page linked as the terms of service / site regulations.',
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Built-in "system page" roles — documents from the client's Pages
|
* Built-in "system page" roles — documents from the client's Pages
|
||||||
* collection that the site references by function rather than by slug.
|
* collection that the site references by function rather than by slug.
|
||||||
*/
|
*/
|
||||||
export type SystemPageRole = 'cookiePolicy' | 'homepage' | 'privacyPolicy'
|
export type SystemPageRole = 'cookiePolicy' | 'homepage' | 'privacyPolicy' | 'termsOfService'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* All system roles in a stable order (used when no subset is configured).
|
* All system roles in a stable order (used when no subset is configured).
|
||||||
@@ -11,6 +11,7 @@ export const ALL_SYSTEM_PAGE_ROLES: readonly SystemPageRole[] = [
|
|||||||
'homepage',
|
'homepage',
|
||||||
'privacyPolicy',
|
'privacyPolicy',
|
||||||
'cookiePolicy',
|
'cookiePolicy',
|
||||||
|
'termsOfService',
|
||||||
]
|
]
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user