Every language filled (fillEmptyLocales, default on): text saved in one language goes to every language where the same field is still empty, never over a language's own text. Applies to the cookie list (purpose, duration) and the cookie review (purpose, duration). Scanner and approval writes give a language without its own text the default language's text. Building blocks: buildFillEmptyLocalesGlobalHook / CollectionHook, fillEmptyLocales, withFillLocales. One Cookies entry (cookieScanner.adminLayout, default combined): the Cookie banner global is now labelled Cookies and gets Review and approve (scan box and approval list inline) and Site check tabs, built from ui fields. Cookie review and Cookie check leave the navigation (admin.group false) but keep their pages, data and API. This is presentation only: no schema change and no migration, only generate:importmap. adminLayout separate keeps the old layout. Co-Authored-By: Claude Opus 5.5 <[email protected]>
15 lines
1015 B
TypeScript
15 lines
1015 B
TypeScript
// Re-eksport hooków domenowych (mieszkają w swoich modułach, tu dla przeglądu —
|
|
// żeby był jeden katalog "wszystkie hooki pluginu"). Źródło prawdy to ich moduły.
|
|
export { normalizeFilenameHook } from '../media/index.js'
|
|
export { buildAutoFillMetaHook, validateFaviconField } from '../seo/index.js'
|
|
export { buildCrossLocaleFieldSync } from './buildCrossLocaleFieldSync.js'
|
|
export { buildGlobalRevalidateHook, buildRevalidateHook } from './buildRevalidateHook.js'
|
|
export type { RevalidatePathFn } from './buildRevalidateHook.js'
|
|
export { buildFillEmptyLocalesCollectionHook, buildFillEmptyLocalesGlobalHook, fillEmptyLocales, withFillLocales } from './fillEmptyLocales.js'
|
|
export type { FillEmptyLocalesTarget } from './fillEmptyLocales.js'
|
|
export { buildPreventDeleteSystemPage } from './preventDeleteSystemPage.js'
|
|
export { setPublishedAtHook } from './setPublishedAt.js'
|
|
|
|
export { trackSlugHistoryHook } from './trackSlugHistory.js'
|
|
export { buildValidateUniqueRole } from './validateUniqueRole.js'
|