Merge claude/admin-white-label-meta: admin link previews, agency option
adminMeta (default on): panel title suffix, description, og:site_name, preview image (/api/ipal/admin-og) and icon (/api/ipal/admin-icon) from Site settings, robots noindex,nofollow on /admin; per-piece overrides, adminMeta: false, the project's admin.meta wins. agency option (default Intecion.com, false = none). Merge resolution: - docs/CHANGELOG.md: one Unreleased section covering storage-keys and this branch (Changed: credit text; New: adminMeta, agency; upgrade step 4). - dev importMap.js: regenerated with IPAL_DEV_2FA=1, so it keeps the TOTP entries (2FA fix) and adds AdminIcon, AdminLogo, IntecionCredit (whiteLabel).
This commit is contained in:
@@ -14,6 +14,7 @@ export type TotpPluginFactory = (options: {
|
||||
}) => Plugin
|
||||
import type { GlobalOverrides } from './globals/overrides.js'
|
||||
import type { AccessOption } from './modules/access/types.js'
|
||||
import type { AdminMetaOptions, AgencyOption } from './modules/branding/adminMeta.js'
|
||||
import type { ConsentLogOptions } from './modules/consent/consentLog.js'
|
||||
import type { CookieScannerOptions } from './modules/consent/scanner/types.js'
|
||||
import type { ContentOption } from './modules/content/types.js'
|
||||
@@ -35,6 +36,15 @@ export type IpalOptions = {
|
||||
*/
|
||||
access?: AccessOption
|
||||
|
||||
/**
|
||||
* Admin panel <head> for link previews and search engines (default on):
|
||||
* noindex/nofollow, title suffix "— <site> | Panel", siteName and a short
|
||||
* description from Site settings, a preview image drawn from the site's logo
|
||||
* (GET /api/ipal/admin-og) and the site's favicon (GET /api/ipal/admin-icon).
|
||||
* Keys the project sets in its own `admin.meta` always win. `false` = Payload's defaults.
|
||||
*/
|
||||
adminMeta?: AdminMetaOptions | false
|
||||
|
||||
/**
|
||||
* Custom admin panel route, e.g. '/its' instead of the default '/admin'.
|
||||
* The plugin sets config.routes.admin. IMPORTANT: this alone isn't enough —
|
||||
@@ -47,6 +57,13 @@ export type IpalOptions = {
|
||||
*/
|
||||
adminRoute?: string
|
||||
|
||||
/**
|
||||
* Who supports the technology, named in the admin credit, the panel's link
|
||||
* description and its preview image. Default `{ name: 'Intecion.com', url: 'https://intecion.com' }`.
|
||||
* `false` = no agency anywhere.
|
||||
*/
|
||||
agency?: AgencyOption | false
|
||||
|
||||
/** Internationalization — locales, default locale, fallback behavior */
|
||||
/**
|
||||
* Consent log (proof of consent, GDPR Art. 7(1)): adds the `consent-records`
|
||||
|
||||
Reference in New Issue
Block a user